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
ab0862b68e4c5b80b84f5e8e25ccc255616c12fb
14,715
asm
Assembly
recode1.asm
joncampbell123/minx86dec
8ef8ed22f724f5bc39dc7101d095fcd429fffcac
[ "MIT" ]
19
2017-02-16T05:40:34.000Z
2021-12-19T18:27:53.000Z
recode1.asm
joncampbell123/minx86dec
8ef8ed22f724f5bc39dc7101d095fcd429fffcac
[ "MIT" ]
1
2020-02-05T04:51:00.000Z
2020-02-16T07:26:27.000Z
recode1.asm
joncampbell123/minx86dec
8ef8ed22f724f5bc39dc7101d095fcd429fffcac
[ "MIT" ]
7
2015-06-22T16:45:48.000Z
2020-07-02T18:51:14.000Z
; recompiler test code #1 org 0 _start: ; JMP [reg] 16-bit jmp ax jmp bx jmp cx jmp dx jmp si jmp di jmp bp jmp sp ; JMP [reg] 32-bit jmp eax jmp ebx jmp ecx jmp edx jmp esi jmp edi jmp ebp jmp esp ; JMP [addr] 16-bit single-memref jmp [bx] jmp [bp] jmp [si] jmp [di] ; JMP [addr] 16-bit single-memref with offset jmp [bx+3] jmp [bp+4] jmp [si+5] jmp [di+6] ; JMP [addr] 16-bit single-memref with large offset jmp [bx+0x1111] jmp [bp+0x2222] jmp [si+0x3333] jmp [di+0x4444] ; JMP [addr] 16-bit single-memref with negative offset jmp [bx-3] jmp [bp-4] jmp [si-5] jmp [di-6] ; JMP [addr] 16-bit single-memref with large negative offset jmp [bx-0x1111] jmp [bp-0x2222] jmp [si-0x3333] jmp [di-0x4444] ; JMP [addr] 16-bit double-memref jmp [bx+si] jmp [bx+di] jmp [bp+si] jmp [bp+di] ; JMP [addr] 16-bit double-memref and offset jmp [bx+si+3] jmp [bx+di+4] jmp [bp+si+5] jmp [bp+di+6] ; JMP [addr] 16-bit double-memref and large offset jmp [bx+si+0x1111] jmp [bx+di+0x2222] jmp [bp+si+0x3333] jmp [bp+di+0x4444] ; JMP [addr] 32-bit single-memref jmp [eax] jmp [ebx] jmp [ecx] jmp [edx] jmp [esi] jmp [edi] jmp [esp] jmp [ebp] ; JMP [addr] 32-bit single-memref with offset jmp [eax+3] jmp [ebx+4] jmp [ecx+5] jmp [edx+6] jmp [esi+7] jmp [edi+8] jmp [esp+9] jmp [ebp+10] ; JMP [addr] 32-bit single-memref with large offset jmp [eax+0x11111111] jmp [ebx+0x22222222] jmp [ecx+0x33333333] jmp [edx+0x44444444] jmp [esi+0x55555555] jmp [edi+0x66666666] jmp [esp+0x77777777] jmp [ebp+0x88888888] ; JMP [addr] 32-bit double-memref jmp [eax+eax] jmp [ebx+eax] jmp [ecx+eax] jmp [edx+eax] jmp [esi+eax] jmp [edi+eax] jmp [esp+eax] jmp [ebp+eax] ; JMP [addr] 32-bit double-memref jmp [eax+ebx] jmp [ebx+ebx] jmp [ecx+ebx] jmp [edx+ebx] jmp [esi+ebx] jmp [edi+ebx] jmp [esp+ebx] jmp [ebp+ebx] ; JMP [addr] 32-bit double-memref and scalar jmp [eax*2+ebx] jmp [ebx*2+ebx] jmp [ecx*2+ebx] jmp [edx*2+ebx] jmp [esi*2+ebx] jmp [edi*2+ebx] jmp [ebp*2+ebx] ; JMP [addr] 32-bit double-memref and scalar jmp [eax*2+ebx+4] jmp [ebx*2+ebx+5] jmp [ecx*2+ebx+6] jmp [edx*2+ebx+7] jmp [esi*2+ebx+8] jmp [edi*2+ebx+9] jmp [ebp*2+ebx+10] ; JMP <near> jmp 0x1234 jmp 0x5678 ; JMP <short> jmp short $+1 jmp short $+2 ; JMP <32-bit near> jmp dword 0x12345678 jmp dword 0x89ABCDEF ; JMP <far immediate> jmp 0x1234:0x5678 ; jmp <32-bit far immediate> jmp 0x1234:dword 0x89ABCDEF ; JMP <far [addr]> jmp far [bx] jmp far [si] jmp far [bp] jmp far [bx+si] jmp far [bx+di] ; JMP <far [32-bit addr]> jmp far [eax] jmp far [ebx] jmp far [ecx] jmp far [edx] jmp far [esi] jmp far [edi] jmp far [esp] jmp far [ebp] ; JMP <32-bit far [addr]> jmp far dword [bx] jmp far dword [si] jmp far dword [bp] jmp far dword [bx+si] jmp far dword [bx+di] ; JMP <32-bit far 32-bit addr> jmp far dword [eax] jmp far dword [ebx] jmp far dword [ecx] jmp far dword [edx] jmp far dword [esi] jmp far dword [edi] jmp far dword [esp] jmp far dword [ebp] ; JMP <addr> jmp word [0x1234] jmp [dword 0x12345678] jmp far word [0x1234] jmp far [dword 0x12345678] ; JMP [reg] 16-bit call ax call bx call cx call dx call si call di call bp call sp ; JMP [reg] 32-bit call eax call ebx call ecx call edx call esi call edi call ebp call esp ; JMP [addr] 16-bit single-memref call [bx] call [bp] call [si] call [di] ; JMP [addr] 16-bit single-memref with offset call [bx+3] call [bp+4] call [si+5] call [di+6] ; JMP [addr] 16-bit single-memref with large offset call [bx+0x1111] call [bp+0x2222] call [si+0x3333] call [di+0x4444] ; JMP [addr] 16-bit single-memref with negative offset call [bx-3] call [bp-4] call [si-5] call [di-6] ; JMP [addr] 16-bit single-memref with large negative offset call [bx-0x1111] call [bp-0x2222] call [si-0x3333] call [di-0x4444] ; JMP [addr] 16-bit double-memref call [bx+si] call [bx+di] call [bp+si] call [bp+di] ; JMP [addr] 16-bit double-memref and offset call [bx+si+3] call [bx+di+4] call [bp+si+5] call [bp+di+6] ; JMP [addr] 16-bit double-memref and large offset call [bx+si+0x1111] call [bx+di+0x2222] call [bp+si+0x3333] call [bp+di+0x4444] ; JMP [addr] 32-bit single-memref call [eax] call [ebx] call [ecx] call [edx] call [esi] call [edi] call [esp] call [ebp] ; JMP [addr] 32-bit single-memref with offset call [eax+3] call [ebx+4] call [ecx+5] call [edx+6] call [esi+7] call [edi+8] call [esp+9] call [ebp+10] ; JMP [addr] 32-bit single-memref with large offset call [eax+0x11111111] call [ebx+0x22222222] call [ecx+0x33333333] call [edx+0x44444444] call [esi+0x55555555] call [edi+0x66666666] call [esp+0x77777777] call [ebp+0x88888888] ; JMP [addr] 32-bit double-memref call [eax+eax] call [ebx+eax] call [ecx+eax] call [edx+eax] call [esi+eax] call [edi+eax] call [esp+eax] call [ebp+eax] ; JMP [addr] 32-bit double-memref call [eax+ebx] call [ebx+ebx] call [ecx+ebx] call [edx+ebx] call [esi+ebx] call [edi+ebx] call [esp+ebx] call [ebp+ebx] ; JMP [addr] 32-bit double-memref and scalar call [eax*2+ebx] call [ebx*2+ebx] call [ecx*2+ebx] call [edx*2+ebx] call [esi*2+ebx] call [edi*2+ebx] call [ebp*2+ebx] ; JMP [addr] 32-bit double-memref and scalar call [eax*2+ebx+4] call [ebx*2+ebx+5] call [ecx*2+ebx+6] call [edx*2+ebx+7] call [esi*2+ebx+8] call [edi*2+ebx+9] call [ebp*2+ebx+10] ; JMP <near> call 0x1234 call 0x5678 ; JMP <32-bit near> call dword 0x12345678 call dword 0x89ABCDEF ; JMP <far immediate> call 0x1234:0x5678 ; call <32-bit far immediate> call 0x1234:dword 0x89ABCDEF ; JMP <far [addr]> call far [bx] call far [si] call far [bp] call far [bx+si] call far [bx+di] ; JMP <far [32-bit addr]> call far [eax] call far [ebx] call far [ecx] call far [edx] call far [esi] call far [edi] call far [esp] call far [ebp] ; JMP <32-bit far [addr]> call far dword [bx] call far dword [si] call far dword [bp] call far dword [bx+si] call far dword [bx+di] ; JMP <32-bit far 32-bit addr> call far dword [eax] call far dword [ebx] call far dword [ecx] call far dword [edx] call far dword [esi] call far dword [edi] call far dword [esp] call far dword [ebp] ; JMP <addr> call word [0x1234] call [dword 0x12345678] call far word [0x1234] call far [dword 0x12345678] ; NOPs nop nop ; XCHG <8-bit> xchg al,al xchg al,bl xchg al,cl xchg al,dl xchg al,ah xchg al,bh xchg al,ch xchg al,dh ; XCHG ax,<16-bit> xchg ax,ax xchg ax,bx xchg ax,cx xchg ax,dx xchg ax,si xchg ax,di xchg ax,sp xchg ax,bp ; XCHG <16-bit> xchg bx,ax xchg cx,bx xchg dx,cx xchg si,dx xchg di,si xchg sp,di xchg bp,sp xchg ax,bp ; XCHG <8-bit w/ mem> xchg [si],al xchg [si],bl xchg [si],cl xchg [si],dl xchg [si],ah xchg [si],bh xchg [si],ch xchg [si],dh ; XCHG <8-bit w/ mem> xchg [esi],al xchg [esi],bl xchg [esi],cl xchg [esi],dl xchg [esi],ah xchg [esi],bh xchg [esi],ch xchg [esi],dh ; XCHG <16-bit w/ mem> xchg [si],ax xchg [si],bx xchg [si],cx xchg [si],dx xchg [si],si xchg [si],di xchg [si],sp xchg [si],bp ; XCHG eax,<32-bit> xchg eax,eax xchg eax,ebx xchg eax,ecx xchg eax,edx xchg eax,esi xchg eax,edi xchg eax,esp xchg eax,ebp ; XCHG <32-bit> xchg ebx,eax xchg ecx,ebx xchg edx,ecx xchg esi,edx xchg edi,esi xchg esp,edi xchg ebp,esp xchg eax,ebp ; XCHG <32-bit w/ mem> xchg [si],eax xchg [si],ebx xchg [si],ecx xchg [si],edx xchg [si],esi xchg [si],edi xchg [si],ebp xchg [si],esp ; XCHG <32-bit w/ 32-bit mem> xchg [esi],eax xchg [esi],ebx xchg [esi],ecx xchg [esi],edx xchg [esi],esi xchg [esi],edi xchg [esi],ebp xchg [esi],esp ; JMP <addr> xchg [0x1234],ax xchg [dword 0x12345678],ax xchg [0x1234],eax xchg [dword 0x12345678],eax ; MOV reg,reg mov al,al mov al,ah mov al,bl mov al,bh mov al,cl mov al,ch mov al,dl mov al,dh ; MOV reg,reg (other than AL) mov bl,al mov bh,ah mov cl,bl mov ch,bh mov dl,cl mov dh,ch mov al,dl mov ah,dh ; MOV reg,reg mov ax,ax mov ax,bx mov ax,cx mov ax,dx mov ax,si mov ax,di mov ax,bp mov ax,sp ; MOV reg,reg mov cx,ax mov dx,bx mov si,cx mov di,dx mov sp,si mov bp,di mov ax,bp mov bx,sp ; MOV reg,reg mov eax,eax mov eax,ebx mov eax,ecx mov eax,edx mov eax,esi mov eax,edi mov eax,ebp mov eax,esp ; MOV reg,reg mov ecx,eax mov edx,ebx mov esi,ecx mov edi,edx mov esp,esi mov ebp,edi mov eax,ebp mov ebx,esp ; MOV reg,imm (byte) mov al,0 mov al,1 mov al,0xCC mov ah,1 mov bl,2 mov cl,3 mov ch,4 mov dl,5 mov dh,6 ; MOV reg,imm (word) mov ax,0 mov bx,1 mov cx,2 mov dx,3 mov si,4 mov di,5 mov sp,6 mov bp,7 ; MOV reg,imm (dword) mov eax,0 mov ebx,1 mov ecx,2 mov edx,3 mov esi,4 mov edi,5 mov esp,6 mov ebp,7 ; MOV r/m,imm (byte) mov byte [si],1 mov byte [di],2 mov byte [bx],3 mov byte [bx+si],4 mov byte [bx+di],5 ; MOV r/m,imm (byte 32-bit) mov byte [eax],1 mov byte [ebx],2 mov byte [ecx],3 mov byte [edx],4 mov byte [esi],5 mov byte [edi],5 ; MOV r/m,imm (word) mov word [si],1 mov word [di],2 mov word [bx],3 mov word [bx+si],4 mov word [bx+di],5 ; MOV r/m,imm (word 32-bit) mov word [eax],1 mov word [ebx],2 mov word [ecx],3 mov word [edx],4 mov word [esi],5 mov word [edi],5 ; MOV r/m,imm (dword) mov dword [si],1 mov dword [di],2 mov dword [bx],3 mov dword [bx+si],4 mov dword [bx+di],5 ; MOV r/m,imm (dword 32-bit) mov dword [eax],1 mov dword [ebx],2 mov dword [ecx],3 mov dword [edx],4 mov dword [esi],5 mov dword [edi],5 ; MOV AX <=> [mem addr] mov al,[0x1234] mov ax,[0x1234] mov eax,[0x1234] mov [0x1234],al mov [0x1234],ax mov [0x1234],eax ; MOV AX <=> [mem addr 32] mov al,[dword 0x12345678] mov ax,[dword 0x12345678] mov eax,[dword 0x12345678] mov [dword 0x12345678],al mov [dword 0x12345678],ax mov [dword 0x12345678],eax ; MOV reg,reg mov [eax],eax mov [ebx],ebx mov [edx],ecx mov [esi],edx mov [edi],esi mov [ebp],edi mov [esi],ebp mov [ecx],esp ; MOV reg,reg mov eax,[edx] mov ebx,[eax] mov ecx,[ebx] mov edx,[ecx] mov esi,[edx] mov edi,[eax] mov ebp,[ebx] mov esp,[ecx] ; MOV reg,reg mov [si],ax mov [si],bx mov [si],cx mov [si],dx mov [si],si mov [si],di mov [si],bp mov [si],sp ; MOV reg,reg mov ax,[si] mov bx,[si] mov cx,[si] mov dx,[si] mov si,[si] mov di,[si] mov bp,[si] mov sp,[si] ; XCHG <8-bit> lock xchg al,al lock xchg al,bl lock xchg al,cl lock xchg al,dl lock xchg al,ah lock xchg al,bh lock xchg al,ch lock xchg al,dh ; XCHG ax,<16-bit> lock xchg ax,ax lock xchg ax,bx lock xchg ax,cx lock xchg ax,dx lock xchg ax,si lock xchg ax,di lock xchg ax,sp lock xchg ax,bp mov [es:si],ax mov [es:si],bx mov [es:si],cx mov [es:si],dx mov [es:si],si mov [es:si],di mov [es:si],bp mov [es:si],sp mov [es:esi],ax mov [es:esi],bx mov [es:esi],cx mov [es:esi],dx mov [es:esi],si mov [es:esi],di mov [es:esi],bp mov [es:esi],sp mov [es:esi],eax mov [es:esi],ebx mov [es:esi],ecx mov [es:esi],edx mov [es:esi],esi mov [es:esi],edi mov [es:esi],ebp mov [es:esi],esp mov [0x1234],al mov [0x1234],ax mov [0x1234],eax mov [dword 0x12345678],al mov [dword 0x12345678],ax mov [dword 0x12345678],eax mov al,[0x1234] mov ax,[0x1234] mov eax,[0x1234] mov al,[dword 0x12345678] mov ax,[dword 0x12345678] mov eax,[dword 0x12345678] ; MOV with segment registers mov ax,cs mov cs,ax mov ax,ds mov ds,ax mov ax,ss mov ss,ax mov ax,es mov es,ax ; ... mem refs mov [si],cs mov cs,[si] mov [di],ds mov ds,[di] mov [bx],es mov es,[bx] mov [bp],ss mov ss,[bp] mov [bp+di],ds mov ds,[bp+di] ; ... mem refs and overrides mov [si],cs ; the recoder will NOT generate the DS: prefix because it's not needed mov cs,[si] mov [es:di],ds mov ds,[es:di] mov [ss:bx],es mov es,[ss:bx] mov [cs:bp],ss mov ss,[cs:bp] mov [ds:bp+di],ds mov ds,[ds:bp+di] ; ... mem refs and overrides mov [esi],cs ; the recoder will NOT generate the DS: prefix because it's not needed mov cs,[esi] mov [es:edi],ds mov ds,[es:edi] mov [ss:ebx],es mov es,[ss:ebx] mov [cs:ebp],ss mov ss,[cs:ebp] mov [ds:esp],ds mov ds,[ds:esp] ; ... mem refs and overrides mov [eax*4+ebx+4],cs ; the recoder will NOT generate the DS: prefix because it's not needed mov cs,[eax*4+ebx+4] mov [es:edi*8+ecx-18],ds mov ds,[es:edi*8+ecx-18] ; ... control registers <reg-reg> mov eax,cr0 mov cr0,eax mov ebx,cr0 mov cr0,ebx mov eax,cr1 mov cr1,eax mov ebx,cr2 mov cr2,ebx mov eax,dr0 mov dr0,eax mov ebx,dr1 mov dr1,ebx mov eax,dr2 mov dr2,eax mov ebx,dr3 mov dr3,ebx mov tr0,eax mov ebx,tr1 mov tr1,ebx mov eax,tr2 mov tr2,eax mov ebx,tr3 mov tr3,ebx ; push/pop push ax push bx push cx push dx push si push di push bp push sp pop ax pop bx pop cx pop dx pop si pop di pop bp pop sp ; push/pop push eax push ebx push ecx push edx push esi push edi push ebp push esp pop eax pop ebx pop ecx pop edx pop esi pop edi pop ebp pop esp ; push/pop mem word push word [si] push word [di] push word [bx] push word [bp] push word [bx+si] push word [bx+di] push word [bp+si] push word [bp+di] pop word [si] pop word [di] pop word [bx] pop word [bp] ; FIXME: this doesn't decode properly pop word [bx+si] pop word [bx+di] pop word [bp+si] pop word [bp+di] ; push/pop mem word push dword [si] push dword [di] push dword [bx] push dword [bp] push dword [bx+si] push dword [bx+di] push dword [bp+si] push dword [bp+di] pop dword [si] pop dword [di] pop dword [bx] ; pop dword [bp] ; FIXME: this doesn't decode properly pop dword [bx+si] pop dword [bx+di] pop dword [bp+si] pop dword [bp+di] ; push/pop mem word push word [eax] push word [ebx] push word [ecx] push word [edx] push word [esi] push word [edi] push word [ebp] push word [esp] pop word [eax] pop word [ebx] pop word [ecx] pop word [edx] pop word [esi] pop word [edi] ; pop word [ebp] ; FIXME: this doesn't decode properly pop word [esp] ; push/pop mem word push dword [eax] push dword [ebx] push dword [ecx] push dword [edx] push dword [esi] push dword [edi] push dword [ebp] push dword [esp] pop dword [eax] pop dword [ebx] pop dword [ecx] pop dword [edx] pop dword [esi] pop dword [edi] ; pop dword [ebp] ; FIXME: this doesn't decode properly pop dword [esp] ; push imm (8-bit) push byte 1 push byte 2 push byte 3 push byte 4 push byte -1 push byte -2 push byte -3 push byte -4 ; push imm (16-bit) push word 1111 push word 2222 push word 3333 push word 4444 ; push imm (32-bit) push dword 11111111 push dword 22222222 push dword 33333333 push dword 44444444 ; push/pop segment push cs push ds push es push fs push gs push ss pop ds pop es pop fs pop gs pop ss
16.836384
93
0.647367
9f3ebe6020708394ada4cb439a591f1c0f72199e
6,890
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_946.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_946.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_946.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 %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x18a65, %rsi lea addresses_WT_ht+0x1c425, %rdi nop nop nop nop nop cmp %rbp, %rbp mov $88, %rcx rep movsl nop nop xor $19300, %r9 lea addresses_WC_ht+0xd565, %rsi nop add $13915, %rax vmovups (%rsi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %rdi nop nop nop nop nop xor $18245, %rsi lea addresses_D_ht+0x1e5a5, %rsi lea addresses_WC_ht+0xf325, %rdi nop nop nop nop add $20599, %r13 mov $4, %rcx rep movsl nop nop nop nop nop and $35619, %rsi lea addresses_WT_ht+0x18009, %rdi xor $51796, %rsi movb (%rdi), %al nop nop nop nop sub %r9, %r9 lea addresses_UC_ht+0x1a725, %rsi nop nop add $28497, %rax mov $0x6162636465666768, %rdi movq %rdi, %xmm6 vmovups %ymm6, (%rsi) nop lfence lea addresses_A_ht+0x18325, %rsi lea addresses_normal_ht+0x1eae5, %rdi clflush (%rsi) nop nop nop nop nop and $61338, %rbx mov $92, %rcx rep movsb nop and %rdi, %rdi lea addresses_WT_ht+0x10e45, %rax clflush (%rax) nop nop nop xor %rdi, %rdi mov $0x6162636465666768, %rbp movq %rbp, %xmm5 and $0xffffffffffffffc0, %rax vmovntdq %ymm5, (%rax) nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0x1b965, %r9 nop nop nop nop dec %rax mov $0x6162636465666768, %rbx movq %rbx, %xmm4 vmovups %ymm4, (%r9) nop nop nop xor $5702, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r15 push %r9 push %rcx // Store mov $0x7c78890000000d61, %rcx nop nop nop nop dec %r13 movb $0x51, (%rcx) nop nop cmp %rcx, %rcx // Load lea addresses_WT+0x1bd65, %r15 nop nop nop xor $17254, %r13 mov (%r15), %r11d nop nop nop xor $16549, %r14 // Store mov $0x3d9d550000000299, %r15 clflush (%r15) nop nop nop and $7951, %r11 movw $0x5152, (%r15) nop nop nop cmp %r11, %r11 // Faulty Load lea addresses_PSE+0xbd65, %r12 nop nop xor %r9, %r9 mov (%r12), %r14d lea oracles, %rcx and $0xff, %r14 shlq $12, %r14 mov (%rcx,%r14,1), %r14 pop %rcx pop %r9 pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 2}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_A_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.609756
2,999
0.658636
fc595b57876ef27415f36f3f694a0e7885a98bd5
2,013
asm
Assembly
programs/oeis/304/A304607.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/304/A304607.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/304/A304607.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A304607: a(n) = 252*2^n + 140 (n>=1). ; 644,1148,2156,4172,8204,16268,32396,64652,129164,258188,516236,1032332,2064524,4128908,8257676,16515212,33030284,66060428,132120716,264241292,528482444,1056964748,2113929356,4227858572,8455717004,16911433868,33822867596,67645735052,135291469964,270582939788,541165879436,1082331758732,2164663517324,4329327034508,8658654068876,17317308137612,34634616275084,69269232550028,138538465099916,277076930199692,554153860399244,1108307720798348,2216615441596556,4433230883192972,8866461766385804,17732923532771468,35465847065542796,70931694131085452,141863388262170764,283726776524341388,567453553048682636,1134907106097365132,2269814212194730124,4539628424389460108,9079256848778920076,18158513697557840012,36317027395115679884,72634054790231359628,145268109580462719116,290536219160925438092,581072438321850876044,1162144876643701751948,2324289753287403503756,4648579506574807007372,9297159013149614014604,18594318026299228029068,37188636052598456057996,74377272105196912115852,148754544210393824231564,297509088420787648462988,595018176841575296925836,1190036353683150593851532,2380072707366301187702924,4760145414732602375405708,9520290829465204750811276,19040581658930409501622412,38081163317860819003244684,76162326635721638006489228,152324653271443276012978316,304649306542886552025956492,609298613085773104051912844,1218597226171546208103825548,2437194452343092416207650956,4874388904686184832415301772,9748777809372369664830603404,19497555618744739329661206668,38995111237489478659322413196,77990222474978957318644826252,155980444949957914637289652364,311960889899915829274579304588,623921779799831658549158609036,1247843559599663317098317217932,2495687119199326634196634435724,4991374238398653268393268871308,9982748476797306536786537742476,19965496953594613073573075484812,39930993907189226147146150969484,79861987814378452294292301938828,159723975628756904588584603877516,319447951257513809177169207754892 mov $1,2 pow $1,$0 sub $1,1 mul $1,504 add $1,644 mov $0,$1
201.3
1,911
0.925484
f483087b3ba2ef7df10c33926ce68f6d64087e74
6,934
asm
Assembly
Transynther/x86/_processed/US/_st_un_sm_/i7-8650U_0xd2.log_2342_1731.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_st_un_sm_/i7-8650U_0xd2.log_2342_1731.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_st_un_sm_/i7-8650U_0xd2.log_2342_1731.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 %rcx push %rdi push %rsi lea addresses_WT_ht+0xdc66, %rsi lea addresses_A_ht+0x4c86, %rdi nop nop nop nop nop xor $4562, %r15 mov $61, %rcx rep movsq nop nop and $19430, %r12 lea addresses_WT_ht+0x10e46, %rsi lea addresses_D_ht+0x1ec52, %rdi nop nop nop nop nop xor %r15, %r15 mov $113, %rcx rep movsw add %rcx, %rcx lea addresses_WC_ht+0x4e06, %rsi nop nop nop nop nop xor %r13, %r13 movl $0x61626364, (%rsi) nop sub $38391, %r12 lea addresses_A_ht+0x19a06, %rsi lea addresses_WT_ht+0x11ca9, %rdi xor $51447, %r15 mov $13, %rcx rep movsb nop nop and %rsi, %rsi lea addresses_normal_ht+0x11e06, %rsi nop nop nop nop dec %r15 movl $0x61626364, (%rsi) dec %rsi lea addresses_D_ht+0xfe06, %rsi lea addresses_normal_ht+0x11406, %rdi nop nop and %r11, %r11 mov $39, %rcx rep movsq nop nop nop cmp $44453, %r12 lea addresses_A_ht+0xfe02, %rcx nop nop nop and %rsi, %rsi vmovups (%rcx), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r13 nop nop add $42921, %r12 pop %rsi pop %rdi pop %rcx pop %r15 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %rbp push %rbx push %rdi // Store lea addresses_US+0x15606, %r13 nop nop nop nop cmp $38787, %r11 mov $0x5152535455565758, %r15 movq %r15, %xmm3 vmovups %ymm3, (%r13) nop nop nop nop nop sub $65039, %r8 // Store mov $0x570, %rbx nop nop add $37643, %rbp movb $0x51, (%rbx) nop nop sub $47003, %r11 // Store mov $0x67a9e40000000306, %rbx nop cmp $57021, %r11 mov $0x5152535455565758, %rdi movq %rdi, %xmm0 vmovaps %ymm0, (%rbx) dec %rdi // Store lea addresses_US+0x17e06, %rdi nop nop cmp %rbx, %rbx movw $0x5152, (%rdi) nop nop nop nop cmp %rdi, %rdi // Faulty Load lea addresses_US+0x17e06, %rbx nop nop nop nop nop sub %r13, %r13 mov (%rbx), %r15d lea oracles, %rbx and $0xff, %r15 shlq $12, %r15 mov (%rbx,%r15,1), %r15 pop %rdi pop %rbx pop %rbp pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'52': 2321, '1a': 4, '2c': 1, 'be': 2, '10': 1, '30': 2, '72': 1, '0e': 1, 'da': 1, '0a': 1, 'e0': 1, '14': 1, '2e': 1, '36': 1, '8e': 1, '6a': 1, '3c': 1} 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 1a 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 2c 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 be 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 be 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 1a 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 10 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 30 52 52 52 52 52 52 52 52 52 52 52 52 52 72 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 0e 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 da 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 */
36.114583
2,999
0.650851
cdb2515e42257020d907de6d7a1bf31436fed7e1
782
asm
Assembly
TRGB.asm
CodexLink/8086_ASM_DOSBOX_Examples
215436099ccce5ee22206efc51af5ec37513a4a2
[ "MIT" ]
null
null
null
TRGB.asm
CodexLink/8086_ASM_DOSBOX_Examples
215436099ccce5ee22206efc51af5ec37513a4a2
[ "MIT" ]
1
2022-01-20T09:48:07.000Z
2022-01-20T09:48:07.000Z
TRGB.asm
CodexLink/8086_ASM_DOSBOX_Examples
215436099ccce5ee22206efc51af5ec37513a4a2
[ "MIT" ]
1
2021-08-17T05:40:03.000Z
2021-08-17T05:40:03.000Z
; T-Structure in Red and Green (Left) + Blue (Right) for Spacing — TGRB.asm ; Copyright (c) 2021 Janrey Licas ; This code is licensed under MIT license. (see LICENSE for details) .MODEL TINY .CODE MOV AX, 0B800H ; Get address for VGA color mode. MOV ES, AX ; Move that address in extra segment. MOV AH, 06H ; Set to Scroll Window Up. MOV CX, 0000H MOV DX, 184FH ; Let Whole Screen Fill with Red First. MOV BH, 44H ; Set Screen to Red Color. INT 10H MOV CX, 0C00H MOV DX, 181AH ; Set to 12th Row and 26th Column. MOV BH, 20H ; Set first box to Green Color. INT 10H MOV CX, 0C35H ; Adjust Second Box Rendering to MOV DX, 184FH ; Set to 12th Row and 54th Column. MOV BH, 10H ; Set second box to Blue Color. INT 10H MOV AH, 4CH ; Perform Termination. INT 21h END
32.583333
75
0.704604
a05259c94d7b361880849eb335be3dca0e0ae352
363
asm
Assembly
programs/oeis/136/A136290.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/136/A136290.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/136/A136290.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A136290: a(0)=1, a(1)=3, a(2)=9, a(3)=12, a(4)=15; thereafter a(n) = a(n-1)+a(n-3)-a(n-4). ; 1,3,9,12,15,21,24,27,33,36,39,45,48,51,57,60,63,69,72,75,81,84,87,93,96,99,105,108,111,117,120,123,129,132,135,141,144,147,153,156,159,165,168,171,177,180,183,189,192,195,201,204,207,213,216,219,225,228,231,237 mov $1,$0 add $0,1 mod $0,3 mul $1,4 trn $1,$0 add $1,1
36.3
212
0.62259
4a6d258b630f3a850840ccc6e3f8dcdcd820b805
172
asm
Assembly
libsrc/_DEVELOPMENT/z80/c/sccz80/z80_get_int_state.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/_DEVELOPMENT/z80/c/sccz80/z80_get_int_state.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/_DEVELOPMENT/z80/c/sccz80/z80_get_int_state.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; uint z80_get_int_state(void) SECTION code_clib SECTION code_z80 PUBLIC z80_get_int_state EXTERN asm_z80_get_int_state defc z80_get_int_state = asm_z80_get_int_state
14.333333
46
0.860465
2d971814c46345d5d33f8ec1ae0eee98c37f3282
312
asm
Assembly
programs/oeis/108/A108340.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/108/A108340.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/108/A108340.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A108340: A083952 read mod 2. ; 1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mov $1,$0 gcd $0,2 mov $2,$1 add $2,$1 lpb $2 gcd $0,$2 div $2,5 lpe sub $0,1
24
197
0.519231
1fe0ced6e04561bbcd80345680286532ebdc6544
7,353
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2872.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2872.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2872.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 %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x101d2, %rsi lea addresses_A_ht+0xede0, %rdi nop nop nop cmp $46785, %r8 mov $78, %rcx rep movsl nop nop nop nop sub %rcx, %rcx lea addresses_normal_ht+0x55f0, %r10 nop nop inc %rbx movb $0x61, (%r10) nop inc %r8 lea addresses_normal_ht+0x16af0, %rsi lea addresses_normal_ht+0x9970, %rdi nop sub $27993, %rax mov $42, %rcx rep movsl nop and %rcx, %rcx lea addresses_A_ht+0x1ac70, %rdi nop cmp %rax, %rax mov $0x6162636465666768, %r10 movq %r10, %xmm5 movups %xmm5, (%rdi) nop nop nop and %rsi, %rsi lea addresses_normal_ht+0x9d70, %r10 lfence movw $0x6162, (%r10) nop nop nop add $57900, %rbx lea addresses_WT_ht+0x9fc0, %rsi nop and $63735, %r10 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rsi) nop xor $44056, %rdi lea addresses_WC_ht+0xd370, %rsi lea addresses_A_ht+0x15840, %rdi nop nop cmp %r9, %r9 mov $22, %rcx rep movsq sub $4655, %rbx lea addresses_WC_ht+0xc910, %rsi nop nop cmp $1083, %rdi mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%rsi) nop nop xor $34004, %rax lea addresses_A_ht+0x6230, %rax nop sub %r8, %r8 mov $0x6162636465666768, %rcx movq %rcx, (%rax) nop nop nop nop nop cmp $46397, %rcx lea addresses_A_ht+0x4b20, %rsi clflush (%rsi) nop nop nop nop nop add %r9, %r9 movl $0x61626364, (%rsi) add $32769, %r9 lea addresses_A_ht+0x15b70, %rsi lea addresses_UC_ht+0x5038, %rdi nop nop nop nop sub %r8, %r8 mov $71, %rcx rep movsq and $21241, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi // Store lea addresses_normal+0x1fadc, %r13 nop nop nop add %rdx, %rdx movb $0x51, (%r13) nop nop nop cmp %rax, %rax // REPMOV lea addresses_WT+0x7570, %rsi lea addresses_WT+0x1e970, %rdi nop nop nop nop nop cmp $54258, %r15 mov $81, %rcx rep movsw nop nop nop nop and %r15, %r15 // Faulty Load lea addresses_WT+0x1e970, %rcx nop add $20913, %r15 mov (%rcx), %r11d lea oracles, %r13 and $0xff, %r11 shlq $12, %r11 mov (%r13,%r11,1), %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'same': True, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 0, 'same': True}, 'OP': 'REPM'} [Faulty Load] {'src': {'type': 'addresses_WT', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
35.521739
2,999
0.659051
6983f22008cc0c0e0e2460f21753bf73beeea468
690
asm
Assembly
oeis/065/A065920.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/065/A065920.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/065/A065920.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A065920: Bessel polynomial {y_n}'(2). ; Submitted by Christian Krause ; 0,1,15,246,4810,111315,2994621,92069740,3188772756,122934101445,5223324100555,242563221769506,12224586738476190,664572113979550231,38767776344788218105,2415639337342677314520,160131212043826343202856,11252570188971518813465865,835556318052201162207985671,65374188453306349303867462990,5375553356323822774111816145010,463458213241274102935481345118171,41806467572553601302679003675939765,3938002053077811052444370355783639876,386662036204003606584213076623328314300 mov $1,1 mov $2,1 mov $3,$0 lpb $3 mul $1,$0 mul $1,2 sub $3,1 mul $2,$3 add $1,$2 max $3,1 add $0,$3 lpe mul $1,$0 div $1,$2 mov $0,$1
34.5
466
0.818841
ef8b376631212394edfe662916e8e055c64392fe
472
asm
Assembly
programs/oeis/062/A062730.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/062/A062730.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/062/A062730.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A062730: Rows of Pascal's triangle which contain 3 terms in arithmetic progression. ; 7,12,14,19,21,23,32,34,45,47,60,62,77,79,96,98,117,119,140,142,165,167,192,194,221,223,252,254,285,287,320,322,357,359,396,398,437,439,480,482,525,527,572,574,621,623,672,674,725,727,780,782,837,839 mov $4,$0 sub $0,4 div $0,2 add $0,1 mov $2,1 mov $3,$0 mov $0,9 add $3,2 mul $2,$3 pow $2,2 add $2,3 lpb $0 add $2,2 div $0,$2 lpe mov $1,$2 sub $1,1 mov $5,$4 mul $5,2 add $1,$5
19.666667
200
0.658898
f16ed7cc9973382da6a193ca94beb6994847a162
425
asm
Assembly
10_exec/_start.asm
ieeqc/ASM_LIB
27ccf1ef7d30b505cf09aa1e20e701815bcecb3e
[ "MIT" ]
null
null
null
10_exec/_start.asm
ieeqc/ASM_LIB
27ccf1ef7d30b505cf09aa1e20e701815bcecb3e
[ "MIT" ]
null
null
null
10_exec/_start.asm
ieeqc/ASM_LIB
27ccf1ef7d30b505cf09aa1e20e701815bcecb3e
[ "MIT" ]
null
null
null
;; call/ret 指令登场 %include 'myfunction.asm' section .data command db '/bin/ls', 0h arg1 db '-l', 0h arguments dd command dd arg1 dd 0h environment dd 0h section .bss section .text global _start _start: mov edx, environment mov ecx, arguments mov ebx, command mov eax, 11 int 80h call asm_quit
16.346154
32
0.517647
31513d8635ef38c870aabf444923768bef98bbbe
3,884
asm
Assembly
apps/ashet-bios/main.asm
MasterQ32/spu-mark-ii
e6ee2a8206cbf32cf81ea217c087bd47a0fd0ec5
[ "MIT" ]
13
2020-05-03T15:47:51.000Z
2021-09-18T04:44:57.000Z
apps/ashet-bios/main.asm
MasterQ32/spu-mark-ii
e6ee2a8206cbf32cf81ea217c087bd47a0fd0ec5
[ "MIT" ]
null
null
null
apps/ashet-bios/main.asm
MasterQ32/spu-mark-ii
e6ee2a8206cbf32cf81ea217c087bd47a0fd0ec5
[ "MIT" ]
3
2020-06-24T16:04:44.000Z
2021-07-20T10:54:11.000Z
.include "../library/ashet/syscalls.inc" .include "../library/ashet/io-page.inc" .org 0x0000 ; interrupt table at the start of the ROM ; this must be fixed in location bios.vectors: .dw bios.entrypoint ; Reset .dw bios.interrupt.handler.nmi ; NMI .dw bios.interrupt.handler.bus ; BUS .dw 0x0000 ; RESERVED .dw bios.interrupt.handler.arith ; ARITH .dw bios.interrupt.handler.software ; SOFTWARE .dw bios.interrupt.handler.reserved ; RESERVED .dw bios.interrupt.handler.irq ; IRQ ; the bios syscall table ; this must be fixed in location, each slot in the list is 2 word wide. bios.syscall.table: jmp bios.syscall.uart.setup jmp bios.syscall.uart.status jmp bios.syscall.uart.writeChar jmp bios.syscall.uart.readChar ; we spare half of the first page for potential future syscall entries ; so we don't have to relocate everything ; so the rest of the bios code starts after the first half page .org 0x0800 bios.syscall.invalid: ret ; uart.setup(mode_selector: u16, baud_selector: u16) void ; changes the UART configuration ; mode_selector: ; 0…7 => uart [ COM1, COM2, IR1, -, … ] ; 8…9 => parity [ none, even, odd, - ] ; 10…10 => stop bits [ one, two ] ; 11…13 => data width [ 5, 6, 7, 8, 9, -, -, - ] ; baud_selector: ; 0 => 1200 ; 1 => 2400 ; 2 => 4800 ; 3 => 19200 ; 4 => 38400 ; 5 => 57600 ; 6 => 115200 ; bios.syscall.uart.setup: ; TODO: Implement this ret ; uart.status(uart: u16) u16 ; returns the status of a uart ; uart: ; 0…7 => uart [ COM1, COM2, IR1, -, … ] ; <return>: ; 0…0 => ??? ; bios.syscall.uart.status: set 2, 0x0000 ; just return empty status for now ret ; uart.writeChar(uart: u16, char: u16) void ; writes a character to the uart ; uart: ; 0…7 => uart [ COM1, COM2, IR1, -, … ] ; char: ; 0…9 => max bits to send over the wire ; bios.syscall.uart.writeChar: get -2 st 0x4000 ret ; uart.readChar(uart: u16) u16 ; writes a character to the uart ; uart: ; 0…7 => uart [ COM1, COM2, IR1, -, … ] ; <return>: ; 0…9 => the bits received from the wire ; 15…15 => if 1, the fifo was empty. ; FR.Z => if 1, the received bits are all 0 ; FR.N => if 1, the fifo was empty. ; bios.syscall.uart.readChar: set 2, 0xFFFF ; just return "empty fifo" for now ret bios.interrupt.handler.nmi: st 'N', 0x4000 jmp bios.hang bios.interrupt.handler.bus: st 'B', 0x4000 jmp bios.hang bios.interrupt.handler.arith: st 'A', 0x4000 iret bios.interrupt.handler.software: st 'S', 0x4000 iret bios.interrupt.handler.reserved: st 'R', 0x4000 iret bios.interrupt.handler.irq: st 'I', 0x4000 iret bios.entrypoint: TODO: Rebuild this to be correct st 0x7FE1, 0xF002 ; map I/O page to second page 0x1000 ; Map some RAM in the upper half st 0x8001, 0xF010 st 0x8011, 0xF012 st 0x8021, 0xF014 st 0x8031, 0xF016 st 0x8041, 0xF018 st 0x8051, 0xF01A st 0x8061, 0xF01C st 0x8071, 0xF01E ; this will unmap the MMU from 0xF000 st 0x0000, 0x1000 ; map framebuffer to 0x800000 st 0x0080, 0x1002 st 0x8101, 0x100E ; map RAM to 0x7000…0x7FFF for stack st 0x7F21, 0x1008 ; map UART0 to 0x4000 ; init a stack spset 0x8000 bpset 0x8000 frset 0xFFF0, ~0x00F0 st 'H', 0x4000 st 'e', 0x4000 st 'l', 0x4000 st 'l', 0x4000 st 'o', 0x4000 st '\r', 0x4000 st '\n', 0x4000 push 0x80 vga_loop: push 0x8000 ; push pixel offset vga_fill: dup ; duplicate address bswap [i0:peek] xor get -1 add ;.dw 0x8001 ; enable tracing st8 [i1:peek]; store color to current pixel ;.dw 0x8000 ; disable tracing add 1 [f:yes] ; increment address by one [ex:nonzero] jmp vga_fill ; if it overflowed into 0x0000, stop looping pop ; remove address add 1 jmp vga_loop .org 0x0500 bios.hang: frset 0x0000 ; disable all maskable interrupts jmp bios.hang
21.943503
71
0.65757
454995517231dd93c45b707215bd07e4afe2739d
1,066
asm
Assembly
programs/oeis/047/A047411.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047411.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047411.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047411: Numbers that are congruent to {1, 2, 4, 6} mod 8. ; 1,2,4,6,9,10,12,14,17,18,20,22,25,26,28,30,33,34,36,38,41,42,44,46,49,50,52,54,57,58,60,62,65,66,68,70,73,74,76,78,81,82,84,86,89,90,92,94,97,98,100,102,105,106,108,110,113,114,116,118,121,122,124,126,129,130,132,134,137,138,140,142,145,146,148,150,153,154,156,158,161,162,164,166,169,170,172,174,177,178,180,182,185,186,188,190,193,194,196,198,201,202,204,206,209,210,212,214,217,218,220,222,225,226,228,230,233,234,236,238,241,242,244,246,249,250,252,254,257,258,260,262,265,266,268,270,273,274,276,278,281,282,284,286,289,290,292,294,297,298,300,302,305,306,308,310,313,314,316,318,321,322,324,326,329,330,332,334,337,338,340,342,345,346,348,350,353,354,356,358,361,362,364,366,369,370,372,374,377,378,380,382,385,386,388,390,393,394,396,398,401,402,404,406,409,410,412,414,417,418,420,422,425,426,428,430,433,434,436,438,441,442,444,446,449,450,452,454,457,458,460,462,465,466,468,470,473,474,476,478,481,482,484,486,489,490,492,494,497,498 mov $1,$0 add $0,23 mod $0,4 mul $1,6 add $1,$0 div $1,3
106.6
946
0.718574
b0bdcf2d0aa543ce2770938a3e8e51b2a0f6be9f
718
asm
Assembly
cards/bn4/ModCards/134-E018 FirstLifeAura (0C).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
10
2017-12-05T14:25:38.000Z
2022-02-21T04:28:00.000Z
cards/bn4/ModCards/134-E018 FirstLifeAura (0C).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
cards/bn4/ModCards/134-E018 FirstLifeAura (0C).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 78 card_no equ "078" card_sub equ "Mod Card 078" card_sub_x equ 64 card_desc_len equ 3 card_desc_1 equ "Address 0C" card_desc_2 equ "FirstLifeAura" card_desc_3 equ "Buggy" card_name_jp_full equ "ファーストドリームオーラ" card_name_jp_game equ "ファーストドリームオーラ" card_name_en_full equ "FirstLifeAura" card_name_en_game equ "FirstLifeAura" card_address equ "0C" card_address_id equ 2 card_bug equ 1 card_wrote_en equ "FirstLifeAura" card_wrote_jp equ "ファーストドリームオーラ"
26.592593
37
0.792479
684bb1735f58b5fb5b331fa44d43df1df79a5195
7,139
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1083.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1083.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1083.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 %r15 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1c702, %rsi lea addresses_WT_ht+0x1df02, %rdi cmp %r10, %r10 mov $24, %rcx rep movsw nop nop nop nop nop add $27642, %r15 lea addresses_D_ht+0x5602, %rsi lea addresses_WC_ht+0x6702, %rdi nop xor $32631, %r9 mov $123, %rcx rep movsw nop nop nop nop xor %r15, %r15 lea addresses_UC_ht+0x15e02, %r9 nop nop nop and $63656, %rax mov $0x6162636465666768, %r10 movq %r10, %xmm2 vmovups %ymm2, (%r9) nop sub %r15, %r15 lea addresses_UC_ht+0x15902, %r15 nop nop cmp %rsi, %rsi and $0xffffffffffffffc0, %r15 vmovaps (%r15), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rdi nop add $7554, %rax lea addresses_WT_ht+0x154c2, %rsi lea addresses_WT_ht+0x6702, %rdi clflush (%rdi) and %rdx, %rdx mov $67, %rcx rep movsl add %rdi, %rdi lea addresses_A_ht+0x10702, %r9 nop nop nop nop nop add %r10, %r10 mov $0x6162636465666768, %r15 movq %r15, %xmm2 vmovups %ymm2, (%r9) nop sub $33854, %r15 lea addresses_UC_ht+0x18682, %rdx nop nop nop nop and $41538, %r10 vmovups (%rdx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rcx nop nop nop xor $62528, %r15 lea addresses_WT_ht+0xbb2a, %rcx nop add $28950, %r10 movb (%rcx), %r15b nop nop xor %rax, %rax lea addresses_UC_ht+0x9902, %r9 nop nop nop nop xor $26843, %rsi movb (%r9), %r10b nop nop and %r10, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r8 push %rbx push %rsi // Store mov $0x674249000000052a, %rsi nop dec %r11 mov $0x5152535455565758, %rbx movq %rbx, %xmm0 movups %xmm0, (%rsi) nop nop cmp %r14, %r14 // Store lea addresses_WT+0x1a4f8, %rsi nop nop xor $31980, %r13 movw $0x5152, (%rsi) nop nop nop and $17662, %r13 // Load lea addresses_WT+0x8802, %rbx dec %r11 mov (%rbx), %si nop nop nop nop sub $46031, %r12 // Faulty Load lea addresses_US+0x7f02, %r12 nop nop nop nop add %rbx, %rbx vmovups (%r12), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %r11 lea oracles, %r13 and $0xff, %r11 shlq $12, %r11 mov (%r13,%r11,1), %r11 pop %rsi pop %rbx pop %r8 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': 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 */
35.874372
2,999
0.656955
5acd0452864666675cb88cd8c4b719b4b0b10ada
163
asm
Assembly
samples/exec_file.asm
skwirl42/robco-processor
eb92ee0d2402403b36b9b796f80c3d46aaed1442
[ "MIT" ]
null
null
null
samples/exec_file.asm
skwirl42/robco-processor
eb92ee0d2402403b36b9b796f80c3d46aaed1442
[ "MIT" ]
30
2020-12-29T13:25:25.000Z
2021-09-28T12:03:35.000Z
samples/exec_file.asm
skwirl42/robco-processor
eb92ee0d2402403b36b9b796f80c3d46aaed1442
[ "MIT" ]
null
null
null
.struct exec_header total_length 2 segment_count 2 exec_start_address 2 .endstruct .struct exec_segment_header location 2 length 2 is_exec 1 .endstruct
13.583333
27
0.797546
d1f9c3f4e844bbe50ab756c5dba7940954dfd1e2
436
asm
Assembly
oeis/334/A334669.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/334/A334669.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/334/A334669.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A334669: Denominator of Sum_{k=1..n} (-1)^(k+1)/k^7. ; Submitted by Jamie Morken(s3) ; 1,128,279936,35831808,2799360000000,2799360000000,2305393332480000000,295090346557440000000,645362587921121280000000,645362587921121280000000,12576291107821424895098880000000,12576291107821424895098880000000,789143616376081512994335288360960000000 seq $0,51426 ; Least common multiple of {2, 4, 6, ..., 2n}. add $2,$0 div $2,2 pow $2,7 mov $0,$2
43.6
249
0.793578
dd552ac9224a1df4388168cf428c2d257bb38688
264
asm
Assembly
data/mapHeaders/RockTunnel1F.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
data/mapHeaders/RockTunnel1F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
data/mapHeaders/RockTunnel1F.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
RockTunnel1F_h: db CAVERN ; tileset db ROCK_TUNNEL_1F_HEIGHT, ROCK_TUNNEL_1F_WIDTH ; dimensions (y, x) dw RockTunnel1F_Blocks ; blocks dw RockTunnel1F_TextPointers ; texts dw RockTunnel1F_Script ; scripts db 0 ; connections dw RockTunnel1F_Object ; objects
29.333333
67
0.806818
2aeccb7648a914128929794c9c22c0567de63751
325
asm
Assembly
libsrc/_DEVELOPMENT/im2/c/sdcc/im2_create_generic_isr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/im2/c/sdcc/im2_create_generic_isr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/im2/c/sdcc/im2_create_generic_isr.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *im2_create_generic_isr(uint8_t num_callback, void *address) SECTION code_clib SECTION code_z80 PUBLIC _im2_create_generic_isr EXTERN _im2_create_generic_isr_callee _im2_create_generic_isr: pop hl dec sp pop af pop de push de push af inc sp push hl jp _im2_create_generic_isr_callee
13.541667
67
0.769231
432cefaa555e301c68dd333da2d5e6b2e0f2867a
71
asm
Assembly
c51-assembler/cpu-halt.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
10
2018-04-05T05:12:15.000Z
2022-03-18T19:06:53.000Z
c51-assembler/cpu-halt.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
null
null
null
c51-assembler/cpu-halt.asm
AravinthPanch/various-hardware-projects
923e9adcb3688312c507bd8053676abf8866eaba
[ "Apache-2.0" ]
7
2020-02-09T15:07:15.000Z
2021-11-04T09:17:39.000Z
org 0h mov p0,#20h mov p1,#21h mov p2,#22h mov p3,#23h sjmp $ end
10.142857
12
0.619718
375afd4086c551cb2a4c68e6e511b26cd0740585
190
asm
Assembly
data/pokemon/dex_entries/weavile.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/dex_entries/weavile.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/dex_entries/weavile.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
db "SHARP CLAW@" ; species name db "It lives in snowy" next "regions. It carves" next "patterns in trees" page "with its claws to" next "serve as a signal" next "to other #MON.@"
19
32
0.663158
158a251c5595674b89a2641142d297e6ae928b1d
205
asm
Assembly
src/no_charge_power_needed.asm
mvdhout1992/ts-patches
a426970abeb6993eea6703d1a756fd74489ffed2
[ "MIT" ]
33
2016-07-30T14:17:28.000Z
2021-12-19T15:45:19.000Z
src/no_charge_power_needed.asm
A-Productions/ts-patches
326db731f7226d9e803feab475777c730688634e
[ "MIT" ]
73
2018-08-17T00:25:19.000Z
2021-05-10T08:31:15.000Z
src/no_charge_power_needed.asm
A-Productions/ts-patches
326db731f7226d9e803feab475777c730688634e
[ "MIT" ]
18
2017-05-16T11:28:06.000Z
2022-03-20T20:41:03.000Z
%include "TiberianSun.inc" %include "macros/patch.inc" %include "macros/datatypes.inc" ;;; When Charges=Yes, this patch allows the structure to shoot even on low power @CLEAR 0x00435271, 0x90, 0x00435287
29.285714
80
0.770732
de304c84c7830d1b89b194f16cf2d60a562b3d2a
2,794
asm
Assembly
45/beef/cw/kernel/gmemory3.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/beef/cw/kernel/gmemory3.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/beef/cw/kernel/gmemory3.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
;* ;* COW : Character Oriented Windows ;* ;* gmemory3.asm : Global memory for DOS 3 ;* * NOTE : the old size of the block is stored in the last 2 bytes ;* * of the MSDOS arena !! TITLE GMEMORY - Windows interface to DOS memory management DOS 3 .xlist include kernel.inc .list sBegin KERNEL assumes CS,KERNEL assumes DS,DATA ;********** CparaOfCb ********** ;* entry : DX:BX = long count of bytes ;* * round up to number of paragraphs ;* exit : BX = # of paragraphs cProc CparaOfCb,<NEAR, ATOMIC> cBegin CparaOfCb add bx,0fh ;* round up adc dx,0 mov cx,4 shift_loop: shr dx,1 rcr bx,1 loop shift_loop cEnd CparaOfCb cProc GlobalAlloc,<PUBLIC,FAR,ATOMIC> parmW flags parmD lcb cBegin GlobalAlloc mov bx,word ptr (lcb) mov dx,word ptr (lcb+2) ;* DX:AX = lcb cCall CparaOfCb mov ah,48h ;* alloc block push bx int 21h pop bx jc alloc_error dec ax mov es,ax ;* point to arena inc ax mov es:[14],bx ;* save size alloc_end: ;* ax = hgmem cEnd GlobalAlloc alloc_error: xor ax,ax ;* return NULL handle jmp alloc_end cProc GlobalReAlloc,<PUBLIC,FAR,ATOMIC> parmW hgmem parmD lcb parmW flags cBegin GlobalReAlloc mov bx,word ptr (lcb) mov dx,word ptr (lcb+2) ;* DX:AX = lcb cCall CparaOfCb mov es,hgmem ;* block to grow/shrink mov ah,4ah ;* change size of block push bx int 21h pop bx mov ax,hgmem jnc realloc_ok ;* * failed : attempt to allocate new block mov ah,48h push bx int 21h pop bx jc realloc_error ;* sorry - no room ;* * copy from old to new push si push di push ds mov es,ax xor di,di ;* es:di => destination mov dx,hgmem ;* old source dec dx mov ds,dx ;* point to arena mov cx,ds:[14] ;* old size in paragraphs inc dx mov ds,dx ;* point to old data xor si,si ;* ds:si => old data shl cx,1 shl cx,1 shl cx,1 ;* cx = cw rep movsw ;* move to new location pop ds pop di pop si push ax ;* new hgmem mov es,hgmem mov ah,49h int 21h ;* free old block pop ax ;* new hgmem realloc_ok: ;* ax = hgmem dec ax mov es,ax ;* point to arena mov es:[14],bx ;* save new size inc ax realloc_end: cEnd GlobalReAlloc realloc_error: xor ax,ax ;* return NULL handle jmp realloc_end cProc GlobalFree,<PUBLIC,FAR,ATOMIC> parmW hgmem cBegin GlobalFree mov es,hgmem mov ah,49h int 21h ;* free block cEnd GlobalFree cProc GlobalLock,<PUBLIC,FAR,ATOMIC> parmW hgmem cBegin GlobalLock mov dx,hgmem xor ax,ax cEnd GlobalLock cProc GlobalUnlock,<PUBLIC,FAR,ATOMIC> parmW hgmem cBegin GlobalUnlock ;* * Do nothing cEnd GlobalUnlock cProc GlobalHandle,<PUBLIC,FAR,ATOMIC> parmW hgmem cBegin GlobalHandle mov ax,hgmem ;* return handle/address mov dx,ax ;* in both parts cEnd GlobalHandle sEnd KERNEL END
16.150289
67
0.674302
76d8679464be8ef0c64f2e92b4cb21ed3a8dabb9
691
asm
Assembly
cards/bn4/ModCards/134-F021 GigaFolder1 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
10
2017-12-05T14:25:38.000Z
2022-02-21T04:28:00.000Z
cards/bn4/ModCards/134-F021 GigaFolder1 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
cards/bn4/ModCards/134-F021 GigaFolder1 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
d591ddca5566dbb323dc19c11e69410fa4073d1b
[ "Unlicense" ]
null
null
null
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 111 card_no equ "111" card_sub equ "Mod Card 111" card_sub_x equ 64 card_desc_len equ 2 card_desc_1 equ "Address 0A" card_desc_2 equ "GigaFolder1" card_desc_3 equ "" card_name_jp_full equ "ギガフォルダ1" card_name_jp_game equ "ギガフォルダ1" card_name_en_full equ "GigaFolder1" card_name_en_game equ "GigaFolder1" card_address equ "0A" card_address_id equ 0 card_bug equ 0 card_wrote_en equ "GigaFolder1" card_wrote_jp equ "ギガフォルダ1"
25.592593
35
0.78437
db6019356cde241091fefa5712d36524007a0e34
1,097
asm
Assembly
examples/exercicio_3.asm
AlessandroFonseca/util.asm
d4c86671e6ee02bb04c68993f06a7c67f5fd0716
[ "MIT" ]
1
2020-07-08T02:51:26.000Z
2020-07-08T02:51:26.000Z
examples/exercicio_3.asm
AlessandroFonseca/util.asm
d4c86671e6ee02bb04c68993f06a7c67f5fd0716
[ "MIT" ]
null
null
null
examples/exercicio_3.asm
AlessandroFonseca/util.asm
d4c86671e6ee02bb04c68993f06a7c67f5fd0716
[ "MIT" ]
null
null
null
%include '../util.asm' default rel section .text global _main ; ;rótulo no código é como se fosse funçao ;rótulo na área de dados é nome de variável ; _main: ;rotulo inicio do programa mov r10, 0 leitura: call readint lea rdi, [inteiros] mov [rdi+r10*8], rax add r10, 1 cmp r10, 8 je continua jmp leitura continua: mov r10, 0 proximaleitura: lea rdi, [inteiros] mov rax, [rdi+r10*8] mov rbx, 3 mov rdx, 0 ;https://stackoverflow.com/questions/32927651/x86-assembly-nasm-floating-point-exception-not-dividing-by-0 idiv rbx ; rax= rax/rbx ; rdx = rax%rbx cmp rdx,0 je multiplo jmp continua2 multiplo: mov r9, [rdi+r10*8] continua2: add r10, 1 ; incrementar a pos vet cmp r10, 8 ; compara se percorreu todo je mostraultimo jmp proximaleitura mostraultimo: call endl mov rdi, r9 call printint call endl call exit ; termina o programa section .bss; declaração de dados ; int maior; inteiros: resq 8
20.314815
122
0.61258
ed875826bf92dc516ba57e9f1207b40446009945
577
asm
Assembly
exodemo.asm
NegativeCharge/exomizer-3.1.0
a71957317f32ee3164dec5634d2385c00332aa7a
[ "MIT" ]
3
2021-03-20T08:14:27.000Z
2021-04-10T19:42:01.000Z
exodemo.asm
NegativeCharge/exomizer-3.1.0
a71957317f32ee3164dec5634d2385c00332aa7a
[ "MIT" ]
1
2021-04-25T14:40:50.000Z
2021-04-25T17:18:06.000Z
exodemo.asm
NegativeCharge/exomizer-3.1.0
a71957317f32ee3164dec5634d2385c00332aa7a
[ "MIT" ]
2
2021-03-20T08:14:30.000Z
2021-03-29T05:41:28.000Z
; OS defines INCLUDE "os.asm" ; Zero page vars ORG &50 include "exomizer310decruncher.h.asm" ORG &1200 .start ; Entry point JSR exo_demo .infinite_loop JSR infinite_loop ; Back to OS RTS .exo_demo { ; Mode 0 (640x256, 0 colours) LDA #&16:JSR OSWRCH LDA #&00:JSR OSWRCH ; Hide the cursor, with cursor start register (in scanlines) LDA #&0A:STA CRTC00 LDA #&20:STA CRTC01 LDX #lo(xscr) LDY #hi(xscr) LDA #hi(MODE0BASE) jsr decrunch_to_page_A RTS } include "exomizer310decruncher.asm" .xscr INCBIN "XSCR" .end SAVE "exo", start, end
12.020833
62
0.681109
a93879ad7e79924cda76699bf74a2cbfee7749a1
362
asm
Assembly
libsrc/_DEVELOPMENT/libgen/c/sdcc/glob_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/libgen/c/sdcc/glob_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/libgen/c/sdcc/glob_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; unsigned char glob(const char *s, const char *pattern) SECTION code_string PUBLIC _glob_callee PUBLIC l0_glob_callee EXTERN asm_glob _glob_callee: pop af pop hl pop de push af l0_glob_callee: call asm_glob ld l,1 ret nc ; return 1 for match dec l ; return 0 for no match ret
13.923077
56
0.604972
d22e9eacc93dc3ee1d2d1f3ac4859192576f3c9f
10,660
asm
Assembly
P6/data_P6_2/MDTest44.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/MDTest44.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/MDTest44.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
ori $ra,$ra,0xf divu $5,$ra sb $0,9($0) sb $6,9($0) addu $2,$2,$3 mthi $6 ori $1,$4,51630 lb $4,7($0) divu $5,$ra lb $0,1($0) mflo $4 sb $4,0($0) sll $4,$1,27 lui $2,1225 mflo $4 divu $3,$ra srav $4,$4,$2 multu $4,$4 mtlo $2 sll $4,$1,10 mflo $4 ori $4,$1,50283 ori $1,$2,45477 sb $4,12($0) divu $4,$ra mtlo $6 sb $5,6($0) mflo $2 mflo $1 mthi $5 mflo $4 mflo $3 lui $6,23584 ori $3,$2,50857 srav $5,$4,$5 addu $4,$4,$2 lui $1,48787 mthi $2 div $6,$ra mfhi $3 addu $5,$6,$6 mflo $5 lui $5,53827 div $4,$ra srav $5,$4,$4 mthi $4 addu $5,$5,$5 mult $1,$2 divu $1,$ra mfhi $1 ori $5,$4,16400 lui $0,9220 multu $1,$2 mthi $6 divu $2,$ra sll $1,$2,23 lui $5,26376 addiu $2,$2,-2360 mflo $5 lui $4,20152 mult $2,$2 ori $4,$0,27313 mthi $6 mthi $5 mult $5,$1 addiu $6,$1,7842 srav $3,$2,$3 mult $4,$4 srav $1,$5,$5 mthi $2 addu $0,$0,$4 sb $1,9($0) mult $1,$5 addu $1,$5,$2 multu $4,$6 mult $1,$0 lb $0,2($0) srav $4,$4,$4 lui $6,43612 lb $1,16($0) sb $4,12($0) addu $4,$4,$4 multu $1,$2 mult $3,$4 mtlo $4 mtlo $4 srav $4,$4,$0 sll $4,$4,29 addiu $1,$5,-11530 addu $5,$1,$4 mult $1,$1 ori $4,$4,407 mflo $5 addiu $1,$4,-7958 div $4,$ra mfhi $4 addiu $3,$4,-30259 mflo $0 mthi $5 addu $0,$6,$0 addu $4,$5,$5 addiu $2,$2,-11783 sll $5,$5,11 mult $5,$5 mfhi $5 sll $4,$1,2 div $1,$ra mtlo $1 divu $0,$ra addu $6,$4,$2 mfhi $6 sll $0,$5,12 div $0,$ra mflo $0 mfhi $0 mflo $4 lui $4,4249 srav $1,$2,$5 mult $2,$2 mflo $6 div $4,$ra ori $2,$2,2843 mflo $3 mfhi $1 multu $6,$2 ori $2,$2,21417 srav $4,$2,$3 addiu $0,$2,12389 srav $4,$4,$2 divu $1,$ra ori $2,$4,14770 ori $2,$5,34224 mult $4,$4 mflo $5 divu $1,$ra mflo $6 mfhi $5 mult $3,$0 sll $3,$3,26 lui $3,30575 sll $3,$5,12 sb $2,12($0) mfhi $4 div $4,$ra addiu $2,$2,-3952 ori $3,$6,32182 mthi $4 mfhi $4 mthi $0 addu $6,$1,$3 srav $2,$2,$2 sb $2,1($0) mtlo $4 sll $4,$1,11 div $5,$ra mult $3,$0 srav $2,$5,$2 mtlo $4 div $4,$ra divu $4,$ra mult $0,$4 mthi $5 addu $6,$1,$3 mtlo $2 addiu $4,$4,-26305 mtlo $4 addiu $3,$4,17025 sll $2,$2,17 sb $1,9($0) sll $2,$6,0 div $3,$ra mtlo $4 mult $5,$5 ori $3,$4,6538 mflo $4 multu $4,$5 srav $2,$1,$2 multu $4,$5 addiu $6,$6,-9601 sb $4,1($0) ori $5,$0,16893 div $0,$ra addu $4,$4,$5 sll $1,$3,15 mult $2,$2 multu $6,$2 addiu $4,$5,28074 div $5,$ra div $4,$ra sb $4,5($0) divu $0,$ra mflo $6 srav $1,$2,$0 divu $0,$ra ori $1,$5,41297 mult $4,$4 mfhi $5 mflo $2 srav $2,$2,$2 mfhi $5 sll $5,$4,25 div $3,$ra divu $1,$ra srav $0,$0,$4 mthi $5 div $5,$ra divu $4,$ra div $5,$ra addu $4,$3,$3 divu $4,$ra mfhi $5 ori $4,$0,54758 addu $5,$1,$2 mthi $4 lb $1,9($0) sb $4,7($0) lb $3,14($0) div $1,$ra multu $5,$4 mfhi $5 lb $2,1($0) divu $2,$ra addiu $5,$6,20589 multu $0,$0 mthi $0 mfhi $3 mtlo $3 lb $4,14($0) multu $5,$1 mflo $6 lui $4,2017 lui $4,26533 sb $4,15($0) addiu $3,$0,-20289 mthi $6 div $1,$ra div $4,$ra mfhi $0 mtlo $3 addiu $1,$2,25965 divu $5,$ra sb $4,12($0) mtlo $6 ori $2,$2,46993 multu $2,$2 mtlo $5 lui $4,10518 lb $1,13($0) multu $2,$2 multu $6,$2 addiu $4,$4,-2857 sb $5,4($0) mthi $1 lb $4,8($0) divu $1,$ra addiu $0,$3,10527 mthi $2 srav $0,$2,$3 mtlo $0 addu $4,$4,$5 div $4,$ra ori $1,$5,16096 sb $5,8($0) lb $4,3($0) div $1,$ra mflo $1 div $1,$ra div $4,$ra mult $0,$5 mthi $5 addiu $5,$4,10253 lui $2,33762 mult $4,$4 addiu $4,$4,23465 mflo $1 mflo $4 mfhi $5 addu $4,$2,$6 ori $6,$1,58889 sll $1,$1,7 mult $1,$1 multu $4,$0 sll $1,$5,11 addu $4,$2,$4 mtlo $0 multu $2,$2 lui $1,43416 lb $6,1($0) sll $5,$1,12 lui $3,44416 mtlo $4 ori $4,$2,50519 addiu $4,$0,-3001 srav $5,$5,$5 srav $5,$2,$1 mult $6,$4 ori $0,$0,62717 mfhi $4 mult $4,$4 divu $1,$ra sll $5,$5,9 mtlo $6 mthi $1 mflo $5 addu $2,$4,$2 lui $6,18666 sll $1,$4,11 srav $0,$5,$5 mthi $5 mthi $4 lb $5,4($0) ori $0,$0,65380 mult $5,$1 lui $1,6471 lui $6,33890 ori $4,$2,45530 lui $4,22062 lui $4,37281 lui $5,38402 ori $0,$3,3502 sb $6,9($0) divu $1,$ra addiu $6,$4,4512 srav $1,$3,$3 multu $4,$1 div $3,$ra mtlo $1 addu $3,$0,$3 lui $4,38273 sll $6,$6,11 mult $4,$4 mthi $3 mtlo $3 mthi $0 sll $4,$4,22 mtlo $5 mult $0,$2 addiu $4,$5,32347 ori $1,$4,52747 multu $5,$5 divu $3,$ra div $5,$ra addu $5,$5,$2 mult $6,$1 div $0,$ra mflo $3 divu $6,$ra lb $1,16($0) div $0,$ra sll $4,$2,20 mtlo $2 mflo $4 mthi $6 div $4,$ra lb $5,6($0) addu $5,$4,$4 lb $5,13($0) ori $4,$4,1122 addu $5,$6,$6 mflo $0 mult $0,$1 div $1,$ra div $3,$ra mfhi $5 multu $4,$2 mflo $1 sb $4,13($0) sll $5,$6,28 addu $5,$5,$5 addu $1,$1,$1 divu $4,$ra sb $3,5($0) srav $4,$4,$3 lui $3,10025 mflo $1 addiu $6,$6,20376 lb $0,1($0) ori $6,$4,61306 mtlo $4 sb $4,15($0) srav $4,$4,$3 mult $0,$0 mtlo $0 ori $4,$4,53413 div $5,$ra lui $5,35341 mflo $0 multu $4,$4 addu $1,$1,$1 mtlo $3 lui $6,6443 sll $0,$3,3 mfhi $1 mult $4,$5 mfhi $4 mfhi $0 ori $1,$4,9924 mflo $4 sll $3,$0,23 mflo $1 mfhi $0 srav $5,$4,$0 mflo $1 multu $5,$5 srav $3,$3,$3 ori $0,$4,49090 div $4,$ra addiu $0,$2,17959 sb $1,5($0) srav $2,$5,$2 mtlo $4 mflo $4 addu $4,$4,$5 div $4,$ra srav $5,$3,$3 mtlo $2 lb $6,4($0) lui $1,19542 mtlo $5 lui $2,45532 mflo $1 mfhi $4 addu $5,$2,$2 sll $4,$2,31 div $1,$ra mfhi $1 addu $1,$2,$3 mthi $6 divu $5,$ra srav $4,$6,$4 div $0,$ra mult $0,$1 srav $5,$4,$2 divu $5,$ra multu $4,$6 mfhi $3 sb $1,12($0) mtlo $0 srav $2,$1,$2 addiu $5,$0,-14322 mtlo $1 divu $1,$ra lui $4,29247 multu $1,$5 lb $4,16($0) mthi $4 mult $4,$2 addiu $6,$6,-9278 mult $5,$5 mfhi $4 ori $6,$4,28705 mthi $1 addiu $1,$1,5913 mthi $3 sll $0,$5,0 mflo $1 divu $4,$ra mthi $4 sb $5,16($0) mflo $1 lui $1,32460 srav $4,$4,$4 lui $1,45931 divu $5,$ra sll $4,$4,31 multu $1,$2 mfhi $4 div $0,$ra sll $4,$4,6 srav $4,$5,$4 lb $6,12($0) mthi $5 lb $5,10($0) lb $2,14($0) sb $0,4($0) div $4,$ra mfhi $5 mtlo $4 sb $4,8($0) mthi $5 lui $4,33130 sb $4,7($0) mult $0,$2 mflo $6 multu $1,$1 lui $4,61243 addu $1,$1,$4 mtlo $1 lui $4,31821 lb $4,14($0) sb $4,1($0) sll $6,$4,16 addiu $5,$1,10647 lb $1,16($0) multu $4,$6 addiu $1,$6,-484 addiu $5,$5,-11145 addiu $2,$2,268 multu $4,$5 mfhi $4 multu $2,$2 addu $4,$2,$2 mthi $5 mult $4,$2 sb $6,11($0) mtlo $4 addiu $5,$2,14582 divu $4,$ra mfhi $6 sb $2,4($0) ori $5,$2,49203 divu $1,$ra lui $4,15928 div $1,$ra sll $5,$5,11 addiu $4,$2,21196 lb $1,16($0) mult $4,$1 addu $1,$5,$2 sll $1,$1,17 mflo $2 sb $4,6($0) lb $2,15($0) addiu $5,$4,32304 sb $2,5($0) mfhi $4 addiu $6,$2,24507 sll $5,$1,4 mtlo $1 ori $4,$5,52203 lb $3,2($0) addu $4,$2,$2 ori $5,$2,31460 srav $5,$5,$5 sll $5,$5,17 mtlo $6 lb $2,16($0) divu $6,$ra sll $2,$2,9 lui $4,24782 sll $5,$1,6 mflo $3 mflo $5 ori $4,$1,31752 mflo $0 ori $4,$4,26369 multu $0,$3 ori $4,$4,52805 addu $4,$0,$2 addiu $4,$4,25517 divu $1,$ra srav $6,$6,$6 multu $1,$4 ori $1,$2,59740 mflo $1 addiu $5,$0,-28011 addu $4,$0,$2 ori $4,$4,62195 lui $6,12081 mult $6,$6 mult $1,$1 divu $5,$ra addiu $4,$0,-27380 addu $1,$0,$4 multu $5,$5 addu $5,$6,$0 div $3,$ra addiu $1,$2,10677 ori $4,$4,28342 mthi $4 sll $5,$0,4 mthi $4 lui $4,40812 lb $0,5($0) mflo $0 sll $6,$2,14 lui $4,60800 lb $6,15($0) addiu $4,$4,-19863 addu $1,$1,$5 mfhi $5 addiu $4,$5,10826 sb $0,15($0) lb $4,10($0) lb $0,5($0) srav $1,$3,$3 lui $1,57693 sll $3,$3,17 ori $4,$4,25749 addiu $1,$3,14403 mfhi $2 lui $3,45375 div $0,$ra mflo $4 mflo $1 mfhi $0 mtlo $4 addiu $5,$4,-23707 addu $4,$3,$3 addiu $4,$4,32414 mthi $5 srav $4,$4,$2 lui $4,11024 mflo $4 multu $6,$1 sll $1,$1,10 srav $3,$2,$3 lui $5,57656 mthi $6 divu $0,$ra lb $0,12($0) mfhi $5 addiu $4,$1,3168 addu $2,$2,$3 multu $1,$1 ori $1,$1,6313 mflo $3 div $4,$ra ori $1,$4,43337 sll $0,$0,5 sll $6,$6,25 mfhi $1 addu $4,$4,$4 sll $2,$1,14 lui $6,40697 mflo $4 sll $1,$2,3 div $2,$ra div $1,$ra sll $1,$5,0 ori $5,$5,21185 addu $4,$6,$4 multu $5,$5 sb $0,8($0) mfhi $1 mflo $2 ori $4,$5,9178 mtlo $3 multu $4,$4 srav $5,$1,$3 srav $4,$6,$2 mflo $6 ori $6,$2,56462 mthi $2 mthi $1 srav $5,$4,$5 mult $5,$1 lui $5,55234 divu $4,$ra srav $3,$3,$3 mflo $1 sb $5,12($0) addiu $5,$0,7102 lui $2,27247 sll $4,$2,2 mtlo $1 multu $1,$1 div $2,$ra mult $3,$1 lb $1,3($0) lui $1,43793 mfhi $1 mthi $1 div $5,$ra lb $4,10($0) sb $1,10($0) addiu $1,$1,-7197 sb $2,2($0) mflo $1 mflo $0 mfhi $5 div $6,$ra mult $0,$5 mthi $3 srav $3,$5,$3 mflo $4 mult $1,$1 mtlo $4 multu $4,$1 sll $4,$0,17 mtlo $4 addu $0,$1,$2 lui $1,22123 divu $0,$ra lui $4,33674 srav $2,$4,$2 mtlo $1 mfhi $4 sll $4,$4,15 divu $5,$ra addu $0,$0,$2 mtlo $1 mflo $1 ori $3,$3,22258 srav $4,$3,$3 mtlo $1 mflo $1 div $3,$ra mult $0,$3 lui $4,19382 addiu $1,$4,17590 mthi $4 div $5,$ra lui $5,18492 multu $6,$5 mult $6,$4 div $4,$ra addiu $6,$4,10448 lui $0,506 sb $4,15($0) lb $1,16($0) lb $1,12($0) mult $4,$1 mult $4,$3 divu $4,$ra mthi $1 mfhi $5 srav $0,$2,$5 mult $4,$4 sll $5,$5,3 ori $5,$5,11535 addiu $5,$2,1547 sll $5,$5,23 sll $0,$5,16 srav $5,$5,$4 addu $2,$2,$4 mflo $1 ori $1,$5,56091 mfhi $5 mult $2,$2 sll $4,$4,12 sb $4,8($0) mthi $1 mflo $5 divu $5,$ra lui $4,38927 lui $3,36700 mflo $3 divu $1,$ra mtlo $2 div $5,$ra mthi $6 mfhi $4 srav $5,$0,$0 lui $1,16418 mflo $2 mult $2,$2 divu $1,$ra mflo $4 div $4,$ra mflo $1 lb $4,7($0) divu $5,$ra divu $4,$ra addiu $4,$2,19305 sll $4,$4,14 ori $1,$1,42971 mfhi $0 mfhi $1 srav $0,$0,$5 srav $4,$5,$3 addu $2,$2,$2 divu $3,$ra divu $4,$ra multu $3,$0 sll $1,$4,1 addu $1,$2,$1 srav $6,$6,$2 sb $2,11($0) ori $6,$3,28358 sb $0,0($0) srav $3,$1,$3 mfhi $4 ori $4,$4,19788 addu $5,$2,$5 ori $5,$2,38485 mflo $6 sb $1,9($0) divu $0,$ra div $3,$ra lb $4,7($0) div $3,$ra sll $5,$5,28 mult $5,$1 ori $6,$5,2355 multu $4,$4 divu $4,$ra div $5,$ra mtlo $5 multu $1,$6 div $6,$ra lui $5,42101 ori $2,$1,12877 sll $5,$4,25 srav $1,$1,$2 addu $4,$2,$2 addiu $5,$2,30795 ori $5,$1,23995 lb $0,10($0) mult $0,$0 lui $3,45497 addiu $5,$5,22162 addiu $1,$4,-10948 mflo $1 addiu $4,$2,14929 multu $0,$0 ori $2,$2,65406 sll $6,$6,26 div $1,$ra mult $2,$2 divu $4,$ra divu $3,$ra ori $6,$2,7488 mthi $4 addu $6,$5,$5 sb $4,13($0) lui $3,21449 sll $6,$6,9 lb $3,0($0) mfhi $4 lb $5,7($0) addiu $1,$5,-998 lui $3,53820 divu $4,$ra mfhi $6 addiu $5,$2,-28871 addu $3,$1,$3 addiu $4,$2,-6954 ori $4,$4,38806 lb $5,13($0) lb $4,2($0) sb $2,12($0) sll $3,$3,29 lui $2,4171 mult $4,$4 ori $5,$2,60049 mult $6,$6 mfhi $4 srav $0,$5,$3 addiu $6,$1,30615 ori $6,$2,60949 ori $4,$6,5477 div $5,$ra mflo $5 mfhi $5 lb $6,13($0) mfhi $1 mult $6,$3 mflo $4 mfhi $4 mflo $5 lb $4,1($0) mthi $1 mult $6,$4 sll $1,$4,17 addiu $2,$4,3087 ori $4,$3,60341 mflo $2 addu $4,$6,$4 sll $5,$1,16 mult $5,$5 div $1,$ra ori $5,$4,60842 mflo $5 addu $5,$5,$4 srav $0,$0,$2 addu $6,$4,$3 div $5,$ra sll $5,$1,6 srav $0,$4,$3 lui $0,4526 div $4,$ra mflo $2 mthi $5 lb $6,2($0) addu $4,$4,$2 srav $6,$2,$5 multu $6,$2 mult $4,$4 lb $5,7($0) srav $4,$6,$1 mult $5,$5 addiu $3,$4,26185 addiu $2,$2,7854 lb $4,7($0) mult $5,$5 multu $1,$0 mflo $5 addiu $4,$2,-232
11.977528
18
0.571013
8c7109756aeea04d2bdfaeb375fe84d7b2e9be8e
5,788
asm
Assembly
vanilla/shared trackers.asm
PJBoy/SM-SPC
1345e173d5239132870c0f84603778546de49633
[ "0BSD" ]
4
2019-11-28T19:12:09.000Z
2022-02-04T20:51:06.000Z
vanilla/shared trackers.asm
PJBoy/SM-SPC
1345e173d5239132870c0f84603778546de49633
[ "0BSD" ]
null
null
null
vanilla/shared trackers.asm
PJBoy/SM-SPC
1345e173d5239132870c0f84603778546de49633
[ "0BSD" ]
null
null
null
; Samus fanfare musicTrack1: { .tracker dw .trackPointers, $0000 .trackPointers dw .track0, .track1, .track2, .track3, .track4, .track5, .track6, $0000 .track0 db $FA, $26, $E7, $12, $E5, $B4, $F5, $0F, $0A, $0A, $F7, $02, $0A, $00, $E0, $0B,\ $EA, $F4, $F4, $46, $E1, $0A, $ED, $AA, $EE, $18, $DC, $18, $7F, $B2, $ED, $AA,\ $EE, $18, $DC, $B5, $ED, $AA, $EE, $18, $DC, $B2, $ED, $AA, $EE, $18, $DC, $B0,\ $30, $AD, $ED, $AA, $EE, $30, $82, $AD, $0F, $C9, $00 .track1 db $E0, $0B, $EA, $F4, $F4, $46, $E1, $0A, $03, $C9, $ED, $64, $EE, $28, $FA, $04,\ $7F, $A6, $A6, $A6, $A6, $A6, $A6, $A9, $A9, $A9, $A9, $A9, $A9, $ED, $FA, $EE,\ $28, $64, $A6, $A6, $A6, $A6, $A6, $A6, $A4, $A4, $A4, $A4, $A4, $A4, $ED, $3C,\ $EE, $0A, $E6, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD,\ $AD, $AD, $AD, $ED, $E6, $EE, $1E, $3C, $AD, $AD, $AD, $AD, $AD, $AD, $AD, $AD,\ $0C, $C9 .track2 db $E0, $0B, $EA, $00, $F4, $46, $ED, $C8, $E1, $03, $18, $7F, $8F, $8E, $ED, $B4,\ $8C, $89, $30, $82, $82, $0F, $C9 .track3 db $E0, $0B, $EA, $00, $F4, $1E, $ED, $C8, $E1, $11, $03, $C9, $18, $7F, $8F, $8E,\ $8C, $89, $F4, $00, $30, $82, $2D, $82, $0F, $C9 .track4 db $E0, $0B, $EA, $F4, $F4, $46, $ED, $BE, $E1, $0A, $18, $7F, $A2, $A1, $9F, $A1,\ $30, $8E, $8E, $0F, $C9 .track5 db $E0, $02, $F4, $00, $E1, $06, $ED, $3C, $EE, $32, $82, $05, $C9, $05, $7F, $93,\ $0A, $C9, $0F, $97, $14, $C9, $08, $93, $E1, $08, $04, $C9, $95, $C9, $97, $0B,\ $C9, $E1, $03, $05, $C9, $93, $0A, $C9, $0F, $93, $1E, $C9, $08, $90, $E1, $0D,\ $04, $C9, $93, $C9, $ED, $AA, $EE, $1E, $14, $93, $1C, $C9 .track6 db $E0, $02, $F4, $00, $E1, $0E, $ED, $3C, $EE, $32, $82, $05, $7F, $91, $1E, $C9,\ $06, $C9, $93, $10, $C9, $E1, $0C, $04, $93, $C9, $90, $C9, $09, $93, $E1, $11,\ $05, $91, $24, $C9, $06, $93, $10, $C9, $E1, $07, $04, $93, $0E, $C9, $04, $97,\ $C9, $06, $97, $ED, $AA, $EE, $1E, $14, $04, $93, $14, $C9, $00 } ; Item fanfare musicTrack2: { .tracker dw .trackPointers, $0000 .trackPointers dw .track0, .track1, .track2, .track3, .track4, .track5, .track6, $0000 .track0 db $FA, $26, $E7, $2D, $E5, $96, $F5, $0F, $0A, $0A, $F7, $02, $0A, $00, $E0, $0B,\ $F4, $46, $EA, $00, $ED, $E6, $E1, $03, $60, $7F, $8A, $89, $87, $2A, $82, $E5,\ $AA, $E6, $28, $3C, $C8, $04, $C9, $00 .track1 db $E0, $0B, $F4, $46, $EA, $00, $ED, $E6, $E1, $11, $60, $7F, $8A, $89, $87, $54,\ $82, $04, $C9 .track2 db $E0, $0B, $F4, $46, $EA, $00, $ED, $DC, $E1, $06, $30, $7F, $9A, $18, $9D, $A2,\ $30, $A1, $9C, $A2, $18, $9D, $9A, $54, $9A, $04, $C9 .track3 db $E0, $0B, $F4, $46, $EA, $00, $ED, $DC, $E1, $0E, $60, $7F, $9D, $9C, $9A, $54,\ $95, $04, $C9 .track4 db $E0, $0B, $F4, $46, $EA, $00, $ED, $D2, $E1, $0A, $04, $C9, $18, $7F, $9D, $A2,\ $A4, $A6, $A8, $A4, $9F, $A4, $ED, $A0, $A9, $ED, $BD, $A6, $A2, $9F, $54, $C9 .track5 db $E0, $0B, $F4, $46, $EA, $00, $ED, $DC, $E1, $08, $1C, $7F, $9D, $14, $C9, $1C,\ $A4, $14, $C9, $1C, $A8, $14, $C9, $1C, $9F, $14, $C9, $ED, $C8, $1C, $A9, $E8,\ $A0, $0A, $ED, $E5, $14, $C9, $1C, $A2, $14, $C9, $E1, $0A, $54, $A1, $04, $C9 .track6 db $E0, $0B, $F4, $46, $EA, $00, $ED, $AA, $E1, $0C, $18, $C9, $1C, $7F, $A2, $14,\ $C9, $18, $A6, $04, $C8, $14, $C9, $1C, $A4, $14, $C9, $18, $A4, $04, $C8, $14,\ $C9, $1C, $A6, $14, $C9, $18, $9F, $04, $C8, $50, $C9, $04, $C9, $00 } ; Elevator musicTrack3: { .tracker dw .introTrackPointers - : dw .loopTrackPointers, $00FF,-, $0000 .loopTrackPointers dw .loopTrack0, .loopTrack1, .loopTrack2, .loopTrack3, $0000, $0000, $0000, $0000 .introTrackPointers dw .introTrack0, .introTrack1, .introTrack2, .introTrack3, .introTrack4, $0000, $0000, $0000 .loopTrack0 db $E5, $DC, $E7, $10, $E0, $0C, $F4, $28, $ED, $46, $E1, $07, $F5, $0F, $0A, $0A,\ $F7, $02, $0A, $00, $30, $C9, $18, $2F, $BA, $B5, $B9, $B1, $48, $C9, $18, $B0,\ $B6, $BB, $C9, $C9, $18, $1F, $B5, $0C, $C9, $18, $B2, $0C, $C9, $24, $C9, $60,\ $C9, $C9, $0C, $C9, $00 .loopTrack1 db $E0, $0C, $F4, $28, $ED, $32, $E1, $0A, $30, $C9, $18, $2F, $A6, $A1, $A5, $9D,\ $48, $C9, $18, $9C, $A2, $A7, $C9, $C9, $AD, $0C, $C9, $18, $AA, $0C, $C9, $21,\ $C9, $60, $C9, $C9, $0F, $C9 .loopTrack2 db $E0, $0C, $F4, $28, $ED, $3C, $E1, $0D, $20, $C9, $06, $0F, $BA, $B5, $B9, $B1,\ $B0, $B6, $BB, $2A, $C9, $06, $BA, $B5, $B9, $B1, $B0, $B6, $BB, $36, $C9, $06,\ $B9, $B1, $BA, $B5, $B0, $B6, $BB, $3E, $C9, $06, $BA, $B5, $B9, $B1, $B0, $B6,\ $BB, $20, $C9, $06, $B5, $BA, $B9, $B1, $B0, $B6, $BB, $11, $C9, $60, $C9, $C9,\ $07, $C9 .loopTrack3 db $E0, $0B, $F4, $46, $E1, $0A, $ED, $3C, $EE, $3C, $C8, $3C, $7F, $80, $ED, $C8,\ $EE, $30, $3C, $30, $C8, $EF, $88, $56, $05 .introTrack0 db $FA, $26, $E7, $10, $E5, $C8, $E0, $0C, $F4, $28, $ED, $46, $F5, $0F, $0A, $0A,\ $F7, $02, $0A, $00, $E1, $07, $E2, $C0, $0D, $0C, $C9, $00 .introTrack1 db $E0, $0C, $F4, $28, $ED, $32, $0C, $C9 .introTrack2 db $E0, $0C, $F4, $28, $ED, $3C, $0C, $C9 .introTrack3 db $E0, $0B, $F4, $46, $E1, $0A, $0C, $C9 .introTrack4 db $E0, $0C, $F4, $28, $ED, $28, $E1, $0D, $0C, $C9, $00, $ED, $3C, $EE, $3C, $C8,\ $3C, $80, $ED, $C8, $EE, $30, $3C, $30, $C8, $00 } ; Pre-statue hall musicTrack4: { .tracker - : dw .trackPointers, $00FF,-, $0000 .trackPointers dw .track0, $0000, $0000, $0000, $0000, $0000, $0000, $0000 .track0 db $FA, $26, $E7, $10, $E5, $E6, $F5, $01, $00, $00, $F7, $02, $00, $00, $E0, $0B,\ $F4, $46, $E1, $0A, $ED, $32, $EE, $3C, $B4, $3C, $7F, $80, $ED, $B4, $EE, $30,\ $32, $30, $C8, $ED, $32, $EE, $3C, $B4, $3C, $80, $ED, $B4, $EE, $30, $32, $30,\ $C8, $00, $00 }
36.632911
93
0.438493
fffcec992b97f61592ace20cd258021b9f85c55a
1,911
asm
Assembly
Driver/Socket/IRLAP/irlapStrings.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Socket/IRLAP/irlapStrings.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Socket/IRLAP/irlapStrings.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: MODULE: FILE: irlapStrings.asm AUTHOR: Steve Jang, Sep 29, 1994 REVISION HISTORY: Name Date Description ---- ---- ----------- SJ 9/29/94 Initial revision DESCRIPTION: This file contains strings for IRLAP driver. $Id: irlapStrings.asm,v 1.1 97/04/18 11:57:00 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ IrlapStrings segment lmem LMEM_TYPE_GENERAL ; ; Notifications ; mediaBusyStr chunk.char \ "Operation failed because there are other traffic in media", 0 primaryConflictStr chunk.char \ "Connection failed because there is another primary out there", 0 connectFailed chunk.char \ "Aim your gun straight!", 0 ; ; Driver name ; EC< serialDriverName chunk.TCHAR "serialec.geo", 0 > NEC< serialDriverName chunk.TCHAR "serial.geo", 0 > ; ; Temp strings ; irlapDomainName chunk.char \ "irlap", 0 ; ; Address dialog ; irlapConnectionAddressDialog chunk.char \ "Select new address for CONNECTION",0 irlapDatagramAddressDialog chunk.char \ "Select new address for DATAGRAM",0 ; ; .INI file categories and keywords ; irlapCategory chunk.char \ "irlap ", 0 if _SOCKET_INTERFACE addressKeyword chunk.char \ "address", 0 defaultAddressStr chunk.char \ "UNKNOWN", 0 endif portKeyword chunk.char \ "port", 0 ; ; Connection parameters ; baudrateKeyword chunk.char \ "baudRate", 0 maxTurnaroundKeyword chunk.char \ "maxTurnaround", 0 dataSizeKeyword chunk.char \ "dataSize", 0 windowSizeKeyword chunk.char \ "windowSize", 0 numBOFsKeyword chunk.char \ "numBOFs", 0 minTurnaroundKeyword chunk.char \ "minTurnaround", 0 linkDisconnectKeyword chunk.char \ "linkDisconnect", 0 IrlapStrings ends
21.715909
79
0.647305
16b1c7d81a237fbfbaa1a6ed66a0fd701085a1ca
262
asm
Assembly
data/mapHeaders/vermiliondock.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
16
2018-08-28T21:47:01.000Z
2022-02-20T20:29:59.000Z
data/mapHeaders/vermiliondock.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
5
2019-04-03T19:53:11.000Z
2022-03-11T22:49:34.000Z
data/mapHeaders/vermiliondock.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
2
2019-12-09T19:46:02.000Z
2020-12-05T21:36:30.000Z
VermilionDock_h: db SHIP_PORT ; tileset db VERMILION_DOCK_HEIGHT, VERMILION_DOCK_WIDTH ; dimensions (y, x) dw VermilionDockBlocks, VermilionDockTextPointers, VermilionDockScript ; blocks, texts, scripts db $00 ; connections dw VermilionDockObject ; objects
37.428571
96
0.816794
61776a464d0233a8fa55489f872e53eaee0f8d97
749
asm
Assembly
Course Experiment/Assembly Language Course Exp/No.4 Experiment/exam4-2.asm
XJDKC/University-Code-Archive
2dd9c6edb2164540dc50db1bb94940fe53c6eba0
[ "MIT" ]
4
2019-04-01T17:33:38.000Z
2022-01-08T04:07:52.000Z
Course Experiment/Assembly Language Course Exp/No.4 Experiment/exam4-2.asm
XJDKC/University-Code-Archive
2dd9c6edb2164540dc50db1bb94940fe53c6eba0
[ "MIT" ]
null
null
null
Course Experiment/Assembly Language Course Exp/No.4 Experiment/exam4-2.asm
XJDKC/University-Code-Archive
2dd9c6edb2164540dc50db1bb94940fe53c6eba0
[ "MIT" ]
1
2021-01-06T11:04:31.000Z
2021-01-06T11:04:31.000Z
.386 CODE SEGMENT USE16 ASSUME CS:CODE,SS:STACK ORIGINAL_IP DW 0 ORIGINAL_CS DW 0 BEGIN: CMP AH,0 JZ U0_10 CMP AH,10H JZ U0_10 PUSHF CALL DWORD PTR CS:ORIGINAL_IP IRET U0_10: PUSHF CALL DWORD PTR CS:ORIGINAL_IP CMP AL,'a' JNAE TO_UPPER_RET CMP AL,'z' JNBE TO_UPPER_RET SUB AL,'a'-'A' JMP TO_UPPER_RET TO_UPPER_RET: IRET TO_UPPER_END: NOP START: ;取原终端地址 PUSH CS POP DS MOV AL,16H MOV AH,35H INT 21H ;保存原中断地址 MOV CS:ORIGINAL_CS,ES MOV CS:ORIGINAL_IP,BX ;设置新的中断地址 MOV DX,OFFSET BEGIN MOV AL,16H MOV AH,25H INT 21H ;驻留新中断程序 PUSH CS POP DS MOV DX,OFFSET START SHR DX,4 ADD DX,1000H MOV AL,0 MOV AH,31H INT 21H CODE ENDS STACK SEGMENT USE16 STACK DB 200 DUP(0) STACK ENDS ;------------------------ END START
12.913793
31
0.699599
f620a27b05abe343f975332272f1568919645e5f
6,485
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_302.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_302.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_302.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 %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x13e3b, %r12 clflush (%r12) nop nop nop sub %r10, %r10 mov $0x6162636465666768, %rdx movq %rdx, %xmm1 movups %xmm1, (%r12) nop nop nop nop nop cmp %r8, %r8 lea addresses_WC_ht+0x17583, %r8 nop nop nop add $22115, %rsi movw $0x6162, (%r8) nop nop nop and %r10, %r10 lea addresses_A_ht+0x1773b, %rsi lea addresses_WC_ht+0x6af1, %rdi nop nop nop inc %r12 mov $50, %rcx rep movsl nop nop and %r8, %r8 lea addresses_A_ht+0x1a30f, %rcx clflush (%rcx) nop nop nop nop nop add $57181, %rsi movb $0x61, (%rcx) xor %r12, %r12 lea addresses_WC_ht+0xdc3b, %rsi lea addresses_WT_ht+0xba8b, %rdi clflush (%rsi) nop nop and %r9, %r9 mov $116, %rcx rep movsq nop nop and %r8, %r8 lea addresses_normal_ht+0x963b, %rsi lea addresses_UC_ht+0x1ac3b, %rdi nop nop nop sub $40495, %r9 mov $30, %rcx rep movsl dec %rdx lea addresses_normal_ht+0x5403, %r12 nop nop nop nop xor %r8, %r8 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%r12) nop nop inc %r8 lea addresses_A_ht+0x1183b, %rsi lea addresses_D_ht+0xb03b, %rdi nop dec %r10 mov $6, %rcx rep movsl nop nop nop nop add %rdi, %rdi lea addresses_A_ht+0x1ad0f, %rdx sub %r10, %r10 movb (%rdx), %cl cmp %r8, %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %r9 push %rdi // Load lea addresses_UC+0x1283b, %r10 nop nop nop nop cmp $28855, %r9 movups (%r10), %xmm3 vpextrq $0, %xmm3, %rdi nop nop add %r9, %r9 // Faulty Load lea addresses_A+0x11e3b, %r8 add %r14, %r14 mov (%r8), %r10 lea oracles, %r8 and $0xff, %r10 shlq $12, %r10 mov (%r8,%r10,1), %r10 pop %rdi pop %r9 pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 9}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 1}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}, 'dst': {'same': True, 'type': 'addresses_D_ht', 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.703488
2,999
0.657209
138c2e254246d763d14d620a1c80107ec9f7f9ea
168
asm
Assembly
vasm/test.asm
Kannagi/AltairX
4b9a34203d2fc026612b5bf52c1afd67da188db6
[ "MIT" ]
17
2021-11-06T18:12:35.000Z
2022-03-31T09:12:06.000Z
vasm/test.asm
Kannagi/AltairX
4b9a34203d2fc026612b5bf52c1afd67da188db6
[ "MIT" ]
null
null
null
vasm/test.asm
Kannagi/AltairX
4b9a34203d2fc026612b5bf52c1afd67da188db6
[ "MIT" ]
1
2021-11-06T18:12:38.000Z
2021-11-06T18:12:38.000Z
;syscall ;0x00 ;kernel console ,read/write file ;0x01 ;GIF ;0x02 ;SIF ;0x03 ;input (clavier/souris/joypad) ;0x04 ;Net ;0x05 ;GUI include "macro.asm" cmpi r8,1
7.304348
32
0.684524
be0c7c5679e9a8f2b3188fa614ad1b7329346606
683
asm
Assembly
oeis/308/A308814.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/308/A308814.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/308/A308814.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A308814: a(n) = Sum_{d|n} n^(d-1). ; 1,3,10,69,626,7819,117650,2097673,43046803,1000010011,25937424602,743008621405,23298085122482,793714780783695,29192926025441476,1152921504875286545,48661191875666868482,2185911559749718382455,104127350297911241532842,5242880000000512000168021,278218429446951548722962964,15519448971100915532497642519,907846434775996175406740561330,55572324035428506707064132319321,3552713678800500929355621338281251,236773830007967588972224121600151579,16423203268260658146231468083138792500 add $0,1 mov $2,$0 lpb $0 mov $3,$2 mov $4,$0 cmp $4,1 add $0,$4 dif $3,$0 mul $3,$0 sub $0,1 cmp $3,$2 add $5,$3 mul $5,$2 lpe mov $0,$5 add $0,1
34.15
477
0.796486
f5a5d376680a8aad3eea4fb80db56fa12b3d6609
654
asm
Assembly
wof/lcs/enemy/6.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/enemy/6.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/enemy/6.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 0010E6 rts [123p+ 4, 123p+ 6, enemy+ 4, enemy+ 6] 00110A move.w ($44,A0), D1 [enemy+ 4, enemy+ 6] 001144 move.w (A6), D0 [123p+ 4, 123p+ 6, enemy+ 4, enemy+ 6] 001590 lea ($20,A0), A0 001990 move.w ($9e,A1), ($8,A1) [enemy+ 6] 004B6C move.w (A6), D0 [enemy+ 4, enemy+ 6] 005618 move.w (A6), D0 [enemy+ 4, enemy+ 6] 01224E move.l (A2)+, (A3)+ [enemy+ 0, enemy+ 2] 012250 move.l (A2)+, (A3)+ [enemy+ 4, enemy+ 6] 01A75E dbra D4, $1a75c 032E6C rts [enemy+ 4, enemy+ 6] 032EAA jmp $10bc.w [enemy+ 4, enemy+ 6] copyright zengfr site:http://github.com/zengfr/romhack
38.470588
65
0.608563
27b5c8f570c35c2facdacae84f24db10a676af33
148
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_enmy2.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_enmy2.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/フランス_PAL/Fra_asm1/zel_enmy2.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: zel_enmy2.asm Type: file Size: 366532 Last-Modified: '2016-05-13T04:20:48Z' SHA-1: D8B3927381A136FB1C96ED8F3FBE2AE6D022E657 Description: null
21.142857
47
0.817568
cf2201dd0f636ef75f17d3faf009a76d6b880745
456
asm
Assembly
video/gl_libcall.asm
temisu/BR4096
0e2cac8b468c853eb78ba773f082610a75405ff4
[ "BSD-2-Clause" ]
8
2018-09-15T16:49:53.000Z
2021-11-17T03:16:19.000Z
video/gl_libcall.asm
temisu/BR4096
0e2cac8b468c853eb78ba773f082610a75405ff4
[ "BSD-2-Clause" ]
null
null
null
video/gl_libcall.asm
temisu/BR4096
0e2cac8b468c853eb78ba773f082610a75405ff4
[ "BSD-2-Clause" ]
1
2019-09-22T13:52:19.000Z
2019-09-22T13:52:19.000Z
; Copyright (C) Teemu Suutari %macro GL_LIBCALL 1 LIBCALL %1 %ifdef DEBUG_BUILD pushad LIBCALL _glGetError test eax,eax jz short %%gl_no_error pushad mov edi,eax LIBCALL _gluErrorString %defstr %%glfunc %1 DEBUG {%%glfunc," failed (%s)"},eax popad %%gl_no_error: popad %endif %endm %macro GL_LIBCALL_NOSTACK 1 LIBCALL_NOSTACK %1 %endm %macro GL_NOERR_LIBCALL 1 LIBCALL %1 %ifdef DEBUG_BUILD pushad LIBCALL _glGetError popad %endif %endm
13.818182
36
0.752193
8028e6d1628421692686dc0ae3645118961009db
462
asm
Assembly
programs/oeis/333/A333813.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/333/A333813.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/333/A333813.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A333813: a(n) = 2^(1 + floor(n*log_2(3))) - (3^n + 1). ; 0,0,6,4,46,12,294,1908,1630,13084,6486,84996,517134,502828,3605638,2428308,24062142,5077564,149450422,985222180,808182894,6719515980,2978678758,43295774644,267326277406,252223018332,1856180682774,1170495537220 mul $0,2 cal $0,117855 ; Number of nonzero palindromes of length n (in base 3). cal $0,35327 ; Write n in binary, interchange 0's and 1's, convert back to decimal. mov $1,$0 div $1,4 mul $1,2
46.2
211
0.738095
f3924060cc122756a36348d36b837276c2f69085
320
asm
Assembly
programs/oeis/164/A164278.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/164/A164278.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/164/A164278.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A164278: a(n) = (6*n + 1)^(2*n) - 1. ; 0,48,28560,47045880,152587890624,819628286980800,6582952005840035280,73885357344138503765448,1104427674243920646305299200,21209401372879911350250244140624,508858109619679129936596364708525200 mul $0,2 mov $1,1 mov $2,$0 mul $0,2 add $1,$0 add $1,$2 pow $1,$2 sub $1,1 mov $0,$1
24.615385
193
0.753125
5f4bb32383a8d5bf46f95099a52e5d4f51515b13
1,316
asm
Assembly
src/lib/rand.asm
battlelinegames/nes-random
611839d2526d4e02b3f17d40d847070322303478
[ "MIT" ]
2
2019-03-11T17:31:32.000Z
2020-12-17T21:19:31.000Z
src/lib/rand.asm
battlelinegames/nes-random
611839d2526d4e02b3f17d40d847070322303478
[ "MIT" ]
null
null
null
src/lib/rand.asm
battlelinegames/nes-random
611839d2526d4e02b3f17d40d847070322303478
[ "MIT" ]
null
null
null
.segment "ZEROPAGE" ; variables for specific uses random_ptr: .res 1 frame_counter: .res 1 ; this number will cycle from 0 - 255 incrementing each frame ; the random table contains a previously generated random sequence from 0-127 .segment "CODE" random_table: .byte $25,$3e,$76,$22,$4b,$56,$5d,$60 .byte $1c,$18,$6e,$06,$3c,$4f,$1b,$52 .byte $58,$15,$46,$55,$48,$7d,$3d,$38 .byte $67,$71,$57,$19,$26,$07,$7e,$40 .byte $0b,$36,$51,$6d,$1a,$7f,$5b,$32 .byte $3a,$21,$1d,$5f,$33,$5c,$1e,$47 .byte $2a,$63,$17,$4c,$00,$14,$77,$12 .byte $70,$42,$61,$66,$1f,$43,$3b,$0d .byte $0f,$0e,$73,$10,$29,$68,$64,$6f .byte $35,$6b,$0a,$2e,$11,$65,$23,$6a .byte $7b,$4d,$01,$49,$4e,$50,$27,$24 .byte $3f,$08,$2c,$54,$5a,$03,$53,$7c .byte $41,$28,$37,$2b,$59,$6c,$5e,$79 .byte $72,$69,$2f,$04,$31,$20,$4a,$74 .byte $7a,$0c,$30,$75,$09,$44,$62,$78 .byte $39,$2d,$16,$05,$45,$34,$02,$13 ; this clobbers x register .macro get_random_a inc random_ptr advance_random_ptr tax lda random_table, x .endmacro ; increment the pointer into our ramdom table based ont he current frame counter .macro advance_random_ptr lda random_ptr adc frame_counter ; I don't really care if the carry byte is set for random jump and #%01111111 sta random_ptr .endmacro
30.604651
93
0.621581
fd918fa1b315d26d57f0010f5a79135f9778bf22
120
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/dpush3.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/dpush3.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/dpush3.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC dpush3 EXTERN cm48_sccz80p_dpush3 defc dpush3 = cm48_sccz80p_dpush3
12
33
0.858333
a11408b0c0d2472407000de2fdfece3a81b67810
4,320
asm
Assembly
testdata/ttyclock.asm
bassosimone/risc32
f0b0fc0e41390b5bc18541aeb9bd51cb3cb461d7
[ "MIT" ]
null
null
null
testdata/ttyclock.asm
bassosimone/risc32
f0b0fc0e41390b5bc18541aeb9bd51cb3cb461d7
[ "MIT" ]
null
null
null
testdata/ttyclock.asm
bassosimone/risc32
f0b0fc0e41390b5bc18541aeb9bd51cb3cb461d7
[ "MIT" ]
null
null
null
# # This example/test starts becoming interesting. We have a tty handler # which echoes read characters back to the console. We also have a clock # handler which periodically fires with tracing enabled. # # When this example is working as intended, the user should be able to # see their input echoed back to the attached console. Also, the user shall # periodically see that the clock handler is WAI thanks to tracing. # # This basically checks that we can have at the same time a working console # and clock delivered interrupts to, e.g., switch process. # # Like other examples in the tree, we have a trampoline at the beginning # which jumps to boot code. The interrupt stack grown downwards. # # Note how we're page aligning (i.e. 1<<10 aligning) a bunch of stuff since # we need to have the interrupt table and stack aligned. # movi r1 _boot jalr r0 r1 .space 1021 # align to occupy a page __itbl: .space 1024 # one page __istack: .space 2048 # two pages # # This is the boot code of the kernel. We setup handlers and then we enter # into an endless busy loop in which we do nothing. Since there is no power # saving instruction, currently, we waste lots of CPU. # _boot: movi r1 __itbl # set interrupt handler base address wsr r1 2 # set interrupt handler for interrupt one (clock) movi r8 __clock sw r8 r1 1 # set interrupt handler for interrupt two (tty) movi r8 __ttyirq sw r8 r1 2 # set stack for interrupt handling movi r8 __istack wsr r8 3 # set clock frequency to 2000 milliseconds addi r8 r0 2000 movi r9 131072 sw r8 r9 0 # enter user mode with interrupt handling enabled addi r8 r0 5 wsr r8 0 __forever: movi r8 __forever jalr r0 r8 .space 1234 # some random space before IRQ handlers # # This is the interrupt handler for the TTY. When an interrupt handler # is called, the hardware has saved the state, which is going to be restored # when we call the IRET instruction. # # Any register that we're using is going to be saved into the # kernel stack and restored when leaving. # __ttyirq: sw r8 r29 0 # push r8 (1/2) addi r29 r29 1 # push r8 (2/2) sw r9 r29 0 # push r9 (1/2) addi r29 r29 1 # push r9 (2/2) sw r10 r29 0 # push r10 (1/2) addi r29 r29 1 # push r10 (2/2) # movi r8 131073 # r8 = MMTTYStatus lw r9 r8 0 # r9 = current TTY status addi r10 r0 3 # r10 = TTYOut|TTYIn beq r8 r10 __ttydone # cannot do anything until TTYOut is gone # movi r8 131073 # r8 = MMTTYStatus lw r9 r8 0 # r9 = current TTY status addi r10 r0 2 # r10 = TTYOut beq r8 r10 __ttydone # cannot do anything until TTYOut is gone # movi r8 131073 # r8 = MMTTYStatus lw r9 r8 1 # get current input sw r9 r8 2 # set current output movi r9 2 # r9 = TTYOut sw r9 r8 0 # MTTYStatus = r9 # __ttydone: addi r29 r29 -1 # pop r10 (1/2) lw r10 r29 0 # pop r10 (2/2) addi r29 r29 -1 # pop r9 (1/2) lw r9 r29 0 # pop r9 (2/2) addi r29 r29 -1 # pop r8 (1/2) lw r8 r29 0 # pop r8 (2/2) # iret # return from interrupt __clock: sw r8 r29 0 # push r8 (1/2) addi r29 r29 1 # push r8 (2/2) # rsr r8 0 # addi r8 r8 16 # turn on tracing wsr r8 0 # # addi r29 r29 -1 # pop r8 (1/2) lw r8 r29 0 # pop r8 (2/2) # iret # return from interrupt
39.633028
76
0.521991
9b04c075488bffb714353d5e4a23e16ae8b2349f
685
asm
Assembly
programs/oeis/230/A230088.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/230/A230088.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/230/A230088.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A230088: Partial sums of A010062. ; 1,3,6,11,18,28,40,54,71,90,112,137,165,196,232,270,311,355,402,454,509,569,633,698,765,835,908,984,1063,1147,1234,1326,1422,1520,1621,1726,1835,1949,2067,2190,2319,2450,2584,2721,2861,3004,3152,3303,3459,3619,3781,3946,4115,4288,4466,4648,4835,5028,5224,5423,5627,5835,6046,6262,6482,6707,6936,7170,7409,7655,7907,8165,8425,8687,8952,9220,9491,9767,10046,10330,10618,10908,11201,11498,11799,12105,12415,12730,13051,13375,13702,14034,14370,14709,15053,15401,15754,16111,16473,16840 lpb $0 mov $2,$0 sub $0,1 seq $2,10062 ; a(0)=1; thereafter a(n+1) = a(n) + number of 1's in binary representation of a(n). add $1,$2 lpe add $1,1 mov $0,$1
57.083333
482
0.734307
96eff8a6a5dc6b6228915a48d53cce7afccabca2
729
asm
Assembly
oeis/220/A220362.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/220/A220362.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/220/A220362.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A220362: a(n) = Fibonacci(n-1) * Fibonacci(n) * Fibonacci(n+2). ; Submitted by Jon Maiga ; 0,3,10,48,195,840,3536,15015,63546,269280,1140535,4831632,20466720,86699067,367262090,1555748880,6590255259,27916773720,118257343984,500946159615,2122041966330,8989114051008,38078498128175,161303106631968,683290924545600,2894466804993075,12261158144228746,51939099382375920,220017555672975411,932009322075502440,3948054843973003280,16724228697970722327,70844969635850703930,300104107241381933472,1271261398601364853735,5385149701646863327920,22811860205188782601824,96632590522402051278315 add $0,1 mov $2,2 lpb $0 sub $0,1 mov $3,$4 mov $4,$2 add $2,$3 lpe add $4,$2 sub $2,$3 mul $4,$2 mov $0,$4 mul $0,$3 mul $0,2 div $0,16
36.45
491
0.802469
c0a0289246ff2a26cb219234756e7e3a93a37dbb
7,909
asm
Assembly
os/src/os003/boot/setup.asm
ddosakura/pet-shop
71eacee8c7030164370e4d8717a25b199992fb42
[ "Apache-2.0" ]
null
null
null
os/src/os003/boot/setup.asm
ddosakura/pet-shop
71eacee8c7030164370e4d8717a25b199992fb42
[ "Apache-2.0" ]
null
null
null
os/src/os003/boot/setup.asm
ddosakura/pet-shop
71eacee8c7030164370e4d8717a25b199992fb42
[ "Apache-2.0" ]
null
null
null
%include 'config.inc' %include 'pm.inc' %include 'macro.inc' offset equ 0 org offset [BITS 16] mov ax, cs mov ds, ax mov es, ax mov ss, ax mov sp, offset ; 设置回跳段地址 mov [LABEL_GO_BACK_TO_REAL+3], ax ; 进入保护模式 ; 1. 准备 GDT (Global Descriptor Table 全局描述表) ; 用 lgdt指令 加载 gdtr寄存器 ; 2. 关中断 ; 打开 A20 (有多种方法) ; 3. 置 cr0 的 PE 位为 1 ; 4. jmp mov [_wSPValueInRealMode], sp ; 得到内存数 mov ebx, 0 mov di, _MemChkBuf .loop: mov eax, 0E820h mov ecx, 20 mov edx, 0534D4150h int 15h jc LABEL_MEM_CHK_FAIL add di, 20 inc dword [_dwMCRNumber] cmp ebx, 0 jne .loop jmp LABEL_MEM_CHK_OK LABEL_MEM_CHK_FAIL: mov dword [_dwMCRNumber], 0 LABEL_MEM_CHK_OK: ; 初始化 16 位代码段描述符 InitGDT LABEL_SEG_CODE16, LABEL_DESC_CODE16 ; 初始化 32 位代码段描述符 InitGDT LABEL_SEG_CODE32, LABEL_DESC_CODE32 ; 初始化数据段描述符 InitGDT LABEL_DATA, LABEL_DESC_DATA ; 初始化堆栈段描述符 InitGDT LABEL_STACK, LABEL_DESC_STACK ; 为加载 GDTR 作准备 & 加载 GDTR LoadGDT LABEL_GDT, GdtPtr ; 为加载 IDTR 作准备 & 加载 IDTR LoadIDT_v2 LABEL_IDT, IdtPtr ; 打开 A20 EnableA20 ; 准备切换到保护模式 mov eax, cr0 ;and eax, 0x7fffffff ; 禁止分页(貌似默认就是禁止的) or eax, 1 ; 保护模式开关 mov cr0, eax ; 进入保护模式 jmp dword SelectorCode32:0 ; 从保护模式跳回到实模式就到了这里 LABEL_REAL_ENTRY: mov ax, cs mov ds, ax mov es, ax mov ss, ax mov sp, [_wSPValueInRealMode] lidt [_SavedIDTR] ; 恢复 IDTR 的原值 mov al, [_SavedIMREG] ; ┓恢复中断屏蔽寄存器(IMREG)的原值 out 21h, al ; ┛ DisableA20 ; 开中断 sti LoopHLT ; 32 位代码段. 由实模式跳入. [SECTION .s32] [BITS 32] LABEL_SEG_CODE32: ; 数据段选择子 mov ax, SelectorData mov ds, ax mov es, ax ; 视频段选择子 mov ax, SelectorVideo mov gs, ax ; 堆栈段选择子 mov ax, SelectorStack mov ss, ax mov esp, TopOfStack call Init8259A int 0x80 ; 下面显示一个字符串 push szPMMessage call DispStr add esp, 4 push szMemChkTitle call DispStr add esp, 4 call DispMemSize ; 显示内存信息 ;call SetupPaging call Main sti jmp $ ; 到此停止 jmp SelectorCode16:0 Init8259A: mov al, 011h out 020h, al ; 主8259, ICW1. call io_delay out 0A0h, al ; 从8259, ICW1. call io_delay mov al, 020h ; IRQ0 对应中断向量 0x20 out 021h, al ; 主8259, ICW2. call io_delay mov al, 028h ; IRQ8 对应中断向量 0x28 out 0A1h, al ; 从8259, ICW2. call io_delay mov al, 004h ; IR2 对应从8259 out 021h, al ; 主8259, ICW3. call io_delay mov al, 002h ; 对应主8259的 IR2 out 0A1h, al ; 从8259, ICW3. call io_delay mov al, 001h out 021h, al ; 主8259, ICW4. call io_delay out 0A1h, al ; 从8259, ICW4. call io_delay mov al, 11111110b ; 仅仅开启定时器中断 ;mov al, 11111111b ; 屏蔽主8259所有中断 out 021h, al ; 主8259, OCW1. call io_delay mov al, 11111111b ; 屏蔽从8259所有中断 out 0A1h, al ; 从8259, OCW1. call io_delay ret SetRealmode8259A: mov ax, SelectorData mov fs, ax mov al, 017h out 020h, al ; 主8259, ICW1. call io_delay mov al, 008h ; IRQ0 对应中断向量 0x8 out 021h, al ; 主8259, ICW2. call io_delay mov al, 001h out 021h, al ; 主8259, ICW4. call io_delay mov al, [fs:SavedIMREG] ; ┓恢复中断屏蔽寄存器(IMREG)的原值 out 021h, al ; ┛ call io_delay ret io_delay: nop nop nop nop ret _ClockHandler: ClockHandler equ _ClockHandler - $$ inc byte [gs:((80 * 1 + 0) * 2)] ; 屏幕第 1 行, 第 0 列。 mov al, 20h out 20h, al ; 发送 EOI iretd _UserIntHandler: UserIntHandler equ _UserIntHandler - $$ printC 0, 1, 'I' iretd _SpuriousHandler: SpuriousHandler equ _SpuriousHandler - $$ printC 0, 0, '!' jmp $ iretd ; 启动分页机制 SetupPaging: ; 根据内存大小计算应初始化多少PDE以及多少页表 xor edx, edx mov eax, [dwMemSize] mov ebx, 400000h ; 400000h = 4M = 4096 * 1024, 一个页表对应的内存大小 div ebx mov ecx, eax ; 此时 ecx 为页表的个数,也即 PDE 应该的个数 test edx, edx jz .no_remainder inc ecx ; 如果余数不为 0 就需增加一个页表 .no_remainder: mov [PageTableNumber], ecx ; 暂存页表个数 ; 为简化处理, 所有线性地址对应相等的物理地址. 并且不考虑内存空洞. ; 首先初始化页目录 mov ax, SelectorFlatRW mov es, ax mov edi, PageDirBase0 ; 此段首地址为 PageDirBase0 xor eax, eax mov eax, PageTblBase0 | PG_P | PG_USU | PG_RWW .1: stosd add eax, 4096 ; 为了简化, 所有页表在内存中是连续的. loop .1 ; 再初始化所有页表 mov eax, [PageTableNumber] ; 页表个数 mov ebx, 1024 ; 每个页表 1024 个 PTE mul ebx mov ecx, eax ; PTE个数 = 页表个数 * 1024 mov edi, PageTblBase0 ; 此段首地址为 PageTblBase0 xor eax, eax mov eax, PG_P | PG_USU | PG_RWW .2: stosd add eax, 4096 ; 每一页指向 4K 的空间 loop .2 mov eax, PageDirBase0 mov cr3, eax mov eax, cr0 or eax, 80000000h mov cr0, eax jmp short .3 .3: nop ret ; 测试分页机制 Main: mov ax, cs mov ds, ax mov ax, SelectorFlatRW mov es, ax push LenFoo push OffsetFoo push ProcFoo call MemCpy add esp, 12 push LenBar push OffsetBar push ProcBar call MemCpy add esp, 12 push LenPagingDemoAll push OffsetPagingDemoProc push ProcPagingDemo call MemCpy add esp, 12 mov ax, SelectorData mov ds, ax ; 数据段选择子 mov es, ax call SetupPaging ; 启动分页 call SelectorFlatC:ProcPagingDemo call PSwitch ; 切换页目录,改变地址映射关系 call SelectorFlatC:ProcPagingDemo ret ; 切换页表 PSwitch: ; 初始化页目录 mov ax, SelectorFlatRW mov es, ax mov edi, PageDirBase1 ; 此段首地址为 PageDirBase1 xor eax, eax mov eax, PageTblBase1 | PG_P | PG_USU | PG_RWW mov ecx, [PageTableNumber] .1: stosd add eax, 4096 ; 为了简化, 所有页表在内存中是连续的. loop .1 ; 再初始化所有页表 mov eax, [PageTableNumber] ; 页表个数 mov ebx, 1024 ; 每个页表 1024 个 PTE mul ebx mov ecx, eax ; PTE个数 = 页表个数 * 1024 mov edi, PageTblBase1 ; 此段首地址为 PageTblBase1 xor eax, eax mov eax, PG_P | PG_USU | PG_RWW .2: stosd add eax, 4096 ; 每一页指向 4K 的空间 loop .2 ; 在此假设内存是大于 8M 的 mov eax, LinearAddrDemo shr eax, 22 mov ebx, 4096 mul ebx mov ecx, eax mov eax, LinearAddrDemo shr eax, 12 and eax, 03FFh ; 1111111111b (10 bits) mov ebx, 4 mul ebx add eax, ecx add eax, PageTblBase1 mov dword [es:eax], ProcBar | PG_P | PG_USU | PG_RWW mov eax, PageDirBase1 mov cr3, eax jmp short .3 .3: nop ret PagingDemoProc: OffsetPagingDemoProc equ PagingDemoProc - $$ mov eax, LinearAddrDemo call eax retf LenPagingDemoAll equ $ - PagingDemoProc foo: OffsetFoo equ foo - $$ mov ah, 0Ch ; 0000: 黑底 1100: 红字 mov al, 'F' mov [gs:((80 * 17 + 0) * 2)], ax ; 屏幕第 17 行, 第 0 列。 mov al, 'o' mov [gs:((80 * 17 + 1) * 2)], ax ; 屏幕第 17 行, 第 1 列。 mov [gs:((80 * 17 + 2) * 2)], ax ; 屏幕第 17 行, 第 2 列。 ret LenFoo equ $ - foo bar: OffsetBar equ bar - $$ mov ah, 0Ch ; 0000: 黑底 1100: 红字 mov al, 'B' mov [gs:((80 * 18 + 0) * 2)], ax ; 屏幕第 18 行, 第 0 列。 mov al, 'a' mov [gs:((80 * 18 + 1) * 2)], ax ; 屏幕第 18 行, 第 1 列。 mov al, 'r' mov [gs:((80 * 18 + 2) * 2)], ax ; 屏幕第 18 行, 第 2 列。 ret LenBar equ $ - bar ; 显示内存信息 DispMemSize: push esi push edi push ecx mov esi, MemChkBuf mov ecx, [dwMCRNumber];for(int i=0;i<[MCRNumber];i++)//每次得到一个ARDS .loop: ;{ mov edx, 5 ; for(int j=0;j<5;j++) //每次得到一个ARDS中的成员 mov edi, ARDStruct ; {//依次显示BaseAddrLow,BaseAddrHigh,LengthLow, .1: ; LengthHigh,Type push dword [esi] ; call DispInt ; DispInt(MemChkBuf[j*4]); //显示一个成员 pop eax ; stosd ; ARDStruct[j*4] = MemChkBuf[j*4]; add esi, 4 ; dec edx ; cmp edx, 0 ; jnz .1 ; } call DispReturn ; printf("\n"); cmp dword [dwType], 1 ; if(Type == AddressRangeMemory) jne .2 ; { mov eax, [dwBaseAddrLow]; add eax, [dwLengthLow]; cmp eax, [dwMemSize] ; if(BaseAddrLow + LengthLow > MemSize) jb .2 ; mov [dwMemSize], eax ; MemSize = BaseAddrLow + LengthLow; .2: ; } loop .loop ;} ; call DispReturn ;printf("\n"); push szRAMSize ; call DispStr ;printf("RAM size:"); add esp, 4 ; ; push dword [dwMemSize] ; call DispInt ;DispInt(MemSize); add esp, 4 ; pop ecx pop edi pop esi ret ; 库函数 %include "lib.inc" SegCode32Len equ $ - LABEL_SEG_CODE32 ; 16 位代码段. 由 32 位代码段跳入, 跳出后到实模式 ALIGN 32 [BITS 16] LABEL_SEG_CODE16: ; 跳回实模式: mov ax, SelectorNormal mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov eax, cr0 ;and al, 11111110b and eax, 0x7FFFFFFE ; PE=0, PG=0 mov cr0, eax LABEL_GO_BACK_TO_REAL: ; 段地址会在程序开始处被设置成正确的值 jmp 0:LABEL_REAL_ENTRY Code16Len equ $-LABEL_SEG_CODE16 %include "gdt.inc" %include "page.inc" %include "idt.inc"
17.119048
67
0.668605
458d40153c2faa2b7fa48a20ba2813e4e28f6b8e
403
asm
Assembly
startup.asm
tpo/one_million_hellos
d1eeabd5ab2e6453d1bc4b547c3eefc034ab1454
[ "BSD-2-Clause" ]
null
null
null
startup.asm
tpo/one_million_hellos
d1eeabd5ab2e6453d1bc4b547c3eefc034ab1454
[ "BSD-2-Clause" ]
null
null
null
startup.asm
tpo/one_million_hellos
d1eeabd5ab2e6453d1bc4b547c3eefc034ab1454
[ "BSD-2-Clause" ]
1
2018-07-19T15:00:36.000Z
2018-07-19T15:00:36.000Z
;; exit immediately section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point _exit: mov eax,1 ;system call number (sys_exit) mov ebx,0 ;exit value int 0x80 ;call kernel
33.583333
81
0.39206
81655774460d1a1b78859b158f5ae1444d817ac6
8,042
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_481.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.log_21829_481.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.log_21829_481.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0xff13, %rbp nop nop nop nop and $29722, %r8 mov $0x6162636465666768, %r9 movq %r9, (%rbp) nop and %rax, %rax lea addresses_WT_ht+0x1957b, %r9 nop nop nop nop xor $38316, %rdi mov $0x6162636465666768, %r11 movq %r11, %xmm0 movups %xmm0, (%r9) nop nop nop add %rbp, %rbp lea addresses_A_ht+0x7a7b, %r8 nop nop nop nop nop and %rax, %rax movb (%r8), %r9b nop nop nop nop inc %rdi lea addresses_normal_ht+0x1057b, %rax and $2175, %r9 mov (%rax), %r8w xor $56125, %rdi lea addresses_WC_ht+0x829b, %rsi lea addresses_D_ht+0x1ad7b, %rdi nop nop nop nop sub %r11, %r11 mov $23, %rcx rep movsb nop nop nop nop nop and $22894, %rdi lea addresses_normal_ht+0xc64b, %rsi lea addresses_A_ht+0x1cc25, %rdi clflush (%rdi) nop nop inc %rax mov $12, %rcx rep movsw nop nop nop nop nop cmp %rbp, %rbp lea addresses_WC_ht+0x2b7b, %rcx clflush (%rcx) nop nop nop nop xor $10632, %r8 mov $0x6162636465666768, %r11 movq %r11, (%rcx) nop and %r8, %r8 lea addresses_normal_ht+0x753b, %r11 nop nop nop nop cmp $24358, %rax mov (%r11), %cx nop nop and %r11, %r11 lea addresses_normal_ht+0x1d57b, %rsi lea addresses_A_ht+0xdb3b, %rdi nop nop nop nop add $50692, %rbp mov $53, %rcx rep movsl nop sub $27494, %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r8 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rax push %rcx push %rdi push %rdx // Store lea addresses_PSE+0xc8bd, %rdx cmp $17318, %r10 mov $0x5152535455565758, %rcx movq %rcx, %xmm6 movups %xmm6, (%rdx) nop nop nop add $53151, %r12 // Store lea addresses_RW+0x1b17b, %r10 nop nop add %rax, %rax movb $0x51, (%r10) nop nop nop xor $45262, %rcx // Store lea addresses_WC+0x168df, %rax and %r12, %r12 mov $0x5152535455565758, %r8 movq %r8, (%rax) nop add %r12, %r12 // Store lea addresses_RW+0x1b443, %rdi nop add $2500, %rax movl $0x51525354, (%rdi) nop add %r10, %r10 // Store mov $0x38acca000000057b, %r10 xor $5054, %rcx movl $0x51525354, (%r10) nop nop nop nop nop dec %rax // Store mov $0x5adba10000000f7b, %rdi add %r12, %r12 movw $0x5152, (%rdi) nop nop nop nop dec %r10 // Store mov $0x256b590000000dd7, %rcx nop nop add $18324, %rdi mov $0x5152535455565758, %r10 movq %r10, %xmm6 movups %xmm6, (%rcx) nop nop nop sub %r8, %r8 // Faulty Load lea addresses_WT+0x297b, %rdx xor $60125, %rax vmovntdqa (%rdx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %rdi lea oracles, %rax and $0xff, %rdi shlq $12, %rdi mov (%rax,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_RW', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_RW', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_NC', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_NC', 'AVXalign': False, 'size': 16}} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 10, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
32.297189
2,999
0.653942
7f7e5332a5aac67b6b1e99d20b795b65772aa653
60
asm
Assembly
gfx/pokemon/gloom/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/gloom/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/gloom/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
setrepeat 2 frame 0, 10 frame 5, 10 dorepeat 1 endanim
10
12
0.7
0fa7db60bd370dc8bb32b9a8ce456559748256e1
603
asm
Assembly
dino/lcs/enemy/83.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/enemy/83.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/enemy/83.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 00606E tst.b ($83,A6) 006072 bne $60e0 [123p+ 83, enemy+83] 0060D4 move.b #$1, ($83,A6) 0060DA jmp $9af4.l [123p+ 83, enemy+83] 02A76E clr.b ($83,A6) [enemy+51] 02A772 move.b #$4, ($7b,A6) [enemy+83] 02A8F8 clr.b ($83,A6) [enemy+51] 02A8FC move.b #$4, ($7b,A6) [enemy+83] 02A9E2 clr.b ($83,A6) 02A9E6 move.b #$4, ($7b,A6) 02AD06 clr.b ($83,A6) [enemy+51] 02AD0A move.b #$4, ($7b,A6) [enemy+83] 057DBA clr.b ($83,A6) 057DBE move.b #$10, ($25,A6) copyright zengfr site:http://github.com/zengfr/romhack
31.736842
54
0.606965
a7415e2c203c12432e04ee8f0e6a040984b06cc7
341
asm
Assembly
oeis/349/A349487.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/349/A349487.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/349/A349487.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A349487: a(n) = A132739((n-5)*(n+5)). ; Submitted by Simon Strandgaard ; 11,24,39,56,3,96,119,144,171,8,231,264,299,336,3,416,459,504,551,24,651,704,759,816,7,936,999,1064,1131,48,1271,1344,1419,1496,63,1656,1739,1824,1911,16,2091,2184,2279,2376,99,2576,2679,2784,2891,24,3111 add $0,1 mov $1,$0 add $0,10 mul $0,$1 lpb $0 dif $0,5 lpe
28.416667
205
0.683284
cdebcc8d56a4dfff820147a0667d5856fc0f4dca
20,038
asm
Assembly
45/qb/ir/txtthr.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/qb/ir/txtthr.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/qb/ir/txtthr.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
TITLE txtthr.asm - Text Table Linked List Maintenance Functions ;========================================================================== ; ;Module: txtthr.asm - Text Table Linked List Maintenance Functions ;System: Quick BASIC Interpreter ; ;=========================================================================*/ include version.inc TXTTHR_ASM = ON IncludeOnce architec IncludeOnce context IncludeOnce opcodes IncludeOnce opaftqb4 IncludeOnce qbimsgs includeOnce txtint includeOnce txtmgr includeOnce types includeOnce variable assumes DS,DATA assumes SS,DATA assumes ES,NOTHING sBegin CODE ;These opcodes are of special interest whenever they are inserted: ; PUBLIC tOpUpdl tOpUpdl LABEL WORD opTabStart UPDL opTabEntry UPDL,opLab opTabEntry UPDL,opLabSp opTabEntry UPDL,opBolLab opTabEntry UPDL,opBolLabSp UPDL_labMax EQU UPDL_opBolLabSp ; Put in opBol to keep terminate most searches in update links ; before encountering opEot. This significantly speeds up generic ; edits which don't have any threads past the point of the edit. opTabEntry UPDL,opBol UPDL_SkipMax EQU UPDL_opBol opTabEntry UPDL,opReParse opTabEntry UPDL,opStDefType opTabEntry UPDL,opStType opTabEntry UPDL,opStEndType opTabEntry UPDL,opStDefFn opTabEntry UPDL,opStEndDef opTabEntry UPDL,opEndSingleDef opTabEntry UPDL,opEot ;Opcodes which are valid within TYPE/END TYPE blocks ; tOpTypes LABEL WORD opTabStart TYPES opTabEntry TYPES,opElemRef opTabEntry TYPES,opAsType opTabEntry TYPES,opAsTypeExp opTabEntry TYPES,opAsTypeFixed opTabEntry TYPES,opStEndType TYPES_DispatchMax EQU TYPES_opStEndType ; the following opcodes are allowed but no processing is required ; by ScanBlock opTabEntry TYPES,opBol opTabEntry TYPES,opBos opTabEntry TYPES,opBolSp opTabEntry TYPES,opBolInclude opTabEntry TYPES,opBolIncludeSp opTabEntry TYPES,opStRem opTabEntry TYPES,opQuoteRem opTabEntry TYPES,op_Static opTabEntry TYPES,op_Dynamic opTabEntry TYPES,op_Include opTabEntry TYPES,opEot sEnd CODE sBegin CP assumes cs,CP ;Threaded pcode descriptor THR_DSC STRUC THR_otxPrev DW 0 ;points to previous thread THR_fInDS DW 0 ;non-zero if THR_otxPrev is a DS offset THR_DSC ENDS ;************************************************************************* ; TxtDeThread(ax:pHead, di:otxDelFirst, cx:cbDel) ; ; Purpose: ; Called when a block of text is deleted. ; Traverse a linked list through the current text table, ; removing any nodes which are being deleted, and updating ; next-node-offsets for those nodes beyond the deleted range. ; This function is called BEFORE the text has been deleted. ; ; Entry: ; ax = pointer to ushort which heads linked list ; for example, &txdCur.otxLabLink ; di = text offset to 1st byte being deleted ; cx = number of bytes being deleted ; ; Preserves: ; cx (callers depend on this) ; ;************************************************************************* cProc TxtDeThread,<PUBLIC,NEAR>,<si> localW segTxtTab ;text table's segment cBegin xchg si,ax ;si points to head of list DbChk TxdCur ;perform sanity check on txdCur GetSegTxtTblCur ;es = seg adr of cur txt tbl ;preserves cx mov [segTxtTab],es ;save text table's segment mov dx,ds ;dx -> prev link node's segment (DGROUP) mov bx,[si] ;bx -> 1st node in linked list (in ES) mov ax,di add ax,cx ;ax -> last byte deleted DbChk Otx,ax DeThrLoop: cmp bx,UNDEFINED je DeThrExit ;branch if done with linked list DbChk Otx,bx cmp bx,di jb DeThrUnaffected ;brif node is unaffected by delete ; (i.e. node < 1st byte deleted) cmp bx,ax jb DeThrDeleted ;brif node is in deleted range ; (i.e. node < last byte deleted) ;else node is beyond deleted range mov es,dx ;es = segment of predecessor node ;may be DGROUP:pHead or es:<node> mov es:[si],bx ;update predecessor node sub es:[si],cx mov es,[segTxtTab] ;es = text table's segment DeThrUnaffected: mov si,bx ;save offset of prev node ptr in si mov dx,es ;save seg of prev node ptr in dx DeThrDeleted: mov bx,es:[bx] ;bx points to next node in list jmp SHORT DeThrLoop DeThrExit: mov es,dx ;es = segment of predecessor node ;may be DGROUP:pHead or es:<node> mov es:[si],bx ;update predecessor node cEnd ;********************************************************************** ; TxtDelThread ; Purpose: ; Called BEFORE pcode is deleted from current text table. ; Traverses all linked lists through the text table, ; updating the linked lists for the delete. ; Entry: ; parm1 = offset to start of delete ; parm2 = cbDel ; ;********************************************************************** ; TxtDeThread(&txdCur.otxLabLink, otxDelFirst, cbDel) ; TxtDeThread(&txdCur.otxReParseLink, otxDelFirst, cbDel) ; TxtDeThread(&txdCur.otxDefTypeLink, otxDelFirst, cbDel) ; TxtDeThread(&txdCur.otxTypeLink, otxDelFirst, cbDel) ; ; NOTE: TxtDeThread takes ax,cx,di as parms and preserves cx ; cProc TxtDelThread,<PUBLIC,NEAR>,<si,di> parmW otxStart parmW cbDel cBegin mov di,[otxStart] mov cx,[cbDel] mov si,CPOFFSET TxtDeThread ;si = adr of function to call mov ax,dataOFFSET txdCur.TXD_otxTypeLink call si ;fixup otxTypeLink list mov ax,dataOFFSET txdCur.TXD_otxDefTypeLink call si ;fixup otxDefTypeLink list mov ax,dataOFFSET txdCur.TXD_otxReParseLink call si ;fixup otxReParseLink list mov ax,dataOFFSET txdCur.TXD_otxLabLink call si ;fixup otxLabLink list test [txdCur.TXD_flags],FTX_mrs je DelNotMod ;brif not module text table ; The linked list of opcodes headed by mrsCur.MRS_data_otxFirst ; only needs to be maintained while in SS_EXECUTE state, so ; we don't need to fix it up here mov ax,dataOFFSET mrsCur.MRS_otxDefFnLink call si DelNotMod: cEnd ;************************************************************************* ; TxtInsThread(pHead, pThrDsc, otxInsFirst, cbIns) ; ; Purpose: ; Called when a block of text is inserted. Traverse a linked ; list through the current text table, updating next-node-offsets ; for those nodes beyond the inserted range. ; This function is called AFTER the text has been inserted. ; ; Entry: ; parm1: pointer to ushort which heads linked list ; for example, &txdCur.otxLabLink ; parm2: pointer to thread descriptor which on exit contains fields: ; THR_otxPrev: offset to head or node which precedes the node ; being inserted in the list ; THR_fInDS: non-zero if THR_otxPrev is an offset into DS ; zero if THR_otxPrev is an offset into text table ; parm3: text offset to 1st byte inserted ; parm4: number of bytes being deleted ; ; Exit: ; *pThrDsc is updated so it refers to the last link which ; precedes otxInsFirst. ; ;************************************************************************* cProc TxtInsThread,<PUBLIC,NEAR>,<si,di> parmW pHead parmW pThrDsc parmW otxInsFirst parmW cbIns cBegin DbChk TxdCur ;perform sanity check on txdCur mov si,[pHead] ;si -> head of linked list (in DGROUP) mov di,[pThrDsc] mov [di.THR_otxPrev],si ;default THR_otxPrev to head of list mov [di.THR_fInDS],1 ;set flag indicating THR_otxPrev is ; offset in DS GetSegTxtTblCur ;es = seg adr of cur txt tbl mov ax,es ;ax = seg adr of cur txt tbl ;NOTE: ax=es for remainder of function mov dx,ds ;dx -> prev link node's segment (DGROUP) mov bx,[si] ;bx -> 1st node in linked list (in ES) mov cx,[cbIns] ;cx = #bytes inserted InsThrLoop: cmp bx,[otxInsFirst] ;compare with adr of 1st byte inserted jb InsThrUnaffected ;brif node is unaffected by insert ; (i.e. node < 1st byte inserted) cmp bx,UNDEFINED je InsThrExit ;branch if done with linked list mov es,dx ;es = segment of predecessor node ;may be DGROUP:pHead or es:<node> add bx,cx ;bx points to where node is after insert mov es:[si],bx ;update predecessor node mov es,ax ;es = text table's segment jmp SHORT NextLink InsThrUnaffected: mov [di.THR_otxPrev],bx ;THR_otxPrev points to last link before ; inserted block of text mov [di.THR_fInDS],0 ;reset flag to 0, indicating THR_otxPrev ; is relative to the text segment NextLink: mov si,bx ;save offset of prev node ptr in si mov dx,es ;save seg of prev node ptr in dx mov bx,es:[si] ;bx points to next node in list jmp SHORT InsThrLoop InsThrExit: cEnd ;************************************************************************* ; TxtAddThread(pThrDsc, otxNewLink) ; ; Purpose: ; Called AFTER a block of text has been inserted which contains ; an opcode having an operand that should be added to a linked ; list through the text table. This function inserts this opcode ; in the list. ; ; Entry: ; parm1: pointer to thread descriptor which contains following fields: ; THR_otxPrev: offset to head or node which precedes the node ; being inserted in the list ; THR_fInDS: non-zero if THR_otxPrev is an offset into DS ; zero if THR_otxPrev is an offset into text table ; parm2: pointer to new link field to add to linked list ; ;************************************************************************* cProc TxtAddThread,<PUBLIC,NEAR>,<si,di> parmW pThrDsc parmW otxNewLink cBegin DbChk TxdCur ;perform sanity check on txdCur GetSegTxtTblCur ;es = seg adr of cur txt tbl mov ax,es ;ax = seg adr of cur txt tbl mov si,[pThrDsc] ;si -> thread descriptor mov bx,[si.THR_otxPrev] ;bx -> prev node / head of list cmp [si.THR_fInDS],0 je prevInTxt ;brif bx is offset within text table mov [si.THR_fInDS],0 ;reset THR_fInDS to 0 push ds pop es ;es -> DGROUP prevInTxt: mov dx,es:[bx] ;dx -> next node mov di,[otxNewLink] ;di -> new node DbChk Otx,di mov es:[bx],di ;prev node -> new node mov es,ax ;es -> text table mov es:[di],dx ;new node -> next node mov [si.THR_otxPrev],di ;save adr of new node in thread dsc cEnd ;************************************************************** ; void NEAR UpdateLinks(otxInsStart, otxInsEnd) ; void NEAR NoWalkUpdateLinks(otxInsStart, otxInsEnd) ; ; Purpose: ; Called after some text has been inserted into the current text table. ; During ASCII Load, it is not called for every line, but every ; time we switch text tables (speed optimization for LOAD). ; For each inserted opcode which has a link-field operand, it ; is inserted into its appropriate linked list. The NoWalkUpdateLinks ; entrypoint allows the binary translator to adjust links for pcode ; growth without looking at the inserted pcode. This is necessary as ; the pcode is not valid until after all translation has been performed. ; ; Entry: ; grs.oMrsCur, grs.oPrsCur have their usual meaning ; txdCur.bdlText describes the current text table. ; ps.bdpSrc contains source line to be inserted ; parm1: ushort otxInsStart - text table offset to opBol ; opcode for 1st line inserted. ; parm2: ushort otxInsEnd - text table offset to opBol ; opcode beyond last line inserted. ; (parm2 - parm1) should equal the number of bytes inserted. ; If this (parm2 - parm1), this function is effectively a nop. ; ; Exit: ; no error or exception is possible. ; ;************************************************************** ;DoInsThread ;Entry: ; ax = adr of head of linked list (in DS) ; bx = adr of local thread descriptor used to remember previous link ; si = adr of 1st byte inserted ; di = # bytes inserted ; DoInsThread PROC NEAR push ax ;pass DS offset to head of linked list push bx ;pass offset to thread descriptor push si ;pass otxInsStart push di ;pass cbIns call TxtInsThread ;update linked list for inserted pcode ret DoInsThread ENDP cProc NoWalkUpdateLinks,<PUBLIC,NEAR> cBegin mov al, 00h SKIP2_PSW cEnd <nogen> cProc UpdateLinks,<PUBLIC,NEAR> cBegin mov al, 01h cEnd <nogen> cProc UpdateCommon,<PUBLIC,NEAR>,<si,di> parmW otxInsStart parmW otxInsEnd localV thrLab,<size THR_DSC> localV thrReParse,<size THR_DSC> localV thrType,<size THR_DSC> localV thrDefType,<size THR_DSC> localV thrDefFn,<size THR_DSC> localB fWalkNew ; !0 => walk inserted pcode cBegin mov fWalkNew, al ; save flag for later DbChk Otx,[otxInsStart] DbChk Otx,[otxInsEnd] mov si,[otxInsStart] ;si = offset to 1st byte to delete DbAssertRel si,be,otxInsEnd,CP,<UpdateLinks err 1> mov di,[otxInsEnd] ;di = offset to last byte to delete sub di,si ;di = cbIns ;Traverse all linked lists through the text table, ;updating the linked lists for the insert ; mov ax,dataOFFSET txdCur.TXD_otxLabLink lea bx,[thrLab] call DoInsThread mov ax,dataOFFSET txdCur.TXD_otxReParseLink lea bx,[thrReParse] call DoInsThread mov ax,dataOFFSET txdCur.TXD_otxTypeLink lea bx,[thrType] call DoInsThread mov ax,dataOFFSET txdCur.TXD_otxDefTypeLink lea bx,[thrDefType] call DoInsThread test [txdCur.TXD_flags],FTX_mrs je UpdNotMod ;brif we're not looking at module text ;fix linked lists which can only occur in a module text table mov ax,dataOFFSET mrsCur.MRS_otxDefFnLink lea bx,[thrDefFn] call DoInsThread ; The linked list of opcodes headed by mrsCur.MRS_data_otxFirst ; only needs to be maintained while in SS_EXECUTE state, so ; we don't need to fix it up here UpdNotMod: mov al, fWalkNew ; check if we need to walk new pcode or al, al jz UpdDone ; brif no need to walk inserted pcode push si ;pass otxInsStart PUSHI ax,<CODEOFFSET tOpUpdl> call TxtFindOp ;ax = offset to 1st interesting opcode UpdLoop: mov si,ax ;si = otxCur (offset to cur opcode) cmp ax,[otxInsEnd] jae UpdDone ;brif beyond end of inserted pcode mov al,[txtFindIndex] cmp al,UPDL_labMax ja UpdNotLab ;brif not a label opcode lea ax,[thrLab] push ax lea ax,[si+2] ;ax = offset to link field push ax call TxtAddThread jmp SHORT UpdNext UpdNotLab: ;OpBol is in the UPDL_SkipMax range to cause us to terminate ; the TxtFindOp Calls before opEot if no threads are after ; oTxInsEnd. This significantly speeds up generic edits. cmp al,UPDL_SkipMax ;should we skip this opcode? jbe UpdNext ;brif so, get next opcode sub al,UPDL_opReParse sub ah,ah ;ax = dispatch index shl ax,1 ;ax = dispatch offset xchg ax,bx ;bx = dispatch offset jmp WORD PTR cs:UpdDisp[bx] UpdDisp: DW UpdOpReParse DW UpdOpStDefType DW UpdOpStType DW UpdOpStEndType DW UpdOpStDefFn DW UpdOpStEndDef DW UpdOpEndSingleDef DW UpdDone ;for opEot (caller can pass ;txdCur.cbLogical which would allow ;opEot to be found by TxtFind... UpdNext: push si ;pass otxCur PUSHI ax,<CODEOFFSET tOpUpdl> call TxtFindNextOp jmp SHORT UpdLoop UpdDone: DbChk TxdThr ;check all threads through cur txt table cEnd ;UpdLinks ;for opReParse, the 1st operand is a byte count, ; the 2nd operand is the link field ; UpdOpReParse: lea ax,[thrReParse] jmp SHORT UpdAdd4 UpdOpStDefType: lea ax,[thrDefType] push ax lea ax,[si+2] ;ax = offset to link field push ax jmp SHORT UpdAdd UpdOpStType: UpdOpStEndType: lea ax,[thrType] push ax lea ax,[si+2] ;ax = offset to link field push ax call TxtAddThread jmp SHORT UpdNext ;for these opcodes, the 1st operand is a byte count, ; the 2nd operand is the link field ; UpdOpStDefFn: UpdOpStEndDef: UpdOpEndSingleDef: lea ax,[thrDefFn] UpdAdd4: push ax lea ax,[si+4] ;ax = offset to link field push ax UpdAdd: call TxtAddThread jmp UpdNext ;************************************************************** ; ushort ScanTypeBlock ; Purpose: ; This function goes through the a TYPE block in the current text table ; NOTE: ; Parse->Execute Scanner prevents id AS type statement outside ; TYPE/END TYPE block. ; Entry: ; si = text offset beyond opStType opcode ; Exit: ; If no error occurred ; returns 0 ; si points beyond opStEndType's operands ; Else returns standard qbi error message code in ax (see qbimsgs.h): ; MSG_UndType if "x AS foo" was seen, but either foo is not defined ; or it is defined beyond the reference (forward refs are illegal ; because BASCOM doesn't know how to handle them) ; ER_DD if either "TYPE x" has already been defined, or ; 2 elements within 1 type record have the same name ; MSG_InvInTypeBlk if some statement which is illegal within ; a TYPE block was seen ; ER_OM if out-of-memory ; si points to 1st byte of opcode which caused error ; ;************************************************************** cProc ScanTypeBlock,<PUBLIC,FAR>,<di> localW oNamElem localW oTypType cBegin xor ax,ax ;ax = 0 mov [oNamElem],ax ;initialize [oNamElem] to zero lea ax,[si+2] ;ax points to oNam field call GetWOtx ;ax = oNam field push ax call DefineTyp or ax,ax js J1_StExit ;brif got some error mov [oTypType],ax dec si dec si ;si points to opStType's opcode ;now try to define each element within the type block ;Element definitions in the type block have the form: ; foo AS bar ==> opElemRef(oNam<foo>) opAsType(oNam<bar>,column) ; foo AS INTEGER ==> opElemRef(oNam<foo>) opAsTypeExp(ET_I2,column) ; foo AS STRING * 6 ==> opElemRef(oNam<foo>) opAsTypeExp(0x8006,column) StLoop: mov di,si ;di points to opStType's opcode mov ax,di ;pass otxPrev in ax call TxtSkipOp ;ax = offset to next opcode xchg si,ax ;si = text offset push di ;pass otxPrev PUSHI ax,<CODEOFFSET tOpTypes> call TxtFindNextOp cmp ax,si mov ax,MSG_InvInTypeBlk jne StExit ;brif invalid opcode was found in line cmp dl,TYPES_DispatchMax ja StLoop ;brif no special processing required lea ax,[si+2] ;ax points to opcode's 1st operand push dx ;save [txtFindIndex] call GetWOtx ;ax = 1st operand pop dx ;dl = [txtFindIndex] xor dh,dh shl dx,1 ;dx = dispatch offset mov bx,dx ;bx = dispatch offset jmp WORD PTR CP:AsTypeDispatch[bx] ;dispatch to handler AsTypeDispatch: DW CPOFFSET TyOpElemRef DW CPOFFSET TyOpAsType DW CPOFFSET TyOpAsTypeExp DW CPOFFSET TyOpAsTypeFixed DW CPOFFSET TyOpStEndType TyOpStEndType: mov ax,MSG_UndElem ;prepare for no elements in type mov bx,[oTypType] ; bx = ptr to type entry add bx,[mrsCur.MRS_bdVar.BD_pb] ;[4] get type table base cmp [bx.TYP_oElementFirst],0 ;were any elements defined? je StExit ;brif not, generate error lodsw ;skip opStEndType opcode lodsw ;skip opStEndType's operand sub ax,ax ;no error occurred J1_StExit: jmp SHORT StExit ; id AS within a TYPE/END TYPE block - save oNam in oNamElem ; ax = oNam field ; TyOpElemRef: mov [oNamElem],ax StLoop2: ;fix jump out of range jmp SHORT StLoop ; saw an AS <user type> within a TYPE/END TYPE block ; call DefineElem to define the element ; TyOpAsType: push ax ;pass oNam of element's user type push si ;pass text offset call RefTyp ;ax = oTyp for element's oNam CheckError: or ax,ax js StExit ; brif RefTyp returned error code ; Fall into dispatch routine for TyOpAsTypeExp ; saw an AS <explicit type> within a TYPE/END TYPE block - ; call DefineElem to define the element ; TyOpAsTypeExp: mov bx,CPOFFSET DefineElem ;prepare to call DefineElem CallDefineElemxxx: xor cx,cx ;cx = 0 xchg cx,[oNamElem] ;cx = oNam; zero [oNamElem] jcxz GotADim ;brif oNam is zero push cx ;pass oNam given by opElemRef push [oTypType] ;pass oTyp for TYPE block being built push ax ;pass oTyp for element call bx ;call DefineElem[Exp] or ax,ax je StLoop2 ;brif no error StExit: and ah,7FH ;mask off high bit set by Variable Mgr cEnd ; saw an AS STRING*[oNam | cb] within a TYPE/END TYPE block - ; call DefineElemFixed to define the element ; TyOpAsTypeFixed: xchg di,ax ;save oTyp in di lea ax,[si+4] ;ax -> opcode's second operand call GetWOtx ;ax = byte count or oNam of constant push ax ;pass as 1st arg to DefineElemFixed xchg ax,di ;restore ax = oTyp mov bx,CPOFFSET DefineElemFixed ;bx = routine to define element jmp SHORT CallDefineElemxxx ;we've encountered an AsTypexxx opcode which was not preceeded by an ; opElemRef opcode. This can occur in a Dim statement and perhaps other places. GotADim: mov ax,MSG_InvInTypeBlk ;message "invalid in type block" jmp SHORT StExit ;exit sEnd CP end
30.406677
79
0.70506
45dfa36b5939a4c50c9be9dad291ee474bd7a276
12,553
asm
Assembly
P6/data_P6_2/ALUTest132.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/ALUTest132.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/ALUTest132.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
sll $0,$4,29 sw $1,4($0) or $3,$6,$3 lh $0,2($0) xori $3,$3,26469 addu $4,$4,$3 subu $4,$3,$3 or $3,$4,$3 sra $0,$0,7 and $0,$3,$3 sh $1,4($0) xori $5,$5,59196 sb $3,7($0) sw $5,4($0) addiu $0,$0,-21352 sllv $5,$0,$3 srl $1,$4,30 lbu $4,1($0) subu $3,$3,$3 addu $1,$5,$3 lhu $3,2($0) ori $3,$3,51711 lw $4,0($0) lb $0,5($0) sll $5,$1,20 sh $1,12($0) sb $3,5($0) srl $6,$3,28 sltiu $4,$6,29698 addiu $4,$0,2762 lw $3,8($0) and $5,$3,$3 addu $0,$3,$3 sw $5,12($0) addiu $3,$1,10790 xori $5,$6,16323 sw $3,4($0) sb $4,5($0) subu $4,$6,$3 sh $1,10($0) nor $5,$3,$3 lh $4,14($0) srlv $1,$6,$3 subu $3,$5,$3 sltiu $0,$0,6453 srlv $0,$4,$3 sltiu $3,$0,26026 sltu $1,$5,$3 sh $4,2($0) lb $3,7($0) lh $5,8($0) xor $1,$5,$3 lb $3,6($0) lw $4,16($0) lb $4,7($0) addiu $4,$1,-17499 sra $6,$3,6 sb $4,2($0) sll $3,$3,14 srl $1,$1,3 xor $3,$1,$3 sw $6,0($0) slt $3,$3,$3 lhu $5,4($0) lbu $5,1($0) srav $4,$4,$3 sw $1,0($0) ori $5,$0,24190 lw $3,12($0) addu $1,$5,$3 srav $3,$4,$3 subu $3,$4,$3 xori $1,$4,33899 sltu $3,$3,$3 ori $5,$3,29731 sltiu $6,$6,1460 lh $6,16($0) srav $4,$3,$3 ori $4,$6,34680 srav $1,$3,$3 sh $0,6($0) sltiu $3,$1,14339 srav $4,$1,$3 subu $3,$2,$3 subu $4,$6,$3 and $0,$6,$3 slti $3,$3,18970 subu $4,$0,$3 sh $1,14($0) lhu $1,6($0) sllv $1,$1,$3 sllv $3,$3,$3 and $4,$4,$3 srav $3,$3,$3 sllv $6,$2,$3 subu $4,$3,$3 lh $3,2($0) xori $6,$4,23453 addu $4,$5,$3 nor $4,$3,$3 lh $4,12($0) slti $3,$3,-24441 addu $3,$6,$3 xori $3,$3,62587 srav $0,$0,$3 sw $3,16($0) lhu $1,12($0) lhu $4,6($0) sltu $3,$2,$3 subu $3,$0,$3 and $5,$3,$3 addiu $4,$4,-3836 subu $1,$4,$3 sra $6,$3,26 lh $3,16($0) or $1,$1,$3 sltu $5,$5,$3 and $1,$5,$3 xor $3,$6,$3 sll $3,$6,7 slt $0,$0,$3 slti $1,$3,-12457 sh $4,8($0) xor $1,$1,$3 lhu $3,6($0) lw $0,12($0) lbu $1,5($0) sllv $3,$3,$3 addiu $0,$3,-13713 lhu $6,4($0) slt $3,$5,$3 lhu $5,6($0) lbu $3,0($0) sltu $4,$5,$3 or $1,$3,$3 sra $0,$1,13 slt $0,$4,$3 lb $3,15($0) addiu $3,$5,28604 sra $0,$4,30 sltu $4,$3,$3 slti $5,$1,-32666 sltiu $3,$5,-2909 and $1,$1,$3 lbu $5,15($0) sll $1,$3,29 sra $6,$4,22 xori $3,$1,55822 slti $1,$6,16799 sra $5,$5,17 addiu $5,$5,30779 subu $3,$3,$3 xor $3,$3,$3 andi $0,$4,62426 xor $6,$6,$3 srlv $3,$1,$3 subu $5,$5,$3 or $0,$5,$3 srl $3,$0,31 srl $1,$1,27 andi $1,$3,6392 sll $3,$2,28 lhu $4,12($0) nor $1,$3,$3 addu $3,$1,$3 srlv $4,$1,$3 xor $3,$1,$3 addiu $1,$5,16548 xori $3,$0,14018 sll $1,$4,7 subu $6,$6,$3 addiu $1,$1,18081 addiu $5,$0,11609 sw $4,8($0) lhu $3,8($0) subu $4,$6,$3 sw $4,8($0) slti $6,$6,-516 addu $3,$1,$3 srav $4,$2,$3 or $4,$4,$3 and $4,$2,$3 lbu $6,5($0) addu $1,$4,$3 sw $0,12($0) andi $4,$3,13300 nor $3,$3,$3 and $5,$5,$3 addiu $5,$6,22365 sltiu $1,$5,-10638 xor $3,$3,$3 sb $1,9($0) xori $3,$3,48837 srav $4,$0,$3 srav $4,$4,$3 nor $3,$3,$3 sra $4,$4,17 sh $1,12($0) or $3,$4,$3 lw $4,8($0) addiu $3,$1,-31061 sltiu $3,$3,-17278 subu $1,$3,$3 addu $4,$3,$3 addiu $6,$6,-13419 sra $4,$5,31 srl $4,$4,17 subu $3,$0,$3 addiu $4,$5,32138 slti $3,$5,13158 slt $6,$2,$3 subu $3,$4,$3 addu $5,$5,$3 lb $5,4($0) sltu $4,$6,$3 sb $3,8($0) srav $5,$5,$3 srl $3,$0,14 addiu $3,$5,13868 addiu $5,$5,-29824 and $3,$1,$3 lh $1,2($0) sll $3,$3,20 sh $4,4($0) lb $5,6($0) subu $3,$3,$3 sh $4,0($0) srl $4,$3,30 nor $4,$3,$3 slt $4,$4,$3 srav $5,$0,$3 srl $3,$3,10 sltu $4,$6,$3 slti $0,$0,-8452 srlv $5,$5,$3 sllv $4,$4,$3 srl $1,$6,1 sh $3,0($0) or $5,$5,$3 sra $4,$4,5 srlv $4,$4,$3 srav $5,$0,$3 nor $4,$4,$3 lbu $3,3($0) xori $4,$4,41610 lhu $3,4($0) andi $0,$0,65263 sw $5,0($0) sb $3,2($0) lhu $2,6($0) andi $5,$5,52554 ori $4,$4,54226 and $1,$4,$3 addiu $3,$4,26593 sltiu $3,$5,7742 addiu $4,$5,-10219 subu $4,$3,$3 nor $0,$5,$3 srlv $4,$1,$3 subu $0,$3,$3 sll $4,$3,7 lh $5,8($0) addu $4,$5,$3 sll $4,$5,28 srav $1,$3,$3 ori $4,$4,6997 nor $5,$5,$3 sltu $4,$5,$3 srl $3,$3,2 andi $6,$1,38255 sltu $5,$4,$3 lhu $4,6($0) xor $6,$3,$3 sltiu $6,$1,-21313 lhu $4,0($0) addu $5,$3,$3 addu $4,$0,$3 sllv $4,$4,$3 andi $5,$0,35085 andi $5,$5,5538 subu $4,$3,$3 srlv $1,$3,$3 lhu $5,16($0) sltiu $3,$3,22455 andi $4,$4,24178 and $3,$3,$3 subu $3,$3,$3 lbu $1,9($0) slti $0,$4,15384 sh $4,12($0) sh $4,10($0) sltu $1,$3,$3 or $3,$5,$3 sltu $3,$3,$3 lw $3,16($0) addu $3,$0,$3 sw $5,4($0) sltu $3,$3,$3 slt $4,$4,$3 or $3,$3,$3 addu $4,$4,$3 srav $3,$2,$3 sb $4,16($0) sllv $1,$3,$3 sra $0,$0,3 and $4,$2,$3 sb $4,4($0) andi $3,$1,64444 srl $4,$4,9 lh $5,14($0) sltiu $4,$3,2075 addiu $5,$0,5928 sll $3,$4,5 sltiu $4,$4,14006 slti $1,$1,8068 ori $4,$5,16433 lb $1,5($0) lh $3,8($0) lb $5,6($0) subu $3,$3,$3 subu $3,$4,$3 srav $6,$3,$3 subu $0,$6,$3 addu $1,$5,$3 sltiu $1,$0,-10088 lh $3,2($0) addu $5,$1,$3 addu $3,$1,$3 ori $3,$3,52429 srav $5,$4,$3 srav $4,$6,$3 lb $5,13($0) andi $5,$3,11527 lh $3,12($0) subu $5,$5,$3 srl $1,$3,23 ori $4,$2,41214 lh $6,8($0) sllv $4,$0,$3 lbu $3,2($0) lw $6,4($0) or $3,$4,$3 sra $3,$3,6 srav $6,$6,$3 lb $0,12($0) or $4,$0,$3 subu $4,$3,$3 ori $1,$4,18592 ori $1,$2,32953 srav $6,$6,$3 lh $6,0($0) addu $5,$3,$3 andi $4,$3,64712 addiu $4,$0,29050 lbu $0,15($0) sltiu $3,$5,10836 subu $5,$0,$3 ori $4,$1,56531 lhu $0,6($0) xor $3,$3,$3 addiu $5,$4,20886 sll $4,$4,21 lb $6,0($0) xori $3,$3,46051 sll $3,$6,29 subu $3,$1,$3 sh $4,14($0) xori $0,$3,45927 sw $1,12($0) subu $4,$4,$3 sh $1,0($0) subu $3,$3,$3 srav $4,$4,$3 sra $6,$1,16 and $4,$6,$3 srlv $0,$3,$3 addu $1,$3,$3 subu $3,$0,$3 sllv $4,$5,$3 sb $3,3($0) srl $1,$1,13 addu $3,$0,$3 slt $4,$2,$3 addu $3,$2,$3 slt $4,$3,$3 and $4,$6,$3 addu $1,$4,$3 xor $6,$1,$3 addu $4,$3,$3 sltiu $4,$3,1867 addu $1,$3,$3 sb $3,1($0) lhu $5,10($0) xor $6,$6,$3 addu $5,$4,$3 sra $5,$5,7 subu $4,$4,$3 ori $3,$5,43760 sll $5,$6,5 sltu $3,$6,$3 subu $3,$5,$3 sltu $3,$3,$3 sltiu $3,$1,12311 srav $5,$5,$3 sltiu $5,$4,870 sllv $5,$5,$3 sll $3,$3,4 andi $1,$3,15168 lw $5,16($0) subu $6,$0,$3 sltiu $4,$4,3335 slti $4,$3,-14045 and $5,$4,$3 subu $6,$3,$3 sra $4,$3,19 addiu $3,$4,2292 srav $5,$4,$3 subu $1,$0,$3 addiu $4,$4,-19445 srlv $3,$4,$3 srl $1,$3,2 ori $1,$3,29885 sw $6,16($0) sb $4,15($0) lb $0,2($0) or $5,$3,$3 sltu $4,$5,$3 srlv $3,$0,$3 slti $1,$3,4027 sll $6,$1,2 subu $3,$3,$3 sltiu $3,$5,14155 lw $3,0($0) sw $3,16($0) sh $6,14($0) sltu $3,$4,$3 lbu $5,0($0) nor $1,$4,$3 sra $1,$3,11 lbu $3,9($0) slt $5,$3,$3 srav $4,$5,$3 addu $4,$4,$3 addu $5,$3,$3 ori $3,$1,5117 addiu $4,$6,-8790 addiu $3,$3,26643 sllv $3,$2,$3 sllv $5,$1,$3 lw $4,8($0) or $1,$3,$3 xori $3,$1,39540 sllv $4,$1,$3 sltiu $6,$1,24584 lw $4,4($0) sb $5,13($0) ori $1,$5,53869 lhu $1,6($0) andi $3,$3,56709 sll $0,$0,2 srav $1,$3,$3 sb $0,7($0) or $3,$5,$3 lhu $4,10($0) lh $1,12($0) subu $4,$3,$3 ori $0,$4,24946 nor $3,$3,$3 sra $3,$3,19 subu $3,$3,$3 lw $5,0($0) sll $6,$0,31 xori $3,$3,10013 ori $3,$1,21603 lh $3,6($0) sltiu $1,$4,29929 sh $5,4($0) sllv $3,$3,$3 and $3,$3,$3 sw $3,16($0) subu $4,$5,$3 sra $4,$4,22 nor $5,$5,$3 sllv $3,$6,$3 lbu $0,12($0) lbu $5,4($0) lb $4,2($0) subu $1,$6,$3 slti $3,$3,-16202 xori $4,$3,50111 andi $5,$3,22564 sltiu $4,$4,-26038 srav $4,$4,$3 xor $1,$1,$3 sllv $4,$3,$3 nor $4,$3,$3 sltiu $5,$4,21414 subu $3,$3,$3 slti $4,$5,15938 addu $3,$1,$3 and $1,$5,$3 xor $3,$3,$3 sllv $4,$1,$3 slti $3,$3,-22467 sllv $4,$1,$3 xor $4,$1,$3 xori $4,$4,21266 addu $1,$3,$3 lhu $1,2($0) nor $5,$3,$3 lw $3,4($0) addu $1,$3,$3 sb $3,0($0) lh $5,2($0) subu $5,$4,$3 lhu $6,16($0) sll $3,$1,19 sltiu $5,$1,1134 addiu $4,$4,-2142 lbu $1,11($0) sh $6,10($0) subu $3,$5,$3 slti $1,$5,-13476 xori $3,$5,43149 lw $6,16($0) or $4,$4,$3 subu $3,$6,$3 addiu $4,$3,4539 addiu $1,$3,-1353 lhu $6,10($0) xori $3,$3,17713 and $0,$1,$3 sh $4,14($0) sltu $4,$3,$3 xori $4,$4,17456 xori $1,$5,18344 and $0,$0,$3 lbu $3,12($0) subu $4,$0,$3 lw $3,12($0) sw $3,12($0) addiu $3,$3,-22577 slt $1,$1,$3 ori $5,$0,39422 andi $5,$3,16312 sltiu $3,$1,-8859 slt $5,$5,$3 nor $3,$3,$3 slti $6,$4,-10558 addu $3,$4,$3 addiu $5,$5,-9157 nor $4,$3,$3 xori $3,$5,62865 addu $5,$3,$3 ori $4,$3,51105 sllv $4,$3,$3 sllv $4,$5,$3 slt $5,$5,$3 srav $3,$1,$3 sra $4,$3,7 subu $3,$3,$3 sh $4,6($0) sltu $3,$3,$3 xor $3,$3,$3 subu $1,$0,$3 slt $1,$1,$3 srav $3,$0,$3 lbu $6,0($0) sltu $3,$4,$3 slti $0,$3,-30208 lw $5,4($0) addiu $4,$4,4925 srlv $3,$6,$3 lbu $3,4($0) sll $3,$5,23 andi $0,$0,48241 sltu $3,$3,$3 sltiu $3,$5,-31913 sh $4,14($0) and $3,$3,$3 addiu $4,$6,-29562 srl $4,$4,30 slt $4,$4,$3 srav $1,$3,$3 srlv $3,$3,$3 srl $3,$3,31 slt $3,$4,$3 sltiu $3,$4,18377 nor $5,$1,$3 addiu $1,$1,-15296 lh $3,2($0) lbu $6,6($0) lhu $6,10($0) lw $0,12($0) addu $3,$4,$3 srl $4,$4,6 sb $5,10($0) subu $4,$1,$3 xori $3,$4,16686 addiu $1,$3,-30223 nor $3,$4,$3 slt $5,$5,$3 sra $4,$4,23 sltu $3,$3,$3 subu $5,$4,$3 sltu $3,$3,$3 andi $3,$3,34523 ori $3,$4,35066 slti $0,$1,-10328 slt $1,$3,$3 ori $0,$3,26183 nor $1,$0,$3 srav $3,$5,$3 slt $4,$0,$3 and $2,$2,$3 or $4,$4,$3 srlv $6,$0,$3 sb $1,13($0) slt $5,$1,$3 slti $5,$3,27106 sltiu $3,$3,-3043 sltiu $3,$6,-14909 lh $3,8($0) lw $3,12($0) and $3,$3,$3 addiu $3,$5,29784 nor $5,$5,$3 xori $3,$4,47667 lb $4,7($0) addiu $5,$5,-356 lh $3,14($0) sltiu $5,$3,9758 lh $0,4($0) nor $3,$0,$3 lh $0,0($0) lhu $6,12($0) xor $1,$0,$3 sllv $3,$1,$3 lb $1,0($0) or $5,$4,$3 nor $5,$3,$3 lh $6,2($0) nor $4,$5,$3 andi $0,$4,22022 lb $4,10($0) slti $1,$5,-12204 and $4,$4,$3 lh $3,16($0) nor $4,$1,$3 xori $4,$5,38978 lw $0,0($0) lb $6,11($0) andi $3,$3,6729 or $3,$3,$3 xor $3,$4,$3 and $5,$3,$3 xori $5,$3,62309 andi $5,$4,42157 sllv $4,$3,$3 nor $3,$3,$3 sra $1,$4,17 lb $1,14($0) addiu $1,$2,27830 nor $3,$1,$3 addiu $0,$3,-24053 andi $1,$4,56732 xor $4,$1,$3 lh $4,8($0) xor $4,$5,$3 srl $3,$3,7 lhu $4,2($0) slti $4,$3,29792 addu $3,$4,$3 andi $3,$3,46553 sll $3,$3,19 sll $3,$5,14 sra $3,$3,5 sra $1,$5,17 nor $1,$1,$3 slti $1,$3,-3421 sltu $4,$6,$3 addu $1,$1,$3 addiu $3,$3,13569 sltu $3,$1,$3 slt $3,$3,$3 slti $5,$3,19968 slti $0,$3,-13081 lb $5,15($0) nor $3,$2,$3 subu $6,$0,$3 lb $3,9($0) sh $4,6($0) ori $6,$6,51228 sllv $1,$4,$3 sll $4,$4,24 lbu $4,7($0) andi $5,$4,17041 sltu $0,$0,$3 addu $1,$0,$3 lh $4,12($0) lhu $3,8($0) lhu $3,8($0) lbu $1,10($0) srl $0,$1,12 srlv $3,$3,$3 sltiu $1,$0,22231 ori $1,$4,38507 sw $3,0($0) sltu $6,$3,$3 sra $5,$3,5 or $1,$5,$3 xor $4,$3,$3 srav $3,$4,$3 lhu $3,4($0) sltiu $4,$4,-12067 addu $1,$1,$3 nor $3,$3,$3 slt $3,$1,$3 addiu $3,$3,17345 and $4,$4,$3 nor $5,$1,$3 slt $3,$3,$3 sw $0,12($0) subu $3,$4,$3 or $4,$4,$3 slt $5,$5,$3 and $3,$4,$3 sw $3,8($0) xori $5,$3,54073 srlv $1,$5,$3 lb $3,8($0) sw $4,8($0) lb $5,16($0) subu $3,$4,$3 lbu $6,13($0) sllv $3,$3,$3 sw $5,16($0) addu $5,$1,$3 srlv $4,$3,$3 subu $3,$5,$3 xor $1,$5,$3 sltu $4,$3,$3 xor $6,$6,$3 xor $3,$0,$3 lh $4,16($0) and $5,$5,$3 lh $4,14($0) addu $1,$1,$3 andi $3,$4,58942 xor $3,$1,$3 lhu $4,4($0) or $3,$5,$3 lw $5,0($0) sh $3,12($0) and $3,$3,$3 lw $1,0($0) addiu $6,$4,-11950 subu $5,$5,$3 srlv $1,$4,$3 slti $4,$4,-7153 sh $4,12($0) subu $3,$0,$3 addiu $3,$3,-21580 lw $3,4($0) sh $3,6($0) nor $4,$4,$3 lhu $3,2($0) sltiu $5,$6,-2576 slt $3,$5,$3 xori $5,$3,32031 addu $5,$4,$3 lh $3,4($0) sb $3,1($0) sb $3,2($0) ori $5,$3,23732 sll $3,$3,26 addiu $2,$2,-9228 xori $6,$6,19048 sllv $3,$6,$3 sh $5,8($0) sll $5,$4,24 addiu $0,$1,-30229 srav $5,$6,$3 sll $4,$4,2 sra $5,$4,13 addu $3,$3,$3 or $3,$5,$3 srl $3,$6,20 addiu $3,$5,-4974 sb $5,15($0) sltiu $6,$6,14575 lb $6,3($0) sh $1,16($0) addiu $5,$1,-4049 lhu $3,14($0) lhu $1,10($0) xor $3,$4,$3 sll $5,$5,12 slti $4,$5,-188 srlv $0,$0,$3 subu $3,$1,$3 lhu $5,4($0) slt $5,$5,$3 sllv $4,$4,$3 ori $4,$4,5834 lhu $1,4($0) slti $1,$3,-6203 srlv $0,$3,$3 sllv $0,$3,$3 lh $4,16($0) ori $1,$5,2011 addu $5,$4,$3 lhu $0,2($0) addu $1,$0,$3 srlv $6,$0,$3 xori $3,$3,19477 addu $2,$2,$3 xor $4,$5,$3 sh $1,16($0) sh $4,12($0) sllv $3,$4,$3 lhu $3,10($0) sb $3,7($0) sltiu $3,$4,27025 subu $6,$3,$3 addiu $4,$3,-8087 sll $4,$5,30 slt $5,$1,$3 sltiu $4,$4,17096 slti $5,$3,-6493 srl $5,$5,27 sra $4,$4,10 sw $3,8($0) addiu $3,$3,-15803 srlv $4,$4,$3 nor $4,$2,$3 sh $5,4($0) xor $6,$5,$3 lh $5,14($0) sb $1,16($0) slti $6,$6,5144 lhu $4,4($0) sb $4,4($0) nor $3,$4,$3 sh $5,16($0) ori $5,$4,49550 slti $3,$4,-30900 slt $6,$6,$3 lb $3,16($0) slt $4,$3,$3 or $1,$1,$3 sh $5,16($0) ori $4,$4,40814 srlv $3,$0,$3 sltu $3,$4,$3 sh $3,6($0) lh $6,0($0) addu $1,$1,$3 sw $6,12($0) lbu $4,4($0) andi $5,$5,26991 ori $1,$5,32260 addu $4,$4,$3 srl $3,$3,7 lhu $3,0($0) sb $5,11($0) slti $3,$3,15056 addu $5,$5,$3 sh $1,0($0) slti $4,$5,19002 lbu $4,16($0) and $0,$0,$3 ori $5,$5,46304 lbu $1,12($0) lb $3,13($0) sh $3,14($0) andi $5,$5,63734 addu $3,$4,$3 subu $3,$3,$3 xori $1,$5,31552 sb $1,9($0) sltiu $2,$2,-30016 lhu $1,16($0) addu $4,$5,$3 subu $1,$1,$3 sllv $1,$3,$3 addiu $6,$6,28471 srav $2,$2,$3
14.12036
18
0.522823
67dfe7e49f3144a9e5893ca6a18610f09dc67f11
654
asm
Assembly
Lista2/Lista2/Parte2/Programa10.asm
GustavoLR548/ACII-GLR
135690945f5e29938ef640a3d5475f8a12dbd76c
[ "MIT" ]
1
2021-11-03T17:22:02.000Z
2021-11-03T17:22:02.000Z
Lista2/Lista2/Parte2/Programa10.asm
GustavoLR548/ACII-GLR
135690945f5e29938ef640a3d5475f8a12dbd76c
[ "MIT" ]
null
null
null
Lista2/Lista2/Parte2/Programa10.asm
GustavoLR548/ACII-GLR
135690945f5e29938ef640a3d5475f8a12dbd76c
[ "MIT" ]
null
null
null
.data x: .word 5 # Declarando "X" z: .word 7 # Declarando "Z" y: .word 0 # Declarando "Y" ,o valor devera ser sobrescrito apos a execucao do programa. .text # Armazendo os valores do ".data" em variáveis temporárias lw $t0, x # t0/temp0 = x = 5 lw $t1, z # t1/temp1 = x = 7 # Armazenando os valores que seram usados para a multiplicacao addi $t4,$t4,127 addi $t5,$t5,65 #127x5 sll $t2,$t4,2 # $t2 = 127 x 4 add $t2,$t2,$t4 # $t2 += 127 #65x7 sll $t3,$t5,3 # $t3 = 65 x 8 sub $t3,$t3,$t5 # $t3 -= 65 #Conta final sub $t3,$t2,$t3 # 127x5 - 65x7 | $t2 - $t3 add $t3,$t3,1 # $t3 += 1 #salvando o valor em "y" sw $t3, y
22.551724
91
0.588685
233f42517e6fb4c5d9920bc18cc1d0ebb4ffa05a
513
asm
Assembly
BigNum/Mod/Base/_bn_cmp_array.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
BigNum/Mod/Base/_bn_cmp_array.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
BigNum/Mod/Base/_bn_cmp_array.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.686 .model flat,stdcall option casemap:none include .\bnlib.inc include .\bignum.inc .code ; 0 if |X|=|Y| 1 if |X|>|Y| -1 if |X|<|Y| ; edi=x esi=y _bn_cmp_array proc c; uses edx,ecx,eax mov edx,[edi].BN.dwSize mov ecx,[esi].BN.dwSize lea eax,[edx+1]; i = size + 1 jmp @F .repeat dec eax jz @@Exit; done, equal mov edx,[edi].BN.dwArray[eax*4-1*4];bnX[i] mov ecx,[esi].BN.dwArray[eax*4-1*4];bnY[i] @@: .until edx != ecx sbb eax,eax lea eax,[eax*2+1] @@Exit: ret _bn_cmp_array endp end
18.321429
51
0.623782
a3bd978f816f09e533a9ecfc49de96a3e1ee88ae
12,744
asm
Assembly
src/main.asm
santiontanon/talesofpopolon-ext
a7c7fd1164d506d6b0c6245fdf3ad0b634facd84
[ "Apache-2.0" ]
4
2019-10-20T08:14:01.000Z
2021-09-24T19:41:47.000Z
src/main.asm
santiontanon/talesofpopolon-ext
a7c7fd1164d506d6b0c6245fdf3ad0b634facd84
[ "Apache-2.0" ]
1
2019-10-20T12:21:06.000Z
2019-10-21T21:52:35.000Z
src/main.asm
santiontanon/talesofpopolon-ext
a7c7fd1164d506d6b0c6245fdf3ad0b634facd84
[ "Apache-2.0" ]
null
null
null
include "constants.asm" org #4000 ; Start in the 2nd slot ;----------------------------------------------- db "AB" ; ROM signature dw Execute ; start address db 0,0,0,0,0,0,0,0,0,0,0,0 ;----------------------------------------------- ;----------------------------------------------- ; Code that gets executed when the game starts Execute: ; init the stack: ld sp,#F380 ; reset some interrupts to make sure it runs in some MSX computers ; with disk controllers installed in some interrupt handlers di ld a,#C9 ld (HKEY),a ; ld (TIMI),a ei call setupROMRAMslots ; Silence and init keyboard: xor a ld (MSXTurboRMode),a ; Z80 mode ld (CLIKSW),a ; Change background colors: ld (BAKCLR),a ld (BDRCLR),a call CHGCLR ; Activate Turbo mode in Panasonic MSX2+ WX/WSX/FX models: ; Code sent to me by Pitpan, taken from here: http://map.grauw.nl/resources/msx_io_ports.php ld a,8 out (#40),a ;out the manufacturer code 8 (Panasonic) to I/O port 40h in a,(#40) ;read the value you have just written cpl ;complement all bits of the value cp 8 ;if it does not match the value you originally wrote, jr nz,Not_WX ;it is not a WX/WSX/FX. xor a ;write 0 to I/O port 41h out (#41),a ;and the mode changes to high-speed clock Not_WX: ld a,(CHGCPU) cp #C3 jr nz,Not_TurboR ; if we are not in a turbo R, just ignore ld hl,MSXTurboRMode inc (hl) ld a,#82 ; R800 DRAM call CHGCPU Not_TurboR: call checkAmountOfVRAM call CheckIf60Hz ld hl,interrupts_per_game_frame or a jp z,set_game_speed_50hz set_game_speed_60hz: ld (hl),4 jr game_speed_set set_game_speed_50hz: ld (hl),3 game_speed_set: ld a,2 ; Change screen mode call CHGMOD ;; clear the screen, and load graphics xor a call FILLSCREEN call setupPatterns ; Note: this overwrites a few raycasting buffers call Setup_Game_Interrupt xor a ; ld a,GAME_STATE_SPLASH ; ld a,GAME_STATE_TITLE ; ld a,GAME_STATE_STORY ; ld a,GAME_STATE_PLAYING jp change_game_state ; jp Game_Loop ;----------------------------------------------- ; Loads the interrupt hook for keep track of game speed and playing music/SFX: Setup_Game_Interrupt: call StopPlayingMusic ld a,8 ld (MUSIC_tempo),a ;; default music tempo ld a,JPCODE ;NEW HOOK SET di ld (TIMI),a ld hl,Game_Interrupt ld (TIMI+1),hl ei ret Game_Interrupt: push hl ld hl,game_interrupt_cycle inc (hl) call update_sound pop hl ret ;----------------------------------------------- ; additional assembler files include "auxiliar.asm" include "gamestates.asm" include "splash.asm" include "title.asm" include "story.asm" include "gameloop.asm" include "gameplay.asm" include "input.asm" include "player.asm" include "sincostables.asm" include "gfx.asm" include "raycasting-auxiliar.asm" include "maps.asm" include "enemies.asm" include "sound.asm" include "sfx.asm" include "password.asm" ToPStorySongPletter: incbin "tocompress/ToPStorySong.plt" ToPInGameSongPletter: incbin "tocompress/ToPInGameSong.plt" ToPBossSongPletter: incbin "tocompress/ToPBossSong.plt" ToPStartSongPletter: incbin "tocompress/ToPStartSong.plt" ToPGameOverSongPletter: incbin "tocompress/ToPGameOverSong.plt" include "sprite-data.asm" include "raycasting-rayxoffstable.asm" include "raycasting-textureverticalratetable.asm" story_pletter: incbin "tocompress/story.plt" ending_pletter: incbin "tocompress/ending.plt" map_tunnel1_pletter: incbin "tocompress/map-tunnel1.plt" map_fortress1_pletter: incbin "tocompress/map-fortress1.plt" map_fortress2_pletter: incbin "tocompress/map-fortress2.plt" map_catacombs1_pletter: incbin "tocompress/map-catacombs1.plt" map_catacombs2_pletter: incbin "tocompress/map-catacombs2.plt" map_medusa1_pletter: incbin "tocompress/map-medusa1.plt" map_medusa2_pletter: incbin "tocompress/map-medusa2.plt" map_keres1_pletter: incbin "tocompress/map-keres1.plt" map_keres2_pletter: incbin "tocompress/map-keres2.plt" base_sprites_pletter: incbin "tocompress/base-sprites.plt" patterns_pletter: incbin "tocompress/patterns.plt" texture_pointers: dw textures_B_pletter dw textures_C_pletter dw textures_D_pletter dw textures_E_pletter textures_A_pletter: incbin "tocompress/textures-A.plt" textures_B_pletter: incbin "tocompress/textures-B.plt" textures_C_pletter: incbin "tocompress/textures-C.plt" textures_D_pletter: incbin "tocompress/textures-D.plt" textures_E_pletter: incbin "tocompress/textures-E.plt" skybox_moon_pletter: incbin "tocompress/skybox-moon.plt" ui: incbin "tocompress/ui.plt" ROM_barehand_weapon_patterns: db 0,208,209 db 210,211,212 db 213,214,215 ROM_sword_weapon_patterns: db 224,225, 0 db 226,227,228 db 0,229,230 ROM_goldsword_weapon_patterns: db 231,232, 0 db 233,234,235 db 0,236,237 ROM_barehand_secondaryweapon_patterns: db 216,217, 0 db 218,219,220 db 221,222,223 ROM_arrow_secondaryweapon_patterns: db 238,239, 0 db 240,241,242 db 243,244,245 ROM_icearrow_secondaryweapon_patterns: db 246,247,0 db 248,249,250 db 251,252,253 ROM_hourglass_secondaryweapon_patterns: db 119,120,121 db 122,123,124 db 125,126,127 ;----------------------------------------------- ; Game variables to be copied to RAM at game start ROMtoRAM_gameStart: ROM_player_precision_x: dw (1*16+8)*256 ROM_player_precision_y: dw (3*16+8)*256 ROM_player_angle: db 0 ROM_game_cycle: db 0 ROM_player_map: db MAP_TUNNEL ROM_player_x: db 1*16+8 ROM_player_y: db 3*16+8 ROM_player_health: db 6 ROM_available_weapons: db 1,0,0 ROM_available_secondary_weapons: db 1,0,0,0 ROM_available_armors: db 1,0,0 ROM_spritePatternCacheTable: db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff ;ROM_texture_colors: ; db #80 ; wall 1 ; db #40 ; wall 2 ; db #a0 ; door ; db #f0 ; staircase ; db #e0 ; face ; db #f0 ; gate (non - openable door) ; db #70 ; statue ; db #f0 ; mirror wall ; db #f0 ; staircase ; db #a0 ; prisoner ; db #a0 ; prisoner ; db #40 ; wall 2 with torch ;; these define the columns that will be rendered by the raycasting engine at each ;; sub-frame. The first sub-frame renders 0 - 33, the second 34 - 83, etc. ROM_initial_rendering_blocks_160: db 0 ;; note: this assumes that RAYCAST_SIDE_BORDER = 4 db 34 db 84 db 132 db 160 dw CHRTBL2+(8*2+8-RAYCAST_ROWS_PER_BANK)*8 dw CLRTBL2+(8*2+8-RAYCAST_ROWS_PER_BANK)*8 dw CHRTBL2+(256*8)+2*8*8 dw CLRTBL2+(256*8)+2*8*8 db 5 db 32-(RAYCAST_SIDE_BORDER+2)*2 dw (32-(RAYCAST_SIDE_BORDER+2)*2)*4*8 db 20 endROMtoRAM_gameStart: ROM_initial_rendering_blocks_192: db 0 ;; note: this assumes that RAYCAST_SIDE_BORDER = 4 db 42 db 100 db 158 db 192 ROM_initial_rendering_address dw CHRTBL2+(8-RAYCAST_ROWS_PER_BANK)*8 dw CLRTBL2+(8-RAYCAST_ROWS_PER_BANK)*8 dw CHRTBL2+(256*8) dw CLRTBL2+(256*8) ROM_amount_of_bytes_to_render: ; in units of 256 bytes db 6 ROM_raycast_angle_offset: db 32-RAYCAST_SIDE_BORDER*2 ROM_raycast_amount_to_clear: dw (32-RAYCAST_SIDE_BORDER*2)*4*8 ROM_raycast_sprite_angle_cutoff: db 24 ROM_initial_rendering_blocks_128: db 0 ;; note: this assumes that RAYCAST_SIDE_BORDER = 4 db 28 db 66 db 104 db 128 dw CHRTBL2+(8*4+8-RAYCAST_ROWS_PER_BANK)*8 dw CLRTBL2+(8*4+8-RAYCAST_ROWS_PER_BANK)*8 dw CHRTBL2+(256*8)+4*8*8 dw CLRTBL2+(256*8)+4*8*8 db 4 db 32-(RAYCAST_SIDE_BORDER+4)*2 dw (32-(RAYCAST_SIDE_BORDER+4)*2)*4*8 db 16 UI_message_equip_barehand: db "BARE HANDS" UI_message_equip_barehand_end: UI_message_equip_sword: db "SWORD" UI_message_equip_sword_end: UI_message_equip_goldsword: db "GOLD SWORD" UI_message_equip_goldsword_end: ;UI_message_equip_secondary_barehand: ; db "BARE HANDS" ;UI_message_equip_secondary_barehand_end: UI_message_equip_secondary_arrow: db "ARROWS" UI_message_equip_secondary_arrow_end: UI_message_equip_secondary_icearrow: db "ICE ARROWS" UI_message_equip_secondary_icearrow_end: UI_message_equip_secondary_hourglass: db "HOURGLASS" UI_message_equip_secondary_hourglass_end: UI_message_equip_armor_iron: db "IRON ARMOR" UI_message_equip_armor_iron_end: UI_message_equip_armor_silver: db "SILVER ARMOR" UI_message_equip_armor_silver_end: UI_message_equip_armor_gold: db "GOLD ARMOR" UI_message_equip_armor_gold_end: UI_message_z80_mode: db "Z80" UI_message_z80_mode_end: UI_message_r800smooth_mode: db "R800" UI_message_r800smooth_mode_end: UI_message_pause: db "PAUSE" UI_message_pause_end: UI_message_game_over: db "GAME OVER" UI_message_enter_password: db "ENTER PASSWORD" UI_message_enter_password_end: splash_line2: ; length 8 db "PRESENTS" splash_line1: ; length 12 db "BRAIN GAMES" title_press_space: db "SPACE TO PLAY" title_press_space_end: title_m_for_password: db "M FOR PASSWORD" title_m_for_password_end: title_credits1: ; length 16 db "EXTENDED VERSION" title_credits2: ; length 20 db "SANTI ONTANON 2019" fadeInTitleColors: ; the two zeroes at the beginning and end are sentinels db 0,#ff,#ef,#7f,#5f,#4f,0 End: ; this table is also 256 aligned, since the previous three are pixel_bit_masks: ; handle blocks of 2 pixels at a time db #c0, #c0, #30, #30, #0c, #0c, #03, #03 ;pixel_bit_masks_zero: ; ; handle blocks of 2 pixels at a time ; db #3f, #3f, #cf, #cf, #f3, #f3, #fc, #fc ; align to byte ; align #100 ds ((($-1)/#100)+1)*#100-$ ;;;;;;;; atan(2^(x/32))*128/pi ;;;;;;;; atan_tab: db #20,#20,#20,#21,#21,#22,#22,#23,#23,#23,#24,#24,#25,#25,#26,#26 db #26,#27,#27,#28,#28,#28,#29,#29,#2A,#2A,#2A,#2B,#2B,#2C,#2C,#2C db #2D,#2D,#2D,#2E,#2E,#2E,#2F,#2F,#2F,#30,#30,#30,#31,#31,#31,#31 db #32,#32,#32,#32,#33,#33,#33,#33,#34,#34,#34,#34,#35,#35,#35,#35 db #36,#36,#36,#36,#36,#37,#37,#37,#37,#37,#37,#38,#38,#38,#38,#38 db #38,#39,#39,#39,#39,#39,#39,#39,#39,#3A,#3A,#3A,#3A,#3A,#3A,#3A db #3A,#3B,#3B,#3B,#3B,#3B,#3B,#3B,#3B,#3B,#3B,#3B,#3C,#3C,#3C,#3C db #3C,#3C,#3C,#3C,#3C,#3C,#3C,#3C,#3C,#3D,#3D,#3D,#3D,#3D,#3D,#3D db #3D,#3D,#3D,#3D,#3D,#3D,#3D,#3D,#3D,#3D,#3D,#3D,#3E,#3E,#3E,#3E db #3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E db #3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3E,#3F,#3F,#3F,#3F db #3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F db #3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F db #3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F db #3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F db #3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F,#3F ;;;;;;;; log2(x)*32 ;;;;;;;; log2_tab: db #00,#00,#20,#32,#40,#4A,#52,#59,#60,#65,#6A,#6E,#72,#76,#79,#7D db #80,#82,#85,#87,#8A,#8C,#8E,#90,#92,#94,#96,#98,#99,#9B,#9D,#9E db #A0,#A1,#A2,#A4,#A5,#A6,#A7,#A9,#AA,#AB,#AC,#AD,#AE,#AF,#B0,#B1 db #B2,#B3,#B4,#B5,#B6,#B7,#B8,#B9,#B9,#BA,#BB,#BC,#BD,#BD,#BE,#BF db #C0,#C0,#C1,#C2,#C2,#C3,#C4,#C4,#C5,#C6,#C6,#C7,#C7,#C8,#C9,#C9 db #CA,#CA,#CB,#CC,#CC,#CD,#CD,#CE,#CE,#CF,#CF,#D0,#D0,#D1,#D1,#D2 db #D2,#D3,#D3,#D4,#D4,#D5,#D5,#D5,#D6,#D6,#D7,#D7,#D8,#D8,#D9,#D9 db #D9,#DA,#DA,#DB,#DB,#DB,#DC,#DC,#DD,#DD,#DD,#DE,#DE,#DE,#DF,#DF db #DF,#E0,#E0,#E1,#E1,#E1,#E2,#E2,#E2,#E3,#E3,#E3,#E4,#E4,#E4,#E5 db #E5,#E5,#E6,#E6,#E6,#E7,#E7,#E7,#E7,#E8,#E8,#E8,#E9,#E9,#E9,#EA db #EA,#EA,#EA,#EB,#EB,#EB,#EC,#EC,#EC,#EC,#ED,#ED,#ED,#ED,#EE,#EE db #EE,#EE,#EF,#EF,#EF,#EF,#F0,#F0,#F0,#F1,#F1,#F1,#F1,#F1,#F2,#F2 db #F2,#F2,#F3,#F3,#F3,#F3,#F4,#F4,#F4,#F4,#F5,#F5,#F5,#F5,#F5,#F6 db #F6,#F6,#F6,#F7,#F7,#F7,#F7,#F7,#F8,#F8,#F8,#F8,#F9,#F9,#F9,#F9 db #F9,#FA,#FA,#FA,#FA,#FA,#FB,#FB,#FB,#FB,#FB,#FC,#FC,#FC,#FC,#FC db #FD,#FD,#FD,#FD,#FD,#FD,#FE,#FE,#FE,#FE,#FE,#FF,#FF,#FF,#FF,#FF ; 256 bytes aligned include "distancetoyfromsumtable.asm" ; this goes at the end, so that changes in size do not change the addresses of the rest of the program raycasting_code_pletter: incbin "tocompress/raycasting.plt" EndofRom: ds ((($-1)/#4000)+1)*#4000-$ include "ram.asm"
26.716981
106
0.639674
7468f7693a5d2694995e325d53bcfbb4f550a84f
500
asm
Assembly
oeis/267/A267134.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/267/A267134.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/267/A267134.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A267134: a(n) = n minus the number of primes of form 6m + 1 that are less than n-th prime of form 6m - 1. ; Submitted by Jon Maiga ; 1,1,1,1,2,1,1,2,3,2,1,2,2,2,2,2,3,3,1,2,3,3,3,1,1,2,2,3,4,5,4,4,4,4,3,3,4,2,3,3,3,3,2,3,3,3,4,4,4,5,6,4,5,6,5,6,7,5,4,4,5,6,5,6,6,6,4,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,6,6,7,8,6,7,7,6,6,4,4,5,6,4,4,4,5,6 add $0,1 mov $2,$0 seq $0,138969 ; Positions of the primes congruent to 2 mod 3 when all primes except 3 are listed in order. mul $2,2 sub $2,$0 mov $0,$2 add $0,1
41.666667
201
0.608
ed2f9484291212d1678e5fb8809859a68caabe6f
1,559
asm
Assembly
lab_08/main.asm
zakolm/ASM
786d3609387f65c5011b4689a5c9618b73ea50a3
[ "MIT" ]
9
2018-04-23T09:10:36.000Z
2020-05-09T21:49:55.000Z
lab_08/main.asm
zakolm/ASM
786d3609387f65c5011b4689a5c9618b73ea50a3
[ "MIT" ]
null
null
null
lab_08/main.asm
zakolm/ASM
786d3609387f65c5011b4689a5c9618b73ea50a3
[ "MIT" ]
3
2019-03-26T17:16:15.000Z
2020-10-05T15:19:44.000Z
EXTRN SCAN : NEAR EXTRN F1 : NEAR ; unsigned bin EXTRN F2 : NEAR ; signed bin EXTRN F3 : NEAR ; unsigned dec EXTRN F4 : NEAR ; signed dec EXTRN F5 : NEAR ; unsigned hex EXTRN F6 : NEAR ; signed hex SSTACK SEGMENT PARA STACK 'STACK' DB 64 DUP('STACK___') SSTACK ENDS DSEG SEGMENT PARA PUBLIC 'DATA' F DW F1, F2, F3, F4, F5, F6 X DW 5 MENU DB ' MENU', 10, 13 DB '0. Print menu', 10, 13 DB '1. Input number', 10, 13 DB '2. Num as unsigned bin', 10, 13 DB '3. Num as signed bin', 10, 13 DB '4. Num as unsigned dec', 10, 13 DB '5. Num as signed dec', 10, 13 DB '6. Num as unsigned hex', 10, 13 DB '7. Num as signed hex', 10, 13 DB '8. Exit', 10, 13, '$' ENT DB '> $' NLINE DB 10, 13, '$' DSEG ENDS CSEG SEGMENT PARA PUBLIC 'CODE' ASSUME CS:CSEG, DS:DSEG, SS:SSTACK BEGIN: MOV AX, DSEG MOV DS, AX PMENU: MOV AH, 9 MOV DX, OFFSET MENU INT 21H PRINT_ENT: MOV AH, 9 MOV DX, OFFSET ENT INT 21H SCAN_CHOICE: MOV AH, 8 INT 21H CMP AL, '0' JB SCAN_CHOICE CMP AL, '9' JA SCAN_CHOICE MOV BL, AL XOR BH, BH MOV AH, 2 MOV DL, AL INT 21H MOV AH, 9 MOV DX, OFFSET NLINE INT 21H PROCESS: SUB BX, '0' CMP BX, 8 JAE EXIT CMP BX, 0 JE PMENU CMP BX, 1 JE INPUT_NUMBER SUB BX, 2 SHL BX, 1 PUSH X PUSH SI CALL F[BX] JMP PRINT_ENT INPUT_NUMBER: CALL SCAN MOV X, AX MOV SI, DX JMP PRINT_ENT EXIT: MOV AH, 4CH XOR AL, AL INT 21H CSEG ENDS END BEGIN
15.435644
39
0.57601
532fa58f1413bf84edc4407f2fbbc4d9c3124c87
5,255
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1583.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1583.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_1583.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 %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1600a, %rsi lea addresses_normal_ht+0x290a, %rdi nop nop xor $61321, %r11 mov $67, %rcx rep movsq nop nop nop cmp %rbp, %rbp lea addresses_WT_ht+0x19902, %rcx nop nop nop and $41209, %r9 vmovups (%rcx), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rdi nop nop add $26990, %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi // Load lea addresses_A+0x3cc6, %rbp nop cmp %r9, %r9 movb (%rbp), %r11b nop nop nop nop nop sub $28271, %r10 // Load lea addresses_WC+0x9c0a, %rbp nop nop nop nop cmp %r12, %r12 mov (%rbp), %r9 nop nop and $60584, %r11 // REPMOV lea addresses_WT+0x8d0a, %rsi mov $0x20a, %rdi nop nop add $40392, %r9 mov $24, %rcx rep movsl nop nop add $38563, %r10 // Faulty Load lea addresses_normal+0xf00a, %rax clflush (%rax) nop cmp %r15, %r15 movntdqa (%rax), %xmm0 vpextrq $0, %xmm0, %r10 lea oracles, %rbp and $0xff, %r10 shlq $12, %r10 mov (%rbp,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_P', 'congruent': 7, 'same': False}, 'OP': 'REPM'} [Faulty Load] {'src': {'type': 'addresses_normal', 'same': True, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': True, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
41.706349
2,999
0.65804
d1490c69ebc65170033fc50ca557f7ddb33123e8
6,910
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1755.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_1755.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_1755.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xe0c8, %rsi lea addresses_normal_ht+0xf2c8, %rdi clflush (%rdi) nop nop and %rbx, %rbx mov $79, %rcx rep movsb sub $65265, %rbx lea addresses_A_ht+0x5cf8, %rsi lea addresses_UC_ht+0xf024, %rdi add %r8, %r8 mov $70, %rcx rep movsl nop nop nop inc %rdi lea addresses_A_ht+0xa1c8, %rdi nop nop nop nop nop sub %r13, %r13 movb (%rdi), %bl nop xor %rcx, %rcx lea addresses_WT_ht+0x18c8, %r13 sub $6302, %rbp and $0xffffffffffffffc0, %r13 movntdqa (%r13), %xmm5 vpextrq $1, %xmm5, %rcx nop nop nop inc %rdi lea addresses_WT_ht+0xa5e0, %rsi cmp %rdi, %rdi mov (%rsi), %r8d nop nop nop nop nop mfence lea addresses_A_ht+0xf640, %rsi nop nop nop nop nop and $36259, %rbp and $0xffffffffffffffc0, %rsi vmovaps (%rsi), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %rcx inc %rcx lea addresses_normal_ht+0x96c8, %rbx nop nop nop inc %rdi and $0xffffffffffffffc0, %rbx vmovaps (%rbx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rcx nop cmp %rbx, %rbx lea addresses_D_ht+0xa0f8, %rsi lea addresses_normal_ht+0x7968, %rdi nop nop nop dec %r14 mov $59, %rcx rep movsb nop xor $41561, %r14 lea addresses_A_ht+0x17cc8, %rsi lea addresses_D_ht+0x40c8, %rdi clflush (%rdi) nop nop nop add %r13, %r13 mov $82, %rcx rep movsl nop nop nop nop and $23057, %r8 lea addresses_D_ht+0x2ec8, %rsi lea addresses_UC_ht+0x16fe0, %rdi nop nop nop and $23428, %r13 mov $25, %rcx rep movsb nop nop dec %rdi lea addresses_normal_ht+0x11cc8, %r14 nop nop nop cmp $19364, %rbp vmovups (%r14), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi nop nop nop nop sub %r13, %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r15 push %r9 push %rbx push %rdx push %rsi // Faulty Load lea addresses_UC+0x1f8c8, %rdx nop add $43471, %r15 mov (%rdx), %rsi lea oracles, %rdx and $0xff, %rsi shlq $12, %rsi mov (%rdx,%rsi,1), %rsi pop %rsi pop %rdx pop %rbx pop %r9 pop %r15 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 3, 'size': 32, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': True, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.759563
2,999
0.661216
98a4fe022ce4e14472b403a037805072f02fa5ff
468
asm
Assembly
oeis/326/A326058.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/326/A326058.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/326/A326058.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A326058: a(n) = n - {the sum of square divisors of n}. ; 0,1,2,-1,4,5,6,3,-1,9,10,7,12,13,14,-5,16,8,18,15,20,21,22,19,-1,25,17,23,28,29,30,11,32,33,34,-14,36,37,38,35,40,41,42,39,35,45,46,27,-1,24,50,47,52,44,54,51,56,57,58,55,60,61,53,-21,64,65,66,63,68,69,70,22,72,73,49,71,76,77,78,59,-10,81,82,79,84,85,86,83,88,80,90,87,92,93,94,75,96,48,89,-30 mov $1,$0 lpb $0 mov $2,$0 mov $0,1 seq $2,71326 ; Sum of squares > 1 dividing n. sub $1,$2 lpe mov $0,$1
39
295
0.604701
061f299ad26b8b501134a32a738a5cd08327a731
678
asm
Assembly
wasm/part0702/main.asm
Bigsby/slae
bbbb72dee8959dc36d1ba6d8636f6f65c4853f56
[ "MIT" ]
null
null
null
wasm/part0702/main.asm
Bigsby/slae
bbbb72dee8959dc36d1ba6d8636f6f65c4853f56
[ "MIT" ]
null
null
null
wasm/part0702/main.asm
Bigsby/slae
bbbb72dee8959dc36d1ba6d8636f6f65c4853f56
[ "MIT" ]
null
null
null
.386 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\masm32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\masm32.lib .data FirstString db "This is the first string", 13, 10, 0 SecondString db "This is the second String", 13,10, 0 .code start: mov eax, 20 loop1: push eax invoke StdOut, addr FirstString pop eax dec eax jnz loop1 mov eax, 10 loop2: push eax invoke StdOut, addr SecondString pop eax dec eax jnz loop2 invoke ExitProcess, 0 end start
16.95
57
0.643068
3cbae8b472eecf63a114a4762accce932ba04b15
826
asm
Assembly
oeis/142/A142197.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142197.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142197.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142197: Primes congruent to 37 mod 40. ; Submitted by Christian Krause ; 37,157,197,277,317,397,557,677,757,797,877,997,1117,1237,1277,1597,1637,1877,1997,2237,2357,2437,2477,2557,2677,2797,2837,2917,2957,3037,3517,3557,3637,3677,3797,3877,3917,4157,4357,4397,4517,4597,4637,4877,4957,5077,5197,5237,5437,5477,5557,5717,6037,6197,6277,6317,6397,6637,6917,6997,7237,7477,7517,7717,7757,7877,8117,8237,8317,8597,8677,8837,9157,9277,9397,9437,9677,10037,10357,10477,10597,10837,10957,11117,11197,11317,11437,11597,11677,11717,12037,12157,12197,12277,12437,12517,12637,12757 mov $1,7 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,29 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,11 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 add $0,30
35.913043
499
0.72276
73504e2c896534ffb3bde1ed258b0599673f15d2
1,826
asm
Assembly
programs/oeis/083/A083582.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/083/A083582.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/083/A083582.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A083582: a(n) = (8*2^n-5*(-1)^n)/3. ; 1,7,9,23,41,87,169,343,681,1367,2729,5463,10921,21847,43689,87383,174761,349527,699049,1398103,2796201,5592407,11184809,22369623,44739241,89478487,178956969,357913943,715827881,1431655767,2863311529,5726623063,11453246121,22906492247,45812984489,91625968983,183251937961,366503875927,733007751849,1466015503703,2932031007401,5864062014807,11728124029609,23456248059223,46912496118441,93824992236887,187649984473769,375299968947543,750599937895081,1501199875790167,3002399751580329,6004799503160663,12009599006321321,24019198012642647,48038396025285289,96076792050570583,192153584101141161,384307168202282327,768614336404564649,1537228672809129303,3074457345618258601,6148914691236517207,12297829382473034409,24595658764946068823,49191317529892137641,98382635059784275287,196765270119568550569,393530540239137101143,787061080478274202281,1574122160956548404567,3148244321913096809129,6296488643826193618263,12592977287652387236521,25185954575304774473047,50371909150609548946089,100743818301219097892183,201487636602438195784361,402975273204876391568727,805950546409752783137449,1611901092819505566274903,3223802185639011132549801,6447604371278022265099607,12895208742556044530199209,25790417485112089060398423,51580834970224178120796841,103161669940448356241593687,206323339880896712483187369,412646679761793424966374743,825293359523586849932749481,1650586719047173699865498967,3301173438094347399730997929,6602346876188694799461995863,13204693752377389598923991721,26409387504754779197847983447,52818775009509558395695966889,105637550019019116791391933783,211275100038038233582783867561,422550200076076467165567735127,845100400152152934331135470249,1690200800304305868662270940503 mov $1,2 pow $1,$0 mov $2,$0 mod $2,2 add $2,1 add $1,$2 mul $1,8 div $1,6 mul $1,2 sub $1,3 mov $0,$1
121.733333
1,683
0.905257
77140ed9779983ff59c2dce0c632a694445b5068
187
asm
Assembly
src/ft_strlen.asm
codenamenadja/c-libs-libasm
ff1f9df422a72c5e68a2188542c1b215a4ce7330
[ "MIT" ]
null
null
null
src/ft_strlen.asm
codenamenadja/c-libs-libasm
ff1f9df422a72c5e68a2188542c1b215a4ce7330
[ "MIT" ]
null
null
null
src/ft_strlen.asm
codenamenadja/c-libs-libasm
ff1f9df422a72c5e68a2188542c1b215a4ce7330
[ "MIT" ]
null
null
null
section .text global ft_strlen ft_strlen: xor rcx, rcx cmp [rdi], byte 0 je fin loop: inc rcx cmp [rdi + rcx], byte 0 jne loop fin: mov rax, rcx ret
12.466667
27
0.566845
77efea8937d847f715c361f5c49df2ed314ff19a
585
asm
Assembly
programs/oeis/144/A144065.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/144/A144065.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/144/A144065.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A144065: Values of n such that the expression sqrt(4!*(n+1) + 1) yields an integer. ; 0,1,4,6,11,14,21,25,34,39,50,56,69,76,91,99,116,125,144,154,175,186,209,221,246,259,286,300,329,344,375,391,424,441,476,494,531,550,589,609,650,671,714,736,781,804,851,875,924,949,1000,1026,1079,1106,1161,1189,1246,1275,1334,1364,1425,1456,1519,1551,1616,1649,1716,1750,1819,1854,1925,1961,2034,2071,2146,2184,2261,2300,2379,2419,2500,2541,2624,2666,2751,2794,2881,2925,3014,3059,3150,3196,3289,3336,3431,3479,3576,3625,3724,3774 mul $0,3 div $0,2 mov $1,5 add $1,$0 mul $1,$0 div $1,6 mov $0,$1
53.181818
431
0.726496
ea9297c272b807367dae56b43ebc7c65671cb963
380
asm
Assembly
programs/oeis/059/A059938.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/059/A059938.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/059/A059938.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A059938: Sum of binary numbers with n 1's and two (non-leading) 0's. ; 0,4,31,141,506,1590,4593,12523,32740,82908,204755,495561,1179582,2768818,6422437,14745495,33554312,75759480,169869159,378535765,838860610,1849687854,4060086041,8875147011,19327352556,41943039700 mov $1,$0 pow $0,2 add $1,2 mov $2,$1 lpb $2 add $1,$0 mul $0,2 sub $2,1 lpe mov $0,$1 sub $0,2 div $0,2
23.75
196
0.726316
92833fefbbe28c5150e09a24c3f5a1751c403f93
43,258
asm
Assembly
Library/SpecUI/CommonUI/CWin/cwinWinIcon.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/SpecUI/CommonUI/CWin/cwinWinIcon.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/SpecUI/CommonUI/CWin/cwinWinIcon.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: CommonUI/CWin (common code for several specific ui's) FILE: cwinWinIcon.asm ROUTINES: Name Description ---- ----------- OLWinIconClass Icon for OLWinClass objects which are minimized. REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 9/89 Initial version DESCRIPTION: $Id: cwinWinIcon.asm,v 1.1 97/04/07 10:53:18 newdeal Exp $ -------------------------------------------------------------------------------@ ; ; For documentation of the OLWinIconClass see: ; /staff/pcgeos/Spec/olWinIconClass.doc ; CommonUIClassStructures segment resource OLWinIconClass mask CLASSF_DISCARD_ON_SAVE or \ mask CLASSF_NEVER_SAVED CommonUIClassStructures ends ;--------------------------------------------------- WinIconCode segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconInitialize -- MSG_META_INITIALIZE for OLWinIconClass DESCRIPTION: Initialize an icon which opens a GenPrimary or GenDisplay. PASS: *ds:si - instance data es - segment of OLWinIconClass ax - MSG_META_INITIALIZE cx, dx, bp - ? RETURN: carry - ? ax, cx, dx, bp - ? DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 initial version ------------------------------------------------------------------------------@ OLWinIconInitialize method dynamic OLWinIconClass, MSG_META_INITIALIZE ;Do super class (OLWinClass) INITIALIZATION call OpenWinInitialize ;direct call for speed ;override some OLWinClass settings call WinIcon_DerefVisSpec_DI ; & give basic base window attributes ORNF ds:[di].OLWI_fixedAttr, mask OWFA_IS_WIN_ICON mov ds:[di].OLWI_attrs, OL_ATTRS_WIN_ICON OLS < mov ds:[di].OLWI_type, OLWT_WINDOW_ICON > CUAS < mov ds:[di].OLWI_type, MOWT_WINDOW_ICON > ; ;turn off the SA_CUSTOM_VIS_PARENT flag, so that we will not use ; ;the OLCI_visParent field of this window during SPEC_BUILD. We go through ; ;the trouble of making a one-way upward link to the GenApp object; ; ;it should be used when finding a visible parent for this icon. ; ; ANDNF ds:[di].VI_specAttrs, not (mask SA_CUSTOM_VIS_PARENT) ;SEE OpenWinGetVisParent... cannot assume that OLCI_visParent is cool! ;try running installed code... ;NOTE: OLWI_winPosSizeFlags and OLWI_winPosSizeState is set ;by MSG_OL_WIN_ICON_SET_STATE, so no need to set here. ;set this OLWinIcon object as discardable, so when system shuts down ;it is thrown out. GenPrimary will rebuild it later. mov ax, si ;*ds:ax = chunk of OLWinIcon object mov bx, mask OCF_IGNORE_DIRTY ;bl = bits to set call ObjSetFlags ;set LMem flags for Object chunk ret OLWinIconInitialize endp WinIcon_DerefVisSpec_DI proc near mov di, ds:[si] add di, ds:[di].Vis_offset ret WinIcon_DerefVisSpec_DI endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconSpecBuild -- MSG_SPEC_BUILD for OLWinIconClass DESCRIPTION: Handles spec build of the icon. Called when the icon comes up for the first time, but not when it gets restored and iconified a second time. We'll take this moment to load in stuff stored in the active list. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_SPEC_BUILD RETURN: DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 7/ 3/90 Initial version ------------------------------------------------------------------------------@ OLWinIconSpecBuild method dynamic OLWinIconClass, MSG_SPEC_BUILD ;This object is NOT stored on the window list ;Since this object will not get MSG_META_UPDATE_WINDOW, we need to ;check now for data that may have been saved. push ax, bp sub sp, size GetVarDataParams + size GenSaveWindowInfo mov bp, sp mov ss:[bp].GVDP_buffer.segment, ss lea ax, ss:[bp]+(size GetVarDataParams) push ax ; save GenSaveWindowInfo offset mov ss:[bp].GVDP_buffer.offset, ax mov ss:[bp].GVDP_bufferSize, size GenSaveWindowInfo mov ss:[bp].GVDP_dataType, TEMP_GEN_SAVE_ICON_INFO mov dx, size GetVarDataParams mov ax, MSG_META_GET_VAR_DATA mov di, mask MF_CALL or mask MF_FIXUP_DS or mask MF_STACK call OLWinIconObjMessagePrimaryObject pop bx ; restore offset cmp ax, -1 je notFound call WinIcon_DerefVisSpec_DI ; ds:di = OLWinIcon Vis instance mov ax, ss:[bx].GSWI_winPosSizeState mov ds:[di].OLWI_winPosSizeState, ax mov ax, ss:[bx].GSWI_winPosition.SWSP_x mov {word} ds:[di].VI_bounds+0, ax mov ax, ss:[bx].GSWI_winPosition.SWSP_y mov {word} ds:[di].VI_bounds+2, ax mov ax, ss:[bx].GSWI_winSize.SWSP_x mov {word} ds:[di].VI_bounds+4, ax mov ax, ss:[bx].GSWI_winSize.SWSP_y mov {word} ds:[di].VI_bounds+6, ax mov ax, MSG_META_DELETE_VAR_DATA mov cx, TEMP_GEN_SAVE_ICON_INFO call OLWinIconCallPrimaryObject notFound: add sp, size GetVarDataParams + size GenSaveWindowInfo ;now finish up by calling superclass pop ax, bp call WinIcon_ObjCallSuperNoLock_OLWinIconClass ret OLWinIconSpecBuild endm WinIcon_ObjCallSuperNoLock_OLWinIconClass proc near mov di, offset OLWinIconClass call ObjCallSuperNoLock ret WinIcon_ObjCallSuperNoLock_OLWinIconClass endp COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconSetUsable - MSG_OL_WIN_ICON_SET_USABLE DESCRIPTION: This procedure makes the icon visible and usable. CALLED BY: OLMenuedWinGenSetMinimized PASS: ds:*si - instance data RETURN: nothing DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 11/89 initial version ------------------------------------------------------------------------------@ OLWinIconSetUsable method dynamic OLWinIconClass, MSG_OL_WIN_ICON_SET_USABLE ;if this Icon is appearing for a second time, then will not ;get another SPEC_BUILD, so we must force an UpdateWinPosSize here ;to set things up for geometry work. test ds:[di].VI_specAttrs, mask SA_TREE_BUILT_BUT_NOT_REALIZED jz 10$ ;skip if not... ;have one-way visible link to parent. call ConvertSpecWinSizePairsToPixels call UpdateWinPosSize ;update window position and size if ;have enough info. If not, then wait ;until MSG_VIS_MOVE_RESIZE_WIN to ;do this. 10$: ;set this object REALIZABLE and update. ; NOTE-- MUST be delayed via queue to match standard approach for ; Primary's, Interactions, etc. necessitated by MSG_META_ATTACH ; processing, or the Icon ends up being visibly opened before the ; application object, a bad thing now that windows sit visibly on ; the application object. -- Doug 12/3/91 ; ; Changed back to VUM_NOW to match new Primary, Interaction, etc. ; approach. -- Doug 4/8/92 ; mov cx, mask SA_REALIZABLE ;set this flag TRUE mov dl, VUM_NOW mov ax, MSG_SPEC_SET_ATTRS call ObjCallInstanceNoLock ; Give ourselves the focus within the application, having just ; become the most recent window to come up on screen. ; mov ax, MSG_META_GRAB_FOCUS_EXCL call ObjCallInstanceNoLock ret OLWinIconSetUsable endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconSetState -- MSG_OL_WIN_ICON_SETUP for OLWinIconClass DESCRIPTION: This method is sent to initialize some instance data in this object, including its position and Icon Slot # if necessary. This is called when the icon is created, to pass info about its GenPrimary (such as moniker handles) and other info from previous shutdowns (such as position and icon slot #). PASS: *ds:si - instance data es - segment of OLWinIconClass ax - MSG_OL_WIN_ICON_SETUP ss:bp - pointer to bottom of data passed on stack dx - size of data passed on stack on stack: (in order pushed) word - WinPosSizeFlags <> (positioning requests) word - WinPosSizeState <> (which icon slot #) 2 words - VI_bounds.R_left, R_top (position) word - handle of OLWinClass object associated w/icon OD - OD of GenApplication NOTE: the lptrs passed on the stack point to chunks within this ObjectBlock. RETURN: carry - ? ax, cx, dx, bp - ? DESTROYED: di PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 11/89 Initial version Eric 10/90 Added generic upward link code. ------------------------------------------------------------------------------@ OLWinIconSetState method dynamic OLWinIconClass, MSG_OL_WIN_ICON_SET_STATE EC < cmp dx, size IconPassData > EC < ERROR_NZ OL_ERROR > ;save OD of GenPrimary which is opened by this icon ;and initialize the OLWinClass attribute record for this object mov ax, ss:[bp].IPD_window.handle mov ds:[di].OLWII_window.handle, ax mov ax, ss:[bp].IPD_window.chunk mov ds:[di].OLWII_window.chunk, ax mov ax, ss:[bp].IPD_winPosSizeState mov ds:[di].OLWI_winPosSizeState, ax mov ax, ss:[bp].IPD_winPosSizeFlags mov ds:[di].OLWI_winPosSizeFlags, ax mov di, ds:[si] add di, ds:[di].Vis_offset mov ax, ss:[bp].IPD_left mov ds:[di].VI_bounds.R_left, ax mov ax, ss:[bp].IPD_top mov ds:[di].VI_bounds.R_top, ax ret OLWinIconSetState endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconUpdateMoniker DESCRIPTION: Update our moniker and our title glyph's moniker. PASS: *ds:si - instance data es - segment of OLWinIconClass ax - MSG_OL_WIN_ICON_UPDATE_MONIKER ss:bp - IconMonikerPassData RETURN: nothing DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 4/3/92 Initial version ------------------------------------------------------------------------------@ OLWinIconUpdateMoniker method dynamic OLWinIconClass, \ MSG_OL_WIN_ICON_UPDATE_MONIKER push ds:[di].OLWII_iconMoniker push ds:[di].OLWII_iconCaptionMoniker ; ; copy icon moniker ; mov bx, bp ; ss:bx = IconMonikerPassData sub sp, size CreateVisMonikerFrame mov bp, sp mov ax, ss:[bx].IMPD_iconMoniker.handle mov ss:[bp].CVMF_source.handle, ax mov ax, ss:[bx].IMPD_iconMoniker.chunk mov ss:[bp].CVMF_source.chunk, ax mov ss:[bp].CVMF_sourceType, VMST_OPTR mov ss:[bp].CVMF_dataType, VMDT_VIS_MONIKER mov ss:[bp].CVMF_flags, 0 ; not dirty mov dx, size CreateVisMonikerFrame mov ax, MSG_VIS_CREATE_VIS_MONIKER call ObjCallInstanceNoLock ; ax = new moniker call WinIcon_DerefVisSpec_DI mov ds:[di].OLWII_iconMoniker, ax ; ; copy icon caption moniker ; ss:bx = IconMonikerPassData ; mov bp, sp ; ss:bp = stack frame mov ax, ss:[bx].IMPD_iconCaptionMoniker.handle mov ss:[bp].CVMF_source.handle, ax mov ax, ss:[bx].IMPD_iconCaptionMoniker.chunk mov ss:[bp].CVMF_source.chunk, ax mov dx, size CreateVisMonikerFrame mov ax, MSG_VIS_CREATE_VIS_MONIKER call ObjCallInstanceNoLock ; ax = new moniker call WinIcon_DerefVisSpec_DI mov ds:[di].OLWII_iconCaptionMoniker, ax add sp, size CreateVisMonikerFrame ; ; tell glyph, if already created, about new icon caption moniker ; mov dx, ax ; *ds:dx = new caption moniker mov bp, si ; *ds:bp = this object (icon) mov ax, MSG_OL_WIN_GLYPH_DISP_SET_MONIKER push si ; save OLWinIcon mov si, ds:[di].OLWII_titleGlyphWin ; *ds:si = icon caption tst si jz noGlyph call ObjCallInstanceNoLock noGlyph: pop si ; restore OLWinIcon ; ; then invalidate, to get stuff to update ; mov cl, mask VOF_GEOMETRY_INVALID or mask VOF_IMAGE_INVALID mov dl, VUM_NOW call VisMarkInvalid ; ; finally, free old monikers ; pop ax ; handle icon caption moniker tst ax jz 10$ call ObjFreeChunk 10$: pop ax ; handle icon moniker tst ax jz done call ObjFreeChunk done: ret OLWinIconUpdateMoniker endm COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconEnsureTitleGlyphDisplay DESCRIPTION: PASS: *ds:si - instance data RETURN: carry - ? dx - glyph display DESTROYED: ? REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Initial version ------------------------------------------------------------------------------@ OLWinIconEnsureTitleGlyphDisplay proc far class OLWinIconClass ;see if we have an OLWinGlyphDisplay object yet call WinIcon_DerefVisSpec_DI mov dx, ds:[di].OLWII_titleGlyphWin ; get chunk of glyph we have tst dx ;See if already built jnz done ;skip if so... ;create an OLWinGlyphDisplay object to hold the title below the ;icon. (We don't have the monikers yet - the GenPrimary has ;yet to send SETUP to us.) push si ;save WinIcon handle push ds:[di].OLWII_iconCaptionMoniker ;save chunk handle of moniker mov bx, ds:[LMBH_handle] ;put OLWinGlyph in same block mov di, offset OLWinGlyphDisplayClass call GenInstantiateIgnoreDirty ;returns si = handle of object ;send MSG_OL_WIN_GLYPH_DISP_SET_MONIKER so WinGlyph object ;has chunk handle of our GenPrimary's generic moniker pop dx ;dx = chunk of moniker pop bp ;bp = win icon push bp mov ax, MSG_OL_WIN_GLYPH_DISP_SET_MONIKER call ObjCallInstanceNoLock mov dx, si ;dx = chunk handle of OLWinGlyph pop si ;get WinIcon handle call WinIcon_DerefVisSpec_DI mov ds:[di].OLWII_titleGlyphWin, dx ;store handle of OLWinGlyph push si call VisFindParent ;returns ^lbx:si = parent of OLWinIcon EC < tst bx > EC < ERROR_Z OL_SPEC_BUILD_NO_PARENT > mov cx, ds:[LMBH_handle] ;set ^lcx:dx = OLWinGlyph object mov bp, CCO_LAST ; add at the end mov ax, MSG_VIS_ADD_CHILD mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage pop si done: ret OLWinIconEnsureTitleGlyphDisplay endp WinIconCode ends ;--------------------------------------- LessUsedGeometry segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconRerecalcSize -- MSG_VIS_RECALC_SIZE for OLWinIconClass DESCRIPTION: Returns the size of the button. PASS: *ds:si - instance data es - segment of OLWinIconClass di - MSG_VIS_GET_SIZE cx - width info for choosing size dx - height info RETURN: cx - width to use dx - height to use DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 3/15/89 Initial version ------------------------------------------------------------------------------@ OLWinIconRerecalcSize method dynamic OLWinIconClass, MSG_VIS_RECALC_SIZE mov di, ds:[di].OLWII_iconMoniker ;*ds:di = VisMoniker segmov es, ds ;*es:di = VisMoniker clr bp ;pass no GState - will create one using ;VUP query if necessary (text icon?) call SpecGetMonikerSize ;returns cx, dx = size of moniker ret OLWinIconRerecalcSize endp LessUsedGeometry ends ;--------------------------------------- WinIconCode segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconOpenWin DESCRIPTION: Perform MSG_VIS_OPEN_WIN given an OLWinPart CALLED BY: VisOpen PASS: *ds:si - instance data RETURN: cl - DrawFlags: DF_EXPOSED set if updating ch - ? dx - ? bp - GState to use DESTROYED: ax, bx, dx, di, bp, si REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Lifted from OLWinClass ------------------------------------------------------------------------------@ OLWinIconOpenWin method dynamic OLWinIconClass, MSG_VIS_OPEN_WIN push si ; cause icon to open on top of other applicatin windows (such as other ; primarys) ornf ds:[di].OLWI_fixedAttr, mask OWFA_OPEN_ON_TOP ;call superclass to for this object call WinIcon_ObjCallSuperNoLock_OLWinIconClass ; must reset this after we've used it call WinIcon_DerefVisSpec_DI andnf ds:[di].OLWI_fixedAttr, not mask OWFA_OPEN_ON_TOP ;make sure we have a title display object (will set moniker, ;which sets geometry and image invalid) call OLWinIconEnsureTitleGlyphDisplay ; dx = glyph display ;now tell our OLWinGlyphDisplay object where we are on the screen - ;it will position itself relative to the middle of our bottom bound. push dx call OLWinIconUpdateTitleGlyphWin pop dx ;and make it visible mov si, dx mov ax, MSG_VIS_SET_ATTRS mov cx, mask VA_VISIBLE ;SET this bit ;(sets WINDOW_INVALID) mov dl, VUM_NOW call ObjCallInstanceNoLock ; At this point, we should have a slot all set up for us. Let's ; send the slot number back to our window. ; pop si call OLWinIconSendSlot ;AFTER doing all that, make sure we are completely on-screen by ;faking a window move mov ax, MSG_VIS_MOVE_RESIZE_WIN call ObjCallInstanceNoLock ; ; add win icon and title glyph to always-interactible list ; mov ax, MSG_META_GCN_LIST_ADD FALL_THRU AddOrRemoveWinIconAndTitleGlyphToGCNList OLWinIconOpenWin endp ; ; pass: ; *ds:si = OLWinIcon ; ax = MSG_META_GCN_LIST_ADD or MSG_META_GCN_LIST_REMOVE ; return: ; nothing ; destroyed: ; bx, cx, dx, bp, di ; AddOrRemoveWinIconAndTitleGlyphToGCNList proc far gcnParams local GCNListParams .enter ; ; add/remove win icon ; mov di, GAGCNLT_ALWAYS_INTERACTABLE_WINDOWS call AddOrRemoveToGCNListCommon mov di, GAGCNLT_CONTROLLERS_WITHIN_USER_DO_DIALOGS call AddOrRemoveToGCNListCommon ; ; add/remove title glyph ; push si mov di, ds:[si] add di, ds:[di].Vis_offset mov si, ds:[di].OLWII_titleGlyphWin tst si jz done mov di, GAGCNLT_ALWAYS_INTERACTABLE_WINDOWS call AddOrRemoveToGCNListCommon done: pop si .leave ret AddOrRemoveWinIconAndTitleGlyphToGCNList endp ; ; pass: ; *ds:si = object to add/remove ; ax = MSG_META_GCN_LIST_ADD or MSG_META_GCN_LIST_REMOVE ; DI = GCNList to add to ; return: ; nothing ; destroyed: ; bx, cx, dx, di ; AddOrRemoveToGCNListCommon proc near uses ax, si gcnParams local GCNListParams .enter inherit mov gcnParams.GCNLP_ID.GCNLT_manuf, MANUFACTURER_ID_GEOWORKS ; don't save to state mov gcnParams.GCNLP_ID.GCNLT_type, di mov bx, ds:[LMBH_handle] mov gcnParams.GCNLP_optr.handle, bx mov gcnParams.GCNLP_optr.chunk, si clr bx call GeodeGetAppObject tst bx jz noAppObj push bp lea bp, gcnParams mov dx, size gcnParams mov di, mask MF_CALL or mask MF_STACK or mask MF_FIXUP_DS call ObjMessage pop bp noAppObj: .leave ret AddOrRemoveToGCNListCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLWinIconCheckIfInteractableObject %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Checks to see if the current object is interactable while a UserDoDialog is up CALLED BY: GLOBAL PASS: cx:dx - object that a message is destined for RETURN: carry set if interactable DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 3/17/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLWinIconCheckIfInteractableObject method dynamic OLWinIconClass, MSG_META_CHECK_IF_INTERACTABLE_OBJECT .enter cmp cx, ds:[LMBH_handle] jne noMatch cmp dx, si je matchExit cmp dx, ds:[di].OLWII_titleGlyphWin jne noMatch matchExit: stc exit: .leave ret noMatch: clc jmp exit OLWinIconCheckIfInteractableObject endp COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconCloseWin DESCRIPTION: We intercept this here so that we can visibly remove our title glyph window from the field. CALLED BY: VisClose PASS: *ds:si - instance data RETURN: cl - DrawFlags: DF_EXPOSED set if updating ch - ? dx - ? bp - GState to use DESTROYED: ax, bx, dx, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 1/90 initial version ------------------------------------------------------------------------------@ OLWinIconCloseWin method dynamic OLWinIconClass, MSG_VIS_CLOSE_WIN ; ; remove from always-interactible list ; push ax, cx, dx, bp mov ax, MSG_META_GCN_LIST_REMOVE call AddOrRemoveWinIconAndTitleGlyphToGCNList pop ax, cx, dx, bp ;call superclass to for this object call WinIcon_ObjCallSuperNoLock_OLWinIconClass call WinIcon_DerefVisSpec_DI mov si, ds:[di].OLWII_titleGlyphWin tst si jz done ; Clear flag to indicate we ; don't have one anymore clr ds:[di].OLWII_titleGlyphWin ; Visibly close & destroy the title glyph (Doug's handiwork :) mov dl, VUM_NOW ; Update window now mov ax, MSG_VIS_DESTROY ; Unrealize, remove & destroy call ObjCallInstanceNoLock done: ret OLWinIconCloseWin endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconMoveResizeWin -- MSG_VIS_MOVE_RESIZE_WIN for OLWinIconClass DESCRIPTION: This icon is being moved - update the position of our OLWinGlyphDisplay object. PASS: *ds:si - instance data es - segment of OLWinIconClass ax - MSG_WIN_MOVE_RESIZE RETURN: nothing DESTROYED: ax, cx, dx, bp, si, di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Initial version ------------------------------------------------------------------------------@ OLWinIconMoveResizeWin method dynamic OLWinIconClass, MSG_VIS_MOVE_RESIZE_WIN ;FIRST snap the icon to the nearest grid position (this could ;be optional, but we must at least make sure the icon is on the screen) push ax ; call OLWinIconSnapToGrid ;instead, just keep it onscreen - brianc 3/3/92 call OLWinIconKeepOnScreen pop ax ;call superclass to move this object call WinIcon_ObjCallSuperNoLock_OLWinIconClass ;now tell our OLWinGlyphDisplay object where we are on the screen - ;it will position itself relative to the middle of our bottom bound. call OLWinIconUpdateTitleGlyphWin ret OLWinIconMoveResizeWin endp COMMENT @---------------------------------------------------------------------- ROUTINE: OLWinIconSendSlot SYNOPSIS: Sends the slot to our corresponding window. CALLED BY: OLWinIconMoveResizeWin, OLWinIconSetUsable PASS: *ds:si -- handle RETURN: nothing DESTROYED: ax, cx, dx, bp, di PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 6/29/90 Initial version ------------------------------------------------------------------------------@ OLWinIconSendSlot proc far class OLWinIconClass call WinIcon_DerefVisSpec_DI mov cx, ds:[di].VI_bounds.R_left mov dx, ds:[di].VI_bounds.R_top mov al, {byte} ds:[di].OLWI_winPosSizeState+1 clr ah and al, mask WPSS_STAGGERED_SLOT shr 8 mov bp, ax mov ax, MSG_OL_MW_SET_ICON_POS call OLWinIconCallPrimaryObject ret OLWinIconSendSlot endp ;pass *ds:si = instance data for this icon OLWinIconCallPrimaryObject proc near mov di, mask MF_CALL or mask MF_FIXUP_DS FALL_THRU OLWinIconObjMessagePrimaryObject OLWinIconCallPrimaryObject endp ;pass: di = MessageFlags OLWinIconObjMessagePrimaryObject proc near push si push di ; save MessageFlags call WinIcon_DerefVisSpec_DI mov bx, ds:[di].OLWII_window.handle mov si, ds:[di].OLWII_window.chunk pop di ; retreive MessageFlags EC < tst si > EC < ERROR_Z OL_ERROR > call ObjMessage pop si ret OLWinIconObjMessagePrimaryObject endp COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconSnapToGrid DESCRIPTION: This procedure moves a window icon to the nearest icon plot. (See cwinConstant.def for a discussion of Icon Plots) CALLED BY: OLWinIconMoveResizeWin PASS: ds:*si - instance data RETURN: nothing DESTROYED: ax, bx, cx, dx, di PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 initial version ------------------------------------------------------------------------------@ if 0 ;just keep on-screen for 2.0 - brianc 3/3/92 OLWinIconSnapToGrid proc near class OLWinIconClass ; Let's remove the old slot number. call WinIcon_DerefVisSpec_DI mov dl, {byte} ds:[di].OLWI_winPosSizeState+1 ANDNF dl, mask WPSS_STAGGERED_SLOT shr 8 test dl, mask SSPR_SLOT ;test slot # (ignore ICON flag) jz 10$ ;skip if not STAGGERED... mov cx, SVQT_FREE_STAGGER_SLOT call WinIcon_VisCallParent_VUP_QUERY mov ax, MSG_VIS_VUP_QUERY call VisCallParent 10$: ;Find the nearest available slot. call WinIcon_DerefVisSpec_DI mov dx, ds:[di].VI_bounds.R_left ;get position mov bp, ds:[di].VI_bounds.R_top mov cx, SVQT_REQUEST_NEAREST_ICON_SLOT mov ax, MSG_VIS_VUP_QUERY call VisCallParent ;returns cx, dx = size jnc exit ;If no response, don't care... call VisSetPosition ;Adjust coords accordingly ;Store new slot number locally as well. call WinIcon_DerefVisSpec_DI mov dl, {byte} ds:[di].OLWI_winPosSizeState+1 and dl, not (mask WPSS_STAGGERED_SLOT shr 8) or dx, bp ;put slot in cl mov {byte} ds:[di].OLWI_winPosSizeState+1, dl exit: ;Send our window the new slot number and position. call OLWinIconSendSlot ret OLWinIconSnapToGrid endp endif COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconKeepOnScreen DESCRIPTION: This procedure keeps a window icon on the screen. CALLED BY: OLWinIconMoveResizeWin PASS: ds:*si - instance data RETURN: nothing DESTROYED: ax, bx, cx, dx, di PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 3/30/92 initial version ------------------------------------------------------------------------------@ OLWinIconKeepOnScreen proc near class OLWinIconClass mov ax, MSG_VIS_GET_BOUNDS call VisCallParent ; ax, bp, cx, dx = (l, t, r, b) push cx, dx call WinIcon_DerefVisSpec_DI mov cx, ds:[di].VI_bounds.R_left cmp cx, ax jge leftOkay mov cx, ax ; else, update left leftOkay: mov dx, ds:[di].VI_bounds.R_top cmp dx, bp jge topOkay mov dx, bp ; else, update top topOkay: pop ax, bp ; ax, bp = parent (r, b) mov bx, ds:[di].VI_bounds.R_right cmp bx, ax jle rightOkay sub bx, ds:[di].VI_bounds.R_left ; bx = width sub ax, bx ; inset from parent right mov cx, ax ; use as new icon left rightOkay: push si, di, cx, dx call WinIcon_DerefVisSpec_DI mov si, ds:[di].OLWII_titleGlyphWin EC < tst si > EC < ERROR_Z OL_ERROR > call VisGetSize ; dx = glyph height EC < tst dx > EC < ERROR_Z OL_ERROR > mov ax, dx ; ax = glyph height add ax, WIN_ICON_GLYPH_Y_SPACING ; ax = total glyph height pop si, di, cx, dx mov bx, ds:[di].VI_bounds.R_bottom add bx, ax ; bx = total bottom cmp bx, bp jle bottomOkay sub bx, ds:[di].VI_bounds.R_top sub bp, bx ; inset from parent bottom mov dx, bp ; use as new icon top bottomOkay: call VisSetPosition exit: ;Send our window the new slot number and position. call OLWinIconSendSlot ret OLWinIconKeepOnScreen endp COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconUpdateTitleGlyphWin DESCRIPTION: This procedure updates the OLWinGlyphDisplay object which holds the title for this icon. This involves moving the OLWinGlyph object. CALLED BY: OLWinIconMoveResizeWin OLWinIconOpenWindow PASS: ds:*si - instance data RETURN: ax, cx, dx, bp = same DESTROYED: ax, cx, dx, bp, si PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 initial version ------------------------------------------------------------------------------@ OLWinIconUpdateTitleGlyphWin proc far class OLWinIconClass ;now tell our OLWinGlyphDisplay object where we are on the screen - ;it will position itself relative to the middle of our bottom bound. EC < call VisCheckVisAssumption ; Make sure vis data exists > call WinIcon_DerefVisSpec_DI mov cx, ds:[di].VI_bounds.R_left ;average left and right add cx, ds:[di].VI_bounds.R_right shr cx, 1 mov dx, ds:[di].VI_bounds.R_bottom ;get bottom bound ;send on to our OLWinGlyphDisplay object so it moves with us mov si, ds:[di].OLWII_titleGlyphWin mov ax, MSG_OL_WIN_GLYPH_DISP_MOVE call ObjCallInstanceNoLock ret OLWinIconUpdateTitleGlyphWin endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconDraw -- MSG_VIS_DRAW for OLWinIconClass PASS: *ds:si - instance data bp - handle of graphics state RETURN: cl - DrawFlags: DF_EXPOSED set if updating ch - ? dx - ? bp - GState to use DESTROYED: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 9/89 Initial Version ------------------------------------------------------------------------------@ OL_WIN_ICON_MAX_WIDTH = 1023 OLWinIconDraw method dynamic OLWinIconClass, MSG_VIS_DRAW push es push cx ;save draw flags ;get display scheme data (bp = gstate) mov di, bp ;di = GState mov ax, GIT_PRIVATE_DATA call GrGetInfo ;ax = <display scheme><display type> ;Draw flat background & thin black line border, and shadow/resize border ;if necessary. ;(al = color scheme, ah = display type, cl = DrawFlags, ;ds:*si = instance, ds:bp = SpecificInstance, di = GState) ; mov al, C_WHITE ; ; and ah, mask DF_DISPLAY_TYPE ; cmp ah, DC_GRAY_1 ; jnz OWID_color ; ; mov al, C_BLACK ;OWID_color: ;draw icon (bp = GState) mov di, bp ;pass di = gstate mov ax, C_BLACK call GrSetAreaColor segmov es, ds ;pass *es:bx = VisMoniker call WinIcon_DerefVisSpec_DI mov bx, ds:[di].OLWII_iconMoniker push bp ;save GState mov di, bp mov cl, mask DMF_NONE ;draw at pen position, no justification sub sp, size DrawMonikerArgs mov bp, sp ;ss:bp <- DrawMonikerArgs mov ss:[bp].DMA_gState, di mov ss:[bp].DMA_xMaximum, OL_WIN_ICON_MAX_WIDTH mov ss:[bp].DMA_yMaximum, MAX_COORD mov dx, 1 mov ss:[bp].DMA_xInset, dx mov ss:[bp].DMA_yInset, dx call SpecDrawMoniker ;draw moniker onto our window add sp, size DrawMonikerArgs ;clean up stack pop bp ;get GState mov di, bp ;pass di = gstate mov ax, C_BLACK ;set back to black call GrSetAreaColor pop cx ;recover DrawFlags pop es ret OLWinIconDraw endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconGainedSystemFocusExcl DESCRIPTION: We've just gained the window focus exclusive. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_GAINED_SYS_FOCUS_EXCL cx - ? dx - ? bp - ? RETURN: carry - ? ax - ? cx - ? dx - ? bp - ? DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Initial version ------------------------------------------------------------------------------@ OLWinIconGainedSystemFocusExcl method dynamic OLWinIconClass, MSG_META_GAINED_SYS_FOCUS_EXCL call WinIcon_ObjCallSuperNoLock_OLWinIconClass ;Bring this object to the front... mov ax, MSG_GEN_BRING_TO_TOP call ObjCallInstanceNoLock push si call WinIcon_DerefVisSpec_DI mov si, ds:[di].OLWII_titleGlyphWin tst si jz done mov ax, MSG_OL_WIN_GLYPH_BRING_TO_TOP call ObjCallInstanceNoLock ; ; invalidate the glyph so that it redraws with focus indication ; mov cl, mask VOF_IMAGE_INVALID mov dl, VUM_NOW call VisMarkInvalid done: pop si ret OLWinIconGainedSystemFocusExcl endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconLostSystemFocusExcl DESCRIPTION: We've just lost the window focus exclusive. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_LOST_SYS_FOCUS_EXCL cx - ? dx - ? bp - ? RETURN: carry - ? ax - ? cx - ? dx - ? bp - ? DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 2/12/92 Initial version ------------------------------------------------------------------------------@ OLWinIconLostSystemFocusExcl method dynamic OLWinIconClass, MSG_META_LOST_SYS_FOCUS_EXCL push ax, si mov si, ds:[di].OLWII_titleGlyphWin tst si jz done ; ; invalidate the glyph so that it redraws without focus indication ; mov cl, mask VOF_IMAGE_INVALID mov dl, VUM_NOW call VisMarkInvalid done: pop ax, si call WinIcon_ObjCallSuperNoLock_OLWinIconClass ret OLWinIconLostSystemFocusExcl endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconStartSelect -- MSG_META_START_SELECT DESCRIPTION: Handler for SELECT button pressed on Window Icon. If this is a double-click, we want to open the GenPrimary associated with this icon. Otherwise, we just call the superclass (OLWinClass) so it can handle as usual. PASS: *ds:si - instance data es - segment of OLWinClass ax - method cx, dx - ptr position bp - [ UIFunctionsActive | buttonInfo ] RETURN: Nothing DESTROYED: bx, si, di, ds, es PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Initial version ------------------------------------------------------------------------------@ OLWinIconStartSelect method dynamic OLWinIconClass, MSG_META_START_SELECT ;Now is this is a window icon, and the event is double-press, ;open the window up test bp, mask BI_DOUBLE_PRESS jz OLWISS_50 ;skip if not... ;send MSG_OL_RESTORE_WIN to self mov ax, MSG_OL_RESTORE_WIN call ObjCallPreserveRegs mov ax, mask MRF_PROCESSED ret OLWISS_50: call WinIcon_ObjCallSuperNoLock_OLWinIconClass ret OLWinIconStartSelect endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconMaximizeFromIcon -- MSG_OL_MAXIMIZE_FROM_ICON DESCRIPTION: This is invoked when the user presses on the MAXIMIZE item in the system menu. PASS: *ds:si - instance data es - segment of OLWinIconClass ax - MSG_OL_MAXIMIZE_FROM_ICON cx:dx - ? bp - ? RETURN: carry - ? ax, cx, dx, bp - ? DESTROYED: PSEUDO CODE/STRATEGY: Send MSG_GEN_DISPLAY_SET_MAXIMIZED to GenPrimary. Send MSG_GEN_DISPLAY_SET_NOT_MINIMIZED to GenPrimary. REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Initial version Eric 10/90 updated to use OD to get to Primary ------------------------------------------------------------------------------@ OLWinIconMaximizeFromIcon method dynamic OLWinIconClass, MSG_OL_MAXIMIZE_FROM_ICON ;tell the GenPrimary to wake up (and MAXIMIZE if necessary) ; ds:di = instance data mov ax, MSG_GEN_DISPLAY_SET_MAXIMIZED call OLWinIconCallPrimaryObject FALL_THRU OLWinIconRestoreWin OLWinIconMaximizeFromIcon endp COMMENT @---------------------------------------------------------------------- METHOD: OLWinIconRestoreWin -- MSG_OL_RESTORE_WIN DESCRIPTION: This is invoked when the user presses on the RESTORE item in the system menu, or when they double-click on this OLWinIcon object. PASS: *ds:si - instance data es - segment of OLWinIconClass ax - MSG_OL_RESTORE_WIN cx:dx - ? bp - ? RETURN: carry - ? ax, cx, dx, bp - ? DESTROYED: PSEUDO CODE/STRATEGY: Send MSG_GEN_DISPLAY_SET_NOT_MINIMIZED to GenPrimary. REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Initial version Eric 10/90 updated to use OD to get to Primary ------------------------------------------------------------------------------@ ;note FALL_THRU above OLWinIconRestoreWin method OLWinIconClass, MSG_OL_RESTORE_WIN ;tell the GenPrimary to wake up (and MAXIMIZE if necessary) mov ax, MSG_GEN_DISPLAY_SET_NOT_MINIMIZED mov dl, VUM_NOW call WinIcon_DerefVisSpec_DI mov bx, ds:[di].OLWII_window.handle mov si, ds:[di].OLWII_window.chunk mov di, mask MF_FORCE_QUEUE call ObjMessage ret OLWinIconRestoreWin endp COMMENT @---------------------------------------------------------------------- FUNCTION: OLWinIconFupKbdChar - MSG_META_FUP_KBD_CHAR handler DESCRIPTION: This method is sent by child which 1) is the focused object and 2) has received a MSG_META_FUP_KBD_CHAR which is does not care about. Since we also don't care about the character, we forward this method up to the parent in the focus hierarchy. At this class level, the parent in the focus hierarchy is is the generic parent. PASS: *ds:si = instance data for object ds:di = specific instance data for object cx = character value dl = CharFlags dh = ShiftState (ModBits) bp low = ToggleState bp high = scan code RETURN: carry set if handled DESTROYED: ? PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 2/12/92 Initial version (adapted from similar handlers) ------------------------------------------------------------------------------@ OLWinIconFupKbdChar method dynamic OLWinIconClass, MSG_META_FUP_KBD_CHAR push ax ;save method ;Don't handle state keys (shift, ctrl, etc). test dl, mask CF_STATE_KEY or mask CF_TEMP_ACCENT jnz callSuper ;ignore character... test dl, mask CF_FIRST_PRESS or mask CF_REPEAT_PRESS jz callSuper ;skip if not press event... push es ;set es:di = table of shortcuts segmov es, cs mov di, offset cs:OLWinIconKbdBindings call ConvertKeyToMethod pop es jnc callSuper ;skip if none found... call ObjCallInstanceNoLock ;send message to self pop ax ;restore method stc ;say handled ret callSuper: pop ax ;restore method call WinIcon_ObjCallSuperNoLock_OLWinIconClass exit: ret OLWinIconFupKbdChar endm if _USE_KBD_ACCELERATORS ;--------------------------------------------- OLWinIconKbdBindings label word word length OLWinIconShortcutList ;p a c s c ;h l t h h ;y t r f a ;s l t r ; if DBCS_PCGEOS OLWinIconShortcutList KeyboardShortcut \ <0, 1, 0, 0, C_SYS_F5 and mask KS_CHAR>, ;RESTORE <0, 0, 0, 0, C_SYS_ENTER and mask KS_CHAR> ;RESTORE else OLWinIconShortcutList KeyboardShortcut \ <0, 1, 0, 0, 0xf, VC_F5>, ;RESTORE <0, 0, 0, 0, 0xf, VC_ENTER> ;RESTORE endif ;OLWinIconMethodList label word word MSG_OL_RESTORE_WIN word MSG_OL_RESTORE_WIN else ;-------------------------------------------------------------------- OLWinIconKbdBindings label word word length OLWinIconShortcutList ;P C S C ;h A t h S h ;y l r f e a ;s t l t t r if DBCS_PCGEOS OLWinIconShortcutList KeyboardShortcut \ <0, 0, 0, 0, C_SYS_ENTER and mask KS_CHAR> ;RESTORE else OLWinIconShortcutList KeyboardShortcut \ <0, 0, 0, 0, 0xf, VC_ENTER> ;RESTORE endif ;OLWinIconMethodList label word word MSG_OL_RESTORE_WIN endif ;--------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLWinIconGainedSysTargetExcl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: update task entry list CALLED BY: MSG_META_GAINED_SYS_TARGET_EXCL PASS: *ds:si = OLWinIconClass object ds:di = OLWinIconClass instance data es = segment of OLWinIconClass ax = MSG_META_GAINED_SYS_TARGET_EXCL RETURN: nothing ALLOWED TO DESTROY: ax, cx, dx, bp bx, si, di, ds, es SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 1/29/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLWinIconGainedSysTargetExcl method dynamic OLWinIconClass, MSG_META_GAINED_SYS_TARGET_EXCL call WinIcon_ObjCallSuperNoLock_OLWinIconClass call UpdateAppMenuItemCommon ret OLWinIconGainedSysTargetExcl endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLWinIconTestWinInteractibility %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: respond that we are interactible CALLED BY: MSG_META_TEST_WIN_INTERACTIBILITY PASS: *ds:si = OLWinIconClass object ds:di = OLWinIconClass instance data es = segment of OLWinIconClass ax = MSG_META_TEST_WIN_INTERACTIBILITY ^lcx:dx = InputOD of window to check ^hbp = Window to check RETURN: carry = set if mouse allowed in window, clear if not. ALLOWED TO DESTROY: bx, si, di, ds, es SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 1/2/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLWinIconTestWinInteractibility method dynamic OLWinIconClass, MSG_META_TEST_WIN_INTERACTIBILITY tst_clc cx jz done ; no window, not allow cmp cx, ds:[LMBH_handle] jne notSelf cmp dx, si stc ; assume is us je done notSelf: clc ; else, not allowed done: ret OLWinIconTestWinInteractibility endm WinIconCode ends
24.81813
81
0.639928
d449fe389d2a11c89e68455a0b4eedd5b49b446f
426
asm
Assembly
programs/oeis/047/A047246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047246.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047246: Numbers that are congruent to {0, 1, 2, 3} mod 6. ; 0,1,2,3,6,7,8,9,12,13,14,15,18,19,20,21,24,25,26,27,30,31,32,33,36,37,38,39,42,43,44,45,48,49,50,51,54,55,56,57,60,61,62,63,66,67,68,69,72,73,74,75,78,79,80,81,84,85,86,87,90,91,92,93,96,97,98,99,102,103,104,105,108,109,110,111,114,115,116,117,120,121,122,123,126,127,128,129,132,133,134,135,138,139,140,141,144,145,146,147 mov $1,$0 div $1,4 mul $1,2 add $0,$1
53.25
325
0.666667
f5777483661f9f4c7c0afc2d5d858691c715a585
2,155
asm
Assembly
ee/procs/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
ee/procs/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
ee/procs/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Initialise the Procedure Thing V1.00  1990 Tony Tebby QJUMP xdef pr_init xdef prc_name xref.l pr_vers xref gu_thzlk xref gu_achpp xref pr_addp xref pr_remp xref pr_find xref pr_mkls xref pr_usep include 'dev8_keys_err' include 'dev8_keys_thg' include 'dev8_keys_qdos_sms' include 'dev8_mac_assert' include 'dev8_ee_procs_data' section version prc_name dc.w 10,'Procedures V' prc.name equ 12 prc_vers dc.l pr_vers dc.w $200a section procs prc_tab dc.w pr_addp-* dc.w pr_remp-* dc.w pr_find-* dc.w pr_mkls-* dc.w pr_usep-* dc.w pri_nimp-* dc.w pri_nimp-* dc.w pri_nimp-* dc.w 0 pri_nimp moveq #err.nimp,d0 rts ;+++ ; Initialise Procedures Thing ;--- pr_init pri.reg reg a0/a1/a2/a3 movem.l pri.reg,-(sp) move.l #th_name+prc.name+prc_end,d0 ; allocate thing and link jsr gu_achpp bne.s pri_exit lea th_name+prc.name(a0),a1 ; thing itself move.l a1,th_thing(a0) ; pointer to thing st th_nshar(a0) ; not shareable assert th_verid,th_name-4 lea th_verid(a0),a1 move.l prc_vers,(a1)+ ; version lea prc_name,a2 assert prc.name,12 move.l (a2)+,(a1)+ ; and name move.l (a2)+,(a1)+ move.l (a2)+,(a1)+ move.l #thh.flag,(a1) ; flag add.w #prc_addp-thh_flag,a1 ; vectors lea prc_tab,a2 pri_vect move.l a2,a3 move.w (a2)+,d0 ; next vector beq.s pri_link add.w d0,a3 move.w #$4ef9,(a1)+ ; JMP move.l a3,(a1)+ ; absolute address bra.s pri_vect pri_link moveq #sms.lthg,d0 ; link in jsr gu_thzlk pri_exit movem.l (sp)+,pri.reg rts end
24.213483
71
0.489559
3ddfde8127fc1e01f6e14bb8ffb6299be4fe5129
2,459
asm
Assembly
iod/par/cknm.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/par/cknm.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
iod/par/cknm.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; Check PAR/SER name V2.00  1989 Tony Tebby section par xdef par_cknm xdef par_pprty xdef par_phand xdef par_ptrn xdef par_pcr xdef par_pff xref iou_dnam include 'dev8_keys_err' include 'dev8_keys_par' ;+++ ; PAR / SER check name ; ; d4 r -1 PRT, 0 (PAR/PRT) or prd_ser1 (SER) (for prt_use) ; d5 r -1 output only, 0 input and output, 1 input only ; a0 c p pointer to name ; a2 c p pointer to space for parameters ; a3 c p pointer to linkage block (uses prd_ pare, sere, prt, prtd) ; ;--- par_cknm pckn.reg reg d6/d7/a0/a3 frame equ 12 movem.l pckn.reg,-(sp) sub.w #frame,sp move.w (a0)+,d7 ; number of characters cmp.w #3,d7 ; enough? blo.l pckn_fdnf cmp.w #9,d7 ; too many bhi.l pckn_fdnf move.l #$dfdfdfff,d6 and.l (a0)+,d6 ; first four move.b #' ',d6 ; and the first three move.w prd_prt(a3),d0 ; PRT possible? beq.s pckn_par cmp.l #'PRT ',d6 ; PRT? bne.s pckn_par ; ... no, try PAR cmp.w #3,d7 ; ... just PRT? bne.l pckn_fdnf moveq #-1,d4 moveq #-1,d5 ; output only lea prd_prt(a3,d0.w),a0 ; actual name move.w (a0)+,d7 move.l (a0)+,d6 ; PRT device bra.s pckn_snm ; check the rest of the name pckn_par cmp.l #'PAR ',d6 ; is it PAR? bne.s pckn_ser ; ... no moveq #0,d4 ; PAR device moveq #-1,d5 ; output only tst.b prd_pare(a3) ; is PAR enabled? bne.s pckn_snm ; ... yes pckn_ser tst.b prd_sere(a3) ; is SER enabled? beq.s pckn_fdnf ; .. no moveq #prd_ser1/2,d4 add.w d4,d4 moveq #0,d5 ; assume bidirectional cmp.l #'SER ',d6 beq.s pckn_snm ; ... it is moveq #-1,d5 ; output only? cmp.l #'STX ',d6 beq.s pckn_snm moveq #1,d5 ; input only? cmp.l #'SRX ',d6 bne.s pckn_fdnf pckn_snm move.l sp,a3 move.w d7,(a3)+ move.l #'SER ',(a3)+ ; put parameters move.b -1(a0),-1(a3) move.l (a0)+,(a3)+ move.w (a0)+,(a3)+ move.l sp,a0 move.l a2,a3 jsr iou_dnam ; decode name bra.s pckn_exit bra.s pckn_exit bra.s pckn_exok dc.w 3,'SER' dc.w 6 dc.w -1,1 ; number par_pprty dc.w 4,'OEMS' ; parity par_phand dc.w 3,'HIX' ; handshake par_ptrn dc.w 2,'DT' ; translate par_pcr dc.w 3,'RCA' ; <CR> par_pff dc.w 2,'FZ' ; <FF> or CTRL Z pckn_fdnf moveq #err.fdnf,d0 bra.s pckn_exit pckn_exok move.w (a3),d0 ; port number beq.s pckn_inam ; bad subq.w #4,d0 bhi.s pckn_inam moveq #0,d0 pckn_exit add.w #frame,sp movem.l (sp)+,pckn.reg rts pckn_inam moveq #err.inam,d0 bra.s pckn_exit end
19.672
68
0.630744
fa9f82075dac29da1cb6f46e662c0ba9563b0dfd
839
asm
Assembly
src/code/save.asm
gb-archive/waveform-gb
016c923745620d2166bd24e6e9afc6bd35a89a4b
[ "MIT" ]
null
null
null
src/code/save.asm
gb-archive/waveform-gb
016c923745620d2166bd24e6e9afc6bd35a89a4b
[ "MIT" ]
null
null
null
src/code/save.asm
gb-archive/waveform-gb
016c923745620d2166bd24e6e9afc6bd35a89a4b
[ "MIT" ]
null
null
null
NUM_WAVES EQU 8 SECTION "Save SRAM", SRAM sMarker: ds 2 sWaves: ds WAVE_SIZE * NUM_WAVES SECTION "Save", ROM0 ; save current wave into slot a SaveSAV:: ld hl, sWaves ld bc, WAVE_SIZE call AddATimes push hl put [MBC3_SRAM], SRAM_ENABLE put [MBC3_SRAMBank], 0 put [sMarker], "W" put [sMarker + 1], "F" ld hl, wWave pop de call CopyWave put [MBC3_SRAM], SRAM_DISABLE ret ; load current wave with slot a LoadSAV:: ld hl, sWaves ld bc, WAVE_SIZE call AddATimes put [MBC3_SRAM], SRAM_ENABLE put [MBC3_SRAMBank], 0 call VerifySave jr c, .noSave ld de, wWave call CopyWave jr .done .noSave call InitSAV .done put [MBC3_SRAM], SRAM_DISABLE ret VerifySave: ld a, [sMarker] jne "W", .noSave ld a, [sMarker + 1] jne "F", .noSave and a ret .noSave scf ret InitSAV: fill sWaves, WAVE_SIZE * NUM_WAVES, 0 ret
14.220339
38
0.698451
814551b08d656f36ced9936ff3aaad62bd27101b
10,773
asm
Assembly
drawing.asm
Dansbo/proto2
33bc05e9db11daa1f4a4a13738be9e7a7e9ac85e
[ "Unlicense" ]
null
null
null
drawing.asm
Dansbo/proto2
33bc05e9db11daa1f4a4a13738be9e7a7e9ac85e
[ "Unlicense" ]
null
null
null
drawing.asm
Dansbo/proto2
33bc05e9db11daa1f4a4a13738be9e7a7e9ac85e
[ "Unlicense" ]
null
null
null
!cpu w65c02 !src "cx16.inc" +SYS_LINE !src "vera0.9.inc" !macro PRINT_STR .str { bra + !ct "asc2vera.ct" { .locstr !text .str } .locend + lda #<.locstr sta r0l lda #>.locstr sta r0h ldx #0 ldy #.locend-.locstr - lda .locstr,x sta VERA_DATA0 inx dey bne - } main: lda #PET_WHITE jsr CHROUT lda #PET_SWAP_FGBG jsr CHROUT lda #PET_BLACK jsr CHROUT lda #147 jsr CHROUT jsr load_font +VERA_SET_STRIDE 2 +VERA_SET_ADDR $00202 lda #255 sta VERA_DATA0 +PRINT_STR " - $FF INPUT/OUTPUT NODE" +VERA_SET_ADDR $00402 lda #$DD sta VERA_DATA0 +PRINT_STR " - $DD AND TOP LEFT" +VERA_SET_ADDR $00602 lda #$DE sta VERA_DATA0 +PRINT_STR " - $DE AND TOP LEFT INVERTED" +VERA_SET_ADDR $00802 lda #$DF sta VERA_DATA0 +PRINT_STR " - $DF AND MID LEFT" +VERA_SET_ADDR $00A02 lda #$E0 sta VERA_DATA0 +PRINT_STR " - $E0 AND BOTTOM LEFT" +VERA_SET_ADDR $00C02 lda #$E1 sta VERA_DATA0 +PRINT_STR " - $E1 AND BOTTOM LEFT INVERTED" +VERA_SET_ADDR $00E02 lda #$E2 sta VERA_DATA0 +PRINT_STR " - $E2 AND TOP MIDDLE" +VERA_SET_ADDR $01002 lda #$E3 sta VERA_DATA0 +PRINT_STR " - $E3 AND BOTTOM MIDDLE" +VERA_SET_ADDR $01202 lda #$E4 sta VERA_DATA0 +PRINT_STR " - $E4 AND TOP RIGHT" +VERA_SET_ADDR $01402 lda #$E5 sta VERA_DATA0 +PRINT_STR " - $E5 AND BOTTOM RIGHT" +VERA_SET_ADDR $01602 lda #$E6 sta VERA_DATA0 +PRINT_STR " - $E6 AND RIGHT MIDDLE" +VERA_SET_ADDR $01802 lda #$E7 sta VERA_DATA0 +PRINT_STR " - $E7 AND RIGHT MID INVERTED (NAND)" +VERA_SET_ADDR $01A02 lda #$E8 sta VERA_DATA0 +PRINT_STR " - $E8 OR TOP LEFT" +VERA_SET_ADDR $01C02 lda #$E9 sta VERA_DATA0 +PRINT_STR " - $E9 OR TOP LEFT INVERTED" +VERA_SET_ADDR $01E02 lda #$EA sta VERA_DATA0 +PRINT_STR " - $EA OR LEFT MIDDLE" +VERA_SET_ADDR $02002 lda #$EB sta VERA_DATA0 +PRINT_STR " - $EB OR BOTTOM LEFT" +VERA_SET_ADDR $02202 lda #$EC sta VERA_DATA0 +PRINT_STR " - $EC OR BOTTOM LEFT INVERTED" +VERA_SET_ADDR $02402 lda #$ED sta VERA_DATA0 +PRINT_STR " - $ED OR TOP MIDDLE" +VERA_SET_ADDR $02602 lda #$EE sta VERA_DATA0 +PRINT_STR " - $EE OR BOTTOM MIDDLE" +VERA_SET_ADDR $02802 lda #$EF sta VERA_DATA0 +PRINT_STR " - $EF OR TOP RIGHT" +VERA_SET_ADDR $02A02 lda #$F0 sta VERA_DATA0 +PRINT_STR " - $F0 OR BOTTOM RIGHT" +VERA_SET_ADDR $02C02 lda #$F1 sta VERA_DATA0 +PRINT_STR " - $F1 OR RIGHT MIDDLE" +VERA_SET_ADDR $02E02 lda #$F2 sta VERA_DATA0 +PRINT_STR " - $F2 OR RIGHT MID INVERTED (NOR)" +VERA_SET_ADDR $00250 lda #$F3 sta VERA_DATA0 +PRINT_STR " - $F3 XOR TOP LEFT" +VERA_SET_ADDR $00450 lda #$F4 sta VERA_DATA0 +PRINT_STR " - $F4 XOR TOP LEFT INVERTED" +VERA_SET_ADDR $00650 lda #$F5 sta VERA_DATA0 +PRINT_STR " - $F5 XOR BOTTOM LEFT" +VERA_SET_ADDR $00850 lda #$F6 sta VERA_DATA0 +PRINT_STR " - $F6 XOR BOTTOM LEFT INVERTED" +VERA_SET_ADDR $00A50 lda #$F7 sta VERA_DATA0 +PRINT_STR " - $F7 XOR TOP MIDDLE" +VERA_SET_ADDR $00C50 lda #$F8 sta VERA_DATA0 +PRINT_STR " - $F8 XOR BOTTOM MIDDLE" +VERA_SET_ADDR $00E50 lda #$F9 sta VERA_DATA0 +PRINT_STR " - $F9 XOR CENTER" +VERA_SET_ADDR $01050 lda #$FA sta VERA_DATA0 +PRINT_STR " - $FA INVERTER TOP" +VERA_SET_ADDR $01250 lda #$FB sta VERA_DATA0 +PRINT_STR " - $FB INVERTER BOTTOM" +VERA_SET_ADDR $01450 lda #$FC sta VERA_DATA0 +PRINT_STR " - $FC INVERTER LEFT" +VERA_SET_ADDR $01650 lda #$FE sta VERA_DATA0 +PRINT_STR " - $FE INVERTER RIGHT" +VERA_SET_ADDR $01850 lda #$43 sta VERA_DATA0 +PRINT_STR " - $43 HORIZONTAL WIRE" +VERA_SET_ADDR $01A50 lda #$5D sta VERA_DATA0 +PRINT_STR " - $5D VERTICAL WIRE" +VERA_SET_ADDR $01C50 lda #$70 sta VERA_DATA0 +PRINT_STR " - $70 TOP LEFT CORNER" +VERA_SET_ADDR $01E50 lda #$6D sta VERA_DATA0 +PRINT_STR " - $6D BOTTOM LEFT CORNER" +VERA_SET_ADDR $02050 lda #$6E sta VERA_DATA0 +PRINT_STR " - $6E TOP RIGHT CORNER" +VERA_SET_ADDR $02250 lda #$7D sta VERA_DATA0 +PRINT_STR " - $7D BOTTOM RIGHT CORNER" +VERA_SET_ADDR $02450 lda #$73 sta VERA_DATA0 +PRINT_STR " - $73 LEFT TEE" +VERA_SET_ADDR $02650 lda #$6B sta VERA_DATA0 +PRINT_STR " - $6B RIGHT TEE" +VERA_SET_ADDR $02850 lda #$71 sta VERA_DATA0 +PRINT_STR " - $71 TOP TEE" +VERA_SET_ADDR $02A50 lda #$72 sta VERA_DATA0 +PRINT_STR " - $72 BOTTOM TEE" jsr CHRIN rts load_font: lda #$10 sta VERA_ADDR_H ; Increment by 1, bank 0 lda #$FE ; Set address to sta VERA_ADDR_M ; $F800+($dd*$8)=$FEE8 lda #$E8 ; This places the custom chars sta VERA_ADDR_L ; at the end of the font table lda #<CHARS ; Save address of CHARS in ZP sta TMP0 lda #>CHARS sta TMP0+1 ldy #0 ldx #35 ; number of characters to replace in font @outloop: stx TMP2 ; Save .X in ZP location ldx #8 ; Counter for bytes in a character - lda (TMP0),y sta VERA_DATA0 inc TMP0 ; Add 1 to 16 bit address stored in ZP bne @noinc inc TMP0+1 @noinc: dex bne - ; Jump back and do next byte of character ldx TMP2 ; Restore .X from ZP dex bne @outloop ; While we have not done all chars, jump back rts CHARS ; ******************* AND/NAND ************************* ; Top left of AND !byte %........ !byte %....#### !byte %....#### !byte %######.. !byte %######.. !byte %....##.. !byte %....##.. !byte %....##.. ; Top left of AND inverted input !byte %........ !byte %....#### !byte %.##.#### !byte %#..###.. !byte %#..###.. !byte %.##.##.. !byte %....##.. !byte %....##.. ; Left mid of AND !byte %....##.. !byte %....##.. !byte %....##.. !byte %....##.. !byte %....##.. !byte %....##.. !byte %....##.. !byte %....##.. ; Bottom Left of AND !byte %....##.. !byte %....##.. !byte %....##.. !byte %######.. !byte %######.. !byte %....#### !byte %....#### !byte %........ ; Bottom Left of AND inverted input !byte %....##.. !byte %....##.. !byte %.##.##.. !byte %#..###.. !byte %#..###.. !byte %.##.#### !byte %....#### !byte %........ ; Top mid of AND !byte %........ !byte %######.. !byte %######## !byte %......## !byte %.......# !byte %........ !byte %........ !byte %........ ; Bottom mid of AND !byte %........ !byte %........ !byte %........ !byte %.......# !byte %......## !byte %######## !byte %######.. !byte %........ ; Top right of AND !byte %........ !byte %........ !byte %........ !byte %........ !byte %#....... !byte %##...... !byte %.##..... !byte %.##..... ; Bottom right of AND !byte %.##..... !byte %.##..... !byte %##...... !byte %#....... !byte %........ !byte %........ !byte %........ !byte %........ ; Right mid of AND !byte %..##.... !byte %..##.... !byte %...#.... !byte %...##### !byte %...##### !byte %...#.... !byte %..##.... !byte %..##.... ; Right mid of NAND !byte %..##.... !byte %..##.... !byte %...#.##. !byte %...##..# !byte %...##..# !byte %...#.##. !byte %..##.... !byte %..##.... ; ******************* OR/NOR ************************* ; Top left OR !byte %........ !byte %....#### !byte %....#### !byte %######.. !byte %#######. !byte %.....##. !byte %......## !byte %......## ; Top left OR inverted input !byte %........ !byte %....#### !byte %.##.#### !byte %#..###.. !byte %#..####. !byte %.##..##. !byte %......## !byte %......## ; Left mid of OR !byte %......## !byte %......## !byte %......## !byte %......## !byte %......## !byte %......## !byte %......## !byte %......## ; Bottom left OR !byte %......## !byte %......## !byte %.....##. !byte %#######. !byte %######.. !byte %....#### !byte %....#### !byte %........ ; Bottom left OR inverted input !byte %......## !byte %......## !byte %.##..##. !byte %#..####. !byte %#..###.. !byte %.##.#### !byte %....#### !byte %........ ; Top mid of OR !byte %........ !byte %#######. !byte %######## !byte %.......# !byte %.......# !byte %........ !byte %........ !byte %........ ; Bottom mid of OR !byte %........ !byte %........ !byte %........ !byte %.......# !byte %.......# !byte %######## !byte %#######. !byte %........ ; Top right OR !byte %........ !byte %........ !byte %........ !byte %........ !byte %#....... !byte %#....... !byte %#....... !byte %##...... ; Bottom right OR !byte %##...... !byte %#....... !byte %#....... !byte %#....... !byte %........ !byte %........ !byte %........ !byte %........ ; Right mid of OR !byte %.#...... !byte %.##..... !byte %..#..... !byte %...##### !byte %...##### !byte %..#..... !byte %.##..... !byte %.#...... ; Right mid of NOR !byte %.#...... !byte %.##..... !byte %..#..##. !byte %...##..# !byte %...##..# !byte %..#..##. !byte %.##..... !byte %.#...... ; ******************* XOR ****************************** ; Top left of XOR !byte %........ !byte %....#..# !byte %....##.# !byte %######.. !byte %#######. !byte %.....##. !byte %......## !byte %......## ; Top left of XOR inverted input !byte %........ !byte %....#..# !byte %.##.##.# !byte %#..###.. !byte %#..####. !byte %.##..##. !byte %......## !byte %......## ; Bottom left of XOR !byte %......## !byte %......## !byte %.....##. !byte %#######. !byte %######.. !byte %....##.# !byte %....#..# !byte %........ ; Bottom left of XOR inverted input !byte %......## !byte %......## !byte %.##..##. !byte %#..####. !byte %#..###.. !byte %.##.##.# !byte %....#..# !byte %........ ; Top mid of XOR !byte %........ !byte %#######. !byte %######## !byte %#......# !byte %##.....# !byte %.#...... !byte %.##..... !byte %.##..... ; Bottom mid of XOR !byte %.##..... !byte %.##..... !byte %.#...... !byte %##.....# !byte %#......# !byte %######## !byte %#######. !byte %........ ; Mid of XOR !byte %.##..... !byte %.##..... !byte %.##..... !byte %.##..... !byte %.##..... !byte %.##..... !byte %.##..... !byte %.##..... ; ******************* NOT/BUFFER ****************************** ; Top of NOT !byte %........ !byte %........ !byte %........ !byte %........ !byte %....#... !byte %....##.. !byte %....###. !byte %....#### ; Bottom of NOT !byte %....#### !byte %....###. !byte %....##.. !byte %....#... !byte %........ !byte %........ !byte %........ !byte %........ ; Left of NOT !byte %....##.# !byte %....##.. !byte %....##.. !byte %######.. !byte %######.. !byte %....##.. !byte %....##.. !byte %....##.# ; Left of NOT inverted input !byte %....##.# !byte %....##.. !byte %.##.##.. !byte %#..###.. !byte %#..###.. !byte %.##.##.. !byte %....##.. !byte %....##.# ; Right of NOT !byte %#....... !byte %##...... !byte %.##..##. !byte %..###..# !byte %..###..# !byte %.##..##. !byte %##...... !byte %#....... ; INPUT/BUTTOM !byte %...##... !byte %..####.. !byte %.######. !byte %######## !byte %######## !byte %.######. !byte %..####.. !byte %...##...
16.422256
63
0.474148
4f1c46fca05e01b1d9a768e3634830ea2a57d89e
389
asm
Assembly
programs/oeis/118/A118403.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/118/A118403.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/118/A118403.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A118403: Unsigned row sums of triangle A118401; a(n) = A118402(n^2-n+2), where A118402 is the row sums of triangle A118400. ; 1,1,3,5,9,15,23,33,45,59,75,93,113,135,159,185,213,243,275,309,345,383,423,465,509,555,603,653,705,759,815,873,933,995,1059,1125,1193,1263,1335,1409,1485,1563,1643,1725,1809,1895,1983,2073,2165,2259,2355 mov $1,$0 trn $0,2 bin $1,2 sub $1,$0 mul $1,2 add $1,1
38.9
205
0.709512
c714eb3622636859e52574de161149a85391c8fd
45,249
asm
Assembly
P6/P6Judger - 100 testpoints/testpoint/testpoint89.asm
flyinglandlord/BUAA-CO-2021
1aa28b09762dfb2376ed2aac4126839f0e6fcf93
[ "MIT" ]
5
2021-12-05T12:58:26.000Z
2022-03-31T02:05:13.000Z
P6/P6Judger - 100 testpoints/testpoint/testpoint89.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
null
null
null
P6/P6Judger - 100 testpoints/testpoint/testpoint89.asm
OliverDu8-24/BUAA-CO-2021
9959abd90de9039d751bab64f153547e76066665
[ "MIT" ]
2
2021-12-19T11:49:48.000Z
2021-12-22T10:25:38.000Z
ori $1, $0, 9 ori $2, $0, 7 ori $3, $0, 2 ori $4, $0, 5 sw $3, 0($0) sw $2, 4($0) sw $4, 8($0) sw $4, 12($0) sw $4, 16($0) sw $1, 20($0) sw $4, 24($0) sw $4, 28($0) sw $4, 32($0) sw $1, 36($0) sw $1, 40($0) sw $3, 44($0) sw $1, 48($0) sw $3, 52($0) sw $2, 56($0) sw $2, 60($0) sw $4, 64($0) sw $2, 68($0) sw $4, 72($0) sw $1, 76($0) sw $1, 80($0) sw $1, 84($0) sw $1, 88($0) sw $1, 92($0) sw $3, 96($0) sw $2, 100($0) sw $4, 104($0) sw $1, 108($0) sw $2, 112($0) sw $1, 116($0) sw $3, 120($0) sw $2, 124($0) bgez $2, TAG1 sb $2, 0($2) sra $2, $2, 7 lw $2, 0($2) TAG1: sll $1, $2, 4 mfhi $3 mfhi $4 mtlo $2 TAG2: mfhi $4 beq $4, $4, TAG3 mfhi $1 bltz $4, TAG3 TAG3: sll $1, $1, 12 mthi $1 mtlo $1 mult $1, $1 TAG4: beq $1, $1, TAG5 sb $1, 0($1) lui $3, 4 sh $3, 0($1) TAG5: lui $3, 2 srl $1, $3, 2 mthi $3 lui $1, 3 TAG6: lui $2, 2 mthi $2 beq $2, $2, TAG7 srl $1, $2, 12 TAG7: srlv $4, $1, $1 subu $2, $4, $4 multu $4, $2 sll $1, $1, 10 TAG8: addiu $4, $1, 4 bne $4, $1, TAG9 sll $0, $0, 0 lw $1, 0($1) TAG9: mult $1, $1 multu $1, $1 mthi $1 sll $0, $0, 0 TAG10: sll $0, $0, 0 lui $1, 5 blez $4, TAG11 mult $1, $4 TAG11: mtlo $1 sltu $4, $1, $1 beq $1, $1, TAG12 xor $3, $4, $1 TAG12: mthi $3 blez $3, TAG13 sll $0, $0, 0 lb $3, 0($4) TAG13: mflo $1 sll $2, $1, 14 sll $0, $0, 0 bltz $2, TAG14 TAG14: sllv $1, $2, $2 or $4, $1, $1 bne $2, $1, TAG15 lui $4, 5 TAG15: or $3, $4, $4 beq $4, $4, TAG16 addiu $3, $4, 5 mfhi $1 TAG16: lui $2, 5 divu $1, $1 sll $0, $0, 0 bgez $1, TAG17 TAG17: or $3, $2, $2 multu $3, $3 div $2, $3 subu $2, $3, $3 TAG18: lui $4, 11 bgtz $4, TAG19 add $3, $2, $4 bltz $3, TAG19 TAG19: slti $3, $3, 2 lui $4, 12 bne $3, $3, TAG20 lui $4, 7 TAG20: mflo $3 bne $4, $4, TAG21 sb $3, 0($3) addiu $1, $3, 14 TAG21: sltu $2, $1, $1 mtlo $1 lh $4, 0($2) nor $1, $2, $4 TAG22: srl $3, $1, 1 bne $3, $1, TAG23 mthi $3 or $4, $1, $1 TAG23: bltz $4, TAG24 sb $4, -256($4) mflo $3 mult $3, $4 TAG24: mtlo $3 lbu $3, 0($3) lui $4, 1 lui $3, 4 TAG25: mflo $1 blez $3, TAG26 addu $2, $3, $3 mflo $3 TAG26: mflo $4 beq $3, $3, TAG27 mult $4, $4 ori $4, $4, 14 TAG27: lbu $2, 0($4) sb $2, 0($4) lui $4, 1 sll $0, $0, 0 TAG28: blez $4, TAG29 sll $0, $0, 0 xor $2, $4, $4 sll $0, $0, 0 TAG29: subu $1, $2, $2 sh $1, 0($1) lbu $2, 0($2) bgtz $1, TAG30 TAG30: mult $2, $2 sub $3, $2, $2 multu $2, $3 bgez $2, TAG31 TAG31: addiu $3, $3, 9 mflo $4 sh $3, 0($3) mult $3, $4 TAG32: blez $4, TAG33 mult $4, $4 lw $4, 0($4) beq $4, $4, TAG33 TAG33: lw $4, 0($4) beq $4, $4, TAG34 mfhi $4 add $4, $4, $4 TAG34: lui $2, 14 sll $3, $4, 15 slti $3, $2, 5 sb $3, 0($3) TAG35: subu $2, $3, $3 bltz $3, TAG36 sh $3, 0($2) beq $3, $3, TAG36 TAG36: mflo $2 sh $2, 0($2) sb $2, 0($2) addi $4, $2, 10 TAG37: sltu $2, $4, $4 beq $4, $2, TAG38 mfhi $2 mthi $2 TAG38: beq $2, $2, TAG39 sh $2, 0($2) divu $2, $2 sw $2, 0($2) TAG39: lb $4, 0($2) mtlo $4 mtlo $4 and $1, $2, $4 TAG40: mfhi $1 mthi $1 mfhi $2 mtlo $2 TAG41: mthi $2 lui $2, 15 blez $2, TAG42 mfhi $2 TAG42: mflo $2 mtlo $2 mult $2, $2 bltz $2, TAG43 TAG43: mflo $1 lbu $3, 0($1) lui $4, 2 sh $2, 0($2) TAG44: mtlo $4 sll $0, $0, 0 beq $4, $4, TAG45 andi $2, $4, 11 TAG45: ori $4, $2, 13 lui $3, 6 slti $4, $2, 6 lui $2, 1 TAG46: lui $1, 10 sll $3, $2, 9 xori $1, $1, 15 lui $4, 1 TAG47: sll $0, $0, 0 mflo $1 divu $1, $1 nor $4, $4, $1 TAG48: slti $1, $4, 13 mflo $3 sll $0, $0, 0 or $3, $4, $3 TAG49: beq $3, $3, TAG50 mtlo $3 mult $3, $3 multu $3, $3 TAG50: slti $1, $3, 1 multu $3, $3 lui $1, 13 mflo $2 TAG51: bne $2, $2, TAG52 lui $1, 7 mflo $2 sll $0, $0, 0 TAG52: sll $0, $0, 0 bgez $1, TAG53 sllv $1, $1, $1 mtlo $1 TAG53: addu $3, $1, $1 bgtz $3, TAG54 div $3, $1 bgez $3, TAG54 TAG54: subu $2, $3, $3 lui $4, 7 srav $3, $3, $3 lb $3, 0($2) TAG55: mfhi $1 bne $3, $1, TAG56 mthi $1 mfhi $3 TAG56: mthi $3 bne $3, $3, TAG57 multu $3, $3 sb $3, 0($3) TAG57: beq $3, $3, TAG58 sra $1, $3, 13 xor $2, $3, $3 mfhi $2 TAG58: sra $3, $2, 2 multu $3, $2 beq $2, $2, TAG59 lb $2, 0($3) TAG59: srl $1, $2, 13 sh $1, 0($1) lui $4, 13 bne $2, $1, TAG60 TAG60: sllv $3, $4, $4 sll $0, $0, 0 mfhi $1 lui $3, 6 TAG61: subu $2, $3, $3 xor $1, $2, $2 sh $3, 0($1) blez $3, TAG62 TAG62: mult $1, $1 mfhi $1 mthi $1 lbu $3, 0($1) TAG63: lui $2, 9 xor $4, $2, $3 mtlo $2 beq $2, $2, TAG64 TAG64: mult $4, $4 beq $4, $4, TAG65 sll $0, $0, 0 bne $4, $4, TAG65 TAG65: lui $3, 0 multu $3, $3 sll $0, $0, 0 div $3, $4 TAG66: beq $4, $4, TAG67 srlv $4, $4, $4 divu $4, $4 blez $4, TAG67 TAG67: sll $0, $0, 0 lui $3, 3 sll $0, $0, 0 sra $4, $3, 6 TAG68: sllv $3, $4, $4 div $4, $4 beq $3, $3, TAG69 lhu $3, -3072($4) TAG69: lui $1, 15 sll $0, $0, 0 multu $1, $1 addu $4, $1, $1 TAG70: bltz $4, TAG71 lui $3, 6 sll $3, $3, 10 addiu $2, $3, 14 TAG71: div $2, $2 divu $2, $2 mthi $2 divu $2, $2 TAG72: beq $2, $2, TAG73 sltu $2, $2, $2 div $2, $2 sw $2, 0($2) TAG73: or $4, $2, $2 sllv $1, $4, $4 beq $4, $1, TAG74 or $4, $4, $1 TAG74: mtlo $4 bne $4, $4, TAG75 mtlo $4 mthi $4 TAG75: xor $1, $4, $4 sb $4, 0($1) bgez $1, TAG76 mult $4, $1 TAG76: mfhi $4 bne $4, $1, TAG77 lb $3, 0($1) mfhi $4 TAG77: mflo $3 mult $4, $3 blez $4, TAG78 sltiu $3, $4, 10 TAG78: addiu $1, $3, 0 mtlo $3 sltiu $1, $1, 15 sb $1, 0($1) TAG79: beq $1, $1, TAG80 slti $4, $1, 2 bltz $4, TAG80 lui $1, 11 TAG80: mthi $1 lb $2, 0($1) srav $1, $1, $2 sltu $2, $1, $1 TAG81: sw $2, 0($2) sb $2, 0($2) sllv $3, $2, $2 lui $4, 13 TAG82: bltz $4, TAG83 sll $0, $0, 0 mult $2, $4 bgez $2, TAG83 TAG83: mfhi $1 beq $2, $2, TAG84 andi $2, $1, 14 sh $2, 0($2) TAG84: srl $3, $2, 12 lui $4, 12 divu $3, $4 sll $0, $0, 0 TAG85: bne $4, $4, TAG86 sll $0, $0, 0 lui $3, 6 blez $3, TAG86 TAG86: div $3, $3 and $4, $3, $3 and $1, $3, $3 bltz $1, TAG87 TAG87: mtlo $1 mflo $4 divu $1, $4 ori $2, $4, 12 TAG88: lui $1, 13 lui $4, 7 lui $3, 10 sll $0, $0, 0 TAG89: mthi $3 mflo $4 lui $1, 4 or $2, $1, $3 TAG90: lui $2, 12 slt $3, $2, $2 lui $3, 2 sll $0, $0, 0 TAG91: mthi $1 mult $1, $1 sll $0, $0, 0 mfhi $2 TAG92: slt $3, $2, $2 ori $1, $2, 7 mult $3, $2 sh $1, 0($2) TAG93: mfhi $3 lui $4, 8 mfhi $2 bgtz $3, TAG94 TAG94: sw $2, 0($2) sltu $4, $2, $2 sra $3, $2, 10 lui $2, 4 TAG95: xor $4, $2, $2 divu $2, $2 multu $4, $2 bltz $2, TAG96 TAG96: mflo $2 mthi $4 blez $2, TAG97 sll $1, $4, 7 TAG97: mult $1, $1 mfhi $4 mfhi $2 bne $4, $1, TAG98 TAG98: lui $1, 2 lw $3, 0($2) div $1, $1 srlv $4, $1, $1 TAG99: beq $4, $4, TAG100 slti $1, $4, 5 sw $1, 0($4) divu $1, $4 TAG100: lbu $4, 0($1) mthi $1 lui $1, 9 mfhi $4 TAG101: mult $4, $4 lui $3, 5 mthi $3 mult $4, $4 TAG102: bne $3, $3, TAG103 sll $0, $0, 0 lui $4, 14 sll $0, $0, 0 TAG103: mthi $4 bgez $4, TAG104 xori $1, $4, 2 sh $4, 0($1) TAG104: lui $2, 6 lui $3, 5 mflo $2 sb $1, 0($2) TAG105: addiu $2, $2, 2 addiu $4, $2, 14 addu $3, $4, $4 mflo $4 TAG106: lh $2, 0($4) bgtz $2, TAG107 sb $4, 0($2) mthi $4 TAG107: mthi $2 mflo $2 mult $2, $2 lui $2, 14 TAG108: sll $0, $0, 0 sll $0, $0, 0 div $2, $2 sll $0, $0, 0 TAG109: bltz $2, TAG110 sll $0, $0, 0 bne $2, $2, TAG110 sll $0, $0, 0 TAG110: sll $0, $0, 0 lui $3, 15 mtlo $2 mthi $2 TAG111: mtlo $3 sll $3, $3, 7 bgez $3, TAG112 divu $3, $3 TAG112: beq $3, $3, TAG113 sltu $2, $3, $3 lui $1, 15 mthi $2 TAG113: ori $2, $1, 12 mult $2, $1 mtlo $2 or $4, $2, $2 TAG114: div $4, $4 xori $3, $4, 6 mflo $1 divu $3, $4 TAG115: lbu $3, 0($1) addiu $4, $1, 0 lui $1, 14 beq $1, $1, TAG116 TAG116: sllv $1, $1, $1 addu $3, $1, $1 addiu $4, $1, 13 lui $4, 11 TAG117: addu $1, $4, $4 and $1, $1, $4 srlv $3, $1, $4 mfhi $2 TAG118: mthi $2 sll $0, $0, 0 beq $2, $2, TAG119 lui $3, 13 TAG119: sll $4, $3, 1 mfhi $1 sll $0, $0, 0 sll $3, $4, 4 TAG120: sll $0, $0, 0 subu $4, $3, $3 sll $0, $0, 0 sb $3, 0($4) TAG121: mult $4, $4 sb $4, 0($4) mflo $4 mthi $4 TAG122: bne $4, $4, TAG123 xor $3, $4, $4 mthi $3 multu $3, $4 TAG123: mfhi $4 subu $1, $3, $4 lhu $4, 0($4) ori $4, $3, 1 TAG124: bgtz $4, TAG125 mult $4, $4 beq $4, $4, TAG125 multu $4, $4 TAG125: lb $4, 0($4) bltz $4, TAG126 lw $1, 0($4) mthi $1 TAG126: multu $1, $1 mtlo $1 mflo $2 xori $4, $2, 7 TAG127: lbu $2, 0($4) blez $4, TAG128 lb $2, 0($4) srl $4, $2, 3 TAG128: mthi $4 mflo $2 lui $1, 0 sw $4, 0($1) TAG129: multu $1, $1 beq $1, $1, TAG130 ori $1, $1, 5 mflo $1 TAG130: mthi $1 slt $1, $1, $1 lui $2, 2 mult $1, $1 TAG131: sra $3, $2, 12 sll $0, $0, 0 bne $2, $2, TAG132 mtlo $2 TAG132: sltu $1, $2, $2 sll $3, $2, 13 mfhi $2 bltz $2, TAG133 TAG133: addi $4, $2, 7 and $4, $4, $2 lui $4, 0 lui $2, 0 TAG134: mtlo $2 add $4, $2, $2 or $2, $2, $2 blez $2, TAG135 TAG135: lh $4, 0($2) mthi $2 mflo $4 beq $4, $4, TAG136 TAG136: lui $3, 5 sll $0, $0, 0 mtlo $3 lui $1, 6 TAG137: mtlo $1 bne $1, $1, TAG138 addiu $1, $1, 0 addu $3, $1, $1 TAG138: sll $0, $0, 0 div $3, $3 mtlo $3 sllv $3, $3, $3 TAG139: blez $3, TAG140 sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 TAG140: mtlo $3 mfhi $1 lb $4, 0($1) lui $2, 1 TAG141: lui $4, 10 sll $0, $0, 0 mtlo $2 divu $2, $2 TAG142: slti $3, $4, 12 lui $1, 0 bgez $1, TAG143 sh $4, 0($3) TAG143: mtlo $1 sllv $4, $1, $1 lui $3, 2 and $4, $4, $4 TAG144: bltz $4, TAG145 lh $3, 0($4) lhu $1, 0($3) mflo $3 TAG145: bne $3, $3, TAG146 mtlo $3 sh $3, 0($3) sh $3, 0($3) TAG146: mflo $1 multu $1, $1 lhu $1, 0($1) beq $3, $1, TAG147 TAG147: sh $1, 0($1) lbu $2, 0($1) sh $2, 0($2) bne $1, $1, TAG148 TAG148: mtlo $2 bgez $2, TAG149 multu $2, $2 mfhi $4 TAG149: sltu $2, $4, $4 srav $3, $4, $4 bgez $4, TAG150 multu $2, $2 TAG150: srl $2, $3, 8 xor $2, $3, $2 bgez $2, TAG151 nor $3, $3, $2 TAG151: mfhi $3 mflo $4 sb $3, 0($4) lw $2, 0($4) TAG152: mflo $4 bne $4, $4, TAG153 lbu $1, 0($2) mflo $1 TAG153: sltu $4, $1, $1 lui $1, 10 beq $1, $1, TAG154 mfhi $3 TAG154: sh $3, 0($3) bgez $3, TAG155 lui $4, 14 beq $3, $4, TAG155 TAG155: or $2, $4, $4 sra $3, $2, 3 mthi $2 lui $2, 11 TAG156: divu $2, $2 sll $0, $0, 0 mfhi $1 mflo $3 TAG157: lb $4, 0($3) lui $2, 10 lui $4, 4 mfhi $3 TAG158: blez $3, TAG159 mfhi $1 srl $4, $1, 3 sw $1, 0($4) TAG159: xor $4, $4, $4 multu $4, $4 mfhi $4 blez $4, TAG160 TAG160: addu $4, $4, $4 sw $4, 0($4) lw $2, 0($4) and $4, $4, $2 TAG161: mflo $2 and $3, $2, $4 mtlo $4 multu $2, $3 TAG162: mtlo $3 mtlo $3 addu $2, $3, $3 lh $3, 0($3) TAG163: mflo $3 lui $1, 15 subu $3, $3, $1 beq $3, $3, TAG164 TAG164: sll $0, $0, 0 sll $0, $0, 0 or $3, $3, $4 mflo $4 TAG165: lui $1, 11 bne $1, $4, TAG166 lui $4, 4 bgtz $1, TAG166 TAG166: lui $3, 7 bgtz $4, TAG167 mthi $4 sll $3, $4, 5 TAG167: sll $0, $0, 0 blez $3, TAG168 sll $0, $0, 0 beq $3, $3, TAG168 TAG168: sll $0, $0, 0 sll $0, $0, 0 lui $1, 13 sllv $3, $4, $2 TAG169: and $2, $3, $3 addiu $4, $3, 4 sll $0, $0, 0 multu $3, $3 TAG170: div $4, $4 mthi $4 srl $3, $4, 15 andi $4, $4, 6 TAG171: lb $4, 0($4) lui $2, 0 bne $4, $4, TAG172 mthi $4 TAG172: multu $2, $2 beq $2, $2, TAG173 lbu $4, 0($2) lbu $4, 0($2) TAG173: mfhi $1 mflo $1 blez $1, TAG174 mtlo $1 TAG174: lui $2, 4 mfhi $4 bltz $4, TAG175 sh $1, 0($1) TAG175: lui $1, 15 mtlo $1 bgez $4, TAG176 sll $0, $0, 0 TAG176: multu $1, $1 sll $0, $0, 0 bne $1, $1, TAG177 div $1, $1 TAG177: mfhi $3 bltz $1, TAG178 sll $0, $0, 0 sll $0, $0, 0 TAG178: mtlo $3 bgez $3, TAG179 sb $3, 0($3) lhu $1, 0($3) TAG179: srav $2, $1, $1 mult $2, $2 beq $1, $1, TAG180 sll $0, $0, 0 TAG180: lui $3, 0 blez $2, TAG181 addiu $2, $2, 5 mfhi $1 TAG181: sll $0, $0, 0 mfhi $2 addu $4, $1, $1 addiu $3, $2, 6 TAG182: bltz $3, TAG183 mflo $3 mthi $3 bne $3, $3, TAG183 TAG183: sltu $1, $3, $3 bltz $3, TAG184 mthi $3 ori $3, $3, 4 TAG184: slt $1, $3, $3 srav $2, $1, $3 mflo $1 sh $1, 0($2) TAG185: srlv $1, $1, $1 lw $4, 0($1) add $3, $1, $1 sltiu $2, $3, 6 TAG186: mflo $4 mflo $4 sw $4, 0($4) mflo $4 TAG187: mfhi $1 blez $4, TAG188 lhu $2, 0($4) mflo $3 TAG188: mtlo $3 lb $4, 0($3) mfhi $4 sh $4, 0($4) TAG189: bgez $4, TAG190 mthi $4 mtlo $4 mult $4, $4 TAG190: mfhi $3 lhu $2, 0($3) lui $3, 8 multu $3, $4 TAG191: sll $0, $0, 0 bne $3, $4, TAG192 mthi $4 sh $4, 0($3) TAG192: addi $2, $4, 0 mult $4, $4 lui $4, 6 sll $0, $0, 0 TAG193: mthi $4 lui $4, 11 lui $1, 13 mflo $2 TAG194: lui $1, 1 mflo $2 bne $2, $2, TAG195 and $4, $2, $2 TAG195: bne $4, $4, TAG196 sw $4, 0($4) multu $4, $4 multu $4, $4 TAG196: beq $4, $4, TAG197 lui $2, 9 mthi $4 mflo $1 TAG197: mthi $1 lui $3, 8 sll $0, $0, 0 sll $0, $0, 0 TAG198: sll $0, $0, 0 mtlo $3 divu $3, $3 beq $3, $3, TAG199 TAG199: xor $2, $3, $3 sra $2, $2, 4 sltu $3, $3, $3 bgtz $2, TAG200 TAG200: lh $1, 0($3) sub $4, $3, $1 mthi $3 srav $1, $4, $1 TAG201: blez $1, TAG202 mthi $1 add $2, $1, $1 sb $1, 0($1) TAG202: lbu $4, 0($2) multu $2, $2 mflo $1 bne $4, $4, TAG203 TAG203: mfhi $1 mtlo $1 multu $1, $1 mflo $4 TAG204: mult $4, $4 bgtz $4, TAG205 mfhi $2 lh $1, 0($4) TAG205: lbu $2, 0($1) mflo $4 lbu $2, 0($2) subu $3, $1, $1 TAG206: lui $3, 12 mult $3, $3 mfhi $1 sw $3, -144($1) TAG207: sll $0, $0, 0 lui $1, 1 sllv $1, $2, $2 lui $4, 2 TAG208: sll $0, $0, 0 mthi $4 or $2, $4, $4 divu $4, $2 TAG209: mflo $4 mtlo $4 addiu $2, $2, 0 bne $4, $2, TAG210 TAG210: sll $0, $0, 0 blez $2, TAG211 lui $4, 6 mthi $2 TAG211: mtlo $4 beq $4, $4, TAG212 sll $0, $0, 0 mflo $2 TAG212: div $2, $2 lui $2, 6 bltz $2, TAG213 div $2, $2 TAG213: sll $0, $0, 0 mthi $1 lui $2, 2 lui $1, 3 TAG214: lui $2, 9 sll $0, $0, 0 beq $2, $2, TAG215 mthi $1 TAG215: bne $2, $2, TAG216 mtlo $2 mult $2, $2 lui $4, 4 TAG216: slt $2, $4, $4 mfhi $3 bne $2, $2, TAG217 divu $3, $4 TAG217: beq $3, $3, TAG218 lui $4, 4 div $4, $4 lw $1, 0($4) TAG218: sll $0, $0, 0 lui $2, 2 sllv $1, $2, $1 sll $0, $0, 0 TAG219: mfhi $4 andi $2, $3, 8 beq $3, $2, TAG220 mfhi $1 TAG220: mtlo $1 multu $1, $1 mflo $2 mflo $3 TAG221: mfhi $2 lb $4, -6561($3) mthi $2 mflo $4 TAG222: addu $1, $4, $4 lui $2, 10 nor $4, $1, $4 bgez $4, TAG223 TAG223: sw $4, 15332($4) mfhi $2 sltiu $4, $2, 13 mflo $2 TAG224: div $2, $2 sltu $2, $2, $2 beq $2, $2, TAG225 mflo $1 TAG225: sb $1, 0($1) divu $1, $1 mthi $1 lbu $4, 0($1) TAG226: sb $4, 0($4) mfhi $1 mthi $4 div $1, $4 TAG227: blez $1, TAG228 sb $1, 0($1) mthi $1 sra $2, $1, 13 TAG228: mfhi $2 mthi $2 mflo $3 bgtz $3, TAG229 TAG229: divu $3, $3 lui $3, 3 mthi $3 sll $0, $0, 0 TAG230: mtlo $3 bne $3, $3, TAG231 sll $0, $0, 0 addiu $1, $3, 6 TAG231: bne $1, $1, TAG232 lui $4, 12 sll $0, $0, 0 beq $4, $1, TAG232 TAG232: sll $0, $0, 0 bgez $1, TAG233 mtlo $1 beq $1, $1, TAG233 TAG233: sltu $4, $1, $1 mtlo $1 sll $0, $0, 0 andi $2, $4, 6 TAG234: mfhi $4 srav $3, $2, $4 mflo $1 lui $3, 10 TAG235: lui $3, 9 sll $0, $0, 0 addu $4, $3, $3 multu $3, $4 TAG236: lui $2, 4 mult $2, $2 sll $0, $0, 0 sll $0, $0, 0 TAG237: mflo $4 sltu $3, $3, $3 mfhi $3 bgez $4, TAG238 TAG238: xori $3, $3, 5 xori $2, $3, 8 bgez $3, TAG239 sb $3, 0($3) TAG239: srlv $3, $2, $2 lui $1, 4 mthi $2 sb $1, 0($2) TAG240: sll $0, $0, 0 lui $4, 6 sll $0, $0, 0 beq $4, $2, TAG241 TAG241: lw $2, 0($2) mthi $2 mult $2, $2 and $3, $2, $2 TAG242: xor $4, $3, $3 mtlo $4 mult $4, $3 mtlo $4 TAG243: lui $3, 8 srav $2, $3, $4 sll $0, $0, 0 mflo $3 TAG244: mflo $3 bne $3, $3, TAG245 lui $1, 4 sltiu $4, $3, 14 TAG245: divu $4, $4 mtlo $4 mfhi $3 bgtz $3, TAG246 TAG246: sub $4, $3, $3 mflo $1 mfhi $1 mfhi $2 TAG247: mthi $2 lui $3, 3 sh $3, 0($2) mfhi $2 TAG248: multu $2, $2 srl $2, $2, 0 subu $3, $2, $2 or $2, $2, $2 TAG249: sub $1, $2, $2 bgez $1, TAG250 and $1, $2, $1 div $1, $2 TAG250: lhu $3, 0($1) multu $3, $3 mflo $3 sw $3, 0($3) TAG251: mflo $1 blez $3, TAG252 addiu $1, $1, 14 sh $3, 0($3) TAG252: mfhi $1 blez $1, TAG253 sltu $3, $1, $1 bne $3, $3, TAG253 TAG253: lbu $3, 0($3) lh $4, 0($3) multu $4, $3 bgtz $4, TAG254 TAG254: lhu $4, 0($4) bgez $4, TAG255 mflo $3 sh $4, 0($4) TAG255: lhu $4, 0($3) lui $3, 3 sll $0, $0, 0 sll $0, $0, 0 TAG256: beq $3, $3, TAG257 slti $2, $3, 1 mthi $2 beq $3, $2, TAG257 TAG257: sh $2, 0($2) or $1, $2, $2 mfhi $4 bne $4, $2, TAG258 TAG258: lw $2, 0($4) lb $3, 0($4) mtlo $2 mult $4, $3 TAG259: bne $3, $3, TAG260 sh $3, 0($3) sll $2, $3, 13 beq $2, $2, TAG260 TAG260: addiu $2, $2, 11 mthi $2 or $4, $2, $2 lb $4, 0($2) TAG261: lh $4, 0($4) addu $1, $4, $4 mfhi $3 beq $4, $3, TAG262 TAG262: mtlo $3 sh $3, 0($3) lui $4, 5 mult $3, $3 TAG263: mtlo $4 sll $0, $0, 0 subu $2, $4, $4 lui $4, 12 TAG264: mfhi $4 bne $4, $4, TAG265 lui $4, 0 beq $4, $4, TAG265 TAG265: lw $4, 0($4) sw $4, 0($4) sll $1, $4, 3 xori $1, $4, 3 TAG266: div $1, $1 sra $3, $1, 14 lui $2, 0 mflo $2 TAG267: sllv $3, $2, $2 sb $2, 0($3) div $3, $2 bgtz $2, TAG268 TAG268: ori $3, $3, 8 sh $3, 0($3) bne $3, $3, TAG269 sllv $1, $3, $3 TAG269: sll $0, $0, 0 sltu $2, $4, $1 bne $1, $1, TAG270 mfhi $1 TAG270: multu $1, $1 lw $2, 0($1) sll $0, $0, 0 mflo $4 TAG271: mflo $3 mfhi $3 mfhi $1 sra $2, $3, 11 TAG272: xori $1, $2, 7 mult $1, $2 mfhi $4 sw $2, 0($4) TAG273: lui $2, 0 bne $4, $4, TAG274 slt $2, $2, $2 bltz $4, TAG274 TAG274: mtlo $2 sh $2, 0($2) sb $2, 0($2) beq $2, $2, TAG275 TAG275: sh $2, 0($2) lui $2, 6 mflo $2 lw $4, 0($2) TAG276: mult $4, $4 mfhi $2 bltz $4, TAG277 lui $3, 0 TAG277: bne $3, $3, TAG278 sub $1, $3, $3 mflo $2 multu $1, $3 TAG278: mtlo $2 lw $3, 0($2) mthi $2 lui $1, 9 TAG279: xor $1, $1, $1 sw $1, 0($1) lui $2, 14 mflo $4 TAG280: bgtz $4, TAG281 mfhi $1 bgtz $1, TAG281 multu $4, $1 TAG281: slti $2, $1, 13 mfhi $3 blez $3, TAG282 mult $2, $3 TAG282: sw $3, 0($3) blez $3, TAG283 mfhi $1 blez $1, TAG283 TAG283: lui $4, 9 subu $4, $1, $4 blez $1, TAG284 mtlo $4 TAG284: div $4, $4 nor $1, $4, $4 lui $4, 10 mflo $4 TAG285: multu $4, $4 bgtz $4, TAG286 lbu $3, 0($4) sll $1, $3, 3 TAG286: mflo $3 sll $0, $0, 0 bgtz $1, TAG287 mtlo $3 TAG287: mthi $3 lui $4, 1 beq $4, $4, TAG288 sll $0, $0, 0 TAG288: sll $0, $0, 0 lui $4, 5 mfhi $2 bgez $4, TAG289 TAG289: addiu $2, $2, 15 lb $2, 0($2) bgez $2, TAG290 add $1, $2, $2 TAG290: sw $1, 0($1) sra $1, $1, 2 bltz $1, TAG291 and $4, $1, $1 TAG291: bne $4, $4, TAG292 slti $3, $4, 13 blez $3, TAG292 mfhi $3 TAG292: divu $3, $3 sra $1, $3, 5 mthi $1 lhu $4, 0($1) TAG293: bne $4, $4, TAG294 sw $4, 0($4) bne $4, $4, TAG294 sw $4, 0($4) TAG294: mthi $4 multu $4, $4 mtlo $4 mfhi $2 TAG295: srl $4, $2, 3 lui $1, 13 blez $1, TAG296 andi $3, $1, 3 TAG296: beq $3, $3, TAG297 addu $2, $3, $3 mthi $3 mtlo $2 TAG297: lh $3, 0($2) mult $3, $2 multu $3, $2 beq $3, $2, TAG298 TAG298: lui $2, 8 lui $4, 15 mflo $1 srl $1, $1, 13 TAG299: lb $3, 0($1) lb $2, 0($3) bltz $2, TAG300 mthi $1 TAG300: or $3, $2, $2 bgez $2, TAG301 lbu $1, 0($3) bgez $3, TAG301 TAG301: or $3, $1, $1 sw $1, 0($3) bne $1, $1, TAG302 lui $4, 11 TAG302: sll $0, $0, 0 bne $4, $4, TAG303 mthi $4 sltiu $3, $4, 3 TAG303: mfhi $2 mflo $2 sh $2, 0($3) sltiu $3, $3, 15 TAG304: lui $2, 1 mfhi $2 mtlo $3 xor $4, $2, $2 TAG305: srlv $4, $4, $4 multu $4, $4 andi $4, $4, 15 mtlo $4 TAG306: lhu $3, 0($4) bltz $4, TAG307 lbu $4, 0($4) add $4, $3, $3 TAG307: sb $4, 0($4) sw $4, 0($4) lbu $2, 0($4) srav $4, $4, $4 TAG308: mflo $3 lw $1, 0($4) andi $1, $4, 5 bne $3, $1, TAG309 TAG309: multu $1, $1 multu $1, $1 andi $3, $1, 5 lbu $3, 0($3) TAG310: bltz $3, TAG311 mthi $3 slt $2, $3, $3 lui $3, 7 TAG311: divu $3, $3 div $3, $3 mtlo $3 sll $0, $0, 0 TAG312: sll $0, $0, 0 lui $3, 2 mtlo $3 addi $2, $1, 3 TAG313: addiu $3, $2, 14 sb $3, 0($2) addiu $1, $2, 10 div $1, $2 TAG314: bgtz $1, TAG315 mfhi $3 blez $3, TAG315 mthi $3 TAG315: mtlo $3 lui $4, 10 bgez $4, TAG316 mfhi $2 TAG316: subu $2, $2, $2 sw $2, 0($2) sw $2, 0($2) mthi $2 TAG317: mthi $2 mflo $4 mflo $2 sll $2, $4, 8 TAG318: beq $2, $2, TAG319 lw $4, -256($2) multu $4, $2 sll $1, $4, 13 TAG319: lui $3, 9 lb $4, 0($1) lui $4, 15 and $2, $3, $3 TAG320: lui $1, 11 sll $0, $0, 0 sltu $1, $1, $2 sltiu $4, $1, 13 TAG321: ori $3, $4, 4 sltu $2, $4, $3 sb $2, 0($2) bne $2, $4, TAG322 TAG322: sb $2, 0($2) sra $1, $2, 14 mtlo $2 sub $3, $2, $1 TAG323: lb $3, 0($3) bne $3, $3, TAG324 mthi $3 blez $3, TAG324 TAG324: mflo $1 mult $3, $1 mfhi $3 mthi $1 TAG325: and $2, $3, $3 mult $3, $3 mtlo $3 multu $2, $3 TAG326: mflo $3 lw $2, 0($2) bgtz $3, TAG327 sh $3, 0($3) TAG327: lui $1, 11 sll $0, $0, 0 and $4, $3, $3 sltiu $3, $3, 10 TAG328: mflo $2 mult $2, $2 divu $2, $3 mtlo $3 TAG329: srl $2, $2, 9 lui $3, 3 andi $2, $2, 1 blez $2, TAG330 TAG330: add $4, $2, $2 sh $4, 0($4) lb $4, 0($2) mult $2, $4 TAG331: sllv $2, $4, $4 blez $4, TAG332 sw $2, 0($4) sw $2, 0($4) TAG332: sllv $2, $2, $2 mult $2, $2 lui $2, 0 mult $2, $2 TAG333: srl $3, $2, 3 lui $1, 6 sll $0, $0, 0 sb $1, 0($2) TAG334: bgtz $1, TAG335 sll $0, $0, 0 bgtz $3, TAG335 mflo $1 TAG335: mflo $4 mult $1, $4 bgtz $1, TAG336 mthi $4 TAG336: bne $4, $4, TAG337 mtlo $4 or $2, $4, $4 lui $1, 9 TAG337: bne $1, $1, TAG338 xor $4, $1, $1 sll $0, $0, 0 bgez $4, TAG338 TAG338: multu $4, $4 mult $4, $4 nor $4, $4, $4 multu $4, $4 TAG339: sllv $3, $4, $4 subu $1, $4, $3 sll $0, $0, 0 mthi $4 TAG340: bne $3, $3, TAG341 lui $4, 11 sra $4, $4, 0 sll $0, $0, 0 TAG341: sll $0, $0, 0 mthi $1 sll $1, $4, 5 sll $0, $0, 0 TAG342: bne $3, $3, TAG343 sll $0, $0, 0 mflo $4 mfhi $3 TAG343: mflo $2 xori $1, $3, 0 mthi $2 mult $2, $2 TAG344: mfhi $1 bgez $1, TAG345 mfhi $4 bltz $4, TAG345 TAG345: sb $4, 0($4) bgtz $4, TAG346 slt $1, $4, $4 mtlo $4 TAG346: lui $4, 4 sh $1, 0($1) lui $2, 14 andi $2, $1, 4 TAG347: lui $4, 7 sll $0, $0, 0 beq $4, $4, TAG348 mult $2, $4 TAG348: beq $4, $4, TAG349 sra $4, $4, 5 blez $4, TAG349 lui $3, 6 TAG349: xori $4, $3, 2 sll $0, $0, 0 mtlo $3 addiu $3, $4, 10 TAG350: divu $3, $3 sltiu $4, $3, 6 mult $4, $4 mtlo $3 TAG351: sh $4, 0($4) lui $4, 6 bgez $4, TAG352 lui $4, 11 TAG352: mtlo $4 div $4, $4 sll $0, $0, 0 addu $1, $2, $2 TAG353: mthi $1 sh $1, 0($1) mflo $2 lui $1, 3 TAG354: beq $1, $1, TAG355 sll $1, $1, 15 sub $2, $1, $1 divu $1, $1 TAG355: mthi $2 andi $2, $2, 6 lh $2, 0($2) addiu $4, $2, 6 TAG356: sh $4, 0($4) mthi $4 lb $4, 0($4) lui $2, 15 TAG357: sll $0, $0, 0 blez $3, TAG358 sll $0, $0, 0 mfhi $4 TAG358: addiu $1, $4, 13 lb $4, 0($4) mflo $2 srl $3, $2, 0 TAG359: blez $3, TAG360 addiu $3, $3, 13 mflo $3 bne $3, $3, TAG360 TAG360: sb $3, 0($3) beq $3, $3, TAG361 slti $1, $3, 15 mthi $1 TAG361: beq $1, $1, TAG362 mtlo $1 sw $1, 0($1) blez $1, TAG362 TAG362: div $1, $1 sll $3, $1, 4 mtlo $1 blez $3, TAG363 TAG363: mtlo $3 mtlo $3 lui $2, 0 lb $3, 0($2) TAG364: blez $3, TAG365 slti $2, $3, 5 srav $4, $3, $3 multu $2, $4 TAG365: sra $3, $4, 7 mult $3, $3 and $1, $4, $4 or $1, $1, $3 TAG366: sb $1, 0($1) sb $1, 0($1) beq $1, $1, TAG367 srav $1, $1, $1 TAG367: mult $1, $1 beq $1, $1, TAG368 lw $3, 0($1) lbu $4, 0($1) TAG368: or $4, $4, $4 addiu $1, $4, 9 beq $4, $4, TAG369 lhu $2, 0($4) TAG369: blez $2, TAG370 sb $2, 0($2) mthi $2 multu $2, $2 TAG370: subu $2, $2, $2 lhu $4, 0($2) sltu $1, $2, $2 sh $1, 0($2) TAG371: mthi $1 bgtz $1, TAG372 sb $1, 0($1) mtlo $1 TAG372: lui $2, 12 multu $1, $1 lui $4, 4 beq $2, $1, TAG373 TAG373: lui $1, 15 sllv $3, $4, $4 blez $3, TAG374 sll $0, $0, 0 TAG374: mthi $4 mthi $4 sltiu $4, $4, 2 sh $4, 0($4) TAG375: ori $2, $4, 7 lbu $2, 0($2) bne $4, $2, TAG376 mflo $4 TAG376: addiu $1, $4, 6 bne $1, $1, TAG377 lbu $2, 0($1) mult $4, $4 TAG377: sh $2, 0($2) mtlo $2 lui $4, 8 mflo $1 TAG378: lui $2, 9 div $2, $2 mflo $3 addiu $3, $3, 10 TAG379: mfhi $3 slti $4, $3, 1 ori $4, $4, 5 and $4, $4, $4 TAG380: multu $4, $4 sra $1, $4, 15 or $3, $4, $4 beq $4, $1, TAG381 TAG381: sltiu $1, $3, 0 bne $1, $3, TAG382 mtlo $1 lhu $4, 0($3) TAG382: sb $4, 0($4) sllv $1, $4, $4 div $4, $1 lbu $2, 0($4) TAG383: lui $4, 11 lb $3, 0($2) sll $0, $0, 0 sb $2, 0($3) TAG384: mtlo $1 bgtz $1, TAG385 andi $3, $1, 5 sra $1, $3, 9 TAG385: sll $0, $0, 0 blez $1, TAG386 sw $1, -160($1) sb $3, 0($3) TAG386: lh $4, 0($3) lb $4, 0($4) bgez $4, TAG387 mult $4, $4 TAG387: srl $1, $4, 3 sh $4, 0($4) mtlo $1 bgtz $4, TAG388 TAG388: mthi $1 lbu $3, 0($1) mtlo $3 sra $1, $3, 4 TAG389: blez $1, TAG390 lw $1, 0($1) ori $3, $1, 11 lhu $1, 0($1) TAG390: lb $2, 0($1) lui $1, 10 addu $2, $1, $1 ori $1, $1, 9 TAG391: bgez $1, TAG392 mflo $1 divu $1, $1 sltu $1, $1, $1 TAG392: sllv $3, $1, $1 ori $1, $3, 13 addiu $3, $1, 6 multu $3, $3 TAG393: bltz $3, TAG394 mtlo $3 ori $2, $3, 0 sb $2, 0($3) TAG394: mthi $2 mult $2, $2 beq $2, $2, TAG395 lbu $1, 0($2) TAG395: mthi $1 sb $1, 0($1) sllv $4, $1, $1 sll $0, $0, 0 TAG396: sll $0, $0, 0 multu $4, $2 multu $4, $4 bne $2, $4, TAG397 TAG397: sb $2, 0($2) mflo $3 nor $4, $3, $2 mflo $3 TAG398: bgtz $3, TAG399 multu $3, $3 lh $1, 0($3) andi $2, $1, 8 TAG399: bgez $2, TAG400 addi $2, $2, 7 sb $2, 0($2) mthi $2 TAG400: lbu $1, 0($2) addu $1, $1, $1 multu $1, $1 beq $2, $2, TAG401 TAG401: mflo $3 mthi $3 bltz $1, TAG402 sll $4, $3, 9 TAG402: sra $4, $4, 2 sb $4, 0($4) sw $4, 0($4) bgez $4, TAG403 TAG403: mfhi $3 lui $1, 12 bne $1, $3, TAG404 srl $4, $4, 5 TAG404: lui $4, 9 sll $1, $4, 12 xori $1, $1, 9 mtlo $1 TAG405: bgtz $1, TAG406 xori $2, $1, 13 blez $2, TAG406 sll $0, $0, 0 TAG406: beq $2, $2, TAG407 mfhi $2 sb $2, 0($2) or $3, $2, $2 TAG407: beq $3, $3, TAG408 srlv $3, $3, $3 mult $3, $3 sb $3, 0($3) TAG408: mult $3, $3 mtlo $3 sh $3, 0($3) lw $2, 0($3) TAG409: multu $2, $2 mfhi $4 mtlo $4 sllv $1, $4, $2 TAG410: lui $3, 1 bgez $3, TAG411 slti $4, $1, 2 bgtz $4, TAG411 TAG411: lui $4, 7 mflo $4 subu $1, $4, $4 mflo $2 TAG412: lb $2, 0($2) blez $2, TAG413 sub $3, $2, $2 bne $3, $3, TAG413 TAG413: lhu $2, 0($3) mult $3, $3 bgtz $2, TAG414 sw $2, 0($3) TAG414: sh $2, 0($2) mflo $2 mtlo $2 bne $2, $2, TAG415 TAG415: mfhi $1 mtlo $1 beq $1, $2, TAG416 mflo $2 TAG416: or $2, $2, $2 lui $4, 7 lw $3, 0($2) addu $3, $4, $2 TAG417: div $3, $3 sll $0, $0, 0 lui $4, 10 lbu $4, 0($1) TAG418: xor $3, $4, $4 bltz $4, TAG419 lb $1, 0($4) mult $3, $4 TAG419: sra $4, $1, 8 lb $2, 0($1) mult $4, $2 bgez $1, TAG420 TAG420: mtlo $2 blez $2, TAG421 mfhi $4 ori $4, $2, 12 TAG421: mflo $1 bltz $1, TAG422 sra $4, $1, 10 mult $1, $1 TAG422: lui $3, 10 lui $4, 15 bgtz $4, TAG423 mthi $4 TAG423: beq $4, $4, TAG424 sll $0, $0, 0 lbu $3, 0($4) multu $2, $3 TAG424: addiu $1, $3, 6 sra $1, $1, 2 multu $1, $3 addu $1, $1, $1 TAG425: bne $1, $1, TAG426 mfhi $2 slti $3, $2, 5 lhu $4, 0($3) TAG426: subu $4, $4, $4 lw $1, 0($4) addiu $1, $1, 6 div $4, $1 TAG427: beq $1, $1, TAG428 div $1, $1 mflo $3 beq $1, $3, TAG428 TAG428: ori $2, $3, 8 xori $3, $3, 13 sll $4, $2, 15 bgez $4, TAG429 TAG429: mtlo $4 mthi $4 srl $2, $4, 13 ori $4, $2, 11 TAG430: lbu $4, 0($4) multu $4, $4 sub $2, $4, $4 sw $4, 0($4) TAG431: bgez $2, TAG432 mthi $2 lui $4, 15 blez $4, TAG432 TAG432: ori $4, $4, 9 mflo $1 lw $2, 0($1) mfhi $3 TAG433: sh $3, 0($3) sh $3, 0($3) mfhi $2 lui $3, 0 TAG434: lb $3, 0($3) beq $3, $3, TAG435 sh $3, 0($3) sll $2, $3, 4 TAG435: lui $4, 5 bltz $4, TAG436 multu $2, $2 srav $2, $2, $2 TAG436: mthi $2 lb $4, 0($2) lui $2, 3 sltiu $3, $2, 3 TAG437: mflo $2 bne $3, $2, TAG438 lui $3, 4 bltz $3, TAG438 TAG438: mtlo $3 lui $1, 9 mflo $2 mthi $1 TAG439: sltiu $1, $2, 12 andi $3, $2, 14 lbu $2, 0($1) mflo $4 TAG440: lui $2, 6 sll $0, $0, 0 blez $4, TAG441 mthi $2 TAG441: beq $2, $2, TAG442 sll $0, $0, 0 sra $1, $2, 11 beq $2, $1, TAG442 TAG442: xori $3, $1, 14 beq $1, $1, TAG443 mtlo $3 sw $3, 0($1) TAG443: lb $2, 0($3) blez $3, TAG444 lui $4, 5 lh $1, 0($3) TAG444: multu $1, $1 mflo $4 lui $4, 3 mtlo $4 TAG445: addiu $4, $4, 0 sll $0, $0, 0 divu $1, $4 sh $4, 0($1) TAG446: mult $1, $1 mflo $4 beq $1, $4, TAG447 mfhi $2 TAG447: beq $2, $2, TAG448 mtlo $2 ori $1, $2, 7 lui $1, 4 TAG448: mult $1, $1 lb $4, 0($1) mtlo $1 multu $4, $1 TAG449: sb $4, 0($4) blez $4, TAG450 nor $3, $4, $4 beq $3, $3, TAG450 TAG450: mthi $3 mfhi $3 bne $3, $3, TAG451 srlv $4, $3, $3 TAG451: srlv $2, $4, $4 sllv $3, $2, $2 xor $3, $2, $2 beq $4, $3, TAG452 TAG452: mfhi $3 divu $3, $3 mtlo $3 lui $1, 9 TAG453: ori $2, $1, 14 lui $1, 2 multu $2, $1 sll $0, $0, 0 TAG454: slti $4, $4, 3 addiu $2, $4, 5 lhu $1, 0($2) mflo $3 TAG455: sll $0, $0, 0 mfhi $4 sll $0, $0, 0 mtlo $1 TAG456: mthi $4 mthi $4 divu $4, $4 div $4, $4 TAG457: sh $4, 0($4) sra $1, $4, 4 mflo $3 sh $4, 0($4) TAG458: mflo $1 beq $3, $1, TAG459 mult $3, $1 ori $3, $1, 5 TAG459: bgtz $3, TAG460 sb $3, 0($3) lhu $4, 0($3) bne $4, $3, TAG460 TAG460: mfhi $1 mult $1, $1 lui $3, 6 lw $3, 0($1) TAG461: subu $3, $3, $3 sw $3, 0($3) lui $3, 10 blez $3, TAG462 TAG462: lui $4, 2 bne $4, $3, TAG463 lui $3, 3 lui $4, 0 TAG463: and $2, $4, $4 mthi $4 sll $0, $0, 0 ori $4, $4, 8 TAG464: mfhi $2 lui $1, 14 mult $4, $2 bgtz $2, TAG465 TAG465: lui $3, 11 multu $3, $1 mfhi $2 sll $0, $0, 0 TAG466: mflo $3 multu $4, $3 sll $0, $0, 0 mflo $1 TAG467: mthi $1 lui $1, 10 sll $0, $0, 0 mthi $1 TAG468: mult $1, $1 beq $1, $1, TAG469 lui $3, 4 lb $3, 0($3) TAG469: sll $0, $0, 0 beq $4, $4, TAG470 mtlo $3 lui $4, 0 TAG470: sll $0, $0, 0 mthi $4 mthi $3 srlv $3, $3, $4 TAG471: lui $4, 13 bltz $4, TAG472 mfhi $2 bgtz $3, TAG472 TAG472: sll $0, $0, 0 bne $1, $2, TAG473 sll $0, $0, 0 bltz $1, TAG473 TAG473: lui $4, 8 addiu $2, $1, 9 lui $3, 9 mfhi $3 TAG474: srl $4, $3, 3 lui $2, 11 div $2, $4 lui $2, 11 TAG475: mfhi $3 bltz $2, TAG476 mthi $3 lui $1, 15 TAG476: andi $2, $1, 10 sll $0, $0, 0 div $1, $1 mult $2, $2 TAG477: sb $2, 0($2) sh $2, 0($2) addi $2, $2, 1 bltz $2, TAG478 TAG478: lb $2, 0($2) bne $2, $2, TAG479 sltu $2, $2, $2 bltz $2, TAG479 TAG479: srl $1, $2, 14 lh $2, 0($1) blez $1, TAG480 multu $1, $2 TAG480: lui $1, 6 mthi $1 lui $1, 9 beq $1, $2, TAG481 TAG481: addu $4, $1, $1 mflo $1 mthi $1 mflo $3 TAG482: srav $3, $3, $3 beq $3, $3, TAG483 xori $1, $3, 6 lui $3, 3 TAG483: lui $3, 9 bgtz $3, TAG484 mflo $4 div $4, $3 TAG484: multu $4, $4 mtlo $4 sb $4, 0($4) mtlo $4 TAG485: bltz $4, TAG486 mfhi $2 lui $1, 15 slt $4, $2, $1 TAG486: slt $3, $4, $4 addiu $4, $4, 14 mthi $4 mult $3, $3 TAG487: subu $3, $4, $4 beq $3, $4, TAG488 lh $4, 0($3) mthi $4 TAG488: sub $4, $4, $4 lui $1, 11 sll $0, $0, 0 mthi $4 TAG489: lb $1, 0($4) mthi $4 bgtz $4, TAG490 lui $3, 6 TAG490: multu $3, $3 mflo $3 multu $3, $3 lw $2, 0($3) TAG491: multu $2, $2 lui $3, 1 mfhi $1 multu $1, $2 TAG492: lui $2, 12 lh $1, 0($1) sll $0, $0, 0 bne $4, $1, TAG493 TAG493: mthi $4 lhu $1, 0($4) mthi $1 mtlo $1 TAG494: subu $2, $1, $1 beq $1, $1, TAG495 mthi $1 bgez $2, TAG495 TAG495: addi $2, $2, 11 slt $2, $2, $2 lh $1, 0($2) lui $4, 9 TAG496: multu $4, $4 mthi $4 divu $4, $4 bltz $4, TAG497 TAG497: ori $2, $4, 6 xori $1, $4, 12 mtlo $4 bltz $4, TAG498 TAG498: sll $0, $0, 0 beq $1, $1, TAG499 sll $0, $0, 0 multu $1, $1 TAG499: bne $1, $1, TAG500 divu $1, $1 sll $0, $0, 0 nor $1, $1, $1 TAG500: mflo $4 addu $4, $1, $4 slti $3, $1, 11 sll $0, $0, 0 TAG501: bltz $4, TAG502 sll $0, $0, 0 xor $2, $4, $4 mult $4, $4 TAG502: mult $2, $2 bne $2, $2, TAG503 andi $1, $2, 7 sll $0, $0, 0 TAG503: beq $2, $2, TAG504 lui $1, 9 sw $2, 0($1) sh $2, 0($2) TAG504: bltz $1, TAG505 mflo $3 mthi $3 addiu $3, $3, 5 TAG505: mtlo $3 mfhi $1 xor $2, $1, $1 mult $1, $3 TAG506: beq $2, $2, TAG507 mfhi $1 xori $3, $1, 4 lui $3, 15 TAG507: and $3, $3, $3 sll $0, $0, 0 sll $0, $0, 0 sra $4, $3, 6 TAG508: lui $4, 8 sll $0, $0, 0 beq $4, $4, TAG509 mtlo $4 TAG509: addiu $4, $4, 14 beq $4, $4, TAG510 mtlo $4 beq $4, $4, TAG510 TAG510: sll $0, $0, 0 ori $1, $4, 1 beq $1, $4, TAG511 div $1, $1 TAG511: lui $1, 10 lui $3, 15 sll $0, $0, 0 blez $1, TAG512 TAG512: divu $3, $3 sll $0, $0, 0 lui $4, 7 bltz $4, TAG513 TAG513: sll $0, $0, 0 sltu $3, $4, $4 xor $1, $4, $3 and $1, $3, $3 TAG514: sltiu $1, $1, 8 lb $1, 0($1) mflo $4 lui $4, 9 TAG515: div $4, $4 mtlo $4 sll $0, $0, 0 sll $0, $0, 0 TAG516: lbu $3, 0($3) bgez $3, TAG517 mfhi $4 div $3, $4 TAG517: mfhi $4 sll $2, $4, 2 sltu $1, $4, $4 sh $4, 0($4) TAG518: bltz $1, TAG519 or $4, $1, $1 mfhi $4 sw $1, 0($4) TAG519: mtlo $4 bgtz $4, TAG520 lbu $1, 0($4) mult $1, $4 TAG520: multu $1, $1 multu $1, $1 addi $4, $1, 15 bne $4, $4, TAG521 TAG521: mtlo $4 lui $4, 4 div $4, $4 sltu $4, $4, $4 TAG522: mthi $4 lh $2, 0($4) lhu $4, 0($4) multu $4, $2 TAG523: blez $4, TAG524 xori $2, $4, 5 lw $2, 0($4) lw $4, 0($2) TAG524: bltz $4, TAG525 sh $4, 0($4) slti $2, $4, 10 div $4, $2 TAG525: bgtz $2, TAG526 lui $4, 8 sb $4, 0($4) sra $4, $2, 0 TAG526: lui $1, 8 sll $0, $0, 0 lui $1, 1 div $1, $4 TAG527: beq $1, $1, TAG528 mflo $4 sh $1, 0($1) lui $3, 7 TAG528: mtlo $3 and $2, $3, $3 mult $3, $3 lhu $1, 0($3) TAG529: multu $1, $1 mflo $1 bgtz $1, TAG530 mfhi $3 TAG530: sltiu $4, $3, 9 multu $3, $4 sb $4, 0($3) bltz $3, TAG531 TAG531: mult $4, $4 lb $4, 0($4) lbu $4, 0($4) lbu $4, 0($4) TAG532: mfhi $1 lui $4, 3 sll $0, $0, 0 srav $1, $1, $3 TAG533: bne $1, $1, TAG534 sb $1, 0($1) multu $1, $1 bgez $1, TAG534 TAG534: mflo $3 mtlo $3 bgtz $1, TAG535 multu $1, $3 TAG535: mult $3, $3 sh $3, 0($3) bne $3, $3, TAG536 addiu $1, $3, 14 TAG536: slti $2, $1, 15 sb $1, 0($2) mfhi $3 lui $1, 13 TAG537: andi $2, $1, 8 sb $1, 0($2) lui $2, 1 sra $4, $2, 3 TAG538: subu $2, $4, $4 sra $3, $2, 10 mfhi $1 or $2, $2, $1 TAG539: xori $1, $2, 10 sh $1, 0($1) nor $1, $1, $2 beq $2, $1, TAG540 TAG540: divu $1, $1 lh $4, 11($1) lui $1, 14 beq $4, $4, TAG541 TAG541: lui $2, 12 mtlo $1 sll $0, $0, 0 mthi $1 TAG542: bgez $2, TAG543 sllv $1, $2, $2 lui $2, 14 bltz $2, TAG543 TAG543: addu $4, $2, $2 mflo $2 blez $2, TAG544 sll $0, $0, 0 TAG544: mtlo $4 mult $4, $4 mflo $4 mthi $4 TAG545: sw $4, 0($4) sh $4, 0($4) beq $4, $4, TAG546 mthi $4 TAG546: mult $4, $4 mthi $4 slt $4, $4, $4 slti $1, $4, 2 TAG547: divu $1, $1 or $2, $1, $1 beq $2, $1, TAG548 lui $3, 15 TAG548: mult $3, $3 div $3, $3 divu $3, $3 mflo $3 TAG549: mthi $3 mflo $2 and $1, $3, $2 mflo $4 TAG550: sb $4, 0($4) mthi $4 mult $4, $4 subu $1, $4, $4 TAG551: sw $1, 0($1) nor $4, $1, $1 mthi $1 lbu $4, 0($1) TAG552: sh $4, 0($4) mthi $4 mfhi $1 beq $4, $4, TAG553 TAG553: mfhi $3 sra $4, $1, 15 mflo $2 sra $1, $2, 1 TAG554: mfhi $2 slt $4, $2, $2 sh $4, 0($1) bgtz $1, TAG555 TAG555: lw $3, 0($4) mflo $4 mfhi $2 mtlo $4 TAG556: mfhi $3 bgtz $2, TAG557 mfhi $1 blez $2, TAG557 TAG557: sltiu $2, $1, 13 srl $3, $1, 9 subu $3, $3, $2 mfhi $3 TAG558: nor $1, $3, $3 bne $1, $3, TAG559 lbu $3, 0($3) mfhi $1 TAG559: ori $1, $1, 14 addiu $1, $1, 0 bne $1, $1, TAG560 sb $1, 1($1) TAG560: divu $1, $1 lui $4, 1 sh $4, 1($1) bne $4, $1, TAG561 TAG561: mflo $4 div $4, $4 lui $4, 3 mult $4, $4 TAG562: divu $4, $4 sll $0, $0, 0 addiu $3, $4, 2 lui $2, 7 TAG563: blez $2, TAG564 multu $2, $2 mthi $2 andi $4, $2, 14 TAG564: blez $4, TAG565 lb $3, 0($4) srlv $4, $3, $3 mfhi $1 TAG565: div $1, $1 lui $4, 14 bltz $4, TAG566 addiu $4, $1, 11 TAG566: sb $4, 0($4) lb $4, 0($4) lhu $1, 0($4) bne $1, $1, TAG567 TAG567: lhu $2, 0($1) bltz $2, TAG568 sb $1, 0($1) sll $4, $2, 13 TAG568: lui $1, 8 mthi $4 addiu $3, $4, 13 sra $4, $3, 5 TAG569: lui $4, 10 slt $3, $4, $4 sb $4, 0($3) lui $2, 11 TAG570: mult $2, $2 sll $0, $0, 0 lui $2, 7 mtlo $2 TAG571: slti $2, $2, 4 bne $2, $2, TAG572 lui $4, 10 addiu $4, $4, 1 TAG572: beq $4, $4, TAG573 mthi $4 div $4, $4 bgez $4, TAG573 TAG573: lui $2, 2 sll $0, $0, 0 mtlo $4 sll $4, $2, 6 TAG574: or $4, $4, $4 sll $0, $0, 0 sll $0, $0, 0 lui $1, 14 TAG575: sll $0, $0, 0 sll $0, $0, 0 mfhi $1 sll $3, $2, 1 TAG576: blez $3, TAG577 srav $3, $3, $3 sll $0, $0, 0 sll $0, $0, 0 TAG577: bltz $2, TAG578 sll $0, $0, 0 bne $1, $1, TAG578 sltiu $4, $1, 7 TAG578: slt $2, $4, $4 addiu $4, $2, 13 lui $1, 13 multu $4, $1 TAG579: sll $0, $0, 0 lui $2, 5 mtlo $1 xor $2, $1, $1 TAG580: sra $1, $2, 1 sltiu $2, $2, 15 addiu $1, $2, 14 mflo $4 TAG581: sll $0, $0, 0 sll $0, $0, 0 addu $1, $4, $4 mthi $1 TAG582: mflo $1 bne $1, $1, TAG583 lui $4, 0 bgtz $4, TAG583 TAG583: lbu $4, 0($4) lui $3, 15 sll $0, $0, 0 lh $1, 0($4) TAG584: sra $4, $1, 2 add $2, $4, $1 srlv $2, $4, $2 mult $2, $4 TAG585: mfhi $2 bne $2, $2, TAG586 mflo $4 slti $2, $2, 13 TAG586: bne $2, $2, TAG587 mtlo $2 lbu $3, 0($2) lhu $1, 0($3) TAG587: sh $1, 0($1) sw $1, 0($1) beq $1, $1, TAG588 lui $4, 12 TAG588: sll $0, $0, 0 sltiu $4, $3, 14 lui $4, 0 subu $1, $3, $4 TAG589: sw $1, 0($1) sh $1, 0($1) mfhi $4 mflo $4 TAG590: mtlo $4 div $4, $4 lb $1, 0($4) multu $1, $1 TAG591: lui $2, 2 xor $1, $2, $1 lui $1, 6 bne $1, $1, TAG592 TAG592: addu $3, $1, $1 bne $3, $3, TAG593 mflo $1 and $2, $1, $1 TAG593: sltiu $2, $2, 9 lui $2, 5 sll $0, $0, 0 lui $1, 11 TAG594: lui $1, 5 mthi $1 mflo $2 sll $1, $2, 13 TAG595: sw $1, 0($1) bgtz $1, TAG596 addi $1, $1, 4 srlv $4, $1, $1 TAG596: lui $2, 1 sh $2, 0($4) mthi $2 xori $3, $4, 7 TAG597: and $2, $3, $3 sb $2, 0($2) bne $2, $2, TAG598 mfhi $3 TAG598: bgez $3, TAG599 and $1, $3, $3 lhu $1, 0($3) lui $2, 7 TAG599: subu $4, $2, $2 lbu $2, 0($2) lui $1, 9 div $2, $1 TAG600: sll $0, $0, 0 sll $0, $0, 0 sb $2, 0($2) lui $3, 6 TAG601: sll $0, $0, 0 mult $3, $3 divu $3, $3 addu $1, $3, $3 TAG602: mult $1, $1 beq $1, $1, TAG603 sll $0, $0, 0 sb $1, 0($1) TAG603: lui $3, 5 beq $1, $3, TAG604 addiu $2, $1, 0 mflo $1 TAG604: xor $2, $1, $1 lui $4, 3 sll $0, $0, 0 lui $1, 8 TAG605: sll $0, $0, 0 beq $1, $3, TAG606 addu $3, $1, $1 mflo $3 TAG606: mtlo $3 sw $3, 0($3) and $4, $3, $3 and $3, $3, $4 TAG607: lbu $4, 0($3) sh $3, 0($3) bltz $4, TAG608 lui $3, 7 TAG608: sll $0, $0, 0 div $3, $3 sll $0, $0, 0 bne $2, $3, TAG609 TAG609: lui $2, 4 andi $4, $2, 13 mtlo $2 sh $2, 0($4) TAG610: lui $2, 7 lb $1, 0($4) bne $2, $1, TAG611 mfhi $1 TAG611: lb $1, 0($1) bne $1, $1, TAG612 sh $1, 0($1) lh $3, 0($1) TAG612: mflo $2 mult $2, $2 bltz $2, TAG613 or $3, $2, $2 TAG613: multu $3, $3 slt $2, $3, $3 srav $4, $2, $2 addu $3, $3, $2 TAG614: lui $2, 14 divu $2, $3 sll $0, $0, 0 mfhi $2 TAG615: beq $2, $2, TAG616 mflo $1 mtlo $1 or $3, $2, $1 TAG616: bgtz $3, TAG617 mthi $3 sub $2, $3, $3 slti $4, $3, 3 TAG617: sw $4, 0($4) bgez $4, TAG618 multu $4, $4 lui $4, 14 TAG618: mthi $4 bne $4, $4, TAG619 lui $1, 6 divu $4, $1 TAG619: mflo $3 divu $3, $1 bne $1, $3, TAG620 addu $4, $1, $3 TAG620: slti $4, $4, 14 lui $4, 12 bne $4, $4, TAG621 sll $0, $0, 0 TAG621: sll $0, $0, 0 div $4, $4 lui $4, 7 sll $0, $0, 0 TAG622: sb $3, 0($3) beq $3, $3, TAG623 slti $2, $3, 6 bltz $2, TAG623 TAG623: lui $2, 14 sll $0, $0, 0 sll $1, $2, 8 and $1, $2, $2 TAG624: mult $1, $1 mult $1, $1 mflo $2 bltz $2, TAG625 TAG625: ori $4, $2, 7 mfhi $1 lui $1, 12 bne $4, $4, TAG626 TAG626: lui $4, 12 div $4, $1 lui $2, 10 sll $0, $0, 0 TAG627: slt $1, $2, $2 sll $0, $0, 0 sllv $2, $2, $2 mfhi $3 TAG628: mflo $1 mult $1, $3 divu $1, $1 lui $2, 6 TAG629: mtlo $2 mflo $2 ori $1, $2, 4 lui $4, 7 TAG630: bgtz $4, TAG631 sll $0, $0, 0 addi $1, $1, 11 lb $4, 0($1) TAG631: sll $0, $0, 0 multu $4, $4 mfhi $3 sltiu $3, $3, 11 TAG632: multu $3, $3 beq $3, $3, TAG633 srlv $3, $3, $3 mthi $3 TAG633: beq $3, $3, TAG634 add $3, $3, $3 mflo $4 mfhi $2 TAG634: sll $0, $0, 0 addu $2, $2, $1 lui $2, 7 bgtz $2, TAG635 TAG635: multu $2, $2 blez $2, TAG636 sll $0, $0, 0 srl $1, $2, 7 TAG636: xori $3, $1, 0 divu $3, $1 bgez $1, TAG637 mtlo $1 TAG637: mfhi $3 bgtz $3, TAG638 sll $1, $3, 14 lhu $3, 0($1) TAG638: lh $2, 0($3) sw $3, 0($2) bne $2, $3, TAG639 lh $4, 0($3) TAG639: sh $4, 0($4) bgez $4, TAG640 mthi $4 lbu $2, 0($4) TAG640: lui $4, 4 beq $2, $4, TAG641 multu $4, $2 ori $3, $2, 13 TAG641: bne $3, $3, TAG642 mtlo $3 lui $2, 11 div $3, $3 TAG642: beq $2, $2, TAG643 addiu $3, $2, 1 divu $2, $3 sllv $4, $2, $3 TAG643: bltz $4, TAG644 lui $1, 6 lui $4, 14 mtlo $4 TAG644: addiu $2, $4, 5 lui $3, 2 blez $3, TAG645 mfhi $2 TAG645: sh $2, 0($2) srav $3, $2, $2 srl $4, $3, 6 mflo $2 TAG646: bne $2, $2, TAG647 lui $1, 1 sll $0, $0, 0 multu $2, $1 TAG647: bne $4, $4, TAG648 ori $2, $4, 13 addiu $3, $2, 0 sb $2, 0($3) TAG648: mthi $3 srlv $4, $3, $3 lui $2, 0 lw $4, 0($4) TAG649: beq $4, $4, TAG650 mfhi $3 sltu $1, $4, $4 andi $2, $1, 13 TAG650: beq $2, $2, TAG651 sw $2, 0($2) beq $2, $2, TAG651 lui $3, 9 TAG651: lb $4, 0($3) lb $4, 0($3) lui $2, 8 sll $0, $0, 0 TAG652: subu $3, $2, $2 mthi $3 sll $0, $0, 0 or $3, $2, $3 TAG653: sll $0, $0, 0 divu $3, $3 sll $0, $0, 0 bne $3, $3, TAG654 TAG654: mthi $1 mflo $1 xor $2, $1, $1 sb $1, 0($1) TAG655: lbu $2, 0($2) mult $2, $2 lui $2, 2 bgtz $2, TAG656 TAG656: sltu $1, $2, $2 sll $4, $1, 4 mtlo $1 sll $0, $0, 0 TAG657: mfhi $3 lui $2, 11 lui $1, 0 mult $3, $3 TAG658: slti $4, $1, 7 mtlo $1 addi $2, $1, 8 beq $1, $2, TAG659 TAG659: slti $2, $2, 6 lbu $4, 0($2) blez $2, TAG660 subu $1, $2, $2 TAG660: mflo $4 mflo $4 sh $4, 0($4) sra $1, $1, 7 TAG661: slti $4, $1, 2 lui $2, 14 sll $4, $1, 1 mult $1, $4 TAG662: lui $3, 10 lui $1, 4 sll $0, $0, 0 lui $1, 9 TAG663: bne $1, $1, TAG664 lui $3, 0 bgtz $1, TAG664 addiu $1, $1, 8 TAG664: sll $0, $0, 0 divu $1, $1 sltu $3, $1, $1 bgez $1, TAG665 TAG665: lbu $2, 0($3) lui $4, 4 mflo $3 mfhi $1 TAG666: xori $4, $1, 10 bne $4, $1, TAG667 mthi $1 bltz $1, TAG667 TAG667: lbu $2, 0($4) beq $4, $4, TAG668 div $4, $2 sb $2, 0($4) TAG668: srlv $4, $2, $2 lbu $2, 0($2) multu $2, $4 mthi $2 TAG669: mtlo $2 sltiu $3, $2, 1 bgez $3, TAG670 lb $2, 0($2) TAG670: bgtz $2, TAG671 lui $4, 7 sb $4, 0($4) andi $2, $2, 4 TAG671: sb $2, 0($2) mtlo $2 mflo $4 bltz $2, TAG672 TAG672: addu $1, $4, $4 lh $2, 0($1) mult $1, $1 bne $4, $4, TAG673 TAG673: mtlo $2 addu $2, $2, $2 mtlo $2 div $2, $2 TAG674: xor $1, $2, $2 bgez $2, TAG675 lui $3, 9 mtlo $2 TAG675: addu $2, $3, $3 subu $1, $2, $3 lui $1, 9 bne $2, $1, TAG676 TAG676: srl $1, $1, 8 mtlo $1 srav $4, $1, $1 sb $1, 0($1) TAG677: beq $4, $4, TAG678 mtlo $4 beq $4, $4, TAG678 sll $3, $4, 13 TAG678: mflo $3 bltz $3, TAG679 lui $1, 13 mtlo $1 TAG679: sll $0, $0, 0 mult $2, $2 mtlo $1 ori $2, $1, 8 TAG680: sll $0, $0, 0 mthi $2 xor $4, $2, $2 sra $3, $2, 7 TAG681: sll $0, $0, 0 addu $4, $3, $3 sh $3, -13312($4) mtlo $4 TAG682: sb $4, -13312($4) div $4, $4 mflo $3 addu $1, $4, $3 TAG683: and $3, $1, $1 mthi $3 lui $2, 15 mthi $3 TAG684: srlv $3, $2, $2 sll $0, $0, 0 addu $2, $2, $2 beq $2, $2, TAG685 TAG685: sltu $4, $2, $2 lb $2, 0($4) lui $1, 10 mflo $2 TAG686: mflo $2 div $2, $2 sb $2, 0($2) divu $2, $2 TAG687: lbu $2, 0($2) bltz $2, TAG688 lui $3, 8 divu $3, $2 TAG688: lui $4, 7 beq $4, $3, TAG689 sll $0, $0, 0 lui $4, 11 TAG689: slt $3, $4, $4 lui $4, 12 sll $0, $0, 0 mtlo $4 TAG690: mtlo $1 beq $1, $1, TAG691 subu $2, $1, $1 blez $1, TAG691 TAG691: sltu $1, $2, $2 srav $1, $2, $1 multu $2, $1 beq $1, $2, TAG692 TAG692: or $1, $1, $1 bltz $1, TAG693 sw $1, 0($1) bltz $1, TAG693 TAG693: multu $1, $1 add $1, $1, $1 bne $1, $1, TAG694 mthi $1 TAG694: sh $1, 0($1) lb $1, 0($1) mflo $1 beq $1, $1, TAG695 TAG695: mult $1, $1 beq $1, $1, TAG696 multu $1, $1 lui $4, 7 TAG696: divu $4, $4 bgez $4, TAG697 srav $2, $4, $4 lui $2, 11 TAG697: sll $4, $2, 14 mfhi $4 ori $1, $4, 2 lui $3, 15 TAG698: beq $3, $3, TAG699 sll $0, $0, 0 lui $3, 2 sb $3, 0($3) TAG699: subu $3, $3, $3 lui $2, 0 mtlo $3 bne $2, $3, TAG700 TAG700: sh $2, 0($2) lhu $3, 0($2) sh $3, 0($2) lui $2, 2 TAG701: blez $2, TAG702 slt $1, $2, $2 bne $1, $2, TAG702 lui $4, 5 TAG702: blez $4, TAG703 addiu $3, $4, 10 mtlo $3 srlv $2, $3, $4 TAG703: mthi $2 sll $0, $0, 0 srl $3, $4, 9 mfhi $4 TAG704: mfhi $4 mtlo $4 mtlo $4 sll $3, $4, 0 TAG705: bne $3, $3, TAG706 mfhi $4 bltz $3, TAG706 subu $1, $4, $3 TAG706: multu $1, $1 blez $1, TAG707 sh $1, 0($1) sllv $3, $1, $1 TAG707: multu $3, $3 div $3, $3 lui $4, 10 multu $3, $4 TAG708: beq $4, $4, TAG709 lui $2, 5 lui $2, 15 beq $2, $4, TAG709 TAG709: sllv $2, $2, $2 lui $1, 9 sll $0, $0, 0 bgez $2, TAG710 TAG710: sll $0, $0, 0 bgez $4, TAG711 mthi $4 slti $4, $4, 14 TAG711: sll $0, $0, 0 sll $0, $0, 0 sll $0, $0, 0 subu $1, $4, $4 TAG712: mflo $2 multu $2, $2 blez $1, TAG713 mflo $3 TAG713: mult $3, $3 lbu $3, 0($3) mult $3, $3 beq $3, $3, TAG714 TAG714: lui $3, 0 add $1, $3, $3 beq $3, $3, TAG715 lui $1, 3 TAG715: mtlo $1 sll $4, $1, 14 xor $1, $4, $1 bne $4, $4, TAG716 TAG716: sll $0, $0, 0 mfhi $2 multu $1, $2 multu $2, $2 TAG717: multu $2, $2 lb $4, 0($2) lhu $4, 0($4) mult $2, $4 TAG718: lh $4, 0($4) or $4, $4, $4 lhu $3, 0($4) mtlo $4 TAG719: ori $3, $3, 6 lui $3, 6 addu $1, $3, $3 bne $3, $3, TAG720 TAG720: sll $0, $0, 0 mtlo $1 lui $2, 12 divu $2, $2 TAG721: sll $0, $0, 0 divu $2, $2 ori $1, $2, 3 sltiu $1, $1, 13 TAG722: lw $1, 0($1) lhu $1, 0($1) addi $3, $1, 4 lbu $2, 0($1) TAG723: bltz $2, TAG724 multu $2, $2 mthi $2 mthi $2 TAG724: bltz $2, TAG725 lui $4, 7 mflo $3 mtlo $3 TAG725: addiu $1, $3, 9 mfhi $1 mfhi $2 mult $2, $1 TAG726: lui $1, 7 bltz $1, TAG727 addiu $2, $1, 7 multu $2, $1 TAG727: bgtz $2, TAG728 sll $3, $2, 8 bltz $3, TAG728 xori $4, $3, 3 TAG728: slti $4, $4, 6 xor $2, $4, $4 mflo $3 bltz $4, TAG729 TAG729: srl $3, $3, 15 div $3, $3 lbu $3, 0($3) mflo $3 TAG730: bltz $3, TAG731 mfhi $1 lui $1, 2 bgtz $1, TAG731 TAG731: addu $2, $1, $1 bne $2, $1, TAG732 xor $2, $1, $2 lui $3, 8 TAG732: lui $2, 11 div $3, $3 sll $0, $0, 0 lui $2, 14 TAG733: subu $2, $2, $2 bgtz $2, TAG734 sh $2, 0($2) multu $2, $2 TAG734: mfhi $3 sh $2, 0($2) beq $2, $2, TAG735 lui $2, 15 TAG735: bne $2, $2, TAG736 addiu $4, $2, 3 bgtz $4, TAG736 mult $4, $4 TAG736: lui $4, 3 lui $2, 10 mflo $1 bgez $4, TAG737 TAG737: srav $3, $1, $1 bgez $1, TAG738 addu $1, $3, $3 mult $1, $1 TAG738: sw $1, -23040($1) bne $1, $1, TAG739 lui $4, 4 lbu $4, -23040($1) TAG739: mfhi $2 lh $3, -225($2) bgez $3, TAG740 xori $1, $4, 14 TAG740: addiu $3, $1, 4 lhu $3, 0($1) lui $2, 14 sll $0, $0, 0 TAG741: div $2, $2 sll $0, $0, 0 bne $2, $2, TAG742 mult $2, $2 TAG742: sll $0, $0, 0 sll $0, $0, 0 mult $2, $3 div $3, $2 TAG743: multu $3, $3 multu $3, $3 lui $3, 9 sll $0, $0, 0 TAG744: mthi $4 beq $4, $4, TAG745 mtlo $4 sw $4, 0($4) TAG745: lui $1, 9 slti $2, $1, 7 lui $3, 1 sll $0, $0, 0 TAG746: mthi $3 multu $3, $3 sll $0, $0, 0 subu $2, $1, $3 TAG747: blez $2, TAG748 sll $0, $0, 0 lui $4, 14 bltz $4, TAG748 TAG748: sll $0, $0, 0 sll $0, $0, 0 addiu $2, $3, 14 sll $0, $0, 0 TAG749: mflo $4 sll $0, $0, 0 mtlo $4 bgez $3, TAG750 TAG750: nop nop test_end: beq $0, $0, test_end nop
11.935901
21
0.542421
c7e91dd211cfea2265d5eae8186b700ea1db6c63
97
asm
Assembly
sw/552tests/inst_tests/ror_2.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
1
2022-02-15T16:03:25.000Z
2022-02-15T16:03:25.000Z
sw/552tests/inst_tests/ror_2.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
sw/552tests/inst_tests/ror_2.asm
JPShen-UWM/ThreadKraken
849c510531f28e36d3469535737b2120bd774935
[ "MIT" ]
null
null
null
// Test provided by Karu //ror with lbi r1, 240 lbi r2, 14 ror r3, r1, r2 halt // added by Karu
13.857143
25
0.659794
5898ef23147fff52a2bcc9238fb4865e876c1615
5,634
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1951.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1951.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1951.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x5786, %rbx nop and %rax, %rax movb (%rbx), %r13b nop nop nop nop inc %r13 lea addresses_UC_ht+0x1433a, %r8 nop nop nop inc %rdx movups (%r8), %xmm1 vpextrq $1, %xmm1, %r10 nop nop nop nop xor %r10, %r10 lea addresses_A_ht+0xa236, %r10 clflush (%r10) nop nop nop nop and $52323, %r13 mov (%r10), %rdx nop cmp $52283, %rdx lea addresses_A_ht+0x8076, %rdx nop nop nop nop nop sub %r15, %r15 movups (%rdx), %xmm6 vpextrq $0, %xmm6, %rbx nop nop nop and $27213, %r13 lea addresses_normal_ht+0x1124e, %r8 dec %r13 movb (%r8), %dl nop nop nop nop nop cmp %rax, %rax lea addresses_UC_ht+0xcd7c, %rsi lea addresses_WT_ht+0xc196, %rdi nop nop dec %r13 mov $115, %rcx rep movsl nop nop nop cmp $5339, %rcx lea addresses_D_ht+0xdafe, %rsi lea addresses_UC_ht+0xccb5, %rdi nop inc %r8 mov $103, %rcx rep movsl nop nop and $2556, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r9 push %rdi push %rsi // Faulty Load lea addresses_UC+0x1da36, %r9 nop nop and $27928, %r10 mov (%r9), %di lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %r9 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, '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 */
40.242857
2,999
0.658679
36be3563a6fc8e15a231ea4cebc37586075bca1f
548
asm
Assembly
oeis/017/A017361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017361.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017361: a(n) = (10*n + 7)^9. ; 40353607,118587876497,7625597484987,129961739795077,1119130473102767,6351461955384057,27206534396294947,95151694449171437,285544154243029527,760231058654565217,1838459212420154507,4108400332687853397,8594754748609397887,17001416405572203977,32052064847671367667,57955795548021664957,101029508532509551847,170513746698585164337,279624009566694318427,446885265417950510117,697803444867646915407,1066934121900208390297,1600415374247183470787,2359038963725876372877,3421941488772218992567 mul $0,10 add $0,7 pow $0,9
78.285714
486
0.894161
2b0f22700cd29dd5b50e0454eaa39db91c5bb1da
493
asm
Assembly
shellcode/amd64/linux/sh.asm
r0ck3rt/gopwn
71f1d0881e0032f8b08353f0bf7d6d8551be0780
[ "MIT" ]
9
2021-08-23T08:05:15.000Z
2022-03-09T21:03:30.000Z
shellcode/amd64/linux/sh.asm
r0ck3rt/gopwn
71f1d0881e0032f8b08353f0bf7d6d8551be0780
[ "MIT" ]
null
null
null
shellcode/amd64/linux/sh.asm
r0ck3rt/gopwn
71f1d0881e0032f8b08353f0bf7d6d8551be0780
[ "MIT" ]
2
2021-08-23T08:12:27.000Z
2021-09-19T14:47:15.000Z
xor eax, eax ; mov rbx, 0xff978cd091969dd1 ; neg rbx ; push rbx ; push rsp ; pop rdi ; cdq ; push rdx ; push rdi ; push rsp ; pop rsi ; mov al, 0x3b ; syscall ;
37.923077
37
0.212982
ca598806debb884f8538a598d72b467db04e8856
302
asm
Assembly
programs/oeis/010/A010993.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/010/A010993.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/010/A010993.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A010993: Binomial coefficient C(n,40). ; 1,41,861,12341,135751,1221759,9366819,62891499,377348994,2054455634,10272278170,47626016970,206379406870,841392966470,3245372870670,11899700525790,41648951840265,139646485582065,449972009097765,1397281501935165,4191844505805495 add $0,40 mov $1,$0 bin $1,40
43.142857
229
0.84106
091dd9fa0d7d964a13d7821d9ad4626e450550bb
709
asm
Assembly
oeis/294/A294120.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/294/A294120.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/294/A294120.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A294120: E.g.f.: exp(3*((1+x)^3 - 1)). ; Submitted by Christian Krause ; 1,9,99,1233,16929,251829,4012011,67876461,1211592897,22700600001,444567396051,9068604811209,192115381719969,4216003141209453,95631348748295259,2237799925576748709,53928909429116324481,1336410276724468307961,34008072993641690902467,887589803169289307522241,23732540024106975508247841,649432798996161513168674469,18170884776057803943069825099,519393252807236998865718038493,15154802539181583353192513469249,451044063632815803677893704944049,13683781280486134535912551813520691 mov $2,1 lpb $0 sub $0,1 mov $1,$4 mul $1,$0 mul $2,9 add $3,$4 mov $4,$2 add $2,$3 mov $3,$1 div $3,2 mul $4,$0 mul $4,2 lpe mov $0,$2
35.45
476
0.795487
b94805f3e837f58806dad916488fbbfa3453d603
2,877
asm
Assembly
kern/x86/memtest.asm
archibate/ChaOS
1d0442ca5846d23efd5b2ac1e50a93b4207a5dc0
[ "MIT" ]
2
2020-07-06T02:46:36.000Z
2022-01-14T13:49:15.000Z
kern/x86/memtest.asm
archibate/ChaOS
1d0442ca5846d23efd5b2ac1e50a93b4207a5dc0
[ "MIT" ]
null
null
null
kern/x86/memtest.asm
archibate/ChaOS
1d0442ca5846d23efd5b2ac1e50a93b4207a5dc0
[ "MIT" ]
null
null
null
; vim: ft=nasm ai %include "cext.inc" GLOBALC memory_test [SECTION .phys.text] [BITS 32] ; void memory_test(ulong *p_start, size_t *p_size); memory_test: push ebp mov ebp, esp push esi push edi push ebx mov ebx, [ebp + 8] ; p_start mov edi, [ebp + 12] ; p_size mov esi, [ebx] mov edx, [edi] push edi push ebx call probeRAM pop ebx pop edi mov [ebx], esi mov [edi], ecx pop ebx pop edi pop esi leave ret ; https://wiki.osdev.org/Detecting_Memory_(x86)#Manual_Probing_in_ASM ;Probe to see if there's RAM at a certain address ; ; note: "dummy" -> a known good memory address that has nothing important in it ; ;Input ; edx Maximum number of bytes to test ; esi Starting address ; ;Output ; ecx Number of bytes of RAM found ; esi Address of RAM probeRAM: push eax push ebx push edx push ebp mov ebp,esi ;ebp = starting address add esi,0x00000FFF ;round esi up to block boundary and esi, ~0x00000FFF ;truncate to block boundary push esi ;Save corrected starting address for later mov eax, esi ;eax = corrected starting address sub eax, ebp ;eax = bytes to skip from original starting address, due to rounding xor ecx,ecx ;ecx = number of bytes of RAM found so far (none) sub edx,eax ;edx = number of bytes left to test jc .done ; all done if nothing left after rounding or esi,0x00000FFC ;esi = address of last uint32_t in first block shr edx,12 ;edx = number of blocks to test (rounded down) je .done ; Is there anything left after rounding? .testAddress: mov eax,[esi] ;eax = original value mov ebx,eax ;ebx = original value not eax ;eax = reversed value mov [esi],eax ;Modify value at address mov [dummy],ebx ;Do dummy write (that's guaranteed to be a different value) wbinvd ;Flush the cache mov ebp,[esi] ;ebp = new value mov [esi],ebx ;Restore the original value (even if it's not RAM, in case it's a memory mapped device or something) cmp ebp,eax ;Was the value changed? jne .done ; no, definitely not RAM -- exit to avoid damage ; yes, assume we've found some RAM add ecx,0x00001000 ;ecx = new number of bytes of RAM found add esi,0x00001000 ;esi = new address to test dec edx ;edx = new number of blocks remaining jne .testAddress ;more blocks remaining? ;If not, we're done .done: pop esi ;esi = corrected starting address (rounded up) pop ebp pop edx pop ebx pop eax ret [SECTION .phys.data] dummy: dd 0xdeadbeaf
29.96875
128
0.600278
37bb5d49650c9aaf47b22e1ece4a2129a7ccd060
4,439
asm
Assembly
45/beef/cw/user/meditasm.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/beef/cw/user/meditasm.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
45/beef/cw/user/meditasm.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
;* SCCSWHAT( "@(#)meditasm.asm 1.6 88/04/22 19:47:41 " ) */ ;* ;* COW : Character Oriented Windows ;* ;* meditasm.inc : Multi-line edit manager main ASM file ;* * REVIEW : these should be cleaned up. page ,132 TITLE editmgr NAME editmgr SILENT = 1 .xlist include user.inc IFDEF EDIT_FULLMGR ;(entire file) include cwproc.inc ;* CW procedures include uevent.inc ;* for messages include uisa.inc ;* for colors include uscroll.inc ;* for scroll messages include vkey.inc ;* for VK_ values include uscreen.inc ;* for draw modes include uedit.inc ;* for EN_ values include inmou.inc ;* for MK_ values include inkbd.inc ;* for KK_ values include util.inc include editmgr.inc ;* REVIEW danger (this is public !!) include text.inc ;* REVIEW (this entire interface) .list .sall IFNDEF COW_SWAPPED ?win = 0 ?cow = 0 ENDIF ;!COW_SWAPPED TRUE equ 01h FALSE equ 00h sBegin DATA assumes ds,DGROUP DEBPUBLIC <clnCur, ldCur, fPasteOk, fInsertMode> clnCur dw 0 externB ldEMScratch ldCur ld <> fPasteOk DB 00H fInsertMode db 01H ifdef KANJI fCharIsDbcs db 00H externB fReverse endif DEBPUBLIC <pwndEditCur, cLinesCur, cColumnsCur, CurattrCur> pwndEditCur DW 00H cLinesCur DW 00H cColumnsCur DW 00H CurattrCur DW isaBackground DEBPUBLIC <shiftWidth, tabStops, fResetAnchor> shiftWidth DW 01H tabStops DW 08H fResetAnchor DB 00H DEBPUBLIC <emFlags, emState> ;Global editmgr state flags emFlags db 00H ;modified by EMF_xxx ;Local editmgr state flags emState db 00H ;modified by EF_xxx ;modified by ES_xxx EF_TRACKING_MOUSE equ 20H EF_IN_WINDOW equ 40H EF_WORD_SELECTING equ 80H DEBPUBLIC <pefCur, fRefreshScreen, hBuffer> EVEN pefCur dw 0 EVEN fRefreshScreen db 0 hBuffer dw 0 DEBPUBLIC <ipCur, ipStart, ipAnchor, ipAnchorStart, pdCur> EVEN ipCur ip <> ipStart ip <> ipAnchor ip <> ipAnchorStart ip <> pdCur pd <> EditMgrDoCharState dw User_EditOFFSET EMDC_InitialState chEditMgrState db 0 ifdef EDIT_USE_TABLES SecondDispatch dw 0 ;* Current Secondary dispatch table endif ; EDIT_USE_TABLES sb struc sbfMultiLine db 0 sb_cb dw 0 sb ends DEBPUBLIC <_scrap> _scrap sb <> ifndef PROJECT_QB sb_buffer db MAXCHARS dup(?) ; NEAR massive buffer endif ;PROJECT_QB DEBPUBLIC <rgLineAttr0, rgLineAttr1, rgLineAttr2, rgLineAttr3> rgLineAttr0 LINEATTR<0,0> rgLineAttr1 LINEATTR<0,0> rgLineAttr2 LINEATTR<0,0> rgLineAttr3 LINEATTR<0,0> pfnFilterSave dw 0 ;; ;; a-emoryh - Include cmwSwitches (from ..\..\..\qb5\ir\init.asm), so we can ;; enable ES_NOSELECT when in QHelp mode. Existing behavior is unaltered ;; in any other modes. ;; externW cmdSwitches ;; a-emoryh: ;; This must match up with the define in ..\..\..\qb\hd\ui.inc ;; CMD_SW_QHELP equ 0800h ;/QHELP switch found sEnd DATA ifdef PROJECT_QB sBegin FAR_PRESERVED DEBPUBLIC <sb_buffer> sb_buffer db MAXCHARS dup(?) ; FAR massive buffer sEnd FAR_PRESERVED endif ;PROJECT_QB externFP DrawToggles IFDEF KANJI externFP FIsDbcsChar externFP PchPrevDbcs externFP PchNextDbcs ENDIF ; KANJI IFDEF KK_UNIT externFP DisplayKKBuf ENDIF ; KK_UNIT sBegin USER_EDIT Assumes cs,USER_EDIT Assumes ds,DGROUP Assumes ss,DGROUP ;* * REVIEW : these should be broken up IFDEF KANJI include qbj\editmgr1.asm include qbj\editmgr2.asm ELSE ; !KANJI include editmgr1.asm include editmgr2.asm ENDIF ; KANJI sEnd USER_EDIT ENDIF; EDIT_FULLMGR (entire file) END 
24.661111
78
0.575805
3c83124760273074a50e5143880731cc36841406
530
asm
Assembly
testsuite/barebones/loader.asm
jncronin/tysos
ae3cfd2efaca14aed7a5107cdad4e6f343e4894f
[ "MIT" ]
5
2018-03-04T18:54:41.000Z
2022-03-19T23:08:03.000Z
testsuite/barebones/loader.asm
jncronin/tysos
ae3cfd2efaca14aed7a5107cdad4e6f343e4894f
[ "MIT" ]
null
null
null
testsuite/barebones/loader.asm
jncronin/tysos
ae3cfd2efaca14aed7a5107cdad4e6f343e4894f
[ "MIT" ]
1
2018-03-01T16:15:19.000Z
2018-03-01T16:15:19.000Z
global sthrow weak _Zu1O_7#2Ector_Rv_P1u1t weak _Zu1S weak __cxa_pure_virtual extern kmain MODULEALIGN equ 1<<0 MEMINFO equ 1<<1 FLAGS equ MODULEALIGN | MEMINFO MAGIC equ 0x1badb002 CHECKSUM equ -(MAGIC + FLAGS) section .text align 4 dd MAGIC dd FLAGS dd CHECKSUM sthrow: xchg bx, bx hlt jmp sthrow _Zu1O_7#2Ector_Rv_P1u1t: ret __cxa_pure_virtual: ret section .data _Zu1S: dd 0, 0, 0 ; TIPtr, IFacePtr, Extends dd __cxa_pure_virtual dd __cxa_pure_virtual dd __cxa_pure_virtual dd __cxa_pure_virtual
12.619048
40
0.767925
6a1acbb286ecb35437a50cb1222e87f935ffc028
314
asm
Assembly
oeis/127/A127449.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/127/A127449.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/127/A127449.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A127449: Triangle T(n,k) = n if gcd(n,k)=1, =0 otherwise. ; Submitted by Christian Krause ; 1,2,0,3,3,0,4,0,4,0,5,5,5,5,0,6,0,0,0,6,0,7,7,7,7,7,7,0,8,0,8,0,8,0,8,0,9,9,0,9,9,0,9,9,0,10,0,10,0,0,0,10,0,10,0 add $0,1 lpb $0 add $1,1 mov $2,$0 trn $0,$1 lpe add $0,$1 gcd $2,$1 mul $2,$0 cmp $1,$2 mul $0,$1
19.625
115
0.55414
c79d77c660e91d909ad337c5281db73e0feb9d17
389
asm
Assembly
oeis/340/A340881.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/340/A340881.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/340/A340881.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A340881: Row sums of A340880. ; Submitted by Christian Krause ; 1,3,17,183,3769,149607,11522393,1731779367,510323215321,295959535117863,338795401444537817,767301163051807117863,3444329717600807441325529,30688384795438974301695656487,543332627310980056832574442798553 mov $1,1 mov $3,1 lpb $0 sub $0,1 add $2,1 mul $2,2 mul $1,$2 sub $2,1 mul $3,$2 add $3,$1 lpe mov $0,$3
22.882353
204
0.755784
cc1798226eb83b4dea8a1219c0d49ebc7f3e98d2
1,454
asm
Assembly
src/seq1.asm
tomellericcardo/AssemblyExercises
c2a9d1b376a25d70872a27699368b7b8e6e17b85
[ "Apache-2.0" ]
null
null
null
src/seq1.asm
tomellericcardo/AssemblyExercises
c2a9d1b376a25d70872a27699368b7b8e6e17b85
[ "Apache-2.0" ]
null
null
null
src/seq1.asm
tomellericcardo/AssemblyExercises
c2a9d1b376a25d70872a27699368b7b8e6e17b85
[ "Apache-2.0" ]
null
null
null
.orig x3000 AND R0, R0, #0 ADD R0, R0, #6 JSR SEQ1 AND R0, R0, #0 ADD R0, R0, #2 JSR SEQ1 AND R0, R0, #0 ADD R0, R0, #-4 JSR SEQ1 TRAP x25 SEQ1 ST R1, st_r1 ; salvo il contenuto di R1 ST R2, st_r2 ; salvo il contenuto di R2 ST R3, st_r3 ; salvo il contenuto di R3 AND R3, R3, #0 ; azzero R3 AND R0, R0, R0 ; controllo R0 BRNZ fine ; n <= 0 ADD R3, R3, #1 ; scrivo 1 in R3 ADD R0, R0, #-2 ; decremento R0 di 2 BRNZ fine ; n = 1 o n = 2 LEA R1, seq ; R1 punta alla sequenza loop LDR R2, R1, #1 ; R2 contiene S(n-1) BRN ass ; S(n-1) negativo cont ADD R2, R2, R2 ; R2 contiene 2 * |S(n-1)| ADD R3, R2, #0 ; R3 contiene 2 * |S(n-1)| LDR R2, R1, #0 ; R2 contiene S(n-2) ADD R2, R2, R2 ; R2 contiene 2 * S(n-2) NOT R2, R2 ; nego R2 ADD R2, R2, #1 ; R2 contiene - 2 * S(n-2) ADD R3, R3, R2 ; R3 contiene 2 * |S(n-1)| - 2 * S(n-2) STR R3, R1, #2 ; scrivo R3 all'n-esimo posto della sequenza ADD R0, R0, #-1 ; decremento R0 di 1 BRZ fine ; fine della sequenza ADD R1, R1, #1 ; incremento il puntatore di 1 BRNZP loop ; ciclo ass NOT R2, R2 ; nego R2 ADD R2, R2, #1 ; R2 contiene |S(n-1)| BRNZP cont ; continuo fine ADD R0, R3, #0 ; scrivo R3 in R0 LD R1, st_r1 ; ripristino il contenuto di R1 LD R2, st_r2 ; ripristino il contenuto di R2 LD R3, st_r3 ; ripristino il contenuto di R3 RET ; ritorno al programma chiamante seq .fill #1 .fill #1 .blkw 100 st_r1 .blkw 1 st_r2 .blkw 1 st_r3 .blkw 1 .end
22.71875
60
0.618982
e8d21c818901fcb061c0e3b86c85babf7c4f7c8c
10,540
asm
Assembly
dosshell/swapper/woakkc.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dosshell/swapper/woakkc.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
dosshell/swapper/woakkc.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1985-1991 ; * All Rights Reserved. ; */ ifdef JAPAN ; ### if JAPAN ### ;----------------------------------------------------------------------------; ; This module contains routines realated to saving and restoring of the KKC ; ; (Kana-Kanji Converter) context. ; ; ; ; History: ; ; ; ; Mon Feb-18-1991. -by- Norihiko Maruko [norim] ; ; Created for DOS Shell. (Added the History legend) ; ;----------------------------------------------------------------------------; ?win = 0 ?DF = 1 .xlist include cmacros.inc include woasegs.inc include njmp.mac include macros.mac .list .8086 public KkcBufferSeg public KkcBufferSize public KkcDataSize sBegin StubSeg ;----------------------------------------------------------------------------; ; define the external function calls. ; ;----------------------------------------------------------------------------; KkcBufferSize dw 0 ; size of a buffer to save/restore KkcBufferSeg dw 0 ; segment of a buffer to save/restore assumes cs,StubSeg ;----------------------------------------------------------------------------; ; KkcBusyCheck: ; ; ; ; Busy check to save/restore KKC state ; ; ; ; OUT: ; ; CF - 0 Not Busy ; ; 1 Busy ; ;----------------------------------------------------------------------------; cProc KkcBusyCheck,<FAR,PUBLIC,PASCAL>,<ax,bx,dx,es> cBegin mov ax,_DATA ; mov es,ax ; mov bx,es:KkcHandleNo ; mov ax,BusyCheck ; xor dx,dx ; int 2fh ; busy check or ax,ax ; not support function 4eh jnz @f ; yes or dx,dx ; KKC busy ? jnz CheckError ; yes @@: clc ; not busy jmp short CheckEnd ; CheckError: stc ; busy CheckEnd: cEnd ;--------------------------------------------------------------------------- sEnd sBegin Data ;----------------------------------------------------------------------------; ; define the KKC state related variables. ; ;----------------------------------------------------------------------------; KkcHandleNo dw ? ; KKC handle No. KkcDataSize dd 0 ; data size of KKC sEnd Data sBegin Code assumes cs,Code assumes ds,Data ;-------------------------------------------------------; ; external OLDAPP procedures. ; ;-------------------------------------------------------; externNP ReadFile ;(WOAFILE.ASM) externNP WriteFile ;(WOAFILE.ASM) externNP LseekFile ;(WOAFILE.ASM) ;----------------------------------------------------------------------------; ; declare the variables which are defined elsewhere. ; ;----------------------------------------------------------------------------; ;----------------------------------------------------------------------------; ; define constants related to various KKC. ; ;----------------------------------------------------------------------------; ; Int 2fh function GetVersionTable equ 4d03h ; get address of a version table DisableEnable equ 4e00h ; disable/enable KKC BusyCheck equ 4e01h ; check busy for KKC GetSize equ 4e02h ; get size of KKC state SaveKKC equ 4e03h ; save KKC state RestoreKKC equ 4e04h ; restore KKC state MaxKkcCount equ 1 ; max KKC count DefaultHandleNo equ 1 ; default handle no. KkcBufSize equ 2048 ; buffer's size to save/restore FileAttribute equ 0 ; file attribute to create AccessMode equ 2 ; file open mode ;----------------------------------------------------------------------------; ;----------------------------------------------------------------------------; ; EnableKkc: ; ; ; ; This routine enables the KKC. ; ; ; ;----------------------------------------------------------------------------; cProc EnableKkc,<NEAR,PUBLIC,PASCAL>,<ax,bx,dx> cBegin mov ax,DisableEnable ; mov bx,KkcHandleNo ; mov dl,1 ; set enable request int 2fh ; set KKC enable or ax,ax ; not support function 4dh ? jnz EnableError ; yes clc ; jmp short @f ; EnableError: stc ; @@: cEnd ;----------------------------------------------------------------------------; ; DisableKkc: ; ; ; ; This routine disables the KKC. ; ;----------------------------------------------------------------------------; cProc DisableKkc,<NEAR,PUBLIC,PASCAL>,<ax,bx,dx> cBegin mov ax,DisableEnable ; mov bx,KkcHandleNo ; mov dl,0 ; set disable request int 2fh ; set KKC disable or ax,ax ; not support function 4dh ? jnz DisableError ; yes clc ; jmp short @f ; DisableError: stc ; @@: cEnd ;----------------------------------------------------------------------------; ; SaveKkcState: ; ; Save the state of the KKC ; ;----------------------------------------------------------------------------; cProc SaveKkcState, <NEAR,PUBLIC,PASCAL>, <ax,bx,cx,dx,di,ds,es> parmW FileHandle localD FileOffset localW DataEmpty cBegin xor ax,ax ; mov bx,2 ; cCall LseekFile,<FileHandle,ax,ax,bx> ; seek end of file jc SaveErrorEnd ; seek error mov seg_FileOffset,dx ; save file offset mov off_FileOffset,ax ; lea ax,KkcDataSize ; write total size of KKC data mov cx,4 ; need to write 4 bytes xor dx,dx ; cCall WriteFile,<FileHandle,ds,ax,dx,cx> jc SaveErrorEnd ; write error mov ax,_WOARLMSEG ; get StubSeg mov es,ax ; mov ax,es:KkcBufferSeg ; get a segment address to save mov es,ax ; SaveLoop: mov ax,SaveKkc ; get KKC save function mov bx,KkcHandleNo ; get KKC handle No. mov cx,KkcBufSize ; get size of the saving buffer xor di,di ; push es ; save int 2fh ; get KKC state pop es ; restore cmp ax,SaveKkc ; not support this function ? jz SaveErrorEnd ; yes mov DataEmpty,ax ; xor di,di ; xor ax,ax ; push es ; save cCall WriteFile,<FileHandle,es,di,ax,cx> pop es ; restore jc SaveErrorEnd ; write wrror cmp DataEmpty,0 ; data empty ? jnz SaveLoop ; no WriteOffset: xor ax,ax ; mov bx,4 ; cCall LseekFile,<FileHandle,ax,bx,ax> jc SaveErrorEnd ; seek error lea ax,FileOffset ; ss:ax points to data to write mov cx,4 ; need to write 4 bytes xor dx,dx ; cCall WriteFile,<FileHandle,ss,ax,dx,cx> jnc SaveEnd ; no error SaveErrorEnd: stc ; set error flag SaveEnd: cEnd ;----------------------------------------------------------------------------; ; RestoreKkcState: ; ; ; ; Restores the state of the KKC. ; ;----------------------------------------------------------------------------; cProc RestoreKkcState, <NEAR,PUBLIC,PASCAL>, <ax,bx,cx,dx,di,ds,es> parmW FileHandle localD FileOffset localD EndPointer localD ReadSize localW RestoreCount cBegin xor ax,ax ; mov bx,4 ; cCall LseekFile,<FileHandle,ax,bx,ax> njc RestoreErrorEnd ; seek error lea ax,FileOffset ; ss:ax points to data to read mov cx,4 ; need to read 4 bytes xor dx,dx ; cCall ReadFile,<FileHandle,ss,ax,dx,cx> jc RestoreErrorEnd ; read error xor ax,ax ; cCall LseekFile,<FileHandle,FileOffset,ax> jc RestoreErrorEnd ; seek error lea ax,ReadSize ; read total size of KKC's data mov cx,4 ; need to read 4 bytes xor dx,dx ; cCall ReadFile,<FileHandle,ss,ax,dx,cx> jc RestoreErrorEnd ; read error mov ax,_WOARLMSEG ; get StubSeg mov es,ax ; mov ax,es:KkcBufferSeg ; get buffer address to restore mov es,ax ; RestoreLoop: mov dx,KkcBufSize ; cmp seg_ReadSize,0 ; more than 64KB ? jnz @f ; yes cmp off_ReadSize,dx ; reading file size > buffer size ? jae @f ; yes mov dx,off_ReadSize ; get a size to read @@: mov RestoreCount,dx ; save a counter xor di,di ; xor cx,cx ; get read counter push es ; save cCall ReadFile,<FileHandle,es,di,cx,dx> pop es ; restore jc RestoreErrorEnd ; read error mov ax,cx ; get counter mov ax,RestoreKkc ; get KKC function to restore mov bx,KkcHandleNo ; get KKC handle No. xor di,di ; push es ; save int 2fh ; restore KKC state pop es ; restore or ax,ax ; not support this function ? jnz RestoreErrorEnd ; yes mov ax,RestoreCount ; sub off_ReadSize,ax ; renew count to read sbb seg_ReadSize,0 ; mov ax,off_ReadSize ; or ax,seg_ReadSize ; finish to restore ? jnz RestoreLoop ; no clc ; jmp short RestoreEnd ; RestoreErrorEnd: stc ; set error flag RestoreEnd: cEnd ;----------------------------------------------------------------------------; ; GetKkcStateSize: ; ; ; ; Gets the size of the buffer needed to save the KKC state if there is a ; ; KKC installed. ; ; ; ;----------------------------------------------------------------------------; cProc GetKkcStateSize,<NEAR,PUBLIC,PASCAL>,<ax,bx,cx,es> cBegin xor ax,ax ; mov bx,_WOARLMSEG ; get StubSeg address mov es,bx ; mov es:KkcBufferSize,ax ; initialize mov wptr KkcDataSize,ax ; initialize mov wptr KkcDataSize+2,ax ; cCall GetKkcHandleNo ; get KKC handle No. jc GetSizeError ; not installed mov ax,KkcBufSize/16 ; set buffer size mov es:KkcBufferSize,ax ; need buffer size mov ax,GetSize ; mov bx,KkcHandleNo ; int 2fh ; get total data size of KKC or ax,ax ; jnz GetSizeError ; mov wptr KkcDataSize+2,cx ; set total size mov wptr KkcDataSize,dx ; clc GetSizeError: stc ; GetEnd: cEnd ;----------------------------------------------------------------------------; ; GetKkcHandleNo: ; ; ; ; This routine gets the handle number of KKC. ; ;----------------------------------------------------------------------------; cProc GetKkcHandleNo,<NEAR,PUBLIC,PASCAL>,<ax,bx,cx,dx,ds,es> cBegin mov ax,GetVersionTable ; xor cx,cx ; xor dx,dx ; int 2fh ; get an address of the version table or ax,ax ; no get ? jnz GetHandleError ; yes mov ds,cx ; mov bx,dx ; mov ax,ds:[bx] ; get a counter installing KKC or ax,ax ; KKC installed ? jz GetHandleError ; no mov ax,ds:[bx+2] ; get a version No. of KKC or ax,ax ; not installed ? jz GetHandleError ; yes mov es:KkcHandleNo,DefaultHandleNo clc jmp short @f ; GetHandleError: stc ; @@: cEnd ;----------------------------------------------------------------------------; sEnd Code endif ; ### end if JAPAN ### end 
26.153846
78
0.505028
c29409fb5a45f4349ea4e33d60d8c713f88c5f99
3,623
asm
Assembly
test_programs/predec.asm
mfkiwl/QNICE-FPGA-hyperRAM
aabc8291ac1e0c4666c51f84acddf599d7521e53
[ "BSD-3-Clause" ]
53
2016-04-12T07:22:49.000Z
2022-03-25T09:24:48.000Z
test_programs/predec.asm
mfkiwl/QNICE-FPGA-hyperRAM
aabc8291ac1e0c4666c51f84acddf599d7521e53
[ "BSD-3-Clause" ]
196
2020-06-05T04:59:50.000Z
2021-03-13T21:27:11.000Z
test_programs/predec.asm
mfkiwl/QNICE-FPGA-hyperRAM
aabc8291ac1e0c4666c51f84acddf599d7521e53
[ "BSD-3-Clause" ]
15
2017-07-31T11:26:56.000Z
2022-02-22T14:22:46.000Z
; Test pre-decrement-indirect-and-then-work-with-it ; ; This test program was used to document and to test, after in Release 1.4 ; a CPU bug was discovered, that lead to the strange effect, that in the ; emulator, things like "F" "R" qbin/mandel.out did not work, but in hardware ; it indeed did work. At first, this looked like an emulator bug, but in the ; end it became clear, that the FAT32 implementation relied on a CPU bug to ; work correctly :-) ; ; The original sdcard.asm (and therefore the Monitor-FAT32 implementation) ; contained a statement like this: ; ; ============================================================================ ; ADD @--R4, R4 ; R4 was incremented to skip.. ; ; ..the length information, .. ; ; ..so we need to predecr. .. ; ; ..and then increase the .. ; ; ..pointer to the next segm. ; ============================================================================ ; ; It expected from the CPU the following semantics: ; ; ============================================================================ ; int* a = r4; ; int* b = r4; ; --a; ; b += (*a); ; r4 = b; ; ============================================================================ ; ; In other words: It relied on a CPU bug, that had the implication that the ; second operand still had the old value, even when pre-decremented in the ; first part of the command. Obviously, the right semantics need to be: ; ; ============================================================================ ; int* a = r4; ; --a; ; a += (*a); ; r4 = a; ; ============================================================================ ; ; This test program therefore checks, if the correct behaviour is shown. ; ; done by sy2002 in December 2016 #include "../dist_kit/sysdef.asm" #include "../dist_kit/monitor.def" .ORG 0x8000 MOVE STR_TITLE, R8 SYSCALL(puts, 1) MOVE DATA, R4 ; now points to 0x0003 ADD 1, R4 ; now points to 0xAAAA ; what this should do, if the CPU works correctly: ; 1. decrease R4 by 1, so it now points to 0x0003 ; 2. add 0x0003 to R4 so it now points to 0xCCCC ; ; what the buggy CPU did: ; 1. remember R4 ; 2. decrease R4 by 1 so it now points to 0x0003 ; 3. add 0x0003 to the remembered value, so that it now ; pointed to 0xBBBB ADD @--R4, R4 CMP @R4, 0xCCCC RBRA BUG, !Z MOVE STR_OK, R8 SYSCALL(puts, 1) SYSCALL(crlf, 1) SYSCALL(exit, 1) BUG MOVE STR_BUG, R8 SYSCALL(puts, 1) MOVE @R4, R8 SYSCALL(puthex, 1) SYSCALL(crlf, 1) SYSCALL(exit, 1) DATA .DW 0x0003, 0xAAAA, 0xFFFF, 0xCCCC, 0xBBBB, 0x0001, 0x0002 STR_TITLE .ASCII_P "Test the infamous ADD @--R4, R4 behaviour\n" .ASCII_P "done by sy2002 in December 2016\n\n" .ASCII_W "CPU condition = " STR_OK .ASCII_W "OK" STR_BUG .ASCII_W "BUGGY! wrong value = "
40.707865
125
0.430858
85a546e1114149932b8d138bd7e585f0645e3482
9,950
asm
Assembly
engine/menu/bills_pc.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
engine/menu/bills_pc.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
engine/menu/bills_pc.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
DisplayPCMainMenu:: xor a ld [H_AUTOBGTRANSFERENABLED], a call SaveScreenTilesToBuffer2 ld a, [wNumHoFTeams] and a jr nz, .leaguePCAvailable CheckEvent EVENT_GOT_POKEDEX jr z, .noOaksPC ld a, [wNumHoFTeams] and a jr nz, .leaguePCAvailable coord hl, 0, 0 ld b, 8 ld c, 14 jr .next .noOaksPC coord hl, 0, 0 ld b, 6 ld c, 14 jr .next .leaguePCAvailable coord hl, 0, 0 ld b, 10 ld c, 14 .next call TextBoxBorder call UpdateSprites ld a, 3 ld [wMaxMenuItem], a CheckEvent EVENT_MET_BILL jr nz, .metBill coord hl, 2, 2 ld de, SomeonesPCText jr .next2 .metBill coord hl, 2, 2 ld de, BillsPCText .next2 call PlaceString coord hl, 2, 4 ld de, wPlayerName call PlaceString ld l, c ld h, b ld de, PlayersPCText call PlaceString CheckEvent EVENT_GOT_POKEDEX jr z, .noOaksPC2 coord hl, 2, 6 ld de, OaksPCText call PlaceString ld a, [wNumHoFTeams] and a jr z, .noLeaguePC ld a, 4 ld [wMaxMenuItem], a coord hl, 2, 8 ld de, PKMNLeaguePCText call PlaceString coord hl, 2, 10 ld de, LogOffPCText jr .next3 .noLeaguePC coord hl, 2, 8 ld de, LogOffPCText jr .next3 .noOaksPC2 ld a, $2 ld [wMaxMenuItem], a coord hl, 2, 6 ld de, LogOffPCText .next3 call PlaceString ld a, A_BUTTON | B_BUTTON ld [wMenuWatchedKeys], a ld a, 2 ld [wTopMenuItemY], a ld a, 1 ld [wTopMenuItemX], a xor a ld [wCurrentMenuItem], a ld [wLastMenuItem], a ld a, 1 ld [H_AUTOBGTRANSFERENABLED], a ret SomeonesPCText: db "SOMEONE's PC@" BillsPCText: db "BILL's PC@" PlayersPCText: db "'s PC@" OaksPCText: db "PROF.OAK's PC@" PKMNLeaguePCText: db $4a, "LEAGUE@" LogOffPCText: db "LOG OFF@" BillsPC_:: ld hl, wd730 set 6, [hl] xor a ld [wParentMenuItem], a inc a ; MONSTER_NAME ld [wNameListType], a call LoadHpBarAndStatusTilePatterns ld a, [wListScrollOffset] push af ld a, [wFlags_0xcd60] bit 3, a ; accessing Bill's PC through another PC? jr nz, BillsPCMenu ; accessing it directly ld a, $99 call PlaySound ld hl, SwitchOnText call PrintText BillsPCMenu: ld a, [wParentMenuItem] ld [wCurrentMenuItem], a ld hl, vChars2 + $780 ld de, PokeballTileGraphics lb bc, BANK(PokeballTileGraphics), $01 call CopyVideoData call LoadScreenTilesFromBuffer2DisableBGTransfer coord hl, 0, 0 ld b, 10 ld c, 12 call TextBoxBorder coord hl, 2, 2 ld de, BillsPCMenuText call PlaceString ld hl, wTopMenuItemY ld a, 2 ld [hli], a ; wTopMenuItemY dec a ld [hli], a ; wTopMenuItemX inc hl inc hl ld a, 4 ld [hli], a ; wMaxMenuItem ld a, A_BUTTON | B_BUTTON ld [hli], a ; wMenuWatchedKeys xor a ld [hli], a ; wLastMenuItem ld [hli], a ; wPartyAndBillsPCSavedMenuItem ld hl, wListScrollOffset ld [hli], a ; wListScrollOffset ld [hl], a ; wMenuWatchMovingOutOfBounds ld [wPlayerMonNumber], a ld hl, WhatText call PrintText coord hl, 9, 14 ld b, 2 ld c, 9 call TextBoxBorder ld a, [wCurrentBoxNum] and $7f cp 9 jr c, .singleDigitBoxNum ; two digit box num sub 9 coord hl, 17, 16 ld [hl], "1" add "0" jr .next .singleDigitBoxNum add "1" .next Coorda 18, 16 coord hl, 10, 16 ld de, BoxNoPCText call PlaceString ld a, 1 ld [H_AUTOBGTRANSFERENABLED], a call Delay3 call HandleMenuInput bit 1, a jp nz, ExitBillsPC ; b button call PlaceUnfilledArrowMenuCursor ld a, [wCurrentMenuItem] ld [wParentMenuItem], a and a jp z, BillsPCWithdraw ; withdraw cp $1 jp z, BillsPCDeposit ; deposit cp $2 jp z, BillsPCRelease ; release cp $3 jp z, BillsPCChangeBox ; change box ExitBillsPC: ld a, [wFlags_0xcd60] bit 3, a ; accessing Bill's PC through another PC? jr nz, .next ; accessing it directly call LoadTextBoxTilePatterns ld a, $9a call PlaySound call WaitForSoundToFinish .next ld hl, wFlags_0xcd60 res 5, [hl] call LoadScreenTilesFromBuffer2 pop af ld [wListScrollOffset], a ld hl, wd730 res 6, [hl] ret BillsPCDeposit: ld a, [wPartyCount] dec a jr nz, .partyLargeEnough ld hl, CantDepositLastMonText call PrintText jp BillsPCMenu .partyLargeEnough ld a, [wNumInBox] cp MONS_PER_BOX jr nz, .boxNotFull ld hl, BoxFullText call PrintText jp BillsPCMenu .boxNotFull ld hl, wPartyCount call DisplayMonListMenu jp c, BillsPCMenu call DisplayDepositWithdrawMenu jp nc, BillsPCMenu ld a, [wcf91] call GetCryData call PlaySoundWaitForCurrent ld a, PARTY_TO_BOX ld [wMoveMonType], a call MoveMon xor a ld [wRemoveMonFromBox], a call RemovePokemon call WaitForSoundToFinish ld hl, wBoxNumString ld a, [wCurrentBoxNum] and $7f cp 9 jr c, .singleDigitBoxNum sub 9 ld [hl], "1" inc hl add "0" jr .next .singleDigitBoxNum add "1" .next ld [hli], a ld [hl], "@" ld hl, MonWasStoredText call PrintText jp BillsPCMenu BillsPCWithdraw: ld a, [wNumInBox] and a jr nz, .boxNotEmpty ld hl, NoMonText call PrintText jp BillsPCMenu .boxNotEmpty ld a, [wPartyCount] cp PARTY_LENGTH jr nz, .partyNotFull ld hl, CantTakeMonText call PrintText jp BillsPCMenu .partyNotFull ld hl, wNumInBox call DisplayMonListMenu jp c, BillsPCMenu call DisplayDepositWithdrawMenu jp nc, BillsPCMenu ld a, [wWhichPokemon] ld hl, wBoxMonNicks call GetPartyMonName ld a, [wcf91] call GetCryData call PlaySoundWaitForCurrent xor a ; BOX_TO_PARTY ld [wMoveMonType], a call MoveMon ld a, 1 ld [wRemoveMonFromBox], a call RemovePokemon call WaitForSoundToFinish ld hl, MonIsTakenOutText call PrintText jp BillsPCMenu BillsPCRelease: ld a, [wNumInBox] and a jr nz, .loop ld hl, NoMonText call PrintText jp BillsPCMenu .loop ld hl, wNumInBox call DisplayMonListMenu jp c, BillsPCMenu ld hl, OnceReleasedText call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a jr nz, .loop inc a ld [wRemoveMonFromBox], a call RemovePokemon call WaitForSoundToFinish ld a, [wcf91] call PlayCry ld hl, MonWasReleasedText call PrintText jp BillsPCMenu BillsPCChangeBox: callba ChangeBox jp BillsPCMenu DisplayMonListMenu: ld a, l ld [wListPointer], a ld a, h ld [wListPointer + 1], a xor a ld [wPrintItemPrices], a ld [wListMenuID], a inc a ; MONSTER_NAME ld [wNameListType], a ld a, [wPartyAndBillsPCSavedMenuItem] ld [wCurrentMenuItem], a call DisplayListMenuID ld a, [wCurrentMenuItem] ld [wPartyAndBillsPCSavedMenuItem], a ret BillsPCMenuText: db "WITHDRAW ", $4a next "DEPOSIT ", $4a next "RELEASE ", $4a next "CHANGE BOX" next "SEE YA!" db "@" BoxNoPCText: db "BOX No.@" KnowsHMMove:: ; returns whether mon with party index [wWhichPokemon] knows an HM move ld hl, wPartyMon1Moves ld bc, wPartyMon2 - wPartyMon1 jr .next ; unreachable ld hl, wBoxMon1Moves ld bc, wBoxMon2 - wBoxMon1 .next ld a, [wWhichPokemon] call AddNTimes ld b, NUM_MOVES .loop ld a, [hli] push hl push bc ld hl, HMMoveArray ld de, 1 call IsInArray pop bc pop hl ret c dec b jr nz, .loop and a ret HMMoveArray: db CUT db FLY db SURF db STRENGTH db FLASH db -1 DisplayDepositWithdrawMenu: coord hl, 9, 10 ld b, 6 ld c, 9 call TextBoxBorder ld a, [wParentMenuItem] and a ; was the Deposit or Withdraw item selected in the parent menu? ld de, DepositPCText jr nz, .next ld de, WithdrawPCText .next coord hl, 11, 12 call PlaceString coord hl, 11, 14 ld de, StatsCancelPCText call PlaceString ld hl, wTopMenuItemY ld a, 12 ld [hli], a ; wTopMenuItemY ld a, 10 ld [hli], a ; wTopMenuItemX xor a ld [hli], a ; wCurrentMenuItem inc hl ld a, 2 ld [hli], a ; wMaxMenuItem ld a, A_BUTTON | B_BUTTON ld [hli], a ; wMenuWatchedKeys xor a ld [hl], a ; wLastMenuItem ld hl, wListScrollOffset ld [hli], a ; wListScrollOffset ld [hl], a ; wMenuWatchMovingOutOfBounds ld [wPlayerMonNumber], a ld [wPartyAndBillsPCSavedMenuItem], a .loop call HandleMenuInput bit 1, a ; pressed B? jr nz, .exit ld a, [wCurrentMenuItem] and a jr z, .choseDepositWithdraw dec a jr z, .viewStats .exit and a ret .choseDepositWithdraw scf ret .viewStats call SaveScreenTilesToBuffer1 ld a, [wParentMenuItem] and a ld a, PLAYER_PARTY_DATA jr nz, .next2 ld a, BOX_DATA .next2 ld [wMonDataLocation], a predef StatusScreen predef StatusScreen2 call LoadScreenTilesFromBuffer1 call ReloadTilesetTilePatterns call RunDefaultPaletteCommand call LoadGBPal jr .loop DepositPCText: db "DEPOSIT@" WithdrawPCText: db "WITHDRAW@" StatsCancelPCText: db "STATS" next "CANCEL@" SwitchOnText: TX_FAR _SwitchOnText db "@" WhatText: TX_FAR _WhatText db "@" DepositWhichMonText: TX_FAR _DepositWhichMonText db "@" MonWasStoredText: TX_FAR _MonWasStoredText db "@" CantDepositLastMonText: TX_FAR _CantDepositLastMonText db "@" BoxFullText: TX_FAR _BoxFullText db "@" MonIsTakenOutText: TX_FAR _MonIsTakenOutText db "@" NoMonText: TX_FAR _NoMonText db "@" CantTakeMonText: TX_FAR _CantTakeMonText db "@" ReleaseWhichMonText: TX_FAR _ReleaseWhichMonText db "@" OnceReleasedText: TX_FAR _OnceReleasedText db "@" MonWasReleasedText: TX_FAR _MonWasReleasedText db "@" CableClubLeftGameboy:: ld a, [hSerialConnectionStatus] cp USING_EXTERNAL_CLOCK ret z ld a, [wSpriteStateData1 + 9] ; player's sprite facing direction cp SPRITE_FACING_RIGHT ret nz ld a, [wCurMap] cp TRADE_CENTER ld a, LINK_STATE_START_TRADE jr z, .next inc a ; LINK_STATE_START_BATTLE .next ld [wLinkState], a call EnableAutoTextBoxDrawing tx_pre_jump JustAMomentText CableClubRightGameboy:: ld a, [hSerialConnectionStatus] cp USING_INTERNAL_CLOCK ret z ld a, [wSpriteStateData1 + 9] ; player's sprite facing direction cp SPRITE_FACING_LEFT ret nz ld a, [wCurMap] cp TRADE_CENTER ld a, LINK_STATE_START_TRADE jr z, .next inc a ; LINK_STATE_START_BATTLE .next ld [wLinkState], a call EnableAutoTextBoxDrawing tx_pre_jump JustAMomentText JustAMomentText:: TX_FAR _JustAMomentText db "@" ld a, [wSpriteStateData1 + 9] ; player's sprite facing direction cp SPRITE_FACING_UP ret nz call EnableAutoTextBoxDrawing tx_pre_jump OpenBillsPCText OpenBillsPCText:: db $FD ; FuncTX_BillsPC
17.927928
71
0.732663
aa29c4d9c1d314d087760a93124e120e124a7e01
4,554
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_8763_723.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_8763_723.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_8763_723.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 %r11 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_normal+0x19c88, %r11 nop nop nop nop nop add $18379, %r14 mov $0x5152535455565758, %rsi movq %rsi, %xmm3 vmovups %ymm3, (%r11) nop nop inc %rsi // Store lea addresses_PSE+0x50b7, %r14 nop nop and %rcx, %rcx mov $0x5152535455565758, %rsi movq %rsi, (%r14) nop nop nop nop inc %r9 // Store lea addresses_UC+0x3848, %rcx clflush (%rcx) dec %r11 mov $0x5152535455565758, %r14 movq %r14, %xmm4 movaps %xmm4, (%rcx) nop nop nop nop cmp $56055, %r14 // Faulty Load lea addresses_WT+0xec88, %r14 nop nop nop and %rcx, %rcx mov (%r14), %r11d lea oracles, %rsi and $0xff, %r11 shlq $12, %r11 mov (%rsi,%r11,1), %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'39': 8763} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
51.168539
2,999
0.660957
890397a2f5a4529cfabacc0ce31955feab95251e
6,830
asm
Assembly
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0xca.log_21829_178.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0xca.log_21829_178.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0xca.log_21829_178.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 %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1443b, %rsi lea addresses_UC_ht+0xd4bb, %rdi nop nop nop nop dec %r10 mov $110, %rcx rep movsb inc %rdx lea addresses_normal_ht+0x1ba3b, %rsi lea addresses_D_ht+0x3ebb, %rdi xor $20772, %r11 mov $42, %rcx rep movsw nop nop nop add $8155, %rdi lea addresses_A_ht+0xc2bb, %rsi clflush (%rsi) nop nop nop nop nop add %rdx, %rdx movb (%rsi), %r11b nop nop nop nop nop and $26347, %r11 lea addresses_WT_ht+0x1301b, %rsi lea addresses_D_ht+0x192b3, %rdi sub %rax, %rax mov $96, %rcx rep movsb nop nop nop xor $40450, %rdx lea addresses_WT_ht+0x136bb, %rsi nop nop nop nop cmp $33395, %r11 mov $0x6162636465666768, %rdx movq %rdx, %xmm0 vmovups %ymm0, (%rsi) nop nop nop nop and %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %r9 push %rcx push %rdx // Store lea addresses_PSE+0x1c11b, %r9 nop nop nop inc %rdx movl $0x51525354, (%r9) nop nop nop sub $4289, %r15 // Load lea addresses_D+0xb303, %rcx nop nop sub %r13, %r13 mov (%rcx), %edx nop nop nop sub %r9, %r9 // Store lea addresses_UC+0x32bb, %r10 and %r12, %r12 mov $0x5152535455565758, %r13 movq %r13, %xmm4 vmovups %ymm4, (%r10) nop nop nop nop and $5193, %r13 // Store lea addresses_WT+0x6bdd, %r9 nop inc %r13 mov $0x5152535455565758, %rdx movq %rdx, %xmm6 movups %xmm6, (%r9) nop nop nop nop nop dec %rdx // Store lea addresses_RW+0xadbb, %rdx nop inc %rcx mov $0x5152535455565758, %r9 movq %r9, (%rdx) // Exception!!! mov (0), %r12 nop cmp $361, %rdx // Load lea addresses_PSE+0x54bb, %r15 nop nop sub $41732, %rcx vmovups (%r15), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r13 nop add %rcx, %rcx // Faulty Load lea addresses_WT+0x9ebb, %r15 dec %r10 mov (%r15), %r9 lea oracles, %r10 and $0xff, %r9 shlq $12, %r9 mov (%r10,%r9,1), %r9 pop %rdx pop %rcx pop %r9 pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_PSE'}} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT'}} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_RW'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 5, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}} {'01': 1, '49': 415, '00': 21404, 'e7': 1, '67': 8} e7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.846939
2,999
0.653587
49b351cd154afb8ddd44a0dcd98b59cd3302d776
425
asm
Assembly
programs/oeis/071/A071991.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/071/A071991.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/071/A071991.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A071991: a(1) = a(2) = 1; a(n) = a(floor(n/3)) + a(n - floor(n/3)). ; 1,1,2,3,4,4,5,5,6,7,7,8,9,10,11,11,12,12,13,14,15,16,16,16,17,17,18,19,20,21,22,23,23,23,23,24,25,25,26,27,28,29,30,31,32,33,34,34,34,34,35,35,36,36,37,37,38,39,40,41,42,43,44,45,46,47,48,49,49,50,50,50,50 mov $1,$0 seq $1,71996 ; a(1) = 0, a(2) = 1, a(n) = a(floor(n/3)) + a(n - floor(n/3)). sub $1,$0 mov $3,$1 mov $1,1 add $2,$3 sub $1,$2 mov $0,$1
35.416667
207
0.548235
ac3850ac89216ea75f90a00948f6474e78d7ad06
364
asm
Assembly
oeis/284/A284920.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/284/A284920.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/284/A284920.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A284920: Numbers with digits 2 and 4 only. ; 2,4,22,24,42,44,222,224,242,244,422,424,442,444,2222,2224,2242,2244,2422,2424,2442,2444,4222,4224,4242,4244,4422,4424,4442,4444,22222,22224,22242,22244,22422,22424,22442,22444,24222,24224,24242,24244,24422,24424 seq $0,32924 ; Numbers whose ternary expansion contains no 0. seq $0,7089 ; Numbers in base 3. mul $0,2
52
213
0.758242
ab7b1fa05d93de27ca7aad539011334317c8a263
778
asm
Assembly
oeis/245/A245830.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/245/A245830.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/245/A245830.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A245830: The Szeged index of a benzenoid consisting of a linear chain of n hexagons. ; 54,243,656,1381,2506,4119,6308,9161,12766,17211,22584,28973,36466,45151,55116,66449,79238,93571,109536,127221,146714,168103,191476,216921,244526,274379,306568,341181,378306,418031,460444,505633,553686,604691,658736,715909,776298,839991,907076,977641,1051774,1129563,1211096,1296461,1385746,1479039,1576428,1678001,1783846,1894051,2008704,2127893,2251706,2380231,2513556,2651769,2794958,2943211,3096616,3255261,3419234,3588623,3763516,3944001,4130166,4322099,4519888,4723621,4933386,5149271,5371364 mov $5,$0 mul $0,2 mov $3,$0 add $3,3 mov $0,$3 lpb $0 sub $0,1 add $2,$3 add $3,4 trn $1,$3 add $3,4 add $4,$2 lpe add $1,$4 lpb $5 add $1,4 sub $5,1 lpe add $1,4 mov $0,$1
32.416667
499
0.757069
e2b05306336c698b1be00c0f8d1b7590d2ccd422
517
asm
Assembly
oeis/343/A343069.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/343/A343069.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/343/A343069.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A343069: Decimal expansion of 2*(1+5*sqrt(2))/7. ; Submitted by Christian Krause ; 2,3,0,6,0,1,9,3,7,4,8,1,8,7,0,7,2,1,2,5,7,3,8,4,1,0,3,4,5,8,5,2,8,2,9,6,9,3,8,5,2,4,5,5,3,6,2,5,2,7,8,2,9,6,1,6,8,0,9,7,1,0,5,4,2,7,2,4,7,4,9,6,9,2,3,1,5,8,1,4,8,4,0,7,1,9,8,2,1,9,1,8,9 mov $1,1 mov $2,1 mov $3,$0 mul $3,4 lpb $3 mul $1,$3 mul $2,$3 add $1,$2 cmp $6,0 add $5,$6 div $1,$5 div $2,$5 add $2,$1 mul $1,2 mul $2,7 sub $3,1 lpe mul $1,2 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
17.827586
187
0.526112
ccf0640fc2a60468d161944bd27070e92f10ba72
563
asm
Assembly
oeis/017/A017805.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017805.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017805.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017805: Binomial coefficients C(89,n). ; 1,89,3916,113564,2441626,41507642,581106988,6890268572,70625252863,635627275767,5085018206136,36519676207704,237377895350076,1406007533996604,7632612327410136,38163061637050680,176504160071359395,757929628541719755,3031718514166879020,11329053395044653180,39651686882656286130,130284114043013511570,402696352496587217580,1173071983359623633820,3225947954238964993005,8387464681021308981813,20646066907129375955232,48174156116635210562208,106671345686835109102032,224377658168860057076688 mov $1,89 bin $1,$0 mov $0,$1
80.428571
489
0.89698
38e9824f101ca18823410f00b13808294f73b79d
363
asm
Assembly
programs/oeis/294/A294486.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/294/A294486.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/294/A294486.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A294486: a(n) = binomial(2n,n) * (2n+1)^2. ; 1,18,150,980,5670,30492,156156,772200,3719430,17551820,81477396,373173528,1690097500,7582037400,33738060600,149067936720,654576544710,2858667619500,12423860225700,53760146239800,231720014946420,995238809839560,4260800401533000 mov $1,$0 add $1,$0 bin $1,$0 mov $2,$0 add $2,1 mov $3,$0 add $3,$2 pow $3,2 mul $1,$3
27.923077
228
0.752066
fbfd1ef49484031857af59e3ad21ec041d92b060
1,901
asm
Assembly
Driver/Printer/PrintCom/Job/jobEndCanonRGB.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/PrintCom/Job/jobEndCanonRGB.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/PrintCom/Job/jobEndCanonRGB.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GlobalPC 1999 -- All Rights Reserved PROJECT: PC GEOS MODULE: Printer Drivers FILE: jobEndCanonRGB.asm AUTHOR: Joon Song, 9 Jan 1999 ROUTINES: Name Description ---- ----------- PrintEndJob Cleanup done at end of print job REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 1/99 Initial revision from jobEndDotMatrix.asm DESCRIPTION: $Id$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PrintEndJob %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do post-job cleanup CALLED BY: GLOBAL PASS: bp - segment of locked PState RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- Joon 1/99 Initial version from jobEndDotMatrix.asm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ PrintEndJob proc far uses ax,bx,cx,dx,si,ds,es .enter mov es, bp ;es --> PState mov bx, es:[PS_deviceInfo] ;get the device specific info. call MemLock mov ds, ax ;segment into ds. mov ax, ds:[PI_customExit] ;get address of any custom routine. call MemUnlock tst ax ;see if a custom routine exists. je useStandard ;if not, skip to use standard init. jmp ax ;else jmp to the custom routine. ;(It had better jump back here to ;somwhere in this routine or else ;things will get ugly on return). useStandard: mov si, offset pr_codes_ReturnToEmulationMode call SendCodeOut ; free color library buffer blocks call CMYKColorLibEnd .leave ret PrintEndJob endp
22.364706
79
0.533403