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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12b8454196dc8b379e688b1262619f1b52dfccf9 | 576 | asm | Assembly | fluidcore/samples/whitenoise-v6.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | 59 | 2015-02-28T14:15:56.000Z | 2022-03-26T12:06:01.000Z | fluidcore/samples/whitenoise-v6.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | 1 | 2016-08-22T05:32:43.000Z | 2016-08-22T09:33:28.000Z | fluidcore/samples/whitenoise-v6.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | 9 | 2015-02-28T14:16:31.000Z | 2022-01-18T17:52:48.000Z | db 6,0,2,4,6,0,0,3,5,1,2,3,1,5,5,0
db 6,6,5,5,3,5,2,2,1,4,0,3,4,5,0,0
db 4,6,3,1,0,0,4,2,3,3,5,2,3,6,1,6
db 2,0,0,5,5,4,6,6,4,3,6,5,3,3,0,6
db 3,3,3,5,4,3,0,0,5,4,2,5,3,1,1,6
db 5,3,0,6,4,5,4,1,4,1,4,4,2,0,5,0
db 0,1,5,3,6,5,5,0,3,4,0,4,1,3,2,0
db 5,5,6,6,1,3,6,3,2,1,4,0,0,2,3,1
db 0,3,2,1,1,6,4,0,4,5,0,1,6,1,1,4
db 6,2,3,6,0,0,5,0,6,5,6,4,1,6,0,3
db 2,2,6,1,4,1,6,4,0,1,0,6,6,2,0,3
db 1,5,4,4,0,2,0,4,3,2,5,5,0,4,6,3
db 3,0,0,4,6,0,5,3,4,6,6,5,1,3,3,4
db 2,2,1,6,3,4,4,6,1,6,4,1,0,0,3,5
db 5,1,4,1,4,0,6,5,0,3,2,4,3,6,4,3
db 6,6,6,1,1,1,6,0,4,5,1,0,2,2,3,2
| 33.882353 | 35 | 0.5 |
376223a18a37ff2652d2f7b07aaed02fa007eb74 | 593 | asm | Assembly | programs/oeis/000/A000523.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/000/A000523.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/000/A000523.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A000523: a(n) = floor(log_2(n)).
; 0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
add $0,1
lpb $0,$0
div $0,2
add $2,1
lpe
mov $1,$2
| 59.3 | 501 | 0.50253 |
0ea1124e83aa2ab957d9d481138bd6666c61c884 | 10,182 | asm | Assembly | 2020/19/monster_messages_p1.asm | ped7g/adventofcode | e0be0b77b4d6307ff023a66bb715551e77444fb5 | [
"MIT"
] | 2 | 2021-01-01T07:28:30.000Z | 2021-01-06T21:35:35.000Z | 2020/19/monster_messages_p1.asm | ped7g/adventofcode | e0be0b77b4d6307ff023a66bb715551e77444fb5 | [
"MIT"
] | null | null | null | 2020/19/monster_messages_p1.asm | ped7g/adventofcode | e0be0b77b4d6307ff023a66bb715551e77444fb5 | [
"MIT"
] | null | null | null | ; https://adventofcode.com/2020/day/19 (part 1)
;
; !!! WARNING !!! This solution did pass the puzzle input and answered correct "250"
; but the algorithm is not correct in general way, after submitting the answer I got
; bad feeling about it, and surely within seconds I managed to produce "input_t2.txt"
; giving wrong answer. I'm not sure if I get correct answer for input.txt just because
; of pure luck (messages to test do hit exactly the combinations which are covered),
; or because the rules-set actually works with this limited algorithm, I think it's
; the first option, and it would be possible to produce message which would fail.
;
; Anyway, for archival purposes and as curiosity, my original part 1 "solution" is here:
OPT listoff : DEVICE ZXSPECTRUMNEXT : MMU 0 7, 0, $0000
inputFile: ; load the input.txt into virtual device memory for processing
; DEFINE MAX_PER_RULE 3 : INCBIN "input_t.txt" ; expected result 2
; DEFINE MAX_PER_RULE 3 : INCBIN "input_t2.txt" ; expected result 1
DEFINE MAX_PER_RULE 2 : INCBIN "input.txt"
inputEnd:
ASSERT "\n" == {b $-1} ; verify there is ending EOL
DS 128,0 : ALIGN 256,0 ; zeroed padding after + align address
RULE_A EQU 250
RULE_B EQU 251
RULE_EOL EQU 252
RULE_N EQU 255 ; no rule
RULE_EX EQU 254 ; rule was already expanded
; memory structures for parsing rules
rulesA: DS 150*MAX_PER_RULE,RULE_N
rulesB: DS 150*MAX_PER_RULE,RULE_N
; memory structures for validation tree
STRUCT S_NODE
NA WORD 0 ; next node variant A
NB WORD 0 ; next node variant B
RULE BYTE RULE_N ; rule itself (RULE_A/B/EOL/N/EX or just number 0..249)
ENDS
DS 2*S_NODE,0 : ALIGN 256,0 ; some padding + align address
nodes:
MACRO PARSE_VALUE symbol?
symbol? = 0
WHILE '0' <= {b inPtr} && {b inPtr} <= '9'
symbol? = symbol? * 10 + {b inPtr} - '0'
inPtr = inPtr + 1
ENDW
ENDM
MACRO PARSE_RULE tab?, rule_num?
ORG (tab?) + (rule_num?) * MAX_PER_RULE
WHILE ('0' <= {b inPtr} && {b inPtr} <= '9') || ('"' == {b inPtr})
IF '"' == {b inPtr}
DB {b inPtr + 1} - 'a' + RULE_A
ASSERT '"a' == {inPtr+1} || '"b' == {inPtr+1}
inPtr = inPtr + 3
ELSE
PARSE_VALUE r1 : DB r1
IF ' ' == {b inPtr}
inPtr = inPtr + 1
ENDIF
ENDIF
ENDW
ENDM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; parse rules first
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
inPtr = inputFile
rules = 0
rule_num = 0
r1 = 0
WHILE inPtr < inputEnd && {b inPtr} && "\n" != {b inPtr}
PARSE_VALUE rule_num : ASSERT ' :' == {inPtr}
inPtr = inPtr + 2
PARSE_RULE rulesA, rule_num
IF ' |' == {inPtr}
inPtr = inPtr + 2
PARSE_RULE rulesB, rule_num
ENDIF
ASSERT "\n" == {b inPtr}
inPtr = inPtr + 1
rules = rules + 1
ENDW
DISPLAY "Parsed ",/D,rules," rules"
; skip empty line between rules and input lines
ASSERT "\n" == {b inPtr}
inPtr = inPtr + 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; substitute trivial rules - assumes continuous rules numbering
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
r1Ptr = 0
r2Ptr = 0
wasChange = 1
WHILE 3 == __PASS__ && wasChange
r1Ptr = rulesA
wasChange = 0
DUP rules
IF $FF != {b r1Ptr} && $FF == {b r1Ptr+1} && $FF == {b r1Ptr-rulesA+rulesB}
rule_num = (r1Ptr-rulesA)/MAX_PER_RULE
r1 = {b r1Ptr}
DISPLAY "Trivial rule: ",/D,rule_num," -> ",/D,r1
wasChange = 1
r2Ptr = rulesA
DUP rules * MAX_PER_RULE ; substitute trivial rules
IF rule_num == {b r2Ptr} : ORG r2Ptr : DB r1 : ENDIF
r2Ptr = r2Ptr + 1
EDUP
r2Ptr = rulesB
DUP rules * MAX_PER_RULE ; substitute trivial rules
IF rule_num == {b r2Ptr} : ORG r2Ptr : DB r1 : ENDIF
r2Ptr = r2Ptr + 1
EDUP
ORG r1Ptr : DB $FF
ENDIF
r1Ptr = r1Ptr + MAX_PER_RULE
EDUP
ENDW
r1Ptr = rulesA
DUP rules
r2Ptr = r1Ptr - rulesA + rulesB
IF 3 == MAX_PER_RULE
DISPLAY "Rule ",/D,(r1Ptr-rulesA)/MAX_PER_RULE,": ",/D,{b r1Ptr}," ",/D,{b r1Ptr+1}," ",/D,{b r1Ptr+2}," | ",/D,{b r2Ptr}," ",/D,{b r2Ptr+1}," ",/D,{b r2Ptr+2}
ELSE
DISPLAY "Rule ",/D,(r1Ptr-rulesA)/MAX_PER_RULE,": ",/D,{b r1Ptr}," ",/D,{b r1Ptr+1}," | ",/D,{b r2Ptr}," ",/D,{b r2Ptr+1}
ENDIF
r1Ptr = r1Ptr + MAX_PER_RULE
EDUP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; check the messages for legitimacy
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
nodesNext = 0
MACRO ADD_NODE nextA?, rule?
; DISPLAY "Adding node ",nodesNext,": nextA ",nextA?," rule ",/D,rule?
ORG nodesNext
DW nextA?, 0 ; nextB is always nullptr in ADD_NODE (EXPAND is using it as needed)
DB rule?
nodesNext = $ : ASSERT $ < $FFF0
ENDM
; rPtr? - pointer into RulesA/RulesB, nextPtr? -> chain result here, endNode? -> reconnect here
MACRO INSERT_RULE rPtr?, endNode?, nextPtr?
; calculate length of rule (0,1,..,MAX_PER_RULE)
IF 3 == MAX_PER_RULE && $FF != {b (rPtr?) + 2}
ORG nextPtr? : DW nodesNext ; chain to the nodes which will be added
ADD_NODE nodesNext + S_NODE, {b (rPtr?) + 0}
ADD_NODE nodesNext + S_NODE, {b (rPtr?) + 1}
ADD_NODE (endNode?), {b (rPtr?) + 2}
ELSEIF $FF != {b (rPtr?) + 1}
ORG nextPtr? : DW nodesNext ; chain to the nodes which will be added
ADD_NODE nodesNext + S_NODE, {b (rPtr?) + 0}
ADD_NODE (endNode?), {b (rPtr?) + 1}
ELSEIF $FF != {b (rPtr?) + 0}
ORG nextPtr? : DW nodesNext ; chain to the nodes which will be added
ADD_NODE (endNode?), {b (rPtr?) + 0}
ELSE ; there is no rule content in the table, chain to 0 (nullptr)
ORG nextPtr? : DW 0
ENDIF
ENDM
expandRuleReconnectTo = 0
MACRO EXPAND_RULE ; node point to current node (to expand)
; DISPLAY "Expanding node ",node," (",/D,{b node + S_NODE.RULE},")"
expandRuleReconnectTo = { node + S_NODE.NA }
ASSERT 0 == { node + S_NODE.NB } ; B-variant on unexpanded should be zero
; expand both variants (will set zero to NA/NB if they don't exist)
INSERT_RULE rulesA + {b node + S_NODE.RULE} * MAX_PER_RULE, expandRuleReconnectTo, node + S_NODE.NA
INSERT_RULE rulesB + {b node + S_NODE.RULE} * MAX_PER_RULE, expandRuleReconnectTo, node + S_NODE.NB
ORG node + S_NODE.RULE : DB RULE_EX ; mark as already expanded
ENDM
match = 0
checkPtr = 0
checkLetter = 0
node = 0
lastChoiceNode = 0
WHILE inPtr < inputEnd && ('a' == {b inPtr} || 'b' == {b inPtr})
DISPLAY "Starting new word check, matches so far: ",/D,match
; check against rule 0 (test and real inputs have only single variant for 0)
nodesNext = nodes
ADD_NODE nodesNext + S_NODE, 0 ; add node with rule 0 (leading to EOL node)
ADD_NODE 0, RULE_EOL ; end it with EOL node
lastChoiceNode = 1 ; kickoff with non-zero value (for WHILE test)
WHILE lastChoiceNode
; DISPLAY "Starting new check traversal"
checkPtr = inPtr
node = nodes
lastChoiceNode = 0
WHILE node
IF {b node + S_NODE.RULE} < RULE_A || {b node + S_NODE.RULE} == RULE_EX
; if rule is unexpanded - expand it, before traversing it's choices
IF {b node + S_NODE.RULE} < RULE_A : EXPAND_RULE : ENDIF
; traverse expanded rule (first variants A, then variants B when A is removed)
ASSERT RULE_EX == {b node + S_NODE.RULE}
; DISPLAY "Traversing through expanded node ",node," to [",{node + S_NODE.NA},",",{node + S_NODE.NB},"]"
IF {node + S_NODE.NB}
IF {node + S_NODE.NA}
lastChoiceNode = node ; this node had two choices, remember it for case of mismatch
node = {node + S_NODE.NA}
ELSE
node = {node + S_NODE.NB}
ENDIF
ELSE
node = {node + S_NODE.NA}
ENDIF
ELSEIF {b node + S_NODE.RULE} <= RULE_EOL
; DISPLAY "Letter ",/C,{b node + S_NODE.RULE}-RULE_A+'a'," check, node ",node," vs ",/C,{b checkPtr}," @",checkPtr
; convert input character to RULE_A/B/EOL value
IF "\n" == {b checkPtr}
checkLetter = RULE_EOL
ELSE
checkLetter = {b checkPtr} - 'a' + RULE_A
ENDIF
IF {b node + S_NODE.RULE} == checkLetter
; letter match
IF RULE_EOL == checkLetter
match = match + 1
lastChoiceNode = 0 ; node will become 0 too, so this will end outer WHILE
ELSE
checkPtr = checkPtr + 1 : ASSERT {node + S_NODE.NA} && !{node + S_NODE.NB} ; letter nodes've only NextA variant
ENDIF
node = {node + S_NODE.NA}
ELSE
; letter mismatch - disable last choice taken
; DISPLAY "Letter mismatch, removing choice from ",lastChoiceNode
ASSERT !lastChoiceNode || {lastChoiceNode + S_NODE.NA} ; if there was lastChoice, A-variant is required
IF lastChoiceNode : ORG lastChoiceNode + S_NODE.NA : DW 0 : ENDIF
node = 0 ; restart check from first node
ENDIF
ELSE : ASSERT 0 && "??2" : ENDIF
ENDW
ENDW
; check is done, skip remaining characters of message (if any are left)
WHILE "\n" != {b inPtr} && inPtr < inputEnd
inPtr = inPtr + 1
ENDW
inPtr = inPtr + 1 ; eat newline too
ENDW
DISPLAY "Total match: ",/D,match
| 41.222672 | 171 | 0.544196 |
206ba52ab13171c3abd9f17293bfb8b33187a29f | 6,837 | asm | Assembly | Transynther/x86/_processed/US/_st_4k_/i9-9900K_12_0xa0_notsx.log_750_1361.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_4k_/i9-9900K_12_0xa0_notsx.log_750_1361.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_4k_/i9-9900K_12_0xa0_notsx.log_750_1361.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x196cc, %r13
nop
nop
nop
nop
nop
sub %rbx, %rbx
movw $0x6162, (%r13)
sub %r11, %r11
lea addresses_normal_ht+0x183ec, %rsi
lea addresses_WT_ht+0xc2cc, %rdi
sub $25665, %r13
mov $1, %rcx
rep movsb
xor %r13, %r13
lea addresses_normal_ht+0xd6cc, %rsi
lea addresses_WT_ht+0x126cc, %rdi
clflush (%rdi)
nop
nop
nop
cmp %r12, %r12
mov $31, %rcx
rep movsq
cmp $3831, %rsi
lea addresses_normal_ht+0x2a0c, %rsi
lea addresses_normal_ht+0x1d2d2, %rdi
nop
nop
nop
nop
nop
sub $36490, %r12
mov $58, %rcx
rep movsw
nop
sub $25566, %r11
lea addresses_UC_ht+0x92cc, %rdi
nop
nop
nop
nop
nop
xor %rbx, %rbx
mov $0x6162636465666768, %r15
movq %r15, (%rdi)
nop
nop
add %r15, %r15
lea addresses_A_ht+0xd96c, %rsi
lea addresses_WC_ht+0x954c, %rdi
mfence
mov $122, %rcx
rep movsw
nop
nop
nop
nop
sub $65077, %rdi
lea addresses_UC_ht+0x92cc, %rdi
nop
nop
nop
sub $39104, %rbx
and $0xffffffffffffffc0, %rdi
movntdqa (%rdi), %xmm2
vpextrq $0, %xmm2, %rcx
nop
xor %rbx, %rbx
lea addresses_A_ht+0xb154, %rcx
nop
xor %rsi, %rsi
mov (%rcx), %r13w
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x2dcc, %r12
nop
nop
nop
nop
nop
and %rbx, %rbx
mov (%r12), %cx
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_normal_ht+0xeacc, %r13
nop
nop
nop
nop
nop
and $48878, %rdi
mov $0x6162636465666768, %r11
movq %r11, (%r13)
nop
nop
nop
dec %rsi
lea addresses_A_ht+0x1ba0c, %rsi
lea addresses_UC_ht+0xcccc, %rdi
nop
nop
nop
nop
sub $33749, %rbx
mov $74, %rcx
rep movsb
nop
nop
xor $28751, %rbx
lea addresses_A_ht+0x15179, %r13
nop
nop
inc %rdi
mov (%r13), %rsi
nop
xor $58258, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %rdi
push %rdx
push %rsi
// Store
lea addresses_US+0xc6cc, %rsi
nop
nop
nop
nop
xor %r11, %r11
mov $0x5152535455565758, %rdx
movq %rdx, %xmm3
movntdq %xmm3, (%rsi)
nop
add $23104, %r12
// Store
lea addresses_UC+0x152cc, %r12
and $34574, %r15
movw $0x5152, (%r12)
nop
nop
nop
nop
nop
add $54022, %r14
// Faulty Load
lea addresses_US+0x72cc, %r11
nop
nop
nop
nop
nop
inc %rdi
mov (%r11), %r12d
lea oracles, %r11
and $0xff, %r12
shlq $12, %r12
mov (%r11,%r12,1), %r12
pop %rsi
pop %rdx
pop %rdi
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}}
[Faulty Load]
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': True}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'52': 750}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 30.659193 | 2,249 | 0.658622 |
d23b1f68a49c9f76f0b0ee80c43c8f7f2a9d0a85 | 297 | asm | Assembly | oeis/040/A040506.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/040/A040506.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/040/A040506.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A040506: Continued fraction for sqrt(530).
; Submitted by Christian Krause
; 23,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46
min $0,1
add $0,1
mul $0,23
| 37.125 | 190 | 0.680135 |
9fa0eb1ce97bcb38a14056725f72bc42276558a4 | 3,119 | asm | Assembly | libsrc/_DEVELOPMENT/math/integer/small/l_small_divs_64_64x64.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/integer/small/l_small_divs_64_64x64.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/integer/small/l_small_divs_64_64x64.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; 2016 aralbrec
SECTION code_clib
SECTION code_math
PUBLIC l_small_divs_64_64x64
EXTERN error_divide_by_zero_mc, l_offset_ix_de
EXTERN l_neg_64_mhl, l_neg_64_dehldehl
EXTERN l_small_divu_64_64x64, l_setmem_hl
l_small_divs_64_64x64:
; signed 64-bit division
;
; enter : +------------------------
; | +15
; | ... divisor (8 bytes)
; | + 8
; ix = |------------------------
; | + 7
; | ... dividend (8 bytes)
; | + 0
; +------------------------
;
; exit : success
;
; +------------------------
; | +15
; | ... divisor (8 bytes)
; | + 8
; ix = |------------------------
; | + 7
; | ... quotient (8 bytes)
; | + 0
; +------------------------
;
; dehl' dehl = remainder
; carry reset
;
; divide by zero
;
; +------------------------
; | +15
; | ... divisor (8 bytes)
; | + 8
; ix = |------------------------
; | + 7
; | ... quotient(8 bytes)
; | + 0 LONGLONG_MAX or LONGLONG_MIN
; +------------------------
;
; dehl' dehl = dividend
; carry set, errno set
;
; uses : af, bc, de, hl, af', bc', de', hl'
ld b,(ix+7) ; b = MSB of dividend
ld c,(ix+15) ; c = MSB of divisor
ld a,c
or (ix+14)
or (ix+13)
or (ix+12)
or (ix+11)
or (ix+10)
or (ix+9)
or (ix+8)
jr z, divide_by_zero
push bc ; save sign info
bit 7,b
jr z, dividend_positive
; take absolute value of dividend
push ix
pop hl ; hl = & dividend
call l_neg_64_mhl
dividend_positive:
bit 7,c
jr z, divisor_positive
; take absolute value of divisor
ld hl,8
call l_offset_ix_de ; hl = & divisor
call l_neg_64_mhl
divisor_positive:
; perform unsigned division
call l_small_divu_64_64x64
; dehl dehl' = remainder
pop bc ; bc = sign info
ld a,b
xor c
jp p, quotient_positive
; negate quotient
push ix
ex (sp),hl
call l_neg_64_mhl
pop hl
quotient_positive:
bit 7,b
ret z ; if dividend > 0
; negate remainder
jp l_neg_64_dehldehl
divide_by_zero:
call error_divide_by_zero_mc
ld d,(ix+7)
ld e,(ix+6)
ld h,(ix+5)
ld l,(ix+4)
bit 7,d
exx
ld b,(ix+3)
ld c,(ix+2)
ld d,(ix+1)
ld e,(ix+0)
push ix
pop hl
jr z, pos_inf
neg_inf:
ld a,0
call l_setmem_hl - 14
ld (hl),0x80
jr exit
pos_inf:
ld a,0xff
call l_setmem_hl - 14
ld (hl),0x7f
exit:
ex de,hl
ld e,c
ld d,b
ret
| 17.822857 | 56 | 0.399808 |
a8c2ae24981261d58ce145cd7499b694adb21d19 | 18,698 | asm | Assembly | Appl/SDK_Asm/no_go/GenItemGroup/genitemgroup.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/SDK_Asm/no_go/GenItemGroup/genitemgroup.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/SDK_Asm/no_go/GenItemGroup/genitemgroup.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GenItemGroup (Sample PC GEOS application)
FILE: genitemgroup.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 11/90 Initial version
Eric 3/91 Simplified by removing text color changes.
DESCRIPTION:
This file source code for the GenItemGroup application. This code will
be assembled by ESP, and then linked by the GLUE linker to produce
a runnable .geo application file.
IMPORTANT:
This example is written for the PC/GEOS V1.0 API. For the V2.0 API,
we have new ObjectAssembly and Object-C versions.
RCS STAMP:
$Id: genitemgroup.asm,v 1.1 97/04/04 16:34:23 newdeal Exp $
------------------------------------------------------------------------------@
;------------------------------------------------------------------------------
; Include files
;------------------------------------------------------------------------------
include geos.def
include heap.def
include geode.def
include resource.def
include ec.def
include object.def
include graphics.def
include Objects/winC.def
;------------------------------------------------------------------------------
; Libraries used
;------------------------------------------------------------------------------
UseLib ui.def
;------------------------------------------------------------------------------
; Class & Method Definitions
;------------------------------------------------------------------------------
;Here we define "GenItemGroupProcessClass" as a subclass of the system provided
;"GenProcessClass". As this application is launched, an instance of this class
;will be created, and will handle all application-related events (messages).
;The application thread will be responsible for running this object,
;meaning that whenever this object handles a method, we will be executing
;in the application thread.
GenItemGroupProcessClass class GenProcessClass
MSG_SELECTION_STATUS message
; Handles any change to the selection object. The selection object basically
; is a poor man's way of selecting the sample text. We'll use the status
; message to notify us of any user change to the selection group. Any time
; we receive the message, we'll recalculate the correct attributes to set
; for the selection.
;
; Pass: cx -- selected item (if there is one selection)
; bp -- num selections
; Return: nothing
; ax, cx, dx, bp -- destroyed
MSG_COLOR_APPLY message
;
; Handles an apply of the color group, to set a new color for the current
; selection.
;
; Pass: cx -- selection
; Return: nothing
; ax, cx, dx, bp -- destroyed
;
MSG_COLOR_STATUS message
;
; Sent on any user change to the color group. Used to adjust the RGB group
; to match the color group.
;
; Pass: cx -- selection
; Return: nothing
; ax, cx, dx, bp -- destroyed
;
MSG_RGB_APPLY message
;
; Handles an apply of the RGB group. We'll make changes to the selection
; for those RGB elements that are marked as modified.
;
; Pass: cx -- selected booleans
; bp -- modified booleans
; Return: nothing
; ax, cx, dx, bp -- destroyed
;
MSG_RGB_STATUS message
;
; Sent on any user change to the RGB group. Used to adjust the color group
; to match the RGB group.
;
; Pass: cx -- selected booleans
; bp -- changed booleans
; Return: nothing
; ax, cx, dx, bp -- destroyed
;
MAX_SELECTIONS equ 4 ;Number of selections in our sample text
NUM_COLOR_BITS equ 3 ;RGB bits
SelectionItem etype byte
SELECTION_THIS enum SelectionItem
SELECTION_IS enum SelectionItem
SELECTION_A enum SelectionItem
SELECTION_TEST enum SelectionItem
GenItemGroupProcessClass endc ;end of class definition
;This class definition must be stored in memory at runtime, so that
;the PC/GEOS messaging system can examine it. We will place it in this
;application's idata (initialized data) area, which is part of
;the "DGroup" resource.
idata segment
GenItemGroupProcessClass mask CLASSF_NEVER_SAVED
;this flag necessary because ProcessClass
;objects are hybrid objects.
textColor word MAX_SELECTIONS dup (C_VIOLET)
;The current colors for each possible selection in the text.
curTextSelections word MAX_SELECTIONS dup (0)
;Parts of text that are selected
numTextSelections word
;The number of parts that are selected.
idata ends
;------------------------------------------------------------------------------
; Resources
;------------------------------------------------------------------------------
;The "genitemgroup.ui" file, which contains user-interface descriptions for this
;application, is written in a language called Espire. That file gets compiled
;by UIC, and the resulting assembly statements are written into the
;genitemgroup.rdef file. We include that file here, so that these descriptions
;can be assembled into our application.
;
;Precisely, we are assembling .byte and .word statements which comprise the
;exact instance data for each generic object in the .ui file. When this
;application is launched, these resources (such as MenuResource) will be loaded
;into the Global Heap. The objects in the resource can very quickly become
;usable, as they are pre-instantiated.
include genitemgroup.rdef ;include compiled UI definitions
;------------------------------------------------------------------------------
; Code for GenItemGroupProcessClass
;------------------------------------------------------------------------------
CommonCode segment resource ;start of code resource
COMMENT @----------------------------------------------------------------------
FUNCTION: MSG_META_EXPOSED handler.
DESCRIPTION: This method is sent by the Windowing System when we must
redraw a portion of the document in the View area.
PASS: ds = dgroup
cx = handle of window which we must draw to.
RETURN: ds = same
CAN DESTROY: bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 11/90 initial version
------------------------------------------------------------------------------@
GenItemGroupExposed method GenItemGroupProcessClass, MSG_META_EXPOSED
mov di, cx ;set ^hdi = window handle
call GrCreateState ;Get a default graphics state that we
;can use while drawing.
;first, start a window update. This tells the windowing system that
;we are in the process of drawing to this window.
call GrBeginUpdate
;if we had background graphics to draw, we would call the
;apropriate graphics routines now.
;draw the text into the window (pass ^hdi = GState)
mov cx, FID_DTC_URW_ROMAN ;font (URW Roman)
mov dx, 48 ;point size (integer)
clr ah ;point size (fraction) = 0
call GrSetFont
mov ax, ds:textColor
call GrSetTextColor
mov ax, 30 ;position
mov bx, 100
clr cx ;null termed
push ds
segmov ds, cs ;ds:si <- text
mov si, offset thisText
call GrDrawText
pop ds
mov ax, ds:textColor[1*(size word)]
call GrSetTextColor
clr cx ;null termed
push ds
segmov ds, cs ;ds:si <- text
mov si, offset isText
call GrDrawTextAtCP
pop ds
mov ax, ds:textColor[2*(size word)]
call GrSetTextColor
clr cx ;null termed
push ds
segmov ds, cs ;ds:si <- text
mov si, offset aText
call GrDrawTextAtCP
pop ds
mov ax, ds:textColor[3*(size word)]
call GrSetTextColor
clr cx ;null termed
push ds
segmov ds, cs ;ds:si <- text
mov si, offset testText
call GrDrawTextAtCP
pop ds
;now free the GState, and indicate that we are done drawing to the
;window.
call GrEndUpdate
call GrDestroyState
ret
GenItemGroupExposed endm
thisText byte "This ",0
isText byte "is ",0
aText byte "a ",0
testText byte "test ",0
COMMENT @----------------------------------------------------------------------
METHOD: GenItemGroupProcessSelectionStatus --
MSG_SELECTION_STATUS for GenItemGroupProcessClass
DESCRIPTION: Handles a user change of the selection object.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_SELECTION_STATUS
cx - selection
bp - numSelections
dl - GenItemGroupStateFlags
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 4/17/92 Initial Version
------------------------------------------------------------------------------@
GenItemGroupProcessSelectionStatus method dynamic GenItemGroupProcessClass, \
MSG_SELECTION_STATUS
;
; Get the current selections. (If there are multiple selections, we
; have to get them by passing a pointer to a buffer.)
;
mov ds:numTextSelections, bp
mov ds:curTextSelections[0], cx ;assume one selection
cmp bp, 1 ;only one selection?
jbe gotSelections
push bp
mov cx, ds
mov dx, offset curTextSelections
mov bp, MAX_SELECTIONS
mov ax, MSG_GEN_ITEM_GROUP_GET_MULTIPLE_SELECTIONS
GetResourceHandleNS SelectionGroup, bx
mov si, offset SelectionGroup
call ObjMessageCall
pop bp
gotSelections:
mov ax, MSG_GEN_SET_ENABLED ;assume enabling gadgets
tst bp ;selections?
jnz enableGadgets ;yes, branch
mov ax, MSG_GEN_SET_NOT_ENABLED ;else we'll disable them
enableGadgets:
;
; Disable various UI gadgets that pertain to a selection.
;
push bp
mov dl, VUM_NOW
GetResourceHandleNS ColorsGroup, bx
mov si, offset ColorsGroup
push ax, dx
call ObjMessageCall
pop ax, dx
mov si, offset RGBGroup
call ObjMessageCall
pop bp
tst bp ;any selections?
jz exit ;no, exit
;
; Set the proper state for the various UI gadgets. We'll get the color
; of the first selection, and keep track of which color bits are
; indeterminate, by comparing them to the first selection's state. (The
; individual bits' indeterminate states are needed for the RGB group.)
;
clr dx ;assume no indeterminates
mov di, ds:curTextSelections[0] ;get first text selection
shl di, 1 ;double for word offset
mov cx, ds:textColor[di] ;get color of first selection
mov bx, 1 ;start at second text selection
calcIndeterminate:
cmp bx, ds:numTextSelections ;see if done
jae indeterminateCalced ;yes, exit
push bx
shl bx, 1 ;double for word offset
mov di, ds:curTextSelections[bx] ;get the selection
shl di, 1 ;double for word offset
mov ax, ds:textColor[di] ;get the color of the selection
xor ax, cx ;find diffs with first selection
or dx, ax ;or them into indeterminate
pop bx
inc bx
jmp short calcIndeterminate
indeterminateCalced:
;
; We have our initial and indeterminate state. Conveniently, we can
; pass the same values to both our boolean RGB gadget and our exclusive
; color gadget.
; cx -- first selection color
; dx -- indeterminate color bits
;
mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION
GetResourceHandleNS ColorsGroup, bx
mov si, offset ColorsGroup
push cx, dx
call ObjMessageCall
pop cx, dx
mov ax, MSG_GEN_BOOLEAN_GROUP_SET_GROUP_STATE
mov si, offset RGBGroup
call ObjMessageCall
exit:
ret
GenItemGroupProcessSelectionStatus endm
ObjMessageCall proc near
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
ret
ObjMessageCall endp
COMMENT @----------------------------------------------------------------------
ROUTINE: RedrawViewArea
SYNOPSIS: Redraws view.
CALLED BY: GenItemGroupProcessColorApply,
GenItemGroupProcessRGBApply
PASS: ds -- dgroup
RETURN: nothing
DESTROYED: anything
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 4/17/92 Initial version
------------------------------------------------------------------------------@
RedrawViewArea proc near
;
; Get the window to draw to.
;
GetResourceHandleNS GenItemGroupView, bx
mov si, offset GenItemGroupView
mov ax, MSG_GEN_VIEW_GET_WINDOW
call ObjMessageCall ;cx <- view window
mov di, cx
call GrCreateState ;di <- gstate
clr ax
mov bx, ax
mov cx, 1000
mov dx, cx
call GrInvalRect ;invalidate some large area
call GrDestroyState
ret
RedrawViewArea endp
COMMENT @----------------------------------------------------------------------
METHOD: GenItemGroupProcessColorApply --
MSG_COLOR_APPLY for GenItemGroupProcessClass
DESCRIPTION: Handles an apply of the color group object.
PASS: ds - dgroup
ax - MSG_COLOR_APPLY
cx - selection
bp - numSelections
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 4/17/92 Initial Version
------------------------------------------------------------------------------@
GenItemGroupProcessColorApply method dynamic GenItemGroupProcessClass, \
MSG_COLOR_APPLY
mov dx, cx ;put color in dx
mov cx, ds:numTextSelections ;do all text selections
setColors:
;
; For each text selection, set a new color.
; cx -- the text selection to change, plus one
; dx -- the color to use
;
mov di, cx
dec di
shl di, 1
mov di, ds:curTextSelections[di] ;get text selections
shl di, 1
mov ds:textColor[di], dx ;stuff a new text color
loop setColors ;loop to do more
call RedrawViewArea ;redraw everything
ret
GenItemGroupProcessColorApply endm
COMMENT @----------------------------------------------------------------------
METHOD: GenItemGroupProcessColorStatus --
MSG_COLOR_STATUS for GenItemGroupProcessClass
DESCRIPTION: Handles any user change of the color group object.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_COLOR_STATUS
cx - selection
bp - num selections
dl - GenItemStateFlags
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 4/17/92 Initial Version
------------------------------------------------------------------------------@
GenItemGroupProcessColorStatus method dynamic GenItemGroupProcessClass, \
MSG_COLOR_STATUS
;
; We'll set the RGB Group to match the Color group, taking advantage of
; the fact that the data of each is identical. Also, since the user has
; set a new color for the *entire* selection, there is no longer any
; indeterminate state. We will not mark the RGB group modified, as
; we only really need to send an apply message from the ColorGroup if
; this turns out to be the only user action.
;
clr dx ;no indeterminate booleans
mov si, offset RGBGroup
GetResourceHandleNS RGBGroup, bx
mov ax, MSG_GEN_BOOLEAN_GROUP_SET_GROUP_STATE
call ObjMessageCall
ret
GenItemGroupProcessColorStatus endm
COMMENT @----------------------------------------------------------------------
METHOD: GenItemGroupProcessRGBApply --
MSG_RGB_APPLY for GenItemGroupProcessClass
DESCRIPTION: Handles an apply for the RGB thing.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_RGB_APPLY
cx - selected booleans
dx - indeterminate booleans
bp - modified booleans
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 4/17/92 Initial Version
------------------------------------------------------------------------------@
GenItemGroupProcessRGBApply method dynamic GenItemGroupProcessClass, \
MSG_RGB_APPLY
mov dx, cx ;put colors in dx
and dx, bp ;only care about modified bits
not bp ;invert
mov cx, ds:numTextSelections ;do all text selections
setColors:
;
; For each text selection, we will change the bits that have been
; modified by the user.
; cx -- the text selection to change, plus one
; bp -- the color bits to change, inverted
; dx -- the color bits that should be set
;
mov di, cx
dec di
shl di, 1
mov di, ds:curTextSelections[di] ;get text selections
shl di, 1
and ds:textColor[di], bp ;clear bits being changed
or ds:textColor[di], dx ;or in bits to set
loop setColors ;loop to do more
call RedrawViewArea ;redraw everything
ret
GenItemGroupProcessRGBApply endm
COMMENT @----------------------------------------------------------------------
METHOD: GenItemGroupProcessRGBStatus --
MSG_RGB_STATUS for GenItemGroupProcessClass
DESCRIPTION: Handles any user change of the color group object.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_RGB_STATUS
cx - selected booleans
bp - changed booleans
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 4/17/92 Initial Version
------------------------------------------------------------------------------@
GenItemGroupProcessRGBStatus method dynamic GenItemGroupProcessClass, \
MSG_RGB_STATUS
; We'll go set the ColorsGroup to match the RGBGroup, taking advantage
; of the fact that the data is identical for both, and that if anything
; is still indeterminate for the RGB Group, the Color group must stay
; indeterminate. We will not set the ColorGroup modified, as only one
; of the two groups really need send an apply message for this action.
;
mov si, offset ColorsGroup
GetResourceHandleNS ColorsGroup, bx
mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION
call ObjMessageCall
ret
GenItemGroupProcessRGBStatus endm
CommonCode ends ;end of CommonCode resource
| 26.372355 | 81 | 0.629105 |
420d17401275c6b76334ee0862167c805a40ea08 | 610 | asm | Assembly | programs/oeis/080/A080151.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/080/A080151.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/080/A080151.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A080151: Let m = Wonderful Demlo number A002477(n); a(n) = sum of digits of m.
; 1,4,9,16,25,36,49,64,81,82,85,90,97,106,117,130,145,162,163,166,171,178,187,198,211,226,243,244,247,252,259,268,279,292,307,324,325,328,333,340,349,360,373,388,405,406,409,414,421,430,441,454,469,486,487,490,495,502,511,522,535,550,567,568,571,576,583,592,603,616,631,648,649,652,657,664,673,684,697,712,729,730,733,738,745,754,765,778,793,810,811,814,819,826,835,846,859,874,891,892
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
mod $0,9
mov $3,$0
mul $3,2
add $3,1
add $1,$3
lpe
mov $0,$1
| 33.888889 | 385 | 0.665574 |
7e1926c222d79c3d77f8da424be6b09387cf2db6 | 214 | asm | Assembly | programs/oeis/216/A216100.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/216/A216100.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/216/A216100.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A216100: 11^n mod 100.
; 1,11,21,31,41,51,61,71,81,91,1,11,21,31,41,51,61,71,81,91,1,11,21,31,41,51,61,71,81,91,1,11,21,31,41,51,61,71,81,91,1,11,21,31,41,51,61,71,81,91,1
mod $0,10
mov $1,$0
mul $1,10
add $1,1
| 26.75 | 148 | 0.626168 |
589066c958e8a76552eab54b4726d65ec90e83bc | 721 | asm | Assembly | oeis/224/A224500.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/224/A224500.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/224/A224500.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A224500: Number of ordered full binary trees with labels from a set of at most n labels.
; Submitted by Jamie Morken(s2)
; 1,4,21,184,2425,42396,916909,23569456,701312049,23697421300,896146948741,37491632258664,1719091662617641,85724109916049164,4618556912276116125,267351411229327901536,16547551265061986364769,1090506038795558789135076,76234505063400211010327029,5634709420806553357800261400,439043283838645698385394488281,35967276967259842483932520569724,3090517287173805474644214574597261,277928083651828392684101734395936144,26106478287355011979423820168452596625,2556748542082963346694548023237213451476
mul $0,2
mov $1,1
lpb $0
sub $0,2
sub $2,$1
mul $2,2
sub $1,$2
add $1,1
mul $2,$0
lpe
mov $0,$1
| 45.0625 | 488 | 0.841886 |
62643528a06509e83ef965b76d401865465bc7a1 | 2,042 | asm | Assembly | programs/oeis/001/A001752.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/001/A001752.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/001/A001752.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A001752: Expansion of 1/((1+x)*(1-x)^5).
; 1,4,11,24,46,80,130,200,295,420,581,784,1036,1344,1716,2160,2685,3300,4015,4840,5786,6864,8086,9464,11011,12740,14665,16800,19160,21760,24616,27744,31161,34884,38931,43320,48070,53200,58730,64680,71071,77924,85261,93104,101476,110400,119900,130000,140725,152100,164151,176904,190386,204624,219646,235480,252155,269700,288145,307520,327856,349184,371536,394944,419441,445060,471835,499800,528990,559440,591186,624264,658711,694564,731861,770640,810940,852800,896260,941360,988141,1036644,1086911,1138984,1192906,1248720,1306470,1366200,1427955,1491780,1557721,1625824,1696136,1768704,1843576,1920800,2000425,2082500,2167075,2254200,2343926,2436304,2531386,2629224,2729871,2833380,2939805,3049200,3161620,3277120,3395756,3517584,3642661,3771044,3902791,4037960,4176610,4318800,4464590,4614040,4767211,4924164,5084961,5249664,5418336,5591040,5767840,5948800,6133985,6323460,6517291,6715544,6918286,7125584,7337506,7554120,7775495,8001700,8232805,8468880,8709996,8956224,9207636,9464304,9726301,9993700,10266575,10545000,10829050,11118800,11414326,11715704,12023011,12336324,12655721,12981280,13313080,13651200,13995720,14346720,14704281,15068484,15439411,15817144,16201766,16593360,16992010,17397800,17810815,18231140,18658861,19094064,19536836,19987264,20445436,20911440,21385365,21867300,22357335,22855560,23362066,23876944,24400286,24932184,25472731,26022020,26580145,27147200,27723280,28308480,28902896,29506624,30119761,30742404,31374651,32016600,32668350,33330000,34001650,34683400,35375351,36077604,36790261,37513424,38247196,38991680,39746980,40513200,41290445,42078820,42878431,43689384,44511786,45345744,46191366,47048760,47918035,48799300,49692665,50598240,51516136,52446464,53389336,54344864,55313161,56294340,57288515,58295800,59316310,60350160,61397466,62458344,63532911,64621284,65723581,66839920,67970420,69115200,70274380,71448080,72636421,73839524,75057511,76290504,77538626,78802000,80080750,81375000,82684875,84010500
add $0,3
pow $0,2
lpb $0
sub $0,4
add $1,$0
lpe
div $1,6
| 185.636364 | 1,936 | 0.852595 |
1aeb11b830a19ccc4a549e22348733eab9ac56d5 | 1,274 | asm | Assembly | src/util/sprite/left.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/util/sprite/left.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/util/sprite/left.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | * Sprite left
*
* Mode 4
* +|---------------+
* | a |
* | aa aa|
* | aaaa aa |
* -aaaaaaaaaaaa -
* | aaaa aa |
* | aa aa|
* | a |
* +|---------------+
*
section sprite
xdef mes_left
mes_left
dc.w $0100,$0000
dc.w 16,7,0,3
dc.l sc4_left-*
dc.l sm4_left-*
dc.l 0
sc4_left
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0202,$0000
dc.w $0C0C,$0303
dc.w $3C3C,$0C0C
dc.w $FFFF,$F0F0
dc.w $3C3C,$0C0C
dc.w $0C0C,$0303
dc.w $0202,$0000
sm4_left
dc.w $0202,$0000
dc.w $0C0C,$0303
dc.w $3C3C,$0C0C
dc.w $FFFF,$F0F0
dc.w $3C3C,$0C0C
dc.w $0C0C,$0303
dc.w $0202,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
dc.w $0000,$0000
*
end
| 23.592593 | 27 | 0.356358 |
0588b7a76627952002a8db8e8743a48fd846f129 | 1,821 | asm | Assembly | bootstrap/bootstrap_l1.asm | abaire/nxdk_dyndxt | c08f28acce99b5730d6140431b48b4ed9347d60b | [
"Unlicense"
] | 3 | 2022-02-28T06:59:29.000Z | 2022-03-04T22:05:09.000Z | bootstrap/bootstrap_l1.asm | abaire/nxdk_dyndxt | c08f28acce99b5730d6140431b48b4ed9347d60b | [
"Unlicense"
] | 1 | 2022-02-27T22:43:55.000Z | 2022-02-27T22:43:55.000Z | bootstrap/bootstrap_l1.asm | abaire/nxdk_dyndxt | c08f28acce99b5730d6140431b48b4ed9347d60b | [
"Unlicense"
] | null | null | null | ; Trivial loader that simply invokes the given procedure address passing
; (DWORD@io_address, DYNAMIC_DXT_POOL).
;
; This is intended to be used for two things:
; 1) When given the address of DmAllocatePoolWithTag, allocates a block of
; memory, with the size stored in the last 4 bytes of this binary, then
; stores the address of the allocated block in the last 4 bytes and returns a
; XBDM facility (0x2DB) SUCCESS result.
;
; 2) Once the dynamic loader DLL has been loaded, the entrypoint address is
; given and [io_address] is set to 0 to indicate an entrypoint call. The
; entrypoint is invoked and the HRESULT returned.
bits 32
%include "macros.asm.inc"
%define DYNAMIC_DXT_POOL 'txDD'
org 0x0000
section .text
; HRESULT bootstrap(void *DmAllocatePoolWithTagAddress)
bootstrap:
push ebp
mov ebp, esp
; The address of DmAllocatePoolWithTag or the loader entrypoint.
mov edx, dword [ebp+8]
relocate_address ecx, io_address
push ecx
; Check to see if this is attempting to allocate memory or just call the
; HRESULT __stdcall DxtMain(void).
cmp dword [ecx], 0x00000000
jz call_entrypoint
; DmAllocatePoolWithTag(BOOTSTRAP_STAGE_2_SIZE, <size>);
push DYNAMIC_DXT_POOL
push dword [ecx]
call_entrypoint:
call edx
; Restore io_address
pop ecx
; Disable memory protection to allow writing within this code segment.
mov edx, cr0
push edx
and edx, 0xFFFEFFFF
mov cr0, edx
mov [ecx], eax
; Reenable memory protection
pop edx
mov cr0, edx
; Return a successful HRESULT
mov eax, 0x02DB0000
mov esp, ebp
pop ebp
ret 4
; Reserve space for the address at which the requested size will be read, and
; the resultant address will be written.
section .data
align 4
io_address DD 0
| 24.608108 | 80 | 0.718836 |
c2ffd1c9086e9dfe37e1fde025a14f855e8a42ed | 547 | asm | Assembly | pwnlib/shellcraft/templates/arm/linux/setsockopt_timeout.asm | IMULMUL/python3-pwntools | 61210a68cd88e9084c72292d3119c38c44f07966 | [
"MIT"
] | 325 | 2016-01-25T08:38:06.000Z | 2022-03-30T14:31:50.000Z | pwnlib/shellcraft/templates/arm/linux/setsockopt_timeout.asm | IMULMUL/python3-pwntools | 61210a68cd88e9084c72292d3119c38c44f07966 | [
"MIT"
] | 8 | 2016-08-23T10:15:27.000Z | 2019-01-16T02:49:34.000Z | pwnlib/shellcraft/templates/arm/linux/setsockopt_timeout.asm | IMULMUL/python3-pwntools | 61210a68cd88e9084c72292d3119c38c44f07966 | [
"MIT"
] | 71 | 2016-07-13T10:03:52.000Z | 2022-01-10T11:57:34.000Z | <%
from pwnlib.shellcraft.arm.linux import setsockopt
from pwnlib.shellcraft.arm import push
from pwnlib.shellcraft.arm import mov
from pwnlib.constants import SOL_SOCKET, SO_RCVTIMEO
%>
<%page args="sock, secs"/>
<%docstring>
Invokes the syscall for setsockopt with specified timeout. See 'man 2 setsockopt' for more information.
Arguments:
sock(int): sock
secs(int): secs
</%docstring>
eor r4, r4, r4
push {r4}
${mov('r4', secs)}
push {r4}
${setsockopt(sock, 'SOL_SOCKET', 'SO_RCVTIMEO', 'sp', 8)}
| 26.047619 | 104 | 0.681901 |
6cb72cbc2406a4f8f5f6c3fbb8d5bacbaef4b031 | 5,909 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1306.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_1306.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_1306.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x8c6, %r15
nop
nop
nop
nop
nop
dec %r10
mov (%r15), %edx
add %rcx, %rcx
lea addresses_UC_ht+0x4e3e, %rsi
lea addresses_WT_ht+0x1c63e, %rdi
clflush (%rsi)
nop
dec %r12
mov $9, %rcx
rep movsb
nop
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_D_ht+0x1b94e, %rsi
lea addresses_UC_ht+0x563e, %rdi
nop
nop
nop
nop
and %r8, %r8
mov $72, %rcx
rep movsb
nop
nop
add %r8, %r8
lea addresses_A_ht+0x18e3e, %r10
nop
nop
nop
nop
add %r8, %r8
mov (%r10), %r12
cmp $57887, %rcx
lea addresses_WC_ht+0x573e, %rsi
lea addresses_UC_ht+0x13a53, %rdi
nop
nop
nop
nop
dec %r10
mov $90, %rcx
rep movsw
nop
xor %rdx, %rdx
lea addresses_A_ht+0x6d0a, %r15
nop
nop
nop
nop
nop
add $19726, %rdx
movb (%r15), %r12b
nop
nop
nop
nop
and %r8, %r8
lea addresses_WC_ht+0x913e, %rsi
lea addresses_normal_ht+0xd93e, %rdi
nop
nop
nop
nop
nop
sub $50281, %r8
mov $116, %rcx
rep movsq
nop
nop
inc %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r9
push %rax
push %rbx
push %rcx
push %rdx
// Load
lea addresses_WT+0x3fbe, %rdx
nop
nop
cmp %rax, %rax
mov (%rdx), %r9
add %rbx, %rbx
// Faulty Load
lea addresses_RW+0xee3e, %rax
nop
sub $45715, %rcx
mov (%rax), %bx
lea oracles, %rcx
and $0xff, %rbx
shlq $12, %rbx
mov (%rcx,%rbx,1), %rbx
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 38.875 | 2,999 | 0.658318 |
ae3564c88ffee0826250dfea58baf34a9323bb11 | 7,304 | asm | Assembly | Transynther/x86/_processed/NONE/_st_zr_/i7-8650U_0xd2_notsx.log_1802_1193.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_st_zr_/i7-8650U_0xd2_notsx.log_1802_1193.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_st_zr_/i7-8650U_0xd2_notsx.log_1802_1193.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1404, %rdx
nop
nop
nop
nop
nop
sub %r10, %r10
mov (%rdx), %r11
nop
nop
nop
nop
nop
and %rax, %rax
lea addresses_UC_ht+0x129a4, %rsi
and $63302, %r11
mov (%rsi), %r13w
cmp %rax, %rax
lea addresses_normal_ht+0x94d4, %rsi
lea addresses_A_ht+0x3304, %rdi
nop
nop
nop
nop
nop
xor %r10, %r10
mov $120, %rcx
rep movsb
xor %rsi, %rsi
lea addresses_WC_ht+0x1c604, %rdx
clflush (%rdx)
inc %rdi
movb (%rdx), %al
cmp %r11, %r11
lea addresses_WT_ht+0x1b604, %rcx
clflush (%rcx)
nop
and $44691, %r11
mov (%rcx), %r13w
nop
nop
nop
nop
add %rax, %rax
lea addresses_D_ht+0x17c84, %rsi
lea addresses_WC_ht+0x278c, %rdi
clflush (%rdi)
xor $62020, %r13
mov $99, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $50210, %rsi
lea addresses_UC_ht+0x504, %r11
nop
nop
nop
sub %rcx, %rcx
movb (%r11), %al
nop
add %rdx, %rdx
lea addresses_D_ht+0x1625d, %rdx
sub %rdi, %rdi
mov (%rdx), %r10d
nop
nop
and %r10, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r8
push %rbp
push %rcx
push %rdi
// Store
lea addresses_WC+0x6764, %rbp
nop
add $36667, %rdi
mov $0x5152535455565758, %rcx
movq %rcx, (%rbp)
nop
nop
xor %r12, %r12
// Store
lea addresses_PSE+0x5de4, %rdi
nop
nop
xor %rbp, %rbp
movw $0x5152, (%rdi)
nop
nop
nop
xor %r12, %r12
// Store
lea addresses_normal+0x1d388, %rdi
nop
inc %r8
movl $0x51525354, (%rdi)
nop
nop
and %rdi, %rdi
// Store
lea addresses_UC+0x1f404, %rdi
nop
nop
nop
xor $25735, %r11
mov $0x5152535455565758, %r12
movq %r12, %xmm1
vmovups %ymm1, (%rdi)
dec %r8
// Store
mov $0xe86, %rbp
clflush (%rbp)
xor %r8, %r8
movb $0x51, (%rbp)
nop
nop
inc %rbp
// Store
lea addresses_D+0x111fc, %rdi
nop
nop
nop
nop
and $51364, %r10
mov $0x5152535455565758, %r12
movq %r12, %xmm3
vmovntdq %ymm3, (%rdi)
nop
nop
nop
add $14044, %rcx
// Faulty Load
lea addresses_A+0x16404, %r10
nop
cmp $34539, %r12
mov (%r10), %ecx
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'58': 1164, '00': 638}
58 58 58 58 58 58 58 58 00 58 58 58 00 58 00 00 00 00 00 00 00 58 00 58 58 00 00 00 00 58 58 58 00 58 00 58 58 58 58 58 00 58 00 00 58 58 58 58 00 00 58 58 58 00 58 58 58 58 00 00 00 00 58 00 58 58 58 58 00 00 00 58 58 58 58 00 58 58 58 58 58 58 58 00 00 00 58 58 58 58 58 58 58 58 58 00 00 58 58 58 58 58 58 00 58 58 00 58 58 58 58 00 00 58 58 58 58 58 00 00 58 00 58 00 00 00 00 00 58 58 58 58 58 58 00 58 00 58 00 00 00 58 58 00 00 00 00 58 58 58 00 00 58 58 58 58 58 58 00 00 00 58 58 58 58 58 00 00 58 58 58 58 00 00 00 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 00 00 00 00 00 58 58 58 58 00 58 00 58 58 00 00 00 00 58 00 58 00 58 58 58 58 00 58 58 58 58 58 58 58 00 58 00 58 58 58 00 58 00 58 58 58 00 58 58 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 00 00 58 58 58 00 00 00 00 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 00 00 58 58 58 58 58 58 58 58 58 00 00 00 00 58 58 58 58 58 58 58 00 58 58 58 00 00 00 58 58 58 58 00 58 58 58 00 00 58 58 00 00 00 00 58 58 58 58 58 58 58 58 00 00 00 58 00 58 58 58 58 58 58 58 00 00 00 58 58 58 58 58 58 58 00 58 58 00 00 58 00 58 00 58 00 00 58 00 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 00 00 00 58 00 58 00 58 58 58 58 00 58 58 58 58 00 00 58 58 00 58 58 58 58 58 58 00 58 58 58 00 00 00 00 58 00 00 58 58 58 58 58 58 00 00 58 58 00 58 00 58 00 58 58 58 58 58 58 58 58 58 58 00 58 00 58 00 58 58 58 58 58 58 58 00 00 00 00 00 00 00 58 00 58 58 58 00 58 00 00 58 00 00 58 58 58 58 00 58 58 58 58 58 00 58 58 58 58 00 00 00 00 00 00 58 00 58 58 58 58 00 00 58 00 00 00 00 00 00 58 00 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 00 00 58 00 58 58 00 00 00 00 00 58 58 58 58 58 58 58 58 00 00 00 58 58 00 00 00 58 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 00 58 58 00 00 58 00 58 58 58 58 58 58 58 00 00 00 00 58 58 58 58 58 58 58 00 58 58 58 00 00 58 58 00 00 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 00 58 58 58 00 00 00 00 58 00 00 58 00 58 58 00 00 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 00 00 00 58 00 58 58 00 00 58 58 00 00 58 00 58 58 58 00 58 00 00 58 58 00 00 58 00 58 58 58 58 58 00 00 00 58 00 58 58 00 58 00 58 58 58 58 58 00 00 00 00 00 58 58 58 58 58 58 58 58 58 00 00 58 58 58 00 58 00 00 00 00 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 00 00 00 00 58 58 58 58 58 58 58 00 00 58 00 58 58 58 58 58 58 58 58 00 00 58 58 00 00 00 00 00 58 58 58 00 00 58 58 00 00 58 58 58 58 58 00 58 00 00 00 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 00 00 58 58 58 58 00 58 58 00 58 58 58 58 00 58 58 00 58 00 58 00 58 58 58 58 58 00 00 00 58 58 58 58 00 00 58 00 58 00 00 00 58 58 00 00 58 00 00 58 58 00 00 00 00 00 58 58 58 58 58 58 58 58 58 58 00 00 58 58 58 00 00 58 00 00 58 00 00 58 58 58 58 00 58 58 00 58 00 58 00 00 00 58 00 58 00 58 58 58 58 58 58 58 58 00 00 58 58 58 58 58 00 00 00 00 00 00 58 00 00 00 58 58 58 58 58 58 58 58 00 00 00 58 58 00 00 00 00 58 58 58 58 58 58 58 58 58
*/
| 35.115385 | 2,999 | 0.649918 |
4ed2f2e65e968fb3fad52d70a23c379142525963 | 203 | asm | Assembly | sem 4 Programs/Microprocessor/mp_me/tasm/a.asm | Sameer411/Second_Year_Lab_Assignment | 4481803f463464ae53066feb76028761944af200 | [
"MIT"
] | 5 | 2019-12-09T18:15:09.000Z | 2021-12-27T13:47:37.000Z | sem 4 Programs/Microprocessor/mp_me/tasm/a.asm | Sameer411/Second_Year_Lab_Assignment | 4481803f463464ae53066feb76028761944af200 | [
"MIT"
] | null | null | null | sem 4 Programs/Microprocessor/mp_me/tasm/a.asm | Sameer411/Second_Year_Lab_Assignment | 4481803f463464ae53066feb76028761944af200 | [
"MIT"
] | 4 | 2020-04-18T13:07:33.000Z | 2022-02-14T04:09:33.000Z | data segment
msg db"Hello World$"
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov ah,09h
lea dx,msg
int 21h
mov ah,4Ch
int 21h
code ends
end start
| 11.941176 | 23 | 0.669951 |
2a3449a60cec82d3de75c30ab041472aa3230be5 | 778 | asm | Assembly | libsrc/_DEVELOPMENT/target/yaz180/driver/ide/ide_sleep.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/target/yaz180/driver/ide/ide_sleep.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/target/yaz180/driver/ide/ide_sleep.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_driver
PUBLIC ide_sleep
EXTERN __IO_IDE_COMMAND
EXTERN __IDE_CMD_SLEEP
EXTERN ide_wait_ready
EXTERN ide_test_error
EXTERN ide_write_byte
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called by
; the main program.
; tell the drive to sleep. only recoverable through hard_reset
ide_sleep:
push af
push de
call ide_wait_ready
jr nc, error
ld e, __IDE_CMD_SLEEP
ld a, __IO_IDE_COMMAND
call ide_write_byte
call ide_wait_ready
jr nc, error
pop de
pop af
scf ;carry = 1 on return = operation ok
ret
error:
pop de
pop af
jp ide_test_error ;carry = 0 on return = operation failed
| 18.97561 | 79 | 0.622108 |
fe92cb309f98cf1ad24b731c6b57ee91197cd319 | 25 | asm | Assembly | projects/project08/src/translations/goto.asm | lemmingapex/ElementsOfComputingSystems | 649c19676141a92ffec4f52b28388ad59048ee04 | [
"MIT"
] | 15 | 2015-05-03T10:35:44.000Z | 2021-07-21T08:59:03.000Z | projects/project08/src/translations/goto.asm | jigth/ElementsOfComputingSystems | 649c19676141a92ffec4f52b28388ad59048ee04 | [
"MIT"
] | null | null | null | projects/project08/src/translations/goto.asm | jigth/ElementsOfComputingSystems | 649c19676141a92ffec4f52b28388ad59048ee04 | [
"MIT"
] | 9 | 2017-02-18T02:29:20.000Z | 2021-11-29T22:49:58.000Z | // goto
@%%LABEL%%
0;JMP
| 6.25 | 10 | 0.52 |
d61d7ddeaee1544ae3cb4579fea689fd54182d94 | 300 | asm | Assembly | programs/oeis/162/A162962.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/162/A162962.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/162/A162962.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A162962: a(n) = 5*a(n-2) for n > 2; a(1) = 1, a(2) = 5.
; 1,5,5,25,25,125,125,625,625,3125,3125,15625,15625,78125,78125,390625,390625,1953125,1953125,9765625,9765625,48828125,48828125,244140625,244140625,1220703125,1220703125,6103515625,6103515625,30517578125
add $0,1
div $0,2
mov $1,5
pow $1,$0
| 37.5 | 203 | 0.72 |
b56e3c1b7ed05d0419cc8316a220b3f379be03ce | 473 | asm | Assembly | oeis/105/A105868.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/105/A105868.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/105/A105868.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A105868: Triangle read by rows, T(n,k) = C(n,k)*C(k,n-k).
; Submitted by Simon Strandgaard
; 1,0,1,0,2,1,0,0,6,1,0,0,6,12,1,0,0,0,30,20,1,0,0,0,20,90,30,1,0,0,0,0,140,210,42,1,0,0,0,0,70,560,420,56,1,0,0,0,0,0,630,1680,756,72,1,0,0,0,0,0,252,3150,4200,1260,90,1,0,0,0,0,0,0,2772,11550,9240,1980,110,1,0,0,0,0,0,0,924,16632,34650,18480,2970,132,1,0,0,0,0,0,0,0,12012,72072
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
bin $1,$0
bin $0,$2
mul $1,$0
mov $0,$1
| 31.533333 | 280 | 0.608879 |
28f07f2a7ea7d8368fa37ee45c8dd1fb92690b01 | 823 | asm | Assembly | programs/oeis/074/A074723.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/074/A074723.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/074/A074723.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A074723: Largest power of 2 dividing F(3n) where F(k) is the k-th Fibonacci number.
; 2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,128,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,256,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,128,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,512,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,128,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,256,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,128,2,8,2,16,2,8,2,32,2,8,2,16,2,8,2,64,2,8,2,16,2,8,2,32,2,8
mov $4,$0
add $0,9
mov $1,4
mov $3,$4
mul $3,2
add $3,2
lpb $0,1
sub $0,1
pow $1,2
mov $2,9
trn $2,$1
add $3,$2
gcd $1,$3
lpe
sub $1,1
mul $1,2
add $1,2
| 39.190476 | 570 | 0.565006 |
87d9eaa849a89702f21b35624808afa0deff93d8 | 6,301 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_un_/i3-7100_9_0x84_notsx.log_13614_177.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_un_/i3-7100_9_0x84_notsx.log_13614_177.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_un_/i3-7100_9_0x84_notsx.log_13614_177.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 %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x13bbb, %r10
nop
nop
sub %rdx, %rdx
movw $0x6162, (%r10)
nop
nop
nop
nop
nop
add $63022, %r15
lea addresses_A_ht+0x1c8f, %r13
nop
and $5097, %rbp
mov $0x6162636465666768, %r14
movq %r14, %xmm0
movups %xmm0, (%r13)
nop
and $63807, %r10
lea addresses_D_ht+0xfd67, %r15
nop
nop
nop
nop
and %r12, %r12
mov $0x6162636465666768, %r10
movq %r10, %xmm4
movups %xmm4, (%r15)
nop
nop
dec %r14
lea addresses_A_ht+0xea8f, %r10
nop
cmp %r14, %r14
movups (%r10), %xmm2
vpextrq $1, %xmm2, %r13
nop
nop
nop
nop
sub $3065, %r15
lea addresses_A_ht+0xa271, %r14
nop
nop
nop
nop
sub $4094, %rdx
mov $0x6162636465666768, %r12
movq %r12, %xmm6
movups %xmm6, (%r14)
nop
nop
nop
add $39531, %rbp
lea addresses_UC_ht+0x1348f, %rdx
nop
nop
nop
nop
add $18024, %r10
movups (%rdx), %xmm2
vpextrq $1, %xmm2, %r14
nop
nop
nop
nop
nop
add %r13, %r13
lea addresses_WC_ht+0x5bc1, %r10
nop
nop
nop
nop
add $20083, %r15
movb (%r10), %r13b
nop
nop
nop
nop
nop
cmp $44901, %r12
lea addresses_D_ht+0x688f, %r14
nop
nop
xor $4430, %rdx
mov (%r14), %r10d
nop
nop
add $61423, %r10
lea addresses_WT_ht+0x1b40f, %rsi
lea addresses_normal_ht+0xd0ff, %rdi
clflush (%rsi)
nop
cmp %r13, %r13
mov $35, %rcx
rep movsl
nop
sub $49779, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %rbx
push %rdi
push %rsi
// Faulty Load
lea addresses_US+0x1d28f, %r10
nop
nop
nop
xor $38509, %rdi
vmovaps (%r10), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %rsi
lea oracles, %r10
and $0xff, %rsi
shlq $12, %rsi
mov (%r10,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rbx
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'49': 13613, '22': 1}
49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 22 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49
*/
| 37.064706 | 2,999 | 0.658308 |
85bd18b7973179a6b6939dff2d6c7938c7bd696b | 2,611 | asm | Assembly | programs/oeis/172/A172080.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/172/A172080.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/172/A172080.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A172080: a(n) = n*(12*n^3 + 10*n^2 - 9*n - 7)/6.
; 0,1,37,190,590,1415,2891,5292,8940,14205,21505,31306,44122,60515,81095,106520,137496,174777,219165,271510,332710,403711,485507,579140,685700,806325,942201,1094562,1264690,1453915,1663615,1895216,2150192,2430065,2736405,3070830,3435006,3830647,4259515,4723420,5224220,5763821,6344177,6967290,7635210,8350035,9113911,9929032,10797640,11722025,12704525,13747526,14853462,16024815,17264115,18573940,19956916,21415717,22953065,24571730,26274530,28064331,29944047,31916640,33985120,36152545,38422021,40796702,43279790,45874535,48584235,51412236,54361932,57436765,60640225,63975850,67447226,71057987,74811815,78712440,82763640,86969241,91333117,95859190,100551430,105413855,110450531,115665572,121063140,126647445,132422745,138393346,144563602,150937915,157520735,164316560,171329936,178565457,186027765,193721550,201651550,209822551,218239387,226906940,235830140,245013965,254463441,264183642,274179690,284456755,295020055,305874856,317026472,328480265,340241645,352316070,364709046,377426127,390472915,403855060,417578260,431648261,446070857,460851890,475997250,491512875,507404751,523678912,540341440,557398465,574856165,592720766,610998542,629695815,648818955,668374380,688368556,708807997,729699265,751048970,772863770,795150371,817915527,841166040,864908760,889150585,913898461,939159382,964940390,991248575,1018091075,1045475076,1073407812,1101896565,1130948665,1160571490,1190772466,1221559067,1252938815,1284919280,1317508080,1350712881,1384541397,1419001390,1454100670,1489847095,1526248571,1563313052,1601048540,1639463085,1678564785,1718361786,1758862282,1800074515,1842006775,1884667400,1928064776,1972207337,2017103565,2062761990,2109191190,2156399791,2204396467,2253189940,2302788980,2353202405,2404439081,2456507922,2509417890,2563177995,2617797295,2673284896,2729649952,2786901665,2845049285,2904102110,2964069486,3024960807,3086785515,3149553100,3213273100,3277955101,3343608737,3410243690,3477869690,3546496515,3616133991,3686791992,3758480440,3831209305,3904988605,3979828406,4055738822,4132730015,4210812195,4289995620,4370290596,4451707477,4534256665,4617948610,4702793810,4788802811,4875986207,4964354640,5053918800,5144689425,5236677301,5329893262,5424348190,5520053015,5617018715,5715256316,5814776892,5915591565,6017711505,6121147930,6225912106,6332015347,6439469015,6548284520,6658473320,6770046921,6883016877,6997394790,7113192310,7230421135,7349093011,7469219732,7590813140,7713885125
mov $2,$0
mov $4,$0
lpb $2,1
mov $0,$4
sub $2,1
sub $0,$2
mov $3,$0
mul $3,$0
mov $5,$0
mul $5,8
sub $5,7
mul $3,$5
add $1,$3
lpe
| 145.055556 | 2,408 | 0.86059 |
b0f104dda89a1fdd928f01d0404efa843a9f1d27 | 15,636 | asm | Assembly | Driver/Printer/DotMatrix/Nike56/nike56Escapes.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Printer/DotMatrix/Nike56/nike56Escapes.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Printer/DotMatrix/Nike56/nike56Escapes.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Brother NIKE 56-jet print driver
FILE: nike56Escapes.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
INT PrintWaitForMechanism Wait for the printer mechanical movement to
stop.
INT PrWaitForMechanismLow Wait for the printer mechanical movement to
stop.
INT PrintGetErrors query the print engine for any errors.
INT PrintGetErrorsLow query the print engine for any errors.
INT PrintInitPrintEngine Initialize the printer engine without
starting a print job.
INT PrintParkHead Position the printhead off the printable area
INT PrintMoveInXOnly Position the printhead on the printable area
INT PrintMoveInYOnly Position the printhead on the printable area
INT PrintInsertPaper Position the paper on the printable area
INT PrintEjectPaper Eject the paper.
INT PrintCapHead cap the printer's head
INT PrintGetJobStatus Return the state of the job.
INT PrintSetJobStatus Set the dgroup variable
INT PrintChangeInkCartridge Change ink cartridge
INT PrintCleanPrintHead Clean print head
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial revision
DESCRIPTION:
This file contains the ESCAPE routines:
$Id: nike56Escapes.asm,v 1.1 97/04/18 11:55:34 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintWaitForMechanism
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Wait for the printer mechanical movement to stop.
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: carry set if timed out
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintWaitForMechanism proc far
call PrWaitForMechanismLow
ret
PrintWaitForMechanism endp
PrWaitForMechanismLow proc near
uses ax,cx
.enter
mov cx,40 ;1/4 x 40 = 10 sec
testAgain:
mov ah,PB_GET_PRINTER_STATUS
call PrinterBIOSNoDMA
test ax,mask PER_BUSY ;see if the print engine is doing
jnz exit ;carry clear
mov ax,15
call TimerSleep ;wait 1/4 sec.
loop testAgain
mov cx, CPMSG_TIMEOUT
call PrintErrorBox
call PrintInitPrintEngine
stc ;fail test....
exit:
.leave
ret
PrWaitForMechanismLow endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintGetErrors
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: query the print engine for any errors.
CALLED BY: PRINT ESCAPE CALL or INTERNAL (PrintGetErrorsLow)
PASS: al - PrintJobLPESUpdate to decide whether or not to
update the LPES
(PrintGetErrors)
bp - PState segment
(PrintGetErrorsLow)
es - PState segment
RETURN:
ax = error codes from Printer BIOS
according to PErrorBits and PErrorBitsHi records
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintGetErrors proc far
uses es
.enter
mov es,bp ;es--> PState
call PrintGetErrorsLow
.leave
ret
PrintGetErrors endp
PrintGetErrorsLow proc near
uses bx
.enter
mov bh,al ;save LPES update flag
mov ah,PB_GET_PRINTER_STATUS
int 17h
mov bl,al ;save the output for rearrainging al
and ax,mask PER_ACK or mask PER_BUSY or mask PEF_INIT
;clear off high bits of return
;and low byte for re arraingement.
;(bits 6, 7 and 8 returned unchanged)
rcr bl,1 ;check jam bit
jnc afterJam
or al,mask PER_JAM ;set jam bit.
afterJam:
rcr bl,1 ;check paper feed.
rcr bl,1
jnc afterASF
or al,mask PER_ASF ;set ASF installed
afterASF:
rcr bl,1 ;check error locating home
jnc afterHome
or ax,mask PEF_STARTUP_ERROR ;set startup error.
afterHome:
rcr bl,1 ;check cartridge type
jnc afterCart
or ax,mask PEF_COLOR ;set color cart.
afterCart:
rcr bl,1 ;check paper out
jnc afterPaper
or al,mask PER_PES or mask PER_MPE ;set paper out
afterPaper:
and es:PS_dWP_Specific.DWPS_savedErrorStatus,not mask PER_PAUSE
;clean out the pause flag.
;set the last PES flag based on the passed command.
test es:PS_dWP_Specific.DWPS_savedErrorStatus,mask PER_LAST_PES
jnz afterLPES
or al,mask PER_LAST_PES ;set lastPES state.
afterLPES:
cmp bh,PJLP_update ;do we set LPES this time?
je saveAndExit ;if so, just save and exit
;otherwise, we need the last PER_LAST_PES to add into the
;returned and saved flags.
and al,not mask PER_LAST_PES ;clear out old bit
test es:PS_dWP_Specific.DWPS_savedErrorStatus,mask PER_LAST_PES
jz saveAndExit ;if saved is zero nothing to do.
or al,mask PER_LAST_PES ;else, set the saved bit.
saveAndExit:
mov es:PS_dWP_Specific.DWPS_savedErrorStatus,ax
clc
.leave
ret
PrintGetErrorsLow endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintInitPrintEngine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize the printer engine without starting a print
job.
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintInitPrintEngine proc far
uses ax
.enter
mov ah,PB_INITIALIZE_PRINTER
call PrinterBIOS
.leave
ret
PrintInitPrintEngine endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintParkHead
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Position the printhead off the printable area
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintParkHead proc far
uses ax,cx
.enter
call PrWaitForMechanismLow
jc exit
clr cx
mov ah,PB_POSITION_CARRIAGE
call PrinterBIOS
exit:
.leave
ret
PrintParkHead endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintMoveInXOnly
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Position the printhead on the printable area
CALLED BY: PRINT ESCAPE CALL
PASS: cx.si - WWFixed position in points for x position
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintMoveInXOnly proc far
uses ax,cx,dx
.enter
call PrWaitForMechanismLow
jc exit
mov dx,cx ;and integer into dx
mov ax,si ;mov fraction into ax
call PrConvertToDriverCoordinates
mov cx,dx ;move the head to cx column
mov ah,PB_POSITION_CARRIAGE
call PrinterBIOS
exit:
.leave
ret
PrintMoveInXOnly endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintMoveInYOnly
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Position the printhead on the printable area
CALLED BY: PRINT ESCAPE CALL
PASS: dx.ax - WWFixed position in points for y position
bp - PState segment
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 1/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintMoveInYOnly proc far
uses dx,es
.enter
mov es,bp ;es--> PState
call PrConvertToDriverCoordinates
sub dx,es:[PS_cursorPos].P_y ;see if the position desired is below
jz exit ;dont update position if zero.
call PrLineFeed ;adjust the position in PSTATE and
;the printhead position.
exit:
.leave
ret
PrintMoveInYOnly endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintInsertPaper
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Position the paper on the printable area
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintInsertPaper proc far
uses ax
.enter
call PrWaitForMechanismLow
jc exit
mov ah,PB_INSERT_PAPER ;load the paper.
call PrinterBIOS
exit:
.leave
ret
PrintInsertPaper endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintEjectPaper
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Eject the paper.
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintEjectPaper proc far
uses ax
.enter
call PrWaitForMechanismLow
jc exit
mov ah,PB_EJECT_PAPER ;spit the paper out.
call PrinterBIOS
exit:
.leave
ret
PrintEjectPaper endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintCapHead
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: cap the printer's head
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Directly have the printer cap the printhead, and wait for the
mechanism to stop.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 08/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintCapHead proc far
uses ax
.enter
call PrWaitForMechanismLow
jc exit
mov ah,PB_CAP_PRINT_HEAD
call PrinterBIOS
exit:
.leave
ret
PrintCapHead endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintGetJobStatus
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return the state of the job.
CALLED BY: PRINT ESCAPE CALL
PASS: nothing
RETURN: al - PrintJobSemaphore enum
DESTROYED: ah
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 1/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintGetJobStatus proc far
uses ds
.enter
segmov ds, dgroup, ax
mov al, ds:[jobStatus]
.leave
ret
PrintGetJobStatus endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintSetJobStatus
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the dgroup variable
CALLED BY: PRINT ESCAPE CALL
PASS: al - PrintJobSemaphore enum
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 6/10/94 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
idata segment
jobStatus byte 0
idata ends
PrintSetJobStatus proc far
uses ds, bx
.enter
segmov ds, dgroup, bx
mov ds:[jobStatus], al
.leave
ret
PrintSetJobStatus endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintChangeInkCartridge
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Change ink cartridge
CALLED BY: DR_PRINT_ESC_CHANGE_INK_CARTRIDGE
PASS: nothing
RETURN: carry set if error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 3/21/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintChangeInkCartridge proc far
uses ax,cx
.enter
call PrWaitForMechanismLow
jc done
mov ah, PB_CHANGE_INK_CARTRIDGE
call PrinterBIOS
call PrWaitForMechanismLow
jc done
; Put up dialog telling user to change the ink cartridge
mov cx, CPMSG_CHANGE_CARTRIDGE
call PrintErrorBox
; Now re-initialize the printer
call PrintInitPrintEngine
done:
.leave
ret
PrintChangeInkCartridge endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintCleanPrintHead
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Clean print head
CALLED BY: DR_PRINT_ESC_CLEAN_HEAD
PASS: nothing
RETURN: carry set if error
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 3/21/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintCleanPrintHead proc far
uses ax
.enter
call PrWaitForMechanismLow
jc done
mov ah, PB_CLEAN_PRINT_HEAD
call PrinterBIOS
done:
.leave
ret
PrintCleanPrintHead endp
| 24.662461 | 79 | 0.511512 |
7986b232a6110faf2e75f232af26eef7f9003c8d | 399 | asm | Assembly | programs/oeis/152/A152692.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/152/A152692.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/152/A152692.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A152692: a(n) = n*3^n - n*2^n - n*1^n.
; 0,0,8,54,256,1050,3984,14406,50432,172530,580240,1926078,6328128,20619690,66732176,214742070,687698944,2193154530,6968850192,22073006382,69714716480,219623377050,690291036688,2165100175014,6777906222336,21181376375250,66086766706064,205887508215966,640542672546112,1990265374325130,6176701750584720
sub $2,$0
cal $0,4142 ; n(3^n-2^n).
mov $1,$0
add $1,$2
| 49.875 | 300 | 0.786967 |
aa6829d92a8f4ae4d479811963707bbc3e79d38a | 6,209 | asm | Assembly | audio tools/ab_Squirrel3 Public/Sub/drums.asm | langel/pce-dev-kit | 21791b3c60eb6b9a1aa7b55c68b28e6cfab1ac12 | [
"Unlicense"
] | 1 | 2021-12-31T01:16:28.000Z | 2021-12-31T01:16:28.000Z | audio tools/ab_Squirrel3 Public/Sub/drums.asm | langel/pce-dev-kit | 21791b3c60eb6b9a1aa7b55c68b28e6cfab1ac12 | [
"Unlicense"
] | null | null | null | audio tools/ab_Squirrel3 Public/Sub/drums.asm | langel/pce-dev-kit | 21791b3c60eb6b9a1aa7b55c68b28e6cfab1ac12 | [
"Unlicense"
] | null | null | null | ;-----------------------------------------------------------------------------------------
;
; Percussion Sequencer
; called from main track PSG driver
;
subProcessDrums
ldy psgCurrentVoice ; get voice
lda psgSubStackOffset,y ; stack offset for voice
and #$F0 ; get track mode
cmp #$10 ; is it percussion mode ?
beq .isDrums ; yep... keep going
.drumOut
rts ; nope, skip drum handling
;...........................................................................
; check tie state, to determine what phase we are in
.isDrums
lda psgSubTieState,y ; get voice state
beq .drumOut ; if rest, skip it
;...........................................................................
; have note (?) handle drums ??
lda psgSubDrumPtrLo,y ; set up percussion table pointer
sta <psgPtr1
lda psgSubDrumPtrHi,y
sta <psgPtr1+1
.parseDrums
lda [psgPtr1] ; get code from drum track
inc <psgPtr1 ; and bump to next
bne .skipHi9
inc <psgPtr1+1
.skipHi9
;...........................................................................
; check drum track codes
tax ; save code ?
cmp #$B0 ; < $B0 ?
bcc .isNoise ; handle noise number
and #$F0 ; high nibble only
cmp #$B0 ; $Bx codes - frequency, high
beq .isFreq
cmp #$C0 ; $Cx codes - envelope number
beq .isEnv
cmp #$D0 ; $Dx codes - pan pot setting
beq .isPan
cmp #$E0 ; $Ex codes - wave for number
beq .isWave
jmp .isEnd ; $Fx codes - end-of-data
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; isNoise - handle percussion noise number
.isNoise
cpy #$04 ; is voice noise-capable ?
bcc .noiseDone ; nope, save pointer and return
;...........................................................................
; voice is percussion capable. Value goes in NoiseFlag, with bit 7 OFF
and #$1f ; mask off high bits of noise (0-$1f)
sta psgSubNoiseFlag-4,y ; save high byte of noise value.
bra .noiseDone ; save pointer and return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; isFreq - handle direct frequency value
.isFreq
txa ; restore original value
;...........................................................................
; save hi byte of frequency
sec
sbc #$b0 ; get high bits of frequency
sta psgSubFreqHi,y ; save frequency
;...........................................................................
; get low byte of frequency, and save it.
lda [psgPtr1] ; get low byte
inc <psgPtr1 ; and bump pointer
bne .skipHi10
inc <psgPtr1+1
.skipHi10
sta psgSubFreqLo,y ; save frequency lo byte
;...........................................................................
; check for noise capable channel. NoiseFlag gets set to 0, with bit 7 ON.
cpy #4
bcc .noiseDone ; not noise capable. we're done
lda #$80 ; mark voice as noise value set (presumably)
sta psgSubNoiseFlag-4,Y
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; quick exit for noise stuff. Probably easier to reach in middle
.noiseDone
lda <psgPtr1 ; save updated percussion pointer
sta psgSubDrumPtrLo,Y
lda <psgPtr1+1
sta psgSubDrumPtrHi,Y
rts ; and return to driver
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; isEnv - handle drum envelope switches. Envelope # is parameter
.isEnv
lda [psgPtr1] ; get parameter
cmp #$10 ; internal envelope ?
bcs .usrDrumEnv ; nope, handle use envelope
;...........................................................................
; handle internal envelope for drums.
asl a ; make 2-byte offset
tax ; use as index
lda psgSysEnv,x ; low byte of internal address
sta psgSubEnvelopePtrLo,Y ; save it
lda psgSysEnv+1,x ; hi byte of internal address
sta psgSubEnvelopePtrHi,y ; save it
bra .nextDrumByte
;...........................................................................
; handle user envelope for drums
.usrDrumEnv
sec
sbc #$10 ; subtract internal envelope numbers
asl a ; convert to 2-byte offset
clc
adc psgUserVolEnvelope ; add to low address of user envelopes
sta <psgPtr2 ; save in alternate pointer
cla ; high byte is 0
adc psgUserVolEnvelope+1 ; add to hi address of user envelopes
sta <psgPtr2+1 ; save in alternate pointer
lda [psgPtr2] ; get low byte of entry
sta psgSubEnvelopePtrLo,Y ; save it
inc <psgPtr2 ; bump pointer
bne .skip11
inc <psgPtr2+1
.skip11
lda [psgPtr2] ; get hi byte of entry
sta psgSubEnvelopePtrHi,y ; save it
bra .nextDrumByte
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; isPan - handle pan pot changes. New value is parameter
.isPan
lda [psgPtr1] ; get parameter
sta psgSubPanPot,Y ; set pan pot value
bra .nextDrumByte
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; isWave - handle waveform changes. Wave number is parameter
.isWave
lda [psgPtr1] ; get parameter
sta psgSubWaveNo,Y ; save it - it loads as needed, since bit 7 off
bra .nextDrumByte
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; isEnd - handle end of drum data
.isEnd
cla
sta psgSubTieState,Y ; voice state = 0 (silence)
lda <psgPtr1 ; back pointer up
sec
sbc #1
sta psgSubDrumPtrLo,y
lda <psgPtr1+1
sbc #0
sta psgSubDrumPtrHi,y
rts ; we're done.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; nextDrumByte - increment drum pointer to next byte, and loop
.nextDrumByte
inc <psgPtr1 ; bump pointer
bne .skip12
inc <psgPtr1+1
.skip12
jmp .parseDrums ; and back to handle more
| 29.287736 | 91 | 0.479143 |
2691378a395ecc0ca54009c6ad4e507e9d21ccc2 | 486 | asm | Assembly | programs/oeis/026/A026600.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/026/A026600.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/026/A026600.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A026600: a(n) is the n-th letter of the infinite word generated from w(1)=1 inductively by w(n)=JUXTAPOSITION{w(n-1),w'(n-1),w"(n-1)}, where w(k) becomes w'(k) by the cyclic permutation 1->2->3->1 and w"(k) = (w')'(k).
; 1,2,3,2,3,1,3,1,2,2,3,1,3,1,2,1,2,3,3,1,2,1,2,3,2,3,1,2,3,1,3,1,2,1,2,3,3,1,2,1,2,3,2,3,1,1,2,3,2,3,1,3,1,2,3,1,2,1,2,3,2,3,1,1,2,3,2,3,1,3,1,2,2,3,1,3,1,2,1,2,3,2,3,1,3,1,2,1,2,3,3,1,2,1,2,3,2,3,1,1
lpb $0
add $1,$0
div $0,3
lpe
mod $1,3
add $1,1
mov $0,$1
| 44.181818 | 220 | 0.563786 |
7c9b26a5e96cd9fe8749a5c0aa73cc8d40ec09b4 | 370 | asm | Assembly | oeis/061/A061085.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/061/A061085.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/061/A061085.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A061085: a(n) = A019550(n) / 3.
; Submitted by Jamie Morken(s2)
; 4,8,12,16,170,204,238,272,306,340,374,408,442,476,510,544,578,612,646,680,714,748,782,816,850,884,918,952,986,1020,1054,1088,1122,1156,1190,1224,1258,1292,1326,1360,1394,1428,1462,1496,1530,1564,1598,1632,1666
mov $2,$0
add $0,1
mov $1,$0
lpb $1
mul $0,16
mov $1,4
lpe
add $0,1
add $0,$2
mul $0,2
| 24.666667 | 211 | 0.678378 |
98ca00950954b58fd75eee9899892a341a6b3b71 | 6,434 | asm | Assembly | next_level/demosrc/s_imustcontinue.asm | viznut/demoscene | 0a9b663a18ce5c31a1243fbdb85794325eeed1d8 | [
"CC0-1.0"
] | 14 | 2021-01-06T12:13:48.000Z | 2021-02-10T20:39:48.000Z | next_level/demosrc/s_imustcontinue.asm | viznut/demoscene | 0a9b663a18ce5c31a1243fbdb85794325eeed1d8 | [
"CC0-1.0"
] | null | null | null | next_level/demosrc/s_imustcontinue.asm | viznut/demoscene | 0a9b663a18ce5c31a1243fbdb85794325eeed1d8 | [
"CC0-1.0"
] | null | null | null | ;,; deps_imustcontinue
;,; <- lyrics_imustcontinue
;,; <- ibpcaablocks
;,; SC53_000
;,; <- deps_imustcontinue
!byte $e4,7,chFFFFFFFFFFFFFFFF ; clrscr
;,; <- chFFFFFFFFFFFFFFFF ; 449
;,; <- chFFFFFFFFFFFF0000 ; 3
;,; <- chFCFCFCFCFCFCFCFC ; 13
;,; <- ch0000000000000000 ; 19
;,; <- ch3F3F3F3F3F3F3F3F ; 13
;,; <- ch0080C0E0F0F8FCFE ; 1
;,; <- ch000103070F1F3F7F ; 1
;,; <- chFEFCF8F0E0C08000 ; 1
;,; <- ch7F3F1F0F07030100 ; 1
;,; <- ch0000FFFFFFFFFFFF ; 3
; total unique chars in pic: 10 (worst case req 80 bytes)
!byte $DA,$00 ;addr
!byte $e2,1;mode4
!byte $07 ;data4
!byte $44
!byte $42
!byte $44
!byte $24
!byte $22
!byte $77
!byte $22
!byte $22
!byte $47,$04 ;fill
!byte $46,$02 ;fill
!byte $07 ;data4
!byte $77
!byte $77
!byte $27
!byte $22
!byte $22
!byte $44
!byte $44
!byte $24
!byte $DA,$30 ;addr
!byte $46,$02 ;fill
!byte $0A ;data4
!byte $77
!byte $77
!byte $77
!byte $22
!byte $72
!byte $22
!byte $44
!byte $44
!byte $22
!byte $27
!byte $22
!byte $8C ;skip
!byte $02 ;data4
!byte $22
!byte $22
!byte $24
!byte $94 ;skip
!byte $01 ;data4
!byte $22
!byte $72
!byte $94 ;skip
!byte $00 ;data4
!byte $22
!byte $95 ;skip
!byte $00 ;data4
!byte $22
!byte $95 ;skip
!byte $00 ;data4
!byte $22
!byte $95 ;skip
!byte $00 ;data4
!byte $22
!byte $94 ;skip
!byte $01 ;data4
!byte $22
!byte $72
!byte $93 ;skip
!byte $01 ;data4
!byte $22
!byte $72
!byte $94 ;skip
!byte $00 ;data4
!byte $22
!byte $94 ;skip
!byte $01 ;data4
!byte $22
!byte $72
!byte $93 ;skip
!byte $01 ;data4
!byte $22
!byte $72
!byte $93 ;skip
!byte $03 ;data4
!byte $22
!byte $22
!byte $77
!byte $22
!byte $8A ;skip
!byte $02 ;data4
!byte $22
!byte $77
!byte $27
!byte $DB,$7E ;addr
!byte $47,$02 ;fill
!byte $86 ;skip
!byte $4F,$02 ;fill
!byte $03 ;data4
!byte $27
!byte $77
!byte $77
!byte $27
!byte $DB,$A6 ;addr
!byte $48,$02 ;fill
!byte $06 ;data4
!byte $24
!byte $22
!byte $44
!byte $22
!byte $72
!byte $77
!byte $27
!byte $DB,$BD ;addr
!byte $48,$02 ;fill
!byte $45,$04 ;fill
!byte $48,$02 ;fill
!byte $02 ;data4
!byte $44
!byte $24
!byte $42
!byte $DB,$DD ;addr
!byte $49,$04 ;fill
!byte $45,$02 ;fill
!byte $47,$04 ;fill
; method 0 ( bytes ) -- 229 cumulative
; method 5 ( ibpc0 ibcpaa bytes ) -- 186 cumulative
; METHOD 5 CHOSEN
!byte $CE,$3A ;addr
!byte $e2,$ff;mode1
!byte $00 ;data1
!byte $E0
!byte $90 ;skip
!byte $27 ;data1
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $00
!byte $80
!byte $00
!byte $01
!byte $C0
!byte $e3 ;run ibpcaa
!byte $e1,12
;,; *_001
;,; <- deps_imustcontinue
;,; <- chFFFFFFFFFFFFFFFF ; 298
;,; <- chFFFFFFFFFFFF0000 ; 20
;,; <- chFCFCFCFCFCFCFCFC ; 24
;,; <- ch0000000000000000 ; 80
;,; <- ch3C3C3C3C3C3C3C3C ; 30
;,; <- ch3F3F3F3F3F3F3F3F ; 24
;,; <- ch000018183C3C3C3C ; 2
;,; <- ch000103070F1F3F7F ; 2
;,; <- ch0000FFFFFFFFFFFF ; 18
;,; <- ch0080C0E0F0F8FCFE ; 2
;,; <- ch7F3F1F0F07030100 ; 2
;,; <- chFEFCF8F0E0C08000 ; 2
; total unique chars in pic: 12 (worst case req 96 bytes)
; method 0 ( bytes ) -- 434 cumulative
; method 5 ( ibpc0 ibcpaa bytes ) -- 233 cumulative
; METHOD 5 CHOSEN
!byte $CE,$3A ;addr
!byte $00 ;data1
!byte $00
!byte $90 ;skip
!byte $27 ;data1
!byte $00
!byte $00
!byte $00
!byte $00
!byte $01
!byte $F4
!byte $BD
!byte $F1
!byte $54
!byte $A0
!byte $41
!byte $54
!byte $A0
!byte $41
!byte $54
!byte $A0
!byte $41
!byte $54
!byte $BC
!byte $41
!byte $54
!byte $84
!byte $41
!byte $54
!byte $84
!byte $41
!byte $54
!byte $84
!byte $41
!byte $57
!byte $BC
!byte $40
!byte $00
!byte $00
!byte $00
!byte $00
!byte $00
!byte $00
!byte $00
!byte $00
!byte $e3 ;run ibpcaa
!byte $e1,12
;,; *_002
;,; <- deps_imustcontinue
;,; <- chFFFFFFFFFFFFFFFF ; 348
;,; <- chFFFFFFFFFFFF0000 ; 14
;,; <- chFCFCFCFCFCFCFCFC ; 28
;,; <- ch0000000000000000 ; 57
;,; <- ch3C3C3C3C3C3C3C3C ; 11
;,; <- ch3F3F3F3F3F3F3F3F ; 26
;,; <- ch000103070F1F3F7F ; 3
;,; <- ch0000FFFFFFFFFFFF ; 12
;,; <- ch0080C0E0F0F8FCFE ; 2
;,; <- ch7F3F1F0F07030100 ; 2
;,; <- chFEFCF8F0E0C08000 ; 1
; total unique chars in pic: 11 (worst case req 88 bytes)
; method 0 ( bytes ) -- 441 cumulative
; method 5 ( ibpc0 ibcpaa bytes ) -- 264 cumulative
; METHOD 5 CHOSEN
!byte $CE,$7A ;addr
!byte $1A ;data1
!byte $3D
!byte $EF
!byte $00
!byte $21
!byte $29
!byte $00
!byte $21
!byte $29
!byte $00
!byte $21
!byte $29
!byte $00
!byte $21
!byte $29
!byte $00
!byte $21
!byte $29
!byte $00
!byte $21
!byte $29
!byte $00
!byte $21
!byte $29
!byte $00
!byte $3D
!byte $E9
!byte $00
!byte $e3 ;run ibpcaa
!byte $e1,12
;,; *_003
;,; <- deps_imustcontinue
;,; <- chFFFFFFFFFFFFFFFF ; 437
;,; <- chFFFFFFFFFFFF0000 ; 6
;,; <- chFCFCFCFCFCFCFCFC ; 16
;,; <- ch0000000000000000 ; 22
;,; <- ch3C3C3C3C3C3C3C3C ; 1
;,; <- ch3F3F3F3F3F3F3F3F ; 16
;,; <- ch0000FFFFFFFFFFFF ; 4
;,; <- ch0080C0E0F0F8FCFE ; 1
;,; <- ch000103070F1F3F7F ; 1
; total unique chars in pic: 9 (worst case req 72 bytes)
; method 0 ( bytes ) -- 373 cumulative
; method 5 ( ibpc0 ibcpaa bytes ) -- 294 cumulative
; METHOD 5 CHOSEN
!byte $CE,$7C ;addr
!byte $19 ;data1
!byte $1F
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $00
!byte $04
!byte $40
!byte $e3 ;run ibpcaa
!byte $e1,12
;,; *_004
;,; <- deps_imustcontinue
;,; <- chFFFFFFFFFFFFFFFF ; 347
;,; <- chFFFFFFFFFFFF0000 ; 15
;,; <- chFCFCFCFCFCFCFCFC ; 23
;,; <- ch0000000000000000 ; 59
;,; <- ch3C3C3C3C3C3C3C3C ; 18
;,; <- ch3F3F3F3F3F3F3F3F ; 19
;,; <- ch000103070F1F3F7F ; 3
;,; <- ch0000FFFFFFFFFFFF ; 15
;,; <- ch0080C0E0F0F8FCFE ; 1
;,; <- ch7F3F1F0F07030100 ; 3
;,; <- chFEFCF8F0E0C08000 ; 1
; total unique chars in pic: 11 (worst case req 88 bytes)
; method 0 ( bytes ) -- 489 cumulative
; method 5 ( ibpc0 ibcpaa bytes ) -- 324 cumulative
; METHOD 5 CHOSEN
!byte $CE,$7C ;addr
!byte $19 ;data1
!byte $FA
!byte $2F
!byte $00
!byte $8A
!byte $28
!byte $00
!byte $8A
!byte $28
!byte $00
!byte $8A
!byte $28
!byte $00
!byte $8A
!byte $2E
!byte $00
!byte $8A
!byte $28
!byte $00
!byte $8A
!byte $28
!byte $00
!byte $8A
!byte $28
!byte $00
!byte $8B
!byte $EF
!byte $e3 ;run ibpcaa
; total compressed size 324 bytes
!byte $e1,12
| 16.085 | 57 | 0.631955 |
e5731014c98cd0264d99a80723fad049749799d3 | 567 | asm | Assembly | oeis/199/A199686.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/199/A199686.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/199/A199686.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A199686: 6*10^n+1.
; 7,61,601,6001,60001,600001,6000001,60000001,600000001,6000000001,60000000001,600000000001,6000000000001,60000000000001,600000000000001,6000000000000001,60000000000000001,600000000000000001,6000000000000000001,60000000000000000001,600000000000000000001,6000000000000000000001,60000000000000000000001,600000000000000000000001,6000000000000000000000001,60000000000000000000000001,600000000000000000000000001,6000000000000000000000000001,60000000000000000000000000001,600000000000000000000000000001
mov $1,10
pow $1,$0
mul $1,6
add $1,1
mov $0,$1
| 63 | 496 | 0.887125 |
dbc1641a06ba3a6ae5eff492b23943485d2ed176 | 16,280 | asm | Assembly | game/data/tilesets/jungle.asm | benoitryder/super-tilt-bro | 8d5035f54e906a401d0808c2e104d32fa1fadd7f | [
"WTFPL"
] | 91 | 2017-08-06T18:30:13.000Z | 2022-02-17T00:26:45.000Z | game/data/tilesets/jungle.asm | pompshuffle/super-tilt-bro | d0f836290223085d7794c445c696e1c644c674d2 | [
"WTFPL"
] | 2 | 2018-10-12T04:34:13.000Z | 2021-12-25T17:01:18.000Z | game/data/tilesets/jungle.asm | pompshuffle/super-tilt-bro | d0f836290223085d7794c445c696e1c644c674d2 | [
"WTFPL"
] | 9 | 2016-10-08T21:24:37.000Z | 2022-02-05T00:13:31.000Z | TILESET_JUNGLE_BANK_NUMBER = CURRENT_BANK_NUMBER
tileset_jungle:
; Tileset's size in tiles (zero means 256)
.byt $46
TILESET_JUNGLE_0 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000
TILESET_JUNGLE_1 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000001, %10000011, %11000110, %00111101, %10101010
.byt %10000001, %01010000, %10101010, %11110110, %01111100, %00111000, %00000000, %00000000
TILESET_JUNGLE_2 = (*-(tileset_jungle+1))/16
.byt %10000000, %00000000, %00000000, %00000000, %00110001, %00011111, %00000110, %10000011
.byt %00000000, %10101000, %01010100, %00111111, %00001110, %00000000, %00000001, %00000000
TILESET_JUNGLE_3 = (*-(tileset_jungle+1))/16
.byt %00101000, %00010100, %00101000, %00100000, %11000000, %00000001, %00000001, %00000111
.byt %00000000, %00000000, %00000000, %11000000, %00010100, %10101010, %11111110, %11111000
TILESET_JUNGLE_4 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %01000000, %00100000, %00100000, %10010000, %00001100, %00000110
.byt %10100000, %01011100, %00111000, %00000001, %00011010, %01001101, %10100011, %01010001
TILESET_JUNGLE_5 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000001, %00000000, %00000000, %00000000, %00000000, %00111000
.byt %00000000, %00000000, %00000000, %00000010, %10000101, %11111010, %11110100, %11000000
TILESET_JUNGLE_6 = (*-(tileset_jungle+1))/16
.byt %00100001, %00000000, %00000000, %00011000, %00001100, %00000111, %00100000, %00000000
.byt %01010000, %00100010, %01011101, %00000111, %00000011, %00000000, %00000000, %00000000
TILESET_JUNGLE_7 = (*-(tileset_jungle+1))/16
.byt %11111111, %00000010, %00000110, %00001000, %00110000, %00110000, %00001111, %10000000
.byt %00000000, %10100100, %01011001, %11110110, %11001101, %00001111, %00000000, %00000000
TILESET_JUNGLE_8 = (*-(tileset_jungle+1))/16
.byt %00000011, %10000011, %11000111, %01111111, %00000101, %00011010, %11110101, %00000000
.byt %11100000, %01111100, %00111000, %10000000, %01110000, %11100000, %00000000, %00000000
TILESET_JUNGLE_9 = (*-(tileset_jungle+1))/16
.byt %11110001, %00000000, %10000000, %11000100, %00111100, %00000000, %00000000, %00010000
.byt %00001000, %11010110, %01101100, %00111000, %00000000, %00000000, %00000000, %00000000
TILESET_JUNGLE_10 = (*-(tileset_jungle+1))/16
.byt %00000000, %01111000, %11010100, %01111100, %01101101, %01000011, %10111111, %11111111
.byt %00000000, %01111000, %10111100, %10000111, %01110010, %01111100, %11111000, %11000010
TILESET_JUNGLE_11 = (*-(tileset_jungle+1))/16
.byt %00000000, %00111100, %01011010, %11001011, %11111100, %10000110, %10100011, %11100001
.byt %00000000, %01111100, %11100110, %11110011, %00011100, %01111110, %01000011, %01011001
TILESET_JUNGLE_12 = (*-(tileset_jungle+1))/16
.byt %10111111, %01111110, %00010110, %00100111, %00111010, %00010011, %01000001, %00000000
.byt %11000110, %10000011, %00101011, %01011011, %01111001, %01110000, %01000000, %00000000
TILESET_JUNGLE_13 = (*-(tileset_jungle+1))/16
.byt %01100000, %11011000, %11101000, %11110000, %11011000, %10001100, %10000100, %00000000
.byt %11011100, %11100100, %11010010, %11010000, %10111000, %10011100, %00001100, %00000000
TILESET_JUNGLE_14 = (*-(tileset_jungle+1))/16
.byt %00111000, %01000000, %11000110, %11000000, %00010100, %00111100, %00111000, %00000000
.byt %00111100, %01011000, %11000110, %11101010, %01011000, %00111000, %00000000, %00000000
TILESET_JUNGLE_15 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00100000, %00000000, %01000000, %01000000, %10110000, %01011100
.byt %00000000, %00000000, %00000000, %01100000, %10100000, %10110000, %00001100, %00000010
TILESET_JUNGLE_16 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00001000, %00000000, %00000100, %01001000
.byt %00000000, %00000000, %00000100, %00011100, %00110100, %01101100, %11011000, %10010000
TILESET_JUNGLE_17 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000
.byt %00011000, %10011000, %11011000, %00110000, %00110000, %00110000, %00110000, %00100000
TILESET_JUNGLE_18 = (*-(tileset_jungle+1))/16
.byt %00111111, %11111111, %11111100, %01010100, %00101000, %00000011, %11000100, %00111000
.byt %00111111, %11111111, %11111111, %11111111, %11111111, %11111100, %00111000, %00000000
TILESET_JUNGLE_19 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %00011111, %00000110, %11100010, %00011001, %00000100, %00000000
.byt %11111111, %11111111, %11111111, %11111111, %00011111, %00000110, %00000010, %00000010
TILESET_JUNGLE_20 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %00000000, %00000000, %10011111, %01100000, %00000000, %00000000
.byt %11111111, %11111111, %11111111, %11111111, %01100000, %00000000, %00000000, %00000000
TILESET_JUNGLE_21 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %00001111, %00000110, %11110010, %00001001, %00000100, %00000000
.byt %11111111, %11111111, %11111111, %11111111, %00001111, %00000110, %00000010, %00000010
TILESET_JUNGLE_22 = (*-(tileset_jungle+1))/16
.byt %11111100, %11111111, %10101010, %00010100, %10000001, %01100010, %00011100, %00000000
.byt %11111100, %11111111, %11111111, %11111111, %01111110, %00011100, %00000000, %00000000
TILESET_JUNGLE_23 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %11111111, %00000000, %00000000, %10011110, %01100000, %00000000
.byt %11111111, %11111111, %11111111, %11111111, %11111111, %01100000, %00000000, %00000000
TILESET_JUNGLE_24 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %00001100, %00000100, %11100001, %00011010, %00000100, %00000000
.byt %11111111, %11111111, %11111111, %11111111, %00011110, %00000100, %00000000, %00000000
TILESET_JUNGLE_25 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00001001, %00001010, %00001111, %00000101
.byt %00100000, %00000010, %10001000, %00001000, %00110100, %00010000, %00000000, %00010000
TILESET_JUNGLE_26 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %11100000, %11000000, %10000000, %11111000
.byt %01000000, %10100000, %01000000, %10101000, %00011100, %00101000, %01010000, %00000000
TILESET_JUNGLE_27 = (*-(tileset_jungle+1))/16
.byt %00001010, %10000011, %00000010, %00000110, %10000010, %10000001, %11111011, %10111110
.byt %00000000, %00110000, %01110000, %01100000, %01001100, %00001000, %00000000, %00000000
TILESET_JUNGLE_28 = (*-(tileset_jungle+1))/16
.byt %00000000, %00001101, %00000011, %00000111, %00000001, %00000000, %00100110, %00000000
.byt %00001111, %00000010, %00011100, %01110000, %01101110, %11101100, %11011000, %11111011
TILESET_JUNGLE_29 = (*-(tileset_jungle+1))/16
.byt %10000000, %00000000, %11001000, %00000100, %11111000, %11001100, %10000110, %00000010
.byt %00000000, %11111000, %00000100, %11111010, %00000110, %00110010, %01010000, %00101000
TILESET_JUNGLE_30 = (*-(tileset_jungle+1))/16
.byt %00000111, %00000011, %00000110, %00000000, %00000000, %00000000, %00000000, %00000000
.byt %00000000, %00000000, %00010001, %01000000, %00000000, %00010000, %00000000, %00000000
TILESET_JUNGLE_31 = (*-(tileset_jungle+1))/16
.byt %11000000, %01100000, %00100000, %00000000, %00000000, %00000000, %00000000, %00000000
.byt %00111000, %10001100, %00000000, %00000000, %00010000, %00010000, %00000000, %00000000
TILESET_JUNGLE_32 = (*-(tileset_jungle+1))/16
.byt %00011000, %00011010, %01000000, %00110001, %00000001, %00000001, %00000000, %00000000
.byt %11100110, %01100101, %00100111, %00000110, %00000110, %00000010, %00000000, %00000000
TILESET_JUNGLE_33 = (*-(tileset_jungle+1))/16
.byt %01000000, %00110000, %10010000, %10011000, %11000000, %01000000, %00000000, %00000000
.byt %10111100, %10001100, %00001100, %01100100, %00100000, %00000000, %00000000, %00000000
TILESET_JUNGLE_34 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %00011111, %00000110, %11100010, %00011001, %00100100, %00000100
.byt %11111111, %11111111, %11111111, %11111111, %00011111, %00000110, %00100010, %00000010
TILESET_JUNGLE_35 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000100, %00011100, %00110100, %01101100, %11011000, %10010000
.byt %00000000, %00000000, %00000100, %00011100, %00111100, %01101100, %11011100, %11011000
TILESET_JUNGLE_36 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %01100000, %10100000, %10110000, %00001100, %00000010
.byt %00000000, %00000000, %00100000, %01100000, %11100000, %11110000, %10111100, %01011110
TILESET_JUNGLE_37 = (*-(tileset_jungle+1))/16
.byt %00111111, %01111111, %11110101, %11101011, %11000001, %11000000, %11100000, %11111000
.byt %00111111, %01111111, %11111111, %11111111, %11111111, %11111111, %11111110, %11111100
TILESET_JUNGLE_38 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %10101011, %11010001, %10000001, %11000011, %11000110, %00011100
.byt %01111100, %11111111, %11111111, %11111110, %11111110, %11111111, %01111111, %11100111
TILESET_JUNGLE_39 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %11010101, %10101011, %10000001, %11100001, %00110011, %00010111
.byt %00111110, %01111111, %01111111, %01111111, %01111111, %11111111, %11111110, %11111000
TILESET_JUNGLE_40 = (*-(tileset_jungle+1))/16
.byt %11111100, %11111110, %10101111, %11010111, %10000011, %00000011, %00000111, %00011111
.byt %11111100, %11111110, %11111111, %11111111, %11111111, %11111111, %01111111, %00111111
TILESET_JUNGLE_41 = (*-(tileset_jungle+1))/16
.byt %00011000, %00100000, %01100000, %01001100, %00000000, %01100000, %11100000, %00000000
.byt %01111011, %00110011, %01111011, %01111111, %00001111, %01100001, %11111001, %10100011
TILESET_JUNGLE_42 = (*-(tileset_jungle+1))/16
.byt %00001010, %10110011, %01110010, %01100110, %11001110, %10001001, %11111011, %10111110
.byt %11110101, %01111100, %11111101, %11111001, %01111101, %01111110, %00000100, %01000001
TILESET_JUNGLE_43 = (*-(tileset_jungle+1))/16
.byt %00001111, %00111111, %01110101, %01001010, %10000100, %10100000, %11010101, %01101110
.byt %11111111, %11111111, %11111111, %11111111, %01111011, %01011111, %00101010, %10010001
TILESET_JUNGLE_44 = (*-(tileset_jungle+1))/16
.byt %11110000, %10111100, %01010110, %10100010, %00001001, %01000001, %00001011, %10111110
.byt %11111111, %11111111, %11111111, %11111111, %11110110, %10111110, %11110100, %01000001
TILESET_JUNGLE_45 = (*-(tileset_jungle+1))/16
.byt %00011000, %00000100, %00000110, %00110010, %00000000, %00000110, %00000111, %00000000
.byt %11011110, %11001100, %11011110, %11111110, %11110000, %10000110, %10011111, %11000101
TILESET_JUNGLE_46 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000010, %00001000
TILESET_JUNGLE_47 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000000
.byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111
TILESET_JUNGLE_48 = (*-(tileset_jungle+1))/16
.byt %00100000, %00000010, %10001000, %00001000, %00111101, %00011010, %00001111, %00010101
.byt %11111111, %11111111, %11111111, %11111111, %11110110, %11110101, %11110000, %11111010
TILESET_JUNGLE_49 = (*-(tileset_jungle+1))/16
.byt %01000000, %10100000, %01000000, %10101000, %11111100, %11101000, %11010000, %11111000
.byt %11111111, %11111111, %11111111, %11111111, %00011111, %00111111, %01111111, %00000111
TILESET_JUNGLE_50 = (*-(tileset_jungle+1))/16
.byt %01011001, %00111110, %01001111, %01111110, %01011110, %00101111, %01011110, %00001011
.byt %11110111, %11110111, %10110111, %10000011, %11111001, %11111100, %11111001, %11110100
TILESET_JUNGLE_51 = (*-(tileset_jungle+1))/16
.byt %01100000, %10001100, %01001010, %10011100, %00111100, %11111000, %10110100, %11101000
.byt %11111111, %11110011, %11110111, %11101111, %11001111, %00001111, %01011111, %00011111
TILESET_JUNGLE_52 = (*-(tileset_jungle+1))/16
.byt %00001111, %00001111, %00011111, %01110111, %01101111, %11101100, %11111110, %11111011
.byt %11111111, %11110010, %11111100, %11111000, %11111110, %11111111, %11011001, %11111111
TILESET_JUNGLE_53 = (*-(tileset_jungle+1))/16
.byt %10000000, %11111000, %11001100, %11111110, %11111110, %11111110, %11010110, %00101010
.byt %01111111, %11111111, %00110111, %11111011, %00000111, %00110011, %01111001, %11111101
TILESET_JUNGLE_54 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00000000, %00000010, %00001111
.byt %00000100, %00001010, %00000101, %00000011, %10100010, %01010111, %10111111, %11111111
TILESET_JUNGLE_55 = (*-(tileset_jungle+1))/16
.byt %00000000, %00000000, %00000000, %00000000, %00000000, %00001000, %00011100, %00111110
.byt %00000100, %00001000, %00011000, %00011100, %10111110, %01111111, %11111111, %11111111
TILESET_JUNGLE_56 = (*-(tileset_jungle+1))/16
.byt %00011000, %01100000, %11010000, %10000000, %00000000, %00110000, %00100000, %00000000
.byt %00111111, %01101001, %11110011, %11111001, %11110011, %01111111, %01110111, %01100111
TILESET_JUNGLE_57 = (*-(tileset_jungle+1))/16
.byt %00000111, %00000011, %00010111, %01000000, %00000000, %00010000, %00000000, %00000000
.byt %11111000, %11111100, %11111001, %11111111, %11111111, %11111111, %11111111, %11111111
TILESET_JUNGLE_58 = (*-(tileset_jungle+1))/16
.byt %11111000, %11101100, %00100000, %00000000, %00010000, %00010000, %00000000, %00000000
.byt %00111111, %10011111, %11011111, %11111111, %11111111, %11111111, %11111111, %11111111
TILESET_JUNGLE_59 = (*-(tileset_jungle+1))/16
.byt %11010011, %01111111, %00011111, %00111111, %00010111, %00001011, %00000101, %00000000
.byt %00101100, %10000000, %11101000, %11001100, %11111110, %11111110, %11111110, %11111111
TILESET_JUNGLE_60 = (*-(tileset_jungle+1))/16
.byt %11110000, %11111000, %11001111, %01111010, %10111000, %11101000, %11110000, %00000000
.byt %00001111, %00100111, %10110001, %10000101, %01111111, %01111111, %00111111, %11111111
TILESET_JUNGLE_61 = (*-(tileset_jungle+1))/16
.byt %01000000, %00000101, %00010000, %00010001, %01111011, %00110101, %00011111, %00101011
.byt %11111111, %11111111, %11111111, %11111111, %11101100, %11101010, %11100000, %11110100
TILESET_JUNGLE_62 = (*-(tileset_jungle+1))/16
.byt %10000000, %01000000, %10000000, %01010000, %11111000, %11010000, %10100000, %11110000
.byt %11111111, %11111111, %11111111, %11111111, %00111111, %01111111, %11111111, %00001111
TILESET_JUNGLE_63 = (*-(tileset_jungle+1))/16
.byt %11111110, %01111111, %01100111, %00110111, %00000111, %00000011, %00000000, %00000000
.byt %11100111, %11100101, %10111111, %11001110, %11111110, %11111110, %11111111, %11111111
TILESET_JUNGLE_64 = (*-(tileset_jungle+1))/16
.byt %11111100, %10111100, %10011100, %11111100, %11100000, %01000000, %00000000, %00000000
.byt %10111111, %11001111, %01101111, %01100111, %00111111, %10111111, %11111111, %11111111
TILESET_JUNGLE_65 = (*-(tileset_jungle+1))/16
.byt %00011000, %00000110, %00001011, %00000001, %00000000, %00001100, %00000100, %00000000
.byt %11111100, %10010110, %11001111, %10011111, %11001111, %11111110, %11101110, %11100110
TILESET_JUNGLE_66 = (*-(tileset_jungle+1))/16
.byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111
.byt %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111, %11111111
TILESET_JUNGLE_67 = (*-(tileset_jungle+1))/16
.byt %00001111, %00000111, %00101110, %10000000, %00000000, %00100000, %00000000, %00000000
.byt %11110000, %11111001, %11110011, %11111111, %11111111, %11111111, %11111111, %11111111
TILESET_JUNGLE_68 = (*-(tileset_jungle+1))/16
.byt %11110000, %11011000, %01000000, %00000000, %00100000, %00100000, %00000000, %00000000
.byt %01111111, %00111111, %10111111, %11111111, %11111111, %11111111, %11111111, %11111111
TILESET_JUNGLE_69 = (*-(tileset_jungle+1))/16
.byt %11110000, %11111000, %11001110, %01111010, %10111000, %11101000, %11110000, %00000000
.byt %00001111, %00100111, %10110001, %10000101, %01111111, %01111111, %00111111, %11111111
| 56.527778 | 91 | 0.72758 |
2953a41e4c31a52d145433fa8c2cd06ec7a51158 | 818 | asm | Assembly | programs/oeis/158/A158589.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/158/A158589.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/158/A158589.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A158589: a(n) = 324*n^2 - 18.
; 306,1278,2898,5166,8082,11646,15858,20718,26226,32382,39186,46638,54738,63486,72882,82926,93618,104958,116946,129582,142866,156798,171378,186606,202482,219006,236178,253998,272466,291582,311346,331758,352818,374526,396882,419886,443538,467838,492786,518382,544626,571518,599058,627246,656082,685566,715698,746478,777906,809982,842706,876078,910098,944766,980082,1016046,1052658,1089918,1127826,1166382,1205586,1245438,1285938,1327086,1368882,1411326,1454418,1498158,1542546,1587582,1633266,1679598,1726578,1774206,1822482,1871406,1920978,1971198,2022066,2073582,2125746,2178558,2232018,2286126,2340882,2396286,2452338,2509038,2566386,2624382,2683026,2742318,2802258,2862846,2924082,2985966,3048498,3111678,3175506,3239982
mov $1,2
add $1,$0
mul $1,$0
mul $1,324
add $1,306
mov $0,$1
| 81.8 | 723 | 0.821516 |
563fb42f65c1efb9fced9a81fddd04bd61c62e0d | 1,604 | asm | Assembly | MarkO/COCOIOEQU.asm | MarkO-555/CoCoIO-NIC-Base-Code | f3084e1f1a351d950812ea351f777b279a2a2110 | [
"BSD-3-Clause"
] | 1 | 2021-12-12T04:03:37.000Z | 2021-12-12T04:03:37.000Z | MarkO/COCOIOEQU.asm | MarkO-555/CoCoIO-NIC-Base-Code | f3084e1f1a351d950812ea351f777b279a2a2110 | [
"BSD-3-Clause"
] | null | null | null | MarkO/COCOIOEQU.asm | MarkO-555/CoCoIO-NIC-Base-Code | f3084e1f1a351d950812ea351f777b279a2a2110 | [
"BSD-3-Clause"
] | 1 | 2021-12-14T04:18:19.000Z | 2021-12-14T04:18:19.000Z | ;*********************************************************************
;* Title: COCOIOEQU.asm
;*********************************************************************
;* Author: R. Allen Murphey
;*
;* License: Contributed 2021 by R. Allen Murphey to CoCoIO Development
;*
;* Description: CoCoIO for Color Computer Equates
;*
;* Documentation: https://www.wiznet.io/product-item/w5100s/
;*
;* Include Files: none
;*
;* Assembler: lwasm 1.4.2
;*
;* Revision History:
;* Rev # Date Who Comments
;* ----- ----------- ------ ---------------------------------------
;* 00 2021 RAM Initial equates from Rick Ulland's Notes
;*********************************************************************
org 0
CIOCMND: rmb 1 ; CoCoIO Command Register
CIOADDR: rmb 2 ; CoCoIO Address Register (MSB/LSB)
CIODATA: rmb 1 ; CoCoIO Read/Write Data Register
; CoCoIO with Jumper set to 0xFF6x Range
CIO0CMND: equ $FF68 ; CoCoIO Command Register
CIO0ADDR: equ $FF69 ; CoCoIO Address Register MSB
;$FF6A ; CoCoIO Address Register LSB
CIO0DATA: equ $FF6B ; CoCoIO Read/Write Data Register
; CoCoIO with Jumper set to 0xFF7x Range
CIO1CMND: equ $FF78 ; CoCoIO Command Register
CIO1ADDR: equ $FF79 ; CoCoIO Address Register MSB
;$FF7A ; CoCoIO Address Register LSB
CIO1DATA: equ $FF7B ; CoCoIO Read/Write Data Register
; End of CoCoIO equates
| 39.121951 | 71 | 0.480673 |
5cf7a4786e4128e180b5b2991bf79e45ec24edd4 | 737 | asm | Assembly | oeis/306/A306280.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/306/A306280.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/306/A306280.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A306280: a(n) = Sum_{k=0..n} binomial(n,k)*binomial(n^2+k,k).
; Submitted by Christian Krause
; 1,3,26,416,9708,297662,11306572,512307336,26968496504,1617489748394,108885682104744,8129721925098468,666736347200187804,59582961423951290184,5762936296492591067968,599807329803134064385488,66843498592187788579795440,7941361957117286492487826178,1001969304154845761345274025336,133801374050091404251173334642704,18853604766644984768299575268877936,2795571741452693829468220419572858986,435129465941234029081215811378657360968,70935851025903062157130391501805149471296
mov $1,1
mov $2,1
mov $3,$0
pow $0,2
mov $4,2
lpb $3
add $0,1
mul $1,$3
mul $1,$0
sub $3,1
sub $5,1
add $5,$4
div $1,$5
add $2,$1
add $4,2
lpe
mov $0,$2
| 33.5 | 468 | 0.799186 |
a94dd068135c18626b4ef3a7c02577ad6d124fca | 238 | asm | Assembly | libsrc/stdio_new/file/fdopen.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/stdio_new/file/fdopen.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/stdio_new/file/fdopen.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ; CALLER linkage for function pointers
; 06.2008 aralbrec
XLIB fdopen
LIB fdopen_callee
XREF ASMDISP_FDOPEN_CALLEE
.fdopen
pop af
pop de
pop hl
push hl
push de
push af
jp fdopen_callee + ASMDISP_FDOPEN_CALLEE
| 12.526316 | 43 | 0.722689 |
2cccb2aabfff1394aae96e3ba1aeb0bd313a20da | 59,520 | asm | Assembly | target/cos_117/disasm/iop_overlay1/STAGEIN.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/STAGEIN.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/STAGEIN.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | 0x0000 (0x000000) 0x1800-0x0000 f:00014 d: 0 | A = 0 (0x0000)
0x0002 (0x000004) 0x291A- f:00024 d: 282 | OR[282] = A
0x0003 (0x000006) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0004 (0x000008) 0x291B- f:00024 d: 283 | OR[283] = A
0x0005 (0x00000A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0006 (0x00000C) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0007 (0x00000E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0008 (0x000010) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0009 (0x000012) 0x291C- f:00024 d: 284 | OR[284] = A
0x000A (0x000014) 0x2118- f:00020 d: 280 | A = OR[280]
0x000B (0x000016) 0x1405- f:00012 d: 5 | A = A + 5 (0x0005)
0x000C (0x000018) 0x2908- f:00024 d: 264 | OR[264] = A
0x000D (0x00001A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x000E (0x00001C) 0x291D- f:00024 d: 285 | OR[285] = A
0x000F (0x00001E) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x0010 (0x000020) 0x292B- f:00024 d: 299 | OR[299] = A
0x0011 (0x000022) 0x10B4- f:00010 d: 180 | A = 180 (0x00B4)
0x0012 (0x000024) 0x292C- f:00024 d: 300 | OR[300] = A
0x0013 (0x000026) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0014 (0x000028) 0x292D- f:00024 d: 301 | OR[301] = A
0x0015 (0x00002A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0016 (0x00002C) 0x292E- f:00024 d: 302 | OR[302] = A
0x0017 (0x00002E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0018 (0x000030) 0x292F- f:00024 d: 303 | OR[303] = A
0x0019 (0x000032) 0x111B- f:00010 d: 283 | A = 283 (0x011B)
0x001A (0x000034) 0x2930- f:00024 d: 304 | OR[304] = A
0x001B (0x000036) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x001C (0x000038) 0x5800- f:00054 d: 0 | B = A
0x001D (0x00003A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x001E (0x00003C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x001F (0x00003E) 0x8602- f:00103 d: 2 | P = P + 2 (0x0021), A # 0
0x0020 (0x000040) 0x700B- f:00070 d: 11 | P = P + 11 (0x002B)
0x0021 (0x000042) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0022 (0x000044) 0x292B- f:00024 d: 299 | OR[299] = A
0x0023 (0x000046) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0024 (0x000048) 0x292C- f:00024 d: 300 | OR[300] = A
0x0025 (0x00004A) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x0026 (0x00004C) 0x5800- f:00054 d: 0 | B = A
0x0027 (0x00004E) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x0029 (0x000052) 0x7C09- f:00076 d: 9 | R = OR[9]
0x002A (0x000054) 0x721B- f:00071 d: 27 | P = P - 27 (0x000F)
0x002B (0x000056) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x002C (0x000058) 0x292B- f:00024 d: 299 | OR[299] = A
0x002D (0x00005A) 0x211C- f:00020 d: 284 | A = OR[284]
0x002E (0x00005C) 0x292C- f:00024 d: 300 | OR[300] = A
0x002F (0x00005E) 0x211D- f:00020 d: 285 | A = OR[285]
0x0030 (0x000060) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0031 (0x000062) 0x292D- f:00024 d: 301 | OR[301] = A
0x0032 (0x000064) 0x211B- f:00020 d: 283 | A = OR[283]
0x0033 (0x000066) 0x292E- f:00024 d: 302 | OR[302] = A
0x0034 (0x000068) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x0035 (0x00006A) 0x292F- f:00024 d: 303 | OR[303] = A
0x0036 (0x00006C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0037 (0x00006E) 0x2930- f:00024 d: 304 | OR[304] = A
0x0038 (0x000070) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x0039 (0x000072) 0x5800- f:00054 d: 0 | B = A
0x003A (0x000074) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x003B (0x000076) 0x7C09- f:00076 d: 9 | R = OR[9]
0x003C (0x000078) 0x2119- f:00020 d: 281 | A = OR[281]
0x003D (0x00007A) 0x8602- f:00103 d: 2 | P = P + 2 (0x003F), A # 0
0x003E (0x00007C) 0x7023- f:00070 d: 35 | P = P + 35 (0x0061)
0x003F (0x00007E) 0x101D- f:00010 d: 29 | A = 29 (0x001D)
0x0040 (0x000080) 0x292B- f:00024 d: 299 | OR[299] = A
0x0041 (0x000082) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0042 (0x000084) 0x292C- f:00024 d: 300 | OR[300] = A
0x0043 (0x000086) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x0044 (0x000088) 0x5800- f:00054 d: 0 | B = A
0x0045 (0x00008A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0046 (0x00008C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0047 (0x00008E) 0x2006- f:00020 d: 6 | A = OR[6]
0x0048 (0x000090) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0049 (0x000092) 0x2908- f:00024 d: 264 | OR[264] = A
0x004A (0x000094) 0x3108- f:00030 d: 264 | A = (OR[264])
0x004B (0x000096) 0x291C- f:00024 d: 284 | OR[284] = A
0x004C (0x000098) 0x2006- f:00020 d: 6 | A = OR[6]
0x004D (0x00009A) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x004E (0x00009C) 0x2908- f:00024 d: 264 | OR[264] = A
0x004F (0x00009E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0050 (0x0000A0) 0x291D- f:00024 d: 285 | OR[285] = A
0x0051 (0x0000A2) 0x2006- f:00020 d: 6 | A = OR[6]
0x0052 (0x0000A4) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0053 (0x0000A6) 0x2908- f:00024 d: 264 | OR[264] = A
0x0054 (0x0000A8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0055 (0x0000AA) 0x8602- f:00103 d: 2 | P = P + 2 (0x0057), A # 0
0x0056 (0x0000AC) 0x700B- f:00070 d: 11 | P = P + 11 (0x0061)
0x0057 (0x0000AE) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0058 (0x0000B0) 0x292B- f:00024 d: 299 | OR[299] = A
0x0059 (0x0000B2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x005A (0x0000B4) 0x292C- f:00024 d: 300 | OR[300] = A
0x005B (0x0000B6) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x005C (0x0000B8) 0x5800- f:00054 d: 0 | B = A
0x005D (0x0000BA) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x005F (0x0000BE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0060 (0x0000C0) 0x7224- f:00071 d: 36 | P = P - 36 (0x003C)
0x0061 (0x0000C2) 0x2119- f:00020 d: 281 | A = OR[281]
0x0062 (0x0000C4) 0x8602- f:00103 d: 2 | P = P + 2 (0x0064), A # 0
0x0063 (0x0000C6) 0x7011- f:00070 d: 17 | P = P + 17 (0x0074)
0x0064 (0x0000C8) 0x211B- f:00020 d: 283 | A = OR[283]
0x0065 (0x0000CA) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x0066 (0x0000CC) 0x2908- f:00024 d: 264 | OR[264] = A
0x0067 (0x0000CE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0068 (0x0000D0) 0x291E- f:00024 d: 286 | OR[286] = A
0x0069 (0x0000D2) 0x2118- f:00020 d: 280 | A = OR[280]
0x006A (0x0000D4) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x006B (0x0000D6) 0x2908- f:00024 d: 264 | OR[264] = A
0x006C (0x0000D8) 0x211E- f:00020 d: 286 | A = OR[286]
0x006D (0x0000DA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x006E (0x0000DC) 0x211B- f:00020 d: 283 | A = OR[283]
0x006F (0x0000DE) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x0070 (0x0000E0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0071 (0x0000E2) 0x1800-0x5354 f:00014 d: 0 | A = 21332 (0x5354)
0x0073 (0x0000E6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0074 (0x0000E8) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x0075 (0x0000EA) 0x292B- f:00024 d: 299 | OR[299] = A
0x0076 (0x0000EC) 0x211C- f:00020 d: 284 | A = OR[284]
0x0077 (0x0000EE) 0x292C- f:00024 d: 300 | OR[300] = A
0x0078 (0x0000F0) 0x211D- f:00020 d: 285 | A = OR[285]
0x0079 (0x0000F2) 0x292D- f:00024 d: 301 | OR[301] = A
0x007A (0x0000F4) 0x211B- f:00020 d: 283 | A = OR[283]
0x007B (0x0000F6) 0x292E- f:00024 d: 302 | OR[302] = A
0x007C (0x0000F8) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x007D (0x0000FA) 0x292F- f:00024 d: 303 | OR[303] = A
0x007E (0x0000FC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x007F (0x0000FE) 0x2930- f:00024 d: 304 | OR[304] = A
0x0080 (0x000100) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x0081 (0x000102) 0x5800- f:00054 d: 0 | B = A
0x0082 (0x000104) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0083 (0x000106) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0084 (0x000108) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0085 (0x00010A) 0x292B- f:00024 d: 299 | OR[299] = A
0x0086 (0x00010C) 0x1800-0x0168 f:00014 d: 0 | A = 360 (0x0168)
0x0088 (0x000110) 0x292C- f:00024 d: 300 | OR[300] = A
0x0089 (0x000112) 0x1800-0x3813 f:00014 d: 0 | A = 14355 (0x3813)
0x008B (0x000116) 0x292D- f:00024 d: 301 | OR[301] = A
0x008C (0x000118) 0x2118- f:00020 d: 280 | A = OR[280]
0x008D (0x00011A) 0x292E- f:00024 d: 302 | OR[302] = A
0x008E (0x00011C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x008F (0x00011E) 0x292F- f:00024 d: 303 | OR[303] = A
0x0090 (0x000120) 0x1800-0x0B40 f:00014 d: 0 | A = 2880 (0x0B40)
0x0092 (0x000124) 0x2930- f:00024 d: 304 | OR[304] = A
0x0093 (0x000126) 0x211C- f:00020 d: 284 | A = OR[284]
0x0094 (0x000128) 0x2931- f:00024 d: 305 | OR[305] = A
0x0095 (0x00012A) 0x211D- f:00020 d: 285 | A = OR[285]
0x0096 (0x00012C) 0x2932- f:00024 d: 306 | OR[306] = A
0x0097 (0x00012E) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x0098 (0x000130) 0x5800- f:00054 d: 0 | B = A
0x0099 (0x000132) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x009B (0x000136) 0x7C09- f:00076 d: 9 | R = OR[9]
0x009C (0x000138) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x009D (0x00013A) 0x8602- f:00103 d: 2 | P = P + 2 (0x009F), A # 0
0x009E (0x00013C) 0x7005- f:00070 d: 5 | P = P + 5 (0x00A3)
0x009F (0x00013E) 0x1800-0x0000 f:00014 d: 0 | A = 0 (0x0000)
0x00A1 (0x000142) 0x291A- f:00024 d: 282 | OR[282] = A
0x00A2 (0x000144) 0x70A0- f:00070 d: 160 | P = P + 160 (0x0142)
0x00A3 (0x000146) 0x2119- f:00020 d: 281 | A = OR[281]
0x00A4 (0x000148) 0x8602- f:00103 d: 2 | P = P + 2 (0x00A6), A # 0
0x00A5 (0x00014A) 0x7070- f:00070 d: 112 | P = P + 112 (0x0115)
0x00A6 (0x00014C) 0x211B- f:00020 d: 283 | A = OR[283]
0x00A7 (0x00014E) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x00A8 (0x000150) 0x290D- f:00024 d: 269 | OR[269] = A
0x00A9 (0x000152) 0x2118- f:00020 d: 280 | A = OR[280]
0x00AA (0x000154) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x00AB (0x000156) 0x290E- f:00024 d: 270 | OR[270] = A
0x00AC (0x000158) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x00AD (0x00015A) 0x290F- f:00024 d: 271 | OR[271] = A
0x00AE (0x00015C) 0x7006- f:00070 d: 6 | P = P + 6 (0x00B4)
0x00AF (0x00015E) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00B0 (0x000160) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00B1 (0x000162) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x00B2 (0x000164) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00B3 (0x000166) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x00B4 (0x000168) 0x210F- f:00020 d: 271 | A = OR[271]
0x00B5 (0x00016A) 0x8E06- f:00107 d: 6 | P = P - 6 (0x00AF), A # 0
0x00B6 (0x00016C) 0x211B- f:00020 d: 283 | A = OR[283]
0x00B7 (0x00016E) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x00B8 (0x000170) 0x290D- f:00024 d: 269 | OR[269] = A
0x00B9 (0x000172) 0x2118- f:00020 d: 280 | A = OR[280]
0x00BA (0x000174) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x00BB (0x000176) 0x290E- f:00024 d: 270 | OR[270] = A
0x00BC (0x000178) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x00BD (0x00017A) 0x290F- f:00024 d: 271 | OR[271] = A
0x00BE (0x00017C) 0x7006- f:00070 d: 6 | P = P + 6 (0x00C4)
0x00BF (0x00017E) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00C0 (0x000180) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00C1 (0x000182) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x00C2 (0x000184) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00C3 (0x000186) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x00C4 (0x000188) 0x210F- f:00020 d: 271 | A = OR[271]
0x00C5 (0x00018A) 0x8E06- f:00107 d: 6 | P = P - 6 (0x00BF), A # 0
0x00C6 (0x00018C) 0x211B- f:00020 d: 283 | A = OR[283]
0x00C7 (0x00018E) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x00C8 (0x000190) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C9 (0x000192) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00CA (0x000194) 0x291F- f:00024 d: 287 | OR[287] = A
0x00CB (0x000196) 0x2118- f:00020 d: 280 | A = OR[280]
0x00CC (0x000198) 0x1416- f:00012 d: 22 | A = A + 22 (0x0016)
0x00CD (0x00019A) 0x2908- f:00024 d: 264 | OR[264] = A
0x00CE (0x00019C) 0x211F- f:00020 d: 287 | A = OR[287]
0x00CF (0x00019E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00D0 (0x0001A0) 0x211B- f:00020 d: 283 | A = OR[283]
0x00D1 (0x0001A2) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x00D2 (0x0001A4) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D3 (0x0001A6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D4 (0x0001A8) 0x2920- f:00024 d: 288 | OR[288] = A
0x00D5 (0x0001AA) 0x2118- f:00020 d: 280 | A = OR[280]
0x00D6 (0x0001AC) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x00D7 (0x0001AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D8 (0x0001B0) 0x2120- f:00020 d: 288 | A = OR[288]
0x00D9 (0x0001B2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00DA (0x0001B4) 0x2120- f:00020 d: 288 | A = OR[288]
0x00DB (0x0001B6) 0x8402- f:00102 d: 2 | P = P + 2 (0x00DD), A = 0
0x00DC (0x0001B8) 0x7014- f:00070 d: 20 | P = P + 20 (0x00F0)
0x00DD (0x0001BA) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00DE (0x0001BC) 0x292B- f:00024 d: 299 | OR[299] = A
0x00DF (0x0001BE) 0x1800-0x0157 f:00014 d: 0 | A = 343 (0x0157)
0x00E1 (0x0001C2) 0x292C- f:00024 d: 300 | OR[300] = A
0x00E2 (0x0001C4) 0x2118- f:00020 d: 280 | A = OR[280]
0x00E3 (0x0001C6) 0x292D- f:00024 d: 301 | OR[301] = A
0x00E4 (0x0001C8) 0x1800-0x0153 f:00014 d: 0 | A = 339 (0x0153)
0x00E6 (0x0001CC) 0x292E- f:00024 d: 302 | OR[302] = A
0x00E7 (0x0001CE) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x00E8 (0x0001D0) 0x5800- f:00054 d: 0 | B = A
0x00E9 (0x0001D2) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x00EB (0x0001D6) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00EC (0x0001D8) 0x1800-0xA037 f:00014 d: 0 | A = 41015 (0xA037)
0x00EE (0x0001DC) 0x291A- f:00024 d: 282 | OR[282] = A
0x00EF (0x0001DE) 0x7053- f:00070 d: 83 | P = P + 83 (0x0142)
0x00F0 (0x0001E0) 0x2118- f:00020 d: 280 | A = OR[280]
0x00F1 (0x0001E2) 0x141B- f:00012 d: 27 | A = A + 27 (0x001B)
0x00F2 (0x0001E4) 0x290E- f:00024 d: 270 | OR[270] = A
0x00F3 (0x0001E6) 0x1034- f:00010 d: 52 | A = 52 (0x0034)
0x00F4 (0x0001E8) 0x161B- f:00013 d: 27 | A = A - 27 (0x001B)
0x00F5 (0x0001EA) 0x290D- f:00024 d: 269 | OR[269] = A
0x00F6 (0x0001EC) 0x210D- f:00020 d: 269 | A = OR[269]
0x00F7 (0x0001EE) 0x8406- f:00102 d: 6 | P = P + 6 (0x00FD), A = 0
0x00F8 (0x0001F0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00F9 (0x0001F2) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00FA (0x0001F4) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x00FB (0x0001F6) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00FC (0x0001F8) 0x7206- f:00071 d: 6 | P = P - 6 (0x00F6)
0x00FD (0x0001FA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00FE (0x0001FC) 0x2923- f:00024 d: 291 | OR[291] = A
0x00FF (0x0001FE) 0x7483- f:00072 d: 131 | R = P + 131 (0x0182)
0x0100 (0x000200) 0x2121- f:00020 d: 289 | A = OR[289]
0x0101 (0x000202) 0x1E00-0x4D54 f:00017 d: 0 | A = A - 19796 (0x4D54)
0x0103 (0x000206) 0x8402- f:00102 d: 2 | P = P + 2 (0x0105), A = 0
0x0104 (0x000208) 0x7007- f:00070 d: 7 | P = P + 7 (0x010B)
0x0105 (0x00020A) 0x74A8- f:00072 d: 168 | R = P + 168 (0x01AD)
0x0106 (0x00020C) 0x7E03-0x0237 f:00077 d: 3 | R = OR[3]+567 (0x0237)
0x0108 (0x000210) 0x7E03-0x02E3 f:00077 d: 3 | R = OR[3]+739 (0x02E3)
0x010A (0x000214) 0x700B- f:00070 d: 11 | P = P + 11 (0x0115)
0x010B (0x000216) 0x2121- f:00020 d: 289 | A = OR[289]
0x010C (0x000218) 0x1E00-0x444B f:00017 d: 0 | A = A - 17483 (0x444B)
0x010E (0x00021C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0110), A = 0
0x010F (0x00021E) 0x7006- f:00070 d: 6 | P = P + 6 (0x0115)
0x0110 (0x000220) 0x749D- f:00072 d: 157 | R = P + 157 (0x01AD)
0x0111 (0x000222) 0x7E03-0x0266 f:00077 d: 3 | R = OR[3]+614 (0x0266)
0x0113 (0x000226) 0x7E03-0x02B1 f:00077 d: 3 | R = OR[3]+689 (0x02B1)
0x0115 (0x00022A) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x0116 (0x00022C) 0x292B- f:00024 d: 299 | OR[299] = A
0x0117 (0x00022E) 0x211B- f:00020 d: 283 | A = OR[283]
0x0118 (0x000230) 0x292C- f:00024 d: 300 | OR[300] = A
0x0119 (0x000232) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x011A (0x000234) 0x5800- f:00054 d: 0 | B = A
0x011B (0x000236) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x011C (0x000238) 0x7C09- f:00076 d: 9 | R = OR[9]
0x011D (0x00023A) 0x2118- f:00020 d: 280 | A = OR[280]
0x011E (0x00023C) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x011F (0x00023E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0120 (0x000240) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0121 (0x000242) 0x2921- f:00024 d: 289 | OR[289] = A
0x0122 (0x000244) 0x2121- f:00020 d: 289 | A = OR[289]
0x0123 (0x000246) 0x1E00-0x4D54 f:00017 d: 0 | A = A - 19796 (0x4D54)
0x0125 (0x00024A) 0x8402- f:00102 d: 2 | P = P + 2 (0x0127), A = 0
0x0126 (0x00024C) 0x7005- f:00070 d: 5 | P = P + 5 (0x012B)
0x0127 (0x00024E) 0x1800-0x016E f:00014 d: 0 | A = 366 (0x016E)
0x0129 (0x000252) 0x2922- f:00024 d: 290 | OR[290] = A
0x012A (0x000254) 0x700C- f:00070 d: 12 | P = P + 12 (0x0136)
0x012B (0x000256) 0x2121- f:00020 d: 289 | A = OR[289]
0x012C (0x000258) 0x1E00-0x444B f:00017 d: 0 | A = A - 17483 (0x444B)
0x012E (0x00025C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0130), A = 0
0x012F (0x00025E) 0x7005- f:00070 d: 5 | P = P + 5 (0x0134)
0x0130 (0x000260) 0x1800-0x0171 f:00014 d: 0 | A = 369 (0x0171)
0x0132 (0x000264) 0x2922- f:00024 d: 290 | OR[290] = A
0x0133 (0x000266) 0x7003- f:00070 d: 3 | P = P + 3 (0x0136)
0x0134 (0x000268) 0x7C34- f:00076 d: 52 | R = OR[52]
0x0135 (0x00026A) 0x0000- f:00000 d: 0 | PASS
0x0136 (0x00026C) 0x1029- f:00010 d: 41 | A = 41 (0x0029)
0x0137 (0x00026E) 0x292B- f:00024 d: 299 | OR[299] = A
0x0138 (0x000270) 0x2122- f:00020 d: 290 | A = OR[290]
0x0139 (0x000272) 0x292C- f:00024 d: 300 | OR[300] = A
0x013A (0x000274) 0x2118- f:00020 d: 280 | A = OR[280]
0x013B (0x000276) 0x292D- f:00024 d: 301 | OR[301] = A
0x013C (0x000278) 0x2119- f:00020 d: 281 | A = OR[281]
0x013D (0x00027A) 0x292E- f:00024 d: 302 | OR[302] = A
0x013E (0x00027C) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x013F (0x00027E) 0x5800- f:00054 d: 0 | B = A
0x0140 (0x000280) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0141 (0x000282) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0142 (0x000284) 0x211B- f:00020 d: 283 | A = OR[283]
0x0143 (0x000286) 0x8602- f:00103 d: 2 | P = P + 2 (0x0145), A # 0
0x0144 (0x000288) 0x7009- f:00070 d: 9 | P = P + 9 (0x014D)
0x0145 (0x00028A) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x0146 (0x00028C) 0x292B- f:00024 d: 299 | OR[299] = A
0x0147 (0x00028E) 0x211B- f:00020 d: 283 | A = OR[283]
0x0148 (0x000290) 0x292C- f:00024 d: 300 | OR[300] = A
0x0149 (0x000292) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x014A (0x000294) 0x5800- f:00054 d: 0 | B = A
0x014B (0x000296) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x014C (0x000298) 0x7C09- f:00076 d: 9 | R = OR[9]
0x014D (0x00029A) 0x2119- f:00020 d: 281 | A = OR[281]
0x014E (0x00029C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0150), A # 0
0x014F (0x00029E) 0x700F- f:00070 d: 15 | P = P + 15 (0x015E)
0x0150 (0x0002A0) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0151 (0x0002A2) 0x292B- f:00024 d: 299 | OR[299] = A
0x0152 (0x0002A4) 0x1800-0x0101 f:00014 d: 0 | A = 257 (0x0101)
0x0154 (0x0002A8) 0x292C- f:00024 d: 300 | OR[300] = A
0x0155 (0x0002AA) 0x211A- f:00020 d: 282 | A = OR[282]
0x0156 (0x0002AC) 0x292D- f:00024 d: 301 | OR[301] = A
0x0157 (0x0002AE) 0x2119- f:00020 d: 281 | A = OR[281]
0x0158 (0x0002B0) 0x292E- f:00024 d: 302 | OR[302] = A
0x0159 (0x0002B2) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x015A (0x0002B4) 0x5800- f:00054 d: 0 | B = A
0x015B (0x0002B6) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x015D (0x0002BA) 0x7C09- f:00076 d: 9 | R = OR[9]
0x015E (0x0002BC) 0x1029- f:00010 d: 41 | A = 41 (0x0029)
0x015F (0x0002BE) 0x292B- f:00024 d: 299 | OR[299] = A
0x0160 (0x0002C0) 0x1800-0x0168 f:00014 d: 0 | A = 360 (0x0168)
0x0162 (0x0002C4) 0x292C- f:00024 d: 300 | OR[300] = A
0x0163 (0x0002C6) 0x211A- f:00020 d: 282 | A = OR[282]
0x0164 (0x0002C8) 0x292D- f:00024 d: 301 | OR[301] = A
0x0165 (0x0002CA) 0x2118- f:00020 d: 280 | A = OR[280]
0x0166 (0x0002CC) 0x292E- f:00024 d: 302 | OR[302] = A
0x0167 (0x0002CE) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x0168 (0x0002D0) 0x5800- f:00054 d: 0 | B = A
0x0169 (0x0002D2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016A (0x0002D4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x016B (0x0002D6) 0x1800-0x9037 f:00014 d: 0 | A = 36919 (0x9037)
0x016D (0x0002DA) 0x291A- f:00024 d: 282 | OR[282] = A
0x016E (0x0002DC) 0x722C- f:00071 d: 44 | P = P - 44 (0x0142)
0x016F (0x0002DE) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0170 (0x0002E0) 0x292B- f:00024 d: 299 | OR[299] = A
0x0171 (0x0002E2) 0x1800-0x0157 f:00014 d: 0 | A = 343 (0x0157)
0x0173 (0x0002E6) 0x292C- f:00024 d: 300 | OR[300] = A
0x0174 (0x0002E8) 0x2118- f:00020 d: 280 | A = OR[280]
0x0175 (0x0002EA) 0x292D- f:00024 d: 301 | OR[301] = A
0x0176 (0x0002EC) 0x1800-0x01A3 f:00014 d: 0 | A = 419 (0x01A3)
0x0178 (0x0002F0) 0x292E- f:00024 d: 302 | OR[302] = A
0x0179 (0x0002F2) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x017A (0x0002F4) 0x5800- f:00054 d: 0 | B = A
0x017B (0x0002F6) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x017D (0x0002FA) 0x7C09- f:00076 d: 9 | R = OR[9]
0x017E (0x0002FC) 0x1800-0xA037 f:00014 d: 0 | A = 41015 (0xA037)
0x0180 (0x000300) 0x291A- f:00024 d: 282 | OR[282] = A
0x0181 (0x000302) 0x723F- f:00071 d: 63 | P = P - 63 (0x0142)
0x0182 (0x000304) 0x211E- f:00020 d: 286 | A = OR[286]
0x0183 (0x000306) 0x1E00-0x4D54 f:00017 d: 0 | A = A - 19796 (0x4D54)
0x0185 (0x00030A) 0x8402- f:00102 d: 2 | P = P + 2 (0x0187), A = 0
0x0186 (0x00030C) 0x7005- f:00070 d: 5 | P = P + 5 (0x018B)
0x0187 (0x00030E) 0x1800-0x4D54 f:00014 d: 0 | A = 19796 (0x4D54)
0x0189 (0x000312) 0x2921- f:00024 d: 289 | OR[289] = A
0x018A (0x000314) 0x701D- f:00070 d: 29 | P = P + 29 (0x01A7)
0x018B (0x000316) 0x211E- f:00020 d: 286 | A = OR[286]
0x018C (0x000318) 0x1E00-0x5354 f:00017 d: 0 | A = A - 21332 (0x5354)
0x018E (0x00031C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0190), A = 0
0x018F (0x00031E) 0x7005- f:00070 d: 5 | P = P + 5 (0x0194)
0x0190 (0x000320) 0x1800-0x444B f:00014 d: 0 | A = 17483 (0x444B)
0x0192 (0x000324) 0x2921- f:00024 d: 289 | OR[289] = A
0x0193 (0x000326) 0x7014- f:00070 d: 20 | P = P + 20 (0x01A7)
0x0194 (0x000328) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0195 (0x00032A) 0x292B- f:00024 d: 299 | OR[299] = A
0x0196 (0x00032C) 0x1800-0x0157 f:00014 d: 0 | A = 343 (0x0157)
0x0198 (0x000330) 0x292C- f:00024 d: 300 | OR[300] = A
0x0199 (0x000332) 0x2118- f:00020 d: 280 | A = OR[280]
0x019A (0x000334) 0x292D- f:00024 d: 301 | OR[301] = A
0x019B (0x000336) 0x1800-0x00EA f:00014 d: 0 | A = 234 (0x00EA)
0x019D (0x00033A) 0x292E- f:00024 d: 302 | OR[302] = A
0x019E (0x00033C) 0x112B- f:00010 d: 299 | A = 299 (0x012B)
0x019F (0x00033E) 0x5800- f:00054 d: 0 | B = A
0x01A0 (0x000340) 0x1800-0x2718 f:00014 d: 0 | A = 10008 (0x2718)
0x01A2 (0x000344) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01A3 (0x000346) 0x1800-0xA037 f:00014 d: 0 | A = 41015 (0xA037)
0x01A5 (0x00034A) 0x291A- f:00024 d: 282 | OR[282] = A
0x01A6 (0x00034C) 0x7264- f:00071 d: 100 | P = P - 100 (0x0142)
0x01A7 (0x00034E) 0x2118- f:00020 d: 280 | A = OR[280]
0x01A8 (0x000350) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x01A9 (0x000352) 0x2908- f:00024 d: 264 | OR[264] = A
0x01AA (0x000354) 0x2121- f:00020 d: 289 | A = OR[289]
0x01AB (0x000356) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01AC (0x000358) 0x0200- f:00001 d: 0 | EXIT
0x01AD (0x00035A) 0x2118- f:00020 d: 280 | A = OR[280]
0x01AE (0x00035C) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x01AF (0x00035E) 0x2924- f:00024 d: 292 | OR[292] = A
0x01B0 (0x000360) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01B1 (0x000362) 0x2925- f:00024 d: 293 | OR[293] = A
0x01B2 (0x000364) 0x2125- f:00020 d: 293 | A = OR[293]
0x01B3 (0x000366) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x01B4 (0x000368) 0xAC03-0x0219 f:00126 d: 3 | P = OR[3]+537 (0x0219), A = 0
0x01B6 (0x00036C) 0x7E03-0x02FC f:00077 d: 3 | R = OR[3]+764 (0x02FC)
0x01B8 (0x000370) 0x2126- f:00020 d: 294 | A = OR[294]
0x01B9 (0x000372) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x01BA (0x000374) 0x8402- f:00102 d: 2 | P = P + 2 (0x01BC), A = 0
0x01BB (0x000376) 0x7003- f:00070 d: 3 | P = P + 3 (0x01BE)
0x01BC (0x000378) 0x724D- f:00071 d: 77 | P = P - 77 (0x016F)
0x01BD (0x00037A) 0x703C- f:00070 d: 60 | P = P + 60 (0x01F9)
0x01BE (0x00037C) 0x2126- f:00020 d: 294 | A = OR[294]
0x01BF (0x00037E) 0x8402- f:00102 d: 2 | P = P + 2 (0x01C1), A = 0
0x01C0 (0x000380) 0x7039- f:00070 d: 57 | P = P + 57 (0x01F9)
0x01C1 (0x000382) 0x2121- f:00020 d: 289 | A = OR[289]
0x01C2 (0x000384) 0x1E00-0x444B f:00017 d: 0 | A = A - 17483 (0x444B)
0x01C4 (0x000388) 0x8402- f:00102 d: 2 | P = P + 2 (0x01C6), A = 0
0x01C5 (0x00038A) 0x702A- f:00070 d: 42 | P = P + 42 (0x01EF)
0x01C6 (0x00038C) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x01C7 (0x00038E) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x01C8 (0x000390) 0x251B- f:00022 d: 283 | A = A + OR[283]
0x01C9 (0x000392) 0x143C- f:00012 d: 60 | A = A + 60 (0x003C)
0x01CA (0x000394) 0x290D- f:00024 d: 269 | OR[269] = A
0x01CB (0x000396) 0x310D- f:00030 d: 269 | A = (OR[269])
0x01CC (0x000398) 0x290D- f:00024 d: 269 | OR[269] = A
0x01CD (0x00039A) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x01CE (0x00039C) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x01CF (0x00039E) 0x2908- f:00024 d: 264 | OR[264] = A
0x01D0 (0x0003A0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01D1 (0x0003A2) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01D2 (0x0003A4) 0x8604- f:00103 d: 4 | P = P + 4 (0x01D6), A # 0
0x01D3 (0x0003A6) 0x210D- f:00020 d: 269 | A = OR[269]
0x01D4 (0x0003A8) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x01D5 (0x0003AA) 0x290D- f:00024 d: 269 | OR[269] = A
0x01D6 (0x0003AC) 0x210D- f:00020 d: 269 | A = OR[269]
0x01D7 (0x0003AE) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x01D8 (0x0003B0) 0x8402- f:00102 d: 2 | P = P + 2 (0x01DA), A = 0
0x01D9 (0x0003B2) 0x7013- f:00070 d: 19 | P = P + 19 (0x01EC)
0x01DA (0x0003B4) 0x1800-0x3964 f:00014 d: 0 | A = 14692 (0x3964)
0x01DC (0x0003B8) 0x290D- f:00024 d: 269 | OR[269] = A
0x01DD (0x0003BA) 0x2124- f:00020 d: 292 | A = OR[292]
0x01DE (0x0003BC) 0x290E- f:00024 d: 270 | OR[270] = A
0x01DF (0x0003BE) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x01E0 (0x0003C0) 0x290F- f:00024 d: 271 | OR[271] = A
0x01E1 (0x0003C2) 0x7006- f:00070 d: 6 | P = P + 6 (0x01E7)
0x01E2 (0x0003C4) 0x310D- f:00030 d: 269 | A = (OR[269])
0x01E3 (0x0003C6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01E4 (0x0003C8) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x01E5 (0x0003CA) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x01E6 (0x0003CC) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x01E7 (0x0003CE) 0x210F- f:00020 d: 271 | A = OR[271]
0x01E8 (0x0003D0) 0x8E06- f:00107 d: 6 | P = P - 6 (0x01E2), A # 0
0x01E9 (0x0003D2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01EA (0x0003D4) 0x2923- f:00024 d: 291 | OR[291] = A
0x01EB (0x0003D6) 0x7003- f:00070 d: 3 | P = P + 3 (0x01EE)
0x01EC (0x0003D8) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x01ED (0x0003DA) 0x2923- f:00024 d: 291 | OR[291] = A
0x01EE (0x0003DC) 0x700A- f:00070 d: 10 | P = P + 10 (0x01F8)
0x01EF (0x0003DE) 0x2121- f:00020 d: 289 | A = OR[289]
0x01F0 (0x0003E0) 0x1E00-0x4D54 f:00017 d: 0 | A = A - 19796 (0x4D54)
0x01F2 (0x0003E4) 0x8402- f:00102 d: 2 | P = P + 2 (0x01F4), A = 0
0x01F3 (0x0003E6) 0x7005- f:00070 d: 5 | P = P + 5 (0x01F8)
0x01F4 (0x0003E8) 0x2125- f:00020 d: 293 | A = OR[293]
0x01F5 (0x0003EA) 0x8402- f:00102 d: 2 | P = P + 2 (0x01F7), A = 0
0x01F6 (0x0003EC) 0x7002- f:00070 d: 2 | P = P + 2 (0x01F8)
0x01F7 (0x0003EE) 0x7288- f:00071 d: 136 | P = P - 136 (0x016F)
0x01F8 (0x0003F0) 0x0200- f:00001 d: 0 | EXIT
0x01F9 (0x0003F2) 0x2126- f:00020 d: 294 | A = OR[294]
0x01FA (0x0003F4) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x01FB (0x0003F6) 0x290D- f:00024 d: 269 | OR[269] = A
0x01FC (0x0003F8) 0x2125- f:00020 d: 293 | A = OR[293]
0x01FD (0x0003FA) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x01FE (0x0003FC) 0x2524- f:00022 d: 292 | A = A + OR[292]
0x01FF (0x0003FE) 0x290E- f:00024 d: 270 | OR[270] = A
0x0200 (0x000400) 0x2125- f:00020 d: 293 | A = OR[293]
0x0201 (0x000402) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0202 (0x000404) 0x2908- f:00024 d: 264 | OR[264] = A
0x0203 (0x000406) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0204 (0x000408) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0205 (0x00040A) 0x8607- f:00103 d: 7 | P = P + 7 (0x020C), A # 0
0x0206 (0x00040C) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0207 (0x00040E) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0208 (0x000410) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0209 (0x000412) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x020A (0x000414) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x020B (0x000416) 0x7006- f:00070 d: 6 | P = P + 6 (0x0211)
0x020C (0x000418) 0x310E- f:00030 d: 270 | A = (OR[270])
0x020D (0x00041A) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x020F (0x00041E) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0210 (0x000420) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0211 (0x000422) 0x2D25- f:00026 d: 293 | OR[293] = OR[293] + 1
0x0212 (0x000424) 0x7260- f:00071 d: 96 | P = P - 96 (0x01B2)
0x0213 (0x000426) 0x2121- f:00020 d: 289 | A = OR[289]
0x0214 (0x000428) 0x1E00-0x444B f:00017 d: 0 | A = A - 17483 (0x444B)
0x0216 (0x00042C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0218), A = 0
0x0217 (0x00042E) 0x7013- f:00070 d: 19 | P = P + 19 (0x022A)
0x0218 (0x000430) 0x1800-0x3964 f:00014 d: 0 | A = 14692 (0x3964)
0x021A (0x000434) 0x290D- f:00024 d: 269 | OR[269] = A
0x021B (0x000436) 0x2124- f:00020 d: 292 | A = OR[292]
0x021C (0x000438) 0x290E- f:00024 d: 270 | OR[270] = A
0x021D (0x00043A) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x021E (0x00043C) 0x290F- f:00024 d: 271 | OR[271] = A
0x021F (0x00043E) 0x7006- f:00070 d: 6 | P = P + 6 (0x0225)
0x0220 (0x000440) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0221 (0x000442) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0222 (0x000444) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0223 (0x000446) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0224 (0x000448) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x0225 (0x00044A) 0x210F- f:00020 d: 271 | A = OR[271]
0x0226 (0x00044C) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0220), A # 0
0x0227 (0x00044E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0228 (0x000450) 0x2923- f:00024 d: 291 | OR[291] = A
0x0229 (0x000452) 0x7007- f:00070 d: 7 | P = P + 7 (0x0230)
0x022A (0x000454) 0x2121- f:00020 d: 289 | A = OR[289]
0x022B (0x000456) 0x1E00-0x4D54 f:00017 d: 0 | A = A - 19796 (0x4D54)
0x022D (0x00045A) 0x8402- f:00102 d: 2 | P = P + 2 (0x022F), A = 0
0x022E (0x00045C) 0x7002- f:00070 d: 2 | P = P + 2 (0x0230)
0x022F (0x00045E) 0x72C0- f:00071 d: 192 | P = P - 192 (0x016F)
0x0230 (0x000460) 0x0200- f:00001 d: 0 | EXIT
0x0231 (0x000462) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0232 (0x000464) 0x2927- f:00024 d: 295 | OR[295] = A
0x0233 (0x000466) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0234 (0x000468) 0x2923- f:00024 d: 291 | OR[291] = A
0x0235 (0x00046A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0236 (0x00046C) 0x2925- f:00024 d: 293 | OR[293] = A
0x0237 (0x00046E) 0x2125- f:00020 d: 293 | A = OR[293]
0x0238 (0x000470) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0239 (0x000472) 0x8426- f:00102 d: 38 | P = P + 38 (0x025F), A = 0
0x023A (0x000474) 0x74BC- f:00072 d: 188 | R = P + 188 (0x02F6)
0x023B (0x000476) 0x2126- f:00020 d: 294 | A = OR[294]
0x023C (0x000478) 0x8405- f:00102 d: 5 | P = P + 5 (0x0241), A = 0
0x023D (0x00047A) 0x2126- f:00020 d: 294 | A = OR[294]
0x023E (0x00047C) 0x163A- f:00013 d: 58 | A = A - 58 (0x003A)
0x023F (0x00047E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0241), A = 0
0x0240 (0x000480) 0x700C- f:00070 d: 12 | P = P + 12 (0x024C)
0x0241 (0x000482) 0x2125- f:00020 d: 293 | A = OR[293]
0x0242 (0x000484) 0x8402- f:00102 d: 2 | P = P + 2 (0x0244), A = 0
0x0243 (0x000486) 0x7002- f:00070 d: 2 | P = P + 2 (0x0245)
0x0244 (0x000488) 0x72D5- f:00071 d: 213 | P = P - 213 (0x016F)
0x0245 (0x00048A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0246 (0x00048C) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x0247 (0x00048E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0248 (0x000490) 0x2127- f:00020 d: 295 | A = OR[295]
0x0249 (0x000492) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x024A (0x000494) 0x0200- f:00001 d: 0 | EXIT
0x024B (0x000496) 0x7011- f:00070 d: 17 | P = P + 17 (0x025C)
0x024C (0x000498) 0x2126- f:00020 d: 294 | A = OR[294]
0x024D (0x00049A) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x024E (0x00049C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0250), A = 0
0x024F (0x00049E) 0x7003- f:00070 d: 3 | P = P + 3 (0x0252)
0x0250 (0x0004A0) 0x72E1- f:00071 d: 225 | P = P - 225 (0x016F)
0x0251 (0x0004A2) 0x700B- f:00070 d: 11 | P = P + 11 (0x025C)
0x0252 (0x0004A4) 0x2126- f:00020 d: 294 | A = OR[294]
0x0253 (0x0004A6) 0x1630- f:00013 d: 48 | A = A - 48 (0x0030)
0x0254 (0x0004A8) 0x8007- f:00100 d: 7 | P = P + 7 (0x025B), C = 0
0x0255 (0x0004AA) 0x2126- f:00020 d: 294 | A = OR[294]
0x0256 (0x0004AC) 0x1639- f:00013 d: 57 | A = A - 57 (0x0039)
0x0257 (0x0004AE) 0x8003- f:00100 d: 3 | P = P + 3 (0x025A), C = 0
0x0258 (0x0004B0) 0x8402- f:00102 d: 2 | P = P + 2 (0x025A), A = 0
0x0259 (0x0004B2) 0x7002- f:00070 d: 2 | P = P + 2 (0x025B)
0x025A (0x0004B4) 0x7002- f:00070 d: 2 | P = P + 2 (0x025C)
0x025B (0x0004B6) 0x72EC- f:00071 d: 236 | P = P - 236 (0x016F)
0x025C (0x0004B8) 0x74AF- f:00072 d: 175 | R = P + 175 (0x030B)
0x025D (0x0004BA) 0x2D25- f:00026 d: 293 | OR[293] = OR[293] + 1
0x025E (0x0004BC) 0x7227- f:00071 d: 39 | P = P - 39 (0x0237)
0x025F (0x0004BE) 0x72F0- f:00071 d: 240 | P = P - 240 (0x016F)
0x0260 (0x0004C0) 0x2123- f:00020 d: 291 | A = OR[291]
0x0261 (0x0004C2) 0x2928- f:00024 d: 296 | OR[296] = A
0x0262 (0x0004C4) 0x2118- f:00020 d: 280 | A = OR[280]
0x0263 (0x0004C6) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x0264 (0x0004C8) 0x2929- f:00024 d: 297 | OR[297] = A
0x0265 (0x0004CA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0266 (0x0004CC) 0x2925- f:00024 d: 293 | OR[293] = A
0x0267 (0x0004CE) 0x2125- f:00020 d: 293 | A = OR[293]
0x0268 (0x0004D0) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x0269 (0x0004D2) 0x8441- f:00102 d: 65 | P = P + 65 (0x02AA), A = 0
0x026A (0x0004D4) 0x748C- f:00072 d: 140 | R = P + 140 (0x02F6)
0x026B (0x0004D6) 0x2126- f:00020 d: 294 | A = OR[294]
0x026C (0x0004D8) 0x162F- f:00013 d: 47 | A = A - 47 (0x002F)
0x026D (0x0004DA) 0x8402- f:00102 d: 2 | P = P + 2 (0x026F), A = 0
0x026E (0x0004DC) 0x7007- f:00070 d: 7 | P = P + 7 (0x0275)
0x026F (0x0004DE) 0x2125- f:00020 d: 293 | A = OR[293]
0x0270 (0x0004E0) 0x8402- f:00102 d: 2 | P = P + 2 (0x0272), A = 0
0x0271 (0x0004E2) 0x7002- f:00070 d: 2 | P = P + 2 (0x0273)
0x0272 (0x0004E4) 0x7303- f:00071 d: 259 | P = P - 259 (0x016F)
0x0273 (0x0004E6) 0x0200- f:00001 d: 0 | EXIT
0x0274 (0x0004E8) 0x701C- f:00070 d: 28 | P = P + 28 (0x0290)
0x0275 (0x0004EA) 0x2126- f:00020 d: 294 | A = OR[294]
0x0276 (0x0004EC) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x0277 (0x0004EE) 0x8402- f:00102 d: 2 | P = P + 2 (0x0279), A = 0
0x0278 (0x0004F0) 0x7003- f:00070 d: 3 | P = P + 3 (0x027B)
0x0279 (0x0004F2) 0x730A- f:00071 d: 266 | P = P - 266 (0x016F)
0x027A (0x0004F4) 0x7016- f:00070 d: 22 | P = P + 22 (0x0290)
0x027B (0x0004F6) 0x2126- f:00020 d: 294 | A = OR[294]
0x027C (0x0004F8) 0x8402- f:00102 d: 2 | P = P + 2 (0x027E), A = 0
0x027D (0x0004FA) 0x7013- f:00070 d: 19 | P = P + 19 (0x0290)
0x027E (0x0004FC) 0x1800-0x3969 f:00014 d: 0 | A = 14697 (0x3969)
0x0280 (0x000500) 0x290D- f:00024 d: 269 | OR[269] = A
0x0281 (0x000502) 0x2129- f:00020 d: 297 | A = OR[297]
0x0282 (0x000504) 0x290E- f:00024 d: 270 | OR[270] = A
0x0283 (0x000506) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0284 (0x000508) 0x290F- f:00024 d: 271 | OR[271] = A
0x0285 (0x00050A) 0x7006- f:00070 d: 6 | P = P + 6 (0x028B)
0x0286 (0x00050C) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0287 (0x00050E) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0288 (0x000510) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0289 (0x000512) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x028A (0x000514) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x028B (0x000516) 0x210F- f:00020 d: 271 | A = OR[271]
0x028C (0x000518) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0286), A # 0
0x028D (0x00051A) 0x2128- f:00020 d: 296 | A = OR[296]
0x028E (0x00051C) 0x2923- f:00024 d: 291 | OR[291] = A
0x028F (0x00051E) 0x0200- f:00001 d: 0 | EXIT
0x0290 (0x000520) 0x2126- f:00020 d: 294 | A = OR[294]
0x0291 (0x000522) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0292 (0x000524) 0x290D- f:00024 d: 269 | OR[269] = A
0x0293 (0x000526) 0x2125- f:00020 d: 293 | A = OR[293]
0x0294 (0x000528) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0295 (0x00052A) 0x2529- f:00022 d: 297 | A = A + OR[297]
0x0296 (0x00052C) 0x290E- f:00024 d: 270 | OR[270] = A
0x0297 (0x00052E) 0x2125- f:00020 d: 293 | A = OR[293]
0x0298 (0x000530) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0299 (0x000532) 0x2908- f:00024 d: 264 | OR[264] = A
0x029A (0x000534) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x029B (0x000536) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x029C (0x000538) 0x8607- f:00103 d: 7 | P = P + 7 (0x02A3), A # 0
0x029D (0x00053A) 0x310E- f:00030 d: 270 | A = (OR[270])
0x029E (0x00053C) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x029F (0x00053E) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x02A0 (0x000540) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x02A1 (0x000542) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x02A2 (0x000544) 0x7006- f:00070 d: 6 | P = P + 6 (0x02A8)
0x02A3 (0x000546) 0x310E- f:00030 d: 270 | A = (OR[270])
0x02A4 (0x000548) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x02A6 (0x00054C) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x02A7 (0x00054E) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x02A8 (0x000550) 0x2D25- f:00026 d: 293 | OR[293] = OR[293] + 1
0x02A9 (0x000552) 0x7242- f:00071 d: 66 | P = P - 66 (0x0267)
0x02AA (0x000554) 0x733B- f:00071 d: 315 | P = P - 315 (0x016F)
0x02AB (0x000556) 0x2118- f:00020 d: 280 | A = OR[280]
0x02AC (0x000558) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x02AD (0x00055A) 0x2927- f:00024 d: 295 | OR[295] = A
0x02AE (0x00055C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02AF (0x00055E) 0x2925- f:00024 d: 293 | OR[293] = A
0x02B0 (0x000560) 0x2125- f:00020 d: 293 | A = OR[293]
0x02B1 (0x000562) 0x1610- f:00013 d: 16 | A = A - 16 (0x0010)
0x02B2 (0x000564) 0x842A- f:00102 d: 42 | P = P + 42 (0x02DC), A = 0
0x02B3 (0x000566) 0x7443- f:00072 d: 67 | R = P + 67 (0x02F6)
0x02B4 (0x000568) 0x2126- f:00020 d: 294 | A = OR[294]
0x02B5 (0x00056A) 0x8402- f:00102 d: 2 | P = P + 2 (0x02B7), A = 0
0x02B6 (0x00056C) 0x7007- f:00070 d: 7 | P = P + 7 (0x02BD)
0x02B7 (0x00056E) 0x2125- f:00020 d: 293 | A = OR[293]
0x02B8 (0x000570) 0x8402- f:00102 d: 2 | P = P + 2 (0x02BA), A = 0
0x02B9 (0x000572) 0x7002- f:00070 d: 2 | P = P + 2 (0x02BB)
0x02BA (0x000574) 0x734B- f:00071 d: 331 | P = P - 331 (0x016F)
0x02BB (0x000576) 0x0200- f:00001 d: 0 | EXIT
0x02BC (0x000578) 0x7006- f:00070 d: 6 | P = P + 6 (0x02C2)
0x02BD (0x00057A) 0x2126- f:00020 d: 294 | A = OR[294]
0x02BE (0x00057C) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x02BF (0x00057E) 0x8402- f:00102 d: 2 | P = P + 2 (0x02C1), A = 0
0x02C0 (0x000580) 0x7002- f:00070 d: 2 | P = P + 2 (0x02C2)
0x02C1 (0x000582) 0x7352- f:00071 d: 338 | P = P - 338 (0x016F)
0x02C2 (0x000584) 0x2126- f:00020 d: 294 | A = OR[294]
0x02C3 (0x000586) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x02C4 (0x000588) 0x290D- f:00024 d: 269 | OR[269] = A
0x02C5 (0x00058A) 0x2125- f:00020 d: 293 | A = OR[293]
0x02C6 (0x00058C) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x02C7 (0x00058E) 0x2527- f:00022 d: 295 | A = A + OR[295]
0x02C8 (0x000590) 0x290E- f:00024 d: 270 | OR[270] = A
0x02C9 (0x000592) 0x2125- f:00020 d: 293 | A = OR[293]
0x02CA (0x000594) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x02CB (0x000596) 0x2908- f:00024 d: 264 | OR[264] = A
0x02CC (0x000598) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02CD (0x00059A) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x02CE (0x00059C) 0x8607- f:00103 d: 7 | P = P + 7 (0x02D5), A # 0
0x02CF (0x00059E) 0x310E- f:00030 d: 270 | A = (OR[270])
0x02D0 (0x0005A0) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x02D1 (0x0005A2) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x02D2 (0x0005A4) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x02D3 (0x0005A6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x02D4 (0x0005A8) 0x7006- f:00070 d: 6 | P = P + 6 (0x02DA)
0x02D5 (0x0005AA) 0x310E- f:00030 d: 270 | A = (OR[270])
0x02D6 (0x0005AC) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x02D8 (0x0005B0) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x02D9 (0x0005B2) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x02DA (0x0005B4) 0x2D25- f:00026 d: 293 | OR[293] = OR[293] + 1
0x02DB (0x0005B6) 0x722B- f:00071 d: 43 | P = P - 43 (0x02B0)
0x02DC (0x0005B8) 0x736D- f:00071 d: 365 | P = P - 365 (0x016F)
0x02DD (0x0005BA) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x02DE (0x0005BC) 0x2923- f:00024 d: 291 | OR[291] = A
0x02DF (0x0005BE) 0x7417- f:00072 d: 23 | R = P + 23 (0x02F6)
0x02E0 (0x0005C0) 0x2126- f:00020 d: 294 | A = OR[294]
0x02E1 (0x0005C2) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x02E2 (0x0005C4) 0x292A- f:00024 d: 298 | OR[298] = A
0x02E3 (0x0005C6) 0x7413- f:00072 d: 19 | R = P + 19 (0x02F6)
0x02E4 (0x0005C8) 0x212A- f:00020 d: 298 | A = OR[298]
0x02E5 (0x0005CA) 0x2526- f:00022 d: 294 | A = A + OR[294]
0x02E6 (0x0005CC) 0x292A- f:00024 d: 298 | OR[298] = A
0x02E7 (0x0005CE) 0x212A- f:00020 d: 298 | A = OR[298]
0x02E8 (0x0005D0) 0x1E00-0x4E52 f:00017 d: 0 | A = A - 20050 (0x4E52)
0x02EA (0x0005D4) 0x8404- f:00102 d: 4 | P = P + 4 (0x02EE), A = 0
0x02EB (0x0005D6) 0x212A- f:00020 d: 298 | A = OR[298]
0x02EC (0x0005D8) 0x8402- f:00102 d: 2 | P = P + 2 (0x02EE), A = 0
0x02ED (0x0005DA) 0x7007- f:00070 d: 7 | P = P + 7 (0x02F4)
0x02EE (0x0005DC) 0x2118- f:00020 d: 280 | A = OR[280]
0x02EF (0x0005DE) 0x141B- f:00012 d: 27 | A = A + 27 (0x001B)
0x02F0 (0x0005E0) 0x2908- f:00024 d: 264 | OR[264] = A
0x02F1 (0x0005E2) 0x212A- f:00020 d: 298 | A = OR[298]
0x02F2 (0x0005E4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02F3 (0x0005E6) 0x7002- f:00070 d: 2 | P = P + 2 (0x02F5)
0x02F4 (0x0005E8) 0x7385- f:00071 d: 389 | P = P - 389 (0x016F)
0x02F5 (0x0005EA) 0x0200- f:00001 d: 0 | EXIT
0x02F6 (0x0005EC) 0x2123- f:00020 d: 291 | A = OR[291]
0x02F7 (0x0005EE) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x02F8 (0x0005F0) 0x251B- f:00022 d: 283 | A = A + OR[283]
0x02F9 (0x0005F2) 0x143C- f:00012 d: 60 | A = A + 60 (0x003C)
0x02FA (0x0005F4) 0x290D- f:00024 d: 269 | OR[269] = A
0x02FB (0x0005F6) 0x310D- f:00030 d: 269 | A = (OR[269])
0x02FC (0x0005F8) 0x290D- f:00024 d: 269 | OR[269] = A
0x02FD (0x0005FA) 0x2123- f:00020 d: 291 | A = OR[291]
0x02FE (0x0005FC) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x02FF (0x0005FE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0300 (0x000600) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0301 (0x000602) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0302 (0x000604) 0x8604- f:00103 d: 4 | P = P + 4 (0x0306), A # 0
0x0303 (0x000606) 0x210D- f:00020 d: 269 | A = OR[269]
0x0304 (0x000608) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0305 (0x00060A) 0x290D- f:00024 d: 269 | OR[269] = A
0x0306 (0x00060C) 0x210D- f:00020 d: 269 | A = OR[269]
0x0307 (0x00060E) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0308 (0x000610) 0x2926- f:00024 d: 294 | OR[294] = A
0x0309 (0x000612) 0x2D23- f:00026 d: 291 | OR[291] = OR[291] + 1
0x030A (0x000614) 0x0200- f:00001 d: 0 | EXIT
0x030B (0x000616) 0x2127- f:00020 d: 295 | A = OR[295]
0x030C (0x000618) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x030D (0x00061A) 0x2913- f:00024 d: 275 | OR[275] = A
0x030E (0x00061C) 0x2127- f:00020 d: 295 | A = OR[295]
0x030F (0x00061E) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0310 (0x000620) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x0311 (0x000622) 0x2927- f:00024 d: 295 | OR[295] = A
0x0312 (0x000624) 0x2126- f:00020 d: 294 | A = OR[294]
0x0313 (0x000626) 0x1630- f:00013 d: 48 | A = A - 48 (0x0030)
0x0314 (0x000628) 0x2913- f:00024 d: 275 | OR[275] = A
0x0315 (0x00062A) 0x2127- f:00020 d: 295 | A = OR[295]
0x0316 (0x00062C) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x0317 (0x00062E) 0x2927- f:00024 d: 295 | OR[295] = A
0x0318 (0x000630) 0x0200- f:00001 d: 0 | EXIT
0x0319 (0x000632) 0x0000- f:00000 d: 0 | PASS
0x031A (0x000634) 0x0000- f:00000 d: 0 | PASS
0x031B (0x000636) 0x0000- f:00000 d: 0 | PASS
| 79.892617 | 79 | 0.468431 |
ead048a750d845de8ee9942d6643a0e79b665e85 | 1,818 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_18_248.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_18_248.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_18_248.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 %rbx
lea addresses_D_ht+0x15375, %r11
nop
nop
nop
nop
nop
and $48506, %r10
movb $0x61, (%r11)
sub %r14, %r14
pop %rbx
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %rax
push %rcx
push %rdx
// Store
lea addresses_D+0x1a5a5, %r10
nop
nop
cmp %r11, %r11
movw $0x5152, (%r10)
nop
nop
inc %r15
// Store
mov $0x95d, %rcx
nop
xor $57655, %rdx
movw $0x5152, (%rcx)
nop
nop
nop
nop
nop
add %r10, %r10
// Store
lea addresses_RW+0x178b5, %rdx
nop
nop
nop
nop
nop
and $46219, %r14
mov $0x5152535455565758, %rcx
movq %rcx, %xmm6
vmovups %ymm6, (%rdx)
and $54334, %r14
// Faulty Load
lea addresses_RW+0x178b5, %r14
clflush (%r14)
nop
nop
xor $12963, %r10
movb (%r14), %r15b
lea oracles, %r10
and $0xff, %r15
shlq $12, %r15
mov (%r10,%r15,1), %r15
pop %rdx
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'58': 18}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 18 | 123 | 0.639714 |
b515198deaeadd25a6fd4f802253ff607e7c4185 | 699 | asm | Assembly | _macros/fix_tools.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | null | null | null | _macros/fix_tools.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | 2 | 2019-06-13T14:26:59.000Z | 2019-10-10T13:15:14.000Z | _macros/fix_tools.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | null | null | null | Sprite_Table_Input equ $FFFFAC00
Update_HUD_lives equ $FFFFFE1C
Update_HUD_rings equ $FFFFFE1D
Update_HUD_timer equ $FFFFFE1E
Update_HUD_score equ $FFFFFE1F
Ring_count equ $FFFFFE20 ; 2 bytes
Timer equ $FFFFFE22 ; 4 bytes
Timer_minute_word equ $FFFFFE22 ; 2 bytes
Timer_minute equ $FFFFFE23 ; 1 byte
Timer_second equ $FFFFFE24 ; 1 byte
Timer_centisecond equ $FFFFFE25 ; 1 byte
Score equ $FFFFFE26 ; 4 bytes
Last_star_pole_hit equ $FFFFFE30 ; 1 byte -- max activated starpole ID in this act
Sonic_top_speed equ $FFFFF760
Debug_object equ $FFFFFE06
Debug_placement_mode equ $FFFFFE08
Control_Locked equ $FFFFF7CC
VDP_data_port = $C00000 ; (8=r/w, 16=r/w) | 36.789474 | 84 | 0.753934 |
5a823f203a8581516fbab03683c81a4d08994400 | 59,472 | asm | Assembly | wram.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | wram.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | wram.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | INCLUDE "constants.asm"
INCLUDE "macros/wram.asm"
INCLUDE "vram.asm"
SECTION "Audio RAM", WRAM0
wUnusedC000:: db
wSoundID:: db
; bit 7: whether sound has been muted
; all bits: whether the effective is active
; Store 1 to activate effect (any value in the range [1, 127] works).
; All audio is muted and music is paused. Sfx continues playing until it
; ends normally.
; Store 0 to resume music.
wMuteAudioAndPauseMusic:: db
wDisableChannelOutputWhenSfxEnds:: db
wStereoPanning:: db
wSavedVolume:: db
wChannelCommandPointers:: ds NUM_CHANNELS * 2
wChannelReturnAddresses:: ds NUM_CHANNELS * 2
wChannelSoundIDs:: ds NUM_CHANNELS
wChannelFlags1:: ds NUM_CHANNELS
wChannelFlags2:: ds NUM_CHANNELS
wChannelDutyCycles:: ds NUM_CHANNELS
wChannelDutyCyclePatterns:: ds NUM_CHANNELS
; reloaded at the beginning of a note. counts down until the vibrato begins.
wChannelVibratoDelayCounters:: ds NUM_CHANNELS
wChannelVibratoExtents:: ds NUM_CHANNELS
; high nybble is rate (counter reload value) and low nybble is counter.
; time between applications of vibrato.
wChannelVibratoRates:: ds NUM_CHANNELS
wChannelFrequencyLowBytes:: ds NUM_CHANNELS
; delay of the beginning of the vibrato from the start of the note
wChannelVibratoDelayCounterReloadValues:: ds NUM_CHANNELS
wChannelPitchSlideLengthModifiers:: ds NUM_CHANNELS
wChannelPitchSlideFrequencySteps:: ds NUM_CHANNELS
wChannelPitchSlideFrequencyStepsFractionalPart:: ds NUM_CHANNELS
wChannelPitchSlideCurrentFrequencyFractionalPart:: ds NUM_CHANNELS
wChannelPitchSlideCurrentFrequencyHighBytes:: ds NUM_CHANNELS
wChannelPitchSlideCurrentFrequencyLowBytes:: ds NUM_CHANNELS
wChannelPitchSlideTargetFrequencyHighBytes:: ds NUM_CHANNELS
wChannelPitchSlideTargetFrequencyLowBytes:: ds NUM_CHANNELS
; Note delays are stored as 16-bit fixed-point numbers where the integer part
; is 8 bits and the fractional part is 8 bits.
wChannelNoteDelayCounters:: ds NUM_CHANNELS
wChannelLoopCounters:: ds NUM_CHANNELS
wChannelNoteSpeeds:: ds NUM_CHANNELS
wChannelNoteDelayCountersFractionalPart:: ds NUM_CHANNELS
wChannelOctaves:: ds NUM_CHANNELS
; also includes fade for hardware channels that support it
wChannelVolumes:: ds NUM_CHANNELS
wMusicWaveInstrument:: db
wSfxWaveInstrument:: db
wMusicTempo:: dw
wSfxTempo:: dw
wSfxHeaderPointer:: dw
wNewSoundID:: db
wAudioROMBank:: db
wAudioSavedROMBank:: db
wFrequencyModifier:: db
wTempoModifier:: db
ds 13
SECTION "Sprite State Data", WRAM0
wSpriteDataStart::
; data for all sprites on the current map
; holds info for 16 sprites with $10 bytes each
wSpriteStateData1::
; struct fields:
; - 0: picture ID (fixed, loaded at map init)
; - 1: movement status (0: uninitialized, 1: ready, 2: delayed, 3: moving)
; - 2: sprite image index (changed on update, $ff if off screen, includes facing direction, progress in walking animation and a sprite-specific offset)
; - 3: Y screen position delta (-1,0 or 1; added to Y pixels on each walking animation update)
; - 4: Y screen position (in pixels, always 4 pixels above grid which makes sprites appear to be in the center of a tile)
; - 5: X screen position delta (-1,0 or 1; added to field X pixels on each walking animation update)
; - 6: X screen position (in pixels, snaps to grid if not currently walking)
; - 7: intra-animation-frame counter (counting upwards to 4 until animation frame counter is incremented)
; - 8: animation frame counter (increased every 4 updates, hold four states (totalling to 16 walking frames)
; - 9: facing direction ($0: down, $4: up, $8: left, $c: right)
; - A: adjusted Y coordinate
; - B: adjusted X coordinate
; - C: direction of collision
; - D
; - E
; - F
wSpritePlayerStateData1:: spritestatedata1 wSpritePlayerStateData1 ; player is struct 0
; wSprite02StateData1 - wSprite15StateData1
FOR n, 1, NUM_SPRITESTATEDATA_STRUCTS
wSprite{02d:n}StateData1:: spritestatedata1 wSprite{02d:n}StateData1
ENDR
; more data for all sprites on the current map
; holds info for 16 sprites with $10 bytes each
wSpriteStateData2::
; struct fields:
; - 0: walk animation counter (counting from $10 backwards when moving)
; - 1:
; - 2: Y displacement (initialized at 8, supposed to keep moving sprites from moving too far, but bugged)
; - 3: X displacement (initialized at 8, supposed to keep moving sprites from moving too far, but bugged)
; - 4: Y position (in 2x2 tile grid steps, topmost 2x2 tile has value 4)
; - 5: X position (in 2x2 tile grid steps, leftmost 2x2 tile has value 4)
; - 6: movement byte 1 (determines whether a sprite can move, $ff:not moving, $fe:random movements, others unknown)
; - 7: (?) (set to $80 when in grass, else $0; may be used to draw grass above the sprite)
; - 8: delay until next movement (counted downwards, movement status is set to ready if reached 0)
; - 9: original facing direction (backed up by DisplayTextIDInit, restored by CloseTextDisplay)
; - A
; - B
; - C
; - D: picture ID
; - E: sprite image base offset (in video ram, player always has value 1, used to compute sprite image index)
; - F
wSpritePlayerStateData2:: spritestatedata2 wSpritePlayerStateData2 ; player is struct 0
; wSprite02StateData2 - wSprite15StateData2
FOR n, 1, NUM_SPRITESTATEDATA_STRUCTS
wSprite{02d:n}StateData2:: spritestatedata2 wSprite{02d:n}StateData2
ENDR
; The high byte of a pointer to anywhere within wSpriteStateData1 can be incremented
; to reach within wSpriteStateData2, and vice-versa for decrementing.
ASSERT HIGH(wSpriteStateData1) + 1 == HIGH(wSpriteStateData2)
ASSERT LOW(wSpriteStateData1) == 0
wSpriteDataEnd::
SECTION "OAM Buffer", WRAM0
; buffer for OAM data. Copied to OAM by DMA
wOAMBuffer::
; wOAMBufferSprite00 - wOAMBufferSprite39
FOR n, NUM_SPRITE_OAM_STRUCTS
wOAMBufferSprite{02d:n}:: sprite_oam_struct wOAMBufferSprite{02d:n}
ENDR
wOAMBufferEnd::
SECTION "Tilemap", WRAM0
; buffer for tiles that are visible on screen (20 columns by 18 rows)
wTileMap:: ds SCREEN_WIDTH * SCREEN_HEIGHT
UNION
; buffer for temporarily saving and restoring current screen's tiles
; (e.g. if menus are drawn on top)
wTileMapBackup:: ds SCREEN_WIDTH * SCREEN_HEIGHT
NEXTU
; list of indexes to patch with SERIAL_NO_DATA_BYTE after transfer
wSerialPartyMonsPatchList:: ds 200
; list of indexes to patch with SERIAL_NO_DATA_BYTE after transfer
wSerialEnemyMonsPatchList:: ds 200
ENDU
ds 80
SECTION "Overworld Map", WRAM0
UNION
wOverworldMap:: ds 1300
wOverworldMapEnd::
NEXTU
wTempPic:: ds 7 * 7 tiles
ENDU
SECTION "WRAM", WRAM0
; the tiles of the row or column to be redrawn by RedrawRowOrColumn
wRedrawRowOrColumnSrcTiles:: ds SCREEN_WIDTH * 2
; coordinates of the position of the cursor for the top menu item (id 0)
wTopMenuItemY:: db
wTopMenuItemX:: db
; the id of the currently selected menu item
; the top item has id 0, the one below that has id 1, etc.
; note that the "top item" means the top item currently visible on the screen
; add this value to [wListScrollOffset] to get the item's position within the list
wCurrentMenuItem:: db
; the tile that was behind the menu cursor's current location
wTileBehindCursor:: db
; id of the bottom menu item
wMaxMenuItem:: db
; bit mask of keys that the menu will respond to
wMenuWatchedKeys:: db
; id of previously selected menu item
wLastMenuItem:: db
; It is mainly used by the party menu to remember the cursor position while the
; menu isn't active.
; It is also used to remember the cursor position of mon lists (for the
; withdraw/deposit/release actions) in Bill's PC so that it doesn't get lost
; when you choose a mon from the list and a sub-menu is shown. It's reset when
; you return to the main Bill's PC menu.
wPartyAndBillsPCSavedMenuItem:: db
; It is used by the bag list to remember the cursor position while the menu
; isn't active.
wBagSavedMenuItem:: db
; It is used by the start menu to remember the cursor position while the menu
; isn't active.
; The battle menu uses it so that the cursor position doesn't get lost when
; a sub-menu is shown. It's reset at the start of each battle.
wBattleAndStartSavedMenuItem:: db
wPlayerMoveListIndex:: db
; index in party of currently battling mon
wPlayerMonNumber:: db
; the address of the menu cursor's current location within wTileMap
wMenuCursorLocation:: dw
ds 2
; how many times should HandleMenuInput poll the joypad state before it returns?
wMenuJoypadPollCount:: db
; id of menu item selected for swapping (counts from 1) (0 means that no menu item has been selected for swapping)
wMenuItemToSwap:: db
; offset of the current top menu item from the beginning of the list
; keeps track of what section of the list is on screen
wListScrollOffset:: db
; If non-zero, then when wrapping is disabled and the player tries to go past
; the top or bottom of the menu, return from HandleMenuInput. This is useful for
; menus that have too many items to display at once on the screen because it
; allows the caller to scroll the entire menu up or down when this happens.
wMenuWatchMovingOutOfBounds:: db
wTradeCenterPointerTableIndex:: db
ds 1
; destination pointer for text output
; this variable is written to, but is never read from
wTextDest:: dw
; if non-zero, skip waiting for a button press after displaying text in DisplayTextID
wDoNotWaitForButtonPressAfterDisplayingText:: db
UNION
; the received menu selection is stored twice
wLinkMenuSelectionReceiveBuffer:: dw
ds 3
; the menu selection byte is stored twice before sending
wLinkMenuSelectionSendBuffer:: dw
ds 3
wEnteringCableClub::
wLinkTimeoutCounter:: db
NEXTU
; temporary nybble used by Serial_ExchangeNybble
wSerialExchangeNybbleTempReceiveData::
; the final received nybble is stored here by Serial_SyncAndExchangeNybble
wSerialSyncAndExchangeNybbleReceiveData:: db
; the final received nybble is stored here by Serial_ExchangeNybble
wSerialExchangeNybbleReceiveData:: db
ds 3
; this nybble is sent when using Serial_SyncAndExchangeNybble or Serial_ExchangeNybble
wSerialExchangeNybbleSendData:: db
ds 4
wUnknownSerialCounter:: dw
ENDU
; $00 = player mons
; $01 = enemy mons
wWhichTradeMonSelectionMenu::
; 0 = player's party
; 1 = enemy party
; 2 = current box
; 3 = daycare
; 4 = in-battle mon
;
; AddPartyMon uses it slightly differently.
; If the lower nybble is 0, the mon is added to the player's party, else the enemy's.
; If the entire value is 0, then the player is allowed to name the mon.
wMonDataLocation:: db
; set to 1 if you can go from the bottom to the top or top to bottom of a menu
; set to 0 if you can't go past the top or bottom of the menu
wMenuWrappingEnabled:: db
; whether to check for 180-degree turn (0 = don't, 1 = do)
wCheckFor180DegreeTurn:: db
ds 1
wMissableObjectIndex:: db
wPredefID:: db
wPredefHL:: dw
wPredefDE:: dw
wPredefBC:: dw
wTrainerHeaderFlagBit:: db
ds 1
; which NPC movement script pointer is being used
; 0 if an NPC movement script is not running
wNPCMovementScriptPointerTableNum:: db
; ROM bank of current NPC movement script
wNPCMovementScriptBank:: db
ds 2
; This union spans 180 bytes.
UNION
wVermilionDockTileMapBuffer:: ds 5 * BG_MAP_WIDTH + SCREEN_WIDTH
wVermilionDockTileMapBufferEnd::
NEXTU
wOaksAideRewardItemName:: ds ITEM_NAME_LENGTH
NEXTU
wElevatorWarpMaps:: ds 11 * 2
NEXTU
; List of bag items that has been filtered to a certain type of items,
; such as drinks or fossils.
wFilteredBagItems:: ds 4
NEXTU
; Saved copy of OAM for the first frame of the animation to make it easy to
; flip back from the second frame.
wMonPartySpritesSavedOAM:: ds $60
NEXTU
wTrainerCardBlkPacket:: ds $40
NEXTU
wHallOfFame:: ds HOF_TEAM
NEXTU
wNPCMovementDirections:: ds 180
NEXTU
wDexRatingNumMonsSeen:: db
wDexRatingNumMonsOwned:: db
wDexRatingText:: db
NEXTU
; If a random number greater than this value is generated, then the player is
; allowed to have three 7 symbols or bar symbols line up.
; So, this value is actually the chance of NOT entering that mode.
; If the slot is lucky, it equals 250, giving a 5/256 (~2%) chance.
; Otherwise, it equals 253, giving a 2/256 (~0.8%) chance.
wSlotMachineSevenAndBarModeChance:: db
ds 2
; ROM back to return to when the player is done with the slot machine
wSlotMachineSavedROMBank:: db
ds 166
wLuckySlotHiddenObjectIndex:: db
NEXTU
; values between 0-6. Shake screen horizontally, shake screen vertically, blink Pokemon...
wAnimationType:: db
ds 29
wAnimPalette:: db
NEXTU
ds 60
; temporary buffer when swapping party mon data
wSwitchPartyMonTempBuffer:: ds 44 ; party_struct size
NEXTU
ds 120
; this is the end of the joypad states
; the list starts above this address and extends downwards in memory until here
; overloaded with below labels
wSimulatedJoypadStatesEnd::
NEXTU
wBoostExpByExpAll::
wUnusedCC5B:: db
ds 59
wNPCMovementDirections2:: ds 10
; used in Pallet Town scripted movement
wNumStepsToTake:: db
ds 48
wRLEByteCount:: db
wParentMenuItem::
; 0 = not added
; 1 = added
wAddedToParty::
; 1 flag for each party member indicating whether it can evolve
; The purpose of these flags is to track which mons levelled up during the
; current battle at the end of the battle when evolution occurs.
; Other methods of evolution simply set it by calling TryEvolvingMon.
wCanEvolveFlags:: db
wForceEvolution:: db
; if [wAILayer2Encouragement] != 1, the second AI layer is not applied
wAILayer2Encouragement:: db
ds 1
; current HP of player and enemy substitutes
wPlayerSubstituteHP:: db
wEnemySubstituteHP:: db
; The player's selected move during a test battle.
; InitBattleVariables sets it to the move Pound.
wTestBattlePlayerSelectedMove:: db
ds 1
; 0=regular, 1=mimic, 2=above message box (relearn, heal pp..)
wMoveMenuType:: db
wPlayerSelectedMove:: db
wEnemySelectedMove:: db
wLinkBattleRandomNumberListIndex:: db
; number of times remaining that AI action can occur
wAICount:: db
ds 2
wEnemyMoveListIndex:: db
; The enemy mon's HP when it was switched in or when the current player mon
; was switched in, which was more recent.
; It's used to determine the message to print when switching out the player mon.
wLastSwitchInEnemyMonHP:: dw
; total amount of money made using Pay Day during the current battle
wTotalPayDayMoney:: ds 3
wSafariEscapeFactor:: db
wSafariBaitFactor:: db
ds 1
wTransformedEnemyMonOriginalDVs:: dw
wMonIsDisobedient:: db
wPlayerDisabledMoveNumber:: db
wEnemyDisabledMoveNumber:: db
; When running in the scope of HandlePlayerMonFainted, it equals 1.
; When running in the scope of HandleEnemyMonFainted, it equals 0.
wInHandlePlayerMonFainted:: db
wPlayerUsedMove:: db
wEnemyUsedMove:: db
wEnemyMonMinimized:: db
wMoveDidntMiss:: db
; flags that indicate which party members have fought the current enemy mon
wPartyFoughtCurrentEnemyFlags:: flag_array PARTY_LENGTH
; Whether the low health alarm has been disabled due to the player winning the
; battle.
wLowHealthAlarmDisabled:: db
wPlayerMonMinimized:: db
ds 13
; number of hits by enemy in attacks like Double Slap, etc.
wEnemyNumHits:: ; db
; the amount of damage accumulated by the enemy while biding
wEnemyBideAccumulatedDamage:: dw
ds 8
ENDU
; This union spans 39 bytes.
UNION
wInGameTradeGiveMonSpecies:: db
wInGameTradeTextPointerTablePointer:: dw
wInGameTradeTextPointerTableIndex:: db
wInGameTradeGiveMonName:: ds NAME_LENGTH
wInGameTradeReceiveMonName:: ds NAME_LENGTH
wInGameTradeMonNick:: ds NAME_LENGTH
wInGameTradeReceiveMonSpecies:: db
NEXTU
wPlayerMonUnmodifiedLevel:: db
wPlayerMonUnmodifiedMaxHP:: dw
wPlayerMonUnmodifiedAttack:: dw
wPlayerMonUnmodifiedDefense:: dw
wPlayerMonUnmodifiedSpeed:: dw
wPlayerMonUnmodifiedSpecial:: dw
; stat modifiers for the player's current pokemon
; value can range from 1 - 13 ($1 to $D)
; 7 is normal
wPlayerMonStatMods::
wPlayerMonAttackMod:: db
wPlayerMonDefenseMod:: db
wPlayerMonSpeedMod:: db
wPlayerMonSpecialMod:: db
wPlayerMonAccuracyMod:: db
wPlayerMonEvasionMod:: db
ds 2
wPlayerMonStatModsEnd::
ds 1
wEnemyMonUnmodifiedLevel:: db
wEnemyMonUnmodifiedMaxHP:: dw
wEnemyMonUnmodifiedAttack:: dw
wEnemyMonUnmodifiedDefense:: dw
wEnemyMonUnmodifiedSpeed:: dw
wEnemyMonUnmodifiedSpecial:: dw
; stat modifiers for the enemy's current pokemon
; value can range from 1 - 13 ($1 to $D)
; 7 is normal
wEnemyMonStatMods::
wEnemyMonAttackMod:: db
wEnemyMonDefenseMod:: db
wEnemyMonSpeedMod:: db
wEnemyMonSpecialMod:: db
wEnemyMonAccuracyMod:: db
wEnemyMonEvasionMod:: db
ds 2
wEnemyMonStatModsEnd::
NEXTU
ds 30
wEngagedTrainerClass:: db
wEngagedTrainerSet:: db
ENDU
ds 1
wNPCMovementDirections2Index::
wUnusedCD37::
; number of items in wFilteredBagItems list
wFilteredBagItemsCount:: db
; the next simulated joypad state is at wSimulatedJoypadStatesEnd plus this value minus 1
; 0 if the joypad state is not being simulated
wSimulatedJoypadStatesIndex:: db
; written to but nothing ever reads it
wWastedByteCD39:: db
; written to but nothing ever reads it
wWastedByteCD3A:: db
; mask indicating which real button presses can override simulated ones
; XXX is it ever not 0?
wOverrideSimulatedJoypadStatesMask:: db
ds 1
; This union spans 30 bytes.
UNION
wTradedPlayerMonSpecies:: db
wTradedEnemyMonSpecies:: db
ds 2
wTradedPlayerMonOT:: ds NAME_LENGTH
wTradedPlayerMonOTID:: dw
wTradedEnemyMonOT:: ds NAME_LENGTH
wTradedEnemyMonOTID:: dw
NEXTU
wTradingWhichPlayerMon:: db
wTradingWhichEnemyMon:: db
wNameOfPlayerMonToBeTraded:: ds NAME_LENGTH
NEXTU
; one byte for each falling object
wFallingObjectsMovementData:: ds 20
NEXTU
; array of the number of mons in each box
wBoxMonCounts:: ds NUM_BOXES
NEXTU
wPriceTemp:: ds 3 ; BCD
NEXTU
; the current mon's field moves
wFieldMoves:: ds NUM_MOVES
wNumFieldMoves:: db
wFieldMovesLeftmostXCoord:: db
wLastFieldMoveID:: db ; unused
NEXTU
wBoxNumString:: ds 3
NEXTU
; 0 = upper half (Y < 9)
; 1 = lower half (Y >= 9)
wBattleTransitionCircleScreenQuadrantY:: db
wBattleTransitionCircleScreenQuadrantX:: db
NEXTU
; after 1 row/column has been copied, the offset to the next one to copy from
wBattleTransitionCopyTilesOffset:: dw
NEXTU
; counts down from 7 so that every time 7 more tiles of the spiral have been
; placed, the tile map buffer is copied to VRAM so that progress is visible
wInwardSpiralUpdateScreenCounter:: db
ds 9
; 0 = outward, 1 = inward
wBattleTransitionSpiralDirection:: db
NEXTU
; multiplied by 16 to get the number of times to go right by 2 pixels
wSSAnneSmokeDriftAmount:: db
; 0 = left half (X < 10)
; 1 = right half (X >= 10)
wSSAnneSmokeX:: db
NEXTU
wHoFMonSpecies::
wHoFTeamIndex:: db
wHoFPartyMonIndex:: db
wHoFMonLevel:: db
; 0 = mon, 1 = player
wHoFMonOrPlayer:: db
wHoFTeamIndex2:: db
wHoFTeamNo:: db
NEXTU
wRivalStarterTemp:: db
wRivalStarterBallSpriteIndex:: db
NEXTU
wFlyAnimUsingCoordList:: db
; $ff sentinel values at each end
wFlyLocationsList:: ds NUM_CITY_MAPS + 2
NEXTU
wWhichTownMapLocation:: db
wFlyAnimCounter:: db
wFlyAnimBirdSpriteImageIndex:: db
NEXTU
ds 1
; difference in X between the next ball and the current one
wHUDPokeballGfxOffsetX:: db
wHUDGraphicsTiles:: ds 3
NEXTU
; the level of the mon at the time it entered day care
wDayCareStartLevel:: db
wDayCareNumLevelsGrown:: db
wDayCareTotalCost:: dw ; BCD
wDayCarePerLevelCost:: dw ; BCD (always $100)
NEXTU
; which wheel the player is trying to stop
; 0 = none, 1 = wheel 1, 2 = wheel 2, 3 or greater = wheel 3
wStoppingWhichSlotMachineWheel:: db
wSlotMachineWheel1Offset:: db
wSlotMachineWheel2Offset:: db
wSlotMachineWheel3Offset:: db
; the OAM tile number of the upper left corner of the winning symbol minus 2
wSlotMachineWinningSymbol::
wSlotMachineWheel1BottomTile:: db
wSlotMachineWheel1MiddleTile:: db
wSlotMachineWheel1TopTile:: db
wSlotMachineWheel2BottomTile:: db
wSlotMachineWheel2MiddleTile:: db
wSlotMachineWheel2TopTile:: db
wSlotMachineWheel3BottomTile:: db
wSlotMachineWheel3MiddleTile:: db
wSlotMachineWheel3TopTile:: db
wPayoutCoins:: dw
; These flags are set randomly and control when the wheels stop.
; bit 6: allow the player to win in general
; bit 7: allow the player to win with 7 or bar (plus the effect of bit 6)
wSlotMachineFlags:: db
; wheel 1 can "slip" while this is non-zero
wSlotMachineWheel1SlipCounter:: db
; wheel 2 can "slip" while this is non-zero
wSlotMachineWheel2SlipCounter:: db
; The remaining number of times wheel 3 will roll down a symbol until a match is
; found, when winning is enabled. It's initialized to 4 each bet.
wSlotMachineRerollCounter:: db
; how many coins the player bet on the slot machine (1 to 3)
wSlotMachineBet:: db
NEXTU
wCanPlaySlots:: db
ds 8
; temporary variable used to add payout amount to the player's coins
wTempCoins1:: dw
ds 2
; temporary variable used to subtract the bet amount from the player's coins
wTempCoins2:: dw
NEXTU
wHiddenObjectFunctionArgument:: db
wHiddenObjectFunctionRomBank:: db
wHiddenObjectIndex:: db
wHiddenObjectY:: db
wHiddenItemOrCoinsIndex::
wHiddenObjectX:: db
NEXTU
wPlayerSpinInPlaceAnimFrameDelay:: db
wPlayerSpinInPlaceAnimFrameDelayDelta:: db
wPlayerSpinInPlaceAnimFrameDelayEndValue:: db
wPlayerSpinInPlaceAnimSoundID:: db
ds 6
db ; temporary space used when wFacingDirectionList is rotated
; used when spinning the player's sprite
wFacingDirectionList:: ds 4
ds 3
wSavedPlayerScreenY:: db
wSavedPlayerFacingDirection:: db
NEXTU
wPlayerSpinWhileMovingUpOrDownAnimDeltaY:: db
wPlayerSpinWhileMovingUpOrDownAnimMaxY:: db
wPlayerSpinWhileMovingUpOrDownAnimFrameDelay:: db
NEXTU
wTrainerSpriteOffset:: db
wTrainerEngageDistance:: db
wTrainerFacingDirection:: db
wTrainerScreenY:: db
wTrainerScreenX:: db
NEXTU
wTrainerInfoTextBoxWidthPlus1:: db
wTrainerInfoTextBoxWidth:: db
wTrainerInfoTextBoxNextRowOffset:: db
NEXTU
wOptionsTextSpeedCursorX:: db
wOptionsBattleAnimCursorX:: db
wOptionsBattleStyleCursorX:: db
wOptionsCancelCursorX:: db
NEXTU
; tile ID of the badge number being drawn
wBadgeNumberTile:: db
; first tile ID of the name being drawn
wBadgeNameTile:: db
; a list of the first tile IDs of each badge or face (depending on whether the
; badge is owned) to be drawn on the trainer screen
; the byte after the list gets read when shifting back one byte
wBadgeOrFaceTiles:: ds NUM_BADGES + 1
ds 1
; temporary list created when displaying the badges on the trainer screen
; one byte for each badge; 0 = not obtained, 1 = obtained
wTempObtainedBadgesBooleans:: ds NUM_BADGES
NEXTU
wUnusedCD3D:: db
; the number of credits mons that have been displayed so far
wNumCreditsMonsDisplayed:: db
NEXTU
ds 1
db ; temporary space used when wJigglypuffFacingDirections is rotated
wJigglypuffFacingDirections:: ds 4
NEXTU
ds 16
; $3d = tree tile, $52 = grass tile
wCutTile:: db
ds 2
; 0 = cut animation, 1 = boulder dust animation
wWhichAnimationOffsets:: db
NEXTU
ds 18
; the index of the sprite the emotion bubble is to be displayed above
wEmotionBubbleSpriteIndex:: db
wWhichEmotionBubble:: db
NEXTU
wChangeBoxSavedMapTextPointer:: dw
NEXTU
wSavedY::
wTempSCX::
; which entry from TradeMons to select
wWhichTrade::
wDexMaxSeenMon::
wPPRestoreItem::
wWereAnyMonsAsleep::
wNumShakes::
wWhichBadge::
wTitleMonSpecies::
wPlayerCharacterOAMTile::
; the number of small stars OAM entries to move down
wMoveDownSmallStarsOAMCount::
wChargeMoveNum::
wCoordIndex::
wSwappedMenuItem::
; 0 = no bite
; 1 = bite
; 2 = no fish on map
wRodResponse::
db
ENDU
; 0 = neither
; 1 = warp pad
; 2 = hole
wStandingOnWarpPadOrHole::
wOAMBaseTile::
wGymTrashCanIndex:: db
wSymmetricSpriteOAMAttributes:: db
wMonPartySpriteSpecies:: db
; in the trade animation, the mon that leaves the left gameboy
wLeftGBMonSpecies:: db
; in the trade animation, the mon that leaves the right gameboy
wRightGBMonSpecies:: db
; bit 0: is player engaged by trainer (to avoid being engaged by multiple trainers simultaneously)
; bit 1: boulder dust animation (from using Strength) pending
; bit 3: using generic PC
; bit 5: don't play sound when A or B is pressed in menu
; bit 6: tried pushing against boulder once (you need to push twice before it will move)
wFlags_0xcd60:: db
ds 9
; This has overlapping related uses.
; When the player tries to use an item or use certain field moves, 0 is stored
; when the attempt fails and 1 is stored when the attempt succeeds.
; In addition, some items store 2 for certain types of failures, but this
; cannot happen in battle.
; In battle, a non-zero value indicates the player has taken their turn using
; something other than a move (e.g. using an item or switching pokemon).
; So, when an item is successfully used in battle, this value becomes non-zero
; and the player is not allowed to make a move and the two uses are compatible.
wActionResultOrTookBattleTurn:: db
; Set buttons are ignored.
wJoyIgnore:: db
; size of downscaled mon pic used in pokeball entering/exiting animation
; $00 = 5×5
; $01 = 3×3
wDownscaledMonSize::
; FormatMovesString stores the number of moves minus one here
wNumMovesMinusOne:: db
UNION
wcd6d:: ds NAME_BUFFER_LENGTH ; buffer for various data
NEXTU
wEvosMoves:: ds MAX_EVOLUTIONS * EVOLUTION_SIZE + 1
wEvosMovesEnd::
NEXTU
ds 4
; temp variable used to print a move's current PP on the status screen
wStatusScreenCurrentPP:: db
ds 6
; list of normal max PP (without PP up) values
wNormalMaxPPList:: ds NUM_MOVES
ds 5
ENDU
UNION
; buffer for transferring the random number list generated by the other gameboy
wSerialOtherGameboyRandomNumberListBlock:: ds $11
NEXTU
; second buffer for temporarily saving and restoring current screen's tiles (e.g. if menus are drawn on top)
wTileMapBackup2:: ds SCREEN_WIDTH * SCREEN_HEIGHT
ENDU
; This union spans 30 bytes.
UNION
; Temporary storage area
wBuffer:: ds 30
NEXTU
wEvoOldSpecies:: db
wEvoNewSpecies:: db
wEvoMonTileOffset:: db
wEvoCancelled:: db
NEXTU
wNamingScreenNameLength:: db
; non-zero when the player has chosen to submit the name
wNamingScreenSubmitName:: db
; 0 = upper case
; 1 = lower case
wAlphabetCase:: db
ds 1
wNamingScreenLetter:: db
NEXTU
wChangeMonPicEnemyTurnSpecies:: db
wChangeMonPicPlayerTurnSpecies:: db
NEXTU
wHPBarMaxHP:: dw
wHPBarOldHP:: dw
wHPBarNewHP:: dw
wHPBarDelta:: db
wHPBarTempHP:: dw
ds 11
wHPBarHPDifference:: dw
NEXTU
; lower nybble is x, upper nybble is y
wTownMapCoords::
; whether WriteMonMoves is being used to make a mon learn moves from day care
; non-zero if so
wLearningMovesFromDayCare::
db
ds 27
; the item that the AI used
wAIItem:: db
wUsedItemOnWhichPokemon:: db
ENDU
; sound ID during battle animations
wAnimSoundID:: db
; used as a storage value for the bank to return to after a BankswitchHome (bankswitch in homebank)
wBankswitchHomeSavedROMBank:: db
; used as a temp storage value for the bank to switch to
wBankswitchHomeTemp:: db
; 0 = nothing bought or sold in pokemart
; 1 = bought or sold something in pokemart
; this value is not used for anything
wBoughtOrSoldItemInMart:: db
; $00 - win
; $01 - lose
; $02 - draw
wBattleResult:: db
; bit 0: if set, DisplayTextID automatically draws a text box
wAutoTextBoxDrawingControl:: db
wcf0d:: db ; used with some overworld scripts (not exactly sure what it's used for)
; used in CheckForTilePairCollisions2 to store the tile the player is on
wTilePlayerStandingOn:: db
wNPCNumScriptedSteps:: db
; which script function within the pointer table indicated by
; wNPCMovementScriptPointerTableNum
wNPCMovementScriptFunctionNum:: db
; bit 0: set when printing a text predef so that DisplayTextID doesn't switch
; to the current map's bank
wTextPredefFlag:: db
wPredefParentBank:: db
wSpriteIndex:: db
; movement byte 2 of current sprite
wCurSpriteMovement2:: db
ds 2
; sprite offset of sprite being controlled by NPC movement script
wNPCMovementScriptSpriteOffset:: db
wScriptedNPCWalkCounter:: db
ds 1
wGBC:: db
; if running on SGB, it's 1, else it's 0
wOnSGB:: db
wDefaultPaletteCommand:: db
UNION
wPlayerHPBarColor:: dw
NEXTU
; species of the mon whose palette is used for the whole screen
wWholeScreenPaletteMonSpecies:: db
wEnemyHPBarColor:: db
ENDU
; 0: green
; 1: yellow
; 2: red
wPartyMenuHPBarColors:: ds PARTY_LENGTH
wStatusScreenHPBarColor:: db
ds 7
wCopyingSGBTileData::
wWhichPartyMenuHPBar::
wPalPacket::
db
; This union spans 49 bytes.
UNION
wPartyMenuBlkPacket:: ds $30
NEXTU
ds 29
; storage buffer for various strings
wcf4b:: ds 20
NEXTU
ds 29
; the total amount of exp a mon gained
wExpAmountGained:: dw
wGainBoostedExp:: db
ENDU
wGymCityName:: ds 17
wGymLeaderName:: ds NAME_LENGTH
wItemList:: ds 16
wListPointer:: dw
; used to store pointers, but never read
wUnusedCF8D:: dw
wItemPrices:: dw
wcf91:: db ; used with a lot of things (too much to list here)
; which pokemon you selected
wWhichPokemon:: db
; if non-zero, then print item prices when displaying lists
wPrintItemPrices:: db
; type of HP bar
; $00 = enemy HUD in battle
; $01 = player HUD in battle / status screen
; $02 = party menu
wHPBarType::
; ID used by DisplayListMenuID
wListMenuID:: db
; if non-zero, RemovePokemon will remove the mon from the current box,
; else it will remove the mon from the party
wRemoveMonFromBox::
; 0 = move from box to party
; 1 = move from party to box
; 2 = move from daycare to party
; 3 = move from party to daycare
wMoveMonType:: db
wItemQuantity:: db
wMaxItemQuantity:: db
; LoadMonData copies mon data here
wLoadedMon:: party_struct wLoadedMon
; bit 0: The space in VRAM that is used to store walk animation tile patterns
; for the player and NPCs is in use for font tile patterns.
; This means that NPC movement must be disabled.
; The other bits are unused.
wFontLoaded:: db
; walk animation counter
wWalkCounter:: db
; background tile number in front of the player (either 1 or 2 steps ahead)
wTileInFrontOfPlayer:: db
; The desired fade counter reload value is stored here prior to calling
; PlaySound in order to cause the current music to fade out before the new
; music begins playing. Storing 0 causes no fade out to occur and the new music
; to begin immediately.
; This variable has another use related to fade-out, as well. PlaySound stores
; the sound ID of the music that should be played after the fade-out is finished
; in this variable. FadeOutAudio checks if it's non-zero every V-Blank and
; fades out the current audio if it is. Once it has finished fading out the
; audio, it zeroes this variable and starts playing the sound ID stored in it.
wAudioFadeOutControl:: db
wAudioFadeOutCounterReloadValue:: db
wAudioFadeOutCounter:: db
; This is used to determine whether the default music is already playing when
; attempting to play the default music (in order to avoid restarting the same
; music) and whether the music has already been stopped when attempting to
; fade out the current music (so that the new music can be begin immediately
; instead of waiting).
; It sometimes contains the sound ID of the last music played, but it may also
; contain $ff (if the music has been stopped) or 0 (because some routines zero
; it in order to prevent assumptions from being made about the current state of
; the music).
wLastMusicSoundID:: db
; $00 = causes sprites to be hidden and the value to change to $ff
; $01 = enabled
; $ff = disabled
; other values aren't used
wUpdateSpritesEnabled:: db
wEnemyMoveNum:: db
wEnemyMoveEffect:: db
wEnemyMovePower:: db
wEnemyMoveType:: db
wEnemyMoveAccuracy:: db
wEnemyMoveMaxPP:: db
wPlayerMoveNum:: db
wPlayerMoveEffect:: db
wPlayerMovePower:: db
wPlayerMoveType:: db
wPlayerMoveAccuracy:: db
wPlayerMoveMaxPP:: db
wEnemyMonSpecies2:: db
wBattleMonSpecies2:: db
wEnemyMonNick:: ds NAME_LENGTH
wEnemyMon:: battle_struct wEnemyMon
wEnemyMonBaseStats:: ds NUM_STATS
wEnemyMonActualCatchRate:: db
wEnemyMonBaseExp:: db
wBattleMonNick:: ds NAME_LENGTH
wBattleMon:: battle_struct wBattleMon
wTrainerClass:: db
ds 1
wTrainerPicPointer:: dw
ds 1
UNION
wTempMoveNameBuffer:: ds 14
NEXTU
; The name of the mon that is learning a move.
wLearnMoveMonName:: ds NAME_LENGTH
ENDU
ds 2
; money received after battle = base money × level of highest-level enemy mon
wTrainerBaseMoney:: dw ; BCD
wMissableObjectCounter:: db
ds 1
; 13 bytes for the letters of the opposing trainer
; the name is terminated with $50 with possible
; unused trailing letters
wTrainerName:: ds 13
; lost battle, this is -1
; no battle, this is 0
; wild battle, this is 1
; trainer battle, this is 2
wIsInBattle:: db
; flags that indicate which party members should be be given exp when GainExperience is called
wPartyGainExpFlags:: flag_array PARTY_LENGTH
; in a wild battle, this is the species of pokemon
; in a trainer battle, this is the trainer class + OPP_ID_OFFSET
wCurOpponent:: db
; in normal battle, this is 0
; in old man battle, this is 1
; in safari battle, this is 2
wBattleType:: db
; bits 0-6: Effectiveness
; $0 = immune
; $5 = not very effective
; $a = neutral
; $14 = super-effective
; bit 7: STAB
wDamageMultipliers:: db
; which entry in LoneAttacks to use
; it's actually the same thing as ^
wLoneAttackNo::
wGymLeaderNo:: db
; which instance of [youngster, lass, etc] is this?
wTrainerNo:: db
; $00 = normal attack
; $01 = critical hit
; $02 = successful OHKO
; $ff = failed OHKO
wCriticalHitOrOHKO:: db
wMoveMissed:: db
; always 0
wPlayerStatsToDouble:: db
; always 0
wPlayerStatsToHalve:: db
; bit 0 - bide
; bit 1 - thrash / petal dance
; bit 2 - attacking multiple times (e.g. double kick)
; bit 3 - flinch
; bit 4 - charging up for attack
; bit 5 - using multi-turn move (e.g. wrap)
; bit 6 - invulnerable to normal attack (using fly/dig)
; bit 7 - confusion
wPlayerBattleStatus1:: db
; bit 0 - X Accuracy effect
; bit 1 - protected by "mist"
; bit 2 - focus energy effect
; bit 4 - has a substitute
; bit 5 - need to recharge
; bit 6 - rage
; bit 7 - leech seeded
wPlayerBattleStatus2:: db
; bit 0 - toxic
; bit 1 - light screen
; bit 2 - reflect
; bit 3 - transformed
wPlayerBattleStatus3:: db
; always 0
wEnemyStatsToDouble:: db
; always 0
wEnemyStatsToHalve:: db
wEnemyBattleStatus1:: db
wEnemyBattleStatus2:: db
wEnemyBattleStatus3:: db
; when the player is attacking multiple times, the number of attacks left
wPlayerNumAttacksLeft:: db
wPlayerConfusedCounter:: db
wPlayerToxicCounter:: db
; high nibble: which move is disabled (1-4)
; low nibble: disable turns left
wPlayerDisabledMove:: db
ds 1
; when the enemy is attacking multiple times, the number of attacks left
wEnemyNumAttacksLeft:: db
wEnemyConfusedCounter:: db
wEnemyToxicCounter:: db
; high nibble: which move is disabled (1-4)
; low nibble: disable turns left
wEnemyDisabledMove:: db
ds 1
UNION
; the amount of damage accumulated by the player while biding
wPlayerBideAccumulatedDamage:: dw
NEXTU
wUnknownSerialCounter2:: dw
NEXTU
; number of hits by player in attacks like Double Slap, etc.
wPlayerNumHits:: db
ENDU
ds 2
; non-zero when an item or move that allows escape from battle was used
wEscapedFromBattle:: db
UNION
wAmountMoneyWon:: ds 3 ; BCD
NEXTU
wObjectToHide:: db
wObjectToShow:: db
ENDU
; the map you will start at when the debug bit is set
wDefaultMap::
wMenuItemOffset::
; ID number of the current battle animation
wAnimationID:: db
wNamingScreenType::
wPartyMenuTypeOrMessageID::
; temporary storage for the number of tiles in a tileset
wTempTilesetNumTiles:: db
; used by the pokemart code to save the existing value of wListScrollOffset
; so that it can be restored when the player is done with the pokemart NPC
wSavedListScrollOffset:: db
ds 2
; base coordinates of frame block
wBaseCoordX:: db
wBaseCoordY:: db
; low health alarm counter/enable
; high bit = enable, others = timer to cycle frequencies
wLowHealthAlarm:: db
; counts how many tiles of the current frame block have been drawn
wFBTileCounter:: db
wMovingBGTilesCounter2:: db
; duration of each frame of the current subanimation in terms of screen refreshes
wSubAnimFrameDelay:: db
; counts the number of subentries left in the current subanimation
wSubAnimCounter:: db
; 1 = no save file or save file is corrupted
; 2 = save file exists and no corruption has been detected
wSaveFileStatus:: db
; number of tiles in current battle animation frame block
wNumFBTiles:: db
UNION
wSpiralBallsBaseY:: db
wSpiralBallsBaseX:: db
NEXTU
; bits 0-6: index into FallingObjects_DeltaXs array (0 - 8)
; bit 7: direction; 0 = right, 1 = left
wFallingObjectMovementByte:: db
wNumFallingObjects:: db
NEXTU
wFlashScreenLongCounter::
wNumShootingBalls::
; $01 if mon is moving from left gameboy to right gameboy; $00 if vice versa
wTradedMonMovingRight::
wOptionsInitialized::
wNewSlotMachineBallTile::
; how much to add to the X/Y coord
wCoordAdjustmentAmount::
wUnusedD08A::
db
wSlideMonDelay::
; generic counter variable for various animations
wAnimCounter::
; controls what transformations are applied to the subanimation
; 01: flip horizontally and vertically
; 02: flip horizontally and translate downwards 40 pixels
; 03: translate base coordinates of frame blocks, but don't change their internal coordinates or flip their tiles
; 04: reverse the subanimation
wSubAnimTransform::
db
ENDU
wEndBattleWinTextPointer:: dw
wEndBattleLoseTextPointer:: dw
ds 2
wEndBattleTextRomBank:: db
ds 1
; the address _of the address_ of the current subanimation entry
wSubAnimAddrPtr:: dw
UNION
; the address of the current subentry of the current subanimation
wSubAnimSubEntryAddr:: dw
NEXTU
; If non-zero, the allow matches flag is always set.
; There is a 1/256 (~0.4%) chance that this value will be set to 60, which is
; the only way it can increase. Winning certain payout amounts will decrement it
; or zero it.
wSlotMachineAllowMatchesCounter:: db
ENDU
ds 2
wOutwardSpiralTileMapPointer:: db
wPartyMenuAnimMonEnabled::
; non-zero when enabled. causes nest locations to blink on and off.
; the town selection cursor will blink regardless of what this value is
wTownMapSpriteBlinkingEnabled::
wUnusedD09B:: db
; current destination address in OAM for frame blocks (big endian)
wFBDestAddr:: dw
; controls how the frame blocks are put together to form frames
; specifically, after finishing drawing the frame block, the frame block's mode determines what happens
; 00: clean OAM buffer and delay
; 02: move onto the next frame block with no delay and no cleaning OAM buffer
; 03: delay, but don't clean OAM buffer
; 04: delay, without cleaning OAM buffer, and do not advance [wFBDestAddr], so that the next frame block will overwrite this one
wFBMode:: db
; 0 = small
; 1 = big
wLinkCableAnimBulgeToggle::
wIntroNidorinoBaseTile::
wOutwardSpiralCurrentDirection::
wDropletTile::
wNewTileBlockID::
wWhichBattleAnimTileset::
; 0 = left
; 1 = right
wSquishMonCurrentDirection::
; the tile ID of the leftmost tile in the bottom row in AnimationSlideMonUp_
wSlideMonUpBottomRowLeftTile::
db
wDisableVBlankWYUpdate:: db ; if non-zero, don't update WY during V-blank
wSpriteCurPosX:: db
wSpriteCurPosY:: db
wSpriteWidth:: db
wSpriteHeight:: db
; current input byte
wSpriteInputCurByte:: db
; bit offset of last read input bit
wSpriteInputBitCounter:: db
; determines where in the output byte the two bits are placed. Each byte contains four columns (2bpp data)
; 3 -> XX000000 1st column
; 2 -> 00XX0000 2nd column
; 1 -> 0000XX00 3rd column
; 0 -> 000000XX 4th column
wSpriteOutputBitOffset:: db
; bit 0 determines used buffer (0 -> sSpriteBuffer1, 1 -> sSpriteBuffer2)
; bit 1 loading last sprite chunk? (there are at most 2 chunks per load operation)
wSpriteLoadFlags:: db
wSpriteUnpackMode:: db
wSpriteFlipped:: db
; pointer to next input byte
wSpriteInputPtr:: dw
; pointer to current output byte
wSpriteOutputPtr:: dw
; used to revert pointer for different bit offsets
wSpriteOutputPtrCached:: dw
; pointer to differential decoding table (assuming initial value 0)
wSpriteDecodeTable0Ptr:: dw
; pointer to differential decoding table (assuming initial value 1)
wSpriteDecodeTable1Ptr:: dw
wd0b5:: db ; used as a temp storage area for Pokemon Species, and other Pokemon/Battle related things
wNameListType:: db
wPredefBank:: db
wMonHeader::
; In the ROM base stats data structure, this is the dex number, but it is
; overwritten with the internal index number after the header is copied to WRAM.
wMonHIndex:: db
wMonHBaseStats::
wMonHBaseHP:: db
wMonHBaseAttack:: db
wMonHBaseDefense:: db
wMonHBaseSpeed:: db
wMonHBaseSpecial:: db
wMonHTypes::
wMonHType1:: db
wMonHType2:: db
wMonHCatchRate:: db
wMonHBaseEXP:: db
wMonHSpriteDim:: db
wMonHFrontSprite:: dw
wMonHBackSprite:: dw
wMonHMoves:: ds NUM_MOVES
wMonHGrowthRate:: db
wMonHLearnset:: flag_array NUM_TMS + NUM_HMS
ds 1
wMonHeaderEnd::
; saved at the start of a battle and then written back at the end of the battle
wSavedTileAnimations:: db
ds 2
wDamage:: dw
ds 2
wRepelRemainingSteps:: db
; list of moves for FormatMovesString
wMoves:: ds NUM_MOVES
wMoveNum:: db
wMovesString:: ds 56
wUnusedD119:: db
; wWalkBikeSurfState is sometimes copied here, but it doesn't seem to be used for anything
wWalkBikeSurfStateCopy:: db
; the type of list for InitList to init
wInitListType:: db
; 0 if no mon was captured
wCapturedMonSpecies:: db
; Non-zero when the first player mon and enemy mon haven't been sent out yet.
; It prevents the game from asking if the player wants to choose another mon
; when the enemy sends out their first mon and suppresses the "no will to fight"
; message when the game searches for the first non-fainted mon in the party,
; which will be the first mon sent out.
wFirstMonsNotOutYet:: db
wPokeBallCaptureCalcTemp::
; lower nybble: number of shakes
; upper nybble: number of animations to play
wPokeBallAnimData::
wUsingPPUp::
wMaxPP::
; 0 for player, non-zero for enemy
wCalculateWhoseStats::
wTypeEffectiveness::
wMoveType::
wNumSetBits::
; used as a Pokemon and Item storage value. Also used as an output value for CountSetBits
wd11e::
db
; When this value is non-zero, the player isn't allowed to exit the party menu
; by pressing B and not choosing a mon.
wForcePlayerToChooseMon:: db
; number of times the player has tried to run from battle
wNumRunAttempts:: db
wEvolutionOccurred:: db
wVBlankSavedROMBank:: db
ds 1
wIsKeyItem:: db
wTextBoxID:: db
wCurrentMapScriptFlags:: db ; not exactly sure what this is used for, but it seems to be used as a multipurpose temp flag value
wCurEnemyLVL:: db
; pointer to list of items terminated by $FF
wItemListPointer:: dw
; number of entries in a list
wListCount:: db
wLinkState:: db
wTwoOptionMenuID:: db
; the id of the menu item the player ultimately chose
wChosenMenuItem::
; non-zero when the whole party has fainted due to out-of-battle poison damage
wOutOfBattleBlackout:: db
; the way the user exited a menu
; for list menus and the buy/sell/quit menu:
; $01 = the user pressed A to choose a menu item
; $02 = the user pressed B to cancel
; for two-option menus:
; $01 = the user pressed A with the first menu item selected
; $02 = the user pressed B or pressed A with the second menu item selected
wMenuExitMethod:: db
; the size is always 6, so they didn't need a variable in RAM for this
wDungeonWarpDataEntrySize::
; 0 = museum guy
; 1 = gym guy
wWhichPewterGuy::
; there are 3 windows, from 0 to 2
wWhichPrizeWindow::
; a horizontal or vertical gate block
wGymGateTileBlock:: db
wSavedSpriteScreenY:: db
wSavedSpriteScreenX:: db
wSavedSpriteMapY:: db
wSavedSpriteMapX:: db
ds 5
wWhichPrize:: db
; counts downward each frame
; when it hits 0, bit 5 (ignore input bit) of wd730 is reset
wIgnoreInputCounter:: db
; counts down once every step
wStepCounter:: db
; after a battle, you have at least 3 steps before a random battle can occur
wNumberOfNoRandomBattleStepsLeft:: db
wPrize1:: db
wPrize2:: db
wPrize3:: db
ds 1
UNION
wSerialRandomNumberListBlock:: ds $11
NEXTU
wPrize1Price:: dw
wPrize2Price:: dw
wPrize3Price:: dw
ds 1
; shared list of 9 random numbers, indexed by wLinkBattleRandomNumberListIndex
wLinkBattleRandomNumberList:: ds 10
ENDU
wSerialPlayerDataBlock:: ; ds $1a8
; When a real item is being used, this is 0.
; When a move is acting as an item, this is the ID of the item it's acting as.
; For example, out-of-battle Dig is executed using a fake Escape Rope item. In
; that case, this would be ESCAPE_ROPE.
wPseudoItemID:: db
wUnusedD153:: db
ds 2
wEvoStoneItemID:: db
wSavedNPCMovementDirections2Index:: db
wPlayerName:: ds NAME_LENGTH
SECTION "Party Data", WRAM0
wPartyDataStart::
wPartyCount:: db
wPartySpecies:: ds PARTY_LENGTH + 1
wPartyMons::
; wPartyMon1 - wPartyMon6
FOR n, 1, PARTY_LENGTH + 1
wPartyMon{d:n}:: party_struct wPartyMon{d:n}
ENDR
wPartyMonOT::
; wPartyMon1OT - wPartyMon6OT
FOR n, 1, PARTY_LENGTH + 1
wPartyMon{d:n}OT:: ds NAME_LENGTH
ENDR
wPartyMonNicks::
; wPartyMon1Nick - wPartyMon6Nick
FOR n, 1, PARTY_LENGTH + 1
wPartyMon{d:n}Nick:: ds NAME_LENGTH
ENDR
wPartyMonNicksEnd::
wPartyDataEnd::
SECTION "Main Data", WRAM0
wMainDataStart::
wPokedexOwned:: flag_array NUM_POKEMON
wPokedexOwnedEnd::
wPokedexSeen:: flag_array NUM_POKEMON
wPokedexSeenEnd::
wNumBagItems:: db
; item, quantity
wBagItems:: ds BAG_ITEM_CAPACITY * 2 + 1
wPlayerMoney:: ds 3 ; BCD
wRivalName:: ds NAME_LENGTH
; bit 7 = battle animation
; 0: On
; 1: Off
; bit 6 = battle style
; 0: Shift
; 1: Set
; bits 0-3 = text speed (number of frames to delay after printing a letter)
; 1: Fast
; 3: Medium
; 5: Slow
wOptions:: db
wObtainedBadges:: flag_array NUM_BADGES
ds 1
; bit 0: If 0, limit the delay to 1 frame. Note that this has no effect if
; the delay has been disabled entirely through bit 1 of this variable
; or bit 6 of wd730.
; bit 1: If 0, no delay.
wLetterPrintingDelayFlags:: db
wPlayerID:: dw
wMapMusicSoundID:: db
wMapMusicROMBank:: db
; offset subtracted from FadePal4 to get the background and object palettes for the current map
; normally, it is 0. it is 6 when Flash is needed, causing FadePal2 to be used instead of FadePal4
wMapPalOffset:: db
wCurMap:: db
; pointer to the upper left corner of the current view in the tile block map
wCurrentTileBlockMapViewPointer:: dw
; player's position on the current map
wYCoord:: db
wXCoord:: db
; player's position (by block)
wYBlockCoord:: db
wXBlockCoord:: db
wLastMap:: db
wUnusedD366:: db
wCurMapTileset:: db
; blocks
wCurMapHeight:: db
wCurMapWidth:: db
wMapDataPtr:: dw
wMapTextPtr:: dw
wMapScriptPtr:: dw
wMapConnections:: db
wNorthConnectionHeader:: map_connection_struct wNorth
wSouthConnectionHeader:: map_connection_struct wSouth
wWestConnectionHeader:: map_connection_struct wWest
wEastConnectionHeader:: map_connection_struct wEast
; sprite set for the current map (11 sprite picture ID's)
wSpriteSet:: ds 11
; sprite set ID for the current map
wSpriteSetID:: db
wObjectDataPointerTemp:: dw
ds 2
; the tile shown outside the boundaries of the map
wMapBackgroundTile:: db
; number of warps in current map (up to 32)
wNumberOfWarps:: db
; current map warp entries
wWarpEntries:: ds 32 * 4 ; Y, X, warp ID, map ID
; if $ff, the player's coordinates are not updated when entering the map
wDestinationWarpID:: db
ds 128
; number of signs in the current map (up to 16)
wNumSigns:: db
wSignCoords:: ds 16 * 2 ; Y, X
wSignTextIDs:: ds 16
; number of sprites on the current map (up to 16)
wNumSprites:: db
; these two variables track the X and Y offset in blocks from the last special warp used
; they don't seem to be used for anything
wYOffsetSinceLastSpecialWarp:: db
wXOffsetSinceLastSpecialWarp:: db
wMapSpriteData:: ds 16 * 2 ; movement byte 2, text ID
wMapSpriteExtraData:: ds 16 * 2 ; trainer class/item ID, trainer set ID
; map height in 2x2 meta-tiles
wCurrentMapHeight2:: db
; map width in 2x2 meta-tiles
wCurrentMapWidth2:: db
; the address of the upper left corner of the visible portion of the BG tile map in VRAM
wMapViewVRAMPointer:: dw
; In the comments for the player direction variables below, "moving" refers to
; both walking and changing facing direction without taking a step.
; if the player is moving, the current direction
; if the player is not moving, zero
; map scripts write to this in order to change the player's facing direction
wPlayerMovingDirection:: db
; the direction in which the player was moving before the player last stopped
wPlayerLastStopDirection:: db
; if the player is moving, the current direction
; if the player is not moving, the last the direction in which the player moved
wPlayerDirection:: db
wTilesetBank:: db
; maps blocks (4x4 tiles) to tiles
wTilesetBlocksPtr:: dw
wTilesetGfxPtr:: dw
; list of all walkable tiles
wTilesetCollisionPtr:: dw
wTilesetTalkingOverTiles:: ds 3
wGrassTile:: db
ds 4
wNumBoxItems:: db
; item, quantity
wBoxItems:: ds PC_ITEM_CAPACITY * 2 + 1
; bits 0-6: box number
; bit 7: whether the player has changed boxes before
wCurrentBoxNum:: dw
; number of HOF teams
wNumHoFTeams:: db
wUnusedD5A3:: db
wPlayerCoins:: ds 2 ; BCD
; bit array of missable objects. set = removed
wMissableObjectFlags:: flag_array $100
wMissableObjectFlagsEnd::
ds 7
; temp copy of SPRITESTATEDATA1_IMAGEINDEX (used for sprite facing/anim)
wd5cd:: db
; each entry consists of 2 bytes
; * the sprite ID (depending on the current map)
; * the missable object index (global, used for wMissableObjectFlags)
; terminated with $FF
wMissableObjectList:: ds 16 * 2 + 1
ds 1
wGameProgressFlags::
wOaksLabCurScript:: db
wPalletTownCurScript:: db
ds 1
wBluesHouseCurScript:: db
wViridianCityCurScript:: db
ds 2
wPewterCityCurScript:: db
wRoute3CurScript:: db
wRoute4CurScript:: db
ds 1
wViridianGymCurScript:: db
wPewterGymCurScript:: db
wCeruleanGymCurScript:: db
wVermilionGymCurScript:: db
wCeladonGymCurScript:: db
wRoute6CurScript:: db
wRoute8CurScript:: db
wRoute24CurScript:: db
wRoute25CurScript:: db
wRoute9CurScript:: db
wRoute10CurScript:: db
wMtMoon1FCurScript:: db
wMtMoonB2FCurScript:: db
wSSAnne1FRoomsCurScript:: db
wSSAnne2FRoomsCurScript:: db
wRoute22CurScript:: db
ds 1
wRedsHouse2FCurScript:: db
wViridianMartCurScript:: db
wRoute22GateCurScript:: db
wCeruleanCityCurScript:: db
ds 7
wSSAnneBowCurScript:: db
wViridianForestCurScript:: db
wMuseum1FCurScript:: db
wRoute13CurScript:: db
wRoute14CurScript:: db
wRoute17CurScript:: db
wRoute19CurScript:: db
wRoute21CurScript:: db
wSafariZoneGateCurScript:: db
wRockTunnelB1FCurScript:: db
wRockTunnel1FCurScript:: db
ds 1
wRoute11CurScript:: db
wRoute12CurScript:: db
wRoute15CurScript:: db
wRoute16CurScript:: db
wRoute18CurScript:: db
wRoute20CurScript:: db
wSSAnneB1FRoomsCurScript:: db
wVermilionCityCurScript:: db
wPokemonTower2FCurScript:: db
wPokemonTower3FCurScript:: db
wPokemonTower4FCurScript:: db
wPokemonTower5FCurScript:: db
wPokemonTower6FCurScript:: db
wPokemonTower7FCurScript:: db
wRocketHideoutB1FCurScript:: db
wRocketHideoutB2FCurScript:: db
wRocketHideoutB3FCurScript:: db
wRocketHideoutB4FCurScript:: db
ds 1
wRoute6GateCurScript:: db
wRoute8GateCurScript:: db
ds 1
wCinnabarIslandCurScript:: db
wPokemonMansion1FCurScript:: db
ds 1
wPokemonMansion2FCurScript:: db
wPokemonMansion3FCurScript:: db
wPokemonMansionB1FCurScript:: db
wVictoryRoad2FCurScript:: db
wVictoryRoad3FCurScript:: db
ds 1
wFightingDojoCurScript:: db
wSilphCo2FCurScript:: db
wSilphCo3FCurScript:: db
wSilphCo4FCurScript:: db
wSilphCo5FCurScript:: db
wSilphCo6FCurScript:: db
wSilphCo7FCurScript:: db
wSilphCo8FCurScript:: db
wSilphCo9FCurScript:: db
wHallOfFameCurScript:: db
wChampionsRoomCurScript:: db
wLoreleisRoomCurScript:: db
wBrunosRoomCurScript:: db
wAgathasRoomCurScript:: db
wCeruleanCaveB1FCurScript:: db
wVictoryRoad1FCurScript:: db
ds 1
wLancesRoomCurScript:: db
ds 4
wSilphCo10FCurScript:: db
wSilphCo11FCurScript:: db
ds 1
wFuchsiaGymCurScript:: db
wSaffronGymCurScript:: db
ds 1
wCinnabarGymCurScript:: db
wGameCornerCurScript:: db
wRoute16Gate1FCurScript:: db
wBillsHouseCurScript:: db
wRoute5GateCurScript:: db
wPowerPlantCurScript:: ; overload
wRoute7GateCurScript:: db
ds 1
wSSAnne2FCurScript:: db
wSeafoamIslandsB3FCurScript:: db
wRoute23CurScript:: db
wSeafoamIslandsB4FCurScript:: db
wRoute18Gate1FCurScript:: db
ds 78
wGameProgressFlagsEnd::
ds 56
wObtainedHiddenItemsFlags:: flag_array 112
wObtainedHiddenCoinsFlags:: flag_array 16
; $00 = walking
; $01 = biking
; $02 = surfing
wWalkBikeSurfState:: db
ds 10
wTownVisitedFlag:: flag_array NUM_CITY_MAPS
; starts at 502
wSafariSteps:: dw
; item given to cinnabar lab
wFossilItem:: db
; mon that will result from the item
wFossilMon:: db
ds 2
; trainer classes start at OPP_ID_OFFSET
wEnemyMonOrTrainerClass:: db
wPlayerJumpingYScreenCoordsIndex:: db
wRivalStarter:: db
ds 1
wPlayerStarter:: db
; sprite index of the boulder the player is trying to push
wBoulderSpriteIndex:: db
wLastBlackoutMap:: db
; destination map (for certain types of special warps, not ordinary walking)
wDestinationMap:: db
wUnusedD71B:: db
; used to store the tile in front of the boulder when trying to push a boulder
; also used to store the result of the collision check ($ff for a collision and $00 for no collision)
wTileInFrontOfBoulderAndBoulderCollisionResult:: db
; destination map for dungeon warps
wDungeonWarpDestinationMap:: db
; which dungeon warp within the source map was used
wWhichDungeonWarp:: db
wUnusedD71F:: db
ds 8
; bit 0: using Strength outside of battle
; bit 1: set by IsSurfingAllowed when surfing's allowed, but the caller resets it after checking the result
; bit 3: received Old Rod
; bit 4: received Good Rod
; bit 5: received Super Rod
; bit 6: gave one of the Saffron guards a drink
; bit 7: set by ItemUseCardKey, which is leftover code from a previous implementation of the Card Key
wd728:: db
ds 1
; redundant because it matches wObtainedBadges
; used to determine whether to show name on statue and in two NPC text scripts
wBeatGymFlags:: db
ds 1
; bit 0: if not set, the 3 minimum steps between random battles have passed
; bit 1: prevent audio fade out
wd72c:: db
; This variable is used for temporary flags and as the destination map when
; warping to the Trade Center or Colosseum.
; bit 0: sprite facing directions have been initialised in the Trade Center
; bit 3: do scripted warp (used to warp back to Lavender Town from the top of the pokemon tower)
; bit 4: on a dungeon warp
; bit 5: don't make NPCs face the player when spoken to
; Bits 6 and 7 are set by scripts when starting major battles in the storyline,
; but they do not appear to affect anything. Bit 6 is reset after all battles
; and bit 7 is reset after trainer battles (but it's only set before trainer
; battles anyway).
wd72d:: db
; bit 0: the player has received Lapras in the Silph Co. building
; bit 1: set in various places, but doesn't appear to have an effect
; bit 2: the player has healed pokemon at a pokemon center at least once
; bit 3: the player has a received a pokemon from Prof. Oak
; bit 4: disable battles
; bit 5: set when a battle ends and when the player blacks out in the overworld due to poison
; bit 6: using the link feature
; bit 7: set if scripted NPC movement has been initialised
wd72e:: db
ds 1
; bit 0: NPC sprite being moved by script
; bit 5: ignore joypad input
; bit 6: print text with no delay between each letter
; bit 7: set if joypad states are being simulated in the overworld or an NPC's movement is being scripted
wd730:: db
ds 1
; bit 0: play time being counted
; bit 1: remnant of debug mode; only set by the debug build.
; if it is set:
; 1. skips most of Prof. Oak's speech, and uses NINTEN as the player's name and SONY as the rival's name
; 2. does not have the player start in floor two of the player's house (instead sending them to [wLastMap])
; 3. allows wild battles to be avoided by holding down B
; furthermore, in the debug build:
; 4. allows trainers to be avoided by holding down B
; 5. skips Safari Zone step counter by holding down B
; 6. skips the NPC who blocks Route 3 before beating Brock by holding down B
; 7. skips Cerulean City rival battle by holding down B
; 8. skips Pokémon Tower rival battle by holding down B
; bit 2: the target warp is a fly warp (bit 3 set or blacked out) or a dungeon warp (bit 4 set)
; bit 3: used warp pad, escape rope, dig, teleport, or fly, so the target warp is a "fly warp"
; bit 4: jumped into hole (Pokemon Mansion, Seafoam Islands, Victory Road) or went down waterfall (Seafoam Islands), so the target warp is a "dungeon warp"
; bit 5: currently being forced to ride bike (cycling road)
; bit 6: map destination is [wLastBlackoutMap] (usually the last used pokemon center, but could be the player's house)
wd732:: db
; bit 0: running a test battle
; bit 1: prevent music from changing when entering new map
; bit 2: skip the joypad check in CheckWarpsNoCollision (used for the forced warp down the waterfall in the Seafoam Islands)
; bit 3: trainer wants to battle
; bit 4: use variable [wCurMapScript] instead of the provided index for next frame's map script (used to start battle when talking to trainers)
; bit 7: used fly out of battle
wFlags_D733:: db
; bit 1: set when you beat Lorelei and reset in Indigo Plateau lobby
; the game uses this to tell when Elite 4 events need to be reset
wBeatLorelei:: db
ds 1
; bit 0: check if the player is standing on a door and make him walk down a step if so
; bit 1: the player is currently stepping down from a door
; bit 2: standing on a warp
; bit 6: jumping down a ledge / fishing animation
; bit 7: player sprite spinning due to spin tiles (Rocket hideout / Viridian Gym)
wd736:: db
wCompletedInGameTradeFlags:: dw
ds 2
wWarpedFromWhichWarp:: db
wWarpedFromWhichMap:: db
ds 2
wCardKeyDoorY:: db
wCardKeyDoorX:: db
ds 2
wFirstLockTrashCanIndex:: db
wSecondLockTrashCanIndex:: db
ds 2
wEventFlags:: flag_array NUM_EVENTS
UNION
wGrassRate:: db
wGrassMons:: ds 10 * 2
ds 8
wWaterRate:: db
wWaterMons:: ds 10 * 2
NEXTU
; linked game's trainer name
wLinkEnemyTrainerName:: ds NAME_LENGTH
ds 1
wSerialEnemyDataBlock:: ; ds $1a8
ds 9
wEnemyPartyCount:: ds 1
wEnemyPartySpecies:: ds PARTY_LENGTH + 1
wEnemyMons::
; wEnemyMon1 - wEnemyMon6
FOR n, 1, PARTY_LENGTH + 1
wEnemyMon{d:n}:: party_struct wEnemyMon{d:n}
ENDR
wEnemyMonOT::
; wEnemyMon1OT - wEnemyMon6OT
FOR n, 1, PARTY_LENGTH + 1
wEnemyMon{d:n}OT:: ds NAME_LENGTH
ENDR
wEnemyMonNicks::
; wEnemyMon1Nick - wEnemyMon6Nick
FOR n, 1, PARTY_LENGTH + 1
wEnemyMon{d:n}Nick:: ds NAME_LENGTH
ENDR
ENDU
wTrainerHeaderPtr:: dw
ds 6
; the trainer the player must face after getting a wrong answer in the Cinnabar
; gym quiz
wOpponentAfterWrongAnswer::
wUnusedDA38:: db
; index of current map script, mostly used as index for function pointer array
; mostly copied from map-specific map script pointer and written back later
wCurMapScript:: db
ds 7
wPlayTimeHours:: db
wPlayTimeMaxed:: db
wPlayTimeMinutes:: db
wPlayTimeSeconds:: db
wPlayTimeFrames:: db
wSafariZoneGameOver:: db
wNumSafariBalls:: db
; 0 if no pokemon is in the daycare
; 1 if pokemon is in the daycare
wDayCareInUse:: db
wDayCareMonName:: ds NAME_LENGTH
wDayCareMonOT:: ds NAME_LENGTH
wDayCareMon:: box_struct wDayCareMon
wMainDataEnd::
SECTION "Current Box Data", WRAM0
wBoxDataStart::
wBoxCount:: db
wBoxSpecies:: ds MONS_PER_BOX + 1
wBoxMons::
; wBoxMon1 - wBoxMon20
FOR n, 1, MONS_PER_BOX + 1
wBoxMon{d:n}:: box_struct wBoxMon{d:n}
ENDR
wBoxMonOT::
; wBoxMon1OT - wBoxMon20OT
FOR n, 1, MONS_PER_BOX + 1
wBoxMon{d:n}OT:: ds NAME_LENGTH
ENDR
wBoxMonNicks::
; wBoxMon1Nick - wBoxMon20Nick
FOR n, 1, MONS_PER_BOX + 1
wBoxMon{d:n}Nick:: ds NAME_LENGTH
ENDR
wBoxMonNicksEnd::
wBoxDataEnd::
SECTION "Stack", WRAM0
; the stack grows downward
ds $100 - 1
wStack:: db
INCLUDE "sram.asm"
INCLUDE "hram.asm"
| 25.361194 | 155 | 0.776786 |
35464c9b426b28ce887bbc15c701344d37fd20f3 | 63 | asm | Assembly | VirtualMachine/Win32/UnitTests/Conditionals/test3_not_1_Boolean.asm | ObjectPascalInterpreter/BookPart_3 | 95150d4d02f7e13e5b1ebb58c249073a384f2a0a | [
"Apache-2.0"
] | 8 | 2021-11-07T22:45:25.000Z | 2022-03-12T21:38:53.000Z | VirtualMachine/Win32/UnitTests/Conditionals/test3_not_1_Boolean.asm | Irwin1985/BookPart_2 | 4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf | [
"Apache-2.0"
] | 4 | 2021-09-23T02:13:55.000Z | 2021-12-07T06:08:17.000Z | VirtualMachine/Win32/UnitTests/Conditionals/test3_not_1_Boolean.asm | Irwin1985/BookPart_2 | 4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf | [
"Apache-2.0"
] | 4 | 2021-11-24T17:24:56.000Z | 2021-12-21T04:56:58.000Z | # Test 3, test not operation
pushb false
not
halt
| 10.5 | 28 | 0.603175 |
d11428c4bc6be6eab91b46eaa0c605df1a4133e9 | 309 | asm | Assembly | libsrc/_DEVELOPMENT/adt/bv_stack/c/sccz80/bv_stack_capacity.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/adt/bv_stack/c/sccz80/bv_stack_capacity.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/adt/bv_stack/c/sccz80/bv_stack_capacity.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; size_t bv_stack_capacity(bv_stack_t *s)
SECTION code_clib
SECTION code_adt_bv_stack
PUBLIC bv_stack_capacity
EXTERN asm_bv_stack_capacity
defc bv_stack_capacity = asm_bv_stack_capacity
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _bv_stack_capacity
defc _bv_stack_capacity = bv_stack_capacity
ENDIF
| 16.263158 | 46 | 0.857605 |
50a315c88771bff46cd0d89e374f7599d9999c97 | 402 | asm | Assembly | libsrc/osca/find_file.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/osca/find_file.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/osca/find_file.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ; int find_file (char *filename, struct flos_file file);
; CALLER linkage for function pointers
;
; $Id: find_file.asm,v 1.3 2015/01/19 01:33:00 pauloscustodio Exp $
;
PUBLIC find_file
EXTERN find_file_callee
EXTERN ASMDISP_FIND_FILE_CALLEE
find_file:
pop bc
pop de ; ptr to file struct
pop hl ; ptr to file name
push hl
push de
push bc
jp find_file_callee + ASMDISP_FIND_FILE_CALLEE
| 19.142857 | 67 | 0.751244 |
37c4312746cf0a478a1c2f4fb4b498e576527807 | 974 | asm | Assembly | programs/oeis/006/A006636.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/006/A006636.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/006/A006636.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A006636: From generalized Catalan numbers.
; 8,36,102,231,456,819,1372,2178,3312,4862,6930,9633,13104,17493,22968,29716,37944,47880,59774,73899,90552,110055,132756,159030,189280,223938,263466,308357,359136,416361,480624,552552,632808,722092,821142,930735
mov $3,$0
add $3,1
mov $15,$0
lpb $3
mov $0,$15
sub $3,1
sub $0,$3
mov $12,$0
mov $13,0
mov $14,$0
add $14,1
lpb $14
mov $0,$12
mov $10,0
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
add $11,1
lpb $11
mov $0,$9
sub $11,1
sub $0,$11
add $8,7
mov $2,$8
lpb $2
mov $4,4
lpb $4
mov $2,1
mov $4,1
mov $6,6
lpe
mov $5,$0
div $7,$6
lpb $5
sub $5,$4
add $7,$5
add $7,5
lpe
trn $7,$4
mov $4,$7
add $4,8
mov $7,2
lpe
add $10,$4
lpe
add $13,$10
lpe
add $1,$13
lpe
mov $0,$1
| 17.709091 | 211 | 0.479466 |
585fae07f4c3b6ac36dfc653b94c9fc2995014bf | 6,185 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_13480_1044.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_13480_1044.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_13480_1044.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 %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xb4b9, %rsi
lea addresses_D_ht+0x48a1, %rdi
nop
nop
nop
add %r13, %r13
mov $105, %rcx
rep movsl
nop
nop
nop
nop
xor $7741, %rax
lea addresses_A_ht+0x16d8b, %r15
nop
nop
nop
nop
sub $39916, %r14
mov $0x6162636465666768, %rdi
movq %rdi, (%r15)
nop
nop
cmp $18498, %rsi
lea addresses_WT_ht+0xcbb9, %rsi
lea addresses_WT_ht+0x19cb9, %rdi
nop
nop
nop
nop
xor %r12, %r12
mov $29, %rcx
rep movsb
nop
nop
nop
nop
nop
add $40431, %r14
lea addresses_WC_ht+0x195b9, %rsi
lea addresses_D_ht+0x54b9, %rdi
nop
xor $11117, %r15
mov $21, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp $58230, %rcx
lea addresses_WT_ht+0x95c9, %rdi
nop
and $13875, %rsi
movb (%rdi), %al
nop
nop
nop
and $24188, %rdi
lea addresses_UC_ht+0xbeb9, %r15
nop
nop
nop
dec %rsi
mov (%r15), %cx
nop
nop
nop
nop
nop
sub $8830, %r13
lea addresses_WC_ht+0x12213, %r15
nop
nop
nop
nop
nop
sub $22311, %r12
movl $0x61626364, (%r15)
nop
cmp $17492, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %rax
push %rbx
push %rdi
push %rdx
// Store
lea addresses_A+0x160b9, %r13
nop
nop
dec %rdx
movb $0x51, (%r13)
xor %rdx, %rdx
// Load
lea addresses_PSE+0x4b83, %r14
nop
nop
nop
nop
add $3740, %rax
mov (%r14), %di
nop
nop
sub %rdi, %rdi
// Faulty Load
lea addresses_US+0x9cb9, %rax
nop
nop
nop
nop
nop
cmp $5461, %r10
mov (%rax), %r13d
lea oracles, %rdi
and $0xff, %r13
shlq $12, %r13
mov (%rdi,%r13,1), %r13
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'00': 13480}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 35.751445 | 2,999 | 0.657882 |
e08e28ad990fdcdf0ea24ca82f05543cc34cc9f8 | 301 | asm | Assembly | programs/oeis/024/A024068.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/024/A024068.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/024/A024068.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A024068: a(n) = 6^n - n^6.
; 1,5,-28,-513,-2800,-7849,0,162287,1417472,9546255,59466176,361025495,2173796352,13055867207,78356634560,470173593951,2821093130240,16926635307167,101559922656192,609359692964615,3656158376062976,21936950554611735
mov $1,6
pow $1,$0
pow $0,6
add $0,1
sub $1,$0
add $1,1
| 30.1 | 214 | 0.76412 |
ddc6f00e0c311c68c806a2844795a5e9ba6a04d9 | 550 | asm | Assembly | oeis/128/A128788.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/128/A128788.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/128/A128788.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A128788: n^2*9^n.
; 0,9,324,6561,104976,1476225,19131876,234365481,2754990144,31381059609,348678440100,3797108212689,40669853253264,429575324987601,4483851321172356,46325504721296025,474373168346071296,4819705511203638441,48630661836227715204,487657470079950144129,4863066183622771520400,48253774206996950411169,476629116656867836714404,4688494265296173079746441,45945471212278565681295936,448686242307407867981405625,4367691357117231150078194916,42391158275216203514294433201,410304544293450661175393032464
mov $2,9
pow $2,$0
mul $2,$0
mul $0,$2
| 68.75 | 489 | 0.890909 |
fa0dbd2235bff69f7dc109e73469d253eabb9b77 | 7,630 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_281.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_281.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_281.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x854c, %r10
nop
nop
nop
nop
nop
cmp %r12, %r12
movw $0x6162, (%r10)
and $5068, %rdi
lea addresses_D_ht+0xec88, %rsi
lea addresses_normal_ht+0xcdfc, %rdi
nop
nop
nop
nop
add %r8, %r8
mov $21, %rcx
rep movsb
nop
nop
nop
cmp %rcx, %rcx
lea addresses_A_ht+0x89a8, %rsi
lea addresses_WC_ht+0x1693c, %rdi
nop
nop
nop
dec %rax
mov $11, %rcx
rep movsq
nop
nop
nop
add $63153, %r10
lea addresses_WT_ht+0x1473c, %r12
and %rax, %rax
movb (%r12), %cl
nop
nop
cmp %r10, %r10
lea addresses_UC_ht+0x1b23c, %r12
nop
nop
nop
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm6
vmovups %ymm6, (%r12)
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_WC_ht+0xe3a4, %rsi
lea addresses_WC_ht+0x843c, %rdi
nop
nop
nop
nop
xor %rbp, %rbp
mov $84, %rcx
rep movsq
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x1703c, %rbp
nop
sub %rax, %rax
and $0xffffffffffffffc0, %rbp
vmovaps (%rbp), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %rdi
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_normal_ht+0xedfc, %rsi
lea addresses_normal_ht+0x1223c, %rdi
nop
nop
nop
nop
nop
and $4378, %r10
mov $113, %rcx
rep movsb
nop
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0x5e00, %rsi
lea addresses_A_ht+0xb37c, %rdi
clflush (%rdi)
nop
cmp $13673, %r8
mov $90, %rcx
rep movsb
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x1f6c, %rdi
nop
nop
nop
nop
nop
and %r8, %r8
mov $0x6162636465666768, %rcx
movq %rcx, (%rdi)
nop
nop
lfence
lea addresses_WC_ht+0x90bc, %rbp
nop
nop
nop
sub %r12, %r12
mov (%rbp), %rdi
nop
nop
nop
and $13509, %rbp
lea addresses_WT_ht+0x1867c, %rbp
nop
cmp $42235, %r10
mov (%rbp), %rsi
nop
and %rcx, %rcx
lea addresses_WT_ht+0x1cf6f, %rbp
nop
and $19240, %rsi
movw $0x6162, (%rbp)
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x852e, %rsi
lea addresses_UC_ht+0xfe8a, %rdi
xor %r8, %r8
mov $50, %rcx
rep movsb
nop
nop
nop
nop
and $9824, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r8
push %r9
push %rax
push %rdi
// Faulty Load
mov $0x5b21100000000f3c, %rdi
nop
nop
xor $43804, %r9
movups (%rdi), %xmm2
vpextrq $0, %xmm2, %r13
lea oracles, %rax
and $0xff, %r13
shlq $12, %r13
mov (%rax,%r13,1), %r13
pop %rdi
pop %rax
pop %r9
pop %r8
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': True, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 34.215247 | 2,999 | 0.659764 |
42bfdbdb310dc4c6df60f231a7648ab871c964aa | 1,106 | asm | Assembly | code/player.asm | martendo7/cookie-shooter-gb | b733f227e154cf63392f85dd72ac79f39937135a | [
"MIT"
] | 3 | 2021-04-22T01:21:25.000Z | 2021-05-30T21:17:52.000Z | code/player.asm | martendo/cookie-shooter-gb | b733f227e154cf63392f85dd72ac79f39937135a | [
"MIT"
] | 1 | 2021-05-13T00:30:35.000Z | 2021-05-13T23:22:55.000Z | code/player.asm | martendo/cookie-shooter-gb | b733f227e154cf63392f85dd72ac79f39937135a | [
"MIT"
] | null | null | null | INCLUDE "defines.inc"
SECTION "Player Variables", HRAM
hPlayerY::
DS 1
hPlayerX::
DS 1
hPlayerLives::
DS 1
hPlayerInvCountdown::
DS 1
SECTION "Player Code", ROM0
MovePlayerLeft::
ld a, -PLAYER_SPEED
jr MovePlayer
MovePlayerRight::
ld a, PLAYER_SPEED
; Fall through
; @param a Change in X position (speed)
MovePlayer:
ld hl, hPlayerX
add a, [hl]
; x > SCRN_X - PLAYER_WIDTH || x < 0
cp a, SCRN_X - PLAYER_WIDTH + 1
ret nc ; Moving out of bounds
ld [hl], a
ret
; @param c Tile number to draw the player with
DrawPlayer::
ld hl, wShadowOAM
ldh a, [hPlayerY]
add a, 16
ld [hli], a
ld b, a
ldh a, [hPlayerX]
add a, 8
ld [hli], a
ld [hl], c
inc l
ld [hl], 0
inc l
ld [hl], b
inc l
add a, 8
ld [hli], a
ld [hl], c
inc l
ld [hl], OAMF_XFLIP
ld a, PLAYER_OBJ_COUNT
ldh [hNextAvailableOAMSlot], a
ret
| 17.83871 | 51 | 0.499096 |
d83d5f20591e4d63759507f5c3bc7d4ede5f9eb1 | 4,716 | asm | Assembly | Appl/GeoDraw/Document/documentPrint.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/GeoDraw/Document/documentPrint.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/GeoDraw/Document/documentPrint.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved
PROJECT: GeoDraw
MODULE: Document
FILE: documentPrint.asm
AUTHOR: Steve Scholl, Aug 12, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Steve 8/12/92 Initial revision
DESCRIPTION:
$Id: documentPrint.asm,v 1.1 97/04/04 15:51:45 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DocumentCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DrawDocumentStartPrint
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Print the document
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of DrawDocumentClass
cx,dx - OD of DrawPrintControl
bp - gstate
RETURN:
nothing
DESTROYED:
ax,cx,dx,bp
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This method should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DrawDocumentStartPrint method dynamic DrawDocumentClass,
MSG_PRINT_START_PRINTING
gstate local word push bp
printControl local optr push cx, dx
docSizeInfo local PageSizeReport
.enter
; Notify the print control of the size of the document
;
push si ;doc chunk
push bp ;stack frame
call DrawDocumentGetDocumentDimensions
mov di, bp
pop bp ;stack frame
movdw docSizeInfo.PSR_width,dxcx
movdw docSizeInfo.PSR_height,bxax
mov docSizeInfo.PSR_layout,di
call DrawDocumentGetDocumentMargins
mov docSizeInfo.PSR_margins.PCMP_left,ax
mov docSizeInfo.PSR_margins.PCMP_top,bx
mov docSizeInfo.PSR_margins.PCMP_right,cx
mov docSizeInfo.PSR_margins.PCMP_bottom,dx
push bp ;stack frame
movdw bxsi,printControl
mov dx,ss
lea bp,docSizeInfo
mov di,mask MF_FIXUP_DS or mask MF_CALL ;because stuff on stack
mov ax,MSG_PRINT_CONTROL_SET_DOC_SIZE_INFO
call ObjMessage
pop bp ;stack frame
pop si ;doc chunk
; Draw that document
;
push bp ;stack frame
mov bp,gstate
mov cl,mask DF_PRINT
mov ax,MSG_VIS_DRAW
call ObjCallInstanceNoLock
pop bp ;stack frame
; Mark the end of the single page
;
mov di,gstate
mov al,PEC_FORM_FEED
call GrNewPage
; Finish it
;
push bp ;stack frame
movdw bxsi,printControl
mov ax, MSG_PRINT_CONTROL_PRINTING_COMPLETED
mov di,mask MF_FIXUP_DS
call ObjMessage
pop bp ;stack frame
.leave
Destroy ax,cx,dx,bp
ret
DrawDocumentStartPrint endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DrawDocumentReportPageSize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: The page controller is telling us that the page size
has changed
PASS:
*(ds:si) - instance data of object
ds:[bx] - instance data of object
ds:[di] - master part of object (if any)
es - segment of DrawDocumentClass
ss:bp - PageSizeReport
RETURN:
nothing
DESTROYED:
ax
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This method should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DrawDocumentReportPageSize method dynamic DrawDocumentClass,
MSG_PRINT_REPORT_PAGE_SIZE
.enter
; Invalidate before incase document shrinks
;
mov ax,MSG_VIS_INVALIDATE
call ObjCallInstanceNoLock
mov ax,ss:[bp].PSR_margins.PCMP_left
mov bx,ss:[bp].PSR_margins.PCMP_top
mov cx,ss:[bp].PSR_margins.PCMP_right
mov dx,ss:[bp].PSR_margins.PCMP_bottom
call DrawDocumentSetDocumentMargins
movdw dxcx,ss:[bp].PSR_width
movdw bxax,ss:[bp].PSR_height
mov bp,ss:[bp].PSR_layout
call DrawDocumentSetDocumentDimensions
call DrawDocumentSendDocumentSizeToView
call DrawDocumentSetGrObjBodyBounds
; Invalidate afterword incase document grows
;
mov ax,MSG_VIS_INVALIDATE
call ObjCallInstanceNoLock
.leave
Destroy ax,cx,dx,bp
ret
DrawDocumentReportPageSize endm
DocumentCode ends
| 21.053571 | 79 | 0.60793 |
fed282b89d06cf974ae4277843b1d424fd8b3021 | 16,611 | asm | Assembly | 8088/cga/interlace/mandala0.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 92 | 2015-04-10T17:45:11.000Z | 2022-03-30T17:58:51.000Z | 8088/cga/interlace/mandala0.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 2 | 2017-11-05T07:21:35.000Z | 2018-11-04T23:36:13.000Z | 8088/cga/interlace/mandala0.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 18 | 2015-04-11T20:32:44.000Z | 2021-11-06T05:19:57.000Z | org 0
%include "../../defaults_common.asm"
%macro outputCharacter 0
call doPrintCharacter
%endmacro
;%define bin
..start:
; mov ax,0x40
; mov ds,ax
;checkMotorShutoff:
; cmp byte[0x40],0
; je noMotorShutoff
; mov byte[0x40],1
; jmp checkMotorShutoff
;noMotorShutoff:
mov dx,0x3b8
mov al,29
out dx,al
mov dl,0xb4
; 0xff Horizontal Total 38 38 71 71 38 38 38 61
mov ax,0x6100
out dx,ax
; 0xff Horizontal Displayed 28 28 50 50 28 28 28 50
mov ax,0x5001
out dx,ax
; 0xff Horizontal Sync Position 2d 2d 5a 5a 2d 2d 2d 52
mov ax,0x5202
out dx,ax
; 0x0f Horizontal Sync Width 0a 0a 0a 0a 0a 0a 0a 0f
mov ax,0x0f03
out dx,ax
; 0x7f Vertical Total 1f 1f 1f 1f 7f 7f 7f 19
mov ax,0x1904
out dx,ax
; 0x1f Vertical Total Adjust 06 06 06 06 06 06 06 06
mov ax,0x0605
out dx,ax
; 0x7f Vertical Displayed 19 19 19 19 64 64 64 19
mov ax,0x1906
out dx,ax
; 0x7f Vertical Sync Position 1c 1c 1c 1c 70 70 70 19
mov ax,0x1907
out dx,ax
; 0x03 Interlace Mode 02 02 02 02 02 02 02 02
mov ax,0x0208
out dx,ax
; 0x1f Max Scan Line Address 07 07 07 07 01 01 01 0d
mov ax,0x0d09
out dx,ax
; Cursor Start 06 06 06 06 06 06 06 0b
; 0x1f Cursor Start 6 6 6 6 6 6 6 0b
; 0x60 Cursor Mode 0 0 0 0 0 0 0 0
mov ax,0x0b0a
out dx,ax
; 0x1f Cursor End 07 07 07 07 07 07 07 0c
mov ax,0x0c0b
out dx,ax
; 0x3f Start Address (H) 00 00 00 00 00 00 00 00
mov ax,0x000c
out dx,ax
; 0xff Start Address (L) 00 00 00 00 00 00 00 00
mov ax,0x000d
out dx,ax
; 0x3f Cursor (H) 00 00 00 00 00 00 00 00
mov ax,0x000e
out dx,ax
; 0xff Cursor (L) 00 00 00 00 00 00 00 00
mov ax,0x000f
out dx,ax
; mov ax,0xb000
; mov es,ax
; xor di,di
; mov cx,80*25
; rep stosw
in al,0x61
or al,0x80
mov [cs:port61high+1],al
and al,0x7f
mov [cs:port61low+1],al
xor ax,ax
mov ds,ax
mov ax,[0x20]
mov [cs:oldInterrupt8],ax
mov ax,[0x22]
mov [cs:oldInterrupt8+2],ax
in al,0x21
mov [cs:imr],al
mov al,0xfe ; Enable IRQ0 (timer), disable all others
out 0x21,al
; Determine phase
lockstep 1
mov ax,cs
mov es,ax
mov ds,ax
mov ss,ax
mov sp,stackTop
mov di,data2
in al,0x61
or al,3
out 0x61,al
mov al,TIMER2 | BOTH | MODE2 | BINARY
out 0x43,al
mov dx,0x42
mov al,0
out dx,al
out dx,al
%rep 5
readPIT16 2
stosw
%endrep
refreshOn
mov ax,'0'
mov di,[data2+8]
mov si,[data2+6]
mov bx,[data2+4]
mov cx,[data2+2]
mov dx,[data2]
sub dx,cx
sub dx,20
jnz notPhase0
add ax,1
notPhase0:
sub cx,bx
sub cx,20
jnz notPhase1
add ax,2
notPhase1:
sub bx,si
sub bx,20
jnz notPhase2
add ax,4
notPhase2:
sub si,di
sub si,20
jnz notPhase3
add ax,8
notPhase3:
mov [phase],al
mov di,startAddresses
mov ax,cs
mov es,ax
mov ax,-1
mov cx,102
initAddressesLoopTop:
stosw
add ax,40
loop initAddressesLoopTop
mov cx,101
initAddressesLoopTop2:
sub ax,40
stosw
loop initAddressesLoopTop2
mov cx,101
initAddressesLoopTop3:
stosw
add ax,40
loop initAddressesLoopTop3
mov cx,101
initAddressesLoopTop4:
sub ax,40
stosw
loop initAddressesLoopTop4
mov di,rasterData
xor ax,ax
mov cx,200
initRastersLoopTop:
stosb
inc ax
loop initRastersLoopTop
call copyImageData
; mov ax,0xb800
; mov es,ax
; mov ds,ax
; xor si,si
; xor di,di
; xor dx,dx
; mov bx,3
;.loopTop:
; mov cx,40
;.loopTop2:
; lodsw
; or ax,bx
; stosw
; loop .loopTop2
; rol bx,1
; rol bx,1
; inc dx
; cmp dx,204
; jne .loopTop
; mov ax,cs
; mov ds,ax
jmp doneFrame
restart:
%ifdef bin
mov al,0xfc ; Enable IRQ0 (timer), disable all others
out 0x21,al
mov ax,[cs:phase]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
mov ax,[cs:adjustPeriod]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
mov ax,[cs:refreshPhase]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
mov ax,[cs:cgaCrtcPhase]
outputHex
mov al,13
outputCharacter
mov al,10
outputCharacter
mov al,0xfe ; Enable IRQ0 (timer), disable all others
out 0x21,al
%endif
lockstep 1
; safeRefreshOff
; Mode
; 1 +HRES
; 2 +GRPH
; 4 +BW
; 8 +VIDEO ENABLE
; 0x10 +1BPP
; 0x20 +ENABLE BLINK
mov dx,0x3d8
mov al,0x0a ;0x1a ; 0x1b
out dx,al
; Palette
; 1 +OVERSCAN B
; 2 +OVERSCAN G
; 4 +OVERSCAN R
; 8 +OVERSCAN I
; 0x10 +BACKGROUND I
; 0x20 +COLOR SEL
inc dx
mov al,0x0f
out dx,al
mov dl,0xd4
mov ax,0x3800 ; Horizontal total 0x7100
out dx,ax
mov ax,0x2801 ; Horizontal displayed 0x5001
out dx,ax
mov ax,0x2d02 ; Horizontal sync position 0x5a02
out dx,ax
mov ax,0x0a03 ; Horizontal sync width 0x0f03
out dx,ax
mov ax,0x1f04 ; Vertical total
out dx,ax
mov ax,0x0005 ; Vertical total adjust
out dx,ax
mov ax,0x0206 ; Vertical displayed
out dx,ax
mov ax,0x0c07 ; Vertical sync position
out dx,ax
mov ax,0x0008 ; Interlace mode
out dx,ax
mov ax,0x0109 ; Maximum scanline address
out dx,ax
mov ax,0x060a
out dx,ax
mov ax,0x070b
out dx,ax
mov ax,0x000c
out dx,ax
inc ax
out dx,ax
mov ax,0x3f0e
out dx,ax
mov ax,0xff0f
out dx,ax
mov dl,0xda
waitForNoVerticalSync
waitForVerticalSync
; waitForDisplayEnable
mov ax,0x0104
mov dl,0xd4
out dx,ax
writePIT16 0, 2, 2 ; Ensure IRQ0 pending
xor ax,ax
mov ds,ax
mov word[0x20],interrupt8h0
mov [0x22],cs
; mov dl,0xd9
; mov al,0x0e
; out dx,al
mov dl,0xda
waitForDisplayDisable
waitForDisplayEnable
; mov dl,0xd9
; mov al,0x0d
; out dx,al
cmp byte[cs:cgaCrtcPhase],1
jne noSwitchPhase
mov dl,0xd4
mov ax,0x3900 ;0x7200
out dx,ax
mov dl,0xda
waitForDisplayDisable
waitForDisplayEnable
mov dl,0xd4
mov ax,0x3800 ;0x7100
out dx,ax
mov dl,0xda
waitForDisplayDisable
waitForDisplayEnable
noSwitchPhase:
; mov dl,0xd9
; mov al,0x0c
; out dx,al
waitForDisplayDisable
waitForDisplayEnable
; mov dl,0xd9
; mov al,1
; out dx,al
writePIT16 0, 2, 31
sti
hlt
interrupt8h0:
; mov al,2
; out dx,al
mov al,75 ; Now counting down from 31
out 0x40,al
mov al,0
out 0x40,al
mov word[0x20],interrupt8h1
mov al,0x20
out 0x20,al
sti
hlt
interrupt8h1:
; mov al,3
; out dx,al
; inc dx
in al,dx ; Now counting down from 75
test al,1
jz .noInterruptChange ; jump if +DISPEN, finish if -DISPEN
mov word[0x20],interrupt8h2
.noInterruptChange:
mov al,0x20
out 0x20,al
mov sp,stackTop
sti
hlt
interrupt8h2:
; dec dx
; mov al,4
; out dx,al
mov ax,[cs:refreshPhase] ; We're still counting down from 75
out 0x40,al
mov al,ah
out 0x40,al
mov word[0x20],interrupt8h3
mov al,0x20
out 0x20,al
mov sp,stackTop
sti
hlt
interrupt8h3:
; mov al,5
; out dx,al
mov word[0x20],interrupt8h4 ; We're still counting down from refreshPhase
mov al,0x20
out 0x20,al
mov sp,stackTop
sti
hlt
interrupt8h4:
; mov al,6
; out dx,al
refreshOn 19 ; refreshPhase has happened, restart refresh
mov al,0x20
out 0x20,al
mov sp,stackTop
mov dl,0xd4
mov ax,0x3f04
out dx,ax
mov dl,0xda
waitForNoVerticalSync
waitForVerticalSync
waitForDisplayEnable
writePIT16 0, 2, 76*64 - 1 ; Start counting down after display enable starts
mov word[0x20],interrupt8a
sti
hlt
interrupt8a:
; dec dx
; mov al,7
; out dx,al
; inc dx
in al,dx
test al,1
jz .noInterruptChange ; jump if +DISPEN, finish if -DISPEN
mov word[0x20],interrupt8b
.noInterruptChange:
mov al,0x20
out 0x20,al
mov sp,stackTop
sti
hlt
interrupt8b:
; dec dx
; mov al,8
; out dx,al
mov ax,[cs:adjustPeriod] ; We're still counting down from 76*64 - 1
out 0x40,al
mov al,ah
out 0x40,al
mov word[0x20],interrupt8c
mov al,0x20
out 0x20,al
mov sp,stackTop
sti
hlt
interrupt8c:
; mov al,9
; out dx,al
mov ax,(76*262) & 0xff ; We're still counting down from adjustPeriod
out 0x40,al
mov al,(76*262) >> 8
out 0x40,al
cmp byte[cs:stableImage],0
je .notStableImage
mov word[0x20],interrupt8stable
jmp .doneImageSelect
.notStableImage:
mov word[0x20],interrupt8
.doneImageSelect:
mov al,0x20
out 0x20,al
mov sp,stackTop
sti
hlt
interrupt8:
mov ax,cs
mov ds,ax
mov ss,ax
; mov dx,0x3d9
; mov al,10
; out dx,al
mov sp,startAddresses
mov dx,0x3d4
mov bp,0x2801 ;0x5001 (left horizontal displayed = 40)
mov di,0x0c00 ;0x1900 (right horizontal total = 13)
mov ax,0x2b02 ;0x5702 (left horizontal sync position = 43)
mov si,sampleData
mov bx,rasterData-sampleData
mov es,ax
; Scanlines -1..198
%macro scanline 1
mov al,0x00
out dx,ax ; e Horizontal Total left 0x2b00 44 0x5700 88
mov ax,0x0102 ;0x0202
out dx,ax ; f Horizontal Sync Position right 0x0102 1 0x0202 2
pop cx
mov al,0x0c
mov ah,ch
out dx,ax
inc ax
mov ah,cl
out dx,ax
lodsb
out 0xe0,al
%if %1 == -1
mov ax,0x0004
out dx,ax ; Vertical Total
times 3 nop
%elif %1 == 198
mov ax,0x1f04
out dx,ax ; Vertical Total 0x3f04 64 (1 for scanlines -1 and 198, 62 for scanlines 199-260)
times 3 nop
%else
mov al,[bx+si]
mov dl,0xd9
out dx,al
mov dl,0xd4
%endif
mov ax,0x0101
out dx,ax ; b Horizontal Displayed right 0x0101 1 0x0101 1
xchg ax,di
out dx,ax ; a Horizontal Total right 0x0c00 13 0x1900 26
xchg ax,di
xchg ax,bp
out dx,ax ; d Horizontal Displayed left 0x2801 40 0x5001 80
xchg ax,bp
mov ax,es
out dx,ax ; c Horizontal Sync Position left 0x2b02 43 0x5702 87
%endmacro
%assign i -1
%rep 200
scanline i
%assign i i+1
%endrep
; Scanline 199
mov ax,0x3800 ;0x7100
out dx,ax ; e Horizontal Total left 0x3800 57 0x7100 114
mov ax,0x2d02 ;0x5a02
out dx,ax ; f Horizontal Sync Position right 0x2d02 45 0x5a02 90
mov sp,stackTop
; TODO: We are now free to do per-frame vertical-overscan stuff
; with no special timing requirements except:
; HLT before overscan is over
; Sound (if in use)
; mov dl,0xd9
; mov al,1
; out dx,al
mov bp,cs
mov es,bp
mov di,startAddresses
endOfFrame:
mov al,0x20
out 0x20,al
inc word[frameCount]
jnz noFrameCountCarry
inc word[frameCount+2]
noFrameCountCarry:
call doKeyboard
mov sp,stackTop
sti
hlt
interrupt8stable:
initCGA 0x0a
mov dl,0xd9
%rep 3800
out dx,al
inc ax
%endrep
interrupt8numbers:
mov ax,cs
mov ds,ax
jmp endOfFrame
doKeyboard:
in al,0x60
xchg ax,bx
; Acknowledge the previous byte
port61high:
mov al,0xcf
out 0x61,al
port61low:
mov al,0x4f
out 0x61,al
cmp bl,0x4b ; left
je moveLeft
cmp bl,0x4d ; right
je moveRight
cmp bl,0x48 ; up
je moveUp
cmp bl,0x50 ; down
je moveDown
cmp bl,0x4a ; keypad-
je decreaseRefreshPhase
cmp bl,0x2c ; z
je decreaseRefreshPhase
cmp bl,0x4e ; keypad+
je increaseRefreshPhase
cmp bl,0x2d ; x
je increaseRefreshPhase
cmp bl,0x39 ; space
je switchCgaCrtcPhase
cmp bl,0x1f ; s
je switchImage
cmp bl,0x31 ; n
je toggleNumbersScreen
cmp bl,1 ; esc
je tearDown2
ret
tearDown2:
jmp tearDown
moveLeft:
dec word[adjustPeriod]
jmp doneFrame
moveRight:
inc word[adjustPeriod]
jmp doneFrame
moveUp:
sub word[adjustPeriod],76
jmp doneFrame
moveDown:
add word[adjustPeriod],76
jmp doneFrame
decreaseRefreshPhase:
dec word[refreshPhase]
cmp word[refreshPhase],64-1
jne .done
mov word[refreshPhase],64+18
.done:
jmp doneFrame
increaseRefreshPhase:
inc word[refreshPhase]
cmp word[refreshPhase],64+19
jne .done
mov word[refreshPhase],64+0
.done:
jmp doneFrame
switchCgaCrtcPhase:
xor byte[cgaCrtcPhase],1
jmp doneFrame
switchImage:
xor byte[stableImage],1
cmp byte[numbersMode],0
jne .noCopyImageData
call copyImageData
.noCopyImageData:
jmp doneFrame
toggleNumbersScreen:
xor byte[numbersMode],1
cmp byte[numbersMode],0
je leavingNumbersMode
initCGA 9
call copyImageData
jmp doneFrame
leavingNumbersMode:
call copyImageData
doneFrame:
mov ax,0xb000
call printNumbers
cmp byte[numbersMode],0
jne doNumbersMode
; Not numbers mode, update numbers on MDA only
jmp restart
doNumbersMode:
mov ax,0xb800
call printNumbers
xor ax,ax
mov ds,ax
mov word[0x20],interrupt8numbers
ret
tearDown:
mov al,TIMER1 | LSB | MODE2 | BINARY
out 0x43,al
mov al,18
out 0x41,al ; Timer 1 rate
xor ax,ax
mov ds,ax
mov ax,[cs:oldInterrupt8]
mov [0x20],ax
mov ax,[cs:oldInterrupt8+2]
mov [0x22],ax
in al,0x61
and al,0xfc
out 0x61,al
mov ax,cs
mov ds,ax
mov al,[imr]
out 0x21,al
writePIT16 0, 2, 0
mov ax,3
int 0x10
sti
mov ax,cs
mov ds,ax
mov al,[phase]
outputCharacter
mov ax,19912
mul word[frameCount]
mov cx,dx
mov ax,19912
mul word[frameCount+2]
add ax,cx
adc dx,0
mov cx,0x40
mov ds,cx
add [0x6c],ax
adc [0x6e],dx
dateLoop:
cmp word[0x6c],0x18
jb doneDateLoop
cmp word[0x6e],0xb0
jb doneDateLoop
mov byte[0x70],1
sub word[0x6c],0xb0
sbb word[0x6e],0x18
jmp dateLoop
doneDateLoop:
exit:
mov ax,0x4c00
int 0x21
copyImageData:
mov ax,0xb800
mov es,ax
mov ax,cs
mov ds,ax
xor di,di
cld
cmp byte[stableImage],0
jne clearVRAM
cmp byte[numbersMode],0
jne clearVRAM
mov si,vramData
mov cx,4096+4080
rep movsw
ret
clearVRAM:
xor ax,ax
mov cx,8192
rep stosw
ret
printNybble:
and al,0xf
cmp al,10
jge .letters
add al,'0'
jmp printCharacter
.letters:
add al,'A'-10
printCharacter:
mov ah,7
stosw
ret
printHex:
push ax
mov al,ah
mov cl,4
shr al,cl
call printNybble
pop ax
push ax
mov al,ah
call printNybble
pop ax
push ax
mov cl,4
shr al,cl
call printNybble
pop ax
call printNybble
ret
printNumbers:
mov es,ax
xor di,di
mov ax,[phase]
call printNybble
mov di,160
mov ax,[adjustPeriod]
call printHex
mov di,320
mov ax,[refreshPhase]
call printHex
mov di,480
mov ax,[cgaCrtcPhase]
call printNybble
ret
dummyInterrupt8:
push ax
mov al,0x20
out 0x20,al
pop ax
iret
doPrintCharacter:
push ax
push bx
push cx
push dx
push si
push di
push bp
mov dl,al
mov ah,2
int 0x21
pop bp
pop di
pop si
pop dx
pop cx
pop bx
pop ax
ret
%rep 50
dw -1
%endrep
lineTable:
%assign i 0
%rep 100
dw i*80 -1
%assign i i+1
%endrep
%rep 50
dw 99*80-1
%endrep
frameCount: dw 0, 0
oldInterrupt8: dw 0, 0
imr: db 0
phase: dw 0
adjustPeriod: dw 0x142c
refreshPhase: dw 0x0045
cgaCrtcPhase: dw 0
numbersMode: dw 0
stableImage: dw 0
startAddresses:
times 405 dw 0
rasterData:
times 200 db 0x0f
sampleData:
times 200 db 200
data2:
times 5 dw 0
vramData:
incbin "..\..\..\..\Pictures\reenigne\cga2ntsc\mandala-4241838_203_out.dat"
;segment stack stack
times 128 dw 0
stackTop:
;0 is default
;
; 0- 1 broken sync
; 2- 4 ok (even lines = bank 0)
; 5-11 broken sync
;12-14 broken stability
;15-17 hardly anything, unstable
;18-20 broken sync
;21-25 hardly anything, unstable
;26-33 broken sync
;34-36 ok (even lines = bank 0)
;37-39 advance 1 character per scanline
;40-42 ok (even lines = bank 0)
;43-52 broken sync
;53-55 hardly anything, unstable
;56-56 broken sync
;57-61 hardly anything, unstable
;62-68 broken sync
;69-71 1 column, broken sync
;72-72 ok (even lines = bank 0)
;73-74 hardly anything, unstable
;75-
;142c odd lines
| 17.071942 | 121 | 0.629402 |
afe6ef793ba88ea8a1871cfd00fdc7d8a684d068 | 532 | asm | Assembly | oeis/138/A138976.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/138/A138976.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/138/A138976.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A138976: The discriminant of the characteristic polynomial of the O+ and O- submatrix for spin 3 of the nuclear electric quadrupole Hamiltonian is a perfect square for these values.
; Submitted by Jon Maiga
; 0,-3,-18,-45,-192,-459,-1914,-4557,-18960,-45123,-187698,-446685,-1858032,-4421739,-18392634,-43770717,-182068320,-433285443,-1802290578,-4289083725,-17840837472,-42457551819,-176606084154,-420286434477,-1748220004080,-4160406792963
seq $0,233450 ; Numbers n such that 3*T(n)+1 is a square, where T = A000217.
mul $0,-3
| 76 | 234 | 0.765038 |
95a2cde3af843b495bc86f0628f93a3f2e42f0c4 | 307 | asm | Assembly | programs/oeis/066/A066014.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/066/A066014.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/066/A066014.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A066014: Highest minimal Euclidean norm of any Type 4^Z self-dual code of length n over Z/4Z which does not have all Euclidean norms divisible by 8, that is, is strictly Type I. Compare A105682.
; 4,4,4,4,4,4,4,4,4,4,4,8,4,8,8,8,8,8,8,8,8,8,12,12
mov $1,$0
gcd $0,3
sub $1,$0
div $1,10
mul $1,4
add $1,4
| 30.7 | 196 | 0.684039 |
8dd0285b94fbc62de623ed7e4696612046d24568 | 593 | asm | Assembly | programs/oeis/189/A189327.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/189/A189327.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/189/A189327.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A189327: Number of nondecreasing arrangements of 4 numbers in 0..n with the last equal to n and each after the second equal to the sum of one or two of the preceding four
; 2,6,7,12,12,18,17,24,22,30,27,36,32,42,37,48,42,54,47,60,52,66,57,72,62,78,67,84,72,90,77,96,82,102,87,108,92,114,97,120,102,126,107,132,112,138,117,144,122,150,127,156,132,162,137,168,142,174,147,180,152,186,157,192,162,198,167,204,172,210,177,216,182,222,187,228,192,234,197,240,202,246,207,252,212,258,217,264,222,270,227,276,232,282,237,288,242,294,247,300
mov $1,$0
add $0,1
mod $1,2
add $1,5
mul $0,$1
div $0,2
| 59.3 | 362 | 0.718381 |
5382433bf69d4f74662d476ac850414e573a3360 | 464 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/bifrost_l/z80/asm_BIFROSTL_resetAnim4Frames.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zx/bifrost_l/z80/asm_BIFROSTL_resetAnim4Frames.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zx/bifrost_l/z80/asm_BIFROSTL_resetAnim4Frames.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_l.h" for further details
; ----------------------------------------------------------------
SECTION code_clib
SECTION code_bifrost_l
PUBLIC asm_BIFROSTL_resetAnim4Frames
asm_BIFROSTL_resetAnim4Frames:
halt
ld a,15
ld (58780),a
ld hl,64+(256*7)
ld (58782),hl
ret
| 23.2 | 66 | 0.474138 |
e10d35a935fe3cb2323d710fd48026f9f7ce0612 | 1,459 | asm | Assembly | shellcode/amd64/linux/reverse.asm | r0ck3rt/gopwn | 71f1d0881e0032f8b08353f0bf7d6d8551be0780 | [
"MIT"
] | 9 | 2021-08-23T08:05:15.000Z | 2022-03-09T21:03:30.000Z | shellcode/amd64/linux/reverse.asm | r0ck3rt/gopwn | 71f1d0881e0032f8b08353f0bf7d6d8551be0780 | [
"MIT"
] | null | null | null | shellcode/amd64/linux/reverse.asm | r0ck3rt/gopwn | 71f1d0881e0032f8b08353f0bf7d6d8551be0780 | [
"MIT"
] | 2 | 2021-08-23T08:12:27.000Z | 2021-09-19T14:47:15.000Z | socket:
push byte 41 ;
pop rax ;
cdq ;
push byte 2 ;
pop rdi ;
push byte 1 ;
pop rsi ;
syscall ;
connect: ;
xchg eax, edi ;
mov al, 42 ;
mov rcx, {{ .Address }} ;
neg rcx ;
push rcx ;
push rsp ;
pop rsi ;
mov dl, 16 ;
syscall ;
dup2: ;
push byte 3 ;
pop rsi ;
dup2_loop: ;
mov al, 33 ;
dec esi ;
syscall ;
jnz dup2_loop ;
execve: ;
cdq ;
mov al, 59 ;
push rdx ;
mov rcx, 0x68732f2f6e69622f ;
push rcx ;
push rsp ;
pop rdi ;
syscall ; | 40.527778 | 40 | 0.187114 |
d1b91f39514f2a03ee9a5d1c9a1d575b4134f133 | 515 | asm | Assembly | programs/oeis/301/A301677.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/301/A301677.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/301/A301677.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A301677: Partial sums of A301676.
; 1,5,13,26,44,66,93,124,159,200,244,292,347,404,465,534,604,678,761,844,931,1028,1124,1224,1335,1444,1557,1682,1804,1930,2069,2204,2343,2496,2644,2796,2963,3124,3289,3470,3644,3822,4017,4204,4395,4604,4804,5008,5231,5444,5661,5898,6124,6354,6605,6844,7087
mov $1,$0
mov $4,$0
lpb $0
div $1,3
add $2,1
add $2,$1
sub $0,$2
mul $0,$2
trn $0,1
mod $1,1
add $1,$0
mod $0,1
lpe
add $1,1
mov $3,$4
mul $3,2
add $1,$3
mov $5,$4
mul $5,$4
mov $3,$5
mul $3,2
add $1,$3
| 19.807692 | 256 | 0.64466 |
112a82aa5a71a0394796f94e901093c6e6dc75aa | 4,101 | asm | Assembly | home/time.asm | AtmaBuster/pc16-tpp1 | bdfbefbf4db1529f0cd64729bcb28c59c661ae84 | [
"blessing"
] | 3 | 2021-09-09T00:28:48.000Z | 2022-02-21T03:41:22.000Z | home/time.asm | AtmaBuster/pc16-tpp1 | bdfbefbf4db1529f0cd64729bcb28c59c661ae84 | [
"blessing"
] | null | null | null | home/time.asm | AtmaBuster/pc16-tpp1 | bdfbefbf4db1529f0cd64729bcb28c59c661ae84 | [
"blessing"
] | 1 | 2021-09-09T00:29:03.000Z | 2021-09-09T00:29:03.000Z | ; Functions relating to the timer interrupt and the real-time-clock.
AskTimer::
push af
ldh a, [hMobile]
and a
jr z, .not_mobile
call Timer
.not_mobile
pop af
reti
LatchClock::
; latch clock counter data
ld a, LATCH_RTC
ld [TPP1LatchClock], a
; waste some time to allow clock to latch properly
nop
nop
nop
ret
UpdateTime::
call GetClock
call FixDays
call FixTime
farcall GetTimeOfDay
ret
GetClock::
; store clock data in hRTCDayHi-hRTCSeconds
call LatchClock
; enable clock r/w
ld a, RTC_REG_ENABLE
ld [TPP1SRamEnable], a
ld de, TPP1RTC
ld a, [de] ; weeks
maskbits 100
cp 50
jr c, .got_weeks
sub 50
.got_weeks
push bc
ld c, a
ld b, 0
ld hl, 0
ld a, 7
call AddNTimes
pop bc
inc de
ld a, [de] ; day / hour
and RTC_D_MASK ; day
swap a
srl a
add l
ldh [hRTCDayLo], a
ld a, h
jr nc, .set_day_hi
inc h
.set_day_hi
ldh [hRTCDayHi], a
ld a, [de] ; day / hour
and RTC_H_MASK ; hour
ldh [hRTCHours], a
inc de
ld a, [de] ; minutes
maskbits 60
ldh [hRTCMinutes], a
inc de
ld a, [de] ; seconds
maskbits 60
ldh [hRTCSeconds], a
; unlatch clock / disable clock r/w
jp CloseSRAM
FixDays::
; fix day count
; mod by 140
; check if day count > 255 (bit 8 set)
ldh a, [hRTCDayHi] ; DH
bit 0, a
jr z, .daylo
; reset dh (bit 8)
res 0, a
ldh [hRTCDayHi], a ; DH
; mod 140
; mod twice since bit 8 (DH) was set
ldh a, [hRTCDayLo] ; DL
.modh
sub 140
jr nc, .modh
.modl
sub 140
jr nc, .modl
add 140
; update dl
ldh [hRTCDayLo], a ; DL
; flag for sRTCStatusFlags
ld a, %01000000
jr .set
.daylo
; quit if fewer than 140 days have passed
ldh a, [hRTCDayLo] ; DL
cp 140
jr c, .quit
; mod 140
.mod
sub 140
jr nc, .mod
add 140
; update dl
ldh [hRTCDayLo], a ; DL
; flag for sRTCStatusFlags
ld a, %00100000
.set
; update clock with modded day value
push af
call SetClock
pop af
scf
ret
.quit
xor a
ret
FixTime::
; add ingame time (set at newgame) to current time
; day hr min sec
; store time in wCurDay, hHours, hMinutes, hSeconds
; second
ldh a, [hRTCSeconds] ; S
ld c, a
ld a, [wStartSecond]
add c
sub 60
jr nc, .updatesec
add 60
.updatesec
ldh [hSeconds], a
; minute
ccf ; carry is set, so turn it off
ldh a, [hRTCMinutes] ; M
ld c, a
ld a, [wStartMinute]
adc c
sub 60
jr nc, .updatemin
add 60
.updatemin
ldh [hMinutes], a
; hour
ccf ; carry is set, so turn it off
ldh a, [hRTCHours] ; H
ld c, a
ld a, [wStartHour]
adc c
sub 24
jr nc, .updatehr
add 24
.updatehr
ldh [hHours], a
; day
ccf ; carry is set, so turn it off
ldh a, [hRTCDayLo] ; DL
ld c, a
ld a, [wStartDay]
adc c
ld [wCurDay], a
ret
InitTimeOfDay::
xor a
ld [wStringBuffer2], a
ld a, $0 ; useless
ld [wStringBuffer2 + 3], a
jr InitTime
InitDayOfWeek::
call UpdateTime
ldh a, [hHours]
ld [wStringBuffer2 + 1], a
ldh a, [hMinutes]
ld [wStringBuffer2 + 2], a
ldh a, [hSeconds]
ld [wStringBuffer2 + 3], a
jr InitTime ; useless
InitTime::
farcall _InitTime
ret
PanicResetClock::
xor a
ldh [hRTCSeconds], a
ldh [hRTCMinutes], a
ldh [hRTCHours], a
ldh [hRTCDayLo], a
ldh [hRTCDayHi], a
; fallthrough
SetClock::
; set clock data from hram
call LatchClock
; enable clock r/w
ld a, RTC_REG_ENABLE
ld [TPP1SRamEnable], a
ld de, TPP1RTC
; hRTCDayHi is always 0 when calling SetClock
ldh a, [hRTCDayLo]
ld c, 7
call SimpleDivide
push af
ld a, b
ld [de], a
inc de
pop af
add a
swap a
ld b, a
ldh a, [hRTCHours]
or b
ld [de], a
inc de
ldh a, [hRTCMinutes]
ld [de], a
inc de
ldh a, [hRTCSeconds]
ld [de], a
ld a, SET_RTC
ld [TPP1LatchClock], a
; cleanup
jp CloseSRAM ; unlatch clock, disable clock r/w
ClearRTCStatus::
; clear sRTCStatusFlags
xor a
push af
ld a, BANK(sRTCStatusFlags)
call GetSRAMBank
pop af
ld [sRTCStatusFlags], a
jp CloseSRAM
RecordRTCStatus::
; append flags to sRTCStatusFlags
ld hl, sRTCStatusFlags
push af
ld a, BANK(sRTCStatusFlags)
call GetSRAMBank
pop af
or [hl]
ld [hl], a
jp CloseSRAM
CheckRTCStatus::
; check sRTCStatusFlags
ld a, BANK(sRTCStatusFlags)
call GetSRAMBank
ld a, [sRTCStatusFlags]
jp CloseSRAM
| 13.94898 | 68 | 0.672763 |
d8f8e9b2e70559763d65b63d5e42df52c905d669 | 16,641 | asm | Assembly | dimension/cell/io/ui/kb/lang/english/english.asm | ekscrypto/Unununium | 4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f | [
"BSD-2-Clause"
] | 7 | 2019-03-04T08:53:33.000Z | 2022-01-28T19:32:12.000Z | dimension/cell/io/ui/kb/lang/english/english.asm | ekscrypto/Unununium | 4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f | [
"BSD-2-Clause"
] | null | null | null | dimension/cell/io/ui/kb/lang/english/english.asm | ekscrypto/Unununium | 4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f | [
"BSD-2-Clause"
] | null | null | null | ;; $Header:
;;
;; Keycode->UTF-8 english keyboard cell
;; By EKS - Dave Poirier (instinc@users.sourceforge.net)
;; Distributed under the BSD License
;;
;; This cell provides a kbd.set_unicode_client function and uses originally the
;; 'dragon' cell's kbd.set_keycode_client function to receives notification of
;; keycodes coming in.
;;
;; The unicode client hooked to this cell will be called with the following
;; paramters:
;;
;; AL = UTF-8 byte
;; EBX = modifiers
;; bit 0: left shift
;; bit 1: right shift
;; bit 2: capslock
;; bit 3: left alt
;; bit 4: right alt
;; bit 5: left ctrl
;; bit 6: right ctrl
;; bit 7: numlock
;;
;; If a unicode value longer than 1 character needs to be sent, successive
;; calls will be made to the client will be made.
;;
;; Initialization specifics:
;;--------------------------
;; Make sure that the 'dragon' cell or a compatible cell is loaded in memory
;; prior to loading this cell.
section .text
%define mod_lshift 0x01
%define mod_rshift 0x02
%define mod_lalt 0x04
%define mod_ralt 0x08
%define mod_lctrl 0x10
%define mod_rctrl 0x20
%define mod_capslock 0x40
%define mod_numlock 0x80
section .c_info
db 1,0,0,"a"
dd str_title
dd str_author
dd str_copyrights
str_title:
db "Dragon-Language/English",0
str_author:
db "eks",0
str_copyrights:
db "BSD Licsensed",0
section .c_init
global _start
_start:
mov esi, _keycode_client
externfunc kbd.set_keycode_client
retn
section .data
keyboard:
.selector: dd .keycodes
.modifiers: dd 0
.client: dd null_client
.keycodes:
db 0 ; keycode 00: nil
db 0x1B ; keycode 01: escape
db 0x80 ; keycode 02: F1 [escape sequence: ^[[11~ ]
db 0x81 ; keycode 03: F2 [escape sequence: ^[[12~ ]
db 0x82 ; keycode 04: F3 [escape sequence: ^[[13~ ]
db 0x83 ; keycode 05: F4 [escape sequence: ^[[14~ ]
db 0x84 ; keycode 06: F5 [escape sequence: ^[[15~ ]
db 0x85 ; keycode 07: F6 [escape sequence: ^[[17~ ]
db 0x86 ; keycode 08: F7 [escape sequence: ^[[18~ ]
db 0x87 ; keycode 09: F8 [escape sequence: ^[[19~ ]
db 0x88 ; keycode 0A: F9 [escape sequence: ^[[20~ ]
db 0x89 ; keycode 0B: F10 [escape sequence: ^[[21~ ]
db 0x8A ; keycode 0C: F11 [escape sequence: ^[[23~ ]
db 0x8B ; keycode 0D: F12 [escape sequence: ^[[24~ ]
db 0x60 ; keycode 0E: `
db 0x31 ; keycode 0F: 1
db 0x32 ; keycode 10: 2
db 0x33 ; keycode 11: 3
db 0x34 ; keycode 12: 4
db 0x35 ; keycode 13: 5
db 0x36 ; keycode 14: 6
db 0x37 ; keycode 15: 7
db 0x38 ; keycode 16: 8
db 0x39 ; keycode 17: 9
db 0x30 ; keycode 18: 0
db 0x2D ; keycode 19: -
db 0x3D ; keycode 1A: =
db 0x08 ; keycode 1B: BackSpace
db 0x09 ; keycode 1C: HorizontalTab
db 0x71 ; keycode 1D: q
db 0x77 ; keycode 1E: w
db 0x65 ; keycode 1F: e
db 0x72 ; keycode 20: r
db 0x74 ; keycode 21: t
db 0x79 ; keycode 22: y
db 0x75 ; keycode 23: u
db 0x69 ; keycode 24: i
db 0x6F ; keycode 25: o
db 0x70 ; keycode 26: p
db 0x5B ; keycode 27: [
db 0x5D ; keycode 28: ]
db 0x5C ; keycode 29: \
db 0xE6 ; keycode 2A: CapsLock [modifier]
db 0 ; *** NO CLUE WHY WE NEED THIS, BUT IT WORKS**
db 0x61 ; keycode 2B: a
db 0x73 ; keycode 2C: s
db 0x64 ; keycode 2D: d
db 0x66 ; keycode 2E: f
db 0x67 ; keycode 2F: g
db 0x68 ; keycode 30: h
db 0x6A ; keycode 31: j
db 0x6B ; keycode 32: k
db 0x6C ; keycode 33: l
db 0x3B ; keycode 34: ;
db 0x27 ; keycode 35: '
db 0x0A ; keycode 36: Enter (LineFeed)
db 0xE0 ; keycode 37: LeftShift [modifier]
db 0x7A ; keycode 38: z
db 0x78 ; keycode 39: x
db 0x63 ; keycode 3A: c
db 0x76 ; keycode 3B: v
db 0x62 ; keycode 3C: b
db 0x6E ; keycode 3D: n
db 0x6D ; keycode 3E: m
db 0x2C ; keycode 3F: ,
db 0x2E ; keycode 40: .
db 0x2F ; keycode 41: /
db 0xE1 ; keycode 42: RightShift [modifier]
db 0xE4 ; keycode 43: LeftCTRL [modifier]
db 0x8C ; keycode 44: Left 'System' key [escape sequence: ^[[3S ]
db 0xE2 ; keycode 45: LeftALT [modifier]
db 0x20 ; keycode 46: Space
db 0xE3 ; keycode 47: RightALT [modifier]
db 0x8D ; keycode 48: 'Menu' key [escape sequence: ^[[4S ]
db 0x8E ; keycode 49: Right 'System' key [escape sequence: ^[[5S ]
db 0xE5 ; keycode 4A: RightCTRL [modifier]
db 0 ; keycode 4B: unassigned
db 0 ; keycode 4C: unassigned
db 0 ; keycode 4D: unassigned
db 0 ; keycode 4E: unassigned
db 0 ; keycode 4F: unassigned
db 0 ; keycode 50: unassigned
db 0xE7 ; keycode 51: NumLock [modifier]
db 0xD5 ; keycode 52: Keypad / :: ^[Oo
db 0xD0 ; keycode 53: keypad * :: ^[Oj
db 0xD3 ; keycode 54: keypad - :: ^[Om
db 0xDD ; keycode 55: keypad 7 :: ^[Ow
db 0xDE ; keycode 56: keypad 8 :: ^[Ox
db 0xDF ; keycode 57: keypad 9 :: ^[Oy
db 0xDA ; keycode 58: keypad 4 :: ^[Ot
db 0xDB ; keycode 59: keypad 5 :: ^[Ou
db 0xDC ; keycode 5A: keypad 6 :: ^[Ov
db 0xD1 ; keycode 5B: keypad + :: ^[Ok
db 0xD7 ; keycode 5C: keypad 1 :: ^[Oq
db 0xD8 ; keycode 5D: keypad 2 :: ^[Or
db 0xD9 ; keycode 5E: keypad 3 :: ^[Os
db 0xD6 ; keycode 5F: keypad 0 :: ^[Op
db 0xD4 ; keycode 60: keypad . :: ^[On
db 0xD2 ; keycode 61: keypad Enter :: ^[OM
db 0x8F ; keycode 62: Insert [escape sequence: ^[[2~ ]
db 0x90 ; keycode 63: Delete [escape sequence: ^[[3~ ]
db 0x91 ; keycode 64: Home [escape sequence: ^[[4~ ]
db 0x92 ; keycode 65: End [escape sequence: ^[[5~ ]
db 0x93 ; keycode 66: PageUp [escape sequence: ^[[6~ ]
db 0x94 ; keycode 67: PageDn [escape sequence: ^[[7~ ]
db 0x95 ; keycode 68: UpArrow [escape sequence: ^[[A ]
db 0x96 ; keycode 69: LeftArrow [escape sequence: ^[[D ]
db 0x97 ; keycode 6A: DownArrow [escape sequence: ^[[B ]
db 0x98 ; keycode 6B: RightArrow [escape sequence: ^[[C ]
db 0x99 ; keycode 6C: PrintScreen [escape sequence: ^[[0S ]
db 0x9A ; keycode 6D: ScrollLock [escape sequence: ^[[1S ]
db 0x9B ; keycode 6E: Pause [escape sequence: ^[[2S ]
.keycode_size equ $- .keycodes
.shift:
db 0 ; keycode 00: nil
db 0x1B ; keycode 01: escape
db 0x8A ; keycode 02: F11 [escape sequence: ^[[23~ ]
db 0x8B ; keycode 03: F12 [escape sequence: ^[[24~ ]
db 0x9C ; keycode 04: F13 [escape sequence: ^[[25~ ]
db 0x9D ; keycode 05: F14 [escape sequence: ^[[26~ ]
db 0x9E ; keycode 06: F15 [escape sequence: ^[[28~ ]
db 0x9F ; keycode 07: F16 [escape sequence: ^[[29~ ]
db 0xA0 ; keycode 08: F17 [escape sequence: ^[[31~ ]
db 0xA1 ; keycode 09: F18 [escape sequence: ^[[32~ ]
db 0xA2 ; keycode 0A: F19 [escape sequence: ^[[33~ ]
db 0xA3 ; keycode 0B: F20 [escape sequence: ^[[34~ ]
db 0xA4 ; keycode 0C: F21 [escape sequence: ^[[23$ ]
db 0xA5 ; keycode 0D: F22 [escape sequence: ^[[24$ ]
db 0x7E ; keycode 0E: ~
db 0x21 ; keycode 0F: !
db 0x40 ; keycode 10: @
db 0x23 ; keycode 11: #
db 0x24 ; keycode 12: $
db 0x25 ; keycode 13: %
db 0x5E ; keycode 14: ^
db 0x26 ; keycode 15: &
db 0x2A ; keycode 16: *
db 0x28 ; keycode 17: (
db 0x29 ; keycode 18: )
db 0x5F ; keycode 19: _
db 0x2B ; keycode 1A: +
db 0x08 ; keycode 1B: BackSpace
db 0x09 ; keycode 1C: HorizontalTab
db 0x51 ; keycode 1D: Q
db 0x57 ; keycode 1E: W
db 0x45 ; keycode 1F: E
db 0x52 ; keycode 20: R
db 0x54 ; keycode 21: T
db 0x59 ; keycode 22: Y
db 0x55 ; keycode 23: U
db 0x49 ; keycode 24: I
db 0x4F ; keycode 25: O
db 0x50 ; keycode 26: P
db 0x7B ; keycode 27: {
db 0x7D ; keycode 28: }
db 0x7C ; keycode 29: |
db 0xE6 ; keycode 2A: CapsLock [modifier]
db 0x41 ; keycode 2B: A
db 0x53 ; keycode 2C: S
db 0x44 ; keycode 2D: D
db 0x46 ; keycode 2E: F
db 0x47 ; keycode 2F: G
db 0x48 ; keycode 30: H
db 0x4A ; keycode 31: J
db 0x4B ; keycode 32: K
db 0x4C ; keycode 33: L
db 0x3A ; keycode 34: :
db 0x22 ; keycode 35: "
db 0x0A ; keycode 36: Enter (LineFeed)
db 0xE0 ; keycode 37: LeftShift [modifier]
db 0x5A ; keycode 38: Z
db 0x58 ; keycode 39: X
db 0x43 ; keycode 3A: C
db 0x56 ; keycode 3B: V
db 0x42 ; keycode 3C: B
db 0x4E ; keycode 3D: N
db 0x4D ; keycode 3E: M
db 0x3C ; keycode 3F: <
db 0x3E ; keycode 40: >
db 0x3F ; keycode 41: ?
db 0xE1 ; keycode 42: RightShift [modifier]
db 0xE4 ; keycode 43: LeftCTRL [modifier]
db 0x8C ; keycode 44: Left 'System' key [escape sequence: ^[[3S ]
db 0xE2 ; keycode 45: LeftALT [modifier]
db 0x20 ; keycode 46: Space
db 0xE3 ; keycode 47: RightALT [modifier]
db 0x8D ; keycode 48: 'Menu' key [escape sequence: ^[[4S ]
db 0x8E ; keycode 49: Right 'System' key [escape sequence: ^[[5S ]
db 0xE5 ; keycode 4A: RightCTRL [modifier]
db 0 ; keycode 4B: unassigned
db 0 ; keycode 4C: unassigned
db 0 ; keycode 4D: unassigned
db 0 ; keycode 4E: unassigned
db 0 ; keycode 4F: unassigned
db 0 ; keycode 50: unassigned
db 0xE7 ; keycode 51: NumLock [modifier]
db 0xD5 ; keycode 52: Keypad / :: ^[Oo
db 0xD0 ; keycode 53: keypad * :: ^[Oj
db 0xD3 ; keycode 54: keypad - :: ^[Om
db 0xDD ; keycode 55: keypad 7 :: ^[Ow
db 0xDE ; keycode 56: keypad 8 :: ^[Ox
db 0xDF ; keycode 57: keypad 9 :: ^[Oy
db 0xDA ; keycode 58: keypad 4 :: ^[Ot
db 0xDB ; keycode 59: keypad 5 :: ^[Ou
db 0xDC ; keycode 5A: keypad 6 :: ^[Ov
db 0xD1 ; keycode 5B: keypad + :: ^[Ok
db 0xD7 ; keycode 5C: keypad 1 :: ^[Oq
db 0xD8 ; keycode 5D: keypad 2 :: ^[Or
db 0xD9 ; keycode 5E: keypad 3 :: ^[Os
db 0xD6 ; keycode 5F: keypad 0 :: ^[Op
db 0xD4 ; keycode 60: keypad . :: ^[On
db 0xD2 ; keycode 61: keypad Enter :: ^[OM
db 0xA6 ; keycode 62: Insert [escape sequence: ^[[2$ ]
db 0xA7 ; keycode 63: Delete [escape sequence: ^[[3$ ]
db 0xA8 ; keycode 64: Home [escape sequence: ^[[7$ ]
db 0xA9 ; keycode 65: End [escape sequence: ^[[8$ ]
db 0xAA ; keycode 66: PageUp [escape sequence: ^[[5$ ]
db 0xAB ; keycode 67: PageDn [escape sequence: ^[[6$ ]
db 0xAC ; keycode 68: UpArrow [escape sequence: ^[[a ]
db 0xAD ; keycode 69: LeftArrow [escape sequence: ^[[d ]
db 0xAE ; keycode 6A: DownArrow [escape sequence: ^[[b ]
db 0xAF ; keycode 6B: RightArrow [escape sequence: ^[[c ]
db 0x99 ; keycode 6C: PrintScreen [escape sequence: ^[[0S ]
db 0x9A ; keycode 6D: ScrollLock [escape sequence: ^[[1S ]
db 0x9B ; keycode 6E: Pause [escape sequence: ^[[2S ]
;----
.numlock_off_keys:
db 0xB0 ; * -> ^[Oj
db 0xB1 ; + -> ^[Ok
db 0xBF ; Enter -> ^[OM
db 0xB2 ; - -> ^[Om
db 0xB3 ; . -> ^[On
db 0xB4 ; / -> ^[Oo
db 0xB5 ; 0 -> ^[Op
db 0xB6 ; 1 -> ^[Oq
db 0xB7 ; 2 -> ^[Or
db 0xB8 ; 3 -> ^[Os
db 0xB9 ; 4 -> ^[Ot
db 0xBA ; 5 -> ^[Ou
db 0xBB ; 6 -> ^[Ov
db 0xBC ; 7 -> ^[Ow
db 0xBD ; 8 -> ^[Ox
db 0xBE ; 9 -> ^[Oy
align 4, db 0
.escape_sequences:
dd 0x31315B1B,0x0000007E ; 80: ^[[11~
dd 0x32315B1B,0x0000007E ; 81: ^[[12~
dd 0x33315B1B,0x0000007E ; 82: ^[[13~
dd 0x34315B1B,0x0000007E ; 83: ^[[14~
dd 0x35315B1B,0x0000007E ; 84: ^[[15~
dd 0x37315B1B,0x0000007E ; 85: ^[[17~
dd 0x38315B1B,0x0000007E ; 86: ^[[18~
dd 0x39315B1B,0x0000007E ; 87: ^[[19~
dd 0x30325B1B,0x0000007E ; 88: ^[[20~
dd 0x31325B1B,0x0000007E ; 89: ^[[21~
dd 0x33325B1B,0x0000007E ; 8A: ^[[23~
dd 0x34325B1B,0x0000007E ; 8B: ^[[24~
dd 0x33305B1B,0x00000053 ; 8C: ^[[03S
dd 0x34305B1B,0x00000053 ; 8D: ^[[04S
dd 0x35305B1B,0x00000053 ; 8E: ^[[05S
dd 0x7E325B1B,0x00000000 ; 8F: ^[[2~
dd 0x7E335B1B,0x00000000 ; 90: ^[[3~
dd 0x7E345B1B,0x00000000 ; 91: ^[[4~
dd 0x7E355B1B,0x00000000 ; 92: ^[[5~
dd 0x7E365B1B,0x00000000 ; 93: ^[[6~
dd 0x7E375B1B,0x00000000 ; 94: ^[[7~
dd 0x00415B1B,0x00000000 ; 95: ^[[A
dd 0x00445B1B,0x00000000 ; 96: ^[[D
dd 0x00425B1B,0x00000000 ; 97: ^[[B
dd 0x00435B1B,0x00000000 ; 98: ^[[C
dd 0x30305B1B,0x00000053 ; 99: ^[[00S
dd 0x31305B1B,0x00000053 ; 9A: ^[[01S
dd 0x32305B1B,0x00000053 ; 9B: ^[[02S
dd 0x35325B1B,0x0000007E ; 9C: ^[[25~
dd 0x36325B1B,0x0000007E ; 9D: ^[[26~
dd 0x38325B1B,0x0000007E ; 9E: ^[[28~
dd 0x39325B1B,0x0000007E ; 9F: ^[[29~
dd 0x31335B1B,0x0000007E ; A0: ^[[31~
dd 0x32335B1B,0x0000007E ; A1: ^[[32~
dd 0x33335B1B,0x0000007E ; A2: ^[[33~
dd 0x34335B1B,0x0000007E ; A3: ^[[34~
dd 0x33325B1B,0x00000024 ; A4: ^[[23$
dd 0x34325B1B,0x00000024 ; A5: ^[[24$
dd 0x24325B1B,0x00000000 ; A6: ^[[2$
dd 0x24335B1B,0x00000000 ; A7: ^[[3$
dd 0x24375B1B,0x00000000 ; A8: ^[[7$
dd 0x24385B1B,0x00000000 ; A9: ^[[8$
dd 0x24355B1B,0x00000000 ; AA: ^[[5$
dd 0x24365B1B,0x00000000 ; AB: ^[[6$
dd 0x00615B1B,0x00000000 ; AC: ^[[a
dd 0x00645B1B,0x00000000 ; AD: ^[[d
dd 0x00625B1B,0x00000000 ; AE: ^[[b
dd 0x00635B1B,0x00000000 ; AF: ^[[c
dd 0x006A4F1B,0x00000000 ; B0: ^[Oj
dd 0x006B4F1B,0x00000000 ; B1: ^[Ok
dd 0x006D4F1B,0x00000000 ; B2: ^[Om
dd 0x006E4F1B,0x00000000 ; B3: ^[On
dd 0x006F4F1B,0x00000000 ; B4: ^[Oo
dd 0x00704F1B,0x00000000 ; B5: ^[Op
dd 0x00714F1B,0x00000000 ; B6: ^[Oq
dd 0x00724F1B,0x00000000 ; B7: ^[Or
dd 0x00734F1B,0x00000000 ; B8: ^[Os
dd 0x00744F1B,0x00000000 ; B9: ^[Ot
dd 0x00754F1B,0x00000000 ; BA: ^[Ou
dd 0x00764F1B,0x00000000 ; BB: ^[Ov
dd 0x00774F1B,0x00000000 ; BC: ^[Ow
dd 0x00784F1B,0x00000000 ; BD: ^[Ox
dd 0x00794F1B,0x00000000 ; BE: ^[Oy
dd 0x004D4F1B,0x00000000 ; BF: ^[OM
section .text
release_keycode:
neg eax
cmp eax, byte keyboard.keycode_size
mov ebx, [keyboard.selector]
jnb short .exit
mov al, byte [eax + ebx]
sub al, 0xE0
jb short .exit
push ecx
mov cl, al
mov eax, 0xFFFFFFFE
rol eax, cl
cmp cl, 6
pop ecx
jnb short .exit
mov ebx, [keyboard.modifiers]
and ebx, eax
mov eax, ebx
jmp near _keycode_client.select_keymap
.exit:
retn
_keycode_client:
test eax, eax
js short release_keycode
cmp eax, byte keyboard.keycode_size
mov ebx, [keyboard.selector]
jnb short release_keycode.exit
mov al, byte [eax + ebx]
.analyze_key:
test al, al
js short .special_make_code
mov ebx, [keyboard.modifiers]
test bl, byte mod_lalt + mod_ralt
jz short .send_single_unicode
; prefix with ^[
push eax
mov al, 0x1B
push ebx
call [keyboard.client]
pop ebx
pop eax
.send_single_unicode:
test bl, mod_lctrl + mod_rctrl
jz short .send_to_client
call convert_control
.send_to_client:
jmp [keyboard.client]
.special_make_code:
cmp al, 0xD0
jb short .escape_sequence
sub al, 0xE0
jb near .keypad_keys
; modifiers
push ecx
mov cl, al
mov eax, 1
rol eax, cl
cmp cl, 6
pop ecx
jnb short .locked_modifiers
or eax, [keyboard.modifiers]
.select_keymap:
mov ebx, keyboard.shift
test al, mod_rshift + mod_lshift
jz short .unshifted_map_test
test al, mod_capslock
jz short .map_selected
.unshifted_map:
mov ebx, keyboard.keycodes
jmp short .map_selected
.unshifted_map_test:
test al, mod_capslock
jz short .unshifted_map
.map_selected:
mov [keyboard.selector], ebx
.modifiers_update:
mov [keyboard.modifiers], eax
.exit2:
retn
.locked_modifiers:
xor eax, [keyboard.modifiers]
jmp short .modifiers_update
.escape_sequence:
test [keyboard.modifiers], byte mod_lalt + mod_ralt
jz short .send_escape_sequence
; prefix with ^[
push eax
mov ebx, [keyboard.modifiers]
mov al, 0x1B
call [keyboard.client]
pop eax
.send_escape_sequence:
sub al, 0x80
movzx eax, al
lea ebx, [keyboard.escape_sequences + eax*8]
.processing_escape_sequence:
mov al, [ebx]
test al, al
jz short .exit2
push ebx
mov ebx, [keyboard.modifiers]
test bl, mod_lctrl + mod_rctrl
jz short .send_sequence_char
cmp al, '$'
jnz short .test_for_tilt
mov al, '@'
jmp short .send_sequence_char
.test_for_tilt:
cmp al, '~'
jnz short .send_sequence_char
mov al, '$'
.send_sequence_char:
call [keyboard.client]
pop ebx
inc ebx
jmp short .processing_escape_sequence
.keypad_keys:
test byte [keyboard.modifiers], byte mod_numlock
jz short .numlock_off
test byte [keyboard.modifiers], byte mod_lshift+mod_rshift
jnz short .keypad_forced_off
.keypad_forced_on:
add al, 0xE0-(0xD6-0x30)
jmp near .analyze_key
.numlock_off:
test byte [keyboard.modifiers], byte mod_lshift+mod_rshift
jnz short .keypad_forced_on
.keypad_forced_off:
add al, 0x10
movzx eax, al
mov al, [keyboard.numlock_off_keys + eax]
jmp near .analyze_key
convert_control:
cmp al, '@'
jb short .converted
cmp al, '_'
jbe short .convert_it
cmp al, 'z'
ja short .converted
sub al, 0x20
.convert_it:
sub al, 0x40
.converted:
null_client:
retn
globalfunc kbd.set_unicode_client
;------------------------------------------------------------------------------
;>
;; Allows to set the keyboard unicode (UTF-8) client
;;
;; parameters:
;;------------
;; esi = client's address (-1 to disconnect)
;;
;; returned value:
;;----------------
;; none, always successful
;<
;------------------------------------------------------------------------------
inc esi
jnz short .set_client
mov esi, null_client + 1
.set_client:
dec esi
mov [keyboard.client], esi
retn
;------------------------------------------------------------------------------
| 28.062395 | 79 | 0.651283 |
ac627f35b7019e09d03f3ee56a78cb277f875f59 | 667 | asm | Assembly | oeis/299/A299429.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/299/A299429.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/299/A299429.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A299429: a(n) = binomial((n+1)*(2*n+1), n) / ((n+1)*(2*n+1)).
; Submitted by Jon Maiga
; 1,1,7,117,3311,135408,7324878,495729741,40411916335,3861208027677,423601805745460,52513639293534510,7263163165618323432,1109176062938132317300,185415009041446934481180,33681956588219177374026429,6607825171826115567872400495,1392510451119380284814728497375,313751651906850906891187320200835,75272394319742320832436086721430960,19158703104267034655076669043567084765,5156641243095922733850967051991304365256,1463433641615744535685076007561209463761280,436760465260264540946413009827411734663481450
mov $1,$0
mov $2,1
add $2,$0
add $0,$2
mul $0,$2
mov $2,$0
bin $0,$1
div $0,$2
| 51.307692 | 497 | 0.838081 |
bed1acfe563078e9f9804050df3e02160e11fb5e | 1,587 | asm | Assembly | src/lib/gp_get_trs80_model.asm | hallorant/bitmit | 58f337ecbafe04066e71bc54efa4640643bf5373 | [
"Apache-2.0"
] | 6 | 2020-08-16T03:23:37.000Z | 2022-03-19T20:50:27.000Z | src/lib/gp_get_trs80_model.asm | hallorant/bitmit | 58f337ecbafe04066e71bc54efa4640643bf5373 | [
"Apache-2.0"
] | 1 | 2021-09-14T22:24:14.000Z | 2021-09-15T01:48:48.000Z | src/lib/gp_get_trs80_model.asm | hallorant/bitmit | 58f337ecbafe04066e71bc54efa4640643bf5373 | [
"Apache-2.0"
] | 1 | 2021-09-09T22:50:31.000Z | 2021-09-09T22:50:31.000Z | ifndef INCLUDE_GP_GET_TRS80_MODEL
INCLUDE_GP_GET_TRS80_MODEL equ 1
; _ _ _____ _____
; | | | | | _ | _ |
; __ _ _ __ __ _ ___| |_ | |_ _ __ ___ \ V /| |/' |
; / _` | '_ \ / _` |/ _ \ __|| __| '__/ __| / _ \| /| |
;| (_| | |_) | | (_| | __/ |_ | |_| | \__ \| |_| \ |_/ /
; \__, | .__/ \__, |\___|\__| \__|_| |___/\_____/\___/
; __/ | |______ __/ | ______
; |___/|_|______|___/ |______|
; _ _
; | | | |
; _ __ ___ ___ __| | ___| |
; | '_ ` _ \ / _ \ / _` |/ _ \ |
; | | | | | | (_) | (_| | __/ |
; |_| |_| |_|\___/ \__,_|\___|_|
; ______
;|______|
;
; Author: George Phillips (gp)
;
; Determines the TRS-80 model number this program is running on.
;
; Uses: a,b,c,
;
; Exit: a 1 = Model 1 (Level 1 or 2)
; 3 = Model 3
; 4 = Model 4 (4ga or 4p)
gp_get_trs80_model:
in a,($00ff) ; read OUTMOD latches
ld b,a ; save original settings
ld c,$60
xor c ; invert CPU Fast, DISWAIT
out ($00ec),a ; set latches
in a,($00ff) ; read latches
xor c ; flip to original value
xor b ; compare against original
ld c,$ec
out (c),b ; restore original settings
rlca
rlca
jr nc,_is_m4 ; CPU Fast unchanged, must be Model 4
rlca
ld a,3
ret nc ; DISWAIT same, Model III
ld a,1 ; otherwise, it's a Model I
ret
_is_m4:
ld a,4
ret
endif ; INCLUDE_GP_GET_TRS80_MODEL
| 29.388889 | 65 | 0.449905 |
0b3b7ffb2483dca769b8ba84e927f82d864cf9f8 | 638 | asm | Assembly | oeis/114/A114103.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/114/A114103.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/114/A114103.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A114103: n multiples of n such that a(n) is a multiple of n. The n-th group contains n multiples of n. Arranged sequentially the n-th term is a multiple of n.
; Submitted by Jon Maiga
; 1,2,6,12,15,6,28,8,36,20,55,60,65,70,15,48,102,18,114,60,42,154,161,168,175,182,189,28,232,120,248,32,264,136,280,72,333,342,117,360,369,126,387,396,45,230,470,240,490,50,510,260,530,270,110,616,627,638,649,660,671,682,693,704,715,66,804,204,276,420,852,72,876,444,300,228,924,156,1027,1040,1053,1066,1079,1092,1105,1118,1131,1144,1157,1170,91,644,1302,658,1330,672,1358,98,1386,700
mov $1,$0
seq $0,114104 ; a(n) = A114103(n)/n.
add $1,1
mul $0,$1
| 70.888889 | 384 | 0.717868 |
020f9db05315f8452937485b7f1167ef875f59cc | 51,258 | asm | Assembly | ioq3/build/release-js-js/baseq3/game/g_active.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/game/g_active.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/game/g_active.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | null | null | null | export P_DamageFeedback
code
proc P_DamageFeedback 36 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 3
NEI4 $54
ADDRGP4 $53
JUMPV
LABELV $54
ADDRLP4 4
ADDRLP4 0
INDIRP4
CNSTI4 684
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 680
ADDP4
INDIRI4
ADDI4
CVIF4 4
ASGNF4
ADDRLP4 4
INDIRF4
CNSTF4 0
NEF4 $56
ADDRGP4 $53
JUMPV
LABELV $56
ADDRLP4 4
INDIRF4
CNSTF4 1132396544
LEF4 $58
ADDRLP4 4
CNSTF4 1132396544
ASGNF4
LABELV $58
ADDRLP4 0
INDIRP4
CNSTI4 704
ADDP4
INDIRI4
CNSTI4 0
EQI4 $60
ADDRLP4 0
INDIRP4
CNSTI4 176
ADDP4
CNSTI4 255
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 172
ADDP4
CNSTI4 255
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 704
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $61
JUMPV
LABELV $60
ADDRLP4 0
INDIRP4
CNSTI4 692
ADDP4
ARGP4
ADDRLP4 8
ARGP4
ADDRGP4 vectoangles
CALLV
pop
ADDRLP4 0
INDIRP4
CNSTI4 176
ADDP4
CNSTF4 1132462080
ADDRLP4 8
INDIRF4
CNSTF4 1135869952
DIVF4
MULF4
CVFI4 4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 172
ADDP4
CNSTF4 1132462080
ADDRLP4 8+4
INDIRF4
CNSTF4 1135869952
DIVF4
MULF4
CVFI4 4
ASGNI4
LABELV $61
ADDRGP4 level+32
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 716
ADDP4
INDIRI4
LEI4 $63
ADDRFP4 0
INDIRP4
CNSTI4 536
ADDP4
INDIRI4
CNSTI4 16
BANDI4
CNSTI4 0
NEI4 $63
ADDRFP4 0
INDIRP4
CNSTI4 716
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 700
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 56
ARGI4
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
ARGI4
ADDRGP4 G_AddEvent
CALLV
pop
ADDRLP4 32
ADDRLP4 0
INDIRP4
CNSTI4 168
ADDP4
ASGNP4
ADDRLP4 32
INDIRP4
ADDRLP4 32
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $63
ADDRLP4 0
INDIRP4
CNSTI4 180
ADDP4
ADDRLP4 4
INDIRF4
CVFI4 4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 684
ADDP4
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 680
ADDP4
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 688
ADDP4
CNSTI4 0
ASGNI4
LABELV $53
endproc P_DamageFeedback 36 12
export P_WorldEffects
proc P_WorldEffects 36 32
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 648
ADDP4
INDIRI4
CNSTI4 0
EQI4 $68
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 748
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 12000
ADDI4
ASGNI4
ADDRGP4 $67
JUMPV
LABELV $68
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 784
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 320
ADDP4
INDIRI4
ADDRGP4 level+32
INDIRI4
LEI4 $73
ADDRLP4 8
CNSTI4 1
ASGNI4
ADDRGP4 $74
JUMPV
LABELV $73
ADDRLP4 8
CNSTI4 0
ASGNI4
LABELV $74
ADDRLP4 4
ADDRLP4 8
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 3
NEI4 $75
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $77
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 748
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 10000
ADDI4
ASGNI4
LABELV $77
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 748
ADDP4
INDIRI4
ADDRGP4 level+32
INDIRI4
GEI4 $76
ADDRLP4 16
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 748
ADDP4
ASGNP4
ADDRLP4 16
INDIRP4
ADDRLP4 16
INDIRP4
INDIRI4
CNSTI4 1000
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
CNSTI4 0
LEI4 $76
ADDRLP4 20
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
ASGNP4
ADDRLP4 20
INDIRP4
ADDRLP4 20
INDIRP4
INDIRI4
CNSTI4 2
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
INDIRI4
CNSTI4 15
LEI4 $85
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
CNSTI4 15
ASGNI4
LABELV $85
ADDRFP4 0
INDIRP4
CNSTI4 716
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 200
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 28
CNSTP4 0
ASGNP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 32
CNSTP4 0
ASGNP4
ADDRLP4 32
INDIRP4
ARGP4
ADDRLP4 32
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
CNSTI4 14
ARGI4
ADDRGP4 G_Damage
CALLV
pop
ADDRGP4 $76
JUMPV
LABELV $75
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 748
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 12000
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
CNSTI4 2
ASGNI4
LABELV $76
ADDRLP4 16
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 16
INDIRI4
EQI4 $89
ADDRFP4 0
INDIRP4
CNSTI4 780
ADDP4
INDIRI4
CNSTI4 24
BANDI4
ADDRLP4 16
INDIRI4
EQI4 $89
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
CNSTI4 0
LEI4 $91
ADDRFP4 0
INDIRP4
CNSTI4 716
ADDP4
INDIRI4
ADDRGP4 level+32
INDIRI4
GTI4 $91
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $94
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 62
ARGI4
CNSTI4 0
ARGI4
ADDRGP4 G_AddEvent
CALLV
pop
ADDRGP4 $95
JUMPV
LABELV $94
ADDRFP4 0
INDIRP4
CNSTI4 780
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
EQI4 $96
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 24
CNSTP4 0
ASGNP4
ADDRLP4 24
INDIRP4
ARGP4
ADDRLP4 24
INDIRP4
ARGP4
ADDRLP4 28
CNSTP4 0
ASGNP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 28
INDIRP4
ARGP4
CNSTI4 30
ADDRLP4 0
INDIRI4
MULI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 16
ARGI4
ADDRGP4 G_Damage
CALLV
pop
LABELV $96
ADDRFP4 0
INDIRP4
CNSTI4 780
ADDP4
INDIRI4
CNSTI4 16
BANDI4
CNSTI4 0
EQI4 $98
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 24
CNSTP4 0
ASGNP4
ADDRLP4 24
INDIRP4
ARGP4
ADDRLP4 24
INDIRP4
ARGP4
ADDRLP4 28
CNSTP4 0
ASGNP4
ADDRLP4 28
INDIRP4
ARGP4
ADDRLP4 28
INDIRP4
ARGP4
CNSTI4 10
ADDRLP4 0
INDIRI4
MULI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 15
ARGI4
ADDRGP4 G_Damage
CALLV
pop
LABELV $98
LABELV $95
LABELV $91
LABELV $89
LABELV $67
endproc P_WorldEffects 36 32
export G_SetClientSound
proc G_SetClientSound 8 0
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 784
ADDP4
INDIRI4
ADDRLP4 4
INDIRI4
EQI4 $101
ADDRFP4 0
INDIRP4
CNSTI4 780
ADDP4
INDIRI4
CNSTI4 24
BANDI4
ADDRLP4 4
INDIRI4
EQI4 $101
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 444
ADDP4
ADDRGP4 level+348
INDIRI4
ASGNI4
ADDRGP4 $102
JUMPV
LABELV $101
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 444
ADDP4
CNSTI4 0
ASGNI4
LABELV $102
LABELV $100
endproc G_SetClientSound 8 0
export ClientImpacts
proc ClientImpacts 76 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRLP4 12
ARGP4
CNSTI4 0
ARGI4
CNSTU4 56
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $108
JUMPV
LABELV $105
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $112
JUMPV
LABELV $109
ADDRLP4 68
CNSTI4 2
ASGNI4
ADDRLP4 72
ADDRFP4 4
INDIRP4
CNSTI4 52
ADDP4
ASGNP4
ADDRLP4 0
INDIRI4
ADDRLP4 68
INDIRI4
LSHI4
ADDRLP4 72
INDIRP4
ADDP4
INDIRI4
ADDRLP4 4
INDIRI4
ADDRLP4 68
INDIRI4
LSHI4
ADDRLP4 72
INDIRP4
ADDP4
INDIRI4
NEI4 $113
ADDRGP4 $111
JUMPV
LABELV $113
LABELV $110
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $112
ADDRLP4 0
INDIRI4
ADDRLP4 4
INDIRI4
LTI4 $109
LABELV $111
ADDRLP4 0
INDIRI4
ADDRLP4 4
INDIRI4
EQI4 $115
ADDRGP4 $106
JUMPV
LABELV $115
ADDRLP4 8
CNSTI4 804
ADDRLP4 4
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
CNSTI4 52
ADDP4
ADDP4
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 424
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
EQI4 $117
ADDRFP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $117
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 8
INDIRP4
ARGP4
ADDRLP4 12
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CALLV
pop
LABELV $117
ADDRLP4 8
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $119
ADDRGP4 $106
JUMPV
LABELV $119
ADDRLP4 8
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 12
ARGP4
ADDRLP4 8
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CALLV
pop
LABELV $106
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $108
ADDRLP4 4
INDIRI4
ADDRFP4 4
INDIRP4
CNSTI4 48
ADDP4
INDIRI4
LTI4 $105
LABELV $104
endproc ClientImpacts 76 12
data
align 4
LABELV $122
byte 4 1109393408
byte 4 1109393408
byte 4 1112539136
export G_TouchTriggers
code
proc G_TouchTriggers 4240 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $123
ADDRGP4 $121
JUMPV
LABELV $123
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 184
ADDP4
INDIRI4
CNSTI4 0
GTI4 $125
ADDRGP4 $121
JUMPV
LABELV $125
ADDRLP4 4188
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
ASGNP4
ADDRLP4 64
ADDRLP4 4188
INDIRP4
INDIRP4
CNSTI4 20
ADDP4
INDIRF4
ADDRGP4 $122
INDIRF4
SUBF4
ASGNF4
ADDRLP4 64+4
ADDRLP4 4188
INDIRP4
INDIRP4
CNSTI4 24
ADDP4
INDIRF4
ADDRGP4 $122+4
INDIRF4
SUBF4
ASGNF4
ADDRLP4 64+8
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 28
ADDP4
INDIRF4
ADDRGP4 $122+8
INDIRF4
SUBF4
ASGNF4
ADDRLP4 4192
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
ASGNP4
ADDRLP4 76
ADDRLP4 4192
INDIRP4
INDIRP4
CNSTI4 20
ADDP4
INDIRF4
ADDRGP4 $122
INDIRF4
ADDF4
ASGNF4
ADDRLP4 76+4
ADDRLP4 4192
INDIRP4
INDIRP4
CNSTI4 24
ADDP4
INDIRF4
ADDRGP4 $122+4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 76+8
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 28
ADDP4
INDIRF4
ADDRGP4 $122+8
INDIRF4
ADDF4
ASGNF4
ADDRLP4 64
ARGP4
ADDRLP4 76
ARGP4
ADDRLP4 92
ARGP4
CNSTI4 1024
ARGI4
ADDRLP4 4196
ADDRGP4 trap_EntitiesInBox
CALLI4
ASGNI4
ADDRLP4 88
ADDRLP4 4196
INDIRI4
ASGNI4
ADDRLP4 4204
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
ASGNP4
ADDRLP4 64
ADDRLP4 4204
INDIRP4
INDIRP4
CNSTI4 20
ADDP4
INDIRF4
ADDRFP4 0
INDIRP4
CNSTI4 436
ADDP4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 64+4
ADDRLP4 4204
INDIRP4
INDIRP4
CNSTI4 24
ADDP4
INDIRF4
ADDRFP4 0
INDIRP4
CNSTI4 440
ADDP4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 64+8
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 28
ADDP4
INDIRF4
ADDRFP4 0
INDIRP4
CNSTI4 444
ADDP4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 4216
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
ASGNP4
ADDRLP4 76
ADDRLP4 4216
INDIRP4
INDIRP4
CNSTI4 20
ADDP4
INDIRF4
ADDRFP4 0
INDIRP4
CNSTI4 448
ADDP4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 76+4
ADDRLP4 4216
INDIRP4
INDIRP4
CNSTI4 24
ADDP4
INDIRF4
ADDRFP4 0
INDIRP4
CNSTI4 452
ADDP4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 76+8
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 28
ADDP4
INDIRF4
ADDRFP4 0
INDIRP4
CNSTI4 456
ADDP4
INDIRF4
ADDF4
ASGNF4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $142
JUMPV
LABELV $139
ADDRLP4 0
CNSTI4 804
ADDRLP4 4
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 92
ADDP4
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ASGNP4
ADDRLP4 4224
CNSTI4 700
ASGNI4
ADDRLP4 4228
CNSTU4 0
ASGNU4
ADDRLP4 0
INDIRP4
ADDRLP4 4224
INDIRI4
ADDP4
INDIRP4
CVPU4 4
ADDRLP4 4228
INDIRU4
NEU4 $143
ADDRFP4 0
INDIRP4
ADDRLP4 4224
INDIRI4
ADDP4
INDIRP4
CVPU4 4
ADDRLP4 4228
INDIRU4
NEU4 $143
ADDRGP4 $140
JUMPV
LABELV $143
ADDRLP4 0
INDIRP4
CNSTI4 460
ADDP4
INDIRI4
CNSTI4 1073741824
BANDI4
CNSTI4 0
NEI4 $145
ADDRGP4 $140
JUMPV
LABELV $145
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $147
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 9
EQI4 $149
ADDRLP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CVPU4 4
ADDRGP4 Touch_DoorTrigger
CVPU4 4
EQU4 $149
ADDRGP4 $140
JUMPV
LABELV $149
LABELV $147
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 2
NEI4 $151
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 level+32
INDIRI4
ARGI4
ADDRLP4 4232
ADDRGP4 BG_PlayerTouchesItem
CALLI4
ASGNI4
ADDRLP4 4232
INDIRI4
CNSTI4 0
NEI4 $152
ADDRGP4 $140
JUMPV
LABELV $151
ADDRLP4 64
ARGP4
ADDRLP4 76
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 4232
ADDRGP4 trap_EntityContact
CALLI4
ASGNI4
ADDRLP4 4232
INDIRI4
CNSTI4 0
NEI4 $156
ADDRGP4 $140
JUMPV
LABELV $156
LABELV $152
ADDRLP4 8
ARGP4
CNSTI4 0
ARGI4
CNSTU4 56
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRLP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $158
ADDRLP4 0
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 8
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CALLV
pop
LABELV $158
ADDRFP4 0
INDIRP4
CNSTI4 424
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
EQI4 $160
ADDRFP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $160
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 8
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 700
ADDP4
INDIRP4
CALLV
pop
LABELV $160
LABELV $140
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $142
ADDRLP4 4
INDIRI4
ADDRLP4 88
INDIRI4
LTI4 $139
ADDRLP4 4224
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 4224
INDIRP4
CNSTI4 460
ADDP4
INDIRI4
ADDRLP4 4224
INDIRP4
CNSTI4 456
ADDP4
INDIRI4
EQI4 $162
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 460
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 448
ADDP4
CNSTI4 0
ASGNI4
LABELV $162
LABELV $121
endproc G_TouchTriggers 4240 16
export SpectatorThink
proc SpectatorThink 252 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 2
EQI4 $165
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 2
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 52
ADDP4
CNSTI4 400
ASGNI4
ADDRLP4 4
ARGP4
CNSTI4 0
ARGI4
CNSTU4 232
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRLP4 4
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 4+4
ADDRFP4 4
INDIRP4
INDIRB
ASGNB 24
ADDRLP4 4+28
CNSTI4 65537
ASGNI4
ADDRLP4 4+224
ADDRGP4 trap_Trace
ASGNP4
ADDRLP4 4+228
ADDRGP4 trap_PointContents
ASGNP4
ADDRLP4 4
ARGP4
ADDRGP4 Pmove
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 92
ADDP4
ADDRLP4 0
INDIRP4
CNSTI4 20
ADDP4
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 G_TouchTriggers
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 trap_UnlinkEntity
CALLV
pop
LABELV $165
ADDRLP4 0
INDIRP4
CNSTI4 660
ADDP4
ADDRLP4 0
INDIRP4
CNSTI4 656
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 656
ADDP4
ADDRFP4 4
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ASGNI4
ADDRLP4 244
CNSTI4 1
ASGNI4
ADDRLP4 248
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 656
ADDP4
INDIRI4
ADDRLP4 244
INDIRI4
BANDI4
ADDRLP4 248
INDIRI4
EQI4 $171
ADDRLP4 0
INDIRP4
CNSTI4 660
ADDP4
INDIRI4
ADDRLP4 244
INDIRI4
BANDI4
ADDRLP4 248
INDIRI4
NEI4 $171
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 Cmd_FollowCycle_f
CALLV
pop
LABELV $171
LABELV $164
endproc SpectatorThink 252 12
export ClientInactivityTimer
proc ClientInactivityTimer 12 8
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 g_inactivity+12
INDIRI4
CNSTI4 0
NEI4 $174
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 60000
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 740
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $175
JUMPV
LABELV $174
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 493
ADDP4
INDIRI1
CVII4 1
ADDRLP4 4
INDIRI4
NEI4 $182
ADDRFP4 0
INDIRP4
CNSTI4 494
ADDP4
INDIRI1
CVII4 1
ADDRLP4 4
INDIRI4
NEI4 $182
ADDRFP4 0
INDIRP4
CNSTI4 495
ADDP4
INDIRI1
CVII4 1
ADDRLP4 4
INDIRI4
NEI4 $182
ADDRFP4 0
INDIRP4
CNSTI4 488
ADDP4
INDIRI4
CNSTI4 1
BANDI4
ADDRLP4 4
INDIRI4
EQI4 $178
LABELV $182
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 1000
ADDRGP4 g_inactivity+12
INDIRI4
MULI4
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 740
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $179
JUMPV
LABELV $178
ADDRFP4 0
INDIRP4
CNSTI4 496
ADDP4
INDIRI4
CNSTI4 0
NEI4 $185
ADDRGP4 level+32
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
INDIRI4
LEI4 $187
ADDRFP4 0
INDIRP4
CVPU4 4
ADDRGP4 level
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CNSTI4 776
DIVI4
ARGI4
ADDRGP4 $190
ARGP4
ADDRGP4 trap_DropClient
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $173
JUMPV
LABELV $187
ADDRGP4 level+32
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 736
ADDP4
INDIRI4
CNSTI4 10000
SUBI4
LEI4 $191
ADDRFP4 0
INDIRP4
CNSTI4 740
ADDP4
INDIRI4
CNSTI4 0
NEI4 $191
ADDRFP4 0
INDIRP4
CNSTI4 740
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CVPU4 4
ADDRGP4 level
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CNSTI4 776
DIVI4
ARGI4
ADDRGP4 $194
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
LABELV $191
LABELV $185
LABELV $179
LABELV $175
CNSTI4 1
RETI4
LABELV $173
endproc ClientInactivityTimer 12 8
export ClientTimerActions
proc ClientTimerActions 20 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 4
ADDRLP4 0
INDIRP4
CNSTI4 768
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
ADDRFP4 4
INDIRI4
ADDI4
ASGNI4
ADDRGP4 $197
JUMPV
LABELV $196
ADDRLP4 8
ADDRLP4 0
INDIRP4
CNSTI4 768
ADDP4
ASGNP4
ADDRLP4 8
INDIRP4
ADDRLP4 8
INDIRP4
INDIRI4
CNSTI4 1000
SUBI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 332
ADDP4
INDIRI4
CNSTI4 0
EQI4 $199
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
GEI4 $201
ADDRLP4 12
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
ASGNP4
ADDRLP4 12
INDIRP4
ADDRLP4 12
INDIRP4
INDIRI4
CNSTI4 15
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
CVIF4 4
CNSTF4 1066192077
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
CVIF4 4
MULF4
LEF4 $203
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
CNSTF4 1066192077
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
CVIF4 4
MULF4
CVFI4 4
ASGNI4
LABELV $203
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 63
ARGI4
CNSTI4 0
ARGI4
ADDRGP4 G_AddEvent
CALLV
pop
ADDRGP4 $200
JUMPV
LABELV $201
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
CNSTI4 1
LSHI4
GEI4 $200
ADDRLP4 12
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
ASGNP4
ADDRLP4 12
INDIRP4
ADDRLP4 12
INDIRP4
INDIRI4
CNSTI4 5
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
CNSTI4 1
LSHI4
LEI4 $207
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
CNSTI4 1
LSHI4
ASGNI4
LABELV $207
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 63
ARGI4
CNSTI4 0
ARGI4
ADDRGP4 G_AddEvent
CALLV
pop
ADDRGP4 $200
JUMPV
LABELV $199
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
LEI4 $209
ADDRLP4 12
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
ASGNP4
ADDRLP4 12
INDIRP4
ADDRLP4 12
INDIRP4
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
LABELV $209
LABELV $200
ADDRLP4 0
INDIRP4
CNSTI4 196
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
LEI4 $211
ADDRLP4 16
ADDRLP4 0
INDIRP4
CNSTI4 196
ADDP4
ASGNP4
ADDRLP4 16
INDIRP4
ADDRLP4 16
INDIRP4
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
LABELV $211
LABELV $197
ADDRLP4 0
INDIRP4
CNSTI4 768
ADDP4
INDIRI4
CNSTI4 1000
GEI4 $196
LABELV $195
endproc ClientTimerActions 20 12
export ClientIntermissionThink
proc ClientIntermissionThink 24 0
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 104
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
ADDRLP4 0
INDIRP4
INDIRI4
CNSTI4 -4097
BANDI4
ASGNI4
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 104
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 -257
BANDI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 660
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 656
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 656
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 488
ADDP4
INDIRI4
ASGNI4
ADDRLP4 20
ADDRFP4 0
INDIRP4
CNSTI4 656
ADDP4
INDIRI4
ASGNI4
ADDRLP4 20
INDIRI4
CNSTI4 5
BANDI4
ADDRFP4 0
INDIRP4
CNSTI4 660
ADDP4
INDIRI4
ADDRLP4 20
INDIRI4
BXORI4
BANDI4
CNSTI4 0
EQI4 $214
ADDRFP4 0
INDIRP4
CNSTI4 644
ADDP4
CNSTI4 1
ASGNI4
LABELV $214
LABELV $213
endproc ClientIntermissionThink 24 0
export ClientEvents
proc ClientEvents 80 32
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 8
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRFP4 4
INDIRI4
ADDRLP4 8
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
CNSTI4 2
SUBI4
GEI4 $217
ADDRFP4 4
ADDRLP4 8
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
CNSTI4 2
SUBI4
ASGNI4
LABELV $217
ADDRLP4 0
ADDRFP4 4
INDIRI4
ASGNI4
ADDRGP4 $222
JUMPV
LABELV $219
ADDRLP4 4
ADDRLP4 0
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 2
LSHI4
ADDRLP4 8
INDIRP4
CNSTI4 112
ADDP4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 56
CNSTI4 11
ASGNI4
ADDRLP4 4
INDIRI4
ADDRLP4 56
INDIRI4
EQI4 $225
ADDRLP4 4
INDIRI4
CNSTI4 12
EQI4 $225
ADDRLP4 4
INDIRI4
ADDRLP4 56
INDIRI4
LTI4 $224
LABELV $248
ADDRLP4 4
INDIRI4
CNSTI4 23
EQI4 $234
ADDRLP4 4
INDIRI4
CNSTI4 25
EQI4 $235
ADDRLP4 4
INDIRI4
CNSTI4 26
EQI4 $247
ADDRGP4 $224
JUMPV
LABELV $225
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 1
EQI4 $226
ADDRGP4 $224
JUMPV
LABELV $226
ADDRGP4 g_dmflags+12
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
EQI4 $228
ADDRGP4 $224
JUMPV
LABELV $228
ADDRLP4 4
INDIRI4
CNSTI4 12
NEI4 $231
ADDRLP4 20
CNSTI4 10
ASGNI4
ADDRGP4 $232
JUMPV
LABELV $231
ADDRLP4 20
CNSTI4 5
ASGNI4
LABELV $232
ADDRFP4 0
INDIRP4
CNSTI4 716
ADDP4
ADDRGP4 level+32
INDIRI4
CNSTI4 200
ADDI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 64
CNSTP4 0
ASGNP4
ADDRLP4 64
INDIRP4
ARGP4
ADDRLP4 64
INDIRP4
ARGP4
ADDRLP4 68
CNSTP4 0
ASGNP4
ADDRLP4 68
INDIRP4
ARGP4
ADDRLP4 68
INDIRP4
ARGP4
ADDRLP4 20
INDIRI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 19
ARGI4
ADDRGP4 G_Damage
CALLV
pop
ADDRGP4 $224
JUMPV
LABELV $234
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 FireWeapon
CALLV
pop
ADDRGP4 $224
JUMPV
LABELV $235
ADDRLP4 12
CNSTP4 0
ASGNP4
ADDRLP4 72
CNSTI4 0
ASGNI4
ADDRLP4 16
ADDRLP4 72
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 340
ADDP4
INDIRI4
ADDRLP4 72
INDIRI4
EQI4 $236
CNSTI4 7
ARGI4
ADDRLP4 76
ADDRGP4 BG_FindItemForPowerup
CALLP4
ASGNP4
ADDRLP4 12
ADDRLP4 76
INDIRP4
ASGNP4
ADDRLP4 16
CNSTI4 7
ASGNI4
ADDRGP4 $237
JUMPV
LABELV $236
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 344
ADDP4
INDIRI4
CNSTI4 0
EQI4 $238
CNSTI4 8
ARGI4
ADDRLP4 76
ADDRGP4 BG_FindItemForPowerup
CALLP4
ASGNP4
ADDRLP4 12
ADDRLP4 76
INDIRP4
ASGNP4
ADDRLP4 16
CNSTI4 8
ASGNI4
ADDRGP4 $239
JUMPV
LABELV $238
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 348
ADDP4
INDIRI4
CNSTI4 0
EQI4 $240
CNSTI4 9
ARGI4
ADDRLP4 76
ADDRGP4 BG_FindItemForPowerup
CALLP4
ASGNP4
ADDRLP4 12
ADDRLP4 76
INDIRP4
ASGNP4
ADDRLP4 16
CNSTI4 9
ASGNI4
LABELV $240
LABELV $239
LABELV $237
ADDRLP4 12
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $242
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 12
INDIRP4
ARGP4
CNSTF4 0
ARGF4
ADDRLP4 76
ADDRGP4 Drop_Item
CALLP4
ASGNP4
ADDRLP4 48
ADDRLP4 76
INDIRP4
ASGNP4
ADDRLP4 48
INDIRP4
CNSTI4 756
ADDP4
ADDRLP4 16
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 312
ADDP4
ADDP4
INDIRI4
ADDRGP4 level+32
INDIRI4
SUBI4
CNSTI4 1000
DIVI4
ASGNI4
ADDRLP4 48
INDIRP4
CNSTI4 756
ADDP4
INDIRI4
CNSTI4 1
GEI4 $245
ADDRLP4 48
INDIRP4
CNSTI4 756
ADDP4
CNSTI4 1
ASGNI4
LABELV $245
ADDRLP4 16
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 312
ADDP4
ADDP4
CNSTI4 0
ASGNI4
LABELV $242
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 20
ADDP4
ARGP4
ADDRLP4 24
ARGP4
ADDRLP4 36
ARGP4
CNSTI4 0
ARGI4
ADDRGP4 SelectSpawnPoint
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 24
ARGP4
ADDRLP4 36
ARGP4
ADDRGP4 TeleportPlayer
CALLV
pop
ADDRGP4 $224
JUMPV
LABELV $247
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 208
ADDP4
INDIRI4
CNSTI4 25
ADDI4
ASGNI4
LABELV $224
LABELV $220
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $222
ADDRLP4 0
INDIRI4
ADDRLP4 8
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
LTI4 $219
LABELV $216
endproc ClientEvents 80 32
export SendPendingPredictableEvents
proc SendPendingPredictableEvents 56 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 464
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
GEI4 $250
ADDRLP4 28
ADDRFP4 0
INDIRP4
CNSTI4 464
ADDP4
ASGNP4
ADDRLP4 8
ADDRLP4 28
INDIRP4
INDIRI4
CNSTI4 1
BANDI4
ASGNI4
ADDRLP4 4
ADDRLP4 8
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 112
ADDP4
ADDP4
INDIRI4
ADDRLP4 28
INDIRP4
INDIRI4
CNSTI4 3
BANDI4
CNSTI4 8
LSHI4
BORI4
ASGNI4
ADDRLP4 32
ADDRFP4 0
INDIRP4
CNSTI4 128
ADDP4
ASGNP4
ADDRLP4 12
ADDRLP4 32
INDIRP4
INDIRI4
ASGNI4
ADDRLP4 32
INDIRP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 20
ADDP4
ARGP4
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 36
ADDRGP4 G_TempEntity
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 36
INDIRP4
ASGNP4
ADDRLP4 16
ADDRLP4 0
INDIRP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 BG_PlayerStateToEntityState
CALLV
pop
ADDRLP4 0
INDIRP4
ADDRLP4 16
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
ADDRLP4 4
INDIRI4
CNSTI4 13
ADDI4
ASGNI4
ADDRLP4 44
ADDRLP4 0
INDIRP4
CNSTI4 8
ADDP4
ASGNP4
ADDRLP4 44
INDIRP4
ADDRLP4 44
INDIRP4
INDIRI4
CNSTI4 16
BORI4
ASGNI4
ADDRLP4 48
CNSTI4 140
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 48
INDIRI4
ADDP4
ADDRFP4 0
INDIRP4
ADDRLP4 48
INDIRI4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 52
ADDRLP4 0
INDIRP4
CNSTI4 424
ADDP4
ASGNP4
ADDRLP4 52
INDIRP4
ADDRLP4 52
INDIRP4
INDIRI4
CNSTI4 2048
BORI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 428
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 140
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 128
ADDP4
ADDRLP4 12
INDIRI4
ASGNI4
LABELV $250
LABELV $249
endproc SendPendingPredictableEvents 56 12
export ClientThink_real
proc ClientThink_real 304 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $253
ADDRGP4 $252
JUMPV
LABELV $253
ADDRLP4 236
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 472
ADDP4
ASGNP4
ADDRLP4 236
INDIRP4
INDIRI4
ADDRGP4 level+32
INDIRI4
CNSTI4 200
ADDI4
LEI4 $255
ADDRLP4 236
INDIRP4
ADDRGP4 level+32
INDIRI4
CNSTI4 200
ADDI4
ASGNI4
LABELV $255
ADDRLP4 236
INDIRP4
INDIRI4
ADDRGP4 level+32
INDIRI4
CNSTI4 1000
SUBI4
GEI4 $259
ADDRLP4 236
INDIRP4
ADDRGP4 level+32
INDIRI4
CNSTI4 1000
SUBI4
ASGNI4
LABELV $259
ADDRLP4 240
ADDRLP4 236
INDIRP4
INDIRI4
ADDRLP4 0
INDIRP4
INDIRI4
SUBI4
ASGNI4
ADDRLP4 240
INDIRI4
CNSTI4 1
GEI4 $263
ADDRLP4 0
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 2
EQI4 $263
ADDRGP4 $252
JUMPV
LABELV $263
ADDRLP4 240
INDIRI4
CNSTI4 200
LEI4 $265
ADDRLP4 240
CNSTI4 200
ASGNI4
LABELV $265
ADDRGP4 pmove_msec+12
INDIRI4
CNSTI4 8
GEI4 $267
ADDRGP4 $270
ARGP4
ADDRGP4 $271
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
ADDRGP4 $268
JUMPV
LABELV $267
ADDRGP4 pmove_msec+12
INDIRI4
CNSTI4 33
LEI4 $272
ADDRGP4 $270
ARGP4
ADDRGP4 $275
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
LABELV $272
LABELV $268
ADDRLP4 248
CNSTI4 0
ASGNI4
ADDRGP4 pmove_fixed+12
INDIRI4
ADDRLP4 248
INDIRI4
NEI4 $279
ADDRLP4 0
INDIRP4
CNSTI4 508
ADDP4
INDIRI4
ADDRLP4 248
INDIRI4
EQI4 $276
LABELV $279
ADDRLP4 236
INDIRP4
ADDRLP4 236
INDIRP4
INDIRI4
ADDRGP4 pmove_msec+12
INDIRI4
ADDI4
CNSTI4 1
SUBI4
ADDRGP4 pmove_msec+12
INDIRI4
DIVI4
ADDRGP4 pmove_msec+12
INDIRI4
MULI4
ASGNI4
LABELV $276
ADDRGP4 level+9128
INDIRI4
CNSTI4 0
EQI4 $283
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 ClientIntermissionThink
CALLV
pop
ADDRGP4 $252
JUMPV
LABELV $283
ADDRLP4 0
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $286
ADDRLP4 0
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 3
NEI4 $288
ADDRGP4 $252
JUMPV
LABELV $288
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 236
INDIRP4
ARGP4
ADDRGP4 SpectatorThink
CALLV
pop
ADDRGP4 $252
JUMPV
LABELV $286
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 252
ADDRGP4 ClientInactivityTimer
CALLI4
ASGNI4
ADDRLP4 252
INDIRI4
CNSTI4 0
NEI4 $290
ADDRGP4 $252
JUMPV
LABELV $290
ADDRGP4 level+32
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 744
ADDP4
INDIRI4
LEI4 $292
ADDRLP4 256
ADDRLP4 0
INDIRP4
CNSTI4 104
ADDP4
ASGNP4
ADDRLP4 256
INDIRP4
ADDRLP4 256
INDIRP4
INDIRI4
CNSTI4 -231497
BANDI4
ASGNI4
LABELV $292
ADDRLP4 0
INDIRP4
CNSTI4 648
ADDP4
INDIRI4
CNSTI4 0
EQI4 $295
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 $296
JUMPV
LABELV $295
ADDRLP4 0
INDIRP4
CNSTI4 184
ADDP4
INDIRI4
CNSTI4 0
GTI4 $297
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 3
ASGNI4
ADDRGP4 $298
JUMPV
LABELV $297
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
LABELV $298
LABELV $296
ADDRLP4 0
INDIRP4
CNSTI4 48
ADDP4
ADDRGP4 g_gravity+8
INDIRF4
CVFI4 4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 52
ADDP4
ADDRGP4 g_speed+8
INDIRF4
CVFI4 4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 324
ADDP4
INDIRI4
CNSTI4 0
EQI4 $301
ADDRLP4 256
ADDRLP4 0
INDIRP4
CNSTI4 52
ADDP4
ASGNP4
ADDRLP4 256
INDIRP4
CNSTF4 1067869798
ADDRLP4 256
INDIRP4
INDIRI4
CVIF4 4
MULF4
CVFI4 4
ASGNI4
LABELV $301
ADDRLP4 0
INDIRP4
CNSTI4 144
ADDP4
INDIRI4
CNSTI4 10
NEI4 $303
ADDRLP4 0
INDIRP4
CNSTI4 760
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $303
ADDRLP4 236
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $303
ADDRLP4 0
INDIRP4
CNSTI4 760
ADDP4
INDIRP4
ARGP4
ADDRGP4 Weapon_HookFree
CALLV
pop
LABELV $303
ADDRLP4 244
ADDRLP4 0
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
ASGNI4
ADDRLP4 4
ARGP4
CNSTI4 0
ARGI4
CNSTU4 232
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRLP4 264
CNSTI4 1
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 144
ADDP4
INDIRI4
ADDRLP4 264
INDIRI4
NEI4 $305
ADDRLP4 268
ADDRLP4 236
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ASGNI4
ADDRLP4 272
CNSTI4 0
ASGNI4
ADDRLP4 268
INDIRI4
CNSTI4 2
BANDI4
ADDRLP4 272
INDIRI4
NEI4 $305
ADDRLP4 268
INDIRI4
ADDRLP4 264
INDIRI4
BANDI4
ADDRLP4 272
INDIRI4
EQI4 $305
ADDRLP4 0
INDIRP4
CNSTI4 44
ADDP4
INDIRI4
ADDRLP4 272
INDIRI4
GTI4 $305
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 276
ADDRGP4 CheckGauntletAttack
CALLI4
ASGNI4
ADDRLP4 4+40
ADDRLP4 276
INDIRI4
ASGNI4
LABELV $305
ADDRFP4 0
INDIRP4
CNSTI4 536
ADDP4
INDIRI4
CNSTI4 32768
BANDI4
CNSTI4 0
EQI4 $308
ADDRLP4 276
ADDRFP4 0
INDIRP4
CNSTI4 536
ADDP4
ASGNP4
ADDRLP4 276
INDIRP4
ADDRLP4 276
INDIRP4
INDIRI4
CNSTI4 -32769
BANDI4
ASGNI4
ADDRLP4 280
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 488
ADDP4
ASGNP4
ADDRLP4 280
INDIRP4
ADDRLP4 280
INDIRP4
INDIRI4
CNSTI4 8
BORI4
ASGNI4
LABELV $308
ADDRLP4 4
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 4+4
ADDRLP4 236
INDIRP4
INDIRB
ASGNB 24
ADDRLP4 4
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 3
NEI4 $311
ADDRLP4 4+28
CNSTI4 65537
ASGNI4
ADDRGP4 $312
JUMPV
LABELV $311
ADDRFP4 0
INDIRP4
CNSTI4 424
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
EQI4 $314
ADDRLP4 4+28
CNSTI4 37814273
ASGNI4
ADDRGP4 $315
JUMPV
LABELV $314
ADDRLP4 4+28
CNSTI4 33619969
ASGNI4
LABELV $315
LABELV $312
ADDRLP4 4+224
ADDRGP4 trap_Trace
ASGNP4
ADDRLP4 4+228
ADDRGP4 trap_PointContents
ASGNP4
ADDRLP4 4+32
ADDRGP4 g_debugMove+12
INDIRI4
ASGNI4
ADDRGP4 g_dmflags+12
INDIRI4
CNSTI4 32
BANDI4
CNSTI4 0
LEI4 $325
ADDRLP4 276
CNSTI4 1
ASGNI4
ADDRGP4 $326
JUMPV
LABELV $325
ADDRLP4 276
CNSTI4 0
ASGNI4
LABELV $326
ADDRLP4 4+36
ADDRLP4 276
INDIRI4
ASGNI4
ADDRLP4 4+216
ADDRGP4 pmove_fixed+12
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 508
ADDP4
INDIRI4
BORI4
ASGNI4
ADDRLP4 4+220
ADDRGP4 pmove_msec+12
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 668
ADDP4
ADDRLP4 0
INDIRP4
CNSTI4 20
ADDP4
INDIRB
ASGNB 12
ADDRLP4 4
ARGP4
ADDRGP4 Pmove
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
ADDRLP4 244
INDIRI4
EQI4 $331
ADDRFP4 0
INDIRP4
CNSTI4 552
ADDP4
ADDRGP4 level+32
INDIRI4
ASGNI4
LABELV $331
ADDRGP4 g_smoothClients+12
INDIRI4
CNSTI4 0
EQI4 $334
ADDRLP4 288
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 288
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 288
INDIRP4
INDIRI4
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 BG_PlayerStateToEntityStateExtraPolate
CALLV
pop
ADDRGP4 $335
JUMPV
LABELV $334
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 BG_PlayerStateToEntityState
CALLV
pop
LABELV $335
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ARGP4
ADDRGP4 SendPendingPredictableEvents
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 104
ADDP4
INDIRI4
CNSTI4 256
BANDI4
CNSTI4 0
NEI4 $337
ADDRLP4 0
INDIRP4
CNSTI4 756
ADDP4
CNSTI4 0
ASGNI4
LABELV $337
ADDRFP4 0
INDIRP4
CNSTI4 488
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 24
ADDP4
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 436
ADDP4
ADDRLP4 4+180
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 448
ADDP4
ADDRLP4 4+192
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 784
ADDP4
ADDRLP4 4+208
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 780
ADDP4
ADDRLP4 4+204
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 244
INDIRI4
ARGI4
ADDRGP4 ClientEvents
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 trap_LinkEntity
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 648
ADDP4
INDIRI4
CNSTI4 0
NEI4 $343
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 G_TouchTriggers
CALLV
pop
LABELV $343
ADDRFP4 0
INDIRP4
CNSTI4 488
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 20
ADDP4
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 488
ADDP4
ARGP4
ADDRGP4 BotTestAAS
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRGP4 ClientImpacts
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 108
ADDP4
INDIRI4
ADDRLP4 244
INDIRI4
EQI4 $345
ADDRFP4 0
INDIRP4
CNSTI4 552
ADDP4
ADDRGP4 level+32
INDIRI4
ASGNI4
LABELV $345
ADDRLP4 0
INDIRP4
CNSTI4 660
ADDP4
ADDRLP4 0
INDIRP4
CNSTI4 656
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 656
ADDP4
ADDRLP4 236
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ASGNI4
ADDRLP4 300
ADDRLP4 0
INDIRP4
CNSTI4 664
ADDP4
ASGNP4
ADDRLP4 300
INDIRP4
ADDRLP4 300
INDIRP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 656
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 660
ADDP4
INDIRI4
BCOMI4
BANDI4
BORI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 184
ADDP4
INDIRI4
CNSTI4 0
GTI4 $348
ADDRGP4 level+32
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 732
ADDP4
INDIRI4
LEI4 $252
ADDRGP4 g_forcerespawn+12
INDIRI4
CNSTI4 0
LEI4 $353
ADDRGP4 level+32
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 732
ADDP4
INDIRI4
SUBI4
CNSTI4 1000
ADDRGP4 g_forcerespawn+12
INDIRI4
MULI4
LEI4 $353
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 ClientRespawn
CALLV
pop
ADDRGP4 $252
JUMPV
LABELV $353
ADDRLP4 236
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
CNSTI4 5
BANDI4
CNSTI4 0
EQI4 $252
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 ClientRespawn
CALLV
pop
ADDRGP4 $252
JUMPV
LABELV $348
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 240
INDIRI4
ARGI4
ADDRGP4 ClientTimerActions
CALLV
pop
LABELV $252
endproc ClientThink_real 304 16
export ClientThink
proc ClientThink 12 8
ADDRLP4 4
ADDRFP4 0
INDIRI4
ASGNI4
ADDRLP4 0
CNSTI4 804
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ASGNP4
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 472
ADDP4
ARGP4
ADDRGP4 trap_GetUsercmd
CALLV
pop
ADDRLP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 652
ADDP4
ADDRGP4 level+32
INDIRI4
ASGNI4
ADDRLP4 8
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 424
ADDP4
INDIRI4
CNSTI4 8
BANDI4
ADDRLP4 8
INDIRI4
NEI4 $362
ADDRGP4 g_synchronousClients+12
INDIRI4
ADDRLP4 8
INDIRI4
NEI4 $362
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 ClientThink_real
CALLV
pop
LABELV $362
LABELV $360
endproc ClientThink 12 8
export G_RunClient
proc G_RunClient 4 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 424
ADDP4
INDIRI4
CNSTI4 8
BANDI4
ADDRLP4 0
INDIRI4
NEI4 $366
ADDRGP4 g_synchronousClients+12
INDIRI4
ADDRLP4 0
INDIRI4
NEI4 $366
ADDRGP4 $365
JUMPV
LABELV $366
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 472
ADDP4
ADDRGP4 level+32
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 ClientThink_real
CALLV
pop
LABELV $365
endproc G_RunClient 4 4
export SpectatorClientEndFrame
proc SpectatorClientEndFrame 32 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 2
NEI4 $371
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 628
ADDP4
INDIRI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 -1
NEI4 $373
ADDRLP4 4
ADDRGP4 level+340
INDIRI4
ASGNI4
ADDRGP4 $374
JUMPV
LABELV $373
ADDRLP4 4
INDIRI4
CNSTI4 -2
NEI4 $376
ADDRLP4 4
ADDRGP4 level+344
INDIRI4
ASGNI4
LABELV $376
LABELV $374
ADDRLP4 4
INDIRI4
CNSTI4 0
LTI4 $379
ADDRLP4 0
CNSTI4 776
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 12
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 12
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
NEI4 $381
ADDRLP4 12
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
EQI4 $381
ADDRLP4 16
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 20
CNSTI4 104
ASGNI4
ADDRLP4 24
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
ASGNP4
ADDRLP4 8
ADDRLP4 16
INDIRP4
ADDRLP4 20
INDIRI4
ADDP4
INDIRI4
CNSTI4 -540673
BANDI4
ADDRLP4 24
INDIRP4
INDIRP4
ADDRLP4 20
INDIRI4
ADDP4
INDIRI4
CNSTI4 540672
BANDI4
BORI4
ASGNI4
ADDRLP4 24
INDIRP4
INDIRP4
ADDRLP4 16
INDIRP4
INDIRB
ASGNB 468
ADDRLP4 28
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 12
ADDP4
ASGNP4
ADDRLP4 28
INDIRP4
ADDRLP4 28
INDIRP4
INDIRI4
CNSTI4 4096
BORI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 104
ADDP4
ADDRLP4 8
INDIRI4
ASGNI4
ADDRGP4 $370
JUMPV
LABELV $381
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 628
ADDP4
INDIRI4
CNSTI4 0
LTI4 $383
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 624
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CVPU4 4
ADDRGP4 level
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CNSTI4 776
DIVI4
ARGI4
ADDRGP4 ClientBegin
CALLV
pop
LABELV $383
LABELV $379
LABELV $371
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 3
NEI4 $385
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 12
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 8192
BORI4
ASGNI4
ADDRGP4 $386
JUMPV
LABELV $385
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 12
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 -8193
BANDI4
ASGNI4
LABELV $386
LABELV $370
endproc SpectatorClientEndFrame 32 4
export ClientEndFrame
proc ClientEndFrame 16 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $388
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 SpectatorClientEndFrame
CALLV
pop
ADDRGP4 $387
JUMPV
LABELV $388
ADDRLP4 0
CNSTI4 0
ASGNI4
LABELV $390
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 312
ADDP4
ADDP4
INDIRI4
ADDRGP4 level+32
INDIRI4
GEI4 $394
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 312
ADDP4
ADDP4
CNSTI4 0
ASGNI4
LABELV $394
LABELV $391
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 16
LTI4 $390
ADDRGP4 level+9128
INDIRI4
CNSTI4 0
EQI4 $397
ADDRGP4 $387
JUMPV
LABELV $397
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 P_WorldEffects
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 P_DamageFeedback
CALLV
pop
ADDRGP4 level+32
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 652
ADDP4
INDIRI4
SUBI4
CNSTI4 1000
LEI4 $400
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 104
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 8192
BORI4
ASGNI4
ADDRGP4 $401
JUMPV
LABELV $400
ADDRLP4 4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 104
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 -8193
BANDI4
ASGNI4
LABELV $401
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 184
ADDP4
ADDRFP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 G_SetClientSound
CALLV
pop
ADDRGP4 g_smoothClients+12
INDIRI4
CNSTI4 0
EQI4 $403
ADDRLP4 12
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ASGNP4
ADDRLP4 12
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 12
INDIRP4
INDIRI4
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 BG_PlayerStateToEntityStateExtraPolate
CALLV
pop
ADDRGP4 $404
JUMPV
LABELV $403
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 1
ARGI4
ADDRGP4 BG_PlayerStateToEntityState
CALLV
pop
LABELV $404
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
ARGP4
ADDRGP4 SendPendingPredictableEvents
CALLV
pop
LABELV $387
endproc ClientEndFrame 16 16
import BotTestSolid
import trap_SnapVector
import trap_GeneticParentsAndChildSelection
import trap_BotResetWeaponState
import trap_BotFreeWeaponState
import trap_BotAllocWeaponState
import trap_BotLoadWeaponWeights
import trap_BotGetWeaponInfo
import trap_BotChooseBestFightWeapon
import trap_BotAddAvoidSpot
import trap_BotInitMoveState
import trap_BotFreeMoveState
import trap_BotAllocMoveState
import trap_BotPredictVisiblePosition
import trap_BotMovementViewTarget
import trap_BotReachabilityArea
import trap_BotResetLastAvoidReach
import trap_BotResetAvoidReach
import trap_BotMoveInDirection
import trap_BotMoveToGoal
import trap_BotResetMoveState
import trap_BotFreeGoalState
import trap_BotAllocGoalState
import trap_BotMutateGoalFuzzyLogic
import trap_BotSaveGoalFuzzyLogic
import trap_BotInterbreedGoalFuzzyLogic
import trap_BotFreeItemWeights
import trap_BotLoadItemWeights
import trap_BotUpdateEntityItems
import trap_BotInitLevelItems
import trap_BotSetAvoidGoalTime
import trap_BotAvoidGoalTime
import trap_BotGetLevelItemGoal
import trap_BotGetMapLocationGoal
import trap_BotGetNextCampSpotGoal
import trap_BotItemGoalInVisButNotVisible
import trap_BotTouchingGoal
import trap_BotChooseNBGItem
import trap_BotChooseLTGItem
import trap_BotGetSecondGoal
import trap_BotGetTopGoal
import trap_BotGoalName
import trap_BotDumpGoalStack
import trap_BotDumpAvoidGoals
import trap_BotEmptyGoalStack
import trap_BotPopGoal
import trap_BotPushGoal
import trap_BotResetAvoidGoals
import trap_BotRemoveFromAvoidGoals
import trap_BotResetGoalState
import trap_BotSetChatName
import trap_BotSetChatGender
import trap_BotLoadChatFile
import trap_BotReplaceSynonyms
import trap_UnifyWhiteSpaces
import trap_BotMatchVariable
import trap_BotFindMatch
import trap_StringContains
import trap_BotGetChatMessage
import trap_BotEnterChat
import trap_BotChatLength
import trap_BotReplyChat
import trap_BotNumInitialChats
import trap_BotInitialChat
import trap_BotNumConsoleMessages
import trap_BotNextConsoleMessage
import trap_BotRemoveConsoleMessage
import trap_BotQueueConsoleMessage
import trap_BotFreeChatState
import trap_BotAllocChatState
import trap_Characteristic_String
import trap_Characteristic_BInteger
import trap_Characteristic_Integer
import trap_Characteristic_BFloat
import trap_Characteristic_Float
import trap_BotFreeCharacter
import trap_BotLoadCharacter
import trap_EA_ResetInput
import trap_EA_GetInput
import trap_EA_EndRegular
import trap_EA_View
import trap_EA_Move
import trap_EA_DelayedJump
import trap_EA_Jump
import trap_EA_SelectWeapon
import trap_EA_MoveRight
import trap_EA_MoveLeft
import trap_EA_MoveBack
import trap_EA_MoveForward
import trap_EA_MoveDown
import trap_EA_MoveUp
import trap_EA_Crouch
import trap_EA_Respawn
import trap_EA_Use
import trap_EA_Attack
import trap_EA_Talk
import trap_EA_Gesture
import trap_EA_Action
import trap_EA_Command
import trap_EA_SayTeam
import trap_EA_Say
import trap_AAS_PredictClientMovement
import trap_AAS_Swimming
import trap_AAS_AlternativeRouteGoals
import trap_AAS_PredictRoute
import trap_AAS_EnableRoutingArea
import trap_AAS_AreaTravelTimeToGoalArea
import trap_AAS_AreaReachability
import trap_AAS_IntForBSPEpairKey
import trap_AAS_FloatForBSPEpairKey
import trap_AAS_VectorForBSPEpairKey
import trap_AAS_ValueForBSPEpairKey
import trap_AAS_NextBSPEntity
import trap_AAS_PointContents
import trap_AAS_TraceAreas
import trap_AAS_PointReachabilityAreaIndex
import trap_AAS_PointAreaNum
import trap_AAS_Time
import trap_AAS_PresenceTypeBoundingBox
import trap_AAS_Initialized
import trap_AAS_EntityInfo
import trap_AAS_AreaInfo
import trap_AAS_BBoxAreas
import trap_BotUserCommand
import trap_BotGetServerCommand
import trap_BotGetSnapshotEntity
import trap_BotLibTest
import trap_BotLibUpdateEntity
import trap_BotLibLoadMap
import trap_BotLibStartFrame
import trap_BotLibDefine
import trap_BotLibVarGet
import trap_BotLibVarSet
import trap_BotLibShutdown
import trap_BotLibSetup
import trap_DebugPolygonDelete
import trap_DebugPolygonCreate
import trap_GetEntityToken
import trap_GetUsercmd
import trap_BotFreeClient
import trap_BotAllocateClient
import trap_EntityContact
import trap_EntitiesInBox
import trap_UnlinkEntity
import trap_LinkEntity
import trap_AreasConnected
import trap_AdjustAreaPortalState
import trap_InPVSIgnorePortals
import trap_InPVS
import trap_PointContents
import trap_Trace
import trap_SetBrushModel
import trap_GetServerinfo
import trap_SetUserinfo
import trap_GetUserinfo
import trap_GetConfigstring
import trap_SetConfigstring
import trap_SendServerCommand
import trap_DropClient
import trap_LocateGameData
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_VariableIntegerValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_SendConsoleCommand
import trap_FS_Seek
import trap_FS_GetFileList
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_RealTime
import trap_Milliseconds
import trap_Error
import trap_Print
import g_proxMineTimeout
import g_singlePlayer
import g_enableBreath
import g_enableDust
import g_rankings
import pmove_msec
import pmove_fixed
import g_smoothClients
import g_blueteam
import g_redteam
import g_cubeTimeout
import g_obeliskRespawnDelay
import g_obeliskRegenAmount
import g_obeliskRegenPeriod
import g_obeliskHealth
import g_filterBan
import g_banIPs
import g_teamForceBalance
import g_teamAutoJoin
import g_allowVote
import g_blood
import g_doWarmup
import g_warmup
import g_motd
import g_synchronousClients
import g_weaponTeamRespawn
import g_weaponRespawn
import g_debugDamage
import g_debugAlloc
import g_debugMove
import g_inactivity
import g_forcerespawn
import g_quadfactor
import g_knockback
import g_speed
import g_gravity
import g_needpass
import g_password
import g_friendlyFire
import g_capturelimit
import g_timelimit
import g_fraglimit
import g_dmflags
import g_restarted
import g_maxGameClients
import g_maxclients
import g_cheats
import g_dedicated
import g_gametype
import g_entities
import level
import Pickup_Team
import CheckTeamStatus
import TeamplayInfoMessage
import Team_GetLocationMsg
import Team_GetLocation
import SelectCTFSpawnPoint
import Team_FreeEntity
import Team_ReturnFlag
import Team_InitGame
import Team_CheckHurtCarrier
import Team_FragBonuses
import Team_DroppedFlagThink
import AddTeamScore
import TeamColorString
import TeamName
import OtherTeam
import BotTestAAS
import BotAIStartFrame
import BotAIShutdownClient
import BotAISetupClient
import BotAILoadMap
import BotAIShutdown
import BotAISetup
import BotInterbreedEndMatch
import Svcmd_BotList_f
import Svcmd_AddBot_f
import G_BotConnect
import G_RemoveQueuedBotBegin
import G_CheckBotSpawn
import G_GetBotInfoByName
import G_GetBotInfoByNumber
import G_InitBots
import Svcmd_AbortPodium_f
import SpawnModelsOnVictoryPads
import UpdateTournamentInfo
import G_WriteSessionData
import G_InitWorldSession
import G_InitSessionData
import G_ReadSessionData
import Svcmd_GameMem_f
import G_InitMemory
import G_Alloc
import CheckObeliskAttack
import Team_CheckDroppedItem
import OnSameTeam
import ClientCommand
import ClientBegin
import ClientDisconnect
import ClientUserinfoChanged
import ClientConnect
import G_Error
import G_Printf
import SendScoreboardMessageToAllClients
import G_LogPrintf
import AddTournamentQueue
import G_RunThink
import CheckTeamLeader
import SetLeader
import FindIntermissionPoint
import MoveClientToIntermission
import DeathmatchScoreboardMessage
import FireWeapon
import G_FilterPacket
import G_ProcessIPBans
import ConsoleCommand
import SpotWouldTelefrag
import CalculateRanks
import AddScore
import player_die
import ClientSpawn
import InitBodyQue
import BeginIntermission
import ClientRespawn
import CopyToBodyQue
import SelectSpawnPoint
import SetClientViewAngle
import PickTeam
import TeamLeader
import TeamCount
import Weapon_HookThink
import Weapon_HookFree
import CheckGauntletAttack
import SnapVectorTowards
import CalcMuzzlePoint
import LogAccuracyHit
import TeleportPlayer
import trigger_teleporter_touch
import Touch_DoorTrigger
import G_RunMover
import fire_grapple
import fire_bfg
import fire_rocket
import fire_grenade
import fire_plasma
import G_RunMissile
import TossClientCubes
import TossClientItems
import body_die
import G_InvulnerabilityEffect
import G_RadiusDamage
import G_Damage
import CanDamage
import BuildShaderStateConfig
import AddRemap
import G_SetOrigin
import G_AddEvent
import G_AddPredictableEvent
import vectoyaw
import vtos
import tv
import G_EntitiesFree
import G_FreeEntity
import G_Sound
import G_TempEntity
import G_Spawn
import G_InitGentity
import G_SetMovedir
import G_UseTargets
import G_PickTarget
import G_Find
import G_KillBox
import G_TeamCommand
import G_SoundIndex
import G_ModelIndex
import SaveRegisteredItems
import RegisterItem
import ClearRegisteredItems
import Touch_Item
import Add_Ammo
import ArmorIndex
import Think_Weapon
import FinishSpawningItem
import G_SpawnItem
import SetRespawn
import LaunchItem
import Drop_Item
import PrecacheItem
import UseHoldableItem
import RespawnItem
import G_RunItem
import G_CheckTeamItems
import Cmd_FollowCycle_f
import SetTeam
import BroadcastTeamChange
import StopFollowing
import Cmd_Score_f
import G_NewString
import G_SpawnEntitiesFromString
import G_SpawnVector
import G_SpawnInt
import G_SpawnFloat
import G_SpawnString
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 $275
byte 1 51
byte 1 51
byte 1 0
align 1
LABELV $271
byte 1 56
byte 1 0
align 1
LABELV $270
byte 1 112
byte 1 109
byte 1 111
byte 1 118
byte 1 101
byte 1 95
byte 1 109
byte 1 115
byte 1 101
byte 1 99
byte 1 0
align 1
LABELV $194
byte 1 99
byte 1 112
byte 1 32
byte 1 34
byte 1 84
byte 1 101
byte 1 110
byte 1 32
byte 1 115
byte 1 101
byte 1 99
byte 1 111
byte 1 110
byte 1 100
byte 1 115
byte 1 32
byte 1 117
byte 1 110
byte 1 116
byte 1 105
byte 1 108
byte 1 32
byte 1 105
byte 1 110
byte 1 97
byte 1 99
byte 1 116
byte 1 105
byte 1 118
byte 1 105
byte 1 116
byte 1 121
byte 1 32
byte 1 100
byte 1 114
byte 1 111
byte 1 112
byte 1 33
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $190
byte 1 68
byte 1 114
byte 1 111
byte 1 112
byte 1 112
byte 1 101
byte 1 100
byte 1 32
byte 1 100
byte 1 117
byte 1 101
byte 1 32
byte 1 116
byte 1 111
byte 1 32
byte 1 105
byte 1 110
byte 1 97
byte 1 99
byte 1 116
byte 1 105
byte 1 118
byte 1 105
byte 1 116
byte 1 121
byte 1 0
| 11.126112 | 46 | 0.846717 |
dfc8f89a1175305161266c2db0997fea1397966e | 5,732 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1689.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1689.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1689.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 %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x8a57, %r12
nop
nop
nop
dec %r15
movl $0x61626364, (%r12)
dec %r12
lea addresses_D_ht+0x14197, %rdx
nop
nop
nop
nop
xor $8475, %r13
movb (%rdx), %r14b
nop
cmp %rdx, %rdx
lea addresses_WT_ht+0x1d657, %r13
nop
nop
nop
nop
nop
lfence
mov $0x6162636465666768, %r12
movq %r12, (%r13)
nop
lfence
lea addresses_normal_ht+0x14717, %r12
nop
nop
inc %r8
mov $0x6162636465666768, %r14
movq %r14, %xmm4
vmovups %ymm4, (%r12)
nop
nop
nop
nop
nop
add $7957, %rdx
lea addresses_WC_ht+0x18d6f, %rsi
lea addresses_normal_ht+0x18956, %rdi
nop
nop
nop
sub %rdx, %rdx
mov $76, %rcx
rep movsl
nop
xor $60525, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rax
push %rbp
push %rdi
push %rsi
// Store
lea addresses_RW+0x177d7, %r9
nop
nop
nop
sub %rdi, %rdi
mov $0x5152535455565758, %rax
movq %rax, %xmm4
movaps %xmm4, (%r9)
nop
nop
nop
nop
inc %r12
// Store
lea addresses_D+0x190d7, %r9
nop
nop
nop
nop
nop
add %r11, %r11
mov $0x5152535455565758, %rax
movq %rax, %xmm5
vmovups %ymm5, (%r9)
nop
nop
add %rdi, %rdi
// Faulty Load
lea addresses_A+0x12fd7, %r11
clflush (%r11)
nop
nop
xor $60568, %rsi
movb (%r11), %r12b
lea oracles, %rbp
and $0xff, %r12
shlq $12, %r12
mov (%rbp,%r12,1), %r12
pop %rsi
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': True, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}, 'dst': {'same': True, 'type': 'addresses_normal_ht', 'congruent': 0}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.213333 | 2,999 | 0.661026 |
821bc6816d803c7727230d2bcef592f30aaae48a | 30,855 | asm | Assembly | Library/Text/Text/textMethodInstance.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Text/Text/textMethodInstance.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Text/Text/textMethodInstance.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: textMethodInstance.asm
AUTHOR: John Wedgwood, Oct 25, 1989
METHODS:
Name Description
---- -----------
MSG_VIS_TEXT_SET_MAX_LENGTH
MSG_VIS_TEXT_GET_MAX_LENGTH
MSG_SET_MAX_LINES
MSG_GET_MAX_LINES
MSG_VIS_TEXT_GET_DOC_OBJECT
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 10/25/89 Initial revision
DESCRIPTION:
$Id: textMethodInstance.asm,v 1.1 97/04/07 11:18:26 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextInstance segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextRecreateCachedGStates
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Recalculate the cached gstate (if one exists).
CALLED BY: via MSG_VIS_RECREATE_CACHED_GSTATES
PASS: ds:*si = instance pointer.
es = class segment.
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 10/13/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextRecreateCachedGStates method dynamic VisTextClass,
MSG_VIS_RECREATE_CACHED_GSTATES
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
mov di, ds:[bx].VTI_gstate
tst di ; Check for one existing.
jz VTRGS_done ; Quit if none exists.
call GrDestroyState ; Nuke the old gstate.
push ax ; Save ax
push {word} ds:[bx].VTI_gsRefCount ; Save old reference count.
andnf ds:[bx].VTI_gsRefCount, not mask GSRCAF_REF_COUNT
; Force creation and
mov ds:[bx].VTI_gstate, 0 ; initialization of a gstate.
call TextGStateCreate ; Make a gstate...
pop ax ; Get reference count
mov ds:[bx].VTI_gsRefCount, al ; Restore in instance data.
pop ax ; Restore ax
VTRGS_done:
ret
VisTextRecreateCachedGStates endm
COMMENT @----------------------------------------------------------------------
METHOD: VisTextNotifyGeometryValid -- MSG_VIS_NOTIFY_GEOMETRY_VALID
DESCRIPTION: Recalculate the object now that the bounds are valid.
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - MSG_VIS_NOTIFY_GEOMETRY_VALID
RETURN:
DESTROYED:
bx, si, di, ds, es (method handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 12/89 Initial version
------------------------------------------------------------------------------@
VisTextNotifyGeometryValid method VisTextClass, MSG_VIS_NOTIFY_GEOMETRY_VALID
uses bp, dx
.enter
EC < mov di, ds:[si] >
EC < add di, ds:[di].Vis_offset >
EC < test ds:[di].VI_optFlags, mask VOF_GEOMETRY_INVALID >
EC < ERROR_NZ VIS_TEXT_GEOMETRY_VALID_ERROR >
mov ax, MSG_VIS_NOTIFY_GEOMETRY_VALID
mov di, offset VisTextClass ; call superclass (VisClass has
call ObjCallSuperNoLock ; a default handler for this)
BEC < call CheckRunPositions >
;
; Initialize the gstate
;
call RecalcGStateIfNeeded
call TextGStateCreate
;
; If no line info chunk exists, create one
;
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
tst ds:[bx].VTI_lines ; Check for has lines already
jnz gotLines ; Branch if we have them
clrwbf ds:[bx].VTI_height ; this only really matters for
; one line objects
call TL_LineStorageCreate ; Otherwise create new ones
gotLines:
;
; Recalculate
;
call TextCompleteRecalc ; Recalculate object
;
; In the case of a single line object, we must make sure that the
; left offset is correct
;
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].VTI_state,mask VTS_ONE_LINE
jz notOneLine
;
; If the object has a valid image, then resetting the left-offset is
; probably not a good idea. There is no guarantee that we will be
; redrawn.
;
test ds:[di].VI_optFlags, mask VOF_IMAGE_INVALID
jz common ; Branch if already drawn
;
; Force the cursor on screen.
;
mov ds:[di].VTI_leftOffset, INITIAL_LEFT_OFFSET
call TSL_SelectGetCursorCoord
;
; cx = Cursor region
; ax = X position
; dx = Y position
;
mov cx, ax ; cx <- X position
call VisTextScrollOneLine
jmp common
notOneLine:
mov ds:[di].VTI_leftOffset, 0
common:
;
; Position the cursor correctly.
;
call TSL_SelectIsCursor ; Carry set if cursor
jnc afterCursor ; Skip if not cursor
call TSL_SelectGetCursorCoord ; cx, ax, dx <- position
mov di, ds:[si]
add di, ds:[di].VisText_offset
add ax, ds:[di].VTI_leftOffset
; We need to update the goalPosition here, as otherwise it won't
; be set correctly, so if you try to navigate to the next line, and
; there is no next line, the cursor will be moved to the start of
; the current line.
mov ds:[di].VTI_goalPosition, ax
call TSL_CursorPosition ; Move the cursor
afterCursor:
call TextGStateDestroy
BEC < call CheckRunPositions >
quit::
.leave
ret
VisTextNotifyGeometryValid endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextOpen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Handle MSG_VIS_OPEN by initializing the cursor.
CALLED BY: External.
PASS: ds:*si = ptr to instance.
es = segment containing VisTextClass.
ax = MSG_VIS_OPEN.
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 9/27/89 Initial version
doug 5/15/91 Added test for line structure not yet built out
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextOpen method dynamic VisTextClass, MSG_VIS_OPEN
mov di, offset VisTextClass
CallSuper MSG_VIS_OPEN
call TextInstance_DerefVis_DI
mov ds:[di].VTI_timerHandle, 0 ;no timer yet
and ds:[di].VTI_intSelFlags, not (mask VTISF_CURSOR_ON \
or mask VTISF_DOING_SELECTION \
or mask VTISF_DOING_DRAG_SELECTION)
call RecalcGStateIfNeeded
pushf ;save focus state
EC < push ax >
EC < mov al, ds:[di].VTI_gsRefCount >
EC < and al, mask GSRCAF_REF_COUNT
EC < test ds:[di].VTI_intSelFlags, mask VTISF_IS_FOCUS >
EC < jz 10$ >
EC < dec al >
EC <10$: >
EC < tst al >
EC < ERROR_NZ VIS_TEXT_OPEN_BAD_GS_REF_COUNT >
EC < pop ax >
call TextGStateCreate
;
; Test to make sure that we've got a line structure built out
; by this time. It's possible that we haven't, in the case that
; this object was setup in a .ui file pre-instantiated with bounds,
; & geometry disabled. SO.... correct the situation by sending
; the MSG_VIS_NOTIFY_GEOMETRY_VALID to ourselves, simulating the
; completion of geometry that normally happens BEFORE we get
; a MSG_VIS_OPEN.
;
; -- Doug
;
; Thanks, Doug. Now I'll put in a hack to make sure the geometry
; is valid. -chris 6/5/91
;
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].VI_optFlags, mask VOF_GEOMETRY_INVALID
jnz haveLineStruct ;not valid anyway, skip this
tst ds:[di].VTI_lines
jnz haveLineStruct
push ax
call VisTextNotifyGeometryValid
pop ax
haveLineStruct:
popf
jnc notFocus
call EditHilite
call TSL_StartCursorCommon
notFocus:
; Scroll to show the selected area
mov dx, VIS_TEXT_RANGE_SELECTION
mov ax, MSG_VIS_TEXT_SHOW_POSITION
call ObjCallInstanceNoLock
; If we have the target then send out notifications
call TextInstance_DerefVis_DI
test ds:[di].VTI_intSelFlags, mask VTISF_IS_TARGET
jz avoidNotification
mov ax, VIS_TEXT_GAINED_TARGET_NOTIFICATION_FLAGS
call TA_SendNotification
avoidNotification:
call TextGStateDestroy
ret
VisTextOpen endm
;---------
; return: carry - set if focus
RecalcGStateIfNeeded proc near
class VisTextClass
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].VTI_intSelFlags, mask VTISF_IS_FOCUS
jz notFocus ;carry is clear
call TextGStateDestroy
call TextGStateCreate
stc
notFocus:
ret
RecalcGStateIfNeeded endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextClose
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: HandleMem MSG_VIS_CLOSE and mark that we are no longer
realized.
CALLED BY: External.
PASS: ds:*si = ptr to instance.
es = segment containing VisTextClass.
ax = MSG_VIS_CLOSE.
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 9/27/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextClose method dynamic VisTextClass, MSG_VIS_CLOSE
;we do it both now and when we lose focus - brianc 4/19/95
;if (0) ; We now kill the timer when we lose sys focus. - Joon (12/8/94)
;
; Kill the timer used to flash the cursor
;
clr bx
xchg bx, ds:[di].VTI_timerHandle
tst bx
jz 20$
mov ax, ds:[di].VTI_timerID
call TimerStop
20$:
;endif
mov ax, TEMP_VIS_TEXT_NOTIFY_CURSOR_POSITION_INFO
call ObjVarFindData
jnc 30$
mov ax, ds:[bx].TVTNCPID_id
clr dx
xchg dx, ds:[bx].TVTNCPID_handle
tst dx
jz 25$
mov bx, dx
call TimerStop
25$:
mov ax, TEMP_VIS_TEXT_NOTIFY_CURSOR_POSITION_INFO
call ObjVarDeleteData
30$:
call TextInstance_DerefVis_DI
test ds:[di].VTI_intSelFlags, mask VTISF_DOING_SELECTION
je notSelecting ; quit if not doing selection.
call VisTextLargeEndSelect ; Force end of any select
; operation in progress,
; destroy gstate
notSelecting:
;
; Stop any quick-transfer in progress, though this might not be ours
;
call TextInstance_DerefVis_DI
test ds:[di].VTI_state, mask VTS_SELECTABLE
jz noQT
mov bx, ds:[LMBH_handle] ; bx:di = our OD
mov di, si
call ClipboardClearQuickTransferNotification
call ClipboardAbortQuickTransfer
noQT:
mov ax, MSG_VIS_CLOSE
mov di, offset VisTextClass
CallSuper MSG_VIS_CLOSE
call RecalcGStateIfNeeded
ret
VisTextClose endm
COMMENT @----------------------------------------------------------------------
METHOD: VisTextGetOneLineWidth -- MSG_VIS_TEXT_GET_ONE_LINE_WIDTH
for VisTextClass
DESCRIPTION: Return the width of the text
PASS: *ds:si - instance data
cx - number of characters to use (0 to use entire string)
RETURN: cx - width of the string
DESTROYED: ax, di, (method handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
Use the first charAttr run (if there is more than one present)
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/2/90 Initial version
------------------------------------------------------------------------------@
VisTextGetOneLineWidth method VisTextClass, MSG_VIS_TEXT_GET_ONE_LINE_WIDTH
uses dx
.enter
;
; Create the GState, and stuff the charAttr
;
tst cx ; # of chars non-zero
jnz continue ; yes, so do nothing
call TS_GetTextSize ; # of chars => DX.AX
mov cx, ax ; now in CX
continue:
;
; cx holds the number of bytes of text to compute over
;
call TextGStateCreate ; Make sure we have a gstate
clrdw dxax ; use the first charAttr run
call TA_CharAttrRunSetupGStateForCalc ; di <- gstate.
;
; Finds the actual length
;
push ds, si
clrdw dxax ; dx.ax <- offset to lock down
call TS_LockTextPtr ; ds:si <- ptr to the text
mov_tr cx, ax ; cx <- characters after offset
;
; We make the not terribly radical assumption that the text object
; is a small text object. If you are creating a large single line
; text object you deserve what you get :-)
;
call GrTextWidth ; width => DX
mov cx, dx ; move it to CX
;
; Since it's a small object we don't bother to unlock it.
;
pop ds, si
;
; Destroy the GState
;
call TextGStateDestroy ; nuke the GState
.leave
ret
VisTextGetOneLineWidth endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextSetWashColor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the color for the wash behind the text.
CALLED BY: via MSG_VIS_TEXT_SET_WASH_COLOR.
PASS: ds:*si = instance ptr.
es = class segment.
ch = VisTextColorMapMode
cl = if (ch == CF_RGB), Red
if (ch == CF_INDEX), Color index.
dl = Green (if CF_RGB).
dh = Blue (if CF_RGB).
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Added 9/10/91: If this method is called from outside the text
object, it is necessary to create a gstate, otherwise it
crashes with a resounding thud!
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/ 9/89 Initial version
cdb 9/10/91 Added calls to create/destroy gstate
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextSetWashColor method dynamic VisTextClass, MSG_VIS_TEXT_SET_WASH_COLOR
mov ds:[di].VTI_washColor.low,cx
mov ds:[di].VTI_washColor.high,dx
call TextGStateCreate
clr ax
call TextDraw
call TextGStateDestroy
ret
VisTextSetWashColor endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextGetWashColor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the color for the wash behind the text.
CALLED BY: via MSG_VIS_TEXT_GET_WASH_COLOR.
PASS: ds:*si = instance ptr.
es = class segment.
RETURN: ch = VisTextColorMapMode
cl = if (ch == CF_RGB), Red
if (ch == CF_INDEX), Color index.
dl = Green (if CF_RGB).
dh = Blue (if CF_RGB).
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/ 9/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextGetWashColor method dynamic VisTextClass, MSG_VIS_TEXT_GET_WASH_COLOR
mov cx, ds:[di].VTI_washColor.low
mov dx, ds:[di].VTI_washColor.high
ret
VisTextGetWashColor endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextSetMaxLength
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set a new maximum length of the text.
CALLED BY: via MSG_VIS_TEXT_SET_MAX_LENGTH
PASS: ds:*si = pointer to VisTextInstance.
ax = MSG_VIS_TEXT_SET_MAX_LENGTH.
es = segment containing VisTextClass.
cx = new maximum length.
RETURN: nothing
DESTROYED: all (method handler)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 9/25/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextSetMaxLength method dynamic VisTextClass, MSG_VIS_TEXT_SET_MAX_LENGTH
EC < test ds:[di].VTI_storageFlags, mask VTSF_LARGE >
EC < ERROR_NZ CAN_NOT_SET_MAX_LENGTH_FOR_LARGE_TEXT_OBJECT >
call TextGStateCreate
cmp cx, ds:[di].VTI_maxLength ; if raising the limit, then
jae setMax ; just set it.
;
; Lowering the limit we might have to clip off some text
; at the end of the object. Check to see if the new max length is
; less than the current size. If it is we can just set it.
;
call TS_GetTextSize ; dx.ax <- size of text
;
; Since this can't be a large text object (or we would have generated
; a fatal-error above) the high word must be zero. This means we can
; treat ax as the size.
;
cmp cx, ax ; if above amount entered then
jae setMax ; Just set it.
;
; We must trim something from the text in order to make it fit in the
; new maximum size.
;
; Save the current selection, so we can restore it below (if it still
; falls into the valid range).
;
; cx = New maximum size
; ax = Text object size
;
call EditUnHilite ; Remove old selection.
push di ; Save object's offset
push cx ; Save new size twice.
push cx
sub sp, size VisTextReplaceParameters
mov bp, sp
mov ss:[bp].VTRP_range.VTR_start.low, cx
mov ss:[bp].VTRP_range.VTR_start.high, 0
mov ss:[bp].VTRP_range.VTR_end.low, ax
mov ss:[bp].VTRP_range.VTR_end.high, 0
mov ss:[bp].VTRP_flags, 0
clrdw ss:[bp].VTRP_insCount ; Nothing to insert.
mov ax, MSG_VIS_TEXT_REPLACE_TEXT
call ObjCallInstanceNoLock ; Do the replace.
add sp, size VisTextReplaceParameters
pop di ; di <- new maximum size
call TSL_SelectGetSelection ; dx.ax <- selection start
; cx.bx <- selection end
;
; di = New maximum size of the text
; dx.ax = Selection start
; cx.bx = Selection end
;
; Since this is a small text object both dx and cx must be zero.
;
cmp ax, di ; Check for start too large
jbe startOK
mov ax, di ; start <- max offset
startOK:
cmp bx, di ; Check for end too large
jbe endOK
mov bx, di ; end <- max offset
endOK:
;
; dx.ax = Adjusted select start
; cx.bx = Adjusted select end
;
call TSL_SelectSetSelection
;
; Now that the selection is fixed up, display the selection.
;
call EditHilite
pop cx ; Recover new max text size.
pop di ; Recover object's offset.
setMax:
mov ds:[di].VTI_maxLength, cx ; Save new length
call TextGStateDestroy
call SendGenericUpdate ;Update generic data
ret
VisTextSetMaxLength endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextGetMaxLength
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the maximum number of characters allowed in this text
object.
CALLED BY: via MSG_VIS_TEXT_GET_MAX_LENGTH.
PASS: ds:*si = instance ptr
es = class segment.
ax = MSG_VIS_TEXT_GET_MAX_LENGTH.
RETURN: cx = max # of characters allowed in this object.
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 10/ 9/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextGetMaxLength method dynamic VisTextClass, MSG_VIS_TEXT_GET_MAX_LENGTH
mov cx, ds:[di].VTI_maxLength ; cx <- max # of characters.
ret
VisTextGetMaxLength endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextGetSelectionStart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the selection start.
CALLED BY: MSG_VIS_TEXT_GET_SELECTION_START
PASS: *ds:si = VisTextClass object
ds:di = VisTextClass instance data
ds:bx = VisTextClass object (same as *ds:si)
es = segment of VisTextClass
ax = message #
RETURN: dx.cx = Selection start
DESTROYED: none
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
VM 9/23/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextGetSelectionStart method dynamic VisTextClass,
MSG_VIS_TEXT_GET_SELECTION_START
.enter
movdw dxcx, ds:[di].VTI_selectStart
.leave
ret
VisTextGetSelectionStart endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextGetGState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the gstate.
CALLED BY: MSG_VIS_TEXT_GET_GSTATE
PASS: *ds:si = VisTextClass object
ds:di = VisTextClass instance data
ds:bx = VisTextClass object (same as *ds:si)
es = segment of VisTextClass
ax = message #
RETURN: cx = gstate
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
VM 10/11/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextGetGState method dynamic VisTextClass,
MSG_VIS_TEXT_GET_GSTATE
.enter
mov cx, ds:[di].VTI_gstate
.leave
ret
VisTextGetGState endm
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextGetTextSize -- MSG_VIS_TEXT_GET_TEXT_SIZE
for VisTextClass
DESCRIPTION: Get the size of the text
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
RETURN:
dxax - text size
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/10/92 Initial version
------------------------------------------------------------------------------@
VisTextGetTextSize method dynamic VisTextClass, MSG_VIS_TEXT_GET_TEXT_SIZE
call TS_GetTextSize ; dx.ax <- size of text.
ret
VisTextGetTextSize endm
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextSetNotUserModified --
MSG_VIS_TEXT_SET_NOT_USER_MODIFIED for VisTextClass
DESCRIPTION: ...
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
RETURN:
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/29/92 Initial version
------------------------------------------------------------------------------@
VisTextSetNotUserModified method dynamic VisTextClass,
MSG_VIS_TEXT_SET_NOT_USER_MODIFIED
andnf ds:[di].VTI_state, not mask VTS_USER_MODIFIED
ret
VisTextSetNotUserModified endm
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextSetUserModified --
MSG_VIS_TEXT_SET_USER_MODIFIED for VisTextClass
DESCRIPTION: ...
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
RETURN:
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/29/92 Initial version
------------------------------------------------------------------------------@
VisTextSetUserModified method dynamic VisTextClass,
MSG_VIS_TEXT_SET_USER_MODIFIED
ornf ds:[di].VTI_state, mask VTS_USER_MODIFIED
ret
VisTextSetUserModified endm
COMMENT @----------------------------------------------------------------------
METHOD: VisTextGetTextState -- MSG_VIS_TEXT_GET_STATE for VisTextClass
DESCRIPTION: Get the VTI_state field
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The method
RETURN:
cl - VTI_state (VisTextStates)
DESTROYED:
bx, si, di, ds, es (method handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 12/89 Initial version
------------------------------------------------------------------------------@
VisTextGetState method dynamic VisTextClass, MSG_VIS_TEXT_GET_STATE
mov cl,ds:[di].VTI_state
Destroy ax, ch, dx, bp
ret
VisTextGetState endm
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextGetUserModifiedState --
MSG_VIS_TEXT_GET_USER_MODIFIED_STATE for VisTextClass
DESCRIPTION: ...
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
RETURN:
cx - non-zero if user-modified
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/29/92 Initial version
------------------------------------------------------------------------------@
VisTextGetUserModifiedState method dynamic VisTextClass,
MSG_VIS_TEXT_GET_USER_MODIFIED_STATE
mov cl, ds:[di].VTI_state
and cx, mask VTS_USER_MODIFIED
ret
VisTextGetUserModifiedState endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextGetFeatures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Gets the VTI_features bits
CALLED BY: GLOBAL
PASS: ds:di - VisTextInstance data
RETURN: cx - VisTextFeatures
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/16/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextGetFeatures method dynamic VisTextClass, MSG_VIS_TEXT_GET_FEATURES
.enter
mov cx, ds:[di].VTI_features
Destroy ax, dx, bp
.leave
ret
VisTextGetFeatures endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextSetFeatures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sets the VTI_features bits
CALLED BY: GLOBAL
PASS: ds:di - VisTextInstance data
cx - bits to set
dx - bits to clear
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 6/16/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextSetFeatures method dynamic VisTextClass, MSG_VIS_TEXT_SET_FEATURES
.enter
EC < test cx, not mask VisTextFeatures >
EC < ERROR_NZ BAD_VIS_TEXT_FEATURES >
EC < test dx, not mask VisTextFeatures >
EC < ERROR_NZ BAD_VIS_TEXT_FEATURES >
or ds:[di].VTI_features, cx
not dx
and ds:[di].VTI_features, dx
Destroy ax, cx, bp
.leave
ret
VisTextSetFeatures endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextGetMinimumDimensions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the minimum dimensions of an object that has valid bounds
and which has already been calculated.
CALLED BY: via MSG_VIS_TEXT_GET_MINIMUM_DIMENSIONS
PASS: *ds:si = Instance
ds:di = Instance
dx:bp = VisTextMinimumDimensionsParameters to fill in
RETURN: Parameters filled in
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 5/27/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextGetMinimumDimensions method dynamic VisTextClass,
MSG_VIS_TEXT_GET_MINIMUM_DIMENSIONS
uses ax, cx, dx
.enter
mov es, dx ; es:bp <- ptr to structure
;
; Figure the height:
; textHeight + (2 * tbMargin)
;
clr cx
mov cl, ds:[di].VTI_tbMargin
shl cx, 1
movwbf dxal, ds:[di].VTI_height
add dx, cx
movwbf es:[bp].VTMDP_height, dxal
;
; Figure the minimum width...
;
clr cx
mov cl, ds:[di].VTI_lrMargin
shl cx, 1
call TL_LineFindMaxWidth ; dx.al <- width of widest line
add dx, cx
movwbf es:[bp].VTMDP_width, dxal
.leave
ret
VisTextGetMinimumDimensions endm
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextModifyEditableSelectable --
MSG_VIS_TEXT_MODIFY_EDITABLE_SELECTABLE for VisTextClass
DESCRIPTION: Modify the editable and/or selectable state of the object
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
cl - VisTextStates to set
ch - VisTextStates to clear
RETURN:
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 5/27/92 Initial version
------------------------------------------------------------------------------@
VisTextModifyEditableSelectable method dynamic VisTextClass,
MSG_VIS_TEXT_MODIFY_EDITABLE_SELECTABLE
; Check if we are making the field not editable because we need to
; mess with the cursor.
test ch, mask VTS_EDITABLE
jnz clearingEditable
setTheBits:
not ch
and ds:[di].VTI_state, ch
or ds:[di].VTI_state, cl
; If we have the focus, and are becoming editable, then send out the
; GWNT_EDITABLE_TEXT_OBJECT_HAS_FOCUS notification.
test cl, mask VTS_EDITABLE
jz sendStandardNotifications
test ds:[di].VTI_intSelFlags, mask VTISF_IS_FOCUS
jz sendStandardNotifications
; Start the cursor flashing in case the timer isn't already running.
; (Needs *ds:di set to instance data)
call TSL_StartCursorCommon
mov bp, mask TFF_EDITABLE_TEXT_OBJECT_HAS_FOCUS
call SendTextFocusNotification
sendStandardNotifications:
mov ax, VIS_TEXT_STANDARD_NOTIFICATION_FLAGS
call TA_SendNotification
ret
clearingEditable:
; If we are setting the text object NOT editable, then stop the
; cursor from blinking.
; This also will disable the timer, indirectly, since the FLASH_ON/OFF
; message handlers will not continue the timer if the object is not
; editable.
; We are already not editable, so skip this whole shme..
test ds:[di].VTI_state, mask VTS_EDITABLE
jz setTheBits
mov al, ds:[di].VTI_intSelFlags
; Make sure that we are the focus, the cursor is enabled, and the image
; is actually drawn "on" or else we shouldn't mess with it.
and al, mask VTISF_IS_FOCUS or \
mask VTISF_CURSOR_ENABLED or \
mask VTISF_CURSOR_ON
cmp al, mask VTISF_IS_FOCUS or \
mask VTISF_CURSOR_ENABLED or \
mask VTISF_CURSOR_ON
jne setTheBits
; Make sure we can draw (we already know that we editable)
call TextCheckCanDraw
jc setTheBits
clr bx ;Don't draw a cursor if someone has
call GrGetExclusive ; the exclusive (like, if someone is
tst bx ; drawing ink)
jnz setTheBits
push cx
call CursorToggle
pop cx
call TextInstance_DerefVis_DI
; Turn off the cursor_on bit
andnf ds:[di].VTI_intSelFlags, not mask VTISF_CURSOR_ON
jmp setTheBits
VisTextModifyEditableSelectable endm
TextInstance ends
| 25.290984 | 80 | 0.608135 |
e722c79962b6d4b190b71eebfca7eab07da6d78e | 261 | asm | Assembly | programs/oeis/070/A070649.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/070/A070649.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/070/A070649.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A070649: n^6 mod 26.
; 0,1,12,1,14,25,12,25,12,1,14,25,14,13,14,25,14,1,12,25,12,25,14,1,12,1,0,1,12,1,14,25,12,25,12,1,14,25,14,13,14,25,14,1,12,25,12,25,14,1,12,1,0,1,12,1,14,25,12,25,12,1,14,25,14,13,14,25,14,1,12,25,12,25,14
pow $0,6
mod $0,26
mov $1,$0
| 37.285714 | 207 | 0.616858 |
6d46469ac2daba036b583b9fa5190c765d9bea9a | 415 | asm | Assembly | programs/oeis/173/A173508.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/173/A173508.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/173/A173508.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A173508: a(n) = ceiling(A173497(n)/2).
; 1,1,1,2,2,3,4,6,8,11,15,20,28,38,52,71,97,132,181,247,337,461,629,860,1174,1604,2191,2993,4089,5585,7630,10422,14237,19448,26567,36291,49574,67720,92507,126367,172620,235804,322114
sub $0,1
mov $2,6
mov $4,2
lpb $0
sub $0,1
mov $3,$2
add $2,$1
sub $2,$1
add $2,$4
div $3,2
add $4,1
mov $1,$4
sub $2,1
mov $4,$3
lpe
mul $1,2
trn $1,6
div $1,2
add $1,1
| 18.043478 | 182 | 0.614458 |
b40e12659f2c0086e574d0eaacb598d6b587edfc | 45,248 | asm | Assembly | P6/P6Judger - 100 testpoints/testpoint/testpoint65.asm | flyinglandlord/BUAA-CO-2021 | 1aa28b09762dfb2376ed2aac4126839f0e6fcf93 | [
"MIT"
] | 5 | 2021-12-05T12:58:26.000Z | 2022-03-31T02:05:13.000Z | P6/P6Judger - 100 testpoints/testpoint/testpoint65.asm | OliverDu8-24/BUAA-CO-2021 | 9959abd90de9039d751bab64f153547e76066665 | [
"MIT"
] | null | null | null | P6/P6Judger - 100 testpoints/testpoint/testpoint65.asm | OliverDu8-24/BUAA-CO-2021 | 9959abd90de9039d751bab64f153547e76066665 | [
"MIT"
] | 2 | 2021-12-19T11:49:48.000Z | 2021-12-22T10:25:38.000Z | ori $1, $0, 3
ori $2, $0, 6
ori $3, $0, 11
ori $4, $0, 12
sw $2, 0($0)
sw $1, 4($0)
sw $1, 8($0)
sw $1, 12($0)
sw $3, 16($0)
sw $4, 20($0)
sw $4, 24($0)
sw $2, 28($0)
sw $2, 32($0)
sw $3, 36($0)
sw $1, 40($0)
sw $1, 44($0)
sw $2, 48($0)
sw $1, 52($0)
sw $1, 56($0)
sw $4, 60($0)
sw $1, 64($0)
sw $2, 68($0)
sw $2, 72($0)
sw $2, 76($0)
sw $3, 80($0)
sw $3, 84($0)
sw $3, 88($0)
sw $3, 92($0)
sw $4, 96($0)
sw $3, 100($0)
sw $3, 104($0)
sw $2, 108($0)
sw $2, 112($0)
sw $4, 116($0)
sw $3, 120($0)
sw $4, 124($0)
mflo $3
bgez $2, TAG1
lui $2, 6
sw $2, 0($3)
TAG1:
mtlo $2
mflo $3
bne $2, $3, TAG2
mflo $4
TAG2:
mtlo $4
mult $4, $4
sltiu $3, $4, 2
bgtz $4, TAG3
TAG3:
lb $2, 0($3)
bgtz $3, TAG4
sb $2, 0($2)
beq $3, $2, TAG4
TAG4:
lui $2, 2
subu $1, $2, $2
beq $1, $2, TAG5
sw $1, 0($1)
TAG5:
add $4, $1, $1
mtlo $1
bne $4, $4, TAG6
multu $4, $1
TAG6:
multu $4, $4
mflo $4
multu $4, $4
srlv $1, $4, $4
TAG7:
sh $1, 0($1)
mult $1, $1
sra $4, $1, 6
mfhi $4
TAG8:
sllv $1, $4, $4
slt $3, $1, $1
mtlo $4
sllv $3, $1, $1
TAG9:
lb $3, 0($3)
bne $3, $3, TAG10
mult $3, $3
bne $3, $3, TAG10
TAG10:
sra $1, $3, 1
bne $3, $1, TAG11
mult $1, $3
sb $3, 0($1)
TAG11:
subu $2, $1, $1
bne $1, $2, TAG12
multu $1, $2
mult $2, $1
TAG12:
bgtz $2, TAG13
mflo $2
sllv $2, $2, $2
andi $4, $2, 13
TAG13:
bne $4, $4, TAG14
addi $2, $4, 13
mult $4, $4
mfhi $1
TAG14:
beq $1, $1, TAG15
slt $1, $1, $1
sra $1, $1, 13
addiu $2, $1, 2
TAG15:
beq $2, $2, TAG16
sb $2, 0($2)
mtlo $2
sb $2, 0($2)
TAG16:
blez $2, TAG17
mflo $4
lui $4, 7
multu $4, $2
TAG17:
bne $4, $4, TAG18
or $4, $4, $4
sra $3, $4, 6
lui $4, 13
TAG18:
bne $4, $4, TAG19
lui $3, 11
addiu $3, $3, 9
mthi $4
TAG19:
bltz $3, TAG20
div $3, $3
lui $1, 10
lui $4, 15
TAG20:
sll $0, $0, 0
bgez $4, TAG21
sltu $4, $4, $4
andi $4, $4, 3
TAG21:
mthi $4
mflo $4
lui $1, 6
lbu $4, 0($4)
TAG22:
andi $2, $4, 5
sb $4, 0($4)
lhu $4, 0($2)
mtlo $4
TAG23:
lh $1, 0($4)
lui $4, 15
blez $4, TAG24
andi $1, $4, 3
TAG24:
slti $4, $1, 14
mflo $4
sh $4, 0($4)
mtlo $1
TAG25:
mthi $4
mtlo $4
mfhi $3
slti $2, $3, 15
TAG26:
blez $2, TAG27
mtlo $2
multu $2, $2
and $1, $2, $2
TAG27:
div $1, $1
blez $1, TAG28
divu $1, $1
divu $1, $1
TAG28:
mult $1, $1
lbu $1, 0($1)
mtlo $1
bltz $1, TAG29
TAG29:
sw $1, 0($1)
lui $2, 12
mthi $1
sll $0, $0, 0
TAG30:
sra $2, $4, 15
mult $2, $2
mflo $1
andi $4, $1, 5
TAG31:
bltz $4, TAG32
sw $4, 0($4)
lh $1, 0($4)
beq $1, $4, TAG32
TAG32:
mflo $3
multu $1, $1
beq $1, $3, TAG33
mthi $1
TAG33:
sh $3, 0($3)
mtlo $3
bne $3, $3, TAG34
lh $4, 0($3)
TAG34:
mfhi $4
sltiu $2, $4, 11
ori $3, $2, 3
lw $2, 0($4)
TAG35:
and $2, $2, $2
lui $1, 4
lui $3, 9
lw $3, 0($2)
TAG36:
mult $3, $3
lw $1, 0($3)
xori $4, $3, 13
mtlo $4
TAG37:
srlv $2, $4, $4
beq $4, $4, TAG38
sb $2, 0($4)
sh $2, 0($4)
TAG38:
mtlo $2
blez $2, TAG39
sra $3, $2, 3
lui $3, 5
TAG39:
mthi $3
lui $1, 15
blez $3, TAG40
mthi $3
TAG40:
sll $0, $0, 0
sllv $3, $1, $1
multu $3, $2
sll $0, $0, 0
TAG41:
lui $1, 4
bne $1, $1, TAG42
sll $0, $0, 0
addu $2, $1, $4
TAG42:
mfhi $3
mfhi $3
mtlo $2
bltz $2, TAG43
TAG43:
mflo $2
blez $2, TAG44
sb $2, 0($3)
lhu $1, 0($3)
TAG44:
mtlo $1
blez $1, TAG45
divu $1, $1
blez $1, TAG45
TAG45:
sll $1, $1, 14
bne $1, $1, TAG46
mflo $2
bgtz $1, TAG46
TAG46:
slt $3, $2, $2
mtlo $3
multu $2, $3
beq $3, $2, TAG47
TAG47:
mult $3, $3
sb $3, 0($3)
mfhi $2
mult $2, $3
TAG48:
beq $2, $2, TAG49
mfhi $2
or $1, $2, $2
mfhi $2
TAG49:
sw $2, 0($2)
bgtz $2, TAG50
and $1, $2, $2
bne $1, $1, TAG50
TAG50:
sll $3, $1, 1
bne $1, $3, TAG51
mthi $3
addiu $4, $1, 4
TAG51:
sh $4, 0($4)
bgez $4, TAG52
sltu $2, $4, $4
beq $4, $2, TAG52
TAG52:
multu $2, $2
bne $2, $2, TAG53
mfhi $3
sub $3, $3, $3
TAG53:
slti $3, $3, 5
addiu $3, $3, 13
mthi $3
mflo $1
TAG54:
bgez $1, TAG55
xori $2, $1, 0
divu $1, $1
divu $1, $2
TAG55:
subu $2, $2, $2
ori $1, $2, 8
blez $1, TAG56
sb $2, 0($1)
TAG56:
bne $1, $1, TAG57
lbu $1, 0($1)
sub $4, $1, $1
slt $3, $1, $4
TAG57:
lui $1, 15
mflo $2
mflo $4
mfhi $4
TAG58:
bne $4, $4, TAG59
mult $4, $4
or $4, $4, $4
sltu $3, $4, $4
TAG59:
beq $3, $3, TAG60
and $3, $3, $3
mtlo $3
bgtz $3, TAG60
TAG60:
lbu $4, 0($3)
sw $4, 0($3)
lb $1, 0($4)
bgtz $1, TAG61
TAG61:
sltiu $2, $1, 5
mtlo $1
bltz $2, TAG62
subu $4, $1, $1
TAG62:
bne $4, $4, TAG63
mtlo $4
sw $4, 0($4)
lhu $2, 0($4)
TAG63:
lhu $4, 0($2)
lui $3, 8
addi $1, $4, 15
sb $2, 0($1)
TAG64:
sb $1, 0($1)
lui $2, 8
mfhi $2
bgez $2, TAG65
TAG65:
lui $3, 6
mfhi $4
sll $0, $0, 0
sltiu $2, $2, 13
TAG66:
mthi $2
sb $2, 0($2)
bne $2, $2, TAG67
lbu $2, 0($2)
TAG67:
sb $2, 0($2)
lui $1, 14
sb $2, 0($2)
subu $3, $2, $1
TAG68:
sll $0, $0, 0
sll $0, $0, 0
divu $3, $3
lui $4, 4
TAG69:
xori $3, $4, 5
beq $3, $3, TAG70
lui $2, 6
lui $2, 7
TAG70:
mfhi $3
lhu $1, 0($3)
blez $2, TAG71
sw $2, 0($3)
TAG71:
blez $1, TAG72
lh $4, -256($1)
mfhi $4
mthi $4
TAG72:
lhu $1, 0($4)
sub $2, $1, $1
mfhi $1
bgtz $4, TAG73
TAG73:
mflo $4
lb $4, 0($1)
sltiu $2, $4, 15
lui $2, 13
TAG74:
sll $0, $0, 0
multu $2, $4
lw $4, 0($4)
and $3, $2, $4
TAG75:
sll $4, $3, 5
mult $3, $4
sll $0, $0, 0
mult $4, $4
TAG76:
mtlo $3
lui $1, 5
mthi $3
slt $1, $3, $1
TAG77:
mult $1, $1
mthi $1
lui $4, 2
lbu $2, 0($1)
TAG78:
bgez $2, TAG79
lui $1, 15
div $2, $1
sb $2, 0($1)
TAG79:
addiu $2, $1, 2
divu $2, $2
mthi $2
sll $0, $0, 0
TAG80:
ori $4, $3, 2
mtlo $3
blez $3, TAG81
lui $3, 15
TAG81:
lui $2, 2
and $1, $3, $2
mflo $4
sllv $4, $2, $2
TAG82:
ori $4, $4, 14
blez $4, TAG83
sll $0, $0, 0
bltz $4, TAG83
TAG83:
mthi $4
sll $0, $0, 0
addu $3, $4, $4
mthi $4
TAG84:
mfhi $1
mthi $3
bne $1, $3, TAG85
mthi $1
TAG85:
divu $1, $1
mflo $4
sb $1, 0($4)
sll $0, $0, 0
TAG86:
lui $2, 8
divu $2, $4
mfhi $1
and $4, $4, $1
TAG87:
sll $3, $4, 13
mtlo $4
multu $3, $3
mtlo $4
TAG88:
mtlo $3
andi $1, $3, 14
sb $3, 0($1)
multu $3, $1
TAG89:
mult $1, $1
blez $1, TAG90
mthi $1
bltz $1, TAG90
TAG90:
subu $4, $1, $1
mtlo $4
lui $4, 4
mtlo $4
TAG91:
xori $3, $4, 12
slt $2, $3, $3
blez $3, TAG92
sll $0, $0, 0
TAG92:
sw $1, 0($1)
lh $4, 0($1)
sll $3, $1, 15
lui $4, 15
TAG93:
lui $3, 9
sll $0, $0, 0
lui $3, 6
div $4, $3
TAG94:
sltiu $4, $3, 13
blez $4, TAG95
lui $2, 3
lhu $1, 0($2)
TAG95:
add $3, $1, $1
mult $3, $1
mthi $1
lui $1, 9
TAG96:
sll $0, $0, 0
sra $4, $2, 7
sll $0, $0, 0
div $1, $1
TAG97:
lui $2, 10
mthi $2
bgtz $2, TAG98
div $1, $2
TAG98:
mthi $2
sll $0, $0, 0
lui $2, 15
lui $4, 9
TAG99:
sll $0, $0, 0
sra $2, $4, 0
bgez $4, TAG100
subu $4, $1, $1
TAG100:
sh $4, 0($4)
lui $2, 7
sll $1, $4, 3
lbu $2, 0($4)
TAG101:
beq $2, $2, TAG102
lui $4, 15
mthi $4
bgtz $4, TAG102
TAG102:
subu $1, $4, $4
lui $1, 2
bltz $1, TAG103
mtlo $1
TAG103:
sll $0, $0, 0
andi $4, $3, 1
addi $4, $3, 7
sll $0, $0, 0
TAG104:
mfhi $4
addiu $3, $4, 10
multu $3, $4
bne $4, $3, TAG105
TAG105:
andi $1, $3, 8
srav $2, $1, $3
blez $1, TAG106
mtlo $3
TAG106:
slti $4, $2, 0
beq $2, $2, TAG107
mult $4, $2
sh $4, 0($2)
TAG107:
add $4, $4, $4
mtlo $4
lh $2, 0($4)
mult $4, $4
TAG108:
mthi $2
mflo $3
sb $2, 0($2)
bgez $3, TAG109
TAG109:
lw $3, 0($3)
bne $3, $3, TAG110
addiu $3, $3, 12
sh $3, 0($3)
TAG110:
addu $3, $3, $3
sw $3, 0($3)
mult $3, $3
bgtz $3, TAG111
TAG111:
mfhi $2
blez $2, TAG112
mflo $1
div $2, $1
TAG112:
lui $2, 2
sltiu $1, $2, 7
nor $4, $1, $2
mult $1, $1
TAG113:
mfhi $2
bgtz $2, TAG114
mult $4, $2
mtlo $2
TAG114:
lh $2, 0($2)
mult $2, $2
beq $2, $2, TAG115
lbu $2, 0($2)
TAG115:
mult $2, $2
mfhi $4
multu $2, $4
lhu $4, 0($4)
TAG116:
mtlo $4
bne $4, $4, TAG117
sh $4, 0($4)
lh $4, 0($4)
TAG117:
lui $2, 14
beq $2, $4, TAG118
mthi $4
lb $2, 0($4)
TAG118:
lhu $1, 0($2)
mult $2, $1
lui $4, 5
bne $4, $2, TAG119
TAG119:
mfhi $3
blez $4, TAG120
sll $0, $0, 0
bgtz $3, TAG120
TAG120:
mtlo $1
lui $4, 14
bgtz $1, TAG121
sll $0, $0, 0
TAG121:
mtlo $4
sll $0, $0, 0
beq $4, $4, TAG122
mthi $4
TAG122:
lui $2, 6
beq $2, $4, TAG123
multu $4, $4
mtlo $4
TAG123:
sll $0, $0, 0
sll $0, $0, 0
blez $2, TAG124
mult $2, $2
TAG124:
srlv $1, $2, $2
mflo $2
nor $3, $1, $1
sra $4, $1, 12
TAG125:
mthi $4
mthi $4
mthi $4
bgez $4, TAG126
TAG126:
lui $4, 1
beq $4, $4, TAG127
divu $4, $4
sb $4, 0($4)
TAG127:
bltz $4, TAG128
div $4, $4
mflo $2
slti $2, $2, 4
TAG128:
sb $2, 0($2)
addu $1, $2, $2
sb $2, 0($1)
addiu $4, $1, 0
TAG129:
lbu $3, 0($4)
sb $3, 0($4)
bgez $3, TAG130
multu $4, $3
TAG130:
mflo $4
addu $2, $4, $4
bltz $3, TAG131
mtlo $3
TAG131:
lui $1, 7
div $1, $1
andi $1, $2, 2
lw $4, 0($1)
TAG132:
mthi $4
sll $0, $0, 0
bgtz $4, TAG133
sb $3, 0($3)
TAG133:
lbu $4, 0($3)
bne $4, $4, TAG134
lb $4, 0($4)
sb $4, 0($4)
TAG134:
addiu $4, $4, 11
slt $4, $4, $4
bgez $4, TAG135
sltu $1, $4, $4
TAG135:
lui $4, 7
nor $2, $4, $4
mfhi $4
blez $4, TAG136
TAG136:
sra $4, $4, 6
sb $4, -1028($4)
lw $3, -1028($4)
or $1, $3, $4
TAG137:
xori $4, $1, 3
sll $0, $0, 0
mult $4, $1
srlv $4, $4, $4
TAG138:
mthi $4
bgez $4, TAG139
mthi $4
sb $4, 0($4)
TAG139:
sw $4, -522($4)
mflo $3
mthi $4
sll $0, $0, 0
TAG140:
divu $4, $4
lui $3, 2
mthi $3
addu $1, $4, $4
TAG141:
mfhi $2
bne $1, $1, TAG142
lbu $1, -1044($1)
mflo $4
TAG142:
lui $3, 6
andi $3, $4, 0
mfhi $4
addiu $1, $4, 3
TAG143:
bne $1, $1, TAG144
sll $0, $0, 0
bne $1, $1, TAG144
and $1, $1, $1
TAG144:
bgtz $1, TAG145
div $1, $1
mfhi $3
xori $1, $1, 6
TAG145:
mthi $1
mthi $1
mthi $1
sllv $4, $1, $1
TAG146:
mthi $4
bgez $4, TAG147
sra $4, $4, 13
lhu $1, 0($4)
TAG147:
mflo $4
blez $4, TAG148
lui $1, 8
addu $3, $4, $4
TAG148:
mfhi $1
lui $2, 11
blez $3, TAG149
mthi $1
TAG149:
sll $0, $0, 0
mthi $2
lui $3, 13
xor $2, $2, $3
TAG150:
beq $2, $2, TAG151
sll $2, $2, 10
srl $2, $2, 6
addiu $4, $2, 10
TAG151:
srlv $1, $4, $4
addiu $3, $4, 10
slti $1, $4, 13
sb $1, 0($1)
TAG152:
blez $1, TAG153
mtlo $1
sb $1, 0($1)
srl $4, $1, 7
TAG153:
sltu $3, $4, $4
lui $4, 0
lb $4, 0($4)
sb $4, 0($3)
TAG154:
lbu $2, 0($4)
blez $4, TAG155
sb $4, 0($2)
sb $2, 0($4)
TAG155:
bltz $2, TAG156
sh $2, 0($2)
lui $1, 4
mfhi $3
TAG156:
mflo $4
mflo $4
bgez $3, TAG157
srav $4, $4, $3
TAG157:
bne $4, $4, TAG158
lui $1, 8
div $1, $4
mflo $1
TAG158:
sll $0, $0, 0
mthi $1
sllv $3, $1, $1
sll $0, $0, 0
TAG159:
mflo $3
sll $0, $0, 0
mtlo $3
mtlo $3
TAG160:
sll $0, $0, 0
beq $3, $3, TAG161
sll $0, $0, 0
multu $3, $3
TAG161:
mtlo $3
mtlo $3
bltz $3, TAG162
ori $3, $3, 6
TAG162:
div $3, $3
mthi $3
beq $3, $3, TAG163
sltiu $1, $3, 7
TAG163:
blez $1, TAG164
sw $1, 0($1)
bgez $1, TAG164
mfhi $1
TAG164:
lui $1, 8
sll $0, $0, 0
lui $2, 9
mflo $1
TAG165:
mtlo $1
mthi $1
mfhi $1
lbu $3, 0($1)
TAG166:
lh $4, 0($3)
mtlo $3
mflo $3
bne $3, $3, TAG167
TAG167:
xori $2, $3, 11
mult $3, $3
sb $3, 0($2)
lui $3, 6
TAG168:
andi $1, $3, 0
mfhi $4
sltu $1, $3, $1
addiu $2, $1, 0
TAG169:
multu $2, $2
lui $1, 14
sll $0, $0, 0
lui $2, 1
TAG170:
mflo $2
lw $1, 0($2)
lui $1, 12
bgez $2, TAG171
TAG171:
ori $2, $1, 3
bgez $2, TAG172
mtlo $1
sw $2, 0($2)
TAG172:
addiu $3, $2, 1
addu $3, $2, $2
mfhi $3
xori $2, $3, 6
TAG173:
beq $2, $2, TAG174
div $2, $2
blez $2, TAG174
lui $2, 3
TAG174:
bltz $2, TAG175
sh $2, 0($2)
mthi $2
lh $2, 0($2)
TAG175:
slt $2, $2, $2
mfhi $3
sh $3, 0($3)
addi $4, $2, 4
TAG176:
mthi $4
bne $4, $4, TAG177
lui $1, 11
bgtz $1, TAG177
TAG177:
andi $3, $1, 11
sll $0, $0, 0
sll $0, $0, 0
bltz $4, TAG178
TAG178:
lui $3, 6
bgez $4, TAG179
sh $3, 0($4)
blez $3, TAG179
TAG179:
mult $3, $3
lui $4, 14
srav $1, $4, $4
lui $4, 8
TAG180:
sll $0, $0, 0
blez $4, TAG181
div $4, $4
sll $0, $0, 0
TAG181:
lui $4, 6
mtlo $4
mflo $1
sll $0, $0, 0
TAG182:
sll $0, $0, 0
mthi $1
beq $1, $1, TAG183
sltu $4, $1, $1
TAG183:
mtlo $4
mthi $4
lb $1, 0($4)
mfhi $2
TAG184:
bgez $2, TAG185
addu $3, $2, $2
beq $3, $3, TAG185
mtlo $3
TAG185:
sh $3, 0($3)
lh $2, 0($3)
add $2, $2, $2
bne $3, $2, TAG186
TAG186:
mflo $1
lhu $3, 0($1)
lui $1, 12
lui $1, 4
TAG187:
beq $1, $1, TAG188
sll $0, $0, 0
mfhi $1
sub $2, $1, $4
TAG188:
add $1, $2, $2
bgez $2, TAG189
subu $4, $2, $2
mflo $2
TAG189:
sh $2, 0($2)
mflo $4
sb $4, 0($4)
lui $4, 6
TAG190:
bne $4, $4, TAG191
addiu $2, $4, 6
lui $3, 10
sll $0, $0, 0
TAG191:
divu $3, $3
mflo $4
lui $1, 11
sll $0, $0, 0
TAG192:
sll $0, $0, 0
srl $2, $1, 5
beq $2, $2, TAG193
lui $3, 11
TAG193:
sll $0, $0, 0
mult $3, $3
multu $3, $3
lui $3, 5
TAG194:
bgtz $3, TAG195
lui $1, 0
beq $3, $3, TAG195
sw $3, 0($3)
TAG195:
addiu $4, $1, 1
mtlo $4
lw $3, 0($1)
mthi $4
TAG196:
bne $3, $3, TAG197
lb $3, 0($3)
multu $3, $3
multu $3, $3
TAG197:
multu $3, $3
mthi $3
bgtz $3, TAG198
srav $1, $3, $3
TAG198:
beq $1, $1, TAG199
lw $1, 0($1)
beq $1, $1, TAG199
sh $1, 0($1)
TAG199:
mthi $1
beq $1, $1, TAG200
srl $2, $1, 3
bne $2, $2, TAG200
TAG200:
lhu $4, 0($2)
sw $4, 0($2)
lhu $1, 0($2)
mfhi $3
TAG201:
mtlo $3
mflo $3
bltz $3, TAG202
lw $4, 0($3)
TAG202:
mfhi $2
beq $4, $2, TAG203
lui $3, 5
xori $2, $4, 2
TAG203:
bne $2, $2, TAG204
lb $4, 0($2)
bne $2, $4, TAG204
and $1, $4, $4
TAG204:
sh $1, 0($1)
mthi $1
lb $1, 0($1)
mflo $3
TAG205:
sh $3, 0($3)
sb $3, 0($3)
mflo $3
lh $2, 0($3)
TAG206:
multu $2, $2
bne $2, $2, TAG207
lbu $4, 0($2)
sh $4, 0($4)
TAG207:
mtlo $4
sltiu $1, $4, 6
mfhi $2
bltz $1, TAG208
TAG208:
mtlo $2
multu $2, $2
sb $2, 0($2)
blez $2, TAG209
TAG209:
lhu $3, 0($2)
addi $1, $3, 3
lbu $1, 0($1)
mthi $1
TAG210:
lw $3, 0($1)
lb $4, 0($3)
sh $3, 0($1)
multu $1, $4
TAG211:
srav $2, $4, $4
bgez $2, TAG212
sb $4, 0($2)
bne $2, $2, TAG212
TAG212:
lh $3, 0($2)
lh $4, 0($2)
lui $4, 14
srl $4, $4, 2
TAG213:
mflo $4
beq $4, $4, TAG214
mfhi $3
mtlo $3
TAG214:
srl $3, $3, 8
lw $3, 0($3)
sll $4, $3, 14
mult $3, $3
TAG215:
multu $4, $4
mult $4, $4
mflo $3
mfhi $3
TAG216:
bgez $3, TAG217
addiu $3, $3, 15
srl $4, $3, 12
and $2, $3, $3
TAG217:
mult $2, $2
xori $4, $2, 5
sb $4, 0($2)
lh $2, 0($2)
TAG218:
mtlo $2
mtlo $2
addu $4, $2, $2
div $4, $2
TAG219:
bne $4, $4, TAG220
sb $4, 0($4)
lui $2, 1
sh $4, 0($4)
TAG220:
sll $0, $0, 0
xori $3, $2, 3
nor $2, $2, $3
mthi $3
TAG221:
lui $1, 7
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG222:
bgez $1, TAG223
sllv $1, $1, $1
sb $1, 0($1)
sll $1, $1, 15
TAG223:
lui $1, 11
sll $4, $1, 11
mflo $2
srlv $1, $1, $1
TAG224:
sll $0, $0, 0
sll $0, $0, 0
mflo $2
blez $2, TAG225
TAG225:
mthi $2
mflo $2
ori $2, $2, 3
bne $2, $2, TAG226
TAG226:
sltiu $2, $2, 8
bgez $2, TAG227
sb $2, 0($2)
lw $1, 0($2)
TAG227:
mult $1, $1
mthi $1
addiu $1, $1, 10
sltu $1, $1, $1
TAG228:
lui $2, 1
sll $0, $0, 0
lh $4, 0($1)
sll $0, $0, 0
TAG229:
mult $4, $4
slti $1, $4, 9
nor $3, $4, $4
lui $2, 4
TAG230:
multu $2, $2
sll $0, $0, 0
div $2, $3
beq $2, $3, TAG231
TAG231:
mthi $3
mflo $1
bgez $3, TAG232
divu $1, $3
TAG232:
lui $3, 5
lb $4, 1000($1)
mflo $2
addiu $1, $1, 7
TAG233:
lui $4, 6
lui $3, 1
div $3, $1
srav $4, $1, $3
TAG234:
sll $3, $4, 15
bgtz $4, TAG235
sll $0, $0, 0
divu $4, $3
TAG235:
lui $3, 15
beq $3, $3, TAG236
lui $3, 7
bltz $3, TAG236
TAG236:
lui $4, 4
lui $2, 4
lui $1, 7
multu $1, $3
TAG237:
beq $1, $1, TAG238
lui $3, 11
bne $1, $3, TAG238
lw $4, 0($3)
TAG238:
mfhi $3
sll $0, $0, 0
bgez $3, TAG239
mtlo $3
TAG239:
bltz $3, TAG240
mthi $3
mthi $3
beq $3, $3, TAG240
TAG240:
lbu $2, 0($3)
sll $3, $2, 8
lhu $4, 0($2)
mthi $3
TAG241:
sll $0, $0, 0
bne $4, $4, TAG242
multu $2, $2
bgtz $2, TAG242
TAG242:
or $2, $2, $2
sw $2, 0($2)
lbu $2, 0($2)
addiu $2, $2, 0
TAG243:
beq $2, $2, TAG244
sw $2, 0($2)
sltiu $1, $2, 5
bgtz $2, TAG244
TAG244:
sll $0, $0, 0
and $3, $1, $1
mflo $4
mfhi $4
TAG245:
sw $4, 0($4)
mtlo $4
mtlo $4
mthi $4
TAG246:
mthi $4
sw $4, 0($4)
srl $2, $4, 1
sltiu $2, $4, 7
TAG247:
mfhi $1
multu $2, $1
and $3, $2, $1
sllv $4, $2, $1
TAG248:
bgez $4, TAG249
lbu $3, 0($4)
sra $3, $3, 3
bne $3, $3, TAG249
TAG249:
lui $3, 13
subu $3, $3, $3
multu $3, $3
mfhi $4
TAG250:
srlv $3, $4, $4
multu $4, $4
mfhi $1
multu $3, $4
TAG251:
lui $3, 12
mthi $3
multu $3, $3
mflo $2
TAG252:
sh $2, 0($2)
mthi $2
multu $2, $2
lui $2, 15
TAG253:
or $1, $2, $2
sll $0, $0, 0
and $3, $1, $1
mflo $1
TAG254:
mthi $1
bgez $1, TAG255
sb $1, 0($1)
lui $3, 13
TAG255:
beq $3, $3, TAG256
lui $1, 7
sll $3, $3, 14
sw $1, 0($3)
TAG256:
mult $3, $3
sll $0, $0, 0
slti $2, $4, 6
lui $3, 11
TAG257:
andi $4, $3, 9
div $4, $3
sll $1, $4, 7
mfhi $1
TAG258:
mult $1, $1
lui $4, 4
lb $4, 0($1)
sb $1, 0($1)
TAG259:
mtlo $4
subu $1, $4, $4
xori $1, $4, 1
sb $1, 0($1)
TAG260:
multu $1, $1
slti $3, $1, 5
sb $1, 0($3)
lui $1, 2
TAG261:
bgez $1, TAG262
sll $0, $0, 0
sltiu $2, $1, 14
lw $2, 0($1)
TAG262:
sb $2, 0($2)
sb $2, 0($2)
mtlo $2
div $2, $2
TAG263:
lui $3, 2
mfhi $3
mtlo $3
multu $2, $3
TAG264:
bne $3, $3, TAG265
sh $3, 0($3)
multu $3, $3
xori $2, $3, 11
TAG265:
sllv $1, $2, $2
addiu $3, $2, 11
divu $1, $2
lhu $2, 0($3)
TAG266:
mthi $2
lb $4, 0($2)
lhu $4, 0($2)
lw $4, 0($4)
TAG267:
ori $1, $4, 0
lhu $4, 0($4)
xori $1, $4, 8
blez $1, TAG268
TAG268:
sltu $2, $1, $1
mfhi $1
lbu $3, 0($1)
beq $1, $1, TAG269
TAG269:
mflo $3
mthi $3
slt $3, $3, $3
multu $3, $3
TAG270:
lh $4, 0($3)
addi $2, $3, 1
mfhi $3
beq $3, $3, TAG271
TAG271:
sw $3, 0($3)
bne $3, $3, TAG272
mflo $3
sb $3, 0($3)
TAG272:
lhu $2, 0($3)
lbu $3, 0($2)
multu $2, $3
multu $3, $3
TAG273:
mflo $3
beq $3, $3, TAG274
slt $1, $3, $3
addu $2, $3, $3
TAG274:
mtlo $2
lui $1, 10
bltz $2, TAG275
sll $0, $0, 0
TAG275:
beq $4, $4, TAG276
nor $2, $4, $4
bltz $4, TAG276
mult $4, $2
TAG276:
sb $2, 1($2)
mflo $4
sb $4, 0($4)
xori $3, $4, 5
TAG277:
mthi $3
slt $1, $3, $3
beq $3, $3, TAG278
lui $2, 5
TAG278:
sll $0, $0, 0
mflo $3
xor $4, $2, $2
mfhi $1
TAG279:
lui $3, 12
srlv $1, $1, $3
or $3, $3, $3
lui $1, 14
TAG280:
addiu $4, $1, 5
subu $2, $1, $1
mfhi $2
or $4, $2, $2
TAG281:
mfhi $1
mflo $2
divu $2, $4
sb $2, 0($4)
TAG282:
mult $2, $2
lui $1, 15
srav $3, $2, $2
mtlo $3
TAG283:
lb $4, 0($3)
bltz $4, TAG284
lui $2, 15
lui $1, 12
TAG284:
beq $1, $1, TAG285
div $1, $1
lb $3, 0($1)
lb $3, 0($3)
TAG285:
lw $3, 0($3)
lui $3, 2
addiu $1, $3, 7
addu $1, $3, $3
TAG286:
lui $4, 8
mtlo $1
sll $0, $0, 0
lui $4, 3
TAG287:
xori $2, $4, 2
lui $3, 5
mthi $2
mtlo $3
TAG288:
sll $0, $0, 0
mfhi $4
bgtz $3, TAG289
lui $2, 0
TAG289:
subu $4, $2, $2
sub $4, $2, $4
lui $4, 5
bne $4, $4, TAG290
TAG290:
sll $0, $0, 0
sll $0, $0, 0
mthi $4
lbu $2, 0($2)
TAG291:
mflo $1
mtlo $1
mthi $1
sltu $2, $1, $2
TAG292:
bgtz $2, TAG293
addiu $2, $2, 8
sllv $4, $2, $2
bltz $4, TAG293
TAG293:
sw $4, -2048($4)
lhu $3, -2048($4)
mflo $1
mfhi $4
TAG294:
sll $0, $0, 0
div $4, $4
bne $4, $4, TAG295
lui $2, 12
TAG295:
mthi $2
sll $2, $2, 10
sll $0, $0, 0
mflo $3
TAG296:
bne $3, $3, TAG297
mtlo $3
addu $1, $3, $3
mtlo $1
TAG297:
mult $1, $1
mflo $3
beq $1, $1, TAG298
div $3, $1
TAG298:
div $3, $3
lui $2, 11
lui $1, 11
lui $1, 4
TAG299:
mult $1, $1
mflo $3
blez $1, TAG300
lui $4, 0
TAG300:
bne $4, $4, TAG301
srl $1, $4, 15
srl $4, $1, 12
lh $4, 0($4)
TAG301:
mthi $4
addiu $4, $4, 8
bne $4, $4, TAG302
subu $4, $4, $4
TAG302:
blez $4, TAG303
mult $4, $4
srlv $1, $4, $4
lh $3, 0($4)
TAG303:
bne $3, $3, TAG304
mult $3, $3
lui $3, 2
lui $1, 0
TAG304:
mthi $1
mflo $3
multu $3, $3
bne $3, $3, TAG305
TAG305:
srav $4, $3, $3
addi $2, $3, 13
mflo $2
mfhi $3
TAG306:
bne $3, $3, TAG307
lbu $1, 0($3)
lui $4, 11
bne $3, $4, TAG307
TAG307:
sll $0, $0, 0
mthi $4
div $4, $4
mthi $4
TAG308:
bne $4, $4, TAG309
mtlo $4
mfhi $2
sll $0, $0, 0
TAG309:
divu $2, $2
mtlo $2
mult $2, $2
lui $4, 3
TAG310:
lui $3, 13
lui $4, 9
divu $4, $3
mult $4, $3
TAG311:
srav $1, $4, $4
sll $0, $0, 0
mflo $2
bgez $4, TAG312
TAG312:
srl $2, $2, 13
mult $2, $2
sb $2, 0($2)
mflo $1
TAG313:
ori $1, $1, 14
mthi $1
xor $1, $1, $1
bne $1, $1, TAG314
TAG314:
mfhi $4
mtlo $1
sh $4, 0($4)
mflo $3
TAG315:
bne $3, $3, TAG316
lh $1, 0($3)
lw $4, 0($3)
mult $3, $3
TAG316:
bne $4, $4, TAG317
mult $4, $4
sltu $1, $4, $4
bgtz $4, TAG317
TAG317:
mtlo $1
lb $4, 0($1)
beq $4, $4, TAG318
lui $1, 14
TAG318:
mflo $3
lhu $1, 0($3)
lui $1, 6
mtlo $1
TAG319:
addiu $4, $1, 5
divu $1, $1
bne $1, $4, TAG320
srav $1, $4, $4
TAG320:
mfhi $4
mthi $1
xori $2, $4, 11
sb $4, -12288($1)
TAG321:
bne $2, $2, TAG322
divu $2, $2
addiu $3, $2, 6
bne $3, $3, TAG322
TAG322:
sll $4, $3, 0
bltz $3, TAG323
divu $3, $4
srlv $1, $3, $4
TAG323:
mtlo $1
mfhi $3
mult $3, $1
multu $3, $1
TAG324:
lui $2, 10
sw $3, 0($3)
sltu $4, $3, $3
blez $4, TAG325
TAG325:
multu $4, $4
mtlo $4
sltu $2, $4, $4
lw $2, 0($2)
TAG326:
mflo $1
lui $2, 6
sll $0, $0, 0
mfhi $1
TAG327:
mfhi $4
bltz $1, TAG328
multu $4, $4
add $3, $4, $4
TAG328:
lui $1, 12
lui $3, 10
srl $1, $3, 14
mflo $1
TAG329:
sb $1, 0($1)
srl $3, $1, 12
nor $2, $3, $3
sw $3, 1($2)
TAG330:
mult $2, $2
div $2, $2
sb $2, 1($2)
bltz $2, TAG331
TAG331:
subu $4, $2, $2
bgez $2, TAG332
multu $4, $2
sllv $4, $4, $4
TAG332:
beq $4, $4, TAG333
mthi $4
sltu $2, $4, $4
mflo $3
TAG333:
mult $3, $3
mthi $3
sw $3, 0($3)
lui $1, 13
TAG334:
sll $0, $0, 0
mult $1, $1
addu $1, $1, $1
sll $0, $0, 0
TAG335:
mthi $2
ori $1, $2, 4
mflo $4
sw $1, 1($1)
TAG336:
lui $2, 12
sll $0, $0, 0
lui $4, 11
lui $1, 7
TAG337:
mfhi $1
subu $4, $1, $1
blez $1, TAG338
divu $1, $1
TAG338:
bne $4, $4, TAG339
and $3, $4, $4
sltiu $4, $4, 9
sh $3, 0($3)
TAG339:
addiu $1, $4, 12
bgez $1, TAG340
subu $1, $1, $1
beq $1, $4, TAG340
TAG340:
lb $1, 0($1)
multu $1, $1
mfhi $2
multu $1, $2
TAG341:
mtlo $2
mflo $4
mfhi $3
nor $2, $2, $2
TAG342:
lui $3, 15
slti $2, $2, 12
beq $2, $2, TAG343
lui $1, 14
TAG343:
sll $0, $0, 0
sll $0, $0, 0
lui $2, 15
sll $2, $1, 4
TAG344:
mthi $2
sll $0, $0, 0
lui $3, 11
blez $2, TAG345
TAG345:
addu $3, $3, $3
mtlo $3
sll $2, $3, 1
sll $0, $0, 0
TAG346:
bne $2, $2, TAG347
mtlo $2
mtlo $2
mthi $2
TAG347:
lui $1, 15
subu $4, $1, $2
srl $2, $1, 11
mthi $1
TAG348:
sll $0, $0, 0
bgez $2, TAG349
lw $2, -480($2)
srav $3, $2, $2
TAG349:
div $3, $3
lui $4, 1
sra $1, $4, 2
beq $3, $1, TAG350
TAG350:
lui $1, 7
srav $4, $1, $1
lui $2, 5
bltz $1, TAG351
TAG351:
mtlo $2
mthi $2
xori $1, $2, 12
sll $0, $0, 0
TAG352:
sll $0, $0, 0
mthi $4
xor $2, $4, $4
andi $4, $4, 14
TAG353:
lui $3, 1
srlv $2, $3, $4
lui $1, 13
sll $0, $0, 0
TAG354:
multu $1, $1
bne $1, $1, TAG355
multu $1, $1
sll $0, $0, 0
TAG355:
subu $3, $2, $2
subu $4, $2, $3
and $4, $4, $4
sra $3, $4, 6
TAG356:
lui $1, 9
bgez $3, TAG357
mtlo $3
slti $3, $3, 14
TAG357:
or $1, $3, $3
lhu $2, -1024($1)
blez $2, TAG358
lhu $4, 0($2)
TAG358:
bne $4, $4, TAG359
lui $4, 9
lui $4, 12
sll $0, $0, 0
TAG359:
lui $1, 2
divu $1, $1
sll $3, $1, 7
beq $1, $1, TAG360
TAG360:
mult $3, $3
sll $0, $0, 0
bgtz $3, TAG361
mfhi $3
TAG361:
sll $0, $0, 0
divu $3, $3
beq $3, $3, TAG362
ori $2, $3, 7
TAG362:
sll $0, $0, 0
lui $2, 12
sll $0, $0, 0
sll $0, $0, 0
TAG363:
beq $2, $2, TAG364
sll $0, $0, 0
or $3, $2, $2
srl $3, $2, 6
TAG364:
mtlo $3
sll $0, $0, 0
div $3, $3
andi $3, $3, 0
TAG365:
sll $2, $3, 11
bne $3, $2, TAG366
sb $3, 0($2)
sb $3, 0($3)
TAG366:
xori $2, $2, 8
lbu $4, 0($2)
bgtz $2, TAG367
ori $3, $2, 5
TAG367:
addiu $2, $3, 7
mtlo $3
bne $2, $3, TAG368
sw $3, 0($2)
TAG368:
mflo $4
bgtz $4, TAG369
mtlo $2
mflo $2
TAG369:
addiu $2, $2, 13
sltu $2, $2, $2
lui $1, 13
blez $2, TAG370
TAG370:
sll $0, $0, 0
addiu $1, $1, 10
subu $3, $1, $1
sw $1, 0($3)
TAG371:
lui $4, 13
sll $0, $0, 0
xori $2, $3, 2
ori $4, $2, 9
TAG372:
sltiu $3, $4, 9
lui $3, 14
lui $1, 7
lui $4, 14
TAG373:
multu $4, $4
mthi $4
sll $0, $0, 0
sll $0, $0, 0
TAG374:
lui $3, 13
sll $0, $0, 0
lui $4, 8
div $4, $4
TAG375:
sll $0, $0, 0
lui $1, 14
sll $0, $0, 0
blez $1, TAG376
TAG376:
addiu $3, $1, 0
sll $0, $0, 0
lui $3, 2
blez $3, TAG377
TAG377:
lui $1, 12
multu $1, $1
sll $0, $0, 0
srl $1, $1, 1
TAG378:
lui $2, 13
addu $4, $1, $2
mfhi $1
blez $4, TAG379
TAG379:
slti $3, $1, 8
mfhi $4
multu $1, $3
sb $3, -144($1)
TAG380:
andi $4, $4, 14
mflo $4
mtlo $4
lui $1, 5
TAG381:
bgtz $1, TAG382
mtlo $1
sw $1, 0($1)
lw $2, 0($1)
TAG382:
mtlo $2
bne $2, $2, TAG383
srav $3, $2, $2
divu $3, $2
TAG383:
sll $0, $0, 0
beq $1, $3, TAG384
addiu $2, $1, 10
bltz $1, TAG384
TAG384:
mtlo $2
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG385:
lui $2, 11
srlv $3, $2, $2
beq $2, $2, TAG386
addiu $1, $2, 6
TAG386:
mtlo $1
divu $1, $1
lui $4, 11
bgez $1, TAG387
TAG387:
sll $0, $0, 0
divu $2, $4
subu $4, $4, $2
sltiu $1, $4, 2
TAG388:
lui $4, 6
bltz $4, TAG389
mflo $3
sb $4, 0($1)
TAG389:
beq $3, $3, TAG390
sll $4, $3, 0
sh $4, 0($3)
srl $1, $3, 15
TAG390:
lui $2, 3
lui $4, 3
mfhi $1
bne $1, $1, TAG391
TAG391:
mult $1, $1
mflo $1
mtlo $1
multu $1, $1
TAG392:
bne $1, $1, TAG393
sb $1, 0($1)
sh $1, 0($1)
sb $1, 0($1)
TAG393:
mflo $2
mult $2, $1
lw $1, 0($2)
sllv $2, $1, $1
TAG394:
div $2, $2
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG395:
nor $2, $1, $1
sll $0, $0, 0
lui $2, 15
subu $1, $2, $2
TAG396:
sltu $4, $1, $1
mflo $3
mthi $4
or $1, $1, $1
TAG397:
lb $4, 0($1)
bne $1, $1, TAG398
ori $1, $1, 15
lui $1, 2
TAG398:
mtlo $1
sll $0, $0, 0
xori $2, $1, 0
multu $1, $1
TAG399:
div $2, $2
addu $2, $2, $2
lui $2, 3
bgtz $2, TAG400
TAG400:
sll $0, $0, 0
sll $0, $0, 0
multu $2, $2
beq $2, $2, TAG401
TAG401:
sll $0, $0, 0
lui $4, 1
mflo $3
beq $4, $2, TAG402
TAG402:
or $4, $3, $3
sh $3, 0($3)
mthi $4
addiu $3, $4, 14
TAG403:
sh $3, 0($3)
lhu $1, 0($3)
lb $3, 0($3)
mflo $2
TAG404:
lw $4, 0($2)
sltiu $3, $2, 4
bltz $3, TAG405
mult $3, $2
TAG405:
beq $3, $3, TAG406
lb $3, 0($3)
mthi $3
lui $3, 5
TAG406:
slti $4, $3, 13
mult $4, $4
mult $4, $3
lw $3, 0($3)
TAG407:
bltz $3, TAG408
mthi $3
sra $2, $3, 12
divu $3, $3
TAG408:
bne $2, $2, TAG409
mtlo $2
mtlo $2
sltiu $4, $2, 11
TAG409:
xor $2, $4, $4
lb $4, 0($4)
mfhi $4
bltz $4, TAG410
TAG410:
lbu $4, 0($4)
or $1, $4, $4
mtlo $4
lui $4, 11
TAG411:
sll $0, $0, 0
mflo $1
lui $2, 14
mult $4, $1
TAG412:
sll $0, $0, 0
lui $2, 5
sll $0, $0, 0
lui $2, 4
TAG413:
sll $0, $0, 0
bltz $1, TAG414
lui $4, 7
lui $3, 8
TAG414:
sll $0, $0, 0
mtlo $3
lui $1, 4
srlv $3, $1, $3
TAG415:
bgtz $3, TAG416
sll $0, $0, 0
divu $3, $3
sh $3, 0($3)
TAG416:
bne $3, $3, TAG417
mult $3, $3
and $3, $3, $3
sll $0, $0, 0
TAG417:
slti $1, $4, 1
multu $1, $1
lui $1, 8
mthi $1
TAG418:
lui $1, 13
lui $3, 6
bgtz $1, TAG419
lui $4, 1
TAG419:
sll $0, $0, 0
sll $0, $0, 0
multu $4, $4
sltu $3, $4, $4
TAG420:
blez $3, TAG421
sltu $2, $3, $3
lhu $1, 0($3)
lb $1, 0($1)
TAG421:
mtlo $1
sll $0, $0, 0
bgez $3, TAG422
sll $2, $1, 1
TAG422:
sltu $3, $2, $2
lui $1, 0
bgez $2, TAG423
sllv $3, $1, $1
TAG423:
lui $3, 10
div $3, $3
mtlo $3
mtlo $3
TAG424:
lui $1, 3
mult $3, $3
bltz $3, TAG425
subu $4, $1, $1
TAG425:
mflo $4
lui $4, 7
beq $4, $4, TAG426
mthi $4
TAG426:
sll $0, $0, 0
sll $0, $0, 0
mthi $4
nor $1, $4, $1
TAG427:
bgez $1, TAG428
srlv $4, $1, $1
mthi $1
div $1, $4
TAG428:
xor $4, $4, $4
lb $2, 0($4)
mfhi $4
sb $4, 0($4)
TAG429:
mfhi $2
mflo $2
sltu $2, $2, $2
sh $4, 0($2)
TAG430:
lh $3, 0($2)
mflo $2
nor $4, $2, $3
sll $0, $0, 0
TAG431:
bgtz $4, TAG432
mthi $4
bgtz $4, TAG432
addiu $2, $4, 14
TAG432:
mflo $1
mult $1, $1
sll $0, $0, 0
sll $0, $0, 0
TAG433:
divu $1, $1
lui $2, 13
lui $4, 7
addu $1, $2, $4
TAG434:
mtlo $1
nor $4, $1, $1
lui $1, 6
bgez $4, TAG435
TAG435:
sll $0, $0, 0
sll $0, $0, 0
slt $1, $2, $2
sw $1, 0($1)
TAG436:
mthi $1
mult $1, $1
mtlo $1
multu $1, $1
TAG437:
bgez $1, TAG438
sw $1, 0($1)
lhu $1, 0($1)
mflo $2
TAG438:
or $1, $2, $2
divu $1, $1
sll $0, $0, 0
beq $2, $1, TAG439
TAG439:
sllv $4, $2, $2
srlv $3, $2, $2
lui $2, 9
sll $0, $0, 0
TAG440:
bne $2, $2, TAG441
sll $0, $0, 0
srlv $2, $2, $2
srav $2, $2, $2
TAG441:
sll $0, $0, 0
lui $2, 15
lui $4, 12
sltu $4, $3, $3
TAG442:
slti $4, $4, 10
mfhi $2
bgez $4, TAG443
lb $3, 0($4)
TAG443:
multu $3, $3
sb $3, 0($3)
bne $3, $3, TAG444
sra $4, $3, 11
TAG444:
srav $4, $4, $4
sra $4, $4, 4
sll $4, $4, 5
sw $4, 0($4)
TAG445:
bne $4, $4, TAG446
multu $4, $4
blez $4, TAG446
xor $2, $4, $4
TAG446:
sw $2, 0($2)
blez $2, TAG447
lui $3, 2
divu $3, $3
TAG447:
lui $2, 2
sll $0, $0, 0
subu $2, $3, $3
divu $3, $3
TAG448:
beq $2, $2, TAG449
and $1, $2, $2
beq $2, $1, TAG449
lhu $1, 0($1)
TAG449:
beq $1, $1, TAG450
mflo $4
lui $4, 13
beq $4, $1, TAG450
TAG450:
divu $4, $4
sb $4, 0($4)
mflo $1
srl $2, $4, 0
TAG451:
sb $2, 0($2)
bgtz $2, TAG452
lb $3, 0($2)
bgez $2, TAG452
TAG452:
lui $1, 3
beq $3, $3, TAG453
mtlo $3
mtlo $3
TAG453:
mflo $1
addu $1, $1, $1
lui $2, 14
bne $1, $1, TAG454
TAG454:
sll $0, $0, 0
mfhi $1
sltiu $3, $1, 12
lbu $2, 0($3)
TAG455:
andi $2, $2, 11
divu $2, $2
lbu $1, 0($2)
lb $3, 0($1)
TAG456:
sb $3, 0($3)
mfhi $4
or $2, $3, $4
mtlo $4
TAG457:
mtlo $2
sb $2, 0($2)
sb $2, 0($2)
lui $2, 9
TAG458:
lui $4, 2
or $2, $4, $2
addu $1, $2, $2
mflo $3
TAG459:
mthi $3
lb $4, 0($3)
bne $4, $3, TAG460
lui $1, 12
TAG460:
sll $0, $0, 0
sll $0, $0, 0
blez $1, TAG461
mthi $1
TAG461:
mult $1, $1
sll $0, $0, 0
blez $1, TAG462
mfhi $4
TAG462:
mult $4, $4
sh $4, -144($4)
mthi $4
sh $4, -144($4)
TAG463:
sll $0, $0, 0
sw $4, -144($4)
sb $4, -144($4)
addiu $2, $4, 12
TAG464:
mfhi $1
sw $2, -144($1)
srlv $3, $1, $2
sw $2, -144($1)
TAG465:
lui $4, 12
lui $4, 9
mthi $4
sll $0, $0, 0
TAG466:
beq $1, $1, TAG467
divu $1, $1
sw $1, 0($1)
srl $2, $1, 9
TAG467:
mfhi $3
mult $2, $2
nor $2, $2, $2
srav $4, $2, $2
TAG468:
mflo $4
blez $4, TAG469
xori $3, $4, 14
lui $2, 9
TAG469:
mtlo $2
sll $0, $0, 0
slti $2, $2, 9
beq $2, $2, TAG470
TAG470:
lhu $1, 0($2)
sh $2, -156($1)
mtlo $2
sltu $4, $1, $1
TAG471:
lhu $3, 0($4)
mflo $1
mult $3, $3
bltz $1, TAG472
TAG472:
mult $1, $1
addi $3, $1, 4
and $3, $3, $3
lb $2, 0($3)
TAG473:
lui $3, 3
slti $3, $3, 4
sb $2, 0($3)
mflo $2
TAG474:
xori $3, $2, 11
mfhi $1
beq $2, $1, TAG475
lui $4, 2
TAG475:
subu $4, $4, $4
sh $4, 0($4)
beq $4, $4, TAG476
lh $3, 0($4)
TAG476:
sb $3, 0($3)
lb $2, 0($3)
mtlo $3
sh $3, 0($2)
TAG477:
lui $3, 5
mtlo $3
mthi $2
mtlo $2
TAG478:
blez $3, TAG479
mthi $3
addiu $1, $3, 14
divu $3, $1
TAG479:
andi $4, $1, 8
mthi $1
bne $4, $4, TAG480
addu $4, $1, $1
TAG480:
bltz $4, TAG481
mfhi $4
mtlo $4
divu $4, $4
TAG481:
sll $0, $0, 0
nor $2, $2, $4
divu $2, $2
sll $0, $0, 0
TAG482:
xori $3, $2, 14
beq $3, $2, TAG483
sll $0, $0, 0
mfhi $3
TAG483:
mfhi $2
blez $2, TAG484
add $1, $3, $2
divu $2, $1
TAG484:
slti $3, $1, 3
bgez $3, TAG485
mtlo $3
sb $1, 0($3)
TAG485:
mflo $3
mtlo $3
blez $3, TAG486
mtlo $3
TAG486:
mtlo $3
bne $3, $3, TAG487
mtlo $3
addiu $1, $3, 7
TAG487:
bltz $1, TAG488
lui $3, 1
mthi $1
mtlo $1
TAG488:
mtlo $3
bltz $3, TAG489
sll $0, $0, 0
sll $0, $0, 0
TAG489:
blez $2, TAG490
lhu $1, 0($2)
sb $2, 0($2)
sw $1, 0($1)
TAG490:
sb $1, 0($1)
lh $3, 0($1)
lw $3, 0($1)
beq $3, $3, TAG491
TAG491:
lui $3, 2
sll $0, $0, 0
beq $3, $3, TAG492
subu $4, $3, $3
TAG492:
mflo $1
bltz $1, TAG493
xor $3, $4, $1
bgez $3, TAG493
TAG493:
ori $2, $3, 4
sll $0, $0, 0
mfhi $3
lui $2, 13
TAG494:
mthi $2
slti $4, $2, 13
srl $3, $4, 12
lui $1, 8
TAG495:
mult $1, $1
srlv $3, $1, $1
div $3, $3
sra $4, $1, 7
TAG496:
and $4, $4, $4
sll $4, $4, 15
addiu $2, $4, 11
beq $2, $4, TAG497
TAG497:
sll $0, $0, 0
mthi $2
sll $3, $4, 7
ori $3, $2, 13
TAG498:
sll $0, $0, 0
srlv $3, $3, $3
blez $3, TAG499
divu $3, $3
TAG499:
mtlo $3
xori $1, $3, 14
srlv $1, $3, $3
slt $4, $3, $1
TAG500:
sh $4, 0($4)
mthi $4
lui $3, 10
multu $3, $3
TAG501:
sll $0, $0, 0
sll $0, $0, 0
mfhi $1
blez $3, TAG502
TAG502:
sw $1, 0($1)
mthi $1
sra $1, $1, 10
beq $1, $1, TAG503
TAG503:
sh $1, 0($1)
bne $1, $1, TAG504
sb $1, 0($1)
beq $1, $1, TAG504
TAG504:
mfhi $1
sh $1, 0($1)
lui $4, 9
sra $2, $4, 3
TAG505:
mthi $2
bne $2, $2, TAG506
lui $1, 4
mthi $2
TAG506:
lui $2, 15
subu $1, $1, $2
lui $2, 12
mthi $2
TAG507:
sll $1, $2, 10
mult $1, $1
beq $1, $2, TAG508
lui $1, 5
TAG508:
mfhi $4
slt $3, $1, $1
divu $4, $4
mflo $2
TAG509:
blez $2, TAG510
multu $2, $2
bne $2, $2, TAG510
sb $2, 0($2)
TAG510:
andi $3, $2, 10
mult $3, $3
sb $2, 0($2)
mult $3, $2
TAG511:
sltiu $2, $3, 13
bne $2, $2, TAG512
lb $2, 0($3)
bgez $2, TAG512
TAG512:
multu $2, $2
mtlo $2
bgtz $2, TAG513
lw $3, 0($2)
TAG513:
mthi $3
mtlo $3
div $3, $3
lui $1, 5
TAG514:
bltz $1, TAG515
sll $0, $0, 0
bne $1, $1, TAG515
subu $2, $1, $1
TAG515:
mult $2, $2
sh $2, 0($2)
multu $2, $2
lh $2, 0($2)
TAG516:
lui $3, 10
mthi $3
sll $0, $0, 0
lui $1, 6
TAG517:
mfhi $4
sll $0, $0, 0
mflo $4
bgez $4, TAG518
TAG518:
lhu $4, 0($4)
bgtz $4, TAG519
xori $4, $4, 15
mult $4, $4
TAG519:
sllv $1, $4, $4
bltz $4, TAG520
lui $4, 12
mtlo $1
TAG520:
div $4, $4
sll $0, $0, 0
sll $0, $0, 0
mthi $2
TAG521:
lui $3, 6
mtlo $3
lui $3, 0
mflo $4
TAG522:
beq $4, $4, TAG523
addiu $3, $4, 8
and $1, $4, $4
mtlo $1
TAG523:
mflo $1
bltz $1, TAG524
and $4, $1, $1
sll $0, $0, 0
TAG524:
lui $3, 4
and $2, $3, $3
mthi $4
mult $3, $3
TAG525:
div $2, $2
sll $0, $0, 0
beq $2, $2, TAG526
subu $2, $2, $2
TAG526:
mflo $1
lui $4, 6
multu $1, $1
mflo $2
TAG527:
sb $2, 0($2)
slti $2, $2, 11
bgez $2, TAG528
mthi $2
TAG528:
lb $1, 0($2)
mthi $2
sb $2, 0($2)
addiu $3, $1, 5
TAG529:
sh $3, 0($3)
mtlo $3
sb $3, 0($3)
sh $3, 0($3)
TAG530:
divu $3, $3
xori $4, $3, 2
sh $3, 0($3)
mfhi $2
TAG531:
multu $2, $2
multu $2, $2
addiu $2, $2, 13
mtlo $2
TAG532:
mflo $1
mfhi $2
mfhi $3
and $2, $2, $3
TAG533:
xori $3, $2, 14
sra $1, $2, 11
lbu $3, 0($2)
slti $4, $1, 6
TAG534:
sb $4, 0($4)
mtlo $4
mfhi $2
lb $3, 0($2)
TAG535:
multu $3, $3
mult $3, $3
sh $3, 0($3)
beq $3, $3, TAG536
TAG536:
lb $2, 0($3)
mtlo $3
bgtz $2, TAG537
multu $3, $3
TAG537:
bne $2, $2, TAG538
sll $4, $2, 13
sltu $3, $4, $4
beq $4, $3, TAG538
TAG538:
lb $3, 0($3)
bltz $3, TAG539
sh $3, 0($3)
bne $3, $3, TAG539
TAG539:
mthi $3
mult $3, $3
lui $2, 1
lui $4, 5
TAG540:
mflo $3
sllv $3, $3, $4
addi $1, $3, 10
sra $3, $3, 14
TAG541:
lw $4, 0($3)
bne $3, $3, TAG542
lui $4, 2
sll $0, $0, 0
TAG542:
sll $0, $0, 0
multu $4, $4
sll $0, $0, 0
bne $3, $2, TAG543
TAG543:
lhu $4, 0($3)
bne $4, $4, TAG544
mtlo $4
bne $4, $4, TAG544
TAG544:
sb $4, 0($4)
lui $3, 6
mfhi $3
sh $3, 0($4)
TAG545:
mult $3, $3
sb $3, 0($3)
bgez $3, TAG546
lh $2, 0($3)
TAG546:
subu $2, $2, $2
lhu $2, 0($2)
bgtz $2, TAG547
div $2, $2
TAG547:
sb $2, 0($2)
lui $4, 2
srl $4, $4, 0
andi $2, $2, 0
TAG548:
mthi $2
mult $2, $2
lh $2, 0($2)
sh $2, 0($2)
TAG549:
blez $2, TAG550
lh $1, 0($2)
divu $2, $2
ori $4, $2, 10
TAG550:
sh $4, 0($4)
mfhi $3
multu $4, $3
mflo $1
TAG551:
bltz $1, TAG552
lui $4, 5
mflo $1
mtlo $1
TAG552:
mtlo $1
bne $1, $1, TAG553
multu $1, $1
multu $1, $1
TAG553:
mthi $1
mflo $2
multu $2, $1
mult $1, $1
TAG554:
mfhi $3
bne $2, $2, TAG555
and $1, $3, $3
mfhi $4
TAG555:
sw $4, 0($4)
mtlo $4
lbu $2, 0($4)
lui $3, 0
TAG556:
srlv $3, $3, $3
sb $3, 0($3)
lbu $2, 0($3)
lw $3, 0($3)
TAG557:
lui $3, 2
bgez $3, TAG558
sra $2, $3, 13
lui $1, 14
TAG558:
srlv $4, $1, $1
multu $4, $4
bne $1, $4, TAG559
multu $1, $1
TAG559:
lui $1, 0
mfhi $1
mult $1, $1
lh $4, 0($1)
TAG560:
bgtz $4, TAG561
lhu $2, 0($4)
slti $1, $4, 15
lbu $1, 0($1)
TAG561:
bltz $1, TAG562
mtlo $1
sltu $2, $1, $1
bgtz $1, TAG562
TAG562:
lhu $2, 0($2)
mfhi $1
mfhi $4
addiu $3, $4, 8
TAG563:
sw $3, 0($3)
mfhi $4
mult $4, $4
beq $3, $3, TAG564
TAG564:
addiu $4, $4, 8
mtlo $4
multu $4, $4
lh $1, 0($4)
TAG565:
ori $4, $1, 4
mflo $1
lui $2, 0
mtlo $4
TAG566:
lhu $3, 0($2)
bne $2, $2, TAG567
addi $4, $3, 5
addi $2, $2, 13
TAG567:
srlv $2, $2, $2
addu $1, $2, $2
xori $3, $1, 3
divu $2, $3
TAG568:
mfhi $1
beq $3, $3, TAG569
lb $3, 0($1)
nor $2, $1, $1
TAG569:
xor $3, $2, $2
subu $3, $3, $2
lw $4, 0($3)
mflo $2
TAG570:
bne $2, $2, TAG571
mfhi $4
lui $3, 8
sw $4, 0($2)
TAG571:
mtlo $3
addu $3, $3, $3
mtlo $3
bgtz $3, TAG572
TAG572:
mfhi $4
mfhi $2
lui $3, 4
bgez $2, TAG573
TAG573:
sll $0, $0, 0
mfhi $4
mflo $4
sll $0, $0, 0
TAG574:
divu $4, $4
sll $0, $0, 0
sll $0, $0, 0
xori $2, $4, 1
TAG575:
mthi $2
sll $0, $0, 0
addiu $1, $2, 8
addiu $1, $1, 5
TAG576:
sra $3, $1, 11
addiu $3, $3, 6
lh $2, -518($3)
mthi $3
TAG577:
subu $3, $2, $2
ori $2, $2, 6
xor $3, $2, $3
lui $2, 9
TAG578:
mflo $4
mfhi $3
nor $1, $3, $2
sll $0, $0, 0
TAG579:
blez $1, TAG580
sltu $1, $1, $1
bne $1, $1, TAG580
lui $2, 6
TAG580:
mthi $2
beq $2, $2, TAG581
srl $3, $2, 6
bgtz $2, TAG581
TAG581:
mflo $4
lb $3, -9216($3)
slti $1, $3, 13
lb $1, 0($4)
TAG582:
mult $1, $1
beq $1, $1, TAG583
lui $2, 13
sra $4, $1, 5
TAG583:
sll $1, $4, 5
andi $1, $1, 6
subu $2, $4, $4
multu $4, $1
TAG584:
sh $2, 0($2)
mfhi $1
mthi $2
sb $2, 0($2)
TAG585:
andi $3, $1, 3
lui $2, 5
add $2, $1, $3
lui $3, 4
TAG586:
mtlo $3
sll $0, $0, 0
xor $4, $3, $3
sll $0, $0, 0
TAG587:
beq $4, $4, TAG588
multu $4, $4
lui $4, 13
mtlo $4
TAG588:
bgtz $4, TAG589
lb $1, 0($4)
sltu $1, $1, $1
sw $1, 0($1)
TAG589:
bgez $1, TAG590
addu $2, $1, $1
div $2, $1
sll $3, $1, 11
TAG590:
sltiu $3, $3, 2
lui $2, 14
bltz $3, TAG591
lw $1, 0($3)
TAG591:
addi $2, $1, 13
mfhi $3
subu $4, $3, $2
lui $3, 14
TAG592:
subu $4, $3, $3
bne $3, $4, TAG593
srl $1, $3, 5
sh $4, 0($3)
TAG593:
sh $1, -28672($1)
mflo $3
beq $1, $1, TAG594
mthi $3
TAG594:
mflo $1
bltz $3, TAG595
mflo $3
or $2, $3, $3
TAG595:
lw $1, 0($2)
lh $2, -28672($1)
sll $1, $2, 0
bgez $2, TAG596
TAG596:
mflo $1
sllv $4, $1, $1
srl $4, $4, 0
bne $4, $4, TAG597
TAG597:
mflo $4
sh $4, 0($4)
multu $4, $4
mfhi $3
TAG598:
sltiu $3, $3, 4
mflo $1
lbu $3, 0($3)
multu $3, $3
TAG599:
lui $1, 1
addu $3, $1, $3
lui $1, 11
mtlo $1
TAG600:
lui $1, 9
bne $1, $1, TAG601
sra $3, $1, 9
mflo $1
TAG601:
mflo $1
mflo $3
addiu $4, $1, 13
div $4, $3
TAG602:
sll $0, $0, 0
mult $4, $4
mthi $4
beq $2, $4, TAG603
TAG603:
slt $4, $2, $2
lw $2, -28672($2)
mfhi $2
lui $4, 8
TAG604:
multu $4, $4
multu $4, $4
mflo $2
bgez $4, TAG605
TAG605:
mflo $3
lui $4, 5
bne $2, $2, TAG606
sb $4, 0($2)
TAG606:
mtlo $4
mtlo $4
mult $4, $4
beq $4, $4, TAG607
TAG607:
nor $2, $4, $4
mflo $2
mtlo $2
addiu $1, $4, 14
TAG608:
sll $0, $0, 0
sll $0, $0, 0
lui $1, 13
sllv $3, $1, $1
TAG609:
sll $0, $0, 0
sw $3, 0($2)
mult $3, $3
nor $2, $3, $3
TAG610:
addiu $3, $2, 11
beq $3, $3, TAG611
sll $0, $0, 0
xor $3, $4, $4
TAG611:
mult $3, $3
sll $1, $3, 6
sll $0, $0, 0
bgez $3, TAG612
TAG612:
mflo $1
slti $4, $1, 9
beq $1, $1, TAG613
sll $0, $0, 0
TAG613:
mult $4, $4
sb $4, 0($4)
lui $2, 15
mthi $2
TAG614:
bne $2, $2, TAG615
sll $0, $0, 0
lui $2, 13
bgez $2, TAG615
TAG615:
mflo $4
addu $3, $2, $2
divu $2, $2
mflo $3
TAG616:
mthi $3
and $4, $3, $3
mfhi $2
mtlo $3
TAG617:
mthi $2
bne $2, $2, TAG618
lui $3, 12
div $2, $2
TAG618:
xori $3, $3, 11
bltz $3, TAG619
sll $0, $0, 0
srav $4, $3, $3
TAG619:
sw $4, -384($4)
sh $4, -384($4)
mtlo $4
lw $2, -384($4)
TAG620:
mtlo $2
lui $1, 14
sll $0, $0, 0
sll $0, $0, 0
TAG621:
sll $0, $0, 0
bgez $1, TAG622
mfhi $2
bgez $2, TAG622
TAG622:
mthi $2
lui $3, 1
sll $0, $0, 0
mtlo $3
TAG623:
addu $3, $3, $3
bne $3, $3, TAG624
mtlo $3
lui $4, 6
TAG624:
mtlo $4
mflo $4
sll $0, $0, 0
divu $4, $1
TAG625:
ori $4, $1, 3
mult $4, $4
bgez $1, TAG626
sltiu $3, $1, 5
TAG626:
sra $4, $3, 13
mfhi $2
multu $3, $2
mflo $3
TAG627:
mflo $3
and $3, $3, $3
addiu $1, $3, 4
mfhi $2
TAG628:
blez $2, TAG629
mthi $2
blez $2, TAG629
sltiu $1, $2, 3
TAG629:
blez $1, TAG630
or $4, $1, $1
mflo $2
blez $2, TAG630
TAG630:
mflo $3
srav $1, $3, $2
ori $4, $3, 5
lhu $4, 0($2)
TAG631:
bne $4, $4, TAG632
div $4, $4
and $4, $4, $4
divu $4, $4
TAG632:
srlv $3, $4, $4
lw $3, -384($3)
blez $3, TAG633
lb $1, -384($3)
TAG633:
sra $1, $1, 2
sb $1, 32($1)
bltz $1, TAG634
addu $1, $1, $1
TAG634:
sll $0, $0, 0
sh $4, -384($4)
slti $4, $4, 4
mtlo $4
TAG635:
bgez $4, TAG636
lui $1, 13
lui $2, 10
bgez $1, TAG636
TAG636:
lui $3, 8
mthi $2
mflo $1
mtlo $2
TAG637:
sw $1, 0($1)
mfhi $2
lui $2, 8
beq $2, $2, TAG638
TAG638:
lui $1, 5
divu $1, $2
mfhi $2
bgez $2, TAG639
TAG639:
sll $0, $0, 0
beq $2, $2, TAG640
ori $3, $2, 11
lui $3, 13
TAG640:
mfhi $1
beq $1, $1, TAG641
sll $0, $0, 0
sb $3, 0($3)
TAG641:
sll $0, $0, 0
sll $0, $0, 0
lui $4, 2
beq $4, $1, TAG642
TAG642:
multu $4, $4
mflo $4
mult $4, $4
sb $4, 0($4)
TAG643:
blez $4, TAG644
mtlo $4
sb $4, 0($4)
bgtz $4, TAG644
TAG644:
mthi $4
lui $2, 1
bgez $4, TAG645
lui $2, 10
TAG645:
sltiu $4, $2, 12
multu $4, $2
lui $3, 2
lui $4, 5
TAG646:
sll $0, $0, 0
lui $3, 8
xori $2, $4, 0
sll $0, $0, 0
TAG647:
lui $4, 5
lui $1, 8
and $4, $2, $2
bgtz $4, TAG648
TAG648:
addiu $1, $4, 12
slti $4, $1, 13
sh $1, 0($4)
bltz $1, TAG649
TAG649:
xor $3, $4, $4
bne $4, $3, TAG650
lui $3, 14
bgez $3, TAG650
TAG650:
mfhi $1
sll $0, $0, 0
lui $1, 0
mult $1, $1
TAG651:
lui $3, 15
beq $3, $3, TAG652
addu $2, $1, $1
blez $1, TAG652
TAG652:
sw $2, 0($2)
sh $2, 0($2)
mthi $2
mthi $2
TAG653:
beq $2, $2, TAG654
mtlo $2
mflo $2
mtlo $2
TAG654:
lhu $3, 0($2)
sltiu $2, $2, 6
lui $2, 14
mult $2, $2
TAG655:
beq $2, $2, TAG656
lui $4, 3
nor $3, $4, $2
mthi $3
TAG656:
lb $3, 0($3)
sh $3, 0($3)
lui $4, 5
mfhi $4
TAG657:
beq $4, $4, TAG658
lui $4, 2
bgez $4, TAG658
mfhi $3
TAG658:
bgtz $3, TAG659
mthi $3
blez $3, TAG659
sh $3, 0($3)
TAG659:
beq $3, $3, TAG660
mult $3, $3
mflo $3
sb $3, 0($3)
TAG660:
sltiu $2, $3, 7
lui $1, 3
mflo $3
sll $0, $0, 0
TAG661:
mthi $3
mfhi $2
subu $2, $3, $3
lui $3, 2
TAG662:
lui $4, 3
blez $3, TAG663
sll $0, $0, 0
bgtz $4, TAG663
TAG663:
sll $0, $0, 0
bgtz $1, TAG664
mflo $3
or $1, $3, $1
TAG664:
mthi $1
addu $1, $1, $1
mtlo $1
beq $1, $1, TAG665
TAG665:
mtlo $1
lui $4, 14
sll $0, $0, 0
bne $1, $1, TAG666
TAG666:
subu $1, $1, $1
sltiu $1, $1, 7
lui $4, 12
sb $4, 0($1)
TAG667:
bltz $4, TAG668
nor $1, $4, $4
mtlo $4
mflo $1
TAG668:
and $4, $1, $1
sll $0, $0, 0
addiu $3, $4, 10
multu $3, $4
TAG669:
mtlo $3
mtlo $3
lui $1, 1
addu $3, $1, $3
TAG670:
lui $2, 5
addiu $4, $3, 5
srlv $1, $3, $2
beq $2, $4, TAG671
TAG671:
mflo $4
bgtz $1, TAG672
multu $1, $4
mtlo $4
TAG672:
lui $3, 8
slti $1, $4, 6
sll $0, $0, 0
lui $2, 1
TAG673:
mtlo $2
slt $4, $2, $2
sw $4, 0($4)
mult $4, $4
TAG674:
bltz $4, TAG675
sltu $2, $4, $4
sh $4, 0($4)
mflo $4
TAG675:
mflo $3
slt $1, $3, $3
sllv $2, $3, $3
mult $2, $3
TAG676:
sltu $4, $2, $2
lui $1, 7
mult $4, $4
multu $2, $2
TAG677:
mflo $4
bgtz $1, TAG678
sll $0, $0, 0
nor $3, $4, $4
TAG678:
lui $2, 5
mflo $1
mflo $1
multu $1, $2
TAG679:
bne $1, $1, TAG680
sb $1, 0($1)
bne $1, $1, TAG680
mthi $1
TAG680:
sh $1, 0($1)
xor $2, $1, $1
mthi $1
lui $2, 8
TAG681:
mult $2, $2
srav $4, $2, $2
mflo $2
bne $4, $2, TAG682
TAG682:
multu $2, $2
lui $4, 8
mthi $2
slt $4, $4, $2
TAG683:
mflo $1
srav $1, $4, $4
mtlo $1
lhu $2, 0($1)
TAG684:
xor $2, $2, $2
sllv $3, $2, $2
bgtz $3, TAG685
lui $2, 5
TAG685:
lui $1, 1
mtlo $2
mflo $3
mflo $4
TAG686:
mthi $4
mtlo $4
lui $1, 3
ori $1, $1, 8
TAG687:
lui $1, 10
mfhi $3
bne $3, $3, TAG688
lui $4, 4
TAG688:
sll $0, $0, 0
sllv $2, $4, $4
sll $0, $0, 0
bgez $2, TAG689
TAG689:
sltiu $4, $2, 14
blez $4, TAG690
sll $0, $0, 0
lw $4, 0($4)
TAG690:
mflo $2
sb $2, 0($4)
sll $0, $0, 0
srl $1, $2, 13
TAG691:
bne $1, $1, TAG692
mfhi $4
mthi $1
sll $0, $0, 0
TAG692:
sll $0, $0, 0
lui $1, 13
sll $0, $0, 0
mflo $4
TAG693:
beq $4, $4, TAG694
xori $1, $4, 14
sw $1, 0($4)
divu $1, $4
TAG694:
beq $1, $1, TAG695
lui $4, 1
mfhi $4
addi $3, $4, 6
TAG695:
addu $4, $3, $3
sll $0, $0, 0
sll $0, $0, 0
bgtz $3, TAG696
TAG696:
mflo $4
sllv $2, $4, $4
xori $2, $2, 4
mtlo $2
TAG697:
subu $3, $2, $2
lui $1, 11
multu $2, $3
sll $0, $0, 0
TAG698:
lui $4, 0
mflo $3
sw $2, 0($4)
sub $3, $4, $4
TAG699:
lui $3, 3
mfhi $4
srl $2, $3, 9
ori $4, $3, 6
TAG700:
sll $0, $0, 0
sll $0, $0, 0
mfhi $4
bgtz $3, TAG701
TAG701:
subu $4, $4, $4
multu $4, $4
lui $3, 6
beq $4, $3, TAG702
TAG702:
mflo $1
sub $2, $3, $1
beq $1, $2, TAG703
sltu $4, $3, $1
TAG703:
multu $4, $4
mtlo $4
sw $4, 0($4)
mthi $4
TAG704:
sh $4, 0($4)
andi $3, $4, 1
multu $3, $3
beq $3, $3, TAG705
TAG705:
mult $3, $3
lui $2, 0
srl $2, $3, 13
lb $3, 0($3)
TAG706:
lui $2, 10
lui $4, 11
bgtz $3, TAG707
lui $2, 9
TAG707:
mflo $2
mult $2, $2
blez $2, TAG708
lui $3, 10
TAG708:
sll $0, $0, 0
mtlo $4
bne $4, $4, TAG709
mult $3, $3
TAG709:
mflo $1
div $4, $4
addiu $3, $4, 4
bltz $4, TAG710
TAG710:
lui $3, 10
mflo $1
lui $1, 7
div $1, $1
TAG711:
slti $1, $1, 12
subu $2, $1, $1
multu $2, $2
slti $1, $1, 9
TAG712:
sb $1, 0($1)
lui $1, 9
blez $1, TAG713
multu $1, $1
TAG713:
sll $0, $0, 0
mfhi $4
addiu $4, $4, 1
sll $0, $0, 0
TAG714:
mthi $4
lui $4, 12
bgtz $4, TAG715
lui $1, 12
TAG715:
sll $0, $0, 0
lui $1, 7
sll $0, $0, 0
andi $4, $1, 13
TAG716:
mult $4, $4
beq $4, $4, TAG717
mthi $4
bne $4, $4, TAG717
TAG717:
sh $4, 0($4)
sw $4, 0($4)
lui $1, 11
addiu $3, $1, 8
TAG718:
sll $0, $0, 0
mfhi $1
sll $1, $3, 12
beq $1, $1, TAG719
TAG719:
mtlo $1
mflo $1
srl $4, $1, 10
ori $1, $1, 15
TAG720:
sll $0, $0, 0
bgtz $1, TAG721
divu $1, $1
bne $1, $1, TAG721
TAG721:
addu $3, $1, $1
sll $0, $0, 0
bne $1, $1, TAG722
mflo $1
TAG722:
lui $4, 10
sltiu $1, $1, 2
mflo $1
bgez $4, TAG723
TAG723:
mult $1, $1
lui $4, 1
sll $0, $0, 0
sll $0, $0, 0
TAG724:
sra $1, $4, 5
bgtz $1, TAG725
mfhi $2
bne $1, $4, TAG725
TAG725:
mtlo $2
mfhi $1
sh $1, 0($2)
bltz $2, TAG726
TAG726:
mult $1, $1
sll $3, $1, 13
lui $3, 2
lui $1, 6
TAG727:
bgez $1, TAG728
sll $0, $0, 0
lbu $4, 0($1)
multu $1, $4
TAG728:
sll $0, $0, 0
mthi $4
bgez $4, TAG729
mfhi $4
TAG729:
mtlo $4
bltz $4, TAG730
sll $0, $0, 0
multu $4, $4
TAG730:
xori $3, $4, 3
mfhi $2
srav $2, $4, $4
addu $4, $2, $2
TAG731:
mflo $1
multu $4, $4
divu $1, $4
lhu $3, 0($1)
TAG732:
mthi $3
sb $3, 0($3)
sltu $4, $3, $3
sb $4, 0($3)
TAG733:
addi $2, $4, 6
beq $4, $4, TAG734
xori $2, $4, 13
bne $2, $4, TAG734
TAG734:
or $4, $2, $2
bgez $2, TAG735
lb $4, 0($4)
lui $2, 3
TAG735:
blez $2, TAG736
sra $3, $2, 5
mfhi $3
sb $3, 0($3)
TAG736:
lhu $4, 0($3)
mthi $3
sh $3, 0($3)
lbu $2, 0($3)
TAG737:
andi $1, $2, 9
mflo $4
bne $2, $1, TAG738
mthi $4
TAG738:
ori $1, $4, 2
sllv $4, $1, $4
nor $3, $4, $4
bgtz $4, TAG739
TAG739:
or $1, $3, $3
mtlo $1
div $1, $3
sb $3, 3($3)
TAG740:
subu $4, $1, $1
lui $3, 11
multu $1, $3
mthi $4
TAG741:
multu $3, $3
beq $3, $3, TAG742
sra $1, $3, 9
lui $2, 9
TAG742:
mflo $3
lui $4, 10
sw $4, 0($2)
mfhi $4
TAG743:
slti $4, $4, 11
sb $4, 0($4)
add $1, $4, $4
mthi $1
TAG744:
lui $2, 5
sll $0, $0, 0
addiu $3, $2, 11
beq $1, $1, TAG745
TAG745:
addiu $4, $3, 0
ori $1, $3, 0
srav $1, $1, $4
beq $1, $4, TAG746
TAG746:
sltiu $2, $1, 3
lh $2, -160($1)
bgez $2, TAG747
lui $1, 7
TAG747:
mthi $1
divu $1, $1
bltz $1, TAG748
sll $0, $0, 0
TAG748:
nor $2, $1, $1
sll $0, $0, 0
bgez $2, TAG749
sll $0, $0, 0
TAG749:
nor $4, $1, $1
divu $4, $1
sll $0, $0, 0
bltz $4, TAG750
TAG750:
nop
nop
test_end:
beq $0, $0, test_end
nop | 11.935637 | 21 | 0.54314 |
45c506c0d0f51ca1a9c6d55f17dd2bcd4e288216 | 2,913 | asm | Assembly | game-projects/Sonic2/Objects/TitleScreen/SonicAndTailsIn/SonicAndTailsIn.asm | wide-dot/thomson-to8-game-engine | f305368ff28fba6e6bd03d0138a36ff5ea67e925 | [
"Apache-2.0"
] | 11 | 2021-09-07T18:45:06.000Z | 2022-02-15T06:36:19.000Z | game-projects/Sonic2/Objects/TitleScreen/SonicAndTailsIn/SonicAndTailsIn.asm | dougmasten/thomson-to8-game-engine | b1f29e3b650e2296a5058570173e1c9068bccbe4 | [
"Apache-2.0"
] | null | null | null | game-projects/Sonic2/Objects/TitleScreen/SonicAndTailsIn/SonicAndTailsIn.asm | dougmasten/thomson-to8-game-engine | b1f29e3b650e2296a5058570173e1c9068bccbe4 | [
"Apache-2.0"
] | 1 | 2021-11-22T08:43:52.000Z | 2021-11-22T08:43:52.000Z | ; ---------------------------------------------------------------------------
; Object - SonicAndTailsIn
;
; Display Sonic And Tails In ... message
;
; input REG : [u] pointer to Object Status Table (OST)
; ---------
;
; ---------------------------------------------------------------------------
INCLUDE "./Engine/Macros.asm"
Obj_PaletteFade equ Object_RAM+(object_size*1)
SonicAndTailsIn
lda routine,u
asla
ldx #SATI_Routines
jmp [a,x]
SATI_Routines
fdb SATI_clearScreen
fdb SATI_fadeIn
fdb SATI_fadeOut
fdb SATI_Wait
fdb SATI_End
SATI_clearScreen
ldx #$0000
jsr ClearDataMem
ldd #Img_SonicAndTailsIn
std image_set,u
ldd #$807F
std xy_pixel,u
lda render_flags,u
ora #render_overlay_mask
sta render_flags,u
ldb #1
stb priority,u
inc routine,u
jmp DisplaySprite
SATI_fadeIn
ldx #$0000
jsr ClearDataMem
ldx #Obj_PaletteFade
lda #ObjID_PaletteFade
sta id,x
ldd Cur_palette
std ext_variables,x
ldd #Pal_SonicAndTailsIn
std ext_variables+2,x
inc routine,u
ldd #$0000
std glb_Main_runcount
jmp DisplaySprite
SATI_fadeOut
ldd glb_Main_runcount
cmpd #3*50 ; 3 seconds
beq SATI_fadeOut_continue
rts
SATI_fadeOut_continue
ldx #Obj_PaletteFade
lda #ObjID_PaletteFade
sta id,x
ldd Cur_palette
std ext_variables,x
ldd #Black_palette
std ext_variables+2,x
inc routine,u
rts
SATI_Wait
ldx #Obj_PaletteFade
tst ,x
beq SATI_clearScreen_end
rts
SATI_clearScreen_end
ldx #$FFFF
jsr ClearDataMem
lda $E7DD * set border color
anda #$F0
adda #$01 ; color 1
sta $E7DD
anda #$01 ; color 1
adda #$80
sta glb_screen_border_color+1 * maj WaitVBL
inc routine,u
rts
SATI_End
ldx #$FFFF
jsr ClearDataMem
jsr DeleteObject
_ldd ObjID_TitleScreen,$01 ; Replace this object with Title Screen Object subtype 3
std ,u
ldu #Obj_PaletteFade
jsr ClearObj
rts
| 25.112069 | 110 | 0.431857 |
bacdb4ca774bed8459b40224ff35704c9b327831 | 232,817 | asm | Assembly | de.fhdo.lemma.intermediate.transformations/transformation/IntermediateServiceModelTransformation.asm | anonauthor1-fase2020/languages | 42d4e6d17715a59445993dcc8311fa4dd17b660d | [
"MIT"
] | null | null | null | de.fhdo.lemma.intermediate.transformations/transformation/IntermediateServiceModelTransformation.asm | anonauthor1-fase2020/languages | 42d4e6d17715a59445993dcc8311fa4dd17b660d | [
"MIT"
] | null | null | null | de.fhdo.lemma.intermediate.transformations/transformation/IntermediateServiceModelTransformation.asm | anonauthor1-fase2020/languages | 42d4e6d17715a59445993dcc8311fa4dd17b660d | [
"MIT"
] | null | null | null | <?xml version = '1.0' encoding = 'ISO-8859-1' ?>
<asm version="1.0" name="0">
<cp>
<constant value="IntermediateServiceModelTransformation"/>
<constant value="links"/>
<constant value="NTransientLinkSet;"/>
<constant value="col"/>
<constant value="J"/>
<constant value="createdImports"/>
<constant value="createdTechnologies"/>
<constant value="createdMicroservices"/>
<constant value="createdInterfaces"/>
<constant value="createdOperations"/>
<constant value="createdReferredOperations"/>
<constant value="createdParameters"/>
<constant value="createdMappedFields"/>
<constant value="main"/>
<constant value="A"/>
<constant value="OclParametrizedType"/>
<constant value="#native"/>
<constant value="Collection"/>
<constant value="J.setName(S):V"/>
<constant value="OclSimpleType"/>
<constant value="OclAny"/>
<constant value="J.setElementType(J):V"/>
<constant value="Map"/>
<constant value="TransientLinkSet"/>
<constant value="A.__matcher__():V"/>
<constant value="A.__exec__():V"/>
<constant value="14:78-14:83"/>
<constant value="37:87-37:92"/>
<constant value="66:90-66:95"/>
<constant value="88:84-88:89"/>
<constant value="109:84-109:89"/>
<constant value="131:7-131:12"/>
<constant value="155:84-155:89"/>
<constant value="177:7-177:12"/>
<constant value="self"/>
<constant value="__resolve__"/>
<constant value="1"/>
<constant value="J.oclIsKindOf(J):B"/>
<constant value="18"/>
<constant value="NTransientLinkSet;.getLinkBySourceElement(S):QNTransientLink;"/>
<constant value="J.oclIsUndefined():B"/>
<constant value="15"/>
<constant value="NTransientLink;.getTargetFromSource(J):J"/>
<constant value="17"/>
<constant value="30"/>
<constant value="Sequence"/>
<constant value="2"/>
<constant value="A.__resolve__(J):J"/>
<constant value="QJ.including(J):QJ"/>
<constant value="QJ.flatten():QJ"/>
<constant value="e"/>
<constant value="value"/>
<constant value="resolveTemp"/>
<constant value="S"/>
<constant value="NTransientLink;.getNamedTargetFromSource(JS):J"/>
<constant value="name"/>
<constant value="__matcher__"/>
<constant value="A.__matchIntermediateImport():V"/>
<constant value="A.__matchIntermediateMicroservice():V"/>
<constant value="A.__matchIntermediateInterface():V"/>
<constant value="A.__matchIntermediateOperation():V"/>
<constant value="A.__matchIntermediateReferredOperation():V"/>
<constant value="A.__matchIntermediateParameter():V"/>
<constant value="A.__matchIntermediateEndpoint():V"/>
<constant value="A.__matchMicroserviceReference():V"/>
<constant value="A.__matchInterfaceReference():V"/>
<constant value="A.__matchOperationReference():V"/>
<constant value="A.__matchIntermediateImportedAspect():V"/>
<constant value="__exec__"/>
<constant value="IntermediateImport"/>
<constant value="NTransientLinkSet;.getLinksByRule(S):QNTransientLink;"/>
<constant value="A.__applyIntermediateImport(NTransientLink;):V"/>
<constant value="IntermediateMicroservice"/>
<constant value="A.__applyIntermediateMicroservice(NTransientLink;):V"/>
<constant value="IntermediateInterface"/>
<constant value="A.__applyIntermediateInterface(NTransientLink;):V"/>
<constant value="IntermediateOperation"/>
<constant value="A.__applyIntermediateOperation(NTransientLink;):V"/>
<constant value="IntermediateReferredOperation"/>
<constant value="A.__applyIntermediateReferredOperation(NTransientLink;):V"/>
<constant value="IntermediateParameter"/>
<constant value="A.__applyIntermediateParameter(NTransientLink;):V"/>
<constant value="IntermediateEndpoint"/>
<constant value="A.__applyIntermediateEndpoint(NTransientLink;):V"/>
<constant value="MicroserviceReference"/>
<constant value="A.__applyMicroserviceReference(NTransientLink;):V"/>
<constant value="InterfaceReference"/>
<constant value="A.__applyInterfaceReference(NTransientLink;):V"/>
<constant value="OperationReference"/>
<constant value="A.__applyOperationReference(NTransientLink;):V"/>
<constant value="IntermediateImportedAspect"/>
<constant value="A.__applyIntermediateImportedAspect(NTransientLink;):V"/>
<constant value="CreatedImport"/>
<constant value="J.including(JJ):J"/>
<constant value="21:9-21:19"/>
<constant value="21:38-21:48"/>
<constant value="21:38-21:63"/>
<constant value="22:25-22:38"/>
<constant value="22:25-22:43"/>
<constant value="22:45-22:58"/>
<constant value="21:38-22:59"/>
<constant value="21:9-22:60"/>
<constant value="20:5-23:6"/>
<constant value="createdImport"/>
<constant value="getCreatedImport"/>
<constant value="J.get(J):J"/>
<constant value="29:41-29:51"/>
<constant value="29:41-29:66"/>
<constant value="29:72-29:84"/>
<constant value="29:72-29:89"/>
<constant value="29:41-29:90"/>
<constant value="sourceImport"/>
<constant value="CreatedTechnology"/>
<constant value="microservice"/>
<constant value="qualifiedName"/>
<constant value="::"/>
<constant value="J.concat(J):J"/>
<constant value="import"/>
<constant value="44:9-44:19"/>
<constant value="44:43-44:53"/>
<constant value="44:43-44:73"/>
<constant value="45:25-45:42"/>
<constant value="45:25-45:55"/>
<constant value="45:25-45:69"/>
<constant value="46:37-46:41"/>
<constant value="45:25-46:42"/>
<constant value="47:37-47:54"/>
<constant value="47:37-47:61"/>
<constant value="47:37-47:66"/>
<constant value="45:25-47:67"/>
<constant value="48:25-48:42"/>
<constant value="44:43-48:43"/>
<constant value="44:9-48:44"/>
<constant value="43:5-49:6"/>
<constant value="createdTechnology"/>
<constant value="getCreatedTechnology"/>
<constant value="3"/>
<constant value="56:41-56:53"/>
<constant value="56:41-56:67"/>
<constant value="56:75-56:79"/>
<constant value="56:41-56:80"/>
<constant value="56:88-56:94"/>
<constant value="56:88-56:99"/>
<constant value="56:41-56:100"/>
<constant value="58:5-58:15"/>
<constant value="58:5-58:35"/>
<constant value="58:41-58:61"/>
<constant value="58:5-58:62"/>
<constant value="56:5-58:62"/>
<constant value="technologyIdentifier"/>
<constant value="CreatedMicroservice"/>
<constant value="73:9-73:19"/>
<constant value="73:44-73:54"/>
<constant value="73:44-73:75"/>
<constant value="74:25-74:44"/>
<constant value="74:25-74:58"/>
<constant value="74:60-74:79"/>
<constant value="73:44-74:80"/>
<constant value="73:9-74:81"/>
<constant value="72:5-75:6"/>
<constant value="createdMicroservice"/>
<constant value="getCreatedMicroservice"/>
<constant value="."/>
<constant value="J.buildQualifiedName(J):J"/>
<constant value="82:5-82:15"/>
<constant value="82:5-82:36"/>
<constant value="82:42-82:60"/>
<constant value="82:80-82:83"/>
<constant value="82:42-82:84"/>
<constant value="82:5-82:85"/>
<constant value="sourceMicroservice"/>
<constant value="CreatedInterface"/>
<constant value="94:9-94:19"/>
<constant value="94:41-94:51"/>
<constant value="94:41-94:69"/>
<constant value="95:25-95:41"/>
<constant value="95:25-95:55"/>
<constant value="95:57-95:73"/>
<constant value="94:41-95:74"/>
<constant value="94:9-95:75"/>
<constant value="93:5-96:6"/>
<constant value="createdInterface"/>
<constant value="getCreatedInterface"/>
<constant value="103:5-103:15"/>
<constant value="103:5-103:33"/>
<constant value="103:39-103:54"/>
<constant value="103:74-103:77"/>
<constant value="103:39-103:78"/>
<constant value="103:5-103:79"/>
<constant value="sourceInterface"/>
<constant value="CreatedOperation"/>
<constant value="115:9-115:19"/>
<constant value="115:41-115:51"/>
<constant value="115:41-115:69"/>
<constant value="116:25-116:41"/>
<constant value="116:25-116:55"/>
<constant value="116:57-116:73"/>
<constant value="115:41-116:74"/>
<constant value="115:9-116:75"/>
<constant value="114:5-117:6"/>
<constant value="createdOperation"/>
<constant value="getCreatedOperation"/>
<constant value="124:5-124:15"/>
<constant value="124:5-124:33"/>
<constant value="124:39-124:54"/>
<constant value="124:74-124:77"/>
<constant value="124:39-124:78"/>
<constant value="124:5-124:79"/>
<constant value="sourceOperation"/>
<constant value="CreatedReferredOperation"/>
<constant value="qualifiedNameInReferringInterface"/>
<constant value="139:9-139:19"/>
<constant value="139:49-139:59"/>
<constant value="139:49-139:85"/>
<constant value="140:25-140:49"/>
<constant value="140:25-140:83"/>
<constant value="141:17-141:41"/>
<constant value="139:49-141:42"/>
<constant value="139:9-141:43"/>
<constant value="138:5-142:6"/>
<constant value="createdReferredOperation"/>
<constant value="getCreatedReferredOperation"/>
<constant value="149:5-149:15"/>
<constant value="149:5-149:41"/>
<constant value="149:47-149:70"/>
<constant value="149:90-149:93"/>
<constant value="149:47-149:94"/>
<constant value="149:5-149:95"/>
<constant value="sourceReferredOperation"/>
<constant value="CreatedParameter"/>
<constant value="161:9-161:19"/>
<constant value="161:41-161:51"/>
<constant value="161:41-161:69"/>
<constant value="162:25-162:41"/>
<constant value="162:25-162:55"/>
<constant value="162:57-162:73"/>
<constant value="161:41-162:74"/>
<constant value="161:9-162:75"/>
<constant value="160:5-163:6"/>
<constant value="createdParameter"/>
<constant value="getCreatedParameter"/>
<constant value="170:5-170:15"/>
<constant value="170:5-170:33"/>
<constant value="170:39-170:54"/>
<constant value="170:74-170:77"/>
<constant value="170:39-170:78"/>
<constant value="170:5-170:79"/>
<constant value="sourceParameter"/>
<constant value="CreatedMappedField"/>
<constant value="183:9-183:19"/>
<constant value="183:43-183:53"/>
<constant value="183:43-183:73"/>
<constant value="184:25-184:43"/>
<constant value="184:25-184:57"/>
<constant value="184:59-184:77"/>
<constant value="183:43-184:78"/>
<constant value="183:9-184:79"/>
<constant value="182:5-185:6"/>
<constant value="createdMappedField"/>
<constant value="getCreatedMappedField"/>
<constant value="J.buildQualifiedName(JJ):J"/>
<constant value="192:5-192:15"/>
<constant value="192:5-192:35"/>
<constant value="192:41-192:58"/>
<constant value="192:78-192:81"/>
<constant value="192:83-192:87"/>
<constant value="192:41-192:88"/>
<constant value="192:5-192:89"/>
<constant value="sourceMappedField"/>
<constant value="inputModel"/>
<constant value="ServiceModel"/>
<constant value="Service"/>
<constant value="J.allInstances():J"/>
<constant value="J.first():J"/>
<constant value="198:5-198:25"/>
<constant value="198:5-198:40"/>
<constant value="198:5-198:48"/>
<constant value="IntermediateServiceModel"/>
<constant value="MService!ServiceModel;"/>
<constant value="NTransientLinkSet;.getLinkByRuleAndSourceElement(SJ):QNTransientLink;"/>
<constant value="11"/>
<constant value="57"/>
<constant value="TransientLink"/>
<constant value="NTransientLink;.setRule(MATL!Rule;):V"/>
<constant value="s"/>
<constant value="NTransientLink;.addSourceElement(SJ):V"/>
<constant value="t"/>
<constant value="Intermediate"/>
<constant value="NTransientLink;.addTargetElement(SJ):V"/>
<constant value="NTransientLinkSet;.addLink2(NTransientLink;B):V"/>
<constant value="J.inputModel():J"/>
<constant value="t_modelUri"/>
<constant value="sourceModelUri"/>
<constant value="imports"/>
<constant value="microservices"/>
<constant value="207:31-207:41"/>
<constant value="207:31-207:54"/>
<constant value="207:31-207:65"/>
<constant value="207:13-207:65"/>
<constant value="208:24-208:34"/>
<constant value="208:13-208:34"/>
<constant value="209:30-209:40"/>
<constant value="209:13-209:40"/>
<constant value="206:9-210:10"/>
<constant value="__matchIntermediateImport"/>
<constant value="Import"/>
<constant value="IN"/>
<constant value="MMOF!Classifier;.allInstancesFrom(S):QJ"/>
<constant value="i"/>
<constant value="218:9-225:10"/>
<constant value="__applyIntermediateImport"/>
<constant value="NTransientLink;"/>
<constant value="NTransientLink;.getSourceElement(S):J"/>
<constant value="NTransientLink;.getTargetElement(S):J"/>
<constant value="importURI"/>
<constant value="importUri"/>
<constant value="J.getImportTypeName(J):J"/>
<constant value="importTypeName"/>
<constant value="J.IntermediateServiceModel():J"/>
<constant value="J.append(J):J"/>
<constant value="J.CreatedImport(J):J"/>
<constant value="219:21-219:22"/>
<constant value="219:21-219:27"/>
<constant value="219:13-219:27"/>
<constant value="220:26-220:27"/>
<constant value="220:26-220:37"/>
<constant value="220:13-220:37"/>
<constant value="224:31-224:41"/>
<constant value="224:60-224:61"/>
<constant value="224:31-224:62"/>
<constant value="224:13-224:62"/>
<constant value="228:9-228:19"/>
<constant value="228:9-228:46"/>
<constant value="228:58-228:68"/>
<constant value="228:58-228:95"/>
<constant value="228:58-229:21"/>
<constant value="229:30-229:31"/>
<constant value="228:58-229:32"/>
<constant value="228:9-229:33"/>
<constant value="232:9-232:19"/>
<constant value="232:34-232:35"/>
<constant value="232:9-232:37"/>
<constant value="226:5-233:6"/>
<constant value="link"/>
<constant value="getImportTypeName"/>
<constant value="importType"/>
<constant value="J.toString():J"/>
<constant value="#"/>
<constant value="J.startsWith(J):J"/>
<constant value="10"/>
<constant value="J.size():J"/>
<constant value="J.substring(JJ):J"/>
<constant value="239:38-239:44"/>
<constant value="239:38-239:55"/>
<constant value="239:38-239:66"/>
<constant value="241:9-241:26"/>
<constant value="241:38-241:41"/>
<constant value="241:9-241:42"/>
<constant value="244:9-244:26"/>
<constant value="242:9-242:26"/>
<constant value="242:37-242:38"/>
<constant value="242:40-242:57"/>
<constant value="242:40-242:64"/>
<constant value="242:9-242:65"/>
<constant value="241:5-245:10"/>
<constant value="238:5-245:10"/>
<constant value="rawImportTypeName"/>
<constant value="__matchIntermediateMicroservice"/>
<constant value="Microservice"/>
<constant value="m"/>
<constant value="253:9-267:10"/>
<constant value="__applyIntermediateMicroservice"/>
<constant value="t_sourceModelUri"/>
<constant value="J.oclIsUndefined():J"/>
<constant value="J.not():J"/>
<constant value="20"/>
<constant value="22"/>
<constant value="version"/>
<constant value="type"/>
<constant value="effectiveVisibility"/>
<constant value="visibility"/>
<constant value="effectivelyImplemented"/>
<constant value="serviceModel"/>
<constant value="technologyReferences"/>
<constant value="4"/>
<constant value="technology"/>
<constant value="CJ.including(J):CJ"/>
<constant value="J.IntermediateTechnology(JJ):J"/>
<constant value="J.t_effectiveProtocolSpecifications():J"/>
<constant value="100"/>
<constant value="118"/>
<constant value="protocols"/>
<constant value="protocol"/>
<constant value="dataFormat"/>
<constant value="J.IntermediateProtocolSpecification(JJ):J"/>
<constant value="J.CreatedMicroservice(J):J"/>
<constant value="254:39-254:40"/>
<constant value="254:39-254:57"/>
<constant value="254:39-254:74"/>
<constant value="254:35-254:74"/>
<constant value="257:21-257:31"/>
<constant value="257:21-257:58"/>
<constant value="257:21-257:73"/>
<constant value="255:21-255:22"/>
<constant value="255:21-255:39"/>
<constant value="254:31-258:22"/>
<constant value="254:13-258:22"/>
<constant value="259:21-259:22"/>
<constant value="259:21-259:27"/>
<constant value="259:13-259:27"/>
<constant value="260:24-260:25"/>
<constant value="260:24-260:33"/>
<constant value="260:13-260:33"/>
<constant value="261:30-261:31"/>
<constant value="261:51-261:54"/>
<constant value="261:30-261:55"/>
<constant value="261:13-261:55"/>
<constant value="262:21-262:22"/>
<constant value="262:21-262:27"/>
<constant value="262:13-262:27"/>
<constant value="263:27-263:28"/>
<constant value="263:27-263:48"/>
<constant value="263:13-263:48"/>
<constant value="264:39-264:40"/>
<constant value="264:39-264:63"/>
<constant value="264:13-264:63"/>
<constant value="266:29-266:39"/>
<constant value="266:29-266:66"/>
<constant value="266:13-266:66"/>
<constant value="270:28-270:29"/>
<constant value="270:28-270:50"/>
<constant value="270:64-270:65"/>
<constant value="270:64-270:76"/>
<constant value="270:28-270:77"/>
<constant value="271:13-271:23"/>
<constant value="271:47-271:57"/>
<constant value="271:59-271:60"/>
<constant value="271:13-271:62"/>
<constant value="270:9-272:10"/>
<constant value="277:9-277:19"/>
<constant value="277:9-277:46"/>
<constant value="277:64-277:74"/>
<constant value="277:64-278:40"/>
<constant value="277:64-278:54"/>
<constant value="278:63-278:64"/>
<constant value="277:64-278:65"/>
<constant value="277:9-278:66"/>
<constant value="281:17-281:18"/>
<constant value="281:17-281:54"/>
<constant value="281:17-281:71"/>
<constant value="281:13-281:71"/>
<constant value="282:35-282:36"/>
<constant value="282:35-282:72"/>
<constant value="283:17-283:18"/>
<constant value="283:32-283:33"/>
<constant value="283:32-283:43"/>
<constant value="284:21-284:31"/>
<constant value="284:66-284:79"/>
<constant value="284:85-284:95"/>
<constant value="284:66-284:96"/>
<constant value="285:25-285:38"/>
<constant value="285:44-285:56"/>
<constant value="285:25-285:57"/>
<constant value="284:21-285:58"/>
<constant value="283:32-286:18"/>
<constant value="283:17-286:19"/>
<constant value="282:13-287:14"/>
<constant value="281:9-287:14"/>
<constant value="289:9-289:19"/>
<constant value="289:40-289:41"/>
<constant value="289:9-289:43"/>
<constant value="268:5-290:6"/>
<constant value="r"/>
<constant value="specification"/>
<constant value="IntermediateTechnology"/>
<constant value="J.getCreatedImport(J):J"/>
<constant value="technologies"/>
<constant value="29"/>
<constant value="35"/>
<constant value="J.=(J):J"/>
<constant value="J.CreatedTechnology(J):J"/>
<constant value="298:21-298:37"/>
<constant value="298:21-298:42"/>
<constant value="298:13-298:42"/>
<constant value="299:23-299:33"/>
<constant value="299:51-299:67"/>
<constant value="299:23-299:68"/>
<constant value="299:13-299:68"/>
<constant value="300:29-300:47"/>
<constant value="300:13-300:47"/>
<constant value="303:13-303:31"/>
<constant value="303:13-303:44"/>
<constant value="303:13-303:61"/>
<constant value="304:13-304:31"/>
<constant value="304:13-304:44"/>
<constant value="304:47-304:57"/>
<constant value="304:13-304:58"/>
<constant value="303:9-304:58"/>
<constant value="305:9-305:27"/>
<constant value="305:44-305:62"/>
<constant value="305:44-305:75"/>
<constant value="305:84-305:85"/>
<constant value="305:44-305:86"/>
<constant value="305:9-305:87"/>
<constant value="307:9-307:19"/>
<constant value="307:38-307:39"/>
<constant value="307:9-307:41"/>
<constant value="302:5-308:6"/>
<constant value="sourceTechnology"/>
<constant value="targetMicroservice"/>
<constant value="__matchIntermediateInterface"/>
<constant value="Interface"/>
<constant value="316:9-322:10"/>
<constant value="__applyIntermediateInterface"/>
<constant value="notImplemented"/>
<constant value="J.getCreatedMicroservice(J):J"/>
<constant value="operations"/>
<constant value="B.or(B):B"/>
<constant value="hasImplementedOperations"/>
<constant value="61"/>
<constant value="79"/>
<constant value="interfaces"/>
<constant value="J.CreatedInterface(J):J"/>
<constant value="317:21-317:22"/>
<constant value="317:21-317:27"/>
<constant value="317:13-317:27"/>
<constant value="318:30-318:31"/>
<constant value="318:51-318:54"/>
<constant value="318:30-318:55"/>
<constant value="318:13-318:55"/>
<constant value="319:27-319:28"/>
<constant value="319:27-319:48"/>
<constant value="319:13-319:48"/>
<constant value="320:31-320:32"/>
<constant value="320:31-320:47"/>
<constant value="320:13-320:47"/>
<constant value="321:29-321:39"/>
<constant value="321:63-321:64"/>
<constant value="321:63-321:77"/>
<constant value="321:29-321:78"/>
<constant value="321:13-321:78"/>
<constant value="324:9-324:10"/>
<constant value="324:39-324:40"/>
<constant value="324:39-324:51"/>
<constant value="324:68-324:69"/>
<constant value="324:68-324:84"/>
<constant value="324:64-324:84"/>
<constant value="324:39-324:85"/>
<constant value="324:9-324:86"/>
<constant value="326:17-326:18"/>
<constant value="326:17-326:54"/>
<constant value="326:17-326:71"/>
<constant value="326:13-326:71"/>
<constant value="327:35-327:36"/>
<constant value="327:35-327:72"/>
<constant value="328:17-328:18"/>
<constant value="328:32-328:33"/>
<constant value="328:32-328:43"/>
<constant value="329:21-329:31"/>
<constant value="329:66-329:79"/>
<constant value="329:85-329:95"/>
<constant value="329:66-329:96"/>
<constant value="330:25-330:38"/>
<constant value="330:44-330:56"/>
<constant value="330:25-330:57"/>
<constant value="329:21-330:58"/>
<constant value="328:32-331:18"/>
<constant value="328:17-331:19"/>
<constant value="327:13-332:14"/>
<constant value="326:9-332:14"/>
<constant value="334:9-334:10"/>
<constant value="334:9-334:23"/>
<constant value="334:38-334:39"/>
<constant value="334:38-334:52"/>
<constant value="334:38-334:63"/>
<constant value="334:72-334:73"/>
<constant value="334:38-334:74"/>
<constant value="334:9-334:75"/>
<constant value="336:9-336:19"/>
<constant value="336:37-336:38"/>
<constant value="336:9-336:40"/>
<constant value="323:5-337:6"/>
<constant value="o"/>
<constant value="__matchIntermediateOperation"/>
<constant value="Operation"/>
<constant value="345:9-351:10"/>
<constant value="__applyIntermediateOperation"/>
<constant value="interface"/>
<constant value="J.getCreatedInterface(J):J"/>
<constant value="apiOperationComment"/>
<constant value="49"/>
<constant value="55"/>
<constant value="J.IntermediateApiOperationComment(JJ):J"/>
<constant value="J.CreatedOperation(J):J"/>
<constant value="346:21-346:22"/>
<constant value="346:21-346:27"/>
<constant value="346:13-346:27"/>
<constant value="347:30-347:31"/>
<constant value="347:51-347:54"/>
<constant value="347:30-347:55"/>
<constant value="347:13-347:55"/>
<constant value="348:27-348:28"/>
<constant value="348:27-348:48"/>
<constant value="348:13-348:48"/>
<constant value="349:31-349:32"/>
<constant value="349:31-349:47"/>
<constant value="349:13-349:47"/>
<constant value="350:26-350:36"/>
<constant value="350:57-350:58"/>
<constant value="350:57-350:68"/>
<constant value="350:26-350:69"/>
<constant value="350:13-350:69"/>
<constant value="353:17-353:18"/>
<constant value="353:17-353:38"/>
<constant value="353:17-353:55"/>
<constant value="353:13-353:55"/>
<constant value="354:13-354:14"/>
<constant value="354:38-354:48"/>
<constant value="354:81-354:82"/>
<constant value="354:84-354:85"/>
<constant value="354:38-354:86"/>
<constant value="354:13-354:87"/>
<constant value="353:9-354:87"/>
<constant value="356:17-356:18"/>
<constant value="356:17-356:54"/>
<constant value="356:17-356:71"/>
<constant value="356:13-356:71"/>
<constant value="357:35-357:36"/>
<constant value="357:35-357:72"/>
<constant value="358:17-358:18"/>
<constant value="358:32-358:33"/>
<constant value="358:32-358:43"/>
<constant value="359:21-359:31"/>
<constant value="359:66-359:79"/>
<constant value="359:85-359:95"/>
<constant value="359:66-359:96"/>
<constant value="360:25-360:38"/>
<constant value="360:44-360:56"/>
<constant value="360:25-360:57"/>
<constant value="359:21-360:58"/>
<constant value="358:32-361:18"/>
<constant value="358:17-361:19"/>
<constant value="357:13-362:14"/>
<constant value="356:9-362:14"/>
<constant value="364:9-364:10"/>
<constant value="364:9-364:20"/>
<constant value="364:35-364:36"/>
<constant value="364:35-364:46"/>
<constant value="364:35-364:57"/>
<constant value="364:66-364:67"/>
<constant value="364:35-364:68"/>
<constant value="364:9-364:69"/>
<constant value="366:9-366:19"/>
<constant value="366:37-366:38"/>
<constant value="366:9-366:40"/>
<constant value="352:5-367:6"/>
<constant value="IntermediateApiOperationComment"/>
<constant value="comment"/>
<constant value="operation"/>
<constant value="374:55-374:70"/>
<constant value="374:55-374:90"/>
<constant value="378:24-378:37"/>
<constant value="378:24-378:45"/>
<constant value="378:13-378:45"/>
<constant value="379:26-379:41"/>
<constant value="379:13-379:41"/>
<constant value="382:9-382:10"/>
<constant value="382:9-382:11"/>
<constant value="381:5-383:6"/>
<constant value="sourceComment"/>
<constant value="targetOperation"/>
<constant value="__matchIntermediateReferredOperation"/>
<constant value="ReferredOperation"/>
<constant value="391:9-396:10"/>
<constant value="__applyIntermediateReferredOperation"/>
<constant value="nameInReferringInterface"/>
<constant value="J.getCreatedOperation(J):J"/>
<constant value="referringInterface"/>
<constant value="46"/>
<constant value="64"/>
<constant value="referredOperations"/>
<constant value="J.CreatedReferredOperation(J):J"/>
<constant value="392:41-392:42"/>
<constant value="392:41-392:52"/>
<constant value="392:41-392:57"/>
<constant value="392:13-392:57"/>
<constant value="393:50-393:51"/>
<constant value="393:71-393:74"/>
<constant value="393:50-393:75"/>
<constant value="393:13-393:75"/>
<constant value="394:26-394:36"/>
<constant value="394:57-394:58"/>
<constant value="394:57-394:68"/>
<constant value="394:26-394:69"/>
<constant value="394:13-394:69"/>
<constant value="395:35-395:45"/>
<constant value="395:66-395:67"/>
<constant value="395:66-395:77"/>
<constant value="395:35-395:78"/>
<constant value="395:13-395:78"/>
<constant value="398:17-398:18"/>
<constant value="398:17-398:54"/>
<constant value="398:17-398:71"/>
<constant value="398:13-398:71"/>
<constant value="399:35-399:36"/>
<constant value="399:35-399:72"/>
<constant value="400:17-400:18"/>
<constant value="400:32-400:33"/>
<constant value="400:32-400:43"/>
<constant value="401:21-401:31"/>
<constant value="401:66-401:79"/>
<constant value="401:85-401:95"/>
<constant value="401:66-401:96"/>
<constant value="402:25-402:38"/>
<constant value="402:44-402:56"/>
<constant value="402:25-402:57"/>
<constant value="401:21-402:58"/>
<constant value="400:32-403:18"/>
<constant value="400:17-403:19"/>
<constant value="399:13-404:14"/>
<constant value="398:9-404:14"/>
<constant value="406:9-406:10"/>
<constant value="406:9-406:29"/>
<constant value="406:52-406:53"/>
<constant value="406:52-406:72"/>
<constant value="406:52-407:32"/>
<constant value="407:41-407:42"/>
<constant value="406:52-407:43"/>
<constant value="406:9-407:44"/>
<constant value="409:9-409:19"/>
<constant value="409:45-409:46"/>
<constant value="409:9-409:48"/>
<constant value="397:5-410:6"/>
<constant value="__matchIntermediateParameter"/>
<constant value="Parameter"/>
<constant value="p"/>
<constant value="hasComment"/>
<constant value="44"/>
<constant value="parameterComments"/>
<constant value="parameter"/>
<constant value="NTransientLink;.addVariable(SJ):V"/>
<constant value="418:40-418:41"/>
<constant value="418:40-418:51"/>
<constant value="418:40-418:71"/>
<constant value="418:40-418:88"/>
<constant value="418:36-418:88"/>
<constant value="422:17-422:22"/>
<constant value="419:17-419:18"/>
<constant value="419:17-419:28"/>
<constant value="419:17-419:48"/>
<constant value="419:17-419:66"/>
<constant value="420:34-420:35"/>
<constant value="420:34-420:45"/>
<constant value="420:34-420:50"/>
<constant value="420:53-420:54"/>
<constant value="420:53-420:59"/>
<constant value="420:34-420:59"/>
<constant value="419:17-420:60"/>
<constant value="418:32-423:18"/>
<constant value="426:9-433:10"/>
<constant value="c"/>
<constant value="__applyIntermediateParameter"/>
<constant value="NTransientLink;.getVariable(S):J"/>
<constant value="exchangePattern"/>
<constant value="communicationType"/>
<constant value="communicatesFault"/>
<constant value="optional"/>
<constant value="54"/>
<constant value="58"/>
<constant value="J.IntermediateApiParameterComment(JJ):J"/>
<constant value="initializedByOperation"/>
<constant value="74"/>
<constant value="J.CreateOperationReference(J):J"/>
<constant value="initializedParameter"/>
<constant value="J.hasDefaultPrimitiveTechnologySpecificType(J):J"/>
<constant value="127"/>
<constant value="J.hasTechnologySpecificType(J):J"/>
<constant value="114"/>
<constant value="primitiveType"/>
<constant value="108"/>
<constant value="importedType"/>
<constant value="93"/>
<constant value="107"/>
<constant value="ComplexType"/>
<constant value="J.oclIsKindOf(J):J"/>
<constant value="102"/>
<constant value="J.DataModelIntermediateType(J):J"/>
<constant value="113"/>
<constant value="J.BuiltinPrimitiveIntermediateType(J):J"/>
<constant value="126"/>
<constant value="t_typeDefinitionTechnology"/>
<constant value="J.TechnologySpecificIntermediateType(JJ):J"/>
<constant value="132"/>
<constant value="J.TechnologySpecificPrimitiveIntermediateType(J):J"/>
<constant value="parameters"/>
<constant value="J.CreatedParameter(J):J"/>
<constant value="427:21-427:22"/>
<constant value="427:21-427:27"/>
<constant value="427:13-427:27"/>
<constant value="428:30-428:31"/>
<constant value="428:51-428:54"/>
<constant value="428:30-428:55"/>
<constant value="428:13-428:55"/>
<constant value="429:32-429:33"/>
<constant value="429:32-429:49"/>
<constant value="429:13-429:49"/>
<constant value="430:34-430:35"/>
<constant value="430:34-430:53"/>
<constant value="430:13-430:53"/>
<constant value="431:34-431:35"/>
<constant value="431:34-431:53"/>
<constant value="431:13-431:53"/>
<constant value="432:25-432:26"/>
<constant value="432:25-432:35"/>
<constant value="432:13-432:35"/>
<constant value="435:13-435:23"/>
<constant value="436:13-436:23"/>
<constant value="436:56-436:57"/>
<constant value="436:59-436:60"/>
<constant value="436:13-436:62"/>
<constant value="435:9-436:62"/>
<constant value="439:17-439:18"/>
<constant value="439:17-439:41"/>
<constant value="439:17-439:58"/>
<constant value="439:13-439:58"/>
<constant value="440:13-440:14"/>
<constant value="440:41-440:51"/>
<constant value="441:43-441:44"/>
<constant value="441:43-441:67"/>
<constant value="440:41-441:68"/>
<constant value="440:13-441:69"/>
<constant value="442:13-442:14"/>
<constant value="442:13-442:37"/>
<constant value="442:62-442:63"/>
<constant value="442:13-442:64"/>
<constant value="439:9-443:10"/>
<constant value="446:13-446:23"/>
<constant value="446:66-446:67"/>
<constant value="446:13-446:68"/>
<constant value="448:18-448:28"/>
<constant value="448:55-448:56"/>
<constant value="448:18-448:57"/>
<constant value="451:22-451:23"/>
<constant value="451:22-451:37"/>
<constant value="451:22-451:54"/>
<constant value="451:18-451:54"/>
<constant value="453:22-453:23"/>
<constant value="453:22-453:36"/>
<constant value="453:22-453:53"/>
<constant value="453:18-453:53"/>
<constant value="454:17-454:18"/>
<constant value="454:17-454:31"/>
<constant value="454:17-454:36"/>
<constant value="454:49-454:68"/>
<constant value="454:17-454:69"/>
<constant value="455:17-455:18"/>
<constant value="455:27-455:37"/>
<constant value="455:64-455:65"/>
<constant value="455:27-455:66"/>
<constant value="455:17-455:67"/>
<constant value="454:13-455:67"/>
<constant value="453:14-455:67"/>
<constant value="452:13-452:14"/>
<constant value="452:23-452:33"/>
<constant value="452:67-452:68"/>
<constant value="452:23-452:69"/>
<constant value="452:13-452:70"/>
<constant value="451:14-455:67"/>
<constant value="449:13-449:14"/>
<constant value="449:23-449:33"/>
<constant value="449:69-449:70"/>
<constant value="449:69-449:83"/>
<constant value="450:17-450:18"/>
<constant value="450:17-450:28"/>
<constant value="450:17-450:38"/>
<constant value="450:17-450:51"/>
<constant value="450:17-450:78"/>
<constant value="450:17-450:83"/>
<constant value="449:23-450:84"/>
<constant value="449:13-450:85"/>
<constant value="448:14-455:67"/>
<constant value="447:13-447:14"/>
<constant value="447:23-447:33"/>
<constant value="447:78-447:79"/>
<constant value="447:23-447:80"/>
<constant value="447:13-447:81"/>
<constant value="446:9-455:67"/>
<constant value="458:9-458:10"/>
<constant value="458:24-458:34"/>
<constant value="458:55-458:56"/>
<constant value="458:55-458:66"/>
<constant value="458:24-458:67"/>
<constant value="458:9-458:68"/>
<constant value="459:9-459:10"/>
<constant value="459:9-459:20"/>
<constant value="459:35-459:36"/>
<constant value="459:35-459:46"/>
<constant value="459:35-459:57"/>
<constant value="459:66-459:67"/>
<constant value="459:35-459:68"/>
<constant value="459:9-459:69"/>
<constant value="462:9-462:19"/>
<constant value="462:37-462:38"/>
<constant value="462:9-462:40"/>
<constant value="434:5-463:6"/>
<constant value="IntermediateApiParameterComment"/>
<constant value="5"/>
<constant value="B.not():B"/>
<constant value="23"/>
<constant value="CJ.asSequence():QJ"/>
<constant value="QJ.first():J"/>
<constant value="6"/>
<constant value="7"/>
<constant value="required"/>
<constant value="470:47-470:62"/>
<constant value="470:47-470:72"/>
<constant value="471:64-471:79"/>
<constant value="471:64-471:99"/>
<constant value="472:55-472:77"/>
<constant value="472:55-472:95"/>
<constant value="473:23-473:24"/>
<constant value="473:23-473:34"/>
<constant value="473:23-473:39"/>
<constant value="473:42-473:57"/>
<constant value="473:42-473:62"/>
<constant value="473:23-473:62"/>
<constant value="472:55-473:63"/>
<constant value="475:15-475:25"/>
<constant value="475:46-475:61"/>
<constant value="475:15-475:62"/>
<constant value="475:15-475:82"/>
<constant value="479:24-479:37"/>
<constant value="479:24-479:45"/>
<constant value="479:13-479:45"/>
<constant value="480:25-480:38"/>
<constant value="480:25-480:47"/>
<constant value="480:13-480:47"/>
<constant value="481:26-481:41"/>
<constant value="481:13-481:41"/>
<constant value="484:9-484:31"/>
<constant value="485:13-485:35"/>
<constant value="485:13-485:53"/>
<constant value="485:62-485:63"/>
<constant value="485:13-485:64"/>
<constant value="484:9-485:65"/>
<constant value="487:9-487:10"/>
<constant value="487:9-487:11"/>
<constant value="483:5-488:6"/>
<constant value="sourceOperationComment"/>
<constant value="targetOperationComment"/>
<constant value="targetParameter"/>
<constant value="hasDefaultPrimitiveTechnologySpecificType"/>
<constant value="t_typeDefinitionTechnologyImport"/>
<constant value="J.or(J):J"/>
<constant value="31"/>
<constant value="J.findDefaultTechnologySpecificPrimitiveType(JJ):J"/>
<constant value="27"/>
<constant value="28"/>
<constant value="32"/>
<constant value="494:47-494:48"/>
<constant value="494:47-494:58"/>
<constant value="494:47-494:68"/>
<constant value="494:47-494:81"/>
<constant value="496:9-496:21"/>
<constant value="496:9-496:54"/>
<constant value="496:9-496:71"/>
<constant value="497:12-497:24"/>
<constant value="497:12-497:51"/>
<constant value="497:12-497:68"/>
<constant value="496:9-497:68"/>
<constant value="499:14-499:15"/>
<constant value="499:14-499:29"/>
<constant value="499:14-499:46"/>
<constant value="501:14-501:24"/>
<constant value="501:68-501:69"/>
<constant value="501:68-501:83"/>
<constant value="502:9-502:21"/>
<constant value="502:9-502:48"/>
<constant value="501:14-502:49"/>
<constant value="501:14-502:66"/>
<constant value="505:9-505:13"/>
<constant value="503:9-503:14"/>
<constant value="501:10-506:10"/>
<constant value="500:9-500:14"/>
<constant value="499:10-507:10"/>
<constant value="498:9-498:14"/>
<constant value="496:5-508:10"/>
<constant value="494:5-508:10"/>
<constant value="TechnologySpecificPrimitiveIntermediateType"/>
<constant value="IntermediateImportedTechnologySpecificType"/>
<constant value="EnumLiteral"/>
<constant value="TECHNOLOGY"/>
<constant value="origin"/>
<constant value="PRIMITIVE"/>
<constant value="kind"/>
<constant value="515:21-515:31"/>
<constant value="516:25-516:26"/>
<constant value="516:25-516:40"/>
<constant value="517:25-517:26"/>
<constant value="517:25-517:36"/>
<constant value="517:25-517:46"/>
<constant value="517:25-517:59"/>
<constant value="517:25-517:86"/>
<constant value="515:21-518:22"/>
<constant value="515:21-518:27"/>
<constant value="515:13-518:27"/>
<constant value="519:30-519:31"/>
<constant value="519:30-519:41"/>
<constant value="519:30-519:51"/>
<constant value="519:30-519:64"/>
<constant value="519:30-519:91"/>
<constant value="519:30-519:96"/>
<constant value="520:41-520:44"/>
<constant value="519:30-520:45"/>
<constant value="522:37-522:47"/>
<constant value="523:41-523:42"/>
<constant value="523:41-523:56"/>
<constant value="524:41-524:42"/>
<constant value="524:41-524:52"/>
<constant value="524:41-524:62"/>
<constant value="524:41-524:75"/>
<constant value="524:41-525:72"/>
<constant value="522:37-526:38"/>
<constant value="526:58-526:61"/>
<constant value="522:37-526:62"/>
<constant value="519:30-527:34"/>
<constant value="519:13-527:34"/>
<constant value="528:23-528:34"/>
<constant value="528:13-528:34"/>
<constant value="529:21-529:31"/>
<constant value="529:13-529:31"/>
<constant value="530:23-530:33"/>
<constant value="531:17-531:18"/>
<constant value="531:17-531:28"/>
<constant value="531:17-531:38"/>
<constant value="531:17-531:51"/>
<constant value="531:17-531:84"/>
<constant value="530:23-532:14"/>
<constant value="530:13-532:14"/>
<constant value="535:9-535:10"/>
<constant value="535:9-535:11"/>
<constant value="534:5-536:6"/>
<constant value="hasTechnologySpecificType"/>
<constant value="26"/>
<constant value="TechnologySpecificPrimitiveType"/>
<constant value="J.oclIsTypeOf(J):J"/>
<constant value="TechnologySpecificListType"/>
<constant value="TechnologySpecificDataStructure"/>
<constant value="541:9-541:10"/>
<constant value="541:9-541:23"/>
<constant value="541:9-541:40"/>
<constant value="544:35-544:36"/>
<constant value="544:35-544:49"/>
<constant value="544:35-544:54"/>
<constant value="546:9-546:13"/>
<constant value="546:26-546:65"/>
<constant value="546:9-546:66"/>
<constant value="547:16-547:20"/>
<constant value="547:33-547:67"/>
<constant value="547:16-547:68"/>
<constant value="546:9-547:68"/>
<constant value="548:16-548:20"/>
<constant value="548:33-548:72"/>
<constant value="548:16-548:73"/>
<constant value="546:9-548:73"/>
<constant value="544:9-548:73"/>
<constant value="542:9-542:14"/>
<constant value="541:5-549:10"/>
<constant value="TechnologySpecificIntermediateType"/>
<constant value="J.getTypeKind(J):J"/>
<constant value="558:21-558:33"/>
<constant value="558:21-558:38"/>
<constant value="558:21-558:43"/>
<constant value="558:13-558:43"/>
<constant value="559:30-559:44"/>
<constant value="560:41-560:44"/>
<constant value="559:30-560:45"/>
<constant value="561:41-561:53"/>
<constant value="561:41-561:58"/>
<constant value="561:78-561:81"/>
<constant value="561:41-561:82"/>
<constant value="559:30-561:83"/>
<constant value="559:13-561:83"/>
<constant value="562:23-562:34"/>
<constant value="562:13-562:34"/>
<constant value="563:21-563:31"/>
<constant value="563:44-563:56"/>
<constant value="563:44-563:61"/>
<constant value="563:21-563:62"/>
<constant value="563:13-563:62"/>
<constant value="564:23-564:33"/>
<constant value="564:51-564:63"/>
<constant value="564:51-564:70"/>
<constant value="564:23-564:71"/>
<constant value="564:13-564:71"/>
<constant value="567:9-567:10"/>
<constant value="567:9-567:11"/>
<constant value="566:5-568:6"/>
<constant value="technologyName"/>
<constant value="findDefaultTechnologySpecificPrimitiveType"/>
<constant value="primitiveTypes"/>
<constant value="default"/>
<constant value="basicBuiltinPrimitiveTypes"/>
<constant value="typeName"/>
<constant value="J.and(J):J"/>
<constant value="575:5-575:15"/>
<constant value="575:5-575:30"/>
<constant value="576:9-576:10"/>
<constant value="576:9-576:18"/>
<constant value="576:21-576:25"/>
<constant value="576:9-576:25"/>
<constant value="577:9-577:10"/>
<constant value="577:9-577:37"/>
<constant value="577:50-577:51"/>
<constant value="577:50-577:60"/>
<constant value="577:63-577:76"/>
<constant value="577:63-577:85"/>
<constant value="577:50-577:85"/>
<constant value="577:9-577:86"/>
<constant value="576:9-577:86"/>
<constant value="575:5-578:6"/>
<constant value="b"/>
<constant value="BuiltinPrimitiveIntermediateType"/>
<constant value="IntermediatePrimitiveType"/>
<constant value="typeSize"/>
<constant value="size"/>
<constant value="BUILTIN"/>
<constant value="585:21-585:22"/>
<constant value="585:21-585:36"/>
<constant value="585:21-585:45"/>
<constant value="585:13-585:45"/>
<constant value="586:21-586:22"/>
<constant value="586:21-586:36"/>
<constant value="586:21-586:45"/>
<constant value="586:13-586:45"/>
<constant value="587:23-587:31"/>
<constant value="587:13-587:31"/>
<constant value="588:21-588:31"/>
<constant value="588:13-588:31"/>
<constant value="591:9-591:10"/>
<constant value="591:9-591:11"/>
<constant value="590:5-592:6"/>
<constant value="DataModelIntermediateType"/>
<constant value="IntermediateImportedComplexType"/>
<constant value="DATA_MODEL"/>
<constant value="600:21-600:22"/>
<constant value="600:21-600:35"/>
<constant value="600:21-600:40"/>
<constant value="600:21-600:45"/>
<constant value="600:13-600:45"/>
<constant value="601:30-601:31"/>
<constant value="601:30-601:44"/>
<constant value="601:30-601:49"/>
<constant value="601:69-601:72"/>
<constant value="601:30-601:73"/>
<constant value="601:13-601:73"/>
<constant value="602:23-602:34"/>
<constant value="602:13-602:34"/>
<constant value="603:21-603:31"/>
<constant value="603:44-603:45"/>
<constant value="603:44-603:58"/>
<constant value="603:44-603:63"/>
<constant value="603:21-603:64"/>
<constant value="603:13-603:64"/>
<constant value="604:23-604:33"/>
<constant value="604:51-604:52"/>
<constant value="604:51-604:65"/>
<constant value="604:51-604:72"/>
<constant value="604:23-604:73"/>
<constant value="604:13-604:73"/>
<constant value="607:9-607:10"/>
<constant value="607:9-607:11"/>
<constant value="606:5-608:6"/>
<constant value="getTypeKind"/>
<constant value="PrimitiveType"/>
<constant value="87"/>
<constant value="80"/>
<constant value="73"/>
<constant value="72"/>
<constant value="isStructure"/>
<constant value="66"/>
<constant value="isPrimitiveList"/>
<constant value="isStructuredList"/>
<constant value="59"/>
<constant value="isEnumeration"/>
<constant value="52"/>
<constant value="ENUMERATION"/>
<constant value="65"/>
<constant value="LIST"/>
<constant value="STRUCTURE"/>
<constant value="86"/>
<constant value="613:9-613:13"/>
<constant value="613:26-613:65"/>
<constant value="613:9-613:66"/>
<constant value="614:12-614:16"/>
<constant value="614:29-614:50"/>
<constant value="614:12-614:51"/>
<constant value="613:9-614:51"/>
<constant value="616:14-616:18"/>
<constant value="616:31-616:65"/>
<constant value="616:14-616:66"/>
<constant value="618:14-618:18"/>
<constant value="618:31-618:70"/>
<constant value="618:14-618:71"/>
<constant value="620:14-620:18"/>
<constant value="620:31-620:50"/>
<constant value="620:14-620:51"/>
<constant value="633:9-633:21"/>
<constant value="621:13-621:17"/>
<constant value="621:13-621:29"/>
<constant value="623:18-623:22"/>
<constant value="623:18-623:38"/>
<constant value="623:42-623:46"/>
<constant value="623:42-623:63"/>
<constant value="623:18-623:63"/>
<constant value="625:18-625:22"/>
<constant value="625:18-625:36"/>
<constant value="628:13-628:25"/>
<constant value="626:13-626:25"/>
<constant value="625:14-629:14"/>
<constant value="624:13-624:18"/>
<constant value="623:14-630:14"/>
<constant value="622:13-622:23"/>
<constant value="621:9-631:14"/>
<constant value="620:10-634:10"/>
<constant value="619:9-619:19"/>
<constant value="618:10-635:10"/>
<constant value="617:9-617:14"/>
<constant value="616:10-636:10"/>
<constant value="615:9-615:19"/>
<constant value="613:5-637:10"/>
<constant value="IntermediateProtocolSpecification"/>
<constant value="formatName"/>
<constant value="645:34-645:42"/>
<constant value="645:34-645:60"/>
<constant value="645:13-645:60"/>
<constant value="646:25-646:33"/>
<constant value="646:25-646:38"/>
<constant value="646:13-646:38"/>
<constant value="647:27-647:37"/>
<constant value="647:27-647:48"/>
<constant value="647:13-647:48"/>
<constant value="650:9-650:10"/>
<constant value="650:9-650:11"/>
<constant value="649:5-651:6"/>
<constant value="__matchIntermediateEndpoint"/>
<constant value="ImportedProtocolAndDataFormat"/>
<constant value="endpoint"/>
<constant value="41"/>
<constant value="referredOperation"/>
<constant value="662:18-662:19"/>
<constant value="662:18-662:28"/>
<constant value="662:18-662:45"/>
<constant value="662:14-662:45"/>
<constant value="663:25-663:26"/>
<constant value="663:25-663:35"/>
<constant value="663:25-663:52"/>
<constant value="663:21-663:52"/>
<constant value="670:21-670:26"/>
<constant value="665:26-665:27"/>
<constant value="665:26-665:36"/>
<constant value="665:26-665:49"/>
<constant value="665:26-665:66"/>
<constant value="665:22-665:66"/>
<constant value="666:26-666:27"/>
<constant value="666:26-666:36"/>
<constant value="666:26-666:46"/>
<constant value="666:26-666:63"/>
<constant value="666:22-666:63"/>
<constant value="665:21-666:64"/>
<constant value="667:26-667:27"/>
<constant value="667:26-667:36"/>
<constant value="667:26-667:46"/>
<constant value="667:26-667:63"/>
<constant value="667:22-667:63"/>
<constant value="665:21-667:64"/>
<constant value="668:26-668:27"/>
<constant value="668:26-668:36"/>
<constant value="668:26-668:54"/>
<constant value="668:26-668:71"/>
<constant value="668:22-668:71"/>
<constant value="665:21-668:72"/>
<constant value="663:17-671:22"/>
<constant value="662:14-671:22"/>
<constant value="674:9-678:10"/>
<constant value="__applyIntermediateEndpoint"/>
<constant value="importedProtocol"/>
<constant value="addresses"/>
<constant value="133"/>
<constant value="82"/>
<constant value="56"/>
<constant value="81"/>
<constant value="J.getCreatedReferredOperation(J):J"/>
<constant value="endpoints"/>
<constant value="J.getCreatedTechnology(JJ):J"/>
<constant value="156"/>
<constant value="198"/>
<constant value="defaultFormat"/>
<constant value="175"/>
<constant value="dataFormats"/>
<constant value="181"/>
<constant value="J.subSequence(JJ):J"/>
<constant value="J.CopyIntermediateEndpoint(JJ):J"/>
<constant value="203"/>
<constant value="675:34-675:35"/>
<constant value="675:34-675:52"/>
<constant value="675:34-675:70"/>
<constant value="675:13-675:70"/>
<constant value="676:25-676:26"/>
<constant value="676:25-676:43"/>
<constant value="676:25-676:48"/>
<constant value="676:13-676:48"/>
<constant value="677:26-677:27"/>
<constant value="677:26-677:36"/>
<constant value="677:26-677:46"/>
<constant value="677:13-677:46"/>
<constant value="681:17-681:18"/>
<constant value="681:17-681:27"/>
<constant value="681:17-681:40"/>
<constant value="681:17-681:57"/>
<constant value="681:13-681:57"/>
<constant value="686:24-686:25"/>
<constant value="686:24-686:34"/>
<constant value="686:24-686:44"/>
<constant value="686:24-686:61"/>
<constant value="686:20-686:61"/>
<constant value="691:24-691:25"/>
<constant value="691:24-691:34"/>
<constant value="691:24-691:44"/>
<constant value="691:24-691:61"/>
<constant value="691:20-691:61"/>
<constant value="697:24-697:25"/>
<constant value="697:24-697:34"/>
<constant value="697:24-697:52"/>
<constant value="697:24-697:69"/>
<constant value="697:20-697:69"/>
<constant value="698:13-698:14"/>
<constant value="698:36-698:46"/>
<constant value="699:46-699:47"/>
<constant value="699:46-699:56"/>
<constant value="699:46-699:74"/>
<constant value="698:36-699:75"/>
<constant value="698:13-699:76"/>
<constant value="700:13-700:14"/>
<constant value="700:13-700:32"/>
<constant value="700:46-700:47"/>
<constant value="700:46-700:65"/>
<constant value="700:46-700:75"/>
<constant value="700:84-700:85"/>
<constant value="700:46-700:86"/>
<constant value="700:13-700:87"/>
<constant value="701:13-701:14"/>
<constant value="701:29-701:39"/>
<constant value="702:17-702:18"/>
<constant value="702:17-702:36"/>
<constant value="702:17-702:55"/>
<constant value="702:17-702:68"/>
<constant value="703:17-703:18"/>
<constant value="703:17-703:25"/>
<constant value="701:29-704:14"/>
<constant value="701:13-704:15"/>
<constant value="697:16-705:10"/>
<constant value="692:13-692:14"/>
<constant value="692:28-692:38"/>
<constant value="692:59-692:60"/>
<constant value="692:59-692:69"/>
<constant value="692:59-692:79"/>
<constant value="692:28-692:80"/>
<constant value="692:13-692:81"/>
<constant value="693:13-693:14"/>
<constant value="693:13-693:24"/>
<constant value="693:38-693:39"/>
<constant value="693:38-693:49"/>
<constant value="693:38-693:59"/>
<constant value="693:68-693:69"/>
<constant value="693:38-693:70"/>
<constant value="693:13-693:71"/>
<constant value="694:13-694:14"/>
<constant value="694:29-694:39"/>
<constant value="694:61-694:62"/>
<constant value="694:61-694:72"/>
<constant value="694:61-694:82"/>
<constant value="694:61-694:95"/>
<constant value="695:17-695:18"/>
<constant value="695:17-695:25"/>
<constant value="694:29-695:26"/>
<constant value="694:13-695:27"/>
<constant value="691:16-705:10"/>
<constant value="687:13-687:14"/>
<constant value="687:28-687:38"/>
<constant value="687:59-687:60"/>
<constant value="687:59-687:69"/>
<constant value="687:59-687:79"/>
<constant value="687:28-687:80"/>
<constant value="687:13-687:81"/>
<constant value="688:13-688:14"/>
<constant value="688:13-688:24"/>
<constant value="688:38-688:39"/>
<constant value="688:38-688:49"/>
<constant value="688:38-688:59"/>
<constant value="688:68-688:69"/>
<constant value="688:38-688:70"/>
<constant value="688:13-688:71"/>
<constant value="689:13-689:14"/>
<constant value="689:29-689:39"/>
<constant value="689:61-689:62"/>
<constant value="689:61-689:72"/>
<constant value="689:61-689:85"/>
<constant value="689:87-689:88"/>
<constant value="689:87-689:95"/>
<constant value="689:29-689:96"/>
<constant value="689:13-689:97"/>
<constant value="686:16-705:10"/>
<constant value="682:13-682:14"/>
<constant value="682:31-682:41"/>
<constant value="682:65-682:66"/>
<constant value="682:65-682:75"/>
<constant value="682:65-682:88"/>
<constant value="682:31-682:89"/>
<constant value="682:13-682:90"/>
<constant value="683:13-683:14"/>
<constant value="683:13-683:27"/>
<constant value="683:41-683:42"/>
<constant value="683:41-683:55"/>
<constant value="683:41-683:65"/>
<constant value="683:74-683:75"/>
<constant value="683:41-683:76"/>
<constant value="683:13-683:77"/>
<constant value="684:13-684:14"/>
<constant value="684:29-684:39"/>
<constant value="684:61-684:62"/>
<constant value="684:61-684:75"/>
<constant value="684:77-684:78"/>
<constant value="684:77-684:85"/>
<constant value="684:29-684:86"/>
<constant value="684:13-684:87"/>
<constant value="681:9-705:10"/>
<constant value="707:17-707:18"/>
<constant value="707:17-707:29"/>
<constant value="707:17-707:46"/>
<constant value="707:13-707:46"/>
<constant value="712:21-712:22"/>
<constant value="712:21-712:39"/>
<constant value="712:21-712:53"/>
<constant value="712:21-712:70"/>
<constant value="712:17-712:70"/>
<constant value="717:17-717:18"/>
<constant value="717:33-717:34"/>
<constant value="717:33-717:51"/>
<constant value="717:33-717:63"/>
<constant value="717:33-717:72"/>
<constant value="717:33-717:83"/>
<constant value="717:17-717:84"/>
<constant value="713:17-713:18"/>
<constant value="713:33-713:34"/>
<constant value="713:33-713:51"/>
<constant value="713:33-713:65"/>
<constant value="713:33-713:76"/>
<constant value="713:17-713:77"/>
<constant value="712:13-717:84"/>
<constant value="718:36-718:37"/>
<constant value="718:36-718:54"/>
<constant value="718:36-718:66"/>
<constant value="719:39-719:40"/>
<constant value="719:42-719:43"/>
<constant value="719:42-719:60"/>
<constant value="719:42-719:72"/>
<constant value="719:42-719:80"/>
<constant value="718:36-719:81"/>
<constant value="720:21-720:31"/>
<constant value="720:57-720:58"/>
<constant value="720:60-720:70"/>
<constant value="720:21-720:72"/>
<constant value="718:17-721:18"/>
<constant value="708:13-708:14"/>
<constant value="708:29-708:30"/>
<constant value="708:29-708:41"/>
<constant value="708:29-708:52"/>
<constant value="708:13-708:53"/>
<constant value="707:9-722:10"/>
<constant value="679:5-723:6"/>
<constant value="DefaultIntermediateEndpoint"/>
<constant value="111"/>
<constant value="91"/>
<constant value="70"/>
<constant value="69"/>
<constant value="90"/>
<constant value="110"/>
<constant value="129"/>
<constant value="735:34-735:42"/>
<constant value="735:34-735:60"/>
<constant value="735:13-735:60"/>
<constant value="736:25-736:33"/>
<constant value="736:25-736:38"/>
<constant value="736:13-736:38"/>
<constant value="737:27-737:37"/>
<constant value="737:27-737:48"/>
<constant value="737:13-737:48"/>
<constant value="740:13-740:19"/>
<constant value="740:32-740:69"/>
<constant value="740:13-740:70"/>
<constant value="744:20-744:26"/>
<constant value="744:39-744:73"/>
<constant value="744:20-744:74"/>
<constant value="748:20-748:26"/>
<constant value="748:39-748:73"/>
<constant value="748:20-748:74"/>
<constant value="755:20-755:26"/>
<constant value="755:39-755:81"/>
<constant value="755:20-755:82"/>
<constant value="756:13-756:14"/>
<constant value="756:36-756:42"/>
<constant value="756:13-756:43"/>
<constant value="757:13-757:14"/>
<constant value="757:13-757:32"/>
<constant value="757:46-757:47"/>
<constant value="757:46-757:65"/>
<constant value="757:46-757:75"/>
<constant value="757:84-757:85"/>
<constant value="757:46-757:86"/>
<constant value="757:13-757:87"/>
<constant value="758:13-758:14"/>
<constant value="758:29-758:39"/>
<constant value="759:17-759:18"/>
<constant value="759:17-759:36"/>
<constant value="759:17-759:55"/>
<constant value="759:17-759:68"/>
<constant value="760:17-760:23"/>
<constant value="758:29-761:14"/>
<constant value="758:13-761:15"/>
<constant value="755:16-762:10"/>
<constant value="749:13-749:14"/>
<constant value="749:28-749:34"/>
<constant value="749:13-749:35"/>
<constant value="750:13-750:14"/>
<constant value="750:13-750:24"/>
<constant value="750:38-750:39"/>
<constant value="750:38-750:49"/>
<constant value="750:38-750:59"/>
<constant value="750:68-750:69"/>
<constant value="750:38-750:70"/>
<constant value="750:13-750:71"/>
<constant value="751:13-751:14"/>
<constant value="751:29-751:39"/>
<constant value="752:17-752:18"/>
<constant value="752:17-752:28"/>
<constant value="752:17-752:38"/>
<constant value="752:17-752:51"/>
<constant value="753:17-753:23"/>
<constant value="751:29-754:14"/>
<constant value="751:13-754:15"/>
<constant value="748:16-762:10"/>
<constant value="745:13-745:14"/>
<constant value="745:28-745:34"/>
<constant value="745:13-745:35"/>
<constant value="746:13-746:14"/>
<constant value="746:13-746:24"/>
<constant value="746:38-746:39"/>
<constant value="746:38-746:49"/>
<constant value="746:38-746:59"/>
<constant value="746:68-746:69"/>
<constant value="746:38-746:70"/>
<constant value="746:13-746:71"/>
<constant value="747:13-747:14"/>
<constant value="747:29-747:39"/>
<constant value="747:61-747:62"/>
<constant value="747:61-747:72"/>
<constant value="747:61-747:85"/>
<constant value="747:87-747:93"/>
<constant value="747:29-747:94"/>
<constant value="747:13-747:95"/>
<constant value="744:16-762:10"/>
<constant value="741:13-741:14"/>
<constant value="741:31-741:37"/>
<constant value="741:13-741:38"/>
<constant value="742:13-742:14"/>
<constant value="742:13-742:27"/>
<constant value="742:41-742:42"/>
<constant value="742:41-742:55"/>
<constant value="742:41-742:65"/>
<constant value="742:74-742:75"/>
<constant value="742:41-742:76"/>
<constant value="742:13-742:77"/>
<constant value="743:13-743:14"/>
<constant value="743:29-743:39"/>
<constant value="743:61-743:62"/>
<constant value="743:61-743:75"/>
<constant value="743:77-743:83"/>
<constant value="743:29-743:84"/>
<constant value="743:13-743:85"/>
<constant value="740:9-762:10"/>
<constant value="764:9-764:10"/>
<constant value="764:9-764:11"/>
<constant value="739:5-765:6"/>
<constant value="target"/>
<constant value="CopyIntermediateEndpoint"/>
<constant value="77"/>
<constant value="51"/>
<constant value="63"/>
<constant value="76"/>
<constant value="89"/>
<constant value="773:34-773:46"/>
<constant value="773:34-773:64"/>
<constant value="773:13-773:64"/>
<constant value="774:25-774:37"/>
<constant value="774:25-774:46"/>
<constant value="774:13-774:46"/>
<constant value="775:27-775:37"/>
<constant value="775:27-775:48"/>
<constant value="775:13-775:48"/>
<constant value="776:26-776:38"/>
<constant value="776:26-776:48"/>
<constant value="776:13-776:48"/>
<constant value="779:17-779:29"/>
<constant value="779:17-779:42"/>
<constant value="779:17-779:59"/>
<constant value="779:13-779:59"/>
<constant value="782:24-782:36"/>
<constant value="782:24-782:46"/>
<constant value="782:24-782:63"/>
<constant value="782:20-782:63"/>
<constant value="785:24-785:36"/>
<constant value="785:24-785:46"/>
<constant value="785:24-785:63"/>
<constant value="785:20-785:63"/>
<constant value="788:24-788:36"/>
<constant value="788:24-788:54"/>
<constant value="788:24-788:71"/>
<constant value="788:20-788:71"/>
<constant value="789:13-789:14"/>
<constant value="789:36-789:48"/>
<constant value="789:36-789:66"/>
<constant value="789:13-789:67"/>
<constant value="790:13-790:25"/>
<constant value="790:13-790:43"/>
<constant value="790:57-790:69"/>
<constant value="790:57-790:87"/>
<constant value="790:57-791:27"/>
<constant value="791:36-791:37"/>
<constant value="790:57-791:38"/>
<constant value="790:13-791:39"/>
<constant value="788:16-792:10"/>
<constant value="786:13-786:14"/>
<constant value="786:28-786:40"/>
<constant value="786:28-786:50"/>
<constant value="786:13-786:51"/>
<constant value="787:13-787:25"/>
<constant value="787:13-787:35"/>
<constant value="787:49-787:61"/>
<constant value="787:49-787:71"/>
<constant value="787:49-787:81"/>
<constant value="787:90-787:91"/>
<constant value="787:49-787:92"/>
<constant value="787:13-787:93"/>
<constant value="785:16-792:10"/>
<constant value="783:13-783:14"/>
<constant value="783:28-783:40"/>
<constant value="783:28-783:50"/>
<constant value="783:13-783:51"/>
<constant value="784:13-784:25"/>
<constant value="784:13-784:35"/>
<constant value="784:49-784:61"/>
<constant value="784:49-784:71"/>
<constant value="784:49-784:81"/>
<constant value="784:90-784:91"/>
<constant value="784:49-784:92"/>
<constant value="784:13-784:93"/>
<constant value="782:16-792:10"/>
<constant value="780:13-780:14"/>
<constant value="780:31-780:43"/>
<constant value="780:31-780:56"/>
<constant value="780:13-780:57"/>
<constant value="781:13-781:25"/>
<constant value="781:13-781:38"/>
<constant value="781:52-781:64"/>
<constant value="781:52-781:77"/>
<constant value="781:52-781:87"/>
<constant value="781:96-781:97"/>
<constant value="781:52-781:98"/>
<constant value="781:13-781:99"/>
<constant value="779:9-792:10"/>
<constant value="778:5-793:6"/>
<constant value="baseEndpoint"/>
<constant value="__matchMicroserviceReference"/>
<constant value="PossiblyImportedMicroservice"/>
<constant value="801:9-808:10"/>
<constant value="__applyMicroserviceReference"/>
<constant value="requiringMicroservice"/>
<constant value="localMicroservice"/>
<constant value="imported"/>
<constant value="requiredMicroservices"/>
<constant value="802:21-802:22"/>
<constant value="802:21-802:35"/>
<constant value="802:21-802:40"/>
<constant value="802:13-802:40"/>
<constant value="803:24-803:25"/>
<constant value="803:24-803:38"/>
<constant value="803:24-803:46"/>
<constant value="803:13-803:46"/>
<constant value="804:30-804:31"/>
<constant value="804:30-804:44"/>
<constant value="804:64-804:67"/>
<constant value="804:30-804:68"/>
<constant value="804:13-804:68"/>
<constant value="807:38-807:48"/>
<constant value="807:72-807:73"/>
<constant value="807:72-807:95"/>
<constant value="807:38-807:96"/>
<constant value="807:13-807:96"/>
<constant value="812:17-812:18"/>
<constant value="812:17-812:25"/>
<constant value="812:17-812:42"/>
<constant value="812:13-812:42"/>
<constant value="817:13-817:14"/>
<constant value="817:36-817:46"/>
<constant value="817:70-817:71"/>
<constant value="817:70-817:84"/>
<constant value="817:36-817:85"/>
<constant value="817:13-817:86"/>
<constant value="813:13-813:14"/>
<constant value="813:27-813:31"/>
<constant value="813:13-813:32"/>
<constant value="814:13-814:14"/>
<constant value="814:25-814:35"/>
<constant value="814:53-814:54"/>
<constant value="814:53-814:61"/>
<constant value="814:25-814:62"/>
<constant value="814:13-814:63"/>
<constant value="812:9-817:86"/>
<constant value="819:9-819:19"/>
<constant value="819:43-819:44"/>
<constant value="819:43-819:66"/>
<constant value="819:9-819:67"/>
<constant value="820:13-820:23"/>
<constant value="820:47-820:48"/>
<constant value="820:47-820:70"/>
<constant value="820:13-820:71"/>
<constant value="820:13-821:39"/>
<constant value="821:48-821:49"/>
<constant value="820:13-821:50"/>
<constant value="819:9-821:51"/>
<constant value="809:5-822:6"/>
<constant value="__matchInterfaceReference"/>
<constant value="PossiblyImportedInterface"/>
<constant value="830:9-836:10"/>
<constant value="__applyInterfaceReference"/>
<constant value="45"/>
<constant value="localInterface"/>
<constant value="requiredInterfaces"/>
<constant value="831:21-831:22"/>
<constant value="831:21-831:32"/>
<constant value="831:21-831:37"/>
<constant value="831:13-831:37"/>
<constant value="832:30-832:31"/>
<constant value="832:30-832:41"/>
<constant value="832:61-832:64"/>
<constant value="832:30-832:65"/>
<constant value="832:13-832:65"/>
<constant value="835:38-835:48"/>
<constant value="835:72-835:73"/>
<constant value="835:72-835:95"/>
<constant value="835:38-835:96"/>
<constant value="835:13-835:96"/>
<constant value="838:17-838:18"/>
<constant value="838:17-838:25"/>
<constant value="838:17-838:42"/>
<constant value="838:13-838:42"/>
<constant value="842:13-842:14"/>
<constant value="842:33-842:43"/>
<constant value="842:64-842:65"/>
<constant value="842:64-842:75"/>
<constant value="842:33-842:76"/>
<constant value="842:13-842:77"/>
<constant value="839:13-839:14"/>
<constant value="839:27-839:31"/>
<constant value="839:13-839:32"/>
<constant value="840:13-840:14"/>
<constant value="840:25-840:35"/>
<constant value="840:53-840:54"/>
<constant value="840:53-840:61"/>
<constant value="840:25-840:62"/>
<constant value="840:13-840:63"/>
<constant value="838:9-842:77"/>
<constant value="844:9-844:19"/>
<constant value="844:43-844:44"/>
<constant value="844:43-844:66"/>
<constant value="844:9-844:67"/>
<constant value="845:13-845:23"/>
<constant value="845:47-845:48"/>
<constant value="845:47-845:70"/>
<constant value="845:13-845:71"/>
<constant value="845:13-845:90"/>
<constant value="845:99-845:100"/>
<constant value="845:13-845:101"/>
<constant value="844:9-845:102"/>
<constant value="837:5-846:6"/>
<constant value="__matchOperationReference"/>
<constant value="PossiblyImportedOperation"/>
<constant value="853:52-853:53"/>
<constant value="853:52-853:75"/>
<constant value="853:52-853:92"/>
<constant value="853:48-853:92"/>
<constant value="858:15-858:25"/>
<constant value="858:51-858:52"/>
<constant value="858:15-858:53"/>
<constant value="__applyOperationReference"/>
<constant value="requiredOperations"/>
<constant value="861:9-861:10"/>
<constant value="861:36-861:46"/>
<constant value="861:70-861:71"/>
<constant value="861:70-861:93"/>
<constant value="861:36-861:94"/>
<constant value="861:9-861:95"/>
<constant value="862:9-862:19"/>
<constant value="862:43-862:44"/>
<constant value="862:43-862:66"/>
<constant value="862:9-862:67"/>
<constant value="863:13-863:23"/>
<constant value="863:47-863:48"/>
<constant value="863:47-863:70"/>
<constant value="863:13-863:71"/>
<constant value="863:13-863:90"/>
<constant value="863:99-863:100"/>
<constant value="863:13-863:101"/>
<constant value="862:9-863:102"/>
<constant value="860:5-864:6"/>
<constant value="CreateOperationReference"/>
<constant value="33"/>
<constant value="localOperation"/>
<constant value="42"/>
<constant value="871:21-871:36"/>
<constant value="871:21-871:46"/>
<constant value="871:21-871:51"/>
<constant value="871:13-871:51"/>
<constant value="872:30-872:45"/>
<constant value="872:30-872:55"/>
<constant value="872:75-872:78"/>
<constant value="872:30-872:79"/>
<constant value="872:13-872:79"/>
<constant value="875:17-875:32"/>
<constant value="875:17-875:39"/>
<constant value="875:17-875:56"/>
<constant value="875:13-875:56"/>
<constant value="879:13-879:14"/>
<constant value="879:33-879:43"/>
<constant value="879:64-879:79"/>
<constant value="879:64-879:89"/>
<constant value="879:33-879:90"/>
<constant value="879:13-879:91"/>
<constant value="876:13-876:14"/>
<constant value="876:27-876:31"/>
<constant value="876:13-876:32"/>
<constant value="877:13-877:14"/>
<constant value="877:25-877:35"/>
<constant value="877:53-877:68"/>
<constant value="877:53-877:75"/>
<constant value="877:25-877:76"/>
<constant value="877:13-877:77"/>
<constant value="875:9-879:91"/>
<constant value="881:9-881:10"/>
<constant value="881:9-881:11"/>
<constant value="874:5-882:6"/>
<constant value="__matchIntermediateImportedAspect"/>
<constant value="ImportedServiceAspect"/>
<constant value="mappedComplexType"/>
<constant value="mappedDataOperation"/>
<constant value="mappedDataOperationReturnType"/>
<constant value="mappedDataOperationParameter"/>
<constant value="40"/>
<constant value="mappedField"/>
<constant value="34"/>
<constant value="39"/>
<constant value="a"/>
<constant value="891:21-891:22"/>
<constant value="891:21-891:40"/>
<constant value="891:21-891:57"/>
<constant value="891:17-891:57"/>
<constant value="892:21-892:22"/>
<constant value="892:21-892:42"/>
<constant value="892:21-892:59"/>
<constant value="892:17-892:59"/>
<constant value="891:17-892:59"/>
<constant value="893:21-893:22"/>
<constant value="893:21-893:52"/>
<constant value="893:21-893:69"/>
<constant value="893:17-893:69"/>
<constant value="891:17-893:69"/>
<constant value="894:21-894:22"/>
<constant value="894:21-894:51"/>
<constant value="894:21-894:68"/>
<constant value="894:17-894:68"/>
<constant value="891:17-894:68"/>
<constant value="899:26-899:27"/>
<constant value="899:26-899:39"/>
<constant value="899:26-899:56"/>
<constant value="899:22-899:56"/>
<constant value="902:17-902:21"/>
<constant value="900:21-900:22"/>
<constant value="900:21-900:34"/>
<constant value="900:21-900:44"/>
<constant value="900:21-900:61"/>
<constant value="900:17-900:61"/>
<constant value="899:18-903:18"/>
<constant value="895:17-895:22"/>
<constant value="891:13-904:18"/>
<constant value="907:9-910:10"/>
<constant value="__applyIntermediateImportedAspect"/>
<constant value="importedAspect"/>
<constant value="features"/>
<constant value="featureNames"/>
<constant value="properties"/>
<constant value="J.IntermediateAspectProperty(JJ):J"/>
<constant value="singlePropertyValue"/>
<constant value="values"/>
<constant value="property"/>
<constant value="83"/>
<constant value="J.IntermediateAspectPropertyValue(JJJ):J"/>
<constant value="97"/>
<constant value="217"/>
<constant value="204"/>
<constant value="191"/>
<constant value="178"/>
<constant value="165"/>
<constant value="128"/>
<constant value="164"/>
<constant value="J.getFieldAspects(J):J"/>
<constant value="135"/>
<constant value="152"/>
<constant value="J.getCreatedParameter(J):J"/>
<constant value="fieldAspects"/>
<constant value="J.DataFieldAspects(J):J"/>
<constant value="aspects"/>
<constant value="177"/>
<constant value="190"/>
<constant value="216"/>
<constant value="229"/>
<constant value="908:21-908:22"/>
<constant value="908:21-908:37"/>
<constant value="908:21-908:42"/>
<constant value="908:13-908:42"/>
<constant value="909:23-909:33"/>
<constant value="909:51-909:52"/>
<constant value="909:51-909:59"/>
<constant value="909:23-909:60"/>
<constant value="909:13-909:60"/>
<constant value="913:25-913:26"/>
<constant value="913:25-913:41"/>
<constant value="913:25-913:50"/>
<constant value="914:13-914:14"/>
<constant value="914:31-914:32"/>
<constant value="914:31-914:45"/>
<constant value="914:53-914:60"/>
<constant value="914:53-914:71"/>
<constant value="914:31-914:72"/>
<constant value="914:13-914:73"/>
<constant value="913:9-915:10"/>
<constant value="918:26-918:27"/>
<constant value="918:26-918:42"/>
<constant value="918:26-918:53"/>
<constant value="919:13-919:14"/>
<constant value="919:29-919:30"/>
<constant value="919:29-919:41"/>
<constant value="920:17-920:27"/>
<constant value="920:55-920:63"/>
<constant value="920:65-920:66"/>
<constant value="920:17-920:67"/>
<constant value="919:29-921:14"/>
<constant value="919:13-921:15"/>
<constant value="918:9-922:10"/>
<constant value="928:17-928:18"/>
<constant value="928:17-928:38"/>
<constant value="928:17-928:55"/>
<constant value="928:13-928:55"/>
<constant value="932:27-932:28"/>
<constant value="932:27-932:35"/>
<constant value="933:17-933:27"/>
<constant value="933:60-933:65"/>
<constant value="933:60-933:71"/>
<constant value="933:73-933:74"/>
<constant value="934:21-934:22"/>
<constant value="934:21-934:33"/>
<constant value="934:43-934:44"/>
<constant value="934:43-934:49"/>
<constant value="934:52-934:57"/>
<constant value="934:52-934:66"/>
<constant value="934:52-934:71"/>
<constant value="934:43-934:71"/>
<constant value="934:21-934:72"/>
<constant value="933:17-934:74"/>
<constant value="932:13-935:14"/>
<constant value="929:13-929:23"/>
<constant value="929:56-929:57"/>
<constant value="929:56-929:77"/>
<constant value="929:79-929:80"/>
<constant value="930:17-930:18"/>
<constant value="930:17-930:29"/>
<constant value="930:17-930:38"/>
<constant value="929:13-930:40"/>
<constant value="928:9-935:14"/>
<constant value="938:17-938:18"/>
<constant value="938:17-938:31"/>
<constant value="938:17-938:48"/>
<constant value="938:13-938:48"/>
<constant value="941:22-941:23"/>
<constant value="941:22-941:33"/>
<constant value="941:22-941:50"/>
<constant value="941:18-941:50"/>
<constant value="944:22-944:23"/>
<constant value="944:22-944:33"/>
<constant value="944:22-944:50"/>
<constant value="944:18-944:50"/>
<constant value="947:22-947:23"/>
<constant value="947:22-947:41"/>
<constant value="947:22-947:58"/>
<constant value="947:18-947:58"/>
<constant value="950:22-950:23"/>
<constant value="950:22-950:33"/>
<constant value="950:22-950:50"/>
<constant value="950:18-950:50"/>
<constant value="953:22-953:23"/>
<constant value="953:22-953:35"/>
<constant value="953:22-953:52"/>
<constant value="953:18-953:52"/>
<constant value="958:17-958:27"/>
<constant value="958:44-958:45"/>
<constant value="958:44-958:57"/>
<constant value="958:17-958:58"/>
<constant value="958:17-958:75"/>
<constant value="959:17-959:27"/>
<constant value="959:48-959:49"/>
<constant value="959:48-959:61"/>
<constant value="959:48-959:71"/>
<constant value="959:17-959:72"/>
<constant value="960:21-960:31"/>
<constant value="960:52-960:53"/>
<constant value="960:52-960:65"/>
<constant value="960:52-960:75"/>
<constant value="960:21-960:76"/>
<constant value="960:21-960:89"/>
<constant value="961:25-961:35"/>
<constant value="961:53-961:54"/>
<constant value="961:53-961:66"/>
<constant value="961:25-961:67"/>
<constant value="960:21-962:22"/>
<constant value="959:17-962:23"/>
<constant value="958:13-962:23"/>
<constant value="964:13-964:23"/>
<constant value="964:40-964:41"/>
<constant value="964:40-964:53"/>
<constant value="964:13-964:54"/>
<constant value="965:17-965:27"/>
<constant value="965:44-965:45"/>
<constant value="965:44-965:57"/>
<constant value="965:17-965:58"/>
<constant value="965:17-965:66"/>
<constant value="965:75-965:76"/>
<constant value="965:17-965:77"/>
<constant value="964:13-965:78"/>
<constant value="953:14-966:10"/>
<constant value="951:13-951:23"/>
<constant value="951:44-951:45"/>
<constant value="951:44-951:55"/>
<constant value="951:13-951:56"/>
<constant value="952:17-952:27"/>
<constant value="952:48-952:49"/>
<constant value="952:48-952:59"/>
<constant value="952:17-952:60"/>
<constant value="952:17-952:68"/>
<constant value="952:77-952:78"/>
<constant value="952:17-952:79"/>
<constant value="951:13-952:80"/>
<constant value="950:14-966:10"/>
<constant value="948:13-948:23"/>
<constant value="948:52-948:53"/>
<constant value="948:52-948:71"/>
<constant value="948:13-948:72"/>
<constant value="949:17-949:27"/>
<constant value="949:56-949:57"/>
<constant value="949:56-949:75"/>
<constant value="949:17-949:76"/>
<constant value="949:17-949:84"/>
<constant value="949:93-949:94"/>
<constant value="949:17-949:95"/>
<constant value="948:13-949:96"/>
<constant value="947:14-966:10"/>
<constant value="945:13-945:23"/>
<constant value="945:44-945:45"/>
<constant value="945:44-945:55"/>
<constant value="945:13-945:56"/>
<constant value="946:17-946:27"/>
<constant value="946:48-946:49"/>
<constant value="946:48-946:59"/>
<constant value="946:17-946:60"/>
<constant value="946:17-946:68"/>
<constant value="946:77-946:78"/>
<constant value="946:17-946:79"/>
<constant value="945:13-946:80"/>
<constant value="944:14-966:10"/>
<constant value="942:13-942:23"/>
<constant value="942:44-942:45"/>
<constant value="942:44-942:55"/>
<constant value="942:13-942:56"/>
<constant value="943:17-943:27"/>
<constant value="943:48-943:49"/>
<constant value="943:48-943:59"/>
<constant value="943:17-943:60"/>
<constant value="943:17-943:68"/>
<constant value="943:77-943:78"/>
<constant value="943:17-943:79"/>
<constant value="942:13-943:80"/>
<constant value="941:14-966:10"/>
<constant value="939:13-939:23"/>
<constant value="939:47-939:48"/>
<constant value="939:47-939:61"/>
<constant value="939:13-939:62"/>
<constant value="940:17-940:27"/>
<constant value="940:51-940:52"/>
<constant value="940:51-940:65"/>
<constant value="940:17-940:66"/>
<constant value="940:17-940:74"/>
<constant value="940:83-940:84"/>
<constant value="940:17-940:85"/>
<constant value="939:13-940:86"/>
<constant value="938:9-966:10"/>
<constant value="968:9-968:10"/>
<constant value="968:9-968:11"/>
<constant value="911:5-969:6"/>
<constant value="feature"/>
<constant value="getFieldAspects"/>
<constant value="21"/>
<constant value="975:5-975:15"/>
<constant value="975:36-975:47"/>
<constant value="975:36-975:57"/>
<constant value="975:5-975:58"/>
<constant value="975:5-975:71"/>
<constant value="976:19-976:20"/>
<constant value="976:19-976:34"/>
<constant value="976:37-976:48"/>
<constant value="976:68-976:71"/>
<constant value="976:73-976:78"/>
<constant value="976:37-976:79"/>
<constant value="976:19-976:79"/>
<constant value="975:5-976:80"/>
<constant value="DataFieldAspects"/>
<constant value="983:21-983:32"/>
<constant value="983:21-983:37"/>
<constant value="983:13-983:37"/>
<constant value="984:30-984:41"/>
<constant value="984:61-984:64"/>
<constant value="984:66-984:71"/>
<constant value="984:30-984:72"/>
<constant value="984:13-984:72"/>
<constant value="985:24-985:34"/>
<constant value="985:13-985:34"/>
<constant value="986:26-986:36"/>
<constant value="986:57-986:68"/>
<constant value="986:57-986:78"/>
<constant value="986:26-986:79"/>
<constant value="986:13-986:79"/>
<constant value="989:9-989:10"/>
<constant value="989:9-989:11"/>
<constant value="988:5-990:6"/>
<constant value="IntermediateAspectProperty"/>
<constant value="aspect"/>
<constant value="defaultValue"/>
<constant value="47"/>
<constant value="J.valueAsString():J"/>
<constant value="998:21-998:35"/>
<constant value="998:21-998:40"/>
<constant value="998:13-998:40"/>
<constant value="999:21-999:35"/>
<constant value="999:21-999:40"/>
<constant value="999:21-999:49"/>
<constant value="999:13-999:49"/>
<constant value="1000:23-1000:29"/>
<constant value="1000:13-1000:29"/>
<constant value="1003:25-1003:39"/>
<constant value="1003:25-1003:48"/>
<constant value="1004:13-1004:14"/>
<constant value="1004:31-1004:32"/>
<constant value="1004:31-1004:45"/>
<constant value="1004:53-1004:60"/>
<constant value="1004:53-1004:71"/>
<constant value="1004:31-1004:72"/>
<constant value="1004:13-1004:73"/>
<constant value="1003:9-1005:10"/>
<constant value="1007:17-1007:31"/>
<constant value="1007:17-1007:44"/>
<constant value="1007:17-1007:61"/>
<constant value="1007:13-1007:61"/>
<constant value="1008:13-1008:14"/>
<constant value="1008:31-1008:45"/>
<constant value="1008:31-1008:58"/>
<constant value="1008:31-1008:74"/>
<constant value="1008:13-1008:75"/>
<constant value="1007:9-1008:75"/>
<constant value="1010:9-1010:15"/>
<constant value="1010:30-1010:36"/>
<constant value="1010:30-1010:47"/>
<constant value="1010:56-1010:57"/>
<constant value="1010:30-1010:58"/>
<constant value="1010:9-1010:59"/>
<constant value="1011:9-1011:10"/>
<constant value="1011:9-1011:11"/>
<constant value="1002:5-1012:6"/>
<constant value="sourceProperty"/>
<constant value="IntermediateAspectPropertyValue"/>
<constant value="propertyValues"/>
<constant value="1021:22-1021:33"/>
<constant value="1021:22-1021:49"/>
<constant value="1021:13-1021:49"/>
<constant value="1022:23-1022:29"/>
<constant value="1022:13-1022:29"/>
<constant value="1023:25-1023:33"/>
<constant value="1023:13-1023:33"/>
<constant value="1026:9-1026:15"/>
<constant value="1026:9-1026:30"/>
<constant value="1026:39-1026:40"/>
<constant value="1026:9-1026:42"/>
<constant value="1027:9-1027:10"/>
<constant value="1027:9-1027:11"/>
<constant value="1025:5-1028:6"/>
<constant value="sourceValue"/>
</cp>
<field name="1" type="2"/>
<field name="3" type="4"/>
<field name="5" type="4"/>
<field name="6" type="4"/>
<field name="7" type="4"/>
<field name="8" type="4"/>
<field name="9" type="4"/>
<field name="10" type="4"/>
<field name="11" type="4"/>
<field name="12" type="4"/>
<operation name="13">
<context type="14"/>
<parameters>
</parameters>
<code>
<getasm/>
<push arg="15"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="17"/>
<pcall arg="18"/>
<dup/>
<push arg="19"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="20"/>
<pcall arg="18"/>
<pcall arg="21"/>
<set arg="3"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="5"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="6"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="7"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="8"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="9"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="10"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="11"/>
<getasm/>
<push arg="22"/>
<push arg="16"/>
<new/>
<set arg="12"/>
<getasm/>
<push arg="23"/>
<push arg="16"/>
<new/>
<set arg="1"/>
<getasm/>
<pcall arg="24"/>
<getasm/>
<pcall arg="25"/>
</code>
<linenumbertable>
<lne id="26" begin="17" end="19"/>
<lne id="27" begin="22" end="24"/>
<lne id="28" begin="27" end="29"/>
<lne id="29" begin="32" end="34"/>
<lne id="30" begin="37" end="39"/>
<lne id="31" begin="42" end="44"/>
<lne id="32" begin="47" end="49"/>
<lne id="33" begin="52" end="54"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="64"/>
</localvariabletable>
</operation>
<operation name="35">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<load arg="36"/>
<getasm/>
<get arg="3"/>
<call arg="37"/>
<if arg="38"/>
<getasm/>
<get arg="1"/>
<load arg="36"/>
<call arg="39"/>
<dup/>
<call arg="40"/>
<if arg="41"/>
<load arg="36"/>
<call arg="42"/>
<goto arg="43"/>
<pop/>
<load arg="36"/>
<goto arg="44"/>
<push arg="45"/>
<push arg="16"/>
<new/>
<load arg="36"/>
<iterate/>
<store arg="46"/>
<getasm/>
<load arg="46"/>
<call arg="47"/>
<call arg="48"/>
<enditerate/>
<call arg="49"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="50" begin="23" end="27"/>
<lve slot="0" name="34" begin="0" end="29"/>
<lve slot="1" name="51" begin="0" end="29"/>
</localvariabletable>
</operation>
<operation name="52">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="53"/>
</parameters>
<code>
<getasm/>
<get arg="1"/>
<load arg="36"/>
<call arg="39"/>
<load arg="36"/>
<load arg="46"/>
<call arg="54"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="6"/>
<lve slot="1" name="51" begin="0" end="6"/>
<lve slot="2" name="55" begin="0" end="6"/>
</localvariabletable>
</operation>
<operation name="56">
<context type="14"/>
<parameters>
</parameters>
<code>
<getasm/>
<pcall arg="57"/>
<getasm/>
<pcall arg="58"/>
<getasm/>
<pcall arg="59"/>
<getasm/>
<pcall arg="60"/>
<getasm/>
<pcall arg="61"/>
<getasm/>
<pcall arg="62"/>
<getasm/>
<pcall arg="63"/>
<getasm/>
<pcall arg="64"/>
<getasm/>
<pcall arg="65"/>
<getasm/>
<pcall arg="66"/>
<getasm/>
<pcall arg="67"/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="21"/>
</localvariabletable>
</operation>
<operation name="68">
<context type="14"/>
<parameters>
</parameters>
<code>
<getasm/>
<get arg="1"/>
<push arg="69"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="71"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="72"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="73"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="74"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="75"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="76"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="77"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="78"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="79"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="80"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="81"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="82"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="83"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="84"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="85"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="86"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="87"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="88"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="89"/>
<enditerate/>
<getasm/>
<get arg="1"/>
<push arg="90"/>
<call arg="70"/>
<iterate/>
<store arg="36"/>
<getasm/>
<load arg="36"/>
<pcall arg="91"/>
<enditerate/>
</code>
<linenumbertable>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="50" begin="5" end="8"/>
<lve slot="1" name="50" begin="15" end="18"/>
<lve slot="1" name="50" begin="25" end="28"/>
<lve slot="1" name="50" begin="35" end="38"/>
<lve slot="1" name="50" begin="45" end="48"/>
<lve slot="1" name="50" begin="55" end="58"/>
<lve slot="1" name="50" begin="65" end="68"/>
<lve slot="1" name="50" begin="75" end="78"/>
<lve slot="1" name="50" begin="85" end="88"/>
<lve slot="1" name="50" begin="95" end="98"/>
<lve slot="1" name="50" begin="105" end="108"/>
<lve slot="0" name="34" begin="0" end="109"/>
</localvariabletable>
</operation>
<operation name="92">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="5"/>
<load arg="36"/>
<get arg="55"/>
<load arg="36"/>
<call arg="93"/>
<set arg="5"/>
</code>
<linenumbertable>
<lne id="94" begin="0" end="0"/>
<lne id="95" begin="1" end="1"/>
<lne id="96" begin="1" end="2"/>
<lne id="97" begin="3" end="3"/>
<lne id="98" begin="3" end="4"/>
<lne id="99" begin="5" end="5"/>
<lne id="100" begin="1" end="6"/>
<lne id="101" begin="0" end="7"/>
<lne id="102" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="103" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="104">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="5"/>
<load arg="36"/>
<get arg="55"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="106" begin="0" end="0"/>
<lne id="107" begin="0" end="1"/>
<lne id="108" begin="2" end="2"/>
<lne id="109" begin="2" end="3"/>
<lne id="110" begin="0" end="4"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="4"/>
<lve slot="1" name="111" begin="0" end="4"/>
</localvariabletable>
</operation>
<operation name="112">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="6"/>
<load arg="36"/>
<get arg="113"/>
<get arg="114"/>
<push arg="115"/>
<call arg="116"/>
<load arg="36"/>
<get arg="117"/>
<get arg="55"/>
<call arg="116"/>
<load arg="36"/>
<call arg="93"/>
<set arg="6"/>
</code>
<linenumbertable>
<lne id="118" begin="0" end="0"/>
<lne id="119" begin="1" end="1"/>
<lne id="120" begin="1" end="2"/>
<lne id="121" begin="3" end="3"/>
<lne id="122" begin="3" end="4"/>
<lne id="123" begin="3" end="5"/>
<lne id="124" begin="6" end="6"/>
<lne id="125" begin="3" end="7"/>
<lne id="126" begin="8" end="8"/>
<lne id="127" begin="8" end="9"/>
<lne id="128" begin="8" end="10"/>
<lne id="129" begin="3" end="11"/>
<lne id="130" begin="12" end="12"/>
<lne id="131" begin="1" end="13"/>
<lne id="132" begin="0" end="14"/>
<lne id="133" begin="0" end="14"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="14"/>
<lve slot="1" name="134" begin="0" end="14"/>
</localvariabletable>
</operation>
<operation name="135">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<load arg="36"/>
<get arg="114"/>
<push arg="115"/>
<call arg="116"/>
<load arg="46"/>
<get arg="55"/>
<call arg="116"/>
<store arg="136"/>
<getasm/>
<get arg="6"/>
<load arg="136"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="137" begin="0" end="0"/>
<lne id="138" begin="0" end="1"/>
<lne id="139" begin="2" end="2"/>
<lne id="140" begin="0" end="3"/>
<lne id="141" begin="4" end="4"/>
<lne id="142" begin="4" end="5"/>
<lne id="143" begin="0" end="6"/>
<lne id="144" begin="8" end="8"/>
<lne id="145" begin="8" end="9"/>
<lne id="146" begin="10" end="10"/>
<lne id="147" begin="8" end="11"/>
<lne id="148" begin="0" end="11"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="149" begin="7" end="11"/>
<lve slot="0" name="34" begin="0" end="11"/>
<lve slot="1" name="113" begin="0" end="11"/>
<lve slot="2" name="117" begin="0" end="11"/>
</localvariabletable>
</operation>
<operation name="150">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="7"/>
<load arg="36"/>
<get arg="114"/>
<load arg="36"/>
<call arg="93"/>
<set arg="7"/>
</code>
<linenumbertable>
<lne id="151" begin="0" end="0"/>
<lne id="152" begin="1" end="1"/>
<lne id="153" begin="1" end="2"/>
<lne id="154" begin="3" end="3"/>
<lne id="155" begin="3" end="4"/>
<lne id="156" begin="5" end="5"/>
<lne id="157" begin="1" end="6"/>
<lne id="158" begin="0" end="7"/>
<lne id="159" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="160" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="161">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="7"/>
<load arg="36"/>
<push arg="162"/>
<call arg="163"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="164" begin="0" end="0"/>
<lne id="165" begin="0" end="1"/>
<lne id="166" begin="2" end="2"/>
<lne id="167" begin="3" end="3"/>
<lne id="168" begin="2" end="4"/>
<lne id="169" begin="0" end="5"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="5"/>
<lve slot="1" name="170" begin="0" end="5"/>
</localvariabletable>
</operation>
<operation name="171">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="8"/>
<load arg="36"/>
<get arg="114"/>
<load arg="36"/>
<call arg="93"/>
<set arg="8"/>
</code>
<linenumbertable>
<lne id="172" begin="0" end="0"/>
<lne id="173" begin="1" end="1"/>
<lne id="174" begin="1" end="2"/>
<lne id="175" begin="3" end="3"/>
<lne id="176" begin="3" end="4"/>
<lne id="177" begin="5" end="5"/>
<lne id="178" begin="1" end="6"/>
<lne id="179" begin="0" end="7"/>
<lne id="180" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="181" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="182">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="8"/>
<load arg="36"/>
<push arg="162"/>
<call arg="163"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="183" begin="0" end="0"/>
<lne id="184" begin="0" end="1"/>
<lne id="185" begin="2" end="2"/>
<lne id="186" begin="3" end="3"/>
<lne id="187" begin="2" end="4"/>
<lne id="188" begin="0" end="5"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="5"/>
<lve slot="1" name="189" begin="0" end="5"/>
</localvariabletable>
</operation>
<operation name="190">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="9"/>
<load arg="36"/>
<get arg="114"/>
<load arg="36"/>
<call arg="93"/>
<set arg="9"/>
</code>
<linenumbertable>
<lne id="191" begin="0" end="0"/>
<lne id="192" begin="1" end="1"/>
<lne id="193" begin="1" end="2"/>
<lne id="194" begin="3" end="3"/>
<lne id="195" begin="3" end="4"/>
<lne id="196" begin="5" end="5"/>
<lne id="197" begin="1" end="6"/>
<lne id="198" begin="0" end="7"/>
<lne id="199" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="200" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="201">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="9"/>
<load arg="36"/>
<push arg="162"/>
<call arg="163"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="202" begin="0" end="0"/>
<lne id="203" begin="0" end="1"/>
<lne id="204" begin="2" end="2"/>
<lne id="205" begin="3" end="3"/>
<lne id="206" begin="2" end="4"/>
<lne id="207" begin="0" end="5"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="5"/>
<lve slot="1" name="208" begin="0" end="5"/>
</localvariabletable>
</operation>
<operation name="209">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="10"/>
<load arg="36"/>
<get arg="210"/>
<load arg="36"/>
<call arg="93"/>
<set arg="10"/>
</code>
<linenumbertable>
<lne id="211" begin="0" end="0"/>
<lne id="212" begin="1" end="1"/>
<lne id="213" begin="1" end="2"/>
<lne id="214" begin="3" end="3"/>
<lne id="215" begin="3" end="4"/>
<lne id="216" begin="5" end="5"/>
<lne id="217" begin="1" end="6"/>
<lne id="218" begin="0" end="7"/>
<lne id="219" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="220" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="221">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="10"/>
<load arg="36"/>
<push arg="162"/>
<call arg="163"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="222" begin="0" end="0"/>
<lne id="223" begin="0" end="1"/>
<lne id="224" begin="2" end="2"/>
<lne id="225" begin="3" end="3"/>
<lne id="226" begin="2" end="4"/>
<lne id="227" begin="0" end="5"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="5"/>
<lve slot="1" name="228" begin="0" end="5"/>
</localvariabletable>
</operation>
<operation name="229">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="11"/>
<load arg="36"/>
<get arg="114"/>
<load arg="36"/>
<call arg="93"/>
<set arg="11"/>
</code>
<linenumbertable>
<lne id="230" begin="0" end="0"/>
<lne id="231" begin="1" end="1"/>
<lne id="232" begin="1" end="2"/>
<lne id="233" begin="3" end="3"/>
<lne id="234" begin="3" end="4"/>
<lne id="235" begin="5" end="5"/>
<lne id="236" begin="1" end="6"/>
<lne id="237" begin="0" end="7"/>
<lne id="238" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="239" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="240">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="11"/>
<load arg="36"/>
<push arg="162"/>
<call arg="163"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="241" begin="0" end="0"/>
<lne id="242" begin="0" end="1"/>
<lne id="243" begin="2" end="2"/>
<lne id="244" begin="3" end="3"/>
<lne id="245" begin="2" end="4"/>
<lne id="246" begin="0" end="5"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="5"/>
<lve slot="1" name="247" begin="0" end="5"/>
</localvariabletable>
</operation>
<operation name="248">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<getasm/>
<get arg="12"/>
<load arg="36"/>
<get arg="114"/>
<load arg="36"/>
<call arg="93"/>
<set arg="12"/>
</code>
<linenumbertable>
<lne id="249" begin="0" end="0"/>
<lne id="250" begin="1" end="1"/>
<lne id="251" begin="1" end="2"/>
<lne id="252" begin="3" end="3"/>
<lne id="253" begin="3" end="4"/>
<lne id="254" begin="5" end="5"/>
<lne id="255" begin="1" end="6"/>
<lne id="256" begin="0" end="7"/>
<lne id="257" begin="0" end="7"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="7"/>
<lve slot="1" name="258" begin="0" end="7"/>
</localvariabletable>
</operation>
<operation name="259">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<getasm/>
<get arg="12"/>
<load arg="36"/>
<push arg="162"/>
<pusht/>
<call arg="260"/>
<call arg="105"/>
</code>
<linenumbertable>
<lne id="261" begin="0" end="0"/>
<lne id="262" begin="0" end="1"/>
<lne id="263" begin="2" end="2"/>
<lne id="264" begin="3" end="3"/>
<lne id="265" begin="4" end="4"/>
<lne id="266" begin="2" end="5"/>
<lne id="267" begin="0" end="6"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="6"/>
<lve slot="1" name="268" begin="0" end="6"/>
</localvariabletable>
</operation>
<operation name="269">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="270"/>
<push arg="271"/>
<findme/>
<call arg="272"/>
<call arg="273"/>
</code>
<linenumbertable>
<lne id="274" begin="0" end="2"/>
<lne id="275" begin="0" end="3"/>
<lne id="276" begin="0" end="4"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="4"/>
</localvariabletable>
</operation>
<operation name="277">
<context type="14"/>
<parameters>
<parameter name="36" type="278"/>
</parameters>
<code>
<getasm/>
<get arg="1"/>
<push arg="277"/>
<load arg="36"/>
<call arg="279"/>
<dup/>
<call arg="40"/>
<if arg="280"/>
<load arg="36"/>
<call arg="42"/>
<goto arg="281"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="277"/>
<pcall arg="283"/>
<dup/>
<push arg="284"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="286"/>
<push arg="277"/>
<push arg="287"/>
<new/>
<dup/>
<store arg="46"/>
<pcall arg="288"/>
<pushf/>
<pcall arg="289"/>
<load arg="46"/>
<dup/>
<getasm/>
<getasm/>
<call arg="290"/>
<get arg="291"/>
<call arg="47"/>
<set arg="292"/>
<dup/>
<getasm/>
<push arg="45"/>
<push arg="16"/>
<new/>
<call arg="47"/>
<set arg="293"/>
<dup/>
<getasm/>
<push arg="45"/>
<push arg="16"/>
<new/>
<call arg="47"/>
<set arg="294"/>
<pop/>
<load arg="46"/>
</code>
<linenumbertable>
<lne id="295" begin="36" end="36"/>
<lne id="296" begin="36" end="37"/>
<lne id="297" begin="36" end="38"/>
<lne id="298" begin="34" end="40"/>
<lne id="299" begin="43" end="45"/>
<lne id="300" begin="41" end="47"/>
<lne id="301" begin="50" end="52"/>
<lne id="302" begin="48" end="54"/>
<lne id="303" begin="33" end="55"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="286" begin="29" end="56"/>
<lve slot="0" name="34" begin="0" end="56"/>
<lve slot="1" name="284" begin="0" end="56"/>
</localvariabletable>
</operation>
<operation name="304">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="305"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="69"/>
<pcall arg="283"/>
<dup/>
<push arg="308"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="286"/>
<push arg="69"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="309" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="308" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="310">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="308"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="286"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="314"/>
<call arg="47"/>
<set arg="315"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<call arg="316"/>
<call arg="47"/>
<set arg="317"/>
<pop/>
<getasm/>
<call arg="318"/>
<getasm/>
<call arg="318"/>
<get arg="293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="293"/>
<getasm/>
<load arg="136"/>
<pcall arg="320"/>
</code>
<linenumbertable>
<lne id="321" begin="11" end="11"/>
<lne id="322" begin="11" end="12"/>
<lne id="323" begin="9" end="14"/>
<lne id="324" begin="17" end="17"/>
<lne id="325" begin="17" end="18"/>
<lne id="326" begin="15" end="20"/>
<lne id="327" begin="23" end="23"/>
<lne id="328" begin="24" end="24"/>
<lne id="329" begin="23" end="25"/>
<lne id="330" begin="21" end="27"/>
<lne id="309" begin="8" end="28"/>
<lne id="331" begin="29" end="29"/>
<lne id="332" begin="29" end="30"/>
<lne id="333" begin="31" end="31"/>
<lne id="334" begin="31" end="32"/>
<lne id="335" begin="31" end="33"/>
<lne id="336" begin="34" end="34"/>
<lne id="337" begin="31" end="35"/>
<lne id="338" begin="29" end="36"/>
<lne id="339" begin="37" end="37"/>
<lne id="340" begin="38" end="38"/>
<lne id="341" begin="37" end="39"/>
<lne id="342" begin="29" end="39"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="286" begin="7" end="39"/>
<lve slot="2" name="308" begin="3" end="39"/>
<lve slot="0" name="34" begin="0" end="39"/>
<lve slot="1" name="343" begin="0" end="39"/>
</localvariabletable>
</operation>
<operation name="344">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<load arg="36"/>
<get arg="345"/>
<call arg="346"/>
<store arg="46"/>
<load arg="46"/>
<push arg="347"/>
<call arg="348"/>
<if arg="349"/>
<load arg="46"/>
<goto arg="41"/>
<load arg="46"/>
<pushi arg="46"/>
<load arg="46"/>
<call arg="350"/>
<call arg="351"/>
</code>
<linenumbertable>
<lne id="352" begin="0" end="0"/>
<lne id="353" begin="0" end="1"/>
<lne id="354" begin="0" end="2"/>
<lne id="355" begin="4" end="4"/>
<lne id="356" begin="5" end="5"/>
<lne id="357" begin="4" end="6"/>
<lne id="358" begin="8" end="8"/>
<lne id="359" begin="10" end="10"/>
<lne id="360" begin="11" end="11"/>
<lne id="361" begin="12" end="12"/>
<lne id="362" begin="12" end="13"/>
<lne id="363" begin="10" end="14"/>
<lne id="364" begin="4" end="14"/>
<lne id="365" begin="0" end="14"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="366" begin="3" end="14"/>
<lve slot="0" name="34" begin="0" end="14"/>
<lve slot="1" name="117" begin="0" end="14"/>
</localvariabletable>
</operation>
<operation name="367">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="368"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="72"/>
<pcall arg="283"/>
<dup/>
<push arg="369"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="308"/>
<push arg="72"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="370" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="369" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="371">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="369"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="372"/>
<call arg="373"/>
<call arg="374"/>
<if arg="375"/>
<getasm/>
<call arg="318"/>
<get arg="292"/>
<goto arg="376"/>
<load arg="46"/>
<get arg="372"/>
<call arg="47"/>
<set arg="292"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="377"/>
<call arg="47"/>
<set arg="377"/>
<dup/>
<getasm/>
<load arg="46"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="378"/>
<call arg="47"/>
<set arg="378"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="379"/>
<call arg="47"/>
<set arg="380"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="381"/>
<call arg="47"/>
<set arg="381"/>
<dup/>
<getasm/>
<getasm/>
<call arg="318"/>
<call arg="47"/>
<set arg="382"/>
<pop/>
<push arg="45"/>
<push arg="16"/>
<new/>
<load arg="46"/>
<get arg="383"/>
<iterate/>
<store arg="384"/>
<load arg="384"/>
<get arg="385"/>
<call arg="386"/>
<enditerate/>
<iterate/>
<store arg="384"/>
<getasm/>
<load arg="384"/>
<load arg="136"/>
<pcall arg="387"/>
<enditerate/>
<getasm/>
<call arg="318"/>
<getasm/>
<call arg="318"/>
<get arg="294"/>
<load arg="136"/>
<call arg="319"/>
<set arg="294"/>
<load arg="46"/>
<call arg="388"/>
<call arg="373"/>
<call arg="374"/>
<if arg="389"/>
<goto arg="390"/>
<load arg="46"/>
<call arg="388"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="391"/>
<getasm/>
<load arg="384"/>
<push arg="392"/>
<call arg="105"/>
<load arg="384"/>
<push arg="393"/>
<call arg="105"/>
<call arg="394"/>
<call arg="319"/>
<set arg="391"/>
<enditerate/>
<getasm/>
<load arg="136"/>
<pcall arg="395"/>
</code>
<linenumbertable>
<lne id="396" begin="11" end="11"/>
<lne id="397" begin="11" end="12"/>
<lne id="398" begin="11" end="13"/>
<lne id="399" begin="11" end="14"/>
<lne id="400" begin="16" end="16"/>
<lne id="401" begin="16" end="17"/>
<lne id="402" begin="16" end="18"/>
<lne id="403" begin="20" end="20"/>
<lne id="404" begin="20" end="21"/>
<lne id="405" begin="11" end="21"/>
<lne id="406" begin="9" end="23"/>
<lne id="407" begin="26" end="26"/>
<lne id="408" begin="26" end="27"/>
<lne id="409" begin="24" end="29"/>
<lne id="410" begin="32" end="32"/>
<lne id="411" begin="32" end="33"/>
<lne id="412" begin="30" end="35"/>
<lne id="413" begin="38" end="38"/>
<lne id="414" begin="39" end="39"/>
<lne id="415" begin="38" end="40"/>
<lne id="416" begin="36" end="42"/>
<lne id="417" begin="45" end="45"/>
<lne id="418" begin="45" end="46"/>
<lne id="419" begin="43" end="48"/>
<lne id="420" begin="51" end="51"/>
<lne id="421" begin="51" end="52"/>
<lne id="422" begin="49" end="54"/>
<lne id="423" begin="57" end="57"/>
<lne id="424" begin="57" end="58"/>
<lne id="425" begin="55" end="60"/>
<lne id="426" begin="63" end="63"/>
<lne id="427" begin="63" end="64"/>
<lne id="428" begin="61" end="66"/>
<lne id="370" begin="8" end="67"/>
<lne id="429" begin="71" end="71"/>
<lne id="430" begin="71" end="72"/>
<lne id="431" begin="75" end="75"/>
<lne id="432" begin="75" end="76"/>
<lne id="433" begin="68" end="78"/>
<lne id="434" begin="81" end="81"/>
<lne id="435" begin="82" end="82"/>
<lne id="436" begin="83" end="83"/>
<lne id="437" begin="81" end="84"/>
<lne id="438" begin="68" end="85"/>
<lne id="439" begin="86" end="86"/>
<lne id="440" begin="86" end="87"/>
<lne id="441" begin="88" end="88"/>
<lne id="442" begin="88" end="89"/>
<lne id="443" begin="88" end="90"/>
<lne id="444" begin="91" end="91"/>
<lne id="445" begin="88" end="92"/>
<lne id="446" begin="86" end="93"/>
<lne id="447" begin="94" end="94"/>
<lne id="448" begin="94" end="95"/>
<lne id="449" begin="94" end="96"/>
<lne id="450" begin="94" end="97"/>
<lne id="451" begin="100" end="100"/>
<lne id="452" begin="100" end="101"/>
<lne id="453" begin="104" end="104"/>
<lne id="454" begin="105" end="105"/>
<lne id="455" begin="105" end="106"/>
<lne id="456" begin="107" end="107"/>
<lne id="457" begin="108" end="108"/>
<lne id="458" begin="109" end="109"/>
<lne id="459" begin="108" end="110"/>
<lne id="460" begin="111" end="111"/>
<lne id="461" begin="112" end="112"/>
<lne id="462" begin="111" end="113"/>
<lne id="463" begin="107" end="114"/>
<lne id="464" begin="105" end="115"/>
<lne id="465" begin="104" end="116"/>
<lne id="466" begin="100" end="117"/>
<lne id="467" begin="94" end="117"/>
<lne id="468" begin="118" end="118"/>
<lne id="469" begin="119" end="119"/>
<lne id="470" begin="118" end="120"/>
<lne id="471" begin="68" end="120"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="472" begin="74" end="77"/>
<lve slot="4" name="385" begin="80" end="84"/>
<lve slot="4" name="473" begin="103" end="116"/>
<lve slot="3" name="308" begin="7" end="120"/>
<lve slot="2" name="369" begin="3" end="120"/>
<lve slot="0" name="34" begin="0" end="120"/>
<lve slot="1" name="343" begin="0" end="120"/>
</localvariabletable>
</operation>
<operation name="474">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<push arg="474"/>
<push arg="287"/>
<new/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<call arg="475"/>
<call arg="47"/>
<set arg="117"/>
<dup/>
<getasm/>
<load arg="46"/>
<call arg="47"/>
<set arg="113"/>
<pop/>
<load arg="46"/>
<get arg="476"/>
<call arg="373"/>
<if arg="477"/>
<goto arg="478"/>
<load arg="46"/>
<get arg="476"/>
<push arg="45"/>
<push arg="16"/>
<new/>
<pcall arg="479"/>
<load arg="46"/>
<load arg="46"/>
<get arg="476"/>
<load arg="136"/>
<call arg="319"/>
<set arg="476"/>
<getasm/>
<load arg="136"/>
<pcall arg="480"/>
</code>
<linenumbertable>
<lne id="481" begin="7" end="7"/>
<lne id="482" begin="7" end="8"/>
<lne id="483" begin="5" end="10"/>
<lne id="484" begin="13" end="13"/>
<lne id="485" begin="14" end="14"/>
<lne id="486" begin="13" end="15"/>
<lne id="487" begin="11" end="17"/>
<lne id="488" begin="20" end="20"/>
<lne id="489" begin="18" end="22"/>
<lne id="490" begin="24" end="24"/>
<lne id="491" begin="24" end="25"/>
<lne id="492" begin="24" end="26"/>
<lne id="493" begin="29" end="29"/>
<lne id="494" begin="29" end="30"/>
<lne id="495" begin="31" end="33"/>
<lne id="496" begin="29" end="34"/>
<lne id="497" begin="24" end="34"/>
<lne id="498" begin="35" end="35"/>
<lne id="499" begin="36" end="36"/>
<lne id="500" begin="36" end="37"/>
<lne id="501" begin="38" end="38"/>
<lne id="502" begin="36" end="39"/>
<lne id="503" begin="35" end="40"/>
<lne id="504" begin="41" end="41"/>
<lne id="505" begin="42" end="42"/>
<lne id="506" begin="41" end="43"/>
<lne id="507" begin="24" end="43"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="286" begin="3" end="43"/>
<lve slot="0" name="34" begin="0" end="43"/>
<lve slot="1" name="508" begin="0" end="43"/>
<lve slot="2" name="509" begin="0" end="43"/>
</localvariabletable>
</operation>
<operation name="510">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="511"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="74"/>
<pcall arg="283"/>
<dup/>
<push arg="308"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="286"/>
<push arg="74"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="512" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="308" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="513">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="308"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="286"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="379"/>
<call arg="47"/>
<set arg="380"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="514"/>
<call arg="47"/>
<set arg="514"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<call arg="515"/>
<call arg="47"/>
<set arg="113"/>
<pop/>
<load arg="136"/>
<pushf/>
<load arg="46"/>
<get arg="516"/>
<iterate/>
<store arg="384"/>
<load arg="384"/>
<get arg="514"/>
<call arg="374"/>
<call arg="517"/>
<enditerate/>
<set arg="518"/>
<load arg="46"/>
<call arg="388"/>
<call arg="373"/>
<call arg="374"/>
<if arg="519"/>
<goto arg="520"/>
<load arg="46"/>
<call arg="388"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="391"/>
<getasm/>
<load arg="384"/>
<push arg="392"/>
<call arg="105"/>
<load arg="384"/>
<push arg="393"/>
<call arg="105"/>
<call arg="394"/>
<call arg="319"/>
<set arg="391"/>
<enditerate/>
<load arg="136"/>
<get arg="113"/>
<load arg="136"/>
<get arg="113"/>
<get arg="521"/>
<load arg="136"/>
<call arg="319"/>
<set arg="521"/>
<getasm/>
<load arg="136"/>
<pcall arg="522"/>
</code>
<linenumbertable>
<lne id="523" begin="11" end="11"/>
<lne id="524" begin="11" end="12"/>
<lne id="525" begin="9" end="14"/>
<lne id="526" begin="17" end="17"/>
<lne id="527" begin="18" end="18"/>
<lne id="528" begin="17" end="19"/>
<lne id="529" begin="15" end="21"/>
<lne id="530" begin="24" end="24"/>
<lne id="531" begin="24" end="25"/>
<lne id="532" begin="22" end="27"/>
<lne id="533" begin="30" end="30"/>
<lne id="534" begin="30" end="31"/>
<lne id="535" begin="28" end="33"/>
<lne id="536" begin="36" end="36"/>
<lne id="537" begin="37" end="37"/>
<lne id="538" begin="37" end="38"/>
<lne id="539" begin="36" end="39"/>
<lne id="540" begin="34" end="41"/>
<lne id="512" begin="8" end="42"/>
<lne id="541" begin="43" end="43"/>
<lne id="542" begin="45" end="45"/>
<lne id="543" begin="45" end="46"/>
<lne id="544" begin="49" end="49"/>
<lne id="545" begin="49" end="50"/>
<lne id="546" begin="49" end="51"/>
<lne id="547" begin="44" end="53"/>
<lne id="548" begin="43" end="54"/>
<lne id="549" begin="55" end="55"/>
<lne id="550" begin="55" end="56"/>
<lne id="551" begin="55" end="57"/>
<lne id="552" begin="55" end="58"/>
<lne id="553" begin="61" end="61"/>
<lne id="554" begin="61" end="62"/>
<lne id="555" begin="65" end="65"/>
<lne id="556" begin="66" end="66"/>
<lne id="557" begin="66" end="67"/>
<lne id="558" begin="68" end="68"/>
<lne id="559" begin="69" end="69"/>
<lne id="560" begin="70" end="70"/>
<lne id="561" begin="69" end="71"/>
<lne id="562" begin="72" end="72"/>
<lne id="563" begin="73" end="73"/>
<lne id="564" begin="72" end="74"/>
<lne id="565" begin="68" end="75"/>
<lne id="566" begin="66" end="76"/>
<lne id="567" begin="65" end="77"/>
<lne id="568" begin="61" end="78"/>
<lne id="569" begin="55" end="78"/>
<lne id="570" begin="79" end="79"/>
<lne id="571" begin="79" end="80"/>
<lne id="572" begin="81" end="81"/>
<lne id="573" begin="81" end="82"/>
<lne id="574" begin="81" end="83"/>
<lne id="575" begin="84" end="84"/>
<lne id="576" begin="81" end="85"/>
<lne id="577" begin="79" end="86"/>
<lne id="578" begin="87" end="87"/>
<lne id="579" begin="88" end="88"/>
<lne id="580" begin="87" end="89"/>
<lne id="581" begin="43" end="89"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="582" begin="48" end="52"/>
<lve slot="4" name="473" begin="64" end="77"/>
<lve slot="3" name="286" begin="7" end="89"/>
<lve slot="2" name="308" begin="3" end="89"/>
<lve slot="0" name="34" begin="0" end="89"/>
<lve slot="1" name="343" begin="0" end="89"/>
</localvariabletable>
</operation>
<operation name="583">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="584"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="76"/>
<pcall arg="283"/>
<dup/>
<push arg="582"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="308"/>
<push arg="76"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="585" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="582" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="586">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="582"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="379"/>
<call arg="47"/>
<set arg="380"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="514"/>
<call arg="47"/>
<set arg="514"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<call arg="588"/>
<call arg="47"/>
<set arg="587"/>
<pop/>
<load arg="46"/>
<get arg="589"/>
<call arg="373"/>
<call arg="374"/>
<if arg="590"/>
<goto arg="591"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<load arg="136"/>
<call arg="592"/>
<set arg="589"/>
<load arg="46"/>
<call arg="388"/>
<call arg="373"/>
<call arg="374"/>
<if arg="519"/>
<goto arg="520"/>
<load arg="46"/>
<call arg="388"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="391"/>
<getasm/>
<load arg="384"/>
<push arg="392"/>
<call arg="105"/>
<load arg="384"/>
<push arg="393"/>
<call arg="105"/>
<call arg="394"/>
<call arg="319"/>
<set arg="391"/>
<enditerate/>
<load arg="136"/>
<get arg="587"/>
<load arg="136"/>
<get arg="587"/>
<get arg="516"/>
<load arg="136"/>
<call arg="319"/>
<set arg="516"/>
<getasm/>
<load arg="136"/>
<pcall arg="593"/>
</code>
<linenumbertable>
<lne id="594" begin="11" end="11"/>
<lne id="595" begin="11" end="12"/>
<lne id="596" begin="9" end="14"/>
<lne id="597" begin="17" end="17"/>
<lne id="598" begin="18" end="18"/>
<lne id="599" begin="17" end="19"/>
<lne id="600" begin="15" end="21"/>
<lne id="601" begin="24" end="24"/>
<lne id="602" begin="24" end="25"/>
<lne id="603" begin="22" end="27"/>
<lne id="604" begin="30" end="30"/>
<lne id="605" begin="30" end="31"/>
<lne id="606" begin="28" end="33"/>
<lne id="607" begin="36" end="36"/>
<lne id="608" begin="37" end="37"/>
<lne id="609" begin="37" end="38"/>
<lne id="610" begin="36" end="39"/>
<lne id="611" begin="34" end="41"/>
<lne id="585" begin="8" end="42"/>
<lne id="612" begin="43" end="43"/>
<lne id="613" begin="43" end="44"/>
<lne id="614" begin="43" end="45"/>
<lne id="615" begin="43" end="46"/>
<lne id="616" begin="49" end="49"/>
<lne id="617" begin="50" end="50"/>
<lne id="618" begin="51" end="51"/>
<lne id="619" begin="52" end="52"/>
<lne id="620" begin="50" end="53"/>
<lne id="621" begin="49" end="54"/>
<lne id="622" begin="43" end="54"/>
<lne id="623" begin="55" end="55"/>
<lne id="624" begin="55" end="56"/>
<lne id="625" begin="55" end="57"/>
<lne id="626" begin="55" end="58"/>
<lne id="627" begin="61" end="61"/>
<lne id="628" begin="61" end="62"/>
<lne id="629" begin="65" end="65"/>
<lne id="630" begin="66" end="66"/>
<lne id="631" begin="66" end="67"/>
<lne id="632" begin="68" end="68"/>
<lne id="633" begin="69" end="69"/>
<lne id="634" begin="70" end="70"/>
<lne id="635" begin="69" end="71"/>
<lne id="636" begin="72" end="72"/>
<lne id="637" begin="73" end="73"/>
<lne id="638" begin="72" end="74"/>
<lne id="639" begin="68" end="75"/>
<lne id="640" begin="66" end="76"/>
<lne id="641" begin="65" end="77"/>
<lne id="642" begin="61" end="78"/>
<lne id="643" begin="55" end="78"/>
<lne id="644" begin="79" end="79"/>
<lne id="645" begin="79" end="80"/>
<lne id="646" begin="81" end="81"/>
<lne id="647" begin="81" end="82"/>
<lne id="648" begin="81" end="83"/>
<lne id="649" begin="84" end="84"/>
<lne id="650" begin="81" end="85"/>
<lne id="651" begin="79" end="86"/>
<lne id="652" begin="87" end="87"/>
<lne id="653" begin="88" end="88"/>
<lne id="654" begin="87" end="89"/>
<lne id="655" begin="43" end="89"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="473" begin="64" end="77"/>
<lve slot="3" name="308" begin="7" end="89"/>
<lve slot="2" name="582" begin="3" end="89"/>
<lve slot="0" name="34" begin="0" end="89"/>
<lve slot="1" name="343" begin="0" end="89"/>
</localvariabletable>
</operation>
<operation name="656">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<load arg="36"/>
<get arg="589"/>
<store arg="136"/>
<push arg="656"/>
<push arg="287"/>
<new/>
<store arg="384"/>
<load arg="384"/>
<dup/>
<getasm/>
<load arg="136"/>
<get arg="657"/>
<call arg="47"/>
<set arg="657"/>
<dup/>
<getasm/>
<load arg="46"/>
<call arg="47"/>
<set arg="658"/>
<pop/>
<load arg="384"/>
</code>
<linenumbertable>
<lne id="659" begin="0" end="0"/>
<lne id="660" begin="0" end="1"/>
<lne id="661" begin="10" end="10"/>
<lne id="662" begin="10" end="11"/>
<lne id="663" begin="8" end="13"/>
<lne id="664" begin="16" end="16"/>
<lne id="665" begin="14" end="18"/>
<lne id="666" begin="20" end="20"/>
<lne id="667" begin="20" end="20"/>
<lne id="668" begin="20" end="20"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="308" begin="6" end="20"/>
<lve slot="3" name="669" begin="2" end="20"/>
<lve slot="0" name="34" begin="0" end="20"/>
<lve slot="1" name="208" begin="0" end="20"/>
<lve slot="2" name="670" begin="0" end="20"/>
</localvariabletable>
</operation>
<operation name="671">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="672"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="78"/>
<pcall arg="283"/>
<dup/>
<push arg="472"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="308"/>
<push arg="78"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="673" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="472" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="674">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="472"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="658"/>
<get arg="55"/>
<call arg="47"/>
<set arg="675"/>
<dup/>
<getasm/>
<load arg="46"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="210"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="658"/>
<call arg="676"/>
<call arg="47"/>
<set arg="658"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<call arg="588"/>
<call arg="47"/>
<set arg="677"/>
<pop/>
<load arg="46"/>
<call arg="388"/>
<call arg="373"/>
<call arg="374"/>
<if arg="678"/>
<goto arg="679"/>
<load arg="46"/>
<call arg="388"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="391"/>
<getasm/>
<load arg="384"/>
<push arg="392"/>
<call arg="105"/>
<load arg="384"/>
<push arg="393"/>
<call arg="105"/>
<call arg="394"/>
<call arg="319"/>
<set arg="391"/>
<enditerate/>
<load arg="136"/>
<get arg="677"/>
<load arg="136"/>
<get arg="677"/>
<get arg="680"/>
<load arg="136"/>
<call arg="319"/>
<set arg="680"/>
<getasm/>
<load arg="136"/>
<pcall arg="681"/>
</code>
<linenumbertable>
<lne id="682" begin="11" end="11"/>
<lne id="683" begin="11" end="12"/>
<lne id="684" begin="11" end="13"/>
<lne id="685" begin="9" end="15"/>
<lne id="686" begin="18" end="18"/>
<lne id="687" begin="19" end="19"/>
<lne id="688" begin="18" end="20"/>
<lne id="689" begin="16" end="22"/>
<lne id="690" begin="25" end="25"/>
<lne id="691" begin="26" end="26"/>
<lne id="692" begin="26" end="27"/>
<lne id="693" begin="25" end="28"/>
<lne id="694" begin="23" end="30"/>
<lne id="695" begin="33" end="33"/>
<lne id="696" begin="34" end="34"/>
<lne id="697" begin="34" end="35"/>
<lne id="698" begin="33" end="36"/>
<lne id="699" begin="31" end="38"/>
<lne id="673" begin="8" end="39"/>
<lne id="700" begin="40" end="40"/>
<lne id="701" begin="40" end="41"/>
<lne id="702" begin="40" end="42"/>
<lne id="703" begin="40" end="43"/>
<lne id="704" begin="46" end="46"/>
<lne id="705" begin="46" end="47"/>
<lne id="706" begin="50" end="50"/>
<lne id="707" begin="51" end="51"/>
<lne id="708" begin="51" end="52"/>
<lne id="709" begin="53" end="53"/>
<lne id="710" begin="54" end="54"/>
<lne id="711" begin="55" end="55"/>
<lne id="712" begin="54" end="56"/>
<lne id="713" begin="57" end="57"/>
<lne id="714" begin="58" end="58"/>
<lne id="715" begin="57" end="59"/>
<lne id="716" begin="53" end="60"/>
<lne id="717" begin="51" end="61"/>
<lne id="718" begin="50" end="62"/>
<lne id="719" begin="46" end="63"/>
<lne id="720" begin="40" end="63"/>
<lne id="721" begin="64" end="64"/>
<lne id="722" begin="64" end="65"/>
<lne id="723" begin="66" end="66"/>
<lne id="724" begin="66" end="67"/>
<lne id="725" begin="66" end="68"/>
<lne id="726" begin="69" end="69"/>
<lne id="727" begin="66" end="70"/>
<lne id="728" begin="64" end="71"/>
<lne id="729" begin="72" end="72"/>
<lne id="730" begin="73" end="73"/>
<lne id="731" begin="72" end="74"/>
<lne id="732" begin="40" end="74"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="473" begin="49" end="62"/>
<lve slot="3" name="308" begin="7" end="74"/>
<lve slot="2" name="472" begin="3" end="74"/>
<lve slot="0" name="34" begin="0" end="74"/>
<lve slot="1" name="343" begin="0" end="74"/>
</localvariabletable>
</operation>
<operation name="733">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="734"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="80"/>
<pcall arg="283"/>
<dup/>
<push arg="735"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="736"/>
<load arg="36"/>
<get arg="658"/>
<get arg="589"/>
<call arg="373"/>
<call arg="374"/>
<if arg="477"/>
<pushf/>
<goto arg="737"/>
<pushf/>
<load arg="36"/>
<get arg="658"/>
<get arg="589"/>
<get arg="738"/>
<iterate/>
<store arg="46"/>
<load arg="46"/>
<get arg="739"/>
<get arg="55"/>
<load arg="36"/>
<get arg="55"/>
<call arg="479"/>
<call arg="517"/>
<enditerate/>
<dup/>
<store arg="46"/>
<pcall arg="740"/>
<dup/>
<push arg="308"/>
<push arg="80"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="741" begin="21" end="21"/>
<lne id="742" begin="21" end="22"/>
<lne id="743" begin="21" end="23"/>
<lne id="744" begin="21" end="24"/>
<lne id="745" begin="21" end="25"/>
<lne id="746" begin="27" end="27"/>
<lne id="747" begin="30" end="30"/>
<lne id="748" begin="30" end="31"/>
<lne id="749" begin="30" end="32"/>
<lne id="750" begin="30" end="33"/>
<lne id="751" begin="36" end="36"/>
<lne id="752" begin="36" end="37"/>
<lne id="753" begin="36" end="38"/>
<lne id="754" begin="39" end="39"/>
<lne id="755" begin="39" end="40"/>
<lne id="756" begin="36" end="41"/>
<lne id="757" begin="29" end="43"/>
<lne id="758" begin="21" end="43"/>
<lne id="759" begin="47" end="52"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="760" begin="35" end="42"/>
<lve slot="2" name="736" begin="45" end="52"/>
<lve slot="1" name="735" begin="6" end="54"/>
<lve slot="0" name="34" begin="0" end="55"/>
</localvariabletable>
</operation>
<operation name="761">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="735"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="313"/>
<store arg="136"/>
<load arg="36"/>
<push arg="736"/>
<call arg="762"/>
<store arg="384"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="763"/>
<call arg="47"/>
<set arg="763"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="764"/>
<call arg="47"/>
<set arg="764"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="765"/>
<call arg="47"/>
<set arg="765"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="766"/>
<call arg="47"/>
<set arg="766"/>
<pop/>
<load arg="384"/>
<if arg="767"/>
<goto arg="768"/>
<getasm/>
<load arg="46"/>
<load arg="136"/>
<pcall arg="769"/>
<load arg="46"/>
<get arg="770"/>
<call arg="373"/>
<call arg="374"/>
<if arg="679"/>
<goto arg="771"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="770"/>
<call arg="772"/>
<set arg="770"/>
<load arg="136"/>
<get arg="770"/>
<load arg="136"/>
<set arg="773"/>
<getasm/>
<load arg="46"/>
<call arg="774"/>
<if arg="775"/>
<getasm/>
<load arg="46"/>
<call arg="776"/>
<if arg="777"/>
<load arg="46"/>
<get arg="778"/>
<call arg="373"/>
<call arg="374"/>
<if arg="779"/>
<load arg="46"/>
<get arg="780"/>
<call arg="373"/>
<call arg="374"/>
<if arg="781"/>
<goto arg="782"/>
<load arg="46"/>
<get arg="780"/>
<get arg="378"/>
<push arg="783"/>
<push arg="271"/>
<findme/>
<call arg="784"/>
<if arg="785"/>
<goto arg="782"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<call arg="786"/>
<set arg="378"/>
<goto arg="787"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<call arg="788"/>
<set arg="378"/>
<goto arg="789"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="780"/>
<load arg="46"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<get arg="790"/>
<get arg="55"/>
<call arg="791"/>
<set arg="378"/>
<goto arg="792"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<call arg="793"/>
<set arg="378"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="658"/>
<call arg="676"/>
<set arg="658"/>
<load arg="136"/>
<get arg="658"/>
<load arg="136"/>
<get arg="658"/>
<get arg="794"/>
<load arg="136"/>
<call arg="319"/>
<set arg="794"/>
<getasm/>
<load arg="136"/>
<pcall arg="795"/>
</code>
<linenumbertable>
<lne id="796" begin="15" end="15"/>
<lne id="797" begin="15" end="16"/>
<lne id="798" begin="13" end="18"/>
<lne id="799" begin="21" end="21"/>
<lne id="800" begin="22" end="22"/>
<lne id="801" begin="21" end="23"/>
<lne id="802" begin="19" end="25"/>
<lne id="803" begin="28" end="28"/>
<lne id="804" begin="28" end="29"/>
<lne id="805" begin="26" end="31"/>
<lne id="806" begin="34" end="34"/>
<lne id="807" begin="34" end="35"/>
<lne id="808" begin="32" end="37"/>
<lne id="809" begin="40" end="40"/>
<lne id="810" begin="40" end="41"/>
<lne id="811" begin="38" end="43"/>
<lne id="812" begin="46" end="46"/>
<lne id="813" begin="46" end="47"/>
<lne id="814" begin="44" end="49"/>
<lne id="759" begin="12" end="50"/>
<lne id="815" begin="51" end="51"/>
<lne id="816" begin="54" end="54"/>
<lne id="817" begin="55" end="55"/>
<lne id="818" begin="56" end="56"/>
<lne id="819" begin="54" end="57"/>
<lne id="820" begin="51" end="57"/>
<lne id="821" begin="58" end="58"/>
<lne id="822" begin="58" end="59"/>
<lne id="823" begin="58" end="60"/>
<lne id="824" begin="58" end="61"/>
<lne id="825" begin="64" end="64"/>
<lne id="826" begin="65" end="65"/>
<lne id="827" begin="66" end="66"/>
<lne id="828" begin="66" end="67"/>
<lne id="829" begin="65" end="68"/>
<lne id="830" begin="64" end="69"/>
<lne id="831" begin="70" end="70"/>
<lne id="832" begin="70" end="71"/>
<lne id="833" begin="72" end="72"/>
<lne id="834" begin="70" end="73"/>
<lne id="835" begin="58" end="73"/>
<lne id="836" begin="74" end="74"/>
<lne id="837" begin="75" end="75"/>
<lne id="838" begin="74" end="76"/>
<lne id="839" begin="78" end="78"/>
<lne id="840" begin="79" end="79"/>
<lne id="841" begin="78" end="80"/>
<lne id="842" begin="82" end="82"/>
<lne id="843" begin="82" end="83"/>
<lne id="844" begin="82" end="84"/>
<lne id="845" begin="82" end="85"/>
<lne id="846" begin="87" end="87"/>
<lne id="847" begin="87" end="88"/>
<lne id="848" begin="87" end="89"/>
<lne id="849" begin="87" end="90"/>
<lne id="850" begin="93" end="93"/>
<lne id="851" begin="93" end="94"/>
<lne id="852" begin="93" end="95"/>
<lne id="853" begin="96" end="98"/>
<lne id="854" begin="93" end="99"/>
<lne id="855" begin="102" end="102"/>
<lne id="856" begin="103" end="103"/>
<lne id="857" begin="104" end="104"/>
<lne id="858" begin="103" end="105"/>
<lne id="859" begin="102" end="106"/>
<lne id="860" begin="93" end="106"/>
<lne id="861" begin="87" end="106"/>
<lne id="862" begin="108" end="108"/>
<lne id="863" begin="109" end="109"/>
<lne id="864" begin="110" end="110"/>
<lne id="865" begin="109" end="111"/>
<lne id="866" begin="108" end="112"/>
<lne id="867" begin="82" end="112"/>
<lne id="868" begin="114" end="114"/>
<lne id="869" begin="115" end="115"/>
<lne id="870" begin="116" end="116"/>
<lne id="871" begin="116" end="117"/>
<lne id="872" begin="118" end="118"/>
<lne id="873" begin="118" end="119"/>
<lne id="874" begin="118" end="120"/>
<lne id="875" begin="118" end="121"/>
<lne id="876" begin="118" end="122"/>
<lne id="877" begin="118" end="123"/>
<lne id="878" begin="115" end="124"/>
<lne id="879" begin="114" end="125"/>
<lne id="880" begin="78" end="125"/>
<lne id="881" begin="127" end="127"/>
<lne id="882" begin="128" end="128"/>
<lne id="883" begin="129" end="129"/>
<lne id="884" begin="128" end="130"/>
<lne id="885" begin="127" end="131"/>
<lne id="886" begin="74" end="131"/>
<lne id="887" begin="132" end="132"/>
<lne id="888" begin="133" end="133"/>
<lne id="889" begin="134" end="134"/>
<lne id="890" begin="134" end="135"/>
<lne id="891" begin="133" end="136"/>
<lne id="892" begin="132" end="137"/>
<lne id="893" begin="138" end="138"/>
<lne id="894" begin="138" end="139"/>
<lne id="895" begin="140" end="140"/>
<lne id="896" begin="140" end="141"/>
<lne id="897" begin="140" end="142"/>
<lne id="898" begin="143" end="143"/>
<lne id="899" begin="140" end="144"/>
<lne id="900" begin="138" end="145"/>
<lne id="901" begin="146" end="146"/>
<lne id="902" begin="147" end="147"/>
<lne id="903" begin="146" end="148"/>
<lne id="904" begin="51" end="148"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="736" begin="11" end="148"/>
<lve slot="3" name="308" begin="7" end="148"/>
<lve slot="2" name="735" begin="3" end="148"/>
<lve slot="0" name="34" begin="0" end="148"/>
<lve slot="1" name="343" begin="0" end="148"/>
</localvariabletable>
</operation>
<operation name="905">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<load arg="36"/>
<get arg="658"/>
<store arg="136"/>
<load arg="136"/>
<get arg="589"/>
<store arg="384"/>
<push arg="45"/>
<push arg="16"/>
<new/>
<load arg="384"/>
<get arg="738"/>
<iterate/>
<store arg="906"/>
<load arg="906"/>
<get arg="739"/>
<get arg="55"/>
<load arg="36"/>
<get arg="55"/>
<call arg="479"/>
<call arg="907"/>
<if arg="908"/>
<load arg="906"/>
<call arg="386"/>
<enditerate/>
<call arg="909"/>
<call arg="910"/>
<store arg="906"/>
<getasm/>
<load arg="136"/>
<call arg="676"/>
<get arg="589"/>
<store arg="911"/>
<push arg="905"/>
<push arg="287"/>
<new/>
<store arg="912"/>
<load arg="912"/>
<dup/>
<getasm/>
<load arg="906"/>
<get arg="657"/>
<call arg="47"/>
<set arg="657"/>
<dup/>
<getasm/>
<load arg="906"/>
<get arg="913"/>
<call arg="47"/>
<set arg="913"/>
<dup/>
<getasm/>
<load arg="46"/>
<call arg="47"/>
<set arg="739"/>
<pop/>
<load arg="911"/>
<load arg="911"/>
<get arg="738"/>
<load arg="912"/>
<call arg="319"/>
<set arg="738"/>
<load arg="912"/>
</code>
<linenumbertable>
<lne id="914" begin="0" end="0"/>
<lne id="915" begin="0" end="1"/>
<lne id="916" begin="3" end="3"/>
<lne id="917" begin="3" end="4"/>
<lne id="918" begin="9" end="9"/>
<lne id="919" begin="9" end="10"/>
<lne id="920" begin="13" end="13"/>
<lne id="921" begin="13" end="14"/>
<lne id="922" begin="13" end="15"/>
<lne id="923" begin="16" end="16"/>
<lne id="924" begin="16" end="17"/>
<lne id="925" begin="13" end="18"/>
<lne id="926" begin="6" end="25"/>
<lne id="927" begin="27" end="27"/>
<lne id="928" begin="28" end="28"/>
<lne id="929" begin="27" end="29"/>
<lne id="930" begin="27" end="30"/>
<lne id="931" begin="39" end="39"/>
<lne id="932" begin="39" end="40"/>
<lne id="933" begin="37" end="42"/>
<lne id="934" begin="45" end="45"/>
<lne id="935" begin="45" end="46"/>
<lne id="936" begin="43" end="48"/>
<lne id="937" begin="51" end="51"/>
<lne id="938" begin="49" end="53"/>
<lne id="939" begin="55" end="55"/>
<lne id="940" begin="56" end="56"/>
<lne id="941" begin="56" end="57"/>
<lne id="942" begin="58" end="58"/>
<lne id="943" begin="56" end="59"/>
<lne id="944" begin="55" end="60"/>
<lne id="945" begin="61" end="61"/>
<lne id="946" begin="61" end="61"/>
<lne id="947" begin="55" end="61"/>
</linenumbertable>
<localvariabletable>
<lve slot="5" name="760" begin="12" end="22"/>
<lve slot="7" name="308" begin="35" end="61"/>
<lve slot="3" name="208" begin="2" end="61"/>
<lve slot="4" name="948" begin="5" end="61"/>
<lve slot="5" name="669" begin="26" end="61"/>
<lve slot="6" name="949" begin="31" end="61"/>
<lve slot="0" name="34" begin="0" end="61"/>
<lve slot="1" name="247" begin="0" end="61"/>
<lve slot="2" name="950" begin="0" end="61"/>
</localvariabletable>
</operation>
<operation name="951">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<load arg="36"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<store arg="46"/>
<load arg="46"/>
<get arg="952"/>
<call arg="373"/>
<load arg="46"/>
<get arg="790"/>
<call arg="373"/>
<call arg="953"/>
<if arg="954"/>
<load arg="36"/>
<get arg="778"/>
<call arg="373"/>
<if arg="477"/>
<getasm/>
<load arg="36"/>
<get arg="778"/>
<load arg="46"/>
<get arg="790"/>
<call arg="955"/>
<call arg="373"/>
<if arg="956"/>
<pusht/>
<goto arg="957"/>
<pushf/>
<goto arg="44"/>
<pushf/>
<goto arg="958"/>
<pushf/>
</code>
<linenumbertable>
<lne id="959" begin="0" end="0"/>
<lne id="960" begin="0" end="1"/>
<lne id="961" begin="0" end="2"/>
<lne id="962" begin="0" end="3"/>
<lne id="963" begin="5" end="5"/>
<lne id="964" begin="5" end="6"/>
<lne id="965" begin="5" end="7"/>
<lne id="966" begin="8" end="8"/>
<lne id="967" begin="8" end="9"/>
<lne id="968" begin="8" end="10"/>
<lne id="969" begin="5" end="11"/>
<lne id="970" begin="13" end="13"/>
<lne id="971" begin="13" end="14"/>
<lne id="972" begin="13" end="15"/>
<lne id="973" begin="17" end="17"/>
<lne id="974" begin="18" end="18"/>
<lne id="975" begin="18" end="19"/>
<lne id="976" begin="20" end="20"/>
<lne id="977" begin="20" end="21"/>
<lne id="978" begin="17" end="22"/>
<lne id="979" begin="17" end="23"/>
<lne id="980" begin="25" end="25"/>
<lne id="981" begin="27" end="27"/>
<lne id="982" begin="17" end="27"/>
<lne id="983" begin="29" end="29"/>
<lne id="984" begin="13" end="29"/>
<lne id="985" begin="31" end="31"/>
<lne id="986" begin="5" end="31"/>
<lne id="987" begin="0" end="31"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="113" begin="4" end="31"/>
<lve slot="0" name="34" begin="0" end="31"/>
<lve slot="1" name="735" begin="0" end="31"/>
</localvariabletable>
</operation>
<operation name="988">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<push arg="989"/>
<push arg="287"/>
<new/>
<store arg="46"/>
<load arg="46"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="778"/>
<load arg="36"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<get arg="790"/>
<call arg="955"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<get arg="790"/>
<get arg="55"/>
<push arg="162"/>
<call arg="116"/>
<getasm/>
<load arg="36"/>
<get arg="778"/>
<load arg="36"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<get arg="790"/>
<call arg="955"/>
<push arg="162"/>
<call arg="163"/>
<call arg="116"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="991"/>
<set arg="55"/>
<call arg="47"/>
<set arg="992"/>
<dup/>
<getasm/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="993"/>
<set arg="55"/>
<call arg="47"/>
<set arg="994"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<get arg="952"/>
<call arg="475"/>
<call arg="47"/>
<set arg="117"/>
<pop/>
<load arg="46"/>
</code>
<linenumbertable>
<lne id="995" begin="7" end="7"/>
<lne id="996" begin="8" end="8"/>
<lne id="997" begin="8" end="9"/>
<lne id="998" begin="10" end="10"/>
<lne id="999" begin="10" end="11"/>
<lne id="1000" begin="10" end="12"/>
<lne id="1001" begin="10" end="13"/>
<lne id="1002" begin="10" end="14"/>
<lne id="1003" begin="7" end="15"/>
<lne id="1004" begin="7" end="16"/>
<lne id="1005" begin="5" end="18"/>
<lne id="1006" begin="21" end="21"/>
<lne id="1007" begin="21" end="22"/>
<lne id="1008" begin="21" end="23"/>
<lne id="1009" begin="21" end="24"/>
<lne id="1010" begin="21" end="25"/>
<lne id="1011" begin="21" end="26"/>
<lne id="1012" begin="27" end="27"/>
<lne id="1013" begin="21" end="28"/>
<lne id="1014" begin="29" end="29"/>
<lne id="1015" begin="30" end="30"/>
<lne id="1016" begin="30" end="31"/>
<lne id="1017" begin="32" end="32"/>
<lne id="1018" begin="32" end="33"/>
<lne id="1019" begin="32" end="34"/>
<lne id="1020" begin="32" end="35"/>
<lne id="1021" begin="32" end="36"/>
<lne id="1022" begin="29" end="37"/>
<lne id="1023" begin="38" end="38"/>
<lne id="1024" begin="29" end="39"/>
<lne id="1025" begin="21" end="40"/>
<lne id="1026" begin="19" end="42"/>
<lne id="1027" begin="45" end="50"/>
<lne id="1028" begin="43" end="52"/>
<lne id="1029" begin="55" end="60"/>
<lne id="1030" begin="53" end="62"/>
<lne id="1031" begin="65" end="65"/>
<lne id="1032" begin="66" end="66"/>
<lne id="1033" begin="66" end="67"/>
<lne id="1034" begin="66" end="68"/>
<lne id="1035" begin="66" end="69"/>
<lne id="1036" begin="66" end="70"/>
<lne id="1037" begin="65" end="71"/>
<lne id="1038" begin="63" end="73"/>
<lne id="1039" begin="75" end="75"/>
<lne id="1040" begin="75" end="75"/>
<lne id="1041" begin="75" end="75"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="308" begin="3" end="75"/>
<lve slot="0" name="34" begin="0" end="75"/>
<lve slot="1" name="735" begin="0" end="75"/>
</localvariabletable>
</operation>
<operation name="1042">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<load arg="36"/>
<get arg="780"/>
<call arg="373"/>
<if arg="1043"/>
<load arg="36"/>
<get arg="780"/>
<get arg="378"/>
<store arg="46"/>
<load arg="46"/>
<push arg="1044"/>
<push arg="271"/>
<findme/>
<call arg="1045"/>
<load arg="46"/>
<push arg="1046"/>
<push arg="271"/>
<findme/>
<call arg="1045"/>
<call arg="953"/>
<load arg="46"/>
<push arg="1047"/>
<push arg="271"/>
<findme/>
<call arg="1045"/>
<call arg="953"/>
<goto arg="956"/>
<pushf/>
</code>
<linenumbertable>
<lne id="1048" begin="0" end="0"/>
<lne id="1049" begin="0" end="1"/>
<lne id="1050" begin="0" end="2"/>
<lne id="1051" begin="4" end="4"/>
<lne id="1052" begin="4" end="5"/>
<lne id="1053" begin="4" end="6"/>
<lne id="1054" begin="8" end="8"/>
<lne id="1055" begin="9" end="11"/>
<lne id="1056" begin="8" end="12"/>
<lne id="1057" begin="13" end="13"/>
<lne id="1058" begin="14" end="16"/>
<lne id="1059" begin="13" end="17"/>
<lne id="1060" begin="8" end="18"/>
<lne id="1061" begin="19" end="19"/>
<lne id="1062" begin="20" end="22"/>
<lne id="1063" begin="19" end="23"/>
<lne id="1064" begin="8" end="24"/>
<lne id="1065" begin="4" end="24"/>
<lne id="1066" begin="26" end="26"/>
<lne id="1067" begin="0" end="26"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="378" begin="7" end="24"/>
<lve slot="0" name="34" begin="0" end="26"/>
<lve slot="1" name="735" begin="0" end="26"/>
</localvariabletable>
</operation>
<operation name="1068">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<push arg="989"/>
<push arg="287"/>
<new/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="378"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<push arg="162"/>
<call arg="116"/>
<load arg="36"/>
<get arg="378"/>
<push arg="162"/>
<call arg="163"/>
<call arg="116"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="991"/>
<set arg="55"/>
<call arg="47"/>
<set arg="992"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="378"/>
<call arg="1069"/>
<call arg="47"/>
<set arg="994"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="117"/>
<call arg="475"/>
<call arg="47"/>
<set arg="117"/>
<pop/>
<load arg="136"/>
</code>
<linenumbertable>
<lne id="1070" begin="7" end="7"/>
<lne id="1071" begin="7" end="8"/>
<lne id="1072" begin="7" end="9"/>
<lne id="1073" begin="5" end="11"/>
<lne id="1074" begin="14" end="14"/>
<lne id="1075" begin="15" end="15"/>
<lne id="1076" begin="14" end="16"/>
<lne id="1077" begin="17" end="17"/>
<lne id="1078" begin="17" end="18"/>
<lne id="1079" begin="19" end="19"/>
<lne id="1080" begin="17" end="20"/>
<lne id="1081" begin="14" end="21"/>
<lne id="1082" begin="12" end="23"/>
<lne id="1083" begin="26" end="31"/>
<lne id="1084" begin="24" end="33"/>
<lne id="1085" begin="36" end="36"/>
<lne id="1086" begin="37" end="37"/>
<lne id="1087" begin="37" end="38"/>
<lne id="1088" begin="36" end="39"/>
<lne id="1089" begin="34" end="41"/>
<lne id="1090" begin="44" end="44"/>
<lne id="1091" begin="45" end="45"/>
<lne id="1092" begin="45" end="46"/>
<lne id="1093" begin="44" end="47"/>
<lne id="1094" begin="42" end="49"/>
<lne id="1095" begin="51" end="51"/>
<lne id="1096" begin="51" end="51"/>
<lne id="1097" begin="51" end="51"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="308" begin="3" end="51"/>
<lve slot="0" name="34" begin="0" end="51"/>
<lve slot="1" name="780" begin="0" end="51"/>
<lve slot="2" name="1098" begin="0" end="51"/>
</localvariabletable>
</operation>
<operation name="1099">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<push arg="45"/>
<push arg="16"/>
<new/>
<load arg="46"/>
<get arg="1100"/>
<iterate/>
<store arg="136"/>
<load arg="136"/>
<get arg="1101"/>
<pusht/>
<call arg="479"/>
<pushf/>
<load arg="136"/>
<get arg="1102"/>
<iterate/>
<store arg="384"/>
<load arg="384"/>
<get arg="1103"/>
<load arg="36"/>
<get arg="1103"/>
<call arg="479"/>
<call arg="517"/>
<enditerate/>
<call arg="1104"/>
<call arg="907"/>
<if arg="957"/>
<load arg="136"/>
<call arg="386"/>
<enditerate/>
<call arg="909"/>
<call arg="910"/>
</code>
<linenumbertable>
<lne id="1105" begin="3" end="3"/>
<lne id="1106" begin="3" end="4"/>
<lne id="1107" begin="7" end="7"/>
<lne id="1108" begin="7" end="8"/>
<lne id="1109" begin="9" end="9"/>
<lne id="1110" begin="7" end="10"/>
<lne id="1111" begin="12" end="12"/>
<lne id="1112" begin="12" end="13"/>
<lne id="1113" begin="16" end="16"/>
<lne id="1114" begin="16" end="17"/>
<lne id="1115" begin="18" end="18"/>
<lne id="1116" begin="18" end="19"/>
<lne id="1117" begin="16" end="20"/>
<lne id="1118" begin="11" end="22"/>
<lne id="1119" begin="7" end="23"/>
<lne id="1120" begin="0" end="30"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="1121" begin="15" end="21"/>
<lve slot="3" name="286" begin="6" end="27"/>
<lve slot="0" name="34" begin="0" end="30"/>
<lve slot="1" name="778" begin="0" end="30"/>
<lve slot="2" name="385" begin="0" end="30"/>
</localvariabletable>
</operation>
<operation name="1122">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<push arg="1123"/>
<push arg="287"/>
<new/>
<store arg="46"/>
<load arg="46"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="778"/>
<get arg="1103"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="778"/>
<get arg="1124"/>
<call arg="47"/>
<set arg="1125"/>
<dup/>
<getasm/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1126"/>
<set arg="55"/>
<call arg="47"/>
<set arg="992"/>
<dup/>
<getasm/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="993"/>
<set arg="55"/>
<call arg="47"/>
<set arg="994"/>
<pop/>
<load arg="46"/>
</code>
<linenumbertable>
<lne id="1127" begin="7" end="7"/>
<lne id="1128" begin="7" end="8"/>
<lne id="1129" begin="7" end="9"/>
<lne id="1130" begin="5" end="11"/>
<lne id="1131" begin="14" end="14"/>
<lne id="1132" begin="14" end="15"/>
<lne id="1133" begin="14" end="16"/>
<lne id="1134" begin="12" end="18"/>
<lne id="1135" begin="21" end="26"/>
<lne id="1136" begin="19" end="28"/>
<lne id="1137" begin="31" end="36"/>
<lne id="1138" begin="29" end="38"/>
<lne id="1139" begin="40" end="40"/>
<lne id="1140" begin="40" end="40"/>
<lne id="1141" begin="40" end="40"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="308" begin="3" end="40"/>
<lve slot="0" name="34" begin="0" end="40"/>
<lve slot="1" name="735" begin="0" end="40"/>
</localvariabletable>
</operation>
<operation name="1142">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<push arg="1143"/>
<push arg="287"/>
<new/>
<store arg="46"/>
<load arg="46"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="780"/>
<get arg="378"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="780"/>
<get arg="378"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1144"/>
<set arg="55"/>
<call arg="47"/>
<set arg="992"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="780"/>
<get arg="378"/>
<call arg="1069"/>
<call arg="47"/>
<set arg="994"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="780"/>
<get arg="117"/>
<call arg="475"/>
<call arg="47"/>
<set arg="117"/>
<pop/>
<load arg="46"/>
</code>
<linenumbertable>
<lne id="1145" begin="7" end="7"/>
<lne id="1146" begin="7" end="8"/>
<lne id="1147" begin="7" end="9"/>
<lne id="1148" begin="7" end="10"/>
<lne id="1149" begin="5" end="12"/>
<lne id="1150" begin="15" end="15"/>
<lne id="1151" begin="15" end="16"/>
<lne id="1152" begin="15" end="17"/>
<lne id="1153" begin="18" end="18"/>
<lne id="1154" begin="15" end="19"/>
<lne id="1155" begin="13" end="21"/>
<lne id="1156" begin="24" end="29"/>
<lne id="1157" begin="22" end="31"/>
<lne id="1158" begin="34" end="34"/>
<lne id="1159" begin="35" end="35"/>
<lne id="1160" begin="35" end="36"/>
<lne id="1161" begin="35" end="37"/>
<lne id="1162" begin="34" end="38"/>
<lne id="1163" begin="32" end="40"/>
<lne id="1164" begin="43" end="43"/>
<lne id="1165" begin="44" end="44"/>
<lne id="1166" begin="44" end="45"/>
<lne id="1167" begin="44" end="46"/>
<lne id="1168" begin="43" end="47"/>
<lne id="1169" begin="41" end="49"/>
<lne id="1170" begin="51" end="51"/>
<lne id="1171" begin="51" end="51"/>
<lne id="1172" begin="51" end="51"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="308" begin="3" end="51"/>
<lve slot="0" name="34" begin="0" end="51"/>
<lve slot="1" name="735" begin="0" end="51"/>
</localvariabletable>
</operation>
<operation name="1173">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<load arg="36"/>
<push arg="1044"/>
<push arg="271"/>
<findme/>
<call arg="784"/>
<load arg="36"/>
<push arg="1174"/>
<push arg="271"/>
<findme/>
<call arg="784"/>
<call arg="953"/>
<if arg="1175"/>
<load arg="36"/>
<push arg="1046"/>
<push arg="271"/>
<findme/>
<call arg="784"/>
<if arg="1176"/>
<load arg="36"/>
<push arg="1047"/>
<push arg="271"/>
<findme/>
<call arg="784"/>
<if arg="1177"/>
<load arg="36"/>
<push arg="783"/>
<push arg="271"/>
<findme/>
<call arg="784"/>
<if arg="478"/>
<push arg="45"/>
<push arg="16"/>
<new/>
<call arg="910"/>
<goto arg="1178"/>
<load arg="36"/>
<get arg="1179"/>
<if arg="1180"/>
<load arg="36"/>
<get arg="1181"/>
<load arg="36"/>
<get arg="1182"/>
<call arg="953"/>
<if arg="1183"/>
<load arg="36"/>
<get arg="1184"/>
<if arg="1185"/>
<push arg="45"/>
<push arg="16"/>
<new/>
<call arg="910"/>
<goto arg="768"/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1186"/>
<set arg="55"/>
<goto arg="1187"/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1188"/>
<set arg="55"/>
<goto arg="1178"/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1189"/>
<set arg="55"/>
<goto arg="520"/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1189"/>
<set arg="55"/>
<goto arg="1190"/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="1188"/>
<set arg="55"/>
<goto arg="781"/>
<push arg="990"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="993"/>
<set arg="55"/>
</code>
<linenumbertable>
<lne id="1191" begin="0" end="0"/>
<lne id="1192" begin="1" end="3"/>
<lne id="1193" begin="0" end="4"/>
<lne id="1194" begin="5" end="5"/>
<lne id="1195" begin="6" end="8"/>
<lne id="1196" begin="5" end="9"/>
<lne id="1197" begin="0" end="10"/>
<lne id="1198" begin="12" end="12"/>
<lne id="1199" begin="13" end="15"/>
<lne id="1200" begin="12" end="16"/>
<lne id="1201" begin="18" end="18"/>
<lne id="1202" begin="19" end="21"/>
<lne id="1203" begin="18" end="22"/>
<lne id="1204" begin="24" end="24"/>
<lne id="1205" begin="25" end="27"/>
<lne id="1206" begin="24" end="28"/>
<lne id="1207" begin="30" end="33"/>
<lne id="1208" begin="35" end="35"/>
<lne id="1209" begin="35" end="36"/>
<lne id="1210" begin="38" end="38"/>
<lne id="1211" begin="38" end="39"/>
<lne id="1212" begin="40" end="40"/>
<lne id="1213" begin="40" end="41"/>
<lne id="1214" begin="38" end="42"/>
<lne id="1215" begin="44" end="44"/>
<lne id="1216" begin="44" end="45"/>
<lne id="1217" begin="47" end="50"/>
<lne id="1218" begin="52" end="57"/>
<lne id="1219" begin="44" end="57"/>
<lne id="1220" begin="59" end="64"/>
<lne id="1221" begin="38" end="64"/>
<lne id="1222" begin="66" end="71"/>
<lne id="1223" begin="35" end="71"/>
<lne id="1224" begin="24" end="71"/>
<lne id="1225" begin="73" end="78"/>
<lne id="1226" begin="18" end="78"/>
<lne id="1227" begin="80" end="85"/>
<lne id="1228" begin="12" end="85"/>
<lne id="1229" begin="87" end="92"/>
<lne id="1230" begin="0" end="92"/>
</linenumbertable>
<localvariabletable>
<lve slot="0" name="34" begin="0" end="92"/>
<lve slot="1" name="378" begin="0" end="92"/>
</localvariabletable>
</operation>
<operation name="1231">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<push arg="1231"/>
<push arg="287"/>
<new/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="764"/>
<call arg="47"/>
<set arg="764"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="55"/>
<call arg="47"/>
<set arg="392"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1232"/>
<call arg="47"/>
<set arg="393"/>
<pop/>
<load arg="136"/>
</code>
<linenumbertable>
<lne id="1233" begin="7" end="7"/>
<lne id="1234" begin="7" end="8"/>
<lne id="1235" begin="5" end="10"/>
<lne id="1236" begin="13" end="13"/>
<lne id="1237" begin="13" end="14"/>
<lne id="1238" begin="11" end="16"/>
<lne id="1239" begin="19" end="19"/>
<lne id="1240" begin="19" end="20"/>
<lne id="1241" begin="17" end="22"/>
<lne id="1242" begin="24" end="24"/>
<lne id="1243" begin="24" end="24"/>
<lne id="1244" begin="24" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="284" begin="3" end="24"/>
<lve slot="0" name="34" begin="0" end="24"/>
<lve slot="1" name="392" begin="0" end="24"/>
<lve slot="2" name="393" begin="0" end="24"/>
</localvariabletable>
</operation>
<operation name="1245">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="1246"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<load arg="36"/>
<get arg="1247"/>
<call arg="373"/>
<call arg="374"/>
<load arg="36"/>
<get arg="1247"/>
<call arg="373"/>
<call arg="374"/>
<if arg="38"/>
<pushf/>
<goto arg="1248"/>
<load arg="36"/>
<get arg="1247"/>
<get arg="113"/>
<call arg="373"/>
<call arg="374"/>
<load arg="36"/>
<get arg="1247"/>
<get arg="587"/>
<call arg="373"/>
<call arg="374"/>
<call arg="953"/>
<load arg="36"/>
<get arg="1247"/>
<get arg="658"/>
<call arg="373"/>
<call arg="374"/>
<call arg="953"/>
<load arg="36"/>
<get arg="1247"/>
<get arg="1249"/>
<call arg="373"/>
<call arg="374"/>
<call arg="953"/>
<call arg="1104"/>
<call arg="907"/>
<if arg="679"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="82"/>
<pcall arg="283"/>
<dup/>
<push arg="735"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="308"/>
<push arg="82"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="1250" begin="7" end="7"/>
<lne id="1251" begin="7" end="8"/>
<lne id="1252" begin="7" end="9"/>
<lne id="1253" begin="7" end="10"/>
<lne id="1254" begin="11" end="11"/>
<lne id="1255" begin="11" end="12"/>
<lne id="1256" begin="11" end="13"/>
<lne id="1257" begin="11" end="14"/>
<lne id="1258" begin="16" end="16"/>
<lne id="1259" begin="18" end="18"/>
<lne id="1260" begin="18" end="19"/>
<lne id="1261" begin="18" end="20"/>
<lne id="1262" begin="18" end="21"/>
<lne id="1263" begin="18" end="22"/>
<lne id="1264" begin="23" end="23"/>
<lne id="1265" begin="23" end="24"/>
<lne id="1266" begin="23" end="25"/>
<lne id="1267" begin="23" end="26"/>
<lne id="1268" begin="23" end="27"/>
<lne id="1269" begin="18" end="28"/>
<lne id="1270" begin="29" end="29"/>
<lne id="1271" begin="29" end="30"/>
<lne id="1272" begin="29" end="31"/>
<lne id="1273" begin="29" end="32"/>
<lne id="1274" begin="29" end="33"/>
<lne id="1275" begin="18" end="34"/>
<lne id="1276" begin="35" end="35"/>
<lne id="1277" begin="35" end="36"/>
<lne id="1278" begin="35" end="37"/>
<lne id="1279" begin="35" end="38"/>
<lne id="1280" begin="35" end="39"/>
<lne id="1281" begin="18" end="40"/>
<lne id="1282" begin="11" end="40"/>
<lne id="1283" begin="7" end="41"/>
<lne id="1284" begin="56" end="61"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="735" begin="6" end="63"/>
<lve slot="0" name="34" begin="0" end="64"/>
</localvariabletable>
</operation>
<operation name="1285">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="735"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1286"/>
<get arg="764"/>
<call arg="47"/>
<set arg="764"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1286"/>
<get arg="55"/>
<call arg="47"/>
<set arg="392"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1247"/>
<get arg="1287"/>
<call arg="47"/>
<set arg="1287"/>
<pop/>
<load arg="46"/>
<get arg="1247"/>
<get arg="113"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1288"/>
<load arg="46"/>
<get arg="1247"/>
<get arg="587"/>
<call arg="373"/>
<call arg="374"/>
<if arg="779"/>
<load arg="46"/>
<get arg="1247"/>
<get arg="658"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1289"/>
<load arg="46"/>
<get arg="1247"/>
<get arg="1249"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1290"/>
<goto arg="1291"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="1247"/>
<get arg="1249"/>
<call arg="1292"/>
<set arg="1249"/>
<load arg="136"/>
<get arg="1249"/>
<load arg="136"/>
<get arg="1249"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="136"/>
<getasm/>
<load arg="136"/>
<get arg="1249"/>
<get arg="677"/>
<get arg="113"/>
<load arg="46"/>
<get arg="117"/>
<call arg="1294"/>
<set arg="385"/>
<goto arg="782"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="1247"/>
<get arg="658"/>
<call arg="676"/>
<set arg="658"/>
<load arg="136"/>
<get arg="658"/>
<load arg="136"/>
<get arg="658"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="136"/>
<getasm/>
<load arg="136"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<load arg="46"/>
<get arg="117"/>
<call arg="1294"/>
<set arg="385"/>
<goto arg="792"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="1247"/>
<get arg="587"/>
<call arg="588"/>
<set arg="587"/>
<load arg="136"/>
<get arg="587"/>
<load arg="136"/>
<get arg="587"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="136"/>
<getasm/>
<load arg="136"/>
<get arg="587"/>
<get arg="113"/>
<load arg="46"/>
<get arg="117"/>
<call arg="1294"/>
<set arg="385"/>
<goto arg="1295"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="1247"/>
<get arg="113"/>
<call arg="515"/>
<set arg="113"/>
<load arg="136"/>
<get arg="113"/>
<load arg="136"/>
<get arg="113"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="136"/>
<getasm/>
<load arg="136"/>
<get arg="113"/>
<load arg="46"/>
<get arg="117"/>
<call arg="1294"/>
<set arg="385"/>
<load arg="46"/>
<get arg="393"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1296"/>
<load arg="46"/>
<get arg="1286"/>
<get arg="1297"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1298"/>
<load arg="136"/>
<load arg="46"/>
<get arg="1286"/>
<get arg="1299"/>
<call arg="273"/>
<get arg="1232"/>
<set arg="393"/>
<goto arg="1300"/>
<load arg="136"/>
<load arg="46"/>
<get arg="1286"/>
<get arg="1297"/>
<get arg="1232"/>
<set arg="393"/>
<load arg="46"/>
<get arg="1286"/>
<get arg="1299"/>
<pushi arg="46"/>
<load arg="46"/>
<get arg="1286"/>
<get arg="1299"/>
<call arg="350"/>
<call arg="1301"/>
<iterate/>
<store arg="384"/>
<getasm/>
<load arg="136"/>
<load arg="384"/>
<pcall arg="1302"/>
<enditerate/>
<goto arg="1303"/>
<load arg="136"/>
<load arg="46"/>
<get arg="393"/>
<get arg="1232"/>
<set arg="393"/>
</code>
<linenumbertable>
<lne id="1304" begin="11" end="11"/>
<lne id="1305" begin="11" end="12"/>
<lne id="1306" begin="11" end="13"/>
<lne id="1307" begin="9" end="15"/>
<lne id="1308" begin="18" end="18"/>
<lne id="1309" begin="18" end="19"/>
<lne id="1310" begin="18" end="20"/>
<lne id="1311" begin="16" end="22"/>
<lne id="1312" begin="25" end="25"/>
<lne id="1313" begin="25" end="26"/>
<lne id="1314" begin="25" end="27"/>
<lne id="1315" begin="23" end="29"/>
<lne id="1284" begin="8" end="30"/>
<lne id="1316" begin="31" end="31"/>
<lne id="1317" begin="31" end="32"/>
<lne id="1318" begin="31" end="33"/>
<lne id="1319" begin="31" end="34"/>
<lne id="1320" begin="31" end="35"/>
<lne id="1321" begin="37" end="37"/>
<lne id="1322" begin="37" end="38"/>
<lne id="1323" begin="37" end="39"/>
<lne id="1324" begin="37" end="40"/>
<lne id="1325" begin="37" end="41"/>
<lne id="1326" begin="43" end="43"/>
<lne id="1327" begin="43" end="44"/>
<lne id="1328" begin="43" end="45"/>
<lne id="1329" begin="43" end="46"/>
<lne id="1330" begin="43" end="47"/>
<lne id="1331" begin="49" end="49"/>
<lne id="1332" begin="49" end="50"/>
<lne id="1333" begin="49" end="51"/>
<lne id="1334" begin="49" end="52"/>
<lne id="1335" begin="49" end="53"/>
<lne id="1336" begin="56" end="56"/>
<lne id="1337" begin="57" end="57"/>
<lne id="1338" begin="58" end="58"/>
<lne id="1339" begin="58" end="59"/>
<lne id="1340" begin="58" end="60"/>
<lne id="1341" begin="57" end="61"/>
<lne id="1342" begin="56" end="62"/>
<lne id="1343" begin="63" end="63"/>
<lne id="1344" begin="63" end="64"/>
<lne id="1345" begin="65" end="65"/>
<lne id="1346" begin="65" end="66"/>
<lne id="1347" begin="65" end="67"/>
<lne id="1348" begin="68" end="68"/>
<lne id="1349" begin="65" end="69"/>
<lne id="1350" begin="63" end="70"/>
<lne id="1351" begin="71" end="71"/>
<lne id="1352" begin="72" end="72"/>
<lne id="1353" begin="73" end="73"/>
<lne id="1354" begin="73" end="74"/>
<lne id="1355" begin="73" end="75"/>
<lne id="1356" begin="73" end="76"/>
<lne id="1357" begin="77" end="77"/>
<lne id="1358" begin="77" end="78"/>
<lne id="1359" begin="72" end="79"/>
<lne id="1360" begin="71" end="80"/>
<lne id="1361" begin="49" end="80"/>
<lne id="1362" begin="82" end="82"/>
<lne id="1363" begin="83" end="83"/>
<lne id="1364" begin="84" end="84"/>
<lne id="1365" begin="84" end="85"/>
<lne id="1366" begin="84" end="86"/>
<lne id="1367" begin="83" end="87"/>
<lne id="1368" begin="82" end="88"/>
<lne id="1369" begin="89" end="89"/>
<lne id="1370" begin="89" end="90"/>
<lne id="1371" begin="91" end="91"/>
<lne id="1372" begin="91" end="92"/>
<lne id="1373" begin="91" end="93"/>
<lne id="1374" begin="94" end="94"/>
<lne id="1375" begin="91" end="95"/>
<lne id="1376" begin="89" end="96"/>
<lne id="1377" begin="97" end="97"/>
<lne id="1378" begin="98" end="98"/>
<lne id="1379" begin="99" end="99"/>
<lne id="1380" begin="99" end="100"/>
<lne id="1381" begin="99" end="101"/>
<lne id="1382" begin="99" end="102"/>
<lne id="1383" begin="103" end="103"/>
<lne id="1384" begin="103" end="104"/>
<lne id="1385" begin="98" end="105"/>
<lne id="1386" begin="97" end="106"/>
<lne id="1387" begin="43" end="106"/>
<lne id="1388" begin="108" end="108"/>
<lne id="1389" begin="109" end="109"/>
<lne id="1390" begin="110" end="110"/>
<lne id="1391" begin="110" end="111"/>
<lne id="1392" begin="110" end="112"/>
<lne id="1393" begin="109" end="113"/>
<lne id="1394" begin="108" end="114"/>
<lne id="1395" begin="115" end="115"/>
<lne id="1396" begin="115" end="116"/>
<lne id="1397" begin="117" end="117"/>
<lne id="1398" begin="117" end="118"/>
<lne id="1399" begin="117" end="119"/>
<lne id="1400" begin="120" end="120"/>
<lne id="1401" begin="117" end="121"/>
<lne id="1402" begin="115" end="122"/>
<lne id="1403" begin="123" end="123"/>
<lne id="1404" begin="124" end="124"/>
<lne id="1405" begin="125" end="125"/>
<lne id="1406" begin="125" end="126"/>
<lne id="1407" begin="125" end="127"/>
<lne id="1408" begin="128" end="128"/>
<lne id="1409" begin="128" end="129"/>
<lne id="1410" begin="124" end="130"/>
<lne id="1411" begin="123" end="131"/>
<lne id="1412" begin="37" end="131"/>
<lne id="1413" begin="133" end="133"/>
<lne id="1414" begin="134" end="134"/>
<lne id="1415" begin="135" end="135"/>
<lne id="1416" begin="135" end="136"/>
<lne id="1417" begin="135" end="137"/>
<lne id="1418" begin="134" end="138"/>
<lne id="1419" begin="133" end="139"/>
<lne id="1420" begin="140" end="140"/>
<lne id="1421" begin="140" end="141"/>
<lne id="1422" begin="142" end="142"/>
<lne id="1423" begin="142" end="143"/>
<lne id="1424" begin="142" end="144"/>
<lne id="1425" begin="145" end="145"/>
<lne id="1426" begin="142" end="146"/>
<lne id="1427" begin="140" end="147"/>
<lne id="1428" begin="148" end="148"/>
<lne id="1429" begin="149" end="149"/>
<lne id="1430" begin="150" end="150"/>
<lne id="1431" begin="150" end="151"/>
<lne id="1432" begin="152" end="152"/>
<lne id="1433" begin="152" end="153"/>
<lne id="1434" begin="149" end="154"/>
<lne id="1435" begin="148" end="155"/>
<lne id="1436" begin="31" end="155"/>
<lne id="1437" begin="156" end="156"/>
<lne id="1438" begin="156" end="157"/>
<lne id="1439" begin="156" end="158"/>
<lne id="1440" begin="156" end="159"/>
<lne id="1441" begin="161" end="161"/>
<lne id="1442" begin="161" end="162"/>
<lne id="1443" begin="161" end="163"/>
<lne id="1444" begin="161" end="164"/>
<lne id="1445" begin="161" end="165"/>
<lne id="1446" begin="167" end="167"/>
<lne id="1447" begin="168" end="168"/>
<lne id="1448" begin="168" end="169"/>
<lne id="1449" begin="168" end="170"/>
<lne id="1450" begin="168" end="171"/>
<lne id="1451" begin="168" end="172"/>
<lne id="1452" begin="167" end="173"/>
<lne id="1453" begin="175" end="175"/>
<lne id="1454" begin="176" end="176"/>
<lne id="1455" begin="176" end="177"/>
<lne id="1456" begin="176" end="178"/>
<lne id="1457" begin="176" end="179"/>
<lne id="1458" begin="175" end="180"/>
<lne id="1459" begin="161" end="180"/>
<lne id="1460" begin="181" end="181"/>
<lne id="1461" begin="181" end="182"/>
<lne id="1462" begin="181" end="183"/>
<lne id="1463" begin="184" end="184"/>
<lne id="1464" begin="185" end="185"/>
<lne id="1465" begin="185" end="186"/>
<lne id="1466" begin="185" end="187"/>
<lne id="1467" begin="185" end="188"/>
<lne id="1468" begin="181" end="189"/>
<lne id="1469" begin="192" end="192"/>
<lne id="1470" begin="193" end="193"/>
<lne id="1471" begin="194" end="194"/>
<lne id="1472" begin="192" end="195"/>
<lne id="1473" begin="181" end="196"/>
<lne id="1474" begin="198" end="198"/>
<lne id="1475" begin="199" end="199"/>
<lne id="1476" begin="199" end="200"/>
<lne id="1477" begin="199" end="201"/>
<lne id="1478" begin="198" end="202"/>
<lne id="1479" begin="156" end="202"/>
<lne id="1480" begin="31" end="202"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="393" begin="191" end="195"/>
<lve slot="3" name="308" begin="7" end="202"/>
<lve slot="2" name="735" begin="3" end="202"/>
<lve slot="0" name="34" begin="0" end="202"/>
<lve slot="1" name="343" begin="0" end="202"/>
</localvariabletable>
</operation>
<operation name="1481">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
<parameter name="136" type="4"/>
<parameter name="384" type="4"/>
</parameters>
<code>
<push arg="82"/>
<push arg="287"/>
<new/>
<store arg="906"/>
<load arg="906"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="764"/>
<call arg="47"/>
<set arg="764"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="55"/>
<call arg="47"/>
<set arg="392"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1232"/>
<call arg="47"/>
<set arg="393"/>
<pop/>
<load arg="384"/>
<push arg="72"/>
<push arg="287"/>
<findme/>
<call arg="1045"/>
<if arg="1482"/>
<load arg="384"/>
<push arg="74"/>
<push arg="287"/>
<findme/>
<call arg="1045"/>
<if arg="1483"/>
<load arg="384"/>
<push arg="76"/>
<push arg="287"/>
<findme/>
<call arg="1045"/>
<if arg="1484"/>
<load arg="384"/>
<push arg="78"/>
<push arg="287"/>
<findme/>
<call arg="1045"/>
<if arg="590"/>
<goto arg="1485"/>
<load arg="906"/>
<load arg="384"/>
<set arg="1249"/>
<load arg="906"/>
<get arg="1249"/>
<load arg="906"/>
<get arg="1249"/>
<get arg="1293"/>
<load arg="906"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="906"/>
<getasm/>
<load arg="906"/>
<get arg="1249"/>
<get arg="677"/>
<get arg="113"/>
<load arg="136"/>
<call arg="1294"/>
<set arg="385"/>
<goto arg="1486"/>
<load arg="906"/>
<load arg="384"/>
<set arg="658"/>
<load arg="906"/>
<get arg="658"/>
<load arg="906"/>
<get arg="658"/>
<get arg="1293"/>
<load arg="906"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="906"/>
<getasm/>
<load arg="906"/>
<get arg="658"/>
<get arg="587"/>
<get arg="113"/>
<load arg="136"/>
<call arg="1294"/>
<set arg="385"/>
<goto arg="1487"/>
<load arg="906"/>
<load arg="384"/>
<set arg="587"/>
<load arg="906"/>
<get arg="587"/>
<load arg="906"/>
<get arg="587"/>
<get arg="1293"/>
<load arg="906"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="906"/>
<getasm/>
<load arg="906"/>
<get arg="587"/>
<get arg="113"/>
<load arg="136"/>
<call arg="1294"/>
<set arg="385"/>
<goto arg="1488"/>
<load arg="906"/>
<load arg="384"/>
<set arg="113"/>
<load arg="906"/>
<get arg="113"/>
<load arg="906"/>
<get arg="113"/>
<get arg="1293"/>
<load arg="906"/>
<call arg="319"/>
<set arg="1293"/>
<load arg="906"/>
<getasm/>
<load arg="906"/>
<get arg="113"/>
<load arg="136"/>
<call arg="1294"/>
<set arg="385"/>
<load arg="906"/>
</code>
<linenumbertable>
<lne id="1489" begin="7" end="7"/>
<lne id="1490" begin="7" end="8"/>
<lne id="1491" begin="5" end="10"/>
<lne id="1492" begin="13" end="13"/>
<lne id="1493" begin="13" end="14"/>
<lne id="1494" begin="11" end="16"/>
<lne id="1495" begin="19" end="19"/>
<lne id="1496" begin="19" end="20"/>
<lne id="1497" begin="17" end="22"/>
<lne id="1498" begin="24" end="24"/>
<lne id="1499" begin="25" end="27"/>
<lne id="1500" begin="24" end="28"/>
<lne id="1501" begin="30" end="30"/>
<lne id="1502" begin="31" end="33"/>
<lne id="1503" begin="30" end="34"/>
<lne id="1504" begin="36" end="36"/>
<lne id="1505" begin="37" end="39"/>
<lne id="1506" begin="36" end="40"/>
<lne id="1507" begin="42" end="42"/>
<lne id="1508" begin="43" end="45"/>
<lne id="1509" begin="42" end="46"/>
<lne id="1510" begin="49" end="49"/>
<lne id="1511" begin="50" end="50"/>
<lne id="1512" begin="49" end="51"/>
<lne id="1513" begin="52" end="52"/>
<lne id="1514" begin="52" end="53"/>
<lne id="1515" begin="54" end="54"/>
<lne id="1516" begin="54" end="55"/>
<lne id="1517" begin="54" end="56"/>
<lne id="1518" begin="57" end="57"/>
<lne id="1519" begin="54" end="58"/>
<lne id="1520" begin="52" end="59"/>
<lne id="1521" begin="60" end="60"/>
<lne id="1522" begin="61" end="61"/>
<lne id="1523" begin="62" end="62"/>
<lne id="1524" begin="62" end="63"/>
<lne id="1525" begin="62" end="64"/>
<lne id="1526" begin="62" end="65"/>
<lne id="1527" begin="66" end="66"/>
<lne id="1528" begin="61" end="67"/>
<lne id="1529" begin="60" end="68"/>
<lne id="1530" begin="42" end="68"/>
<lne id="1531" begin="70" end="70"/>
<lne id="1532" begin="71" end="71"/>
<lne id="1533" begin="70" end="72"/>
<lne id="1534" begin="73" end="73"/>
<lne id="1535" begin="73" end="74"/>
<lne id="1536" begin="75" end="75"/>
<lne id="1537" begin="75" end="76"/>
<lne id="1538" begin="75" end="77"/>
<lne id="1539" begin="78" end="78"/>
<lne id="1540" begin="75" end="79"/>
<lne id="1541" begin="73" end="80"/>
<lne id="1542" begin="81" end="81"/>
<lne id="1543" begin="82" end="82"/>
<lne id="1544" begin="83" end="83"/>
<lne id="1545" begin="83" end="84"/>
<lne id="1546" begin="83" end="85"/>
<lne id="1547" begin="83" end="86"/>
<lne id="1548" begin="87" end="87"/>
<lne id="1549" begin="82" end="88"/>
<lne id="1550" begin="81" end="89"/>
<lne id="1551" begin="36" end="89"/>
<lne id="1552" begin="91" end="91"/>
<lne id="1553" begin="92" end="92"/>
<lne id="1554" begin="91" end="93"/>
<lne id="1555" begin="94" end="94"/>
<lne id="1556" begin="94" end="95"/>
<lne id="1557" begin="96" end="96"/>
<lne id="1558" begin="96" end="97"/>
<lne id="1559" begin="96" end="98"/>
<lne id="1560" begin="99" end="99"/>
<lne id="1561" begin="96" end="100"/>
<lne id="1562" begin="94" end="101"/>
<lne id="1563" begin="102" end="102"/>
<lne id="1564" begin="103" end="103"/>
<lne id="1565" begin="104" end="104"/>
<lne id="1566" begin="104" end="105"/>
<lne id="1567" begin="104" end="106"/>
<lne id="1568" begin="107" end="107"/>
<lne id="1569" begin="103" end="108"/>
<lne id="1570" begin="102" end="109"/>
<lne id="1571" begin="30" end="109"/>
<lne id="1572" begin="111" end="111"/>
<lne id="1573" begin="112" end="112"/>
<lne id="1574" begin="111" end="113"/>
<lne id="1575" begin="114" end="114"/>
<lne id="1576" begin="114" end="115"/>
<lne id="1577" begin="116" end="116"/>
<lne id="1578" begin="116" end="117"/>
<lne id="1579" begin="116" end="118"/>
<lne id="1580" begin="119" end="119"/>
<lne id="1581" begin="116" end="120"/>
<lne id="1582" begin="114" end="121"/>
<lne id="1583" begin="122" end="122"/>
<lne id="1584" begin="123" end="123"/>
<lne id="1585" begin="124" end="124"/>
<lne id="1586" begin="124" end="125"/>
<lne id="1587" begin="126" end="126"/>
<lne id="1588" begin="123" end="127"/>
<lne id="1589" begin="122" end="128"/>
<lne id="1590" begin="24" end="128"/>
<lne id="1591" begin="129" end="129"/>
<lne id="1592" begin="129" end="129"/>
<lne id="1593" begin="24" end="129"/>
</linenumbertable>
<localvariabletable>
<lve slot="5" name="50" begin="3" end="129"/>
<lve slot="0" name="34" begin="0" end="129"/>
<lve slot="1" name="392" begin="0" end="129"/>
<lve slot="2" name="393" begin="0" end="129"/>
<lve slot="3" name="117" begin="0" end="129"/>
<lve slot="4" name="1594" begin="0" end="129"/>
</localvariabletable>
</operation>
<operation name="1595">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<push arg="82"/>
<push arg="287"/>
<new/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="764"/>
<call arg="47"/>
<set arg="764"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="392"/>
<call arg="47"/>
<set arg="392"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1232"/>
<call arg="47"/>
<set arg="393"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="1287"/>
<call arg="47"/>
<set arg="1287"/>
<pop/>
<load arg="36"/>
<get arg="113"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1486"/>
<load arg="36"/>
<get arg="587"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1596"/>
<load arg="36"/>
<get arg="658"/>
<call arg="373"/>
<call arg="374"/>
<if arg="679"/>
<load arg="36"/>
<get arg="1249"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1597"/>
<goto arg="1598"/>
<load arg="136"/>
<load arg="36"/>
<get arg="1249"/>
<set arg="1249"/>
<load arg="36"/>
<get arg="1249"/>
<load arg="36"/>
<get arg="1249"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<goto arg="1599"/>
<load arg="136"/>
<load arg="36"/>
<get arg="658"/>
<set arg="658"/>
<load arg="36"/>
<get arg="658"/>
<load arg="36"/>
<get arg="658"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<goto arg="1600"/>
<load arg="136"/>
<load arg="36"/>
<get arg="587"/>
<set arg="587"/>
<load arg="36"/>
<get arg="587"/>
<load arg="36"/>
<get arg="587"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
<goto arg="785"/>
<load arg="136"/>
<load arg="36"/>
<get arg="113"/>
<set arg="113"/>
<load arg="36"/>
<get arg="113"/>
<load arg="36"/>
<get arg="113"/>
<get arg="1293"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1293"/>
</code>
<linenumbertable>
<lne id="1601" begin="7" end="7"/>
<lne id="1602" begin="7" end="8"/>
<lne id="1603" begin="5" end="10"/>
<lne id="1604" begin="13" end="13"/>
<lne id="1605" begin="13" end="14"/>
<lne id="1606" begin="11" end="16"/>
<lne id="1607" begin="19" end="19"/>
<lne id="1608" begin="19" end="20"/>
<lne id="1609" begin="17" end="22"/>
<lne id="1610" begin="25" end="25"/>
<lne id="1611" begin="25" end="26"/>
<lne id="1612" begin="23" end="28"/>
<lne id="1613" begin="30" end="30"/>
<lne id="1614" begin="30" end="31"/>
<lne id="1615" begin="30" end="32"/>
<lne id="1616" begin="30" end="33"/>
<lne id="1617" begin="35" end="35"/>
<lne id="1618" begin="35" end="36"/>
<lne id="1619" begin="35" end="37"/>
<lne id="1620" begin="35" end="38"/>
<lne id="1621" begin="40" end="40"/>
<lne id="1622" begin="40" end="41"/>
<lne id="1623" begin="40" end="42"/>
<lne id="1624" begin="40" end="43"/>
<lne id="1625" begin="45" end="45"/>
<lne id="1626" begin="45" end="46"/>
<lne id="1627" begin="45" end="47"/>
<lne id="1628" begin="45" end="48"/>
<lne id="1629" begin="51" end="51"/>
<lne id="1630" begin="52" end="52"/>
<lne id="1631" begin="52" end="53"/>
<lne id="1632" begin="51" end="54"/>
<lne id="1633" begin="55" end="55"/>
<lne id="1634" begin="55" end="56"/>
<lne id="1635" begin="57" end="57"/>
<lne id="1636" begin="57" end="58"/>
<lne id="1637" begin="57" end="59"/>
<lne id="1638" begin="60" end="60"/>
<lne id="1639" begin="57" end="61"/>
<lne id="1640" begin="55" end="62"/>
<lne id="1641" begin="45" end="62"/>
<lne id="1642" begin="64" end="64"/>
<lne id="1643" begin="65" end="65"/>
<lne id="1644" begin="65" end="66"/>
<lne id="1645" begin="64" end="67"/>
<lne id="1646" begin="68" end="68"/>
<lne id="1647" begin="68" end="69"/>
<lne id="1648" begin="70" end="70"/>
<lne id="1649" begin="70" end="71"/>
<lne id="1650" begin="70" end="72"/>
<lne id="1651" begin="73" end="73"/>
<lne id="1652" begin="70" end="74"/>
<lne id="1653" begin="68" end="75"/>
<lne id="1654" begin="40" end="75"/>
<lne id="1655" begin="77" end="77"/>
<lne id="1656" begin="78" end="78"/>
<lne id="1657" begin="78" end="79"/>
<lne id="1658" begin="77" end="80"/>
<lne id="1659" begin="81" end="81"/>
<lne id="1660" begin="81" end="82"/>
<lne id="1661" begin="83" end="83"/>
<lne id="1662" begin="83" end="84"/>
<lne id="1663" begin="83" end="85"/>
<lne id="1664" begin="86" end="86"/>
<lne id="1665" begin="83" end="87"/>
<lne id="1666" begin="81" end="88"/>
<lne id="1667" begin="35" end="88"/>
<lne id="1668" begin="90" end="90"/>
<lne id="1669" begin="91" end="91"/>
<lne id="1670" begin="91" end="92"/>
<lne id="1671" begin="90" end="93"/>
<lne id="1672" begin="94" end="94"/>
<lne id="1673" begin="94" end="95"/>
<lne id="1674" begin="96" end="96"/>
<lne id="1675" begin="96" end="97"/>
<lne id="1676" begin="96" end="98"/>
<lne id="1677" begin="99" end="99"/>
<lne id="1678" begin="96" end="100"/>
<lne id="1679" begin="94" end="101"/>
<lne id="1680" begin="30" end="101"/>
<lne id="1681" begin="30" end="101"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="50" begin="3" end="101"/>
<lve slot="0" name="34" begin="0" end="101"/>
<lve slot="1" name="1682" begin="0" end="101"/>
<lve slot="2" name="393" begin="0" end="101"/>
</localvariabletable>
</operation>
<operation name="1683">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="1684"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="84"/>
<pcall arg="283"/>
<dup/>
<push arg="369"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="472"/>
<push arg="84"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="1685" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="369" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="1686">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="369"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="472"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<get arg="377"/>
<call arg="47"/>
<set arg="377"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<call arg="47"/>
<set arg="1687"/>
<pop/>
<load arg="46"/>
<get arg="117"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1185"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<call arg="515"/>
<set arg="1688"/>
<goto arg="519"/>
<load arg="136"/>
<pusht/>
<set arg="1689"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="117"/>
<call arg="475"/>
<set arg="117"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<get arg="1690"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1690"/>
</code>
<linenumbertable>
<lne id="1691" begin="11" end="11"/>
<lne id="1692" begin="11" end="12"/>
<lne id="1693" begin="11" end="13"/>
<lne id="1694" begin="9" end="15"/>
<lne id="1695" begin="18" end="18"/>
<lne id="1696" begin="18" end="19"/>
<lne id="1697" begin="18" end="20"/>
<lne id="1698" begin="16" end="22"/>
<lne id="1699" begin="25" end="25"/>
<lne id="1700" begin="25" end="26"/>
<lne id="1701" begin="27" end="27"/>
<lne id="1702" begin="25" end="28"/>
<lne id="1703" begin="23" end="30"/>
<lne id="1704" begin="33" end="33"/>
<lne id="1705" begin="34" end="34"/>
<lne id="1706" begin="34" end="35"/>
<lne id="1707" begin="33" end="36"/>
<lne id="1708" begin="31" end="38"/>
<lne id="1685" begin="8" end="39"/>
<lne id="1709" begin="40" end="40"/>
<lne id="1710" begin="40" end="41"/>
<lne id="1711" begin="40" end="42"/>
<lne id="1712" begin="40" end="43"/>
<lne id="1713" begin="45" end="45"/>
<lne id="1714" begin="46" end="46"/>
<lne id="1715" begin="47" end="47"/>
<lne id="1716" begin="47" end="48"/>
<lne id="1717" begin="46" end="49"/>
<lne id="1718" begin="45" end="50"/>
<lne id="1719" begin="52" end="52"/>
<lne id="1720" begin="53" end="53"/>
<lne id="1721" begin="52" end="54"/>
<lne id="1722" begin="55" end="55"/>
<lne id="1723" begin="56" end="56"/>
<lne id="1724" begin="57" end="57"/>
<lne id="1725" begin="57" end="58"/>
<lne id="1726" begin="56" end="59"/>
<lne id="1727" begin="55" end="60"/>
<lne id="1728" begin="40" end="60"/>
<lne id="1729" begin="61" end="61"/>
<lne id="1730" begin="62" end="62"/>
<lne id="1731" begin="62" end="63"/>
<lne id="1732" begin="61" end="64"/>
<lne id="1733" begin="65" end="65"/>
<lne id="1734" begin="66" end="66"/>
<lne id="1735" begin="66" end="67"/>
<lne id="1736" begin="65" end="68"/>
<lne id="1737" begin="65" end="69"/>
<lne id="1738" begin="70" end="70"/>
<lne id="1739" begin="65" end="71"/>
<lne id="1740" begin="61" end="72"/>
<lne id="1741" begin="40" end="72"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="472" begin="7" end="72"/>
<lve slot="2" name="369" begin="3" end="72"/>
<lve slot="0" name="34" begin="0" end="72"/>
<lve slot="1" name="343" begin="0" end="72"/>
</localvariabletable>
</operation>
<operation name="1742">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="1743"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="86"/>
<pcall arg="283"/>
<dup/>
<push arg="308"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="286"/>
<push arg="86"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="1744" begin="19" end="24"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="308" begin="6" end="26"/>
<lve slot="0" name="34" begin="0" end="27"/>
</localvariabletable>
</operation>
<operation name="1745">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="308"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="286"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<call arg="47"/>
<set arg="1687"/>
<pop/>
<load arg="46"/>
<get arg="117"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1746"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<call arg="588"/>
<set arg="1747"/>
<goto arg="767"/>
<load arg="136"/>
<pusht/>
<set arg="1689"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="117"/>
<call arg="475"/>
<set arg="117"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<get arg="1748"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1748"/>
</code>
<linenumbertable>
<lne id="1749" begin="11" end="11"/>
<lne id="1750" begin="11" end="12"/>
<lne id="1751" begin="11" end="13"/>
<lne id="1752" begin="9" end="15"/>
<lne id="1753" begin="18" end="18"/>
<lne id="1754" begin="18" end="19"/>
<lne id="1755" begin="20" end="20"/>
<lne id="1756" begin="18" end="21"/>
<lne id="1757" begin="16" end="23"/>
<lne id="1758" begin="26" end="26"/>
<lne id="1759" begin="27" end="27"/>
<lne id="1760" begin="27" end="28"/>
<lne id="1761" begin="26" end="29"/>
<lne id="1762" begin="24" end="31"/>
<lne id="1744" begin="8" end="32"/>
<lne id="1763" begin="33" end="33"/>
<lne id="1764" begin="33" end="34"/>
<lne id="1765" begin="33" end="35"/>
<lne id="1766" begin="33" end="36"/>
<lne id="1767" begin="38" end="38"/>
<lne id="1768" begin="39" end="39"/>
<lne id="1769" begin="40" end="40"/>
<lne id="1770" begin="40" end="41"/>
<lne id="1771" begin="39" end="42"/>
<lne id="1772" begin="38" end="43"/>
<lne id="1773" begin="45" end="45"/>
<lne id="1774" begin="46" end="46"/>
<lne id="1775" begin="45" end="47"/>
<lne id="1776" begin="48" end="48"/>
<lne id="1777" begin="49" end="49"/>
<lne id="1778" begin="50" end="50"/>
<lne id="1779" begin="50" end="51"/>
<lne id="1780" begin="49" end="52"/>
<lne id="1781" begin="48" end="53"/>
<lne id="1782" begin="33" end="53"/>
<lne id="1783" begin="54" end="54"/>
<lne id="1784" begin="55" end="55"/>
<lne id="1785" begin="55" end="56"/>
<lne id="1786" begin="54" end="57"/>
<lne id="1787" begin="58" end="58"/>
<lne id="1788" begin="59" end="59"/>
<lne id="1789" begin="59" end="60"/>
<lne id="1790" begin="58" end="61"/>
<lne id="1791" begin="58" end="62"/>
<lne id="1792" begin="63" end="63"/>
<lne id="1793" begin="58" end="64"/>
<lne id="1794" begin="54" end="65"/>
<lne id="1795" begin="33" end="65"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="286" begin="7" end="65"/>
<lve slot="2" name="308" begin="3" end="65"/>
<lve slot="0" name="34" begin="0" end="65"/>
<lve slot="1" name="343" begin="0" end="65"/>
</localvariabletable>
</operation>
<operation name="1796">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="1797"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<load arg="36"/>
<get arg="1687"/>
<call arg="373"/>
<call arg="374"/>
<call arg="907"/>
<if arg="478"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="88"/>
<pcall arg="283"/>
<dup/>
<push arg="582"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="308"/>
<getasm/>
<load arg="36"/>
<call arg="772"/>
<dup/>
<store arg="46"/>
<pcall arg="740"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="1798" begin="7" end="7"/>
<lne id="1799" begin="7" end="8"/>
<lne id="1800" begin="7" end="9"/>
<lne id="1801" begin="7" end="10"/>
<lne id="1802" begin="27" end="27"/>
<lne id="1803" begin="28" end="28"/>
<lne id="1804" begin="27" end="29"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="308" begin="31" end="32"/>
<lve slot="1" name="582" begin="6" end="34"/>
<lve slot="0" name="34" begin="0" end="35"/>
</localvariabletable>
</operation>
<operation name="1805">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="582"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="762"/>
<store arg="136"/>
<load arg="136"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<set arg="1687"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<getasm/>
<load arg="46"/>
<get arg="1687"/>
<call arg="515"/>
<get arg="1806"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1806"/>
</code>
<linenumbertable>
<lne id="1807" begin="8" end="8"/>
<lne id="1808" begin="9" end="9"/>
<lne id="1809" begin="10" end="10"/>
<lne id="1810" begin="10" end="11"/>
<lne id="1811" begin="9" end="12"/>
<lne id="1812" begin="8" end="13"/>
<lne id="1813" begin="14" end="14"/>
<lne id="1814" begin="15" end="15"/>
<lne id="1815" begin="15" end="16"/>
<lne id="1816" begin="14" end="17"/>
<lne id="1817" begin="18" end="18"/>
<lne id="1818" begin="19" end="19"/>
<lne id="1819" begin="19" end="20"/>
<lne id="1820" begin="18" end="21"/>
<lne id="1821" begin="18" end="22"/>
<lne id="1822" begin="23" end="23"/>
<lne id="1823" begin="18" end="24"/>
<lne id="1824" begin="14" end="25"/>
<lne id="1825" begin="8" end="25"/>
</linenumbertable>
<localvariabletable>
<lve slot="3" name="308" begin="7" end="25"/>
<lve slot="2" name="582" begin="3" end="25"/>
<lve slot="0" name="34" begin="0" end="25"/>
<lve slot="1" name="343" begin="0" end="25"/>
</localvariabletable>
</operation>
<operation name="1826">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<push arg="88"/>
<push arg="287"/>
<new/>
<store arg="46"/>
<load arg="46"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="658"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="658"/>
<push arg="162"/>
<call arg="163"/>
<call arg="47"/>
<set arg="114"/>
<pop/>
<load arg="36"/>
<get arg="117"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1827"/>
<load arg="46"/>
<getasm/>
<load arg="36"/>
<get arg="658"/>
<call arg="676"/>
<set arg="1828"/>
<goto arg="1829"/>
<load arg="46"/>
<pusht/>
<set arg="1689"/>
<load arg="46"/>
<getasm/>
<load arg="36"/>
<get arg="117"/>
<call arg="475"/>
<set arg="117"/>
<load arg="46"/>
</code>
<linenumbertable>
<lne id="1830" begin="7" end="7"/>
<lne id="1831" begin="7" end="8"/>
<lne id="1832" begin="7" end="9"/>
<lne id="1833" begin="5" end="11"/>
<lne id="1834" begin="14" end="14"/>
<lne id="1835" begin="14" end="15"/>
<lne id="1836" begin="16" end="16"/>
<lne id="1837" begin="14" end="17"/>
<lne id="1838" begin="12" end="19"/>
<lne id="1839" begin="21" end="21"/>
<lne id="1840" begin="21" end="22"/>
<lne id="1841" begin="21" end="23"/>
<lne id="1842" begin="21" end="24"/>
<lne id="1843" begin="26" end="26"/>
<lne id="1844" begin="27" end="27"/>
<lne id="1845" begin="28" end="28"/>
<lne id="1846" begin="28" end="29"/>
<lne id="1847" begin="27" end="30"/>
<lne id="1848" begin="26" end="31"/>
<lne id="1849" begin="33" end="33"/>
<lne id="1850" begin="34" end="34"/>
<lne id="1851" begin="33" end="35"/>
<lne id="1852" begin="36" end="36"/>
<lne id="1853" begin="37" end="37"/>
<lne id="1854" begin="38" end="38"/>
<lne id="1855" begin="38" end="39"/>
<lne id="1856" begin="37" end="40"/>
<lne id="1857" begin="36" end="41"/>
<lne id="1858" begin="21" end="41"/>
<lne id="1859" begin="42" end="42"/>
<lne id="1860" begin="42" end="42"/>
<lne id="1861" begin="21" end="42"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="308" begin="3" end="42"/>
<lve slot="0" name="34" begin="0" end="42"/>
<lve slot="1" name="208" begin="0" end="42"/>
</localvariabletable>
</operation>
<operation name="1862">
<context type="14"/>
<parameters>
</parameters>
<code>
<push arg="1863"/>
<push arg="271"/>
<findme/>
<push arg="306"/>
<call arg="307"/>
<iterate/>
<store arg="36"/>
<load arg="36"/>
<get arg="1864"/>
<call arg="373"/>
<call arg="374"/>
<load arg="36"/>
<get arg="1865"/>
<call arg="373"/>
<call arg="374"/>
<call arg="953"/>
<load arg="36"/>
<get arg="1866"/>
<call arg="373"/>
<call arg="374"/>
<call arg="953"/>
<load arg="36"/>
<get arg="1867"/>
<call arg="373"/>
<call arg="374"/>
<call arg="953"/>
<if arg="1868"/>
<load arg="36"/>
<get arg="1869"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1870"/>
<pusht/>
<goto arg="1871"/>
<load arg="36"/>
<get arg="1869"/>
<get arg="739"/>
<call arg="373"/>
<call arg="374"/>
<goto arg="1248"/>
<pushf/>
<call arg="907"/>
<if arg="1598"/>
<getasm/>
<get arg="1"/>
<push arg="282"/>
<push arg="16"/>
<new/>
<dup/>
<push arg="90"/>
<pcall arg="283"/>
<dup/>
<push arg="1872"/>
<load arg="36"/>
<pcall arg="285"/>
<dup/>
<push arg="308"/>
<push arg="90"/>
<push arg="287"/>
<new/>
<pcall arg="288"/>
<pusht/>
<pcall arg="289"/>
<enditerate/>
</code>
<linenumbertable>
<lne id="1873" begin="7" end="7"/>
<lne id="1874" begin="7" end="8"/>
<lne id="1875" begin="7" end="9"/>
<lne id="1876" begin="7" end="10"/>
<lne id="1877" begin="11" end="11"/>
<lne id="1878" begin="11" end="12"/>
<lne id="1879" begin="11" end="13"/>
<lne id="1880" begin="11" end="14"/>
<lne id="1881" begin="7" end="15"/>
<lne id="1882" begin="16" end="16"/>
<lne id="1883" begin="16" end="17"/>
<lne id="1884" begin="16" end="18"/>
<lne id="1885" begin="16" end="19"/>
<lne id="1886" begin="7" end="20"/>
<lne id="1887" begin="21" end="21"/>
<lne id="1888" begin="21" end="22"/>
<lne id="1889" begin="21" end="23"/>
<lne id="1890" begin="21" end="24"/>
<lne id="1891" begin="7" end="25"/>
<lne id="1892" begin="27" end="27"/>
<lne id="1893" begin="27" end="28"/>
<lne id="1894" begin="27" end="29"/>
<lne id="1895" begin="27" end="30"/>
<lne id="1896" begin="32" end="32"/>
<lne id="1897" begin="34" end="34"/>
<lne id="1898" begin="34" end="35"/>
<lne id="1899" begin="34" end="36"/>
<lne id="1900" begin="34" end="37"/>
<lne id="1901" begin="34" end="38"/>
<lne id="1902" begin="27" end="38"/>
<lne id="1903" begin="40" end="40"/>
<lne id="1904" begin="7" end="40"/>
<lne id="1905" begin="55" end="60"/>
</linenumbertable>
<localvariabletable>
<lve slot="1" name="1872" begin="6" end="62"/>
<lve slot="0" name="34" begin="0" end="63"/>
</localvariabletable>
</operation>
<operation name="1906">
<context type="14"/>
<parameters>
<parameter name="36" type="311"/>
</parameters>
<code>
<load arg="36"/>
<push arg="1872"/>
<call arg="312"/>
<store arg="46"/>
<load arg="36"/>
<push arg="308"/>
<call arg="313"/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="46"/>
<get arg="1907"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<getasm/>
<load arg="46"/>
<get arg="117"/>
<call arg="475"/>
<call arg="47"/>
<set arg="117"/>
<pop/>
<load arg="46"/>
<get arg="1907"/>
<get arg="1908"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="1909"/>
<load arg="384"/>
<call arg="346"/>
<call arg="319"/>
<set arg="1909"/>
<enditerate/>
<load arg="46"/>
<get arg="1907"/>
<get arg="1910"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="1910"/>
<getasm/>
<load arg="384"/>
<load arg="136"/>
<call arg="1911"/>
<call arg="319"/>
<set arg="1910"/>
<enditerate/>
<load arg="46"/>
<get arg="1912"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1600"/>
<load arg="46"/>
<get arg="1913"/>
<iterate/>
<store arg="384"/>
<getasm/>
<load arg="384"/>
<get arg="51"/>
<load arg="136"/>
<push arg="45"/>
<push arg="16"/>
<new/>
<load arg="136"/>
<get arg="1910"/>
<iterate/>
<store arg="906"/>
<load arg="906"/>
<get arg="55"/>
<load arg="384"/>
<get arg="1914"/>
<get arg="55"/>
<call arg="479"/>
<call arg="907"/>
<if arg="1915"/>
<load arg="906"/>
<call arg="386"/>
<enditerate/>
<call arg="909"/>
<call arg="910"/>
<pcall arg="1916"/>
<enditerate/>
<goto arg="1917"/>
<getasm/>
<load arg="46"/>
<get arg="1912"/>
<load arg="136"/>
<load arg="136"/>
<get arg="1910"/>
<call arg="273"/>
<pcall arg="1916"/>
<load arg="46"/>
<get arg="113"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1918"/>
<load arg="46"/>
<get arg="587"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1919"/>
<load arg="46"/>
<get arg="658"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1920"/>
<load arg="46"/>
<get arg="1249"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1921"/>
<load arg="46"/>
<get arg="739"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1922"/>
<load arg="46"/>
<get arg="1869"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1923"/>
<goto arg="1924"/>
<getasm/>
<load arg="46"/>
<get arg="1869"/>
<call arg="1925"/>
<call arg="373"/>
<if arg="1926"/>
<goto arg="1927"/>
<getasm/>
<load arg="46"/>
<get arg="1869"/>
<get arg="739"/>
<call arg="1928"/>
<getasm/>
<load arg="46"/>
<get arg="1869"/>
<get arg="739"/>
<call arg="1928"/>
<get arg="1929"/>
<getasm/>
<load arg="46"/>
<get arg="1869"/>
<call arg="1930"/>
<call arg="319"/>
<set arg="1929"/>
<getasm/>
<load arg="46"/>
<get arg="1869"/>
<call arg="1925"/>
<getasm/>
<load arg="46"/>
<get arg="1869"/>
<call arg="1925"/>
<get arg="1931"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1931"/>
<goto arg="1932"/>
<getasm/>
<load arg="46"/>
<get arg="739"/>
<call arg="1928"/>
<getasm/>
<load arg="46"/>
<get arg="739"/>
<call arg="1928"/>
<get arg="1931"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1931"/>
<goto arg="1933"/>
<getasm/>
<load arg="46"/>
<get arg="1249"/>
<call arg="1292"/>
<getasm/>
<load arg="46"/>
<get arg="1249"/>
<call arg="1292"/>
<get arg="1931"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1931"/>
<goto arg="1303"/>
<getasm/>
<load arg="46"/>
<get arg="658"/>
<call arg="676"/>
<getasm/>
<load arg="46"/>
<get arg="658"/>
<call arg="676"/>
<get arg="1931"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1931"/>
<goto arg="1934"/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<call arg="588"/>
<getasm/>
<load arg="46"/>
<get arg="587"/>
<call arg="588"/>
<get arg="1931"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1931"/>
<goto arg="1935"/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<call arg="515"/>
<getasm/>
<load arg="46"/>
<get arg="113"/>
<call arg="515"/>
<get arg="1931"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1931"/>
<load arg="136"/>
</code>
<linenumbertable>
<lne id="1936" begin="11" end="11"/>
<lne id="1937" begin="11" end="12"/>
<lne id="1938" begin="11" end="13"/>
<lne id="1939" begin="9" end="15"/>
<lne id="1940" begin="18" end="18"/>
<lne id="1941" begin="19" end="19"/>
<lne id="1942" begin="19" end="20"/>
<lne id="1943" begin="18" end="21"/>
<lne id="1944" begin="16" end="23"/>
<lne id="1905" begin="8" end="24"/>
<lne id="1945" begin="25" end="25"/>
<lne id="1946" begin="25" end="26"/>
<lne id="1947" begin="25" end="27"/>
<lne id="1948" begin="30" end="30"/>
<lne id="1949" begin="31" end="31"/>
<lne id="1950" begin="31" end="32"/>
<lne id="1951" begin="33" end="33"/>
<lne id="1952" begin="33" end="34"/>
<lne id="1953" begin="31" end="35"/>
<lne id="1954" begin="30" end="36"/>
<lne id="1955" begin="25" end="37"/>
<lne id="1956" begin="38" end="38"/>
<lne id="1957" begin="38" end="39"/>
<lne id="1958" begin="38" end="40"/>
<lne id="1959" begin="43" end="43"/>
<lne id="1960" begin="44" end="44"/>
<lne id="1961" begin="44" end="45"/>
<lne id="1962" begin="46" end="46"/>
<lne id="1963" begin="47" end="47"/>
<lne id="1964" begin="48" end="48"/>
<lne id="1965" begin="46" end="49"/>
<lne id="1966" begin="44" end="50"/>
<lne id="1967" begin="43" end="51"/>
<lne id="1968" begin="38" end="52"/>
<lne id="1969" begin="53" end="53"/>
<lne id="1970" begin="53" end="54"/>
<lne id="1971" begin="53" end="55"/>
<lne id="1972" begin="53" end="56"/>
<lne id="1973" begin="58" end="58"/>
<lne id="1974" begin="58" end="59"/>
<lne id="1975" begin="62" end="62"/>
<lne id="1976" begin="63" end="63"/>
<lne id="1977" begin="63" end="64"/>
<lne id="1978" begin="65" end="65"/>
<lne id="1979" begin="69" end="69"/>
<lne id="1980" begin="69" end="70"/>
<lne id="1981" begin="73" end="73"/>
<lne id="1982" begin="73" end="74"/>
<lne id="1983" begin="75" end="75"/>
<lne id="1984" begin="75" end="76"/>
<lne id="1985" begin="75" end="77"/>
<lne id="1986" begin="73" end="78"/>
<lne id="1987" begin="66" end="85"/>
<lne id="1988" begin="62" end="86"/>
<lne id="1989" begin="58" end="87"/>
<lne id="1990" begin="89" end="89"/>
<lne id="1991" begin="90" end="90"/>
<lne id="1992" begin="90" end="91"/>
<lne id="1993" begin="92" end="92"/>
<lne id="1994" begin="93" end="93"/>
<lne id="1995" begin="93" end="94"/>
<lne id="1996" begin="93" end="95"/>
<lne id="1997" begin="89" end="96"/>
<lne id="1998" begin="53" end="96"/>
<lne id="1999" begin="97" end="97"/>
<lne id="2000" begin="97" end="98"/>
<lne id="2001" begin="97" end="99"/>
<lne id="2002" begin="97" end="100"/>
<lne id="2003" begin="102" end="102"/>
<lne id="2004" begin="102" end="103"/>
<lne id="2005" begin="102" end="104"/>
<lne id="2006" begin="102" end="105"/>
<lne id="2007" begin="107" end="107"/>
<lne id="2008" begin="107" end="108"/>
<lne id="2009" begin="107" end="109"/>
<lne id="2010" begin="107" end="110"/>
<lne id="2011" begin="112" end="112"/>
<lne id="2012" begin="112" end="113"/>
<lne id="2013" begin="112" end="114"/>
<lne id="2014" begin="112" end="115"/>
<lne id="2015" begin="117" end="117"/>
<lne id="2016" begin="117" end="118"/>
<lne id="2017" begin="117" end="119"/>
<lne id="2018" begin="117" end="120"/>
<lne id="2019" begin="122" end="122"/>
<lne id="2020" begin="122" end="123"/>
<lne id="2021" begin="122" end="124"/>
<lne id="2022" begin="122" end="125"/>
<lne id="2023" begin="128" end="128"/>
<lne id="2024" begin="129" end="129"/>
<lne id="2025" begin="129" end="130"/>
<lne id="2026" begin="128" end="131"/>
<lne id="2027" begin="128" end="132"/>
<lne id="2028" begin="135" end="135"/>
<lne id="2029" begin="136" end="136"/>
<lne id="2030" begin="136" end="137"/>
<lne id="2031" begin="136" end="138"/>
<lne id="2032" begin="135" end="139"/>
<lne id="2033" begin="140" end="140"/>
<lne id="2034" begin="141" end="141"/>
<lne id="2035" begin="141" end="142"/>
<lne id="2036" begin="141" end="143"/>
<lne id="2037" begin="140" end="144"/>
<lne id="2038" begin="140" end="145"/>
<lne id="2039" begin="146" end="146"/>
<lne id="2040" begin="147" end="147"/>
<lne id="2041" begin="147" end="148"/>
<lne id="2042" begin="146" end="149"/>
<lne id="2043" begin="140" end="150"/>
<lne id="2044" begin="135" end="151"/>
<lne id="2045" begin="128" end="151"/>
<lne id="2046" begin="152" end="152"/>
<lne id="2047" begin="153" end="153"/>
<lne id="2048" begin="153" end="154"/>
<lne id="2049" begin="152" end="155"/>
<lne id="2050" begin="156" end="156"/>
<lne id="2051" begin="157" end="157"/>
<lne id="2052" begin="157" end="158"/>
<lne id="2053" begin="156" end="159"/>
<lne id="2054" begin="156" end="160"/>
<lne id="2055" begin="161" end="161"/>
<lne id="2056" begin="156" end="162"/>
<lne id="2057" begin="152" end="163"/>
<lne id="2058" begin="122" end="163"/>
<lne id="2059" begin="165" end="165"/>
<lne id="2060" begin="166" end="166"/>
<lne id="2061" begin="166" end="167"/>
<lne id="2062" begin="165" end="168"/>
<lne id="2063" begin="169" end="169"/>
<lne id="2064" begin="170" end="170"/>
<lne id="2065" begin="170" end="171"/>
<lne id="2066" begin="169" end="172"/>
<lne id="2067" begin="169" end="173"/>
<lne id="2068" begin="174" end="174"/>
<lne id="2069" begin="169" end="175"/>
<lne id="2070" begin="165" end="176"/>
<lne id="2071" begin="117" end="176"/>
<lne id="2072" begin="178" end="178"/>
<lne id="2073" begin="179" end="179"/>
<lne id="2074" begin="179" end="180"/>
<lne id="2075" begin="178" end="181"/>
<lne id="2076" begin="182" end="182"/>
<lne id="2077" begin="183" end="183"/>
<lne id="2078" begin="183" end="184"/>
<lne id="2079" begin="182" end="185"/>
<lne id="2080" begin="182" end="186"/>
<lne id="2081" begin="187" end="187"/>
<lne id="2082" begin="182" end="188"/>
<lne id="2083" begin="178" end="189"/>
<lne id="2084" begin="112" end="189"/>
<lne id="2085" begin="191" end="191"/>
<lne id="2086" begin="192" end="192"/>
<lne id="2087" begin="192" end="193"/>
<lne id="2088" begin="191" end="194"/>
<lne id="2089" begin="195" end="195"/>
<lne id="2090" begin="196" end="196"/>
<lne id="2091" begin="196" end="197"/>
<lne id="2092" begin="195" end="198"/>
<lne id="2093" begin="195" end="199"/>
<lne id="2094" begin="200" end="200"/>
<lne id="2095" begin="195" end="201"/>
<lne id="2096" begin="191" end="202"/>
<lne id="2097" begin="107" end="202"/>
<lne id="2098" begin="204" end="204"/>
<lne id="2099" begin="205" end="205"/>
<lne id="2100" begin="205" end="206"/>
<lne id="2101" begin="204" end="207"/>
<lne id="2102" begin="208" end="208"/>
<lne id="2103" begin="209" end="209"/>
<lne id="2104" begin="209" end="210"/>
<lne id="2105" begin="208" end="211"/>
<lne id="2106" begin="208" end="212"/>
<lne id="2107" begin="213" end="213"/>
<lne id="2108" begin="208" end="214"/>
<lne id="2109" begin="204" end="215"/>
<lne id="2110" begin="102" end="215"/>
<lne id="2111" begin="217" end="217"/>
<lne id="2112" begin="218" end="218"/>
<lne id="2113" begin="218" end="219"/>
<lne id="2114" begin="217" end="220"/>
<lne id="2115" begin="221" end="221"/>
<lne id="2116" begin="222" end="222"/>
<lne id="2117" begin="222" end="223"/>
<lne id="2118" begin="221" end="224"/>
<lne id="2119" begin="221" end="225"/>
<lne id="2120" begin="226" end="226"/>
<lne id="2121" begin="221" end="227"/>
<lne id="2122" begin="217" end="228"/>
<lne id="2123" begin="97" end="228"/>
<lne id="2124" begin="229" end="229"/>
<lne id="2125" begin="229" end="229"/>
<lne id="2126" begin="25" end="229"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="2127" begin="29" end="36"/>
<lve slot="4" name="1914" begin="42" end="51"/>
<lve slot="5" name="735" begin="72" end="82"/>
<lve slot="4" name="51" begin="61" end="86"/>
<lve slot="3" name="308" begin="7" end="229"/>
<lve slot="2" name="1872" begin="3" end="229"/>
<lve slot="0" name="34" begin="0" end="229"/>
<lve slot="1" name="343" begin="0" end="229"/>
</localvariabletable>
</operation>
<operation name="2128">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<push arg="45"/>
<push arg="16"/>
<new/>
<getasm/>
<load arg="36"/>
<get arg="739"/>
<call arg="1928"/>
<get arg="1929"/>
<iterate/>
<store arg="46"/>
<load arg="46"/>
<get arg="114"/>
<load arg="36"/>
<push arg="162"/>
<pushf/>
<call arg="260"/>
<call arg="479"/>
<call arg="907"/>
<if arg="2129"/>
<load arg="46"/>
<call arg="386"/>
<enditerate/>
<call arg="909"/>
<call arg="910"/>
</code>
<linenumbertable>
<lne id="2130" begin="3" end="3"/>
<lne id="2131" begin="4" end="4"/>
<lne id="2132" begin="4" end="5"/>
<lne id="2133" begin="3" end="6"/>
<lne id="2134" begin="3" end="7"/>
<lne id="2135" begin="10" end="10"/>
<lne id="2136" begin="10" end="11"/>
<lne id="2137" begin="12" end="12"/>
<lne id="2138" begin="13" end="13"/>
<lne id="2139" begin="14" end="14"/>
<lne id="2140" begin="12" end="15"/>
<lne id="2141" begin="10" end="16"/>
<lne id="2142" begin="0" end="23"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="1872" begin="9" end="20"/>
<lve slot="0" name="34" begin="0" end="23"/>
<lve slot="1" name="1869" begin="0" end="23"/>
</localvariabletable>
</operation>
<operation name="2143">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
</parameters>
<code>
<push arg="2143"/>
<push arg="287"/>
<new/>
<store arg="46"/>
<load arg="46"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="36"/>
<push arg="162"/>
<pushf/>
<call arg="260"/>
<call arg="47"/>
<set arg="114"/>
<dup/>
<getasm/>
<push arg="45"/>
<push arg="16"/>
<new/>
<call arg="47"/>
<set arg="1931"/>
<dup/>
<getasm/>
<getasm/>
<load arg="36"/>
<get arg="739"/>
<call arg="1928"/>
<call arg="47"/>
<set arg="739"/>
<pop/>
<load arg="46"/>
</code>
<linenumbertable>
<lne id="2144" begin="7" end="7"/>
<lne id="2145" begin="7" end="8"/>
<lne id="2146" begin="5" end="10"/>
<lne id="2147" begin="13" end="13"/>
<lne id="2148" begin="14" end="14"/>
<lne id="2149" begin="15" end="15"/>
<lne id="2150" begin="13" end="16"/>
<lne id="2151" begin="11" end="18"/>
<lne id="2152" begin="21" end="23"/>
<lne id="2153" begin="19" end="25"/>
<lne id="2154" begin="28" end="28"/>
<lne id="2155" begin="29" end="29"/>
<lne id="2156" begin="29" end="30"/>
<lne id="2157" begin="28" end="31"/>
<lne id="2158" begin="26" end="33"/>
<lne id="2159" begin="35" end="35"/>
<lne id="2160" begin="35" end="35"/>
<lne id="2161" begin="35" end="35"/>
</linenumbertable>
<localvariabletable>
<lve slot="2" name="308" begin="3" end="35"/>
<lve slot="0" name="34" begin="0" end="35"/>
<lve slot="1" name="1869" begin="0" end="35"/>
</localvariabletable>
</operation>
<operation name="2162">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
</parameters>
<code>
<push arg="2162"/>
<push arg="287"/>
<new/>
<store arg="136"/>
<load arg="136"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="55"/>
<call arg="47"/>
<set arg="55"/>
<dup/>
<getasm/>
<load arg="36"/>
<get arg="378"/>
<get arg="1103"/>
<call arg="47"/>
<set arg="378"/>
<dup/>
<getasm/>
<load arg="46"/>
<call arg="47"/>
<set arg="2163"/>
<pop/>
<load arg="36"/>
<get arg="1908"/>
<iterate/>
<store arg="384"/>
<load arg="136"/>
<load arg="136"/>
<get arg="1909"/>
<load arg="384"/>
<call arg="346"/>
<call arg="319"/>
<set arg="1909"/>
<enditerate/>
<load arg="36"/>
<get arg="2164"/>
<call arg="373"/>
<call arg="374"/>
<if arg="1829"/>
<goto arg="2165"/>
<load arg="136"/>
<load arg="36"/>
<get arg="2164"/>
<call arg="2166"/>
<set arg="2164"/>
<load arg="46"/>
<load arg="46"/>
<get arg="1910"/>
<load arg="136"/>
<call arg="319"/>
<set arg="1910"/>
<load arg="136"/>
</code>
<linenumbertable>
<lne id="2167" begin="7" end="7"/>
<lne id="2168" begin="7" end="8"/>
<lne id="2169" begin="5" end="10"/>
<lne id="2170" begin="13" end="13"/>
<lne id="2171" begin="13" end="14"/>
<lne id="2172" begin="13" end="15"/>
<lne id="2173" begin="11" end="17"/>
<lne id="2174" begin="20" end="20"/>
<lne id="2175" begin="18" end="22"/>
<lne id="2176" begin="24" end="24"/>
<lne id="2177" begin="24" end="25"/>
<lne id="2178" begin="28" end="28"/>
<lne id="2179" begin="29" end="29"/>
<lne id="2180" begin="29" end="30"/>
<lne id="2181" begin="31" end="31"/>
<lne id="2182" begin="31" end="32"/>
<lne id="2183" begin="29" end="33"/>
<lne id="2184" begin="28" end="34"/>
<lne id="2185" begin="24" end="35"/>
<lne id="2186" begin="36" end="36"/>
<lne id="2187" begin="36" end="37"/>
<lne id="2188" begin="36" end="38"/>
<lne id="2189" begin="36" end="39"/>
<lne id="2190" begin="42" end="42"/>
<lne id="2191" begin="43" end="43"/>
<lne id="2192" begin="43" end="44"/>
<lne id="2193" begin="43" end="45"/>
<lne id="2194" begin="42" end="46"/>
<lne id="2195" begin="36" end="46"/>
<lne id="2196" begin="47" end="47"/>
<lne id="2197" begin="48" end="48"/>
<lne id="2198" begin="48" end="49"/>
<lne id="2199" begin="50" end="50"/>
<lne id="2200" begin="48" end="51"/>
<lne id="2201" begin="47" end="52"/>
<lne id="2202" begin="53" end="53"/>
<lne id="2203" begin="53" end="53"/>
<lne id="2204" begin="24" end="53"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="2127" begin="27" end="34"/>
<lve slot="3" name="308" begin="3" end="53"/>
<lve slot="0" name="34" begin="0" end="53"/>
<lve slot="1" name="2205" begin="0" end="53"/>
<lve slot="2" name="2163" begin="0" end="53"/>
</localvariabletable>
</operation>
<operation name="2206">
<context type="14"/>
<parameters>
<parameter name="36" type="4"/>
<parameter name="46" type="4"/>
<parameter name="136" type="4"/>
</parameters>
<code>
<push arg="2206"/>
<push arg="287"/>
<new/>
<store arg="384"/>
<load arg="384"/>
<dup/>
<getasm/>
<load arg="36"/>
<call arg="2166"/>
<call arg="47"/>
<set arg="51"/>
<dup/>
<getasm/>
<load arg="46"/>
<call arg="47"/>
<set arg="2163"/>
<dup/>
<getasm/>
<load arg="136"/>
<call arg="47"/>
<set arg="1914"/>
<pop/>
<load arg="46"/>
<get arg="2207"/>
<load arg="384"/>
<pcall arg="319"/>
<load arg="384"/>
</code>
<linenumbertable>
<lne id="2208" begin="7" end="7"/>
<lne id="2209" begin="7" end="8"/>
<lne id="2210" begin="5" end="10"/>
<lne id="2211" begin="13" end="13"/>
<lne id="2212" begin="11" end="15"/>
<lne id="2213" begin="18" end="18"/>
<lne id="2214" begin="16" end="20"/>
<lne id="2215" begin="22" end="22"/>
<lne id="2216" begin="22" end="23"/>
<lne id="2217" begin="24" end="24"/>
<lne id="2218" begin="22" end="25"/>
<lne id="2219" begin="26" end="26"/>
<lne id="2220" begin="26" end="26"/>
<lne id="2221" begin="22" end="26"/>
</linenumbertable>
<localvariabletable>
<lve slot="4" name="308" begin="3" end="26"/>
<lve slot="0" name="34" begin="0" end="26"/>
<lve slot="1" name="2222" begin="0" end="26"/>
<lve slot="2" name="2163" begin="0" end="26"/>
<lve slot="3" name="1914" begin="0" end="26"/>
</localvariabletable>
</operation>
</asm>
| 29.189694 | 91 | 0.562206 |
a3956d53714b7b71c2fd657c6a2466db58a4a04d | 35,539 | asm | Assembly | src/infohud.asm | NobodyNada/sm_practice_hack | d232ffea256b82748aaa4f5677ede66dfa3c6e9e | [
"Unlicense"
] | null | null | null | src/infohud.asm | NobodyNada/sm_practice_hack | d232ffea256b82748aaa4f5677ede66dfa3c6e9e | [
"Unlicense"
] | null | null | null | src/infohud.asm | NobodyNada/sm_practice_hack | d232ffea256b82748aaa4f5677ede66dfa3c6e9e | [
"Unlicense"
] | null | null | null | ;=======================================================
;InfoHUD timers and stuff
;=======================================================
org $809490
JMP $9497 ; skip resetting player 2 inputs
org $8094DF
PLP ; patch out resetting of controller 2 buttons and enable debug mode
RTL
org $80AE29 ; fix for scroll offset misalignment
JSR ih_fix_scroll_offsets
org $828B4B ; disable debug functions
JML ih_debug_patch
org $82EE92 ; runs on START GAME
JSL startgame_seg_timer
org $828B34 ; reset room timers for first room of Ceres
JML ceres_start_timers : NOP #2 : ceres_start_timers_return:
org $90E6AA ; hijack, runs on gamestate = 08 (main gameplay), handles most updating HUD information
JSL ih_gamemode_frame : NOP : NOP
org $9493FB ; hijack, runs when Samus hits a door BTS
JSL ih_before_room_transition
org $9493B8 ; hijack, runs when Samus hits a door BTS
JSL ih_before_room_transition
org $82E764 ; hijack, runs when Samus is coming out of a room transition
JSL ih_after_room_transition : RTS
org $809B4C ; hijack, HUD routine (game timer by Quote58)
JSL ih_hud_code : NOP
org $8290F6 ; hijack, HUD routine while paused
JSL ih_hud_code_paused
org $82894F ; hijack, main game loop: runs EVERY frame (used for room transition timer)
JSL ih_game_loop_code
org $84889F ; hijack, runs every time an item is picked up
JSL ih_get_item_code
org $8095FC ; hijack, end of NMI routine to update realtime frames
JML ih_nmi_end
if !FEATURE_PAL
org $91DA3D ; hijack, runs after a shinespark has been charged
else
org $91DAD8 ; hijack, runs after a shinespark has been charged
endif
JSL ih_shinespark_code
if !FEATURE_PAL
org $90F1E1 ; hijack, runs when an elevator is activated
else
org $90F1E4 ; hijack, runs when an elevator is activated
endif
JSL ih_elevator_activation
if !FEATURE_PAL
org $A98884 ; update timers after MB1 fight
else
org $A98874 ; update timers after MB1 fight
endif
JSL ih_mb1_segment
if !FEATURE_PAL
org $A9BE70 ; update timers when baby spawns (off-screen) in MB2 fight
else
org $A9BE23 ; update timers when baby spawns (off-screen) in MB2 fight
endif
JSL ih_mb2_segment
if !FEATURE_PAL
org $A0B9BE ; update timers when Ridley drops spawn
else
org $A0B9AE ; update timers when Ridley drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0B9F1 ; update timers when Crocomire drops spawn
else
org $A0B9E1 ; update timers when Crocomire drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BA24 ; update timers when Phantoon drops spawn
else
org $A0BA14 ; update timers when Phantoon drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BA57 ; update timers when Botwoon drops spawn
else
org $A0BA47 ; update timers when Botwoon drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BA8A ; update timers when Kraid drops spawn
else
org $A0BA7A ; update timers when Kraid drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BABD ; update timers when Bomb Torizo drops spawn
else
org $A0BAAD ; update timers when Bomb Torizo drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BAF0 ; update timers when Golden Torizo drops spawn
else
org $A0BAE0 ; update timers when Golden Torizo drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BB23 ; update timers when Spore Spawn drops spawn
else
org $A0BB13 ; update timers when Spore Spawn drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $A0BB56 ; update timers when Draygon drops spawn
else
org $A0BB46 ; update timers when Draygon drops spawn
endif
JSL ih_drops_segment
if !FEATURE_PAL
org $AAE592 ; update timers when statue grabs Samus
else
org $AAE582 ; update timers when statue grabs Samus
endif
JSL ih_chozo_segment
org $89AD0A ; update timers when Samus escapes Ceres
JSL ih_ceres_elevator_segment
if !FEATURE_PAL
org $A2AA38
else
org $A2AA20 ; update timers when Samus enters ship
endif
JSL ih_ship_elevator_segment
; Main bank stuff
org $F08000
print pc, " infohud start"
; List this first since it affects bank $84 where we are trying to minimize change
ih_get_item_code:
{
PHA
; calculate lag frames
LDA !ram_realtime_room : SEC : SBC !ram_transition_counter : STA !ram_last_room_lag
LDA !ram_gametime_room : STA !ram_last_gametime_room
LDA !ram_realtime_room : STA !ram_last_realtime_room
; save temp variables
LDA $12 : PHA
LDA $14 : PHA
; Update HUD
JSL ih_update_hud_code
; restore temp variables
PLA : STA $14
PLA : STA $12
PLA
JSL $80818E
RTL
}
ih_debug_patch:
{
LDA $05D1
BNE +
JML $828B54
+ JSL $B49809
JML $828B4F
}
ih_nmi_end:
{
%ai16()
LDA !ram_realtime_room : INC : STA !ram_realtime_room
; Segment real timer
{
LDA !ram_seg_rt_frames : INC : STA !ram_seg_rt_frames : CMP.w #60 : BNE +
LDA #$0000 : STA !ram_seg_rt_frames
LDA !ram_seg_rt_seconds : INC : STA !ram_seg_rt_seconds : CMP.w #60 : BNE +
LDA #$0000 : STA !ram_seg_rt_seconds
LDA !ram_seg_rt_minutes : INC : STA !ram_seg_rt_minutes
+
}
LDA !ram_slowdown_mode : BNE +
JMP .done
+ CMP #$FFFF
BEQ .pause
LDA !ram_slowdown_frames : BNE .delay
LDA !ram_slowdown_mode : STA !ram_slowdown_frames
LDA !ram_slowdown_controller_1 : STA !IH_CONTROLLER_PRI_PREV
LDA !ram_slowdown_controller_2 : STA !IH_CONTROLLER_SEC_PREV
JSL $809459
JMP .done
.delay
CMP !ram_slowdown_mode : BNE +
LDA !IH_CONTROLLER_PRI : EOR !IH_CONTROLLER_PRI_NEW : STA !ram_slowdown_controller_1
LDA !IH_CONTROLLER_SEC : EOR !IH_CONTROLLER_SEC_NEW : STA !ram_slowdown_controller_2
LDA !ram_slowdown_frames
+ DEC : STA !ram_slowdown_frames
%a8() : LDA #$01 : STA $05B4 : %a16()
JMP .done
.pause
LDA !ram_slowdown_frames : BNE +
INC : STA !ram_slowdown_frames
LDA !IH_CONTROLLER_PRI : EOR !IH_CONTROLLER_PRI_NEW : STA !ram_slowdown_controller_1
LDA !IH_CONTROLLER_SEC : EOR !IH_CONTROLLER_SEC_NEW : STA !ram_slowdown_controller_2
+ LDA !IH_CONTROLLER_SEC_NEW : CMP !IH_PAUSE : BEQ .frameAdvance
CMP !IH_RESET : BNE +
LDA #$0000 : STA !ram_slowdown_mode : STA !ram_slowdown_frames
JMP .done
+ LDA !ram_freeze_on_load : BEQ +
LDA !IH_CONTROLLER_PRI_NEW : BEQ +
LDA #$0000 : STA !ram_reset_segment_later
STA !ram_seg_rt_frames : STA !ram_seg_rt_seconds
STA !ram_seg_rt_minutes : STA !ram_slowdown_mode : STA !ram_slowdown_frames
JMP .done
+ %a8() : LDA #$01 : STA $05B4 : %a16()
JMP .done
.frameAdvance
LDA #$0000 : STA !ram_slowdown_frames
LDA !ram_slowdown_controller_1 : STA $97
LDA !ram_slowdown_controller_2 : STA $99
JSL $809459
.done
PLY
PLX
PLA
PLD
PLB
RTI
}
ih_gamemode_frame:
{
PHA
LDA !ram_gametime_room : INC : STA !ram_gametime_room
PLA
; overwritten code
STZ $0A30
STZ $0A32
RTL
}
ih_after_room_transition:
{
PHX
PHY
LDA !ram_transition_counter : STA !ram_last_door_lag_frames
LDA !ram_realtime_room : STA !ram_last_realtime_door
LDA #$0000 : STA !ram_transition_flag
; Check if MBHP needs to be disabled
LDA !sram_display_mode : CMP #!IH_MODE_ROOMSTRAT_INDEX : BNE .check_reset_segment_timer
LDA !sram_room_strat : CMP #!IH_STRAT_MBHP_INDEX : BNE .check_reset_segment_timer
LDA !ROOM_ID : CMP #$DD58 : BEQ .check_reset_segment_timer
LDA #$0000 : STA !sram_display_mode
.check_reset_segment_timer
LDA !ram_reset_segment_later : BEQ .update_hud
LDA #$0000 : STA !ram_reset_segment_later
STA !ram_seg_rt_frames : STA !ram_seg_rt_seconds
STA !ram_seg_rt_minutes
.update_hud
JSL ih_update_hud_code
; Reset gametime/transition timer
LDA #$0000 : STA !ram_transition_counter
; Reset realtime timer
LDA #$0000 : STA !ram_realtime_room
PLY
PLX
; original hijacked code
LDA #$0008
STA !GAMEMODE
RTL
}
ih_before_room_transition:
{
PHA
PHX
PHY
; Save and reset timers
LDA !ram_transition_flag : CMP #$0001 : BEQ .done
LDA #$0001 : STA !ram_transition_flag
LDA #$0000 : STA !ram_room_has_set_rng
; Lag
LDA !ram_realtime_room : SEC : SBC !ram_transition_counter : STA !ram_last_room_lag
LDA #$0000 : STA !ram_transition_counter
; Gametime
LDA !ram_gametime_room : STA !ram_last_gametime_room
LDA #$0000 : STA !ram_gametime_room
; Realtime
LDA !ram_realtime_room : STA !ram_last_realtime_room
LDA #$0000 : STA !ram_realtime_room
LDA #$0000 : STA !ram_last_realtime_door
; Save temp variables
LDA $12 : PHA
LDA $14 : PHA
; Update HUD
JSL ih_update_hud_code
; Restore temp variables
PLA : STA $14
PLA : STA $12
.done
; Run standard code and return
PLY
PLX
PLA
STA !GAMEMODE
CLC
RTL
}
ceres_start_timers:
{
LDA #$0000
STA !ram_realtime_room : STA !ram_last_realtime_room
STA !ram_gametime_room : STA !ram_last_gametime_room
STA !ram_last_room_lag : STA !ram_last_door_lag_frames : STA !ram_transition_counter
STZ $0723 ; overwritten code
STZ $0725
JML ceres_start_timers_return
}
ih_elevator_activation:
{
PHA
; Only update if we're in a room and activate an elevator.
; Otherwise this will also run when you enter a room already riding one.
LDA !GAMEMODE : CMP #$0008 : BNE .done
JSL ih_update_hud_early
.done
PLA
STZ $0A56
SEC
RTL
}
ih_mb1_segment:
{
; runs during MB1 cutscene when you regain control of Samus, just before music change
if !FEATURE_PAL
JSL $90F081 ; overwritten code
else
JSL $90F084 ; overwritten code
endif
JML ih_update_hud_early
}
ih_mb2_segment:
{
; runs during baby spawn routine for MB2
STA $7E7854 ; we overwrote this instruction to get here
JML ih_update_hud_early
}
ih_drops_segment:
{
; runs when boss drops spawn
JSL ih_update_hud_early
JML $808111 ; overwritten code
}
ih_chozo_segment:
{
JSL $8090CB ; overwritten code
JML ih_update_hud_early
}
ih_ceres_elevator_segment:
{
JSL ih_update_hud_early
if !FEATURE_PAL
JML $90F081 ; overwritten code
else
JML $90F084 ; overwritten code
endif
}
ih_ship_elevator_segment:
{
JSL ih_update_hud_early
if !FEATURE_PAL
JML $91E35B ; overwritten code
else
JML $91E3F6 ; overwritten code
endif
}
ih_update_hud_code:
{
PHX
PHY
PHP
PHB
; Bank 80
PEA $8080 : PLB : PLB
LDA !ram_minimap : BNE .minimap_hud
BRL .start_update
.minimap_vanilla_infohud
BRL .end
.minimap_hud
; Map visible, so draw map counter over item%
LDA !sram_top_display_mode : CMP !TOP_DISPLAY_VANILLA : BEQ .minimap_vanilla_infohud
LDA !ram_map_counter : LDX #$0014 : JSR Draw3
LDA !sram_display_mode : CMP #!IH_MODE_SHINETUNE_INDEX : BNE .minimap_roomtimer
BRL .pick_minimap_transition_time
.minimap_roomtimer
STZ $4205
LDA !sram_frame_counter_mode : BNE .minimap_ingame_roomtimer
LDA !ram_last_realtime_room
BRA .minimap_calculate_roomtimer
.minimap_ingame_roomtimer
LDA !ram_last_gametime_room
.minimap_calculate_roomtimer
; Divide time by 60 or 50 and draw seconds and frames
STA $4204
%a8()
if !FEATURE_PAL
LDA #$32
else
LDA #$3C
endif
STA $4206
PHA : PLA : PHA : PLA
%a16()
LDA $4216 : STA $C1
LDA $4214 : LDX #$00B0 : JSR Draw2
LDA !IH_DECIMAL : STA $7EC6B4
LDA $C1 : ASL : TAX
LDA HexToNumberGFX1,X : STA $7EC6B6
LDA HexToNumberGFX2,X : STA $7EC6B8
.pick_minimap_transition_time
LDA !sram_lag_counter_mode : BNE .minimap_transition_time_full
LDA !ram_last_door_lag_frames
BRA .draw_minimap_transition_time
.minimap_transition_time_full
LDA !ram_last_realtime_door
.draw_minimap_transition_time
LDX #$0054 : JSR Draw3
BRL .end
.start_update
LDA #$FFFF : STA !ram_last_hp : STA !ram_enemy_hp
; Determine starting point of time display
LDX #$003C
LDA !sram_top_display_mode : CMP !TOP_DISPLAY_VANILLA : BNE .pick_roomtimer
LDX #$003A
.pick_roomtimer
STZ $4205
LDA !sram_frame_counter_mode : BNE .ingame_roomtimer
LDA !ram_last_realtime_room
BRA .calculate_roomtimer
.ingame_roomtimer
LDA !ram_last_gametime_room
.calculate_roomtimer
; Divide time by 60 or 50 and draw seconds and frames
STA $4204
%a8()
if !FEATURE_PAL
LDA #$32
else
LDA #$3C
endif
STA $4206
PHA : PLA : PHA : PLA
%a16()
LDA $4216 : STA $C1
LDA $4214 : JSR Draw3 : TXY
LDA !IH_DECIMAL : STA $7EC600,X
LDA $C1 : ASL : TAX
LDA HexToNumberGFX1,X : PHX : TYX : STA $7EC602,X
PLX : LDA HexToNumberGFX2,X : TYX : STA $7EC604,X
; 3 tiles between input display and missile icon
; skip item% if display mode = vspeed
LDA !sram_display_mode : CMP #!IH_MODE_VSPEED_INDEX : BEQ .skipToLag
LDA !sram_top_display_mode : BNE .skipToLag
; Draw Item percent
; Max HP and Reserves
LDA !SAMUS_HP_MAX : CLC : ADC !SAMUS_RESERVE_MAX
JSR CalcEtank : STA $C1
; Max Missiles, Supers & Power Bombs
LDA !SAMUS_MISSILES_MAX : CLC : ADC !SAMUS_SUPERS_MAX : CLC : ADC !SAMUS_PBS_MAX
JSR CalcItem : CLC : ADC $C1 : STA $C1
; Collected items
JSR CalcLargeItem : CLC : ADC $C1 : STA $C1
; Collected beams and charge
JSR CalcBeams : CLC : ADC $C1
; Percent counter -> decimal form and drawn on HUD
LDX #$0012 : JSR Draw3
LDA !IH_PERCENT : STA $7EC618
.skipToLag
LDA !sram_top_display_mode : CMP !TOP_DISPLAY_VANILLA : BEQ .vanilla_infohud_draw_lag_and_reserves
LDA !ram_last_room_lag : LDX #$0080 : JSR Draw4
; Skip door lag and segment timer when shinetune enabled
LDA !sram_display_mode : CMP #!IH_MODE_SHINETUNE_INDEX : BEQ .end
; Door lag / transition time
LDA !sram_lag_counter_mode : BNE .transition_time_full
LDA !ram_last_door_lag_frames
BRA .infohud_transition_time
.transition_time_full
LDA !ram_last_realtime_door
.infohud_transition_time
LDX #$00C2 : JSR Draw3
BRA .pick_segment_timer
.end
PLB
PLP
PLY
PLX
RTL
.vanilla_infohud_draw_lag_and_reserves
LDA !SAMUS_RESERVE_MODE : CMP #$0001 : BNE .vanilla_infohud_draw_lag
; Draw reserve icon
LDY #$998B : LDA !SAMUS_RESERVE_ENERGY : BNE .vanilla_draw_reserve_icon
LDY #$9997
.vanilla_draw_reserve_icon
LDA $0000,Y : STA $7EC618 : LDA $0002,Y : STA $7EC61A
LDA $0004,Y : STA $7EC658 : LDA $0006,Y : STA $7EC65A
.vanilla_infohud_draw_lag
LDA !ram_last_room_lag : LDX #$007E : JSR Draw4
; Skip door lag and segment timer when shinetune enabled
LDA !sram_display_mode : CMP #!IH_MODE_SHINETUNE_INDEX : BEQ .end
; Door lag / transition time
LDA !sram_lag_counter_mode : BNE .vanilla_infohud_transition_time_full
LDA !ram_last_door_lag_frames
BRA .draw_vanilla_infohud_transition_time
.vanilla_infohud_transition_time_full
LDA !ram_last_realtime_door
.draw_vanilla_infohud_transition_time
LDX #$00C2 : JSR Draw2
.pick_segment_timer
LDA !sram_frame_counter_mode : BNE .ingame_segment_timer
LDA.w #!ram_seg_rt_frames : STA $00
LDA !WRAM_BANK : STA $02
BRA .draw_segment_timer
.ingame_segment_timer
LDA #$09DA : STA $00
LDA #$007E : STA $02
BRA .draw_segment_timer
.draw_segment_timer
; Frames
LDA [$00] : INC $00 : INC $00 : ASL : TAX
LDA HexToNumberGFX1,X : STA $7EC6BC
LDA HexToNumberGFX2,X : STA $7EC6BE
; Seconds
LDA [$00] : INC $00 : INC $00 : ASL : TAX
LDA HexToNumberGFX1,X : STA $7EC6B6
LDA HexToNumberGFX2,X : STA $7EC6B8
; Minutes
LDA [$00] : LDX #$00AE : JSR Draw3
; Draw decimal seperators
LDA !IH_DECIMAL : STA $7EC6B4 : STA $7EC6BA
LDA !IH_BLANK : STA $7EC6C0
BRL .end
}
ih_update_hud_early:
{
PHA
PHX
PHY
; calculate lag frames
LDA !ram_realtime_room : SEC : SBC !ram_transition_counter : STA !ram_last_room_lag
LDA !ram_gametime_room : STA !ram_last_gametime_room
LDA !ram_realtime_room : STA !ram_last_realtime_room
; update HUD
LDA $12 : PHA : LDA $14 : PHA
JSL ih_update_hud_code
PLA : STA $14 : PLA : STA $12
PLY
PLX
PLA
RTL
}
ih_hud_vanilla_health:
{
LDA !SAMUS_HP : STA !SAMUS_LAST_HP : STA $4204
%a8()
LDA #$64 : STA $4206
%a16()
PHA : PLA : PHA : PLA
LDA $4214 : STA $14
LDA $4216 : STA $12
LDA !SAMUS_HP_MAX : STA $4204
%a8()
LDA #$64 : STA $4206
%ai16()
PHA : PLA : PHA : PLA
LDY #$0000 : LDA $4214
INC : STA $16
.vanilla_loop_tanks
DEC $16 : BEQ .vanilla_draw_empty_tanks
LDX #$3430
LDA $14 : BEQ .vanilla_draw_tank_health
DEC $14 : LDX #$2831
.vanilla_draw_tank_health
TXA : LDX $9CCE,Y : STA $7EC608,X
INY : INY : CPY #$001C : BMI .vanilla_loop_tanks
BRA .vanilla_subtank_health
.vanilla_draw_empty_tanks
LDA !IH_BLANK
.vanilla_loop_empty_tanks
LDX $9CCE,Y : STA $7EC608,X
INY : INY : CPY #$001C : BMI .vanilla_loop_empty_tanks
.vanilla_subtank_health
LDA $12 : LDX #$0094 : JSR Draw2
LDA $16 : BNE .vanilla_subtank_whitespace
; Draw the leading zero
LDA.w NumberGFXTable : STA $7EC694
.vanilla_subtank_whitespace
LDA !IH_BLANK : STA $7EC692 : STA $7EC698 : STA $7EC69A
STA $7EC608 : STA $7EC648 : STA $7EC688
LDA !SAMUS_RESERVE_MODE : CMP #$0001 : BNE .vanilla_no_reserves
; Draw reserve icon
LDY #$998B : LDA !SAMUS_RESERVE_ENERGY : BNE .vanilla_draw_reserve_icon
LDY #$9997
.vanilla_draw_reserve_icon
LDA $0000,Y : STA $7EC618 : LDA $0002,Y : STA $7EC61A
LDA $0004,Y : STA $7EC658 : LDA $0006,Y : STA $7EC65A
RTS
.vanilla_no_reserves
LDA !IH_BLANK : STA $7EC618 : STA $7EC61A : STA $7EC658 : STA $7EC65A
RTS
}
ih_hud_code:
{
%ai16()
; fix data bank register
PHB
PEA $8080
PLB
PLB
LDA !sram_top_display_mode : CMP !TOP_DISPLAY_VANILLA : BEQ .vanilla_infohud
; -- input display --
; -- check if we want to update --
LDA !IH_CONTROLLER_PRI : CMP !ram_ih_controller : BNE .controller_update
BRL .status_display
.controller_update
; -- read input
TAY : LDX #$0000
.controller_row_1_loop
TYA : AND ControllerTable1,X
BEQ .controller_row_1_blank
LDA ControllerGfx1,X
BRA .controller_row_1_draw
.controller_row_1_blank
LDA !IH_BLANK
.controller_row_1_draw
STA $7EC608,X
INX : INX : CPX #$000C : BNE .controller_row_1_loop
LDX #$0000
.controller_row_2_loop
TYA : AND ControllerTable2,X
BEQ .controller_row_2_blank
LDA ControllerGfx2,X
BRA .controller_row_2_draw
.controller_row_2_blank
LDA !IH_BLANK
.controller_row_2_draw
STA $7EC648,X
INX : INX : CPX #$000C : BNE .controller_row_2_loop
TYA : STA !ram_ih_controller
BRA .status_display
.vanilla_infohud
; Shift infohud status left by one
LDA $7EC68A : STA $7EC688
LDA $7EC68C : STA $7EC68A
LDA $7EC68E : STA $7EC68C
LDA $7EC690 : STA $7EC68E
.status_display
LDA !sram_display_mode : ASL : TAX
JSR (.status_display_table,X)
; Samus' HP
LDA !SAMUS_HP : CMP !ram_last_hp : BEQ .reserves : STA !ram_last_hp
LDA !sram_top_display_mode : CMP !TOP_DISPLAY_VANILLA : BEQ .vanilla_draw_health
LDA !SAMUS_HP : LDX #$0092 : JSR Draw4
LDA !IH_BLANK : STA $7EC690 : STA $7EC69A
BRA .reserves
.vanilla_check_health
LDA !SAMUS_HP : CMP !SAMUS_LAST_HP : BEQ .vanilla_health_end
.vanilla_draw_health
JSR ih_hud_vanilla_health
.vanilla_health_end
; Shift infohud status right by one
LDA $7EC68E : STA $7EC690
LDA $7EC68C : STA $7EC68E
LDA $7EC68A : STA $7EC68C
LDA $7EC688 : STA $7EC68A
LDA !IH_BLANK : STA $7EC688
BRL .end
; Reserve energy counter
.reserves
LDA !sram_top_display_mode : BEQ .statusIcons
CMP !TOP_DISPLAY_VANILLA : BEQ .vanilla_check_health
LDA !SAMUS_RESERVE_MAX : BEQ .noReserves
LDA !SAMUS_RESERVE_ENERGY : CMP !ram_reserves_last : BEQ .checkAuto
STA !ram_reserves_last : LDX #$0014 : JSR Draw3
.checkAuto
LDA !SAMUS_RESERVE_MODE : CMP #$0001 : BEQ .autoOn
LDA !IH_BLANK : STA $7EC61A : BRA .statusIcons
.autoOn
LDA !SAMUS_RESERVE_ENERGY : BEQ .autoEmpty
LDA !IH_RESERVE_AUTO : STA $7EC61A : BRA .statusIcons
.autoEmpty
LDA !IH_RESERVE_EMPTY : STA $7EC61A : BRA .statusIcons
.noReserves
LDA !IH_BLANK : STA $7EC614 : STA $7EC616 : STA $7EC618 : STA $7EC61A
; Status Icons
.statusIcons
LDA !sram_status_icons : BNE .check_healthbomb
JMP .end
.check_healthbomb
; health bomb
LDA $0E1A : BEQ .clear_healthbomb
LDA !SAMUS_HP : CMP #$0032 : BMI .pink
LDA !IH_LETTER_E : STA $7EC654
BRA .check_elevator
.pink
LDA !IH_HEALTHBOMB : STA $7EC654
BRA .check_elevator
.clear_healthbomb
LDA !IH_BLANK : STA $7EC654
.check_elevator
; Elevator
LDA $0E16 : BEQ .clear_elevator
LDA !IH_ELEVATOR : STA $7EC656
BRA .check_shinetimer
.clear_elevator
LDA !IH_BLANK : STA $7EC656
; Shine timer
.check_shinetimer
LDA $0A68 : BEQ .clear_shinetimer
LDA !IH_SHINETIMER : STA $7EC658
BRA .check_reserves
.clear_shinetimer
LDA !IH_BLANK : STA $7EC658
; reserve tank
.check_reserves
LDA !sram_top_display_mode : BNE .end
LDA !SAMUS_RESERVE_MODE : CMP #$0001 : BNE .clearReserve
LDA !SAMUS_RESERVE_ENERGY : BEQ .empty
LDA !SAMUS_RESERVE_MAX : BEQ .clearReserve
LDA !IH_RESERVE_AUTO : STA $7EC61A
BRA .end
.empty
LDA !SAMUS_RESERVE_MAX : BEQ .clearReserve
LDA !IH_RESERVE_EMPTY : STA $7EC61A
BRA .end
.clearReserve
LDA !IH_BLANK : STA $7EC61A
.end
PLB
; overwritten code
REP #$30
LDA $7E09C0
RTL
}
incsrc infohudmodes.asm
;---SUBROUTINES---
Draw2:
{
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $16
; Ones digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC602,X
; Tens digit
LDA $16 : BEQ .blanktens : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC600,X
.done
INX #4
RTS
.blanktens
LDA !IH_BLANK : STA $7EC600,X
BRA .done
}
Draw3:
{
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $16
; Ones digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC604,X
LDA $16 : BEQ .blanktens
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $14
; Tens digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC602,X
; Hundreds digit
LDA $14 : BEQ .blankhundreds : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC600,X
.done
INX #6
RTS
.blanktens
LDA !IH_BLANK : STA $7EC600,X : STA $7EC602,X
BRA .done
.blankhundreds
LDA !IH_BLANK : STA $7EC600,X
BRA .done
}
Draw4:
{
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $16
; Ones digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC606,X
LDA $16 : BEQ .blanktens
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $14
; Tens digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC604,X
LDA $14 : BEQ .blankhundreds
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $12
; Hundreds digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC602,X
; Thousands digit
LDA $12 : BEQ .blankthousands : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC600,X
.done
INX #8
RTS
.blanktens
LDA !IH_BLANK : STA $7EC600,X : STA $7EC602,X : STA $7EC604,X
BRA .done
.blankhundreds
LDA !IH_BLANK : STA $7EC600,X : STA $7EC602,X
BRA .done
.blankthousands
LDA !IH_BLANK : STA $7EC600,X
BRA .done
}
DrawHealthPaused:
{
LDA !sram_top_display_mode : BEQ .draw_health
CMP !TOP_DISPLAY_VANILLA : BEQ .vanilla_draw_health
LDA !SAMUS_RESERVE_MAX : BEQ .noReserves
LDA !SAMUS_RESERVE_ENERGY : STA !ram_reserves_last : LDX #$0014 : JSR Draw3
LDA !SAMUS_RESERVE_MODE : CMP #$0001 : BEQ .autoOn
LDA !IH_BLANK : STA $7EC61A : BRA .draw_health
.autoOn
LDA !SAMUS_RESERVE_ENERGY : BEQ .autoEmpty
LDA !IH_RESERVE_AUTO : STA $7EC61A : BRA .draw_health
.autoEmpty
LDA !IH_RESERVE_EMPTY : STA $7EC61A : BRA .draw_health
.noReserves
LDA !IH_BLANK : STA $7EC614 : STA $7EC616 : STA $7EC618 : STA $7EC61A
LDA !SAMUS_RESERVE_ENERGY : STA !ram_reserves_last
.draw_health
LDA !SAMUS_HP : LDX #$0092 : JSR Draw4
LDA !IH_BLANK : STA $7EC690 : STA $7EC69A
RTL
.vanilla_draw_health
JSR ih_hud_vanilla_health
RTL
}
Draw4Hex:
{
STA $12 : AND #$F000 ; get first digit (X000)
XBA : LSR #3 ; move it to last digit (000X) and shift left one
TAY : LDA.w HexGFXTable,Y ; load tilemap address with 2x digit as index
STA $7EC600,X ; draw digit to HUD
LDA $12 : AND #$0F00 ; (0X00)
XBA : ASL
TAY : LDA.w HexGFXTable,Y
STA $7EC602,X
LDA $12 : AND #$00F0 ; (00X0)
LSR #3 : TAY : LDA.w HexGFXTable,Y
STA $7EC604,X
LDA $12 : AND #$000F ; (000X)
ASL : TAY : LDA.w HexGFXTable,Y
STA $7EC606,X
RTS
}
Draw4Hundredths:
{
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
; Ones digit ignored, go straight to tens digit
LDA $4214 : BEQ .zerotens
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $14
; Tens digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC606,X
LDA $14 : BEQ .zerohundreds
STA $4204
%a8()
LDA #$0A : STA $4206 ; divide by 10
%a16()
PEA $0000 : PLA
LDA $4214 : STA $12
; Hundreds digit
LDA $4216 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC604,X
; Thousands digit
LDA $12 : ASL : TAY : LDA.w NumberGFXTable,Y : STA $7EC600,X
.done
LDA !IH_DECIMAL : STA $7EC602,X
INX #8
RTS
.zerotens
LDA #$0C09 : STA $7EC600,X : STA $7EC604,X : STA $7EC606,X
BRA .done
.zerohundreds
LDA #$0C09 : STA $7EC600,X : STA $7EC604,X
BRA .done
}
CalcEtank:
{
STA $4204
%a8()
LDA #$64 : STA $4206
%a16()
PEA $0000 : PLA
LDA $4214
RTS
}
CalcItem:
{
STZ $4214 : STA $4204
%a8()
LDA #$05 : STA $4206
%a16()
PEA $0000 : PLA
LDA $4214
RTS
}
CalcLargeItem:
{
LDA $09A4
AND #$F32F ; GT Code adds an unused item (10h)
LDX #$0000
.loop
BIT #$0001 : BEQ .noItem
INX
.noItem
LSR : BNE .loop
TXA
RTS
}
CalcBeams:
{
PHP
%a8()
LDA $09A8
LDX #$0000
.loop
BIT #$01 : BEQ .noItem
INX
.noItem
LSR : BNE .loop
LDA $09A9 : CMP #$10 : BNE .done
INX
.done
TXA
PLP
RTS
}
ih_game_loop_code:
{
PHA
LDA !ram_transition_counter : INC : STA !ram_transition_counter
LDA !ram_game_loop_extras : BEQ .handleinputs
LDA !ram_metronome : BEQ +
JSR metronome
+ LDA !ram_magic_pants_enabled : AND #$0003 : BEQ .handleinputs
CMP #$0001 : BEQ .magicpants
CMP #$0002 : BEQ .spacepants
; both are enabled, check Samus movement type to decide
LDA $0A1F : AND #$00FF : CMP #$0001 : BEQ .magicpants ; check if running
.spacepants
JSR space_pants
BRA .handleinputs
.magicpants
JSR magic_pants
.handleinputs
LDA !IH_CONTROLLER_SEC_NEW : BEQ .done
CMP !IH_PAUSE : BEQ .toggle_pause
CMP !IH_SLOWDOWN : BEQ .toggle_slowdown
CMP !IH_SPEEDUP : BEQ .toggle_speedup
CMP !IH_RESET : BEQ .reset_slowdown
CMP !IH_STATUS_R : BEQ .inc_statusdisplay
CMP !IH_STATUS_L : BEQ .dec_statusdisplay
.done
PLA
JSL $808111
RTL
.toggle_pause
LDA #$FFFF
STA !ram_slowdown_mode
LDA #$0000
STA !ram_slowdown_frames
JMP .done
.toggle_slowdown
LDA !ram_slowdown_mode
INC A
STA !ram_slowdown_mode
JMP .done
.toggle_speedup
LDA !ram_slowdown_mode
BEQ +
DEC A
STA !ram_slowdown_mode
+ JMP .done
.reset_slowdown
LDA #$0000
STA !ram_slowdown_mode
STA !ram_slowdown_frames
JMP .done
.inc_statusdisplay
LDA !sram_display_mode
INC A
CMP #$0013
BNE +
LDA #$0000
+ STA !sram_display_mode
JMP .update_status
.dec_statusdisplay
LDA !sram_display_mode
DEC A
CMP #$FFFF
BNE +
LDA #$0012
+ STA !sram_display_mode
JMP .update_status
.update_status
LDA #$0000
STA !ram_HUD_check
STA !ram_armed_shine_duration
INC A
STA !ram_dash_counter
STA !ram_xpos
STA !ram_ypos
STA !ram_horizontal_speed
STA !ram_vertical_speed
STA !ram_subpixel_pos
STA !ram_mb_hp
STA !ram_enemy_hp
STA !ram_shine_counter
JMP .done
}
metronome:
{
LDA !ram_metronome_counter : INC
CMP !sram_metronome_tickrate : BEQ .tick
CMP #$0002 : BEQ .eraseHUD
STA !ram_metronome_counter
RTS
.eraseHUD
STA !ram_metronome_counter
LDA !IH_BLANK : STA $7EC662
RTS
.tick
LDA !IH_LETTER_X : STA $7EC662
LDA #$0000 : STA !ram_metronome_counter
LDA !sram_metronome_sfx : ASL : TAX
LDA.l MetronomeSFX,X : JSL !SFX_LIB1
RTS
}
MetronomeSFX:
; missile, click, beep, shot, spazer
dw #$0003, #$0039, #$0036, #$000B, #$000F
magic_pants:
{
LDA $0A96 : CMP #$0009 : BEQ .check
LDA !ram_magic_pants_state : BEQ +
LDA !ram_magic_pants_pal1 : STA $7EC194
LDA !ram_magic_pants_pal2 : STA $7EC196
LDA !ram_magic_pants_pal3 : STA $7EC19E
LDA #$0000 : STA !ram_magic_pants_state
+ RTS
.check
LDA $0A1C : CMP #$0009 : BEQ .flash
CMP #$000A : BEQ .flash
RTS
.flash
LDA !ram_magic_pants_state : BNE ++
; if loudpants are enabled, click
LDA !ram_magic_pants_enabled : AND #$0004 : BEQ +
LDA !sram_metronome_sfx : ASL : TAX
LDA.l MetronomeSFX,X : JSL !SFX_LIB1
+ LDA $7EC194 : STA !ram_magic_pants_pal1
LDA $7EC196 : STA !ram_magic_pants_pal2
LDA $7EC19E : STA !ram_magic_pants_pal3
++ LDA #$FFFF
STA $7EC194 : STA $7EC196 : STA $7EC19E
STA !ram_magic_pants_state
RTS
}
space_pants:
{
+ LDA $0A1C : CMP #$001B : BEQ .checkFalling
CMP #$001C : BEQ .checkFalling
CMP #$0081 : BEQ .done
CMP #$0082 : BEQ .done
.reset
; restore palettes if needed
LDA !ram_magic_pants_state : BEQ .done
LDA !ram_magic_pants_pal1 : STA $7EC194
LDA !ram_magic_pants_pal2 : STA $7EC196
LDA !ram_magic_pants_pal3 : STA $7EC198
LDA #$0000 : STA !ram_magic_pants_state
.done
RTS
.checkFalling
LDA $0B36 : CMP #$0002 : BNE .reset ; check if falling
.checkLiquid
LDA $0AD2 : BNE .SJliquid ; check if air
.SJair
LDA $0B2D : CMP $909E97 : BPL + ; check against min SJ vspeed for air
BRA .reset
+ CMP $909E99 : BPL .reset ; check against max SJ vspeed for air
BRA .flash
.SJliquid
LDA $0B2D : CMP $909E9B : BPL + ; check against min SJ vspeed for liquids
BRA .reset
+ CMP $909E9D : BPL .reset ; check against max SJ vspeed for liquids
; Screw Attack seems to write new palette data every frame, which overwrites the flash
.flash
LDA !ram_magic_pants_state : BNE .done
; if loudpants are enabled, click
LDA !ram_magic_pants_enabled : AND #$0004 : BEQ +
LDA !sram_metronome_sfx : ASL : TAX
LDA.l MetronomeSFX,X : JSL !SFX_LIB1
; preserve palettes first
+ LDA $7EC194 : STA !ram_magic_pants_pal1
LDA $7EC196 : STA !ram_magic_pants_pal2
LDA $7EC198 : STA !ram_magic_pants_pal3
; then flash
LDA #$FFFF
STA $7EC194 : STA $7EC196 : STA $7EC198
STA !ram_magic_pants_state
RTS
}
ih_shinespark_code:
{
DEC
STA !ram_armed_shine_duration
STA $0A68
RTL
}
print pc, " infohud end"
warnpc $F0E000 ; spritefeat.asm
; Stuff that needs to be placed in bank 80
org $80FC00
print pc, " infohud bank80 start"
ih_fix_scroll_offsets:
{
LDA !ram_fix_scroll_offsets : BEQ .done
%a8()
LDA $0911 : STA $B1 : STA $B5
LDA $0915 : STA $B3 : STA $B7
%a16()
.done
; overwritten code
LDA $B1 : SEC
RTS
}
ih_hud_code_paused:
{
; overwritten code
PHP
PHB
PHK
PLB
%a8()
STZ $02
%ai16()
; Update Samus' HP and reserves
LDA $7E09C2 : CMP !ram_last_hp : BEQ .check_reserves : STA !ram_last_hp
BRA .draw_health
.check_reserves
LDA $7E09D6 : CMP !ram_reserves_last : BEQ .end
.draw_health
PHY : PHX
LDX #$0092 : JSL DrawHealthPaused
PLX : PLY
.end
LDA $7E09C0 ; overwritten code
JMP $9B51
}
NumberGFXTable:
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C70, #$0C71, #$0C72, #$0C73, #$0C74, #$0C75, #$0C78, #$0C79, #$0C7A, #$0C7B
dw #$0C7C, #$0C7D, #$0C7E, #$0C7F, #$0CD2, #$0CD4, #$0CD5, #$0CD6, #$0CD7, #$0CD8
dw #$0CD9, #$0CDA, #$0CDB, #$0C5C, #$0C5D, #$0CB8, #$0C8D, #$0C12, #$0C13, #$0C14
dw #$0C15, #$0C16, #$0C17, #$0C18, #$0C19, #$0C1A, #$0C1B, #$0C20, #$0C21, #$0C22
dw #$0C23, #$0C24, #$0C25, #$0C26, #$0C27, #$0C28, #$0C29, #$0C2A, #$0C2B, #$0C2C
dw #$0C2D, #$0C2E, #$0C2F, #$0C5E, #$0C5F, #$0CCA
HexGFXTable:
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C64, #$0C65, #$0C58, #$0C59, #$0C5A, #$0C5B
ControllerTable1:
dw #$0020, #$0800, #$0010, #$4000, #$0040, #$2000
ControllerTable2:
dw #$0200, #$0400, #$0100, #$8000, #$0080, #$1000
ControllerGfx1:
dw #$0C68, #$0C61, #$0C69, #$0C67, #$0C66, #$0C6A
ControllerGfx2:
dw #$0C60, #$0C63, #$0C62, #$0C65, #$0C64, #$0C6B
HexToNumberGFX1:
dw #$0C09, #$0C09, #$0C09, #$0C09, #$0C09, #$0C09, #$0C09, #$0C09, #$0C09, #$0C09
dw #$0C00, #$0C00, #$0C00, #$0C00, #$0C00, #$0C00, #$0C00, #$0C00, #$0C00, #$0C00
dw #$0C01, #$0C01, #$0C01, #$0C01, #$0C01, #$0C01, #$0C01, #$0C01, #$0C01, #$0C01
dw #$0C02, #$0C02, #$0C02, #$0C02, #$0C02, #$0C02, #$0C02, #$0C02, #$0C02, #$0C02
dw #$0C03, #$0C03, #$0C03, #$0C03, #$0C03, #$0C03, #$0C03, #$0C03, #$0C03, #$0C03
dw #$0C04, #$0C04, #$0C04, #$0C04, #$0C04, #$0C04, #$0C04, #$0C04, #$0C04, #$0C04
HexToNumberGFX2:
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
dw #$0C09, #$0C00, #$0C01, #$0C02, #$0C03, #$0C04, #$0C05, #$0C06, #$0C07, #$0C08
print pc, " infohud bank80 end"
warnpc $80FFB0 ; header
| 23.771906 | 104 | 0.651594 |
231ef748295959b547d552747decc1c113687ac1 | 1,255 | asm | Assembly | programs/oeis/161/A161339.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/161/A161339.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/161/A161339.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A161339: Partial sums of A161205.
; 1,3,5,8,12,16,20,24,29,35,41,47,53,59,65,72,80,88,96,104,112,120,128,136,145,155,165,175,185,195,205,215,225,235,245,256,268,280,292,304,316,328,340,352,364,376,388,400,413,427,441,455,469,483,497,511,525,539,553,567,581,595,609,624,640,656,672,688,704,720,736,752,768,784,800,816,832,848,864,880,897,915,933,951,969,987,1005,1023,1041,1059,1077,1095,1113,1131,1149,1167,1185,1203,1221,1240,1260,1280,1300,1320,1340,1360,1380,1400,1420,1440,1460,1480,1500,1520,1540,1560,1580,1600,1620,1640,1661,1683,1705,1727,1749,1771,1793,1815,1837,1859,1881,1903,1925,1947,1969,1991,2013,2035,2057,2079,2101,2123,2145,2168,2192,2216,2240,2264,2288,2312,2336,2360,2384,2408,2432,2456,2480,2504,2528,2552,2576,2600,2624,2648,2672,2696,2720,2744,2769,2795,2821,2847,2873,2899,2925,2951,2977,3003,3029,3055,3081,3107,3133,3159,3185,3211,3237,3263,3289,3315,3341,3367,3393,3419,3445,3472,3500,3528,3556,3584,3612,3640,3668,3696,3724,3752,3780,3808,3836,3864,3892,3920,3948,3976,4004,4032,4060,4088,4116,4144,4172,4200,4228,4256,4285,4315,4345,4375,4405,4435,4465,4495,4525,4555,4585,4615,4645,4675,4705,4735,4765,4795,4825,4855,4885,4915,4945,4975,5005,5035
mul $0,2
add $0,3
mov $2,2
lpb $0,1
trn $0,$2
add $1,$0
add $2,4
lpe
| 104.583333 | 1,142 | 0.761753 |
4fb2c4c88bee615bdb8bc3ffa4e28f9a15daf5e4 | 13,232 | asm | Assembly | engine/save.asm | etdv-thevoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | 1 | 2022-01-09T05:28:52.000Z | 2022-01-09T05:28:52.000Z | engine/save.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | engine/save.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | LoadSAV:
;(if carry -> write
;"the file data is destroyed")
call ClearScreen
call LoadFontTilePatterns
call LoadTextBoxTilePatterns
call LoadSAV0
jr c, .badsum
call LoadSAV1
jr c, .badsum
call LoadSAV2
jr c, .badsum
ld a, $2 ; good checksum
jr .goodsum
.badsum
ld hl, wd730
push hl
set 6, [hl]
ld hl, FileDataDestroyedText
call PrintText
ld c, 100
call DelayFrames
pop hl
res 6, [hl]
ld a, $1 ; bad checksum
.goodsum
ld [wSaveFileStatus], a
ret
FileDataDestroyedText:
TX_FAR _FileDataDestroyedText
db "@"
LoadSAV0:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ld hl, sPlayerName ; hero name located in SRAM
ld bc, sMainDataCheckSum - sPlayerName ; but here checks the full SAV
call SAVCheckSum
ld c, a
ld a, [sMainDataCheckSum] ; SAV's checksum
cp c
jp z, .checkSumsMatched
; If the computed checksum didn't match the saved on, try again.
ld hl, sPlayerName
ld bc, sMainDataCheckSum - sPlayerName
call SAVCheckSum
ld c, a
ld a, [sMainDataCheckSum] ; SAV's checksum
cp c
jp nz, SAVBadCheckSum
.checkSumsMatched
ld hl, sPlayerName
ld de, wPlayerName
ld bc, NAME_LENGTH
call CopyData
ld hl, sMainData
ld de, wMainDataStart
ld bc, wMainDataEnd - wMainDataStart
call CopyData
ld hl, wCurMapTileset
set 7, [hl]
ld hl, sSpriteData
ld de, wSpriteDataStart
ld bc, wSpriteDataEnd - wSpriteDataStart
call CopyData
ld a, [sTilesetType]
ld [hTilesetType], a
ld hl, sCurBoxData
ld de, wBoxDataStart
ld bc, wBoxDataEnd - wBoxDataStart
call CopyData
and a
jp SAVGoodChecksum
LoadSAV1:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ld hl, sPlayerName ; hero name located in SRAM
ld bc, sMainDataCheckSum - sPlayerName ; but here checks the full SAV
call SAVCheckSum
ld c, a
ld a, [sMainDataCheckSum] ; SAV's checksum
cp c
jr nz, SAVBadCheckSum
ld hl, sCurBoxData
ld de, wBoxDataStart
ld bc, wBoxDataEnd - wBoxDataStart
call CopyData
and a
jp SAVGoodChecksum
LoadSAV2:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ld hl, sPlayerName ; hero name located in SRAM
ld bc, sMainDataCheckSum - sPlayerName ; but here checks the full SAV
call SAVCheckSum
ld c, a
ld a, [sMainDataCheckSum] ; SAV's checksum
cp c
jp nz, SAVBadCheckSum
ld hl, sPartyData
ld de, wPartyDataStart
ld bc, wPartyDataEnd - wPartyDataStart
call CopyData
ld hl, sMainData
ld de, wPokedexOwned
ld bc, wPokedexSeenEnd - wPokedexOwned
call CopyData
and a
jp SAVGoodChecksum
SAVBadCheckSum:
scf
SAVGoodChecksum:
ld a, $0
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
LoadSAVIgnoreBadCheckSum:
; unused function that loads save data and ignores bad checksums
call LoadSAV0
call LoadSAV1
jp LoadSAV2
SaveSAV:
callba PrintSaveScreenText
ld hl,WouldYouLikeToSaveText
call SaveSAVConfirm
and a ;|0 = Yes|1 = No|
ret nz
ld a,[wSaveFileStatus]
dec a
jr z,.save
call SAVCheckRandomID
jr z,.save
ld hl,OlderFileWillBeErasedText
call SaveSAVConfirm
and a
ret nz
.save
call SaveSAVtoSRAM
coord hl, 1, 13
lb bc, 4, 18
call ClearScreenArea
coord hl, 1, 14
ld de,NowSavingString
call PlaceString
ld c,120
call DelayFrames
ld hl,GameSavedText
call PrintText
ld a, SFX_SAVE
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ld c,30
jp DelayFrames
NowSavingString:
db "Now saving...@"
SaveSAVConfirm:
call PrintText
coord hl, 0, 7
lb bc, 8, 1
ld a,TWO_OPTION_MENU
ld [wTextBoxID],a
call DisplayTextBoxID ; yes/no menu
ld a,[wCurrentMenuItem]
ret
WouldYouLikeToSaveText:
TX_FAR _WouldYouLikeToSaveText
db "@"
GameSavedText:
TX_FAR _GameSavedText
db "@"
OlderFileWillBeErasedText:
TX_FAR _OlderFileWillBeErasedText
db "@"
SaveSAVtoSRAM0:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ld hl, wPlayerName
ld de, sPlayerName
ld bc, NAME_LENGTH
call CopyData
ld hl, wMainDataStart
ld de, sMainData
ld bc, wMainDataEnd - wMainDataStart
call CopyData
ld hl, wSpriteDataStart
ld de, sSpriteData
ld bc, wSpriteDataEnd - wSpriteDataStart
call CopyData
ld hl, wBoxDataStart
ld de, sCurBoxData
ld bc, wBoxDataEnd - wBoxDataStart
call CopyData
ld a, [hTilesetType]
ld [sTilesetType], a
ld hl, sPlayerName
ld bc, sMainDataCheckSum - sPlayerName
call SAVCheckSum
ld [sMainDataCheckSum], a
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
SaveSAVtoSRAM1:
; stored pokémon
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ld hl, wBoxDataStart
ld de, sCurBoxData
ld bc, wBoxDataEnd - wBoxDataStart
call CopyData
ld hl, sPlayerName
ld bc, sMainDataCheckSum - sPlayerName
call SAVCheckSum
ld [sMainDataCheckSum], a
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
SaveSAVtoSRAM2:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld [MBC1SRamBank], a
ld hl, wPartyDataStart
ld de, sPartyData
ld bc, wPartyDataEnd - wPartyDataStart
call CopyData
ld hl, wPokedexOwned ; pokédex only
ld de, sMainData
ld bc, wPokedexSeenEnd - wPokedexOwned
call CopyData
ld hl, sPlayerName
ld bc, sMainDataCheckSum - sPlayerName
call SAVCheckSum
ld [sMainDataCheckSum], a
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
SaveSAVtoSRAM:
ld a, $2
ld [wSaveFileStatus], a
call SaveSAVtoSRAM0
call SaveSAVtoSRAM1
jp SaveSAVtoSRAM2
SAVCheckSum:
;Check Sum (result[1 byte] is complemented)
ld d, 0
.loop
ld a, [hli]
add d
ld d, a
dec bc
ld a, b
or c
jr nz, .loop
ld a, d
cpl
ret
CalcIndividualBoxCheckSums:
ld hl, sBox1 ; sBox7
ld de, sBank2IndividualBoxChecksums ; sBank3IndividualBoxChecksums
ld b, NUM_BOXES / 2
.loop
push bc
push de
ld bc, wBoxDataEnd - wBoxDataStart
call SAVCheckSum
pop de
ld [de], a
inc de
pop bc
dec b
jr nz, .loop
ret
GetBoxSRAMLocation:
; in: a = box num
; out: b = box SRAM bank, hl = pointer to start of box
ld hl, BoxSRAMPointerTable
ld a, [wCurrentBoxNum]
and $7f
cp NUM_BOXES / 2
ld b, 2
jr c, .next
inc b
sub NUM_BOXES / 2
.next
ld e, a
ld d, 0
add hl, de
add hl, de
ld a, [hli]
ld h, [hl]
ld l, a
ret
BoxSRAMPointerTable:
dw sBox1 ; sBox7
dw sBox2 ; sBox8
dw sBox3 ; sBox9
dw sBox4 ; sBox10
dw sBox5 ; sBox11
dw sBox6 ; sBox12
ChangeBox::
ld hl, WhenYouChangeBoxText
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
ret nz ; return if No was chosen
ld hl, wCurrentBoxNum
bit 7, [hl] ; is it the first time player is changing the box?
call z, EmptyAllSRAMBoxes ; if so, empty all boxes in SRAM
call DisplayChangeBoxMenu
call UpdateSprites
ld hl, hFlags_0xFFF6
set 1, [hl]
call HandleMenuInput
ld hl, hFlags_0xFFF6
res 1, [hl]
bit 1, a ; pressed b
ret nz
call GetBoxSRAMLocation
ld e, l
ld d, h
ld hl, wBoxDataStart
call CopyBoxToOrFromSRAM ; copy old box from WRAM to SRAM
ld a, [wCurrentMenuItem]
set 7, a
ld [wCurrentBoxNum], a
call GetBoxSRAMLocation
ld de, wBoxDataStart
call CopyBoxToOrFromSRAM ; copy new box from SRAM to WRAM
ld hl, wMapTextPtr
ld de, wChangeBoxSavedMapTextPointer
ld a, [hli]
ld [de], a
inc de
ld a, [hl]
ld [de], a
call RestoreMapTextPointer
call SaveSAVtoSRAM
ld hl, wChangeBoxSavedMapTextPointer
call SetMapTextPointer
ld a, SFX_SAVE
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ret
WhenYouChangeBoxText:
TX_FAR _WhenYouChangeBoxText
db "@"
CopyBoxToOrFromSRAM:
; copy an entire box from hl to de with b as the SRAM bank
push hl
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld a, b
ld [MBC1SRamBank], a
ld bc, wBoxDataEnd - wBoxDataStart
call CopyData
pop hl
; mark the memory that the box was copied from as am empty box
xor a
ld [hli], a
dec a
ld [hl], a
ld hl, sBox1 ; sBox7
ld bc, sBank2AllBoxesChecksum - sBox1
call SAVCheckSum
ld [sBank2AllBoxesChecksum], a ; sBank3AllBoxesChecksum
call CalcIndividualBoxCheckSums
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
DisplayChangeBoxMenu:
xor a
ld [H_AUTOBGTRANSFERENABLED], a
ld a, A_BUTTON | B_BUTTON
ld [wMenuWatchedKeys], a
ld a, 11
ld [wMaxMenuItem], a
ld a, 1
ld [wTopMenuItemY], a
ld a, 12
ld [wTopMenuItemX], a
xor a
ld [wMenuWatchMovingOutOfBounds], a
ld a, [wCurrentBoxNum]
and $7f
ld [wCurrentMenuItem], a
ld [wLastMenuItem], a
coord hl, 0, 0
ld b, 2
ld c, 9
call TextBoxBorder
ld hl, ChooseABoxText
call PrintText
coord hl, 11, 0
ld b, 12
ld c, 7
call TextBoxBorder
ld hl, hFlags_0xFFF6
set 2, [hl]
ld de, BoxNames
coord hl, 13, 1
call PlaceString
ld hl, hFlags_0xFFF6
res 2, [hl]
ld a, [wCurrentBoxNum]
and $7f
cp 9
jr c, .singleDigitBoxNum
sub 9
coord hl, 8, 2
ld [hl], "1"
add "0"
jr .next
.singleDigitBoxNum
add "1"
.next
Coorda 9, 2
coord hl, 1, 2
ld de, BoxNoText
call PlaceString
call GetMonCountsForAllBoxes
coord hl, 18, 1
ld de, wBoxMonCounts
ld bc, SCREEN_WIDTH
ld a, $c
.loop
push af
ld a, [de]
and a ; is the box empty?
jr z, .skipPlacingPokeball
ld [hl], $78 ; place pokeball tile next to box name if box not empty
.skipPlacingPokeball
add hl, bc
inc de
pop af
dec a
jr nz, .loop
ld a, 1
ld [H_AUTOBGTRANSFERENABLED], a
ret
ChooseABoxText:
TX_FAR _ChooseABoxText
db "@"
BoxNames:
db "BOX 1"
next "BOX 2"
next "BOX 3"
next "BOX 4"
next "BOX 5"
next "BOX 6"
next "BOX 7"
next "BOX 8"
next "BOX 9"
next "BOX10"
next "BOX11"
next "BOX12@"
BoxNoText:
db "BOX No.@"
EmptyAllSRAMBoxes:
; marks all boxes in SRAM as empty (initialisation for the first time the
; player changes the box)
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld a, 2
ld [MBC1SRamBank], a
call EmptySRAMBoxesInBank
ld a, 3
ld [MBC1SRamBank], a
call EmptySRAMBoxesInBank
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
EmptySRAMBoxesInBank:
; marks every box in the current SRAM bank as empty
ld hl, sBox1 ; sBox7
call EmptySRAMBox
ld hl, sBox2 ; sBox8
call EmptySRAMBox
ld hl, sBox3 ; sBox9
call EmptySRAMBox
ld hl, sBox4 ; sBox10
call EmptySRAMBox
ld hl, sBox5 ; sBox11
call EmptySRAMBox
ld hl, sBox6 ; sBox12
call EmptySRAMBox
ld hl, sBox1 ; sBox7
ld bc, sBank2AllBoxesChecksum - sBox1
call SAVCheckSum
ld [sBank2AllBoxesChecksum], a ; sBank3AllBoxesChecksum
call CalcIndividualBoxCheckSums
ret
EmptySRAMBox:
xor a
ld [hli], a
dec a
ld [hl], a
ret
GetMonCountsForAllBoxes:
ld hl, wBoxMonCounts
push hl
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
ld a, $2
ld [MBC1SRamBank], a
call GetMonCountsForBoxesInBank
ld a, $3
ld [MBC1SRamBank], a
call GetMonCountsForBoxesInBank
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
pop hl
; copy the count for the current box from WRAM
ld a, [wCurrentBoxNum]
and $7f
ld c, a
ld b, 0
add hl, bc
ld a, [wNumInBox]
ld [hl], a
ret
GetMonCountsForBoxesInBank:
ld a, [sBox1] ; sBox7
ld [hli], a
ld a, [sBox2] ; sBox8
ld [hli], a
ld a, [sBox3] ; sBox9
ld [hli], a
ld a, [sBox4] ; sBox10
ld [hli], a
ld a, [sBox5] ; sBox11
ld [hli], a
ld a, [sBox6] ; sBox12
ld [hli], a
ret
SAVCheckRandomID:
;checks if Sav file is the same by checking player's name 1st letter ($a598)
; and the two random numbers generated at game beginning
;(which are stored at wPlayerID)s
ld a,$0a
ld [MBC1SRamEnable],a
ld a,$01
ld [MBC1SRamBankingMode],a
ld [MBC1SRamBank],a
ld a,[sPlayerName]
and a
jr z,.next
ld hl,sPlayerName
ld bc, sMainDataCheckSum - sPlayerName
call SAVCheckSum
ld c,a
ld a,[sMainDataCheckSum]
cp c
jr nz,.next
ld hl,sMainData + 98 ; player ID
ld a,[hli]
ld h,[hl]
ld l,a
ld a,[wPlayerID]
cp l
jr nz,.next
ld a,[wPlayerID + 1]
cp h
.next
ld a,$00
ld [MBC1SRamBankingMode],a
ld [MBC1SRamEnable],a
ret
SaveHallOfFameTeams:
ld a, [wNumHoFTeams]
dec a
cp HOF_TEAM_CAPACITY
jr nc, .shiftHOFTeams
ld hl, sHallOfFame
ld bc, HOF_TEAM
call AddNTimes
ld e, l
ld d, h
ld hl, wHallOfFame
ld bc, HOF_TEAM
jr HallOfFame_Copy
.shiftHOFTeams
; if the space designated for HOF teams is full, then shift all HOF teams to the next slot, making space for the new HOF team
; this deletes the last HOF team though
ld hl, sHallOfFame + HOF_TEAM
ld de, sHallOfFame
ld bc, HOF_TEAM * (HOF_TEAM_CAPACITY - 1)
call HallOfFame_Copy
ld hl, wHallOfFame
ld de, sHallOfFame + HOF_TEAM * (HOF_TEAM_CAPACITY - 1)
ld bc, HOF_TEAM
jr HallOfFame_Copy
LoadHallOfFameTeams:
ld hl, sHallOfFame
ld bc, HOF_TEAM
ld a, [wHoFTeamIndex]
call AddNTimes
ld de, wHallOfFame
ld bc, HOF_TEAM
; fallthrough
HallOfFame_Copy:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
xor a
ld [MBC1SRamBank], a
call CopyData
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
ClearSAV:
ld a, SRAM_ENABLE
ld [MBC1SRamEnable], a
ld a, $1
ld [MBC1SRamBankingMode], a
xor a
call PadSRAM_FF
ld a, $1
call PadSRAM_FF
ld a, $2
call PadSRAM_FF
ld a, $3
call PadSRAM_FF
xor a
ld [MBC1SRamBankingMode], a
ld [MBC1SRamEnable], a
ret
PadSRAM_FF:
ld [MBC1SRamBank], a
ld hl, $a000
ld bc, $2000
ld a, $ff
jp FillMemory
| 18.662906 | 125 | 0.72695 |
990a87d1c0cf3135ac55ccbe331d924ebcf3bb58 | 6,005 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1088.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1088.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_1088.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1c790, %r9
nop
xor $12460, %r10
mov $0x6162636465666768, %rcx
movq %rcx, (%r9)
nop
nop
nop
add %r10, %r10
lea addresses_A_ht+0xf190, %r12
nop
nop
nop
nop
cmp $20296, %rsi
movw $0x6162, (%r12)
nop
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_normal_ht+0x7d90, %rsi
lea addresses_A_ht+0x1d118, %rdi
clflush (%rdi)
nop
nop
cmp $59753, %r15
mov $90, %rcx
rep movsl
nop
nop
nop
add %r15, %r15
lea addresses_normal_ht+0x724d, %r11
nop
nop
nop
nop
nop
xor %rsi, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
and $0xffffffffffffffc0, %r11
movntdq %xmm4, (%r11)
sub $61275, %r9
lea addresses_UC_ht+0xe990, %r9
cmp $50144, %rcx
movw $0x6162, (%r9)
nop
nop
nop
xor %rdi, %rdi
lea addresses_WC_ht+0x14390, %rsi
lea addresses_WC_ht+0xff10, %rdi
nop
nop
nop
nop
nop
inc %r11
mov $55, %rcx
rep movsq
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x17d68, %r10
nop
nop
nop
nop
nop
add $52837, %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%r10)
nop
nop
nop
nop
nop
dec %r15
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// Load
mov $0xf90, %r12
nop
sub %r11, %r11
mov (%r12), %rbx
nop
cmp %r12, %r12
// Faulty Load
mov $0x7053900000000190, %r12
nop
nop
nop
nop
xor %rax, %rax
movb (%r12), %cl
lea oracles, %r12
and $0xff, %rcx
shlq $12, %rcx
mov (%r12,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_P', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}}
{'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 37.298137 | 2,999 | 0.660117 |
4cb2b48168e00dc7de4aaf4c3c6f0c0ec74e5f4a | 1,593 | asm | Assembly | apps-rc2014/v9958.asm | zoggins/yellow-msx-series-for-rc2014 | dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd | [
"MIT"
] | 19 | 2021-02-20T11:48:37.000Z | 2022-03-14T21:02:14.000Z | apps-rc2014/v9958.asm | zoggins/yellow-msx-series-for-rc2014 | dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd | [
"MIT"
] | 3 | 2021-06-11T06:07:16.000Z | 2021-11-14T07:43:11.000Z | apps-rc2014/v9958.asm | zoggins/yellow-msx-series-for-rc2014 | dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd | [
"MIT"
] | 2 | 2021-05-03T19:09:36.000Z | 2021-11-13T19:16:52.000Z |
PUBLIC _outDat, _outCmd, _commandDrawLine, _waitForCommandCompletion
PUBLIC __fromX, __fromY, _longSide, _shortSide, __color, _dir, __operation
SECTION code_user
; V9958 REGISTERS
VDP_DATA: equ $98 ; VDP data port (VRAM read/write)
VDP_ADDR: equ $99 ; VDP address (write only)
VDP_STAT: equ $99 ; VDP status (read only)
VDP_PALT: equ $9A ; VDP palette latch (write only)
VDP_REGS: equ $9B ; VDP register access (write only)
; void outDat(uint8_t b) __z88dk_fastcall
_outDat:
LD A, L
OUT (VDP_DATA), A
RET
; void outCmd(uint8_t b) __z88dk_fastcall
_outCmd:
LD A, L
OUT (VDP_ADDR), A
RET
_commandDrawLine:
DI
; Set read register to 2 (status)
LD A, 2
OUT (VDP_ADDR), A
LD A, 0x80 | 15
OUT (VDP_ADDR), A
; WAIT FOR ANY PREVIOUS COMMAND TO COMPLETE
_commandDrawLineReady:
IN A, (0x99)
RRCA
JR C, _commandDrawLineReady
; SET INDIRECT REGISTER TO 36
LD A, 36
OUT (VDP_ADDR), A
LD A, 0x80 | 17
OUT (VDP_ADDR), A
LD HL, __fromX
LD C, VDP_REGS
LD B, 11
OTIR
XOR A
OUT (VDP_ADDR), A
LD A, 0x80 | 15
OUT (VDP_ADDR), A
EI
RET
_waitForCommandCompletion:
DI
; Set read register to 2
LD A, 2
OUT (VDP_ADDR), A
LD A, 0x80 | 15
OUT (VDP_ADDR), A
_waitForCommandCompletionLoop:
IN A, (0x99)
RRCA
JR C, _waitForCommandCompletionLoop
XOR A
OUT (VDP_ADDR), A
LD A, 0x80 | 15
OUT (VDP_ADDR), A
EI
RET
SECTION DATA
__fromX: DW 0
__fromY: DW 0
_longSide: DW 0
_shortSide: DW 0
__color: DB 0
_dir: DB 0
__operation: DB 0
SECTION IGNORE
| 17.129032 | 75 | 0.65725 |
e7cfe879d4349216d4f22f31c57b294dfc63f913 | 562 | asm | Assembly | programs/oeis/223/A223249.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/223/A223249.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/223/A223249.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A223249: Two-loop graph coloring a rectangular array: number of n X 2 0..4 arrays where 0..4 label nodes of a graph with edges 0,1 1,2 2,0 0,3 3,4 4,0 and every array movement to a horizontal or vertical neighbor moves along an edge of this graph.
; 12,52,236,1076,4908,22388,102124,465844,2124972,9693172,44215916,201693236,920034348,4196785268,19143857644,87325717684,398340873132,1817052930292,8288582905196,37808808665396,172466877516588,786716770252148,3588650096227564
add $0,1
mov $1,2
lpb $0
sub $0,1
add $2,$1
mul $2,2
add $1,$2
lpe
mul $1,2
| 43.230769 | 249 | 0.768683 |
433d3572ada8db39bc60c26230cc7847e277b869 | 808 | asm | Assembly | WangShuang_book/p255e2.asm | SmirnovKol/Learning_x86_assembly_language | 239b2fb60d6df87316b98184c9c6b6f36940ccbe | [
"MIT"
] | 1 | 2018-11-21T23:34:24.000Z | 2018-11-21T23:34:24.000Z | WangShuang_book/p255e2.asm | SmirnovKol/Learning_x86_assembly_language | 239b2fb60d6df87316b98184c9c6b6f36940ccbe | [
"MIT"
] | null | null | null | WangShuang_book/p255e2.asm | SmirnovKol/Learning_x86_assembly_language | 239b2fb60d6df87316b98184c9c6b6f36940ccbe | [
"MIT"
] | null | null | null | ; store an interrupt handler at 0000:0200
; int 7ch: store 0000:0200 at 7ch
assume cs:code
code segment
start: ; store the interrupt handler
mov ax, cs
mov ds, ax
mov si, offset capital
mov ax, 0
mov es, ax
mov di, 0200h
mov cx, offset capitalend - offset capital
cld
rep movsb
;set interrupt vector table
mov ax, 0
mov es, ax
mov word ptr es:[7ch*4], 0200h
mov word ptr es:[7ch*4+2], 0
mov ax, 4c00h
int 21h
capital:; transform all lowercase letters of a string that ends with a 0
; to uppercase letters
;params: ds:si points to the string
push cx
push si
change: mov cl, [si]
mov ch, 0
jcxz ok
cmp cl, 97
jb next
cmp cl, 122
ja next
sub byte ptr [si], 32
next: inc si
jmp short change
ok: pop si
pop cx
iret
capitalend: nop
code ends
end start
| 14.690909 | 73 | 0.679455 |
8833a517d4fe038bfa20b6301b162e5aebb9cd02 | 430 | asm | Assembly | oeis/124/A124725.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/124/A124725.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/124/A124725.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A124725: Triangle read by rows: T(n,k) = binomial(n,k) + binomial(n,k+2) (0 <= k <= n).
; Submitted by Christian Krause
; 1,1,1,2,2,1,4,4,3,1,7,8,7,4,1,11,15,15,11,5,1,16,26,30,26,16,6,1,22,42,56,56,42,22,7,1,29,64,98,112,98,64,29,8,1,37,93,162,210,210,162,93,37,9,1,46,130,255,372,420,372,255,130,46,10,1,56,176,385,627,792,792,627
lpb $0
add $2,1
sub $0,$2
add $1,1
lpe
bin $1,$0
add $0,2
bin $2,$0
add $2,$1
mov $0,$2
| 28.666667 | 212 | 0.611628 |
a98f6dd9c2ec6b178b928fd5e947eeb4f557ce5e | 1,114 | asm | Assembly | programs/oeis/239/A239904.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/239/A239904.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/239/A239904.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A239904: a(n) = n - wt(n) + (number of times 11 appears in binary expansion of n).
; 0,0,1,2,3,3,5,6,7,7,8,9,11,11,13,14,15,15,16,17,18,18,20,21,23,23,24,25,27,27,29,30,31,31,32,33,34,34,36,37,38,38,39,40,42,42,44,45,47,47,48,49,50,50,52,53,55,55,56,57,59,59,61,62,63,63,64,65,66,66,68,69,70,70,71,72,74,74,76,77,78,78,79,80,81,81,83,84,86,86,87,88,90,90,92,93,95,95,96,97,98,98,100,101,102,102,103,104,106,106,108,109,111,111,112,113,114,114,116,117,119,119,120,121,123,123,125,126,127,127,128,129,130,130,132,133,134,134,135,136,138,138,140,141,142,142,143,144,145,145,147,148,150,150,151,152,154,154,156,157,158,158,159,160,161,161,163,164,165,165,166,167,169,169,171,172,174,174,175,176,177,177,179,180,182,182,183,184,186,186,188,189,191,191,192,193,194,194,196,197,198,198,199,200,202,202,204,205,206,206,207,208,209,209,211,212,214,214,215,216,218,218,220,221,223,223,224,225,226,226,228,229,230,230,231,232,234,234,236,237,239,239,240,241,242,242,244,245,247,247
mul $0,2
cal $0,255070 ; (1/2)*(n minus number of runs in the binary expansion of n): a(n) = (n - A005811(n)) / 2 = A236840(n)/2.
mov $1,$0
| 159.142857 | 887 | 0.695691 |
128c2cfbd0d184b82797016f6963baf0f02a4055 | 1,782 | asm | Assembly | programs/oeis/173/A173786.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/173/A173786.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/173/A173786.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A173786: Triangle read by rows: T(n,k) = 2^n + 2^k, 0 <= k <= n.
; 2,3,4,5,6,8,9,10,12,16,17,18,20,24,32,33,34,36,40,48,64,65,66,68,72,80,96,128,129,130,132,136,144,160,192,256,257,258,260,264,272,288,320,384,512,513,514,516,520,528,544,576,640,768,1024,1025,1026,1028,1032,1040,1056,1088,1152,1280,1536,2048,2049,2050,2052,2056,2064,2080,2112,2176,2304,2560,3072,4096,4097,4098,4100,4104,4112,4128,4160,4224,4352,4608,5120,6144,8192,8193,8194,8196,8200,8208,8224,8256,8320,8448,8704,9216,10240,12288,16384,16385,16386,16388,16392,16400,16416,16448,16512,16640,16896,17408,18432,20480,24576,32768,32769,32770,32772,32776,32784,32800,32832,32896,33024,33280,33792,34816,36864,40960,49152,65536,65537,65538,65540,65544,65552,65568,65600,65664,65792,66048,66560,67584,69632,73728,81920,98304,131072,131073,131074,131076,131080,131088,131104,131136,131200,131328,131584,132096,133120,135168,139264,147456,163840,196608,262144,262145,262146,262148,262152,262160,262176,262208,262272,262400,262656,263168,264192,266240,270336,278528,294912,327680,393216,524288,524289,524290,524292,524296,524304,524320,524352,524416,524544,524800,525312,526336,528384,532480,540672,557056,589824,655360,786432,1048576,1048577,1048578,1048580,1048584,1048592,1048608,1048640,1048704,1048832,1049088,1049600,1050624,1052672,1056768,1064960,1081344,1114112,1179648,1310720,1572864,2097152,2097153,2097154,2097156,2097160,2097168,2097184,2097216,2097280,2097408,2097664,2098176,2099200,2101248,2105344,2113536,2129920,2162688,2228224,2359296
mov $5,$0
mov $7,$0
add $7,1
lpb $7,1
clr $0,5
mov $0,$5
sub $7,1
sub $0,$7
cal $0,25675 ; Exponent of 8 (value of j) in n-th number of form 7^i*8^j.
mov $4,2
pow $4,$0
add $1,$4
sub $1,1
div $1,2
add $1,1
add $6,$1
lpe
mov $1,$6
add $1,1
| 77.478261 | 1,450 | 0.76936 |
6bcb3e7f2e62589ab2631d809056f33a1cc00d9d | 1,720 | asm | Assembly | asm-step-by-step/src/vid.asm | jsanders/work-throughs | 7d3bdac8254534b72a1afcd84ca0fb2f6aef999f | [
"Unlicense"
] | 5 | 2015-12-10T15:03:12.000Z | 2019-02-20T21:39:53.000Z | asm-step-by-step/src/vid.asm | jsanders/work-throughs | 7d3bdac8254534b72a1afcd84ca0fb2f6aef999f | [
"Unlicense"
] | null | null | null | asm-step-by-step/src/vid.asm | jsanders/work-throughs | 7d3bdac8254534b72a1afcd84ca0fb2f6aef999f | [
"Unlicense"
] | 9 | 2015-11-25T08:56:56.000Z | 2020-11-30T18:08:44.000Z | ; Simple text-based video using a buffer and `write` syscall
SECTION .data
EOL equ 0x0a
SPACE equ 0x20
HBAR equ 0xc4 ; Replacement for unprintable characters
Reset db 27,"[2J",27,"[01;01H" ; Escape sequence for clearing screen
ResetLen equ $-Clear
SECTION .bss
COLS equ 81 ; Line length + 1 for EOL
ROWS equ 25 ; Number of lines
VidBuf resb COLS*ROWS ; Buffer for our screen
SECTION .text
GLOBAL _start
%macro WriteStdout 2 ; %1 = Address of buffer to write; %2 = Length of buffer
pushad
mov eax, 4 ; `write`
mov ecx, %1 ; the buffer
mov edx, %2 ; of this length
mov ebx, 1 ; to stdout
int 0x80
popad
; Clear the text buffer with spaces
; In: Nothing
; Returns: Nothing
; Modifies: VidBuf, DF
ClearVid:
push eax
push ecx
push edi
cld ; Clear DF
mov al, SPACE ; Space char to "clear" buf with
mov edi, VidBuf ; Destination is the video buffer
mov ecx, COLS*ROWS ; Amount to clear
rep stosb ; Print chars into the buffer
; Buffer is full of spaces, re-insert newlines
mov edi, VidBuf ; Point destination back to buffer
mov ecx, ROWS ; Repeat for each row
.printEol:
add edi, COLS-1 ; Move to end of current row
mov byte [edi], EOL ; Replace with EOL character
loop .printEol
pop edi
pop ecx
pop eax
ret
; Write a string into a text buffer aat 1-based x,y position
; In: Address of string in esi
; X-position in ebx
; Y-position in eax
; Number of chars in ecx
; Returns: Nothing
; Modifies: VidBuf, DF
WriteStr:
push eax
push ebx
push ecx
push edi
cld ; Clear DF
mov edi, VidBuf ; Write to VidBuf
; Adjustments to make up for 1-based positions
dec eax
dec ebx
; Determine Y offset
mov ah, COLS
mul ah ; Multiply al by ah
| 22.337662 | 77 | 0.696512 |
8cd75028160bab1a807823089d9eed63be0aea01 | 5,143 | asm | Assembly | goalitem.asm | compiling/z3randomizer | e2e4db82370695c63d877cc20d0c07f18c4dbe02 | [
"MIT"
] | 26 | 2018-12-19T03:33:19.000Z | 2021-08-07T19:47:06.000Z | goalitem.asm | compiling/z3randomizer | e2e4db82370695c63d877cc20d0c07f18c4dbe02 | [
"MIT"
] | 26 | 2019-02-01T05:38:23.000Z | 2022-01-20T21:25:39.000Z | goalitem.asm | compiling/z3randomizer | e2e4db82370695c63d877cc20d0c07f18c4dbe02 | [
"MIT"
] | 32 | 2018-12-18T13:54:33.000Z | 2022-01-25T23:38:48.000Z | ;--------------------------------------------------------------------------------
; $7F5010 - Scratch Space (Callee Preserved)
;--------------------------------------------------------------------------------
!GOAL_COUNTER = "$7EF418"
!GOAL_DRAW_ADDRESS = "$7EC72A"
;--------------------------------------------------------------------------------
; DrawGoalIndicator moved to newhud.asm
;--------------------------------------------------------------------------------
GoalItemGanonCheck:
LDA $0E20, X : CMP.b #$D6 : BNE .success ; skip if not ganon
JSL.l CheckGanonVulnerability
BCS .success
.fail
LDA $0D80, X : CMP.b #17 : !BLT .success ; decmial 17 because Acmlm's chart is decimal
LDA.b #$00
RTL
.success
LDA $44 : CMP.b #$80 ; thing we wrote over
RTL
;--------------------------------------------------------------------------------
;Carry clear = ganon invincible
;Carry set = ganon vulnerable
CheckGanonVulnerability:
PHX
LDA.l InvincibleGanon
ASL
TAX
; Carry
; 0 - invulnerable
; 1 - vulnerable
JSR (.goals, X)
PLX
RTL
.goals
dw .vulnerable
dw .invulnerable
dw .all_dungeons
dw .crystals_and_aga
dw .crystals
dw .goal_item
dw .light_speed
dw .crystals_and_bosses
dw .bosses_only
dw .all_dungeons_no_agahnim
; 00 = always vulnerable
.vulnerable
.success
SEC
RTS
; 01 = always invulnerable
.invulnerable
.fail
CLC
RTS
; 02 = All dungeons
.all_dungeons
LDA.l $7EF3C5 : CMP.b #$03 : BCC .fail ; require post-aga world state
; 09 = All dungeons except agahnim
.all_dungeons_no_agahnim
LDA.l $7EF374 : AND.b #$07 : CMP.b #$07 : BNE .fail ; require all pendants
LDA.l $7EF37A : AND.b #$7F : CMP.b #$7F : BNE .fail ; require all crystals
LDA.l $7EF2DB : AND.b #$20 : BEQ .fail ; require aga2 defeated (pyramid hole open)
BRA .success
; 03 = crystals and aga 2
.crystals_and_aga
LDA.l $7EF2DB : AND.b #$20 : BEQ .fail ; check aga2 first then bleed in
; 04 = crystals only
.crystals
JSL CheckEnoughCrystalsForGanon
RTS
; 05 = require goal item
.goal_item
LDA.l !GOAL_COUNTER : CMP GoalItemRequirement
RTS
; 06 = light speed
.light_speed
BRA .fail
; 07 = Crystals and bosses
.crystals_and_bosses
JSL CheckEnoughCrystalsForGanon ; check crystals first then bleed in to next
BCC .fail
; 08 = Crystal bosses but no crystals
.bosses_only
;LDA.l $7EF2DDB : AND.b #$20 : BEQ .fail ; check aga2
JMP CheckForCrystalBossesDefeated
;--------------------------------------------------------------------------------
GetRequiredCrystalsForTower:
BEQ + : JSL.l BreakTowerSeal_ExecuteSparkles : + ; thing we wrote over
LDA.l NumberOfCrystalsRequiredForTower : CMP.b #$00 : BNE + : JML.l Ancilla_BreakTowerSeal_stop_spawning_sparkles : +
LDA.l NumberOfCrystalsRequiredForTower : CMP.b #$01 : BNE + : JML.l Ancilla_BreakTowerSeal_draw_single_crystal : +
LDA.l NumberOfCrystalsRequiredForTower : DEC #2 : TAX
JML.l GetRequiredCrystalsForTower_continue
;--------------------------------------------------------------------------------
GetRequiredCrystalsInX:
LDA.l NumberOfCrystalsRequiredForTower : CMP.b #$00 : BNE +
TAX
RTL
+
TXA
- CMP.l NumberOfCrystalsRequiredForTower : BCC +
SBC.l NumberOfCrystalsRequiredForTower ; carry guaranteed set
BRA -
+ INC : CMP.l NumberOfCrystalsRequiredForTower : BNE +
LDA.b #$08
+ : DEC : TAX
RTL
;--------------------------------------------------------------------------------
CheckEnoughCrystalsForGanon:
LDA $7EF37A : JSL CountBits ; the comparison is against 1 less
CMP.l NumberOfCrystalsRequiredForGanon
RTL
;--------------------------------------------------------------------------------
CheckEnoughCrystalsForTower:
LDA $7EF37A : JSL CountBits ; the comparison is against 1 less
CMP.l NumberOfCrystalsRequiredForTower
RTL
;---------------------------------------------------------------------------------------------------
CheckAgaForPed:
LDA.l InvincibleGanon
CMP.b #$06 : BNE .vanilla
.light_speed
LDA.l $7EF300 ; check ped flag
AND.b #$40
BEQ .force_blue_ball
.vanilla ; run vanilla check for phase
LDA.w $0E30, X
CMP.b #$02
RTL
.force_blue_ball
LDA.b #$01 : STA.w $0DA0, Y
LDA.b #$20 : STA.w $0DF0, Y
CLC ; skip the RNG check
RTL
;---------------------------------------------------------------------------------------------------
KillGanon:
STA.l $7EF3C5 ; vanilla game state stuff we overwrote
LDA.l InvincibleGanon
CMP.b #$06 : BNE .exit
.light_speed
LDA.l $7EF2DB : ORA.b #$20 : STA.l $7EF2DB ; pyramid hole
LDA.b #$08 : STA.l $7EF001 ; kill ganon
LDA.b #$02 : STA.l $7EF357 ; pearl but invisible in menu
.exit
RTL
;---------------------------------------------------------------------------------------------------
CheckForCrystalBossesDefeated:
PHB : PHX : PHY
LDA.b #CrystalPendantFlags_2>>16
PHA : PLB
REP #$30
; count of number of bosses killed
STZ.b $00
LDY.w #10
.next_check
LDA.w CrystalPendantFlags_2-2,Y
BIT.w #$0040
BEQ ++
TYA
ASL
TAX
LDA.l DrawHUDDungeonItems_boss_room_ids-4,X
TAX
LDA.l $7EF000,X
AND.w #$0800
BEQ ++
INC.b $00
++ DEY
BPL .next_check
SEP #$30
PLY : PLX : PLB
LDA.b $00 : CMP.l NumberOfCrystalsRequiredForGanon
RTS
| 23.591743 | 118 | 0.576512 |
1436388de28810529b6a79b627fee5b0888a4cbe | 615 | asm | Assembly | oeis/117/A117617.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/117/A117617.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/117/A117617.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A117617: a(n) = 5*a(n-1) + 3 with a(0) = 1.
; Submitted by Christian Krause
; 1,8,43,218,1093,5468,27343,136718,683593,3417968,17089843,85449218,427246093,2136230468,10681152343,53405761718,267028808593,1335144042968,6675720214843,33378601074218,166893005371093,834465026855468,4172325134277343,20861625671386718,104308128356933593,521540641784667968,2607703208923339843,13038516044616699218,65192580223083496093,325962901115417480468,1629814505577087402343,8149072527885437011718,40745362639427185058593,203726813197135925292968,1018634065985679626464843
mov $2,5
pow $2,$0
mov $0,$2
div $0,4
mul $0,7
add $0,1
| 55.909091 | 479 | 0.845528 |
11a14edcec0ae9d6266c21ab36034ff40f672c52 | 382 | asm | Assembly | programs/oeis/002/A002698.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/002/A002698.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/002/A002698.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A002698: Coefficients of Chebyshev polynomials: n(2n-3)2^(2n-5).
; 1,18,160,1120,6912,39424,212992,1105920,5570560,27394048,132120576,627048448,2936012800,13589544960,62277025792,282930970624,1275605286912,5712306503680,25426206392320,112562502893568
mov $1,$0
mul $0,2
mov $2,$0
lpb $2,1
add $0,1
mul $1,2
lpb $0,1
add $1,$0
sub $0,1
lpe
sub $2,1
lpe
add $1,1
| 22.470588 | 185 | 0.717277 |
0bd55bf4a67a2f16d48b15dc8266c3257ecbd4ba | 330 | asm | Assembly | programs/oeis/269/A269226.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/269/A269226.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/269/A269226.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A269226: Period 6: repeat [3, 9, 6, 6, 9, 3].
; 3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3,3,9,6,6,9,3
mod $0,6
mov $2,5
bin $2,$0
mov $1,$2
lpb $1
mod $1,7
lpe
div $1,2
mul $1,3
add $1,3
| 23.571429 | 193 | 0.512121 |
a3e6c15b1c0c04bf8ffd6cc74dbf70f76cfecb35 | 664 | asm | Assembly | oeis/143/A143858.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/143/A143858.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/143/A143858.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A143858: Number of pairwise disjoint unions of m integer-to-integer subintervals of [0,n]; a rectangular array by antidiagonals, n>=2m-1, m>=1.
; Submitted by Jamie Morken(s2)
; 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,78,1001,5005,12870,19448,18564,11628,4845,1330,231,23,1,91,1365,8008,24310,43758,50388,38760,20349,7315,1771,276,25,1,105,1820,12376,43758,92378,125970,116280,74613,33649
mov $1,1
lpb $0
add $1,1
sub $0,$1
lpe
add $1,$0
mul $0,2
add $1,1
bin $1,$0
mov $0,$1
| 44.266667 | 393 | 0.712349 |
7e5eb4d5242916f398a9b0144f0ff676de6ecb1e | 1,040 | asm | Assembly | Driver/IFS/DOS/MSLF/mslfStrings.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/IFS/DOS/MSLF/mslfStrings.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/IFS/DOS/MSLF/mslfStrings.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1999. All rights reserved.
GLOBALPC CONFIDENTIAL
PROJECT: Global PC
MODULE: MS DOS Longname IFS Driver
FILE: mslfStrings.asm
AUTHOR: Allen Yuen, Jan 21, 1999
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
ayuen 1/21/99 Initial revision
DESCRIPTION:
Strings specific to the MS DOS Longname IFS Driver.
$Id$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DriverExtendedInfo segment lmem LMEM_TYPE_GENERAL
DriverExtendedInfoTable <
{}, ; lmem header added by Esp
length fsNameTable, ; Number of supported "devices"
offset fsNameTable, ; Names of supported "devices"
offset fsInfoTable ; FSDFlags
>
fsNameTable lptr.char ms7_00
lptr.char 0 ; terminate table
LocalDefString ms7_00 <"MS-DOS 7.0", 0>
fsInfoTable word FSD_FLAGS ; ms7_00
DriverExtendedInfo ends
| 23.636364 | 79 | 0.5875 |
dc01259c01fabbdc7f92577ed2db34000322f081 | 1,906 | asm | Assembly | programs/oeis/066/A066445.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/066/A066445.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/066/A066445.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A066445: a(n) = 12^n mod n^12.
; 0,144,1728,20736,248832,2985984,35831808,429981696,5159780352,61917364224,743008370688,0,13800864889148,36652392292352,96953703492618,236674172846080,568249606736865,15868743229440,1270692936983464,2296447475122176,1898727404471631,8621343763677184,13893976854626899,0,12124150597392182,16149530820198400,59921945037027846,151448237549551616,146830302009169536,216928950291431424,8565647067440819,0,1298066683076950194,1873377875038392320,1268213414778549893,0,5962470594095442367,981549741781233664,4553870646737276721,10232774426126974976,7892600901783585575,7962488193551966208,11057754093333445355,52506876263444512768,12468938394380587407,47894997850327625728,51057233123386043207,0,35530902398978457679,40695840260325658624,169636974586800764472,375261477633081212928,212498393259383693454,0,66970048968300399043,429751203457350500352,1094695386984607072806,32011452432645173248,1058738277067997052361,1364931677874894667776,2624599357948403822595,1483829241971168034816,2682474161044472631990,0,3886889615885919303257,2343553107553336651776,4517286292657842605182,7135212484290806808576,9354830508096623135523,1202147151322068045824,6364891599320865621475,0,17353031847899701292534,21798102068388705513472,2545990683075236290068,14139967428375057793024,38954658459706471794280,15491847594699140272128,52816887446199683517261,62599773330196530200576,0,52101960546723460382720,18097440726485015192939,2376647845924917215232,78471300246174012305357,56061223876953472684032,120955159809018453015090,30570505971530880516096,138989969337572519575442,277483878723079966593024,171394089879401055711511,226299920655735567941632,225414750021633550457352,87237096970788064940032,156319390050572470660468,0,375966220868669642962623,40449962779318462091264,571252846432484036963682,770283296858019385573376
add $0,1
mov $2,12
mov $3,$0
pow $0,12
pow $2,$3
mod $2,$0
mov $0,$2
| 173.272727 | 1,802 | 0.921301 |
8800c6c83993c10ee0b242587ecca2e736a1ccf1 | 508 | asm | Assembly | oeis/176/A176394.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/176/A176394.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/176/A176394.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A176394: Decimal expansion of 3+2*sqrt(3).
; Submitted by Jon Maiga
; 6,4,6,4,1,0,1,6,1,5,1,3,7,7,5,4,5,8,7,0,5,4,8,9,2,6,8,3,0,1,1,7,4,4,7,3,3,8,8,5,6,1,0,5,0,7,6,2,0,7,6,1,2,5,6,1,1,1,6,1,3,9,5,8,9,0,3,8,6,6,0,3,3,8,1,7,6,0,0,0,7,4,1,6,2,2,9,2,3,7,3,5,1,4,4,9,7,1,5,1
mov $1,1
mov $2,1
mov $3,$0
mul $3,4
lpb $3
add $2,$1
mul $1,$3
mul $2,$3
add $1,$2
cmp $6,0
add $5,$6
div $1,$5
div $2,$5
add $2,$1
sub $3,1
lpe
mul $1,6
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
mod $1,10
mov $0,$1
| 18.142857 | 201 | 0.521654 |
2e1dd2d95af222dd698d8baf7d46545e2a93f7cd | 823 | asm | Assembly | oeis/163/A163284.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/163/A163284.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/163/A163284.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A163284: Triangle read by rows in which row n lists n+1 terms, starting with n^4 and ending with n^5, such that the difference between successive terms is equal to n^4 - n^3.
; Submitted by Simon Strandgaard
; 0,1,1,16,24,32,81,135,189,243,256,448,640,832,1024,625,1125,1625,2125,2625,3125,1296,2376,3456,4536,5616,6696,7776,2401,4459,6517,8575,10633,12691,14749,16807,4096,7680,11264,14848,18432,22016,25600,29184,32768,6561,12393,18225,24057,29889,35721,41553,47385,53217,59049,10000,19000,28000,37000,46000,55000,64000,73000,82000,91000,100000,14641,27951,41261,54571,67881,81191,94501,107811,121121,134431,147741,161051,20736,39744,58752,77760,96768,115776,134784,153792,172800,191808,210816,229824,248832
lpb $0
mov $1,$0
sub $0,1
add $2,1
mul $1,$2
sub $1,$0
trn $0,$2
lpe
pow $2,3
mul $1,$2
mov $0,$1
| 51.4375 | 501 | 0.754557 |
e0a1df2c4df04105429a25701c10909d973cc510 | 87,205 | asm | Assembly | Driver/Keyboard/keyboardProcess.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Keyboard/keyboardProcess.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Keyboard/keyboardProcess.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Keyboard Driver
FILE: keyboardProcess.asm
AUTHOR: Adam deBoor, Doug Fults, Gene Anderson
ROUTINES:
Name Description
---- -----------
KbdStrategy Driver strategy routine
KbdChangeEventDest Set process handle to send output to
KbdXlateScan Translate scan value to full char info
KbdGetMap Return ptr to keyboard map
KbdMonRoutine Monitor program for translating
MSG_KBD_SCAN to MSG_META_KBD_CHAR events
KbdInterrupt Driver interrupt routine
ProcessKeyElement Processes entire key event
FindScanCode Looks up codes in keysDownList
ProcessScanCode Convert scan codes to char values
HandleExtendedDef
HandleNormalDef
ProcessStateRelease Clear state flags when shift & modifier keys
go up
AccentTranslation Peforms lone-accent + char translation
REVISION HISTORY:
Name Date Description
---- ---- -----------
adam 6/8/88 Initial Revision
doug 7/19/88 Pirated file from Adam's com43 program, reworked
for PC GEOS
gene 8/29/89 Added DR_KBD_GET_MAP for changing keyboard map
gene 8/31/89 Major cleanup
gene 9/4/89 Changed extended table to handle <shift><ctrl><alt>
gene 2/8/90 Broke into separate files
KNOWN BUGS/SIDE EFFECTS/IDEAS:
The keyboard interrupt vector is being replaced here, in the
routines SetInterrupt & ResetInterrupt. We should be calling
something in the kernel to do this.
DESCRIPTION:
The routines in this module manage the IBM PC keyboard.
$Id: keyboardProcess.asm,v 1.1 97/04/18 11:47:08 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
Resident segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdStrategy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Keyboard driver strategy routine
CALLED BY: EXTERNAL
-------------------------------------------------------------------------------
PASS: di - DR_INIT
RETURN: carry - set if error
-------------------------------------------------------------------------------
PASS: di - DR_EXIT
RETURN: carry - set if error
-------------------------------------------------------------------------------
PASS: di - DR_KBD_GET_KBD_STATE
RETURN: al - current shiftState
ah - current toggleState
bx - current process handle receiving METHOD_KBD_SCAN
cl - current xState1
ch - current xState2
dl - current kbdModeIndState
dh - current kbdTypematic state
es:si - pointer to current DownList element
(or segment = 0 if no last element)
carry - set if error
-------------------------------------------------------------------------------
PASS: di - DR_KBD_SET_KBD_STATE
ah - Flags for which Kbd state items to set:
Bit 7 set for new process handle
Bit 6 set for new modIndState
Bit 5 set for new typematic rate & delay
bx - handle of process to send output to
cl - new modIndState value
ch - new typematic rate & delay
RETURN: carry - set if error
-------------------------------------------------------------------------------
PASS: di - DR_KBD_XLATE_SCAN
cx - Scan code
RETURN: di - METHOD_KBD_CHAR
cx, dx, bp, si - keyboard char info
al - flags: bit 0 set if data being returned
bit 1 set if more to come
carry - set if error
-------------------------------------------------------------------------------
PASS: di - DR_KBD_GET_MAP
RETURN: carry - set if error
-------------------------------------------------------------------------------
DESTROYED: ???
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug ??? Initial version
Gene 9/89 Major rewrite
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
idataSegment word idata ;for ease of loading
KbdStrategy proc far
push ds
EC < cmp di, KbdFunction ;see if legal function>
EC < ERROR_AE KBD_BAD_ROUTINE ;>
mov ds, cs:idataSegment ;ds <- seg addr of idata
cmp di, MIN_NON_EXCLUSIVE ;see if we need the semaphore
jae noExclusive ;branch if we don't
PSem ds, semKbdStrat ;one at a time, please
call cs:kbdFuncList[di] ;call appropriate function
VSem ds, semKbdStrat ;doesn't destroy carry...
pop ds
ret
noExclusive:
call cs:kbdFuncList[di] ;call appropriate function
pop ds
ret
KbdStrategy endp
kbdFuncList label word
;
; Following require exlusive access:
;
word offset Resident:KbdInit ;DR_INIT
word offset Resident:KbdExit ;DR_EXIT
word offset Resident:KbdSuspend ;DR_SUSPEND
word offset Resident:KbdUnsuspend ;DR_UNSUSPEND
word offset Resident:KbdGetState ;DR_KBD_GET_STATE
word offset Resident:KbdSetState ;DR_KBD_SET_STATE
word offset Resident:KbdXlateScan ;DR_KBD_XLATE_SCAN
word offset Resident:KbdAddHotkeyStub;DR_KBD_ADD_HOTKEY
word offset Resident:KbdDelHotkeyStub;DR_KBD_REMOVE_HOTKEY
;
; Following don't require exclusive access:
;
word offset Resident:KbdChangeOutput ;DR_KBD_CHANGE_OUTPUT
word offset Resident:KbdMapKey ;DR_KBD_MAP_KEY
word offset Resident:KbdCheckShortcut ;DR_KBD_CHECK_SHORTCUT
word offset Resident:KbdPassHotkey ;DR_KBD_PASS_HOTKEY
word offset Resident:KbdCancelHotkey ;DR_KBD_CANCEL_HOTKEY
KbdInit proc near
call KbdInitFar
ret
KbdInit endp
KbdExit proc near
call KbdExitFar
ret
KbdExit endp
KbdSuspend proc near
;
; Only call far version if it'll do anything (namely resetting the
; command byte).
;
test ds:[kbdStratFlags], mask KSF_USE_PC_ACK
jnz done
call KbdSuspendFar
done:
ret
KbdSuspend endp
KbdUnsuspend proc near
test ds:[kbdStratFlags], mask KSF_USE_PC_ACK
jnz done
call KbdUnsuspendFar
done:
ret
KbdUnsuspend endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdSetState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sets internal variable so that driver knows where to send
output events.
CALLED BY: EXTERNAL
PASS: di - DR_KBD_SET_STATE
ah - Flags for which Kbd state items to set:
Bit 7 set for new process handle
Bit 6 set for new modIndState
Bit 5 set for new typematic rate & delay
bx - handle of process to send output to
cl - new modIndState value
ch - new typematic rate & delay
RETURN: carry - clear if no error
DESTROYED: ax
PSEUDO CODE/STRATEGY:
if setting handle, store passed handle into kbdOutputProcHandle;
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 8/5/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdSetState proc near
shl ah, 1 ;bit 7 into carry
jnc KSS_10 ;branch if not changing dest.
; process
mov ds:[kbdOutputProcHandle], bx
KSS_10:
shl ah, 1 ;bit 6 into carry
jnc KSS_20 ;branch if not setting mode
; indicator
mov al, cl ;al <- new mode indicator state
xor al, ds:[kbdModeIndState] ;al <- differences
mov ds:[kbdModeIndState], cl ;store new indicator state
xor al, ds:[kbdToggleState] ;change toggle as well
mov ds:[kbdToggleState], al ;store new toggle state
push ax
call SetIndicatorState ;send to keyboard
pop ax
KSS_20:
shl ah, 1 ;bit 5 into carry
jnc KSS_30 ;branch if not setting
; typematic
mov ds:[kbdTypematicState], ch ;store new typematic rate
call SetTypematicState ;send to keyboard
KSS_30:
clc ;indicate no error
ret
KbdSetState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdMonRoutine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Description
CALLED BY: EXTERNAL: InputManager
PASS: di - EVENT TYPE, or 0 if request for more data
ds = segment of kbdMonitor (dgroup)
RETURN: if (di == MSG_KBD_SCAN && cx == scancode) {
di - MSG_META_KBD_CHAR
cx, dx, bp, si - keyboard char data
al - bit 0 set if data being returned
bit 1 set if more to come
} else {
none
}
DESTROYED: ax, ds
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/22/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdMonRoutine proc far
cmp di, MSG_IM_KBD_SCAN ; if not keyboard scan, quit
jne KM_done
call KbdXlateScan ; translate the scan
KM_done:
ret
KbdMonRoutine endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdXlateScan
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Description
CALLED BY: EXTERNAL: DR_KBD_XLATE_SCAN
INTERNAL: KbdMonRoutine
PASS: cx - scan code
RETURN: di - MSG_META_KBD_CHAR
cx, dx, bp, si - kbd char data
al - flags: bit 0 set if data being returned
bit 1 set if more to come
carry - set if error
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/29/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdXlateScan proc near
mov ax, cx ;scan code in ax
call ProcessKeyElement ;process key element --
; place/update
; keysDownList,
; if new press generate
; charValue
jc XS_NoData ;exit if error in keysDownList
test ds:[si].KDE_charFlags, mask CF_FIRST_PRESS
jz XS_10 ;branch if not first press
test ds:[si].KDE_charFlags, mask CF_TEMP_ACCENT
jnz XS_10 ;branch if already have accent
call AccentTranslation ;if new press, do accent
XS_10:
;get ALL DATA from element
mov cx, ds:[si].KDE_charValue ;cx <- char value
mov dl, ds:[si].KDE_charFlags ;dl <- char flags
mov dh, ds:[si].KDE_shiftState ;dh <- shift state
mov al, ds:[si].KDE_toggleState ;al <- toggle state
mov ah, ds:[si].KDE_scanCode ;ah <- scan code
mov bp, ax ;copy to bp
test dl, mask CF_RELEASE ;test for release
jz XS_20 ;branch if not release
mov ds:[si].KDE_scanCode, 0 ;else free element
XS_20:
test dl, mask CF_STATE_KEY ;see if state key
jz XS_100 ;if state key, don't repeat
test dl, mask CF_REPEAT_PRESS ;see if repeat
jnz XS_NoData ;if repeat, send no char
XS_100:
mov di, MSG_META_KBD_CHAR ;di <- return method
mov al, mask MF_DATA
clc
ret
XS_NoData:
clr al ; show no data being returned
clc
ret
KbdXlateScan endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdChangeOutput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Change where the keyboard driver sends its scan-code
events
CALLED BY: DR_KBD_CHANGE_OUTPUT
PASS: bx = new output handle
ds = dgroup (passed by KbdStrategy)
RETURN: bx = old output handle
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 5/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdChangeOutput proc near
.enter
xchg ds:[kbdOutputProcHandle], bx
.leave
ret
KbdChangeOutput endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdGetState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns assorted info about current keyboard state
CALLED BY: EXTERNAL
PASS: none
RETURN: al - current ShiftState
ah - current ToggleState
bx - current process handle receiving MSG_KBD_SCAN
cl - current xState1
ch - current xState2
dl - current kbdModeIndState
dh - current kbdTypematic state
es:si - pointer to current DownList element
(or es = 0 if no last element)
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdGetState proc near
mov al, ds:[kbdShiftState]
mov ah, ds:[kbdToggleState]
mov bx, ds:[kbdOutputProcHandle]
mov cl, ds:[kbdXState1]
mov ch, ds:[kbdXState2]
mov dl, ds:[kbdModeIndState]
mov dh, ds:[kbdTypematicState]
les si, ds:kbdCurDownElement
ret
KbdGetState endp
ifidn HARDWARE_TYPE, <PC>
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdInterrupt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: keyboard interrupt routine
CALLED BY: EXTERNAL
PASS: keysDownList
kbdStateFlags
kbdLastChar
RETURN: none
DESTROYED: Nothing at all -- we're interrupt code!
PSEUDO CODE/STRATEGY:
save registers we can't trash at interrupt time;
if data waiting in keyboard buffer [
read data;
if keyboard response (ACK or above) [
If RESEND, resend else [
move queue up to remove last byte;
send next byte if queue not empty;
]
] else [
send event containing scan code;
] else error;
signal interrupt controller that interrupt is complete;
restore registers;
return (from interrupt);
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 7/29/88 Initial version
Doug 8/19/88 Changed so that int routine sends scan code
only, moving translation code to IOCTL routine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdInterrupt proc far
push ax, bx, cx, dx, si, di, bp, ds, es
call SysEnterInterrupt
cld ;clear direction flag
INT_ON
mov ax, segment idata
mov ds,ax ;ds <- seg addr of driver
mov es, ax ; es too, for KbdCheckHotkey
;
; 12/15/92: HACK added to deal with bogus BIOS in IBM PS/2 Model 40SX,
; which disables the both the keyboard and aux device interfaces in
; the 8042 before requesting the command byte, then loops waiting for
; KSB_OUTPUT_BUFFER_FULL to become set. Unfortunately, with the
; keyboard interface disabled (in some configurations), it ends up
; never setting the bit. This doesn't happen all the time, but it
; happens regularly enough. Since this doesn't seem to perturb its
; operation, this might all be ok, except it also likes to generate
; a keyboard interrupt, with the KSB_OUTPUT_BUFFER_FULL clear, and the
; keyboard command byte (which looks like garbage [77h]) sitting in
; the output buffer for us to read and misinterpret.
;
; To get around this brain-damage, if the thing's an AT, and the
; output-buffer-full bit isn't set, we hand control off to the old
; handler. -- a&g
;
; Furthermore, it will continue to interrupt until we read the
; *(&*(U&^Y data port, so we do that...
;
test ds:[kbdStratFlags], mask KSF_USE_PC_ACK
jnz getData
in al, KBD_STATUS_PORT
test al, mask KSB_OUTPUT_BUFFER_FULL
jnz getData
in al, KBD_DATA_PORT
jmp KINT_Done
getData:
in al, KBD_DATA_PORT ;read in from KBD_DATA_PORT
or al, al
jz KINT_40 ;if KBD_RESP_OVERRUN done
cmp al, KBD_RESP_ACK ;see if scancode (<ACK)
jb KINT_ScanCode
test ds:[kbdStratFlags], mask KSF_SENDING
jz KINT_ScanCode ;if not sending, medium rare
cmp al, KBD_RESP_RESEND ;resend command?
je KINT_20 ;branch to handle resend
;INTS are OFF here
;ELSE assume is ACK, move up Q
dec ds:[kbdSQSize] ;dec # of items left to send
je KINT_30 ;if none left, done sending
mov cx, size kbdSendQueue - 1 ;else move items left up
mov bx, offset kbdSendQueue
KINT_10:
mov al, ds:[bx] + 1
mov ds:[bx] + 0, al
inc bx
loop KINT_10
KINT_20:
;
;send next byte
;
mov al, ds:[kbdSendQueue + 0] ;get next char
out KBD_DATA_PORT, al ;out to KBD_DATA_PORT
jmp KINT_40
KINT_30:
andnf ds:[kbdStratFlags], not mask KSF_SENDING ;clear bit
KINT_40:
jmp short KINT_Done
KINT_ScanCode:
; AL = SCAN CODE
cmp al, ds:KbdExtendedScanCodes[0]
je KINT_Extension ;branch if PS/2 extension
cmp al, ds:KbdExtendedScanCodes[1]
je KINT_Extension ;branch if PS/2 extension
cmp al, ds:KbdExtendedScanCodes[2]
je KINT_Extension ;branch if PS/2 extension
cmp al, ds:KbdExtendedScanCodes[3]
je KINT_Extension ;branch if PS/2 extension
mov ah, ds:[kbdScanExtension] ;get high byte of scan code
tst ah
jnz mustBeOurs
mov dl, al
and dl, not (KBD_RELEASE_FLAG) ;high bit set on release
cmp dl, KBD_MAX_SCAN ;if the scan code is outside
jae passOffToOldDriver ; the range of legal ones,
; there's nothing we can do,
; but there might be something
; the previous driver can do,
; so we pass the buck. (e.g.
; the mouse buttons on this
; *&!*UY! French PC we got in
; are sent as out-of-bounds
; keyboard scan codes)
mustBeOurs:
mov ds:[kbdScanExtension], 0 ;clear for next time
; stuff scan code into event
call KbdCheckHotkey
jc KINT_Done ; => hotkey was taken, so don't
; do anything else here.
mov cx, ax ;cx <- key event
mov bx, ds:[kbdOutputProcHandle] ;bx <- handle of proc
cmp bx, 0ffffh ;see if no recipient defined.
je KINT_Done ;branch if no proc
clr dx
clr bp
clr si ;don't send driver handle
mov ax, MSG_IM_KBD_SCAN
mov di,mask MF_FORCE_QUEUE
call ObjMessage ;send kbd message to proc
jmp KINT_Done
KINT_Extension:
mov ds:[kbdScanExtension], al ;store scan extension
KINT_Done:
test ds:[kbdStratFlags], mask KSF_USE_PC_ACK ;see if sending to kbd
jz noAck
;
; On a PC so we need to acknowledge/reset the latches by
; strobing the high bit of port 61h
;
in al, KBD_PC_CTRL_PORT
mov ah, al
or al, KBD_ACKNOWLEDGE
out KBD_PC_CTRL_PORT, al
mov al, ah
out KBD_PC_CTRL_PORT, al
noAck:
mov al, ICEOI
out ICEOIPORT,al ;signal general end-interrupt
done:
call SysExitInterrupt ;Allow pending context switch
pop ax, bx, cx, dx, si, di, bp, ds, es
iret
passOffToOldDriver:
;
; Pass the scan code off to the previous driver (note we have not and
; will not acknowledge the scan code we got. Presumably the earlier
; [BIOS-internal] driver will do the right thing with it...if it
; doesn't, we're hosed). We call, rather than jump, to maintain our
; lock on context-switching.
;
pushf
call ds:kbdVector
jmp done
KbdInterrupt endp
endif
if VG230SCAN
.186
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdInterrupt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: keyboard interrupt routine for Jedi Device
CALLED BY: EXTERNAL
PASS: keysDownList
kbdStateFlags
kbdLastChar
RETURN: none
DESTROYED: Nothing at all -- we're interrupt code!
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 7/29/88 Initial version
Doug 8/19/88 Changed so that int routine sends scan code
only, moving translation code to IOCTL routine
Todd 11/21/94 Updates for Jedi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdInterrupt proc far
uses ds, es
.enter
pusha
call SysEnterInterrupt
cld ;clear direction flag
INT_ON
mov ax, segment idata
mov ds, ax ;ds <- seg addr of driver
mov es, ax ; es too, for KbdCheckHotkey
;
; Read the character in from io 60h. On the
; Jedi this generates a hardware interrupt that
; BIOS catches, and then reads in the character,
; translates it to the expected character and
; returns it to us.
clr ax
in al, KBD_DATA_PORT ;read in from KBD_DATA_PORT
mov_tr cx, ax ;cx <- key event
mov bx, ds:[kbdOutputProcHandle] ;bx <- handle of proc
cmp bx, 0ffffh ;see if no recipient defined.
je KINT_Done ;branch if no proc
clr dx, bp, si ; don't send driver handle
mov ax, MSG_IM_KBD_SCAN
mov di, mask MF_FORCE_QUEUE
call ObjMessage ;send kbd message to proc
KINT_Done:
;
; For some reason, you need to twiddle bits before
; the VG-230 is happy. Why? I dunno. He's on
; third, and I don't give a darn...
;
in al, KBD_PC_CTRL_PORT
mov ah, al
or al, KBD_ACKNOWLEDGE
out KBD_PC_CTRL_PORT, al
mov_tr al, ah
out KBD_PC_CTRL_PORT, al
mov al, ICEOI
out ICEOIPORT,al ;signal general end-interrupt
call SysExitInterrupt ;Allow pending context switch
popa
.leave
iret
KbdInterrupt endp
.8086
endif
if _E3G_KBD_SCAN
.386
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdInterrupt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Keyboard interrupt routine for E3G Device
CALLED BY: EXTERNAL
PASS: keysDownList
kbdStateFlags
kbdLastChar
RETURN: none
DESTROYED: Nothing at all -- we're interrupt code!
PSEUDO CODE/STRATEGY:
Responders differs from other hardware platform since there
is no BIOS support for keyboard processing. What we have
to do when we receive this interrupt is to scan a 8x10
matrix to detect which key was pressed. The scan will give
us the row and column number of the key depressed.
We plug the row and column number into the KeyScanCodeTable
which will give us a scan code that corrisponds to the
PC Extended Keyboard scan code.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 7/29/88 Initial version
SH 5/9/95 Responder Version
JimG 6/20/96 E3G common version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if E3G_KBD_COUNT_INTS
kbdIntCounter word 0
kbdEvents word 0
endif ;E3G_KBD_COUNT_INTS
KbdInterrupt proc far
if E3G_KBD_COUNT_INTS
inc cs:[kbdIntCounter]
endif ;E3G_KBD_COUNT_INTS
uses ds, es
.enter
;
; Setup for processing the interrupt and disallow context switching.
;
pusha
call SysEnterInterrupt
cld ;clear direction flag
; Attempt to lock the keyboard/digitizer interlock. If it fails,
; don't do anything except acknowledge interrupt. The interlock
; mechanism should've turned off this interrupt so it won't happen
; again until the other device is done with the kbd lines.
;
PENE < mov cl, PKDID_KEYBOARD >
PENE < call PeneKDILock >
PENE < jc quickExit >
mov ax, segment idata
mov ds, ax ;ds <- seg addr of driver
mov es, ax
; See if the special timer for the digitizer is running. If so, it
; means that another keypress came in before the timer expired after
; the last keypress. No big deal, just disable it so the callback
; routine isn't actually called.
;
PENE < tst ds:[kbdDigTimerRunning] >
PENE < jz noTimerRunning >
PENE < clr ds:[kbdDigTimerRunning] >
PENE < call PeneTimerDisable >
PENE <noTimerRunning: >
INT_ON
;
; Get the row interrupts.
;
KbdE3G_GetIntEnable ;ax = E3G_KBIntEnFlags
; (or KBINTENFlag for Resp)
push ax
;
; Disable all row interrupts.
;
mov ax, 0x0000
KbdE3G_SetIntEnable
;
; Scan the 8x10 matrix to find the keys pressed.
;
mov dx, offset ds:[kbdIntCols]
call KbdScanKeyMatrix
;
; All the pressed keys are now stored by row in KbdRows. We now
; take that vector, translate any pressed key to a scancode and
; queue the scancode for the InputManager.
;
call KbdQueueScanCodes
;
; Drive all lines to 0
;
mov al, 0x00
KbdE3G_SetScanOut
;
; Setup the scanmode and the debounce time (KBCTRL).
;
mov al, KBD_POLL_MODE
KbdE3G_SetCtrl
;
; Read the high keyboard return register (KBIN) to clear interrupt.
;
KbdE3G_GetInput
;
; Set the new interraupt handler vector.
;
mov bx, segment Resident
mov cx, offset Resident:KbdPoll
mov di, offset kbdInt
PENE < mov ax, PENE_KEYBOARD_IRQ >
PENE < call SysCatchDeviceInterrupt >
;
; Signal general end-interrupt.
;
mov al, IC_GENEOI
out IC1_CMDPORT, al
;
; Enable all the row interrupts.
;
pop ax
KbdE3G_SetIntEnable
;
; Allow pending context switch
;
quickExit2::
call SysExitInterrupt
popa
.leave
iret
PENE <quickExit: >
PENE < mov al, IC_GENEOI >
PENE < out IC1_CMDPORT, al >
PENE < jmp quickExit2 >
KbdInterrupt endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdScanKeyMatrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Scans the 8x10 key matrix and stores each row value in the
row array.
CALLED BY: KbdInterupt, KbdPoll
PASS: ds - dgroup
dx - offset of column array in dgroup.
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
Column array updated in dgroup.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
SH 5/ 9/95 Initial version
JimG 6/20/96 E3G common version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdScanKeyMatrix proc near
;
; Initalize the column counter.
;
mov cx, KBD_NUM_COLS-1 ; cx <- columns to drive
colLoop:
;
; Enable the column to drive.
;
mov al, 1
shl al, cl ; 1 = enabled
;
; Drive the column.
;
xor al, KBD_SCAN_ALL_MASK ; Invert the bits
push dx
mov dx, E3G_KBOUT
out dx, al
;
; Delay for out lines to be set
;
jmp $+2
jmp $+2
jmp $+2
;
; Apparently, for Penelope (at least OP1), this needs to be a longer
; delay.
;
; Well, the delay is different for OP1 and Olga. Olga appears to
; be even longer, really. We haven't measured what it is yet,
; though, so just make it a long time for now.
;
_PAUSE::
PENE < push cx >
ifdef PENELOPE_OP1
PENE < mov cx, 16 >
else ; OLGA----
PENE < PrintMessage <-- JimG: Determine delay needed for Olga KB lines >>
PENE < mov cx, 1000 >
endif
PENE <xxxx: loop xxxx >
PENE < pop cx >
;
; Read the sensed row.
;
mov dx, E3G_KBIN
in ax, dx
and ax, KBD_INT_ALL_MASK ; clear top 6 and other
pop dx ; unused bits
;
; Store the row
;
mov bx, cx ; bx <- column
shl bx ; size word
add bx, dx ; ds:di <- offset
mov ds:[bx], ax
;
; Loop around until cx is -1.
;
dec cx
cmp cx, 0
jge colLoop
;
; RESPONDER ONLY:
; Since keyboard hardware can not detect correctly if three keys are
; held down we need to check for that case. If one of the three keys
; is the SHIFT key then we allow the keys else we discard all keys.
;
;
; PENELOPE: What hardware limitations are there for the penelope kbd?
;
PENE < PrintMessage <-- JimG: Figure out h/w limits for penelope kbd>>
ret
KbdScanKeyMatrix endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdCheckKeys
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Runs though all the columns and rows of the keyboard vector
and checks if one of the keys is the SHIFT key or a function
key.
CALLED BY: KbdScanKeyMatrix
PASS: ds - dgroup
dx - offset of column array in dgroup.
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
Column array updated if more than three keys are pressed and
one of them is not the SHIFT key.
Column array updated if two keys are pressed and one of them
is a function key.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
SH 7/12/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdQueueScanCodes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Generate a scancode from the row,col of the pressed key and
queue the scancode to the input manager.
CALLED BY: KbdInterrupt
PASS: ds - dgroup
RETURN: nothing
DESTROYED: ax, bx, cx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
SH 5/ 8/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdQueueScanCodes proc near
;
; Bail if we don't have a valid proc handle.
;
mov bx, ds:[kbdOutputProcHandle]
cmp bx, 0ffffh ;see if no recipient defined.
je done ;branch if no proc
;
; Setup the offset into the KeyScanCodeTable. We'll let the loop
; take care of maintaining the correct offset.
;
mov si, (KBD_NUM_COLS-1) * size KeyMatrixColumn
mov dx, KBD_NUM_COLS-1
colLoop:
mov bx, dx
shl bx
add bx, offset ds:[kbdIntCols]
mov ax, ds:[bx] ; ax <- Row mask
;
; A key press was found, we have the column number in cx and
; the row number in ax.
;
xor ax, KBD_INT_ALL_MASK ; invert the bits
tst ax
jz cont
rowLoop:
push ax
;
; Convert the row bitvector to a corrisponding integer
;
mov cx, 17
10$:
shl ax, 1
loopne 10$
;
; Get the scan code from the 8x10 KeyScanCodeTable matrix.
;
mov bx, si
add bx, offset ds:[KeyScanCodeTable]
dec cx ; First row at 0
push cx
add bx, cx ; add row number
mov cx, ds:[bx] ; cx <- scan code
clr ch
;
; Give the scan code to the input manager.
;
push dx, si
clr dx, bp, si ; don't send driver hdl
mov bx, ds:[kbdOutputProcHandle] ; bx <- handle of proc
mov ax, MSG_IM_KBD_SCAN
mov di, mask MF_FORCE_QUEUE
if E3G_KBD_COUNT_INTS
inc cs:[kbdEvents]
endif ;E3G_KBD_COUNT_INTS
call ObjMessage ; send kbd msg to proc
pop dx, si
;
; Remove the row bit we have processed by xor'ing the bit out of
; the bitvector. If the bitvector is 0 when there are no more keys
; in that row.
;
pop ax, cx ; cx <- bit pos, ax <- bitvector
mov di, 1
shl di, cl
xor ax, di
tst ax
jnz rowLoop
cont:
;
; Loop until dx = -1
;
sub si, size KeyMatrixColumn
dec dx
cmp dx, 0
jge colLoop
done:
ret
KbdQueueScanCodes endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdPoll
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Called every 25 milliseconds when key is down.
CALLED BY: EXTERNAL
PASS: nothing
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
SH 5/ 9/95 Initial version
JimG 6/20/96 Made into general purpose E3G version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdPoll proc far
uses es, ds
.enter
;
; Setup for processing the interrupt and disallow context switching.
;
pusha
call SysEnterInterrupt
cld ;clear direction flag
INT_ON
mov ax, segment idata
mov ds, ax ;ds <- seg addr of driver
mov es, ax
;
; Get the row interrupts.
;
KbdE3G_GetIntEnable ;ax = E3G_KBIntEnFlags
; (or KBINTENFlag for Resp)
push ax
;
; Disable all row interrupts.
;
mov ax, 0x0000
KbdE3G_SetIntEnable
;
; Update the counters.
;
inc ds:[kbdPollCount]
inc ds:[kbdRateCount]
;
; Scan the 8x10 key matrix to find what keys are pressed.
;
mov dx, offset ds:[kbdPollCols]
call KbdScanKeyMatrix
;
; If a key is missing in the kbdPollRows that was present in
; kbdIntRows then the key as been released so we send "release"
; scancode to the imput manager.
;
call KbdCompareColumns
;
; Drive all lines to 0
;
mov al, 0x0
KbdE3G_SetScanOut
;
; Copy the contents of kbdPollCols to kbdIntCols.
;
mov di, offset es:[kbdIntCols]
mov si, offset es:[kbdPollCols]
mov cx, (size kbdPollCols/size word)
rep movsw
;
; If kbdPollCols says that there is no key down we have to re-enable
; the key-down interupt.
;
mov di, offset es:[kbdPollCols]
mov cx, (size kbdPollCols/size word)
mov ax, KBD_INT_ALL_MASK
repe scasw
jnz exit
;
; Reset the poll counter.
;
clr ds:[kbdPollCount]
;
; Setup the scanmode and the debounce time (KBCTRL).
;
mov al, KBD_INT_MODE
KbdE3G_SetCtrl
;
; Read the high keyboard return register (KBIN) to clear interrupt.
;
KbdE3G_GetInput
;
; Set the new interrupt handler vector.
;
mov di, offset kbdInt
PENE < mov ax, PENE_KEYBOARD_IRQ >
PENE < call SysResetDeviceInterrupt >
;
; Set a flag indicating that this timer is running.
;
PENE < mov ds:[kbdDigTimerRunning], TRUE >
;
; Run a timer to unmask the digitizer interrupt a short amount of
; time later to allow the filter caps to discharge.
;
PENE < mov cl, PKDID_KEYBOARD >
PENE < mov ch, PTT_ONE_SHOT >
PENE < mov ax, 4000 ; about 3.34 msec >
PENE < call PeneTimerStart >
exit:
;
; Signal general end-interrupt.
;
mov al, IC_GENEOI
out IC1_CMDPORT, al
;
; Enable all the row interrupts.
;
pop ax
KbdE3G_SetIntEnable
;
; Allow pending context switch
;
call SysExitInterrupt
popa
.leave
iret
KbdPoll endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdPeneTimerCB
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: PENELOPE ONLY
This is the callback for a special timer that indicates
that the interrupt for the digitizer can safely be
unmasked. This is all done because we have these
extra caps on the digitizer circuit which are necessary
to filter the digitizer noise BUT they also charge up while
doing a keyscan. So after the keyscan completes, they
hold the TOUCHINT line up for a while which will cause
a false digitzer interrupt if the interrupt were unmasked
immediately after the keyscan.
Note that interrupts remain off during this function.
CALLED BY: PeneTimerInt
PASS: INTS OFF
RETURN: nothing
DESTROYED: everything
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 9/ 5/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KbdCompareColumns
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Compares the kbdIntCols and kbdPollCols arrays. If there
is any change between the two arrays
CALLED BY: KbdPoll
PASS: ds - dgroup
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Let's say kbdIntRows gives us a row mask of 0110 and
kbdPollRows gives us 1010. 0 means that a key is down.
The first thing we do is check if a key has been released
we do this by AND'ing the int row and the inverted poll row:
1001
AND 1010
----
1000 1 <- released key
Next we have to check if a new key has been pressed. We do
that by AND'ing the inverted int row and the poll row:
0110
AND 0101
----
0100 1 <- new key
Last we have we check to see if there is a repeated key, this
is done by AND'ing the inverted int and poll rows:
1001
AND 0101
----
0001 1 <- repeated key
REVISION HISTORY:
Name Date Description
---- ---- -----------
SH 5/ 9/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
KbdCompareColumns proc near
;
; Bail if we don't have a valid proc handle.
;
mov bx, ds:[kbdOutputProcHandle]
cmp bx, 0ffffh ;see if no recipient defined.
LONG je done ;branch if no proc
;
; Check if the poll counter has reached the typematic delay value.
; if it has not then we don't have to send "key down" scan codes.
; This is best done outside the loop to save cycles.
;
clr bp ; assume no "key down"
clr ax
mov al, {byte} ds:[kbdTypematicValue+1]
cmp ds:[kbdPollCount], ax
jl afterTypematic
;
; The typematic delay is OK. Now check we should send the according
; to the typematic rate. Only so many characters/sec should be
; allowed.
;
mov al, {byte} ds:[kbdTypematicValue]
cmp ds:[kbdRateCount], al
jl afterTypematic
mov bp, -1 ; send key
clr ds:[kbdRateCount] ; reset rate counter
afterTypematic:
;
; Setup the offset into the KeyScanCodeTable. We'll let the loop
; take care of maintaining the correct offset.
;
mov si, (KBD_NUM_COLS-1) * size KeyMatrixColumn
mov dx, KBD_NUM_COLS-1
colLoop:
;
; Get the row mask of the interrupt column. In the mask 0 means
; key pressed.
;
mov bx, dx
shl bx
add bx, offset ds:[kbdIntCols]
mov ax, ds:[bx] ; ax <- Row mask
push ax
;
; Get the row mask of the poll column. In the mask 0 means key pressed.
;
mov bx, dx
shl bx
add bx, offset ds:[kbdPollCols]
mov bx, ds:[bx]
push bx
;
; AND the two together, this gives us a mask of the keys we need
; to send a "release" scancode.
;
xor ax, KBD_INT_ALL_MASK ; invert the bits (1 = pressed)
and ax, bx
tst ax
jz checkNewKey
mov di, KBD_RELEASE_FLAG
call SendKbdIMScan
checkNewKey:
;
; Get from the mask what keys are new. We do this be AND'ing the
; invert of the poll row to the int row.
;
pop ax, bx
push ax, bx
xor bx, KBD_INT_ALL_MASK ; invert the bits
and ax, bx
tst ax
jz checkRepeatKey
clr di
call SendKbdIMScan
;
; Reset the typematic delay counter to zero since we want a new delay
; period when a new key is pressed.
;
clr ds:[kbdPollCount]
checkRepeatKey:
;
; If bp is non-zero we send the scan code.
;
pop ax, bx
tst bp
jz cont
;
; AND the inverted int row and the inverted poll row. This will
; give us a mask of repeated keys that are pressed down.
;
xor ax, KBD_INT_ALL_MASK ; invert the bits
xor bx, KBD_INT_ALL_MASK ; invert the bits
and ax, bx
tst ax
jz cont
clr di
call SendKbdIMScan
cont:
;
; Loop until dx = -1
;
sub si, size KeyMatrixColumn
dec dx
cmp dx, 0
jge colLoop
done:
ret
KbdCompareColumns endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SendKbdIMScan
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends the corrisponding scan code to the input manager for
all keys in a given row mask.
CALLED BY: KbdCompareColumns
PASS: ds - dgroup
ax - row mask
dx - column number
si - offset into KeyScanCodeTable
di - KBD_RELEASE_FLAG to send "release" scan code.
RETURN: nothing
DESTROYED: ax, bx, cx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
SH 5/ 9/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SendKbdIMScan proc near
rowLoop:
push ax
;
; Convert the row bitvector to a corrisponding integer
;
mov cx, 17
10$:
shl ax, 1
loopne 10$
;
; Get the scan code from the 8x10 KeyScanCodeTable matrix.
;
mov bx, si
add bx, offset ds:[KeyScanCodeTable]
dec cx ; First row at 0
push cx
add bx, cx ; add row number
mov cx, ds:[bx] ; cx <- scan code
clr ch
or cx, di ; add/clear the release bit
;
; Give the scan code to the input manager.
;
push dx, si, di, bp
clr dx, bp, si ; don't send driver hdl
mov bx, ds:[kbdOutputProcHandle] ; bx <- handle of proc
mov ax, MSG_IM_KBD_SCAN
mov di, mask MF_FORCE_QUEUE
if E3G_KBD_COUNT_INTS
inc cs:[kbdEvents]
endif ;E3G_KBD_COUNT_INTS
call ObjMessage ; send kbd msg to proc
pop dx, si, di, bp
;
; Remove the row bit we have processed by xor'ing the bit out of
; the bitvector. If the bitvector is 0 when there are no more keys
; in that row.
;
pop ax, cx ; cx <- bit pos, ax <- bitvector
mov bx, 1
shl bx, cl
xor ax, bx
tst ax
jnz rowLoop
ret
SendKbdIMScan endp
.8086
endif ; _E3G_KBD_SCAN
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AddToSendQueue
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Add a byte to the kbdSendQueue of bytes to be sent to the
keyboard. If first byte, start sending it.
NOTE: ONLY call this routine w/INTS OFF. If multiple
byte command being send, turn ints off around group of
bytes being added.
CALLED BY: UTILITY
PASS: al - byte to send to keyboard
RETURN: carry - set if queue is full
DESTROYED: bx
PSEUDO CODE/STRATEGY:
Add byte to end of queue, if room;
If queue was empty [
send out new byte;
set sending flag to show something going out;
]
inc size count to show new byte;
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Uses boring data queue which moves all data in queue. I'm doing
it this way because the queue size is small, & code is smaller
this way.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/10/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifidn HARDWARE_TYPE, <PC>
AddToSendQueue proc near
EC < mov bx, ds >
EC < cmp bx, idata >
EC < ERROR_NE KBD_ATSQ_DS_NOT_IDATA >
mov bl, ds:[kbdSQSize] ;bl <- queue size (bytes)
cmp bl, size kbdSendQueue ;see if it will fit
stc
je done ;branch if queue full
clr bh
mov ds:kbdSendQueue[bx], al ;put byte in queue
tst bl ;see if first element in queue
jne ATS_10 ;branch if not
ornf ds:[kbdStratFlags], mask KSF_SENDING ;indicate sending
; here to track down a bug, left just for the hell of it -- ardeb 1/11/91
EC < mov ah, al >
EC < in al, KBD_STATUS_PORT >
EC < test al, mask KSB_INPUT_BUFFER_FULL or mask KSB_OUTPUT_BUFFER_FULL>
EC < ERROR_NZ KBD_ATSQ_BUFFER_FULL >
EC < mov al, ah >
out KBD_DATA_PORT, al ;out to KBD_DATA_PORT
ATS_10:
inc bl ;inc size of queue
mov ds:[kbdSQSize], bl ;store new size
; (carry cleared by OR or TST) ;indicate queue not full
done:
ret
AddToSendQueue endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetIndicatorState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the state of the keyboard LED's to match reality
CALLED BY: INTERNAL: ?
PASS: kbdIndModeState - status of LED's
RETURN: none
DESTROYED: bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug ??/?? Initial version
eca 9/1/89 added routine header
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetIndicatorState proc near
ifidn HARDWARE_TYPE, <PC>
push ax ;save char1 code
mov al, KBD_CMD_SET_LED ;al <- command to send
mov ah, ds:[kbdModeIndState] ;ah <- current state
;
; these are the only things supported by the keyboard hardware
;
andnf ah, (mask TS_CAPSLOCK or mask TS_NUMLOCK or mask TS_SCROLLLOCK)
call SetKbdState
pop ax ;restore char1 code
endif
ret
SetIndicatorState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetTypematicState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set delay and repeat rates for the keyboard
CALLED BY: INTERNAL: KbdSetState, KbdInit
PASS: kbdTypematicState - delay and repeat rate
RETURN: none
DESTROYED: bx
PSEUDO CODE/STRATEGY:
for typematic state -
bit 7 : 0
bit 6-5 : DELAY = delay
bit 4-3 : PEXP = period (exponent)
bit 2-0 : PMAN = period (mantissa)
delay = 1 + DELAY * 250 milliseconds +/- 20%
period = (8 + PMAN) * (2 ^ PEXP) * 0.00417 seconds
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug ?/??/?? Initial version
gene 9/1/89 added routine header, comments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetTypematicState proc near
ifidn HARDWARE_TYPE, <PC>
push ax ;save char1 code
mov al, KBD_CMD_SET_TYPEMATIC ;al <- command
mov ah, ds:[kbdTypematicState] ;ah <- current state
call SetKbdState
pop ax ;restore char1 code
endif
ret
SetTypematicState endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetKbdState
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Add commands to the keyboard command queue
CALLED BY: INTERNAL: SetIndicatorState, SetTypematicState
PASS: al, ah - command bytes to add
RETURN: none
DESTROYED: bx, al
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug ??/?? Initial version
eca 9/1/89 added routine header
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifidn HARDWARE_TYPE, <PC>
SetKbdStateFar proc far
call SetKbdState
ret
SetKbdStateFar endp
SetKbdState proc near
test ds:keyboardOptions, mask KO_DOES_LEDS
jz done
INT_OFF ;add commands with ints off
push ax
call AddToSendQueue ;add command in al
pop ax
mov al, ah ;al <- 2nd command to add
call AddToSendQueue
INT_ON
done:
ret
SetKbdState endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessKeyElement
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: keyboard scan processing code -- determines whether code is
a press, release, or repeat press. Manages keysDownList to
ensure that status state is preserved throughout press,
repeat & release of any given key. Calls routine to convert
scan code to char value. Copies end resulting key event
to kbdEvent variable structure.
CALLED BY: INTERNAL: HandleScanCode
PASS: ax - scan code (high byte non-zero only if
extended scan codes (from PS/2 keyboards))
keysDownList - keys to be processed
RETURN: ds:si - pointer to KeyDownElement, if no error
ds:di - pointer to KeyDef, if no error
carry - set if overflow error in keysDownList
keysDownList - updated to modify old element or include new
DESTROYED: dx
PSEUDO CODE/STRATEGY:
Calculate pointer to KeyDef for scan code;
if press [
if scan code found in keysDownList [
change flag to show REPEAT;
] else new press [
allocate new entry in keysDownList;
if overflow, exit w/error else [
copy scan code into scanCode;
copy kbdStateFlags into charFlags;
set kbdStateFlags for PRESS only;
processScanCode;
copy new char over kbdLastChar;
]
]
] else is release [
find entry in keysDownList;
if entry not found exit with error else [
change info flag to show RELEASE;
clear REPEAT flag;
]
]
KNOWN BUGS/SIDE EFFECTS/IDEAS:
ASSUMES that size of KeyDef = 4
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 7/29/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessKeyElement proc near
tst ah ;see if extended code
jz PKE_notExtended ;branch if not extended
call ConvertExtCodes ;convert 16 bit codes to 8 bit
LONG jc PKE_KeysDownListError ;not really, but it's convienent
PKE_notExtended:
mov dh, al ;dh <- scan code
mov dl, ah ;dl <- non-zero if extended
and al, not (KEY_RELEASE) ;clear release bit
mov bl, al
clr bh
if DBCS_PCGEOS
CheckHack <size KeyDef eq 8>
shl bx, 1
else
CheckHack <size KeyDef eq 4>
endif
shl bx, 1 ;assume KeyDef is 4 bytes
shl bx, 1 ;bx <- offset of KeyDef entry
mov di, offset KbdKeyDefTable - size KeyDef
add di, bx ;di <- ptr to KeyDef entry
;
; See if key is already down.
;
call FindScanCode ;see if scan code in table
jz PKE_ScanFound ;branch if scan code found
;
; Key wasn't down, so it's a new keypress. Make sure
; it is a press and not a release.
;
test dh, KEY_RELEASE ;make sure a press
jnz PKE_KeysDownListError ;branch if error
mov si, bx ;si <- element address
cmp si, 0ffffh ;see if list full
je PKE_KeysDownListError ;if list is full, return error
mov ds:[si].KDE_scanCode, al ;copy scan code into element
mov ds:[si].KDE_charFlags, mask CF_FIRST_PRESS
if SHIFT_STICK_IMPLIES_SHIFT or ALT_STICK_IMPLIES_ALT
push {word} ds:[kbdToggleState]
endif ; SHIFT_STICK_IMPLIES_SHIFT or ALT_STICK_IMPLIES_ALT
call ProcessScanCode ;convert scan code to char
mov ds:[si].KDE_charValue, ax ;store character value
mov bh, ds:[kbdShiftState]
if SHIFT_STICK_IMPLIES_SHIFT or ALT_STICK_IMPLIES_ALT
pop ax ;al = old kbdToggleState
if SHIFT_STICK_IMPLIES_SHIFT
if IGNORE_SHIFT_STATE_FOR_PGUP_PGDOWN
;
; On Responder we don't want SS_LSHIFT if the character value is
; VC_NEXT or VC_PERVIOUS. SH 10/26/95
;
cmp ds:[si].KDE_charValue,(CS_CONTROL shl 8) or VC_NEXT
je PKE_noShiftStick
cmp ds:[si].KDE_charValue,(CS_CONTROL shl 8) or VC_PREVIOUS
je PKE_noShiftStick
endif ; IGNORE_SHIFT_STATE_FOR_PGUP_PGDOWN
;
; Set SS_LSHIFT in this KeyDownElement if TS_SHIFTSTICK was on before.
;
test al, mask TS_SHIFTSTICK
jz PKE_noShiftStick
BitSet bh, SS_LSHIFT
PKE_noShiftStick:
endif ; SHIFT_STICK_IMPLIES_SHIFT
if ALT_STICK_IMPLIES_ALT
;
; Set SS_LALT on in this KeyDownElement if TS_ALTSTICK was on before.
;
test al, mask TS_ALTSTICK
jz PKE_noAltStick
BitSet bh, SS_LALT
PKE_noAltStick:
endif ; ALT_STICK_IMPLIES_ALT
endif ; SHIFT_STICK_IMPLIES_SHIFT or ALT_STICK_IMPLIES_ALT
not ch ;ch <- not (shift usage)
and bh, ch ;use as mask w/ kbdShiftState
mov cl, ds:[kbdToggleState] ;cl <- keyboard tobble state
if SHIFT_STICK_IMPLIES_SHIFT or ALT_STICK_IMPLIES_ALT
;
; Set TS_CTRLSTICK on in this KeyDownElement if it was on before.
;
andnf al, mask TS_CTRLSTICK
or cl, al
endif ; SHIFT_STICK_IMPLIES_SHIFT or ALT_STICK_IMPLIES_ALT
mov ch, ds:[kbdXState1]
mov dl, ds:[kbdXState2]
mov ds:[si].KDE_shiftState, bh ;store shift state
mov ds:[si].KDE_toggleState, cl ;store toggle state
mov ds:[si].KDE_xState1, ch ;
mov ds:[si].KDE_xState2, dl ;
jmp short PKE_ElementDone
;
; Key was already down. See if it's a release
; or a repeated press.
;
PKE_ScanFound:
test dh, KEY_RELEASE ;see if release
jnz PKE_Release ;branch if release
mov bl, ds:[si].KDE_charFlags ;bl <- char flags
and bl, not (mask CF_FIRST_PRESS) ;clear PRESS flag
or bl, mask CF_REPEAT_PRESS ;set REPEAT PRESS flag
mov ds:[si].KDE_charFlags, bl ;store to KDE_charFlags
jmp short PKE_ElementDone
;
; Event is a key release. If it is a state key
; (eg. SHIFT) being released, handle it specially.
;
PKE_Release:
mov bl, ds:[si].KDE_charFlags ;bl <- char flagsn
;clear all PRESS flags
and bl, not (mask CF_FIRST_PRESS or mask CF_REPEAT_PRESS)
or bl, mask CF_RELEASE ;set RELEASE
mov ds:[si].KDE_charFlags, bl ;store to KDE_charFlags
call ProcessStateRelease ;handle releases of modifiers
PKE_ElementDone:
;store ptr to current key
mov ds:[kbdCurDownElement.segment], ds
mov ds:[kbdCurDownElement.offset], si
clc ;indicate NO error
ret
PKE_KeysDownListError:
;indicate no key
mov ds:[kbdCurDownElement.segment], 0
stc ;indicate error
ret
ProcessKeyElement endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ConvertExtCodes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Convert extended keyboard scan codes.
CALLED BY: INTERNAL: ProcessKeyElement
PASS: ax - 16 bit scan code value
RETURN: al - 8 bit scan code value
carry - set if extended shift
DESTROYED: bx, cx, dl
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 9/1/88 Initial version
Gene 2/27/90 Added extended shift checks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ConvertExtCodes proc near
;
; Some keyboards have separate arrow and navigation keys
; in addition to the ones on the numeric keypad. When the
; keyboard is in the lowest emulation level that we use,
; <shift><ext-arrow>
; comes through as:
; <shift><ext-unshift><ext-arrow><ext-shift>
; This means that we would normally not be able to get
; an extended arrow key with <shift> being down. This is
; bad because some UIs specify <shift><arrow> as being a
; shortcut (distinct from just <arrow>). To get around this
; problem, we simply ignore extended shifts presses and
; releases, and the rest of the keyboard driver does the
; right thing...
;
mov dl, al ;save press/release status
and al, not (KEY_RELEASE) ;ignore status for map
cmp ax, EXT_LSHIFT_PRESS
je extendedShift
cmp ax, EXT_RSHIFT_PRESS
je extendedShift
;
; The <Break> key is an extended key similar to the separate
; arrow keys mentioned above, except it sents out <ext-ctrl>
; and the like.
;
cmp ax, EXT_LCTRL_PRESS
je extendedCtrl
afterCtrl:
mov bx, offset KbdExtendedScanTable
mov cx, KBD_NUM_EXTSCANMAPS ;cx <- number of entries
CEC_10:
cmp ax, ds:[bx].EMD_extScanCode
je CEC_30 ;branch if match
add bx, size ExtendedScanDef ;move to next entry
loop CEC_10 ;loop to try all entries
jmp short CEC_90 ;exit w/same code if no match
CEC_30:
mov al, ds:[bx].EMD_mappedScanCode ;al <- translated char
CEC_90:
and dl, KEY_RELEASE ;get press/release flag
or al, dl ;set back to original value
clc
ret
extendedShift:
stc
ret
;
; Here's the story: the <Break> character is on a variety
; of different keys on different types of keyboards, and is
; accessed by <ctrl>+<key>. On extended keyboards, it is on
; a special key with <Pause>. This key sends out an <ext-unctrl>
; the way the extended arrow keys send out <ext-unshift>, and
; then sends out the same scan code as <Num Lock>. On
; non-extended keyboards, the <Break> character is on the
; <Scroll Lock> key.
;
; Given the above, if the "swap <Ctrl> and <Caps Lock>" option
; is selected, and an <ext-Ctrl> comes through, it should actually
; be treated as <Caps Lock> since that's where the <Ctrl> actually
; is now. -- eca 2/22/91
;
extendedCtrl:
test ds:keyboardOptions, mask KO_SWAP_CTRL
jz afterCtrl
mov ax, SCANCODE_CAPS_LOCK
jmp afterCtrl
ConvertExtCodes endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FindScanCode - 815 cycles maximum if list is 16 elements
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
CALLED BY: INTERNAL: ProcessKeyElement
PASS: al - scan code (KEY_RELEASE bit clear)
keysDownList
RETURN: si - ptr to element in keysDownList, if found
bx - ptr to empty element if element not found,
or 0ffffh if element not found & list full
z flag - set if element found
DESTROYED: ah, cx
PSEUDO CODE/STRATEGY:
init di = ffff;
for each element [
if element is empty & di = ffff, copy ptr to di;
if element has matching scan code
exit with/address & flag showing found element;
]
exit with flag showing element not found.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 7/5/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FindScanCode proc near
mov si, offset keysDownList - size KeyDownElement
mov bx, -1 ;bx <- init: no empty element
mov cx, MAX_KEYS_DOWN ;cx <- # of elements to check
FSC_loop1:
add si, size KeyDownElement ;move up to next element
mov ah, ds:[si].KDE_scanCode ;ah <- scan code of element
tst ah ;see if empty element
jz FSC_Empty ;branch if empty slot
cmp ah, al ;see if matches search value
loopne FSC_loop1 ;loop while no branch
ret
FSC_Empty:
mov bx, si ;bx <- ptr to empty element
jmp short FSC_20
FSC_loop2:
add si, size KeyDownElement ;move up to next element
FSC_20:
cmp ds:[si].KDE_scanCode, al ;see if matches search value
loopne FSC_loop2 ;branch while no match
ret
FindScanCode endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessScanCode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Converts scan code to char value on new press only
CALLED BY: ProcessKeyElement
PASS: dl - != 0 iff extended scan code
ds:si - ptr to KeyDownElement
ds:di - ptr to KeyDef entry in kbd xlation tab
kbdXlateTab - keyboard translation table
kbdShiftState
kbdToggleState
kbdXState1
kdbLastChar
RETURN: ax - character value
ch - modifier bits used in translation
ds:si - .KDE_charFlags may be changed
ds:di - unchanged
kbdLastChar - unchanged
kbdShiftState - updated only if modifier char
kbdToggleState - updated only if toggle char
kbdXState1 - updated only if xtended state/toggle char
DESTROYED: bx, cl, dl
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 7/5/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessScanCode proc near
tst dl ;see if extended scan code
jnz extendedScan ;branch if extended scan
afterExtendedScan:
clr ch ;ch <- init: no modifiers
mov dh, ds:[di].KD_keyType ;dh <- key type
test dh, KD_STATE_KEY ;see if a state key
jz PSC_3 ;branch if not
or ds:[si].KDE_charFlags, mask CF_STATE_KEY ;set flag for state
PSC_3:
mov dl, dh ;dl <- key type & flags
and dl, KD_TYPE ;keep type bits only
test dh, KD_EXTENDED ;EXTENDED keyDef?
jz PSC_NotExtended ;branch if not extended case
ifdef PZ_PCGEOS_84J ; Pizza for 84J keybard
call Toshiba84JTenkey ; check tenkey mode
jc PSC_done
endif
call HandleExtendedDef ;handle extended case
jc PSC_NormalXlate ;if no extension, handle normal
;clear shift on extended key
andnf ds:[kbdToggleState], not (TOGGLE_SHIFTSTICK or \
TOGGLE_CTRLSTICK or \
TOGGLE_ALTSTICK or \
TOGGLE_FNCTSTICK)
andnf ds:[kbdModeIndState], not (TOGGLE_SHIFTSTICK or \
TOGGLE_CTRLSTICK or \
TOGGLE_ALTSTICK or \
TOGGLE_FNCTSTICK)
PSC_done:
ret
extendedScan:
ornf ds:[si].KDE_charFlags, mask CF_EXTENDED
jmp afterExtendedScan
PSC_NotExtended:
call HandleNormalDef ;handle normal KeyDef
jnc PSC_done ;branch if ALT translation
PSC_NormalXlate:
if DBCS_PCGEOS
mov ax, ds:[di].KD_char ;ax <- unshifted char
mov bx, ds:[di].KD_shiftChar ;bx <- shifted char
else
mov al, ds:[di].KD_char ;al <- unshifted char
mov bl, ds:[di].KD_shiftChar ;bl <- shifted char
endif
cmp dl, KEY_ALPHA
je PSC_CaseAlpha
cmp dl, KEY_NONALPHA
LONG je PSC_Shift
cmp dl, KEY_SOLO
je PSC_CaseSolo
cmp dl, KEY_PAD
je PSC_CasePad
cmp dl, KEY_SHIFT
je PSC_CaseShift
cmp dl, KEY_TOGGLE
LONG je PSC_CaseToggle
cmp dl, KEY_MISC
je PSC_Shift
cmp dl, KEY_SHIFT_STICK
je PSC_CaseStick
cmp dl, KEY_XSHIFT
LONG je PSC_CaseXShift
cmp dl, KEY_XTOGGLE
LONG je PSC_CaseXToggle
;
; Something unknown happened -- signal an error
;
if DBCS_PCGEOS
mov ax, C_NOT_A_CHARACTER ;put out "invalid" key code
else
mov ax, (0ffh shl 8) or VC_INVALID_KEY ; put out invalid key code
endif
ret
PSC_CaseSolo:
;
; Clear shift state
andnf ds:[kbdToggleState], not (TOGGLE_SHIFTSTICK or \
TOGGLE_CTRLSTICK or \
TOGGLE_ALTSTICK or \
TOGGLE_FNCTSTICK)
andnf ds:[kbdModeIndState], not (TOGGLE_SHIFTSTICK or \
TOGGLE_CTRLSTICK or \
TOGGLE_ALTSTICK or \
TOGGLE_FNCTSTICK)
if DBCS_PCGEOS
;shiftChar is unused
else
mov ah, bl ;shiftChar is really high byte
endif
ret
PSC_CaseAlpha:
test ds:[kbdToggleState], TOGGLE_CAPSLOCK
jz PSC_75 ;branch if no CAPSLOCK
xchg ax, bx ;swap if CAPSLOCK
PSC_75:
jmp short PSC_Shift
PSC_CasePad:
test ds:[si].KDE_charFlags, mask CF_EXTENDED
jnz PSC_85 ;don't toggle extended chars
test ds:[kbdToggleState], TOGGLE_NUMLOCK
jz PSC_85 ;branch if no NUMLOCK
xchg ax, bx ;swap if NUMLOCK
PSC_85:
jmp short PSC_Shift
PSC_ShiftStick:
xornf ds:[kbdToggleState], TOGGLE_SHIFTSTICK
xornf ds:[kbdModeIndState], TOGGLE_SHIFTSTICK
PSC_CaseShift:
ifdef PZ_PCGEOS_84J ; Pizza for 84J keyboard
;
; Switch Right Shift key to KANA "RO" key
;
test ds:[kbdToggleState], mask TS_SCROLLLOCK
je PSC_noKana ; check KANA mode
cmp ax, C_SYS_RIGHT_SHIFT ; check right shift key
jne PSC_noKana
test ds:[kbdShiftState], mask SS_LSHIFT
je PSC_noShiftKana ; check left shift is pressed
mov ax, C_FULLWIDTH_VERTICAL_BAR ; set Shift KANA "|"
jmp PSC_doneKana
PSC_noShiftKana:
mov ax, C_KATAKANA_LETTER_RO ; set KANA "RO"
PSC_doneKana:
and ds:[si].KDE_charFlags, not mask CF_STATE_KEY
jmp afterShiftRelease ; not work as shift key
PSC_noKana:
endif
;ax == <0xff><char> code
or ds:[kbdShiftState], bl ;show modifier key depressed
call KeyboardTrackBiosShift
test ds:[keyboardOptions], mask KO_SHIFT_RELEASE
jnz handleShiftRelease ;branch if special option
afterShiftRelease:
ret
PSC_Shift:
test ds:[kbdToggleState], TOGGLE_SHIFTSTICK
jnz PSC_125 ;branch if shifted
mov cl, SHIFT_KEYS ;cl <- shift mask
test ds:[kbdShiftState], cl ;see if SHIFT pressed
jz PSC_afterShift ;branch if no shift
PSC_125:
xchg ax, bx ;swap is shifted
PSC_afterShift:
;
; Now that shift state has been taken care of,
; clear any sticky settings
andnf ds:[kbdToggleState], not (TOGGLE_SHIFTSTICK or \
TOGGLE_CTRLSTICK or \
TOGGLE_ALTSTICK or \
TOGGLE_FNCTSTICK)
andnf ds:[kbdModeIndState], not (TOGGLE_SHIFTSTICK or \
TOGGLE_CTRLSTICK or \
TOGGLE_ALTSTICK or \
TOGGLE_FNCTSTICK)
ifdef PZ_PCGEOS_US_106J ; Pizza for US 106J keybard
; Support CapsLock key of Toshiba US and 106J keyboard
;
cmp ax, C_SYS_CAPS_LOCK
jne PSC_noCapsLock
or ds:[si].KDE_charFlags, mask CF_STATE_KEY ;set flag for state
mov bl, mask TS_CAPSLOCK
jmp PSC_CaseToggle
PSC_noCapsLock:
endif
;
; If the character generated with or without <Shift> is the
; same, then don't add <Shift> in as a modifier used. This
; allows <Shift> to go through as a modifier for the space
; bar (or for any such keys on foreign keyboards). This
; will normally be ignored anyway, but allows using modifiers
; with spacebar as shortcuts (eg. <Shift>-spacebar) -- eca 11/30/92
;
cmp ax, bx ;same key w/ or w/o <Shift>?
je PSC_done2 ;branch if same
or ch, cl ;show modifiers used
PSC_done2:
ret
PSC_CaseStick:
if DBCS_PCGEOS
; ax <- character to send
; bx <- ShiftState to change
cmp ax, C_SYS_LEFT_SHIFT
je PSC_ShiftStick ;branch if shift
cmp ax, C_SYS_LEFT_CTRL
je PSC_CtrlStick ;branch if ctrl
else
; al <- character to send
; bl <- ShiftState to change
cmp al, VC_LSHIFT
je PSC_ShiftStick ;branch if shift
cmp al, VC_LCTRL
je PSC_CtrlStick ;branch if ctrl
endif
xornf ds:[kbdToggleState], TOGGLE_ALTSTICK
xornf ds:[kbdModeIndState], TOGGLE_ALTSTICK
jmp short PSC_CaseShift
PSC_CaseToggle:
xor ds:[kbdToggleState], bl ;toggle toggle key
call KeyboardTrackBiosToggle
PSC_HandleToggle:
test dh, KD_SET_LED ;see if we should change LED
jz PSC_done2 ;branch if not
xor ds:[kbdModeIndState], bl ;toggle indicator state
jmp SetIndicatorState ;change LEDs
PSC_CaseXShift:
or ds:[kbdXState1], bl ;show x modifier key depressed
ret ;return <0xff><char> code
PSC_CaseXToggle:
xor ds:[kbdXState1], bl ;toggle modifier state
jmp short PSC_HandleToggle
PSC_CtrlStick:
xornf ds:[kbdToggleState], TOGGLE_CTRLSTICK
xornf ds:[kbdModeIndState], TOGGLE_CTRLSTICK
jmp short PSC_CaseShift
;
; The Europeans want the <Caps Lock> key to behave as such:
; <Caps Lock> key turns CAPSLOCK on
; <Shift> turns CAPSLOCK off
;
handleShiftRelease:
test bl, SHIFT_KEYS ;shift keys?
jz afterShiftRelease ;branch if not shift keys
andnf ds:[kbdToggleState], not (TOGGLE_CAPSLOCK)
call KeyboardTrackBiosToggle
andnf ds:[kbdModeIndState], not (TOGGLE_CAPSLOCK)
jmp SetIndicatorState
ProcessScanCode endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HandleExtendedDef
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Handle case of KeyDef containing extended definition. If
Alt, Ctrl, or Alt Ctrl pressed & charValue exists for that
case, use it. Otherwise, just determine virtual/char
orientation of base & shift case.
CALLED BY: INTERNAL:
PASS: ch - shift modifiers used in translation so far
dh - First byte of KeyDef for this scan code, complete
dl - keyType only, for this scan code
ds:[di] - pointer to KeyDef for scan code being processed
RETURN:
if (carry clear) {
/* scan code translated */
ax - charValue
ch - updated w/any modifier bits involved w/translation
bx, cl - destroyed
} else {
/* scan code not translated */
ah - 0xff or 00, based on vrt/char flag for key base case
bh - 0xff or 00, based on vrt/char flag for key shift case
al, bl, cx - destroyed
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/19/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
.assert offset kbdToggleState eq (offset kbdShiftState + 1)
HandleExtendedDef proc near
push di
mov bl, ds:[di].KD_extEntry ;bl <- # of extended entry
clr bh
mov di, bx ;di <- # of ext entry
if DBCS_PCGEOS
CheckHack <(size ExtendedDef) eq 16>
shl di, 1
else
CheckHack <(size ExtendedDef) eq 8>
endif
shl di, 1 ;*8 to get entry offset
shl di, 1
shl di, 1
mov ax, {word}ds:[kbdShiftState] ;al <- kbd shift state
;ah <- toggle state
SBCS < clr bl >
DBCS < clr bx >
test ax, SHIFT_KEYS or (TOGGLE_SHIFTSTICK shl 8)
jz HED_noShift
ornf bl, EXT_SHIFT_MASK ;use shifted key
HED_noShift:
test ax, CTRL_KEYS or (TOGGLE_CTRLSTICK shl 8)
jz HED_noCtrl
ornf bl, EXT_CTRL_MASK ;use ctrl key
HED_noCtrl:
test ax, ALT_KEYS or (TOGGLE_ALTSTICK shl 8)
jz HED_noAlt
ornf bl, EXT_ALT_MASK ;use alt key
HED_noAlt:
if PZ_PCGEOS ; Pizza for all keyboard
; Support Kana of Toshiba keyboard
;
cmp bl, (mask EO_SHIFT or mask EO_CTRL)
je notExtended ; ignore <shift><ctrl>-key
cmp bl, (mask EO_SHIFT or mask EO_ALT)
je notExtended ; ignore <shift><alt>-key
test ds:[kbdToggleState], mask TS_SCROLLLOCK
je HED_noKana ; check Kana mode
tst bl ; check kana or shift+kana
jne HED_noOnlyKana
mov bl, (mask EO_SHIFT or mask EO_CTRL) ; set <kana> code
jmp HED_noKana
HED_noOnlyKana:
cmp bl, EXT_SHIFT_MASK
jne HED_noKana
mov bl, (mask EO_SHIFT or mask EO_ALT) ; set <shift+kana> code
HED_noKana:
endif
DBCS < cmp bl, EXT_SHIFT_MASK ;see if key or <shift>-key >
DBCS < jbe notExtended ;if so, not really extended >
SBCS < clr bh ;bx <- offset >
mov cl, ds:bitTable[bx] ;cl <- mask for offset
DBCS < shl bx >
SBCS < tst {byte}ds:KbdExtendedDefTable[di][bx] >
DBCS < tst {Chars}ds:KbdExtendedDefTable[di][bx][-3] >
je notExtended ;branch if no extenstion
SBCS < cmp bl, EXT_SHIFT_MASK ;see if key or <shift>-key >
SBCS < jbe notExtended ;if so, not really extended >
test ds:KbdExtendedDefTable[di].EDD_charAccents, cl
jnz doAccent ;branch if an accent char
afterAccent:
SBCS < mov ah, VC_ISANSI ;ah <- flag: assume not virtual>
SBCS < test ds:KbdExtendedDefTable[di].EDD_charSysFlags, cl >
SBCS < jz notVirtual ;branch if bit was clear >
SBCS < mov ah, VC_ISCTRL ;ah <- flag: virtual char >
if DO_EXTENDED_CHARACTER_SET
SBCS < call HandleExtendedSet ;ah <- correct char set >
endif
SBCS < notVirtual: >
or ch, al ;set CTRL, ALT, & SHIFT info,
; clears carry (to indicate
; translation)
SBCS < mov al, {byte}ds:KbdExtendedDefTable[di][bx] >
DBCS < mov ax, {Chars}ds:KbdExtendedDefTable[di][bx][-3] >
finishUp:
pop di ;al <- char value
ret
notExtended:
if DBCS_PCGEOS
else
clr ah
clr bh
test ds:KbdExtendedDefTable[di].EDD_charSysFlags, EV_KEY
je baseNotVirtual ;branch if base key not virtual
dec ah ;ah <- 0xff: base is virtual
baseNotVirtual:
test ds:KbdExtendedDefTable[di].EDD_charSysFlags, EV_SHIFT
je shiftNotVirtual ;branch if shifted not virtual
dec bh ;bh <- 0xff: shifted is virtual
shiftNotVirtual:
endif
stc ;indicate no translation
jmp finishUp
doAccent:
push ax, bx
SBCS < mov al, {byte}ds:KbdExtendedDefTable[di][bx] >
;al <- char value
DBCS < mov ax, {Chars}ds:KbdExtendedDefTable[di][bx][-3] >
clr bx
accentLoop:
SBCS < cmp {byte}ds:KbdAccentTable[bx], al >
DBCS < cmp {Chars}ds:KbdAccentTable[bx], ax >
je foundAccent ;branch if match
inc bx ;inc ptr into table
DBCS < inc bx >
EC < cmp bx, KBD_NUM_ACCENTS ;>
EC < ERROR_AE KBD_BAD_ACCENT_TABLE ;>
jmp accentLoop ;branch while more
foundAccent:
SBCS < mov ds:kbdAccentPending, al ;indicate accent pending >
DBCS < mov ds:kbdAccentPending, ax ;indicate accent pending >
mov ds:kbdAccentOffset, bl ;store offset in table
or ds:[si].KDE_charFlags, mask CF_TEMP_ACCENT
pop ax, bx
jmp afterAccent
HandleExtendedDef endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HandleExtendedSet
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determine if extended char should be in non-ctrl set
CALLED BY: HandleExtendedDef
PASS: di -> offset into table
bx -> offset into ExtendedDef struct
ds -> dgroup
ah -> VC_ISCTRL
RETURN: ah <- char set for key
DESTROYED: nothing
SIDE EFFECTS:
none
PSEUDO CODE/STRATEGY:
Search ExtendedExtendedCharTable for matching offset
If located, return correct type
REVISION HISTORY:
Name Date Description
---- ---- -----------
TS 3/ 2/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if DO_EXTENDED_CHARACTER_SET
if not DBCS_PCGEOS
HandleExtendedSet proc near
uses si
.enter
;
; Scan table for matching Def
mov si, offset KbdExtendedExtendedTable
topOfLoop:
cmp di, ds:[si].EED_di ; does DI match?
je checkBX ; => matches!
afterCheck:
add si, size ExtendedExtendedDef ; go to next def
cmp si, offset KbdExtendedExtendedTableEnd
jb topOfLoop ; => check next def
done:
.leave
ret
checkBX:
cmp bx, ds:[si].EED_bx ; does BX match?
jne afterCheck ; => no match...
mov ah, ds:[si].EED_charSet ; get correct set
jmp done
HandleExtendedSet endp
endif ; not DBCS_PCGEOS
endif ; DO_EXTENDED_CHARACTER_SET
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HandleExtendedCapsLock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Flip the case of the extended char if the caps lock is on and
a different case of this char exists.
CALLED BY: HandleExtendedDef
PASS: ds = segment of tables
di = offset into kbdExtendedDefTable of extended key entry
SBCS:
bx = ExtOffsets (offset into ExtendedDef for this
char)
ah = char set (VC_ISxx)
DBCS:
bx = ExtOffsets shl 1 (offset+3 into ExtendedDef
for this char)
RETURN: bx = modified offset pointing to the char with the
right case
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
AY 2/21/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HandleNormalDef
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: handle case of normal KeyDef, checking for use of the ALT
translation.
CALLED BY: INTERNAL:
PASS: ch - Modifiers used in translation so far
dh - First byte of KeyDef for this scan code, complete
dl - keyType only, for this scan code
ds:[di] - pointer to KeyDef for scan code being processed
RETURN:
If carry clear: Scan code has been translated.
ax - charValue
ch - Updated to show any new modifiers involved in
translation
bh, cl - destroyed
If carry set: Scan code not translated.
ah - FF or 00, based on if keyType
bh - FF or 00, " "
cl - destroyed
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/19/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HandleNormalDef proc near
clr ah, bh ;ah <- char options
;bh <- char options
cmp dl, MIN_VIRTUAL_KEY_TYPE ;see if normal or virtual
jb HND_50 ;branch if normal
dec ah ;ah <- 0xff: virtual
dec bh ;bh <- 0xff: virtual
HND_50:
mov cl, ds:[di].KD_keyType ;cl <- key type
test cl, KD_ACCENT ;see if an accent char
je HND_notAccent ;branch if not an accent
mov ah, 0ffh ;ah <- 0xff: virtual
HND_notAccent:
test cl, KD_EXTENDED ;see if extended
je HND_90 ;branch if normal
CheckHack <kbdShiftState + size byte eq kbdToggleState>
test {word} ds:[kbdShiftState], \
(CTRL_KEYS) or (TOGGLE_CTRLSTICK) shl 8
;see if CTRL mode on
jnz HND_90 ;if so, can't use ALT value
test ds:[kbdShiftState], ALT_KEYS ;see if ALT pressed
jz HND_90 ;if no ALT press, exit
or ch, ALT_KEYS ;ch <- modifiers used
mov al, ds:[di].KD_extEntry ;al <- extended entry
clc ;indicate translation
ret
HND_90:
stc ;indicate no translation
ret
HandleNormalDef endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ProcessStateRelease
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Monitors SHIFT & MODIFIER key releases
CALLED BY: ProcessKeyElement
PASS: ds:di - pointer to KeyDef entry
kbdShiftState
kbdXState1
RETURN: ds:si - unchanged
ds:di - unchanged
ax, bx, & cx - untouched
kbdShiftState - updated only if modifier char
kbdXState1 - updated only if extended modifier char
DESTROYED: dx
PSEUDO CODE/STRATEGY:
get pointer to char entry in kbdTabUSExtd;
if KEY_SHIFT {
AND kbdShiftState w/(0ffh XOR data2);
} else if KEY_XSHIFT {
AND kbdXState1 w/(0ffh XOR data2);
}
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
doug 7/5/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessStateRelease proc near
mov dl, ds:[di].KD_keyType ;dl <- key type
and dl, KD_TYPE ;keep only type bits
if DBCS_PCGEOS
mov dh, {byte}ds:[di].KD_shiftChar ;dh <- shifted char / data2
else
mov dh, ds:[di].KD_shiftChar ;dh <- shifted char / data2
endif
;
; Ironically, if the keyboard is handling the toggle keys, we have
; to do more work to toggle the state bits on the release as well
; as on the press.
;
test ds:[KbdHeader].KCH_flags, mask KCF_KBD_HANDLES_TOGGLES
jz lookForShift
cmp dl, KEY_TOGGLE
je PSR_CaseToggle
cmp dl, KEY_XTOGGLE
je PSR_CaseXToggle
lookForShift:
not dh ;dh <- inverse
cmp dl, KEY_SHIFT
je PSR_CaseShift ;branch if shift case
cmp dl, KEY_SHIFT_STICK
je PSR_CaseShift ;branch if sticky shift
cmp dl, KEY_XSHIFT
je PSR_CaseXShift ;branch if xshift case
done:
ret
PSR_CaseShift:
and ds:[kbdShiftState], dh ;indicate key up
call KeyboardTrackBiosShift
ret
PSR_CaseXShift:
and ds:[kbdXState1], dh ;indicate key up
ret
PSR_CaseXToggle:
xor ds:[kbdXState1], dh ;toggle modifier state
jmp short PSR_HandleToggle
PSR_CaseToggle:
xor ds:[kbdToggleState], dh ;toggle toggle key
call KeyboardTrackBiosToggle
PSR_HandleToggle:
test ds:[di].KD_keyType, KD_SET_LED ;see if we should change LED
jz done ;done if not
xor ds:[kbdModeIndState], dh ;toggle indicator state
push bx ; can't touch this...
call SetIndicatorState ;change LEDs
pop bx
jmp done
ProcessStateRelease endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AccentTranslation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Description
CALLED BY: EXTERNAL
PASS: ds:[si] - pointer to KeyDown entry
ds:[di] - pointer to keyDef entry
RETURN: KeyDownEntry modified to have new charValue if translation
possible
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 8/19/88 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AccentTranslation proc near
DBCS < tst ds:[kbdAccentPending] ;see if pending accent >
SBCS < mov al, ds:[kbdAccentPending] ;see if pending accent >
SBCS < tst al >
jz AT_SeeIfAccent ;branch if none pending
test ds:[di].KD_keyType, (KD_ACCENTABLE or KD_ACCENT)
jz AT_SeeIfAccent ;branch if not accentable
DBCS < mov ax, ds:[si].KDE_charValue >
DBCS < cmp ax, ds:[kbdAccentPending] ;see if accent hit twice >
SBCS < mov ah, byte ptr ds:[si].KDE_charValue >
SBCS < cmp ah, al ;see if accent hit twice >
je AT_80 ;branch if two accents
clr bx
mov cl, _NUM_ACCENTABLES ;cl <- # entries to check
AT_30:
DBCS < cmp ds:KbdAccentables[bx], ax >
SBCS < cmp ds:KbdAccentables[bx], ah >
je AT_40 ;branch if a match
DBCS < inc bx >
inc bx
dec cl
jnz AT_30 ;loop to check all entries
jz AT_90 ;if not found, quit
AT_40:
if DBCS_PCGEOS
CheckHack <(size AccentDef) eq 16>
else
CheckHack <(size AccentDef) eq 8>
endif
shl bx, 1 ;*8
shl bx, 1
shl bx, 1 ;bx <- offset of entry
mov al, ds:[kbdAccentOffset] ;al <- accent offset
clr ah ;
add bx, ax ;bx <- ptr to entry
SBCS < mov al, ds:KbdAccentables[bx] + _NUM_ACCENTABLES >
SBCS < or al, al >
DBCS < mov ax, ds:KbdAccentables[bx] + _NUM_ACCENTABLES*2 >
DBCS < tst ax >
je AT_90 ;branch if no translation
AT_80:
SBCS < mov byte ptr ds:[si].KDE_charValue, al >
DBCS < mov ds:[si].KDE_charValue, ax >
mov ds:[kbdAccentPending], 0 ;indicate no pending accent
ret
AT_90:
AT_SeeIfAccent:
test ds:[si].KDE_charFlags, mask CF_STATE_KEY
jnz ATHA_90 ;branch if state key
;
; Having a <Shift> key pressed is OK for an accent, but nothing
; else is.
;
test ds:[si].KDE_shiftState, not (mask SS_LSHIFT or mask SS_RSHIFT)
jnz AT_NoTempAccent
test ds:[di].KD_keyType, KD_ACCENT ;see if an accent char
jnz AT_HaveAccent ;branch if accent
AT_NoTempAccent:
mov ds:[kbdAccentPending], 0 ;indicate no pending accent
ret
AT_HaveAccent:
SBCS < mov al, byte ptr ds:[si].KDE_charValue ;al <- char >
DBCS < mov ax, ds:[si].KDE_charValue ;ax <- char >
clr bx
ATHA_10:
SBCS < cmp ds:KbdAccentTable[bx], al ;see if char matches >
DBCS < cmp {Chars}ds:KbdAccentTable[bx], ax ;see if char matches >
je ATHA_20 ;branch if match
inc bx ;inc ptr into table
DBCS < inc bx >
cmp bx, KBD_NUM_ACCENTS
jb ATHA_10
ret
ATHA_20:
SBCS < mov ds:[kbdAccentPending], al ;indicate accent pending >
DBCS < mov ds:[kbdAccentPending], ax ;indicate accent pending >
mov ds:[kbdAccentOffset], bl ;store offset in table
or ds:[si].KDE_charFlags, mask CF_TEMP_ACCENT
ATHA_90:
ret
AccentTranslation endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KeyboardTrackBiosShift
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Track the state of the shift keys in the BIOS data area
CALLED BY: ProcessScanCode, ProcessStateRelease
PASS: ds = dgroup
kbdShiftState = new state of shift modifiers
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 7/16/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifidn HARDWARE_TYPE, <PC>
KeyboardTrackBiosShiftFar proc far
call KeyboardTrackBiosShift
ret
KeyboardTrackBiosShiftFar endp
KeyboardTrackBiosShift proc near uses ax, es, bx
.enter
;
; Set ax & bh to contain the BiosKbdState and BiosAltKbdState records
; without any shift modifiers set. bl contains the current ShiftState
; record for the driver.
;
mov ax, BIOS_SEG
mov es, ax
mov ax, es:[BIOS_KBD_STATE]
mov bl, ds:[kbdShiftState]
mov bh, es:[BIOS_ALT_KBD_STATE]
andnf ax, not (mask BKS_LEFT_ALT or mask BKS_LEFT_CTRL or \
mask BKS_ALT_ACTIVE or mask BKS_CTRL_ACTIVE or\
mask BKS_LEFT_SHIFT or mask BKS_RIGHT_SHIFT)
andnf bh, not (mask BAKS_RIGHT_ALT or mask BAKS_RIGHT_CTRL)
;
; Set the ALT modifiers appropriately.
;
test bl, ALT_KEYS
jz ctrl
ornf ax, mask BKS_ALT_ACTIVE
test bl, mask SS_LALT
jz rightAlt
ornf ax, mask BKS_LEFT_ALT
rightAlt:
test bl, mask SS_RALT
jz ctrl
ornf bh, mask BAKS_RIGHT_ALT
ctrl:
;
; Set the CTRL modifiers appropriately.
;
test bl, CTRL_KEYS
jz shift
ornf ax, mask BKS_CTRL_ACTIVE
test bl, mask SS_LCTRL
jz rightCtrl
ornf ax, mask BKS_LEFT_CTRL
rightCtrl:
test bl, mask SS_RCTRL
jz shift
ornf bh, mask BAKS_RIGHT_CTRL
shift:
;
; Set the SHIFT modifiers appropriately.
;
shr bl ; they're both in the same word, so
shr bl ; it's easier...
andnf bl, 3
ornf al, bl
mov es:[BIOS_KBD_STATE], ax
mov es:[BIOS_ALT_KBD_STATE], bh
.leave
ret
KeyboardTrackBiosShift endp
else
KeyboardTrackBiosShift proc near
ret
KeyboardTrackBiosShift endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
KeyboardTrackBiosToggle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Track the changes to our kbdToggleState record in the
BIOS data area.
CALLED BY: ProcessScanCode
PASS: ds = dgroup
kbdToggleState = new state of toggle keys
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 7/16/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ifidn HARDWARE_TYPE, <PC>
KeyboardTrackBiosToggle proc near uses es, ax, cx
.enter
mov ax, BIOS_SEG
mov es, ax
mov al, es:[BIOS_KBD_STATE]
andnf al, not (mask BKS_CAPS_LOCK_ACTIVE or \
mask BKS_NUM_LOCK_ACTIVE or \
mask BKS_SCROLL_LOCK_ACTIVE)
mov ah, ds:[kbdToggleState]
mov cl, offset BKS_SCROLL_LOCK_ACTIVE
shl ah, cl
ornf al, ah
mov es:[BIOS_KBD_STATE], al
.leave
ret
KeyboardTrackBiosToggle endp
else
KeyboardTrackBiosToggle proc near
ret
KeyboardTrackBiosToggle endp
endif
ifdef PZ_PCGEOS_84J ; Pizza for 84J keybard
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Toshiba84JTenkey
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Generate a character code for tenkey mode
CALLED BY: ProcessScanCode
PASS: ds:si - ptr to KeyDownElement
kbdToggleState
RETURN: if (carry clear) {
/* tenkey code translated */
ax - charValue
ch - NULL
} else {
/* tenkey code not translated */
}
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tera 10/13/93 Initial version
Tera 11/22/93 Change char value to C_SYS_NUMPAD_*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
Toshiba84JTenkey proc near
.enter
test ds:[kbdToggleState], mask TS_NUMLOCK
je TJT_noTenkey
mov al, ds:[si].KDE_scanCode ; set scan code
cmp al, TT_SCAN_SEVEN
jne next1
mov ax, C_SYS_NUMPAD_7
jmp TJT_findTenkey
next1:
cmp al, TT_SCAN_EIGHT
jne next2
mov ax, C_SYS_NUMPAD_8
jmp TJT_findTenkey
next2:
cmp al, TT_SCAN_NINE
jne next3
mov ax, C_SYS_NUMPAD_9
jmp TJT_findTenkey
next3:
cmp al, TT_SCAN_ASTERISK
jne next4
mov ax, C_SYS_NUMPAD_MULTIPLY
jmp TJT_findTenkey
next4:
cmp al, TT_SCAN_FOUR
jne next5
mov ax, C_SYS_NUMPAD_4
jmp TJT_findTenkey
next5:
cmp al, TT_SCAN_FIVE
jne next6
mov ax, C_SYS_NUMPAD_5
jmp TJT_findTenkey
next6:
cmp al, TT_SCAN_SIX
jne next7
mov ax, C_SYS_NUMPAD_6
jmp TJT_findTenkey
next7:
cmp al, TT_SCAN_MINUS
jne next8
mov ax, C_SYS_NUMPAD_MINUS
jmp TJT_findTenkey
next8:
cmp al, TT_SCAN_ONE
jne next9
mov ax, C_SYS_NUMPAD_1
jmp TJT_findTenkey
next9:
cmp al, TT_SCAN_TWO
jne next10
mov ax, C_SYS_NUMPAD_2
jmp TJT_findTenkey
next10:
cmp al, TT_SCAN_THREE
jne next11
mov ax, C_SYS_NUMPAD_3
jmp TJT_findTenkey
next11:
cmp al, TT_SCAN_PLUS
jne next12
mov ax, C_SYS_NUMPAD_PLUS
jmp TJT_findTenkey
next12:
cmp al, TT_SCAN_ZERO
jne next13
mov ax, C_SYS_NUMPAD_0
jmp TJT_findTenkey
next13:
cmp al, TT_SCAN_COMMA
jne next14
mov ax, C_COMMA
jmp TJT_findTenkey
next14:
cmp al, TT_SCAN_PERIOD
jne next15
mov ax, C_SYS_NUMPAD_PERIOD
jmp TJT_findTenkey
next15:
cmp al, TT_SCAN_SLASH
jne next16
mov ax, C_SYS_NUMPAD_DIVIDE
jmp TJT_findTenkey
next16:
jmp TJT_noTenkey
TJT_findTenkey:
clr ch
stc ; set carry
jmp done
TJT_noTenkey:
clc ; clear carry
done:
.leave
ret
Toshiba84JTenkey endp
endif
Resident ends
| 26.981745 | 80 | 0.623909 |
fd313e17a4e7299ddd5fccb77ef8f552285786cb | 305 | asm | Assembly | programs/oeis/123/A123203.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/123/A123203.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/123/A123203.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A123203: A007318 * [1, 1, 4, 4, 4,...].
; 1,2,7,20,49,110,235,488,997,2018,4063,8156,16345,32726,65491,131024,262093,524234,1048519,2097092,4194241,8388542,16777147,33554360,67108789,134217650,268435375,536870828,1073741737,2147483558
mov $1,2
pow $1,$0
sub $0,$1
mul $0,3
sub $1,$0
sub $1,3
mov $0,$1
| 27.727273 | 194 | 0.711475 |
02190d47a6c2a85f2c6d4dc3da982e93da8f768a | 654 | asm | Assembly | programs/oeis/063/A063077.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/063/A063077.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/063/A063077.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A063077: a(n) = phi(n^2 + 1) - 2n.
; -1,0,-2,8,2,24,6,32,22,80,38,88,38,168,82,224,78,204,142,360,150,340,162,528,262,624,234,568,362,772,370,736,366,988,542,1224,470,1012,682,1520,730,1324,634,1688,922,1924,674,1744,1102,2300,1198,2056,1014,2808,1298,3024,1086,2572,1622,3192,1738,2948,1458,3712,1982,4224,1658,3464,2242,4228,2378,3696,1774,5328,2538,5464,2214,4708,2962,6032,2910,5196,2330,6888,3442,6644,2850,6016,3534,7920,3818,6584,3254,8648,4322,8304,3566,6972,4170,9592
mov $2,$0
add $0,1
pow $0,2
mov $3,$0
seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
add $0,1
sub $0,$3
sub $0,2
mov $4,$2
mul $4,$2
add $0,$4
| 43.6 | 441 | 0.701835 |
7e90aa84a4579baeb449496a52a72bcf745eb0a2 | 1,901 | asm | Assembly | scripts/fuchsiahouse2.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | scripts/fuchsiahouse2.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | scripts/fuchsiahouse2.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | FuchsiaHouse2Script:
jp EnableAutoTextBoxDrawing
FuchsiaHouse2TextPointers:
dw FuchsiaHouse2Text1
dw PickUpItemText
dw BoulderText
dw FuchsiaHouse2Text4
dw FuchsiaHouse2Text5
FuchsiaHouse2Text1:
TX_ASM
CheckEvent EVENT_GOT_HM04
jr nz, .subtract
ld b,GOLD_TEETH
call IsItemInBag
jr nz, .asm_3f30f
CheckEvent EVENT_GAVE_GOLD_TEETH
jr nz, .asm_60cba
ld hl, WardenGibberishText1
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
ld hl, WardenGibberishText3
jr nz, .asm_61238
ld hl, WardenGibberishText2
.asm_61238
call PrintText
jr .asm_52039
.asm_3f30f
ld hl, WardenTeethText1
call PrintText
ld a, GOLD_TEETH
ld [$ffdb], a
callba RemoveItemByID
SetEvent EVENT_GAVE_GOLD_TEETH
.asm_60cba
ld hl, WardenThankYouText
call PrintText
lb bc, HM_04, 1
call GiveItem
jr nc, .BagFull
ld hl, ReceivedHM04Text
call PrintText
SetEvent EVENT_GOT_HM04
jr .asm_52039
.subtract
ld hl, HM04ExplanationText
call PrintText
jr .asm_52039
.BagFull
ld hl, HM04NoRoomText
call PrintText
.asm_52039
jp TextScriptEnd
WardenGibberishText1:
TX_FAR _WardenGibberishText1
db "@"
WardenGibberishText2:
TX_FAR _WardenGibberishText2
db "@"
WardenGibberishText3:
TX_FAR _WardenGibberishText3
db "@"
WardenTeethText1:
TX_FAR _WardenTeethText1
db $0b
WardenTeethText2:
TX_FAR _WardenTeethText2
db "@"
WardenThankYouText:
TX_FAR _WardenThankYouText
db "@"
ReceivedHM04Text:
TX_FAR _ReceivedHM04Text
db $0B, "@"
HM04ExplanationText:
TX_FAR _HM04ExplanationText
db "@"
HM04NoRoomText:
TX_FAR _HM04NoRoomText
db "@"
FuchsiaHouse2Text5:
FuchsiaHouse2Text4:
TX_ASM
ld a, [H_SPRITEINDEX]
cp $4
ld hl, FuchsiaHouse2Text_7517b
jr nz, .asm_4c9a2
ld hl, FuchsiaHouse2Text_75176
.asm_4c9a2
call PrintText
jp TextScriptEnd
FuchsiaHouse2Text_75176:
TX_FAR _FuchsiaHouse2Text_75176
db "@"
FuchsiaHouse2Text_7517b:
TX_FAR _FuchsiaHouse2Text_7517b
db "@"
| 16.823009 | 33 | 0.800631 |
e3c49b6362f578002a1acdcaf950ebc25ea9f53c | 407 | asm | Assembly | libsrc/graphics/c128/textpixl.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/graphics/c128/textpixl.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/graphics/c128/textpixl.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ;
;
; Support char table (pseudo graph symbols) for the Commodore 128
; Sequence: blank, top-left, top-right, top-half, bottom-left, left-half, etc..
;
; $Id: textpixl.asm,v 1.3 2015/01/19 01:32:47 pauloscustodio Exp $
;
;
PUBLIC textpixl
.textpixl
defb 32, 126, 124, 98+128
defb 123, 97, 255, 108+128
defb 108, 127, 97+128, 123+128
defb 98, 124+128, 126+128, 32+128
| 20.35 | 79 | 0.628993 |
36a41ad56aa3c76b31f9ca510f97accd6b0dd69c | 27,695 | asm | Assembly | engine/games/card_flip.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 2 | 2022-02-17T11:11:03.000Z | 2022-02-21T03:41:01.000Z | engine/games/card_flip.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | engine/games/card_flip.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | CARDFLIP_LIGHT_OFF EQU "♂" ; $ef
CARDFLIP_LIGHT_ON EQU "♀" ; $f5
CARDFLIP_DECK_SIZE EQU 4 * 6
; two labels below called from inside ./dummy_game.asm
Unknown_e00ed:
; Graphics for an unused Game Corner
; game were meant to be here.
ret_e00ed:
ret
_CardFlip:
ld hl, wOptions
set NO_TEXT_SCROLL, [hl]
call ClearBGPalettes
call ClearTileMap
call ClearSprites
ld de, MUSIC_NONE
call PlayMusic
call DelayFrame
call DisableLCD
call LoadStandardFont
call LoadFontsExtra
ld hl, CardFlipLZ01
ld de, vTiles2 tile $00
call Decompress
ld hl, CardFlipLZ02
ld de, vTiles2 tile $3e
call Decompress
ld hl, CardFlipLZ03
ld de, vTiles0 tile $00
call Decompress
ld hl, CardFlipOffButtonGFX
ld de, vTiles0 tile CARDFLIP_LIGHT_OFF
ld bc, 1 tiles
call CopyBytes
ld hl, CardFlipOnButtonGFX
ld de, vTiles0 tile CARDFLIP_LIGHT_ON
ld bc, 1 tiles
call CopyBytes
call CardFlip_ShiftDigitsUpOnePixel
call CardFlip_InitTilemap
call CardFlip_InitAttrPals
call EnableLCD
call WaitBGMap2
ld a, %11100100
call DmgToCgbBGPals
lb de, %11100100, %11100100
call DmgToCgbObjPals
call DelayFrame
xor a
ld [wJumptableIndex], a
ld a, $2
ld [wCardFlipCursorY], a
ld [wCardFlipCursorX], a
ld de, MUSIC_NONE
call PlayMusic
.MasterLoop:
ld a, [wJumptableIndex]
bit 7, a
jr nz, .leavethegame
call .CardFlip
jr .MasterLoop
.leavethegame
call WaitSFX
ld de, SFX_QUIT_SLOTS
call PlaySFX
call WaitSFX
call ClearBGPalettes
ld hl, wOptions
res 4, [hl]
ret
.CardFlip:
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 .AskPlayWithThree
dw .DeductCoins
dw .ChooseACard
dw .PlaceYourBet
dw .CheckTheCard
dw .TabulateTheResult
dw .PlayAgain
dw .Quit
.Increment:
ld hl, wJumptableIndex
inc [hl]
ret
.AskPlayWithThree:
ld hl, .PlayWithThreeCoinsText
call CardFlip_UpdateCoinBalanceDisplay
call YesNoBox
jr c, .SaidNo
call CardFlip_ShuffleDeck
call .Increment
ret
.SaidNo:
ld a, 7
ld [wJumptableIndex], a
ret
.PlayWithThreeCoinsText:
; Play with three coins?
text_far UnknownText_0x1c5793
text_end
.DeductCoins:
ld a, [wCoins]
ld h, a
ld a, [wCoins + 1]
ld l, a
ld a, h
and a
jr nz, .deduct ; You have at least 256 coins.
ld a, l
cp 3
jr nc, .deduct ; You have at least 3 coins.
ld hl, .NotEnoughCoinsText
call CardFlip_UpdateCoinBalanceDisplay
ld a, 7
ld [wJumptableIndex], a
ret
.deduct
ld de, -3
add hl, de
ld a, h
ld [wCoins], a
ld a, l
ld [wCoins + 1], a
ld de, SFX_TRANSACTION
call PlaySFX
xor a
ldh [hBGMapMode], a
call CardFlip_PrintCoinBalance
ld a, $1
ldh [hBGMapMode], a
call WaitSFX
call .Increment
ret
.NotEnoughCoinsText:
; Not enough coins…
text_far UnknownText_0x1c57ab
text_end
.ChooseACard:
xor a
ldh [hBGMapMode], a
hlcoord 0, 0
lb bc, 12, 9
call CardFlip_FillGreenBox
hlcoord 9, 0
ld bc, SCREEN_WIDTH
ld a, [wCardFlipNumCardsPlayed]
call AddNTimes
ld [hl], CARDFLIP_LIGHT_ON
ld a, $1
ldh [hBGMapMode], a
ld c, 20
call DelayFrames
hlcoord 2, 0
call PlaceCardFaceDown
ld a, $1
ldh [hBGMapMode], a
ld c, 20
call DelayFrames
hlcoord 2, 6
call PlaceCardFaceDown
call WaitBGMap
ld hl, .ChooseACardText
call CardFlip_UpdateCoinBalanceDisplay
xor a
ld [wCardFlipWhichCard], a
.loop
call JoyTextDelay
ldh a, [hJoyLast]
and A_BUTTON
jr nz, .next
ld de, SFX_KINESIS
call PlaySFX
call PlaceOAMCardBorder
ld c, 4
call DelayFrames
ld hl, wCardFlipWhichCard
ld a, [hl]
xor $1
ld [hl], a
jr .loop
.next
ld de, SFX_SLOT_MACHINE_START
call PlaySFX
ld a, $3
.loop2
push af
call PlaceOAMCardBorder
ld c, 4
call DelayFrames
call ClearSprites
ld c, 4
call DelayFrames
pop af
dec a
jr nz, .loop2
ld hl, wCardFlipWhichCard
ld a, [hl]
push af
xor $1
ld [hl], a
call GetCoordsOfChosenCard
lb bc, 6, 5
call CardFlip_FillGreenBox
pop af
ld [wCardFlipWhichCard], a
call .Increment
ret
.ChooseACardText:
; Choose a card.
text_far UnknownText_0x1c57be
text_end
.PlaceYourBet:
ld hl, .PlaceYourBetText
call CardFlip_UpdateCoinBalanceDisplay
.betloop
call JoyTextDelay
ldh a, [hJoyLast]
and A_BUTTON
jr nz, .betdone
call ChooseCard_HandleJoypad
call CardFlip_UpdateCursorOAM
call DelayFrame
jr .betloop
.betdone
call .Increment
ret
.PlaceYourBetText:
; Place your bet.
text_far UnknownText_0x1c57ce
text_end
.CheckTheCard:
xor a
ldh [hVBlankCounter], a
call CardFlip_UpdateCursorOAM
call WaitSFX
ld de, SFX_CHOOSE_A_CARD
call PlaySFX
call WaitSFX
ld a, [wCardFlipNumCardsPlayed]
ld e, a
ld d, 0
ld hl, wDeck
add hl, de
add hl, de
ld a, [wCardFlipWhichCard]
ld e, a
add hl, de
ld a, [hl]
ld [wCardFlipFaceUpCard], a
ld e, a
ld hl, wDiscardPile
add hl, de
ld [hl], TRUE
call GetCoordsOfChosenCard
call CardFlip_DisplayCardFaceUp
call WaitBGMap2
call .Increment
ret
.TabulateTheResult:
call CardFlip_CheckWinCondition
call WaitPressAorB_BlinkCursor
call .Increment
ret
.PlayAgain:
call ClearSprites
ld hl, .PlayAgainText
call CardFlip_UpdateCoinBalanceDisplay
call YesNoBox
jr nc, .Continue
call .Increment
ret
.Continue:
ld a, [wCardFlipNumCardsPlayed]
inc a
ld [wCardFlipNumCardsPlayed], a
cp 12
jr c, .KeepTheCurrentDeck
call CardFlip_InitTilemap
ld a, $1
ldh [hBGMapMode], a
call CardFlip_ShuffleDeck
ld hl, .CardsShuffledText
call PrintText
jr .LoopAround
.KeepTheCurrentDeck:
call CardFlip_BlankDiscardedCardSlot
.LoopAround:
ld a, 1
ld [wJumptableIndex], a
ret
.PlayAgainText:
; Want to play again?
text_far UnknownText_0x1c57df
text_end
.CardsShuffledText:
; The cards have been shuffled.
text_far UnknownText_0x1c57f4
text_end
.Quit:
ld hl, wJumptableIndex
set 7, [hl]
ret
CardFlip_ShuffleDeck:
ld hl, wDeck
ld bc, CARDFLIP_DECK_SIZE
xor a
call ByteFill
ld de, wDeck
ld c, CARDFLIP_DECK_SIZE - 1
.loop
call Random
and $1f
cp CARDFLIP_DECK_SIZE
jr nc, .loop
ld l, a
ld h, $0
add hl, de
ld a, [hl]
and a
jr nz, .loop
ld [hl], c
dec c
jr nz, .loop
xor a
ld [wCardFlipNumCardsPlayed], a
ld hl, wDiscardPile
ld bc, CARDFLIP_DECK_SIZE
call ByteFill
ret
CollapseCursorPosition:
ld hl, 0
ld bc, 6
ld a, [wCardFlipCursorY]
call AddNTimes
ld b, $0
ld a, [wCardFlipCursorX]
ld c, a
add hl, bc
ret
GetCoordsOfChosenCard:
ld a, [wCardFlipWhichCard]
and a
jr nz, .BottomCard
hlcoord 2, 0
bcpixel 2, 3
jr .done
.BottomCard:
hlcoord 2, 6
bcpixel 8, 3
.done
ret
PlaceCardFaceDown:
xor a
ldh [hBGMapMode], a
ld de, .FaceDownCardTilemap
lb bc, 6, 5
call CardFlip_CopyToBox
ret
.FaceDownCardTilemap:
db $08, $09, $09, $09, $0a
db $0b, $28, $2b, $28, $0c
db $0b, $2c, $2d, $2e, $0c
db $0b, $2f, $30, $31, $0c
db $0b, $32, $33, $34, $0c
db $0d, $0e, $0e, $0e, $0f
CardFlip_DisplayCardFaceUp:
xor a
ldh [hBGMapMode], a
push hl
push hl
; Flip the card face up.
ld de, .FaceUpCardTilemap
lb bc, 6, 5
call CardFlip_CopyToBox
; Get the level and species of the upturned card.
ld a, [wCardFlipFaceUpCard]
ld e, a
ld d, 0
ld hl, .Deck
add hl, de
add hl, de
ld a, [hli]
ld e, a
ld d, [hl]
; Place the level.
pop hl
ld bc, 3 + SCREEN_WIDTH
add hl, bc
ld [hl], e
; Place the Pokepic.
ld bc, SCREEN_HEIGHT
add hl, bc
ld a, d
ld de, SCREEN_WIDTH
ld b, 3
.row
push hl
ld c, 3
.col
ld [hli], a
inc a
dec c
jr nz, .col
pop hl
add hl, de
dec b
jr nz, .row
pop hl
; Pointless CGB check
ldh a, [hCGB]
and a
ret z
; Set the attributes
ld de, wAttrMap - wTileMap
add hl, de
ld a, [wCardFlipFaceUpCard]
and 3
inc a
lb bc, 6, 5
call CardFlip_FillBox
ret
.FaceUpCardTilemap:
db $18, $19, $19, $19, $1a
db $1b, $35, $7f, $7f, $1c
db $0b, $28, $28, $28, $0c
db $0b, $28, $28, $28, $0c
db $0b, $28, $28, $28, $0c
db $1d, $1e, $1e, $1e, $1f
.Deck:
; level, pic anchor (3x3)
db "1", $4e, "1", $57, "1", $69, "1", $60
db "2", $4e, "2", $57, "2", $69, "2", $60
db "3", $4e, "3", $57, "3", $69, "3", $60
db "4", $4e, "4", $57, "4", $69, "4", $60
db "5", $4e, "5", $57, "5", $69, "5", $60
db "6", $4e, "6", $57, "6", $69, "6", $60
CardFlip_UpdateCoinBalanceDisplay:
push hl
hlcoord 0, 12
ld b, 4
ld c, SCREEN_WIDTH - 2
call Textbox
pop hl
call PrintTextboxText
call CardFlip_PrintCoinBalance
ret
CardFlip_PrintCoinBalance:
hlcoord 9, 15
ld b, 1
ld c, 9
call Textbox
hlcoord 10, 16
ld de, .CoinStr
call PlaceString
hlcoord 15, 16
ld de, wCoins
lb bc, PRINTNUM_LEADINGZEROS | 2, 4
call PrintNum
ret
.CoinStr:
db "COIN@"
CardFlip_InitTilemap:
xor a
ldh [hBGMapMode], a
hlcoord 0, 0
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
ld a, $29
call ByteFill
hlcoord 9, 0
ld de, CardFlipTilemap
lb bc, 12, 11
call CardFlip_CopyToBox
hlcoord 0, 12
lb bc, 4, 18
call Textbox
ret
CardFlip_FillGreenBox:
ld a, $29
CardFlip_FillBox:
.row
push bc
push hl
.col
ld [hli], a
dec c
jr nz, .col
pop hl
ld bc, SCREEN_WIDTH
add hl, bc
pop bc
dec b
jr nz, .row
ret
CardFlip_CopyToBox:
.row
push bc
push hl
.col
ld a, [de]
inc de
ld [hli], a
dec c
jr nz, .col
pop hl
ld bc, SCREEN_WIDTH
add hl, bc
pop bc
dec b
jr nz, .row
ret
CardFlip_CopyOAM:
ld de, wVirtualOAMSprite00
ld a, [hli]
.loop
push af
ld a, [hli]
add b
ld [de], a ; y
inc de
ld a, [hli]
add c
ld [de], a ; x
inc de
ld a, [hli]
ld [de], a ; tile id
inc de
ld a, [hli]
ld [de], a ; attributes
inc de
pop af
dec a
jr nz, .loop
ret
CardFlip_ShiftDigitsUpOnePixel:
; The top rows of digits 1-9 become the bottom rows of 0-8,
; so this routine relies on the top rows being blank.
ld de, vTiles0 tile "0"
ld hl, vTiles0 tile "0" + 2
ld bc, 10 tiles - 2
call CopyBytes
ld hl, vTiles0 tile "9" + 1 tiles - 2
xor a
ld [hli], a
ld [hl], a
ret
CardFlip_BlankDiscardedCardSlot:
xor a
ldh [hBGMapMode], a
ld a, [wCardFlipFaceUpCard]
ld e, a
ld d, 0
and 3 ; get mon
ld c, a
ld b, 0
ld a, e
and $1c ; get level
srl a
add LOW(.Jumptable)
ld l, a
ld a, 0
adc HIGH(.Jumptable)
ld h, a
ld a, [hli]
ld h, [hl]
ld l, a
jp hl
.Jumptable:
dw .Level1
dw .Level2
dw .Level3
dw .Level4
dw .Level5
dw .Level6
.Level1:
ld hl, wDiscardPile + 4
add hl, de
ld a, [hl]
and a
jr nz, .discarded2
hlcoord 13, 3
add hl, bc
add hl, bc
ld [hl], $36
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $37
ret
.discarded2
hlcoord 13, 3
add hl, bc
add hl, bc
ld [hl], $36
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3d
ret
.Level2:
ld hl, wDiscardPile - 4
add hl, de
ld a, [hl]
and a
jr nz, .discarded1
hlcoord 13, 4
add hl, bc
add hl, bc
ld [hl], $3b
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3a
ret
.discarded1
hlcoord 13, 4
add hl, bc
add hl, bc
ld [hl], $3d
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3a
ret
.Level3:
ld hl, wDiscardPile + 4
add hl, de
ld a, [hl]
and a
jr nz, .discarded4
hlcoord 13, 6
add hl, bc
add hl, bc
ld [hl], $36
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $38
ret
.discarded4
hlcoord 13, 6
add hl, bc
add hl, bc
ld [hl], $36
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3d
ret
.Level4:
ld hl, wDiscardPile - 4
add hl, de
ld a, [hl]
and a
jr nz, .discarded3
hlcoord 13, 7
add hl, bc
add hl, bc
ld [hl], $3c
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3a
ret
.discarded3
hlcoord 13, 7
add hl, bc
add hl, bc
ld [hl], $3d
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3a
ret
.Level5:
ld hl, wDiscardPile + 4
add hl, de
ld a, [hl]
and a
jr nz, .discarded6
hlcoord 13, 9
add hl, bc
add hl, bc
ld [hl], $36
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $39
ret
.discarded6
hlcoord 13, 9
add hl, bc
add hl, bc
ld [hl], $36
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3d
ret
.Level6:
ld hl, wDiscardPile - 4
add hl, de
ld a, [hl]
and a
jr nz, .discarded5
hlcoord 13, 10
add hl, bc
add hl, bc
ld [hl], $3c
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3a
ret
.discarded5
hlcoord 13, 10
add hl, bc
add hl, bc
ld [hl], $3d
ld bc, SCREEN_WIDTH
add hl, bc
ld [hl], $3a
ret
CardFlip_CheckWinCondition:
call CollapseCursorPosition
add hl, hl
ld de, .Jumptable
add hl, de
ld a, [hli]
ld h, [hl]
ld l, a
jp hl
.Jumptable:
dw .Impossible
dw .Impossible
dw .PikaJiggly
dw .PikaJiggly
dw .PoliOddish
dw .PoliOddish
dw .Impossible
dw .Impossible
dw .Pikachu
dw .Jigglypuff
dw .Poliwag
dw .Oddish
dw .OneTwo
dw .One
dw .PikaOne
dw .JigglyOne
dw .PoliOne
dw .OddOne
dw .OneTwo
dw .Two
dw .PikaTwo
dw .JigglyTwo
dw .PoliTwo
dw .OddTwo
dw .ThreeFour
dw .Three
dw .PikaThree
dw .JigglyThree
dw .PoliThree
dw .OddThree
dw .ThreeFour
dw .Four
dw .PikaFour
dw .JigglyFour
dw .PoliFour
dw .OddFour
dw .FiveSix
dw .Five
dw .PikaFive
dw .JigglyFive
dw .PoliFive
dw .OddFive
dw .FiveSix
dw .Six
dw .PikaSix
dw .JigglySix
dw .PoliSix
dw .OddSix
.Impossible:
jp .Lose
.PikaJiggly:
ld a, [wCardFlipFaceUpCard]
and $2
jp nz, .Lose
jr .WinSix
.PoliOddish:
ld a, [wCardFlipFaceUpCard]
and $2
jr nz, .WinSix
jp .Lose
.WinSix:
ld c, $6
ld de, SFX_2ND_PLACE
jp .Payout
.OneTwo:
ld a, [wCardFlipFaceUpCard]
and $18
jr z, .WinNine
jp .Lose
.ThreeFour:
ld a, [wCardFlipFaceUpCard]
and $18
cp $8
jr z, .WinNine
jp .Lose
.FiveSix:
ld a, [wCardFlipFaceUpCard]
and $18
cp $10
jr z, .WinNine
jp .Lose
.WinNine:
ld c, $9
ld de, SFX_2ND_PLACE
jp .Payout
.Pikachu:
ld a, [wCardFlipFaceUpCard]
and $3
jr z, .WinTwelve
jp .Lose
.Jigglypuff:
ld a, [wCardFlipFaceUpCard]
and $3
cp $1
jr z, .WinTwelve
jp .Lose
.Poliwag:
ld a, [wCardFlipFaceUpCard]
and $3
cp $2
jr z, .WinTwelve
jp .Lose
.Oddish:
ld a, [wCardFlipFaceUpCard]
and $3
cp $3
jr z, .WinTwelve
jp .Lose
.WinTwelve:
ld c, $c
ld de, SFX_2ND_PLACE
jp .Payout
.One:
ld a, [wCardFlipFaceUpCard]
and $1c
jr z, .WinEighteen
jp .Lose
.Two:
ld a, [wCardFlipFaceUpCard]
and $1c
cp $4
jr z, .WinEighteen
jp .Lose
.Three:
ld a, [wCardFlipFaceUpCard]
and $1c
cp $8
jr z, .WinEighteen
jp .Lose
.Four:
ld a, [wCardFlipFaceUpCard]
and $1c
cp $c
jr z, .WinEighteen
jp .Lose
.Five:
ld a, [wCardFlipFaceUpCard]
and $1c
cp $10
jr z, .WinEighteen
jp .Lose
.Six:
ld a, [wCardFlipFaceUpCard]
and $1c
cp $14
jr z, .WinEighteen
jp .Lose
.WinEighteen:
ld c, $12
ld de, SFX_2ND_PLACE
jp .Payout
.PikaOne:
ld e, $0
jr .CheckWin72
.JigglyOne:
ld e, $1
jr .CheckWin72
.PoliOne:
ld e, $2
jr .CheckWin72
.OddOne:
ld e, $3
jr .CheckWin72
.PikaTwo:
ld e, $4
jr .CheckWin72
.JigglyTwo:
ld e, $5
jr .CheckWin72
.PoliTwo:
ld e, $6
jr .CheckWin72
.OddTwo:
ld e, $7
jr .CheckWin72
.PikaThree:
ld e, $8
jr .CheckWin72
.JigglyThree:
ld e, $9
jr .CheckWin72
.PoliThree:
ld e, $a
jr .CheckWin72
.OddThree:
ld e, $b
jr .CheckWin72
.PikaFour:
ld e, $c
jr .CheckWin72
.JigglyFour:
ld e, $d
jr .CheckWin72
.PoliFour:
ld e, $e
jr .CheckWin72
.OddFour:
ld e, $f
jr .CheckWin72
.PikaFive:
ld e, $10
jr .CheckWin72
.JigglyFive:
ld e, $11
jr .CheckWin72
.PoliFive:
ld e, $12
jr .CheckWin72
.OddFive:
ld e, $13
jr .CheckWin72
.PikaSix:
ld e, $14
jr .CheckWin72
.JigglySix:
ld e, $15
jr .CheckWin72
.PoliSix:
ld e, $16
jr .CheckWin72
.OddSix:
ld e, $17
.CheckWin72:
ld a, [wCardFlipFaceUpCard]
cp e
jr nz, .Lose
ld c, 72
ld de, SFX_2ND_PLACE
jr .Payout
.Lose:
ld de, SFX_WRONG
call PlaySFX
ld hl, .Text_Darn
call CardFlip_UpdateCoinBalanceDisplay
call WaitSFX
ret
.Payout:
push bc
push de
ld hl, .Text_Yeah
call CardFlip_UpdateCoinBalanceDisplay
pop de
call PlaySFX
call WaitSFX
pop bc
.loop
push bc
call .IsCoinCaseFull
jr c, .full
call .AddCoinPlaySFX
.full
call CardFlip_PrintCoinBalance
ld c, 2
call DelayFrames
pop bc
dec c
jr nz, .loop
ret
.Text_Yeah:
; Yeah!
text_far UnknownText_0x1c5813
text_end
.Text_Darn:
; Darn…
text_far UnknownText_0x1c581a
text_end
.AddCoinPlaySFX:
ld a, [wCoins]
ld h, a
ld a, [wCoins + 1]
ld l, a
inc hl
ld a, h
ld [wCoins], a
ld a, l
ld [wCoins + 1], a
ld de, SFX_PAY_DAY
call PlaySFX
ret
.IsCoinCaseFull:
ld a, [wCoins]
cp HIGH(MAX_COINS)
jr c, .less
jr z, .check_low
jr .more
.check_low
ld a, [wCoins + 1]
cp LOW(MAX_COINS)
jr c, .less
.more
scf
ret
.less
and a
ret
PlaceOAMCardBorder:
call GetCoordsOfChosenCard
ld hl, .SpriteData
call CardFlip_CopyOAM
ret
.SpriteData:
db 18
dsprite 0, 0, 0, 0, $04, 0
dsprite 0, 0, 1, 0, $06, 0
dsprite 0, 0, 2, 0, $06, 0
dsprite 0, 0, 3, 0, $06, 0
dsprite 0, 0, 4, 0, $04, 0 | X_FLIP
dsprite 1, 0, 0, 0, $05, 0
dsprite 1, 0, 4, 0, $05, 0 | X_FLIP
dsprite 2, 0, 0, 0, $05, 0
dsprite 2, 0, 4, 0, $05, 0 | X_FLIP
dsprite 3, 0, 0, 0, $05, 0
dsprite 3, 0, 4, 0, $05, 0 | X_FLIP
dsprite 4, 0, 0, 0, $05, $00
dsprite 4, 0, 4, 0, $05, 0 | X_FLIP
dsprite 5, 0, 0, 0, $04, 0 | Y_FLIP
dsprite 5, 0, 1, 0, $06, 0 | Y_FLIP
dsprite 5, 0, 2, 0, $06, 0 | Y_FLIP
dsprite 5, 0, 3, 0, $06, 0 | Y_FLIP
dsprite 5, 0, 4, 0, $04, 0 | X_FLIP | Y_FLIP
ChooseCard_HandleJoypad:
ld hl, hJoyLast
ld a, [hl]
and D_LEFT
jp nz, .d_left
ld a, [hl]
and D_RIGHT
jp nz, .d_right
ld a, [hl]
and D_UP
jp nz, .d_up
ld a, [hl]
and D_DOWN
jp nz, .d_down
ret
.d_left
ld hl, wCardFlipCursorX
ld a, [wCardFlipCursorY]
and a
jr z, .mon_pair_left
cp $1
jr z, .mon_group_left
ld a, [hl]
and a
ret z
dec [hl]
jp .play_sound
.mon_group_left
ld a, [hl]
cp $3
jr c, .left_to_number_gp
dec [hl]
jp .play_sound
.mon_pair_left
ld a, [hl]
and $e
ld [hl], a
cp $3
jr c, .left_to_number_gp
dec [hl]
dec [hl]
jp .play_sound
.left_to_number_gp
ld a, $2
ld [wCardFlipCursorY], a
ld a, $1
ld [wCardFlipCursorX], a
jp .play_sound
.d_right
ld hl, wCardFlipCursorX
ld a, [wCardFlipCursorY]
and a
jr z, .mon_pair_right
ld a, [hl]
cp $5
ret nc
inc [hl]
jr .play_sound
.mon_pair_right
ld a, [hl]
and $e
ld [hl], a
cp $4
ret nc
inc [hl]
inc [hl]
jr .play_sound
.d_up
ld hl, wCardFlipCursorY
ld a, [wCardFlipCursorX]
and a
jr z, .num_pair_up
cp $1
jr z, .num_gp_up
ld a, [hl]
and a
ret z
dec [hl]
jr .play_sound
.num_gp_up
ld a, [hl]
cp $3
jr c, .up_to_mon_group
dec [hl]
jr .play_sound
.num_pair_up
ld a, [hl]
and $e
ld [hl], a
cp $3
jr c, .up_to_mon_group
dec [hl]
dec [hl]
jr .play_sound
.up_to_mon_group
ld a, $1
ld [wCardFlipCursorY], a
ld a, $2
ld [wCardFlipCursorX], a
jr .play_sound
.d_down
ld hl, wCardFlipCursorY
ld a, [wCardFlipCursorX]
and a
jr z, .num_pair_down
ld hl, wCardFlipCursorY
ld a, [hl]
cp $7
ret nc
inc [hl]
jr .play_sound
.num_pair_down
ld a, [hl]
and $e
ld [hl], a
cp $6
ret nc
inc [hl]
inc [hl]
.play_sound
ld de, SFX_POKEBALLS_PLACED_ON_TABLE
call PlaySFX
ret
CardFlip_UpdateCursorOAM:
call ClearSprites
ldh a, [hCGB]
and a
jr nz, .skip
ldh a, [hVBlankCounter]
and $4
ret nz
.skip
call CollapseCursorPosition
add hl, hl
add hl, hl
ld de, .OAMData
add hl, de
ld a, [hli]
ld c, a
ld a, [hli]
ld b, a
ld a, [hli]
ld h, [hl]
ld l, a
call CardFlip_CopyOAM
ret
.OAMData:
cardflip_cursor: MACRO
if _NARG >= 5
dbpixel \1, \2, \3, \4
dw \5
else
dbpixel \1, \2
dw \3
endc
ENDM
cardflip_cursor 11, 2, .Impossible
cardflip_cursor 12, 2, .Impossible
cardflip_cursor 13, 2, .PokeGroupPair
cardflip_cursor 13, 2, .PokeGroupPair
cardflip_cursor 17, 2, .PokeGroupPair
cardflip_cursor 17, 2, .PokeGroupPair
cardflip_cursor 11, 3, .Impossible
cardflip_cursor 12, 3, .Impossible
cardflip_cursor 13, 3, .PokeGroup
cardflip_cursor 15, 3, .PokeGroup
cardflip_cursor 17, 3, .PokeGroup
cardflip_cursor 19, 3, .PokeGroup
cardflip_cursor 11, 5, .NumGroupPair
cardflip_cursor 12, 5, .NumGroup
cardflip_cursor 13, 5, .SingleTile
cardflip_cursor 15, 5, .SingleTile
cardflip_cursor 17, 5, .SingleTile
cardflip_cursor 19, 5, .SingleTile
cardflip_cursor 11, 5, .NumGroupPair
cardflip_cursor 12, 6, 0, 4, .NumGroup
cardflip_cursor 13, 6, 0, 4, .SingleTile
cardflip_cursor 15, 6, 0, 4, .SingleTile
cardflip_cursor 17, 6, 0, 4, .SingleTile
cardflip_cursor 19, 6, 0, 4, .SingleTile
cardflip_cursor 11, 8, .NumGroupPair
cardflip_cursor 12, 8, .NumGroup
cardflip_cursor 13, 8, .SingleTile
cardflip_cursor 15, 8, .SingleTile
cardflip_cursor 17, 8, .SingleTile
cardflip_cursor 19, 8, .SingleTile
cardflip_cursor 11, 8, .NumGroupPair
cardflip_cursor 12, 9, 0, 4, .NumGroup
cardflip_cursor 13, 9, 0, 4, .SingleTile
cardflip_cursor 15, 9, 0, 4, .SingleTile
cardflip_cursor 17, 9, 0, 4, .SingleTile
cardflip_cursor 19, 9, 0, 4, .SingleTile
cardflip_cursor 11, 11, .NumGroupPair
cardflip_cursor 12, 11, .NumGroup
cardflip_cursor 13, 11, .SingleTile
cardflip_cursor 15, 11, .SingleTile
cardflip_cursor 17, 11, .SingleTile
cardflip_cursor 19, 11, .SingleTile
cardflip_cursor 11, 11, .NumGroupPair
cardflip_cursor 12, 12, 0, 4, .NumGroup
cardflip_cursor 13, 12, 0, 4, .SingleTile
cardflip_cursor 15, 12, 0, 4, .SingleTile
cardflip_cursor 17, 12, 0, 4, .SingleTile
cardflip_cursor 19, 12, 0, 4, .SingleTile
.SingleTile:
db 6
dsprite 0, 0, -1, 7, $00, 0 | PRIORITY
dsprite 0, 0, 0, 0, $02, 0 | PRIORITY
dsprite 0, 0, 1, 0, $03, 0 | PRIORITY
dsprite 0, 5, -1, 7, $00, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 0, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 1, 0, $03, 0 | PRIORITY
.PokeGroup:
db 26
dsprite 0, 0, -1, 7, $00, 0 | PRIORITY
dsprite 0, 0, 0, 0, $02, 0 | PRIORITY
dsprite 0, 0, 1, 0, $00, 0 | X_FLIP | PRIORITY
dsprite 1, 0, -1, 7, $01, 0 | PRIORITY
dsprite 1, 0, 1, 0, $01, 0 | X_FLIP | PRIORITY
dsprite 2, 0, -1, 7, $01, 0 | PRIORITY
dsprite 2, 0, 1, 0, $03, 0 | PRIORITY
dsprite 3, 0, -1, 7, $01, 0 | PRIORITY
dsprite 3, 0, 1, 0, $03, 0 | PRIORITY
dsprite 4, 0, -1, 7, $01, 0 | PRIORITY
dsprite 4, 0, 1, 0, $03, 0 | PRIORITY
dsprite 5, 0, -1, 7, $01, 0 | PRIORITY
dsprite 5, 0, 1, 0, $03, 0 | PRIORITY
dsprite 6, 0, -1, 7, $01, 0 | PRIORITY
dsprite 6, 0, 1, 0, $03, 0 | PRIORITY
dsprite 7, 0, -1, 7, $01, 0 | PRIORITY
dsprite 7, 0, 1, 0, $03, 0 | PRIORITY
dsprite 8, 0, -1, 7, $01, 0 | PRIORITY
dsprite 8, 0, 1, 0, $03, 0 | PRIORITY
dsprite 9, 0, -1, 7, $01, 0 | PRIORITY
dsprite 9, 0, 1, 0, $03, 0 | PRIORITY
dsprite 10, 0, -1, 7, $01, 0 | PRIORITY
dsprite 10, 0, 1, 0, $03, 0 | PRIORITY
dsprite 10, 1, -1, 7, $00, 0 | Y_FLIP | PRIORITY
dsprite 10, 1, 0, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 10, 1, 1, 0, $03, 0 | PRIORITY
.NumGroup:
db 20
dsprite 0, 0, -1, 7, $00, 0 | PRIORITY
dsprite 0, 0, 0, 0, $02, 0 | PRIORITY
dsprite 0, 0, 1, 0, $02, 0 | PRIORITY
dsprite 0, 0, 2, 0, $03, 0 | PRIORITY
dsprite 0, 0, 3, 0, $02, 0 | PRIORITY
dsprite 0, 0, 4, 0, $03, 0 | PRIORITY
dsprite 0, 0, 5, 0, $02, 0 | PRIORITY
dsprite 0, 0, 6, 0, $03, 0 | PRIORITY
dsprite 0, 0, 7, 0, $02, 0 | PRIORITY
dsprite 0, 0, 8, 0, $03, 0 | PRIORITY
dsprite 0, 5, -1, 7, $00, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 0, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 1, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 2, 0, $03, 0 | PRIORITY
dsprite 0, 5, 3, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 4, 0, $03, 0 | PRIORITY
dsprite 0, 5, 5, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 6, 0, $03, 0 | PRIORITY
dsprite 0, 5, 7, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 0, 5, 8, 0, $03, 0 | PRIORITY
.NumGroupPair:
db 30
dsprite 0, 0, 0, 0, $00, 0 | PRIORITY
dsprite 0, 0, 1, 0, $02, 0 | PRIORITY
dsprite 0, 0, 2, 0, $02, 0 | PRIORITY
dsprite 0, 0, 3, 0, $03, 0 | PRIORITY
dsprite 0, 0, 4, 0, $02, 0 | PRIORITY
dsprite 0, 0, 5, 0, $03, 0 | PRIORITY
dsprite 0, 0, 6, 0, $02, 0 | PRIORITY
dsprite 0, 0, 7, 0, $03, 0 | PRIORITY
dsprite 0, 0, 8, 0, $02, 0 | PRIORITY
dsprite 0, 0, 9, 0, $03, 0 | PRIORITY
dsprite 1, 0, 0, 0, $01, 0 | PRIORITY
dsprite 1, 0, 3, 0, $03, 0 | PRIORITY
dsprite 1, 0, 5, 0, $03, 0 | PRIORITY
dsprite 1, 0, 7, 0, $03, 0 | PRIORITY
dsprite 1, 0, 9, 0, $03, 0 | PRIORITY
dsprite 2, 0, 0, 0, $01, 0 | PRIORITY
dsprite 2, 0, 3, 0, $03, 0 | PRIORITY
dsprite 2, 0, 5, 0, $03, 0 | PRIORITY
dsprite 2, 0, 7, 0, $03, 0 | PRIORITY
dsprite 2, 0, 9, 0, $03, 0 | PRIORITY
dsprite 2, 1, 0, 0, $00, 0 | Y_FLIP | PRIORITY
dsprite 2, 1, 1, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 2, 1, 2, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 2, 1, 3, 0, $03, 0 | PRIORITY
dsprite 2, 1, 4, 0, $03, 0 | PRIORITY
dsprite 2, 1, 5, 0, $03, 0 | PRIORITY
dsprite 2, 1, 6, 0, $03, 0 | PRIORITY
dsprite 2, 1, 7, 0, $03, 0 | PRIORITY
dsprite 2, 1, 8, 0, $03, 0 | PRIORITY
dsprite 2, 1, 9, 0, $03, 0 | PRIORITY
.PokeGroupPair:
db 38
dsprite 0, 0, -1, 7, $00, 0 | PRIORITY
dsprite 0, 0, 3, 0, $00, 0 | X_FLIP | PRIORITY
dsprite 1, 0, -1, 7, $01, 0 | PRIORITY
dsprite 1, 0, 3, 0, $01, 0 | X_FLIP | PRIORITY
dsprite 2, 0, -1, 7, $01, 0 | PRIORITY
dsprite 2, 0, 3, 0, $01, 0 | X_FLIP | PRIORITY
dsprite 3, 0, -1, 7, $01, 0 | PRIORITY
dsprite 3, 0, 1, 0, $03, 0 | PRIORITY
dsprite 3, 0, 3, 0, $03, 0 | PRIORITY
dsprite 4, 0, -1, 7, $01, 0 | PRIORITY
dsprite 4, 0, 1, 0, $03, 0 | PRIORITY
dsprite 4, 0, 3, 0, $03, 0 | PRIORITY
dsprite 5, 0, -1, 7, $01, 0 | PRIORITY
dsprite 5, 0, 1, 0, $03, 0 | PRIORITY
dsprite 5, 0, 3, 0, $03, 0 | PRIORITY
dsprite 6, 0, -1, 7, $01, 0 | PRIORITY
dsprite 6, 0, 1, 0, $03, 0 | PRIORITY
dsprite 6, 0, 3, 0, $03, 0 | PRIORITY
dsprite 7, 0, -1, 7, $01, 0 | PRIORITY
dsprite 7, 0, 1, 0, $03, 0 | PRIORITY
dsprite 7, 0, 3, 0, $03, 0 | PRIORITY
dsprite 8, 0, -1, 7, $01, 0 | PRIORITY
dsprite 8, 0, 1, 0, $03, 0 | PRIORITY
dsprite 8, 0, 3, 0, $03, 0 | PRIORITY
dsprite 9, 0, -1, 7, $01, 0 | PRIORITY
dsprite 9, 0, 1, 0, $03, 0 | PRIORITY
dsprite 9, 0, 3, 0, $03, 0 | PRIORITY
dsprite 10, 0, -1, 7, $01, 0 | PRIORITY
dsprite 10, 0, 1, 0, $03, 0 | PRIORITY
dsprite 10, 0, 3, 0, $03, 0 | PRIORITY
dsprite 11, 0, -1, 7, $01, 0 | PRIORITY
dsprite 11, 0, 1, 0, $03, 0 | PRIORITY
dsprite 11, 0, 3, 0, $03, 0 | PRIORITY
dsprite 11, 1, -1, 7, $00, 0 | Y_FLIP | PRIORITY
dsprite 11, 1, 0, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 11, 1, 1, 0, $03, 0 | Y_FLIP | PRIORITY
dsprite 11, 1, 2, 0, $02, 0 | Y_FLIP | PRIORITY
dsprite 11, 1, 3, 0, $03, 0 | X_FLIP | Y_FLIP | PRIORITY
.Impossible:
db 4
dsprite 0, 0, 0, 0, $00, 0 | PRIORITY
dsprite 0, 0, 1, 0, $00, 0 | X_FLIP | PRIORITY
dsprite 1, 0, 0, 0, $00, 0 | Y_FLIP | PRIORITY
dsprite 1, 0, 1, 0, $00, 0 | X_FLIP | Y_FLIP | PRIORITY
CardFlip_InitAttrPals:
ldh a, [hCGB]
and a
ret z
hlcoord 0, 0, wAttrMap
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
xor a
call ByteFill
hlcoord 12, 1, wAttrMap
lb bc, 2, 2
ld a, $1
call CardFlip_FillBox
hlcoord 14, 1, wAttrMap
lb bc, 2, 2
ld a, $2
call CardFlip_FillBox
hlcoord 16, 1, wAttrMap
lb bc, 2, 2
ld a, $3
call CardFlip_FillBox
hlcoord 18, 1, wAttrMap
lb bc, 2, 2
ld a, $4
call CardFlip_FillBox
hlcoord 9, 0, wAttrMap
lb bc, 12, 1
ld a, $1
call CardFlip_FillBox
ldh a, [rSVBK]
push af
ld a, BANK(wBGPals1)
ldh [rSVBK], a
ld hl, .palettes
ld de, wBGPals1
ld bc, 9 palettes
call CopyBytes
pop af
ldh [rSVBK], a
ret
.palettes
INCLUDE "gfx/card_flip/card_flip.pal"
CardFlipLZ03:
INCBIN "gfx/card_flip/card_flip_3.2bpp.lz"
CardFlipOffButtonGFX:
INCBIN "gfx/card_flip/off.2bpp"
CardFlipOnButtonGFX:
INCBIN "gfx/card_flip/on.2bpp"
CardFlipLZ01:
INCBIN "gfx/card_flip/card_flip_1.2bpp.lz"
CardFlipLZ02:
INCBIN "gfx/card_flip/card_flip_2.2bpp.lz"
CardFlipTilemap:
INCBIN "gfx/card_flip/card_flip.tilemap"
| 16.98038 | 59 | 0.646615 |
ba70e0cf3f68079b391bcba6ac4b9c5d527ede02 | 7,942 | asm | Assembly | source/messageBus.asm | evanbowman/Red | 85735269a46757305a81ad39f47034bc6cd97846 | [
"BSD-2-Clause"
] | 5 | 2021-08-30T16:18:55.000Z | 2021-10-30T20:23:32.000Z | source/messageBus.asm | evanbowman/gbc-project | 85735269a46757305a81ad39f47034bc6cd97846 | [
"BSD-2-Clause"
] | null | null | null | source/messageBus.asm | evanbowman/gbc-project | 85735269a46757305a81ad39f47034bc6cd97846 | [
"BSD-2-Clause"
] | null | null | null | ;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;; ASM Source code for Red GBC, by Evan Bowman, 2021
;;;
;;;
;;; The following licence covers the source code included in this file. The
;;; game's characters and artwork belong to Evan Bowman, and should not be used
;;; without permission.
;;;
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions are met:
;;;
;;; 1. Redistributions of source code must retain the above copyright notice,
;;; this list of conditions and the following disclaimer.
;;;
;;; 2. Redistributions in binary form must reproduce the above copyright notice,
;;; this list of conditions and the following disclaimer in the documentation
;;; and/or other materials provided with the distribution.
;;;
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
;;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
;;; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
;;; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
;;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
;;; SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
;;; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
;;; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
;;; POSSIBILITY OF SUCH DAMAGE.
;;;
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;;
;;; Message Bus
;;;
;;; Our engine allows communication between entities via a broadcast messaging
;;; system.
;;;
;;; NOTE: Currently, nothing prevents an entity from sending a message to
;;; itself, so entities should be prepared to ignore such messages.
;;;
;;;
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;; ----------------------------------------------------------------------------
MessageQueueAlloc:
;;; return a - message q number
;;; trashes hl, c
xor a
ld c, 0
ld hl, var_message_queues
.loop:
ld a, c
cp MESSAGE_QUEUE_COUNT
jr Z, .failed
ld a, [hl]
or a
jr Z, .found
jr .next
.found:
ld a, 1
ld [hl], a ; set slot used
ld a, c
inc a ; Message q slots count from one.
ret
.next:
inc hl
inc c
jr .loop
.failed:
;; Message queue count == entity buffer size anyway. As we cannot
;; register more entities than we have message buffers, this code
;; should never run.
jr .failed ; FIXME...
ret
;;; ----------------------------------------------------------------------------
MessageQueueLoad:
;;; a - message q number
;;; trashes bc
;;; return hl - queue
ld hl, var_message_queue_memory
;; Now, four bytes per message, eight messages per queue. So, we want to
;; multiply our queue num by 32.
ld c, a
ld b, 0
fcall Mul32
add hl, bc
ret
;;; ----------------------------------------------------------------------------
MessageQueueClear:
;;; hl - queue
xor a ; \ Set queue size to zero.
ld [hl], a ; /
ret
;;; ----------------------------------------------------------------------------
;;; NOTE: For each message in the message queue, invokes function pointer in bc,
;;; with a pointer to a message passed as an arg to the function in bc.
;;; This function does not affect de, so if you want to pass an additional arg
;;; to your function pointer...
MessageQueueDrain:
;;; hl - queue
;;; bc - message handler callback
;;; Promises not to touch de.
ld a, [hl] ; Load queue size
or a ; \ Early exit if nothing's in the queue.
ret Z ; /
push hl ; Store queue header ptr on stack
inc hl ; I could push, add, and pop, but that's four
inc hl ; instructions anyway. Remember that we cannot
inc hl ; modify de, as it's reserved by the caller for passing args.
inc hl ; Now hl points to the first queue entry.
.loop:
push af ; Save loop counter
cp 0
jr Z, .endLoop
;; Lot's of stuff going on here, but most of the time, there isn't even
;; a single message in the queue, so it's not too bad.
push bc ; Save Callback on stack
push hl ; Save spot in queue on stack
push hl ; \
ld h, b ; | Swap hl and bc :/
ld l, c ; | We want invoke hl, passing msg ptr in bc
pop bc ; /
INVOKE_HL
pop hl ; \
ld bc, MESSAGE_SIZE ; | Go to next message in queue
add hl, bc ; /
pop bc ; Restore callback fn from atack
pop af ; Restore loop counter
dec a ; dec loop counter
jr .loop ; Goto loop top.
.endLoop:
pop af ; pop loop counter from stack
pop hl ; Restore pointer to msg queue header
fcall MessageQueueClear
ret
;;; ----------------------------------------------------------------------------
MessageQueueAppend:
;;; hl - queue
;;; de - Message pointer
;;; trashes bc
ld a, [hl] ; Load current queue size
cp MESSAGE_QUEUE_CAPACITY
jr Z, .queueFull
push hl
push de
ld bc, $04 ; \ Skip over queue header
add hl, bc ; /
ld c, a ; \
ld b, 0 ; | Message is four bytes, so skip over n * 4
sla c ; | messages already in the queue.
sla c ; |
add hl, bc ; /
ld a, [de] ; \
ld [hl+], a ; |
inc de ; |
; | Copy message into queue.
ld a, [de] ; |
ld [hl+], a ; |
inc de ; |
; |
ld a, [de] ; |
ld [hl+], a ; |
inc de ; |
; |
ld a, [de] ; |
ld [hl], a ; /
pop de
pop hl
ld a, [hl] ; \
inc a ; | +1 queue element count
ld [hl], a ; /
.queueFull:
ret
;;; ----------------------------------------------------------------------------
;;; Put message in everyone's queue
MessageBusBroadcast:
;;; hl - Message pointer
ld d, h
ld e, l
ld b, 0
ld hl, var_message_queue_memory
.loop:
push bc
fcall MessageQueueAppend
ld bc, MESSAGE_QUEUE_SIZE
add hl, bc
pop bc
inc b
ld a, MESSAGE_QUEUE_COUNT + 1 ; +1 for player's queue, at index 0
cp b
jr NZ, .loop
ret
;;; ----------------------------------------------------------------------------
| 30.782946 | 93 | 0.448628 |
80fad1d99fcaaa45a6e54062cbe8e87d2496f468 | 10,707 | asm | Assembly | codec/encoder/core/asm/quant.asm | TechSmith/openh264 | 5d616714c4cdd30287e2c6a8aa485c2fc6c68b84 | [
"BSD-2-Clause"
] | 1 | 2016-12-06T07:56:36.000Z | 2016-12-06T07:56:36.000Z | codec/encoder/core/asm/quant.asm | 3990995/openh264 | f2aa3c75ae8a3d41ef85be739752d3f189c7eea3 | [
"BSD-2-Clause"
] | null | null | null | codec/encoder/core/asm/quant.asm | 3990995/openh264 | f2aa3c75ae8a3d41ef85be739752d3f189c7eea3 | [
"BSD-2-Clause"
] | null | null | null | ;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the above copyright
;* notice, this list of conditions and the following disclaimer.
;*
;* * Redistributions in binary form must reproduce the above copyright
;* notice, this list of conditions and the following disclaimer in
;* the documentation and/or other materials provided with the
;* distribution.
;*
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
;* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
;* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
;* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
;* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
;* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
;* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
;* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
;* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
;* POSSIBILITY OF SUCH DAMAGE.
;*
;*
;* quant.asm
;*
;* Abstract
;* sse2 quantize inter-block
;*
;* History
;* 7/6/2009 Created
;*
;*
;*************************************************************************/
%include "asm_inc.asm"
BITS 32
SECTION .text
;************************************************
;NEW_QUANT
;************************************************
%macro SSE2_Quant8 5
MOVDQ %1, %5
pxor %2, %2
pcmpgtw %2, %1
pxor %1, %2
psubw %1, %2
paddusw %1, %3
pmulhuw %1, %4
pxor %1, %2
psubw %1, %2
MOVDQ %5, %1
%endmacro
%macro SSE2_QuantMax8 6
MOVDQ %1, %5
pxor %2, %2
pcmpgtw %2, %1
pxor %1, %2
psubw %1, %2
paddusw %1, %3
pmulhuw %1, %4
pmaxsw %6, %1
pxor %1, %2
psubw %1, %2
MOVDQ %5, %1
%endmacro
%define pDct esp + 4
%define ff esp + 8
%define mf esp + 12
%define max esp + 16
;***********************************************************************
; void WelsQuant4x4_sse2(int16_t *pDct, int16_t* ff, int16_t *mf);
;***********************************************************************
WELS_EXTERN WelsQuant4x4_sse2
align 16
WelsQuant4x4_sse2:
mov eax, [ff]
mov ecx, [mf]
MOVDQ xmm2, [eax]
MOVDQ xmm3, [ecx]
mov edx, [pDct]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x10]
ret
;***********************************************************************
;void WelsQuant4x4Dc_sse2(int16_t *pDct, const int16_t ff, int16_t mf);
;***********************************************************************
WELS_EXTERN WelsQuant4x4Dc_sse2
align 16
WelsQuant4x4Dc_sse2:
mov ax, [mf]
SSE2_Copy8Times xmm3, eax
mov cx, [ff]
SSE2_Copy8Times xmm2, ecx
mov edx, [pDct]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x10]
ret
;***********************************************************************
; void WelsQuantFour4x4_sse2(int16_t *pDct, int16_t* ff, int16_t *mf);
;***********************************************************************
WELS_EXTERN WelsQuantFour4x4_sse2
align 16
WelsQuantFour4x4_sse2:
mov eax, [ff]
mov ecx, [mf]
MOVDQ xmm2, [eax]
MOVDQ xmm3, [ecx]
mov edx, [pDct]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x10]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x20]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x30]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x40]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x50]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x60]
SSE2_Quant8 xmm0, xmm1, xmm2, xmm3, [edx + 0x70]
ret
;***********************************************************************
; void WelsQuantFour4x4Max_sse2(int16_t *pDct, int32_t* f, int16_t *mf, int16_t *max);
;***********************************************************************
WELS_EXTERN WelsQuantFour4x4Max_sse2
align 16
WelsQuantFour4x4Max_sse2:
mov eax, [ff]
mov ecx, [mf]
MOVDQ xmm2, [eax]
MOVDQ xmm3, [ecx]
mov edx, [pDct]
pxor xmm4, xmm4
pxor xmm5, xmm5
pxor xmm6, xmm6
pxor xmm7, xmm7
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx ], xmm4
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x10], xmm4
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x20], xmm5
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x30], xmm5
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x40], xmm6
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x50], xmm6
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x60], xmm7
SSE2_QuantMax8 xmm0, xmm1, xmm2, xmm3, [edx + 0x70], xmm7
SSE2_TransTwo4x4W xmm4, xmm5, xmm6, xmm7, xmm0
pmaxsw xmm0, xmm4
pmaxsw xmm0, xmm5
pmaxsw xmm0, xmm7
movdqa xmm1, xmm0
punpckhqdq xmm0, xmm1
pmaxsw xmm0, xmm1
mov edx, [max]
movq [edx], xmm0
ret
%macro MMX_Copy4Times 2
movd %1, %2
punpcklwd %1, %1
punpckldq %1, %1
%endmacro
SECTION .text
%macro MMX_Quant4 4
pxor %2, %2
pcmpgtw %2, %1
pxor %1, %2
psubw %1, %2
paddusw %1, %3
pmulhuw %1, %4
pxor %1, %2
psubw %1, %2
%endmacro
%define dct2x2 esp + 16
%define iChromaDc esp + 20
;***********************************************************************
;int32_t WelsHadamardQuant2x2_mmx(int16_t *rs, const int16_t ff, int16_t mf, int16_t * pDct, int16_t * block);
;***********************************************************************
WELS_EXTERN WelsHadamardQuant2x2_mmx
align 16
WelsHadamardQuant2x2_mmx:
mov eax, [pDct]
movd mm0, [eax]
movd mm1, [eax + 0x20]
punpcklwd mm0, mm1
movd mm3, [eax + 0x40]
movd mm1, [eax + 0x60]
punpcklwd mm3, mm1
mov cx, 0
mov [eax], cx
mov [eax + 0x20], cx
mov [eax + 0x40], cx
mov [eax + 0x60], cx
;hdm_2x2, mm0 = dct0 dct1, mm3 = dct2 dct3
movq mm5, mm3
paddw mm3, mm0
psubw mm0, mm5
punpcklwd mm3, mm0
movq mm1, mm3
psrlq mm1, 32
movq mm5, mm1
paddw mm1, mm3
psubw mm3, mm5
punpcklwd mm1, mm3
;quant_2x2_dc
mov ax, [mf]
MMX_Copy4Times mm3, eax
mov cx, [ff]
MMX_Copy4Times mm2, ecx
MMX_Quant4 mm1, mm0, mm2, mm3
; store dct_2x2
mov edx, [dct2x2]
movq [edx], mm1
mov ecx, [iChromaDc]
movq [ecx], mm1
; pNonZeroCount of dct_2x2
pcmpeqb mm2, mm2 ; mm2 = FF
pxor mm3, mm3
packsswb mm1, mm3
pcmpeqb mm1, mm3 ; set FF if equal, 0 if not equal
psubsb mm1, mm2 ; set 0 if equal, 1 if not equal
psadbw mm1, mm3 ;
movd eax, mm1
WELSEMMS
ret
;***********************************************************************
;int32_t WelsHadamardQuant2x2Skip_mmx(int16_t *pDct, int16_t ff, int16_t mf);
;***********************************************************************
WELS_EXTERN WelsHadamardQuant2x2Skip_mmx
align 16
WelsHadamardQuant2x2Skip_mmx:
mov eax, [pDct]
movd mm0, [eax]
movd mm1, [eax + 0x20]
punpcklwd mm0, mm1
movd mm3, [eax + 0x40]
movd mm1, [eax + 0x60]
punpcklwd mm3, mm1
;hdm_2x2, mm0 = dct0 dct1, mm3 = dct2 dct3
movq mm5, mm3
paddw mm3, mm0
psubw mm0, mm5
punpcklwd mm3, mm0
movq mm1, mm3
psrlq mm1, 32
movq mm5, mm1
paddw mm1, mm3
psubw mm3, mm5
punpcklwd mm1, mm3
;quant_2x2_dc
mov ax, [mf]
MMX_Copy4Times mm3, eax
mov cx, [ff]
MMX_Copy4Times mm2, ecx
MMX_Quant4 mm1, mm0, mm2, mm3
; pNonZeroCount of dct_2x2
pcmpeqb mm2, mm2 ; mm2 = FF
pxor mm3, mm3
packsswb mm1, mm3
pcmpeqb mm1, mm3 ; set FF if equal, 0 if not equal
psubsb mm1, mm2 ; set 0 if equal, 1 if not equal
psadbw mm1, mm3 ;
movd eax, mm1
WELSEMMS
ret
%macro SSE2_DeQuant8 3
MOVDQ %2, %1
pmullw %2, %3
MOVDQ %1, %2
%endmacro
ALIGN 16
;***********************************************************************
; void WelsDequant4x4_sse2(int16_t *pDct, const uint16_t* mf);
;***********************************************************************
align 16
WELS_EXTERN WelsDequant4x4_sse2
WelsDequant4x4_sse2:
;ecx = dequant_mf[qp], edx = pDct
mov ecx, [esp + 8]
mov edx, [esp + 4]
movdqa xmm1, [ecx]
SSE2_DeQuant8 [edx ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x10 ], xmm0, xmm1
ret
;***********************************************************************====
;void WelsDequantFour4x4_sse2(int16_t *pDct, const uint16_t* mf);
;***********************************************************************====
align 16
WELS_EXTERN WelsDequantFour4x4_sse2
WelsDequantFour4x4_sse2:
;ecx = dequant_mf[qp], edx = pDct
mov ecx, [esp + 8]
mov edx, [esp + 4]
movdqa xmm1, [ecx]
SSE2_DeQuant8 [edx ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x10 ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x20 ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x30 ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x40 ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x50 ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x60 ], xmm0, xmm1
SSE2_DeQuant8 [edx+0x70 ], xmm0, xmm1
ret
;***********************************************************************
;void WelsDequantIHadamard4x4_sse2(int16_t *rs, const uint16_t mf);
;***********************************************************************
WELS_EXTERN WelsDequantIHadamard4x4_sse2
align 16
WelsDequantIHadamard4x4_sse2:
mov eax, [esp + 4]
mov cx, [esp + 8]
; WelsDequantLumaDc4x4
SSE2_Copy8Times xmm1, ecx
;psrlw xmm1, 2 ; for the (>>2) in ihdm
MOVDQ xmm0, [eax]
MOVDQ xmm2, [eax+0x10]
pmullw xmm0, xmm1
pmullw xmm2, xmm1
; ihdm_4x4
movdqa xmm1, xmm0
psrldq xmm1, 8
movdqa xmm3, xmm2
psrldq xmm3, 8
SSE2_SumSub xmm0, xmm3, xmm5 ; xmm0 = xmm0 - xmm3, xmm3 = xmm0 + xmm3
SSE2_SumSub xmm1, xmm2, xmm5 ; xmm1 = xmm1 - xmm2, xmm2 = xmm1 + xmm2
SSE2_SumSub xmm3, xmm2, xmm5 ; xmm3 = xmm3 - xmm2, xmm2 = xmm3 + xmm2
SSE2_SumSub xmm0, xmm1, xmm5 ; xmm0 = xmm0 - xmm1, xmm1 = xmm0 + xmm1
SSE2_TransTwo4x4W xmm2, xmm1, xmm3, xmm0, xmm4
SSE2_SumSub xmm2, xmm4, xmm5
SSE2_SumSub xmm1, xmm0, xmm5
SSE2_SumSub xmm4, xmm0, xmm5
SSE2_SumSub xmm2, xmm1, xmm5
SSE2_TransTwo4x4W xmm0, xmm1, xmm4, xmm2, xmm3
punpcklqdq xmm0, xmm1
MOVDQ [eax], xmm0
punpcklqdq xmm2, xmm3
MOVDQ [eax+16], xmm2
ret
| 27.175127 | 110 | 0.560848 |
0949b379e36db734a955d73ba4995ff7f77fab6c | 45 | asm | Assembly | tests/incbin/2.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | 414 | 2016-10-14T22:39:20.000Z | 2022-03-30T07:52:44.000Z | tests/incbin/2.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | 100 | 2018-03-22T16:12:24.000Z | 2022-03-26T09:19:23.000Z | tests/incbin/2.asm | NullMember/customasm | 6e34d6432583a41278e6b3596f1817ae82149531 | [
"Apache-2.0"
] | 47 | 2017-06-29T15:12:13.000Z | 2022-03-10T04:50:51.000Z | x = "data1.bin"
#d incbin(x) ; = 0x68656c6c6f | 22.5 | 29 | 0.644444 |
d434dbe095cc29fc86c63b2f93e9156af7db13b2 | 3,967 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_946.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_946.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0_notsx.log_21829_946.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rsi
lea addresses_WT_ht+0x1def7, %rsi
clflush (%rsi)
nop
dec %r10
mov (%rsi), %r9d
nop
cmp $31287, %r11
pop %rsi
pop %r9
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %rcx
push %rdx
// Faulty Load
lea addresses_WT+0x130b7, %rdx
nop
nop
sub $55660, %rcx
mov (%rdx), %r8
lea oracles, %r15
and $0xff, %r8
shlq $12, %r8
mov (%r15,%r8,1), %r8
pop %rdx
pop %rcx
pop %r8
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': True, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 70.839286 | 2,999 | 0.661457 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.