max_stars_repo_path
stringlengths
4
261
max_stars_repo_name
stringlengths
6
106
max_stars_count
int64
0
38.8k
id
stringlengths
1
6
text
stringlengths
7
1.05M
cards/bn4/ModCards/134-F021 GigaFolder1 (0A).asm
RockmanEXEZone/MMBN-Mod-Card-Kit
10
14795
<gh_stars>1-10 .include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 111 card_no equ "111" card_sub equ "Mod Card 111" card_sub_x equ 64 card_desc_len equ 2 card_desc_1 equ "Address 0A" card_desc_2 equ "GigaFolder1" card_desc_3 equ "" card_name_jp_full equ "ギガフォルダ1" card_name_jp_game equ "ギガフォルダ1" card_name_en_full equ "GigaFolder1" card_name_en_game equ "GigaFolder1" card_address equ "0A" card_address_id equ 0 card_bug equ 0 card_wrote_en equ "GigaFolder1" card_wrote_jp equ "ギガフォルダ1"
MK1_CPU/programs/primes.asm
billionelectrons/8bit-cpu
274
22548
<gh_stars>100-1000 ;--- computes prime numbers --- ;--- includes helix display support --- #include "lib/mk1.cpu" init: jal init_display ldi $a 3 .loop: push $a jal is_prime ;call subroutine cmp 0 pop $a jz .continue ;if the result is 0 do not print value push $a jal print pop $a .continue: addi 2 $a jc .end j .loop .end: hlt print: out $a jal print_int ldi $a SPACE jal print_char ret ; --- is_prime --- is_prime: ;optimization -> divisions start from half push $a slr subi 1 $b ; preparing second operand for reminder pop $a jz .ret_true ;main loop .prime_loop: push $a push $b jal reminder cmp 0 jz .ret_false pop $a ; counter pop $b ; argument subi 2 $a ;counter decrement + ;if counter == 1 -> prime jz .ret_true addi 1 $a ;restore good counter mov $b $c mov $a $b mov $c $a j .prime_loop .ret_true: ldi $a 1 ret .ret_false: pop $b pop $b ldi $a 0 ret #include "lib/mk1_std.asm" #include "lib/helix.asm"
Set-TerminalTitle.applescript
bcdady/ConsoleTheme
0
3443
<reponame>bcdady/ConsoleTheme #!/usr/bin/osascript tell application "Terminal" to set custom title of window 1 to "PowerShell"
oeis/025/A025948.asm
neoneye/loda-programs
11
17580
<filename>oeis/025/A025948.asm ; A025948: Expansion of 1/((1-2x)(1-3x)(1-8x)(1-9x)). ; Submitted by <NAME> ; 1,22,321,3938,44045,465894,4751017,47229226,460842789,4433881166,42195474113,398084143314,3729357886333,34737030515638,322015765266009,2973201855377402,27359296571272277,251037508511614110 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,16316 ; Expansion of 1/((1-2x)(1-8x)(1-9x)). mul $1,3 add $1,$0 lpe mov $0,$1
code/Forec/t13.asm
KongoHuster/assembly-exercise
1
20019
;; last edit date: 2016/10/24 ;; author: Forec ;; LICENSE ;; Copyright (c) 2015-2017, Forec <<EMAIL>> ;; Permission to use, copy, modify, and/or distribute this code for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all copies. ;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF ;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. title forec_t13 .model small .data inputinfo db 'Input: $' outputinfo db 0dh, 0ah, 'Output: $' .code start: mov ax, @data mov ds, ax mov dx, offset inputinfo mov ah, 9h int 21h mov ah, 01h int 21h mov cl, al sub cl, 030h mov dx, offset outputinfo mov ah, 9h int 21h mov ah, 02h mov dl, 'a' ;; 07h 用 a 代替 beep 观察输出 beep: cmp cl, 00h jz quit dec cl int 21h jmp beep quit: mov ah, 4ch int 21h end start
oeis/321/A321598.asm
neoneye/loda-programs
11
91546
<filename>oeis/321/A321598.asm ; A321598: a(n) = Sum_{d|n} d*binomial(d+2,3). ; Submitted by <NAME> ; 1,9,31,89,176,375,589,1049,1516,2384,3147,4823,5916,8437,10406,14105,16474,22380,25271,33264,37810,47683,52901,68183,73301,91100,100174,122197,130356,161750,169137,205593,219162,259242,272714,330524,338144,400719,421686,493424 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 mov $4,$3 add $4,1 mov $5,$4 mul $5,$3 add $3,$5 mul $3,$5 add $1,$3 lpe mov $0,$1 div $0,6 add $0,1
oeis/017/A017304.asm
neoneye/loda-programs
11
27095
; A017304: a(n) = (10*n + 2)^12. ; 4096,8916100448256,12855002631049216,1152921504606846976,30129469486639681536,390877006486250192896,3226266762397899821056,19408409961765342806016,92420056270299898187776,367666387654882241806336,1268241794562545318301696,3895975992546975973113856,10872213398722912904482816,27982542656501458535448576,67214060505664762405851136,152097843090208773684330496,326723350842869800400326656,670411357165926452996079616,1320859596446125189798629376,2509659166022727122011815936,4615475323420547975828279296 mul $0,10 add $0,2 pow $0,12
legend-engine-language-pure-grammar/src/main/antlr4/org/finos/legend/engine/language/pure/grammar/from/antlr4/connection/modelConnection/ModelConnectionLexerGrammar.g4
markseavers/legend-engine
0
7849
<gh_stars>0 lexer grammar ModelConnectionLexerGrammar; import CoreLexerGrammar; // -------------------------------------- KEYWORD -------------------------------------- MODEL_CONNECTION_CLASS: 'class'; URL: 'url';
gcc-gcc-7_3_0-release/gcc/ada/checks.ads
best08618/asylo
7
26588
<reponame>best08618/asylo ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- C H E C K S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1992-2016, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING3. If not, go to -- -- http://www.gnu.org/licenses for a complete copy of the license. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Package containing routines used to deal with runtime checks. These -- routines are used both by the semantics and by the expander. In some -- cases, checks are enabled simply by setting flags for gigi, and in -- other cases the code for the check is expanded. -- The approach used for range and length checks, in regards to suppressed -- checks, is to attempt to detect at compilation time that a constraint -- error will occur. If this is detected a warning or error is issued and the -- offending expression or statement replaced with a constraint error node. -- This always occurs whether checks are suppressed or not. Dynamic range -- checks are, of course, not inserted if checks are suppressed. with Errout; use Errout; with Namet; use Namet; with Table; with Types; use Types; with Uintp; use Uintp; with Urealp; use Urealp; package Checks is procedure Initialize; -- Called for each new main source program, to initialize internal -- variables used in the package body of the Checks unit. function Access_Checks_Suppressed (E : Entity_Id) return Boolean; function Accessibility_Checks_Suppressed (E : Entity_Id) return Boolean; function Alignment_Checks_Suppressed (E : Entity_Id) return Boolean; function Allocation_Checks_Suppressed (E : Entity_Id) return Boolean; function Atomic_Synchronization_Disabled (E : Entity_Id) return Boolean; function Discriminant_Checks_Suppressed (E : Entity_Id) return Boolean; function Division_Checks_Suppressed (E : Entity_Id) return Boolean; function Duplicated_Tag_Checks_Suppressed (E : Entity_Id) return Boolean; function Elaboration_Checks_Suppressed (E : Entity_Id) return Boolean; function Index_Checks_Suppressed (E : Entity_Id) return Boolean; function Length_Checks_Suppressed (E : Entity_Id) return Boolean; function Overflow_Checks_Suppressed (E : Entity_Id) return Boolean; function Predicate_Checks_Suppressed (E : Entity_Id) return Boolean; function Range_Checks_Suppressed (E : Entity_Id) return Boolean; function Storage_Checks_Suppressed (E : Entity_Id) return Boolean; function Tag_Checks_Suppressed (E : Entity_Id) return Boolean; function Validity_Checks_Suppressed (E : Entity_Id) return Boolean; -- These functions check to see if the named check is suppressed, either -- by an active scope suppress setting, or because the check has been -- specifically suppressed for the given entity. If no entity is relevant -- for the current check, then Empty is used as an argument. Note: the -- reason we insist on specifying Empty is to force the caller to think -- about whether there is any relevant entity that should be checked. function Is_Check_Suppressed (E : Entity_Id; C : Check_Id) return Boolean; -- This function is called if Checks_May_Be_Suppressed (E) is True to -- determine whether check C is suppressed either on the entity E or -- as the result of a scope suppress pragma. If Checks_May_Be_Suppressed -- is False, then the status of the check can be determined simply by -- examining Scope_Suppress, so this routine is not called in that case. function Overflow_Check_Mode return Overflow_Mode_Type; -- Returns current overflow checking mode, taking into account whether -- we are inside an assertion expression and the assertion policy. ----------------------------------------- -- Control of Alignment Check Warnings -- ----------------------------------------- -- When we have address clauses, there is an issue of whether the address -- specified is appropriate to the alignment. In the general case where the -- address is dynamic, we generate a check and a possible warning (this -- warning occurs for example if we have a restricted run time with the -- restriction No_Exception_Propagation). We also issue this warning in -- the case where the address is static, but we don't know the alignment -- at the time we process the address clause. In such a case, we issue the -- warning, but we may be able to find out later (after the back end has -- annotated the actual alignment chosen) that the warning was not needed. -- To deal with deleting these potentially annoying warnings, we save the -- warning information in a table, and then delete the waranings in the -- post compilation validation stage if we can tell that the check would -- never fail (in general the back end will also optimize away the check -- in such cases). -- Table used to record information type Alignment_Warnings_Record is record E : Entity_Id; -- Entity whose alignment possibly warrants a warning A : Uint; -- Compile time known value of address clause for which the alignment -- is to be checked once we know the alignment. W : Error_Msg_Id; -- Id of warning message we might delete end record; package Alignment_Warnings is new Table.Table ( Table_Component_Type => Alignment_Warnings_Record, Table_Index_Type => Int, Table_Low_Bound => 0, Table_Initial => 10, Table_Increment => 200, Table_Name => "Alignment_Warnings"); procedure Validate_Alignment_Check_Warnings; -- This routine is called after back annotation of type data to delete any -- alignment warnings that turn out to be false alarms, based on knowing -- the actual alignment, and a compile-time known alignment value. ------------------------------------------- -- Procedures to Activate Checking Flags -- ------------------------------------------- procedure Activate_Division_Check (N : Node_Id); pragma Inline (Activate_Division_Check); -- Sets Do_Division_Check flag in node N, and handles possible local raise. -- Always call this routine rather than calling Set_Do_Division_Check to -- set an explicit value of True, to ensure handling the local raise case. procedure Activate_Overflow_Check (N : Node_Id); pragma Inline (Activate_Overflow_Check); -- Sets Do_Overflow_Check flag in node N, and handles possible local raise. -- Always call this routine rather than calling Set_Do_Overflow_Check to -- set an explicit value of True, to ensure handling the local raise case. -- Note that for discrete types, this call has no effect for MOD, REM, and -- unary "+" for which overflow is never possible in any case. -- -- Note: for the discrete-type case, it is legitimate to call this routine -- on an unanalyzed node where the Etype field is not set. However, for the -- floating-point case, Etype must be set (to a floating-point type). -- -- For floating-point, we set the flag if we have automatic overflow checks -- on the target, or if Check_Float_Overflow mode is set. For the floating- -- point case, we ignore all the unary operators ("+", "-", and abs) since -- none of these can result in overflow. If there are no overflow checks on -- the target, and Check_Float_Overflow mode is not set, then the call has -- no effect, since in such cases we want to generate NaN's and infinities. procedure Activate_Range_Check (N : Node_Id); pragma Inline (Activate_Range_Check); -- Sets Do_Range_Check flag in node N, and handles possible local raise -- Always call this routine rather than calling Set_Do_Range_Check to -- set an explicit value of True, to ensure handling the local raise case. -------------------------------- -- Procedures to Apply Checks -- -------------------------------- -- General note on following checks. These checks are always active if -- Expander_Active and not Inside_A_Generic. They are inactive and have -- no effect Inside_A_Generic. In the case where not Expander_Active -- and not Inside_A_Generic, most of them are inactive, but some of them -- operate anyway since they may generate useful compile time warnings. procedure Apply_Access_Check (N : Node_Id); -- Determines whether an expression node requires a runtime access -- check and if so inserts the appropriate run-time check. procedure Apply_Accessibility_Check (N : Node_Id; Typ : Entity_Id; Insert_Node : Node_Id); -- Given a name N denoting an access parameter, emits a run-time -- accessibility check (if necessary), checking that the level of -- the object denoted by the access parameter is not deeper than the -- level of the type Typ. Program_Error is raised if the check fails. -- Insert_Node indicates the node where the check should be inserted. procedure Apply_Address_Clause_Check (E : Entity_Id; N : Node_Id); -- E is the entity for an object which has an address clause. If checks -- are enabled, then this procedure generates a check that the specified -- address has an alignment consistent with the alignment of the object, -- raising PE if this is not the case. The resulting check (if one is -- generated) is prepended to the Actions list of N_Freeze_Entity node N. -- Note that the check references E'Alignment, so it cannot be emitted -- before N (its freeze node), otherwise this would cause an illegal -- access before elaboration error in GIGI. For the case of a clear overlay -- situation, we also check that the size of the overlaying object is not -- larger than the overlaid object. procedure Apply_Arithmetic_Overflow_Check (N : Node_Id); -- Handle overflow checking for an arithmetic operator. Also handles the -- cases of ELIMINATED and MINIMIZED overflow checking mode. If the mode -- is one of the latter two, then this routine can also be called with -- an if or case expression node to make sure that we properly handle -- overflow checking for dependent expressions. This routine handles -- front end vs back end overflow checks (in the front end case it expands -- the necessary check). Note that divide is handled separately using -- Apply_Divide_Checks. Node N may or may not have Do_Overflow_Check. -- In STRICT mode, there is nothing to do if this flag is off, but in -- MINIMIZED/ELIMINATED mode we still have to deal with possible use -- of doing operations in Long_Long_Integer or Bignum mode. procedure Apply_Constraint_Check (N : Node_Id; Typ : Entity_Id; No_Sliding : Boolean := False); -- Top-level procedure, calls all the others depending on the class of -- Typ. Checks that expression N satisfies the constraint of type Typ. -- No_Sliding is only relevant for constrained array types, if set to -- True, it checks that indexes are in range. procedure Apply_Discriminant_Check (N : Node_Id; Typ : Entity_Id; Lhs : Node_Id := Empty); -- Given an expression N of a discriminated type, or of an access type -- whose designated type is a discriminanted type, generates a check to -- ensure that the expression can be converted to the subtype given as -- the second parameter. Lhs is empty except in the case of assignments, -- where the target object may be needed to determine the subtype to -- check against (such as the cases of unconstrained formal parameters -- and unconstrained aliased objects). For the case of unconstrained -- formals, the check is performed only if the corresponding actual is -- constrained, i.e., whether Lhs'Constrained is True. procedure Apply_Divide_Checks (N : Node_Id); -- The node kind is N_Op_Divide, N_Op_Mod, or N_Op_Rem if either of the -- flags Do_Division_Check or Do_Overflow_Check is set, then this routine -- ensures that the appropriate checks are made. Note that overflow can -- occur in the signed case for the case of the largest negative number -- divided by minus one. This procedure only applies to Integer types. procedure Apply_Parameter_Aliasing_Checks (Call : Node_Id; Subp : Entity_Id); -- Given a subprogram call Call, add a check to verify that none of the -- actuals overlap. Subp denotes the subprogram being called. procedure Apply_Parameter_Validity_Checks (Subp : Entity_Id); -- Given a subprogram Subp, add both a pre and post condition pragmas that -- verify the proper initialization of scalars in parameters and function -- results. procedure Apply_Predicate_Check (N : Node_Id; Typ : Entity_Id; Fun : Entity_Id := Empty); -- N is an expression to which a predicate check may need to be applied for -- Typ, if Typ has a predicate function. When N is an actual in a call, Fun -- is the function being called, which is used to generate a better warning -- if the call leads to an infinite recursion. procedure Apply_Type_Conversion_Checks (N : Node_Id); -- N is an N_Type_Conversion node. A type conversion actually involves -- two sorts of checks. The first check is the checks that ensures that -- the operand in the type conversion fits onto the base type of the -- subtype it is being converted to (see RM 4.6 (28)-(50)). The second -- check is there to ensure that once the operand has been converted to -- a value of the target type, this converted value meets the -- constraints imposed by the target subtype (see RM 4.6 (51)). procedure Apply_Universal_Integer_Attribute_Checks (N : Node_Id); -- The argument N is an attribute reference node intended for processing -- by gigi. The attribute is one that returns a universal integer, but -- the attribute reference node is currently typed with the expected -- result type. This routine deals with range and overflow checks needed -- to make sure that the universal result is in range. function Build_Discriminant_Checks (N : Node_Id; T_Typ : Entity_Id) return Node_Id; -- Subsidiary routine for Apply_Discriminant_Check. Builds the expression -- that compares discriminants of the expression with discriminants of the -- type. Also used directly for membership tests (see Exp_Ch4.Expand_N_In). function Convert_From_Bignum (N : Node_Id) return Node_Id; -- Returns result of converting node N from Bignum. The returned value is -- not analyzed, the caller takes responsibility for this. Node N must be -- a subexpression node of type Bignum. The result is Long_Long_Integer. function Convert_To_Bignum (N : Node_Id) return Node_Id; -- Returns result of converting node N to Bignum. The returned value is not -- analyzed, the caller takes responsibility for this. Node N must be a -- subexpression node of a signed integer type or Bignum type (if it is -- already a Bignum, the returned value is Relocate_Node (N)). procedure Determine_Range (N : Node_Id; OK : out Boolean; Lo : out Uint; Hi : out Uint; Assume_Valid : Boolean := False); -- N is a node for a subexpression. If N is of a discrete type with no -- error indications, and no other peculiarities (e.g. missing Etype), -- then OK is True on return, and Lo and Hi are set to a conservative -- estimate of the possible range of values of N. Thus if OK is True on -- return, the value of the subexpression N is known to lie in the range -- Lo .. Hi (inclusive). If the expression is not of a discrete type, or -- some kind of error condition is detected, then OK is False on exit, and -- Lo/Hi are set to No_Uint. Thus the significance of OK being False on -- return is that no useful information is available on the range of the -- expression. Assume_Valid determines whether the processing is allowed to -- assume that values are in range of their subtypes. If it is set to True, -- then this assumption is valid, if False, then processing is done using -- base types to allow invalid values. procedure Determine_Range_R (N : Node_Id; OK : out Boolean; Lo : out Ureal; Hi : out Ureal; Assume_Valid : Boolean := False); -- Similar to Determine_Range, but for a node N of floating-point type. OK -- is True on return only for IEEE floating-point types and only if we do -- not have to worry about extended precision (i.e. on the x86, we must be -- using -msse2 -mfpmath=sse). At the current time, this is used only in -- GNATprove, though we could consider using it more generally in future. -- For that to happen, the possibility of arguments of infinite or NaN -- value should be taken into account, which is not the case currently. procedure Install_Null_Excluding_Check (N : Node_Id); -- Determines whether an access node requires a runtime access check and -- if so inserts the appropriate run-time check. function Make_Bignum_Block (Loc : Source_Ptr) return Node_Id; -- This function is used by top level overflow checking routines to do a -- mark/release operation on the secondary stack around bignum operations. -- The block created looks like: -- -- declare -- M : Mark_Id := SS_Mark; -- begin -- SS_Release (M); -- end; -- -- The idea is that the caller will insert any needed extra declarations -- after the declaration of M, and any needed statements (in particular -- the bignum operations) before the call to SS_Release, and then do an -- Insert_Action of the whole block (it is returned unanalyzed). The Loc -- parameter is used to supply Sloc values for the constructed tree. procedure Minimize_Eliminate_Overflows (N : Node_Id; Lo : out Uint; Hi : out Uint; Top_Level : Boolean); -- This is the main routine for handling MINIMIZED and ELIMINATED overflow -- processing. On entry N is a node whose result is a signed integer -- subtype. The Do_Overflow_Check flag may or may not be set on N. If the -- node is an arithmetic operation, then a range analysis is carried out, -- and there are three possibilities: -- -- The node is left unchanged (apart from expansion of an exponentiation -- operation). This happens if the routine can determine that the result -- is definitely in range. The Do_Overflow_Check flag is turned off in -- this case. -- -- The node is transformed into an arithmetic operation with a result -- type of Long_Long_Integer. -- -- The node is transformed into a function call that calls an appropriate -- function in the System.Bignums package to compute a Bignum result. -- -- In the first two cases, Lo and Hi are set to the bounds of the possible -- range of results, computed as accurately as possible. In the third case -- Lo and Hi are set to No_Uint (there are some cases where we could get an -- advantage from keeping result ranges for Bignum values, but it could use -- a lot of space and is very unlikely to be valuable). -- -- If the node is not an arithmetic operation, then it is unchanged but -- Lo and Hi are still set (to the bounds of the result subtype if nothing -- better can be determined). -- -- Note: this function is recursive, if called with an arithmetic operator, -- recursive calls are made to process the operands using this procedure. -- So we end up doing things top down. Nothing happens to an arithmetic -- expression until this procedure is called on the top level node and -- then the recursive calls process all the children. We have to do it -- this way. If we try to do it bottom up in natural expansion order, then -- there are two problems. First, where do we stash the bounds, and more -- importantly, semantic processing will be messed up. Consider A+B+C where -- A,B,C are all of type integer, if we processed A+B before doing semantic -- analysis of the addition of this result to C, that addition could end up -- with a Long_Long_Integer left operand and an Integer right operand, and -- we would get a semantic error. -- -- The routine is called in three situations if we are operating in either -- MINIMIZED or ELIMINATED modes. -- -- Overflow processing applied to the top node of an expression tree when -- that node is an arithmetic operator. In this case the result is -- converted to the appropriate result type (there is special processing -- when the parent is a conversion, see body for details). -- -- Overflow processing applied to the operands of a comparison operation. -- In this case, the comparison is done on the result Long_Long_Integer -- or Bignum values, without raising any exceptions. -- -- Overflow processing applied to the left operand of a membership test. -- In this case no exception is raised if a Long_Long_Integer or Bignum -- result is outside the range of the type of that left operand (it is -- just that the result of IN is false in that case). -- -- Note that if Bignum values appear, the caller must take care of doing -- the appropriate mark/release operations on the secondary stack. -- -- Top_Level is used to avoid inefficient unnecessary transitions into the -- Bignum domain. If Top_Level is True, it means that the caller will have -- to convert any Bignum value back to Long_Long_Integer, possibly checking -- that the value is in range. This is the normal case for a top level -- operator in a subexpression. There is no point in going into Bignum mode -- to avoid an overflow just so we can check for overflow the next moment. -- For calls from comparisons and membership tests, and for all recursive -- calls, we do want to transition into the Bignum domain if necessary. -- Note that this setting is only relevant in ELIMINATED mode. ------------------------------------------------------- -- Control and Optimization of Range/Overflow Checks -- ------------------------------------------------------- -- Range checks are controlled by the Do_Range_Check flag. The front end -- is responsible for setting this flag in relevant nodes. Originally -- the back end generated all corresponding range checks. But later on -- we decided to generate many range checks in the front end. We are now -- in the transitional phase where some of these checks are still done -- by the back end, but many are done by the front end. It is possible -- that in the future we might move all the checks to the front end. The -- main remaining back end checks are for subscript checking. -- Overflow checks are similarly controlled by the Do_Overflow_Check flag. -- The difference here is that if back end overflow checks are inactive -- (Backend_Overflow_Checks_On_Target set False), then the actual overflow -- checks are generated by the front end, but if back end overflow checks -- are active (Backend_Overflow_Checks_On_Target set True), then the back -- end does generate the checks. -- The following two routines are used to set these flags, they allow -- for the possibility of eliminating checks. Checks can be eliminated -- if an identical check has already been performed. procedure Enable_Overflow_Check (N : Node_Id); -- First this routine determines if an overflow check is needed by doing -- an appropriate range check. If a check is not needed, then the call -- has no effect. If a check is needed then this routine sets the flag -- Do_Overflow_Check in node N to True, unless it can be determined that -- the check is not needed. The only condition under which this is the -- case is if there was an identical check earlier on. procedure Enable_Range_Check (N : Node_Id); -- Set Do_Range_Check flag in node N True, unless it can be determined -- that the check is not needed. The only condition under which this is -- the case is if there was an identical check earlier on. This routine -- is not responsible for doing range analysis to determine whether or -- not such a check is needed -- the caller is expected to do this. The -- one other case in which the request to set the flag is ignored is -- when Kill_Range_Check is set in an N_Unchecked_Conversion node. -- The following routines are used to keep track of processing sequences -- of statements (e.g. the THEN statements of an IF statement). A check -- that appears within such a sequence can eliminate an identical check -- within this sequence of statements. However, after the end of the -- sequence of statements, such a check is no longer of interest, since -- it may not have been executed. procedure Conditional_Statements_Begin; -- This call marks the start of processing of a sequence of statements. -- Every call to this procedure must be followed by a matching call to -- Conditional_Statements_End. procedure Conditional_Statements_End; -- This call removes from consideration all saved checks since the -- corresponding call to Conditional_Statements_Begin. These two -- procedures operate in a stack like manner. -- The mechanism for optimizing checks works by remembering checks -- that have already been made, but certain conditions, for example -- an assignment to a variable involved in a check, may mean that the -- remembered check is no longer valid, in the sense that if the same -- expression appears again, another check is required because the -- value may have changed. -- The following routines are used to note conditions which may render -- some or all of the stored and remembered checks to be invalidated. procedure Kill_Checks (V : Entity_Id); -- This procedure records an assignment or other condition that causes -- the value of the variable to be changed, invalidating any stored -- checks that reference the value. Note that all such checks must -- be discarded, even if they are not in the current statement range. procedure Kill_All_Checks; -- This procedure kills all remembered checks ----------------------------- -- Length and Range Checks -- ----------------------------- -- In the following procedures, there are three arguments which have -- a common meaning as follows: -- Expr The expression to be checked. If a check is required, -- the appropriate flag will be placed on this node. Whether -- this node is further examined depends on the setting of -- the parameter Source_Typ, as described below. -- ??? Apply_Length_Check and Apply_Range_Check do not have an Expr -- formal -- ??? Apply_Length_Check and Apply_Range_Check have a Ck_Node formal -- which is undocumented, is it the same as Expr? -- Target_Typ The target type on which the check is to be based. For -- example, if we have a scalar range check, then the check -- is that we are in range of this type. -- Source_Typ Normally Empty, but can be set to a type, in which case -- this type is used for the check, see below. -- The checks operate in one of two modes: -- If Source_Typ is Empty, then the node Expr is examined, at the very -- least to get the source subtype. In addition for some of the checks, -- the actual form of the node may be examined. For example, a node of -- type Integer whose actual form is an Integer conversion from a type -- with range 0 .. 3 can be determined to have a value in range 0 .. 3. -- If Source_Typ is given, then nothing can be assumed about the Expr, -- and indeed its contents are not examined. In this case the check is -- based on the assumption that Expr can be an arbitrary value of the -- given Source_Typ. -- Currently, the only case in which a Source_Typ is explicitly supplied -- is for the case of Out and In_Out parameters, where, for the conversion -- on return (the Out direction), the types must be reversed. This is -- handled by the caller. procedure Apply_Length_Check (Ck_Node : Node_Id; Target_Typ : Entity_Id; Source_Typ : Entity_Id := Empty); -- This procedure builds a sequence of declarations to do a length check -- that checks if the lengths of the two arrays Target_Typ and source type -- are the same. The resulting actions are inserted at Node using a call -- to Insert_Actions. -- -- For access types, the Directly_Designated_Type is retrieved and -- processing continues as enumerated above, with a guard against null -- values. -- -- Note: calls to Apply_Length_Check currently never supply an explicit -- Source_Typ parameter, but Apply_Length_Check takes this parameter and -- processes it as described above for consistency with the other routines -- in this section. procedure Apply_Range_Check (Ck_Node : Node_Id; Target_Typ : Entity_Id; Source_Typ : Entity_Id := Empty); -- For a Node of kind N_Range, constructs a range check action that tests -- first that the range is not null and then that the range is contained in -- the Target_Typ range. -- -- For scalar types, constructs a range check action that first tests that -- the expression is contained in the Target_Typ range. The difference -- between this and Apply_Scalar_Range_Check is that the latter generates -- the actual checking code against the Etype of the expression. -- -- For constrained array types, construct series of range check actions -- to check that each Expr range is properly contained in the range of -- Target_Typ. -- -- For a type conversion to an unconstrained array type, constructs a range -- check action to check that the bounds of the source type are within the -- constraints imposed by the Target_Typ. -- -- For access types, the Directly_Designated_Type is retrieved and -- processing continues as enumerated above, with a guard against null -- values. -- -- The source type is used by type conversions to unconstrained array -- types to retrieve the corresponding bounds. procedure Apply_Static_Length_Check (Expr : Node_Id; Target_Typ : Entity_Id; Source_Typ : Entity_Id := Empty); -- Tries to determine statically whether the two array types source type -- and Target_Typ have the same length. If it can be determined at compile -- time that they do not, then an N_Raise_Constraint_Error node replaces -- Expr, and a warning message is issued. procedure Apply_Scalar_Range_Check (Expr : Node_Id; Target_Typ : Entity_Id; Source_Typ : Entity_Id := Empty; Fixed_Int : Boolean := False); -- For scalar types, determines whether an expression node should be -- flagged as needing a runtime range check. If the node requires such a -- check, the Do_Range_Check flag is turned on. The Fixed_Int flag if set -- causes any fixed-point values to be treated as though they were discrete -- values (i.e. the underlying integer value is used). type Check_Result is private; -- Type used to return result of Get_Range_Checks call, for later use in -- call to Insert_Range_Checks procedure. function Get_Range_Checks (Ck_Node : Node_Id; Target_Typ : Entity_Id; Source_Typ : Entity_Id := Empty; Warn_Node : Node_Id := Empty) return Check_Result; -- Like Apply_Range_Check, except it does not modify anything. Instead -- it returns an encapsulated result of the check operations for later -- use in a call to Insert_Range_Checks. If Warn_Node is non-empty, its -- Sloc is used, in the static case, for the generated warning or error. -- Additionally, it is used rather than Expr (or Low/High_Bound of Expr) -- in constructing the check. procedure Append_Range_Checks (Checks : Check_Result; Stmts : List_Id; Suppress_Typ : Entity_Id; Static_Sloc : Source_Ptr; Flag_Node : Node_Id); -- Called to append range checks as returned by a call to Get_Range_Checks. -- Stmts is a list to which either the dynamic check is appended or the -- raise Constraint_Error statement is appended (for static checks). -- Static_Sloc is the Sloc at which the raise CE node points, Flag_Node is -- used as the node at which to set the Has_Dynamic_Check flag. Checks_On -- is a boolean value that says if range and index checking is on or not. procedure Insert_Range_Checks (Checks : Check_Result; Node : Node_Id; Suppress_Typ : Entity_Id; Static_Sloc : Source_Ptr := No_Location; Flag_Node : Node_Id := Empty; Do_Before : Boolean := False); -- Called to insert range checks as returned by a call to Get_Range_Checks. -- Node is the node after which either the dynamic check is inserted or -- the raise Constraint_Error statement is inserted (for static checks). -- Suppress_Typ is the type to check to determine if checks are suppressed. -- Static_Sloc, if passed, is the Sloc at which the raise CE node points, -- otherwise Sloc (Node) is used. The Has_Dynamic_Check flag is normally -- set at Node. If Flag_Node is present, then this is used instead as the -- node at which to set the Has_Dynamic_Check flag. Normally the check is -- inserted after, if Do_Before is True, the check is inserted before -- Node. ----------------------- -- Expander Routines -- ----------------------- -- Some of the earlier processing for checks results in temporarily setting -- the Do_Range_Check flag rather than actually generating checks. Now we -- are moving the generation of such checks into the front end for reasons -- of efficiency and simplicity (there were difficulties in handling this -- in the back end when side effects were present in the expressions being -- checked). -- Probably we could eliminate the Do_Range_Check flag entirely and -- generate the checks earlier, but this is a delicate area and it -- seemed safer to implement the following routines, which are called -- late on in the expansion process. They check the Do_Range_Check flag -- and if it is set, generate the actual checks and reset the flag. procedure Generate_Range_Check (N : Node_Id; Target_Type : Entity_Id; Reason : RT_Exception_Code); -- This procedure is called to actually generate and insert a range check. -- A check is generated to ensure that the value of N lies within the range -- of the target type. Note that the base type of N may be different from -- the base type of the target type. This happens in the conversion case. -- The Reason parameter is the exception code to be used for the exception -- if raised. -- -- Note: if the expander is not active, or if we are in GNATprove mode, -- then we do not generate explicit range code. Instead we just turn the -- Do_Range_Check flag on, since in these cases that's what we want to see -- in the tree (GNATprove in particular depends on this flag being set). If -- we generate the actual range check, then we make sure the flag is off, -- since the code we generate takes complete care of the check. -- -- Historical note: We used to just pass on the Do_Range_Check flag to the -- back end to generate the check, but now in code-generation mode we never -- have this flag set, since the front end takes care of the check. The -- normal processing flow now is that the analyzer typically turns on the -- Do_Range_Check flag, and if it is set, this routine is called, which -- turns the flag off in code-generation mode. procedure Generate_Index_Checks (N : Node_Id); -- This procedure is called to generate index checks on the subscripts for -- the indexed component node N. Each subscript expression is examined, and -- if the Do_Range_Check flag is set, an appropriate index check is -- generated and the flag is reset. -- Similarly, we set the flag Do_Discriminant_Check in the semantic -- analysis to indicate that a discriminant check is required for selected -- component of a discriminated type. The following routine is called from -- the expander to actually generate the call. procedure Generate_Discriminant_Check (N : Node_Id); -- N is a selected component for which a discriminant check is required to -- make sure that the discriminants have appropriate values for the -- selection. This is done by calling the appropriate discriminant checking -- routine for the selector. ----------------------- -- Validity Checking -- ----------------------- -- In (RM 13.9.1(9-11)) we have the following rules on invalid values -- If the representation of a scalar object does not represent value of -- the object's subtype (perhaps because the object was not initialized), -- the object is said to have an invalid representation. It is a bounded -- error to evaluate the value of such an object. If the error is -- detected, either Constraint_Error or Program_Error is raised. -- Otherwise, execution continues using the invalid representation. The -- rules of the language outside this subclause assume that all objects -- have valid representations. The semantics of operations on invalid -- representations are as follows: -- -- 10 If the representation of the object represents a value of the -- object's type, the value of the type is used. -- -- 11 If the representation of the object does not represent a value -- of the object's type, the semantics of operations on such -- representations is implementation-defined, but does not by -- itself lead to erroneous or unpredictable execution, or to -- other objects becoming abnormal. -- We quote the rules in full here since they are quite delicate. Most -- of the time, we can just compute away with wrong values, and get a -- possibly wrong result, which is well within the range of allowed -- implementation defined behavior. The two tricky cases are subscripted -- array assignments, where we don't want to do wild stores, and case -- statements where we don't want to do wild jumps. -- In GNAT, we control validity checking with a switch -gnatV that can take -- three parameters, n/d/f for None/Default/Full. These modes have the -- following meanings: -- None (no validity checking) -- In this mode, there is no specific checking for invalid values -- and the code generator assumes that all stored values are always -- within the bounds of the object subtype. The consequences are as -- follows: -- For case statements, an out of range invalid value will cause -- Constraint_Error to be raised, or an arbitrary one of the case -- alternatives will be executed. Wild jumps cannot result even -- in this mode, since we always do a range check -- For subscripted array assignments, wild stores will result in -- the expected manner when addresses are calculated using values -- of subscripts that are out of range. -- It could perhaps be argued that this mode is still conformant with -- the letter of the RM, since implementation defined is a rather -- broad category, but certainly it is not in the spirit of the -- RM requirement, since wild stores certainly seem to be a case of -- erroneous behavior. -- Default (default standard RM-compatible validity checking) -- In this mode, which is the default, minimal validity checking is -- performed to ensure no erroneous behavior as follows: -- For case statements, an out of range invalid value will cause -- Constraint_Error to be raised. -- For subscripted array assignments, invalid out of range -- subscript values will cause Constraint_Error to be raised. -- Full (Full validity checking) -- In this mode, the protections guaranteed by the standard mode are -- in place, and the following additional checks are made: -- For every assignment, the right side is checked for validity -- For every call, IN and IN OUT parameters are checked for validity -- For every subscripted array reference, both for stores and loads, -- all subscripts are checked for validity. -- These checks are not required by the RM, but will in practice -- improve the detection of uninitialized variables, particularly -- if used in conjunction with pragma Normalize_Scalars. -- In the above description, we talk about performing validity checks, -- but we don't actually generate a check in a case where the compiler -- can be sure that the value is valid. Note that this assurance must -- be achieved without assuming that any uninitialized value lies within -- the range of its type. The following are cases in which values are -- known to be valid. The flag Is_Known_Valid is used to keep track of -- some of these cases. -- If all possible stored values are valid, then any uninitialized -- value must be valid. -- Literals, including enumeration literals, are clearly always valid -- Constants are always assumed valid, with a validity check being -- performed on the initializing value where necessary to ensure that -- this is the case. -- For variables, the status is set to known valid if there is an -- initializing expression. Again a check is made on the initializing -- value if necessary to ensure that this assumption is valid. The -- status can change as a result of local assignments to a variable. -- If a known valid value is unconditionally assigned, then we mark -- the left side as known valid. If a value is assigned that is not -- known to be valid, then we mark the left side as invalid. This -- kind of processing does NOT apply to non-local variables since we -- are not following the flow graph (more properly the flow of actual -- processing only corresponds to the flow graph for local assignments). -- For non-local variables, we preserve the current setting, i.e. a -- validity check is performed when assigning to a knonwn valid global. -- Note: no validity checking is required if range checks are suppressed -- regardless of the setting of the validity checking mode. -- The following procedures are used in handling validity checking procedure Apply_Subscript_Validity_Checks (Expr : Node_Id); -- Expr is the node for an indexed component. If validity checking and -- range checking are enabled, all subscripts for this indexed component -- are checked for validity. procedure Check_Valid_Lvalue_Subscripts (Expr : Node_Id); -- Expr is a lvalue, i.e. an expression representing the target of an -- assignment. This procedure checks for this expression involving an -- assignment to an array value. We have to be sure that all the subscripts -- in such a case are valid, since according to the rules in (RM -- 13.9.1(9-11)) such assignments are not permitted to result in erroneous -- behavior in the case of invalid subscript values. procedure Ensure_Valid (Expr : Node_Id; Holes_OK : Boolean := False; Related_Id : Entity_Id := Empty; Is_Low_Bound : Boolean := False; Is_High_Bound : Boolean := False); -- Ensure that Expr represents a valid value of its type. If this type -- is not a scalar type, then the call has no effect, since validity -- is only an issue for scalar types. The effect of this call is to -- check if the value is known valid, if so, nothing needs to be done. -- If this is not known, then either Expr is set to be range checked, -- or specific checking code is inserted so that an exception is raised -- if the value is not valid. -- -- The optional argument Holes_OK indicates whether it is necessary to -- worry about enumeration types with non-standard representations leading -- to "holes" in the range of possible representations. If Holes_OK is -- True, then such values are assumed valid (this is used when the caller -- will make a separate check for this case anyway). If Holes_OK is False, -- then this case is checked, and code is inserted to ensure that Expr is -- valid, raising Constraint_Error if the value is not valid. -- -- Related_Id denotes the entity of the context where Expr appears. Flags -- Is_Low_Bound and Is_High_Bound specify whether the expression to check -- is the low or the high bound of a range. These three optional arguments -- signal Remove_Side_Effects to create an external symbol of the form -- Chars (Related_Id)_FIRST/_LAST. For suggested use of these parameters -- see the warning in the body of Sem_Ch3.Process_Range_Expr_In_Decl. function Expr_Known_Valid (Expr : Node_Id) return Boolean; -- This function tests it the value of Expr is known to be valid in the -- sense of RM 13.9.1(9-11). In the case of GNAT, it is only discrete types -- which are a concern, since for non-discrete types we simply continue -- computation with invalid values, which does not lead to erroneous -- behavior. Thus Expr_Known_Valid always returns True if the type of Expr -- is non-discrete. For discrete types the value returned is True only if -- it can be determined that the value is Valid. Otherwise False is -- returned. procedure Insert_Valid_Check (Expr : Node_Id; Related_Id : Entity_Id := Empty; Is_Low_Bound : Boolean := False; Is_High_Bound : Boolean := False); -- Inserts code that will check for the value of Expr being valid, in the -- sense of the 'Valid attribute returning True. Constraint_Error will be -- raised if the value is not valid. -- -- Related_Id denotes the entity of the context where Expr appears. Flags -- Is_Low_Bound and Is_High_Bound specify whether the expression to check -- is the low or the high bound of a range. These three optional arguments -- signal Remove_Side_Effects to create an external symbol of the form -- Chars (Related_Id)_FIRST/_LAST. For suggested use of these parameters -- see the warning in the body of Sem_Ch3.Process_Range_Expr_In_Decl. procedure Null_Exclusion_Static_Checks (N : Node_Id); -- Ada 2005 (AI-231): Check bad usages of the null-exclusion issue procedure Remove_Checks (Expr : Node_Id); -- Remove all checks from Expr except those that are only executed -- conditionally (on the right side of And Then/Or Else. This call -- removes only embedded checks (Do_Range_Check, Do_Overflow_Check). procedure Validity_Check_Range (N : Node_Id; Related_Id : Entity_Id := Empty); -- If N is an N_Range node, then Ensure_Valid is called on its bounds, if -- validity checking of operands is enabled. Related_Id denotes the entity -- of the context where N appears. ----------------------------- -- Handling of Check Names -- ----------------------------- -- The following table contains Name_Id's for recognized checks. The first -- entries (corresponding to the values of the subtype Predefined_Check_Id) -- contain the Name_Id values for the checks that are predefined, including -- All_Checks (see Types). Remaining entries are those that are introduced -- by pragma Check_Names. package Check_Names is new Table.Table ( Table_Component_Type => Name_Id, Table_Index_Type => Check_Id, Table_Low_Bound => 1, Table_Initial => 30, Table_Increment => 200, Table_Name => "Name_Check_Names"); function Get_Check_Id (N : Name_Id) return Check_Id; -- Function to search above table for matching name. If found returns the -- corresponding Check_Id value in the range 1 .. Check_Name.Last. If not -- found returns No_Check_Id. private type Check_Result is array (Positive range 1 .. 2) of Node_Id; -- There are two cases for the result returned by Range_Check: -- -- For the static case the result is one or two nodes that should cause -- a Constraint_Error. Typically these will include Expr itself or the -- direct descendants of Expr, such as Low/High_Bound (Expr)). It is the -- responsibility of the caller to rewrite and substitute the nodes with -- N_Raise_Constraint_Error nodes. -- -- For the non-static case a single N_Raise_Constraint_Error node with a -- non-empty Condition field is returned. -- -- Unused entries in Check_Result, if any, are simply set to Empty For -- external clients, the required processing on this result is achieved -- using the Insert_Range_Checks routine. pragma Inline (Apply_Length_Check); pragma Inline (Apply_Range_Check); pragma Inline (Apply_Static_Length_Check); end Checks;
editorSwing/Prog.asm
Azdepredador/CompiladorANTLRV4
0
177084
<gh_stars>0 extern printf extern scanf SECTION .data msg0: db "%d" ,10,0 SECTION .bss a: resd 1 b: resd 1 c: resd 1 SECTION .text global main main: push ebp mov ebp,esp mov eax,20 mov [a],eax mov eax,20 mov [b],eax mov ecx , 9 .loop0: push ecx push dword [a] push dword msg0 call printf add esp,8 pop ecx loop .loop0 mov ecx , [b] push ecx mov ecx , 2 push ecx pop ecx pop eax add eax,ecx push eax mov ecx , [a] push ecx pop ecx pop eax add eax,ecx push eax mov [c] ,eax add esp,4 mov esp,ebp pop ebp mov eax,0 ret
boards/stm32_common/sdram/stm32-sdram.adb
morbos/Ada_Drivers_Library
2
18738
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- 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. -- -- -- ------------------------------------------------------------------------------ with Ada.Real_Time; use Ada.Real_Time; pragma Warnings (Off, "* is an internal GNAT unit*"); with System.BB.Parameters; pragma Warnings (On, "* is an internal GNAT unit*"); with STM32.Board; use STM32.Board; with STM32.Device; use STM32.Device; with STM32.FMC; use STM32.FMC; with STM32.GPIO; use STM32.GPIO; with STM32_SVD.RCC; use STM32_SVD.RCC; package body STM32.SDRAM is Initialized : Boolean := False; G_Base_Addr : UInt32; procedure SDRAM_GPIOConfig; procedure SDRAM_InitSequence; ---------------------- -- SDRAM_GPIOConfig -- ---------------------- procedure SDRAM_GPIOConfig is begin Enable_Clock (SDRAM_PINS); Configure_IO (SDRAM_PINS, (Speed => Speed_50MHz, Mode => Mode_AF, Output_Type => Push_Pull, Resistors => Pull_Up)); Configure_Alternate_Function (SDRAM_PINS, GPIO_AF_FMC_12); Lock (SDRAM_PINS); end SDRAM_GPIOConfig; ------------------------ -- SDRAM_InitSequence -- ------------------------ procedure SDRAM_InitSequence is CAS : SDRAM_Mode_CAS_Latency; begin loop exit when not FMC_SDRAM_Busy; end loop; FMC_SDRAM_Cmd ((Mode => FMC_Command_Mode_CLK_Enabled, Target => SDRAM_Bank)); loop exit when not FMC_SDRAM_Busy; end loop; delay until Clock + Milliseconds (1); FMC_SDRAM_Cmd ((Mode => FMC_Command_Mode_PALL, Target => SDRAM_Bank)); loop exit when not FMC_SDRAM_Busy; end loop; FMC_SDRAM_Cmd ((Mode => FMC_Command_Mode_AutoRefresh, Target => SDRAM_Bank, Auto_Refresh_Number => 8)); loop exit when not FMC_SDRAM_Busy; end loop; case SDRAM_CAS_Latency is when FMC_CAS_Latency_1 | FMC_CAS_Latency_2 => CAS := SDRAM_Mode_CAS_Latency_2; when FMC_CAS_Latency_3 => CAS := SDRAM_Mode_CAS_Latency_3; end case; FMC_SDRAM_Cmd ((Mode => FMC_Command_Mode_LoadMode, Target => SDRAM_Bank, Mode_Register => (SDRAM_Mode_Burst_Length_1, SDRAM_Mode_Burst_Sequential, CAS, SDRAM_Mode_Writeburst_Mode_Single))); loop exit when not FMC_SDRAM_Busy; end loop; FMC_Set_Refresh_Count (SDRAM_Refresh_Cnt); loop exit when not FMC_SDRAM_Busy; end loop; end SDRAM_InitSequence; ---------------- -- Initialize -- ---------------- procedure Initialize is Timing_Conf : FMC_SDRAM_TimingInit_Config; SDRAM_Conf : FMC_SDRAM_Init_Config; SDCLK : constant := System.BB.Parameters.Clock_Frequency / 2; SDPeriod_In_ns : constant := 1_000_000_000 / SDCLK; Refresh_Delay : Unsigned_32; begin if Initialized then return; end if; Initialized := True; G_Base_Addr := SDRAM_Base; ------------------------ -- GPIO CONFIGURATION -- ------------------------ SDRAM_GPIOConfig; -------------- -- FMC_INIT -- -------------- RCC_Periph.AHB3ENR.FMCEN := True; RCC_Periph.AHB3RSTR.FMCRST := True; RCC_Periph.AHB3RSTR.FMCRST := False; -- 100 MHz of SD clock frequency (200MHz / 2) -- 1 Clock cycle = 1 / 100MHz = 10ns Refresh_Delay := (SDRAM_Min_Delay_In_ns - SDPeriod_In_ns + 1) / SDPeriod_In_ns; Timing_Conf := ( -- 2 Clock cycles for Load to Active delay LoadToActiveDelay => 2, -- min = 60ns: 6 * 10.0 ExitSelfRefreshDelay => FMC_SDRAM_Timing (Refresh_Delay), -- in range [42ns, 120k ns] => using 4 * 11.1 ns SelfRefreshTime => 4, -- min = 60ns RowCycleDelay => FMC_SDRAM_Timing (Refresh_Delay), -- min = 20ns WriteRecoveryTime => 2, RPDelay => 2, RCDDelay => 2); SDRAM_Conf := (Bank => SDRAM_Bank, ColumnBitsNumber => FMC_ColumnBits_Number_8b, RowBitsNumber => SDRAM_Row_Bits, SDMemoryDataWidth => SDRAM_Mem_Width, InternalBankNumber => FMC_InternalBank_Number_4, CASLatency => SDRAM_CAS_Latency, WriteProtection => FMC_Write_Protection_Disable, SDClockPeriod => SDRAM_CLOCK_Period, ReadBurst => SDRAM_Read_Burst, ReadPipeDelay => SDRAM_Read_Pipe, Timing_Conf => Timing_Conf); FMC_SDRAM_Init (SDRAM_Conf); if SDRAM_Conf.Bank /= FMC_Bank1_SDRAM then SDRAM_Conf.Bank := FMC_Bank1_SDRAM; FMC_SDRAM_Init (SDRAM_Conf); end if; SDRAM_InitSequence; end Initialize; ------------------ -- Base_Address -- ------------------ function Base_Address return System.Address is begin return System'To_Address (G_Base_Addr); end Base_Address; ------------- -- Reserve -- ------------- function Reserve (Amount : UInt32; Align : UInt32 := Standard'Maximum_Alignment) return System.Address is Ret : constant System.Address := System'To_Address (G_Base_Addr); Rounded_Size : UInt32; begin Initialize; Rounded_Size := Amount + Align; Rounded_Size := Rounded_Size - Rounded_Size rem Align; G_Base_Addr := G_Base_Addr + Rounded_Size; return Ret; end Reserve; end STM32.SDRAM;
Task/Write-language-name-in-3D-ASCII/Ada/write-language-name-in-3d-ascii.ada
mullikine/RosettaCodeData
1
19756
<filename>Task/Write-language-name-in-3D-ASCII/Ada/write-language-name-in-3d-ascii.ada with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Fixed; use Ada.Strings.Fixed; procedure AsciiArt is art : constant array(1..27) of String(1..14) := (1=>" /\\\\\\ ", 2=>" /\\\", 3|6|9=>" ", 4|12=>" /\\\\\\\\\\ ", 5|8|11=>" \/\\\", 7|17|21=>" /\\\//////\\\", 10|19|20|22=>"\/\\\ \/\\\", 13|23|24=>"\/\\\\\\\\\\\\", 14|18=>" /\\\\\\\\\\\", 15=>" \/////////\\\", 16=>"\/\\\//////\\\", 25=>"\/// \/// ", 26|27=>"\//////////// "); begin for i in art'Range loop Put(art(i)&' '); if i mod 3 = 0 then New_Line; Put(i/3*' '); end if; end loop; end AsciiArt;
Assembly/Examples/fib8.asm
p-rivero/CESCA
7
8127
#include "CESCA.cpu" #include "startup.asm" ; FIBONACCI SEQUENCE #bank program mov R0, 0 mov R1, 1 fib: mov OUT, R1 add R0, R0, R1 jc .end mov OUT, R0 add R1, R0, R1 jnc fib .end: hlt ; Stops at the last 8-bit number in the sequence (233)
src/wiki-parsers-html.adb
jquorning/ada-wiki
18
17051
<reponame>jquorning/ada-wiki ----------------------------------------------------------------------- -- wiki-parsers-html -- Wiki HTML parser -- Copyright (C) 2015, 2016, 2018, 2020, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- 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. ----------------------------------------------------------------------- with Interfaces; with Wiki.Helpers; with Wiki.Parsers.Html.Entities; package body Wiki.Parsers.Html is -- Parse an HTML attribute procedure Parse_Attribute_Name (P : in out Parser; Name : in out Wiki.Strings.BString); -- Parse a HTML/XML comment to strip it. procedure Parse_Comment (P : in out Parser); -- Parse a simple DOCTYPE declaration and ignore it. procedure Parse_Doctype (P : in out Parser); procedure Collect_Attributes (P : in out Parser); function Is_Letter (C : in Wiki.Strings.WChar) return Boolean; function From_Hex (Value : in String) return Wiki.Strings.WChar; procedure Collect_Attribute_Value (P : in out Parser; Value : in out Wiki.Strings.BString); function Is_Letter (C : in Wiki.Strings.WChar) return Boolean is begin return C > ' ' and C /= ':' and C /= '>' and C /= ''' and C /= '"' and C /= '/' and C /= '=' and C /= '<'; end Is_Letter; -- ------------------------------ -- Parse an HTML attribute -- ------------------------------ procedure Parse_Attribute_Name (P : in out Parser; Name : in out Wiki.Strings.BString) is C : Wiki.Strings.WChar; begin Skip_Spaces (P); while not P.Is_Eof loop Peek (P, C); if not Is_Letter (C) then Put_Back (P, C); return; end if; Wiki.Strings.Wide_Wide_Builders.Append (Name, C); end loop; end Parse_Attribute_Name; procedure Collect_Attribute_Value (P : in out Parser; Value : in out Wiki.Strings.BString) is C : Wiki.Strings.WChar; Token : Wiki.Strings.WChar; begin Peek (P, Token); if Wiki.Helpers.Is_Space_Or_Newline (Token) then Skip_Spaces (P); Peek (P, Token); if Token /= ''' and Token /= '"' then Put_Back (P, Token); return; end if; elsif Token = '>' then Put_Back (P, Token); return; end if; if Token /= ''' and Token /= '"' then Wiki.Strings.Wide_Wide_Builders.Append (Value, Token); while not P.Is_Eof loop Peek (P, C); if C = ''' or C = '"' or C = ' ' or C = '=' or C = '>' or C = '<' or C = '`' then Put_Back (P, C); return; end if; Wiki.Strings.Wide_Wide_Builders.Append (Value, C); end loop; else while not P.Is_Eof loop Peek (P, C); if C = Token then return; end if; Wiki.Strings.Wide_Wide_Builders.Append (Value, C); end loop; end if; end Collect_Attribute_Value; -- ------------------------------ -- Parse a list of HTML attributes up to the first '>'. -- attr-name -- attr-name= -- attr-name=value -- attr-name='value' -- attr-name="value" -- <name name='value' ...> -- ------------------------------ procedure Collect_Attributes (P : in out Parser) is procedure Append_Attribute (Name : in Wiki.Strings.WString); C : Wiki.Strings.WChar; Name : Wiki.Strings.BString (64); Value : Wiki.Strings.BString (256); procedure Append_Attribute (Name : in Wiki.Strings.WString) is procedure Attribute_Value (Value : in Wiki.Strings.WString); procedure Attribute_Value (Value : in Wiki.Strings.WString) is begin Attributes.Append (P.Attributes, Name, Value); end Attribute_Value; procedure Attribute_Value is new Wiki.Strings.Wide_Wide_Builders.Get (Attribute_Value); pragma Inline (Attribute_Value); begin Attribute_Value (Value); end Append_Attribute; pragma Inline (Append_Attribute); procedure Append_Attribute is new Wiki.Strings.Wide_Wide_Builders.Get (Append_Attribute); begin Wiki.Attributes.Clear (P.Attributes); while not P.Is_Eof loop Parse_Attribute_Name (P, Name); Skip_Spaces (P); Peek (P, C); if C = '>' or C = '<' or C = '/' then Put_Back (P, C); exit; end if; if C = '=' then Collect_Attribute_Value (P, Value); Append_Attribute (Name); Wiki.Strings.Wide_Wide_Builders.Clear (Name); Wiki.Strings.Wide_Wide_Builders.Clear (Value); elsif Wiki.Strings.Wide_Wide_Builders.Length (Name) > 0 then Put_Back (P, C); Append_Attribute (Name); Wiki.Strings.Wide_Wide_Builders.Clear (Name); end if; end loop; -- Add any pending attribute. if Wiki.Strings.Wide_Wide_Builders.Length (Name) > 0 then Append_Attribute (Name); end if; end Collect_Attributes; -- ------------------------------ -- Parse a HTML/XML comment to strip it. -- ------------------------------ procedure Parse_Comment (P : in out Parser) is C : Wiki.Strings.WChar; begin Peek (P, C); while not P.Is_Eof loop Peek (P, C); if C = '-' then declare Count : Natural := 1; begin Peek (P, C); while not P.Is_Eof and C = '-' loop Peek (P, C); Count := Count + 1; end loop; exit when C = '>' and Count >= 2; end; end if; end loop; end Parse_Comment; -- ------------------------------ -- Parse a simple DOCTYPE declaration and ignore it. -- ------------------------------ procedure Parse_Doctype (P : in out Parser) is C : Wiki.Strings.WChar; begin while not P.Is_Eof loop Peek (P, C); exit when C = '>'; end loop; end Parse_Doctype; -- ------------------------------ -- Parse a HTML element <XXX attributes> -- or parse an end of HTML element </XXX> -- ------------------------------ procedure Parse_Element (P : in out Parser) is C : Wiki.Strings.WChar; procedure Add_Element (Token : in Wiki.Strings.WString); procedure Add_Element (Token : in Wiki.Strings.WString) is Tag : Wiki.Html_Tag; begin Tag := Wiki.Find_Tag (Token); if C = '/' then Skip_Spaces (P); Peek (P, C); if C /= '>' then Put_Back (P, C); end if; Flush_Text (P); if Tag = Wiki.UNKNOWN_TAG then if Token = "noinclude" then P.Context.Is_Hidden := not P.Context.Is_Included; elsif Token = "includeonly" then P.Context.Is_Hidden := P.Context.Is_Included; end if; else End_Element (P, Tag); end if; else Collect_Attributes (P); Peek (P, C); if C = '/' then Peek (P, C); if C = '>' then Start_Element (P, Tag, P.Attributes); End_Element (P, Tag); return; end if; elsif C /= '>' then Put_Back (P, C); end if; if Tag = UNKNOWN_TAG then if Token = "noinclude" then P.Context.Is_Hidden := P.Context.Is_Included; elsif Token = "includeonly" then P.Context.Is_Hidden := not P.Context.Is_Included; end if; else Start_Element (P, Tag, P.Attributes); end if; end if; end Add_Element; pragma Inline (Add_Element); procedure Add_Element is new Wiki.Strings.Wide_Wide_Builders.Get (Add_Element); pragma Inline (Add_Element); Name : Wiki.Strings.BString (64); begin Peek (P, C); if C = '!' then Peek (P, C); if C = '-' then Parse_Comment (P); else Parse_Doctype (P); end if; return; end if; if C /= '/' then Put_Back (P, C); end if; Parse_Attribute_Name (P, Name); Add_Element (Name); end Parse_Element; use Interfaces; function From_Hex (C : in Character) return Interfaces.Unsigned_8 is (if C >= '0' and C <= '9' then Character'Pos (C) - Character'Pos ('0') elsif C >= 'A' and C <= 'F' then Character'Pos (C) - Character'Pos ('A') + 10 elsif C >= 'a' and C <= 'f' then Character'Pos (C) - Character'Pos ('a') + 10 else raise Constraint_Error); function From_Hex (Value : in String) return Wiki.Strings.WChar is Result : Interfaces.Unsigned_32 := 0; begin for C of Value loop Result := Interfaces.Shift_Left (Result, 4); Result := Result + Interfaces.Unsigned_32 (From_Hex (C)); end loop; return Wiki.Strings.WChar'Val (Result); end From_Hex; -- ------------------------------ -- Parse an HTML entity such as &nbsp; and replace it with the corresponding code. -- ------------------------------ procedure Parse_Entity (P : in out Parser; Token : in Wiki.Strings.WChar) is pragma Unreferenced (Token); Name : String (1 .. 10); Len : Natural := 0; High : Natural := Wiki.Parsers.Html.Entities.Keywords'Last; Low : Natural := Wiki.Parsers.Html.Entities.Keywords'First; Pos : Natural; C : Wiki.Strings.WChar; begin while Len < Name'Last loop Peek (P, C); exit when C = ';' or else P.Is_Eof; Len := Len + 1; Name (Len) := Wiki.Strings.To_Char (C); end loop; while Low <= High loop Pos := (Low + High) / 2; if Wiki.Parsers.Html.Entities.Keywords (Pos).all = Name (1 .. Len) then Parse_Text (P, Entities.Mapping (Pos)); return; elsif Entities.Keywords (Pos).all < Name (1 .. Len) then Low := Pos + 1; else High := Pos - 1; end if; end loop; if Len > 0 and then Name (Name'First) = '#' then if Name (Name'First + 1) >= '0' and then Name (Name'First + 1) <= '9' then begin C := Wiki.Strings.WChar'Val (Natural'Value (Name (Name'First + 1 .. Len))); Parse_Text (P, C); return; exception when Constraint_Error => null; end; elsif Name (Name'First + 1) = 'x' then begin C := From_Hex (Name (Name'First + 2 .. Len)); Parse_Text (P, C); return; exception when Constraint_Error => null; end; end if; end if; -- The HTML entity is not recognized: we must treat it as plain wiki text. Parse_Text (P, '&'); for I in 1 .. Len loop Parse_Text (P, Wiki.Strings.To_WChar (Name (I))); end loop; if Len > 0 and then Len < Name'Last and then C = ';' then Parse_Text (P, ';'); end if; end Parse_Entity; end Wiki.Parsers.Html;
engine/overworld/cut.asm
etdv-thevoid/pokemon-rgb-enhanced
1
15462
UsedCut: xor a ld [wActionResultOrTookBattleTurn], a ; initialise to failure value ld a, [wCurMapTileset] and a ; OVERWORLD jr z, .overworld cp GYM jr nz, .nothingToCut ld a, [wTileInFrontOfPlayer] cp $50 ; gym cut tree jr nz, .nothingToCut jr .canCut .overworld dec a ld a, [wTileInFrontOfPlayer] cp $3d ; cut tree jr z, .canCut cp $52 ; grass jr z, .canCut .nothingToCut ld hl, .NothingToCutText jp PrintText .NothingToCutText TX_FAR _NothingToCutText db "@" .canCut ld [wCutTile], a ld a, 1 ld [wActionResultOrTookBattleTurn], a ; used cut ld a, [wWhichPokemon] ld hl, wPartyMonNicks call GetPartyMonName ld hl, wd730 set 6, [hl] call GBPalWhiteOutWithDelay3 call ClearSprites call RestoreScreenTilesAndReloadTilePatterns ld a, SCREEN_HEIGHT_PIXELS ld [hWY], a call Delay3 call LoadGBPal call LoadCurrentMapView call SaveScreenTilesToBuffer2 call Delay3 xor a ld [hWY], a ld hl, UsedCutText call PrintText call LoadScreenTilesFromBuffer2 ld hl, wd730 res 6, [hl] ld a, $ff ld [wUpdateSpritesEnabled], a call InitCutAnimOAM ld de, CutTreeBlockSwaps call ReplaceTreeTileBlock call RedrawMapView callba AnimCut ld a, $1 ld [wUpdateSpritesEnabled], a ld a, SFX_CUT call PlaySound ld a, $90 ld [hWY], a call UpdateSprites jp RedrawMapView UsedCutText: TX_FAR _UsedCutText db "@" InitCutAnimOAM: xor a ld [wWhichAnimationOffsets], a ld a, %11100100 ld [rOBP1], a ld a, [wCutTile] cp $52 jr z, .grass ; tree ld de, Overworld_GFX + $2d0 ; cuttable tree sprite top row ld hl, vChars1 + $7c0 lb bc, BANK(Overworld_GFX), $02 call CopyVideoData ld de, Overworld_GFX + $3d0 ; cuttable tree sprite bottom row ld hl, vChars1 + $7e0 lb bc, BANK(Overworld_GFX), $02 call CopyVideoData jr WriteCutAnimationOAMBlock .grass ld hl, vChars1 + $7c0 call LoadCutGrassAnimationTilePattern ld hl, vChars1 + $7d0 call LoadCutGrassAnimationTilePattern ld hl, vChars1 + $7e0 call LoadCutGrassAnimationTilePattern ld hl, vChars1 + $7f0 call LoadCutGrassAnimationTilePattern call WriteCutAnimationOAMBlock ld hl, wOAMBuffer + $93 ld de, 4 ld a, $36 ; Overwrite attributes (use palette 6, green) ld c, e .loop ld [hl], a add hl, de xor $60 dec c jr nz, .loop ret LoadCutGrassAnimationTilePattern: ld de, AnimationTileset2 + $60 ; tile depicting a leaf lb bc, BANK(AnimationTileset2), $01 jp CopyVideoData ; HAX: this used to be called "WriteCutOrBoulderDustAnimationOAMBlock", but the boulder ; code got move out so they could use different palettes. WriteCutAnimationOAMBlock: call GetCutAnimationOffsets ld a, $9 ld de, CutAnimationTilesAndAttributes jp WriteOAMBlock CutAnimationTilesAndAttributes: db $FC,$16,$FD,$16 db $FE,$16,$FF,$16 ; Uses palette 6 (green, specifically for cut trees) GetCutAnimationOffsets: ld hl, wSpriteStateData1 + 4 ld a, [hli] ; player's sprite screen Y position ld b, a inc hl ld a, [hli] ; player's sprite screen X position ld c, a ; bc holds ypos/xpos of player's sprite inc hl inc hl ld a, [hl] ; a holds direction of player (00: down, 04: up, 08: left, 0C: right) srl a ld e, a ld d, $0 ; de holds direction (00: down, 02: up, 04: left, 06: right) ld hl, CutAnimationOffsets rept 9 ; Padding to prevent data shifting nop endr ; ld a, [wWhichAnimationOffsets] ; and a ; ld hl, CutAnimationOffsets ; jr z, .next ; ld hl, BoulderDustAnimationOffsets .next add hl, de ld e, [hl] inc hl ld d, [hl] ld a, b add d ld b, a ld a, c add e ld c, a ret CutAnimationOffsets: ; Each pair represents the x and y pixels offsets from the player of where the cut tree animation should be drawn db 8, 36 ; player is facing down db 8, 4 ; player is facing up db -8, 20 ; player is facing left db 24, 20 ; player is facing right ; BoulderDustAnimationOffsets used to be here rept 8 db 0 endr ReplaceTreeTileBlock: ; Determine the address of the tile block that contains the tile in front of the ; player (i.e. where the tree is) and replace it with the corresponding tile ; block that doesn't have the tree. push de ld a, [wCurMapWidth] add 6 ld c, a ld b, 0 ld d, 0 ld hl, wCurrentTileBlockMapViewPointer ld a, [hli] ld h, [hl] ld l, a add hl, bc ld a, [wSpriteStateData1 + 9] ; player sprite's facing direction and a jr z, .down cp SPRITE_FACING_UP jr z, .up cp SPRITE_FACING_LEFT jr z, .left ; right ld a, [wXBlockCoord] and a jr z, .centerTileBlock jr .rightOfCenter .down ld a, [wYBlockCoord] and a jr z, .centerTileBlock jr .belowCenter .up ld a, [wYBlockCoord] and a jr z, .aboveCenter jr .centerTileBlock .left ld a, [wXBlockCoord] and a jr z, .leftOfCenter jr .centerTileBlock .belowCenter add hl, bc .centerTileBlock add hl, bc .aboveCenter ld e, $2 add hl, de jr .next .leftOfCenter ld e, $1 add hl, bc add hl, de jr .next .rightOfCenter ld e, $3 add hl, bc add hl, de .next pop de ld a, [hl] ld c, a .loop ; find the matching tile block in the array ld a, [de] inc de inc de cp $ff ret z cp c jr nz, .loop dec de ld a, [de] ; replacement tile block from matching array entry ld [hl], a ret CutTreeBlockSwaps: ; first byte = tileset block containing the cut tree ; second byte = corresponding tileset block after the cut animation happens db $32, $6D db $33, $6C db $34, $6F db $35, $4C db $60, $6E db $0B, $0A db $3C, $35 db $3F, $35 db $3D, $36 db $FF ; list terminator
src/adacar-alarmas.adb
Asier98/AdaCar
0
29820
<reponame>Asier98/AdaCar with Ada.Real_Time; use type Ada.Real_Time.Time; use Ada; with AdaCar.Parametros; package body AdaCar.Alarmas is type Lista_Alarmas is array(Tipo_Alarmas) of Estado_Alarma; protected Alarmas_PO with Priority => Parametros.Techo_Alarmas_PO is procedure Notificar_Alarma(Alarma: Tipo_Alarmas); function Leer_Listado_Alarmas return Lista_Alarmas; private Listado_Alarmas: Lista_Alarmas:= (Tipo_Alarmas'Range=> Estado_Alarma'(Desactivada)); end Alarmas_PO; ---------------------- -- Notificar_Alarma -- ---------------------- procedure Notificar_Alarma (Alarma : Tipo_Alarmas) is begin Alarmas_PO.Notificar_Alarma(Alarma); end Notificar_Alarma; task Alarmas_Task with Priority => Parametros.Prioridad_Alarmas_Task; protected body Alarmas_PO is procedure Notificar_Alarma(Alarma: Tipo_Alarmas) is begin Listado_Alarmas(Alarma):= Estado_Alarma'(Activada); end Notificar_Alarma; function Leer_Listado_Alarmas return Lista_Alarmas is begin return Listado_Alarmas; end Leer_Listado_Alarmas; end Alarmas_PO; task body Alarmas_Task is Tseg: constant Duration:= Parametros.Periodo_Alarmas_Task; Periodo: constant Real_Time.Time_Span:= Real_Time.To_Time_Span(Tseg); Next: Real_Time.Time:= Real_Time.Clock; begin null; end Alarmas_Task; end AdaCar.Alarmas;
tools/scitools/conf/understand/ada/ada95/s-wchjis.ads
brucegua/moocos
1
4537
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- S Y S T E M . W C H _ J I S -- -- -- -- S p e c -- -- -- -- $Revision: 2 $ -- -- -- -- Copyright (c) 1992,1993,1994 NYU, All Rights Reserved -- -- -- -- The GNAT library is free software; you can redistribute it and/or modify -- -- it under terms of the GNU Library General Public License as published by -- -- the Free Software Foundation; either version 2, or (at your option) any -- -- later version. The GNAT 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 GNU -- -- Library General Public License for more details. You should have -- -- received a copy of the GNU Library General Public License along with -- -- the GNAT library; see the file COPYING.LIB. If not, write to the Free -- -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -- -- -- ------------------------------------------------------------------------------ -- This package contains routines used for converting between internal -- JIS codes and the two external forms we support (EUC and Shift-JIS) package System.WCh_JIS is pragma Pure (WCh_JIS); function EUC_To_JIS (EUC1, EUC2 : Character) return Wide_Character; -- Given the two bytes of a EUC representation, return the -- corresponding JIS code wide character. Raises Constraint_Error -- if the two characters are not a valid EUC encoding. procedure JIS_To_EUC (J : in Wide_Character; EUC1 : out Character; EUC2 : out Character); -- Given a wide character in JIS form, produce the corresponding -- two bytes of the EUC representation of this character. This is -- only used if J is not in the normal ASCII range, i.e. on entry -- we know that Wide_Character'Pos (J) >= 16#0080# and that we -- thus require a two byte EUC representation (ASCII codes appear -- unchanged as a single byte in EUC). No error checking is performed, -- the input code is assumed to be in an appropriate range. procedure JIS_To_Shift_JIS (J : in Wide_Character; SJ1 : out Character; SJ2 : out Character); -- Given a wide character code in JIS form, produce the corresponding -- two bytes of the Shift-JIS representation of this character. This -- is only used if J is not in the normal ASCII range, i.e. on entry -- we know that Wide_Character'Pos (J) >= 16#0080# and that we -- thus require a two byte EUC representation (ASCII codes appear -- unchanged as a single byte in EUC). No error checking is performed, -- the input code is assumed to be in an appropriate range (note in -- particular that input codes in the range 16#0080#-16#00FF#, i.e. -- Hankaku Kana, do not appear, since Shift JIS has no representation -- for such codes. function Shift_JIS_To_JIS (SJ1, SJ2 : Character) return Wide_Character; -- Given the two bytes of a Shift-JIS representation, return the -- corresponding JIS code wide character. Raises Constraint_Error if -- the two characters are not a valid shift-JIS encoding. end System.WCh_JIS;
ada/src/sarge.adb
martinmoene/Sarge
69
19012
-- sarge.adb - Implementation file for the Sarge command line argument parser project. -- Revision 0 -- Features: -- - -- Notes: -- - -- 2019/04/10, <NAME> with Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded.Text_IO; use Ada.Strings.Unbounded.Text_IO; package body Sarge is --- SET ARGUMENT --- procedure setArgument(arg_short: in Unbounded_String; arg_long: in Unbounded_String; desc: in Unbounded_String; hasVal: in boolean) is arg: aliased Argument := (arg_short => arg_short, arg_long => arg_long, description => desc, hasValue => hasVal, value => +"", parsed => False); begin args.append(arg); -- Set up links. if length(arg_short) > 0 then argNames.include(arg_short, args.Last_Index); end if; if length(arg_long) > 0 then argNames.include(arg_long, args.Last_Index); end if; end setArgument; --- SET DESCRIPTION --- procedure setDescription(desc: in Unbounded_String) is begin description := desc; end setDescription; --- SET USAGE --- procedure setUsage(usage: in Unbounded_String) is begin usageStr := usage; end setUsage; --- PARSE ARGUMENTS --- function parseArguments return boolean is flag_it: argNames_map.Cursor; expectValue: boolean := False; arg: Unbounded_String; short_arg: Unbounded_String; begin -- execName := +Ada.Command_Line.command_name; for arg_i in 1..Ada.Command_Line.argument_count loop arg := +Ada.Command_Line.Argument(arg_i); -- Each flag will start with a '-' character. Multiple flags can be joined together in -- the same string if they're the short form flag type (one character per flag). if expectValue = True then -- Copy value. args.Reference(argNames_map.Element(flag_it)).value := arg; expectValue := False; elsif Ada.Strings.Unbounded.Slice(arg, 1, 1) = "-" then -- Parse flag. -- First check for the long form. if Ada.Strings.Unbounded.Slice(arg, 1, 2) = "--" then -- Long form of the flag. -- First delete the preceding dashes. arg := Ada.Strings.Unbounded.Delete(arg, 1, 2); if not argNames.contains(arg) then -- Flag wasn't found. Abort. Ada.Strings.Unbounded.Text_IO.put_line("Long flag " & arg & " wasn't found"); return False; end if; -- Mark as found. flag_it := argNames.find(arg); args(argNames_map.Element(flag_it)).parsed := True; flagCounter := flagCounter + 1; if args(argNames_map.Element(flag_it)).hasValue = True then expectValue := True; end if; else -- Parse short form flag. Parse all of them sequentially. Only the last one -- is allowed to have an additional value following it. -- First delete the preceding dash. arg := Ada.Strings.Unbounded.Delete(arg, 1, 1); for i in 1 .. Ada.Strings.Unbounded.Length(arg) loop Ada.Strings.Unbounded.Append(short_arg, Ada.Strings.Unbounded.Element(arg, i)); if argNames_map.Contains(argNames, short_arg) /= True then -- Flag wasn't found. Abort. put_line("Short flag " & short_arg & " wasn't found."); return False; end if; flag_it := argNames.find(short_arg); -- Mark as found. args(argNames_map.Element(flag_it)).parsed := True; flagCounter := flagCounter + 1; if args(argNames_map.Element(flag_it)).hasValue = True then if i /= (Ada.Strings.Unbounded.Length(arg)) then -- Flag isn't at end, thus cannot have value. put_line("Flag " & short_arg & " needs to be followed by a value string."); return False; else expectValue := True; end if; end if; Ada.Strings.Unbounded.Delete(short_arg, 1, 1); end loop; end if; else -- Add to text argument vector. textArguments.append(arg); end if; end loop; parsed := True; return True; end parseArguments; --- GET FLAG --- function getFlag(arg_flag: in Unbounded_String; arg_value: out Unbounded_String) return boolean is flag_it: argNames_map.Cursor; use argNames_map; begin if parsed /= True then return False; end if; flag_it := argNames.find(arg_flag); if flag_it = argNames_map.No_Element then return False; elsif args(argNames_map.Element(flag_it)).parsed /= True then return False; end if; if args(argNames_map.Element(flag_it)).hasValue = True then arg_value := args(argNames_map.Element(flag_it)).value; end if; return True; end getFlag; --- EXISTS --- function exists(arg_flag: in Unbounded_String) return boolean is flag_it: argNames_map.Cursor; use argNames_map; begin if parsed /= True then return False; end if; flag_it := argNames.find(arg_flag); if flag_it = argNames_map.No_Element then return False; elsif args(argNames_map.Element(flag_it)).parsed /= True then return False; end if; return True; end exists; --- GET TEXT ARGUMENT --- function getTextArgument(index: in Integer; value: out Unbounded_String) return boolean is begin if index < Integer(tArgVector.length(textArguments)) then value := textArguments(index); return True; end if; return False; end getTextArgument; --- PRINT HELP --- procedure printHelp is count: Integer := 1; spaceCnt: Integer; begin put_line(""); put_line(description); put_line("Usage:"); put_line(usageStr); put_line(""); put_line("Options:"); -- Determine whitespace needed between arg_long and description. for flag in args.Iterate loop if Integer(Ada.Strings.Unbounded.length(args(flag).arg_long)) > count then count := Integer(Ada.Strings.Unbounded.length(args(flag).arg_long)); end if; end loop; count := count + 3; -- Number of actual spaces between the longest arg_long and description. -- Print out the options. for opt in args.Iterate loop --spaceStr := Unbound_String(count - Ada.Strings.Unbounded.length(args(opt).arg_long) spaceCnt := (count - Integer(Ada.Strings.Unbounded.length(args(opt).arg_long))); if Ada.Strings.Unbounded.length(args(opt).arg_short) < 1 then Ada.Strings.Unbounded.Text_IO.put_line(" " & args(opt).arg_short & "--" & args(opt).arg_long & spaceCnt * " " & args(opt).description); else Ada.Strings.Unbounded.Text_IO.put_line("-" & args(opt).arg_short & ", --" & args(opt).arg_long & spaceCnt * " " & args(opt).description); end if; end loop; end printHelp; --- FLAG COUNT --- function flagCount return integer is begin return flagCounter; end flagCount; --- EXECUTABLE NAME --- function executableName return Unbounded_String is begin return execName; end executableName; end Sarge;
src/svd/sam_svd-sdhc.ads
Fabien-Chouteau/samd51-hal
1
9924
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.SDHC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype SDHC_BSR_BLOCKSIZE_Field is HAL.UInt10; -- SDMA Buffer Boundary type BSR_BOUNDARYSelect is (-- 4k bytes Val_4K, -- 8k bytes Val_8K, -- 16k bytes Val_16K, -- 32k bytes Val_32K, -- 64k bytes Val_64K, -- 128k bytes Val_128K, -- 256k bytes Val_256K, -- 512k bytes Val_512K) with Size => 3; for BSR_BOUNDARYSelect use (Val_4K => 0, Val_8K => 1, Val_16K => 2, Val_32K => 3, Val_64K => 4, Val_128K => 5, Val_256K => 6, Val_512K => 7); -- Block Size type SDHC_BSR_Register is record -- Transfer Block Size BLOCKSIZE : SDHC_BSR_BLOCKSIZE_Field := 16#0#; -- unspecified Reserved_10_11 : HAL.UInt2 := 16#0#; -- SDMA Buffer Boundary BOUNDARY : BSR_BOUNDARYSelect := SAM_SVD.SDHC.Val_4K; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_BSR_Register use record BLOCKSIZE at 0 range 0 .. 9; Reserved_10_11 at 0 range 10 .. 11; BOUNDARY at 0 range 12 .. 14; Reserved_15_15 at 0 range 15 .. 15; end record; -- DMA Enable type TMR_DMAENSelect is (-- No data transfer or Non DMA data transfer DISABLE, -- DMA data transfer ENABLE) with Size => 1; for TMR_DMAENSelect use (DISABLE => 0, ENABLE => 1); -- Block Count Enable type TMR_BCENSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for TMR_BCENSelect use (DISABLE => 0, ENABLE => 1); -- Auto Command Enable type TMR_ACMDENSelect is (-- Auto Command Disabled DISABLED, -- Auto CMD12 Enable CMD12, -- Auto CMD23 Enable CMD23) with Size => 2; for TMR_ACMDENSelect use (DISABLED => 0, CMD12 => 1, CMD23 => 2); -- Data Transfer Direction Selection type TMR_DTDSELSelect is (-- Write (Host to Card) WRITE, -- Read (Card to Host) READ) with Size => 1; for TMR_DTDSELSelect use (WRITE => 0, READ => 1); -- Multi/Single Block Selection type TMR_MSBSELSelect is (-- Single Block SINGLE, -- Multiple Block MULTIPLE) with Size => 1; for TMR_MSBSELSelect use (SINGLE => 0, MULTIPLE => 1); -- Transfer Mode type SDHC_TMR_Register is record -- DMA Enable DMAEN : TMR_DMAENSelect := SAM_SVD.SDHC.DISABLE; -- Block Count Enable BCEN : TMR_BCENSelect := SAM_SVD.SDHC.DISABLE; -- Auto Command Enable ACMDEN : TMR_ACMDENSelect := SAM_SVD.SDHC.DISABLED; -- Data Transfer Direction Selection DTDSEL : TMR_DTDSELSelect := SAM_SVD.SDHC.WRITE; -- Multi/Single Block Selection MSBSEL : TMR_MSBSELSelect := SAM_SVD.SDHC.SINGLE; -- unspecified Reserved_6_15 : HAL.UInt10 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_TMR_Register use record DMAEN at 0 range 0 .. 0; BCEN at 0 range 1 .. 1; ACMDEN at 0 range 2 .. 3; DTDSEL at 0 range 4 .. 4; MSBSEL at 0 range 5 .. 5; Reserved_6_15 at 0 range 6 .. 15; end record; -- Response Type type CR_RESPTYPSelect is (-- No response NONE, -- 136-bit response Val_136_BIT, -- 48-bit response Val_48_BIT, -- 48-bit response check busy after response Val_48_BIT_BUSY) with Size => 2; for CR_RESPTYPSelect use (NONE => 0, Val_136_BIT => 1, Val_48_BIT => 2, Val_48_BIT_BUSY => 3); -- Command CRC Check Enable type CR_CMDCCENSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for CR_CMDCCENSelect use (DISABLE => 0, ENABLE => 1); -- Command Index Check Enable type CR_CMDICENSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for CR_CMDICENSelect use (DISABLE => 0, ENABLE => 1); -- Data Present Select type CR_DPSELSelect is (-- No Data Present NO_DATA, -- Data Present DATA) with Size => 1; for CR_DPSELSelect use (NO_DATA => 0, DATA => 1); -- Command Type type CR_CMDTYPSelect is (-- Other commands NORMAL, -- CMD52 for writing Bus Suspend in CCCR SUSPEND, -- CMD52 for writing Function Select in CCCR RESUME, -- CMD12, CMD52 for writing I/O Abort in CCCR ABORT_k) with Size => 2; for CR_CMDTYPSelect use (NORMAL => 0, SUSPEND => 1, RESUME => 2, ABORT_k => 3); subtype SDHC_CR_CMDIDX_Field is HAL.UInt6; -- Command type SDHC_CR_Register is record -- Response Type RESPTYP : CR_RESPTYPSelect := SAM_SVD.SDHC.NONE; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- Command CRC Check Enable CMDCCEN : CR_CMDCCENSelect := SAM_SVD.SDHC.DISABLE; -- Command Index Check Enable CMDICEN : CR_CMDICENSelect := SAM_SVD.SDHC.DISABLE; -- Data Present Select DPSEL : CR_DPSELSelect := SAM_SVD.SDHC.NO_DATA; -- Command Type CMDTYP : CR_CMDTYPSelect := SAM_SVD.SDHC.NORMAL; -- Command Index CMDIDX : SDHC_CR_CMDIDX_Field := 16#0#; -- unspecified Reserved_14_15 : HAL.UInt2 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_CR_Register use record RESPTYP at 0 range 0 .. 1; Reserved_2_2 at 0 range 2 .. 2; CMDCCEN at 0 range 3 .. 3; CMDICEN at 0 range 4 .. 4; DPSEL at 0 range 5 .. 5; CMDTYP at 0 range 6 .. 7; CMDIDX at 0 range 8 .. 13; Reserved_14_15 at 0 range 14 .. 15; end record; -- Response -- Response type SDHC_RR_Registers is array (0 .. 3) of HAL.UInt32; -- Command Inhibit (CMD) type PSR_CMDINHCSelect is (-- Can issue command using only CMD line CAN, -- Cannot issue command CANNOT) with Size => 1; for PSR_CMDINHCSelect use (CAN => 0, CANNOT => 1); -- Command Inhibit (DAT) type PSR_CMDINHDSelect is (-- Can issue command which uses the DAT line CAN, -- Cannot issue command which uses the DAT line CANNOT) with Size => 1; for PSR_CMDINHDSelect use (CAN => 0, CANNOT => 1); -- DAT Line Active type PSR_DLACTSelect is (-- DAT Line Inactive INACTIVE, -- DAT Line Active ACTIVE) with Size => 1; for PSR_DLACTSelect use (INACTIVE => 0, ACTIVE => 1); -- Re-Tuning Request type PSR_RTREQSelect is (-- Fixed or well-tuned sampling clock OK, -- Sampling clock needs re-tuning REQUIRED) with Size => 1; for PSR_RTREQSelect use (OK => 0, REQUIRED => 1); -- Write Transfer Active type PSR_WTACTSelect is (-- No valid data NO, -- Transferring data YES) with Size => 1; for PSR_WTACTSelect use (NO => 0, YES => 1); -- Read Transfer Active type PSR_RTACTSelect is (-- No valid data NO, -- Transferring data YES) with Size => 1; for PSR_RTACTSelect use (NO => 0, YES => 1); -- Buffer Write Enable type PSR_BUFWRENSelect is (-- Write disable DISABLE, -- Write enable ENABLE) with Size => 1; for PSR_BUFWRENSelect use (DISABLE => 0, ENABLE => 1); -- Buffer Read Enable type PSR_BUFRDENSelect is (-- Read disable DISABLE, -- Read enable ENABLE) with Size => 1; for PSR_BUFRDENSelect use (DISABLE => 0, ENABLE => 1); -- Card Inserted type PSR_CARDINSSelect is (-- Reset or Debouncing or No Card NO, -- Card inserted YES) with Size => 1; for PSR_CARDINSSelect use (NO => 0, YES => 1); -- Card State Stable type PSR_CARDSSSelect is (-- Reset or Debouncing NO, -- No Card or Insered YES) with Size => 1; for PSR_CARDSSSelect use (NO => 0, YES => 1); -- Card Detect Pin Level type PSR_CARDDPLSelect is (-- No card present (SDCD#=1) NO, -- Card present (SDCD#=0) YES) with Size => 1; for PSR_CARDDPLSelect use (NO => 0, YES => 1); -- Write Protect Pin Level type PSR_WRPPLSelect is (-- Write protected (SDWP#=0) PROTECTED_k, -- Write enabled (SDWP#=1) ENABLED) with Size => 1; for PSR_WRPPLSelect use (PROTECTED_k => 0, ENABLED => 1); subtype SDHC_PSR_DATLL_Field is HAL.UInt4; -- Present State type SDHC_PSR_Register is record -- Read-only. Command Inhibit (CMD) CMDINHC : PSR_CMDINHCSelect; -- Read-only. Command Inhibit (DAT) CMDINHD : PSR_CMDINHDSelect; -- Read-only. DAT Line Active DLACT : PSR_DLACTSelect; -- Read-only. Re-Tuning Request RTREQ : PSR_RTREQSelect; -- unspecified Reserved_4_7 : HAL.UInt4; -- Read-only. Write Transfer Active WTACT : PSR_WTACTSelect; -- Read-only. Read Transfer Active RTACT : PSR_RTACTSelect; -- Read-only. Buffer Write Enable BUFWREN : PSR_BUFWRENSelect; -- Read-only. Buffer Read Enable BUFRDEN : PSR_BUFRDENSelect; -- unspecified Reserved_12_15 : HAL.UInt4; -- Read-only. Card Inserted CARDINS : PSR_CARDINSSelect; -- Read-only. Card State Stable CARDSS : PSR_CARDSSSelect; -- Read-only. Card Detect Pin Level CARDDPL : PSR_CARDDPLSelect; -- Read-only. Write Protect Pin Level WRPPL : PSR_WRPPLSelect; -- Read-only. DAT[3:0] Line Level DATLL : SDHC_PSR_DATLL_Field; -- Read-only. CMD Line Level CMDLL : Boolean; -- unspecified Reserved_25_31 : HAL.UInt7; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_PSR_Register use record CMDINHC at 0 range 0 .. 0; CMDINHD at 0 range 1 .. 1; DLACT at 0 range 2 .. 2; RTREQ at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; WTACT at 0 range 8 .. 8; RTACT at 0 range 9 .. 9; BUFWREN at 0 range 10 .. 10; BUFRDEN at 0 range 11 .. 11; Reserved_12_15 at 0 range 12 .. 15; CARDINS at 0 range 16 .. 16; CARDSS at 0 range 17 .. 17; CARDDPL at 0 range 18 .. 18; WRPPL at 0 range 19 .. 19; DATLL at 0 range 20 .. 23; CMDLL at 0 range 24 .. 24; Reserved_25_31 at 0 range 25 .. 31; end record; -- LED Control type HC1R_LEDCTRLSelect is (-- LED off OFF, -- LED on ON) with Size => 1; for HC1R_LEDCTRLSelect use (OFF => 0, ON => 1); -- Data Width type HC1R_DWSelect is (-- 1-bit mode Val_1BIT, -- 4-bit mode Val_4BIT) with Size => 1; for HC1R_DWSelect use (Val_1BIT => 0, Val_4BIT => 1); -- High Speed Enable type HC1R_HSENSelect is (-- Normal Speed mode NORMAL, -- High Speed mode HIGH) with Size => 1; for HC1R_HSENSelect use (NORMAL => 0, HIGH => 1); -- DMA Select type HC1R_DMASELSelect is (-- SDMA is selected SDMA, -- 32-bit Address ADMA2 is selected Val_32BIT) with Size => 2; for HC1R_DMASELSelect use (SDMA => 0, Val_32BIT => 2); -- Card Detect Test Level type HC1R_CARDDTLSelect is (-- No Card NO, -- Card Inserted YES) with Size => 1; for HC1R_CARDDTLSelect use (NO => 0, YES => 1); -- Card Detect Signal Selection type HC1R_CARDDSELSelect is (-- SDCD# is selected (for normal use) NORMAL, -- The Card Select Test Level is selected (for test purpose) TEST) with Size => 1; for HC1R_CARDDSELSelect use (NORMAL => 0, TEST => 1); -- Host Control 1 type SDHC_HC1R_Register is record -- LED Control LEDCTRL : HC1R_LEDCTRLSelect := SAM_SVD.SDHC.OFF; -- Data Width DW : HC1R_DWSelect := SAM_SVD.SDHC.Val_1BIT; -- High Speed Enable HSEN : HC1R_HSENSelect := SAM_SVD.SDHC.NORMAL; -- DMA Select DMASEL : HC1R_DMASELSelect := SAM_SVD.SDHC.SDMA; -- unspecified Reserved_5_5 : HAL.Bit := 16#0#; -- Card Detect Test Level CARDDTL : HC1R_CARDDTLSelect := SAM_SVD.SDHC.NO; -- Card Detect Signal Selection CARDDSEL : HC1R_CARDDSELSelect := SAM_SVD.SDHC.NORMAL; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_HC1R_Register use record LEDCTRL at 0 range 0 .. 0; DW at 0 range 1 .. 1; HSEN at 0 range 2 .. 2; DMASEL at 0 range 3 .. 4; Reserved_5_5 at 0 range 5 .. 5; CARDDTL at 0 range 6 .. 6; CARDDSEL at 0 range 7 .. 7; end record; -- Data Width type HC1R_EMMC_MODE_DWSelect is (-- 1-bit mode Val_1BIT, -- 4-bit mode Val_4BIT) with Size => 1; for HC1R_EMMC_MODE_DWSelect use (Val_1BIT => 0, Val_4BIT => 1); -- High Speed Enable type HC1R_EMMC_MODE_HSENSelect is (-- Normal Speed mode NORMAL, -- High Speed mode HIGH) with Size => 1; for HC1R_EMMC_MODE_HSENSelect use (NORMAL => 0, HIGH => 1); -- DMA Select type HC1R_EMMC_MODE_DMASELSelect is (-- SDMA is selected SDMA, -- 32-bit Address ADMA2 is selected Val_32BIT) with Size => 2; for HC1R_EMMC_MODE_DMASELSelect use (SDMA => 0, Val_32BIT => 2); -- Host Control 1 type SDHC_HC1R_EMMC_MODE_Register is record -- unspecified Reserved_0_0 : HAL.Bit := 16#0#; -- Data Width DW : HC1R_EMMC_MODE_DWSelect := SAM_SVD.SDHC.Val_1BIT; -- High Speed Enable HSEN : HC1R_EMMC_MODE_HSENSelect := SAM_SVD.SDHC.NORMAL; -- DMA Select DMASEL : HC1R_EMMC_MODE_DMASELSelect := SAM_SVD.SDHC.SDMA; -- unspecified Reserved_5_7 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_HC1R_EMMC_MODE_Register use record Reserved_0_0 at 0 range 0 .. 0; DW at 0 range 1 .. 1; HSEN at 0 range 2 .. 2; DMASEL at 0 range 3 .. 4; Reserved_5_7 at 0 range 5 .. 7; end record; -- SD Bus Power type PCR_SDBPWRSelect is (-- Power off OFF, -- Power on ON) with Size => 1; for PCR_SDBPWRSelect use (OFF => 0, ON => 1); -- SD Bus Voltage Select type PCR_SDBVSELSelect is (-- 1.8V (Typ.) Val_1V8, -- 3.0V (Typ.) Val_3V0, -- 3.3V (Typ.) Val_3V3) with Size => 3; for PCR_SDBVSELSelect use (Val_1V8 => 5, Val_3V0 => 6, Val_3V3 => 7); -- Power Control type SDHC_PCR_Register is record -- SD Bus Power SDBPWR : PCR_SDBPWRSelect := SAM_SVD.SDHC.OFF; -- SD Bus Voltage Select SDBVSEL : PCR_SDBVSELSelect := SAM_SVD.SDHC.Val_3V3; -- unspecified Reserved_4_7 : HAL.UInt4 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_PCR_Register use record SDBPWR at 0 range 0 .. 0; SDBVSEL at 0 range 1 .. 3; Reserved_4_7 at 0 range 4 .. 7; end record; -- Stop at Block Gap Request type BGCR_STPBGRSelect is (-- Transfer TRANSFER, -- Stop STOP) with Size => 1; for BGCR_STPBGRSelect use (TRANSFER => 0, STOP => 1); -- Continue Request type BGCR_CONTRSelect is (-- Not affected GO_ON, -- Restart RESTART) with Size => 1; for BGCR_CONTRSelect use (GO_ON => 0, RESTART => 1); -- Read Wait Control type BGCR_RWCTRLSelect is (-- Disable Read Wait Control DISABLE, -- Enable Read Wait Control ENABLE) with Size => 1; for BGCR_RWCTRLSelect use (DISABLE => 0, ENABLE => 1); -- Interrupt at Block Gap type BGCR_INTBGSelect is (-- Disabled DISABLED, -- Enabled ENABLED) with Size => 1; for BGCR_INTBGSelect use (DISABLED => 0, ENABLED => 1); -- Block Gap Control type SDHC_BGCR_Register is record -- Stop at Block Gap Request STPBGR : BGCR_STPBGRSelect := SAM_SVD.SDHC.TRANSFER; -- Continue Request CONTR : BGCR_CONTRSelect := SAM_SVD.SDHC.GO_ON; -- Read Wait Control RWCTRL : BGCR_RWCTRLSelect := SAM_SVD.SDHC.DISABLE; -- Interrupt at Block Gap INTBG : BGCR_INTBGSelect := SAM_SVD.SDHC.DISABLED; -- unspecified Reserved_4_7 : HAL.UInt4 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_BGCR_Register use record STPBGR at 0 range 0 .. 0; CONTR at 0 range 1 .. 1; RWCTRL at 0 range 2 .. 2; INTBG at 0 range 3 .. 3; Reserved_4_7 at 0 range 4 .. 7; end record; -- Stop at Block Gap Request type BGCR_EMMC_MODE_STPBGRSelect is (-- Transfer TRANSFER, -- Stop STOP) with Size => 1; for BGCR_EMMC_MODE_STPBGRSelect use (TRANSFER => 0, STOP => 1); -- Continue Request type BGCR_EMMC_MODE_CONTRSelect is (-- Not affected GO_ON, -- Restart RESTART) with Size => 1; for BGCR_EMMC_MODE_CONTRSelect use (GO_ON => 0, RESTART => 1); -- Block Gap Control type SDHC_BGCR_EMMC_MODE_Register is record -- Stop at Block Gap Request STPBGR : BGCR_EMMC_MODE_STPBGRSelect := SAM_SVD.SDHC.TRANSFER; -- Continue Request CONTR : BGCR_EMMC_MODE_CONTRSelect := SAM_SVD.SDHC.GO_ON; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_BGCR_EMMC_MODE_Register use record STPBGR at 0 range 0 .. 0; CONTR at 0 range 1 .. 1; Reserved_2_7 at 0 range 2 .. 7; end record; -- Wakeup Event Enable on Card Interrupt type WCR_WKENCINTSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for WCR_WKENCINTSelect use (DISABLE => 0, ENABLE => 1); -- Wakeup Event Enable on Card Insertion type WCR_WKENCINSSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for WCR_WKENCINSSelect use (DISABLE => 0, ENABLE => 1); -- Wakeup Event Enable on Card Removal type WCR_WKENCREMSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for WCR_WKENCREMSelect use (DISABLE => 0, ENABLE => 1); -- Wakeup Control type SDHC_WCR_Register is record -- Wakeup Event Enable on Card Interrupt WKENCINT : WCR_WKENCINTSelect := SAM_SVD.SDHC.DISABLE; -- Wakeup Event Enable on Card Insertion WKENCINS : WCR_WKENCINSSelect := SAM_SVD.SDHC.DISABLE; -- Wakeup Event Enable on Card Removal WKENCREM : WCR_WKENCREMSelect := SAM_SVD.SDHC.DISABLE; -- unspecified Reserved_3_7 : HAL.UInt5 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_WCR_Register use record WKENCINT at 0 range 0 .. 0; WKENCINS at 0 range 1 .. 1; WKENCREM at 0 range 2 .. 2; Reserved_3_7 at 0 range 3 .. 7; end record; -- Internal Clock Enable type CCR_INTCLKENSelect is (-- Stop OFF, -- Oscillate ON) with Size => 1; for CCR_INTCLKENSelect use (OFF => 0, ON => 1); -- Internal Clock Stable type CCR_INTCLKSSelect is (-- Not Ready NOT_READY, -- Ready READY) with Size => 1; for CCR_INTCLKSSelect use (NOT_READY => 0, READY => 1); -- SD Clock Enable type CCR_SDCLKENSelect is (-- Disable DISABLE, -- Enable ENABLE) with Size => 1; for CCR_SDCLKENSelect use (DISABLE => 0, ENABLE => 1); -- Clock Generator Select type CCR_CLKGSELSelect is (-- Divided Clock Mode DIV, -- Programmable Clock Mode PROG) with Size => 1; for CCR_CLKGSELSelect use (DIV => 0, PROG => 1); subtype SDHC_CCR_USDCLKFSEL_Field is HAL.UInt2; subtype SDHC_CCR_SDCLKFSEL_Field is HAL.UInt8; -- Clock Control type SDHC_CCR_Register is record -- Internal Clock Enable INTCLKEN : CCR_INTCLKENSelect := SAM_SVD.SDHC.OFF; -- Internal Clock Stable INTCLKS : CCR_INTCLKSSelect := SAM_SVD.SDHC.NOT_READY; -- SD Clock Enable SDCLKEN : CCR_SDCLKENSelect := SAM_SVD.SDHC.DISABLE; -- unspecified Reserved_3_4 : HAL.UInt2 := 16#0#; -- Clock Generator Select CLKGSEL : CCR_CLKGSELSelect := SAM_SVD.SDHC.DIV; -- Upper Bits of SDCLK Frequency Select USDCLKFSEL : SDHC_CCR_USDCLKFSEL_Field := 16#0#; -- SDCLK Frequency Select SDCLKFSEL : SDHC_CCR_SDCLKFSEL_Field := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_CCR_Register use record INTCLKEN at 0 range 0 .. 0; INTCLKS at 0 range 1 .. 1; SDCLKEN at 0 range 2 .. 2; Reserved_3_4 at 0 range 3 .. 4; CLKGSEL at 0 range 5 .. 5; USDCLKFSEL at 0 range 6 .. 7; SDCLKFSEL at 0 range 8 .. 15; end record; subtype SDHC_TCR_DTCVAL_Field is HAL.UInt4; -- Timeout Control type SDHC_TCR_Register is record -- Data Timeout Counter Value DTCVAL : SDHC_TCR_DTCVAL_Field := 16#0#; -- unspecified Reserved_4_7 : HAL.UInt4 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_TCR_Register use record DTCVAL at 0 range 0 .. 3; Reserved_4_7 at 0 range 4 .. 7; end record; -- Software Reset For All type SRR_SWRSTALLSelect is (-- Work WORK, -- Reset RESET) with Size => 1; for SRR_SWRSTALLSelect use (WORK => 0, RESET => 1); -- Software Reset For CMD Line type SRR_SWRSTCMDSelect is (-- Work WORK, -- Reset RESET) with Size => 1; for SRR_SWRSTCMDSelect use (WORK => 0, RESET => 1); -- Software Reset For DAT Line type SRR_SWRSTDATSelect is (-- Work WORK, -- Reset RESET) with Size => 1; for SRR_SWRSTDATSelect use (WORK => 0, RESET => 1); -- Software Reset type SDHC_SRR_Register is record -- Software Reset For All SWRSTALL : SRR_SWRSTALLSelect := SAM_SVD.SDHC.WORK; -- Software Reset For CMD Line SWRSTCMD : SRR_SWRSTCMDSelect := SAM_SVD.SDHC.WORK; -- Software Reset For DAT Line SWRSTDAT : SRR_SWRSTDATSelect := SAM_SVD.SDHC.WORK; -- unspecified Reserved_3_7 : HAL.UInt5 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_SRR_Register use record SWRSTALL at 0 range 0 .. 0; SWRSTCMD at 0 range 1 .. 1; SWRSTDAT at 0 range 2 .. 2; Reserved_3_7 at 0 range 3 .. 7; end record; -- Command Complete type NISTR_CMDCSelect is (-- No command complete NO, -- Command complete YES) with Size => 1; for NISTR_CMDCSelect use (NO => 0, YES => 1); -- Transfer Complete type NISTR_TRFCSelect is (-- Not complete NO, -- Command execution is completed YES) with Size => 1; for NISTR_TRFCSelect use (NO => 0, YES => 1); -- Block Gap Event type NISTR_BLKGESelect is (-- No Block Gap Event NO, -- Transaction stopped at block gap STOP) with Size => 1; for NISTR_BLKGESelect use (NO => 0, STOP => 1); -- DMA Interrupt type NISTR_DMAINTSelect is (-- No DMA Interrupt NO, -- DMA Interrupt is generated YES) with Size => 1; for NISTR_DMAINTSelect use (NO => 0, YES => 1); -- Buffer Write Ready type NISTR_BWRRDYSelect is (-- Not ready to write buffer NO, -- Ready to write buffer YES) with Size => 1; for NISTR_BWRRDYSelect use (NO => 0, YES => 1); -- Buffer Read Ready type NISTR_BRDRDYSelect is (-- Not ready to read buffer NO, -- Ready to read buffer YES) with Size => 1; for NISTR_BRDRDYSelect use (NO => 0, YES => 1); -- Card Insertion type NISTR_CINSSelect is (-- Card state stable or Debouncing NO, -- Card inserted YES) with Size => 1; for NISTR_CINSSelect use (NO => 0, YES => 1); -- Card Removal type NISTR_CREMSelect is (-- Card state stable or Debouncing NO, -- Card Removed YES) with Size => 1; for NISTR_CREMSelect use (NO => 0, YES => 1); -- Card Interrupt type NISTR_CINTSelect is (-- No Card Interrupt NO, -- Generate Card Interrupt YES) with Size => 1; for NISTR_CINTSelect use (NO => 0, YES => 1); -- Error Interrupt type NISTR_ERRINTSelect is (-- No Error NO, -- Error YES) with Size => 1; for NISTR_ERRINTSelect use (NO => 0, YES => 1); -- Normal Interrupt Status type SDHC_NISTR_Register is record -- Command Complete CMDC : NISTR_CMDCSelect := SAM_SVD.SDHC.NO; -- Transfer Complete TRFC : NISTR_TRFCSelect := SAM_SVD.SDHC.NO; -- Block Gap Event BLKGE : NISTR_BLKGESelect := SAM_SVD.SDHC.NO; -- DMA Interrupt DMAINT : NISTR_DMAINTSelect := SAM_SVD.SDHC.NO; -- Buffer Write Ready BWRRDY : NISTR_BWRRDYSelect := SAM_SVD.SDHC.NO; -- Buffer Read Ready BRDRDY : NISTR_BRDRDYSelect := SAM_SVD.SDHC.NO; -- Card Insertion CINS : NISTR_CINSSelect := SAM_SVD.SDHC.NO; -- Card Removal CREM : NISTR_CREMSelect := SAM_SVD.SDHC.NO; -- Card Interrupt CINT : NISTR_CINTSelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_9_14 : HAL.UInt6 := 16#0#; -- Error Interrupt ERRINT : NISTR_ERRINTSelect := SAM_SVD.SDHC.NO; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_NISTR_Register use record CMDC at 0 range 0 .. 0; TRFC at 0 range 1 .. 1; BLKGE at 0 range 2 .. 2; DMAINT at 0 range 3 .. 3; BWRRDY at 0 range 4 .. 4; BRDRDY at 0 range 5 .. 5; CINS at 0 range 6 .. 6; CREM at 0 range 7 .. 7; CINT at 0 range 8 .. 8; Reserved_9_14 at 0 range 9 .. 14; ERRINT at 0 range 15 .. 15; end record; -- Command Complete type NISTR_EMMC_MODE_CMDCSelect is (-- No command complete NO, -- Command complete YES) with Size => 1; for NISTR_EMMC_MODE_CMDCSelect use (NO => 0, YES => 1); -- Transfer Complete type NISTR_EMMC_MODE_TRFCSelect is (-- Not complete NO, -- Command execution is completed YES) with Size => 1; for NISTR_EMMC_MODE_TRFCSelect use (NO => 0, YES => 1); -- Block Gap Event type NISTR_EMMC_MODE_BLKGESelect is (-- No Block Gap Event NO, -- Transaction stopped at block gap STOP) with Size => 1; for NISTR_EMMC_MODE_BLKGESelect use (NO => 0, STOP => 1); -- DMA Interrupt type NISTR_EMMC_MODE_DMAINTSelect is (-- No DMA Interrupt NO, -- DMA Interrupt is generated YES) with Size => 1; for NISTR_EMMC_MODE_DMAINTSelect use (NO => 0, YES => 1); -- Buffer Write Ready type NISTR_EMMC_MODE_BWRRDYSelect is (-- Not ready to write buffer NO, -- Ready to write buffer YES) with Size => 1; for NISTR_EMMC_MODE_BWRRDYSelect use (NO => 0, YES => 1); -- Buffer Read Ready type NISTR_EMMC_MODE_BRDRDYSelect is (-- Not ready to read buffer NO, -- Ready to read buffer YES) with Size => 1; for NISTR_EMMC_MODE_BRDRDYSelect use (NO => 0, YES => 1); -- Error Interrupt type NISTR_EMMC_MODE_ERRINTSelect is (-- No Error NO, -- Error YES) with Size => 1; for NISTR_EMMC_MODE_ERRINTSelect use (NO => 0, YES => 1); -- Normal Interrupt Status type SDHC_NISTR_EMMC_MODE_Register is record -- Command Complete CMDC : NISTR_EMMC_MODE_CMDCSelect := SAM_SVD.SDHC.NO; -- Transfer Complete TRFC : NISTR_EMMC_MODE_TRFCSelect := SAM_SVD.SDHC.NO; -- Block Gap Event BLKGE : NISTR_EMMC_MODE_BLKGESelect := SAM_SVD.SDHC.NO; -- DMA Interrupt DMAINT : NISTR_EMMC_MODE_DMAINTSelect := SAM_SVD.SDHC.NO; -- Buffer Write Ready BWRRDY : NISTR_EMMC_MODE_BWRRDYSelect := SAM_SVD.SDHC.NO; -- Buffer Read Ready BRDRDY : NISTR_EMMC_MODE_BRDRDYSelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_6_13 : HAL.UInt8 := 16#0#; -- Boot Acknowledge Received BOOTAR : Boolean := False; -- Error Interrupt ERRINT : NISTR_EMMC_MODE_ERRINTSelect := SAM_SVD.SDHC.NO; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_NISTR_EMMC_MODE_Register use record CMDC at 0 range 0 .. 0; TRFC at 0 range 1 .. 1; BLKGE at 0 range 2 .. 2; DMAINT at 0 range 3 .. 3; BWRRDY at 0 range 4 .. 4; BRDRDY at 0 range 5 .. 5; Reserved_6_13 at 0 range 6 .. 13; BOOTAR at 0 range 14 .. 14; ERRINT at 0 range 15 .. 15; end record; -- Command Timeout Error type EISTR_CMDTEOSelect is (-- No Error NO, -- Timeout YES) with Size => 1; for EISTR_CMDTEOSelect use (NO => 0, YES => 1); -- Command CRC Error type EISTR_CMDCRCSelect is (-- No Error NO, -- CRC Error Generated YES) with Size => 1; for EISTR_CMDCRCSelect use (NO => 0, YES => 1); -- Command End Bit Error type EISTR_CMDENDSelect is (-- No error NO, -- End Bit Error Generated YES) with Size => 1; for EISTR_CMDENDSelect use (NO => 0, YES => 1); -- Command Index Error type EISTR_CMDIDXSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_CMDIDXSelect use (NO => 0, YES => 1); -- Data Timeout Error type EISTR_DATTEOSelect is (-- No Error NO, -- Timeout YES) with Size => 1; for EISTR_DATTEOSelect use (NO => 0, YES => 1); -- Data CRC Error type EISTR_DATCRCSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_DATCRCSelect use (NO => 0, YES => 1); -- Data End Bit Error type EISTR_DATENDSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_DATENDSelect use (NO => 0, YES => 1); -- Current Limit Error type EISTR_CURLIMSelect is (-- No Error NO, -- Power Fail YES) with Size => 1; for EISTR_CURLIMSelect use (NO => 0, YES => 1); -- Auto CMD Error type EISTR_ACMDSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_ACMDSelect use (NO => 0, YES => 1); -- ADMA Error type EISTR_ADMASelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_ADMASelect use (NO => 0, YES => 1); -- Error Interrupt Status type SDHC_EISTR_Register is record -- Command Timeout Error CMDTEO : EISTR_CMDTEOSelect := SAM_SVD.SDHC.NO; -- Command CRC Error CMDCRC : EISTR_CMDCRCSelect := SAM_SVD.SDHC.NO; -- Command End Bit Error CMDEND : EISTR_CMDENDSelect := SAM_SVD.SDHC.NO; -- Command Index Error CMDIDX : EISTR_CMDIDXSelect := SAM_SVD.SDHC.NO; -- Data Timeout Error DATTEO : EISTR_DATTEOSelect := SAM_SVD.SDHC.NO; -- Data CRC Error DATCRC : EISTR_DATCRCSelect := SAM_SVD.SDHC.NO; -- Data End Bit Error DATEND : EISTR_DATENDSelect := SAM_SVD.SDHC.NO; -- Current Limit Error CURLIM : EISTR_CURLIMSelect := SAM_SVD.SDHC.NO; -- Auto CMD Error ACMD : EISTR_ACMDSelect := SAM_SVD.SDHC.NO; -- ADMA Error ADMA : EISTR_ADMASelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_10_15 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_EISTR_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_15 at 0 range 10 .. 15; end record; -- Command Timeout Error type EISTR_EMMC_MODE_CMDTEOSelect is (-- No Error NO, -- Timeout YES) with Size => 1; for EISTR_EMMC_MODE_CMDTEOSelect use (NO => 0, YES => 1); -- Command CRC Error type EISTR_EMMC_MODE_CMDCRCSelect is (-- No Error NO, -- CRC Error Generated YES) with Size => 1; for EISTR_EMMC_MODE_CMDCRCSelect use (NO => 0, YES => 1); -- Command End Bit Error type EISTR_EMMC_MODE_CMDENDSelect is (-- No error NO, -- End Bit Error Generated YES) with Size => 1; for EISTR_EMMC_MODE_CMDENDSelect use (NO => 0, YES => 1); -- Command Index Error type EISTR_EMMC_MODE_CMDIDXSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_EMMC_MODE_CMDIDXSelect use (NO => 0, YES => 1); -- Data Timeout Error type EISTR_EMMC_MODE_DATTEOSelect is (-- No Error NO, -- Timeout YES) with Size => 1; for EISTR_EMMC_MODE_DATTEOSelect use (NO => 0, YES => 1); -- Data CRC Error type EISTR_EMMC_MODE_DATCRCSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_EMMC_MODE_DATCRCSelect use (NO => 0, YES => 1); -- Data End Bit Error type EISTR_EMMC_MODE_DATENDSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_EMMC_MODE_DATENDSelect use (NO => 0, YES => 1); -- Current Limit Error type EISTR_EMMC_MODE_CURLIMSelect is (-- No Error NO, -- Power Fail YES) with Size => 1; for EISTR_EMMC_MODE_CURLIMSelect use (NO => 0, YES => 1); -- Auto CMD Error type EISTR_EMMC_MODE_ACMDSelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_EMMC_MODE_ACMDSelect use (NO => 0, YES => 1); -- ADMA Error type EISTR_EMMC_MODE_ADMASelect is (-- No Error NO, -- Error YES) with Size => 1; for EISTR_EMMC_MODE_ADMASelect use (NO => 0, YES => 1); -- Boot Acknowledge Error type EISTR_EMMC_MODE_BOOTAESelect is (-- FIFO contains at least one byte Val_0, -- FIFO is empty Val_1) with Size => 1; for EISTR_EMMC_MODE_BOOTAESelect use (Val_0 => 0, Val_1 => 1); -- Error Interrupt Status type SDHC_EISTR_EMMC_MODE_Register is record -- Command Timeout Error CMDTEO : EISTR_EMMC_MODE_CMDTEOSelect := SAM_SVD.SDHC.NO; -- Command CRC Error CMDCRC : EISTR_EMMC_MODE_CMDCRCSelect := SAM_SVD.SDHC.NO; -- Command End Bit Error CMDEND : EISTR_EMMC_MODE_CMDENDSelect := SAM_SVD.SDHC.NO; -- Command Index Error CMDIDX : EISTR_EMMC_MODE_CMDIDXSelect := SAM_SVD.SDHC.NO; -- Data Timeout Error DATTEO : EISTR_EMMC_MODE_DATTEOSelect := SAM_SVD.SDHC.NO; -- Data CRC Error DATCRC : EISTR_EMMC_MODE_DATCRCSelect := SAM_SVD.SDHC.NO; -- Data End Bit Error DATEND : EISTR_EMMC_MODE_DATENDSelect := SAM_SVD.SDHC.NO; -- Current Limit Error CURLIM : EISTR_EMMC_MODE_CURLIMSelect := SAM_SVD.SDHC.NO; -- Auto CMD Error ACMD : EISTR_EMMC_MODE_ACMDSelect := SAM_SVD.SDHC.NO; -- ADMA Error ADMA : EISTR_EMMC_MODE_ADMASelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_10_11 : HAL.UInt2 := 16#0#; -- Boot Acknowledge Error BOOTAE : EISTR_EMMC_MODE_BOOTAESelect := SAM_SVD.SDHC.Val_0; -- unspecified Reserved_13_15 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_EISTR_EMMC_MODE_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_11 at 0 range 10 .. 11; BOOTAE at 0 range 12 .. 12; Reserved_13_15 at 0 range 13 .. 15; end record; -- Command Complete Status Enable type NISTER_CMDCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_CMDCSelect use (MASKED => 0, ENABLED => 1); -- Transfer Complete Status Enable type NISTER_TRFCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_TRFCSelect use (MASKED => 0, ENABLED => 1); -- Block Gap Event Status Enable type NISTER_BLKGESelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_BLKGESelect use (MASKED => 0, ENABLED => 1); -- DMA Interrupt Status Enable type NISTER_DMAINTSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_DMAINTSelect use (MASKED => 0, ENABLED => 1); -- Buffer Write Ready Status Enable type NISTER_BWRRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_BWRRDYSelect use (MASKED => 0, ENABLED => 1); -- Buffer Read Ready Status Enable type NISTER_BRDRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_BRDRDYSelect use (MASKED => 0, ENABLED => 1); -- Card Insertion Status Enable type NISTER_CINSSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_CINSSelect use (MASKED => 0, ENABLED => 1); -- Card Removal Status Enable type NISTER_CREMSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_CREMSelect use (MASKED => 0, ENABLED => 1); -- Card Interrupt Status Enable type NISTER_CINTSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_CINTSelect use (MASKED => 0, ENABLED => 1); -- Normal Interrupt Status Enable type SDHC_NISTER_Register is record -- Command Complete Status Enable CMDC : NISTER_CMDCSelect := SAM_SVD.SDHC.MASKED; -- Transfer Complete Status Enable TRFC : NISTER_TRFCSelect := SAM_SVD.SDHC.MASKED; -- Block Gap Event Status Enable BLKGE : NISTER_BLKGESelect := SAM_SVD.SDHC.MASKED; -- DMA Interrupt Status Enable DMAINT : NISTER_DMAINTSelect := SAM_SVD.SDHC.MASKED; -- Buffer Write Ready Status Enable BWRRDY : NISTER_BWRRDYSelect := SAM_SVD.SDHC.MASKED; -- Buffer Read Ready Status Enable BRDRDY : NISTER_BRDRDYSelect := SAM_SVD.SDHC.MASKED; -- Card Insertion Status Enable CINS : NISTER_CINSSelect := SAM_SVD.SDHC.MASKED; -- Card Removal Status Enable CREM : NISTER_CREMSelect := SAM_SVD.SDHC.MASKED; -- Card Interrupt Status Enable CINT : NISTER_CINTSelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_9_15 : HAL.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_NISTER_Register use record CMDC at 0 range 0 .. 0; TRFC at 0 range 1 .. 1; BLKGE at 0 range 2 .. 2; DMAINT at 0 range 3 .. 3; BWRRDY at 0 range 4 .. 4; BRDRDY at 0 range 5 .. 5; CINS at 0 range 6 .. 6; CREM at 0 range 7 .. 7; CINT at 0 range 8 .. 8; Reserved_9_15 at 0 range 9 .. 15; end record; -- Command Complete Status Enable type NISTER_EMMC_MODE_CMDCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_EMMC_MODE_CMDCSelect use (MASKED => 0, ENABLED => 1); -- Transfer Complete Status Enable type NISTER_EMMC_MODE_TRFCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_EMMC_MODE_TRFCSelect use (MASKED => 0, ENABLED => 1); -- Block Gap Event Status Enable type NISTER_EMMC_MODE_BLKGESelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_EMMC_MODE_BLKGESelect use (MASKED => 0, ENABLED => 1); -- DMA Interrupt Status Enable type NISTER_EMMC_MODE_DMAINTSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_EMMC_MODE_DMAINTSelect use (MASKED => 0, ENABLED => 1); -- Buffer Write Ready Status Enable type NISTER_EMMC_MODE_BWRRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_EMMC_MODE_BWRRDYSelect use (MASKED => 0, ENABLED => 1); -- Buffer Read Ready Status Enable type NISTER_EMMC_MODE_BRDRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISTER_EMMC_MODE_BRDRDYSelect use (MASKED => 0, ENABLED => 1); -- Normal Interrupt Status Enable type SDHC_NISTER_EMMC_MODE_Register is record -- Command Complete Status Enable CMDC : NISTER_EMMC_MODE_CMDCSelect := SAM_SVD.SDHC.MASKED; -- Transfer Complete Status Enable TRFC : NISTER_EMMC_MODE_TRFCSelect := SAM_SVD.SDHC.MASKED; -- Block Gap Event Status Enable BLKGE : NISTER_EMMC_MODE_BLKGESelect := SAM_SVD.SDHC.MASKED; -- DMA Interrupt Status Enable DMAINT : NISTER_EMMC_MODE_DMAINTSelect := SAM_SVD.SDHC.MASKED; -- Buffer Write Ready Status Enable BWRRDY : NISTER_EMMC_MODE_BWRRDYSelect := SAM_SVD.SDHC.MASKED; -- Buffer Read Ready Status Enable BRDRDY : NISTER_EMMC_MODE_BRDRDYSelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_6_13 : HAL.UInt8 := 16#0#; -- Boot Acknowledge Received Status Enable BOOTAR : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_NISTER_EMMC_MODE_Register use record CMDC at 0 range 0 .. 0; TRFC at 0 range 1 .. 1; BLKGE at 0 range 2 .. 2; DMAINT at 0 range 3 .. 3; BWRRDY at 0 range 4 .. 4; BRDRDY at 0 range 5 .. 5; Reserved_6_13 at 0 range 6 .. 13; BOOTAR at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; end record; -- Command Timeout Error Status Enable type EISTER_CMDTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_CMDTEOSelect use (MASKED => 0, ENABLED => 1); -- Command CRC Error Status Enable type EISTER_CMDCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_CMDCRCSelect use (MASKED => 0, ENABLED => 1); -- Command End Bit Error Status Enable type EISTER_CMDENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_CMDENDSelect use (MASKED => 0, ENABLED => 1); -- Command Index Error Status Enable type EISTER_CMDIDXSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_CMDIDXSelect use (MASKED => 0, ENABLED => 1); -- Data Timeout Error Status Enable type EISTER_DATTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_DATTEOSelect use (MASKED => 0, ENABLED => 1); -- Data CRC Error Status Enable type EISTER_DATCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_DATCRCSelect use (MASKED => 0, ENABLED => 1); -- Data End Bit Error Status Enable type EISTER_DATENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_DATENDSelect use (MASKED => 0, ENABLED => 1); -- Current Limit Error Status Enable type EISTER_CURLIMSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_CURLIMSelect use (MASKED => 0, ENABLED => 1); -- Auto CMD Error Status Enable type EISTER_ACMDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_ACMDSelect use (MASKED => 0, ENABLED => 1); -- ADMA Error Status Enable type EISTER_ADMASelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_ADMASelect use (MASKED => 0, ENABLED => 1); -- Error Interrupt Status Enable type SDHC_EISTER_Register is record -- Command Timeout Error Status Enable CMDTEO : EISTER_CMDTEOSelect := SAM_SVD.SDHC.MASKED; -- Command CRC Error Status Enable CMDCRC : EISTER_CMDCRCSelect := SAM_SVD.SDHC.MASKED; -- Command End Bit Error Status Enable CMDEND : EISTER_CMDENDSelect := SAM_SVD.SDHC.MASKED; -- Command Index Error Status Enable CMDIDX : EISTER_CMDIDXSelect := SAM_SVD.SDHC.MASKED; -- Data Timeout Error Status Enable DATTEO : EISTER_DATTEOSelect := SAM_SVD.SDHC.MASKED; -- Data CRC Error Status Enable DATCRC : EISTER_DATCRCSelect := SAM_SVD.SDHC.MASKED; -- Data End Bit Error Status Enable DATEND : EISTER_DATENDSelect := SAM_SVD.SDHC.MASKED; -- Current Limit Error Status Enable CURLIM : EISTER_CURLIMSelect := SAM_SVD.SDHC.MASKED; -- Auto CMD Error Status Enable ACMD : EISTER_ACMDSelect := SAM_SVD.SDHC.MASKED; -- ADMA Error Status Enable ADMA : EISTER_ADMASelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_10_15 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_EISTER_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_15 at 0 range 10 .. 15; end record; -- Command Timeout Error Status Enable type EISTER_EMMC_MODE_CMDTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_CMDTEOSelect use (MASKED => 0, ENABLED => 1); -- Command CRC Error Status Enable type EISTER_EMMC_MODE_CMDCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_CMDCRCSelect use (MASKED => 0, ENABLED => 1); -- Command End Bit Error Status Enable type EISTER_EMMC_MODE_CMDENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_CMDENDSelect use (MASKED => 0, ENABLED => 1); -- Command Index Error Status Enable type EISTER_EMMC_MODE_CMDIDXSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_CMDIDXSelect use (MASKED => 0, ENABLED => 1); -- Data Timeout Error Status Enable type EISTER_EMMC_MODE_DATTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_DATTEOSelect use (MASKED => 0, ENABLED => 1); -- Data CRC Error Status Enable type EISTER_EMMC_MODE_DATCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_DATCRCSelect use (MASKED => 0, ENABLED => 1); -- Data End Bit Error Status Enable type EISTER_EMMC_MODE_DATENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_DATENDSelect use (MASKED => 0, ENABLED => 1); -- Current Limit Error Status Enable type EISTER_EMMC_MODE_CURLIMSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_CURLIMSelect use (MASKED => 0, ENABLED => 1); -- Auto CMD Error Status Enable type EISTER_EMMC_MODE_ACMDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_ACMDSelect use (MASKED => 0, ENABLED => 1); -- ADMA Error Status Enable type EISTER_EMMC_MODE_ADMASelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISTER_EMMC_MODE_ADMASelect use (MASKED => 0, ENABLED => 1); -- Error Interrupt Status Enable type SDHC_EISTER_EMMC_MODE_Register is record -- Command Timeout Error Status Enable CMDTEO : EISTER_EMMC_MODE_CMDTEOSelect := SAM_SVD.SDHC.MASKED; -- Command CRC Error Status Enable CMDCRC : EISTER_EMMC_MODE_CMDCRCSelect := SAM_SVD.SDHC.MASKED; -- Command End Bit Error Status Enable CMDEND : EISTER_EMMC_MODE_CMDENDSelect := SAM_SVD.SDHC.MASKED; -- Command Index Error Status Enable CMDIDX : EISTER_EMMC_MODE_CMDIDXSelect := SAM_SVD.SDHC.MASKED; -- Data Timeout Error Status Enable DATTEO : EISTER_EMMC_MODE_DATTEOSelect := SAM_SVD.SDHC.MASKED; -- Data CRC Error Status Enable DATCRC : EISTER_EMMC_MODE_DATCRCSelect := SAM_SVD.SDHC.MASKED; -- Data End Bit Error Status Enable DATEND : EISTER_EMMC_MODE_DATENDSelect := SAM_SVD.SDHC.MASKED; -- Current Limit Error Status Enable CURLIM : EISTER_EMMC_MODE_CURLIMSelect := SAM_SVD.SDHC.MASKED; -- Auto CMD Error Status Enable ACMD : EISTER_EMMC_MODE_ACMDSelect := SAM_SVD.SDHC.MASKED; -- ADMA Error Status Enable ADMA : EISTER_EMMC_MODE_ADMASelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_10_11 : HAL.UInt2 := 16#0#; -- Boot Acknowledge Error Status Enable BOOTAE : Boolean := False; -- unspecified Reserved_13_15 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_EISTER_EMMC_MODE_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_11 at 0 range 10 .. 11; BOOTAE at 0 range 12 .. 12; Reserved_13_15 at 0 range 13 .. 15; end record; -- Command Complete Signal Enable type NISIER_CMDCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_CMDCSelect use (MASKED => 0, ENABLED => 1); -- Transfer Complete Signal Enable type NISIER_TRFCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_TRFCSelect use (MASKED => 0, ENABLED => 1); -- Block Gap Event Signal Enable type NISIER_BLKGESelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_BLKGESelect use (MASKED => 0, ENABLED => 1); -- DMA Interrupt Signal Enable type NISIER_DMAINTSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_DMAINTSelect use (MASKED => 0, ENABLED => 1); -- Buffer Write Ready Signal Enable type NISIER_BWRRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_BWRRDYSelect use (MASKED => 0, ENABLED => 1); -- Buffer Read Ready Signal Enable type NISIER_BRDRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_BRDRDYSelect use (MASKED => 0, ENABLED => 1); -- Card Insertion Signal Enable type NISIER_CINSSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_CINSSelect use (MASKED => 0, ENABLED => 1); -- Card Removal Signal Enable type NISIER_CREMSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_CREMSelect use (MASKED => 0, ENABLED => 1); -- Card Interrupt Signal Enable type NISIER_CINTSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_CINTSelect use (MASKED => 0, ENABLED => 1); -- Normal Interrupt Signal Enable type SDHC_NISIER_Register is record -- Command Complete Signal Enable CMDC : NISIER_CMDCSelect := SAM_SVD.SDHC.MASKED; -- Transfer Complete Signal Enable TRFC : NISIER_TRFCSelect := SAM_SVD.SDHC.MASKED; -- Block Gap Event Signal Enable BLKGE : NISIER_BLKGESelect := SAM_SVD.SDHC.MASKED; -- DMA Interrupt Signal Enable DMAINT : NISIER_DMAINTSelect := SAM_SVD.SDHC.MASKED; -- Buffer Write Ready Signal Enable BWRRDY : NISIER_BWRRDYSelect := SAM_SVD.SDHC.MASKED; -- Buffer Read Ready Signal Enable BRDRDY : NISIER_BRDRDYSelect := SAM_SVD.SDHC.MASKED; -- Card Insertion Signal Enable CINS : NISIER_CINSSelect := SAM_SVD.SDHC.MASKED; -- Card Removal Signal Enable CREM : NISIER_CREMSelect := SAM_SVD.SDHC.MASKED; -- Card Interrupt Signal Enable CINT : NISIER_CINTSelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_9_15 : HAL.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_NISIER_Register use record CMDC at 0 range 0 .. 0; TRFC at 0 range 1 .. 1; BLKGE at 0 range 2 .. 2; DMAINT at 0 range 3 .. 3; BWRRDY at 0 range 4 .. 4; BRDRDY at 0 range 5 .. 5; CINS at 0 range 6 .. 6; CREM at 0 range 7 .. 7; CINT at 0 range 8 .. 8; Reserved_9_15 at 0 range 9 .. 15; end record; -- Command Complete Signal Enable type NISIER_EMMC_MODE_CMDCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_EMMC_MODE_CMDCSelect use (MASKED => 0, ENABLED => 1); -- Transfer Complete Signal Enable type NISIER_EMMC_MODE_TRFCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_EMMC_MODE_TRFCSelect use (MASKED => 0, ENABLED => 1); -- Block Gap Event Signal Enable type NISIER_EMMC_MODE_BLKGESelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_EMMC_MODE_BLKGESelect use (MASKED => 0, ENABLED => 1); -- DMA Interrupt Signal Enable type NISIER_EMMC_MODE_DMAINTSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_EMMC_MODE_DMAINTSelect use (MASKED => 0, ENABLED => 1); -- Buffer Write Ready Signal Enable type NISIER_EMMC_MODE_BWRRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_EMMC_MODE_BWRRDYSelect use (MASKED => 0, ENABLED => 1); -- Buffer Read Ready Signal Enable type NISIER_EMMC_MODE_BRDRDYSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for NISIER_EMMC_MODE_BRDRDYSelect use (MASKED => 0, ENABLED => 1); -- Normal Interrupt Signal Enable type SDHC_NISIER_EMMC_MODE_Register is record -- Command Complete Signal Enable CMDC : NISIER_EMMC_MODE_CMDCSelect := SAM_SVD.SDHC.MASKED; -- Transfer Complete Signal Enable TRFC : NISIER_EMMC_MODE_TRFCSelect := SAM_SVD.SDHC.MASKED; -- Block Gap Event Signal Enable BLKGE : NISIER_EMMC_MODE_BLKGESelect := SAM_SVD.SDHC.MASKED; -- DMA Interrupt Signal Enable DMAINT : NISIER_EMMC_MODE_DMAINTSelect := SAM_SVD.SDHC.MASKED; -- Buffer Write Ready Signal Enable BWRRDY : NISIER_EMMC_MODE_BWRRDYSelect := SAM_SVD.SDHC.MASKED; -- Buffer Read Ready Signal Enable BRDRDY : NISIER_EMMC_MODE_BRDRDYSelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_6_13 : HAL.UInt8 := 16#0#; -- Boot Acknowledge Received Signal Enable BOOTAR : Boolean := False; -- unspecified Reserved_15_15 : HAL.Bit := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_NISIER_EMMC_MODE_Register use record CMDC at 0 range 0 .. 0; TRFC at 0 range 1 .. 1; BLKGE at 0 range 2 .. 2; DMAINT at 0 range 3 .. 3; BWRRDY at 0 range 4 .. 4; BRDRDY at 0 range 5 .. 5; Reserved_6_13 at 0 range 6 .. 13; BOOTAR at 0 range 14 .. 14; Reserved_15_15 at 0 range 15 .. 15; end record; -- Command Timeout Error Signal Enable type EISIER_CMDTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_CMDTEOSelect use (MASKED => 0, ENABLED => 1); -- Command CRC Error Signal Enable type EISIER_CMDCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_CMDCRCSelect use (MASKED => 0, ENABLED => 1); -- Command End Bit Error Signal Enable type EISIER_CMDENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_CMDENDSelect use (MASKED => 0, ENABLED => 1); -- Command Index Error Signal Enable type EISIER_CMDIDXSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_CMDIDXSelect use (MASKED => 0, ENABLED => 1); -- Data Timeout Error Signal Enable type EISIER_DATTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_DATTEOSelect use (MASKED => 0, ENABLED => 1); -- Data CRC Error Signal Enable type EISIER_DATCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_DATCRCSelect use (MASKED => 0, ENABLED => 1); -- Data End Bit Error Signal Enable type EISIER_DATENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_DATENDSelect use (MASKED => 0, ENABLED => 1); -- Current Limit Error Signal Enable type EISIER_CURLIMSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_CURLIMSelect use (MASKED => 0, ENABLED => 1); -- Auto CMD Error Signal Enable type EISIER_ACMDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_ACMDSelect use (MASKED => 0, ENABLED => 1); -- ADMA Error Signal Enable type EISIER_ADMASelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_ADMASelect use (MASKED => 0, ENABLED => 1); -- Error Interrupt Signal Enable type SDHC_EISIER_Register is record -- Command Timeout Error Signal Enable CMDTEO : EISIER_CMDTEOSelect := SAM_SVD.SDHC.MASKED; -- Command CRC Error Signal Enable CMDCRC : EISIER_CMDCRCSelect := SAM_SVD.SDHC.MASKED; -- Command End Bit Error Signal Enable CMDEND : EISIER_CMDENDSelect := SAM_SVD.SDHC.MASKED; -- Command Index Error Signal Enable CMDIDX : EISIER_CMDIDXSelect := SAM_SVD.SDHC.MASKED; -- Data Timeout Error Signal Enable DATTEO : EISIER_DATTEOSelect := SAM_SVD.SDHC.MASKED; -- Data CRC Error Signal Enable DATCRC : EISIER_DATCRCSelect := SAM_SVD.SDHC.MASKED; -- Data End Bit Error Signal Enable DATEND : EISIER_DATENDSelect := SAM_SVD.SDHC.MASKED; -- Current Limit Error Signal Enable CURLIM : EISIER_CURLIMSelect := SAM_SVD.SDHC.MASKED; -- Auto CMD Error Signal Enable ACMD : EISIER_ACMDSelect := SAM_SVD.SDHC.MASKED; -- ADMA Error Signal Enable ADMA : EISIER_ADMASelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_10_15 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_EISIER_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_15 at 0 range 10 .. 15; end record; -- Command Timeout Error Signal Enable type EISIER_EMMC_MODE_CMDTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_CMDTEOSelect use (MASKED => 0, ENABLED => 1); -- Command CRC Error Signal Enable type EISIER_EMMC_MODE_CMDCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_CMDCRCSelect use (MASKED => 0, ENABLED => 1); -- Command End Bit Error Signal Enable type EISIER_EMMC_MODE_CMDENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_CMDENDSelect use (MASKED => 0, ENABLED => 1); -- Command Index Error Signal Enable type EISIER_EMMC_MODE_CMDIDXSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_CMDIDXSelect use (MASKED => 0, ENABLED => 1); -- Data Timeout Error Signal Enable type EISIER_EMMC_MODE_DATTEOSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_DATTEOSelect use (MASKED => 0, ENABLED => 1); -- Data CRC Error Signal Enable type EISIER_EMMC_MODE_DATCRCSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_DATCRCSelect use (MASKED => 0, ENABLED => 1); -- Data End Bit Error Signal Enable type EISIER_EMMC_MODE_DATENDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_DATENDSelect use (MASKED => 0, ENABLED => 1); -- Current Limit Error Signal Enable type EISIER_EMMC_MODE_CURLIMSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_CURLIMSelect use (MASKED => 0, ENABLED => 1); -- Auto CMD Error Signal Enable type EISIER_EMMC_MODE_ACMDSelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_ACMDSelect use (MASKED => 0, ENABLED => 1); -- ADMA Error Signal Enable type EISIER_EMMC_MODE_ADMASelect is (-- Masked MASKED, -- Enabled ENABLED) with Size => 1; for EISIER_EMMC_MODE_ADMASelect use (MASKED => 0, ENABLED => 1); -- Error Interrupt Signal Enable type SDHC_EISIER_EMMC_MODE_Register is record -- Command Timeout Error Signal Enable CMDTEO : EISIER_EMMC_MODE_CMDTEOSelect := SAM_SVD.SDHC.MASKED; -- Command CRC Error Signal Enable CMDCRC : EISIER_EMMC_MODE_CMDCRCSelect := SAM_SVD.SDHC.MASKED; -- Command End Bit Error Signal Enable CMDEND : EISIER_EMMC_MODE_CMDENDSelect := SAM_SVD.SDHC.MASKED; -- Command Index Error Signal Enable CMDIDX : EISIER_EMMC_MODE_CMDIDXSelect := SAM_SVD.SDHC.MASKED; -- Data Timeout Error Signal Enable DATTEO : EISIER_EMMC_MODE_DATTEOSelect := SAM_SVD.SDHC.MASKED; -- Data CRC Error Signal Enable DATCRC : EISIER_EMMC_MODE_DATCRCSelect := SAM_SVD.SDHC.MASKED; -- Data End Bit Error Signal Enable DATEND : EISIER_EMMC_MODE_DATENDSelect := SAM_SVD.SDHC.MASKED; -- Current Limit Error Signal Enable CURLIM : EISIER_EMMC_MODE_CURLIMSelect := SAM_SVD.SDHC.MASKED; -- Auto CMD Error Signal Enable ACMD : EISIER_EMMC_MODE_ACMDSelect := SAM_SVD.SDHC.MASKED; -- ADMA Error Signal Enable ADMA : EISIER_EMMC_MODE_ADMASelect := SAM_SVD.SDHC.MASKED; -- unspecified Reserved_10_11 : HAL.UInt2 := 16#0#; -- Boot Acknowledge Error Signal Enable BOOTAE : Boolean := False; -- unspecified Reserved_13_15 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_EISIER_EMMC_MODE_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_11 at 0 range 10 .. 11; BOOTAE at 0 range 12 .. 12; Reserved_13_15 at 0 range 13 .. 15; end record; -- Auto CMD12 Not Executed type ACESR_ACMD12NESelect is (-- Executed EXEC, -- Not executed NOT_EXEC) with Size => 1; for ACESR_ACMD12NESelect use (EXEC => 0, NOT_EXEC => 1); -- Auto CMD Timeout Error type ACESR_ACMDTEOSelect is (-- No error NO, -- Timeout YES) with Size => 1; for ACESR_ACMDTEOSelect use (NO => 0, YES => 1); -- Auto CMD CRC Error type ACESR_ACMDCRCSelect is (-- No error NO, -- CRC Error Generated YES) with Size => 1; for ACESR_ACMDCRCSelect use (NO => 0, YES => 1); -- Auto CMD End Bit Error type ACESR_ACMDENDSelect is (-- No error NO, -- End Bit Error Generated YES) with Size => 1; for ACESR_ACMDENDSelect use (NO => 0, YES => 1); -- Auto CMD Index Error type ACESR_ACMDIDXSelect is (-- No error NO, -- Error YES) with Size => 1; for ACESR_ACMDIDXSelect use (NO => 0, YES => 1); -- Command not Issued By Auto CMD12 Error type ACESR_CMDNISelect is (-- No error OK, -- Not Issued NOT_ISSUED) with Size => 1; for ACESR_CMDNISelect use (OK => 0, NOT_ISSUED => 1); -- Auto CMD Error Status type SDHC_ACESR_Register is record -- Read-only. Auto CMD12 Not Executed ACMD12NE : ACESR_ACMD12NESelect; -- Read-only. Auto CMD Timeout Error ACMDTEO : ACESR_ACMDTEOSelect; -- Read-only. Auto CMD CRC Error ACMDCRC : ACESR_ACMDCRCSelect; -- Read-only. Auto CMD End Bit Error ACMDEND : ACESR_ACMDENDSelect; -- Read-only. Auto CMD Index Error ACMDIDX : ACESR_ACMDIDXSelect; -- unspecified Reserved_5_6 : HAL.UInt2; -- Read-only. Command not Issued By Auto CMD12 Error CMDNI : ACESR_CMDNISelect; -- unspecified Reserved_8_15 : HAL.UInt8; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_ACESR_Register use record ACMD12NE at 0 range 0 .. 0; ACMDTEO at 0 range 1 .. 1; ACMDCRC at 0 range 2 .. 2; ACMDEND at 0 range 3 .. 3; ACMDIDX at 0 range 4 .. 4; Reserved_5_6 at 0 range 5 .. 6; CMDNI at 0 range 7 .. 7; Reserved_8_15 at 0 range 8 .. 15; end record; -- UHS Mode Select type HC2R_UHSMSSelect is (-- SDR12 SDR12, -- SDR25 SDR25, -- SDR50 SDR50, -- SDR104 SDR104, -- DDR50 DDR50) with Size => 3; for HC2R_UHSMSSelect use (SDR12 => 0, SDR25 => 1, SDR50 => 2, SDR104 => 3, DDR50 => 4); -- 1.8V Signaling Enable type HC2R_VS18ENSelect is (-- 3.3V Signaling S33V, -- 1.8V Signaling S18V) with Size => 1; for HC2R_VS18ENSelect use (S33V => 0, S18V => 1); -- Driver Strength Select type HC2R_DRVSELSelect is (-- Driver Type B is Selected (Default) B, -- Driver Type A is Selected A, -- Driver Type C is Selected C, -- Driver Type D is Selected D) with Size => 2; for HC2R_DRVSELSelect use (B => 0, A => 1, C => 2, D => 3); -- Execute Tuning type HC2R_EXTUNSelect is (-- Not Tuned or Tuning Completed NO, -- Execute Tuning REQUESTED) with Size => 1; for HC2R_EXTUNSelect use (NO => 0, REQUESTED => 1); -- Sampling Clock Select type HC2R_SLCKSELSelect is (-- Fixed clock is used to sample data FIXED, -- Tuned clock is used to sample data TUNED) with Size => 1; for HC2R_SLCKSELSelect use (FIXED => 0, TUNED => 1); -- Asynchronous Interrupt Enable type HC2R_ASINTENSelect is (-- Disabled DISABLED, -- Enabled ENABLED) with Size => 1; for HC2R_ASINTENSelect use (DISABLED => 0, ENABLED => 1); -- Preset Value Enable type HC2R_PVALENSelect is (-- SDCLK and Driver Strength are controlled by Host Controller HOST, -- Automatic Selection by Preset Value is Enabled AUTO) with Size => 1; for HC2R_PVALENSelect use (HOST => 0, AUTO => 1); -- Host Control 2 type SDHC_HC2R_Register is record -- UHS Mode Select UHSMS : HC2R_UHSMSSelect := SAM_SVD.SDHC.SDR12; -- 1.8V Signaling Enable VS18EN : HC2R_VS18ENSelect := SAM_SVD.SDHC.S33V; -- Driver Strength Select DRVSEL : HC2R_DRVSELSelect := SAM_SVD.SDHC.B; -- Execute Tuning EXTUN : HC2R_EXTUNSelect := SAM_SVD.SDHC.NO; -- Sampling Clock Select SLCKSEL : HC2R_SLCKSELSelect := SAM_SVD.SDHC.FIXED; -- unspecified Reserved_8_13 : HAL.UInt6 := 16#0#; -- Asynchronous Interrupt Enable ASINTEN : HC2R_ASINTENSelect := SAM_SVD.SDHC.DISABLED; -- Preset Value Enable PVALEN : HC2R_PVALENSelect := SAM_SVD.SDHC.HOST; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_HC2R_Register use record UHSMS at 0 range 0 .. 2; VS18EN at 0 range 3 .. 3; DRVSEL at 0 range 4 .. 5; EXTUN at 0 range 6 .. 6; SLCKSEL at 0 range 7 .. 7; Reserved_8_13 at 0 range 8 .. 13; ASINTEN at 0 range 14 .. 14; PVALEN at 0 range 15 .. 15; end record; -- HS200 Mode Enable type HC2R_EMMC_MODE_HS200ENSelect is (-- SDR12 SDR12, -- SDR25 SDR25, -- SDR50 SDR50, -- SDR104 SDR104, -- DDR50 DDR50) with Size => 4; for HC2R_EMMC_MODE_HS200ENSelect use (SDR12 => 0, SDR25 => 1, SDR50 => 2, SDR104 => 3, DDR50 => 4); -- Driver Strength Select type HC2R_EMMC_MODE_DRVSELSelect is (-- Driver Type B is Selected (Default) B, -- Driver Type A is Selected A, -- Driver Type C is Selected C, -- Driver Type D is Selected D) with Size => 2; for HC2R_EMMC_MODE_DRVSELSelect use (B => 0, A => 1, C => 2, D => 3); -- Execute Tuning type HC2R_EMMC_MODE_EXTUNSelect is (-- Not Tuned or Tuning Completed NO, -- Execute Tuning REQUESTED) with Size => 1; for HC2R_EMMC_MODE_EXTUNSelect use (NO => 0, REQUESTED => 1); -- Sampling Clock Select type HC2R_EMMC_MODE_SLCKSELSelect is (-- Fixed clock is used to sample data FIXED, -- Tuned clock is used to sample data TUNED) with Size => 1; for HC2R_EMMC_MODE_SLCKSELSelect use (FIXED => 0, TUNED => 1); -- Preset Value Enable type HC2R_EMMC_MODE_PVALENSelect is (-- SDCLK and Driver Strength are controlled by Host Controller HOST, -- Automatic Selection by Preset Value is Enabled AUTO) with Size => 1; for HC2R_EMMC_MODE_PVALENSelect use (HOST => 0, AUTO => 1); -- Host Control 2 type SDHC_HC2R_EMMC_MODE_Register is record -- HS200 Mode Enable HS200EN : HC2R_EMMC_MODE_HS200ENSelect := SAM_SVD.SDHC.SDR12; -- Driver Strength Select DRVSEL : HC2R_EMMC_MODE_DRVSELSelect := SAM_SVD.SDHC.B; -- Execute Tuning EXTUN : HC2R_EMMC_MODE_EXTUNSelect := SAM_SVD.SDHC.NO; -- Sampling Clock Select SLCKSEL : HC2R_EMMC_MODE_SLCKSELSelect := SAM_SVD.SDHC.FIXED; -- unspecified Reserved_8_14 : HAL.UInt7 := 16#0#; -- Preset Value Enable PVALEN : HC2R_EMMC_MODE_PVALENSelect := SAM_SVD.SDHC.HOST; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_HC2R_EMMC_MODE_Register use record HS200EN at 0 range 0 .. 3; DRVSEL at 0 range 4 .. 5; EXTUN at 0 range 6 .. 6; SLCKSEL at 0 range 7 .. 7; Reserved_8_14 at 0 range 8 .. 14; PVALEN at 0 range 15 .. 15; end record; -- Timeout Clock Frequency type CA0R_TEOCLKFSelect is (-- Get information via another method OTHER) with Size => 6; for CA0R_TEOCLKFSelect use (OTHER => 0); -- Timeout Clock Unit type CA0R_TEOCLKUSelect is (-- KHz KHZ, -- MHz MHZ) with Size => 1; for CA0R_TEOCLKUSelect use (KHZ => 0, MHZ => 1); -- Base Clock Frequency type CA0R_BASECLKFSelect is (-- Get information via another method OTHER) with Size => 8; for CA0R_BASECLKFSelect use (OTHER => 0); -- Max Block Length type CA0R_MAXBLKLSelect is (-- 512 bytes Val_512, -- 1024 bytes Val_1024, -- 2048 bytes Val_2048) with Size => 2; for CA0R_MAXBLKLSelect use (Val_512 => 0, Val_1024 => 1, Val_2048 => 2); -- 8-bit Support for Embedded Device type CA0R_ED8SUPSelect is (-- 8-bit Bus Width not Supported NO, -- 8-bit Bus Width Supported YES) with Size => 1; for CA0R_ED8SUPSelect use (NO => 0, YES => 1); -- ADMA2 Support type CA0R_ADMA2SUPSelect is (-- ADMA2 not Supported NO, -- ADMA2 Supported YES) with Size => 1; for CA0R_ADMA2SUPSelect use (NO => 0, YES => 1); -- High Speed Support type CA0R_HSSUPSelect is (-- High Speed not Supported NO, -- High Speed Supported YES) with Size => 1; for CA0R_HSSUPSelect use (NO => 0, YES => 1); -- SDMA Support type CA0R_SDMASUPSelect is (-- SDMA not Supported NO, -- SDMA Supported YES) with Size => 1; for CA0R_SDMASUPSelect use (NO => 0, YES => 1); -- Suspend/Resume Support type CA0R_SRSUPSelect is (-- Suspend/Resume not Supported NO, -- Suspend/Resume Supported YES) with Size => 1; for CA0R_SRSUPSelect use (NO => 0, YES => 1); -- Voltage Support 3.3V type CA0R_V33VSUPSelect is (-- 3.3V Not Supported NO, -- 3.3V Supported YES) with Size => 1; for CA0R_V33VSUPSelect use (NO => 0, YES => 1); -- Voltage Support 3.0V type CA0R_V30VSUPSelect is (-- 3.0V Not Supported NO, -- 3.0V Supported YES) with Size => 1; for CA0R_V30VSUPSelect use (NO => 0, YES => 1); -- Voltage Support 1.8V type CA0R_V18VSUPSelect is (-- 1.8V Not Supported NO, -- 1.8V Supported YES) with Size => 1; for CA0R_V18VSUPSelect use (NO => 0, YES => 1); -- 64-Bit System Bus Support type CA0R_SB64SUPSelect is (-- 32-bit Address Descriptors and System Bus NO, -- 64-bit Address Descriptors and System Bus YES) with Size => 1; for CA0R_SB64SUPSelect use (NO => 0, YES => 1); -- Asynchronous Interrupt Support type CA0R_ASINTSUPSelect is (-- Asynchronous Interrupt not Supported NO, -- Asynchronous Interrupt supported YES) with Size => 1; for CA0R_ASINTSUPSelect use (NO => 0, YES => 1); -- Slot Type type CA0R_SLTYPESelect is (-- Removable Card Slot REMOVABLE, -- Embedded Slot for One Device EMBEDDED) with Size => 2; for CA0R_SLTYPESelect use (REMOVABLE => 0, EMBEDDED => 1); -- Capabilities 0 type SDHC_CA0R_Register is record -- Read-only. Timeout Clock Frequency TEOCLKF : CA0R_TEOCLKFSelect; -- unspecified Reserved_6_6 : HAL.Bit; -- Read-only. Timeout Clock Unit TEOCLKU : CA0R_TEOCLKUSelect; -- Read-only. Base Clock Frequency BASECLKF : CA0R_BASECLKFSelect; -- Read-only. Max Block Length MAXBLKL : CA0R_MAXBLKLSelect; -- Read-only. 8-bit Support for Embedded Device ED8SUP : CA0R_ED8SUPSelect; -- Read-only. ADMA2 Support ADMA2SUP : CA0R_ADMA2SUPSelect; -- unspecified Reserved_20_20 : HAL.Bit; -- Read-only. High Speed Support HSSUP : CA0R_HSSUPSelect; -- Read-only. SDMA Support SDMASUP : CA0R_SDMASUPSelect; -- Read-only. Suspend/Resume Support SRSUP : CA0R_SRSUPSelect; -- Read-only. Voltage Support 3.3V V33VSUP : CA0R_V33VSUPSelect; -- Read-only. Voltage Support 3.0V V30VSUP : CA0R_V30VSUPSelect; -- Read-only. Voltage Support 1.8V V18VSUP : CA0R_V18VSUPSelect; -- unspecified Reserved_27_27 : HAL.Bit; -- Read-only. 64-Bit System Bus Support SB64SUP : CA0R_SB64SUPSelect; -- Read-only. Asynchronous Interrupt Support ASINTSUP : CA0R_ASINTSUPSelect; -- Read-only. Slot Type SLTYPE : CA0R_SLTYPESelect; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_CA0R_Register use record TEOCLKF at 0 range 0 .. 5; Reserved_6_6 at 0 range 6 .. 6; TEOCLKU at 0 range 7 .. 7; BASECLKF at 0 range 8 .. 15; MAXBLKL at 0 range 16 .. 17; ED8SUP at 0 range 18 .. 18; ADMA2SUP at 0 range 19 .. 19; Reserved_20_20 at 0 range 20 .. 20; HSSUP at 0 range 21 .. 21; SDMASUP at 0 range 22 .. 22; SRSUP at 0 range 23 .. 23; V33VSUP at 0 range 24 .. 24; V30VSUP at 0 range 25 .. 25; V18VSUP at 0 range 26 .. 26; Reserved_27_27 at 0 range 27 .. 27; SB64SUP at 0 range 28 .. 28; ASINTSUP at 0 range 29 .. 29; SLTYPE at 0 range 30 .. 31; end record; -- SDR50 Support type CA1R_SDR50SUPSelect is (-- SDR50 is Not Supported NO, -- SDR50 is Supported YES) with Size => 1; for CA1R_SDR50SUPSelect use (NO => 0, YES => 1); -- SDR104 Support type CA1R_SDR104SUPSelect is (-- SDR104 is Not Supported NO, -- SDR104 is Supported YES) with Size => 1; for CA1R_SDR104SUPSelect use (NO => 0, YES => 1); -- DDR50 Support type CA1R_DDR50SUPSelect is (-- DDR50 is Not Supported NO, -- DDR50 is Supported YES) with Size => 1; for CA1R_DDR50SUPSelect use (NO => 0, YES => 1); -- Driver Type A Support type CA1R_DRVASUPSelect is (-- Driver Type A is Not Supported NO, -- Driver Type A is Supported YES) with Size => 1; for CA1R_DRVASUPSelect use (NO => 0, YES => 1); -- Driver Type C Support type CA1R_DRVCSUPSelect is (-- Driver Type C is Not Supported NO, -- Driver Type C is Supported YES) with Size => 1; for CA1R_DRVCSUPSelect use (NO => 0, YES => 1); -- Driver Type D Support type CA1R_DRVDSUPSelect is (-- Driver Type D is Not Supported NO, -- Driver Type D is Supported YES) with Size => 1; for CA1R_DRVDSUPSelect use (NO => 0, YES => 1); -- Timer Count for Re-Tuning type CA1R_TCNTRTSelect is (-- Re-Tuning Timer disabled DISABLED, -- 1 second Val_1S, -- 2 seconds Val_2S, -- 4 seconds Val_4S, -- 8 seconds Val_8S, -- 16 seconds Val_16S, -- 32 seconds Val_32S, -- 64 seconds Val_64S, -- 128 seconds Val_128S, -- 256 seconds Val_256S, -- 512 seconds Val_512S, -- 1024 seconds Val_1024S, -- Get information from other source OTHER) with Size => 4; for CA1R_TCNTRTSelect use (DISABLED => 0, Val_1S => 1, Val_2S => 2, Val_4S => 3, Val_8S => 4, Val_16S => 5, Val_32S => 6, Val_64S => 7, Val_128S => 8, Val_256S => 9, Val_512S => 10, Val_1024S => 11, OTHER => 15); -- Use Tuning for SDR50 type CA1R_TSDR50Select is (-- SDR50 does not require tuning NO, -- SDR50 requires tuning YES) with Size => 1; for CA1R_TSDR50Select use (NO => 0, YES => 1); -- Clock Multiplier type CA1R_CLKMULTSelect is (-- Clock Multiplier is Not Supported NO) with Size => 8; for CA1R_CLKMULTSelect use (NO => 0); -- Capabilities 1 type SDHC_CA1R_Register is record -- Read-only. SDR50 Support SDR50SUP : CA1R_SDR50SUPSelect; -- Read-only. SDR104 Support SDR104SUP : CA1R_SDR104SUPSelect; -- Read-only. DDR50 Support DDR50SUP : CA1R_DDR50SUPSelect; -- unspecified Reserved_3_3 : HAL.Bit; -- Read-only. Driver Type A Support DRVASUP : CA1R_DRVASUPSelect; -- Read-only. Driver Type C Support DRVCSUP : CA1R_DRVCSUPSelect; -- Read-only. Driver Type D Support DRVDSUP : CA1R_DRVDSUPSelect; -- unspecified Reserved_7_7 : HAL.Bit; -- Read-only. Timer Count for Re-Tuning TCNTRT : CA1R_TCNTRTSelect; -- unspecified Reserved_12_12 : HAL.Bit; -- Read-only. Use Tuning for SDR50 TSDR50 : CA1R_TSDR50Select; -- unspecified Reserved_14_15 : HAL.UInt2; -- Read-only. Clock Multiplier CLKMULT : CA1R_CLKMULTSelect; -- unspecified Reserved_24_31 : HAL.UInt8; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_CA1R_Register use record SDR50SUP at 0 range 0 .. 0; SDR104SUP at 0 range 1 .. 1; DDR50SUP at 0 range 2 .. 2; Reserved_3_3 at 0 range 3 .. 3; DRVASUP at 0 range 4 .. 4; DRVCSUP at 0 range 5 .. 5; DRVDSUP at 0 range 6 .. 6; Reserved_7_7 at 0 range 7 .. 7; TCNTRT at 0 range 8 .. 11; Reserved_12_12 at 0 range 12 .. 12; TSDR50 at 0 range 13 .. 13; Reserved_14_15 at 0 range 14 .. 15; CLKMULT at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Maximum Current for 3.3V type MCCAR_MAXCUR33VSelect is (-- Get information via another method OTHER, -- 4mA Val_4MA, -- 8mA Val_8MA, -- 12mA Val_12MA) with Size => 8; for MCCAR_MAXCUR33VSelect use (OTHER => 0, Val_4MA => 1, Val_8MA => 2, Val_12MA => 3); -- Maximum Current for 3.0V type MCCAR_MAXCUR30VSelect is (-- Get information via another method OTHER, -- 4mA Val_4MA, -- 8mA Val_8MA, -- 12mA Val_12MA) with Size => 8; for MCCAR_MAXCUR30VSelect use (OTHER => 0, Val_4MA => 1, Val_8MA => 2, Val_12MA => 3); -- Maximum Current for 1.8V type MCCAR_MAXCUR18VSelect is (-- Get information via another method OTHER, -- 4mA Val_4MA, -- 8mA Val_8MA, -- 12mA Val_12MA) with Size => 8; for MCCAR_MAXCUR18VSelect use (OTHER => 0, Val_4MA => 1, Val_8MA => 2, Val_12MA => 3); -- Maximum Current Capabilities type SDHC_MCCAR_Register is record -- Read-only. Maximum Current for 3.3V MAXCUR33V : MCCAR_MAXCUR33VSelect; -- Read-only. Maximum Current for 3.0V MAXCUR30V : MCCAR_MAXCUR30VSelect; -- Read-only. Maximum Current for 1.8V MAXCUR18V : MCCAR_MAXCUR18VSelect; -- unspecified Reserved_24_31 : HAL.UInt8; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_MCCAR_Register use record MAXCUR33V at 0 range 0 .. 7; MAXCUR30V at 0 range 8 .. 15; MAXCUR18V at 0 range 16 .. 23; Reserved_24_31 at 0 range 24 .. 31; end record; -- Force Event for Auto CMD12 Not Executed type FERACES_ACMD12NESelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FERACES_ACMD12NESelect use (NO => 0, YES => 1); -- Force Event for Auto CMD Timeout Error type FERACES_ACMDTEOSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FERACES_ACMDTEOSelect use (NO => 0, YES => 1); -- Force Event for Auto CMD CRC Error type FERACES_ACMDCRCSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FERACES_ACMDCRCSelect use (NO => 0, YES => 1); -- Force Event for Auto CMD End Bit Error type FERACES_ACMDENDSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FERACES_ACMDENDSelect use (NO => 0, YES => 1); -- Force Event for Auto CMD Index Error type FERACES_ACMDIDXSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FERACES_ACMDIDXSelect use (NO => 0, YES => 1); -- Force Event for Command Not Issued By Auto CMD12 Error type FERACES_CMDNISelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FERACES_CMDNISelect use (NO => 0, YES => 1); -- Force Event for Auto CMD Error Status type SDHC_FERACES_Register is record -- Write-only. Force Event for Auto CMD12 Not Executed ACMD12NE : FERACES_ACMD12NESelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Auto CMD Timeout Error ACMDTEO : FERACES_ACMDTEOSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Auto CMD CRC Error ACMDCRC : FERACES_ACMDCRCSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Auto CMD End Bit Error ACMDEND : FERACES_ACMDENDSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Auto CMD Index Error ACMDIDX : FERACES_ACMDIDXSelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_5_6 : HAL.UInt2 := 16#0#; -- Write-only. Force Event for Command Not Issued By Auto CMD12 Error CMDNI : FERACES_CMDNISelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_8_15 : HAL.UInt8 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_FERACES_Register use record ACMD12NE at 0 range 0 .. 0; ACMDTEO at 0 range 1 .. 1; ACMDCRC at 0 range 2 .. 2; ACMDEND at 0 range 3 .. 3; ACMDIDX at 0 range 4 .. 4; Reserved_5_6 at 0 range 5 .. 6; CMDNI at 0 range 7 .. 7; Reserved_8_15 at 0 range 8 .. 15; end record; -- Force Event for Command Timeout Error type FEREIS_CMDTEOSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_CMDTEOSelect use (NO => 0, YES => 1); -- Force Event for Command CRC Error type FEREIS_CMDCRCSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_CMDCRCSelect use (NO => 0, YES => 1); -- Force Event for Command End Bit Error type FEREIS_CMDENDSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_CMDENDSelect use (NO => 0, YES => 1); -- Force Event for Command Index Error type FEREIS_CMDIDXSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_CMDIDXSelect use (NO => 0, YES => 1); -- Force Event for Data Timeout Error type FEREIS_DATTEOSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_DATTEOSelect use (NO => 0, YES => 1); -- Force Event for Data CRC Error type FEREIS_DATCRCSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_DATCRCSelect use (NO => 0, YES => 1); -- Force Event for Data End Bit Error type FEREIS_DATENDSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_DATENDSelect use (NO => 0, YES => 1); -- Force Event for Current Limit Error type FEREIS_CURLIMSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_CURLIMSelect use (NO => 0, YES => 1); -- Force Event for Auto CMD Error type FEREIS_ACMDSelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_ACMDSelect use (NO => 0, YES => 1); -- Force Event for ADMA Error type FEREIS_ADMASelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_ADMASelect use (NO => 0, YES => 1); -- Force Event for Boot Acknowledge Error type FEREIS_BOOTAESelect is (-- No Interrupt NO, -- Interrupt is generated YES) with Size => 1; for FEREIS_BOOTAESelect use (NO => 0, YES => 1); -- Force Event for Error Interrupt Status type SDHC_FEREIS_Register is record -- Write-only. Force Event for Command Timeout Error CMDTEO : FEREIS_CMDTEOSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Command CRC Error CMDCRC : FEREIS_CMDCRCSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Command End Bit Error CMDEND : FEREIS_CMDENDSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Command Index Error CMDIDX : FEREIS_CMDIDXSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Data Timeout Error DATTEO : FEREIS_DATTEOSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Data CRC Error DATCRC : FEREIS_DATCRCSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Data End Bit Error DATEND : FEREIS_DATENDSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Current Limit Error CURLIM : FEREIS_CURLIMSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for Auto CMD Error ACMD : FEREIS_ACMDSelect := SAM_SVD.SDHC.NO; -- Write-only. Force Event for ADMA Error ADMA : FEREIS_ADMASelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_10_11 : HAL.UInt2 := 16#0#; -- Write-only. Force Event for Boot Acknowledge Error BOOTAE : FEREIS_BOOTAESelect := SAM_SVD.SDHC.NO; -- unspecified Reserved_13_15 : HAL.UInt3 := 16#0#; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_FEREIS_Register use record CMDTEO at 0 range 0 .. 0; CMDCRC at 0 range 1 .. 1; CMDEND at 0 range 2 .. 2; CMDIDX at 0 range 3 .. 3; DATTEO at 0 range 4 .. 4; DATCRC at 0 range 5 .. 5; DATEND at 0 range 6 .. 6; CURLIM at 0 range 7 .. 7; ACMD at 0 range 8 .. 8; ADMA at 0 range 9 .. 9; Reserved_10_11 at 0 range 10 .. 11; BOOTAE at 0 range 12 .. 12; Reserved_13_15 at 0 range 13 .. 15; end record; -- ADMA Error State type AESR_ERRSTSelect is (-- ST_STOP (Stop DMA) STOP, -- ST_FDS (Fetch Descriptor) FDS, -- ST_TFR (Transfer Data) TFR) with Size => 2; for AESR_ERRSTSelect use (STOP => 0, FDS => 1, TFR => 3); -- ADMA Length Mismatch Error type AESR_LMISSelect is (-- No Error NO, -- Error YES) with Size => 1; for AESR_LMISSelect use (NO => 0, YES => 1); -- ADMA Error Status type SDHC_AESR_Register is record -- Read-only. ADMA Error State ERRST : AESR_ERRSTSelect; -- Read-only. ADMA Length Mismatch Error LMIS : AESR_LMISSelect; -- unspecified Reserved_3_7 : HAL.UInt5; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_AESR_Register use record ERRST at 0 range 0 .. 1; LMIS at 0 range 2 .. 2; Reserved_3_7 at 0 range 3 .. 7; end record; subtype SDHC_PVR_SDCLKFSEL_Field is HAL.UInt10; -- Clock Generator Select Value for Initialization type PVR_CLKGSELSelect is (-- Host Controller Ver2.00 Compatible Clock Generator (Divider) DIV, -- Programmable Clock Generator PROG) with Size => 1; for PVR_CLKGSELSelect use (DIV => 0, PROG => 1); -- Driver Strength Select Value for Initialization type PVR_DRVSELSelect is (-- Driver Type B is Selected B, -- Driver Type A is Selected A, -- Driver Type C is Selected C, -- Driver Type D is Selected D) with Size => 2; for PVR_DRVSELSelect use (B => 0, A => 1, C => 2, D => 3); -- Preset Value n type SDHC_PVR_Register is record -- SDCLK Frequency Select Value for Initialization SDCLKFSEL : SDHC_PVR_SDCLKFSEL_Field := 16#0#; -- Clock Generator Select Value for Initialization CLKGSEL : PVR_CLKGSELSelect := SAM_SVD.SDHC.DIV; -- unspecified Reserved_11_13 : HAL.UInt3 := 16#0#; -- Driver Strength Select Value for Initialization DRVSEL : PVR_DRVSELSelect := SAM_SVD.SDHC.B; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_PVR_Register use record SDCLKFSEL at 0 range 0 .. 9; CLKGSEL at 0 range 10 .. 10; Reserved_11_13 at 0 range 11 .. 13; DRVSEL at 0 range 14 .. 15; end record; -- Preset Value n type SDHC_PVR_Registers is array (0 .. 7) of SDHC_PVR_Register; -- Slot Interrupt Status type SDHC_SISR_Register is record -- Read-only. Interrupt Signal for Each Slot INTSSL : Boolean; -- unspecified Reserved_1_15 : HAL.UInt15; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_SISR_Register use record INTSSL at 0 range 0 .. 0; Reserved_1_15 at 0 range 1 .. 15; end record; subtype SDHC_HCVR_SVER_Field is HAL.UInt8; subtype SDHC_HCVR_VVER_Field is HAL.UInt8; -- Host Controller Version type SDHC_HCVR_Register is record -- Read-only. Spec Version SVER : SDHC_HCVR_SVER_Field; -- Read-only. Vendor Version VVER : SDHC_HCVR_VVER_Field; end record with Volatile_Full_Access, Object_Size => 16, Bit_Order => System.Low_Order_First; for SDHC_HCVR_Register use record SVER at 0 range 0 .. 7; VVER at 0 range 8 .. 15; end record; -- e.MMC Command Type type MC1R_CMDTYPSelect is (-- Not a MMC specific command NORMAL, -- Wait IRQ Command WAITIRQ, -- Stream Command STREAM, -- Boot Command BOOT) with Size => 2; for MC1R_CMDTYPSelect use (NORMAL => 0, WAITIRQ => 1, STREAM => 2, BOOT => 3); -- MMC Control 1 type SDHC_MC1R_Register is record -- e.MMC Command Type CMDTYP : MC1R_CMDTYPSelect := SAM_SVD.SDHC.NORMAL; -- unspecified Reserved_2_2 : HAL.Bit := 16#0#; -- e.MMC HSDDR Mode DDR : Boolean := False; -- e.MMC Open Drain Mode OPD : Boolean := False; -- e.MMC Boot Acknowledge Enable BOOTA : Boolean := False; -- e.MMC Reset Signal RSTN : Boolean := False; -- e.MMC Force Card Detect FCD : Boolean := False; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_MC1R_Register use record CMDTYP at 0 range 0 .. 1; Reserved_2_2 at 0 range 2 .. 2; DDR at 0 range 3 .. 3; OPD at 0 range 4 .. 4; BOOTA at 0 range 5 .. 5; RSTN at 0 range 6 .. 6; FCD at 0 range 7 .. 7; end record; -- MMC Control 2 type SDHC_MC2R_Register is record -- Write-only. e.MMC Abort Wait IRQ SRESP : Boolean := False; -- Write-only. e.MMC Abort Boot ABOOT : Boolean := False; -- unspecified Reserved_2_7 : HAL.UInt6 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_MC2R_Register use record SRESP at 0 range 0 .. 0; ABOOT at 0 range 1 .. 1; Reserved_2_7 at 0 range 2 .. 7; end record; -- AHB Maximum Burst type ACR_BMAXSelect is (INCR16, INCR8, INCR4, SINGLE) with Size => 2; for ACR_BMAXSelect use (INCR16 => 0, INCR8 => 1, INCR4 => 2, SINGLE => 3); -- AHB Control type SDHC_ACR_Register is record -- AHB Maximum Burst BMAX : ACR_BMAXSelect := SAM_SVD.SDHC.INCR16; -- unspecified Reserved_2_31 : HAL.UInt30 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_ACR_Register use record BMAX at 0 range 0 .. 1; Reserved_2_31 at 0 range 2 .. 31; end record; -- Force SDCK Disabled type CC2R_FSDCLKDSelect is (-- No effect NOEFFECT, -- SDCLK can be stopped at any time after DATA transfer.SDCLK enable forcing -- for 8 SDCLK cycles is disabled DISABLE) with Size => 1; for CC2R_FSDCLKDSelect use (NOEFFECT => 0, DISABLE => 1); -- Clock Control 2 type SDHC_CC2R_Register is record -- Force SDCK Disabled FSDCLKD : CC2R_FSDCLKDSelect := SAM_SVD.SDHC.NOEFFECT; -- unspecified Reserved_1_31 : HAL.UInt31 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_CC2R_Register use record FSDCLKD at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; subtype SDHC_CACR_KEY_Field is HAL.UInt8; -- Capabilities Control type SDHC_CACR_Register is record -- Capabilities Registers Write Enable (Required to write the correct -- frequencies in the Capabilities Registers) CAPWREN : Boolean := False; -- unspecified Reserved_1_7 : HAL.UInt7 := 16#0#; -- Key (0x46) KEY : SDHC_CACR_KEY_Field := 16#0#; -- unspecified Reserved_16_31 : HAL.UInt16 := 16#0#; end record with Volatile_Full_Access, Object_Size => 32, Bit_Order => System.Low_Order_First; for SDHC_CACR_Register use record CAPWREN at 0 range 0 .. 0; Reserved_1_7 at 0 range 1 .. 7; KEY at 0 range 8 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- Non-intrusive debug enable type DBGR_NIDBGSelect is (-- Debugging is intrusive (reads of BDPR from debugger are considered and -- increment the internal buffer pointer) IDBG, -- Debugging is not intrusive (reads of BDPR from debugger are discarded and -- do not increment the internal buffer pointer) NIDBG) with Size => 1; for DBGR_NIDBGSelect use (IDBG => 0, NIDBG => 1); -- Debug type SDHC_DBGR_Register is record -- Non-intrusive debug enable NIDBG : DBGR_NIDBGSelect := SAM_SVD.SDHC.IDBG; -- unspecified Reserved_1_7 : HAL.UInt7 := 16#0#; end record with Volatile_Full_Access, Object_Size => 8, Bit_Order => System.Low_Order_First; for SDHC_DBGR_Register use record NIDBG at 0 range 0 .. 0; Reserved_1_7 at 0 range 1 .. 7; end record; ----------------- -- Peripherals -- ----------------- type SDHC0_Disc is (Default, CMD23_MODE, EMMC_MODE); -- SD/MMC Host Controller type SDHC0_Peripheral (Discriminent : SDHC0_Disc := Default) is record -- Block Size BSR : aliased SDHC_BSR_Register; -- Block Count BCR : aliased HAL.UInt16; -- Argument 1 ARG1R : aliased HAL.UInt32; -- Transfer Mode TMR : aliased SDHC_TMR_Register; -- Command CR : aliased SDHC_CR_Register; -- Response RR : aliased SDHC_RR_Registers; -- Buffer Data Port BDPR : aliased HAL.UInt32; -- Present State PSR : aliased SDHC_PSR_Register; -- Power Control PCR : aliased SDHC_PCR_Register; -- Wakeup Control WCR : aliased SDHC_WCR_Register; -- Clock Control CCR : aliased SDHC_CCR_Register; -- Timeout Control TCR : aliased SDHC_TCR_Register; -- Software Reset SRR : aliased SDHC_SRR_Register; -- Auto CMD Error Status ACESR : aliased SDHC_ACESR_Register; -- Capabilities 0 CA0R : aliased SDHC_CA0R_Register; -- Capabilities 1 CA1R : aliased SDHC_CA1R_Register; -- Maximum Current Capabilities MCCAR : aliased SDHC_MCCAR_Register; -- Force Event for Auto CMD Error Status FERACES : aliased SDHC_FERACES_Register; -- Force Event for Error Interrupt Status FEREIS : aliased SDHC_FEREIS_Register; -- ADMA Error Status AESR : aliased SDHC_AESR_Register; -- ADMA System Address n ASAR : aliased HAL.UInt32; -- Preset Value n PVR : aliased SDHC_PVR_Registers; -- Slot Interrupt Status SISR : aliased SDHC_SISR_Register; -- Host Controller Version HCVR : aliased SDHC_HCVR_Register; -- MMC Control 1 MC1R : aliased SDHC_MC1R_Register; -- MMC Control 2 MC2R : aliased SDHC_MC2R_Register; -- AHB Control ACR : aliased SDHC_ACR_Register; -- Clock Control 2 CC2R : aliased SDHC_CC2R_Register; -- Capabilities Control CACR : aliased SDHC_CACR_Register; -- Debug DBGR : aliased SDHC_DBGR_Register; case Discriminent is when Default => -- SDMA System Address / Argument 2 SSAR : aliased HAL.UInt32; -- Host Control 1 HC1R : aliased SDHC_HC1R_Register; -- Block Gap Control BGCR : aliased SDHC_BGCR_Register; -- Normal Interrupt Status NISTR : aliased SDHC_NISTR_Register; -- Error Interrupt Status EISTR : aliased SDHC_EISTR_Register; -- Normal Interrupt Status Enable NISTER : aliased SDHC_NISTER_Register; -- Error Interrupt Status Enable EISTER : aliased SDHC_EISTER_Register; -- Normal Interrupt Signal Enable NISIER : aliased SDHC_NISIER_Register; -- Error Interrupt Signal Enable EISIER : aliased SDHC_EISIER_Register; -- Host Control 2 HC2R : aliased SDHC_HC2R_Register; when CMD23_MODE => -- SDMA System Address / Argument 2 SSAR_CMD23_MODE : aliased HAL.UInt32; when EMMC_MODE => -- Host Control 1 HC1R_EMMC_MODE : aliased SDHC_HC1R_EMMC_MODE_Register; -- Block Gap Control BGCR_EMMC_MODE : aliased SDHC_BGCR_EMMC_MODE_Register; -- Normal Interrupt Status NISTR_EMMC_MODE : aliased SDHC_NISTR_EMMC_MODE_Register; -- Error Interrupt Status EISTR_EMMC_MODE : aliased SDHC_EISTR_EMMC_MODE_Register; -- Normal Interrupt Status Enable NISTER_EMMC_MODE : aliased SDHC_NISTER_EMMC_MODE_Register; -- Error Interrupt Status Enable EISTER_EMMC_MODE : aliased SDHC_EISTER_EMMC_MODE_Register; -- Normal Interrupt Signal Enable NISIER_EMMC_MODE : aliased SDHC_NISIER_EMMC_MODE_Register; -- Error Interrupt Signal Enable EISIER_EMMC_MODE : aliased SDHC_EISIER_EMMC_MODE_Register; -- Host Control 2 HC2R_EMMC_MODE : aliased SDHC_HC2R_EMMC_MODE_Register; end case; end record with Unchecked_Union, Volatile; for SDHC0_Peripheral use record BSR at 16#4# range 0 .. 15; BCR at 16#6# range 0 .. 15; ARG1R at 16#8# range 0 .. 31; TMR at 16#C# range 0 .. 15; CR at 16#E# range 0 .. 15; RR at 16#10# range 0 .. 127; BDPR at 16#20# range 0 .. 31; PSR at 16#24# range 0 .. 31; PCR at 16#29# range 0 .. 7; WCR at 16#2B# range 0 .. 7; CCR at 16#2C# range 0 .. 15; TCR at 16#2E# range 0 .. 7; SRR at 16#2F# range 0 .. 7; ACESR at 16#3C# range 0 .. 15; CA0R at 16#40# range 0 .. 31; CA1R at 16#44# range 0 .. 31; MCCAR at 16#48# range 0 .. 31; FERACES at 16#50# range 0 .. 15; FEREIS at 16#52# range 0 .. 15; AESR at 16#54# range 0 .. 7; ASAR at 16#58# range 0 .. 31; PVR at 16#60# range 0 .. 127; SISR at 16#FC# range 0 .. 15; HCVR at 16#FE# range 0 .. 15; MC1R at 16#204# range 0 .. 7; MC2R at 16#205# range 0 .. 7; ACR at 16#208# range 0 .. 31; CC2R at 16#20C# range 0 .. 31; CACR at 16#230# range 0 .. 31; DBGR at 16#234# range 0 .. 7; SSAR at 16#0# range 0 .. 31; HC1R at 16#28# range 0 .. 7; BGCR at 16#2A# range 0 .. 7; NISTR at 16#30# range 0 .. 15; EISTR at 16#32# range 0 .. 15; NISTER at 16#34# range 0 .. 15; EISTER at 16#36# range 0 .. 15; NISIER at 16#38# range 0 .. 15; EISIER at 16#3A# range 0 .. 15; HC2R at 16#3E# range 0 .. 15; SSAR_CMD23_MODE at 16#0# range 0 .. 31; HC1R_EMMC_MODE at 16#28# range 0 .. 7; BGCR_EMMC_MODE at 16#2A# range 0 .. 7; NISTR_EMMC_MODE at 16#30# range 0 .. 15; EISTR_EMMC_MODE at 16#32# range 0 .. 15; NISTER_EMMC_MODE at 16#34# range 0 .. 15; EISTER_EMMC_MODE at 16#36# range 0 .. 15; NISIER_EMMC_MODE at 16#38# range 0 .. 15; EISIER_EMMC_MODE at 16#3A# range 0 .. 15; HC2R_EMMC_MODE at 16#3E# range 0 .. 15; end record; -- SD/MMC Host Controller SDHC0_Periph : aliased SDHC0_Peripheral with Import, Address => SDHC0_Base; end SAM_SVD.SDHC;
Task/Spiral-matrix/AppleScript/spiral-matrix.applescript
LaudateCorpus1/RosettaCodeData
1
541
-- spiral :: Int -> [[Int]] on spiral(n) script go on |λ|(rows, cols, start) if 0 < rows then {enumFromTo(start, start + pred(cols))} & ¬ map(my |reverse|, ¬ (transpose(|λ|(cols, pred(rows), start + cols)))) else {{}} end if end |λ| end script go's |λ|(n, n, 0) end spiral -- TEST ------------------------------------------------------------------ on run wikiTable(spiral(5), ¬ false, ¬ "text-align:center;width:12em;height:12em;table-layout:fixed;") end run -- WIKI TABLE FORMAT --------------------------------------------------------- -- wikiTable :: [Text] -> Bool -> Text -> Text on wikiTable(lstRows, blnHdr, strStyle) script fWikiRows on |λ|(lstRow, iRow) set strDelim to if_(blnHdr and (iRow = 0), "!", "|") set strDbl to strDelim & strDelim linefeed & "|-" & linefeed & strDelim & space & ¬ intercalateS(space & strDbl & space, lstRow) end |λ| end script linefeed & "{| class=\"wikitable\" " & ¬ if_(strStyle ≠ "", "style=\"" & strStyle & "\"", "") & ¬ intercalateS("", ¬ map(fWikiRows, lstRows)) & linefeed & "|}" & linefeed end wikiTable -- GENERIC ------------------------------------------------------------------ -- comparing :: (a -> b) -> (a -> a -> Ordering) on comparing(f) script on |λ|(a, b) tell mReturn(f) set fa to |λ|(a) set fb to |λ|(b) if fa < fb then -1 else if fa > fb then 1 else 0 end if end tell end |λ| end script end comparing -- concatMap :: (a -> [b]) -> [a] -> [b] on concatMap(f, xs) set lng to length of xs if 0 < lng and class of xs is string then set acc to "" else set acc to {} end if tell mReturn(f) repeat with i from 1 to lng set acc to acc & |λ|(item i of xs, i, xs) end repeat end tell return acc end concatMap -- enumFromTo :: Int -> Int -> [Int] on enumFromTo(m, n) if m ≤ n then set lst to {} repeat with i from m to n set end of lst to i end repeat return lst else return {} end if end enumFromTo -- foldl :: (a -> b -> a) -> a -> [b] -> a on foldl(f, startValue, xs) tell mReturn(f) set v to startValue set lng to length of xs repeat with i from 1 to lng set v to |λ|(v, item i of xs, i, xs) end repeat return v end tell end foldl -- if_ :: Bool -> a -> a -> a on if_(bool, x, y) if bool then x else y end if end if_ -- intercalateS :: String -> [String] -> String on intercalateS(sep, xs) set {dlm, my text item delimiters} to {my text item delimiters, sep} set s to xs as text set my text item delimiters to dlm return s end intercalateS -- length :: [a] -> Int on |length|(xs) length of xs end |length| -- max :: Ord a => a -> a -> a on max(x, y) if x > y then x else y end if end max -- maximumBy :: (a -> a -> Ordering) -> [a] -> a on maximumBy(f, xs) set cmp to mReturn(f) script max on |λ|(a, b) if a is missing value or cmp's |λ|(a, b) < 0 then b else a end if end |λ| end script foldl(max, missing value, xs) end maximumBy -- Lift 2nd class handler function into 1st class script wrapper -- mReturn :: First-class m => (a -> b) -> m (a -> b) on mReturn(f) if class of f is script then f else script property |λ| : f end script end if end mReturn -- map :: (a -> b) -> [a] -> [b] on map(f, xs) tell mReturn(f) set lng to length of xs set lst to {} repeat with i from 1 to lng set end of lst to |λ|(item i of xs, i, xs) end repeat return lst end tell end map -- pred :: Enum a => a -> a on pred(x) (-1) + x end pred -- Egyptian multiplication - progressively doubling a list, appending -- stages of doubling to an accumulator where needed for binary -- assembly of a target length -- replicate :: Int -> a -> [a] on replicate(n, a) set out to {} if n < 1 then return out set dbl to {a} repeat while (n > 1) if (n mod 2) > 0 then set out to out & dbl set n to (n div 2) set dbl to (dbl & dbl) end repeat return out & dbl end replicate -- reverse :: [a] -> [a] on |reverse|(xs) if class of xs is text then (reverse of characters of xs) as text else reverse of xs end if end |reverse| -- If some of the rows are shorter than the following rows, -- their elements are skipped: -- transpose({{10,11},{20},{},{30,31,32}}) -> {{10, 20, 30}, {11, 31}, {32}} -- transpose :: [[a]] -> [[a]] on transpose(xxs) set intMax to |length|(maximumBy(comparing(my |length|), xxs)) set gaps to replicate(intMax, {}) script padded on |λ|(xs) set lng to |length|(xs) if lng < intMax then xs & items (lng + 1) thru -1 of gaps else xs end if end |λ| end script set rows to map(padded, xxs) script cols on |λ|(_, iCol) script cell on |λ|(row) item iCol of row end |λ| end script concatMap(cell, rows) end |λ| end script map(cols, item 1 of rows) end transpose -- unlines :: [String] -> String on unlines(xs) set {dlm, my text item delimiters} to ¬ {my text item delimiters, linefeed} set str to xs as text set my text item delimiters to dlm str end unlines -- unwords :: [String] -> String on unwords(xs) intercalateS(space, xs) end unwords
Notational Velocity/NV-LinkAutomation.applescript
rogues-gallery/applescript
360
41
-- Highlight text, run the script to copy and process the text, text is then pasted back into NV with link brackets. tell application "Notational Velocity" activate tell application "System Events" key code 7 using command down do shell script "pbpaste | sed -e 's/^/[[/' | sed -e 's/$/]]/' | pbcopy" tell application "Notational Velocity" activate tell application "System Events" key code 9 using command down key code 51 end tell end tell end tell end tell --- http://www.github.com/unforswearing
45/runtime/crt/5crt0.asm
minblock/msdos
0
1530
<gh_stars>0 page ,132 title crt0 - OS/2 C start up routine ;*** ;crt0.asm - OS/2 C start up routine ; ; Copyright (c) 1986-1988, Microsoft Corporation, All Rights Reserved ; ;Purpose: ; How startup works in a few words - ; ; The startup and termination is performed by a few modules ; ; crt0.asm OS/2 specific init/term ; crt0msg.asm OS/2 error messages ; crt0dat.asm remainder of shared OS/2 init/term ; ; ************* IMPORTANT ***************************************** ; ; The "DOSSEG" directive in this module must not be removed or else ; the user will have to link with the "/DOSSEG" linker switch in ; order to get proper segment ordering. ; ; See the C documentation for more information about the /DOSSEG switch. ; ; All assembler modules must be assembled with the /Mx switch, i.e. ; ; masm -Mx crt0,; ; ;******************************************************************************* ;*******************************;* DOSSEG ;* specifies DOS SEGment ordering * ;*******************************;* ;*******************************;* ;*******************************;* ?DF= 1 ; this is special for c startup .xlist include version.inc include cmacros.inc include msdos.inc include brkctl.inc EI_QB = 0 ;[1] constants so include file works OM_DOS5 = NOT 0 ;[1] include stack2.inc ;[1] STACK_SIZE constant assumesdata macro seg ;;[1] Newer versions of CMACROS reject assumes seg,DGROUP ;;[1] endm ;;[1] .list page ;=========================================================================== ; ; Segment definitions ; ; The segment order is essentially the same as in XENIX. ; This module is edited after assembly to contain a dosseg comment ; record for the linker. ; ;=========================================================================== createSeg _TEXT, code, word, public, CODE, <> createSeg C_ETEXT,etext, word, public, ENDCODE,<> createSeg _DATA, data, word, public, DATA, DGROUP createSeg STACK, stack, para, stack, STACK, DGROUP defGrp DGROUP ; define DGROUP codeOFFSET equ offset _TEXT: dataOFFSET equ offset DGROUP: page public __acrtused ; trick to force in startup __acrtused = 9876h ; funny value not easily matched in SYMDEB extrn __acrtmsg:abs ; trick to pull in startup messages sBegin stack assumesdata ds ;[1] db STACK_SIZE dup (?) ;[1] default stack size sEnd page extrn B$amsg_exit:FAR ;[1] extrn B$terminate:FAR ;[1] extrn B$Init:FAR ;[1] sBegin data extrn _edata:byte ; end of data (start of bss) extrn _end:byte ; end of bss (start of stack) externB _osfile externB _osmajor ; Major and Minor versions of OS/2 externB _osmode ; real/protected mode flag ;[1] extrn b$nmalloc_start:word ;[1] start of BASIC near malloc buffer externW _acmdln ;[1] externW _aenvseg ;[1] externW _asizds ;[1] externW _atopsp ;[1] externW _aexit_rtn ;[1] NEAR pointer externW _abrktb ;[1] externB _acfinfo ;[1] special C environment string extrn b$cfilex:byte ;[1] end char of _acfinfo extrn b$cfileln:abs ;[1] length cfile EQU _acfinfo ;[1] cfilex EQU b$cfilex ;[1] cfileln EQU b$cfileln ;[1] ;[1] externW _abrktbe ;[1] ;[1] externW _abrkp ;[1] ;[1] sEnd page externP _cinit ; run-time initializers externP main ; C main program externP exit ; exit ( code ) extrn __exit:far ; _exit ( code) (cmacros name conflict) extrn DOSGETVERSION:far extrn DOSGETMACHINEMODE:far extrn DOSREALLOCSEG:far ;[1] sBegin code assumes cs,code page ;*** ;_astart - start of all C programs ; ;Purpose: ; Startup routine to initialize C run-time environment. ; ;Entry: ; OS/2 Start-Up Conditions: ; ; DS = Automatic Data Segment ; SS:SP = Stack Segment and Initial Stack Pointer ; ES = 0000 ; AX = Selector of Environment Segment ; BX = Offset of Command Line in Environment Segment ; CX = Size of Automatic Data Segment (CX=0 means 65536 bytes) ; BP = 0000 ; ;Exit: ; Exits to OS/2 via exit(). ; ;Uses: ; ;Exceptions: ; ;******************************************************************************* labelNP <PUBLIC,_astart> ; start address of all "C" programs ; ; cld ; set direction flag (up) mov [_atopsp],sp ; Top of Stack Region mov [_aenvseg],ax ;[1] Handle of Environment Segment mov [_acmdln],bx ;[1] Offset of Command Line String mov [_aexit_rtn],codeoffset _exit ;[1] call high-level exit() jcxz Got64kDS ;[1] brif got 64k DS xor cx,cx ;[1] if not get 64K push cx ;[1] push requested size push ds ;[1] doit to DS call DOSREALLOCSEG ;[1] realloc for 64K xchg ax,cx ;[1] return code in cx jcxz Got64kDS ;[1] brif successful mov [_aexit_rtn],codeoffset B$terminate ;[1] die quickly mov ax,9 ;[1] C error message (not enough space) jmp short __amsg_exit ;[1] print message and die Got64kDS: dec cx mov [_asizds],cx ; Size of Global Data Segment ; [1] Initialize C near heap to BASIC near malloc buffer mov ax,[b$nmalloc_start] ;[1] get top of nmalloc buffer mov [_abrktb].sz,ax ;[1] set near brk end of heap marker mov [_abrktb].sg,ds ;[1] DGROUP segment call B$Init ;[1] Do necessary BASIC init prior to XI ;[1] processing ; ; get OS/2 version ; push ax mov ax,sp push ss push ax ; address for version call DOSGETVERSION pop ax xchg ah,al ; swap bytes mov word ptr [_osmajor],ax ; ; Get real/protected mode flag ; mov ax,dataOFFSET _osmode push ds push ax call DOSGETMACHINEMODE ;**** ;* C_FILE_INFO must be processed before _cinit() is called ;* because _cinit() checks handles 0-2 for device/pipe. ;**** ; fix up files inherited from child using _C_FILE_INFO call inherit ; do necessary initialization BEFORE command line processing! call _cinit ; shared by OS/2 and Windows ; process command line and environment call main ; main ( argc , argv , envp ) ; use whatever is in ax after returning here from the main program push ax call exit ; exit (AX) ; _exit will call terminators page ;*** ;_amsg_exit, _cintDIV - Fast exit fatal errors ; ;Purpose: ; Exit the program with error code of 255 and appropriate error ; message. cintDIV is used for integer divide by zero, amsg_exit ; is for other run time errors. ; ;Entry: ; AX = error message number (amsg_exit only). ; ;Exit: ; calls exit() [cintDIV] or indirect through _aexit_rtn [amsg_exit]. ; ;Uses: ; ;Exceptions: ; ;******************************************************************************* labelNP <PUBLIC,_cintDIV> assumes ds,nothing assumesdata ss ;[1] ; _NMSG_WRITE will reestablish ds = DGROUP mov ax,3 ; Integer divide by zero interrupt mov [_aexit_rtn],codeoffset _exit ; call high-level exit() ; to cause file buffer flushing labelNP <PUBLIC,_amsg_exit> JMP B$amsg_exit ;[1] print error message and terminate page ;*** ;inherit - process C_FILE_INFO variable from the environment ; ;Purpose: ; locates and interprets the "C_FILE_INFO" environment variable. ; The value of this variable is written into the "_osfile" array. ; This routine recognizes both DOS and OS/2 formats: ; ; DOS: ";C_FILE_INFO" + count byte "N" + "N" data bytes + "\0" ; ; where each data byte is written directly into _osfile ; except that 0xFF represents 0 ; ; OS/2: "_C_FILE_INFO=<AA><BB><CC><DD>" + "\0" ; ; In this case the variable is a null-terminated string ; (a well-formed environment variable) where each pair ; of successive letters form one byte in _osfile. ; The letters are in the range "A" through "P", representing ; 0 through 15. The first letter of each pair is the more ; significant 4 bits of the result. ; ;Entry: ; ;Exit: ; ;Uses: ; AX, BX, CX, DX, SI, DI, ES ; ;Exceptions: ; ;******************************************************************************* inherit proc near mov bx,cfileln cmp [_osmode],0 jne not_fapi ; ; Set up real-mode version of ;C_FILE_INFO ; mov [cfile],';' ; change _C_FILE_INFO= to ;C_FILE_INFO mov [cfilex],0 dec bx ; length is one less not_fapi: xor di,di mov es,[_aenvseg] ; ES:DI points to environment strings mov cx,07FFFh ; environment max = 32K cmp byte ptr es:[di],0 jne cfilp inc di ; first environment string is null cfilp: cmp byte ptr es:[di],0 ; check for end of environment je nocfi ; yes - not found mov si,dataOFFSET cfile mov dx,cx ; DX has count of bytes left in environment mov cx,bx ; BX=cfileln repe cmpsb ; compare for '_C_FILE_INFO='/';C_FILE_INFO' mov cx,dx ; environment max = 32K je gotcfi ; yes - now do something with it xor ax,ax repne scasb ; search for end of current string je cfilp ; keep searching ; jmp short nocfi ; no 00 !!! - assume end of env. ; ; found _C_FILE_INFO, so transfer handle info into _osfile ; gotcfi: push es push ds pop es ; es = DGROUP mov si,di ; si = startup of _osfile info pop ds ; ds = env. segment assumesdata es ;[1] assumes ds,nothing mov di,dataOFFSET _osfile ; di = _osfile block cmp bx,cfileln jne real_cfi ; ; Prot-mode _C_FILE_INFO: ; Read in pairs of characters, expected to be ['A'..'P']. ; Each pair represents one byte in the _osfile array. ; A null is the normal terminator for the string. ; mov cl,4 osfile_lp: lodsb ; get next byte (more significant 4 bits) sub al,'A' jb nocfi ; string should terminate with a null shl al,cl xchg dx,ax ; save in DL lodsb ; get next byte (less significant 4 bits) sub al,'A' jb nocfi or al,dl ; this assumes that AL is in range stosb jmp short osfile_lp ; ; Real-mode C_FILE_INFO ; real_cfi: lodsb ; must be less than 20 cbw xchg cx,ax ; cx = number of entries osflp: lodsb ; get next byte inc al jz saveit ; was FF - save as 00 dec ax ; restore al saveit: stosb loop osflp ; transfer next character ;------ nocfi: push ss pop ds ; ds = DGROUP assumesdata ds ;[1] ret inherit endp sEnd end _astart ; start address
books_and_notes/professional_courses/Security/sources/extra_books/加密与解密第四版光盘资料/chap12/10.CreateProcContextInject/ShellCode64.asm
gxw1/review_the_national_post-graduate_entrance_examination
640
85502
.CODE ShellCodeFun64 PROC push rax ; push rcx push rdx push rbx push rbp push rsi push rdi push r9 pushfq call next next: pop rbx and bx,0 ;then rbx = Alloced Mem Base mov rax,qword ptr [rbx+0E0h] ;OriginalEIP xchg rax,qword ptr [rsp+040h] ;saved retnaddr mov rcx,rbx call LoadDllAndRestoreExeEntry popfq pop r9 pop rdi pop rsi pop rbp pop rbx pop rdx pop rcx ret LoadDllAndRestoreExeEntry: mov qword ptr [rsp+08h], rbx push rdi sub rsp, 30h mov rdx, qword ptr [rcx+000000F8h] mov rax, qword ptr [rcx+00000108h] mov rdi, qword ptr [rcx+000000D8h] mov r10, qword ptr [rcx+00000100h] mov qword ptr [rdx], rax mov rax, qword ptr [rcx+00000110h] mov qword ptr [rdx+08h], rax lea rax, qword ptr [rcx+000000E8h] lea r8, qword ptr [rcx+000000F0h] mov r9d, dword ptr [rax] lea rdx, qword ptr [rcx+000000E0h] mov rbx, rcx or rcx, 0FFFFFFFFFFFFFFFFh mov qword ptr [rsp+20h], rax call r10 mov r8, qword ptr [rbx+000000C8h] lea r9, qword ptr [rbx+000000C0h] lea rdx, qword ptr [rbx+000000D0h] xor ecx, ecx mov rax, rdi mov rbx, qword ptr [rsp+40h] add rsp, 30h pop rdi jmp rax nop nop nop nop nop ShellCodeFun64 ENDP END
src/spread/printer/cr_deskjet.asm
olifink/qspread
0
102599
; RTF to Deskjet filter 06/11/93 O.Fink ; include win1_spread_printer_mac section prog data 4096 printer DeskJet rtf_cmds prtcmd line prtcmd page prtcmd smal prtcmd norm prtcmd lett prtcmd draf prtcmd side prtcmd init prtend cde_line dc.w 2 dc.b 13,10 cde_page dc.w 1 dc.b 12 cde_smal dc.w 6 dc.b 27,'(s20H' cde_norm dc.w 6 dc.b 27,'(s10H' cde_lett dc.w 5 dc.b 27,'(s2Q' cde_draf dc.w 5 dc.b 27,'(s1Q' cde_side dc.w 5 dc.b 27,'&l1O' cde_init dc.w 5 dc.b 27,'&l0O' nop end
test/Fail/Issue2758.agda
cruhland/agda
1,989
10822
{-# OPTIONS --experimental-irrelevance #-} open import Agda.Builtin.Bool open import Agda.Builtin.Equality data Box (A : Set) : ..(x : A) → Set where c : (x : A) → Box A x unbox : {A : Set} → .(x : A) → Box A x → A unbox a (c b) = b .b : Bool b = true b' : Bool b' = unbox b (c _)
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_526.asm
ljhsiun2/medusa
9
100777
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x4325, %r13 nop xor $37142, %r8 movb $0x61, (%r13) nop nop nop sub %r9, %r9 lea addresses_UC_ht+0x9b79, %r15 nop nop nop nop nop and %rbp, %rbp mov $0x6162636465666768, %rdx movq %rdx, (%r15) nop nop nop nop nop dec %r9 lea addresses_WC_ht+0x8259, %rsi lea addresses_UC_ht+0xeb89, %rdi xor $41485, %r9 mov $15, %rcx rep movsl nop nop xor $21245, %rbp lea addresses_WT_ht+0xab59, %rsi lea addresses_UC_ht+0xa4f9, %rdi nop nop nop nop cmp %rbp, %rbp mov $88, %rcx rep movsw nop nop nop xor $38651, %r15 lea addresses_WC_ht+0xa259, %r9 nop nop cmp %rdx, %rdx movl $0x61626364, (%r9) dec %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %rax push %rcx push %rdi // Faulty Load lea addresses_A+0xe259, %rax nop nop and %rdi, %rdi mov (%rax), %ecx lea oracles, %rdi and $0xff, %rcx shlq $12, %rcx mov (%rdi,%rcx,1), %rcx pop %rdi pop %rcx pop %rax pop %r8 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 1, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WC_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}, 'dst': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'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 */
programs/oeis/184/A184220.asm
neoneye/loda
22
24156
; A184220: a(n) = largest k such that A000290(n+1) = A000290(n) + (A000290(n) mod k), or 0 if no such k exists. ; 0,0,0,0,14,23,34,47,62,79,98,119,142,167,194,223,254,287,322,359,398,439,482,527,574,623,674,727,782,839,898,959,1022,1087,1154,1223,1294,1367,1442,1519,1598,1679,1762,1847,1934,2023,2114,2207,2302,2399,2498,2599,2702,2807,2914,3023,3134,3247,3362,3479,3598,3719,3842,3967,4094,4223,4354,4487,4622,4759,4898,5039,5182,5327,5474,5623,5774,5927,6082,6239,6398,6559,6722,6887,7054,7223,7394,7567,7742,7919,8098,8279,8462,8647,8834,9023,9214,9407,9602,9799 pow $0,2 trn $0,2 lpb $0 mul $0,2 trn $0,8 lpe
Transynther/x86/_processed/NONE/_un_/i7-7700_9_0x48_notsx.log_1_1520.asm
ljhsiun2/medusa
9
82732
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x166e0, %r9 nop nop nop nop add %rsi, %rsi mov (%r9), %ecx nop nop nop nop sub %rsi, %rsi lea addresses_D_ht+0x1c5e0, %rsi lea addresses_normal_ht+0x177e0, %rdi nop nop nop sub %r9, %r9 mov $78, %rcx rep movsl nop nop nop inc %rbx lea addresses_WC_ht+0x12ff0, %rsi lea addresses_A_ht+0x13bd1, %rdi add %r11, %r11 mov $61, %rcx rep movsb nop nop add %rdi, %rdi lea addresses_WC_ht+0x12e0, %r9 clflush (%r9) nop nop nop nop nop and $30887, %rbx mov (%r9), %r11d nop nop nop add %rcx, %rcx lea addresses_D_ht+0x12a92, %r9 clflush (%r9) nop nop nop sub %rbx, %rbx mov (%r9), %r11d nop nop inc %rdi lea addresses_WC_ht+0x188e0, %rsi lea addresses_UC_ht+0x177e0, %rdi nop lfence mov $36, %rcx rep movsq nop nop nop nop add %r11, %r11 lea addresses_WC_ht+0x9ad0, %r9 nop nop nop nop nop sub $54030, %r13 mov (%r9), %rdi nop nop nop nop nop add %rdi, %rdi lea addresses_A_ht+0x6be0, %rsi lea addresses_WC_ht+0x187e0, %rdi nop add %rdx, %rdx mov $15, %rcx rep movsl nop nop nop sub %r13, %r13 lea addresses_A_ht+0x17de0, %r13 clflush (%r13) nop xor %rbx, %rbx mov (%r13), %cx nop nop nop nop nop xor %r11, %r11 lea addresses_normal_ht+0x7420, %rbx nop nop add $52227, %r9 mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%rbx) nop nop sub $38330, %r9 lea addresses_UC_ht+0x11bd4, %rsi lea addresses_D_ht+0x1141c, %rdi clflush (%rsi) add %r11, %r11 mov $115, %rcx rep movsb nop xor %r9, %r9 lea addresses_A_ht+0x2260, %rsi lea addresses_D_ht+0x2c88, %rdi nop nop xor %rbx, %rbx mov $82, %rcx rep movsq nop nop nop sub %r11, %r11 lea addresses_D_ht+0xfec2, %rdi clflush (%rdi) nop nop xor %rdx, %rdx movw $0x6162, (%rdi) nop nop nop cmp %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_RW+0x1d9e0, %rsi lea addresses_RW+0x1d9e0, %rdi nop nop nop nop nop add $38482, %r8 mov $17, %rcx rep movsb nop nop and $47304, %r11 // Faulty Load lea addresses_RW+0x1d9e0, %rdi nop nop nop xor $26291, %r11 movups (%rdi), %xmm5 vpextrq $0, %xmm5, %rcx lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_RW', 'congruent': 0}} {'dst': {'same': True, 'congruent': 0, 'type': 'addresses_RW'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 0, 'type': 'addresses_RW'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_RW', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 8}} {'dst': {'same': True, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'dst': {'same': True, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 1}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 4}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 9, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 5}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 0}, 'OP': 'STOR'} {'ff': 1} ff */
programs/oeis/172/A172274.asm
karttu/loda
1
94134
<filename>programs/oeis/172/A172274.asm ; A172274: a(n) = floor(n*(sqrt(13)-sqrt(11))). ; 0,0,0,0,1,1,1,2,2,2,2,3,3,3,4,4,4,4,5,5,5,6,6,6,6,7,7,7,8,8,8,8,9,9,9,10,10,10,10,11,11,11,12,12,12,13,13,13,13,14,14,14,15,15,15,15,16,16,16,17,17,17,17,18,18,18,19,19,19,19,20,20,20,21,21,21,21,22,22,22,23,23,23,23,24,24,24,25,25,25,26,26,26,26,27,27,27,28,28,28,28,29,29,29,30,30,30,30,31,31,31,32,32,32,32,33,33,33,34,34,34,34,35,35,35,36,36,36,36,37,37,37,38,38,38,39,39,39,39,40,40,40,41,41,41,41,42,42,42,43,43,43,43,44,44,44,45,45,45,45,46,46,46,47,47,47,47,48,48,48,49,49,49,49,50,50,50,51,51,51,52,52,52,52,53,53,53,54,54,54,54,55,55,55,56,56,56,56,57,57,57,58,58,58,58,59,59,59,60,60,60,60,61,61,61,62,62,62,62,63,63,63,64,64,64,65,65,65,65,66,66,66,67,67,67,67,68,68,68,69,69,69,69,70,70,70,71,71,71,71 mul $0,26 div $0,90 mov $1,$0
asmvars.asm
rene0/asmstuff
0
84479
<filename>asmvars.asm ; Copyright (c) 1997-2000 <NAME>. 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. ; ; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. [SEGMENT .data] GLOBAL DaTiStr,Halted,Status DaTiStr DB ' - - : : ' Halted DB 0 Status DB 1 COMMON Jaar 2 COMMON Maand 1 COMMON Dag 1 COMMON Uur 1 COMMON Minuut 1 COMMON Seconde 1 COMMON WeekDag 1 ; na de tijd vanwege PutDaTiString COMMON XPos 1 COMMON YPos 1 COMMON Attr 1 ; kleurcode COMMON Teken 1 ; ASCII-code COMMON BufLen 1 COMMON BufString 255
programs/oeis/090/A090964.asm
neoneye/loda
22
243746
; A090964: Permutation of natural numbers generated by 2-rowed array shown below. ; 1,4,2,5,3,8,6,9,7,12,10,13,11,16,14,17,15,20,18,21,19,24,22,25,23,28,26,29,27,32,30,33,31,36,34,37,35,40,38,41,39,44,42,45,43,48,46,49,47,52,50,53,51,56,54,57,55,60,58,61,59,64,62,65,63,68,66,69,67,72,70,73 mov $1,$0 div $1,2 gcd $1,2 mov $2,-1 pow $2,$0 mul $1,$2 trn $0,$1 add $0,1
test/asset/agda-stdlib-1.0/Data/Container/Related.agda
omega12345/agda-mode
5
12750
<reponame>omega12345/agda-mode ------------------------------------------------------------------------ -- The Agda standard library -- -- Several kinds of "relatedness" for containers such as equivalences, -- surjections and bijections ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Container.Related where open import Level using (_⊔_) open import Data.Container.Core import Function.Related as Related open import Relation.Binary open import Data.Container.Membership open Related public using (Kind; Symmetric-kind) renaming ( implication to subset ; reverse-implication to superset ; equivalence to set ; injection to subbag ; reverse-injection to superbag ; bijection to bag ) [_]-Order : ∀ {s p ℓ} → Kind → Container s p → Set ℓ → Preorder (s ⊔ p ⊔ ℓ) (s ⊔ p ⊔ ℓ) (p ⊔ ℓ) [ k ]-Order C X = Related.InducedPreorder₂ k (_∈_ {C = C} {X = X}) [_]-Equality : ∀ {s p ℓ} → Symmetric-kind → Container s p → Set ℓ → Setoid (s ⊔ p ⊔ ℓ) (p ⊔ ℓ) [ k ]-Equality C X = Related.InducedEquivalence₂ k (_∈_ {C = C} {X = X}) infix 4 _∼[_]_ _∼[_]_ : ∀ {s p x} {C : Container s p} {X : Set x} → ⟦ C ⟧ X → Kind → ⟦ C ⟧ X → Set (p ⊔ x) _∼[_]_ {C = C} {X} xs k ys = Preorder._∼_ ([ k ]-Order C X) xs ys
models/tests/test28.als
transclosure/Amalgam
4
2653
<reponame>transclosure/Amalgam<filename>models/tests/test28.als module tests/test28[elem] one sig Ord { First: elem } fun first: elem { Ord.First } run first expect 1
src/Stream.agda
lisandrasilva/agda-liveness
0
2652
open import Data.Nat open import Data.Product open import Data.Empty open import Relation.Binary.PropositionalEquality module Stream where record Stream (A : Set) : Set where coinductive field head : A tail : Stream A open Stream public get : ∀ {A : Set} → Stream A → ℕ → A get s zero = head s get s (suc i) = get s i {- natsFrom : ℕ → Stream ℕ head (natsFrom x) = x tail (natsFrom x) = natsFrom (suc x) nats : Stream ℕ nats = natsFrom 0 complicated-way-to-say-2 : head (tail (tail nats)) ≡ 2 complicated-way-to-say-2 = refl -- thread a relation R through the elements of a stream record Trans {A : Set}(R : A → A → Set)(as : Stream A) : Set where coinductive field trans-head : R (head as) (head (tail as)) trans-tail : Trans R (tail as) open Trans -- We can prove our generation of natural numbers to be correct! nats-correct : (n : ℕ) → Trans (λ x y → suc x ≡ y) (natsFrom n) trans-head (nats-correct n) = refl trans-tail (nats-correct n) = nats-correct (suc n) ----------------------------- -- Talking Distr. Systems! -- -- I hope I got the names right postulate State : Set Event : Set Enabled : State → Event → Set action : (s : State)(e : Event) → (enev : Enabled s e) → State _l-t_ : (State → Set) → (State → Set) → Set -- indicates a given post-state is a possible -- outcome from a given pre-state; witnesses the -- translation to the relational scheme I mentioned _⟶_ : State → State → Set s ⟶ s' = ∃[ e ] (Σ (Enabled s e) (λ enev → action s e enev ≡ s')) -- A Behavior, then, is a stream of states -- such that it starts at s₀ and all states -- are linked through the _⟶_ relation. -- You might want to have this in a single Beh record -- instead of assembling it from primitives Beh : State → Set Beh s₀ = Σ (Stream State) (λ st → head st ≡ s₀ × Trans _⟶_ st) module Absurd-DO-NOT-TRY-AT-HOME where data HeadOrTail {A : Set}(P : A → Set)(Q : Stream A → Set) : Stream A → Set where on-head : ∀{s} → P (head s) → HeadOrTail P Q s -- there might be a case for including (¬ P (head s)) here... on-tail : ∀{s} → Q (tail s) → HeadOrTail P Q s record Any {A : Set}(P : A → Set)(as : Stream A) : Set where coinductive field any : HeadOrTail P (Any P) as open Any public -- Witness is a proof by induction that places us -- at the position where P 'holds'; but as we shall see, -- this might never be the case and; even though the -- 'recursive' call makes 'progress' by traversing to the tail, -- it is not enough and we broke math anyway -- -- Exercise to the reader: mark this function as -- NON_TERMINATING instead to see how Agda would stop us -- from breaking math! NON_TERMINATING definitions never reduce -- during typechecking; rendering them almost useless. They are only used -- when doing actual user IO AFAIC {-# TERMINATING #-} witness : {A : Set}{P : A → Set}{as : Stream A} → Any P as → Stream A witness x with any x ...| on-head {s} _ = s ...| on-tail {s} x' = witness {as = tail s} x' {-# NON_TERMINATING #-} witness-satP : {A : Set}{P : A → Set}{as : Stream A} → (x : Any P as) → P (head (witness x)) witness-satP x with any x ...| on-head {s} p = p ...| on-tail x' = witness-satP x' never : {A : Set}(P : A → Set)(as : Stream A) → Any P as any (never P as) = on-tail (never P (tail as)) -- This is why induction and coinduction can't be mixed! xD -- note that even marking one of them as non-terminating we still -- run into trouble oh-no! : ⊥ oh-no! = witness-satP (never (λ _ → ⊥) nats) ----------------------------------------- -- Trying Again; with naturals to help -- mutual data AtF {A : Set}(P : A → Set) : Stream A → ℕ → Set where on-head : ∀{s} → P (head s) → AtF P s 0 on-tail : ∀{s n} → At P (tail s) n → AtF P s (suc n) record At {A : Set}(P : A → Set)(as : Stream A)(i : ℕ) : Set where coinductive field α : AtF P as i open At _satisfies_at_ : ∀{s₀}(σ : Beh s₀)(P : State → Set) → ℕ → Set σ satisfies P at i = At P (proj₁ σ) i -- Now, we can prove that a for all finite prefixes -- of an infinite behaviour such that they satisfy P -- at some observable point, they will satisfy Q at -- some future obervable point. -- Note the use of the word observable here! I like to think of coinduction -- in terms of dominos-chain-reaction. Imagine we want to knock a domino -- x₀ and we want to reason whether or not it knocks over a domino x'. -- Now sawy we reason like this: -- that we x₀ will knock x₁; which in turn will knock x₂; ... and -- eventually will knock x'. Well; it is induction that guarantees -- this for us, and induction requires the number of dominoes between -- x and x' to be countable (isomorphic to ℕ). -- -- If there truly is an infinite number of dominoes between x and x', -- it means that no matter how far we get, there will always be -- at least one domino between where we are and x'; and the wave of -- knocks will never reach x', hence, that type of reasoning is plain invalid. -- -- Behaviors are pottentially plain infinite; some systems never stop. -- We still want to guarantee certain invariants. -- -- Soundness, as I see it, is a proof that given any behavior σ -- that eventually satisfy P; and given that P leads to Q; -- any behaviour that forks of the point where σ satisfied P -- must satisfy Q; A first sketch in agda could be: soundness : {P Q : State → Set} → ∀{s₀ i}(σ : Beh s₀)(prf : σ satisfies P at i) → P l-t Q → Σ ℕ (λ j → σ satisfies Q at (j + i)) -- j + i already guarantess it is the future soundness = {! may-the-force-be-with-us !} -}
Library/Kernel/Object/objectReloc.asm
steakknife/pcgeos
504
176932
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel/Object FILE: objectReloc.asm ROUTINES: Name Description ---- ----------- INT ObjRelocate Relocate an object INT ObjUnRelocate Un-relocate an object REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 2/89 Initial version DESCRIPTION: This file contains routines to load a GEODE and execute it. $Id: objectReloc.asm,v 1.1 97/04/05 01:14:31 newdeal Exp $ ------------------------------------------------------------------------------@ ObjectLoad segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: RelocateObjBlock DESCRIPTION: Relocate all objects in an object block CALLED BY: INTERNAL FullObjLock PASS: ds - segment of block to relocate cx - VMRelocType: VMRT_UNRELOCATE_BEFORE_WRITE VMRT_RELOCATE_AFTER_READ VMRT_RELOCATE_AFTER_WRITE VMRT_LOADED_FROM_RESOURCE RETURN: carry - set if error (non-ec only) DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ RelocateObjBlock proc near mov dx, cx ;dx = type push es ; set the LMEM bit for the handle *now* so EC code won't die. doesn't ; seem to be any advantage to doing this at the end as it was before... mov bx,ds:[LMBH_handle] LoadVarSeg es BitSet es:[bx].HM_flags, HF_LMEM if MOVABLE_CORE_BLOCKS call LockOwnersCoreBlockAndLibraries endif segmov es,ds push ds:[OLMBH_inUseCount] ;save count mov ds:[OLMBH_inUseCount],offset RelocateLow ; relocate the object block output call RelocOutput ; for (each chunk in block) { mov si,ds:LMBH_offset ;si points at handle mov cx,ds:LMBH_nHandles ;cx is a counter mov bp,ds:[si] ;ds:bp = flags for block ;ds = es ;ds:si - current position in handle table ;ds:bp - current position in flags table ;cx - count relloop: mov di,es:[si] inc di jz next dec di jz next ; if (OCF_IS_OBJECT) { ; ObjRelocate(chunk) mov al, es:[bp] test al, mask OCF_IS_OBJECT jz next call RelocOrUnRelocObj jc error next: add si,2 inc bp loop relloop segmov ds,es pop ds:[OLMBH_inUseCount] ;recover count BitSet ds:[LMBH_flags],LMF_RELOCATED pop es EC < call ECLMemValidateHeapFar > clc NEC<done: > if MOVABLE_CORE_BLOCKS mov bx, ds:[LMBH_handle] call UnlockOwnersCoreBlockAndLibraries endif ret error: NEC < segmov ds,es ; return segment in ds > NEC < pop es:[OLMBH_inUseCount] ; recover count > NEC < pop es ; and ES > NEC < jmp done ; Exit w/carry set > EC < ERROR CANNOT_RELOCATE > RelocateObjBlock endp COMMENT @---------------------------------------------------------------------- FUNCTION: UnRelocateObjBlock DESCRIPTION: UnRelocate all objects in an object block CALLED BY: INTERNAL DetachObjBlock PASS: ds - segment of block to relocate cx - VMRelocType: VMRT_UNRELOCATE_BEFORE_WRITE VMRT_RELOCATE_AFTER_READ VMRT_RELOCATE_AFTER_WRITE VMRT_LOADED_FROM_RESOURCE RETURN: carry - set if error (non-ec only) DESTROYED: ax, bx, cx, dx, si, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ UnRelocateObjBlock proc far mov dx, cx ;dx = type push es segmov es,ds if MOVABLE_CORE_BLOCKS mov bx, ds:[LMBH_handle] call LockOwnersCoreBlockAndLibraries endif BitClr ds:[LMBH_flags],LMF_RELOCATED push ds:[OLMBH_inUseCount] ;save count mov ds:[OLMBH_inUseCount],offset UnRelocateLow ; for (each chunk in block) { mov si,ds:LMBH_offset ;si points at handle mov cx,ds:LMBH_nHandles ;cx is a counter mov bp,ds:[si] ;ds:bp = flags for block ;ds:si - current position in handle table ;ds:bp - current position in flags table ;cx - count Uloop: mov di,es:[si] ;ES:DI <- addr of chunk inc di ;If DI was -1, block is empty jz Unext ; so go to next. dec di ;If DI was 0, block is freed, jz Unext ; so go to next. ; if (OCF_IS_OBJECT) { ; ObjRelocate(chunk) mov al, es:[bp] test al, mask OCF_IS_OBJECT jz Unext call RelocOrUnRelocObj jc error Unext: add si,2 ;Go to the next chunk inc bp ;go to next flag loop Uloop ;branch segmov ds,es ; relocate the object block output (after doing the objects) call RelocOutput pop ds:[OLMBH_inUseCount] ;recover count clc ;no erro pop es NEC <done: > mov bx, ds:[LMBH_handle] call UnlockOwnersCoreBlockAndLibraries ret error: NEC < segmov ds,es ;return segment in ds > NEC < pop ds:[OLMBH_inUseCount] ;recover inUseCount > NEC < pop es ; and ES > NEC < jmp done > EC < ERROR CANNOT_UNRELOCATE > UnRelocateObjBlock endp COMMENT @---------------------------------------------------------------------- FUNCTION: RelocOutput DESCRIPTION: Relocate the output field of an object block CALLED BY: INTERNAL PASS: ds - object block es:[OLMBH_inUseCount] - routine to call (Reloc or UnReloc) RETURN: none DESTROYED: ax,bx,cx REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 6/30/92 Initial version ------------------------------------------------------------------------------@ RelocOutput proc near uses dx .enter movdw cxdx, ds:[OLMBH_output] mov bx, ds:[LMBH_handle] mov al, RELOC_HANDLE call es:[OLMBH_inUseCount] movdw ds:[OLMBH_output], cxdx .leave ret RelocOutput endp COMMENT @---------------------------------------------------------------------- FUNCTION: RelocOrUnRelocObj DESCRIPTION: Relocate an object CALLED BY: INTERNAL PASS: es:[OLMBH_inUseCount] - routine to call (Reloc or UnReloc) *es:si - object al - ObjChunkFlags dx - VMRelocType: VMRT_UNRELOCATE_BEFORE_WRITE VMRT_RELOCATE_AFTER_READ VMRT_RELOCATE_AFTER_WRITE RETURN: none DESTROYED: ax, bx, di, ds REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ RelocOrUnRelocObj proc near uses cx, dx, si, bp, es ; "object" is used by RelocOrUnRelocClass() .warn -unref_local object local lptr \ push si .warn @unref_local relocType local VMRelocType \ push dx objflags local word \ push ax classoff local nptr vdStart local word vdEnd local word ForceRef vdEnd ForceRef relocType ForceRef objflags ForceRef classoff .enter EC < cmp es:[OLMBH_inUseCount], offset RelocateLow > EC < je checkAfter > EC < segxchg ds, es > EC < call ECCheckLMemObject > EC < segxchg ds, es > EC <checkAfter: > mov bx,es:[si] ;es:bx = object call RelocOrUnRelocAndLoadClass ;ds:si = class NEC < LONG jc done > EC < cmp es:[OLMBH_inUseCount], offset RelocateLow > EC < jne alreadyChecked > EC < segxchg ds, es > EC < push si > EC < mov si, object > EC < call ECCheckLMemObject > EC < pop si > EC < segxchg ds, es > EC <alreadyChecked: > ; figure start and end of vardata for any relocations there may be ; in there while we've got the bottom class handy.. mov di, ds:[si].Class_masterOffset tst di ; any master parts? jz addInstanceSize ; no -- vardata comes after instance ; data for bottom class mov ax, es:[bx][di] ; ax <- value in master offset inc di ; assume no data for final master part inc di ; so vardata starts after base struct ; (which assumes that master parts are ; built from the bottom up...) tst ax ; correct? jz haveStart ; yes, so di is start of vardata mov_tr di, ax ; no. use start of last master part ; as thing to which to add size of ; last master part to get start of ; var data addInstanceSize: add di, ds:[si].Class_instanceSize haveStart: add di, bx mov ss:[vdStart], di ; loop to do all classes - ds:si = class call RelocOrUnRelocClass NEC <done: > .leave ret RelocOrUnRelocObj endp COMMENT @---------------------------------------------------------------------- FUNCTION: RelocOrUnRelocClass DESCRIPTION: Relocate or unrelocate at the class level CALLED BY: INTERNAL PASS: ds:si - class es - block containing object ss:bp - inherited variables RETURN: carry - set if error DESTROYED: ax, bx, cx, dx, si, di, ds REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/24/92 Initial version ------------------------------------------------------------------------------@ RelocOrUnRelocClass proc far .enter inherit RelocOrUnRelocObj EC < tst ds:[si].Class_superClass.segment ; MetaClass? > EC < jz classOK ; yes => must have no relocation table, so ok > EC < test ds:[si].Class_flags, mask CLASSF_NEVER_SAVED > EC < ERROR_NZ CLASS_AT_DS_SI_MARKED_NEVER_SAVED_SO_WHY_AM_I_RELOCATING_OR_UNRELOCATING_IT_BUB? > EC <classOK: > test ds:[si].Class_flags, mask CLASSF_HAS_RELOC LONG jz noCustomRelocation ; send method to object to relocate itsself (for this class's part) ; this message will call Reloc push bp mov dx, relocType segxchg ds, es ;es=class, ds = obj mov di, si ;es:di = class mov si, object ;*ds:si = object ; compute bx and di to pass mov bp, di ;es:bp = class mov ax,MSG_META_RELOCATE ;pass method in di. PCFOM ; will shift to ax for us. cmp ds:[OLMBH_inUseCount],offset RelocateLow jz 99$ mov ax,MSG_META_UNRELOCATE 99$: mov ss:[TPD_dataAX], ax ;data to pass in AX mov bx, ds:[si] mov ss:[TPD_dataBX], bx ;data to pass in BX (base o' ; object mov di, es:[bp].Class_masterOffset tst di jz 100$ add bx, ds:[bx][di] ;bx = di to send 100$: mov di, bx ; ; Now point to the relocation handler's address, which is ; immediately after the method table (or the CMethodDef table that ; follows the method table for a C class). ; mov bx, es:[bp].Class_methodCount ;calculate methodCount*6 mov cx, bx ; save *1 shl bx ;*2 add bx, cx ; bx = *3 mov cx, bx ; save for C class shl bx ; *6 add bx, bp test es:[bp].Class_flags, mask CLASSF_C_HANDLERS pop bp ;bp = frame pointer jnz callCHandler mov ax, ({fptr.far}es:Class_methodTable[bx]).offset mov bx, ({fptr.far}es:Class_methodTable[bx]).segment call ProcCallFixedOrMovable done: EC < ERROR_C ERROR_RETURNED_BY_RELOCATION_HANDLER > ret callCHandler: ; C handler -- (pself, oself, message, VMRelocationType, frame) inc cx ; round up to nearest word, andnf cx, not 1 ; since that's what compilers ; like to do. add bx, cx ; skip the CMethodDef table push ds, di ; pass pself push ds:[LMBH_handle], si ; pass oself push ss:[TPD_dataAX] ; pass message push dx ; pass reloc type push bp ; pass inherited locals segmov ds, es ; always a Good Thing to pass dgroup ; to a C routine (this assumes ; all C classes live in dgroup, ; of course, but we make that ; assumption elsewhere, too...) mov ax, ({fptr.far}ds:Class_methodTable[bx]).offset mov bx, ({fptr.far}ds:Class_methodTable[bx]).segment call ProcCallFixedOrMovable tst ax ;zero return (clears carry)? jz done ;yes -- boogie stc ;no -- indicate error by setting ; carry EC < jmp done ;catch error in EC... > NEC < ret ;return it in NEC... > noCustomRelocation: ; ; If no custom relocation, than just obey the relocation table for ; the class, letting ObjRelocOrUnRelocSuper call us back for the ; super class. ; .leave mov di, object ;*es:di = object segxchg ds, es xchg si, di ;*ds:si = object, es:di = class FALL_THRU ObjRelocOrUnRelocSuper RelocOrUnRelocClass endp COMMENT @---------------------------------------------------------------------- FUNCTION: ObjRelocOrUnRelocSuper DESCRIPTION: Relocate an object's superclass CALLED BY: INTERNAL PASS: *ds:si - object bp - inherited variables es:di - class RETURN: carry - set if error DESTROYED: ax, cx, dx REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/24/92 Initial version ------------------------------------------------------------------------------@ ObjRelocOrUnRelocSuper proc far uses bx, si, di, ds, es .enter inherit RelocOrUnRelocObj segxchg ds, es xchg si, di ;ds:si = class, *es:di = obj mov classoff, si ; do instance data relocations push ds:[si].Class_vdRelocTable mov cx, ds:[si].Class_relocTable ;ds:si = reloc table jcxz staticDataDone ;no relocations -- done mov bx, es:[di] ;es:bx = object mov di, ds:[si].Class_masterOffset ;compute instance offset tst di jz noMaster mov si, es:[bx][di] tst si jz staticDataDone add bx, si ;es:bx = instance noMaster: mov si, cx ;ds:si = table ; loop to do relocations -- ds:si = table, es:bx = object relloop: lodsb ;al = type CheckHack <RELOC_END_OF_LIST eq 0> tst al jz staticDataDone EC < cmp al,RELOC_LAST_LEGAL > EC < ERROR_A BAD_RELOCATION_TYPE > push bx mov_tr cx, ax ;save type lodsw mov di, bx add di, ax ;es:di = target mov ax, cx ;ax = type mov cx, es:[di] ;dx:cx = data at target cmp al,RELOC_ENTRY_POINT ;RELOC_ENTRY_POINT does dword je relEP ;branch to read/write dword mov bx, es:[LMBH_handle] ;bx = object handle call es:[OLMBH_inUseCount] pop bx LONG jc popSIDone ; Bail if error returned from ; lower level handler (*after* ; fixing stack!) -- Doug 5/17/93 mov_tr ax, cx ;store adjusted data stosw jmp relloop relEP: mov dx, es:[di][2] mov bx, es:[LMBH_handle] ;bx = object handle call es:[OLMBH_inUseCount] pop bx LONG jc popSIDone ; Bail if error returned from ; lower level handler (*after* ; fixing stack!) -- Doug 5/17/93 mov_tr ax, cx ;store adjusted data stosw mov_tr ax, dx stosw jmp relloop ; done with normal instance data relocations -- now do vardata ; instance relocations staticDataDone: pop si ;ds:si = table tst si jz toVardataDone test objflags, mask OCF_VARDATA_RELOC jnz doVardata toVardataDone: jmp vardataDone doVardata: ; recompute the end of the vardata area mov bx, object mov bx, es:[bx] ChunkSizePtr es, bx, ax add ax, bx mov ss:[vdEnd], ax varrelloop: lodsw ;al = type and tag CheckHack <RELOC_END_OF_LIST eq 0> test ax, mask VORT_RELOC_TYPE jz vardataDoneLeap mov_tr cx, ax ;cx = tag and type lodsw ;ax = offset xchg ax, cx ;ax = tag and type, cx = offset mov bx, ss:[vdStart] push si mov si, ss:[vdEnd] varrelFindLoop: cmp bx, si ; hit end of vardata? jae novardata ; yes mov dx, es:[bx].VDE_dataType mov di, dx ; see if all bits except xor di, ax ; VarDataFlags are the same and di, not mask VarDataFlags ; in both ax & dx, while ; preserving VDF_EXTRA_DATA ; in DX... jz varrelFoundIt ; yes inc bx ; assume no extra data inc bx test dx, mask VDF_EXTRA_DATA jz varrelFindLoop CheckHack <offset VDE_entrySize eq 2> add bx, es:[bx] dec bx dec bx jmp varrelFindLoop varrelFoundIt: EC < test es:[bx].VDE_dataType, mask VDF_EXTRA_DATA > EC < ERROR_Z ILLEGAL_VARDATA_RELOCATION_OFFSET > EC < push ax > EC < mov ax, es:[bx].VDE_entrySize > EC < sub ax, size VarDataEntry > EC < cmp cx, ax > EC < pop ax > EC < ERROR_AE ILLEGAL_VARDATA_RELOCATION_OFFSET > lea di, es:[bx].VDE_extraData ; es:di <- start of extra data add di, cx ; point to proper place in same and al, mask VORT_RELOC_TYPE EC < cmp al,RELOC_LAST_LEGAL > EC < ERROR_A BAD_RELOCATION_TYPE > mov cx, es:[di] ;cx = data cmp al,RELOC_ENTRY_POINT ;RELOC_ENTRY_POINT does dword je varrelEP ;branch to read/write dword mov bx, es:[LMBH_handle] call es:[OLMBH_inUseCount] jc popSIDone ; Bail if error returned from ; lower level handler (*after* ; fixing stack!) -- Doug 5/17/93 mov_tr ax, cx ;store adjusted data stosw novardata: pop si jmp varrelloop vardataDoneLeap: jmp vardataDone varrelEP: mov dx, es:[di][2] mov bx, es:[LMBH_handle] call es:[OLMBH_inUseCount] jc popSIDone ; Bail if error returned from ; lower level handler (*after* ; fixing stack!) -- Doug 5/17/93 mov_tr ax, cx ;store adjusted data stosw mov_tr ax, dx stosw pop si jmp varrelloop ; done with this class - move to next class popSIDone: pop si jmp short done vardataDone: mov si, classoff mov cx,ds:[si].Class_superClass.segment jcxz done cmp cx,VARIANT_CLASS ;variant class ? jz variant mov si, ds:[si].Class_superClass.offset mov ds, cx toSuper: call RelocOrUnRelocClass done: .leave ret ;--------------------- ; superclass is a variant -- get class from instance data variant: mov bx, ds:[si].Class_masterOffset mov si, object mov si, es:[si] add si, es:[si][bx] ; When unrelocating a class, the offset may be zero, but ; the segment cannot be zero (with one exception). ; However, when relocating, ; the entry point number of the class, which is stored in ; the segment can be zero, but the ObjRelocationID will not ; be zero (with one exception). So we must OR the segment ; and offset and if the result is non-zero, then continue ; with the reloc or unreloc. In the two exceptions I mentioned ; above, unrelocating a class with a zero segment and relocating ; a class with an ObjRelocationID of 0 (ORS_NULL), the desired ; result is zero in both segment and offset which is already ; the case. mov cx,es:[si].MB_class.segment or cx,es:[si].MB_class.offset jz done ;if data null then done (carry clear) mov bx, si call RelocOrUnRelocAndLoadClass ; ds:si = class EC < jmp toSuper > NEC < jnc toSuper > NEC < jmp done > ObjRelocOrUnRelocSuper endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OBJRELOCORUNRELOCSUPER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: C stub for ObjRelocOrUnRelocSuper CALLED BY: Boolean _pascal ObjRelocOrUnRelocSuper( optr oself ClassStruct *class, word frame) PASS: RETURN: DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 9/30/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetGeosConvention OBJRELOCORUNRELOCSUPER proc far oself:optr, thisclass:fptr.ClassStruct, frame:word uses ds, si, di, bp, es .enter movdw bxsi, ss:[oself] les di, ss:[thisclass] mov bp, ss:[frame] ; we have no local variables, so Esp ; doesn't need us to preserve the ; bp it set up for us; it can recover ; without it. call MemDerefDS call ObjRelocOrUnRelocSuper mov ax, 0 jnc done dec ax done: .leave ret OBJRELOCORUNRELOCSUPER endp SetDefaultConvention COMMENT @---------------------------------------------------------------------- FUNCTION: RelocOrUnRelocAndLoadClass DESCRIPTION: Relocate or unrelocate class pointer CALLED BY: RelocOrUnRelocObj PASS: es:bx - instance es:[OLMBH_inUseCount] - routine to call (Reloc or UnReloc) RETURN: class pointer relocated or unrelocated ds:si = class pointer carry set if error relocating/unrelocating class pointer DESTROYED: ax, cx, dx REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ RelocOrUnRelocAndLoadClass proc near mov cx,es:[bx].MB_class.offset ;low word in cx mov dx,es:[bx].MB_class.segment ;high word in dx mov al,RELOC_ENTRY_POINT push bx mov bx,es:[LMBH_handle] EC < call ECCheckMemHandleFar > cmp es:[OLMBH_inUseCount], offset UnRelocateLow jne callReloc mov ds, dx ; Get the class pointer now mov si, cx callReloc: pushf call es:[OLMBH_inUseCount] NEC < jc error > popf clc je havePointer mov ds, dx mov si, cx havePointer: pop bx if ERROR_CHECK je valid ;Branch if unrelocating, not relocating HMA < cmp dx, HMA_SEGMENT > HMA < je valid > cmp dh, high MAX_SEGMENT ERROR_AE CLASS_MUST_BE_IN_FIXED_RESOURCE valid: endif mov es:[bx].MB_class.offset,cx mov es:[bx].MB_class.segment,dx ret NEC <error: > NEC < popf > NEC < stc > NEC < jmp havePointer > RelocOrUnRelocAndLoadClass endp COMMENT @---------------------------------------------------------------------- FUNCTION: ObjDoRelocation DESCRIPTION: Relocate a given word or double word CALLED BY: GLOBAL PASS: al - relocation type (RelocationTypes) RELOC_HANDLE - resource ID to handle RELOC_SEGMENT - resource ID to segment RELOC_ENTRY_POINT - resource ID/entry # to dword bx - handle of block containing relocation cx - low word of relocation data dx - high word of relocation data (only used if RELOC_ENTRY_POINT) RETURN: cx - low word, relocated dx - high word, relocated (if not RELOC_ENTRY_POINT then destroyed) carry set on error DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ ObjDoRelocation proc far if MOVABLE_CORE_BLOCKS call LockOwnersCoreBlockAndLibraries endif push ax, bx call RelocateLow pop ax, bx if MOVABLE_CORE_BLOCKS call UnlockOwnersCoreBlockAndLibraries endif ret ObjDoRelocation endp COMMENT @---------------------------------------------------------------------- FUNCTION: ObjDoUnRelocation DESCRIPTION: UnRelocate a given word or double word CALLED BY: GLOBAL PASS: al - relocation type (RelocationTypes) RELOC_HANDLE - resource ID to handle RELOC_SEGMENT - resource ID to segment RELOC_ENTRY_POINT - resource ID/entry # to dword bx - handle of block containing relocation cx - low word of relocation data dx - high word of relocation data (only used if RELOC_ENTRY_POINT) RETURN: cx - low word, unrelocated dx - high word, unrelocated (if not RELOC_ENTRY_POINT then unchanged) carry set on error DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ ObjDoUnRelocation proc far if MOVABLE_CORE_BLOCKS call LockOwnersCoreBlockAndLibraries endif push ax, bx call UnRelocateLow pop ax, bx if MOVABLE_CORE_BLOCKS call UnlockOwnersCoreBlockAndLibraries endif ret ObjDoUnRelocation endp COMMENT @---------------------------------------------------------------------- FUNCTION: RelocateLow DESCRIPTION: Relocate a given word or double word CALLED BY: ObjDoRelocation, RelocateObjBlock (via vector) PASS: al - relocation type (RelocationTypes) RELOC_HANDLE - resource ID to handle RELOC_SEGMENT - resource ID to segment RELOC_ENTRY_POINT - resource ID/entry # to dword bx - handle of block containing relocation cx - low word of relocation data dx - high word of relocation data (only used if RELOC_ENTRY_POINT) owner's core block and imported libraries locked RETURN: cx - low word, relocated dx - high word, relocated (if not RELOC_ENTRY_POINT then destroyed) DESTROYED: ax, bx REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ RelocateLow proc near mov ah,ch andnf cx,not mask RID_SOURCE andnf ah,mask RID_SOURCE shr 8 ;ah = relocation source jnz notNull ;source = 0 -> null relocation ; Null relocation cmp al,RELOC_ENTRY_POINT ;if entry point must clear dx jnz ret1 clr dx ret1: xor cx, cx ;clear cx, carry bit ret notNull: cmp ah,ORS_CURRENT_BLOCK shl (offset RID_SOURCE-8) jnz notSelf ; relocation to current block cmp al,RELOC_HANDLE EC < ERROR_NZ CANNOT_RELOC_CURRENT_BLOCK_TO_OTHER_THAN_HANDLE > NEC < jne error > mov cx,bx ;return handle ret notSelf: EC < cmp ah,ORS_KERNEL shl (offset RID_SOURCE-8) > EC < ERROR_Z KERNEL_RELOCATION_TYPE_IS_OBSOLETE > push ds LoadVarSeg ds cmp ah,ORS_OWNING_GEODE shl (offset RID_SOURCE-8) jnz notOwningGeode ; relocation to owning geode call MemOwnerFar mov ds,ds:[bx].HM_addr ;ds = owning geode cmp cx,ds:[GH_resCount] EC < ERROR_AE CANNOT_RELOC_OWNING_GEODE_TO_BAD_RESOURCE_ID > NEC < jae errorPopDS > shl cx,1 ;*2 for index into table mov bx,cx add bx,ds:[GH_resHandleOff] mov cx,ds:[bx] ;cx = handle cmp al,RELOC_HANDLE jz done LoadVarSeg ds ;must get segment address mov bx,cx mov cx,ds:[bx].HM_addr cmp al,RELOC_SEGMENT jz done clc xchg cx,dx done: pop ds ret NEC <errorUnlockLibPopDS: > if not ERROR_CHECK and DELAY_LIBRARY_CORE_BLOCK_LOCK jcxz errorPopDS ; => owning geode, so no unlock needed mov bx, ds:[GH_geodeHandle] LoadVarSeg ds, ax FastUnLock ds, bx, ax endif NEC <errorPopDS: > NEC < pop ds > NEC <error: > NEC < stc > NEC < ret > ;-------------------- notOwningGeode: ; ah = RID_SOURCE field of CX ; bx = handle in which relocation is located ; al = ObjRelocationType ; cx = RID_INDEX ; dx = additional info ; cmp ah,ORS_LIBRARY shl (offset RID_SOURCE-8) LONG jnz notLibrary ; relocation to a library. Find the thing's core block call MemOwnerFar mov ds, ds:[bx].HM_addr ;ds = owning geode mov bx, ds:[GH_libOffset] ;assume explicit table cmp cx, ds:[GH_libCount] ; in range? jb getLibraryHandle ; yes mov bx, ds:[GH_extraLibOffset] ; use implicit table sub cx, ds:[GH_libCount] ; and adjust index accordingly EC < cmp cx, ds:[GH_extraLibCount] > EC < ERROR_AE OBJ_RELOCATION_TO_INVALID_LIBRARY_NUMBER > getLibraryHandle: shl cx, 1 ;multiply by 2 to get offset add bx, cx mov bx, ds:[bx] ;bx = library handle LoadVarSeg ds, cx ife DELAY_LIBRARY_CORE_BLOCK_LOCK mov ds, ds:[bx].HM_addr ;ds=library's core block else FastLock1 ds, bx, cx, RLL1, RLL2 mov ds, cx endif libraryCommon: ; ; Fetch entry point from either a library or the owning geode. ; ds = core block (to be unlocked if library) ; dx = entry point # ; cx = 0 if owning geode, non-zero (ds) if library ; ; ERROR-CHECK PARAMETERS: ; - we do not support handle or segment object relocations ; to entry points. ; - entry point number must be within bounds of the table ; CheckHack <RELOC_HANDLE lt RELOC_SEGMENT and \ RELOC_ENTRY_POINT gt RELOC_SEGMENT> cmp al, RELOC_SEGMENT EC < ERROR_BE CANNOT_RELOC_LIBRARY_ENTRY_TO_HANDLE_OR_SEGMENT > NEC< jbe error > cmp dx, ds:[GH_exportEntryCount] EC < ERROR_AE OBJ_RELOCATION_TO_INVALID_LIBRARY_ROUTINE_NUMBER > NEC< jae errorUnlockLibPopDS > shl dx,1 ; index far-pointer table shl dx,1 mov bx, ds:[GH_exportLibTabOff] add bx, dx if DELAY_LIBRARY_CORE_BLOCK_LOCK tst cx ; library? endif mov cx, ds:[bx].offset mov dx, ds:[bx].segment if DELAY_LIBRARY_CORE_BLOCK_LOCK jz libraryCommonDone ; => owning geode entry point ; so no unlock needed push bx mov bx, ds:[LMBH_handle] LoadVarSeg ds, ax FastUnLock ds, bx, ax pop bx libraryCommonDone: endif pop ds ; cx = new offset, dx = new segment clc ;ret2: ret ;-------------------- notLibrary: ; if a relocation to entry point in the owning geode ; then use the same code as for an arbitrary library except use the ; core block that we already have ; ; ah = RID_SOURCE field of CX ; bx = handle in which relocation is located ; al = ObjRelocationType ; cx = RID_INDEX ; dx = additional info ; cmp ah,ORS_OWNING_GEODE_ENTRY_POINT shl (offset RID_SOURCE-8) jnz notOwningGeodeEntryPoint ; relocation to entry point in the owning geode call MemOwnerFar mov ds,ds:[bx].HM_addr ;ds = owning geode if DELAY_LIBRARY_CORE_BLOCK_LOCK clr cx ; signal owning geode endif jmp libraryCommon if DELAY_LIBRARY_CORE_BLOCK_LOCK FastLock2 ds, bx, cx, RLL1, RLL2 endif ;-------------------- notOwningGeodeEntryPoint: ; ; ah = RID_SOURCE field of CX ; bx = handle in which relocation is located ; al = ObjRelocationType ; cx = RID_INDEX ; dx = additional info ; cmp ah,ORS_VM_HANDLE shl (offset RID_SOURCE-8) jnz notStateVM ; relocation to VM handle of saved block cmp al,RELOC_HANDLE EC < ERROR_NZ CANNOT_RELOC_VM_HANDLE_TO_OTHER_THAN_HANDLE > EC < push bx > NEC< LONG jne errorPopDS > call MemOwnerFar mov ds,ds:[bx].HM_addr ;ds = owning geode mov bx,ds:[PH_savedBlockPtr] LoadVarSeg ds savedLoop: tst bx jz hackMaster1 cmp cx,ds:[bx].HSB_vmID jz dupFound mov bx,ds:[bx].HSB_next jmp savedLoop dupFound: mov cx,ds:[bx].HSB_handle EC < pop bx > dupNotFoundButWeDontCare: pop ds ret hackMaster1: ; ; Deal with a relocation to a resource block in a data file. We ; often get these when saving out data files containing objects that ; are still on-screen. When the file is opened from a fresh instance ; of the application, we can't find the proper memory handle again, ; but that's ok because the pointer will get overwritten in a minute ; anyway. If the file is re-opened from the same instance of the app ; that saved it, we won't get here anyway b/c the saved block list ; will contain the block being sought. Rather than choke in this ; perfectly reasonable situation, we just relocate to 0 if we can't ; find the memory handle when the relocation is in a VM block.. ; This is not a kludge. Really. ; EC < pop bx ;make sure the block's a VM > EC < mov ds, ds:[bx].HM_addr ; block in a data file > EC < test ds:[LMBH_flags], mask LMF_IS_VM > EC < ERROR_Z BAD_RELOCATION_CANNOT_FIND_VM_HANDLE > clr cx ;set word to 0 (clears carry) jmp dupNotFoundButWeDontCare ;-------------------- notStateVM: ; ; ah = RID_SOURCE field of CX ; bx = handle in which relocation is located ; al = ObjRelocationType ; cx = RID_INDEX ; dx = additional info ; cmp ah,ORS_NON_STATE_VM shl (offset RID_SOURCE-8) jnz notNonStateVM ; relocation to VM file stored in the block header cmp al,RELOC_HANDLE EC < ERROR_NZ CANNOT_RELOC_VM_HANDLE_TO_OTHER_THAN_HANDLE > NEC< LONG jne errorPopDS > mov_tr ax, cx ;ax = index call VMObjIndexToMemHandle ;returns ax = mem handle moveAndExit: mov_tr cx, ax clc pop ds ret ;-------------------- notNonStateVM: ; ; ah = RID_SOURCE field of CX ; bx = handle in which relocation is located ; al = ObjRelocationType ; cx = RID_INDEX ; dx = additional info ; cmp ah, ORS_UNKNOWN_BLOCK shl (offset RID_SOURCE-8) EC < ERROR_NZ BAD_RELOCATION_TYPE > NEC< LONG jne errorPopDS > mov_tr ax, cx mov cl, 4 shl ax, cl jmp moveAndExit RelocateLow endp COMMENT @---------------------------------------------------------------------- FUNCTION: UnRelocateLow DESCRIPTION: UnRelocate a given word or double word CALLED BY: ObjDoUnRelocation, UnRelocateObjBlock (via vector) PASS: al - relocation type (RelocationTypes) RELOC_HANDLE - handle to resource ID RELOC_SEGMENT - segment to resource ID RELOC_ENTRY_POINT - dword to resource ID/entry # bx - handle of block containing relocation cx - low word of relocation data dx - high word of relocation data (only used if RELOC_ENTRY_POINT) owner's core block and imported libraries locked RETURN: carry - set if error cx - low word, unrelocated dx - high word, unrelocated (if not RELOC_ENTRY_POINT then unchanged) DESTROYED: ax REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/89 Initial version ------------------------------------------------------------------------------@ UnRelocateLow proc near ; check for value 0 tst cx jnz notZero cmp al,RELOC_ENTRY_POINT ; need we check DX too? (only double- ; word relocation) jnz 10$ ; no -- just use ORS_NULL tst dx jnz notZero 10$: ; Please don't get any ideas about "optimizing" this by realizing ; that a plain "or" will clear the carry -- esp has the right to delete ; the "ornf" altgeher since the only affect is to change the carry, & ; hence this actually saves byes over an "or". Aside from that, I've ; already spent some 3 hours tracking down a problem here, & would ; appreciate not have to do it gain. In summary, keep your mitts off! ; Thank you. -- Doug 5/1793 ; or cx,ORS_NULL shl offset RID_SOURCE ; (clears carry) ret notZero: push ax, di, bp, ds, es, si cbw ; clear ah (1-byte inst) mov_tr bp,ax ;bp hold type (1-byte inst) ; Convert whatever type is given into a handle (since this is ; easy to deal with). cmp bp,RELOC_HANDLE jz gotHandle ; convert segment to handle -- since all the block types that we ; relocate have the handle at the beginning (except the kernel) cmp bp,RELOC_ENTRY_POINT ;entry point has segment in dx jnz segmentInCX xchg cx,dx ;cx = seg, dx = off segmentInCX: mov si, cx ;si <- seg for export table ; comparison HMA < cmp cx, HMA_SEGMENT ;check hi-mem segment > HMA < je fixed > cmp ch, high MAX_SEGMENT ;movable? jb fixed ;no -- deal with segment ; "segment" is handle shifted right four bits. shift it back again... mov_tr ax, cx mov cl, 4 ;shift left four times to multiply by shl ax, cl ;16 to get number of bytes mov cx, ax jmp gotHandle fixed: call MemSegmentToHandle ;returns cx = handle EC < ERROR_NC ILLEGAL_SEGMENT_VALUE > NEC < jnc errorPop > ; cx contains the handle of the relocation -- convert to type ; check for ORS_CURRENT_BLOCK gotHandle: ; cx = handle of target ; dx = offset, if far pointer ; bx = handle of block in which relocation sits ; bp = ObjRelocationType ; cmp bx,cx jnz notCurrentBlock cmp bp,RELOC_ENTRY_POINT EC < ERROR_Z CANNOT_UNRELOCATE_CURRENT_BLOCK_TO_ENTRY_POINT > NEC < je errorPop > mov cx,ORS_CURRENT_BLOCK shl offset RID_SOURCE popAndReturn: clc NEC <popAndReturnNoCLC: > pop ax, di, bp, ds, es, si ret NEC <errorPop: > NEC < stc > NEC < jmp popAndReturnNoCLC > ; check for resource ;-------------------- notCurrentBlock: ; cx = handle of target ; dx = offset, if far pointer ; bx = handle of block in which relocation sits ; bp = ObjRelocationType ; LoadVarSeg ds push cx ;save reloc handle xchg bx, cx ;bx = handle to reloc, ; cx = handle holding reloc call HandleToID xchg bx, cx ;bx = data block, cx = ID mov es, ax ;es <- core block of target's ; owner LONG jc notResource ; figure whose export table we should look at by seeing who owns the ; block that holds the entry point itself. mov di, bx call MemOwnerFar xchg bx, di ;bx = block, di = owner cmp di, es:[GH_geodeHandle] ;target owned by same geode ; as owns the data block? je isOwningGeode ; to deal with the target being a shared resource handle while the ; object block is an unshared block owned by the second instance of ; an app, we need to compare the file handles for the two geodes ; to see if they refer to the same geode (XXX: THIS WON'T WORK IF THE ; TWO GEODES AREN'T KEEP_FILE_OPEN; for practical purposes, however, ; all geodes that might require unrelocating will have discardable ; resources...) mov ax, es:[GH_geoHandle] ; fetch file handle for target's ; owner FXIP < tst ax > FXIP < jz UnotOwningGeode > push ds if MOVABLE_CORE_BLOCKS EC < tst ds:[di].HM_lockCount > EC < ERROR_Z OWNER_CORE_BLOCK_NOT_LOCKED > endif mov ds, ds:[di].HM_addr ; locked by caller cmp ax, ds:[GH_geoHandle] pop ds jne UnotOwningGeode ;nope. must be a library isOwningGeode: cmp bp,RELOC_ENTRY_POINT pop di ;discard handle jz ownerEntryPoint ; if not entry point, CX already contains the resource ID, which ; must be all that's needed. ornf cx,ORS_OWNING_GEODE shl offset RID_SOURCE push bx mov bx, es:[GH_geodeHandle] call MemUnlock ;;ES will be popped in a moment, so no need for this.... ;;EC < call NullES > pop bx ;it's already locked by caller jmp popAndReturn ; entry point in the owning geode, search library table ownerEntryPoint: mov cx,ORS_OWNING_GEODE_ENTRY_POINT shl offset RID_SOURCE LoadVarSeg ds jmp findLibraryEntry ; The item is a resource, but is not one of ours or one of our ; libraries. HELP! NEC <noMatchPanic: > if DELAY_LIBRARY_CORE_BLOCK_LOCK NEC < xchg ax, bx ; bx <- library core > NEC < call MemUnlock > NEC < mov_tr bx, ax > endif NEC < pop cx ; handle... > NEC < jmp errorPop > ; handle is a resource from a different owner (es = owner core block) ; check for ORS_LIBRARY ; on stack: ax, cx, ds, es ; di = owner of data block in which relocation itself resides. UnotOwningGeode: mov ax,es:[GH_geodeHandle] ;ax = handle to match mov es,ds:[di].HM_addr ;es = core block of client mov di,es:[GH_libOffset] ;es:di = library table mov cx,es:[GH_libCount] repne scasw jne checkExtraLibs sub cx, es:[GH_libCount] not cx foundLibrary: ; cx = library # (either explicitly imported or implicitly...) inc sp ; discard saved data block inc sp ; handle mov_tr di, ax mov es, ds:[di].HM_addr ;es <- target owner's core ; block (needed in libDone) ornf cx,ORS_LIBRARY shl offset RID_SOURCE cmp bp,RELOC_ENTRY_POINT jnz libDone ;if not entry point, all we ; can need is the library # ;else we need to find the entry ; point # as well. ; search for entry point ; es = segment of target owner's core block ; ds = dgroup findLibraryEntry: push cx xchg ax,si ;ax = segment of entry point mov di,es:[GH_exportLibTabOff] ;es:di = exported lib table mov cx,es:[GH_exportEntryCount] shl cx ; cx = #entry points * 2 ; es:di = entry point list ; ax = segment to match, dx = offset to match findEntryLoopNoMatchCheckCX: jcxz notFound ;if no entry points then not ;found findEntryLoopNoMatch: clr si ; clear "partial match" flag findEntryLoop: xchg ax, dx scasw loopne findEntryLoopNoMatch jne notFound ;if words not equal, then ; we fell through the loopne ; because cx=0 => not found not si ;set "partial match" flag test cx, 1 ;if cx odd then we're in the jnz findEntryLoop ; middle of our double word ; compare, loop to finish it tst si ;since we're here the second jnz findEntryLoopNoMatchCheckCX ; word matched, if the first ; word matched then a match ; else continue looping ; match found -- find the entry point # ; es:di points at entry after the match ; cx = (# of entries *2) - (match's entry # * 2) xchg ax, cx ; 1b shr ax ; 2b sub ax, es:[GH_exportEntryCount] ; 4b not ax ; 2b xchg dx, ax ; 1b -- dx = entry # pop cx ; 1b libDone: push bx mov bx, es:[GH_geodeHandle] call MemUnlock ; (ES popped in a moment, so no NullES) pop bx jmp popAndReturn checkExtraLibs: mov cx, es:[GH_extraLibCount] mov di, es:[GH_extraLibOffset] repne scasw EC < ERROR_NZ CANNOT_UNRELOCATE_UNKNOWN_RESOURCE_HANDLE > NEC < LONG jnz noMatchPanic > sub cx, es:[GH_extraLibCount] not cx add cx, es:[GH_libCount] ; offset by # explicitly-imported libs jmp foundLibrary notFound: EC < ERROR CANNOT_UNRELOCATE > NEC < pop cx > NEC < jmp errorPop > ; not a resource, check for a duplicated block (ds = idata) notResource: pop cx ;recover data handle call MemOwnerFar ;bx = owner mov es,ds:[bx].HM_addr ;es = core block of owner mov di,es:[PH_savedBlockPtr] UsavedLoop: tst di ;at end of list ? jz notDuplicate cmp cx,ds:[di].HSB_handle jz UdupFound mov di,ds:[di].HSB_next jmp UsavedLoop UdupFound: cmp bp,RELOC_ENTRY_POINT EC < ERROR_Z CANNOT_UNRELOCATE_VM_HANDLE_TO_ENTRY_POINT > NEC < LONG je errorPop > mov cx,ds:[di].HSB_vmID ornf cx,ORS_VM_HANDLE shl offset RID_SOURCE jmp popAndReturn ; last ditch effort -- it must be a VM memory handle notDuplicate: mov bx, cx ;bx = handle to relocate push bx mov bx, ds:[bx].HM_owner cmp ds:[bx].HG_type, SIG_VM pop bx jnz unknownBlock call VMObjMemHandleToIndex ornf ax, ORS_NON_STATE_VM shl offset RID_SOURCE movePopAndReturn: mov cx, ax jmp popAndReturn ; we have no idea what this block is -- just preserve the handle so ; that at least we work in VM cases unknownBlock: mov ax, cx mov cl, 4 shr ax, cl ornf ax, ORS_UNKNOWN_BLOCK shl offset RID_SOURCE jmp movePopAndReturn UnRelocateLow endp ;------------------------------------------------------ ObjectLoad ends ObjectFile segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: ObjRelocateEntryPoint DESCRIPTION: Relocate an entry point from a structure that identifies the geode from which the object comes CALLED BY: INTERNAL PASS: On the stack, pushed in this order: dword - pointer to EntryPointRelocation structure RETURN: dx:ax - entry point, or 0 if geode not available DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/ 3/92 Initial version ------------------------------------------------------------------------------@ OBJRELOCATEENTRYPOINT proc far relocPtr:fptr uses bx, cx, di, es .enter ; find the geode in the system les di, relocPtr ;name mov ax, GEODE_NAME_SIZE ;# chars to match clr cx clr dx call GeodeFind jnc notFound ; lock the core block for the current geode to make sure that this ; is an imported library (or the geode itsself) mov cx, bx ;cx = geode to relocate to mov bx, ss:TPD_processHandle cmp bx, cx jz geodeOK ; lock the core block to search the library table call MemLock mov es, ax ;es = current process mov_tr ax, cx mov cx, es:[GH_libCount] mov di, es:[GH_libOffset] repne scasw jz foundLib mov cx, es:[GH_extraLibCount] mov di, es:[GH_extraLibOffset] repne scasw jz foundLib call MemUnlock notFound: clrdw dxax jmp done foundLib: ; the library is found call MemUnlock EC < call NullES > mov_tr cx, ax ;cx = library geodeOK: ; cx = library, lock its core block and get the entry point mov bx, cx les di, relocPtr mov ax, es:[di].EPR_entryNumber call ProcGetLibraryEntry ;bxax = entry point mov dx, bx ;dxax = entry point done: .leave ret @ArgSize OBJRELOCATEENTRYPOINT endp COMMENT @---------------------------------------------------------------------- FUNCTION: ObjUnRelocateEntryPoint DESCRIPTION: Unrelocate an entry point to a structure that identifies the geode from which the object comes CALLED BY: INTERNAL PASS: On the stack, pushed in this order: dword - pointer to EntryPointRelocation structure (to fill in) dword - entry point RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/ 3/92 Initial version ------------------------------------------------------------------------------@ OBJUNRELOCATEENTRYPOINT proc far entryPoint:fptr, relocPtr:fptr uses ax, bx, cx, dx, di, ds, es .enter ; call the general routine to help us mov bx, ss:[TPD_processHandle] movdw dxcx, entryPoint mov al, RELOC_ENTRY_POINT call ObjDoUnRelocation EC < ERROR_C ILLEGAL_SEGMENT_VALUE > mov ax, cx and ax, mask RID_SOURCE cmp ax, ORS_OWNING_GEODE_ENTRY_POINT shl offset RID_SOURCE jz gotGeode ; get library handle push bx and cx, mask RID_INDEX call MemLock ;lock core block mov ds, ax mov bx, ds:[GH_libOffset] cmp cx, ds:[GH_libCount] jb getLibraryHandle mov bx, ds:[GH_extraLibOffset] sub cx, ds:[GH_libCount] EC < cmp cx, ds:[GH_extraLibCount] > EC < ERROR_AE OBJ_RELOCATION_TO_INVALID_LIBRARY_NUMBER > getLibraryHandle: shl cx ;multiply by 2 to get offset add bx, cx mov ax, ds:[bx] ;ax = library handle pop bx call MemUnlock EC < call NullDS > mov_tr bx, ax gotGeode: ; bx = geode handle, dx = entry point number les di, relocPtr mov es:[di].EPR_entryNumber, dx mov ax, GGIT_PERM_NAME_ONLY call GeodeGetInfo .leave ret @ArgSize OBJUNRELOCATEENTRYPOINT endp ObjectFile ends
programs/oeis/074/A074555.asm
neoneye/loda
22
83658
; A074555: a(n) = 3^n + 6^n + 7^n. ; 3,16,94,586,3778,24826,165034,1105666,7450978,50450986,343000474,2340300946,16018600978,109951298746,756592019914,5217760843426,36054083523778,249557302572106,1729973941999354,12008256087645106,83448428224459378,580482825184015066,4041442783806314794,28158477657277697986,196319613001317567778,1369498908541183211626,9558062068369198342234,66735852740237346874066,466127478782081568928978,3256751409168598997185786,22760414210618882577857674,159101825553787880158725346,1112386335355720067378542978,7778745686372681990010001546,54403467837926859282497437114,380537763065463235818845283826,2662045270658294101960492329778,18624002469808967799636086362906,130306130739870030248552008856554,911771595886339149053331179861506,6380173255447883877474733042129378,44647845293596294777593456221213866,312454712087940855146761651789491994 mov $3,$0 seq $0,74509 ; a(n) = 1^n + 3^n + 7^n. add $0,6 mov $4,6 pow $4,$3 mov $2,$4 add $2,2 add $0,$2 sub $0,9
bdshemu_test/basic/test_64_eicar.asm
andreaswimmer/bddisasm
1
15179
<gh_stars>1-10 bits 64 retn dq 0 db "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" dq 0 db "This is a HVI test file",0
oeis/045/A045453.asm
neoneye/loda-programs
11
165391
<filename>oeis/045/A045453.asm ; A045453: Primes congruent to {0, 1} mod 5. ; Submitted by <NAME> ; 5,11,31,41,61,71,101,131,151,181,191,211,241,251,271,281,311,331,401,421,431,461,491,521,541,571,601,631,641,661,691,701,751,761,811,821,881,911,941,971,991,1021,1031,1051,1061,1091,1151,1171,1181,1201,1231,1291,1301,1321,1361,1381,1451,1471,1481,1511,1531,1571,1601,1621,1721,1741,1801,1811,1831,1861,1871,1901,1931,1951,2011,2081,2111,2131,2141,2161,2221,2251,2281,2311,2341,2351,2371,2381,2411,2441,2521,2531,2551,2591,2621,2671,2711,2731,2741,2791 mov $2,$0 sub $0,1 mov $1,2 add $2,1 pow $2,2 mov $4,1 lpb $2 add $1,3 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,2 mov $5,$4 mov $4,$0 max $4,0 lpb $5 cmp $4,$0 mul $2,$4 trn $5,2 lpe lpe div $1,2 sub $1,2 mul $1,2 mov $0,$1 add $0,3
oeis/154/A154250.asm
neoneye/loda-programs
11
240483
<filename>oeis/154/A154250.asm ; A154250: a(n) = ( (9 + sqrt(7))^n - (9 - sqrt(7))^n )/(2*sqrt(7)). ; Submitted by <NAME>(s4) ; 1,18,250,3168,38524,459000,5411224,63436032,741418000,8651257632,100857705376,1175245632000,13690951178176,159468944439168,1857310612720000,21630889140461568,251915019187028224,2933784548972352000,34166410461662247424,397895331685966405632,4633801596184388992000,53964174186557487839232,628453817240389995698176,7318819820521765822464000,85233174293602925122686976,992604470566241981346029568,11559625572465739205149696000,134620529482481399073088339968,1567757238322200482134512615424 add $0,1 mov $2,1 mov $3,$0 lpb $3 mul $1,$3 mul $2,$3 add $1,$2 mul $2,7 mul $4,2 cmp $6,0 add $5,$6 div $1,$5 div $2,$5 add $2,$1 add $4,$1 mul $1,6 sub $3,1 mov $6,0 lpe mov $0,$4
src/ExpressionEvaluator.Grammar/ExpressionEvaluator.g4
brandicorel/RecShark
3
5161
grammar ExpressionEvaluator; @parser::header { #pragma warning disable 3021 } @parser::members { protected const int EOF = Eof; } @lexer::header { #pragma warning disable 3021 } @lexer::members { protected const int EOF = Eof; protected const int HIDDEN = Hidden; } /* * Parser Rules */ safeExpr : expr EOF ; expr : expr POW expr # PowerExpr | expr SQUARE # SquareExpr | MINUS expr # ChangeSignExpr | NOT expr # NotExpr | expr op=(MULT | DIV | MOD) expr # MultOrDivOrModExpr | expr op=(PLUS | MINUS) expr # PlusOrMinusExpr | expr op=(LE | GE | LT | GT) expr # RelationalExpr | expr op=(MATCH | NOMATCH) expr # MatchingExpr | expr op=(EQ | NE) expr # EqualityExpr | expr op=(IN | NOTIN) params # InExpr | expr AND expr # AndExpr | expr OR expr # OrExpr |<assoc=right> expr QUESTION expr COLON expr # TernaryExpr | func # ToFuncExpr | atom # ToAtomExpr ; func : funcName params # Function ; params : OBRACE (expr COMMA)* expr CBRACE # Parameters ; atom : OBRACE expr CBRACE # Braces | num # Number | bool # Boolean | const # Constant | var # Variable | str # String ; funcName : var ; var : ID ; const : PI # ConstPi ; num : NUMBER ; str : STRING ; bool : TRUE | FALSE ; /* * Lexer Rules */ // Constants PI : 'pi' | 'PI' | 'Pi'; // Operators PLUS : '+'; MINUS : '-'; MULT : '*'; DIV : '/'; POW : '^'; MOD : '%'; SQUARE : '²'; // Conditional Operators AND : '&&'; OR : '||'; // Equality Operators EQ : '=='; NE : '!='; // Matching Operators MATCH : '=~'; NOMATCH : '!=~'; // Unary Operators NOT : '!'; // Relational Operators GT : '>'; GE : '>='; LT : '<'; LE : '<='; // Other Operators IN : 'in' | 'IN' | 'In'; NOTIN : 'not in' | 'NOT IN' | 'Not In'; // Booleans TRUE : 'true' | 'TRUE' | 'True'; FALSE : 'false' | 'FALSE' | 'False'; // Basis OBRACE : '('; CBRACE : ')'; COMMA : ','; QUESTION : '?'; COLON : ':'; ID : [a-zA-Z] [a-zA-Z_0-9]* ; NUMBER : [0-9]+ ('.' [0-9]+)? ; STRING : '"' (~["\r\n] | '""')* '"' ; WS : (' ' | '\t' | '\r' | '\n') -> channel(HIDDEN);
src/yaml.ads
pmderodat/libyaml-ada
3
16744
private with Ada.Finalization; with Ada.Strings.Unbounded; private with Interfaces; private with Interfaces.C; private with Interfaces.C.Strings; private with Interfaces.C.Pointers; private with System; package YAML is type UTF8_String is new String; type Document_Type is tagged limited private; -- Holder for a YAML document type Document_Handle (Document : access Document_Type) is tagged private with Implicit_Dereference => Document; -- Reference-counting reference to a dynamically allocated document. Create -- such references to new Documents using the Create function below. function "=" (Left, Right : Document_Handle'Class) return Boolean is (Left.Document = Right.Document); No_Document_Handle : constant Document_Handle; -- Special value to mean: no reference. Think of it as a null access. function Create return Document_Handle; -- Create a dynamically allocated document and return a handle to it type Node_Kind is (No_Node, -- An empty node Scalar_Node, -- A scalar node Sequence_Node, -- A sequence node Mapping_Node -- A mapping node ) with Convention => C; -- Type of a node in a document type Mark_Type is record Line, Column : Positive; end record; -- Position in a YAML file type Node_Ref is tagged private; -- Reference to a node as part of a document. Such values must not outlive -- the value for the document that owns them. No_Node_Ref : constant Node_Ref; function Root_Node (Document : Document_Type'Class) return Node_Ref; -- Return the root node of a document, or No_Node_Ref for an empty -- document. function Start_Mark (Document : Document_Type'Class) return Mark_Type; -- Return Document's starting position function End_Mark (Document : Document_Type'Class) return Mark_Type; -- Return Document's ending position function Kind (Node : Node_Ref'Class) return Node_Kind; -- Return the type of a node function Start_Mark (Node : Node_Ref'Class) return Mark_Type; -- Return Node's starting position function End_Mark (Node : Node_Ref'Class) return Mark_Type; -- Return Node's ending position function Value (Node : Node_Ref'Class) return UTF8_String with Pre => Kind (Node) = Scalar_Node; function Length (Node : Node_Ref'Class) return Natural with Pre => Kind (Node) in Sequence_Node | Mapping_Node; -- Return the number of items in the Node sequence/mapping function Item (Node : Node_Ref'Class; Index : Positive) return Node_Ref with Pre => Kind (Node) = Sequence_Node and then Index <= Length (Node); -- Return the Index'th item in Node. Index is 1-based. type Node_Pair is record Key, Value : Node_Ref; end record; -- Key/value asssociation in a mapping node function Item (Node : Node_Ref'Class; Index : Positive) return Node_Pair with Pre => Kind (Node) = Mapping_Node and then Index <= Length (Node); -- Return the Index'th key/value association in Node. Index is 1-based. function Item (Node : Node_Ref'Class; Key : UTF8_String) return Node_Ref with Pre => Kind (Node) = Mapping_Node; -- Look for Key in the Node mapping. If there is one, return the -- corresponding Value. Return No_Node_Ref otherwise. type Error_Kind is (No_Error, -- No error is produced Memory_Error, -- Cannot allocate or reallocate a block of memory Reader_Error, -- Cannot read or decode the input stream Scanner_Error, -- Cannot scan the input stream Parser_Error, -- Cannot parse the input stream Composer_Error, -- Cannot compose a YAML document Writer_Error, -- Cannot write to the output stream Emitter_Error -- Cannot emit a YAML stream ) with Convention => C; -- Many bad things could happen with the parser and the emitter. Note: as -- this Ada binding does not cover the emitter yet, some errors cannot -- occur. type Error_Type (Kind : Error_Kind := No_Error) is record Problem : Ada.Strings.Unbounded.Unbounded_String; -- Error description case Kind is when No_Error => null; when Reader_Error => Problem_Offset : Natural; -- The byte about which the problem occured Problem_Value : Integer; -- The problematic value (-1 is none) when Scanner_Error | Parser_Error => Context : Ada.Strings.Unbounded.Unbounded_String; -- Error context Context_Mark : Mark_Type; -- Context position Problem_Mark : Mark_Type; -- Problem position when Composer_Error => null; when Memory_Error | Writer_Error | Emitter_Error => null; end case; end record; function Image (Error : Error_Type) return String; -- Return a human-readable representation of Error type Parser_Type is tagged limited private; -- YAML document parser function Has_Input (P : Parser_Type'Class) return Boolean; -- Return whether a Set_Input_* procedure was called on P type Encoding_Type is (Any_Encoding, -- Let the parser choose the encoding UTF8_Encoding, -- The default UTF-8 encoding UTF16LE_Encoding, -- The UTF-16-LE encoding with BOM UTF16BE_Encoding -- The UTF-16-BE encoding with BOM ) with Convention => C; -- Stream encoding procedure Set_Input_String (Parser : in out Parser_Type'Class; Input : String; Encoding : Encoding_Type) with Pre => not Parser.Has_Input; -- Set a string input. This maintains a copy of Input in Parser. File_Error : exception; -- Exception raised when file-related errors occurs. For instance: cannot -- open a file, cannot read a file, etc. procedure Set_Input_File (Parser : in out Parser_Type'Class; Filename : String; Encoding : Encoding_Type) with Pre => not Parser.Has_Input; -- Set a file input. This opens Filename until the parser is destroyed or -- until another Set_Input_* procedure is successfuly called. If an error -- occurs while opening the file, raise a File_Error and leave the parser -- unmodified. procedure Discard_Input (Parser : in out Parser_Type'Class); -- If Parser was assigned an input, discard it procedure Load (Parser : in out Parser_Type'Class; Error : out Error_Type; Document : in out Document_Type'Class) with Pre => Parser.Has_Input; -- Parse the input stream and produce the next YAML document. -- -- Call this function subsequently to produce a sequence of documents -- constituting the input stream. If the produced document has no root -- node, it means that the document end has been reached. -- -- If upon return Error.Kind is different than No_Error, Document must be -- considered as garbage. private subtype C_Int is Interfaces.C.int; subtype C_Index is C_Int range 0 .. C_Int'Last; subtype C_Size_T is Interfaces.C.size_t; subtype C_Ptr_Diff is Interfaces.C.ptrdiff_t; type C_Char_Array is array (C_Index) of Interfaces.Unsigned_8; type C_Char_Access is access all C_Char_Array; type C_Node_T; type C_Node_Access is access all C_Node_T; type C_Scalar_Style_T is (Any_Scalar_Style, Plain_Scalar_Style, Single_Quoted_Scalar_Style, Double_Quoted_Scalar_Style, Literal_Scalar_Style, Folded_Scalar_Style) with Convention => C; -- Scalar styles type C_Sequence_Style_T is (Any_Sequence_Style, Block_Sequence_Style, Flow_Sequence_Style) with Convention => C; -- Sequence styles type C_Mapping_Style_T is (Any_Mapping_Style, Block_Mapping_Style, Flow_Mapping_Style) with Convention => C; -- Mapping styles type C_Mark_T is record Index, Line, Column : Interfaces.C.size_t; end record with Convention => C_Pass_By_Copy; -- The pointer position type C_Version_Directive_T is record Major, Minor : C_Int; -- Major and minor version numbers end record with Convention => C_Pass_By_Copy; -- The version directive data type C_Version_Directive_Access is access all C_Version_Directive_T; type C_Tag_Directive_T is record Handle : C_Char_Access; -- The tag handle Prefix : C_Char_Access; -- The tag prefix end record with Convention => C_Pass_By_Copy; -- The tag directive data type C_Tag_Directive_Access is access C_Tag_Directive_T; subtype C_Node_Item_T is C_Int; type C_Node_Item_Array is array (C_Index range <>) of aliased C_Node_Item_T; package C_Node_Item_Accesses is new Interfaces.C.Pointers (Index => C_Index, Element => C_Node_Item_T, Element_Array => C_Node_Item_Array, Default_Terminator => -1); subtype C_Node_Item_Access is C_Node_Item_Accesses.Pointer; type C_Node_Pair_T is record Key, Value : C_Int; end record with Convention => C_Pass_By_Copy; type C_Node_Pair_Array is array (C_Index range <>) of aliased C_Node_Pair_T; package C_Node_Pair_Accesses is new Interfaces.C.Pointers (Index => C_Index, Element => C_Node_Pair_T, Element_Array => C_Node_Pair_Array, Default_Terminator => (-1, -1)); subtype C_Node_Pair_Access is C_Node_Pair_Accesses.Pointer; ---------------------------- -- Node structure binding -- ---------------------------- type C_Scalar_Node_Data is record Value : C_Char_Access; -- The scalar value Length : Interfaces.C.size_t; -- The length of the scalar value Style : C_Scalar_Style_T; -- The scalar style end record with Convention => C_Pass_By_Copy; type C_Sequence_Items is record Seq_Start, Seq_End, Seq_Top : C_Node_Item_Access; end record with Convention => C_Pass_By_Copy; type C_Sequence_Node_Data is record Items : C_Sequence_Items; -- The stack of sequence items Style : C_Sequence_Style_T; -- The sequence style end record with Convention => C_Pass_By_Copy; type C_Mapping_Pairs is record Map_Start, Map_End, Map_Top : C_Node_Pair_Access; end record with Convention => C_Pass_By_Copy; type C_Mapping_Node_Data is record Pairs : C_Mapping_Pairs; -- The stack of mapping pairs Style : C_Mapping_Style_T; -- The mapping style end record with Convention => C_Pass_By_Copy; type C_Node_Data (Dummy : Node_Kind := No_Node) is record case Dummy is when No_Node => null; when Scalar_Node => Scalar : C_Scalar_Node_Data; -- The scalar parameters (for Scalar_Node) when Sequence_Node => Sequence : C_Sequence_Node_Data; -- The sequence parameters (for Sequence_Node) when Mapping_Node => Mapping : C_Mapping_Node_Data; -- The mapping parameters (for Mapping_Node) end case; end record with Convention => C_Pass_By_Copy, Unchecked_Union; type C_Node_T is record Kind : Node_Kind; -- The node type Tag : C_Char_Access; -- The node tag Data : C_Node_Data; -- The node data Start_Mark, End_Mark : C_Mark_T; end record with Convention => C_Pass_By_Copy; -------------------------------- -- Document structure binding -- -------------------------------- type C_Document_Nodes is record Start_Node, End_Node, Top_Node : C_Node_T; -- Begining, end and top of the stack end record with Convention => C_Pass_By_Copy; type C_Tag_Directives is record Start_Dir, End_Dir : C_Tag_Directive_Access; -- Beginning and end of the tag directives list end record with Convention => C_Pass_By_Copy; type C_Document_T is record Nodes : C_Document_Nodes; -- The document nodes Version_Directives : C_Version_Directive_Access; -- The version directive Tag_Directives : C_Tag_Directives; -- The list of tag directives Start_Implicit, End_Implicit : C_Int; -- Is the document start/end indicator explicit? Start_Mark, End_Mark : C_Mark_T; -- Beginning and end of the document end record with Convention => C_Pass_By_Copy; -- The document structure type C_Document_Access is access all C_Document_T; ------------------------- -- High-level Wrappers -- ------------------------- type Document_Type is limited new Ada.Finalization.Limited_Controlled with record C_Doc : aliased C_Document_T; -- Inlined C document structure. This is the reason Document_Type is -- limited. Ref_Count : Natural; -- Reference counter for Document_Handle. The document must be deleted -- when the count drops to 0. To_Delete : Boolean; -- Whether C_Doc has been initialized. In this case, it must be deleted -- during finalization. end record; overriding procedure Initialize (Document : in out Document_Type); overriding procedure Finalize (Document : in out Document_Type); type Document_Access is access all Document_Type; type Document_Handle (Document : access Document_Type) is new Ada.Finalization.Controlled with null record; overriding procedure Adjust (Handle : in out Document_Handle); overriding procedure Finalize (Handle : in out Document_Handle); procedure Inc_Ref (Handle : in out Document_Handle'Class); procedure Dec_Ref (Handle : in out Document_Handle'Class); No_Document_Handle : constant Document_Handle := (Ada.Finalization.Controlled with Document => null); type Node_Ref is tagged record Node : C_Node_Access; -- The referenced node Document : Document_Access; -- The document it belongs to end record; No_Node_Ref : constant Node_Ref := (null, null); type C_Parser_Access is new System.Address; type String_Access is access String; type C_Parser_Error_View is record Error : Error_Kind; Problem : Interfaces.C.Strings.chars_ptr; Problem_Offset : C_Size_T; Problem_Value : C_Int; Problem_Mark : C_Mark_T; Context : Interfaces.C.Strings.chars_ptr; Context_Mark : C_Mark_T; end record with Convention => C_Pass_By_Copy; -- Partial view on the yaml_parser_s C structure. Used to access error -- flags. type C_File_Ptr is new System.Address; No_File_Ptr : constant C_File_Ptr := C_File_Ptr (System.Null_Address); type Parser_Type is limited new Ada.Finalization.Limited_Controlled with record C_Parser : C_Parser_Access; Input_Encoding : Encoding_Type; Input_String : String_Access; Input_File : C_File_Ptr; end record; overriding procedure Initialize (Parser : in out Parser_Type); overriding procedure Finalize (Parser : in out Parser_Type); end YAML;
gb_asm/main.asm
felix3008/PkSploit
16
86642
;Author: BinaryCounter (23-09-17) ;Uncomment one of the following 2 lines when not assembling using the buildscript. ;rOFFSET EQUS "$c486" ;OFFSET for Trade ;rOFFSET EQUS "$d280" ;OFFSET for SaveFile ;When manually assembling for SaveFile uncomment one of these linse too, to turnoff LCD (to prevent burn-in of pokemon center still frame) ;rEXTRA EQUS ".turnoff" ;Extra for Save ;rEXTRA EQUS "" ;Extra for trade valAA EQUS "$AA" val55 EQUS "$55" SECTION "Program Start",ROM0[$150] Boot:: .setup ld a, [$ffff] ;Disable those pesky serial interrupts, ugh. and $f7 ld [$ffff], a ;set default vars ld a, $00 ld [$FFF1], a ;Maybe draw something to the screen here? ;After that, disable interrupts so we have full control di .premenu ld a, $FF ld [$FFF0], a .menu ;Basic Command interface. ;Usage: GB sends $CD, Client responds with command ;Hex commands: ; $AA - Set Byte ; $55 - Run Block Transfer Routine (Read/Write blocks of memory) ; $33 - Jump to Address ld a, $CD call serial + rOFFSET cp $AA jr z, .setbyte cp $55 jr z, .transfer cp $33 jr z, .jump cp $66 jr z, .turnoff jr .menu ;Command 66, jump to address ;Usage: GB waits for Vblank and turns off LCD. .turnoff: ld a, [$FF40] bit 7, a jr z, .premenu ;Return right away if screen already off ld a,[$FF44] ; Loop until in first part of vblank cp 145 jr nz,.turnoff ld hl, $FF40 res 7,[hl] jr .premenu ;Command 33, jump to address ;Usage: GB sends $10, Client responds with High byte of address, ; GB sends $20, Client responds with low byte of address. ; GB jumps to address, return to menu with a ret instruction .jump call getaddress + rOFFSET call callwrapper + rOFFSET jr .premenu ;Command AA, set byte ;Usage: GB sends $10, Client responds with High byte of address, ; GB sends $20, Client responds with low byte of address. ; GB sends $30, Client responds with byte to be written, ; command writes byte and returns to menu .setbyte call getaddress + rOFFSET ld a, $30 call serial + rOFFSET ld [hl], a jr .menu ;Command 55, Block transfer ;Usage: GB sends $10, Client responds with High byte of byte count, ; GB sends $20, Client responds with low byte of byte count. ; GB sends $10, Client responds with High byte of start address, ; GB sends $20, Client responds with low byte of start address. ; Command performs block transfer, returns to menu .transfer ld a, [$FFF1] ld d, a ; load command Settings (See set byte for options) call getaddress + rOFFSET ld b, h ld c, l call getaddress + rOFFSET .loop1 ld a, [hl] call serial + rOFFSET bit 0, d ;Is write bit set? jr z, .skipwrite bit 1, d ;Bootleg write set? jr z, .skipbootleg call bootlegwrite + rOFFSET .skipbootleg ld [hl], a .skipwrite inc hl ;------ dec bc ld a, b or c jr nz, .loop1 ;loopend jr .premenu bootlegwrite: ld e, a ld a, [$FFF2] ld [$2100], a call delay + rOFFSET ld a, valAA ld [$0AAA], a nop ld a, val55 ld [$0555], a nop ld a, $A0 ld [$0AAA], a nop ld a,e ld [hl], a ; .waitforwrite ; ld a, [hl] ; cp b ; jr nz, .waitforwrite call delay + rOFFSET ret ;General-Purpose functions getaddress: ; GB sends $10, Client responds with High byte of address, ; GB sends $20, Client responds with low byte of address. ; destroys a, returns address in hl ld a, $10 call serial + rOFFSET ld h, a ld a, $20 call serial + rOFFSET ld l, a ret serial: ;writes value in A to serial and puts response in A ld [$ff01],a ;Serial Data Register ld a, $81 ; ld [$ff02],a ;Serial Mode .waitloop1 ld a, [$ff02] and $80 jr nz, .waitloop1 ;Waits for data call delay + rOFFSET ld a, [$ff01] ret callwrapper: jp hl delay: ;delays by value in FFF0 ld a, [$FFF0] jr z, .skipdelay .wastetime dec a nop nop nop nop nop nop nop nop nop nop jr nz, .wastetime .skipdelay ret ;loopend
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-boustr.ads
djamal2727/Main-Bearing-Analytical-Model
0
14994
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-boustr.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- S Y S T E M . B O U N D E D _ S T R I N G S -- -- -- -- S p e c -- -- -- -- Copyright (C) 2016-2020, AdaCore -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- A very simple implentation of bounded strings, used by tracebacks package System.Bounded_Strings is type Bounded_String (Max_Length : Natural) is limited private; -- A string whose length is bounded by Max_Length. The bounded string is -- empty at initialization. procedure Append (X : in out Bounded_String; C : Character); procedure Append (X : in out Bounded_String; S : String); -- Append a character or a string to X. If the bounded string is full, -- extra characters are simply dropped. function To_String (X : Bounded_String) return String; function "+" (X : Bounded_String) return String renames To_String; -- Convert to a normal string procedure Append_Address (X : in out Bounded_String; A : Address); -- Append an address to X function Is_Full (X : Bounded_String) return Boolean; -- Return True iff X is full and any character or string will be dropped -- if appended. private type Bounded_String (Max_Length : Natural) is limited record Length : Natural := 0; -- Current length of the string Chars : String (1 .. Max_Length); -- String content end record; end System.Bounded_Strings;
mlt_star_validation.als
jpalmeida/mlt-ontology
2
499
module mltStarValidation open mlt_star /** UTILS - PREDICATES AND FUNCTIONS */ /** The predicates bellow are used throughout the code improving its readability. */ pred triviallyCharacterizes[t,t':Type] { characterizes[t,t'] and (some t" :Type | (characterizes[t,t"] or powertypeOf[t,t"]) and properSpecializes[t",t']) } pred triviallySubordinateTo[t,t':Type] { isSubordinateTo[t,t'] and (some t" :Type | isSubordinateTo[t,t"] and properSpecializes[t",t']) } /** THEOREMS FROM SOSYM PAPER */ /** Theorem T10: each type has at most one power type */ pred theoremT10 { all t:Entity| lone powertypeOf.t } /** Theorem T11: each type is power type of, at most, one other type */ pred theoremT11 { all t:Entity| lone t.powertypeOf } /** Theorem T12: if a type t2 specializes a type t1 then the power type of t2 specializes * the power type of t1. * * ∀ t1,t2,t3,t4 (specializes(t2,t1)∧isPowertypeOf(t4,t2)∧isPowertypeOf(t3,t1)) * →specializes(t4,t3) */ pred theoremT12 { all t1,t2,t3,t4:Entity | (t1 in t2.specializes and t2 in t4.powertypeOf and t1 in t3.powertypeOf) implies t3 in t4.specializes } /** Theorem T13: If a type t2 is power type of a type t1 and a type t3 characterizes the * same base type t1 then all instances of t3 are also instances of the power type t2 * and, thus, t3 proper specializes t2. * * ∀t1,t2,t3 (isPowertypeOf(t2,t1)∧characterizes(t3,t1))→properSpecializes(t3,t2) */ pred theoremT13 { all t1,t2,t3:Entity | (t1 in t2.powertypeOf and t1 in t3.characterizes) implies t2 in t3.properSpecializes } /** Theorem T14: if two types t1 and t2 both partitions the same type t3 then it is not * possible for t1 to specialize t2. * * ∀ t1,t2,t3,t4 (partitions(t1,t3)∧partitions(t2,t3))→¬properSpecializes(t1,t2) */ pred theoremT14 { all t1,t2,t3:Entity | (t3 in t1.partitions and t3 in t2.partitions) implies (t2 not in t1.properSpecializes) } /** THEOREMS - NON FORMALIZED (SOSYM) */ /** The theorems below are not explicity defined on Sosym paper but the rules that * they formalize are cited in natural language*/ /** Since the instantiation relation denotes that an element is a member of the extension * of a type, it must be irreflexive, asymmetric and intransitive */ pred iofProperties { all x,y:Entity | x in y.iof => y not in x.iof /** Assymetric */ all x:Entity | x not in x.iof /** Irreflexive */ all x,y,z:Entity | (y in x.iof and z in y.iof) => z not in x.iof /** Intransitive */ all x:Entity | x not in x.^iof /** Acyclic */ } /** The instantiation properties specified on Sosym's paper are only aplicable to * Basic MLT, so the following predicated was corrected in this sense. */ pred iofPropertiesForOrderedTypes { all x,y :OrderedType+Individual | iof[y,x] implies y not in x.iof /** Assymetric */ all x :OrderedType+Individual | not iof[x,x] /** Irreflexive */ all x,y,z :OrderedType+Individual | (iof[x,y] and iof[y,z]) implies not iof[x,z] /** Intransitive */ all x :OrderedType+Individual | x not in x.^iof /** Acyclic */ } /** Specialization is a partial order relation (i.e., a reflexive, transitive and antisymmetric * relation), which is guaranteed in this theory for ordered types. */ pred specializationProperties { all disj x, y :Entity | specializes[y,x] => not specializes[x,y] /** Antissymetric */ all t :Type | specializes[t,t] /** Reflexive */ all x, y, z :Entity | (specializes[x,y] and specializes[y,z]) implies specializes[x,z] /** Transitive */ } /** This "theorem" is to check the structure of Basic Types present in old good MLT. */ pred basicMLTPattern { // all types specialize a basic type y and instantiate z such that // z is the basic type immediately higher than y (except at the top) all x:OrderedType | some y: BasicType | (specializes[x,y]) and ((no b : BasicType | iof[y,b]) or // basic type is at the top of basic types (some z: BasicType | iof[y,z] and iof[x,z] )) // or type is instance of basic type at higher order } pred subordinationProperties { no t, t' :Type | isSubordinateTo[t,t'] and isSubordinateTo[t',t] /** Irreflexive and Asymmetric*/ all t, t', t" :Type | (isSubordinateTo[t,t'] and specializes[t',t"]) implies isSubordinateTo[t,t"] /** Transitive */ } /** NEW THEOREMS */ /** The theorems below are not cited in Sosym paper, even in natural language */ /** Since every specialization of Entity_ has instances, it has is and instance of Type_. * Also, every instance of Type_ is a specialization of Entity_. So, Type_ is powertype of * Entity. */ pred TypeIsPowerTypeOfEntity { all t :Type_, e :Entity_ | powertypeOf[t,e] } /** This "theorem" shows the basic model of MLT*, the same MLT Basic Types does. */ pred mltStarPattern { all t :Type_, e :Entity_ | iof[t,e] all t :Type_, e :Entity_ | iof[e,t] lone Entity_ lone Type_ lone OrderlessType_ lone OrderedType_ lone Individual_ } /** If a type t has some cross-level relation to some type t', t is going to characterize * every type t' specializes from. */ pred trivialCharacterization { all t, t' :Type | (powertypeOf[t,t'] or characterizes[t,t']) implies (all t" :Type | properSpecializes[t',t"] implies characterizes[t,t"]) } /** A type can only be a powertype or characterizer of other type, excluding trivial * characterizations. */ pred uniqueCrossLevelRelation { all disj t, t', t" :Type | (characterizes[t,t'] and powertypeOf[t,t"]) implies triviallyCharacterizes[t,t'] } /** Every type that is source of a cross-level relation characterizes Entity_, unless * it is the the powertype of Entity_, Type_. */ pred allCharacterizesOfEntity_ { let sources = (powertypeOf + characterizes).Type | all t :sources | some Entity_ implies (characterizes[t,Entity_] or t in Type_) } pred noSelfCharacterization { no t :OrderedType | t in characterizes.Type and iof[t,t] } pred noMultilpleCharacterizationOfOrderedTypes { /** I'd like to expand this to all types */ all disj t, t', t" :OrderedType | (characterizes[t,t'] and characterizes[t,t"] and properSpecializes[t',t"]) implies (triviallyCharacterizes[t,t"]) } /** This is not a new theorem, it is the transitivity the paper describes on the table*/ pred trivialSubordination { all t, t' :Type | isSubordinateTo[t,t'] implies isSubordinateTo[t,t'.specializes] } pred inheritedCharacterization { all t, t' :Type | (characterizes[t,t'] and not triviallyCharacterizes[t,t']) implies (all t" :Type | specializes[t",t] implies characterizes[t",t']) } /** Reflexive, assymetric, transitive */ pred specializesProperties { all t :Type | specializes[t,t] no t, t' :Type | specializes[t,t'] and specializes[t',t] all t, t', t'' :Type | specializes[t,t'] and specializes[t',t''] implies specializes[t,t''] } /** Irreflexive, assymetric, transitive */ pred properSpecializesProperties { no t :Type | properSpecializes[t,t] no t, t' :Type | properSpecializes[t,t'] and properSpecializes[t',t] all t, t', t'' :Type | properSpecializes[t,t'] and properSpecializes[t',t''] implies properSpecializes[t,t''] } /** Irreflexive */ pred isSubordinateToProperties { no t :Type | isSubordinateTo[t,t] // TIMEOUT - no t, t' :Type | isSubordinateTo[t,t'] and isSubordinateTo[t',t] // TIMEOUT - all t, t', t'' :Type | isSubordinateTo[t,t'] and isSubordinateTo[t',t''] implies isSubordinateTo[t,t''] } /** Irreflexive, assymetric, intransitive */ pred powertypeOfProperties { no t :Type | powertypeOf[t,t] no t, t' :Type | powertypeOf[t,t'] and powertypeOf[t',t] no t, t', t'' :Type | powertypeOf[t,t'] and powertypeOf[t',t''] and powertypeOf[t,t''] } /** Irreflexive, assymetric, non-transitive */ pred characterizesProperties { no t :Type | characterizes[t,t] no t, t' :Type | characterizes[t,t'] and characterizes[t',t] no t, t', t'' :Type | characterizes[t,t'] and characterizes[t',t''] and characterizes[t,t''] } /** Irreflexive, assymetric, intransitive */ pred compCharacterizesProperties { no t :Type | compCharacterizes[t,t] no t, t' :Type | compCharacterizes[t,t'] and compCharacterizes[t',t] no t, t', t'' :Type | compCharacterizes[t,t'] and compCharacterizes[t',t''] and compCharacterizes[t,t''] } check { compCharacterizesProperties } for 11 /** Irreflexive, assymetric, non-transitive */ pred disjCharacterizesProperties { no t :Type | disjCharacterizes[t,t] no t, t' :Type | disjCharacterizes[t,t'] and disjCharacterizes[t',t] //no t, t', t'' :Type | disjCharacterizes[t,t'] and disjCharacterizes[t',t''] and disjCharacterizes[t,t''] } /** Irreflexive, assymetric, intransitive */ pred partitionsProperties { no t :Type | partitions[t,t] no t, t' :Type | partitions[t,t'] and partitions[t',t] no t, t', t'' :Type | partitions[t,t'] and partitions[t',t''] and partitions[t,t''] } check { // no t :OrderlessType, t':OrderedType | characterizes[t,t'] //Type = OrderedType+OrderlessType no e :Entity | #(e.iof & BasicType) > 1 } for 10 -- Defining the "R_" basic type sig R_ in Type {} fact { all e : Entity | e in R_ iff ( (all x : Entity | e in x.iof iff (x not in iof.x)) ) } -- existence of the "Russellian" type pred noRussellProperty { no R_ } /** SIMULATIONS HELPERS */ pred simulate2Level { // simulates two-level model (non multi-level) #BasicType=1 and no OrderlessType } pred simulate3Level { // simulates three-level model (multi-level but no OrderlessType) #BasicType=2 and no OrderlessType } pred simulateMLTStar { // simulates three-level model with orderless entities #BasicType=3 and some OrderlessType } pred simulateMLTStarPredefinedTypes -- MLT star with all the predefined types { some Entity_ and some Type_ and some OrderedType_ and some OrderlessType_ and some BasicType some OrderedType - BasicType } assert formalizedSosymTheorems { BasicType in OrderedType theoremT10 and theoremT11 and theoremT12 and theoremT13 and theoremT14 } assert nonFormalizedSosymTheorems { iofPropertiesForOrderedTypes specializationProperties basicMLTPattern subordinationProperties } assert newTheorems { TypeIsPowerTypeOfEntity mltStarPattern trivialCharacterization uniqueCrossLevelRelation allCharacterizesOfEntity_ noSelfCharacterization noMultilpleCharacterizationOfOrderedTypes trivialSubordination inheritedCharacterization } assert allTheorems { /** formalizedSosymTheorems */ BasicType in OrderedType theoremT10 and theoremT11 and theoremT12 and theoremT13 and theoremT14 /** nonFormalizedSosymTheorems */ iofPropertiesForOrderedTypes specializationProperties basicMLTPattern subordinationProperties /** newTheorems */ TypeIsPowerTypeOfEntity mltStarPattern trivialCharacterization uniqueCrossLevelRelation allCharacterizesOfEntity_ noSelfCharacterization noMultilpleCharacterizationOfOrderedTypes trivialSubordination inheritedCharacterization } assert noRussellProperty_ { noRussellProperty } /** SIMULATIONS */ run simulate2Level for 7 run simulate3Level for 10 run simulateMLTStar for 8 run simulateMLTStarPredefinedTypes for 15 check formalizedSosymTheorems for 7 check nonFormalizedSosymTheorems for 7 check newTheorems for 11 check allTheorems for 7 check noRussellProperty_ for 8 /* It is necessary at least 7 entities in order to instantiated MLT* basic model. */
test/Succeed/Issue520.agda
cruhland/agda
1,989
16268
<reponame>cruhland/agda<gh_stars>1000+ -- Andreas, 2015-12-10, issue reported by <NAME> open import Common.Equality open import Common.Bool id : Bool → Bool id true = true id false = false is-id : ∀ x → x ≡ id x is-id true = refl is-id false = refl postulate P : Bool → Set b : Bool p : P (id b) proof : P b proof rewrite is-id b = p
programs/oeis/008/A008722.asm
karttu/loda
0
245817
; A008722: Molien series for 3-dimensional group [2,9] = *229. ; 1,0,2,0,3,0,4,0,5,1,6,2,7,3,8,4,9,5,11,6,13,7,15,8,17,9,19,11,21,13,23,15,25,17,27,19,30,21,33,23,36,25,39,27,42,30,45,33,48,36,51,39,54,42,58,45,62,48,66,51,70,54,74,58,78,62,82,66,86,70,90,74,95,78,100,82 add $0,1 mul $0,2 add $0,4 mov $2,2 lpb $0,1 sub $0,1 add $1,$2 sub $1,$0 trn $1,$0 add $0,1 trn $0,4 add $2,1 lpe
oeis/016/A016000.asm
neoneye/loda-programs
11
89821
; A016000: Inverse of 1991st cyclotomic polynomial. ; Submitted by <NAME>(s2) ; 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $2,$3 mov $5,$3 mul $5,2 add $5,1 mul $2,$5 add $1,$2 mov $4,$0 cmp $4,0 add $0,$4 div $1,$0 div $2,$0 sub $0,53 sub $3,1 lpe mov $4,$1 cmp $4,0 mov $0,$4
programs/oeis/301/A301730.asm
neoneye/loda
22
161422
; A301730: Expansion of (x^8-x^7+x^6+5*x^5+4*x^4+3*x^3+5*x^2+5*x+1)/(x^6-x^5-x+1). ; 1,6,11,14,18,24,30,34,38,42,48,54,58,62,66,72,78,82,86,90,96,102,106,110,114,120,126,130,134,138,144,150,154,158,162,168,174,178,182,186,192,198,202,206,210,216,222,226,230,234,240,246,250,254,258,264 mov $1,$0 seq $0,315187 ; Coordination sequence Gal.3.14.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. sub $1,2 mov $2,$1 cmp $2,0 mov $3,$1 add $3,$2 mov $4,$1 dif $4,$3 sub $0,$4 add $0,1
src/main/antlr/ClawParser.g4
Arc-blroth/claw-lang
2
5861
parser grammar ClawParser; options { tokenVocab = ClawLexer; } compilationUnit : nls (topLevelDeclaration nls)* EOF ; topLevelDeclaration : spriteDeclaration | functionDeclaration ; spriteDeclaration : SPRITE nls IDENTIFIER nls spriteBody ; spriteBody : LBRACE nls spriteBodyDeclaration nls RBRACE ; spriteBodyDeclaration : (functionDeclaration nls)* ; functionDeclaration : (modifier nls)* nls FUNCTION nls IDENTIFIER nls functionArgs nls functionBody ; functionArgs : LPAREN nls functionArgsDeclaration nls RPAREN ; functionArgsDeclaration : (functionArgDeclaration nls COMMA nls)* functionArgDeclaration? nls COMMA? ; functionArgDeclaration : IDENTIFIER nls COLON nls IDENTIFIER ; functionBody : LBRACE nls functionBodyDeclaration nls RBRACE ; functionBodyDeclaration : statements? ; statements : statement (stmtSep statement)* nls ; statement : functionCall ; functionCall : IDENTIFIER nls LPAREN nls functionCallArgs nls RPAREN ; functionCallArgs : (functionCallArg nls COMMA nls)* functionCallArg? COMMA? ; functionCallArg : primitive ; primitive : NumberLiteral | StringLiteral ; modifier : visibility | INTRINSIC ; visibility : PUBLIC ; stmtSep : NL | SEMICOLON ; nls : NL* ;
resources/asm/na/levellistloader_assir0.asm
SkyTemple/ppmdu
37
101224
<reponame>SkyTemple/ppmdu ; For use with ARMIPS v0.7d ; By: <EMAIL> ; 2016/09/16 ; For Explorers of Sky North American ONLY! ; ------------------------------------------------------------------------------ ; Copyright © 2016 <NAME> <<EMAIL>> ; This work is free. You can redistribute it and/or modify it under the ; terms of the Do What The Fuck You Want To Public License, Version 2, ; as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. ; ------------------------------------------------------------------------------ ; This loads the level_list.bin file completely in memory once. ; .nds .arm ;Loads the Level list file! LevelListLoader: push r0,r1,r2,r14 ;First reserve 8 bytes on the stack ;sub r13,r13,8h ;Prepare our parameters and call the file loading function ;add r0,r13,0h ;Return struct for the loaded file data ldr r0,=RetSzAndFBuff ; ldr r1,=LevelListFPath ;Load our custom file path ptr ldr r2,=0h ;Not sure what this does. Its usually 1, 6,or sometimes 0x30F Maybe byte align?? bl LoadFileFromRom ;This will return the loaded file size in bytes!! ;Check if filesize non-zero ; cmp r0, 0h ; bne @@Continue ;Branch ahead if there's no problem ;mov r0,1h ;ldr r1,=LevellistError ;bl DebugPrint @@Continue: ;Copy the 2 dwords returned on the stack earlier to our dedicated variables ldr r0,=LevelListFileBufferPtr ;ldr r1,[r13] ldr r1,=RetSzAndFBuff ldr r1,[r1] str r1,[r0],4h ;ldr r1,[r13,4h] ldr r1,=RetSzAndFBuff ldr r1,[r1,4h] str r1,[r0],4h ;Prepare the SIR0 ldr r0,=LevelListTablePtr ;This is where the pointer to the data from the SIR0 will be placed! ;ldr r1,[r13] ;This is the pointer to the filebuffer we just put on the stack ldr r1,=RetSzAndFBuff ldr r1,[r1] bl HandleSIR0 ;This converts the offset to be memory relative, when needed ;Finally, dealloc the 8 bytes on the stack ;add r13,r13,8h pop r0,r1,r2,r15 ;Pool constants here .pool ;END LevelListLoader ;Run a check to see if the pointer to the buffer is null. ShouldLoadLevelList: push r1,r2,r3,r14 ldr r0,=LevelListFileBufferPtr ldr r1,=LevelListTablePtr ldr r0,[r0] ldr r1,[r1] cmp r0,0h moveq r0,1h popeq r1,r2,r3,r15 ;cmpne r1,0h ;moveq r0,1h ;popeq r1-r3,r15 @@ReturnFalse: mov r0,0h pop r1,r2,r3,r15 ;Pool constants here .pool ;END ShouldLoadLevelList ;TryLoadLevelList: Load the level list if needed! TryLoadLevelList: push r0,r14 bl ShouldLoadLevelList cmp r0, 0h beq @@end ;If the file is already loaded, just jump out bl LevelListLoader @@end: pop r0,r15 ;END ;For directly getting the level list address with no fuss involved GetLevelListAddress: ldr r0,=LevelListTablePtr ldr r0,[r0] ldr r0,[r0] ;Do it again because we have a sub-header bx r14 ;END ;Returns the total nb of levels from the sir0 subheader GetLevelListAddress: ldr r0,=LevelListTablePtr ldr r0,[r0] ldr r0,[r0,4h] ;Grab the nb of entries bx r14 ;END ;Get Or Load The Level List into R0! GetOrLoadLevelList: push r14 bl ShouldLoadLevelList cmp r0, 0h ;beq @@GetAddress ;If the file is already loaded, just jump to accessing the table bl GetLevelListAddress @@LoadTable: bl LevelListLoader @@GetAddress: ;ldr r0,=LevelListTablePtr ;ldr r0,[r0] pop r15 .pool ;END ;Access the content of the buffer much like the original function! LevelListAccessor: push r1,r2,r3,r4,r14 ;First, save the entry index in r0 mov r3,r0 ;Check if we must load the file ;bl ShouldLoadLevelList ;cmp r0, 0h ;beq @@GetValue ;If the file is already loaded, just jump to accessing the table ;@@LoadTable: ;bl LevelListLoader ;@@GetValue: ;cmp r3,0xCF0 ; bne @@Continue ;.msg "Well shit" ;@@Continue: ;bl GetOrLoadLevelList ;Get the pointer to the level list, or load the level list! It'll end up in R0! ;TEST bl GetLevelListAddress mov r1,0Ch ;Each entries in the table is 12 bytes long smulbb r1,r3,r1 ;Multiply by the size of a table entry ;ldr r4, =LevelListTablePtr ;ldr r0, [r4] ;Load our pointer add r0,r0,r1 ;set it to the correct entry ;ldr r0, [r4,r1] ;Load the actual pop r1,r2,r3,r4,r15 ;Pool constants here .pool ;END LevelListAccessor ;.definelabel LevelListFileBufferPtr, 0x020A46EC LevelListFileBufferPtr: dcd 0 dcd 0 ;.definelabel LevelListTablePtr, 0x020A46F4 LevelListTablePtr: dcd 0 RetSzAndFBuff: ; return value for the file loading function on the heap since we messed up the stack otherwise dcd 0 dcd 0 .align 4 ;align the string on 4bytes
src/asf-utils.adb
Letractively/ada-asf
0
2010
<reponame>Letractively/ada-asf ----------------------------------------------------------------------- -- html -- ASF HTML Components -- Copyright (C) 2009, 2010, 2011, 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- 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. ----------------------------------------------------------------------- package body ASF.Utils is TITLE_ATTR : aliased constant String := "title"; STYLE_ATTR : aliased constant String := "style"; STYLE_CLASS_ATTR : aliased constant String := "styleClass"; DIR_ATTR : aliased constant String := "dir"; LANG_ATTR : aliased constant String := "lang"; ACCESS_KEY_ATTR : aliased constant String := "accesskey"; ON_BLUR_ATTR : aliased constant String := "onblur"; ON_CLICK_ATTR : aliased constant String := "onclick"; ON_DBLCLICK_ATTR : aliased constant String := "ondblclick"; ON_FOCUS_ATTR : aliased constant String := "onfocus"; ON_KEYDOWN_ATTR : aliased constant String := "onkeydown"; ON_KEYUP_ATTR : aliased constant String := "onkeyup"; ON_MOUSE_DOWN_ATTR : aliased constant String := "onmousedown"; ON_MOUSE_MOVE_ATTR : aliased constant String := "onmousemove"; ON_MOUSE_OUT_ATTR : aliased constant String := "onmouseout"; ON_MOUSE_OVER_ATTR : aliased constant String := "onmouseover"; ON_MOUSE_UP_ATTR : aliased constant String := "onmouseup"; ON_CHANGE_ATTR : aliased constant String := "onchange"; ON_RESET_ATTR : aliased constant String := "onreset"; ON_SUBMIT_ATTR : aliased constant String := "onsubmit"; ENCTYPE_ATTR : aliased constant String := "enctype"; ON_LOAD_ATTR : aliased constant String := "onload"; ON_UNLOAD_ATTR : aliased constant String := "onunload"; TABINDEX_ATTR : aliased constant String := "tabindex"; AUTOCOMPLETE_ATTR : aliased constant String := "autocomplete"; SIZE_ATTR : aliased constant String := "size"; MAXLENGTH_ATTR : aliased constant String := "maxlength"; ALT_ATTR : aliased constant String := "alt"; DISABLED_ATTR : aliased constant String := "disabled"; READONLY_ATTR : aliased constant String := "readonly"; ACCEPT_ATTR : aliased constant String := "accept"; ROWS_ATTR : aliased constant String := "rows"; COLS_ATTR : aliased constant String := "cols"; CHARSET_ATTR : aliased constant String := "charset"; SHAPE_ATTR : aliased constant String := "shape"; REV_ATTR : aliased constant String := "rev"; COORDS_ATTR : aliased constant String := "coords"; TARGET_ATTR : aliased constant String := "target"; HREFLANG_ATTR : aliased constant String := "hreflang"; -- ------------------------------ -- Add in the <b>names</b> set, the basic text attributes that can be set -- on HTML elements (dir, lang, style, title). -- ------------------------------ procedure Set_Text_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (STYLE_CLASS_ATTR'Access); Names.Insert (TITLE_ATTR'Access); Names.Insert (DIR_ATTR'Access); Names.Insert (LANG_ATTR'Access); Names.Insert (STYLE_ATTR'Access); end Set_Text_Attributes; -- ------------------------------ -- Add in the <b>names</b> set, the onXXX attributes that can be set -- on HTML elements (accesskey, tabindex, onXXX). -- ------------------------------ procedure Set_Interactive_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (ACCESS_KEY_ATTR'Access); Names.Insert (TABINDEX_ATTR'Access); Names.Insert (ON_BLUR_ATTR'Access); Names.Insert (ON_MOUSE_UP_ATTR'Access); Names.Insert (ON_MOUSE_OVER_ATTR'Access); Names.Insert (ON_MOUSE_OUT_ATTR'Access); Names.Insert (ON_MOUSE_MOVE_ATTR'Access); Names.Insert (ON_MOUSE_DOWN_ATTR'Access); Names.Insert (ON_KEYUP_ATTR'Access); Names.Insert (ON_KEYDOWN_ATTR'Access); Names.Insert (ON_FOCUS_ATTR'Access); Names.Insert (ON_DBLCLICK_ATTR'Access); Names.Insert (ON_CLICK_ATTR'Access); Names.Insert (ON_CHANGE_ATTR'Access); end Set_Interactive_Attributes; -- ------------------------------ -- Add in the <b>names</b> set, the size attributes that can be set -- on HTML elements. -- ------------------------------ procedure Set_Input_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (SIZE_ATTR'Access); Names.Insert (AUTOCOMPLETE_ATTR'Access); Names.Insert (MAXLENGTH_ATTR'Access); Names.Insert (ALT_ATTR'Access); Names.Insert (DISABLED_ATTR'Access); Names.Insert (READONLY_ATTR'Access); end Set_Input_Attributes; -- ------------------------------ -- Add in the <b>names</b> set, the size attributes that can be set -- on <textarea> elements. -- ------------------------------ procedure Set_Textarea_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (ROWS_ATTR'Access); Names.Insert (COLS_ATTR'Access); end Set_Textarea_Attributes; -- ------------------------------ -- Add in the <b>names</b> set, the online and onunload attributes that can be set -- on <body> elements. -- ------------------------------ procedure Set_Body_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (ON_LOAD_ATTR'Access); Names.Insert (ON_UNLOAD_ATTR'Access); end Set_Body_Attributes; -- ------------------------------ -- Add in the <b>names</b> set, the dir, lang attributes that can be set -- on <head> elements. -- ------------------------------ procedure Set_Head_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (DIR_ATTR'Access); Names.Insert (LANG_ATTR'Access); end Set_Head_Attributes; -------------------- -- Add in the <b>names</b> set, the onreset and onsubmit attributes that can be set -- on <form> elements. -- ------------------------------ procedure Set_Form_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (ON_RESET_ATTR'Access); Names.Insert (ON_SUBMIT_ATTR'Access); Names.Insert (ENCTYPE_ATTR'Access); end Set_Form_Attributes; -------------------- -- Add in the <b>names</b> set, the attributes which are specific to a link. -- ------------------------------ procedure Set_Link_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (CHARSET_ATTR'Access); Names.Insert (SHAPE_ATTR'Access); Names.Insert (REV_ATTR'Access); Names.Insert (COORDS_ATTR'Access); Names.Insert (TARGET_ATTR'Access); Names.Insert (HREFLANG_ATTR'Access); end Set_Link_Attributes; -- ------------------------------ -- Add in the <b>names</b> set, the attributes which are specific to an input file. -- ------------------------------ procedure Set_File_Attributes (Names : in out Util.Strings.String_Set.Set) is begin Names.Insert (ACCEPT_ATTR'Access); end Set_File_Attributes; end ASF.Utils;
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1252.asm
ljhsiun2/medusa
9
93322
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x16d83, %r15 nop nop nop nop nop and $33200, %r8 mov $0x6162636465666768, %rdx movq %rdx, (%r15) nop dec %rax lea addresses_A_ht+0xd7c3, %r9 xor %rsi, %rsi movups (%r9), %xmm6 vpextrq $1, %xmm6, %rbp nop nop nop nop xor $2102, %r15 lea addresses_WC_ht+0x4393, %rsi nop xor $36597, %r15 mov $0x6162636465666768, %rdx movq %rdx, %xmm0 movups %xmm0, (%rsi) nop nop nop and $10754, %rdx lea addresses_D_ht+0x16583, %r15 clflush (%r15) nop nop nop and $43507, %rdx movb $0x61, (%r15) nop and $56549, %r15 lea addresses_WC_ht+0x17b83, %r8 nop xor %rdx, %rdx vmovups (%r8), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %rax cmp $21873, %rax lea addresses_WT_ht+0x7583, %rsi lea addresses_WT_ht+0x1e083, %rdi nop nop nop nop nop cmp %rbp, %rbp mov $50, %rcx rep movsw nop nop nop nop nop xor $52778, %r9 lea addresses_A_ht+0xac03, %rax sub $48557, %r9 mov (%rax), %r8d add %rdx, %rdx lea addresses_UC_ht+0x19583, %rsi lea addresses_WC_ht+0x4803, %rdi clflush (%rdi) nop nop xor $4250, %r15 mov $122, %rcx rep movsl nop nop nop and $2475, %rax lea addresses_normal_ht+0xfbb3, %r8 nop nop nop nop sub $69, %r15 mov $0x6162636465666768, %rsi movq %rsi, %xmm7 vmovups %ymm7, (%r8) nop sub %r15, %r15 lea addresses_WC_ht+0xa983, %rax cmp $58297, %r9 and $0xffffffffffffffc0, %rax vmovaps (%rax), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %rdi nop xor $43355, %rcx lea addresses_A_ht+0x4183, %rsi lea addresses_normal_ht+0x1bd83, %rdi nop nop nop and $64257, %rdx mov $57, %rcx rep movsl inc %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %rax push %rcx push %rdi // Faulty Load lea addresses_WC+0x16d83, %r12 nop nop nop inc %rcx mov (%r12), %ax lea oracles, %r13 and $0xff, %rax shlq $12, %rax mov (%r13,%rax,1), %rax pop %rdi pop %rcx pop %rax pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 6}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 11}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 9}} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 6}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}} {'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 3}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_WC_ht', 'congruent': 5}} {'dst': {'same': True, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
ocl-core/src/main/resources/grammar/OCLParser.g4
opatrascoiu/ocl
1
1272
<reponame>opatrascoiu/ocl parser grammar OCLParser; options { tokenVocab = OCLLexer; } @header { package org.omg.ocl.analysis.syntax.antlr; import org.omg.ocl.analysis.syntax.*; import org.omg.ocl.analysis.syntax.ast.*; import org.omg.ocl.analysis.syntax.ast.constraint.*; import org.omg.ocl.analysis.syntax.ast.declaration.*; import org.omg.ocl.analysis.syntax.ast.expression.*; import org.omg.ocl.analysis.syntax.ast.expression.arithmetic.*; import org.omg.ocl.analysis.syntax.ast.expression.logical.*; import org.omg.ocl.analysis.syntax.ast.expression.relational.*; import org.omg.ocl.analysis.syntax.ast.expression.literal.*; import org.omg.ocl.analysis.syntax.ast.expression.message.*; import org.omg.ocl.analysis.syntax.ast.expression.model.*; import org.omg.ocl.analysis.semantics.type.*; import java.io.*; } @members { private ASTFactory astFactory; public OCLParser(TokenStream input, ASTFactory astFactory) throws Exception { this(input); this.astFactory = astFactory; } public OCLParser(String text, ASTFactory astFactory) throws Exception { this(new CommonTokenStream(new OCLLexer(new ANTLRInputStream(text)))); this.astFactory = astFactory; } public ASTFactory getASTFactory() { return astFactory; } } // // OCL program // //program returns [Program ast]: // {List<Constraint> constraints = new ArrayList<Constraint>();} // (PACKAGE pkg=pathname SEMICOLON)? // cons=constraint {constraints.add($cons.ast);} SEMICOLON // (cons=constraint {constraints.add($cons.ast);} SEMICOLON)* // {$ast = astFactory.toProgram(astFactory.toPosition($ctx), $pkg.ast, constraints);} // EOF //; // //// Constraints //constraint returns [Constraint ast]: // CONTEXT context=pathname INV (name=pathname)? COLON exp=expression // {$ast=astFactory.toInvariant(astFactory.toPosition($ctx), $context.ast, $name.ast, $exp.ast);} //; // // Expressions // expressionRoot returns [OCLExpression ast]: expression {$ast = $expression.ast;} EOF ; expression returns [OCLExpression ast] : impliesExp {$ast = $impliesExp.ast;} ; impliesExp returns [OCLExpression ast] : exp1=xorDisjunctiveLogicalExp {$ast = $exp1.ast;} ( IMPLIES exp2=xorDisjunctiveLogicalExp {$ast = astFactory.toImpliesExp(astFactory.toPosition($ctx), $exp1.ast, $exp2.ast);} )? ; xorDisjunctiveLogicalExp returns [OCLExpression ast] : exp1=orDisjunctiveLogicalExp {$ast = $exp1.ast;} ( op=XOR exp2=orDisjunctiveLogicalExp {$ast = astFactory.toLogicalExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )* ; orDisjunctiveLogicalExp returns [OCLExpression ast] : exp1=conjunctiveLogicalExp {$ast = $exp1.ast;} ( op=OR exp2=conjunctiveLogicalExp {$ast = astFactory.toLogicalExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )* ; conjunctiveLogicalExp returns [OCLExpression ast] : exp1=equalityExp {$ast = $exp1.ast;} ( op=AND exp2=equalityExp {$ast = astFactory.toLogicalExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )* ; equalityExp returns [OCLExpression ast] : exp1=relationalExp {$ast = $exp1.ast;} ( (op=EQUAL | op=NOT_EQUAL ) exp2=relationalExp {$ast = astFactory.toEqualityExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )? ; relationalExp returns [OCLExpression ast] : exp1=additiveExp {$ast = $exp1.ast;} ( (op=LT | op=LE | op=GT | op=GE ) exp2=additiveExp {$ast = astFactory.toRelationalExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )? ; additiveExp returns [OCLExpression ast] : exp1=multiplicativeExp {$ast = $exp1.ast;} ( (op=PLUS| op=MINUS) exp2=multiplicativeExp {$ast = astFactory.toAdditiveExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )* ; multiplicativeExp returns [OCLExpression ast] : exp1=unaryExp {$ast = $exp1.ast;} ( (op=STAR | op=FORWARD_SLASH) exp2=unaryExp {$ast = astFactory.toMultiplicativeExp(astFactory.toPosition($ctx), $op, $ast, $exp2.ast);} )* ; unaryExp returns [OCLExpression ast] : ( (op=NOT | op=MINUS) exp2=unaryExp {$ast = astFactory.toUnaryExp(astFactory.toPosition($ctx), $op, $exp2.ast);} ) | ( postfixExp {$ast = $postfixExp.ast;} ) ; postfixExp returns [OCLExpression ast] : atPreExp {$ast = $atPreExp.ast;} ( ( dotSelectionExp[$ctx, $ast] {$ast = $dotSelectionExp.ast;} ) | ( arrowSelectionExp[$ctx, $ast] {$ast = $arrowSelectionExp.ast;} ) | ( messageExp[$ctx, $ast] {$ast = $messageExp.ast;} ) )* ; dotSelectionExp[ParserRuleContext ctx, OCLExpression source] returns [OCLExpression ast] : DOT name=SIMPLE_NAME {$ast = astFactory.toModelPropertyNavigationExp(astFactory.toPosition(ctx), source, $name.getText());} ( ( LEFT_SQUARE_BRACKET args1=argList RIGHT_SQUARE_BRACKET {$ast = astFactory.toQualifiedModelPropertyNavigation(astFactory.toPosition(ctx), source, $name.getText(), $args1.ast);} ) | ( LEFT_ROUND_BRACKET (args2=argList)? RIGHT_ROUND_BRACKET {$ast = astFactory.toModelOperationCallExp(astFactory.toPosition(ctx), source, $name.getText(), $args2.ast);} ) )? ; arrowSelectionExp[ParserRuleContext ctx, OCLExpression source] returns [OCLExpression ast] : ( ARROW name=SIMPLE_NAME LEFT_ROUND_BRACKET (iter1=variableDeclaration (COMMA iter2=variableDeclaration)? BAR)? body=expression RIGHT_ROUND_BRACKET {$ast = astFactory.toCollectionIteratorExp(astFactory.toPosition(ctx), source, $name.getText(), $iter1.ast, $iter2.ast, $body.ast);} ) | ( ARROW iterate=SIMPLE_NAME {"iterate".equals($iterate.getText())}? LEFT_ROUND_BRACKET (iter1=variableDeclaration SEMICOLON)? iter2=variableDeclaration BAR body=expression RIGHT_ROUND_BRACKET {$ast = astFactory.toCollectionIterateExp(astFactory.toPosition(ctx), source, $iterate.getText(), $iter1.ast, $iter2.ast, $body.ast);} ) | ( ARROW name=SIMPLE_NAME LEFT_ROUND_BRACKET arguments=argList? RIGHT_ROUND_BRACKET {$ast = astFactory.toCollectionOperationCallExp(astFactory.toPosition(ctx), source, $name.getText(), $arguments.ast);} ) ; argList returns [List<OCLExpression> ast] : {$ast = new ArrayList<>();} exp1=expression {$ast.add($exp1.ast);} ( COMMA exp2=expression {$ast.add($exp2.ast);} )* ; // // Message expression // messageExp[ParserRuleContext ctx, OCLExpression source] returns [OCLExpression ast] : ( UP_UP name=SIMPLE_NAME LEFT_ROUND_BRACKET messageArguments? RIGHT_ROUND_BRACKET {$ast = astFactory.toMessageExp(astFactory.toPosition(ctx), source, $name.getText(), $messageArguments.ast);} ) | ( UP name=SIMPLE_NAME LEFT_ROUND_BRACKET messageArguments? RIGHT_ROUND_BRACKET {$ast = astFactory.toMessageExp(astFactory.toPosition(ctx), source, $name.getText(), $messageArguments.ast);} ) ; messageArguments returns [List<OCLMessageArgument> ast] : {$ast = new ArrayList();} arg1=messageArgument {$ast.add($arg1.ast);} ( COMMA arg2=messageArgument {$ast.add($arg2.ast);} )* ; messageArgument returns [OCLMessageArgument ast] : ( QUESTION_MARK (COLON type)? {$ast = astFactory.toOCLMessageArgument(astFactory.toPosition($ctx), $type.ast);} ) | ( expression {$ast = astFactory.toOCLMessageArgument(astFactory.toPosition($ctx), $expression.ast);} ) ; atPreExp returns [OCLExpression ast] : letExp isAtPre {$ast = astFactory.toAtPreExp(astFactory.toPosition($ctx), $letExp.ast, $isAtPre.ast);} ; isAtPre returns [Boolean ast] : {$ast = false;} (AT PRE {$ast = true;})? ; letExp returns [OCLExpression ast] : ( {List<VariableDeclaration> variableDeclarations = new ArrayList();} LET var1=variableDeclaration {variableDeclarations.add($var1.ast);} ( COMMA var2=variableDeclaration {variableDeclarations.add($var2.ast);} )* IN body=expression {$ast = astFactory.toLetExpression(astFactory.toPosition($ctx), variableDeclarations, $body.ast);} ) | ( primaryExp {$ast = $primaryExp.ast;} ) ; primaryExp returns [OCLExpression ast] : ( name=SELF {$ast = astFactory.toPathnameExp(astFactory.toPosition($ctx), $name.getText());} ) | ( pathName {$ast = astFactory.toPathnameExp(astFactory.toPosition($ctx), $pathName.ast);} ) | ( literalExp {$ast = $literalExp.ast;} ) | ( LEFT_ROUND_BRACKET expression RIGHT_ROUND_BRACKET {$ast = $expression.ast;} ) | ( ifExp {$ast = $ifExp.ast;} ) ; ifExp returns [OCLExpression ast] : IF expression THEN expression ELSE expression ENDIF ; // // Literal Exp // literalExp returns [OCLExpression ast] : ( collectionLiteralExp {$ast = $collectionLiteralExp.ast;} ) | ( tupleLiteralExp {$ast = $tupleLiteralExp.ast;} ) | ( primitiveLiteralExp {$ast = $primitiveLiteralExp.ast;} ) ; // // Primitive Literal Exp // primitiveLiteralExp returns [OCLExpression ast] : ( integerLiteralExp {$ast = $integerLiteralExp.ast;} ) | ( realLiteralExp {$ast = $realLiteralExp.ast;} ) | ( stringLiteralExp {$ast = $stringLiteralExp.ast;} ) | ( booleanLiteralExp {$ast = $booleanLiteralExp.ast;} ) | ( unlimitedNaturalLiteralExp {$ast = $unlimitedNaturalLiteralExp.ast;} ) | ( nullLiteralExp {$ast = $nullLiteralExp.ast;} ) | ( invalidLiteralExp {$ast = $invalidLiteralExp.ast;} ) ; integerLiteralExp returns [IntegerLiteralExp ast]: literal = INTEGER_LITERAL {$ast = astFactory.toIntegerLiteralExp(astFactory.toPosition($ctx), $literal.getText());} ; realLiteralExp returns [RealLiteralExp ast]: literal = REAL_LITERAL {$ast = astFactory.toRealLiteralExp(astFactory.toPosition($ctx), $literal.getText());} ; stringLiteralExp returns [StringLiteralExp ast]: literal = STRING_LITERAL {$ast = astFactory.toStringLiteralExp(astFactory.toPosition($ctx), $literal.getText());} ; booleanLiteralExp returns [OCLExpression ast] : literal = BOOLEAN_LITERAL {$ast = astFactory.toBooleanLiteralExp(astFactory.toPosition($ctx), $literal.getText());} ; unlimitedNaturalLiteralExp returns [OCLExpression ast] : ( literal=STAR {$ast = astFactory.toUnlimitedNaturalLiteralExp(astFactory.toPosition($ctx), $literal.text);} ) ; nullLiteralExp returns [OCLExpression ast] : literal=NULL {$ast = astFactory.toNullLiteralExp(astFactory.toPosition($ctx), $literal.getText());} ; invalidLiteralExp returns [OCLExpression ast] : literal=INVALID {$ast = astFactory.toInvalidLiteralExp(astFactory.toPosition($ctx), $literal.getText());} ; // // Collection Literal Exp // collectionLiteralExp returns [OCLExpression ast] : {List<CollectionLiteralPart> parts = new ArrayList<CollectionLiteralPart>();} kind=collectionTypeIdentifier LEFT_CURLY_BRACKET (list=collectionLiteralPartList {parts.addAll($list.ast);})? RIGHT_CURLY_BRACKET {$ast = astFactory.toCollectionLiteralExp(astFactory.toPosition($ctx), $kind.ast, parts);} ; collectionLiteralPartList returns [List<CollectionLiteralPart> ast] : {$ast = new ArrayList<CollectionLiteralPart>();} part=collectionLiteralPart {$ast.add($part.ast);} ( COMMA part=collectionLiteralPart {$ast.add($part.ast);} )* ; collectionTypeIdentifier returns [Token ast] : ( left=COLLECTION {$ast = $left;} ) | ( left=SET {$ast = $left;} ) | ( left=ORDERED_SET {$ast = $left;} ) | ( left=BAG {$ast = $left;} ) | ( left=SEQUENCE {$ast = $left;} ) ; collectionLiteralPart returns [CollectionLiteralPart ast]: exp1=expression {$ast = astFactory.toCollectionLiteralPart(astFactory.toPosition($ctx), $exp1.ast, null);} ( RANGE exp2=expression {$ast = astFactory.toCollectionLiteralPart(astFactory.toPosition($ctx), $exp1.ast, $exp2.ast);} )? ; // // Tuple Literal Exp // tupleLiteralExp returns [TupleLiteralExp ast]: {List<VariableDeclaration> decls = new ArrayList<VariableDeclaration>();} TUPLE LEFT_CURLY_BRACKET (variableDeclarationList {decls.addAll($variableDeclarationList.ast);})? RIGHT_CURLY_BRACKET {$ast = astFactory.toTupleLiteralExp(astFactory.toPosition($ctx), decls);} ; variableDeclarationList returns [List<VariableDeclaration> ast]: {$ast = new ArrayList<VariableDeclaration>();} decl1=variableDeclaration {$ast.add($decl1.ast);} ( COMMA decl2=variableDeclaration {$ast.add($decl2.ast);} )* ; variableDeclaration returns [VariableDeclaration ast]: {PositionableType posType = null;} {Positionable init = null;} name=SIMPLE_NAME (COLON type {posType = $type.ast;} )? (EQUAL expression {init = $expression.ast;} )? {$ast = astFactory.toVariableDeclaration(astFactory.toPosition($ctx), $name.getText(), posType, init);} ; // // Pathname // pathName returns [Pathname ast] : {List<String> simpleNames = new ArrayList();} name1=SIMPLE_NAME {simpleNames.add($name1.getText());} ( COLON_COLON name2=unreservedSimpleName {simpleNames.add($name2.ast);} )* {$ast = astFactory.toPathname(astFactory.toPosition($ctx), simpleNames);} ; unreservedSimpleName returns [String ast]: ( name=SIMPLE_NAME {$ast = $name.getText();} ) | ( restrictedKeyword {$ast = $restrictedKeyword.ast;} ) ; restrictedKeyword returns [String ast]: ( collectionTypeIdentifier ) | ( primitiveType ) | ( oclType {$ast = $oclType.ast;} ) | ( TUPLE {$ast = $TUPLE.getText();} ) ; // // Types // type returns [PositionableType ast] : ( pathName {$ast = astFactory.toPositionableType(astFactory.toPosition($ctx), astFactory.toModelType($pathName.ast));} ) | ( collectionType {$ast = $collectionType.ast;} ) | ( tupleType {$ast = $tupleType.ast;} ) | ( primitiveType {$ast = $primitiveType.ast;} ) | ( oclType ) ; collectionType returns [PositionableType ast] : kind=collectionTypeIdentifier LEFT_ROUND_BRACKET elementType=type RIGHT_ROUND_BRACKET {$ast = astFactory.toPositionableType(astFactory.toPosition($ctx), astFactory.toCollectionType($kind.ast, $elementType.ast));} ; tupleType returns [PositionableType ast]: TUPLE LEFT_ROUND_BRACKET decls=variableDeclarationList RIGHT_ROUND_BRACKET {$ast = astFactory.toPositionableType(astFactory.toPosition($ctx), astFactory.toTupleType($decls.ast));} ; primitiveType returns [PositionableType ast]: {Type type = null;} ( ( INTEGER {type = astFactory.toIntegerType();} ) | ( REAL {type = astFactory.toRealType();} ) | ( BOOLEAN {type = astFactory.toBooleanType();} ) | ( STRING {type = astFactory.toStringType();} ) | ( UNLIMITED_NATURAL {type = astFactory.toUnlimitedNaturalType();} ) ) {$ast = astFactory.toPositionableType(astFactory.toPosition($ctx), type);} ; oclType returns [String ast]: ( name=OCL_ANY {$ast = $name.getText();} ) | ( name=OCL_INVALID {$ast = $name.getText();} ) | ( name=OCL_MESSAGE {$ast = $name.getText();} ) | ( name=OCL_VOID {$ast = $name.getText();} ) ;
ASM_minilibc_2018/src/memcpy.asm
ltabis/epitech-projects
0
177343
bits 64 ; set architecture global memcpy:function ; export memcpy ;; RDI RSI RDX arguments memcpy: xor RCX, RCX ; set counter to 0, xor is faster than mov xor RAX, RAX ; set return value to null cmp RDI, 0 ; check if string parameter null je .end cmp RSI, 0 ; check if string parameter null je .end mov RAX, RDI ; set return value to dest pointer cmp RDI, RSI ; check if pointers are the same (in that case we have nothing to copy) je .end .loop: ; loop label mov R8B, [RSI] ; Stocking next char value into R8B cmp byte [RSI], 0 ; check if end of string je .end ; checking if value is 0 (null terminated string) cmp RCX, RDX ; check if end of n bytes je .end ; checking if value is 0 (null terminated string) mov [RDI + RCX], R8B ; placing parameter value inside pointer inc RCX ; counter incrementation inc RSI ; counter incrementation jmp .loop ; continue to iterate .end: ret ; returning result (end of stack) / resume execution flow
src/fsmaker-commands-build.adb
Fabien-Chouteau/fsmaker
0
10094
with FSmaker.TOML; package body FSmaker.Commands.Build is ------------- -- Execute -- ------------- overriding procedure Execute (This : in out Instance; Args : AAA.Strings.Vector) is begin if Args.Count /= 2 then This.Failure ("takes exactly two arguments"); end if; FSmaker.TOML.Build_From_TOML (Args (1), Args (2)); end Execute; -------------------- -- Setup_Switches -- -------------------- overriding procedure Setup_Switches (This : in out Instance; Config : in out CLIC.Subcommand.Switches_Configuration) is begin null; end Setup_Switches; end FSmaker.Commands.Build;
solutions/53 - 100 Cubes on the Floor/size-15_speed-88.asm
michaelgundlach/7billionhumans
45
7313
-- 7 Billion Humans (2056) -- -- 53: 100 Cubes on the Floor -- -- Author: tiansh -- Size: 15 -- Speed: 88 a: step w if w != wall: jump a endif if n == wall: mem1 = set 9 else: b: if n == 0 or n == nothing: jump b endif mem1 = calc n + 10 endif c: pickup c write mem1 drop step e mem1 = calc mem1 - 1 jump c
theorems/cw/Attached.agda
cmknapp/HoTT-Agda
0
16674
<reponame>cmknapp/HoTT-Agda<filename>theorems/cw/Attached.agda {-# OPTIONS --without-K #-} open import HoTT module cw.Attached {i j k : ULevel} where -- The type of attaching maps. -- In intended uses, [B] is the type of cells and [C] is the [Sphere]s. Attaching : (A : Type i) (B : Type j) (C : Type k) → Type (lmax i (lmax j k)) Attaching A B C = B → C → A module _ {A : Type i} {B : Type j} {C : Type k} where -- [Attached] is the type with all the cells attached. Attached-span : Attaching A B C → Span {i} {j} {lmax j k} Attached-span attaching = span A B (B × C) (uncurry attaching) fst Attached : Attaching A B C → Type (lmax i (lmax j k)) Attached attaching = Pushout (Attached-span attaching) module _ {A : Type i} {B : Type j} {C : Type k} {attaching : Attaching A B C} where incl : A → Attached attaching incl = left hub : B → Attached attaching hub = right spoke : ∀ b c → incl (attaching b c) == hub b spoke = curry glue module AttachedElim {l} {P : Attached attaching → Type l} (incl* : (a : A) → P (incl a)) (hub* : (b : B) → P (hub b)) (spoke* : (b : B) (c : C) → incl* (attaching b c) == hub* b [ P ↓ spoke b c ]) where module P = PushoutElim {d = Attached-span attaching} {P = P} incl* hub* (uncurry spoke*) f = P.f spoke-β = curry P.glue-β open AttachedElim public using () renaming (f to Attached-elim) module AttachedRec {l} {D : Type l} (incl* : (a : A) → D) (hub* : (b : B) → D) (spoke* : (b : B) (c : C) → incl* (attaching b c) == hub* b) where module P = PushoutRec {d = Attached-span attaching} {D = D} incl* hub* (uncurry spoke*) f = P.f spoke-β = curry P.glue-β open AttachedRec public using () renaming (f to Attached-rec)
src/halfbox.adb
SKNZ/BoiteMaker
0
9225
<reponame>SKNZ/BoiteMaker<filename>src/halfbox.adb<gh_stars>0 with ada.characters.latin_1; with logger; use logger; package body halfbox is function get_halfbox(width, length, height, thickness, queue_length : integer) return halfbox_t is -- On stock les informations relatives à la demi boîte avec celles-ci -- Au cas où on en aurait besoin ultérieurement si l'on souhaite rajouter -- des étapes au processus halfbox_info : constant halfbox_info_t := (width => width, length => length, height => height, thickness => thickness, queue_length => queue_length); -- On génère chacune des panneaux de la demi-boîte -- A partir des informations de la demi-boîte halfbox : constant halfbox_t := ( info => halfbox_info, panel_bottom => get_bottom_panel(halfbox_info), panel_back => get_back_panel(halfbox_info), panel_front => get_front_panel(halfbox_info), panel_left => get_left_panel(halfbox_info), panel_right => get_right_panel(halfbox_info)); begin debug("Génération d'une demi boîte"); debug(to_string(halfbox_info)); return halfbox; end; procedure destroy(halfbox : in out halfbox_t) is begin destroy(halfbox.panel_bottom); destroy(halfbox.panel_back); destroy(halfbox.panel_front); destroy(halfbox.panel_left); destroy(halfbox.panel_right); end; function to_string(halfbox : halfbox_t) return string is tab : constant character := ada.characters.latin_1.HT; lf : constant character := ada.characters.latin_1.LF; begin return "[" & tab & "info: " & to_string(halfbox.info) & lf & tab & "bottom:" & to_string(halfbox.panel_bottom) & lf & tab & "back:" & to_string(halfbox.panel_back) & lf & tab & "front:" & to_string(halfbox.panel_front) & lf & tab & "left:" & to_string(halfbox.panel_left) & lf & tab & "right:" & to_string(halfbox.panel_right) & lf & "]"; end; end halfbox;
source/grammar/qasm3Lexer.g4
QISKit/qiskit-openqasm
0
789
lexer grammar qasm3Lexer; /* Naming conventions in this lexer grammar * * - Keywords and exact symbols that have only one possible value are written in * all caps. There is no more information in the parsed text than in the name * of the lexeme. For example, `INCLUDE` is only ever the string `'include'`. * * - Lexemes with information in the string form are in PascalCase. This * indicates there is more information in the token than just the name. For * example, `Identifier` has a payload containing the name of the identifier. */ /* Language keywords. */ OPENQASM: 'OPENQASM' -> pushMode(VERSION_IDENTIFIER); INCLUDE: 'include'; DEFCALGRAMMAR: 'defcalgrammar'; DEF: 'def'; DEFCAL: 'defcal'; GATE: 'gate'; EXTERN: 'extern'; BOX: 'box'; LET: 'let'; BREAK: 'break'; CONTINUE: 'continue'; IF: 'if'; ELSE: 'else'; END: 'end'; RETURN: 'return'; FOR: 'for'; WHILE: 'while'; IN: 'in'; PRAGMA: '#pragma'; /* Types. */ INPUT: 'input'; OUTPUT: 'output'; CONST: 'const'; MUTABLE: 'mutable'; QREG: 'qreg'; QUBIT: 'qubit'; CREG: 'creg'; BOOL: 'bool'; BIT: 'bit'; INT: 'int'; UINT: 'uint'; FLOAT: 'float'; ANGLE: 'angle'; COMPLEX: 'complex'; ARRAY: 'array'; DURATION: 'duration'; STRETCH: 'stretch'; /* Builtin identifiers and operations */ GPHASE: 'gphase'; INV: 'inv'; POW: 'pow'; CTRL: 'ctrl'; NEGCTRL: 'negctrl'; DIM: '#dim'; DURATIONOF: 'durationof'; DELAY: 'delay'; RESET: 'reset'; MEASURE: 'measure'; BARRIER: 'barrier'; BooleanLiteral: 'true' | 'false'; /* Symbols */ LBRACKET: '['; RBRACKET: ']'; LBRACE: '{'; RBRACE: '}'; LPAREN: '('; RPAREN: ')'; COLON: ':'; SEMICOLON: ';'; DOT: '.'; COMMA: ','; EQUALS: '='; ARROW: '->'; PLUS: '+'; DOUBLE_PLUS: '++'; MINUS: '-'; ASTERISK: '*'; DOUBLE_ASTERISK: '**'; SLASH: '/'; PERCENT: '%'; PIPE: '|'; DOUBLE_PIPE: '||'; AMPERSAND: '&'; DOUBLE_AMPERSAND: '&&'; CARET: '^'; AT: '@'; TILDE: '~'; EXCLAMATION_POINT: '!'; EqualityOperator: '==' | '!='; CompoundAssignmentOperator: '+=' | '-=' | '*=' | '/=' | '&=' | '|=' | '~=' | '^=' | '<<=' | '>>=' | '%=' | '**='; ComparisonOperator: '>' | '<' | '>=' | '<='; BitshiftOperator: '>>' | '<<'; IMAG: 'im'; ImaginaryLiteral: (DecimalIntegerLiteral | FloatLiteral) ' '* IMAG; BinaryIntegerLiteral: ('0b' | '0B') ([01] '_'?)* [01]; OctalIntegerLiteral: '0o' ([0-7] '_'?)* [0-7]; DecimalIntegerLiteral: ([0-9] '_'?)* [0-9]; HexIntegerLiteral: ('0x' | '0X') ([0-9a-fA-F] '_'?)* [0-9a-fA-F]; fragment ValidUnicode: [\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}]; // valid unicode chars fragment Letter: [A-Za-z]; fragment FirstIdCharacter: '_' | ValidUnicode | Letter; fragment GeneralIdCharacter: FirstIdCharacter | [0-9]; Identifier: FirstIdCharacter GeneralIdCharacter*; // TODO: OpenPulse asks for identifiers like '$q' in the argument list of // 'defcal' statements, though this is not a valid identifier by the OpenQASM 3 // specification. For now, we allow it as a special case. HardwareQubit: '$' ([0-9]+ | Identifier); fragment FloatLiteralExponent: [eE] (PLUS | MINUS)? DecimalIntegerLiteral; FloatLiteral: // 1_123e-3, 123e+4 or 123E5 (needs the exponent or it's just an integer) DecimalIntegerLiteral FloatLiteralExponent // .1234_5678 or .1e3 (no digits before the dot) | DOT DecimalIntegerLiteral FloatLiteralExponent? // 123.456, 123. or 145.32e+1_00 | DecimalIntegerLiteral DOT DecimalIntegerLiteral? FloatLiteralExponent?; fragment TimeUnit: 'dt' | 'ns' | 'us' | 'µs' | 'ms' | 's'; // represents explicit time value in SI or backend units TimingLiteral: (DecimalIntegerLiteral | FloatLiteral) TimeUnit; BitstringLiteral: '"' ([01] '_'?)* [01] '"'; // allow ``"str"`` and ``'str'`` StringLiteral : '"' ~["\r\t\n]+? '"' | '\'' ~['\r\t\n]+? '\'' ; // Ignore whitespace between tokens, and define C++-style comments. Whitespace: [ \t]+ -> skip ; Newline: [\r\n]+ -> skip ; LineComment : '//' ~[\r\n]* -> skip; BlockComment : '/*' .*? '*/' -> skip; // The version identifier token would be ambiguous between itself and // integer/floating-point literals, so we use a special mode to ensure it's // lexed correctly. mode VERSION_IDENTIFIER; VERSION_IDENTIFER_WHITESPACE: [ \t\r\n]+ -> skip; VersionSpecifier: [0-9]+ ('.' [0-9]+)? -> popMode;
src/emulator_8080-vram_sender.ads
lholzi/emulator_8080
1
11153
with Emulator_8080.Processor; private with GNAT.Sockets; package Emulator_8080.Vram_Sender is procedure Initialize(Port : in Natural; Ip_Address : in String); procedure Close; procedure Send_Vram(Vram : in Emulator_8080.Processor.Vram_Type); private Sender_Socket : GNAT.Sockets.Socket_Type; end Emulator_8080.Vram_Sender;
oeis/078/A078035.asm
neoneye/loda-programs
11
82235
<reponame>neoneye/loda-programs<filename>oeis/078/A078035.asm ; A078035: Expansion of (1-x)/(1+2*x^2-x^3). ; Submitted by <NAME>(s1) ; 1,-1,-2,3,3,-8,-3,19,-2,-41,23,80,-87,-137,254,187,-645,-120,1477,-405,-3074,2287,5743,-7648,-9199,21039,10750,-51277,-461,113304,-50355,-227069,214014,403783,-655097,-593552,1713977,532007,-4021506,649963,8575019,-5321432,-16500075,19217883 mov $1,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 sub $3,$1 add $1,$3 add $1,$2 sub $2,$1 add $3,$2 lpe mov $0,$3
alloy4fun_models/trashltl/models/4/z2DQsqE6FustCZEYH.als
Kaixi26/org.alloytools.alloy
0
2620
<gh_stars>0 open main pred idz2DQsqE6FustCZEYH_prop5 { some f : File | eventually f in Trash } pred __repair { idz2DQsqE6FustCZEYH_prop5 } check __repair { idz2DQsqE6FustCZEYH_prop5 <=> prop5o }
Stm8Invaders/asm/aliens.asm
peteri/Invaders
0
80250
stm8/ .tab 0,8,16,60 #include "variables.inc" #include "player.inc" #include "screenhelper.inc" #include "playerbase.inc" #include "playershot.inc" #include "constants.inc" #include "linerender.inc" #include "aliensrom.inc" segment 'ram1' alien_character_cur_y ds.b 1 alien_character_cur_x ds.b 1 alien_character_cur_x_offs ds.b 1 alien_character_start ds.b 1 segment 'rom' ;========================================= ; ; Move along to the next alien to draw ; ;========================================= .cursor_next_alien.w btjf game_flags_1,#flag1_player_ok,cursor_next_alien_exit btjt game_flags_3,#flag3_wait_on_draw,cursor_next_alien_exit bres game_flags_3,#flag3_no_aliens_found cursor_next_alien_loop inc alien_cur_index ld a,alien_cur_index cp a,#55 jrne check_alien_exists call rack_bump mov alien_cur_index,#0 ld a,ref_alien_delta_x add a,ref_alien_x ld ref_alien_x,a ld a,ref_alien_delta_y add a,ref_alien_y ld ref_alien_y,a mov ref_alien_delta_y,#0 btjt game_flags_3,#flag3_no_aliens_found,cursor_next_alien_exit bset game_flags_3,#flag3_no_aliens_found check_alien_exists ld a,alien_cur_index clrw x ld xl,a addw x,current_player ld a,(aliens_offs,x) jreq cursor_next_alien_loop ; Found an alien to draw call calculate_alien_position ld a,alien_character_cur_y cp a,#4 jreq aliens_invaded bset game_flags_3,#flag3_wait_on_draw cursor_next_alien_exit ret aliens_invaded ; Aliens have invaded game over... bset game_flags_2,#flag2_invaded mov player_alive,#player_alive_blowup_one ld a,#1 ldw x,current_player ld (ships_rem_offs,x),a call remove_ship ret ;========================================= ; ; Calculates where our alien is. ; ;========================================= calculate_alien_position ld a,ref_alien_y srl a srl a srl a ld alien_character_cur_y,a ld a,alien_cur_index clrw x ld xh,a ; xh=curAlien ; xl=alienRow ; a=curAlien alien_row_loop cp a,#11 jrult found_alien sub a,#11 ld xh,a ld a,alien_character_cur_y add a,#2 ld alien_character_cur_y,a incw x ld a,xh jra alien_row_loop found_alien ld a,ref_alien_x srl a srl a srl a ld alien_character_cur_x,a ld a,xh sll a add a,alien_character_cur_x ld alien_character_cur_x,a ld a,ref_alien_x and a,#7 ld alien_character_cur_x_offs,a ld a,xl and a,#$FE sll a sll a sll a or a,#$80 ld alien_character_start,a ret ;========================================== ; ; Time for an exploding alien ; ;========================================== explode_alien_timer dec alien_explode_timer jrne still_exploding call erase_explosion ldw x,#player_shot_alien_exploded ldw player_shot_status,x bres game_flags_2,#flag2_alien_exploding still_exploding ret ;========================================== ; ; Draws our alien. ; ;========================================== draw_alien_exit_early bres game_flags_3,#flag3_wait_on_draw ret .draw_alien.w btjt game_flags_2,#flag2_alien_exploding,explode_alien_timer ld a,alien_cur_index cp a,#$ff jreq draw_alien_exit_early ; alien still there? clrw x ld xl,a addw x,current_player ld a,(aliens_offs,x) jreq draw_alien_exit_early ;figure out where on screen. clrw x ld a,alien_character_cur_x ld xl,a ld a,#scr_width mul x,a ld a,xl add a,alien_character_cur_y ld xl,a ; x=currOffset ; Side effect of the original shift logic is that the row ; above the current invader is cleared when an alien is drawn. ld a,#$23 ld ({screen+$01},x),a ld ({screen+$21},x),a ; If we're advancing Right to left and we only have type C ; aliens left we go one more step so we don't wipe out the ; row above us in the NE direction. btjf game_flags_1,#flag1_rack_dir_rtol,going_left_to_right ld a,alien_character_cur_x_offs jreq draw_new_alien ld a,#$23 ld ({screen+$41},x),a jra draw_new_alien going_left_to_right ; If we're advancing left to right and we only have type C ; aliens left at the edges with a partial row of B aliens ; below i.e. the rack looks like this ; 45a5a5a5a5a56 ; 45a56 456 ; ; then as the row of type B aliens moves down it looks like ; 45a5a5a5a5a56 ; a56 456 ; 78 ld a,alien_character_start add a,#$0a cp a,({screen+$41},x) jrne six_test ld a,alien_character_start add a,#$04 ld ({screen+$41},x),a ; As the row of type B aliens moves down it looks like this ; 45a5a5a5a5a56 ; 6 456 ; 7878 six_test ld a,alien_character_start add a,#$06 cp a,({screen+$41},x) jrne draw_new_alien ld a,#$23 ld ({screen+$41},x),a draw_new_alien ld a,numaliens cp a,#$01 jrne regular_alien call draw_fast_single_alien jra draw_alien_exit regular_alien ld a,alien_character_cur_x_offs cp a,#0 jrne alien_test2 call draw_alien_zero jra set_single_alien_type alien_test2 cp a,#2 jrne alien_test4 call draw_alien_two jra set_single_alien_type alien_test4 cp a,#4 jrne alien_test6 call draw_alien_four jra set_single_alien_type alien_test6 cp a,#6 jrne set_single_alien_type call draw_alien_six set_single_alien_type bres game_flags_3,#flag3_single_alien_is_type1 btjt alien_character_cur_x_offs,#2,draw_alien_exit bset game_flags_3,#flag3_single_alien_is_type1 draw_alien_exit bres game_flags_3,#flag3_wait_on_draw ret ;============================================== ; ; draw the alien with a shifted offset of zero ; ;============================================== draw_alien_zero ld a,alien_character_start add a,#$07 cp a,({screen-$20},x) jrne draw_alien_zero_1 ld a,#$23 ld ({screen-$20},x),a draw_alien_zero_1 ld a,alien_character_start add a,#$0f cp a,({screen-$20},x) jrne draw_alien_zero_2 ld a,alien_character_start add a,#$01 ld ({screen-$20},x),a draw_alien_zero_2 ld a,alien_character_start ld ({screen},x),a ld a,alien_character_start add a,#$08 cp a,({screen-$40},x) jrne draw_alien_zero_3 ld a,alien_character_start add a,#$0f ld ({screen+$20},x),a ret draw_alien_zero_3 ld a,alien_character_start add a,#$01 ld ({screen+$20},x),a ret ;============================================== ; ; draw the alien with a shifted offset of two ; ;============================================== draw_alien_two ld a,alien_character_start add a,#$06 cp a,({screen-$20},x) jrne draw_alien_two_1 ld a,alien_character_start add a,#$0b ld ({screen+$00},x),a jra draw_alien_two_2 draw_alien_two_1 ld a,alien_character_start add a,#$02 ld ({screen+$00},x),a draw_alien_two_2 ld a,alien_character_start add a,#$03 ld ({screen+$20},x),a btjf game_flags_1,#flag1_rack_dir_rtol,draw_alien_two_exit ld a,alien_character_start add a,#$0a cp a,({screen-$40},x) jrne draw_alien_two_3 ld a,alien_character_start add a,#$04 ld ({screen+$40},x),a jra draw_alien_two_exit draw_alien_two_3 ld a,#$23 ld ({screen+$40},x),a draw_alien_two_exit ret ;============================================== ; ; draw the alien with a shifted offset of four ; ;============================================== draw_alien_four btjf game_flags_1,#flag1_rack_dir_rtol,draw_alien_four_ltor ld a,alien_character_start add a,#$0d cp a,({screen+$00},x) jreq draw_alien_four_rtl_0a ld a,alien_character_start add a,#$06 cp a,({screen+$00},x) jreq draw_alien_four_rtl_0a ld a,alien_character_start add a,#$04 ld ({screen+$00},x),a jra draw_alien_four_rtl_middle draw_alien_four_rtl_0a ld a,alien_character_start add a,#$0a ld ({screen+$00},x),a draw_alien_four_rtl_middle ld a,alien_character_start add a,#$05 ld ({screen+$20},x),a ld a,alien_character_start add a,#$0e cp a,({screen+$40},x) jreq draw_alien_four_rtl_right ld a,alien_character_start add a,#$06 ld ({screen+$40},x),a ret draw_alien_four_rtl_right ld a,alien_character_start add a,#$0d ld ({screen+$40},x),a ret draw_alien_four_ltor ld a,alien_character_start add a,#$05 cp a,({screen-$20},x) jreq draw_alien_four_ltr_0a ld a,alien_character_start add a,#$04 ld ({screen+$00},x),a jra draw_alien_four_ltr_middle draw_alien_four_ltr_0a ld a,alien_character_start add a,#$0a ld ({screen+$00},x),a draw_alien_four_ltr_middle ld a,alien_character_start add a,#$05 ld ({screen+$20},x),a ld a,alien_character_start add a,#$02 cp a,({screen+$40},x) jreq draw_alien_four_ltr_right ld a,alien_character_start add a,#$06 ld ({screen+$40},x),a ret draw_alien_four_ltr_right ld a,alien_character_start add a,#$0b ld ({screen+$40},x),a ret ;============================================== ; ; draw the alien with a shifted offset of six ; ;============================================== draw_alien_six btjf game_flags_1,#flag1_rack_dir_rtol,draw_alien_six_ltor ld a,alien_character_start add a,#$09 cp a,({screen+$00},x) jreq draw_alien_six_rtl_0e ld a,alien_character_start add a,#$0e cp a,({screen+$00},x) jreq draw_alien_six_rtl_0e ld a,alien_character_start add a,#$07 ld ({screen+$00},x),a jra draw_alien_six_rtl_middle draw_alien_six_rtl_0e ld a,alien_character_start add a,#$0e ld ({screen+$00},x),a draw_alien_six_rtl_middle ld a,alien_character_start add a,#$08 ld ({screen+$20},x),a ld a,alien_character_start add a,#$09 ld ({screen+$40},x),a ret draw_alien_six_ltor ld a,alien_character_cur_x jreq draw_alien_six_ltr_07 ld a,alien_character_start add a,#$08 cp a,({screen-$20},x) jrne draw_alien_six_ltr_07 ld a,alien_character_start add a,#$0e ld ({screen+$00},x),a jra draw_alien_six_ltr_middle draw_alien_six_ltr_07 ld a,alien_character_start add a,#$07 ld ({screen+$00},x),a draw_alien_six_ltr_middle ld a,alien_character_start add a,#$08 ld ({screen+$20},x),a ld a,alien_character_start add a,#$0a cp a,({screen+$40},x) jreq draw_alien_six_rtl_0c ld a,alien_character_start add a,#$09 ld ({screen+$40},x),a ret draw_alien_six_rtl_0c ld a,alien_character_start add a,#$0c ld ({screen+$40},x),a ret ;============================================== ; ; Bump the rack ; ;============================================== rack_bump btjf game_flags_1,#flag1_rack_dir_rtol,bump_ltor ld a,#9 call play_field_line_is_blank cp a,#0 jreq rack_bump_exit mov ref_alien_delta_x,#$02 ld a,numaliens cp a,#1 jrne rack_bump_more_than_one_alien mov ref_alien_delta_x,#$03 rack_bump_more_than_one_alien mov ref_alien_delta_y,#$F8 bres game_flags_1,#flag1_rack_dir_rtol jra rack_bump_exit bump_ltor ld a,#213 call play_field_line_is_blank cp a,#0 jreq rack_bump_exit mov ref_alien_delta_x,#$FE mov ref_alien_delta_y,#$F8 bset game_flags_1,#flag1_rack_dir_rtol rack_bump_exit ret ;=================================================== ; ; Erase alien explosion ; ;=================================================== erase_explosion clrw x ld a,alien_explode_x ld xl,a ld a,#scr_width mul x,a ld a,xl add a,alien_explode_y ld xl,a ld a,(screen,x) cp a,#$20 jruge not_udg_explosion ; Fast alien drawn using udg so fill with spaces. ld a,#$23 ld ({screen+$00},x),a ld ({screen+scr_width},x),a ld ({screen+scr_width+scr_width},x),a ret not_udg_explosion ; Left hand side ld a,({screen-scr_width},x) and a,#$f0 ld yl,a ld a,({screen-scr_width},x) and a,#$0f cp a,#$00 jreq middle_char cp a,#$0e jreq lhs_xf cp a,#$0f jrne lhs_test_x8 lhs_xf ld a,({screen-scr_width},x) sub a,#$40 ld ({screen-scr_width},x),a jra lhs_store_blank lhs_test_x8 cp a,#$08 jrne lhs_test_x5 ld a,yl or a,#$09 jra store_lhs lhs_test_x5 cp a,#$05 jrne lhs_store_blank ld a,yl or a,#$06 jra store_lhs lhs_store_blank ld a,#$23 store_lhs ld (screen,x),a middle_char ; Middle addw x,#scr_width ld a,#$23 ld (screen,x),a addw x,#scr_width ; Right hand side ld a,(screen,x) ;Type 1 Alien rhs_test_ca cp a,#$ca jrne rhs_test_cb ld a,#$84 jra store_rhs rhs_test_cb cp a,#$cb jrne rhs_test_cc ld a,#$82 jra store_rhs rhs_test_cc cp a,#$cc jrne rhs_test_da ld a,#$84 jra store_rhs ;Type 2 Alien rhs_test_da cp a,#$da jrne rhs_test_db ld a,#$94 jra store_rhs rhs_test_db cp a,#$db jrne rhs_test_dc ld a,#$92 jra store_rhs rhs_test_dc cp a,#$dc jrne rhs_test_ea ld a,#$94 jra store_rhs ;Type 3 Alien rhs_test_ea cp a,#$ea jrne rhs_test_eb ld a,#$a4 jra store_rhs rhs_test_eb cp a,#$eb jrne rhs_test_ec ld a,#$a2 jra store_rhs rhs_test_ec cp a,#$ec jrne rhs_test_b1 ld a,#$a4 jra store_rhs rhs_test_b1 cp a,#$b1 jreq rhs_store_blank cp a,#$b6 jreq rhs_store_blank cp a,#$b9 jreq rhs_store_blank ret rhs_store_blank ld a,#$23 store_rhs ld (screen,x),a ret ;=================================================== ; ; Explode alien ; ;=================================================== .explode_alien.w clrw x ld a,alien_explode_x ld xl,a ld a,#scr_width mul x,a ld a,xl add a,alien_explode_y ld xl,a ; x=currOffset ld a,(screen,x) cp a,#$20 jruge explode_non_udg_alien jp explode_udg_alien explode_non_udg_alien cp a,#$80 jrult explode_alien_exit cp a,#$af jrugt explode_alien_exit call explode_lhs addw x,#scr_width call explode_middle ld a,(screen,x) and a,#$0f cp a,#$03 jreq explode_alien_exit addw x,#scr_width call explode_rhs explode_alien_exit ret ; ; Explode left hand bit of alien ; explode_lhs and a,#$0f cp a,#1 jreq explode_lhs_exit1 cp a,#9 jrne check_special_case explode_lhs_exit1 ret check_special_case cp a,#$0a jruge explode_lhs_special_case cp a,#$08 jrne explode_lhs_or_b0 ld a,({screen-scr_width},x) and a,#$0f cp a,#$0e jreq explode_lhs_add_left_40 cp a,#$0f jrne explode_lhs_or_b0 explode_lhs_add_left_40 ld a,({screen-scr_width},x) add a,#$40 ld ({screen-scr_width},x),a explode_lhs_or_b0 ld a,(screen,x) or a,#$b0 jra explode_lhs_store explode_lhs_special_case ld a,({screen+scr_width},x) and a,#$0f cp a,#$05 jreq explode_lhs_a_or_c_next_5 ld a,(screen,x) cp a,#$8b jrne exp_lhs_test_9b ld a,#$c9 jra explode_lhs_store exp_lhs_test_9b cp a,#$9b jrne exp_lhs_test_ab ld a,#$d9 jra explode_lhs_store exp_lhs_test_ab cp a,#$ab jrne exp_lhs_add_40 ld a,#$e9 jra explode_lhs_store exp_lhs_add_40 add a,#$40 jra explode_lhs_store explode_lhs_a_or_c_next_5 ld a,(screen,x) exp_lhs_test_8a cp a,#$8a jrne exp_lhs_test_9a ld a,#$27 jra explode_lhs_store exp_lhs_test_9a cp a,#$9a jrne exp_lhs_test_aa ld a,#$28 jra explode_lhs_store exp_lhs_test_aa cp a,#$aa jrne exp_lhs_test_8c ld a,#$2b jra explode_lhs_store exp_lhs_test_8c cp a,#$8c jrne exp_lhs_test_9c ld a,#$2c jra explode_lhs_store exp_lhs_test_9c cp a,#$9c jrne exp_lhs_test_ac ld a,#$54 jra explode_lhs_store exp_lhs_test_ac cp a,#$ac jrne explode_lhs_exit ld a,#$55 jra explode_lhs_store explode_lhs_store ld (screen,x),a explode_lhs_exit ret ; ; Explode middle bit of alien ; explode_middle ld a,(screen,x) and a,#$0f cp a,#$0a jruge exp_mid_odd ld a,(screen,x) or a,#$b0 jra explode_middle_store exp_mid_odd cp a,#$0e jrne exp_mid_test_xf ld a,#$b9 jra explode_middle_store exp_mid_test_xf cp a,#$0f jrne exp_mid_test_def ld a,#$b1 jra explode_middle_store exp_mid_test_def ld a,(screen,x) add a,#$40 explode_middle_store ld (screen,x),a ret ; ; Explode right hand side of alien ; explode_rhs ld a,alien_explode_x_offset cp a,#$03 jruge explode_rhs_rest ld a,(screen,x) and a,#$0f cp a,#$0a jrne exp_rhs_test_x6 ld a,(screen,x) add a,#$40 jra explode_rhs_store exp_rhs_test_x6 cp a,#$06 jrne explode_rhs_exit ld a,#$b6 jra explode_rhs_store explode_rhs_rest ld a,(screen,x) and a,#$0f cp a,#$0a jruge exp_rhs_odd ld a,(screen,x) or a,#$b0 jra explode_rhs_store exp_rhs_odd cp a,#$0e jrne exp_rhs_test_xd ld a,#$b9 jra explode_rhs_store exp_rhs_test_xd cp a,#$0f jrne exp_rhs_test_def ld a,#$b6 jra explode_rhs_store exp_rhs_test_def ld a,(screen,x) add a,#$40 explode_rhs_store ld (screen,x),a explode_rhs_exit ret ;=============================== ; Explode a udg alien ;=============================== explode_udg_alien ld a,#$b0 or a,alien_explode_x_offset jp draw_fast_skip_flag ;=============================== ; ; Draw a fast alien ;=============================== draw_fast_single_alien ld a,#$23 cpw x,#$0020 jrult draw_fast_skip_clear ld ({screen-$1f},x),a ld ({screen-$20},x),a draw_fast_skip_clear ld ({screen+$41},x),a ld ({screen+$60},x),a ld ({screen+$61},x),a ld a,#$1c ld (screen,x),a inc a ld ({screen+1},x),a inc a ld ({screen+2},x),a ; ; Alien character range is $80-$af ; alien_character_start is aaaa0000 ; type1 flag is 0000f000 ; x post mod 7 is 00000xxx ; To get an index into our table of words ; final result looks like this: ; aaafxxx0 ; We then copy all 24 bytes into the destination. ; ld a,alien_character_start or a,alien_explode_x_offset btjt game_flags_3,#flag3_single_alien_is_type1,draw_fast_skip_flag or a,#$08 draw_fast_skip_flag sll a clrw y ld yl,a ldw y,(invader_lookup,y) ldw x,#0 draw_fast_single_alien_loop ld a,(y) ld ({udg+$e0},x),a incw y incw x cpw x,#24 jrult draw_fast_single_alien_loop ret END
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_1477.asm
ljhsiun2/medusa
9
104696
<filename>Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_1477.asm<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x12c82, %rsi lea addresses_normal_ht+0xb482, %rdi nop nop nop nop xor $64315, %r12 mov $11, %rcx rep movsq nop sub $48226, %rcx lea addresses_WC_ht+0x11782, %rsi lea addresses_UC_ht+0xc062, %rdi sub %r12, %r12 mov $18, %rcx rep movsq nop sub $38311, %r15 lea addresses_WC_ht+0x1705b, %rsi lea addresses_normal_ht+0x4082, %rdi nop nop nop nop mfence mov $69, %rcx rep movsw nop add %rsi, %rsi lea addresses_WT_ht+0xa482, %r11 nop nop nop nop sub %rdi, %rdi movl $0x61626364, (%r11) nop xor %rdi, %rdi lea addresses_D_ht+0xb002, %r15 nop nop nop xor %r14, %r14 mov (%r15), %r12d cmp $63584, %r11 lea addresses_WC_ht+0x1a902, %rsi lea addresses_normal_ht+0x13402, %rdi nop nop nop nop nop dec %r12 mov $43, %rcx rep movsq nop nop nop add %rsi, %rsi lea addresses_normal_ht+0x1be26, %r11 nop nop nop inc %rsi vmovups (%r11), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r15 nop nop nop nop cmp $25507, %r12 lea addresses_WC_ht+0xf382, %r12 xor %rdi, %rdi mov (%r12), %r15 nop nop nop add $17214, %r11 lea addresses_normal_ht+0xc82, %rsi lea addresses_normal_ht+0x8082, %rdi nop nop nop nop nop cmp $56048, %rbx mov $53, %rcx rep movsb nop nop nop nop nop and $9728, %rcx lea addresses_normal_ht+0x9d32, %rsi lea addresses_WC_ht+0x19482, %rdi nop dec %r14 mov $88, %rcx rep movsb nop add %rsi, %rsi lea addresses_WC_ht+0x12482, %rcx add %rdi, %rdi mov (%rcx), %esi nop nop nop nop nop xor %r14, %r14 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi // Store lea addresses_A+0xaa8b, %rbx nop inc %r14 movl $0x51525354, (%rbx) nop nop nop nop nop dec %r14 // Store lea addresses_D+0x6482, %r9 nop dec %rbx movw $0x5152, (%r9) nop nop nop nop add $5841, %r9 // Store lea addresses_D+0x6482, %rbx nop inc %r10 movl $0x51525354, (%rbx) nop nop nop and %r9, %r9 // REPMOV lea addresses_D+0x38ef, %rsi lea addresses_PSE+0x2782, %rdi nop nop nop nop nop cmp %r9, %r9 mov $34, %rcx rep movsq nop nop nop and %r13, %r13 // REPMOV lea addresses_normal+0x17482, %rsi lea addresses_WT+0x10a82, %rdi nop dec %r12 mov $62, %rcx rep movsw sub %r12, %r12 // Store lea addresses_WT+0x3d82, %rcx and $12686, %rbx mov $0x5152535455565758, %r14 movq %r14, %xmm4 vmovups %ymm4, (%rcx) nop nop nop nop nop inc %rdi // Faulty Load lea addresses_D+0x6482, %r14 nop nop nop nop nop and %r10, %r10 movb (%r14), %r9b lea oracles, %rdi and $0xff, %r9 shlq $12, %r9 mov (%rdi,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_PSE', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'54': 21829} 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 54 54 54 54 54 54 54 54 54 54 54 54 */
oeis/074/A074331.asm
neoneye/loda-programs
11
161783
; A074331: a(n) = Fibonacci(n+1) - (1 + (-1)^n)/2. ; Submitted by <NAME>(s4) ; 0,1,1,3,4,8,12,21,33,55,88,144,232,377,609,987,1596,2584,4180,6765,10945,17711,28656,46368,75024,121393,196417,317811,514228,832040,1346268,2178309,3524577,5702887,9227464,14930352,24157816,39088169 mov $2,1 lpb $0 sub $0,2 add $1,$2 add $2,$1 lpe add $2,$0 lpb $0 sub $0,1 add $2,$1 lpe mov $0,$2 sub $0,1
Task/Polynomial-regression/Ada/polynomial-regression-2.ada
LaudateCorpus1/RosettaCodeData
1
12115
<filename>Task/Polynomial-regression/Ada/polynomial-regression-2.ada with Fit; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure Fitting is C : constant Real_Vector := Fit ( (0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0), (1.0, 6.0, 17.0, 34.0, 57.0, 86.0, 121.0, 162.0, 209.0, 262.0, 321.0), 2 ); begin Put (C (0), Aft => 3, Exp => 0); Put (C (1), Aft => 3, Exp => 0); Put (C (2), Aft => 3, Exp => 0); end Fitting;
libsrc/_DEVELOPMENT/arch/zx/nirvanam/c/sdcc/NIRVANAM_wides_fastcall.asm
grancier/z180
0
26317
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE NIRVANA ENGINE - by <NAME> ; ; See "nirvana-.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAM_wides(unsigned char *addr) ; fastcall SECTION code_clib SECTION code_nirvanam PUBLIC _NIRVANAM_wides_fastcall EXTERN asm_NIRVANAM_wides defc _NIRVANAM_wides_fastcall = asm_NIRVANAM_wides
alloy4fun_models/trashltl/models/15/KkZ6WeEbWWz3wQxqF.als
Kaixi26/org.alloytools.alloy
0
3285
open main pred idKkZ6WeEbWWz3wQxqF_prop16 { all f : Protected | historically f in Protected } pred __repair { idKkZ6WeEbWWz3wQxqF_prop16 } check __repair { idKkZ6WeEbWWz3wQxqF_prop16 <=> prop16o }
memsim-master/src/memory-ram.ads
strenkml/EE368
0
15460
package Memory.RAM is type RAM_Type is new Memory_Type with private; type RAM_Pointer is access all RAM_Type'Class; function Create_RAM(latency : Time_Type := 1; burst : Time_Type := 0; word_size : Positive := 8; word_count : Natural := 65536) return RAM_Pointer; overriding function Clone(mem : RAM_Type) return Memory_Pointer; overriding procedure Reset(mem : in out RAM_Type; context : in Natural); overriding procedure Read(mem : in out RAM_Type; address : in Address_Type; size : in Positive); overriding procedure Write(mem : in out RAM_Type; address : in Address_Type; size : in Positive); overriding function To_String(mem : RAM_Type) return Unbounded_String; overriding function Get_Cost(mem : RAM_Type) return Cost_Type; overriding function Get_Writes(mem : RAM_Type) return Long_Integer; overriding function Get_Word_Size(mem : RAM_Type) return Positive; overriding function Get_Ports(mem : RAM_Type) return Port_Vector_Type; overriding procedure Generate(mem : in RAM_Type; sigs : in out Unbounded_String; code : in out Unbounded_String); private type RAM_Type is new Memory_Type with record latency : Time_Type := 1; burst : Time_Type := 0; word_size : Positive := 8; word_count : Natural := 65536; writes : Long_Integer := 0; end record; end Memory.RAM;
roms/SM2L.asm
isene/hp-41_GEIR.ROM
2
170944
<reponame>isene/hp-41_GEIR.ROM ;:LISTING GENERATED: 1/29/2018 11:03:17 by MLDL Manager version 1.70.0 by MLDL Manager version ;:OPEN FILE: C:\users\geir\Desktop\G\GIT-isene\hp-41cl_update\all_roms\Original\rom_files_171202\SMATH2L.ROM .con 0x08E ; .con 0x009 ; .con 0x013 ; .con 0x001 ; .NAME "HASIN" HASIN: .con 0x248 ; ST=1 9 ; .con 0x03B ; GONC +07 LB_A091 A091 gonc LB_A091 .con 0x093 ; .con 0x00F ; .con 0x003 ; .con 0x001 ; .NAME "HACOS" HACOS: .con 0x244 ; ST=0 9 LB_A091: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x3C4 ; CLRST .con 0x10E ; A=C ALL .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 .con 0x001 ; GSUBC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x061 ; .con 0x24C ; ST=1? 9 .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x305 ; GSUBNC SQR13 18C1 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2EE ; ?C#0 ALL ; .con 0x017 ; GOC +02 LB_A0A3 A0A3 goc LB_A0A3 .con 0x02E ; B=0 ALL LB_A0A3: .con 0x0F8 ; C=REGN ( 3)X .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x121 ; GSUBNC LN13 1B48 ; HP41 SYSTEM ROM 1 .con 0x06C ; ; .con 0x113 ; GONC +22 LB_A0CA A0CA gonc LB_A0CA .con 0x08E ; .con 0x001 ; .con 0x014 ; .con 0x001 ; .NAME "HATAN" HATAN: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x2BE ; C=-C-1 MS .con 0x02E ; B=0 ALL .con 0x0FA ; BCEX M .con 0x0AE ; ACEX ALL .con 0x001 ; GSUBNC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x275 ; GSUBNC DV2-13 189D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x001 ; GSUBNC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x121 ; GSUBNC LN13 1B48 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x269 ; GSUBNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x060 ; LB_A0CA: .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x08E ; .con 0x001 ; .con 0x014 ; .NAME "HTAN" HTAN: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x10E ; A=C ALL .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x044 ; ST=0 4 .con 0x035 ; GSUBNC EXP13 1A0D ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x001 ; GSUBNC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0A9 ; GSUBNC EXSCR 192A ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x275 ; GSUBNC DV2-13 189D ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x08B ; GONC +11 LB_A0F6 A0F6 gonc LB_A0F6 .con 0x08E ; .con 0x009 ; .con 0x013 ; .NAME "HSIN" HSIN: .con 0x148 ; ST=1 6 ; .con 0x033 ; GONC +06 LB_A0F1 A0F1 gonc LB_A0F1 .con 0x093 ; .con 0x00F ; .con 0x003 ; .NAME "HCOS" HCOS: .con 0x144 ; ST=0 6 LB_A0F1: .con 0x0F8 ; C=REGN ( 3)X .con 0x0EE ; BCEX ALL ; .con 0x379 ; GSB41C LB_A0F8 A0F8 ; GSUBNC 0FDE, address in same Quad RXQ LB_A0F8 ; .con 0x03C ; ; .con 0x0F8 ; LB_A0F6: .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_A0F8: .con 0x0EE ; BCEX ALL .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x044 ; ST=0 4 .con 0x029 ; GSUBNC EXP10 1A0A ; HP41 SYSTEM ROM 1 .con 0x068 ; LB_A0FE: .con 0x2A0 ; SETDEC .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x14C ; ST=1? 6 ; .con 0x013 ; GONC +02 LB_A106 A106 gonc LB_A106 .con 0x2BE ; C=-C-1 MS LB_A106: .con 0x11E ; A=C MS .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x269 ; GOLNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x062 ; .con 0x08D ; GOLC 0123 .con 0x007 ; .con 0x00E ; A=0 ALL .con 0x00C ; ST=1? 3 ; .con 0x379 ; GSB41C LB_A19D A19D ; GSUBNC 0FDE, address in same Quad RXQ LB_A19D ; .con 0x03C ; ; .con 0x19D ; .con 0x128 ; REGN=C ( 4)L .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x044 ; ST=0 4 .con 0x035 ; GSUBNC EXP13 1A0D ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x148 ; ST=1 6 ; .con 0x375 ; GSB41C LB_A0FE A0FE ; GSUBNC 0FDD, address in same Quad RXQ LB_A0FE ; .con 0x03C ; ; .con 0x0FE ; .con 0x138 ; C=REGN ( 4)L .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x138 ; C=REGN ( 4)L .con 0x3C4 ; CLRST .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x190 ; LC 6 .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x044 ; ST=0 4 .con 0x035 ; GSUBNC EXP13 1A0D ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x210 ; LC 8 .con 0x050 ; LC 1 .con 0x130 ; LDI 002 .con 0x002 ; .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x3C4 ; CLRST .con 0x121 ; GSUBNC LN13 1B48 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x138 ; C=REGN ( 4)L .con 0x3C4 ; CLRST .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x138 ; C=REGN ( 4)L .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x138 ; C=REGN ( 4)L .con 0x22D ; GSUBNC ON/X10 188B ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x269 ; GSUBNC PI/2 199A ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x1EE ; C=C+C ALL .con 0x1EE ; C=C+C ALL .con 0x149 ; GSUBNC MP2-13 1852 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x3C4 ; CLRST .con 0x121 ; GSUBNC LN13 1B48 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x269 ; GSUBNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 LB_A16C: .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x128 ; REGN=C ( 4)L .con 0x1A0 ; CLRABC .con 0x001 ; GSUBNC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x248 ; ST=1 9 ; .con 0x375 ; GSB41C LB_A181 A181 ; GSUBNC 0FDD, address in same Quad RXQ LB_A181 ; .con 0x03C ; ; .con 0x181 ; .con 0x3C4 ; CLRST .con 0x121 ; GSUBNC LN13 1B48 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x2BE ; C=-C-1 MS .con 0x11E ; A=C MS .con 0x138 ; C=REGN ( 4)L .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x363 ; GONC -14 LB_A16C A16C gonc LB_A16C LB_A181: .con 0x2A0 ; SETDEC .con 0x238 ; C=REGN ( 8)P LB_A183: .con 0x02E ; B=0 ALL .con 0x0FA ; BCEX M .con 0x0AE ; ACEX ALL .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x070 ; N=C .con 0x0F8 ; C=REGN ( 3)X .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x24C ; ST=1? 9 .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 .con 0x149 ; GSUBC MP2-13 1852 ; HP41 SYSTEM ROM 1 .con 0x061 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0B0 ; C=N .con 0x2EE ; ?C#0 ALL ; .con 0x347 ; GOC -18 LB_A183 A183 goc LB_A183 .con 0x3E0 ; RTN LB_A19D: .con 0x2CC ; ST=1? 13 ; .con 0x027 ; GOC +04 LB_A1A2 A1A2 goc LB_A1A2 ; .con 0x379 ; GSB41C -SNDMATH_IV A2BB ; GSUBNC 0FDE, address in same Quad RXQ -SNDMATH_IV ; .con 0x03C ; ; .con 0x2BB ; LB_A1A2: .con 0x248 ; ST=1 9 .con 0x0F8 ; C=REGN ( 3)X .con 0x2EE ; ?C#0 ALL .con 0x289 ; GOLNC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x04E ; C=0 ALL .con 0x2DC ; PT= 13 .con 0x250 ; LC 9 .con 0x250 ; LC 9 .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2FE ; ?C#0 MS ; .con 0x01F ; GOC +03 LB_A1B6 A1B6 goc LB_A1B6 .con 0x244 ; ST=0 9 .con 0x1A0 ; CLRABC LB_A1B6: .con 0x05E ; C=0 MS .con 0x228 ; REGN=C ( 8)P .con 0x11E ; A=C MS .con 0x0F8 ; C=REGN ( 3)X .con 0x025 ; GOLNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x062 ; .con 0x089 ; GOLC 0422 .con 0x013 ; .con 0x010 ; LC 0 ; .con 0x379 ; GSB41C LB_A19D A19D ; GSUBNC 0FDE, address in same Quad RXQ LB_A19D ; .con 0x03C ; ; .con 0x19D ; .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x070 ; N=C .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x128 ; REGN=C ( 4)L .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x226 ; C=C+1 S&X .con 0x269 ; GSUBNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x04E ; C=0 ALL .con 0x2DC ; PT= 13 .con 0x250 ; LC 9 .con 0x090 ; LC 2 .con 0x050 ; LC 1 .con 0x226 ; C=C+1 S&X .con 0x22D ; GSUBNC ON/X10 188B ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x138 ; C=REGN ( 4)L .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x19C ; PT= 11 .con 0x050 ; LC 1 .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x138 ; C=REGN ( 4)L .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x138 ; C=REGN ( 4)L .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x050 ; LC 1 .con 0x090 ; LC 2 .con 0x226 ; C=C+1 S&X .con 0x269 ; GSUBNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x128 ; REGN=C ( 4)L .con 0x0B0 ; C=N .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x261 ; GSUBNC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0B0 ; C=N .con 0x3C4 ; CLRST .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; LB_A206: .con 0x2BE ; C=-C-1 MS .con 0x11E ; A=C MS .con 0x138 ; C=REGN ( 4)L .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x128 ; REGN=C ( 4)L .con 0x1A0 ; CLRABC .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x244 ; ST=0 9 ; .con 0x375 ; GSB41C LB_A181 A181 ; GSUBNC 0FDD, address in same Quad RXQ LB_A181 ; .con 0x03C ; ; .con 0x181 ; .con 0x0BE ; ACEX MS .con 0x244 ; ST=0 9 ; .con 0x373 ; GONC -12 LB_A206 A206 gonc LB_A206 .con 0x094 ; .con 0x007 ; .con 0x004 ; .NAME "NDGT" NDGT: .con 0x0F8 ; C=REGN ( 3)X .con 0x00E ; A=0 ALL .con 0x39C ; PT= 0 LB_A220: .con 0x33C ; RCR 1 .con 0x3C6 ; CSR S&X .con 0x3C6 ; CSR S&X .con 0x146 ; A=A+C S&X .con 0x3DC ; INCPT .con 0x0D4 ; ?PT= 10 ; .con 0x3D3 ; GONC -06 LB_A220 A220 gonc LB_A220 .con 0x17D ; GOLNC 315F .con 0x0C6 ; LB_A229: .con 0x184 ; ST=0 11 LB_A22A: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .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 0x3BD ; GSUBNC MESSL 07EF ; 003 012 01F 020 085 086 087 08A 02F 088 20C .con 0x01C ; .con 0x003 ; .con 0x012 ; .con 0x01F ; .con 0x020 ; .con 0x085 ; .con 0x086 ; .con 0x087 ; .con 0x08A ; .con 0x02F ; .con 0x088 ; .con 0x20C ; .con 0x141 ; GSUBNC NEXT 0E50 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x103 ; GONC +20 LB_A263 A263 gonc LB_A263 .con 0x000 ; NOP ; .con 0x05B ; GONC +0B LB_A250 A250 gonc LB_A250 .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP ;LB_A24A: .con 0x303 ; GONC -20 LB_A22A A22A LB_A24A: gonc LB_A22A LB_A24B: .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; ; .con 0x3DB ; GONC -05 LB_A24A A24A gonc LB_A24A LB_A250: .con 0x0B0 ; C=N .con 0x3C6 ; CSR S&X .con 0x0E6 ; BCEX S&X .con 0x130 ; LDI 18A .con 0x18A ; .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AD50 AD50 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AD50 ; .con 0x08C ; ; .con 0x150 ; ; .con 0x393 ; GONC -0E LB_A24B A24B gonc LB_A24B LB_A25A: .con 0x0BA ; ACEX M .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x158 ; M=C .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; ; .con 0x389 ; GOL41C LB_AB3E AB3E ; GSUBNC 23E2, address in 3rd Quad RGO LB_AB3E ; .con 0x08C ; ; .con 0x33E ; ;LB_A263: .con 0x389 ; GOL41C LB_AB5A AB5A ; GSUBNC 23E2, address in 3rd Quad LB_A263: RGO LB_AB5A ; .con 0x08C ; ; .con 0x35A ; LB_A266: .con 0x184 ; ST=0 11 LB_A267: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x18C ; ST=1? 11 ; .con 0x023 ; GONC +04 LB_A26E A26E gonc LB_A26E .con 0x3BD ; GSUBNC MESSL 07EF ; 213 .con 0x01C ; .con 0x213 ; LB_A26E: .con 0x3BD ; GSUBNC MESSL 07EF ; 008 00B 21F .con 0x01C ; .con 0x008 ; .con 0x00B ; .con 0x21F ; .con 0x18C ; ST=1? 11 .con 0x355 ; GSUBNC 0FD5 .con 0x03C ; .con 0x3BD ; GSUBNC MESSL 07EF ; 0B1 0B2 0B0 21E .con 0x01C ; .con 0x0B1 ; .con 0x0B2 ; .con 0x0B0 ; .con 0x21E ; .con 0x141 ; GSUBNC NEXT 0E50 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x32B ; GONC -1B LB_A263 A263 gonc LB_A263 .con 0x14C ; ST=1? 6 ; .con 0x05B ; GONC +0B LB_A28B A28B gonc LB_A28B .con 0x026 ; B=0 S&X ; .con 0x391 ; GSB41C LB_ABFF ABFF ; GSUBNC 23E4, address in 3rd Quad RXQ LB_ABFF ; .con 0x08C ; ; .con 0x3FF ; ;LB_A285: .con 0x313 ; GONC -1E LB_A267 A267 LB_A285: gonc LB_A267 LB_A286: .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; ; .con 0x3DB ; GONC -05 LB_A285 A285 gonc LB_A285 LB_A28B: .con 0x0B0 ; C=N .con 0x3C6 ; CSR S&X .con 0x0E6 ; BCEX S&X .con 0x130 ; LDI 16A .con 0x16A ; .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AD50 AD50 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AD50 ; .con 0x08C ; ; .con 0x150 ; ; .con 0x393 ; GONC -0E LB_A286 A286 gonc LB_A286 ; .con 0x22B ; GONC -3B LB_A25A A25A gonc LB_A25A .con 0x0AF ; .con 0x033 ; .NAME "E3/" E3/: .con 0x104 ; ST=0 8 ; .con 0x03B ; GONC +07 LB_A2A1 A2A1 gonc LB_A2A1 .con 0x0AB ; .con 0x005 ; .con 0x02F ; .con 0x033 ; .NAME "E3/E+" E3/E+: .con 0x108 ; ST=1 8 LB_A2A1: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x266 ; C=C-1 S&X .con 0x266 ; C=C-1 S&X .con 0x266 ; C=C-1 S&X .con 0x10C ; ST=1? 8 LB_A2A8: .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x02E ; B=0 ALL .con 0x0FA ; BCEX M .con 0x0AE ; ACEX ALL .con 0x001 ; GSUBNC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x3CB ; GONC -07 LB_A2A8 A2A8 gonc LB_A2A8 .con 0x096 ; .con 0x009 ; .con 0x020 ; .con 0x008 ; .con 0x014 ; .con 0x001 ; .con 0x00D ; .con 0x004 ; .con 0x00E ; .con 0x013 ; .NAME "-SNDMATH ;-SNDMATH_IV:A2BB 3B5 GSB41C LB_AE8F .con 0x ; GSUBNC 23ED, address in 4th Quad -SNDMATH_IV:A2BB 3B5 GSB41C LB_AE8F .con 0x ; GSUBNC 23ED, address in 4th Quad ; .con 0x08C ; ; .con 0x28F ; .con 0x012 ; A=0 P-Q .con 0x015 ; GOLNC 0305 .con 0x00E ; .con 0x00E ; A=0 ALL .con 0x009 ; GOLNC 0302 .con 0x00E ; ; .con 0x047 ; GOC +08 LB_A2CC A2CC goc LB_A2CC .con 0x060 ; POWOFF .con 0x260 ; SETHEX LB_A2C7: .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x201 ; GOLNC MSG105 1C80 ; HP41 SYSTEM ROM 1 .con 0x072 ; .con 0x094 ; LB_A2CC: .con 0x00E ; .con 0x009 ; .NAME "AINT" AINT: .con 0x0F8 ; C=REGN ( 3)X ; .con 0x0C3 ; GONC +18 LB_A2E8 A2E8 gonc LB_A2E8 .con 0x08C ; .con 0x003 ; .con 0x012 ; .con 0x209 ; .NAME "AIRCL" AIRCL: .con 0x04C ; ST=1? 4 ; .con 0x01F ; GOC +03 LB_A2DA A2DA goc LB_A2DA .con 0x2CC ; ST=1? 13 ; .con 0x023 ; GONC +04 LB_A2DD A2DD gonc LB_A2DD ;LB_A2DA: .con 0x3B5 ; GSB41C LB_AEE6 AEE6 ; GSUBNC 23ED, address in 4th Quad LB_A2DA: RXQ LB_AEE6 ; .con 0x08C ; ; .con 0x2E6 ; LB_A2DD: .con 0x026 ; B=0 S&X ; .con 0x3B5 ; GSB41C LB_AF0E AF0E ; GSUBNC 23ED, address in 4th Quad RXQ LB_AF0E ; .con 0x08C ; ; .con 0x30E ; .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 LB_A2E8: .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 0x094 ; .con 0x00E ; .con 0x001 ; .con 0x00D ; .NAME "VMANT" VMANT: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x260 ; SETHEX .con 0x3B8 ; C=REGN (14)d .con 0x158 ; M=C .con 0x05C ; PT= 4 .con 0x250 ; LC 9 .con 0x210 ; LC 8 .con 0x3A8 ; REGN=C (14)d .con 0x0F8 ; C=REGN ( 3)X .con 0x046 ; C=0 S&X .con 0x099 ; GSUBNC DSPCRG 0B26 ; HP41 SYSTEM ROM 0 .con 0x02C ; .con 0x198 ; C=M .con 0x205 ; GOLNC 0381 .con 0x00E ; .con 0x0B1 ; .con 0x02D ; .con 0x018 ; .con 0x01E ; .NAME "2^X-1" 2^X-1: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x084 ; ST=0 5 .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x0F8 ; C=REGN ( 3)X .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x048 ; ST=1 4 .con 0x035 ; GSUBNC EXP13 1A0D ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x095 ; .con 0x005 ; .NAME "GEU" GEU: .con 0x18C ; ST=1? 11 .con 0x3B5 ; GSUBC R^SUB 14ED ; HP41 SYSTEM ROM 1 .con 0x051 ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x150 ; LC 5 .con 0x1D0 ; LC 7 .con 0x1D0 ; LC 7 .con 0x090 ; LC 2 .con 0x050 ; LC 1 .con 0x150 ; LC 5 .con 0x190 ; LC 6 .con 0x190 ; LC 6 .con 0x110 ; LC 4 .con 0x250 ; LC 9 .con 0x250 ; LC 9 .con 0x250 ; LC 9 .con 0x250 ; LC 9 ; .con 0x0D3 ; GONC +1A LB_A356 A356 gonc LB_A356 .con 0x08D ; .con 0x005 ; .con 0x012 ; .NAME "QREM" QREM: .con 0x0F8 ; C=REGN ( 3)X .con 0x128 ; REGN=C ( 4)L .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x355 ; GSUBNC 14D5 .con 0x050 ; .con 0x070 ; N=C .con 0x044 ; ST=0 4 .con 0x171 ; GSUBNC MOD10 195C ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x070 ; N=C .con 0x2BE ; C=-C-1 MS .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x269 ; GSUBNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0A8 ; REGN=C ( 2)Y .con 0x0B0 ; C=N LB_A356: .con 0x0E8 ; REGN=C ( 3)X .con 0x3E0 ; RTN ;LB_A358: .con 0x389 ; GOL41C LB_AB5A AB5A ; GSUBNC 23E2, address in 3rd Quad LB_A358: RGO LB_AB5A ; .con 0x08C ; ; .con 0x35A ; ;LB_A35B: .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad LB_A35B: RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x00D ; GOLNC 2303 .con 0x08E ; .con 0x020 ; SPOPND .con 0x00C ; ST=1? 3 .con 0x08D ; GSUBNC 0823 .con 0x020 ; ;LB_A364: .con 0x007 ; GOC +00 LB_A364 A364 LB_A364: goc LB_A364 .con 0x084 ; ST=0 5 .con 0x020 ; SPOPND ; .con 0x083 ; GONC +10 LB_A377 A377 gonc LB_A377 .con 0x020 ; SPOPND .con 0x290 ; LC A ; .con 0x0C3 ; GONC +18 LB_A382 A382 gonc LB_A382 ; .con 0x093 ; GONC +12 LB_A37D A37D gonc LB_A37D .con 0x014 ; ?PT= 3 ; .con 0x013 ; GONC +02 LB_A36F A36F gonc LB_A36F ; .con 0x02F ; GOC +05 LB_A373 A373 goc LB_A373 LB_A36F: .con 0x002 ; A=0 @R .con 0x010 ; LC 0 .con 0x02D ; GSUBNC 000B .con 0x000 ; ;LB_A373: .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad LB_A373: RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; ; .con 0x013 ; GONC +02 LB_A378 A378 gonc LB_A378 LB_A377: .con 0x084 ; ST=0 5 LB_A378: .con 0x020 ; SPOPND ;LB_A379: .con 0x003 ; GONC +00 LB_A379 A379 LB_A379: gonc LB_A379 .con 0x096 ; B=A XS .con 0x020 ; SPOPND .con 0x092 ; B=A P-Q LB_A37D: .con 0x020 ; SPOPND .con 0x00C ; ST=1? 3 .con 0x092 ; B=A P-Q .con 0x020 ; SPOPND .con 0x299 ; GSUBC 50A6 LB_A382: .con 0x141 ; .con 0x038 ; C=REGN ( 0)T ; .con 0x2A3 ; GONC -2C LB_A358 A358 gonc LB_A358 .con 0x14C ; ST=1? 6 ; .con 0x05B ; GONC +0B LB_A391 A391 gonc LB_A391 .con 0x395 ; GSUBNC TOGSHF 1FE5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x3D9 ; GSUBNC ENLCD 07F6 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x18C ; ST=1? 11 ; .con 0x01B ; GONC +03 LB_A38F A38F gonc LB_A38F .con 0x184 ; ST=0 11 ; .con 0x26B ; GONC -33 LB_A35B A35B gonc LB_A35B LB_A38F: .con 0x188 ; ST=1 11 ; .con 0x31B ; GONC -1D LB_A373 A373 gonc LB_A373 LB_A391: .con 0x0B0 ; C=N .con 0x3C6 ; CSR S&X .con 0x0E6 ; BCEX S&X .con 0x2C6 ; ?B#0 S&X ; .con 0x0AB ; GONC +15 LB_A3AA A3AA gonc LB_A3AA .con 0x130 ; LDI 177 .con 0x177 ; .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AD50 AD50 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AD50 ; .con 0x08C ; ; .con 0x150 ; ; .con 0x333 ; GONC -1A LB_A382 A382 gonc LB_A382 .con 0x0BA ; ACEX M .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x158 ; M=C .con 0x2F6 ; ?C#0 XS ; .con 0x01B ; GONC +03 LB_A3A5 A3A5 gonc LB_A3A5 .con 0x056 ; C=0 XS ; .con 0x043 ; GONC +08 LB_A3AC A3AC gonc LB_A3AC LB_A3A5: .con 0x3D9 ; GSUBNC CLRLCD 2CF6 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; ; .con 0x389 ; GOL41C LB_AB3E AB3E ; GSUBNC 23E2, address in 3rd Quad RGO LB_AB3E ; .con 0x08C ; ; .con 0x33E ; LB_A3AA: .con 0x130 ; LDI 07D .con 0x07D ; LB_A3AC: .con 0x106 ; A=C S&X .con 0x3D9 ; GSUBNC CLRLCD 2CF6 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x31D ; GSUBNC PROMFC 05C7 ; HP41 SYSTEM ROM 0 .con 0x014 ; .con 0x046 ; C=0 S&X .con 0x158 ; M=C ; .con 0x391 ; GSB41C LB_AB42 AB42 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_AB42 ; .con 0x08C ; ; .con 0x342 ; .con 0x18C ; ST=1? 11 .con 0x2C9 ; GOLC STDEV 11B2 ; HP41 SYSTEM ROM 1 .con 0x047 ; .con 0x188 ; ST=1 11 .con 0x2E5 ; GOLNC MEAN 11B9 ; HP41 SYSTEM ROM 1 .con 0x046 ; ; .con 0x0BF ; GOC +17 LB_A3D3 A3D3 goc LB_A3D3 .con 0x005 ; GSUBC 0301 .con 0x00D ; .con 0x009 ; GOLNC 0402 .con 0x012 ; .con 0x010 ; LC 0 .con 0x0F8 ; C=REGN ( 3)X .con 0x2A0 ; SETDEC .con 0x2FE ; ?C#0 MS ; .con 0x033 ; GONC +06 LB_A3CB A3CB gonc LB_A3CB .con 0x23E ; C=C+1 MS .con 0x389 ; GOLNC ERRAD 14E2 ; HP41 SYSTEM ROM 1 .con 0x052 ; LB_A3C9: .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; LB_A3CB: .con 0x2EE ; ?C#0 ALL ; .con 0x3EB ; GONC -03 LB_A3C9 A3C9 gonc LB_A3C9 .con 0x2F6 ; ?C#0 XS ; .con 0x3DF ; GOC -05 LB_A3C9 A3C9 goc LB_A3C9 LB_A3CF: .con 0x31C ; PT= 1 .con 0x2E2 ; ?C#0 @R ; .con 0x3C7 ; GOC -08 LB_A3C9 A3C9 goc LB_A3C9 .con 0x10E ; A=C ALL LB_A3D3: .con 0x3EE ; ASL ALL .con 0x386 ; ASR S&X .con 0x35A ; ?A#0 M ; .con 0x023 ; GONC +04 LB_A3DA A3DA gonc LB_A3DA .con 0x1A6 ; A=A-1 S&X ; .con 0x3BF ; GOC -09 LB_A3CF A3CF goc LB_A3CF ; .con 0x3D3 ; GONC -06 LB_A3D3 A3D3 gonc LB_A3D3 LB_A3DA: .con 0x2F9 ; GSUBNC SQR10 18BE ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x03C ; RCR 3 .con 0x070 ; N=C .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x0DC ; PT= 10 .con 0x190 ; LC 6 .con 0x090 ; LC 2 .con 0x190 ; LC 6 .con 0x110 ; LC 4 .con 0x090 ; LC 2 .con 0x110 ; LC 4 .con 0x090 ; LC 2 .con 0x110 ; LC 4 .con 0x090 ; LC 2 .con 0x090 ; LC 2 .con 0x050 ; LC 1 .con 0x33C ; RCR 1 .con 0x158 ; M=C .con 0x35C ; PT= 12 .con 0x04E ; C=0 ALL .con 0x050 ; LC 1 .con 0x36E ; ?A#C ALL ; .con 0x047 ; GOC +08 LB_A3FB A3FB goc LB_A3FB .con 0x0EE ; BCEX ALL LB_A3F5: .con 0x0F8 ; C=REGN ( 3)X .con 0x128 ; REGN=C ( 4)L .con 0x0CE ; C=B ALL .con 0x0E8 ; REGN=C ( 3)X .con 0x0B9 ; GOLNC SKP 162E ; HP41 SYSTEM ROM 1 .con 0x05A ; LB_A3FB: .con 0x1FA ; C=C+C M .con 0x36E ; ?A#C ALL LB_A3FD: .con 0x065 ; GOLNC NOSKP 1619 ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x35C ; PT= 12 .con 0x0EE ; BCEX ALL LB_A401: .con 0x04E ; C=0 ALL .con 0x186 ; A=A-B S&X .con 0x0E6 ; BCEX S&X .con 0x1BC ; RCR 11 .con 0x0A6 ; ACEX S&X LB_A406: .con 0x18E ; A=A-B ALL ; .con 0x3FB ; GONC -01 LB_A406 A406 gonc LB_A406 .con 0x12E ; A=A+B ALL .con 0x3EE ; ASL ALL .con 0x266 ; C=C-1 S&X ; .con 0x3DB ; GONC -05 LB_A406 A406 gonc LB_A406 .con 0x03C ; RCR 3 .con 0x0E6 ; BCEX S&X .con 0x34E ; ?A#0 ALL ; .con 0x333 ; GONC -1A LB_A3F5 A3F5 gonc LB_A3F5 .con 0x198 ; C=M .con 0x33C ; RCR 1 .con 0x2E2 ; ?C#0 @R ; .con 0x017 ; GOC +02 LB_A415 A415 goc LB_A415 .con 0x17C ; RCR 6 LB_A415: .con 0x00E ; A=0 ALL .con 0x102 ; A=C @R .con 0x12E ; A=A+B ALL .con 0x35E ; ?A#0 MS ; .con 0x033 ; GONC +06 LB_A41F A41F gonc LB_A41F .con 0x3E6 ; ASL S&X .con 0x38E ; ASR ALL .con 0x166 ; A=A+1 S&X .con 0x3D4 ; DECPT .con 0x33C ; RCR 1 LB_A41F: .con 0x158 ; M=C .con 0x08E ; B=A ALL .con 0x0B0 ; C=N .con 0x0AE ; ACEX ALL .con 0x03C ; RCR 3 .con 0x30E ; ?A<C ALL ; .con 0x2C7 ; GOC -28 LB_A3FD A3FD goc LB_A3FD .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL ; .con 0x2CB ; GONC -27 LB_A401 A401 gonc LB_A401 .con 0x093 ; .con 0x019 ; .con 0x005 ; .con 0x00B ; .NAME "MKEYS" MKEYS: .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL ; .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x00D ; GSUBC 0B03 .con 0x02D ; ; .con 0x00B ; GONC +01 LB_A436 A436 gonc LB_A436 LB_A436: .con 0x005 ; GSUBC 0601 .con 0x019 ; ; .con 0x013 ; GONC +02 LB_A43A A43A gonc LB_A43A .con 0x020 ; SPOPND ;LB_A43A: .con 0x20F ; GOC -3F LB_A3FB A3FB LB_A43A: goc LB_A3FB .con 0x34E ; ?A#0 ALL ; .con 0x033 ; GONC +06 LB_A442 A442 gonc LB_A442 .con 0x104 ; ST=0 8 .con 0x3BD ; GSUBNC MESSL 07EF ; 20E .con 0x01C ; .con 0x20E ; ; .con 0x033 ; GONC +06 LB_A447 A447 gonc LB_A447 LB_A442: .con 0x108 ; ST=1 8 .con 0x3BD ; GSUBNC MESSL 07EF ; 006 206 .con 0x01C ; .con 0x006 ; .con 0x206 ; ;LB_A447: .con 0x349 ; GSB41C LB_A2C7 A2C7 ; GSUBNC 23D2, address in 1st Quad LB_A447: RXQ LB_A2C7 ; .con 0x08C ; ; .con 0x2C7 ; ; .con 0x3AD ; GOL41C LB_AFD6 AFD6 ; GSUBNC 23EB, address in 4th Quad RGO LB_AFD6 ; .con 0x08C ; ; .con 0x3D6 ; .con 0x088 ; .con 0x03E ; .NAME "D>H" D>H: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 009 .con 0x009 ; .con 0x0A6 ; ACEX S&X .con 0x306 ; ?A<C S&X .con 0x0B5 ; GOLC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A3 ; LB_A45D: .con 0x366 ; ?A#C S&X ; .con 0x023 ; GONC +04 LB_A462 A462 gonc LB_A462 .con 0x3DA ; CSR M .con 0x226 ; C=C+1 S&X ; .con 0x3E3 ; GONC -04 LB_A45D A45D gonc LB_A45D LB_A462: .con 0x046 ; C=0 S&X .con 0x39C ; PT= 0 .con 0x260 ; SETHEX .con 0x00E ; A=0 ALL .con 0x0EE ; BCEX ALL .con 0x130 ; LDI 00B .con 0x00B ; LB_A469: .con 0x070 ; N=C .con 0x0AE ; ACEX ALL .con 0x1EE ; C=C+C ALL .con 0x10E ; A=C ALL .con 0x1EE ; C=C+C ALL .con 0x1EE ; C=C+C ALL .con 0x20E ; C=A+C ALL .con 0x00E ; A=0 ALL .con 0x062 ; ABEX @R .con 0x20E ; C=A+C ALL .con 0x0AE ; ACEX ALL .con 0x0EE ; BCEX ALL .con 0x2FC ; RCR 13 .con 0x0EE ; BCEX ALL .con 0x0B0 ; C=N .con 0x266 ; C=C-1 S&X ; .con 0x383 ; GONC -10 LB_A469 A469 gonc LB_A469 .con 0x08E ; B=A ALL .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x130 ; LDI 00D .con 0x00D ; .con 0x106 ; A=C S&X .con 0x0CE ; C=B ALL LB_A481: .con 0x2FE ; ?C#0 MS ; .con 0x04F ; GOC +09 LB_A48B A48B goc LB_A48B .con 0x2FC ; RCR 13 .con 0x1A6 ; A=A-1 S&X ; .con 0x3E3 ; GONC -04 LB_A481 A481 gonc LB_A481 .con 0x04E ; C=0 ALL .con 0x130 ; LDI 030 .con 0x030 ; .con 0x168 ; REGN=C ( 5)M ; .con 0x033 ; GONC +06 LB_A490 A490 gonc LB_A490 LB_A48B: .con 0x0AE ; ACEX ALL .con 0x158 ; M=C ; .con 0x379 ; GSB41C LB_A496 A496 ; GSUBNC 0FDE, address in same Quad RXQ LB_A496 ; .con 0x03C ; ; .con 0x096 ; LB_A490: .con 0x2CC ; ST=1? 13 .con 0x360 ; RTNC .con 0x04C ; ST=1? 4 .con 0x360 ; RTNC .con 0x281 ; GOLNC XPRMPT 03A0 ; HP41 SYSTEM ROM 0 .con 0x00E ; LB_A496: .con 0x05A ; C=0 M .con 0x0AE ; ACEX ALL LB_A498: .con 0x2FC ; RCR 13 .con 0x10E ; A=C ALL .con 0x08E ; B=A ALL .con 0x130 ; LDI 03A .con 0x03A ; .con 0x39C ; PT= 0 .con 0x302 ; ?A<C @R ; .con 0x02F ; GOC +05 LB_A4A4 A4A4 goc LB_A4A4 .con 0x31C ; PT= 1 .con 0x110 ; LC 4 .con 0x1C2 ; A=A-C @R .con 0x162 ; A=A+1 @R LB_A4A4: .con 0x0A2 ; ACEX @R .con 0x3D9 ; GSUBNC APND15 1FF6 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x198 ; C=M .con 0x266 ; C=C-1 S&X .con 0x360 ; RTNC .con 0x158 ; M=C .con 0x0CE ; C=B ALL ; .con 0x363 ; GONC -14 LB_A498 A498 gonc LB_A498 .con 0x084 ; .con 0x03E ; .NAME "H>D" ;H>D: .con 0x379 ; GSB41C LB_A4D9 A4D9 ; GSUBNC 0FDE, address in same Quad H>D: RXQ LB_A4D9 ; .con 0x03C ; ; .con 0x0D9 ; .con 0x2A0 ; SETDEC .con 0x00E ; A=0 ALL .con 0x2DC ; PT= 13 LB_A4B6: .con 0x2FE ; ?C#0 MS ; .con 0x037 ; GOC +06 LB_A4BD A4BD goc LB_A4BD .con 0x2FC ; RCR 13 .con 0x3D4 ; DECPT .con 0x2D4 ; ?PT= 13 ; .con 0x3DB ; GONC -05 LB_A4B6 A4B6 gonc LB_A4B6 ; .con 0x09B ; GONC +13 LB_A4CF A4CF gonc LB_A4CF LB_A4BD: .con 0x0EE ; BCEX ALL .con 0x04E ; C=0 ALL .con 0x0DE ; C=B MS .con 0x2FC ; RCR 13 .con 0x226 ; C=C+1 S&X .con 0x266 ; C=C-1 S&X .con 0x0AE ; ACEX ALL .con 0x1EE ; C=C+C ALL .con 0x1EE ; C=C+C ALL .con 0x1EE ; C=C+C ALL .con 0x1EE ; C=C+C ALL .con 0x14E ; A=A+C ALL .con 0x394 ; ?PT= 0 ; .con 0x02F ; GOC +05 LB_A4CF A4CF goc LB_A4CF .con 0x0CE ; C=B ALL .con 0x2FC ; RCR 13 .con 0x3D4 ; DECPT ; .con 0x37B ; GONC -11 LB_A4BD A4BD gonc LB_A4BD LB_A4CF: .con 0x04E ; C=0 ALL .con 0x0AE ; ACEX ALL .con 0x1BC ; RCR 11 .con 0x05E ; C=0 MS .con 0x130 ; LDI 009 .con 0x009 ; .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0A5 ; GOLNC LXEX 1229 ; HP41 SYSTEM ROM 1 .con 0x04A ; LB_A4D9: .con 0x248 ; ST=1 9 .con 0x1B8 ; C=REGN ( 6)N LB_A4DB: .con 0x0EE ; BCEX ALL .con 0x130 ; LDI 006 .con 0x006 ; LB_A4DE: .con 0x0EE ; BCEX ALL .con 0x37C ; RCR 12 .con 0x3EE ; ASL ALL .con 0x358 ; ST=C .con 0x39C ; PT= 0 .con 0x102 ; A=C @R .con 0x14C ; ST=1? 6 ; .con 0x023 ; GONC +04 LB_A4E9 A4E9 gonc LB_A4E9 .con 0x250 ; LC 9 .con 0x39C ; PT= 0 .con 0x142 ; A=A+C @R LB_A4E9: .con 0x0EE ; BCEX ALL .con 0x266 ; C=C-1 S&X ; .con 0x39B ; GONC -0D LB_A4DE A4DE gonc LB_A4DE .con 0x24C ; ST=1? 9 ; .con 0x023 ; GONC +04 LB_A4F1 A4F1 gonc LB_A4F1 .con 0x244 ; ST=0 9 .con 0x178 ; C=REGN ( 5)M ; .con 0x35B ; GONC -15 LB_A4DB A4DB gonc LB_A4DB LB_A4F1: .con 0x0AE ; ACEX ALL .con 0x3E0 ; RTN .con 0x0BF ; .con 0x019 ; .con 0x03D ; .con 0x03E ; .NAME "X>=Y?" X>=Y?: .con 0x0B8 ; C=REGN ( 2)Y ; .con 0x03B ; GONC +07 LB_A500 A500 gonc LB_A500 .con 0x0BF ; .con 0x030 ; .con 0x03D ; .con 0x03E ; .NAME "X>=0?" X>=0?: .con 0x04E ; C=0 ALL LB_A500: .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x070 ; N=C .con 0x36E ; ?A#C ALL .con 0x065 ; GOLNC NOSKP 1619 ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x3E1 ; GOLNC XX>Y? 15F8 ; HP41 SYSTEM ROM 1 .con 0x056 ; .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP ; .con 0x0BF ; GOC +17 LB_A523 A523 goc LB_A523 .con 0x00E ; A=0 ALL .con 0x005 ; GOLNC 0501 .con 0x016 ; .con 0x005 ; GSUBNC 9201 .con 0x248 ; ; .con 0x033 ; GONC +06 LB_A518 A518 gonc LB_A518 ; .con 0x0BF ; GOC +17 LB_A52A A52A goc LB_A52A .con 0x004 ; ST=0 3 .con 0x004 ; ST=0 3 ; .con 0x00F ; GOC +01 LB_A517 A517 goc LB_A517 LB_A517: .con 0x244 ; ST=0 9 LB_A518: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x070 ; N=C LB_A523: .con 0x044 ; ST=0 4 .con 0x171 ; GSUBNC MOD10 195C ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x00E ; A=0 ALL .con 0x24C ; ST=1? 9 .con 0x0B1 ; GOLNC XYN 162C ; HP41 SYSTEM ROM 1 .con 0x05A ; LB_A52A: .con 0x05D ; GOLNC XYY 1617 ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x0B3 ; .con 0x01E ; .NAME "X^3" X^3: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x10E ; A=C ALL .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x0F3 ; GONC +1E LB_A556 A556 gonc LB_A556 .con 0x094 ; .con 0x012 ; .con 0x002 ; .NAME "CBRT" CBRT: .con 0x0F8 ; C=REGN ( 3)X .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x104 ; ST=0 8 .con 0x2FE ; ?C#0 MS ; .con 0x01B ; GONC +03 LB_A547 A547 gonc LB_A547 .con 0x05E ; C=0 MS .con 0x108 ; ST=1 8 LB_A547: .con 0x3C4 ; CLRST .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x0D0 ; LC 3 .con 0x269 ; GSUBNC DV1-10 189A ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x044 ; ST=0 4 .con 0x035 ; GSUBNC EXP13 1A0D ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x10C ; ST=1? 8 ; .con 0x01B ; GONC +03 LB_A556 A556 gonc LB_A556 .con 0x2BE ; C=-C-1 MS .con 0x000 ; NOP LB_A556: .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x098 ; .con 0x01E ; .con 0x00E ; .NAME "NN^X" NN^X: .con 0x2CC ; ST=1? 13 ; .con 0x027 ; GOC +04 LB_A561 A561 goc LB_A561 ; .con 0x349 ; GSB41C -SNDMATH_IV A2BB ; GSUBNC 23D2, address in 1st Quad RXQ -SNDMATH_IV ; .con 0x08C ; ; .con 0x2BB ; LB_A561: .con 0x244 ; ST=0 9 ; .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x0AE ; ACEX ALL .con 0x2FE ; ?C#0 MS ; .con 0x023 ; GONC +04 LB_A56B A56B gonc LB_A56B .con 0x248 ; ST=1 9 .con 0x05E ; C=0 MS .con 0x0E8 ; REGN=C ( 3)X LB_A56B: .con 0x04E ; C=0 ALL .con 0x070 ; N=C .con 0x0B8 ; C=REGN ( 2)Y .con 0x05E ; C=0 MS .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; LB_A572: .con 0x2FA ; ?C#0 M ; .con 0x0CB ; GONC +19 LB_A58C A58C gonc LB_A58C .con 0x0A8 ; REGN=C ( 2)Y .con 0x3CC ; CHKKB .con 0x360 ; RTNC .con 0x0F8 ; C=REGN ( 3)X .con 0x3C4 ; CLRST .con 0x045 ; GSUBNC XY^X 1B11 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x2F6 ; ?C#0 XS .con 0x289 ; GOLC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x003 ; .con 0x24C ; ST=1? 9 .con 0x239 ; GSUBC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x061 ; .con 0x0B0 ; C=N .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x070 ; N=C .con 0x0B8 ; C=REGN ( 2)Y .con 0x02E ; B=0 ALL .con 0x0FA ; BCEX M .con 0x0AE ; ACEX ALL .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x33B ; GONC -19 LB_A572 A572 gonc LB_A572 LB_A58C: .con 0x0B0 ; C=N .con 0x369 ; GOLNC NFRXY 00DA ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_A58F: .con 0x3A1 ; GSUBNC ERRSUB 22E8 ; HP41 SYSTEM ROM 2 .con 0x088 ; ; .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x002 ; A=0 @R .con 0x001 ; GOLC 0400 .con 0x013 ; .con 0x005 ; GOLNC NAME31 0F01 ; HP41 SYSTEM ROM 0 .con 0x03E ; ; .con 0x033 ; GONC +06 LB_A59F A59F gonc LB_A59F .con 0x236 ; C=C+1 XS ; .con 0x341 ; GOL41C LB_A2C7 A2C7 ; GSUBNC 23D0, address in 1st Quad RGO LB_A2C7 ; .con 0x08C ; ; .con 0x2C7 ; .con 0x093 ; LB_A59F: .con 0x002 ; .con 0x03E ; .NAME "T>BS" ;T>BS: .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad T>BS: RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x05E ; C=0 MS .con 0x2E0 ; DISOFF .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0A8 ; REGN=C ( 2)Y .con 0x260 ; SETHEX .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x266 ; C=C-1 S&X .con 0x2E6 ; ?C#0 S&X .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 024 .con 0x024 ; .con 0x306 ; ?A<C S&X ; .con 0x2CB ; GONC -27 LB_A58F A58F gonc LB_A58F .con 0x130 ; LDI 00C .con 0x00C ; .con 0x268 ; REGN=C ( 9)Q .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x0F8 ; C=REGN ( 3)X LB_A5BF: .con 0x2A0 ; SETDEC .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x2FA ; ?C#0 M ; .con 0x02F ; GOC +05 LB_A5C9 A5C9 goc LB_A5C9 .con 0x260 ; SETHEX ; .con 0x389 ; GOL41C LB_A809 A809 ; GSUBNC 23E2, address in 3rd Quad RGO LB_A809 ; .con 0x08C ; ; .con 0x009 ; LB_A5C9: .con 0x158 ; M=C .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x070 ; N=C .con 0x171 ; GSUBNC MOD10 195C ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x260 ; SETHEX .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 030 .con 0x030 ; .con 0x146 ; A=A+C S&X .con 0x130 ; LDI 03A .con 0x03A ; .con 0x306 ; ?A<C S&X ; .con 0x01F ; GOC +03 LB_A5DC A5DC goc LB_A5DC .con 0x1C6 ; A=A-C S&X .con 0x166 ; A=A+1 S&X LB_A5DC: .con 0x3D9 ; GSUBNC ENLCD 07F6 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x0A6 ; ACEX S&X .con 0x328 ; REGN=C (12)b .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x278 ; C=REGN ( 9)Q .con 0x266 ; C=C-1 S&X .con 0x289 ; GOLC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x003 ; .con 0x268 ; REGN=C ( 9)Q .con 0x2A0 ; SETDEC .con 0x198 ; C=M .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x261 ; GSUBNC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x293 ; GONC -2E LB_A5BF A5BF gonc LB_A5BF .con 0x094 ; ?PT= 5 .con 0x012 ; A=0 P-Q ; .con 0x00F ; GOC +01 LB_A5F1 A5F1 goc LB_A5F1 ;LB_A5F1: .con 0x013 ; GONC +02 LB_A5F3 A5F3 LB_A5F1: gonc LB_A5F3 .con 0x014 ; ?PT= 3 ;LB_A5F3: .con 0x013 ; GONC +02 LB_A5F5 A5F5 LB_A5F3: gonc LB_A5F5 .con 0x2A0 ; SETDEC LB_A5F5: .con 0x04E ; C=0 ALL .con 0x23A ; C=C+1 M .con 0x070 ; N=C ; .con 0x375 ; GSB41C LB_A610 A610 ; GSUBNC 0FDD, address in same Quad RXQ LB_A610 ; .con 0x03C ; ; .con 0x210 ; .con 0x0D0 ; LC 3 .con 0x39C ; PT= 0 .con 0x090 ; LC 2 .con 0x070 ; N=C ; .con 0x375 ; GSB41C LB_A610 A610 ; GSUBNC 0FDD, address in same Quad RXQ LB_A610 ; .con 0x03C ; ; .con 0x210 ; .con 0x090 ; LC 2 .con 0x070 ; N=C ; .con 0x375 ; GSB41C LB_A610 A610 ; GSUBNC 0FDD, address in same Quad RXQ LB_A610 ; .con 0x03C ; ; .con 0x210 ; .con 0x0D0 ; LC 3 .con 0x226 ; C=C+1 S&X .con 0x070 ; N=C ; .con 0x375 ; GSB41C LB_A610 A610 ; GSUBNC 0FDD, address in same Quad RXQ LB_A610 ; .con 0x03C ; ; .con 0x210 ; .con 0x090 ; LC 2 .con 0x226 ; C=C+1 S&X .con 0x070 ; N=C LB_A610: .con 0x0B0 ; C=N .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x10E ; A=C ALL .con 0x0B0 ; C=N .con 0x03C ; RCR 3 .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x351 ; GSUBNC CHK$S1 14D4 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x2BE ; C=-C-1 MS .con 0x000 ; NOP .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x01C ; PT= 3 .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x05A ; C=0 M .con 0x046 ; C=0 S&X .con 0x23E ; C=C+1 MS .con 0x360 ; RTNC .con 0x0B0 ; C=N .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x10E ; A=C ALL .con 0x0B0 ; C=N .con 0x03C ; RCR 3 .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0AE ; ACEX ALL .con 0x2F0 ; DATA=C .con 0x0B0 ; C=N .con 0x270 ; DADD=C .con 0x0AE ; ACEX ALL .con 0x2F0 ; DATA=C .con 0x04E ; C=0 ALL .con 0x3E0 ; RTN .con 0x093 ; .con 0x03E ; .NAME "R>S" R>S: .con 0x108 ; ST=1 8 ; .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; ; .con 0x375 ; GSB41C LB_A646 A646 ; GSUBNC 0FDD, address in same Quad RXQ LB_A646 ; .con 0x03C ; ; .con 0x246 ; .con 0x3B5 ; GSUBNC R^SUB 14ED ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0E8 ; REGN=C ( 3)X .con 0x104 ; ST=0 8 LB_A646: .con 0x2A0 ; SETDEC .con 0x0B8 ; C=REGN ( 2)Y .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x070 ; N=C .con 0x351 ; GSUBNC TRGSET 21D4 ; HP41 SYSTEM ROM 2 .con 0x084 ; .con 0x125 ; GSUBNC TOPOL 1D49 ; HP41 SYSTEM ROM 1 .con 0x074 ; .con 0x05E ; C=0 MS .con 0x0E8 ; REGN=C ( 3)X .con 0x0F0 ; CNEX ; .con 0x11B ; GONC +23 LB_A675 A675 gonc LB_A675 .con 0x092 ; .con 0x03E ; .NAME "S>R" S>R: .con 0x108 ; ST=1 8 ; .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; ; .con 0x375 ; GSB41C LB_A664 A664 ; GSUBNC 0FDD, address in same Quad RXQ LB_A664 ; .con 0x03C ; ; .con 0x264 ; .con 0x3A5 ; GSUBNC RDNSUB 14E9 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x068 ; REGN=C ( 1)Z .con 0x104 ; ST=0 8 LB_A664: .con 0x2A0 ; SETDEC .con 0x0B8 ; C=REGN ( 2)Y .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x070 ; N=C .con 0x351 ; GSUBNC TRGSET 21D4 ; HP41 SYSTEM ROM 2 .con 0x084 ; .con 0x1D5 ; GSUBNC TOREC 1E75 ; HP41 SYSTEM ROM 1 .con 0x078 ; .con 0x2FA ; ?C#0 M ; .con 0x017 ; GOC +02 LB_A670 A670 goc LB_A670 .con 0x05E ; C=0 MS LB_A670: .con 0x0E8 ; REGN=C ( 3)X .con 0x0F0 ; CNEX .con 0x2FA ; ?C#0 M ; .con 0x017 ; GOC +02 LB_A675 A675 goc LB_A675 .con 0x05E ; C=0 MS LB_A675: .con 0x0A8 ; REGN=C ( 2)Y .con 0x10C ; ST=1? 8 .con 0x360 ; RTNC .con 0x3C1 ; GOLNC NFRPU 00F0 ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x098 ; C=G .con 0x001 ; GSUBNC 0500 .con 0x014 ; .con 0x005 ; GOLNC 0601 .con 0x01A ; .con 0x0AE ; ACEX ALL ; .con 0x389 ; GOL41C LB_AAAA AAAA ; GSUBNC 23E2, address in 3rd Quad RGO LB_AAAA ; .con 0x08C ; ; .con 0x2AA ; ; .con 0x163 ; GONC +2C LB_A6AF A6AF gonc LB_A6AF .con 0x1B1 ; GSUBNC CPYNE 216C ; HP41 SYSTEM ROM 2 .con 0x084 ; .con 0x11A ; A=C M .con 0x015 ; GSUBNC 5505 .con 0x154 ; .con 0x185 ; GSUBC 4061 .con 0x101 ; .con 0x1A0 ; CLRABC .con 0x0C0 ; UNDEF0C0 .con 0x131 ; GOLC 4D4C .con 0x137 ; .con 0x11A ; A=C M .con 0x015 ; GOLNC 5105 .con 0x146 ; .con 0x1B1 ; GOLNC 266C .con 0x09A ; .con 0x17A ; A=A+1 M .con 0x171 ; GSUBC 505C .con 0x141 ; .con 0x131 ; GSUBNC 784C .con 0x1E0 ; .con 0x015 ; GSUBNC 2005 .con 0x080 ; ; .con 0x11B ; GONC +23 LB_A6BE A6BE gonc LB_A6BE .con 0x15C ; PT= 6 ; .con 0x127 ; GOC +24 LB_A6C1 A6C1 goc LB_A6C1 .con 0x142 ; A=A+C @R .con 0x159 ; GOLNC 5056 .con 0x142 ; .con 0x172 ; A=A+1 P-Q .con 0x195 ; GOLNC 1C65 .con 0x072 ; .con 0x192 ; A=A-B P-Q ; .con 0x073 ; GONC +0E LB_A6B3 A6B3 gonc LB_A6B3 ; .con 0x127 ; GOC +24 LB_A6CA A6CA goc LB_A6CA ; .con 0x153 ; GONC +2A LB_A6D1 A6D1 gonc LB_A6D1 .con 0x142 ; A=A+C @R .con 0x121 ; GSUBNC 6848 .con 0x1A0 ; .con 0x081 ; GOLC 5020 .con 0x143 ; .con 0x185 ; GSUBC 4061 .con 0x101 ; LB_A6AF: .con 0x111 ; GSUBNC 0544 .con 0x014 ; LB_A6B1: .con 0x130 ; LDI 133 .con 0x133 ; LB_A6B3: .con 0x17A ; A=A+1 M .con 0x132 ; A=A+B P-Q .con 0x134 ; UNDEF134 .con 0x135 ; GSUBNC 554D .con 0x154 ; .con 0x136 ; A=A+B XS ; .con 0x177 ; GOC +2E LB_A6E7 A6E7 goc LB_A6E7 .con 0x102 ; A=C @R .con 0x125 ; GSUBNC 4849 .con 0x120 ; .con 0x121 ; GSUBNC 5548 LB_A6BE: .con 0x154 ; ; .con 0x153 ; GONC +2A LB_A6E9 A6E9 gonc LB_A6E9 .con 0x142 ; A=A+C @R LB_A6C1: .con 0x126 ; A=A+B S&X .con 0x154 ; ?PT= 6 .con 0x136 ; A=A+B XS .con 0x142 ; A=A+C @R .con 0x140 ; ENROM3 .con 0x120 ; ?P=Q ; .con 0x183 ; GONC +30 LB_A6F7 A6F7 gonc LB_A6F7 .con 0x192 ; A=A-B P-Q .con 0x072 ; ABEX P-Q LB_A6CA: .con 0x194 ; ?PT= 11 .con 0x072 ; ABEX P-Q .con 0x141 ; GSUBNC 4950 .con 0x124 ; .con 0x142 ; A=A+C @R ; .con 0x123 ; GONC +24 MANTXP A6F3 gonc MANTXP .con 0x151 ; GSUBNC 4854 LB_A6D1: .con 0x120 ; ; .con 0x197 ; GOC +32 LB_A704 A704 goc LB_A704 ; .con 0x073 ; GONC +0E LB_A6E1 A6E1 gonc LB_A6E1 .con 0x1F0 ; WPTOG .con 0x151 ; GSUBC 5054 .con 0x141 ; .con 0x192 ; A=A-B P-Q ; .con 0x073 ; GONC +0E LB_A6E6 A6E6 gonc LB_A6E6 ; .con 0x143 ; GONC +28 LB_A701 A701 gonc LB_A701 .con 0x134 ; UNDEF134 .con 0x192 ; A=A-B P-Q .con 0x005 ; GSUBC 5C01 .con 0x171 ; ; .con 0x197 ; GOC +32 LB_A710 A710 goc LB_A710 .con 0x000 ; NOP .con 0x1B2 ; A=A-1 P-Q LB_A6E1: .con 0x028 ; REGN=C ( 0)T .con 0x125 ; GOLC 5049 .con 0x143 ; ; .con 0x11B ; GONC +23 LB_A707 A707 gonc LB_A707 .con 0x121 ; GSUBC 5048 LB_A6E6: .con 0x141 ; LB_A6E7: .con 0x1A0 ; CLRABC .con 0x0C1 ; GOLC 5030 LB_A6E9: .con 0x143 ; .con 0x1C0 ; ENROM4 .con 0x010 ; LC 0 ; .con 0x22F ; GOC -3B LB_A6B1 A6B1 goc LB_A6B1 .con 0x090 ; .con 0x018 ; .con 0x014 ; .con 0x00E ; .con 0x001 ; .NAME "MANTXP" MANTXP: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x128 ; REGN=C ( 4)L LB_A6F7: .con 0x260 ; SETHEX .con 0x05E ; C=0 MS .con 0x05A ; C=0 M .con 0x21C ; PT= 2 .con 0x2E2 ; ?C#0 @R ; .con 0x05B ; GONC +0B LB_A707 A707 gonc LB_A707 .con 0x042 ; C=0 @R .con 0x0A6 ; ACEX S&X .con 0x130 ; LDI 100 .con 0x100 ; LB_A701: .con 0x0A6 ; ACEX S&X .con 0x2A0 ; SETDEC .con 0x1C6 ; A=A-C S&X LB_A704: .con 0x04E ; C=0 ALL .con 0x0A6 ; ACEX S&X .con 0x250 ; LC 9 LB_A707: .con 0x260 ; SETHEX .con 0x03C ; RCR 3 .con 0x130 ; LDI 001 .con 0x001 ; .con 0x0AE ; ACEX ALL .con 0x35C ; PT= 12 .con 0x342 ; ?A#0 @R ; .con 0x01F ; GOC +03 LB_A711 A711 goc LB_A711 .con 0x3FA ; ASL M LB_A710: .con 0x1A6 ; A=A-1 S&X LB_A711: .con 0x0AE ; ACEX ALL .con 0x0E8 ; REGN=C ( 3)X .con 0x3B5 ; GSUBNC R^SUB 14ED ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x138 ; C=REGN ( 4)L .con 0x2A0 ; SETDEC .con 0x130 ; LDI 009 .con 0x009 ; .con 0x01C ; PT= 3 LB_A71A: .con 0x2E2 ; ?C#0 @R ; .con 0x02F ; GOC +05 LB_A720 A720 goc LB_A720 .con 0x3DC ; INCPT .con 0x266 ; C=C-1 S&X ; .con 0x3E3 ; GONC -04 LB_A71A A71A gonc LB_A71A .con 0x04E ; C=0 ALL LB_A720: .con 0x0E8 ; REGN=C ( 3)X .con 0x3E0 ; RTN .con 0x0BF ; .con 0x012 ; .con 0x019 ; .con 0x03D ; .NAME "X=YR?" ;X=YR?: .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad X=YR?: RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x288 ; ST=1 7 .con 0x0BD ; GSUBNC XRND 0A2F ; HP41 SYSTEM ROM 0 .con 0x028 ; .con 0x070 ; N=C .con 0x3B8 ; C=REGN (14)d .con 0x23C ; RCR 2 .con 0x358 ; ST=C .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x0D5 ; GSUBNC ROUND 0A35 ; HP41 SYSTEM ROM 0 .con 0x028 ; .con 0x0AE ; ACEX ALL .con 0x0B0 ; C=N .con 0x3C4 ; CLRST .con 0x36E ; ?A#C ALL .con 0x065 ; GOLNC NOSKP 1619 ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x0B9 ; GOLNC SKP 162E ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x098 ; .con 0x02F ; .con 0x031 ; .con 0x01E ; .NAME "Y^1/X" Y^1/X: .con 0x104 ; ST=0 8 ; .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x2FE ; ?C#0 MS ; .con 0x023 ; GONC +04 LB_A74B A74B gonc LB_A74B .con 0x2BE ; C=-C-1 MS .con 0x108 ; ST=1 8 .con 0x0A8 ; REGN=C ( 2)Y LB_A74B: .con 0x0F8 ; C=REGN ( 3)X .con 0x128 ; REGN=C ( 4)L .con 0x22D ; GSUBNC ON/X10 188B ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x3C4 ; CLRST .con 0x051 ; GSUBNC 1B14 .con 0x06C ; .con 0x10C ; ST=1? 8 ; .con 0x013 ; GONC +02 LB_A756 A756 gonc LB_A756 .con 0x2BE ; C=-C-1 MS LB_A756: .con 0x10E ; A=C ALL .con 0x138 ; C=REGN ( 4)L .con 0x0E8 ; REGN=C ( 3)X .con 0x0AE ; ACEX ALL .con 0x369 ; GOLNC NFRXY 00DA ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x0B2 ; .con 0x00E ; .con 0x001 ; .con 0x014 ; .NAME "ATAN2" ATAN2: .con 0x084 ; ST=0 5 .con 0x089 ; GSUBNC XRAD 1722 ; HP41 SYSTEM ROM 1 .con 0x05C ; ; .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x0AE ; ACEX ALL .con 0x000 ; NOP .con 0x2EE ; ?C#0 ALL ; .con 0x0B3 ; GONC +16 LB_A780 A780 gonc LB_A780 .con 0x2FE ; ?C#0 MS ; .con 0x013 ; GONC +02 LB_A76E A76E gonc LB_A76E .con 0x088 ; ST=1 5 LB_A76E: .con 0x261 ; GSUBNC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x070 ; N=C .con 0x2A9 ; GSUBNC ATAN 10AA ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x08C ; ST=1? 5 ; .con 0x09B ; GONC +13 LB_A787 A787 gonc LB_A787 .con 0x269 ; GSUBNC PI/2 199A ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x1EE ; C=C+C ALL .con 0x35E ; ?A#0 MS ; .con 0x027 ; GOC +04 LB_A77D A77D goc LB_A77D .con 0x1D8 ; CMEX .con 0x2BE ; C=-C-1 MS .con 0x1D8 ; CMEX LB_A77D: .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x043 ; GONC +08 LB_A787 A787 gonc LB_A787 LB_A780: .con 0x269 ; GSUBNC PI/2 199A ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x046 ; C=0 S&X .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x11E ; A=C MS .con 0x0AE ; ACEX ALL LB_A787: .con 0x369 ; GOLNC NFRXY 00DA ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x0BF ; .con 0x014 ; .con 0x00E ; .NAME "INT?" INT?: .con 0x248 ; ST=1 9 ; .con 0x033 ; GONC +06 LB_A794 A794 gonc LB_A794 .con 0x0BF ; .con 0x003 ; .con 0x012 ; .NAME "FRC?" FRC?: .con 0x244 ; ST=0 9 LB_A794: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x00E ; A=0 ALL .con 0x24C ; ST=1? 9 .con 0x0B1 ; GOLNC XYN 162C ; HP41 SYSTEM ROM 1 .con 0x05A ; .con 0x05D ; GOLNC XYY 1617 ; HP41 SYSTEM ROM 1 .con 0x05A ; LB_A7A0: .con 0x071 ; GSUBNC XDEG 171C ; HP41 SYSTEM ROM 1 .con 0x05C ; ; .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x084 ; ST=0 5 .con 0x2C9 ; GOLNC XTOHRS 19B2 ; HP41 SYSTEM ROM 1 .con 0x066 ; .con 0x0AA ; .con 0x013 ; .con 0x00D ; .NAME "HMS*" HMS*: .con 0x248 ; ST=1 9 ; .con 0x033 ; GONC +06 LB_A7B3 A7B3 gonc LB_A7B3 .con 0x0AF ; .con 0x013 ; .con 0x00D ; .NAME "HMS/" HMS/: .con 0x244 ; ST=0 9 ;LB_A7B3: .con 0x379 ; GSB41C LB_A7A0 A7A0 ; GSUBNC 0FDE, address in same Quad LB_A7B3: RXQ LB_A7A0 ; .con 0x03C ; ; .con 0x3A0 ; .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x24C ; ST=1? 9 .con 0x261 ; GSUBNC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 .con 0x135 ; GSUBC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x061 ; .con 0x088 ; ST=1 5 .con 0x2C9 ; GSUBNC XTOHRS 19B2 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x369 ; GOLNC NFRXY 00DA ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x090 ; .con 0x03E ; .NAME "R>P" ;R>P: .con 0x379 ; GSB41C LB_A7A0 A7A0 ; GSUBNC 0FDE, address in same Quad R>P: RXQ LB_A7A0 ; .con 0x03C ; ; .con 0x3A0 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x070 ; N=C .con 0x351 ; GSUBNC TRGSET 21D4 ; HP41 SYSTEM ROM 2 .con 0x084 ; .con 0x125 ; GSUBNC TOPOL 1D49 ; HP41 SYSTEM ROM 1 .con 0x074 ; .con 0x0F0 ; CNEX .con 0x2FE ; ?C#0 MS ; .con 0x053 ; GONC +0A LB_A7DB A7DB gonc LB_A7DB .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x0D0 ; LC 3 .con 0x190 ; LC 6 .con 0x130 ; LDI 002 .con 0x002 ; .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; LB_A7DB: .con 0x088 ; ST=1 5 .con 0x2C9 ; GSUBNC XTOHRS 19B2 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0F0 ; CNEX .con 0x295 ; GOLNC NFRNC 00A5 ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x092 ; .con 0x03E ; .NAME "P>R" ;P>R: .con 0x379 ; GSB41C LB_A7A0 A7A0 ; GSUBNC 0FDE, address in same Quad P>R: RXQ LB_A7A0 ; .con 0x03C ; ; .con 0x3A0 ; .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x070 ; N=C .con 0x371 ; GOLNC P-R 11DC ; HP41 SYSTEM ROM 1 .con 0x046 ; .con 0x098 ; .con 0x019 ; .con 0x013 ; .con 0x008 ; .NAME "CHSYX" ;CHSYX: .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad CHSYX: RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x2EE ; ?C#0 ALL ; .con 0x093 ; GONC +12 LB_A807 A807 gonc LB_A807 .con 0x0F8 ; C=REGN ( 3)X .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x044 ; ST=0 4 .con 0x070 ; N=C .con 0x171 ; GSUBNC MOD10 195C ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x2EE ; ?C#0 ALL ; .con 0x023 ; GONC +04 LB_A807 A807 gonc LB_A807 .con 0x0B8 ; C=REGN ( 2)Y .con 0x2BE ; C=-C-1 MS .con 0x0A8 ; REGN=C ( 2)Y LB_A807: .con 0x2F5 ; GOLNC XRDN 14BD ; HP41 SYSTEM ROM 1 .con 0x052 ; LB_A809: .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; LB_A80B: .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 0x0BB ; GONC +17 LB_A829 A829 gonc LB_A829 .con 0x0AE ; ACEX ALL .con 0x130 ; LDI 100 .con 0x100 ; .con 0x306 ; ?A<C S&X ; .con 0x02F ; GOC +05 LB_A81C A81C goc LB_A81C .con 0x130 ; LDI 0A0 .con 0x0A0 ; .con 0x1C6 ; A=A-C S&X ; .con 0x043 ; GONC +08 LB_A823 A823 gonc LB_A823 LB_A81C: .con 0x130 ; LDI 01B .con 0x01B ; .con 0x306 ; ?A<C S&X ; .con 0x023 ; GONC +04 LB_A823 A823 gonc LB_A823 .con 0x130 ; LDI 040 .con 0x040 ; .con 0x146 ; A=A+C S&X LB_A823: .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x0AE ; ACEX ALL .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; ; .con 0x31B ; GONC -1D LB_A80B A80B gonc LB_A80B LB_A829: .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 0x094 ; .con 0x00F ; .con 0x00F ; .con 0x012 ; .NAME "QROOT" ;QROOT: .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad QROOT: RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x0AE ; ACEX ALL .con 0x2BE ; C=-C-1 MS .con 0x10E ; A=C ALL .con 0x078 ; C=REGN ( 1)Z .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x261 ; GSUBNC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x078 ; C=REGN ( 1)Z .con 0x10E ; A=C ALL .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0B8 ; C=REGN ( 2)Y .con 0x2BE ; C=-C-1 MS .con 0x244 ; ST=0 9 .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2FE ; ?C#0 MS ; .con 0x01B ; GONC +03 LB_A857 A857 gonc LB_A857 .con 0x01E ; A=0 MS .con 0x248 ; ST=1 9 LB_A857: .con 0x305 ; GSUBNC SQR13 18C1 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x24C ; ST=1? 9 ; .con 0x02B ; GONC +05 LB_A85F A85F gonc LB_A85F .con 0x0A8 ; REGN=C ( 2)Y .con 0x04E ; C=0 ALL .con 0x068 ; REGN=C ( 1)Z ; .con 0x073 ; GONC +0E LB_A86C A86C gonc LB_A86C LB_A85F: .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0A8 ; REGN=C ( 2)Y .con 0x0A9 ; GSUBNC EXSCR 192A ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x1BE ; A=A-1 MS .con 0x0F8 ; C=REGN ( 3)X .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X LB_A86C: .con 0x260 ; SETHEX .con 0x2CC ; ST=1? 13 .con 0x360 ; RTNC ; .con 0x05B ; GONC +0B LB_A87A A87A gonc LB_A87A .con 0x094 ; .con 0x015 ; .con 0x00F ; .con 0x012 ; .NAME "QROUT" QROUT: .con 0x244 ; ST=0 9 .con 0x078 ; C=REGN ( 1)Z .con 0x2EE ; ?C#0 ALL ; .con 0x017 ; GOC +02 LB_A87A A87A goc LB_A87A .con 0x248 ; ST=1 9 LB_A87A: .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x24C ; ST=1? 9 ; .con 0x0AB ; GONC +15 LB_A892 A892 gonc LB_A892 .con 0x130 ; LDI 05A .con 0x05A ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x130 ; LDI 03D .con 0x03D ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x0F8 ; C=REGN ( 3)X .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x130 ; LDI 023 .con 0x023 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x130 ; LDI 04A .con 0x04A ; ; .con 0x09B ; GONC +13 LB_A8A4 A8A4 gonc LB_A8A4 LB_A892: .con 0x0F8 ; C=REGN ( 3)X .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x130 ; LDI 020 .con 0x020 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x130 ; LDI 026 .con 0x026 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x0B8 ; C=REGN ( 2)Y .con 0x2FE ; ?C#0 MS ; .con 0x037 ; GOC +06 LB_A8A7 A8A7 goc LB_A8A7 .con 0x130 ; LDI 020 .con 0x020 ; LB_A8A4: .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; LB_A8A6: .con 0x0B8 ; C=REGN ( 2)Y LB_A8A7: .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .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 0x085 ; .con 0x00E ; .con 0x009 ; .con 0x00C ; .con 0x014 ; .NAME "STLINE" STLINE: .con 0x078 ; C=REGN ( 1)Z .con 0x2A0 ; SETDEC .con 0x2BE ; C=-C-1 MS .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x351 ; GSUBNC CHK$S1 14D4 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x2BE ; C=-C-1 MS .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x351 ; GSUBNC CHK$S1 14D4 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x275 ; GSUBNC DV2-13 189D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x078 ; C=REGN ( 1)Z .con 0x2BE ; C=-C-1 MS .con 0x000 ; NOP .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0A8 ; REGN=C ( 2)Y .con 0x260 ; SETHEX .con 0x2CC ; ST=1? 13 .con 0x360 ; RTNC .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x130 ; LDI 059 .con 0x059 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x130 ; LDI 03D .con 0x03D ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x0F8 ; C=REGN ( 3)X .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x130 ; LDI 02A .con 0x02A ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x130 ; LDI 058 .con 0x058 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x0B8 ; C=REGN ( 2)Y .con 0x2FE ; ?C#0 MS ; .con 0x02F ; GOC +05 LB_A8FD A8FD goc LB_A8FD .con 0x130 ; LDI 02B .con 0x02B ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; ;LB_A8FD: .con 0x365 ; GOL41C LB_A8A6 A8A6 ; GSUBNC 0FD9, address in same Quad LB_A8FD: RGO LB_A8A6 ; .con 0x03C ; ; .con 0x0A6 ; .con 0x0B1 ; GSUBNC 032C .con 0x00C ; ; .con 0x017 ; GOC +02 LB_A904 A904 goc LB_A904 .con 0x248 ; ST=1 9 ;LB_A904: .con 0x02B ; GONC +05 LB_A909 A909 LB_A904: gonc LB_A909 .con 0x0B0 ; C=N .con 0x00C ; ST=1? 3 ; .con 0x017 ; GOC +02 LB_A909 A909 goc LB_A909 .con 0x244 ; ST=0 9 LB_A909: .con 0x2CC ; ST=1? 13 ; .con 0x027 ; GOC +04 LB_A90E A90E goc LB_A90E ; .con 0x349 ; GSB41C -SNDMATH_IV A2BB ; GSUBNC 23D2, address in 1st Quad RXQ -SNDMATH_IV ; .con 0x08C ; ; .con 0x2BB ; LB_A90E: .con 0x0F8 ; C=REGN ( 3)X .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x24C ; ST=1? 9 ; .con 0x023 ; GONC +04 LB_A918 A918 gonc LB_A918 .con 0x2FE ; ?C#0 MS .con 0x0B5 ; GOLNC ERRDE 282D ; HP41 SYSTEM ROM 2 .con 0x0A2 ; LB_A918: .con 0x1A0 ; CLRABC .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x044 ; ST=0 4 .con 0x035 ; GSUBNC EXP13 1A0D ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2FE ; ?C#0 MS .con 0x289 ; GOLC ERROF 00A2 ; HP41 SYSTEM ROM 0 .con 0x003 ; .con 0x2FA ; ?C#0 M ; .con 0x037 ; GOC +06 LB_A92C A92C goc LB_A92C .con 0x1A0 ; CLRABC .con 0x009 ; GSUBNC SUBONE 1802 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_A92C: .con 0x24C ; ST=1? 9 ; .con 0x033 ; GONC +06 LB_A933 A933 gonc LB_A933 .con 0x04E ; C=0 ALL .con 0x2DC ; PT= 13 .con 0x250 ; LC 9 .con 0x090 ; LC 2 ; .con 0x03B ; GONC +07 LB_A939 A939 gonc LB_A939 LB_A933: .con 0x0F8 ; C=REGN ( 3)X .con 0x05E ; C=0 MS .con 0x084 ; ST=0 5 .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x05E ; C=0 MS LB_A939: .con 0x128 ; REGN=C ( 4)L LB_A93A: .con 0x3CC ; CHKKB .con 0x360 ; RTNC .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x138 ; C=REGN ( 4)L .con 0x2BE ; C=-C-1 MS .con 0x044 ; ST=0 4 .con 0x029 ; GSUBNC EXP10 1A0A ; HP41 SYSTEM ROM 1 .con 0x068 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2BE ; C=-C-1 MS .con 0x11E ; A=C MS .con 0x138 ; C=REGN ( 4)L .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x138 ; C=REGN ( 4)L .con 0x02E ; B=0 ALL .con 0x0FA ; BCEX M .con 0x0AE ; ACEX ALL .con 0x001 ; GSUBNC ADDONE 1800 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x24D ; GSUBNC X/Y13 1893 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2BE ; C=-C-1 MS .con 0x11E ; A=C MS .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x138 ; C=REGN ( 4)L .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x128 ; REGN=C ( 4)L .con 0x0A9 ; GSUBNC EXSCR 192A ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x01E ; A=0 MS .con 0x04E ; C=0 ALL .con 0x2BE ; C=-C-1 MS .con 0x35C ; PT= 12 .con 0x050 ; LC 1 .con 0x266 ; C=C-1 S&X .con 0x39C ; PT= 0 .con 0x050 ; LC 1 .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x2FE ; ?C#0 MS ; .con 0x273 ; GONC -32 LB_A93A A93A gonc LB_A93A .con 0x138 ; C=REGN ( 4)L .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 LB_A96F: .con 0x002 ; .con 0x084 ; .con 0x03E ; .con 0x013 ; .NAME "BS>D" BS>D: .con 0x0AE ; ACEX ALL ; .con 0x389 ; GOL41C LB_AAAA AAAA ; GSUBNC 23E2, address in 3rd Quad RGO LB_AAAA ; .con 0x08C ; ; .con 0x2AA ; .con 0x130 ; LDI 173 .con 0x173 ; .con 0x102 ; A=C @R .con 0x1F2 ; C=C+C P-Q ; .con 0x07F ; GOC +0F LB_A98B A98B goc LB_A98B .con 0x020 ; SPOPND .con 0x1CE ; A=A-C ALL ; .con 0x077 ; GOC +0E LB_A98D A98D goc LB_A98D ; .con 0x167 ; GOC +2C LB_A9AC A9AC goc LB_A9AC .con 0x1B2 ; A=A-1 P-Q .con 0x009 ; GOLNC 7302 .con 0x1CE ; .con 0x075 ; GSUBNC 5D1D .con 0x174 ; .con 0x1CE ; A=A-C ALL .con 0x076 ; ABEX XS ; .con 0x1F3 ; GONC +3E LB_A9C6 A9C6 gonc LB_A9C6 ; .con 0x07F ; GOC +0F LB_A998 A998 goc LB_A998 .con 0x000 ; NOP LB_A98B: .con 0x008 ; ST=1 3 .con 0x1CE ; A=A-C ALL LB_A98D: .con 0x076 ; ABEX XS .con 0x175 ; GOLNC 735D .con 0x1CE ; .con 0x075 ; GOLC 461D .con 0x11B ; .con 0x142 ; A=A+C @R ; .con 0x113 ; GONC +22 LB_A9B5 A9B5 gonc LB_A9B5 .con 0x019 ; GSUBC 5006 .con 0x141 ; .con 0x164 ; SELPF 5 ; Peripheral 5: HP-IL ; .con 0x197 ; GOC +32 LB_A9C9 A9C9 goc LB_A9C9 ;LB_A998: .con 0x073 ; GONC +0E LB_A9A6 A9A6 LB_A998: gonc LB_A9A6 .con 0x119 ; GSUBNC 5046 .con 0x140 ; .con 0x166 ; A=A+1 S&X ; .con 0x1B3 ; GONC +36 LB_A9D2 A9D2 gonc LB_A9D2 ; .con 0x087 ; GOC +10 LB_A9AD A9AD goc LB_A9AD .con 0x171 ; GSUBNC 685C .con 0x1A0 ; .con 0x0FE ; BCEX MS .con 0x140 ; ENROM3 .con 0x11A ; A=C M .con 0x1B2 ; A=A-1 P-Q ; .con 0x02B ; GONC +05 LB_A9A9 A9A9 gonc LB_A9A9 ; .con 0x103 ; GONC +20 LB_A9C5 A9C5 gonc LB_A9C5 LB_A9A6: .con 0x175 ; GOLC 615D .con 0x187 ; .con 0x1C0 ; ENROM4 LB_A9A9: .con 0x010 ; LC 0 ; .con 0x22F ; GOC -3B LB_A96F A96F goc LB_A96F .con 0x098 ; LB_A9AC: .con 0x01E ; LB_A9AD: .con 0x01E ; .NAME "Y^^X" ;Y^^X: .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad Y^^X: RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x088 ; ST=1 5 .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; LB_A9B5: .con 0x0F8 ; C=REGN ( 3)X .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x070 ; N=C .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0A8 ; REGN=C ( 2)Y .con 0x0F0 ; CNEX .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x070 ; N=C .con 0x3E1 ; GSUBNC TEN_TO_X 1BF8 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x0E8 ; REGN=C ( 3)X LB_A9C5: .con 0x2CC ; ST=1? 13 LB_A9C6: .con 0x360 ; RTNC .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; LB_A9C9: .con 0x130 ; LDI 020 .con 0x020 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x0F8 ; C=REGN ( 3)X .con 0x0EE ; BCEX ALL .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; LB_A9D2: .con 0x130 ; LDI 020 .con 0x020 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x130 ; LDI 045 .con 0x045 ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x3B8 ; C=REGN (14)d .con 0x268 ; REGN=C ( 9)Q .con 0x04E ; C=0 ALL .con 0x01C ; PT= 3 .con 0x210 ; LC 8 .con 0x3A8 ; REGN=C (14)d .con 0x0B8 ; C=REGN ( 2)Y .con 0x0EE ; BCEX ALL LB_A9E2: .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 0x25D ; GSUBNC LDSST0 0797 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x191 ; GOLNC XAVIEW 0364 ; HP41 SYSTEM ROM 0 .con 0x00E ; LB_A9EB: .con 0x078 ; C=REGN ( 1)Z .con 0x10E ; A=C ALL .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x351 ; GSUBNC CHK$S1 14D4 ; HP41 SYSTEM ROM 1 .con 0x050 ; LB_A9F2: .con 0x0F8 ; C=REGN ( 3)X .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x351 ; GOLNC CHK$S1 14D4 ; HP41 SYSTEM ROM 1 .con 0x052 ; .con 0x0AD ; .NAME "F-" ;F-: .con 0x379 ; GSB41C LB_A9EB A9EB ; GSUBNC 0FDE, address in same Quad F-: RXQ LB_A9EB ; .con 0x03C ; ; .con 0x1EB ; .con 0x0F8 ; C=REGN ( 3)X .con 0x2EE ; ?C#0 ALL ; .con 0x04B ; GONC +09 LB_AA07 AA07 gonc LB_AA07 .con 0x2BE ; C=-C-1 MS .con 0x0E8 ; REGN=C ( 3)X ; .con 0x033 ; GONC +06 LB_AA07 AA07 gonc LB_AA07 .con 0x0AB ; .NAME "F+" ;F+: .con 0x379 ; GSB41C LB_A9EB A9EB ; GSUBNC 0FDE, address in same Quad F+: RXQ LB_A9EB ; .con 0x03C ; ; .con 0x1EB ; LB_AA07: .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x078 ; C=REGN ( 1)Z .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x031 ; GSUBNC AD2-13 180C ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x0B3 ; GONC +16 LB_AA2F AA2F gonc LB_AA2F .con 0x0AF ; .NAME "F/" ;F/: .con 0x379 ; GSB41C LB_A9EB A9EB ; GSUBNC 0FDE, address in same Quad F/: RXQ LB_A9EB ; .con 0x03C ; ; .con 0x1EB ; .con 0x0E8 ; REGN=C ( 3)X .con 0x0AE ; ACEX ALL .con 0x0A8 ; REGN=C ( 2)Y ; .con 0x033 ; GONC +06 LB_AA28 AA28 gonc LB_AA28 .con 0x0AA ; .NAME "F*" ;F*: .con 0x379 ; GSB41C LB_A9EB A9EB ; GSUBNC 0FDE, address in same Quad F*: RXQ LB_A9EB ; .con 0x03C ; ; .con 0x1EB ; LB_AA28: .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x10E ; A=C ALL .con 0x0B8 ; C=REGN ( 2)Y .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; LB_AA2F: .con 0x0A8 ; REGN=C ( 2)Y .con 0x078 ; C=REGN ( 1)Z .con 0x10E ; A=C ALL .con 0x0F8 ; C=REGN ( 3)X .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X .con 0x2CC ; ST=1? 13 .con 0x360 ; RTNC .con 0x239 ; GSUBNC ON/X13 188E ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0B8 ; C=REGN ( 2)Y .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0E8 ; REGN=C ( 3)X ; .con 0x03B ; GONC +07 LB_AA45 AA45 gonc LB_AA45 .con 0x086 ; .con 0x03E ; .NAME "D>F" D>F: .con 0x0F8 ; C=REGN ( 3)X .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; LB_AA45: .con 0x070 ; N=C .con 0x04E ; C=0 ALL .con 0x1A8 ; REGN=C ( 6)N .con 0x35C ; PT= 12 .con 0x222 ; C=C+1 @R .con 0x1E8 ; REGN=C ( 7)O .con 0x0B0 ; C=N .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x2EE ; ?C#0 ALL ; .con 0x1D3 ; GONC +3A LB_AA8A AA8A gonc LB_AA8A .con 0x104 ; ST=0 8 .con 0x168 ; REGN=C ( 5)M LB_AA53: .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 0x178 ; C=REGN ( 5)M .con 0x22D ; GSUBNC ON/X10 188B ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x070 ; N=C .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x168 ; REGN=C ( 5)M .con 0x0B0 ; C=N .con 0x088 ; ST=1 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x1B8 ; C=REGN ( 6)N .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x1F8 ; C=REGN ( 7)O .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x1E8 ; REGN=C ( 7)O .con 0x0F8 ; C=REGN ( 3)X .con 0x13D ; GSUBNC MP1-10 184F ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x10E ; A=C ALL .con 0x288 ; ST=1 7 .con 0x04E ; C=0 ALL .con 0x0AE ; ACEX ALL .con 0x0D5 ; GSUBNC ROUND 0A35 ; HP41 SYSTEM ROM 0 .con 0x028 ; .con 0x2A0 ; SETDEC .con 0x070 ; N=C .con 0x10E ; A=C ALL .con 0x1F8 ; C=REGN ( 7)O .con 0x261 ; GSUBNC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x2BE ; C=-C-1 MS .con 0x000 ; NOP .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x10E ; A=C ALL .con 0x288 ; ST=1 7 .con 0x3B8 ; C=REGN (14)d .con 0x23C ; RCR 2 .con 0x0AE ; ACEX ALL .con 0x0D5 ; GSUBNC ROUND 0A35 ; HP41 SYSTEM ROM 0 .con 0x028 ; .con 0x2A0 ; SETDEC .con 0x2EE ; ?C#0 ALL ; .con 0x257 ; GOC -36 LB_AA53 AA53 goc LB_AA53 LB_AA8A: .con 0x1F8 ; C=REGN ( 7)O .con 0x2FE ; ?C#0 MS ; .con 0x02B ; GONC +05 LB_AA91 AA91 gonc LB_AA91 .con 0x05E ; C=0 MS .con 0x0F0 ; CNEX .con 0x2BE ; C=-C-1 MS .con 0x0F0 ; CNEX LB_AA91: .con 0x260 ; SETHEX .con 0x0F0 ; CNEX .con 0x0A8 ; REGN=C ( 2)Y .con 0x0EE ; BCEX ALL .con 0x3B8 ; C=REGN (14)d .con 0x268 ; REGN=C ( 9)Q .con 0x04E ; C=0 ALL .con 0x01C ; PT= 3 .con 0x210 ; LC 8 .con 0x3A8 ; REGN=C (14)d .con 0x345 ; GSUBNC CLA 10D1 ; HP41 SYSTEM ROM 1 .con 0x040 ; .con 0x0A0 ; SELP .con 0x0A1 ; GSUBNC AFORMT 0628 ; HP41 SYSTEM ROM 0 .con 0x018 ; .con 0x130 ; LDI 02F .con 0x02F ; .con 0x3D5 ; GSUBNC APND10 1FF5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x0B0 ; C=N .con 0x0E8 ; REGN=C ( 3)X .con 0x0EE ; BCEX ALL ; .con 0x369 ; GOL41C LB_A9E2 A9E2 ; GSUBNC 0FDA, address in same Quad RGO LB_A9E2 ; .con 0x03C ; ; .con 0x1E2 ; LB_AAAA: .con 0x0AE ; ACEX ALL .con 0x03C ; RCR 3 .con 0x10E ; A=C ALL .con 0x130 ; LDI 004 .con 0x004 ; .con 0x146 ; A=A+C S&X .con 0x2F9 ; GOLNC XRM10 2FBE ; HP41 SYSTEM ROM 2 .con 0x0BE ; .con 0x08C ; .con 0x009 ; .con 0x005 ; .NAME "CEIL" CEIL: .con 0x104 ; ST=0 8 ; .con 0x03B ; GONC +07 LB_AABE AABE gonc LB_AABE .con 0x092 ; .con 0x00F ; .con 0x00F ; .con 0x00C ; .NAME "FLOOR" FLOOR: .con 0x108 ; ST=1 8 LB_AABE: .con 0x0F8 ; C=REGN ( 3)X .con 0x128 ; REGN=C ( 4)L .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x10E ; A=C ALL .con 0x04E ; C=0 ALL .con 0x35C ; PT= 12 .con 0x050 ; LC 1 .con 0x10C ; ST=1? 8 ; .con 0x017 ; GOC +02 LB_AAC9 AAC9 goc LB_AAC9 .con 0x2BE ; C=-C-1 MS LB_AAC9: .con 0x0E8 ; REGN=C ( 3)X .con 0x044 ; ST=0 4 .con 0x070 ; N=C .con 0x171 ; GSUBNC MOD10 195C ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x2BE ; C=-C-1 MS .con 0x10E ; A=C ALL .con 0x138 ; C=REGN ( 4)L .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x000 ; NOP .con 0x098 ; .con 0x019 ; .con 0x007 ; .con 0x00F ; .NAME "LOGYX" ;LOGYX: .con 0x391 ; GSB41C LB_A9F2 A9F2 ; GSUBNC 23E4, address in 3rd Quad LOGYX: RXQ LB_A9F2 ; .con 0x08C ; ; .con 0x1F2 ; .con 0x084 ; ST=0 5 .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x089 ; GSUBNC STSCR 1922 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0F8 ; C=REGN ( 3)X .con 0x115 ; GSUBNC LN10 1B45 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x0D1 ; GSUBNC RCSCR 1934 ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x275 ; GSUBNC DV2-13 189D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x369 ; GOLNC NFRXY 00DA ; HP41 SYSTEM ROM 0 .con 0x002 ; .con 0x083 ; .con 0x012 ; .con 0x006 ; .NAME "-FRC" -FRC: .con 0x000 ; NOP ; NOT programmable and NULLable ;LB_AAF1: .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad LB_AAF1: RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x206 ; C=A+C S&X LB_AAF5: .con 0x115 ; GSUBNC NEXT1 0E45 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x0BB ; GONC +17 LB_AB0E AB0E gonc LB_AB0E .con 0x0B0 ; C=N .con 0x3C6 ; CSR S&X .con 0x0E6 ; BCEX S&X .con 0x130 ; LDI 1B5 .con 0x1B5 ; .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AD50 AD50 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AD50 ; .con 0x08C ; ; .con 0x150 ; ; .con 0x043 ; GONC +08 LB_AB09 AB09 gonc LB_AB09 .con 0x0BA ; ACEX M .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x158 ; M=C ; .con 0x369 ; GOL41C LB_AB3D AB3D ; GSUBNC 0FDA, address in same Quad RGO LB_AB3D ; .con 0x03C ; ; .con 0x33D ; LB_AB09: .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; ; .con 0x343 ; GONC -18 LB_AAF5 AAF5 gonc LB_AAF5 ;LB_AB0E: .con 0x369 ; GOL41C LB_AB5A AB5A ; GSUBNC 0FDA, address in same Quad LB_AB0E: RGO LB_AB5A ; .con 0x03C ; ; .con 0x35A ; .con 0x090 ; .con 0x019 ; .con 0x008 ; .NAME "-HYP" -HYP: .con 0x000 ; NOP ; NOT programmable and NULLable ;LB_AB16: .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad LB_AB16: RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x208 ; ST=1 2 .con 0x184 ; ST=0 11 LB_AB1B: .con 0x115 ; GSUBNC NEXT1 0E45 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x38B ; GONC -0F LB_AB0E AB0E gonc LB_AB0E .con 0x14C ; ST=1? 6 ; .con 0x06B ; GONC +0D LB_AB2C AB2C gonc LB_AB2C .con 0x130 ; LDI 001 .con 0x001 ; .con 0x0E6 ; BCEX S&X ; .con 0x379 ; GSB41C LB_ABFF ABFF ; GSUBNC 0FDE, address in same Quad RXQ LB_ABFF ; .con 0x03C ; ; .con 0x3FF ; ;LB_AB26: .con 0x3AB ; GONC -0B LB_AB1B AB1B LB_AB26: gonc LB_AB1B LB_AB27: .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; ; .con 0x3DB ; GONC -05 LB_AB26 AB26 gonc LB_AB26 LB_AB2C: .con 0x0B0 ; C=N .con 0x3C6 ; CSR S&X .con 0x0E6 ; BCEX S&X .con 0x130 ; LDI 197 .con 0x197 ; .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AD50 AD50 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AD50 ; .con 0x08C ; ; .con 0x150 ; ; .con 0x393 ; GONC -0E LB_AB27 AB27 gonc LB_AB27 .con 0x0BA ; ACEX M .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x158 ; M=C .con 0x3B8 ; C=REGN (14)d .con 0x18C ; ST=1? 11 ; .con 0x013 ; GONC +02 LB_AB3E AB3E gonc LB_AB3E LB_AB3D: .con 0x3B8 ; C=REGN (14)d LB_AB3E: .con 0x198 ; C=M .con 0x149 ; GSUBNC 2F52 .con 0x0BC ; .con 0x188 ; ST=1 11 LB_AB42: .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x319 ; GSUBNC NULTST 0EC6 ; HP41 SYSTEM ROM 0 .con 0x038 ; .con 0x261 ; GSUBNC RSTKB 0098 ; HP41 SYSTEM ROM 0 .con 0x000 ; .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x215 ; GSUBNC RSTSQ 0385 ; HP41 SYSTEM ROM 0 .con 0x00C ; .con 0x198 ; C=M .con 0x2E6 ; ?C#0 S&X .con 0x3A0 ; RTNNC .con 0x01C ; PT= 3 .con 0x290 ; LC A .con 0x029 ; GOLNC RAK70 070A ; HP41 SYSTEM ROM 0 .con 0x01E ; .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP LB_AB56: .con 0x0CC ; ST=1? 10 ; .con 0x01B ; GONC +03 LB_AB5A AB5A gonc LB_AB5A .con 0x0C4 ; ST=0 10 ; .con 0x0F3 ; GONC +1E LB_AB77 AB77 gonc LB_AB77 LB_AB5A: .con 0x104 ; ST=0 8 .con 0x0C4 ; ST=0 10 .con 0x344 ; ST=0 12 .con 0x188 ; ST=1 11 .con 0x1B1 ; GSUBNC MSGA 1C6C ; 1C6C: display message "NULL" .con 0x070 ; .con 0x03C ; .con 0x130 ; LDI 3FF .con 0x3FF ; LB_AB63: .con 0x266 ; C=C-1 S&X ; .con 0x3FB ; GONC -01 LB_AB63 AB63 gonc LB_AB63 .con 0x049 ; GOLNC ABTSEQ 0D12 ; HP41 SYSTEM ROM 0 .con 0x036 ; .con 0x08C ; .con 0x003 ; .con 0x012 ; .NAME "-RCL" -RCL: .con 0x000 ; NOP ; NOT programmable and NULLable .con 0x0C4 ; ST=0 10 .con 0x184 ; ST=0 11 .con 0x344 ; ST=0 12 ; .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x012 ; A=0 P-Q ;LB_AB73: .con 0x003 ; GONC +00 LB_AB73 AB73 LB_AB73: gonc LB_AB73 .con 0x00C ; ST=1? 3 .con 0x222 ; C=C+1 @R ; .con 0x013 ; GONC +02 LB_AB78 AB78 gonc LB_AB78 LB_AB77: .con 0x3B8 ; C=REGN (14)d LB_AB78: .con 0x121 ; GSUBNC NEXT2 0E48 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x2E3 ; GONC -24 LB_AB56 AB56 gonc LB_AB56 .con 0x00C ; ST=1? 3 ; .con 0x07B ; GONC +0F LB_AB8B AB8B gonc LB_AB8B .con 0x0BE ; ACEX MS .con 0x2FC ; RCR 13 .con 0x0D0 ; LC 3 .con 0x368 ; REGN=C (13)c LB_AB81: .con 0x115 ; GSUBNC NEXT1 0E45 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x3A3 ; GONC -0C LB_AB77 AB77 gonc LB_AB77 .con 0x00C ; ST=1? 3 ; .con 0x3E3 ; GONC -04 LB_AB81 AB81 gonc LB_AB81 LB_AB86: .con 0x0BE ; ACEX MS .con 0x2FC ; RCR 13 .con 0x0D0 ; LC 3 .con 0x368 ; REGN=C (13)c ; .con 0x1BB ; GONC +37 LB_ABC1 ABC1 gonc LB_ABC1 LB_AB8B: .con 0x04C ; ST=1? 4 ; .con 0x043 ; GONC +08 LB_AB94 AB94 gonc LB_AB94 .con 0x130 ; LDI 030 .con 0x030 ; .con 0x35E ; ?A#0 MS ; .con 0x017 ; GOC +02 LB_AB92 AB92 goc LB_AB92 .con 0x226 ; C=C+1 S&X LB_AB92: .con 0x368 ; REGN=C (13)c ; .con 0x39B ; GONC -0D LB_AB86 AB86 gonc LB_AB86 LB_AB94: .con 0x0CC ; ST=1? 10 ; .con 0x31F ; GOC -1D LB_AB78 AB78 goc LB_AB78 .con 0x0B0 ; C=N .con 0x3C6 ; CSR S&X .con 0x106 ; A=C S&X .con 0x130 ; LDI 033 .con 0x033 ; .con 0x366 ; ?A#C S&X ; .con 0x037 ; GOC +06 LB_ABA2 ABA2 goc LB_ABA2 .con 0x266 ; C=C-1 S&X .con 0x266 ; C=C-1 S&X .con 0x368 ; REGN=C (13)c .con 0x0C8 ; ST=1 10 ;LB_ABA1: .con 0x2BB ; GONC -29 LB_AB78 AB78 LB_ABA1: gonc LB_AB78 LB_ABA2: .con 0x18C ; ST=1? 11 ; .con 0x3F7 ; GOC -02 LB_ABA1 ABA1 goc LB_ABA1 .con 0x14C ; ST=1? 6 ; .con 0x04B ; GONC +09 LB_ABAE ABAE gonc LB_ABAE .con 0x188 ; ST=1 11 .con 0x3BD ; GSUBNC MESSL 07EF ; 009 00E 004 220 .con 0x01C ; .con 0x009 ; .con 0x00E ; .con 0x004 ; .con 0x220 ; ;LB_ABAD: .con 0x3A3 ; GONC -0C LB_ABA1 ABA1 LB_ABAD: gonc LB_ABA1 LB_ABAE: .con 0x066 ; ABEX S&X .con 0x130 ; LDI 1A8 .con 0x1A8 ; .con 0x106 ; A=C S&X ; .con 0x3B5 ; GSB41C LB_AD50 AD50 ; GSUBNC 23ED, address in 4th Quad RXQ LB_AD50 ; .con 0x08C ; ; .con 0x150 ; ; .con 0x3C3 ; GONC -08 LB_ABAD ABAD gonc LB_ABAD .con 0x0BA ; ACEX M .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x158 ; M=C .con 0x0C4 ; ST=0 10 .con 0x344 ; ST=0 12 .con 0x3D9 ; GSUBNC CLRLCD 2CF6 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; ; .con 0x369 ; GOL41C LB_AB3D AB3D ; GSUBNC 0FDA, address in same Quad RGO LB_AB3D ; .con 0x03C ; ; .con 0x33D ; LB_ABC1: .con 0x3DD ; GSUBNC LEFTJ 2BF7 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x130 ; LDI 1FF .con 0x1FF ; LB_ABC5: .con 0x266 ; C=C-1 S&X ; .con 0x3FB ; GONC -01 LB_ABC5 ABC5 gonc LB_ABC5 .con 0x319 ; GSUBNC NULTST 0EC6 ; HP41 SYSTEM ROM 0 .con 0x038 ; .con 0x130 ; LDI 020 .con 0x020 ; .con 0x106 ; A=C S&X LB_ABCC: .con 0x3B8 ; C=REGN (14)d .con 0x366 ; ?A#C S&X ; .con 0x3F3 ; GONC -02 LB_ABCC ABCC gonc LB_ABCC .con 0x31C ; PT= 1 .con 0x010 ; LC 0 .con 0x106 ; A=C S&X .con 0x3B8 ; C=REGN (14)d .con 0x2FC ; RCR 13 .con 0x21C ; PT= 2 .con 0x010 ; LC 0 .con 0x39C ; PT= 0 .con 0x042 ; C=0 @R .con 0x146 ; A=A+C S&X .con 0x04E ; C=0 ALL .con 0x0A6 ; ACEX S&X .con 0x03C ; RCR 3 .con 0x050 ; LC 1 .con 0x158 ; M=C .con 0x3D9 ; GSUBNC CLRLCD 2CF6 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x261 ; GSUBNC RSTKB 0098 ; HP41 SYSTEM ROM 0 .con 0x000 ; .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x215 ; GSUBNC RSTSQ 0385 ; HP41 SYSTEM ROM 0 .con 0x00C ; .con 0x198 ; C=M .con 0x38D ; GSUBNC BCDBIN 02E3 ; HP41 SYSTEM ROM 0 .con 0x008 ; .con 0x106 ; A=C S&X .con 0x0CC ; ST=1? 10 ; .con 0x02B ; GONC +05 LB_ABF0 ABF0 gonc LB_ABF0 .con 0x0C4 ; ST=0 10 .con 0x130 ; LDI 064 .con 0x064 ; .con 0x146 ; A=A+C S&X LB_ABF0: .con 0x18C ; ST=1? 11 ; .con 0x023 ; GONC +04 LB_ABF5 ABF5 gonc LB_ABF5 .con 0x130 ; LDI 080 .con 0x080 ; .con 0x146 ; A=A+C S&X LB_ABF5: .con 0x188 ; ST=1 11 .con 0x026 ; B=0 S&X ; .con 0x3B5 ; GSB41C LB_AF0E AF0E ; GSUBNC 23ED, address in 4th Quad RXQ LB_AF0E ; .con 0x08C ; ; .con 0x30E ; .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0A5 ; GOLNC LXEX 1229 ; HP41 SYSTEM ROM 1 .con 0x04A ; LB_ABFF: .con 0x395 ; GSUBNC TOGSHF 1FE5 ; HP41 SYSTEM ROM 1 .con 0x07C ; .con 0x3D9 ; GSUBNC ENLCD 07F6 ; HP41 SYSTEM ROM 0 .con 0x01C ; .con 0x18C ; ST=1? 11 ; .con 0x023 ; GONC +04 LB_AC08 AC08 gonc LB_AC08 .con 0x3B8 ; C=REGN (14)d .con 0x184 ; ST=0 11 .con 0x3E0 ; RTN LB_AC08: .con 0x188 ; ST=1 11 .con 0x0E6 ; BCEX S&X .con 0x3E8 ; REGN=C (15)e .con 0x3E0 ; RTN .con 0x094 ; ?PT= 5 .con 0x012 ; A=0 P-Q ; .con 0x00F ; GOC +01 LB_AC0F AC0F goc LB_AC0F ;LB_AC0F: .con 0x013 ; GONC +02 LB_AC11 AC11 LB_AC0F: gonc LB_AC11 ;LB_AC10: .con 0x007 ; GOC +00 LB_AC10 AC10 LB_AC10: goc LB_AC10 LB_AC11: .con 0x012 ; A=0 P-Q .con 0x088 ; ST=1 5 .con 0x291 ; GSUBNC 34A4 .con 0x0D0 ; .con 0x0B0 ; C=N .con 0x106 ; A=C S&X .con 0x03C ; RCR 3 .con 0x366 ; ?A#C S&X .con 0x3A0 ; RTNNC .con 0x1C6 ; A=A-C S&X ; .con 0x033 ; GONC +06 LB_AC21 AC21 gonc LB_AC21 .con 0x208 ; ST=1 2 .con 0x0A6 ; ACEX S&X .con 0x286 ; C=0-C S&X .con 0x1BC ; RCR 11 ; .con 0x023 ; GONC +04 LB_AC24 AC24 gonc LB_AC24 LB_AC21: .con 0x0A6 ; ACEX S&X .con 0x1BC ; RCR 11 .con 0x0A6 ; ACEX S&X LB_AC24: .con 0x070 ; N=C .con 0x0DC ; PT= 10 .con 0x0E0 ; SELQ LB_AC27: .con 0x158 ; M=C .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x2A0 ; SETDEC .con 0x10E ; A=C ALL .con 0x17E ; A=A+1 MS ; .con 0x07F ; GOC +0F LB_AC3C AC3C goc LB_AC3C .con 0x2FE ; ?C#0 MS ; .con 0x09B ; GONC +13 LB_AC42 AC42 gonc LB_AC42 .con 0x35C ; PT= 12 .con 0x2E2 ; ?C#0 @R ; .con 0x0BF ; GOC +17 LB_AC49 AC49 goc LB_AC49 .con 0x2EA ; ?C#0 R<- ; .con 0x0AB ; GONC +15 LB_AC49 AC49 gonc LB_AC49 .con 0x3D4 ; DECPT .con 0x05E ; C=0 MS ; .con 0x013 ; GONC +02 LB_AC39 AC39 gonc LB_AC39 LB_AC38: .con 0x37C ; RCR 12 LB_AC39: .con 0x2F2 ; ?C#0 P-Q ; .con 0x3F3 ; GONC -02 LB_AC38 AC38 gonc LB_AC38 ; .con 0x073 ; GONC +0E LB_AC49 AC49 gonc LB_AC49 LB_AC3C: .con 0x2BA ; C=-C-1 M .con 0x31C ; PT= 1 .con 0x0A6 ; ACEX S&X .con 0x2AA ; C=-C-1 R<- .con 0x0A6 ; ACEX S&X ; .con 0x02B ; GONC +05 LB_AC46 AC46 gonc LB_AC46 LB_AC42: .con 0x35C ; PT= 12 .con 0x2EA ; ?C#0 R<- ; .con 0x013 ; GONC +02 LB_AC46 AC46 gonc LB_AC46 .con 0x176 ; A=A+1 XS LB_AC46: .con 0x2FC ; RCR 13 .con 0x0A6 ; ACEX S&X .con 0x07C ; RCR 4 LB_AC49: .con 0x0BE ; ACEX MS .con 0x260 ; SETHEX .con 0x20C ; ST=1? 2 ; .con 0x013 ; GONC +02 LB_AC4E AC4E gonc LB_AC4E .con 0x2AE ; C=-C-1 ALL LB_AC4E: .con 0x2F0 ; DATA=C .con 0x198 ; C=M .con 0x226 ; C=C+1 S&X .con 0x27A ; C=C-1 M ; .con 0x2AB ; GONC -2B LB_AC27 AC27 gonc LB_AC27 LB_AC53: .con 0x04E ; C=0 ALL .con 0x1D8 ; CMEX .con 0x2E6 ; ?C#0 S&X ; .con 0x10B ; GONC +21 LB_AC77 AC77 gonc LB_AC77 .con 0x106 ; A=C S&X .con 0x0B0 ; C=N .con 0x1C6 ; A=A-C S&X .con 0x03C ; RCR 3 .con 0x0A6 ; ACEX S&X .con 0x1BC ; RCR 11 .con 0x270 ; DADD=C .con 0x0EE ; BCEX ALL .con 0x038 ; C=REGN ( 0)T .con 0x0EE ; BCEX ALL LB_AC61: .con 0x226 ; C=C+1 S&X .con 0x27A ; C=C-1 M ; .con 0x387 ; GOC -10 LB_AC53 AC53 goc LB_AC53 .con 0x10E ; A=C ALL .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x0AE ; ACEX ALL .con 0x32E ; ?A<B ALL ; .con 0x01F ; GOC +03 LB_AC6C AC6C goc LB_AC6C .con 0x08E ; B=A ALL ; .con 0x3B3 ; GONC -0A LB_AC61 AC61 gonc LB_AC61 LB_AC6C: .con 0x0EE ; BCEX ALL .con 0x2F0 ; DATA=C .con 0x0EE ; BCEX ALL .con 0x266 ; C=C-1 S&X .con 0x158 ; M=C .con 0x270 ; DADD=C .con 0x226 ; C=C+1 S&X .con 0x0AE ; ACEX ALL .con 0x2F0 ; DATA=C .con 0x0AE ; ACEX ALL ; .con 0x35B ; GONC -15 LB_AC61 AC61 gonc LB_AC61 LB_AC77: .con 0x0B0 ; C=N LB_AC78: .con 0x158 ; M=C .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x20C ; ST=1? 2 ; .con 0x013 ; GONC +02 LB_AC7E AC7E gonc LB_AC7E .con 0x2AE ; C=-C-1 ALL LB_AC7E: .con 0x2A0 ; SETDEC .con 0x10E ; A=C ALL .con 0x1BC ; RCR 11 .con 0x1BE ; A=A-1 MS ; .con 0x087 ; GOC +10 LB_AC92 AC92 goc LB_AC92 .con 0x35E ; ?A#0 MS ; .con 0x0BB ; GONC +17 LB_AC9B AC9B gonc LB_AC9B .con 0x35C ; PT= 12 .con 0x03C ; RCR 3 .con 0x2E2 ; ?C#0 @R ; .con 0x0DF ; GOC +1B LB_ACA3 ACA3 goc LB_ACA3 .con 0x2EA ; ?C#0 R<- ; .con 0x0CB ; GONC +19 LB_ACA3 ACA3 gonc LB_ACA3 .con 0x31C ; PT= 1 .con 0x05E ; C=0 MS ; .con 0x013 ; GONC +02 LB_AC8F AC8F gonc LB_AC8F LB_AC8E: .con 0x23C ; RCR 2 LB_AC8F: .con 0x2EA ; ?C#0 R<- ; .con 0x3F3 ; GONC -02 LB_AC8E AC8E gonc LB_AC8E ; .con 0x093 ; GONC +12 LB_ACA3 ACA3 gonc LB_ACA3 LB_AC92: .con 0x2BA ; C=-C-1 M .con 0x2FC ; RCR 13 .con 0x106 ; A=C S&X .con 0x33C ; RCR 1 .con 0x0A6 ; ACEX S&X .con 0x31C ; PT= 1 .con 0x2AA ; C=-C-1 R<- .con 0x000 ; NOP ; .con 0x04B ; GONC +09 LB_ACA3 ACA3 gonc LB_ACA3 LB_AC9B: .con 0x35C ; PT= 12 .con 0x2EA ; ?C#0 R<- ; .con 0x033 ; GONC +06 LB_ACA3 ACA3 gonc LB_ACA3 .con 0x2FC ; RCR 13 .con 0x106 ; A=C S&X .con 0x33C ; RCR 1 .con 0x0A6 ; ACEX S&X .con 0x276 ; C=C-1 XS LB_ACA3: .con 0x0BE ; ACEX MS .con 0x2F0 ; DATA=C .con 0x260 ; SETHEX .con 0x198 ; C=M .con 0x226 ; C=C+1 S&X .con 0x27A ; C=C-1 M ; .con 0x27B ; GONC -31 LB_AC78 AC78 gonc LB_AC78 .con 0x3E0 ; RTN .con 0x000 ; NOP .con 0x093 ; .con 0x002 ; .con 0x03E ; .NAME "D>BS" D>BS: .con 0x0AE ; ACEX ALL ; .con 0x389 ; GOL41C LB_AAAA AAAA ; GSUBNC 23E2, address in 3rd Quad RGO LB_AAAA ; .con 0x08C ; ; .con 0x2AA ; .con 0x171 ; GSUBNC 4C5C .con 0x130 ; .con 0x171 ; GOLNC 7F5C .con 0x1FE ; ; .con 0x027 ; GOC +04 LB_ACBC ACBC goc LB_ACBC .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND LB_ACBC: .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x190 ; LC 6 .con 0x075 ; GSUBC 5C1D .con 0x171 ; .con 0x104 ; ST=0 8 ;LB_ACCA: .con 0x183 ; GONC +30 LB_ACFA ACFA LB_ACCA: gonc LB_ACFA .con 0x168 ; REGN=C ( 5)M .con 0x120 ; ?P=Q ; .con 0x14B ; GONC +29 LB_ACF6 ACF6 gonc LB_ACF6 .con 0x119 ; GSUBC 5046 .con 0x141 ; .con 0x164 ; SELPF 5 ; Peripheral 5: HP-IL .con 0x196 ; A=A-B XS ; .con 0x073 ; GONC +0E LB_ACE0 ACE0 gonc LB_ACE0 .con 0x1F0 ; WPTOG ; .con 0x113 ; GONC +22 LB_ACF6 ACF6 gonc LB_ACF6 .con 0x019 ; GSUBNC 5006 .con 0x140 ; ; .con 0x157 ; GOC +2A LB_AD01 AD01 goc LB_AD01 .con 0x191 ; GOLC 1D64 .con 0x077 ; ; .con 0x1F7 ; GOC +3E LB_AD18 AD18 goc LB_AD18 ; .con 0x07F ; GOC +0F LB_ACEA ACEA goc LB_ACEA .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND .con 0x020 ; SPOPND LB_ACE0: .con 0x020 ; SPOPND .con 0x020 ; SPOPND ; .con 0x177 ; GOC +2E LB_AD10 AD10 goc LB_AD10 .con 0x1CE ; A=A-C ALL ; .con 0x077 ; GOC +0E LB_ACF2 ACF2 goc LB_ACF2 .con 0x1CE ; A=A-C ALL .con 0x076 ; ABEX XS .con 0x191 ; GSUBC 1D64 .con 0x075 ; .con 0x175 ; GSUBNC 685D LB_ACEA: .con 0x1A0 ; ; .con 0x0FF ; GOC +1F LB_AD0A AD0A goc LB_AD0A .con 0x168 ; REGN=C ( 5)M ; .con 0x163 ; GONC +2C LB_AD19 AD19 gonc LB_AD19 .con 0x1B4 ; UNDEF1B4 ; .con 0x027 ; GOC +04 LB_ACF3 ACF3 goc LB_ACF3 .con 0x106 ; A=C S&X .con 0x1F2 ; C=C+C P-Q ;LB_ACF2: .con 0x07F ; GOC +0F LB_AD01 AD01 LB_ACF2: goc LB_AD01 LB_ACF3: .con 0x020 ; SPOPND ; .con 0x177 ; GOC +2E LB_AD22 AD22 goc LB_AD22 .con 0x190 ; LC 6 LB_ACF6: .con 0x075 ; GSUBC 5E1D .con 0x179 ; .con 0x1B6 ; A=A-1 XS .con 0x00A ; A=0 R<- ;LB_ACFA: .con 0x177 ; GOC +2E LB_AD28 AD28 LB_ACFA: goc LB_AD28 .con 0x1CE ; A=A-C ALL ; .con 0x077 ; GOC +0E LB_AD0A AD0A goc LB_AD0A .con 0x1CE ; A=A-C ALL .con 0x076 ; ABEX XS .con 0x191 ; GSUBC 1D64 .con 0x075 ; ;LB_AD01: .con 0x173 ; GONC +2E LB_AD2F AD2F LB_AD01: gonc LB_AD2F .con 0x17E ; A=A+1 MS .con 0x1C0 ; ENROM4 .con 0x010 ; LC 0 ; .con 0x22F ; GOC -3B LB_ACCA ACCA goc LB_ACCA ;LB_AD06: .con 0x389 ; GOL41C LB_AB5A AB5A ; GSUBNC 23E2, address in 3rd Quad LB_AD06: RGO LB_AB5A ; .con 0x08C ; ; .con 0x35A ; .con 0x088 ; ST=1 5 LB_AD0A: .con 0x014 ; ?PT= 3 .con 0x001 ; GSUBC 0300 .con 0x00D ; .con 0x00C ; ST=1? 3 .con 0x008 ; ST=1 3 .con 0x02D ; GSUBNC 000B LB_AD10: .con 0x000 ; ; .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x30E ; ?A<C ALL .con 0x3BD ; GSUBNC MESSL 07EF ; 086 220 .con 0x01C ; .con 0x086 ; LB_AD18: .con 0x220 ; LB_AD19: .con 0x115 ; GSUBNC NEXT1 0E45 ; HP41 SYSTEM ROM 0 .con 0x038 ; ; .con 0x35B ; GONC -15 LB_AD06 AD06 gonc LB_AD06 .con 0x14C ; ST=1? 6 ; .con 0x023 ; GONC +04 LB_AD21 AD21 gonc LB_AD21 ; .con 0x389 ; GOL41C LB_AB16 AB16 ; GSUBNC 23E2, address in 3rd Quad RGO LB_AB16 ; .con 0x08C ; ; .con 0x316 ; LB_AD21: .con 0x0B0 ; C=N LB_AD22: .con 0x3C6 ; CSR S&X .con 0x106 ; A=C S&X .con 0x28C ; ST=1? 7 ; .con 0x023 ; GONC +04 LB_AD29 AD29 gonc LB_AD29 ; .con 0x389 ; GOL41C LB_AAF1 AAF1 ; GSUBNC 23E2, address in 3rd Quad RGO LB_AAF1 ; .con 0x08C ; ;LB_AD28: .con 0x2F1 ; LB_AD29: .con 0x346 ; ?A#0 S&X ; .con 0x027 ; GOC +04 LB_AD2E AD2E goc LB_AD2E .con 0x130 ; LDI 0A8 .con 0x0A8 ; ; .con 0x0D3 ; GONC +1A LB_AD47 AD47 gonc LB_AD47 LB_AD2E: .con 0x130 ; LDI 021 LB_AD2F: .con 0x021 ; .con 0x366 ; ?A#C S&X ; .con 0x027 ; GOC +04 LB_AD35 AD35 goc LB_AD35 ; .con 0x341 ; GOL41C LB_A266 A266 ; GSUBNC 23D0, address in 1st Quad RGO LB_A266 ; .con 0x08C ; ; .con 0x266 ; LB_AD35: .con 0x130 ; LDI 023 .con 0x023 ; .con 0x366 ; ?A#C S&X ; .con 0x027 ; GOC +04 LB_AD3C AD3C goc LB_AD3C ; .con 0x341 ; GOL41C LB_A229 A229 ; GSUBNC 23D0, address in 1st Quad RGO LB_A229 ; .con 0x08C ; ; .con 0x229 ; LB_AD3C: .con 0x066 ; ABEX S&X .con 0x130 ; LDI 1C4 .con 0x1C4 ; .con 0x106 ; A=C S&X ; .con 0x379 ; GSB41C LB_AD50 AD50 ; GSUBNC 0FDE, address in same Quad RXQ LB_AD50 ; .con 0x03C ; ; .con 0x150 ; ; .con 0x043 ; GONC +08 LB_AD4B AD4B gonc LB_AD4B .con 0x0BA ; ACEX M .con 0x23A ; C=C+1 M .con 0x330 ; CXISA LB_AD47: .con 0x158 ; M=C ; .con 0x389 ; GOL41C LB_AB3E AB3E ; GSUBNC 23E2, address in 3rd Quad RGO LB_AB3E ; .con 0x08C ; ; .con 0x33E ; LB_AD4B: .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; .con 0x265 ; GSUBNC BLINK 0899 ; HP41 SYSTEM ROM 0 .con 0x020 ; ; .con 0x253 ; GONC -36 LB_AD19 AD19 gonc LB_AD19 LB_AD50: .con 0x04E ; C=0 ALL .con 0x35D ; GSUBNC PCTOC 00D7 ; HP41 SYSTEM ROM 0 .con 0x000 ; .con 0x03C ; RCR 3 .con 0x130 ; LDI 300 .con 0x300 ; .con 0x1E6 ; C=C+C S&X .con 0x1E6 ; C=C+C S&X .con 0x206 ; C=A+C S&X .con 0x1BC ; RCR 11 .con 0x0BA ; ACEX M .con 0x066 ; ABEX S&X LB_AD5C: .con 0x0BA ; ACEX M .con 0x11A ; A=C M .con 0x330 ; CXISA .con 0x2E6 ; ?C#0 S&X .con 0x3A0 ; RTNNC .con 0x366 ; ?A#C S&X ; .con 0x023 ; GONC +04 LB_AD66 AD66 gonc LB_AD66 .con 0x17A ; A=A+1 M .con 0x17A ; A=A+1 M ; .con 0x3BB ; GONC -09 LB_AD5C AD5C gonc LB_AD5C LB_AD66: .con 0x1B0 ; C=STK .con 0x23A ; C=C+1 M .con 0x170 ; STK=C .con 0x3E0 ; RTN ; .con 0x01F ; GOC +03 LB_AD6D AD6D goc LB_AD6D .con 0x0A2 ; ACEX @R ; .con 0x017 ; GOC +02 LB_AD6E AD6E goc LB_AD6E LB_AD6D: .con 0x0A1 ; GOLNC 0528 LB_AD6E: .con 0x016 ; .con 0x08E ; B=A ALL .con 0x026 ; B=0 S&X ; .con 0x08F ; GOC +11 LB_AD82 AD82 goc LB_AD82 .con 0x01E ; A=0 MS ; .con 0x09B ; GONC +13 LB_AD86 AD86 gonc LB_AD86 .con 0x02E ; B=0 ALL .con 0x09C ; PT= 5 .con 0x000 ; NOP .con 0x008 ; ST=1 3 .con 0x17C ; RCR 6 .con 0x018 ; UNDEF018 .con 0x0AE ; ACEX ALL .con 0x010 ; LC 0 ; .con 0x0AB ; GONC +15 LB_AD91 AD91 gonc LB_AD91 .con 0x028 ; REGN=C ( 0)T .con 0x0AD ; GSUBNC 082B .con 0x020 ; .con 0x0AA ; ACEX R<- .con 0x038 ; C=REGN ( 0)T LB_AD82: .con 0x0B2 ; ACEX P-Q .con 0x030 ; ROMBLK .con 0x0B0 ; C=N .con 0x048 ; ST=1 4 ;LB_AD86: .con 0x0B3 ; GONC +16 LB_AD9C AD9C LB_AD86: gonc LB_AD9C .con 0x040 ; WMLDL .con 0x0B1 ; GSUBNC 002C .con 0x000 ; .con 0x040 ; WMLDL .con 0x088 ; ST=1 5 .con 0x011 ; GSUBC 2104 .con 0x085 ; .con 0x001 ; GSUBNC 2100 .con 0x084 ; .con 0x041 ; GOLNC 2110 LB_AD91: .con 0x086 ; .con 0x021 ; GSUBNC 2408 .con 0x090 ; .con 0x022 ; B=0 @R .con 0x098 ; C=G .con 0x000 ; NOP .con 0x016 ; A=0 XS .con 0x091 ; GSUBC 0524 .con 0x015 ; .con 0x08C ; ST=1? 5 .con 0x049 ; GSUBC 3D12 LB_AD9C: .con 0x0F5 ; .con 0x041 ; GSUBNC 3E10 .con 0x0F8 ; .con 0x039 ; GOLC 3C0E .con 0x0F3 ; .con 0x031 ; GOLNC 3D0C .con 0x0F6 ; .con 0x029 ; GSUBNC 3D0A .con 0x0F4 ; .con 0x021 ; GOLC 3D08 .con 0x0F7 ; .con 0x000 ; NOP .con 0x044 ; ST=0 4 .con 0x0FA ; BCEX M ;LB_ADAA: .con 0x003 ; GONC +00 LB_ADAA ADAA LB_ADAA: gonc LB_ADAA ; .con 0x0FB ; GONC +1F LB_ADCA ADCA gonc LB_ADCA .con 0x004 ; ST=0 3 .con 0x0FD ; GSUBC 013F .con 0x005 ; .con 0x0FC ; RCR 10 .con 0x006 ; A=0 S&X .con 0x0FE ; BCEX MS ;LB_ADB2: .con 0x007 ; GOC +00 LB_ADB2 ADB2 LB_ADB2: goc LB_ADB2 ; .con 0x0FF ; GOC +1F LB_ADD2 ADD2 goc LB_ADD2 .con 0x000 ; NOP .con 0x004 ; ST=0 3 .con 0x0ED ; GSUBC STOST0 013B ; HP41 SYSTEM ROM 0 .con 0x005 ; .con 0x0EC ; FLG=1? 10 ; ?ORAV, HP-IL Output Reg .con 0x006 ; A=0 S&X .con 0x0EE ; BCEX ALL ;LB_ADBB: .con 0x007 ; GOC +00 LB_ADBB ADBB LB_ADBB: goc LB_ADBB ; .con 0x0EF ; GOC +1D LB_ADD9 ADD9 goc LB_ADD9 ; .con 0x017 ; GOC +02 LB_ADBF ADBF goc LB_ADBF .con 0x0F0 ; CNEX ;LB_ADBF: .con 0x027 ; GOC +04 LB_ADC3 ADC3 LB_ADBF: goc LB_ADC3 .con 0x0F1 ; GOLC 0D3C .con 0x037 ; ; .con 0x0EB ; GONC +1D LB_ADDF ADDF gonc LB_ADDF LB_ADC3: .con 0x000 ; NOP .con 0x010 ; LC 0 .con 0x082 ; B=A @R .con 0x020 ; SPOPND .con 0x099 ; GSUBNC 0C26 .con 0x030 ; .con 0x0A4 ; SELPF 2 ; Peripheral 2: HP-IL LB_ADCA: .con 0x040 ; WMLDL ; .con 0x097 ; GOC +12 LB_ADDD ADDD goc LB_ADDD .con 0x001 ; GSUBC 2000 .con 0x081 ; .con 0x011 ; GOLC 2204 .con 0x08B ; .con 0x031 ; GOLNC 240C .con 0x092 ; LB_ADD2: .con 0x041 ; GSUBC 2510 .con 0x095 ; .con 0x012 ; A=0 P-Q .con 0x096 ; B=A XS .con 0x022 ; B=0 @R ; .con 0x0A3 ; GONC +14 LB_ADEB ADEB gonc LB_ADEB .con 0x032 ; B=0 P-Q LB_ADD9: .con 0x0A1 ; GOLNC 1028 .con 0x042 ; .con 0x094 ; ?PT= 5 ;LB_ADDC: .con 0x003 ; GONC +00 LB_ADDC ADDC LB_ADDC: gonc LB_ADDC LB_ADDD: .con 0x0E1 ; GOLNC 0538 .con 0x016 ; LB_ADDF: .con 0x09D ; GOLNC RFDS30 0927 ; HP41 SYSTEM ROM 0 .con 0x026 ; ; .con 0x09F ; GOC +13 LB_ADF4 ADF4 goc LB_ADF4 .con 0x015 ; GOLC 2005 .con 0x083 ; .con 0x025 ; GSUBNC 2809 .con 0x0A0 ; .con 0x035 ; GOLC 240D .con 0x093 ; .con 0x014 ; ?PT= 3 ; .con 0x087 ; GOC +10 LB_ADF9 ADF9 goc LB_ADF9 .con 0x024 ; SELPF 0 ; Peripheral 0: HP-IL LB_ADEB: .con 0x089 ; GSUBNC PARA06 0D22 ; HP41 SYSTEM ROM 0 .con 0x034 ; .con 0x09A ; B=A M .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP .con 0x000 ; NOP LB_ADF4: .con 0x130 ; LDI 006 .con 0x006 ; .con 0x106 ; A=C S&X .con 0x0A6 ; ACEX S&X .con 0x23C ; RCR 2 LB_ADF9: .con 0x35C ; PT= 12 .con 0x130 ; LDI 0BF .con 0x0BF ; .con 0x10E ; A=C ALL LB_ADFD: .con 0x166 ; A=A+1 S&X LB_ADFE: .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x378 ; C=REGN (13)c .con 0x306 ; ?A<C S&X .con 0x3A0 ; RTNNC .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x0A6 ; ACEX S&X .con 0x038 ; C=REGN ( 0)T .con 0x2EE ; ?C#0 ALL .con 0x3A0 ; RTNNC .con 0x23E ; C=C+1 MS ; .con 0x39F ; GOC -0D LB_ADFD ADFD goc LB_ADFD .con 0x362 ; ?A#C @R ; .con 0x037 ; GOC +06 LB_AE12 AE12 goc LB_AE12 .con 0x1B0 ; C=STK .con 0x23A ; C=C+1 M .con 0x170 ; STK=C .con 0x038 ; C=REGN ( 0)T .con 0x3E0 ; RTN LB_AE12: .con 0x0FC ; RCR 10 .con 0x056 ; C=0 XS .con 0x146 ; A=A+C S&X ; .con 0x34B ; GONC -17 LB_ADFE ADFE gonc LB_ADFE .con 0x084 ; ST=0 5 .con 0x00E ; A=0 ALL .con 0x001 ; GOLNC 0400 .con 0x012 ; ;LB_AE1A: .con 0x379 ; GSB41C LB_ADF4 ADF4 ; GSUBNC 0FDE, address in same Quad LB_AE1A: RXQ LB_ADF4 ; .con 0x03C ; ; .con 0x1F4 ; ; .con 0x133 ; GONC +26 LB_AE43 AE43 gonc LB_AE43 .con 0x166 ; A=A+1 S&X .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x05E ; C=0 MS .con 0x10E ; A=C ALL .con 0x2A0 ; SETDEC .con 0x04E ; C=0 ALL .con 0x130 ; LDI 003 .con 0x003 ; .con 0x35C ; PT= 12 .con 0x250 ; LC 9 .con 0x210 ; LC 8 .con 0x090 ; LC 2 .con 0x050 ; LC 1 .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x04E ; C=0 ALL .con 0x266 ; C=C-1 S&X .con 0x35C ; PT= 12 .con 0x090 ; LC 2 .con 0x050 ; LC 1 .con 0x050 ; LC 1 .con 0x0D0 ; LC 3 .con 0x090 ; LC 2 .con 0x1D0 ; LC 7 .con 0x025 ; GSUBNC AD1-10 1809 ; HP41 SYSTEM ROM 1 .con 0x060 ; .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x0EE ; BCEX ALL .con 0x0CE ; C=B ALL .con 0x27E ; C=C-1 MS .con 0x2F0 ; DATA=C .con 0x0B9 ; GOLNC RCL 122E ; HP41 SYSTEM ROM 1 .con 0x04A ; ;LB_AE43: .con 0x379 ; GSB41C LB_AE51 AE51 ; GSUBNC 0FDE, address in same Quad LB_AE43: RXQ LB_AE51 ; .con 0x03C ; ; .con 0x251 ; ; .con 0x2A3 ; GONC -2C LB_AE1A AE1A gonc LB_AE1A .con 0x094 ; ?PT= 5 .con 0x004 ; ST=0 3 .con 0x005 ; GSUBC 0101 .con 0x005 ; ; .con 0x013 ; GONC +02 LB_AE4D AE4D gonc LB_AE4D .con 0x0F8 ; C=REGN ( 3)X LB_AE4D: .con 0x361 ; GSUBNC CHK$S 14D8 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x2EE ; ?C#0 ALL ; .con 0x057 ; GOC +0A LB_AE5A AE5A goc LB_AE5A LB_AE51: .con 0x04E ; C=0 ALL .con 0x2D9 ; GSUBNC 5AB6 .con 0x168 ; .con 0x2EE ; ?C#0 ALL ; .con 0x02B ; GONC +05 LB_AE5A AE5A gonc LB_AE5A .con 0x27C ; RCR 9 .con 0x2A0 ; SETDEC .con 0x046 ; C=0 S&X .con 0x266 ; C=C-1 S&X LB_AE5A: .con 0x070 ; N=C ;LB_AE5B: .con 0x375 ; GSB41C LB_ADF4 ADF4 ; GSUBNC 0FDD, address in same Quad LB_AE5B: RXQ LB_ADF4 ; .con 0x03C ; ; .con 0x1F4 ; ; .con 0x063 ; GONC +0C LB_AE6A AE6A gonc LB_AE6A .con 0x166 ; A=A+1 S&X .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x0B0 ; C=N .con 0x084 ; ST=0 5 .con 0x0ED ; GSUBNC INTFRC 193B ; HP41 SYSTEM ROM 1 .con 0x064 ; .con 0x05E ; C=0 MS .con 0x27E ; C=C-1 MS .con 0x2F0 ; DATA=C .con 0x3E0 ; RTN LB_AE6A: .con 0x0A6 ; ACEX S&X .con 0x158 ; M=C .con 0x04E ; C=0 ALL .con 0x270 ; DADD=C .con 0x285 ; GSUBNC MEMLFT 05A1 ; HP41 SYSTEM ROM 0 .con 0x014 ; .con 0x106 ; A=C S&X .con 0x130 ; LDI 002 .con 0x002 ; .con 0x306 ; ?A<C S&X ; .con 0x05F ; GOC +0B LB_AE7F AE7F goc LB_AE7F .con 0x198 ; C=M .con 0x270 ; DADD=C .con 0x106 ; A=C S&X .con 0x2DC ; PT= 13 .con 0x190 ; LC 6 .con 0x190 ; LC 6 .con 0x010 ; LC 0 .con 0x090 ; LC 2 .con 0x2F0 ; DATA=C ; .con 0x2EB ; GONC -23 LB_AE5B AE5B gonc LB_AE5B ;LB_AE7F: .con 0x3B5 ; GSB41C LB_AE8F AE8F ; GSUBNC 23ED, address in 4th Quad LB_AE7F: RXQ LB_AE8F ; .con 0x08C ; ; .con 0x28F ; .con 0x00E ; A=0 ALL ; .con 0x00F ; GOC +01 LB_AE84 AE84 goc LB_AE84 LB_AE84: .con 0x020 ; SPOPND .con 0x012 ; A=0 P-Q ; .con 0x00F ; GOC +01 LB_AE87 AE87 goc LB_AE87 ;LB_AE87: .con 0x00F ; GOC +01 LB_AE88 AE88 LB_AE87: goc LB_AE88 LB_AE88: .con 0x20D ; GSUBNC 4283 .con 0x108 ; ; .con 0x349 ; GSB41C LB_A2C7 A2C7 ; GSUBNC 23D2, address in 1st Quad RXQ LB_A2C7 ; .con 0x08C ; ; .con 0x2C7 ; .con 0x3ED ; GOLNC ERR110 22FB ; HP41 SYSTEM ROM 2 .con 0x08A ; LB_AE8F: .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x3BD ; GOLNC MESSL 07EF ; HP41 SYSTEM ROM 0 .con 0x01E ; .con 0x09E ; .con 0x00C ; .con 0x203 ; .NAME "RCL^" RCL^: .con 0x148 ; ST=1 6 .con 0x0B8 ; C=REGN ( 2)Y .con 0x070 ; N=C ; .con 0x0DB ; GONC +1B LB_AEB5 AEB5 gonc LB_AEB5 .con 0x0AD ; .con 0x00C ; .con 0x203 ; .NAME "RCL-" RCL-: .con 0x084 ; ST=0 5 ; .con 0x033 ; GONC +06 LB_AEA6 AEA6 gonc LB_AEA6 .con 0x0AB ; .con 0x00C ; .con 0x203 ; .NAME "RCL+" RCL+: .con 0x088 ; ST=1 5 LB_AEA6: .con 0x284 ; ST=0 7 ; .con 0x06B ; GONC +0D LB_AEB4 AEB4 gonc LB_AEB4 .con 0x0AA ; .con 0x00C ; .con 0x203 ; .NAME "RCL*" RCL*: .con 0x084 ; ST=0 5 ; .con 0x033 ; GONC +06 LB_AEB3 AEB3 gonc LB_AEB3 .con 0x0AF ; .con 0x00C ; .con 0x203 ; .NAME "RCL/" RCL/: .con 0x088 ; ST=1 5 LB_AEB3: .con 0x288 ; ST=1 7 LB_AEB4: .con 0x144 ; ST=0 6 LB_AEB5: .con 0x04C ; ST=1? 4 ; .con 0x01F ; GOC +03 LB_AEB9 AEB9 goc LB_AEB9 .con 0x2CC ; ST=1? 13 ; .con 0x023 ; GONC +04 LB_AEBC AEBC gonc LB_AEBC ;LB_AEB9: .con 0x379 ; GSB41C LB_AEE6 AEE6 ; GSUBNC 0FDE, address in same Quad LB_AEB9: RXQ LB_AEE6 ; .con 0x03C ; ; .con 0x2E6 ; LB_AEBC: .con 0x026 ; B=0 S&X ; .con 0x379 ; GSB41C LB_AF0E AF0E ; GSUBNC 0FDE, address in same Quad RXQ LB_AF0E ; .con 0x03C ; ; .con 0x30E ; .con 0x0A6 ; ACEX S&X .con 0x270 ; DADD=C .con 0x038 ; C=REGN ( 0)T .con 0x10E ; A=C ALL .con 0x046 ; C=0 S&X .con 0x270 ; DADD=C .con 0x0F8 ; C=REGN ( 3)X .con 0x355 ; GSUBNC 14D5 .con 0x050 ; .con 0x14C ; ST=1? 6 ; .con 0x05B ; GONC +0B LB_AED5 AED5 gonc LB_AED5 .con 0x0AE ; ACEX ALL .con 0x0A8 ; REGN=C ( 2)Y .con 0x0AE ; ACEX ALL .con 0x3C4 ; CLRST .con 0x045 ; GSUBNC XY^X 1B11 ; HP41 SYSTEM ROM 1 .con 0x06C ; .con 0x0F0 ; CNEX .con 0x0A8 ; REGN=C ( 2)Y .con 0x0F0 ; CNEX ; .con 0x083 ; GONC +10 LB_AEE4 AEE4 gonc LB_AEE4 LB_AED5: .con 0x28C ; ST=1? 7 ; .con 0x047 ; GOC +08 LB_AEDE AEDE goc LB_AEDE .con 0x08C ; ST=1? 5 ; .con 0x01F ; GOC +03 LB_AEDB AEDB goc LB_AEDB .con 0x2BE ; C=-C-1 MS .con 0x000 ; NOP LB_AEDB: .con 0x01D ; GSUBNC AD2-10 1807 ; HP41 SYSTEM ROM 1 .con 0x060 ; ; .con 0x03B ; GONC +07 LB_AEE4 AEE4 gonc LB_AEE4 LB_AEDE: .con 0x08C ; ST=1? 5 .con 0x261 ; GSUBC DV2-10 1898 ; HP41 SYSTEM ROM 1 .con 0x061 ; .con 0x08C ; ST=1? 5 .con 0x135 ; GSUBNC MP2-10 184D ; HP41 SYSTEM ROM 1 .con 0x060 ; LB_AEE4: .con 0x331 ; GOLNC NFRX 00CC ; HP41 SYSTEM ROM 0 .con 0x002 ; LB_AEE6: .con 0x1A0 ; CLRABC .con 0x158 ; M=C .con 0x141 ; GSUBNC GETPC 2950 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; LB_AEEA: .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_AEEA AEEA gonc LB_AEEA LB_AEEF: .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_AF02 AF02 gonc LB_AF02 .con 0x042 ; C=0 @R .con 0x306 ; ?A<C S&X ; .con 0x057 ; GOC +0A LB_AF02 AF02 goc LB_AF02 .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_AEEF AEEF gonc LB_AEEF LB_AF02: .con 0x06E ; ABEX ALL .con 0x31D ; GSUBNC DECAD 29C7 ; HP41 SYSTEM ROM 2 .con 0x0A4 ; .con 0x346 ; ?A#0 S&X .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_AF0E: .con 0x130 ; LDI 080 .con 0x080 ; .con 0x306 ; ?A<C S&X ; .con 0x05F ; GOC +0B LB_AF1C AF1C goc LB_AF1C .con 0x1C6 ; A=A-C S&X ; .con 0x379 ; GSB41C LB_AF1E AF1E ; GSUBNC 0FDE, address in same Quad RXQ LB_AF1E ; .con 0x03C ; ; .con 0x31E ; .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_AF1C: .con 0x0C6 ; C=B S&X .con 0x146 ; A=A+C S&X LB_AF1E: .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 0x11A ; A=C M .con 0x0A9 ; GSUBC 402A .con 0x101 ; .con 0x080 ; UNDEF080 .con 0x10A ; A=C R<- .con 0x0C2 ; C=B @R .con 0x109 ; GSUBNC 3142 .con 0x0C4 ; .con 0x121 ; GSUBNC 3248 .con 0x0C8 ; .con 0x12C ; FLG=1? 8 ; ?FRAV, HP-IL Frame .con 0x0CA ; C=B R<- .con 0x12D ; GSUBC 334B .con 0x0CD ; .con 0x120 ; ?P=Q .con 0x0AD ; GSUBC 4F2B .con 0x13D ; .con 0x0D2 ; C=B P-Q ; .con 0x11F ; GOC +23 LB_AF5E AF5E goc LB_AF5E .con 0x0AE ; ACEX ALL .con 0x149 ; GSUBC 3552 .con 0x0D5 ; ; .con 0x10B ; GONC +21 LB_AF60 AF60 gonc LB_AF60 .con 0x0F2 ; BCEX P-Q .con 0x14C ; ST=1? 6 .con 0x0B2 ; ACEX P-Q ; .con 0x13F ; GOC +27 LB_AF6A AF6A goc LB_AF6A .con 0x0DD ; GSUBC 4737 .con 0x11D ; .con 0x0E0 ; SELQ .con 0x12E ; A=A+B ALL .con 0x0D8 ; CGEX .con 0x11E ; A=C MS ; .con 0x0B7 ; GOC +16 LB_AF60 AF60 goc LB_AF60 .con 0x13C ; RCR 8 ; .con 0x0B3 ; GONC +16 LB_AF62 AF62 gonc LB_AF62 .con 0x13E ; A=A+B MS .con 0x0DC ; PT= 10 ; .con 0x13B ; GONC +27 LB_AF76 AF76 gonc LB_AF76 .con 0x0B8 ; C=REGN ( 2)Y ; .con 0x133 ; GONC +26 LB_AF77 AF77 gonc LB_AF77 .con 0x0F9 ; GOLC 4B3E .con 0x12F ; .con 0x0DE ; C=B MS ; .con 0x14B ; GONC +29 LB_AF7E AF7E gonc LB_AF7E ; .con 0x0BB ; GONC +17 LB_AF6D AF6D gonc LB_AF6D .con 0x129 ; GOLNC 384A .con 0x0E2 ; .con 0x10E ; A=C ALL .con 0x0E6 ; BCEX S&X ; .con 0x10F ; GOC +21 LB_AF7C AF7C goc LB_AF7C .con 0x0E5 ; GSUBNC 4439 .con 0x110 ; ;LB_AF5E: .con 0x0E3 ; GONC +1C LB_AF7A AF7A LB_AF5E: gonc LB_AF7A .con 0x10D ; GSUBNC 3943 LB_AF60: .con 0x0E4 ; .con 0x139 ; GSUBNC 3A4E LB_AF62: .con 0x0E8 ; .con 0x119 ; GOLC 3946 .con 0x0E7 ; ; .con 0x12B ; GONC +25 LB_AF8A AF8A gonc LB_AF8A .con 0x0DA ; C=B M .con 0x000 ; NOP LB_AF68: .con 0x06E ; ABEX ALL .con 0x198 ; C=M LB_AF6A: .con 0x01C ; PT= 3 .con 0x36A ; ?A#C R<- ; .con 0x0E7 ; GOC +1C LB_AF88 AF88 goc LB_AF88 LB_AF6D: .con 0x0B0 ; C=N .con 0x0AE ; ACEX ALL .con 0x1FD ; GSUBNC TBITMA 2F7F ; HP41 SYSTEM ROM 2 .con 0x0BC ; ; .con 0x0C3 ; GONC +18 LB_AF89 AF89 gonc LB_AF89 LB_AF72: .con 0x309 ; GSUBNC ASN15 27C2 ; HP41 SYSTEM ROM 2 .con 0x09C ; ; .con 0x0A3 ; GONC +14 LB_AF88 AF88 gonc LB_AF88 LB_AF75: .con 0x2EE ; ?C#0 ALL ;LB_AF76: .con 0x093 ; GONC +12 LB_AF88 AF88 LB_AF76: gonc LB_AF88 LB_AF77: .con 0x0B0 ; C=N .con 0x0AE ; ACEX ALL .con 0x304 ; ST=0 1 LB_AF7A: .con 0x201 ; GSUBNC GCPKC 2B80 ; HP41 SYSTEM ROM 2 .con 0x0AC ; LB_AF7C: .con 0x00C ; ST=1? 3 ; .con 0x05F ; GOC +0B LB_AF88 AF88 goc LB_AF88 LB_AF7E: .con 0x158 ; M=C .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x278 ; C=REGN ( 9)Q .con 0x330 ; CXISA .con 0x070 ; N=C .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x0EE ; BCEX ALL ; .con 0x1FB ; GONC +3F LB_AFC6 AFC6 gonc LB_AFC6 ;LB_AF88: .con 0x19B ; GONC +33 LB_AFBB AFBB LB_AF88: gonc LB_AFBB ;LB_AF89: .con 0x143 ; GONC +28 LB_AFB1 AFB1 LB_AF89: gonc LB_AFB1 LB_AF8A: .con 0x21C ; PT= 2 .con 0x110 ; LC 4 .con 0x06E ; ABEX ALL .con 0x156 ; A=A+C XS .con 0x06E ; ABEX ALL LB_AF8F: .con 0x130 ; LDI 00A .con 0x00A ; .con 0x1BC ; RCR 11 .con 0x0FA ; BCEX M LB_AF93: .con 0x10C ; ST=1? 8 ; .con 0x2A7 ; GOC -2C LB_AF68 AF68 goc LB_AF68 .con 0x201 ; GSUBNC GCPKC 2B80 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x00C ; ST=1? 3 ; .con 0x11F ; GOC +23 LB_AFBB AFBB goc LB_AFBB .con 0x04E ; C=0 ALL .con 0x0CA ; C=B R<- .con 0x0FC ; RCR 10 .con 0x0AA ; ACEX R<- .con 0x23C ; RCR 2 .con 0x27E ; C=C-1 MS .con 0x0EE ; BCEX ALL .con 0x31D ; GSUBNC AVAILA 28C7 ; HP41 SYSTEM ROM 2 .con 0x0A0 ; .con 0x2EE ; ?C#0 ALL ; .con 0x27F ; GOC -31 LB_AF72 AF72 goc LB_AF72 .con 0x270 ; DADD=C .con 0x06E ; ABEX ALL .con 0x285 ; GSUBNC TSTMAP 14A1 ; HP41 SYSTEM ROM 1 .con 0x050 ; .con 0x009 ; GOLNC PACKE 2002 ; HP41 SYSTEM ROM 2 .con 0x082 ; LB_AFAA: .con 0x0E6 ; BCEX S&X .con 0x1FD ; GSUBNC TBITMA 2F7F ; HP41 SYSTEM ROM 2 .con 0x0BC ; .con 0x10C ; ST=1? 8 ; .con 0x23F ; GOC -39 LB_AF75 AF75 goc LB_AF75 .con 0x2EE ; ?C#0 ALL ; .con 0x0A3 ; GONC +14 LB_AFC4 AFC4 gonc LB_AFC4 LB_AFB1: .con 0x295 ; GSUBNC SRBMAP 2FA5 ; HP41 SYSTEM ROM 2 .con 0x0BC ; .con 0x308 ; ST=1 1 .con 0x0B0 ; C=N .con 0x0AE ; ACEX ALL .con 0x201 ; GSUBNC GCPKC 2B80 ; HP41 SYSTEM ROM 2 .con 0x0AC ; .con 0x278 ; C=REGN ( 9)Q .con 0x10C ; ST=1? 8 ; .con 0x13B ; GONC +27 LB_AFE1 AFE1 gonc LB_AFE1 LB_AFBB: .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; .con 0x278 ; C=REGN ( 9)Q .con 0x23A ; C=C+1 M .con 0x23A ; C=C+1 M ; .con 0x103 ; GONC +20 LB_AFE0 AFE0 gonc LB_AFE0 ;LB_AFC1: .con 0x24B ; GONC -37 LB_AF8A AF8A LB_AFC1: gonc LB_AF8A ;LB_AFC2: .con 0x343 ; GONC -18 LB_AFAA AFAA LB_AFC2: gonc LB_AFAA ;LB_AFC3: .con 0x283 ; GONC -30 LB_AF93 AF93 LB_AFC3: gonc LB_AF93 LB_AFC4: .con 0x295 ; GSUBNC SRBMAP 2FA5 ; HP41 SYSTEM ROM 2 .con 0x0BC ; LB_AFC6: .con 0x0B0 ; C=N .con 0x05E ; C=0 MS .con 0x05A ; C=0 M .con 0x37C ; RCR 12 .con 0x10E ; A=C ALL .con 0x0B0 ; C=N .con 0x276 ; C=C-1 XS .con 0x276 ; C=C-1 XS ; .con 0x20F ; GOC -3F LB_AF8F AF8F goc LB_AF8F .con 0x2F6 ; ?C#0 XS ; .con 0x38F ; GOC -0F LB_AFC1 AFC1 goc LB_AFC1 .con 0x03A ; B=0 M .con 0x21C ; PT= 2 .con 0x110 ; LC 4 .con 0x0F6 ; BCEX XS ; .con 0x373 ; GONC -12 LB_AFC3 AFC3 gonc LB_AFC3 ;LB_AFD6: .con 0x379 ; GSB41C LB_AFDA AFDA ; GSUBNC 0FDE, address in same Quad LB_AFD6: RXQ LB_AFDA ; .con 0x03C ; ; .con 0x3DA ; .con 0x0B0 ; C=N LB_AFDA: .con 0x1B0 ; C=STK .con 0x330 ; CXISA .con 0x11A ; A=C M .con 0x05A ; C=0 M .con 0x1BC ; RCR 11 .con 0x25A ; C=A-C M LB_AFE0: .con 0x268 ; REGN=C ( 9)Q LB_AFE1: .con 0x330 ; CXISA .con 0x10E ; A=C ALL .con 0x070 ; N=C .con 0x23A ; C=C+1 M .con 0x330 ; CXISA .con 0x356 ; ?A#0 XS ; .con 0x2DF ; GOC -25 LB_AFC2 AFC2 goc LB_AFC2 .con 0x10C ; ST=1? 8 ; .con 0x04B ; GONC +09 LB_AFF2 AFF2 gonc LB_AFF2 .con 0x001 ; GSUBNC 2000 .con 0x080 ; .con 0x239 ; GSUBNC RSTMS0 038E ; HP41 SYSTEM ROM 0 .con 0x00C ; .con 0x3C1 ; GSUBNC CLLCDE 2CF0 ; HP41 SYSTEM ROM 2 .con 0x0B0 ; .con 0x149 ; GSUBNC ENCP00 0952 ; HP41 SYSTEM ROM 0 .con 0x024 ; LB_AFF2: .con 0x3C1 ; GOLNC NFRPU 00F0 ; HP41 SYSTEM ROM 0 .con 0x002 ; _EN_PSE: .con 0x000 ; NOP _EN_PRGM: .con 0x000 ; NOP _EN_SLEEP: .con 0x000 ; NOP _EN_OFF: .con 0x000 ; NOP _EN_IOSVC: .con 0x000 ; NOP _EN_ON: .con 0x000 ; NOP _EN_MEMLST:.con 0x000 ; NOP _ROMREV: .con 0x006 ; .ROMREV SM-9F _ROMREV: .con 0x039 ; _ROMREV: .con 0x00D ; _ROMREV: .con 0x013 ; _CHKSUM: .con 0x004 ; .CHKSUM 004 ; Calculated Checksum: 093 ;: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_003.00 .con 0x ;:_XR_003.01 .con 0x ;:_XR_003.02 .con 0x ;:_XR_003.03 .con 0x ;:_XR_003.04 .con 0x ;:_XR_003.05 .con 0x ;:_XR_003.06 .con 0x ;:_XR_003.07 .con 0x ;:_XR_003.08 .con 0x ;:_XR_003.09 .con 0x ;:_XR_003.10 .con 0x ;:_XR_003.11 .con 0x ;:_XR_003.12 .con 0x ;:_XR_003.13 .con 0x ;:_XR_003.14 .con 0x ;:_XR_003.15 .con 0x ;:_XR_003.16 .con 0x ;:_XR_003.17 .con 0x ;:_XR_003.18 .con 0x ;:_XR_003.19 .con 0x ;:_XR_003.20 .con 0x ;:_XR_003.21 .con 0x ;:_XR_003.22 .con 0x ;:_XR_003.23 .con 0x ;:_XR_003.24 .con 0x ;:_XR_003.25 .con 0x ;:_XR_003.26 .con 0x ;:_XR_003.27 .con 0x ;:_XR_003.28 .con 0x ;:_XR_003.29 .con 0x ;:_XR_003.30 .con 0x ;:_XR_003.31 .con 0x ;:_XR_003.32 .con 0x ;:_XR_003.33 .con 0x ;:_XR_003.34 .con 0x ;:_XR_003.35 .con 0x ;:_XR_003.36 .con 0x ;:_XR_003.37 .con 0x ;:_XR_003.38 .con 0x ;:_XR_003.39 .con 0x ;:_XR_003.40 .con 0x ;:_XR_003.41 .con 0x ;:_XR_003.42 .con 0x ;:_XR_003.43 .con 0x ;:_XR_003.44 .con 0x ;:_XR_003.45 .con 0x ;:_XR_003.46 .con 0x ;:_XR_003.47 .con 0x ;:_XR_003.48 .con 0x ;:_XR_003.49 .con 0x ;:_XR_003.50 .con 0x ;:_XR_003.51 .con 0x ;:_XR_003.52 .con 0x ;:_XR_003.53 .con 0x ;:_XR_003.54 .con 0x ;:_XR_003.55 .con 0x ;:_XR_003.56 .con 0x ;:_XR_003.57 .con 0x ;:_XR_003.58 .con 0x ;:_XR_003.59 .con 0x ;:_XR_003.60 .con 0x ;:_XR_003.61 .con 0x ;:_XR_003.62 .con 0x ;:_XR_003.63 .con 0x ;:_XROM .con 0x ;:2^X-1 .con 0x A004 ;:AINT .con 0x A00C ;:AIRCL .con 0x A076 ;:ATAN2 .con 0x A00E ;:BS>D .con 0x A010 ;:CBRT .con 0x A012 ;:CEIL .con 0x A014 ;:CHSYX .con 0x A016 ;:D>BS .con 0x A01A ;:D>F .con 0x A058 ;:D>H .con 0x A01C ;:E3/ .con 0x A01E ;:E3/E+ .con 0x A020 ;:F- .con 0x A05C ;:F* .con 0x A05E ;:F/ .con 0x A060 ;:F+ .con 0x A05A ;:FLOOR .con 0x A022 ;:-FRC .con 0x A056 ;:FRC? .con 0x A062 ;:GEU .con 0x A024 ;:H>D .con 0x A026 ;:HACOS .con 0x A068 ;:HASIN .con 0x A06A ;:HATAN .con 0x A06C ;:HCOS .con 0x A06E ;:HMS* .con 0x A028 ;:HMS/ .con 0x A02A ;:HSIN .con 0x A070 ;:HTAN .con 0x A072 ;:-HYP .con 0x A066 ;:INT? .con 0x A064 ;:LB_A091 .con 0x A08A ;:LB_A0A3 .con 0x A0A1 ;:LB_A0CA .con 0x A0A8 ;:LB_A0F1 .con 0x A0EB ;:LB_A0F6 .con 0x A0E5 ;:LB_A0F8 .con 0x A0F3 ;:LB_A0FE .con 0x A11E ;:LB_A106 .con 0x A104 ;:LB_A16C .con 0x A180 ;:LB_A181 .con 0x A175 A213 ;:LB_A183 .con 0x A19B ;:LB_A19D .con 0x A114 A1BF ;:LB_A1A2 .con 0x A19E ;:LB_A1B6 .con 0x A1B3 ;:LB_A206 .con 0x A218 ;:LB_A220 .con 0x A226 ;:LB_A229 .con 0x AD39 ;:LB_A22A .con 0x A24A ;:LB_A24A .con 0x A24F ;:LB_A24B .con 0x A259 ;:LB_A250 .con 0x A245 ;:LB_A25A .con 0x A295 ;:LB_A263 .con 0x A243 A27E ;:LB_A266 .con 0x AD32 ;:LB_A267 .con 0x A285 ;:LB_A26E .con 0x A26A ;:LB_A285 .con 0x A28A ;:LB_A286 .con 0x A294 ;:LB_A28B .con 0x A280 ;:LB_A2A1 .con 0x A29A ;:LB_A2A8 .con 0x A2AF ;:LB_A2C7 .con 0x A447 A59B AE8A ;:LB_A2CC .con 0x A2C4 ;:LB_A2DA .con 0x A2D7 ;:LB_A2DD .con 0x A2D9 ;:LB_A2E8 .con 0x A2D0 ;:LB_A356 .con 0x A33C ;:LB_A358 .con 0x A384 ;:LB_A35B .con 0x A38E ;:LB_A364 .con 0x A364 ;:LB_A36F .con 0x A36D ;:LB_A373 .con 0x A36E A390 ;:LB_A377 .con 0x A367 ;:LB_A378 .con 0x A376 ;:LB_A379 .con 0x A379 ;:LB_A37D .con 0x A36B ;:LB_A382 .con 0x A36A A39C ;:LB_A38F .con 0x A38C ;:LB_A391 .con 0x A386 ;:LB_A3A5 .con 0x A3A2 ;:LB_A3AA .con 0x A395 ;:LB_A3AC .con 0x A3A4 ;:LB_A3C9 .con 0x A3CC A3CE A3D1 ;:LB_A3CB .con 0x A3C5 ;:LB_A3CF .con 0x A3D8 ;:LB_A3D3 .con 0x A3BC A3D9 ;:LB_A3DA .con 0x A3D6 ;:LB_A3F5 .con 0x A40F ;:LB_A3FB .con 0x A3F3 A43A ;:LB_A3FD .con 0x A425 ;:LB_A401 .con 0x A428 ;:LB_A406 .con 0x A407 A40B ;:LB_A415 .con 0x A413 ;:LB_A41F .con 0x A419 ;:LB_A436 .con 0x A435 ;:LB_A43A .con 0x A438 ;:LB_A442 .con 0x A43C ;:LB_A447 .con 0x A441 ;:LB_A45D .con 0x A461 ;:LB_A462 .con 0x A45E ;:LB_A469 .con 0x A479 ;:LB_A481 .con 0x A485 ;:LB_A48B .con 0x A482 ;:LB_A490 .con 0x A48A ;:LB_A496 .con 0x A48D ;:LB_A498 .con 0x A4AC ;:LB_A4A4 .con 0x A49F ;:LB_A4B6 .con 0x A4BB ;:LB_A4BD .con 0x A4B7 A4CE ;:LB_A4CF .con 0x A4BC A4CA ;:LB_A4D9 .con 0x A4B0 ;:LB_A4DB .con 0x A4F0 ;:LB_A4DE .con 0x A4EB ;:LB_A4E9 .con 0x A4E5 ;:LB_A4F1 .con 0x A4ED ;:LB_A500 .con 0x A4F9 ;:LB_A517 .con 0x A516 ;:LB_A518 .con 0x A512 ;:LB_A523 .con 0x A50C ;:LB_A52A .con 0x A513 ;:LB_A547 .con 0x A544 ;:LB_A556 .con 0x A538 A553 ;:LB_A561 .con 0x A55D ;:LB_A56B .con 0x A567 ;:LB_A572 .con 0x A58B ;:LB_A58C .con 0x A573 ;:LB_A58F .con 0x A5B6 ;:LB_A59F .con 0x A599 ;:LB_A5BF .con 0x A5ED ;:LB_A5C9 .con 0x A5C4 ;:LB_A5DC .con 0x A5D9 ;:LB_A5F1 .con 0x A5F0 ;:LB_A5F3 .con 0x A5F1 ;:LB_A5F5 .con 0x A5F3 ;:LB_A610 .con 0x A5F8 A5FF A604 A60A ;:LB_A646 .con 0x A63C ;:LB_A664 .con 0x A65A ;:LB_A670 .con 0x A66E ;:LB_A675 .con 0x A652 A673 ;:LB_A6AF .con 0x A683 ;:LB_A6B1 .con 0x A6EC ;:LB_A6B3 .con 0x A6A5 ;:LB_A6BE .con 0x A69B ;:LB_A6C1 .con 0x A69D ;:LB_A6CA .con 0x A6A6 ;:LB_A6D1 .con 0x A6A7 ;:LB_A6E1 .con 0x A6D3 ;:LB_A6E6 .con 0x A6D8 ;:LB_A6E7 .con 0x A6B9 ;:LB_A6E9 .con 0x A6BF ;:LB_A6F7 .con 0x A6C7 ;:LB_A701 .con 0x A6D9 ;:LB_A704 .con 0x A6D2 ;:LB_A707 .con 0x A6E4 A6FC ;:LB_A710 .con 0x A6DE ;:LB_A711 .con 0x A70E ;:LB_A71A .con 0x A71E ;:LB_A720 .con 0x A71B ;:LB_A74B .con 0x A747 ;:LB_A756 .con 0x A754 ;:LB_A76E .con 0x A76C ;:LB_A77D .con 0x A779 ;:LB_A780 .con 0x A76A ;:LB_A787 .con 0x A774 A77F ;:LB_A794 .con 0x A78E ;:LB_A7A0 .con 0x A7B3 A7C6 A7E4 ;:LB_A7B3 .con 0x A7AD ;:LB_A7DB .con 0x A7D1 ;:LB_A807 .con 0x A7F5 A803 ;:LB_A809 .con 0x A5C6 ;:LB_A80B .con 0x A828 ;:LB_A81C .con 0x A817 ;:LB_A823 .con 0x A81B A81F ;:LB_A829 .con 0x A812 ;:LB_A857 .con 0x A854 ;:LB_A85F .con 0x A85A ;:LB_A86C .con 0x A85E ;:LB_A87A .con 0x A86F A878 ;:LB_A892 .con 0x A87D ;:LB_A8A4 .con 0x A891 ;:LB_A8A6 .con 0x A8FD ;:LB_A8A7 .con 0x A8A1 ;:LB_A8FD .con 0x A8F8 ;:LB_A904 .con 0x A902 ;:LB_A909 .con 0x A904 A907 ;:LB_A90E .con 0x A90A ;:LB_A918 .con 0x A914 ;:LB_A92C .con 0x A926 ;:LB_A933 .con 0x A92D ;:LB_A939 .con 0x A932 ;:LB_A93A .con 0x A96C ;:LB_A96F .con 0x A9AA ;:LB_A98B .con 0x A97C ;:LB_A98D .con 0x A97F ;:LB_A998 .con 0x A989 ;:LB_A9A6 .con 0x A998 ;:LB_A9A9 .con 0x A9A4 ;:LB_A9AC .con 0x A980 ;:LB_A9AD .con 0x A99D ;:LB_A9B5 .con 0x A993 ;:LB_A9C5 .con 0x A9A5 ;:LB_A9C6 .con 0x A988 ;:LB_A9C9 .con 0x A997 ;:LB_A9D2 .con 0x A99C ;:LB_A9E2 .con 0x AAA7 ;:LB_A9EB .con 0x A9F9 AA04 AA1C AA25 ;:LB_A9F2 .con 0x A562 A5A2 A639 A657 A727 A743 A764 A7A2 A7F1 A834 A9AF AADB ;:LB_AA07 .con 0x A9FE AA01 ;:LB_AA28 .con 0x AA22 ;:LB_AA2F .con 0x AA19 ;:LB_AA45 .con 0x AA3E ;:LB_AA53 .con 0x AA89 ;:LB_AA8A .con 0x AA50 ;:LB_AA91 .con 0x AA8C ;:LB_AAAA .con 0x A680 A975 ACB1 ;:LB_AABE .con 0x AAB7 ;:LB_AAC9 .con 0x AAC7 ;:LB_AAF1 .con 0x AD26 ;:LB_AAF5 .con 0x AB0D ;:LB_AB09 .con 0x AB01 ;:LB_AB0E .con 0x AAF7 AB1D ;:LB_AB16 .con 0x AD1E ;:LB_AB1B .con 0x AB26 ;:LB_AB26 .con 0x AB2B ;:LB_AB27 .con 0x AB35 ;:LB_AB2C .con 0x AB1F ;:LB_AB3D .con 0x AB06 ABBE ;:LB_AB3E .con 0x A260 A3A7 AB3C AD48 ;:LB_AB42 .con 0x A3B3 ;:LB_AB56 .con 0x AB7A ;:LB_AB5A .con 0x A263 A358 AB0E AB57 AD06 ;:LB_AB63 .con 0x AB64 ;:LB_AB73 .con 0x AB73 ;:LB_AB77 .con 0x AB59 AB83 ;:LB_AB78 .con 0x AB76 AB95 ABA1 ;:LB_AB81 .con 0x AB85 ;:LB_AB86 .con 0x AB93 ;:LB_AB8B .con 0x AB7C ;:LB_AB92 .con 0x AB90 ;:LB_AB94 .con 0x AB8C ;:LB_ABA1 .con 0x ABA3 ABAD ;:LB_ABA2 .con 0x AB9C ;:LB_ABAD .con 0x ABB5 ;:LB_ABAE .con 0x ABA5 ;:LB_ABC1 .con 0x AB8A ;:LB_ABC5 .con 0x ABC6 ;:LB_ABCC .con 0x ABCE ;:LB_ABF0 .con 0x ABEB ;:LB_ABF5 .con 0x ABF1 ;:LB_ABFF .con 0x A282 AB23 ;:LB_AC08 .con 0x AC04 ;:LB_AC0F .con 0x AC0E ;:LB_AC10 .con 0x AC10 ;:LB_AC11 .con 0x AC0F ;:LB_AC21 .con 0x AC1B ;:LB_AC24 .con 0x AC20 ;:LB_AC27 .con 0x AC52 ;:LB_AC38 .con 0x AC3A ;:LB_AC39 .con 0x AC37 ;:LB_AC3C .con 0x AC2D ;:LB_AC42 .con 0x AC2F ;:LB_AC46 .con 0x AC41 AC44 ;:LB_AC49 .con 0x AC32 AC34 AC3B ;:LB_AC4E .con 0x AC4C ;:LB_AC53 .con 0x AC63 ;:LB_AC61 .con 0x AC6B AC76 ;:LB_AC6C .con 0x AC69 ;:LB_AC77 .con 0x AC56 ;:LB_AC78 .con 0x ACA9 ;:LB_AC7E .con 0x AC7C ;:LB_AC8E .con 0x AC90 ;:LB_AC8F .con 0x AC8D ;:LB_AC92 .con 0x AC82 ;:LB_AC9B .con 0x AC84 ;:LB_ACA3 .con 0x AC88 AC8A AC91 AC9A AC9D ;:LB_ACBC .con 0x ACB8 ;:LB_ACCA .con 0x AD05 ;:LB_ACE0 .con 0x ACD2 ;:LB_ACEA .con 0x ACDB ;:LB_ACF2 .con 0x ACE4 ;:LB_ACF3 .con 0x ACEF ;:LB_ACF6 .con 0x ACCD ACD4 ;:LB_ACFA .con 0x ACCA ;:LB_AD01 .con 0x ACD7 ACF2 ;:LB_AD06 .con 0x AD1B ;:LB_AD0A .con 0x ACEB ACFC ;:LB_AD10 .con 0x ACE2 ;:LB_AD18 .con 0x ACDA ;:LB_AD19 .con 0x ACED AD4F ;:LB_AD21 .con 0x AD1D ;:LB_AD22 .con 0x ACF4 ;:LB_AD28 .con 0x ACFA ;:LB_AD29 .con 0x AD25 ;:LB_AD2E .con 0x AD2A ;:LB_AD2F .con 0x AD01 ;:LB_AD35 .con 0x AD31 ;:LB_AD3C .con 0x AD38 ;:LB_AD47 .con 0x AD2D ;:LB_AD4B .con 0x AD43 ;:LB_AD50 .con 0x A256 A291 A399 AAFE AB32 ABB2 AD40 ;:LB_AD5C .con 0x AD65 ;:LB_AD66 .con 0x AD62 ;:LB_AD6D .con 0x AD6A ;:LB_AD6E .con 0x AD6C ;:LB_AD82 .con 0x AD71 ;:LB_AD86 .con 0x AD73 ;:LB_AD91 .con 0x AD7C ;:LB_AD9C .con 0x AD86 ;:LB_ADAA .con 0x ADAA ;:LB_ADB2 .con 0x ADB2 ;:LB_ADBB .con 0x ADBB ;:LB_ADBF .con 0x ADBD ;:LB_ADC3 .con 0x ADBF ;:LB_ADCA .con 0x ADAB ;:LB_ADD2 .con 0x ADB3 ;:LB_ADD9 .con 0x ADBC ;:LB_ADDC .con 0x ADDC ;:LB_ADDD .con 0x ADCB ;:LB_ADDF .con 0x ADC2 ;:LB_ADEB .con 0x ADD7 ;:LB_ADF4 .con 0x ADE1 AE1A AE5B ;:LB_ADF9 .con 0x ADE9 ;:LB_ADFD .con 0x AE0A ;:LB_ADFE .con 0x AE15 ;:LB_AE12 .con 0x AE0C ;:LB_AE1A .con 0x AE46 ;:LB_AE43 .con 0x AE1D ;:LB_AE4D .con 0x AE4B ;:LB_AE51 .con 0x AE43 ;:LB_AE5A .con 0x AE50 AE55 ;:LB_AE5B .con 0x AE7E ;:LB_AE6A .con 0x AE5E ;:LB_AE7F .con 0x AE74 ;:LB_AE84 .con 0x AE83 ;:LB_AE87 .con 0x AE86 ;:LB_AE88 .con 0x AE87 ;:LB_AE8F .con 0x A2BB A35B A373 A430 A591 AAF1 AB16 AB6F AD11 AE7F ;:LB_AEA6 .con 0x AEA0 ;:LB_AEB3 .con 0x AEAD ;:LB_AEB4 .con 0x AEA7 ;:LB_AEB5 .con 0x AE9A ;:LB_AEB9 .con 0x AEB6 ;:LB_AEBC .con 0x AEB8 ;:LB_AED5 .con 0x AECA ;:LB_AEDB .con 0x AED8 ;:LB_AEDE .con 0x AED6 ;:LB_AEE4 .con 0x AED4 AEDD ;:LB_AEE6 .con 0x A2DA AEB9 ;:LB_AEEA .con 0x AEEE ;:LB_AEEF .con 0x AF01 ;:LB_AF02 .con 0x AEF5 AEF8 ;:LB_AF0E .con 0x A2DE ABF7 AEBD ;:LB_AF1C .con 0x AF11 ;:LB_AF1E .con 0x AF13 ;:LB_AF5E .con 0x AF3B ;:LB_AF60 .con 0x AF3F AF4A ;:LB_AF62 .con 0x AF4C ;:LB_AF68 .con 0x AF94 ;:LB_AF6A .con 0x AF43 ;:LB_AF6D .con 0x AF56 ;:LB_AF72 .con 0x AFA3 ;:LB_AF75 .con 0x AFAE ;:LB_AF76 .con 0x AF4F ;:LB_AF77 .con 0x AF51 ;:LB_AF7A .con 0x AF5E ;:LB_AF7C .con 0x AF5B ;:LB_AF7E .con 0x AF55 ;:LB_AF88 .con 0x AF6C AF74 AF76 AF7D ;:LB_AF89 .con 0x AF71 ;:LB_AF8A .con 0x AF65 AFC1 ;:LB_AF8F .con 0x AFCE ;:LB_AF93 .con 0x AFC3 ;:LB_AFAA .con 0x AFC2 ;:LB_AFB1 .con 0x AF89 ;:LB_AFBB .con 0x AF88 AF98 ;:LB_AFC1 .con 0x AFD0 ;:LB_AFC2 .con 0x AFE7 ;:LB_AFC3 .con 0x AFD5 ;:LB_AFC4 .con 0x AFB0 ;:LB_AFC6 .con 0x AF87 ;:LB_AFD6 .con 0x A44A ;:LB_AFDA .con 0x AFD6 ;:LB_AFE0 .con 0x AFC0 ;:LB_AFE1 .con 0x AFBA ;:LB_AFF2 .con 0x AFE9 ;:LOGYX .con 0x A02C ;:MANTXP .con 0x A02E A6CF ;:MKEYS .con 0x A030 ;:NDGT .con 0x A008 ;:NN^X .con 0x A00A ;:P>R .con 0x A032 ;:QREM .con 0x A034 ;:QROOT .con 0x A036 ;:QROUT .con 0x A038 ;:R>P .con 0x A03A ;:R>S .con 0x A03C ;:-RCL .con 0x A074 ;:RCL- .con 0x A07C ;:RCL^ .con 0x A078 ;:RCL* .con 0x A07E ;:RCL/ .con 0x A080 ;:RCL+ .con 0x A07A ;:S>R .con 0x A03E ;:-SNDMATH_IV .con 0x A002 A19F A55E A90B ;:STLINE .con 0x A040 ;:T>BS .con 0x A042 ;:VMANT .con 0x A044 ;:X^3 .con 0x A046 ;:X=YR? .con 0x A04A ;:X>=0? .con 0x A04C ;:X>=Y? .con 0x A04E ;:Y^^X .con 0x A052 ;:Y^1/X .con 0x A050 ;:EXTERNAL REFERENCES ;:SYMBOL--------VALUE---REFERENCES------------- ;:ABTSEQ 0D12 .con 0x ;:AD1-10 1809 .con 0x A14B A17E A18A A1B0 A1BA A209 A582 A862 A869 A8D9 A949 A95C A969 AA69 AA7E AE38 ;:AD2-10 1807 .con 0x A0D4 A1E3 A34F A4D5 A61C A7D9 A843 A8BE A8CA A920 AAD1 AEDB ;:AD2-13 180C .con 0x A13E A14F A164 A192 A1DA A204 A77D A851 AA17 ;:ADDONE 1800 .con 0x A0B5 A0C1 A0DB A170 A2AD A951 ;:AFORMT 0628 .con 0x A889 A895 A8A9 A8EC A9D0 A9E3 AA9E ;:APND10 1FF5 .con 0x A880 A884 A88D A899 A89D A8A4 A8E3 A8E7 A8F0 A8F4 A8FB A9CB A9D4 A9D8 AAA2 ;:APND15 1FF6 .con 0x ;:ASN15 27C2 .con 0x ;:ATAN 10AA .con 0x ;:AVAILA 28C7 .con 0x ;:BCDBIN 02E3 .con 0x A5D0 ABE7 AF19 ;:BLINK 0899 .con 0x A24D A286 A288 A93C AB09 AB0B AB27 AB29 AD4B AD4D ;:CHK$S 14D8 .con 0x A0AF A0D1 A0F9 A1A7 A2A2 A2E9 A301 A317 A451 A519 A530 A540 A6F4 A795 A83B A911 AA43 AAC0 AE4D ;:CHK$S1 14D4 .con 0x A8BC A8C8 A9F0 A9F5 ;:CLA 10D1 .con 0x A809 A87A A8DF A9C7 AA9B ;:CLLCDE 2CF0 .con 0x A25E A267 A5BA AE8F AFEE ;:CLRLCD 2CF6 .con 0x A3AD A829 ABBC ABDE ;:CPYNE 216C .con 0x ;:DECAD 29C7 .con 0x ;:DSPCRG 0B26 .con 0x ;:DV1-10 189A .con 0x A10E A169 A1CC A1F2 A352 A54D ;:DV2-10 1898 .con 0x A5EB A76E A7B9 A83D AA79 AEDF ;:DV2-13 189D .con 0x A0E3 A8CE AAE8 ;:ENCP00 0952 .con 0x A5E0 A823 AB48 ABE2 AF7F AFBB AFF0 ;:ENLCD 07F6 .con 0x A5DC A80B AC01 ;:ERR110 22FB .con 0x ;:ERRAD 14E2 .con 0x ;:ERRDE 282D .con 0x A45B A5B0 A916 ;:ERRNE 02E0 .con 0x ;:ERROF 00A2 .con 0x A57C A5E4 A923 ;:ERRSUB 22E8 .con 0x ;:EXP10 1A0A .con 0x A941 ;:EXP13 1A0D .con 0x A11B A130 A323 A550 A91C ;:EXSCR 192A .con 0x A865 A95F ;:GCPKC 2B80 .con 0x AF95 AFB6 ;:GETPC 2950 .con 0x ;:GOTINT 02F8 .con 0x ;:INT 1177 .con 0x ;:INTFRC 193B .con 0x A454 A51C A570 A5A8 A5C1 A798 A7F8 A9BA A9BF AA4D AA5E AA63 AE3B AE64 ;:LDSST0 0797 .con 0x A9E7 ;:LEFTJ 2BF7 .con 0x AB42 ABC1 ;:LN10 1B45 .con 0x A147 A200 A31D A548 A936 A9B3 AADF AAE4 ;:LN13 1B48 .con 0x A0C3 A141 A160 A179 ;:LXEX 1229 .con 0x ABFD ;:MEAN 11B9 .con 0x ;:MEMLFT 05A1 .con 0x ;:MESSL 07EF .con 0x A26B A26E A276 A43E A443 ABA7 AD15 AE91 ;:MOD10 195C .con 0x A524 A5CD A800 AACC ;:MP1-10 184F .con 0x A12D A138 A152 A1C5 A1DD A1E6 A1EB A320 A536 A84A A84D A8D4 A944 A9B6 AA3B AA66 AA6D ;:MP2-10 184D .con 0x A533 A7BC AA0C AA13 AA2D AA33 AE2D AEE2 ;:MP2-13 1852 .con 0x A195 ;:MSG105 1C80 .con 0x ;:MSGA 1C6C .con 0x ;:NAME31 0F01 .con 0x ;:NBYTAB 2D06 .con 0x ;:NEXT 0E50 .con 0x A27C ;:NEXT1 0E45 .con 0x AB1B AB81 AD19 ;:NEXT2 0E48 .con 0x ;:NFRNC 00A5 .con 0x ;:NFRPU 00F0 .con 0x A8AF AFF2 ;:NFRX 00CC .con 0x A0F6 A16C A20C A2A8 A325 A556 A92A A96E AAD3 AEE4 ;:NFRXY 00DA .con 0x A75A A787 A7C1 AAEA ;:NOSKP 1619 .con 0x A504 A739 ;:NULTST 0EC6 .con 0x ABC7 ;:NXTBYT 2D07 .con 0x ;:ON/X10 188B .con 0x A1D6 A74D AA5A ;:ON/X13 188E .con 0x A118 A13A A18D A1C2 A57F A845 AA38 ;:PACKE 2002 .con 0x ;:PARA06 0D22 .con 0x ;:PCTOC 00D7 .con 0x ;:PI/2 199A .con 0x A775 A780 ;:P-R 11DC .con 0x ;:PROMFC 05C7 .con 0x ;:PUTPCX 232F .con 0x ;:R^SUB 14ED .con 0x A63F A713 ;:RAK70 070A .con 0x ;:RCL 122E .con 0x ;:RCSCR 1934 .con 0x A0E1 A107 A13C A14D A162 A18F A1D8 A202 A84F A8CC A953 AA15 AAE6 ;:RDNSUB 14E9 .con 0x ;:RFDS30 0927 .con 0x ;:ROUND 0A35 .con 0x AA73 AA85 ;:RSTKB 0098 .con 0x AB46 ABE0 ;:RSTMS0 038E .con 0x ;:RSTSQ 0385 .con 0x ABE4 ;:SKP 162E .con 0x A73B ;:SQR10 18BE .con 0x ;:SQR13 18C1 .con 0x A857 ;:SRBMAP 2FA5 .con 0x AFC4 ;:STDEV 11B2 .con 0x ;:STOST0 013B .con 0x ;:STSCR 1922 .con 0x A0D9 A0FF A124 A143 A154 A172 A197 A1CE A1FC A210 A83F A85F A8C0 A94B A959 AA0E AAE1 ;:SUBONE 1802 .con 0x A0DF A149 A186 A1E8 A589 A919 A928 ;:TBITMA 2F7F .con 0x AFAB ;:TEN_TO_X 1BF8 .con 0x ;:TOGSHF 1FE5 .con 0x ABFF ;:TOPOL 1D49 .con 0x A7CD ;:TOREC 1E75 .con 0x ;:TRGSET 21D4 .con 0x A669 A7CB ;:TSTMAP 14A1 .con 0x ;:X/Y13 1893 .con 0x ;:XAVIEW 0364 .con 0x A8AD A9E9 ;:XDEG 171C .con 0x ;:XPRMPT 03A0 .con 0x ;:XRAD 1722 .con 0x ;:XRDN 14BD .con 0x ;:XRM10 2FBE .con 0x ;:XRND 0A2F .con 0x ;:XTOHRS 19B2 .con 0x A7BF A7DC ;:XX>Y? 15F8 .con 0x ;:XY^X 1B11 .con 0x AECF ;:XYN 162C .con 0x A79C ;:XYY 1617 .con 0x A79E
deps/subhook/test/foo_32.asm
ziggi/samp-plugin-jit
0
97932
extern puts global foo section .text ;; Long nop macros for nasm/yasm borrowed from nasm-utils: ;; https://github.com/travisdowns/nasm-utils %define nop1 nop ; just a nop, included for completeness %define nop2 db 0x66, 0x90 ; 66 NOP %define nop3 db 0x0F, 0x1F, 0x00 ; NOP DWORD ptr [EAX] %define nop4 db 0x0F, 0x1F, 0x40, 0x00 ; NOP DWORD ptr [EAX + 00H] %define nop5 db 0x0F, 0x1F, 0x44, 0x00, 0x00 ; NOP DWORD ptr [EAX + EAX*1 + 00H] %define nop6 db 0x66, 0x0F, 0x1F, 0x44, 0x00, 0x00 ; 66 NOP DWORD ptr [EAX + EAX*1 + 00H] %define nop7 db 0x0F, 0x1F, 0x80, 0x00, 0x00, 0x00, 0x00 ; NOP DWORD ptr [EAX + 00000000H] %define nop8 db 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 ; NOP DWORD ptr [EAX + EAX*1 + 00000000H] %define nop9 db 0x66, 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 ; 66 NOP DWORD ptr [EAX + EAX*1 + 00000000H] message: db 'foo() called', 0 foo: nop3 push message call puts add esp, 4 ret
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/se.asm
prismotizm/gigaleak
0
1441
Name: se.asm Type: file Size: 77480 Last-Modified: '1992-02-13T07:48:34Z' SHA-1: E7C3BEBBE162B15DEB7973F1EE1CD661C1744E16 Description: null
2Kp1.asm
AngelMariages/2048-assembler
0
168060
<gh_stars>0 section .data ;Canviar Nom i Cognom per les vostres dades. developer db "<NAME>",0 ;Constants que també estan definides en C. DimMatrix equ 4 SizeMatrix equ 16 section .text ;Variables definides en Assemblador. global developer ;Subrutines d'assemblador que es criden des de C. global showNumberP1, updateBoardP1, rotateMatrixRP1, copyMatrixP1 global shiftNumbersRP1, addPairsRP1 global readKeyP1, playP1 ;Variables definides en C. extern rowScreen, colScreen, charac, number extern m, mRotated, number, score, state ;Funcions de C que es criden des de assemblador extern clearScreen_C, printBoardP1_C, gotoxyP1_C, getchP1_C, printchP1_C extern insertTileP1_C, printMessageP1_C ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ATENCIÓ: Recordeu que en assemblador les variables i els paràmetres ;; de tipus 'char' s'han d'assignar a registres de tipus ;; BYTE (1 byte): al, ah, bl, bh, cl, ch, dl, dh, sil, dil, ..., r15b ;; les de tipus 'short' s'han d'assignar a registres de tipus ;; WORD (2 bytes): ax, bx, cx, dx, si, di, ...., r15w ;; les de tipus 'int' s'han d'assignar a registres de tipus ;; DWORD (4 bytes): eax, ebx, ecx, edx, esi, edi, ...., r15d ;; les de tipus 'long' s'han d'assignar a registres de tipus ;; QWORD (8 bytes): rax, rbx, rcx, rdx, rsi, rdi, ...., r15 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Les subrutines en assemblador que heu d'implementar són: ;; showNumberP1, updateBoardP1, rotateMatrixRP1, ;; copyMatrixP1, shiftNumbersLP1, addPairsLP1. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Aquesta subrutina es dóna feta. NO LA PODEU MODIFICAR. ; Situar el cursor a la fila indicada per la variable (rowScreen) i a ; la columna indicada per la variable (colScreen) de la pantalla, ; cridant la funció gotoxyP1_C. ; ; Variables globals utilitzades: ; rowScreen: Fila de la pantalla on posicionem el cursor. ; colScreen: Columna de la pantalla on posicionem el cursor. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; gotoxyP1: push rbp mov rbp, rsp ;guardem l'estat dels registres del processador perquè ;les funcions de C no mantenen l'estat dels registres. push rax push rbx push rcx push rdx push rsi push rdi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 call gotoxyP1_C pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rdi pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Aquesta subrutina es dóna feta. NO LA PODEU MODIFICAR. ; Mostrar un caràcter guardat a la variable (charac) a la pantalla, ; en la posició on està el cursor, cridant la funció printchP1_C ; ; Variables globals utilitzades: ; charac : Caràcter que volem mostrar. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; printchP1: push rbp mov rbp, rsp ;guardem l'estat dels registres del processador perquè ;les funcions de C no mantenen l'estat dels registres. push rax push rbx push rcx push rdx push rsi push rdi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 call printchP1_C pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rdi pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Aquesta subrutina es dóna feta. NO LA PODEU MODIFICAR. ; Llegir una tecla i guarda el caràcter associat a la variable (charac) ; sense mostrar-la per pantalla, cridant la funció getchP1_C. ; ; Variables globals utilitzades: ; charac : Caràcter que llegim de teclat. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; getchP1: push rbp mov rbp, rsp ;guardem l'estat dels registres del processador perquè ;les funcions de C no mantenen l'estat dels registres. push rax push rbx push rcx push rdx push rsi push rdi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 push rbp call getchP1_C pop rbp pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rdi pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;; ; Convertir el número de la variable (number) de tipus int (DWORD) de 6 ; dígits (number <= 999999) a caràcters ASCII que representen el seu valor. ; Si (number) és més gran que 999999 canviarem el valor a 999999. ; S'ha de dividir el valor entre 10, de forma iterativa, fins ; obtenir els 6 dígits. ; A cada iteració, el residu de la divisió que és un valor entre (0-9) ; indica el valor del dígit que s'ha de convertir a ASCII ('0' - '9') ; sumant '0' (48 decimal) per a poder-lo mostrar. ; Quan el quocient sigui 0 mostrarem espais a la part no significativa. ; Per exemple, si number=103 mostrarem " 103" i no "000103". ; S'han de mostrar els dígits (caràcter ASCII) des de la posició ; indicada per les variables (rowScreen) i (colScreen), posició de les ; unitats, cap a l'esquerra. ; Com el primer dígit que obtenim són les unitats, després les desenes, ; ..., per a mostrar el valor s'ha de desplaçar el cursor una posició ; a l'esquerra a cada iteració. ; Per a posicionar el cursor cridar a la subrutina gotoxyP1 i per a ; mostrar els caràcters a la subrutina printchP1. ; ; Variables globals utilitzades: ; number : Número que volem mostrar. ; rowScreen : Fila per a posicionar el cursor a la pantalla. ; colScreen : Columna per a posicionar el cursor a la pantalla. ; charac : Caràcter que volem mostrar ;;;;; showNumberP1: push rbp push rax push rbx push rcx push rdx mov rbp, rsp mov rax, 0 mov ebx, DWORD[number]; number és 290500 cmp rbx, 999999 jg massaGran jmp for massaGran: mov rbx, 999999 for: cmp rax, 6 jl cert jmp fi cert: mov BYTE[charac], ' ' cmp rbx, 0 jg nPositiu jmp printChar nPositiu: mov rdx, rbx; posem a rdx el quocient anteriorment guardat mov rcx, 0; resetejem el quocient a 0 cmp rdx, 9 jle fiBucle bucle: sub rdx, 10; residu inc rcx ; quocient cmp rdx, 10 jge bucle fiBucle: mov rbx, rcx; guardem el quocient a rbx mov BYTE[charac], dl add BYTE[charac], '0' printChar: call gotoxyP1 call printchP1 dec BYTE[colScreen] inc rax jmp for fi: mov rsp, rbp pop rdx pop rcx pop rbx pop rax pop rbp ret ;;;;; ; Actualitzar el contingut del Tauler de Joc amb les dades de la matriu ; (m) i els punts del marcador (score) que s'han fet. ; S'ha de recórrer tota la matriu (m), i per a cada element de la matriu ; posicionar el cursor a la pantalla i mostrar el número d'aquella ; posició de la matriu. ; Per recórrer la matriu en assemblador l'índex va de 0 (posició [0][0]) ; a 30 (posició [3][3]) amb increments de 2 perquè les dades son de ; tipus short(WORD) 2 bytes. ; Després, mostrar el marcador (score) a la part inferior del tauler, ; fila 18, columna 26 cridant la subrutina showNumberP1. ; Finalment posicionar el cursor a la fila 18, columna 28 cridant la ; subrutina goroxyP1. ; ; Variables globals utilitzades: ; rowScreen : Fila per a posicionar el cursor a la pantalla. ; colScreen : Columna per a posicionar el cursor a la pantalla. ; m : Matriu 4x4 on guardem els nombres del joc. ; score : Punts acumulats al marcador fins al moment. ; number : Número que volem mostrar. ;;;;; updateBoardP1: push rbp mov rbp, rsp push rax push rbx push rcx push rdx push rsi mov rax, 0 mov rbx, 10 forUpdate: cmp rax, DimMatrix*8 jl certUpdate jmp fiUpdate certUpdate: mov rdx, 17 mov rsi, 0 forUpdate2: cmp rsi, DimMatrix*2 jl certUpdate2 jmp fiUpdate2 certUpdate2: movzx ecx, WORD[m+rax+rsi] mov DWORD[number], ecx mov BYTE[rowScreen], bl; rowScreen = rowScreenAux mov BYTE[colScreen], dl; colScreen = colScreenAux call showNumberP1 add rdx, 9; colScreenAux + 9 add rsi, 2; j++ jmp forUpdate2 fiUpdate2: add rbx, 2; rowScreenAux + 2 add rax, 8; i++ jmp forUpdate fiUpdate: mov rax, [score] mov DWORD[number], eax mov BYTE[rowScreen], 18 mov BYTE[colScreen], 26 call showNumberP1 mov BYTE[rowScreen], 18 mov BYTE[colScreen], 28 call gotoxyP1 pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;; ; Rotar a la dreta la matriu (m), sobre la matriu (mRotated). ; La primera fila passa a ser la quarta columna, la segona fila passa ; a ser la tercera columna, la tercera fila passa a ser la segona ; columna i la quarta fila passa a ser la primer columna. ; A l'enunciat s'explica en més detall com fer la rotació. ; NOTA: NO és el mateix que fer la matriu transposada. ; La matriu (m) no s'ha de modificar, ; els canvis s'han de fer a la matriu (mRotated). ; Per recórrer la matriu en assemblador l'index va de 0 (posició [0][0]) ; a 30 (posició [3][3]) amb increments de 2 perquè les dades son de ; tipus short(WORD) 2 bytes. ; Per a accedir a una posició concreta de la matriu des d'assemblador ; cal tindre en compte que l'índex és:(index=(fila*DimMatrix+columna)*2), ; multipliquem per 2 perquè les dades son de tipus short(WORD) 2 bytes. ; Un cop s'ha fet la rotació, copiar la matriu (mRotated) a la matriu (m) ; cridant la subrutina copyMatrixP1. ; ; Variables globals utilitzades: ; m : Matriu 4x4 on hi han el números del tauler de joc. ; mRotated : Matriu 4x4 per a fer la rotació. ;;;;; rotateMatrixRP1: push rbp mov rbp, rsp push rax push rbx push rcx push rdx push rsi mov rax, 0 mov rdx, 6 forRotate: cmp rax, DimMatrix*8 jl certRotate jmp fiRotate certRotate: mov rbx, 0 mov rsi, 0 forRotate2: cmp rbx, DimMatrix*2 jl certRotate2 jmp fiRotate2 certRotate2: mov cx, WORD[m+rax+rbx] mov WORD[mRotated+rsi+rdx], cx add rbx, 2; j++ add rsi, 8 jmp forRotate2 fiRotate2: add rax, 8; i++ sub rdx, 2 jmp forRotate fiRotate: call copyMatrixP1 pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;; ; Copiar els valors de la matriu (mRotated) a la matriu (m). ; La matriu (mRotated) no s'ha de modificar, ; els canvis s'han de fer a la matriu (m). ; Per recórrer la matriu en assemblador l'índex va de 0 (posició [0][0]) ; a 30 (posició [3][3]) amb increments de 2 perquè les dades son de ; tipus short(WORD) 2 bytes. ; No es mostrar la matriu. ; ; Variables globals utilitzades: ; m : matriu 4x4 on hi han el números del tauler de joc. ; mRotated : matriu 4x4 per a fer la rotació. ;;;;; copyMatrixP1: push rbp mov rbp, rsp push rax push rbx push rcx push rdx push rsi mov rax, 0 forCopy: cmp rax, DimMatrix*8 jl certCopy jmp fiCopy certCopy: mov rbx, 0 forCopy2: cmp rbx, DimMatrix*2 jl certCopy2 jmp fiCopy2 certCopy2: mov cx, WORD[mRotated+rax+rbx] mov WORD[m+rax+rbx], cx add rbx, 2; j++ jmp forCopy2 fiCopy2: add rax, 8; i++ jmp forCopy fiCopy: pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;; ; Desplaça a la dreta els números de cada fila de la matriu (m), ; mantenint l'ordre dels números i posant els zeros a l'esquerra. ; Recórrer la matriu per files de dreta a esquerra i de baix a dalt. ; Si es desplaça un número (NO ELS ZEROS), posarem la variable ; (state) a '2'. ; Si una fila de la matriu és: [2,0,4,0] i state = '1', quedarà [0,0,2,4] ; i state = '2'. ; A cada fila, si troba un 0, mira si hi ha un número diferent de zero, ; a la mateixa fila per posar-lo en aquella posició. ; Per recórrer la matriu en assemblador, en aquest cas, l'índex va de la ; posició 30 (posició [3][3]) a la 0 (posició [0][0]) amb decrements de ; 2 perquè les dades son de tipus short(WORD) 2 bytes. ; Per a accedir a una posició concreta de la matriu des d'assemblador ; cal tindre en compte que l'índex és:(index=(fila*DimMatrix+columna)*2), ; multipliquem per 2 perquè les dades son de tipus short(WORD) 2 bytes. ; Els canvis s'han de fer sobre la mateixa matriu. ; No s'ha de mostrar la matriu. ; ; Variables globals utilitzades: ; state : Estat del joc. ('2': S'han fet moviments). ; m : Matriu 4x4 on hi han el números del tauler de joc. ;;;;; shiftNumbersRP1: push rbp mov rbp, rsp push rax push rbx push rcx push rdx push rsi mov rax, DimMatrix*8 sub rax, 8 forShift: cmp rax, 0 jge certShift jmp fiShift certShift: mov rbx, DimMatrix*2 sub rbx, 2 forShift2: cmp rbx, 0 jg certShift2 jmp fiShift2 certShift2: mov cx, WORD[m+rax+rbx] cmp cx, 0 je equal0 jmp outEqual equal0: mov rdx, rbx sub rdx, 2 whileEqual: cmp rdx, 0 jl fiWhile mov si, WORD[m+rax+rdx] cmp si, 0 jne fiWhile certWhile: sub rdx, 2 jmp whileEqual fiWhile: cmp rdx, -2 je kNegativa jmp kPositiva kNegativa: mov rbx, 0 jmp outEqual kPositiva: mov WORD[m+rax+rbx], si; m[i][j] = m[i][k]; mov WORD[m+rax+rdx], 0; m[i][k] = 0; mov BYTE[state], '2' jmp outEqual outEqual: sub rbx, 2; j-- jmp forShift2 fiShift2: sub rax, 8; i-- jmp forShift fiShift: pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;; ; Aparellar nombres iguals des de la dreta de la matriu (m) i acumular ; els punts al marcador sumant el punts de les parelles que s'hagin fet. ; Recórrer la matriu per files de dreta a esquerra i de baix a dalt. ; Quan es trobi una parella, dos caselles consecutives amb el mateix ; número, ajuntem la parella posant la suma de la parella a la casella ; de la dreta, un 0 a la casella de l'esquerra i ; acumularem aquesta suma (punts que es guanyen). ; Si una fila de la matriu és: [8,4,4,2] i state = 1'', quedarà [8,0,8,2], ; p = p + (4+4) i state = '2'. ; Si al final s'ha ajuntat alguna parella (punts>0), posarem la variable ; (state) a '2' per a indicar que s'ha mogut algun nombre i actualitzarem ; la variable (score) amb els punts obtinguts de fer les parelles. ; Per recórrer la matriu en assemblador, en aquest cas, l'index va de la ; posició 30 (posició [3][3]) a la 0 (posició [0][0]) amb increments de ; 2 perquè les dades son de tipus short(WORD) 2 bytes. ; Per a accedir a una posició concreta de la matriu des d'assemblador ; cal tindre en compte que l'índex és:(index=(fila*DimMatrix+columna)*2), ; multipliquem per 2 perquè les dades son de tipus short(WORD) 2 bytes. ; Els canvis s'han de fer sobre la mateixa matriu. ; No s'ha de mostrar la matriu. ; ; Variables globals utilitzades: ; m : Matriu 4x4 on hi han el números del tauler de joc. ; score : Punts acumulats fins el moment. ; state : Estat del joc. ('2': S'han fet moviments). ;;;;; addPairsRP1: push rbp mov rbp, rsp push rax push rbx push rcx push rdx push rsi mov rax, 0 mov rsi, DimMatrix*8 sub rsi, 8 forPairs: cmp rsi, 0 jge certPairs jmp fiPairs certPairs: mov rbx, DimMatrix*2 sub rbx, 2 forPairs2: cmp rbx, 0 jg certPairs2 jmp fiPairs2 certPairs2: mov cx, WORD[m+rsi+rbx] cmp cx, 0 je fiIfPairs mov dx, WORD[m+rsi+rbx-2] cmp cx, dx jne fiIfPairs certIfParis: push rax mov eax, 2 mul cx mov WORD[m+rsi+rbx], ax mov WORD[m+rsi+rbx-2], 0 movzx rcx, ax pop rax add rax, rcx fiIfPairs: sub rbx, 2; j-- jmp forPairs2 fiPairs2: sub rsi, 8; i-- jmp forPairs fiPairs: cmp rax, 0 jg haFetPunts jmp foraPairs haFetPunts: mov BYTE[state], '2' add DWORD[score], eax foraPairs: pop rsi pop rdx pop rcx pop rbx pop rax mov rsp, rbp pop rbp ret ;;;;;; ; Aquesta subrutina es dóna feta. NO LA PODEU MODIFICAR. ; Llegir una tecla (un sol cop, sense fer un bucle) ,cridant ; la subrutina getchP1 que la guarda a la variable (charac). ; Segons la tecla llegida cridarem a les subrutines corresponents. ; ['i' (amunt),'j'(esquerra),'k' (avall) o 'l'(dreta)] ; Desplaçar els números i fer les parelles segons la direcció triada. ; Segons la tecla premuda, rotar la matriu cridant (rotateMatrixRP1), per ; a poder fer els desplaçaments dels números cap a la dreta ; (shiftNumbersRP1), fer les parelles cap a la dreta (addPairsRP1) i ; tornar a desplaçar els nombres cap a la dreta (shiftNumbersRP1) ; amb les parelles fetes, després seguir rotant cridant (rotateMatrixRP1) ; fins deixar la matriu en la posició inicial. ; Per a la tecla 'l' (dreta) no cal fer rotacions, per a la resta ; s'han de fer 4 rotacions. ; '<ESC>' (ASCII 27) posar (state = '0') per a sortir del joc. ; Si no és cap d'aquestes tecles no fer res. ; Els canvis produïts per aquestes subrutines no s'han de mostrar a la ; pantalla, per tant, caldrà actualitzar després el tauler cridant la ; subrutina UpdateBoardP1. ; ; Variables globals utilitzades: ; charac : Caràcter que llegim de teclat. ; state : Indica l'estat del joc. '0':sortir (ESC premut), '1':jugar ;;;;; readKeyP1: push rbp mov rbp, rsp push rax call getchP1 ; Llegir una tecla i deixar-la a charac. mov al, BYTE[charac] readKeyP1_i: cmp al, 'i' ; amunt jne readKeyP1_j call rotateMatrixRP1 call shiftNumbersRP1 call addPairsRP1 call shiftNumbersRP1 call rotateMatrixRP1 call rotateMatrixRP1 call rotateMatrixRP1 jmp readKeyP1_End readKeyP1_j: cmp al, 'j' ; esquerra jne readKeyP1_k call rotateMatrixRP1 call rotateMatrixRP1 call shiftNumbersRP1 call addPairsRP1 call shiftNumbersRP1 call rotateMatrixRP1 call rotateMatrixRP1 jmp readKeyP1_End readKeyP1_k: cmp al, 'k' ; abajo jne readKeyP1_l call rotateMatrixRP1 call rotateMatrixRP1 call rotateMatrixRP1 call shiftNumbersRP1 call addPairsRP1 call shiftNumbersRP1 call rotateMatrixRP1 jmp readKeyP1_End readKeyP1_l: cmp al, 'l' ; dreta jne readKeyP1_ESC call shiftNumbersRP1 call addPairsRP1 call shiftNumbersRP1 jmp readKeyP1_End readKeyP1_ESC: cmp al, 27 ; Sortir del programa jne readKeyP1_End mov BYTE[state], '0' readKeyP1_End: pop rax mov rsp, rbp pop rbp ret ;;;;; ; Joc del 2048 ; Funció principal del joc ; Permet jugar al joc del 2048 cridant totes les funcionalitats. ; Aquesta subrutina es dóna feta. NO LA PODEU MODIFICAR. ; ; Pseudo codi: ; Inicialitzar estat del joc, (state='1') ; Esborrar pantalla (cridar la funció clearScreen_C). ; Mostrar el tauler de joc (cridar la funció PrintBoardP1_C). ; Actualitza el contingut del Tauler de Joc i els punts que s'han fet ; (cridar la subrutina updateBoardP1). ; Mentre (state=='1') fer ; Llegir una tecla (cridar la subrutina readKeyP1). Segons la tecla ; llegida cridarem a les funcions corresponents. ; - ['i','j','k' o 'l'] desplaçar els números i fer les parelles ; segons la direcció triada. ; - '<ESC>' (codi ASCII 27) posar (state = '0') per a sortir. ; Si hem mogut algun número al fer els desplaçaments o al fer les ; parelles (state=='2'), generar una nova fitxa (cridant la funció ; insertTileP1_C) i posar la variable state a '1' (state='1'). ; Actualitza el contingut del Tauler de Joc i els punts que s'han fet ; (cridar la subrutina updateBoardP1). ; Fi mentre. ; Mostra un missatge a sota del tauler segons el valor de la variable ; (state). (cridar la funció printMessageP1_C). ; Sortir: ; S'acabat el joc. ; ; Variables globals utilitzades: ; state : indica l'estat del joc. '0':sortir, '1':jugar. ;;;;; playP1: push rbp mov rbp, rsp mov BYTE[state], '1' ;state = '1'; //estat per a començar a jugar call clearScreen_C call printBoardP1_C call updateBoardP1 playP1_Loop: ;while { //Bucle principal. cmp BYTE[state], '1' ;(state == '1') jne playP1_End call readKeyP1 ;readKeyP1_C(); cmp BYTE[state], '2' ;state == '2' //Si s'ha fet algun moviment, jne playP1_Next call insertTileP1_C ;insertTileP1_C(); //Afegir fitxa (2) mov BYTE[state],'1' ;state = '1'; playP1_Next call updateBoardP1 ;updateBoardP1_C(); jmp playP1_Loop playP1_End: call printMessageP1_C ;printMessageP1_C(); ;Mostrar el missatge per a indicar com acaba. mov rsp, rbp pop rbp ret
Syntax/List.agda
Lolirofle/stuff-in-agda
6
11182
<reponame>Lolirofle/stuff-in-agda -- Opening this module allows lists to be written using "list notation". -- Examples: -- [] = ∅ -- [ a ] = a ⊰ ∅ -- [ a , b ] = a ⊰ b ⊰ ∅ -- [ a , b , c ] = a ⊰ b ⊰ c ⊰ ∅ module Syntax.List where open import Data.List {- infixl 1 [_ infixr 1000 _,_ infixl 100000 _] pattern [] = ∅ pattern [_ l = l pattern _,_ x l = x ⊰ l pattern _] x = x ⊰ ∅ -} pattern [] = ∅ pattern [_] x₁ = x₁ ⊰ ∅ pattern [_,_] x₁ x₂ = x₁ ⊰ x₂ ⊰ ∅ pattern [_,_,_] x₁ x₂ x₃ = x₁ ⊰ x₂ ⊰ x₃ ⊰ ∅ pattern [_,_,_,_] x₁ x₂ x₃ x₄ = x₁ ⊰ x₂ ⊰ x₃ ⊰ x₄ ⊰ ∅ pattern [_,_,_,_,_] x₁ x₂ x₃ x₄ x₅ = x₁ ⊰ x₂ ⊰ x₃ ⊰ x₄ ⊰ x₅ ⊰ ∅ pattern [_,_,_,_,_,_] x₁ x₂ x₃ x₄ x₅ x₆ = x₁ ⊰ x₂ ⊰ x₃ ⊰ x₄ ⊰ x₅ ⊰ x₆ ⊰ ∅ pattern [_,_,_,_,_,_,_] x₁ x₂ x₃ x₄ x₅ x₆ x₇ = x₁ ⊰ x₂ ⊰ x₃ ⊰ x₄ ⊰ x₅ ⊰ x₆ ⊰ x₇ ⊰ ∅ pattern [_,_,_,_,_,_,_,_] x₁ x₂ x₃ x₄ x₅ x₆ x₇ x₈ = x₁ ⊰ x₂ ⊰ x₃ ⊰ x₄ ⊰ x₅ ⊰ x₆ ⊰ x₇ ⊰ x₈ ⊰ ∅ pattern [_,_,_,_,_,_,_,_,_] x₁ x₂ x₃ x₄ x₅ x₆ x₇ x₈ x₉ = x₁ ⊰ x₂ ⊰ x₃ ⊰ x₄ ⊰ x₅ ⊰ x₆ ⊰ x₇ ⊰ x₈ ⊰ x₉ ⊰ ∅
kernel/data.asm
paulscottrobson/flat
0
5784
; *************************************************************************************** ; *************************************************************************************** ; ; Name : data.asm ; Author : <NAME> (<EMAIL>) ; Date : 12th March 2019 ; Purpose : Data area ; ; *************************************************************************************** ; *************************************************************************************** __CLIWelcome: db "flat.code 190320",$00 ; *************************************************************************************** ; ; System Information ; ; *************************************************************************************** SystemInformation: Here: ; +0 Here dw FreeMemory HerePage: ; +2 Here.Page db FirstCodePage,0 NextFreePage: ; +4 Next available code page (2 8k pages/page) db FirstCodePage+2,0,0,0 DisplayInfo: ; +8 Display information dw DisplayInformation,0 BootAddress: ; +12 Boot Address dw BootDefault BootPage: ; +14 Boot Page db FirstCodePage,0 Parameter: ; +16 3rd Parameter dw 0,0 ; *************************************************************************************** ; ; Display system information ; ; *************************************************************************************** DisplayInformation: SIScreenWidth: ; +0 screen width db 0,0,0,0 SIScreenHeight: ; +4 screen height db 0,0,0,0 SIScreenSize: ; +8 char size of screen dw 0,0 SIScreenMode: ; +12 current mode db 0,0,0,0 SIFontBase: ; font in use dw AlternateFont SIScreenDriver: ; Screen Driver dw 0 ; *************************************************************************************** ; ; Other data and buffers ; ; *************************************************************************************** __PAGEStackPointer: ; stack used for switching pages dw 0 __PAGEStackBase: ds 16 __ARegister: ; register temp for command line dw 0 __BRegister: dw 0 dw 0 __CLIBuffer: ds 32 __CLICurrentKey: db 0
programs/oeis/029/A029115.asm
neoneye/loda
22
245190
<filename>programs/oeis/029/A029115.asm<gh_stars>10-100 ; A029115: Expansion of 1/((1-x)(1-x^6)(1-x^10)(1-x^11)). ; 1,1,1,1,1,1,2,2,2,2,3,4,5,5,5,5,6,7,8,8,9,10,12,13,14,14,15,16,18,19,21,22,24,26,28,29,31,32,34,36,39,41,44,46,49,51,54,56,59,61,65,68,72,75,79,82,86,89,93,96,101 lpb $0 mov $2,$0 sub $0,6 seq $2,25793 ; Expansion of 1/((1-x)(1-x^10)(1-x^11)). add $1,$2 lpe add $1,1 mov $0,$1
oeis/041/A041925.asm
neoneye/loda-programs
11
97509
; A041925: Denominators of continued fraction convergents to sqrt(485). ; Submitted by <NAME>(s2) ; 1,44,1937,85272,3753905,165257092,7275065953,320268159024,14099074063009,620679526931420,27323998259045489,1202876602924932936,52953894526956094673,2331174235788993098548,102624620269242652430785,4517814466082465700053088,198886461127897733454766657,8755522104093582737709785996,385441859041245538192685350481,16968197319918897263215865207160,746986123935472725119690754465521,32884357650480718802529609061690084,1447658722745087100036422489468829217,63729868158434313120405119145690175632 mov $3,1 lpb $0 sub $0,1 mov $2,$3 mul $3,44 add $3,$1 mov $1,$2 lpe mov $0,$3
Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2_notsx.log_19637_1174.asm
ljhsiun2/medusa
9
91354
<filename>Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2_notsx.log_19637_1174.asm<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x135ca, %rsi lea addresses_D_ht+0x75fd, %rdi nop nop nop nop sub %r13, %r13 mov $47, %rcx rep movsw nop nop nop xor $31718, %r8 lea addresses_normal_ht+0x13e3d, %rsi lea addresses_WT_ht+0x13e3d, %rdi clflush (%rsi) nop nop nop nop nop cmp %rbp, %rbp mov $66, %rcx rep movsl nop nop nop xor %rbp, %rbp lea addresses_WT_ht+0x1673d, %r8 sub $57839, %rax mov $0x6162636465666768, %rcx movq %rcx, (%r8) nop nop and %rsi, %rsi lea addresses_WT_ht+0x1b3bd, %rsi lea addresses_UC_ht+0x196e9, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop add $53314, %r13 mov $91, %rcx rep movsq nop nop nop nop xor $57169, %r13 lea addresses_D_ht+0xf3bd, %rdi nop nop nop nop nop cmp $34470, %rbp mov (%rdi), %si nop nop nop nop add $40726, %rax lea addresses_WC_ht+0x7925, %r13 xor $28702, %rbp movb (%r13), %al nop nop nop nop xor $7090, %rdi lea addresses_normal_ht+0x3895, %rsi lea addresses_A_ht+0x3001, %rdi nop cmp $50112, %r14 mov $65, %rcx rep movsq nop nop nop dec %r14 lea addresses_normal_ht+0xec3d, %r8 and %rsi, %rsi mov (%r8), %ebp nop nop nop nop nop add $25071, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %r9 push %rax push %rbp push %rdx push %rsi // Store lea addresses_WT+0x17e3d, %rax nop xor $5107, %rbp mov $0x5152535455565758, %r15 movq %r15, %xmm0 movups %xmm0, (%rax) nop nop nop nop nop xor %r9, %r9 // Load lea addresses_normal+0x1ba3d, %r15 nop nop nop nop nop inc %rbp mov (%r15), %r9 nop nop add $10268, %rbp // Store lea addresses_WC+0x16a1d, %r11 nop xor %rdx, %rdx mov $0x5152535455565758, %r9 movq %r9, %xmm5 and $0xffffffffffffffc0, %r11 movntdq %xmm5, (%r11) nop nop nop nop add $10904, %rdx // Store lea addresses_normal+0x13abd, %rsi nop sub $24813, %r9 mov $0x5152535455565758, %r11 movq %r11, %xmm1 movups %xmm1, (%rsi) nop nop nop nop cmp %r9, %r9 // Store lea addresses_US+0x1f63d, %rsi clflush (%rsi) nop nop nop nop nop and $22568, %rax movl $0x51525354, (%rsi) nop xor $44322, %r15 // Store lea addresses_A+0x1de3d, %r9 sub $61204, %rdx mov $0x5152535455565758, %rsi movq %rsi, %xmm2 movaps %xmm2, (%r9) nop nop nop nop inc %rax // Faulty Load lea addresses_US+0x1163d, %rbp nop nop nop xor %r15, %r15 mov (%rbp), %r11w lea oracles, %rsi and $0xff, %r11 shlq $12, %r11 mov (%rsi,%r11,1), %r11 pop %rsi pop %rdx pop %rbp pop %rax pop %r9 pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}} {'54': 19637} 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 54 54 54 54 54 54 54 54 54 54 54 54 */
models/hol/sygus/let_benchmarks/array_sum_3_5.als
johnwickerson/alloystar
2
706
module array_sum_3_5 open array_sum[spec] /** * https://github.com/rishabhs/sygus-comp14/blob/master/benchmarks/let-benchmarks/array_sum/array_sum_3_5.sl */ one sig X1, X2, X3 extends IntVar {} one sig I0, I1, I2, I3 extends IntLit {} fact { IntLit<:val = I0->0 + I1->1 + I2->2 + I3->3 } -------------------------------------------------------------------------------- -- Spec -------------------------------------------------------------------------------- pred spec[root: Node, eval: Node->Int] { let x1=eval[X1], x2=eval[X2], x3=eval[X3], findSum=eval[root] | x1.plus[x2] > 5 implies findSum = x1.plus[x2] else x2.plus[x3] > 5 implies findSum = x2.plus[x3] else findSum = 0 } -------------------------------------------------------------------------------- -- Commands -------------------------------------------------------------------------------- // SAT (~123s) run synth for 0 but -3..6 Int, {atoms: -3..3} IntVarVal, exactly 2 Let, exactly 2 Z, exactly 2 ITE, exactly 3 Plus, exactly 2 GT
Task/String-comparison/Ada/string-comparison.ada
LaudateCorpus1/RosettaCodeData
1
6085
with Ada.Text_IO, Ada.Strings.Equal_Case_Insensitive; procedure String_Compare is procedure Print_Comparison (A, B : String) is begin Ada.Text_IO.Put_Line ("""" & A & """ and """ & B & """: " & (if A = B then "equal, " elsif Ada.Strings.Equal_Case_Insensitive (A, B) then "case-insensitive-equal, " else "not equal at all, ") & (if A /= B then "/=, " else "") & (if A < B then "before, " else "") & (if A > B then "after, " else "") & (if A <= B then "<=, " else "(not <=), ") & (if A >= B then ">=. " else "(not >=).")); end Print_Comparison; begin Print_Comparison ("this", "that"); Print_Comparison ("that", "this"); Print_Comparison ("THAT", "That"); Print_Comparison ("this", "This"); Print_Comparison ("this", "this"); Print_Comparison ("the", "there"); Print_Comparison ("there", "the"); end String_Compare;
backup_programs/testcall.asm
mynameispyo/InpyoOS
0
12269
<reponame>mynameispyo/InpyoOS BITS 16 ORG 4000h %include "osdev.inc" start: mov ax, 32768-1024 mov bx, 32768-1024+128 mov cx, 07h call os_draw_background ret
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_486.asm
ljhsiun2/medusa
9
21077
<reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_486.asm .global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0xb92, %rsi lea addresses_UC_ht+0x1178a, %rdi nop nop nop nop sub %rax, %rax mov $99, %rcx rep movsw nop sub %rbp, %rbp lea addresses_normal_ht+0x9032, %rsi lea addresses_UC_ht+0x1444, %rdi nop nop nop nop inc %r12 mov $19, %rcx rep movsw nop nop nop dec %rsi lea addresses_D_ht+0x15092, %rsi lea addresses_D_ht+0x13c92, %rdi clflush (%rdi) nop nop nop inc %r10 mov $115, %rcx rep movsq nop nop nop nop xor %r10, %r10 lea addresses_UC_ht+0xeb32, %rax xor %rsi, %rsi movups (%rax), %xmm7 vpextrq $1, %xmm7, %r10 dec %rsi pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r9 push %rax push %rbp push %rdi push %rdx push %rsi // Store lea addresses_PSE+0xf852, %rdi nop add %rdx, %rdx movw $0x5152, (%rdi) nop nop nop nop and %rsi, %rsi // Load lea addresses_PSE+0xa4d2, %rax nop nop nop nop sub $57158, %rsi movb (%rax), %dl nop nop nop nop add %r12, %r12 // Faulty Load lea addresses_WC+0x7492, %rsi nop nop nop sub $30876, %r9 movb (%rsi), %r12b lea oracles, %rdx and $0xff, %r12 shlq $12, %r12 mov (%rdx,%r12,1), %r12 pop %rsi pop %rdx pop %rdi pop %rbp pop %rax pop %r9 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'src': {'same': True, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
src/dovado_rtl/antlr/grammars/SystemVerilogLexer.g4
DavideConficconi/dovado
0
3564
<reponame>DavideConficconi/dovado<gh_stars>0 // Author: <NAME> // License: MIT lexer grammar SystemVerilogLexer; MINUS: '-'; MINUSMINS: '--'; NOT: '!'; NE: '!='; NEQ: '!=?'; NEE: '!=='; DPI: '"DPI"'; DPIC: '"DPI-C"'; P: '#'; PP: '##'; PMP: '#-#'; PEP: '#=#'; PZ: '#0'; DOLLAR: '$'; DERROR: '$error'; DFATAL: '$fatal'; DINFO: '$info'; DROOT: '$root.'; DUNIT: '$unit'; DWARNING: '$warning'; PER: '%'; PE: '%='; AND: '&'; ANDAND: '&&'; ANDANDAND: '&&&'; AE: '&='; LP: '('; LPS: '(*'; RP: ')'; STAR: '*'; SRP: '*)'; SS: '**'; SCCS: '*::*'; SEQ: '*='; SGT: '*>'; COMMA: ','; DOT: '.'; DOTSTAR: '.*'; SLASH: '/'; SLASHEQ: '/='; COLON: ':'; MCOLON: '-:'; COLONSLASH: ':/'; COLONCOLON: '::'; COLONEQ: ':='; SEMI: ';'; QUES: '?'; AT: '@'; ATAT: '@@'; LB: '['; QUOTE: '\''; RB: ']'; CARET: '^'; CARETSQUIG: '^~'; CARETEQ: '^='; LC: '{'; BAR: '|'; BARBAR: '||'; BAREQ: '|='; BAREQGT: '|=>'; BARARROW: '|->'; RC: '}'; SQUIG: '~'; SQUIGAND: '~&'; SQUIGCARET: '~^'; SQUIGBAR: '~|'; PLUS: '+'; PLUSCOLON: '+:'; PLUSPLUS: '++'; PLUSEQ: '+='; LT: '<'; LTLT: '<<'; LTLTLT: '<<<'; LTLTLTEQ: '<<<='; LTLTEQ: '<<='; LTEQ: '<='; LTMINUSGT: '<->'; EQ: '='; MINUSEQ: '-='; EQEQ: '=='; EQEQQUEST: '==?'; EQEQEQ: '==='; EQGT: '=>'; GT: '>'; ARROW: '->'; GE: '>='; GTGT: '>>'; MINUSGTGT: '->>'; GTGTEQ: '>>='; GTGTGT: '>>>'; GTGTGTEQ: '>>>='; KONESTEP: '1step'; KACCEPT_ON: 'accept_on'; KALIAS: 'alias'; KALWAYS: 'always'; KALWAYS_COMB: 'always_comb'; KALWAYS_FF: 'always_ff'; KALWAYS_LATCH: 'always_latch'; KAND: 'and'; KASSERT: 'assert'; KASSIGN: 'assign'; KASSUME: 'assume'; KAUTOMATIC: 'automatic'; KBEFORE: 'before'; KBEGIN: 'begin'; KBIND: 'bind'; KBINS: 'bins'; KBINSOF: 'binsof'; KBIT: 'bit'; KBREAK: 'break'; KBUF: 'buf'; KBUFIF0: 'bufif0'; KBUFIF1: 'bufif1'; KBYTE: 'byte'; KCASE: 'case'; KCASEX: 'casex'; KCASEZ: 'casez'; KCELL: 'cell'; KCHANDLE: 'chandle'; KCHECKER: 'checker'; KCLASS: 'class'; KCLOCKING: 'clocking'; KCMOS: 'cmos'; KCONFIG: 'config'; KCONST: 'const'; KCONSTRAINT: 'constraint'; KCONTEXT: 'context'; KCONTINUE: 'continue'; KCOVER: 'cover'; KCOVERGROUP: 'covergroup'; KCOVERPOINT: 'coverpoint'; KCROSS: 'cross'; KDEASSIGN: 'deassign'; KDEFAULT: 'default'; KDEFPARAM: 'defparam'; KDESIGN: 'design'; KDISABLE: 'disable'; KDIST: 'dist'; KDO: 'do'; KEDGE: 'edge'; KELSE: 'else'; KEND: 'end'; KENDCASE: 'endcase'; KENDCHECKER: 'endchecker'; KENDCLASS: 'endclass'; KENDCLOCKING: 'endclocking'; KENDCONFIG: 'endconfig'; KENDFUNCTION: 'endfunction'; KENDGENERATE: 'endgenerate'; KENDGROUP: 'endgroup'; KENDINTERFACE: 'endinterface'; KENDMODULE: 'endmodule'; KENDPACKAGE: 'endpackage'; KENDPROGRAM: 'endprogram'; KENDPROPERTY: 'endproperty'; KENDSEQUENCE: 'endsequence'; KENDSPECIFY: 'endspecify'; KENDTASK: 'endtask'; KENUM: 'enum'; KEVENT: 'event'; KEVENTUALLY: 'eventually'; KEXPECT: 'expect'; KEXPORT: 'export'; KEXTENDS: 'extends'; KEXTERN: 'extern'; KFINAL: 'final'; KFIRST_MATCH: 'first_match'; KFOR: 'for'; KFORCE: 'force'; KFOREACH: 'foreach'; KFOREVER: 'forever'; KFORK: 'fork'; KFORKJOIN: 'forkjoin'; KFUNCTION: 'function'; KGENERATE: 'generate'; KGENVAR: 'genvar'; KGLOBAL: 'global'; KHIGHZ0: 'highz0'; KHIGHZ1: 'highz1'; KIF: 'if'; KIFF: 'iff'; KIFNONE: 'ifnone'; KIGNORE_BINS: 'ignore_bins'; KILLEGAL_BINS: 'illegal_bins'; KIMPLEMENTS: 'implements'; KIMPLIES: 'implies'; KIMPORT: 'import'; KINCDIR: '-incdir'; KINCLUDE: 'include'; KINITIAL: 'initial'; KINOUT: 'inout'; KINPUT: 'input'; KINSIDE: 'inside'; KINSTANCE: 'instance'; KINT: 'int'; KINTEGER: 'integer'; KINTERCONNECT: 'interconnect'; KINTERFACE: 'interface'; KINTERSECT: 'intersect'; KJOIN: 'join'; KJOIN_ANY: 'join_any'; KJOIN_NONE: 'join_none'; KLARGE: 'large'; KLET: 'let'; KLIBLIST: 'liblist'; KLIBRARY: 'library'; KLOCAL: 'local'; KLOCALPARAM: 'localparam'; KLOGIC: 'logic'; KLONGINT: 'longint'; KMACROMODULE: 'macromodule'; KMATCHES: 'matches'; KMEDIUM: 'medium'; KMEMBER_IDENTIFIER: 'member_identifier'; KMODPORT: 'modport'; KMODULE: 'module'; KNAND: 'nand'; KNEGEDGE: 'negedge'; KNETTYPE: 'nettype'; KNEW: 'new'; KNEXTTIME: 'nexttime'; KNMOS: 'nmos'; KNOR: 'nor'; KNOSHOWCANCELLED: 'noshowcancelled'; KNOT: 'not'; KNOTIF0: 'notif0'; KNOTIF1: 'notif1'; KNULL: 'null'; KOPTION: 'option'; KOR: 'or'; KOUTPUT: 'output'; KPACKAGE: 'package'; KPACKED: 'packed'; KPARAMETER: 'parameter'; KPATHPULSE: 'PATHPULSE$'; KPMOS: 'pmos'; KPOSEDGE: 'posedge'; KPRIORITY: 'priority'; KPROGRAM: 'program'; KPROPERTY: 'property'; KPROTECTED: 'protected'; KPULL0: 'pull0'; KPULL1: 'pull1'; KPULLDOWN: 'pulldown'; KPULLUP: 'pullup'; KPULSESTYLE_ONDETECT: 'pulsestyle_ondetect'; KPULSESTYLE_ONEVENT: 'pulsestyle_onevent'; KPURE: 'pure'; KRAND: 'rand'; KRANDC: 'randc'; KRANDCASE: 'randcase'; KRANDOMIZE: 'randomize'; KRANDSEQUENCE: 'randsequence'; KRCMOS: 'rcmos'; KREAL: 'real'; KREALTIME: 'realtime'; KREF: 'ref'; KREG: 'reg'; KREJECT_ON: 'reject_on'; KRELEASE: 'release'; KREPEAT: 'repeat'; KRESTRICT: 'restrict'; KRETURN: 'return'; KRNMOS: 'rnmos'; KRPMOS: 'rpmos'; KRTRAN: 'rtran'; KRTRANIF0: 'rtranif0'; KRTRANIF1: 'rtranif1'; KS_ALWAYS: 's_always'; KS_EVENTUALLY: 's_eventually'; KS_NEXTTIME: 's_nexttime'; KS_UNTIL: 's_until'; KS_UNTIL_WITH: 's_until_with'; KSCALARED: 'scalared'; KSEQUENCE: 'sequence'; KSHORTINT: 'shortint'; KSHORTREAL: 'shortreal'; KSHOWCANCELLED: 'showcancelled'; KSIGNED: 'signed'; KSMALL: 'small'; KSOFT: 'soft'; KSOLVE: 'solve'; KSPECIFY: 'specify'; KSPECPARAM: 'specparam'; KSTATIC: 'static'; KSTD: 'std'; KSTRING: 'string'; KSTRONG: 'strong'; KSTRONG0: 'strong0'; KSTRONG1: 'strong1'; KSTRUCT: 'struct'; KSUPER: 'super'; KSUPPLY0: 'supply0'; KSUPPLY1: 'supply1'; KSYNC_ACCEPT_ON: 'sync_accept_on'; KSYNC_REJECT_ON: 'sync_reject_on'; KTAGGED: 'tagged'; KTASK: 'task'; KTHIS: 'this'; KTHROUGHOUT: 'throughout'; KTIME: 'time'; KTIMEPRECISION: 'timeprecision'; KTIMEUNIT: 'timeunit'; KTRAN: 'tran'; KTRANIF0: 'tranif0'; KTRANIF1: 'tranif1'; KTRI: 'tri'; KTRI0: 'tri0'; KTRI1: 'tri1'; KTRIAND: 'triand'; KTRIOR: 'trior'; KTRIREG: 'trireg'; KTYPE: 'type'; KTYPE_OPTION: 'type_option'; KTYPEDEF: 'typedef'; KUNION: 'union'; KUNIQUE: 'unique'; KUNIQUE0: 'unique0'; KUNSIGNED: 'unsigned'; KUNTIL: 'until'; KUNTIL_WITH: 'until_with'; KUNTYPED: 'untyped'; KUSE: 'use'; KUWIRE: 'uwire'; KVAR: 'var'; KVECTORED: 'vectored'; KVIRTUAL: 'virtual'; KVOID: 'void'; KWAIT: 'wait'; KWAIT_ORDER: 'wait_order'; KWAND: 'wand'; KWEAK: 'weak'; KWEAK0: 'weak0'; KWEAK1: 'weak1'; KWHILE: 'while'; KWILDCARD: 'wildcard'; KWIRE: 'wire'; KWITH: 'with'; KWITHIN: 'within'; KWOR: 'wor'; KXNOR: 'xnor'; KXOR: 'xor'; // 22. Compiler directives COMPILER_DIRECTIVE : '`' .*? '\r'? '\n' -> skip ; // 33.3.1 Specifying libraries—the library map file FILE_PATH_SPEC : ([/~] | './') ~[ \r\t\n]*? ; // A.7.5.3 System timing check event definitions /*EDGE_DESCRIPTOR : '01' | '10' | Z_OR_X ZERO_OR_ONE | ZERO_OR_ONE Z_OR_X ; fragment ZERO_OR_ONE : [01] ; fragment Z_OR_X : [xXzZ] ; */ // A.8.4 Primaries TIME_LITERAL : UNSIGNED_NUMBER TIME_UNIT | FIXED_POINT_NUMBER TIME_UNIT ; fragment TIME_UNIT : [mnpf]? 's' ; // A.8.7 Numbers DECIMAL_NUMBER : SIZE? DECIMAL_BASE (UNSIGNED_NUMBER | (X_DIGIT | Z_DIGIT) '_'*) ; BINARY_NUMBER : SIZE? BINARY_BASE BINARY_VALUE ; OCTAL_NUMBER : SIZE? OCTAL_BASE OCTAL_VALUE ; HEX_NUMBER : SIZE? HEX_BASE HEX_VALUE ; fragment SIGN : [+-] ; fragment SIZE : NON_ZERO_UNSIGNED_NUMBER ; fragment NON_ZERO_UNSIGNED_NUMBER : NON_ZERO_DECIMAL_DIGIT ('_' | DECIMAL_DIGIT)* ; REAL_NUMBER : FIXED_POINT_NUMBER ; fragment FIXED_POINT_NUMBER : UNSIGNED_NUMBER '.' UNSIGNED_NUMBER ; fragment EXP : [eE] ; UNSIGNED_NUMBER : DECIMAL_DIGIT ('_' | DECIMAL_DIGIT)* ; fragment BINARY_VALUE : BINARY_DIGIT ('_' | BINARY_DIGIT)* ; fragment OCTAL_VALUE : OCTAL_DIGIT ('_' | OCTAL_DIGIT)* ; fragment HEX_VALUE : HEX_DIGIT ('_' | HEX_DIGIT)* ; fragment DECIMAL_BASE : '\'' [sS]? [dD] ; fragment BINARY_BASE : '\'' [sS]? [bB] ; fragment OCTAL_BASE : '\'' [sS]? [oO] ; fragment HEX_BASE : '\'' [sS]? [hH] ; fragment NON_ZERO_DECIMAL_DIGIT : [1-9] ; fragment DECIMAL_DIGIT : [0-9] ; fragment BINARY_DIGIT : X_DIGIT | Z_DIGIT | [01] ; fragment OCTAL_DIGIT : X_DIGIT | Z_DIGIT | [0-7] ; fragment HEX_DIGIT : X_DIGIT | Z_DIGIT | [0-9a-fA-F] ; fragment X_DIGIT : [xX] ; fragment Z_DIGIT : [zZ?] ; /*UNBASED_UNSIZED_LITERAL : '\'0' | '\'1' | '\'' Z_OR_X ; */ // A.8.8 Strings STRING_LITERAL : '"' ~["\n\r]* '"' ; // A.9.2 Comments ONE_LINE_COMMENT : '//' .*? '\r'? '\n' -> channel(HIDDEN) ; BLOCK_COMMENT : '/*' .*? '*/' -> channel(HIDDEN) ; // A.9.3 Identifiers SIMPLE_IDENTIFIER : [a-zA-Z_] [a-zA-Z0-9_$]* ; SYSTEM_TF_IDENTIFIER : '$' [a-zA-Z0-9_$] [a-zA-Z0-9_$]* ; // A.9.4 White space WHITE_SPACE : [ \t\n\r]+ -> channel(HIDDEN) ;
programs/oeis/191/A191633.asm
jmorken/loda
1
87174
; A191633: a(n) = floor((1 + 2^n)/(1 + 2*n)). ; 1,1,1,1,3,5,8,15,27,48,89,163,303,565,1057,1985,3744,7085,13443,25575,48771,93206,178481,342392,657930,1266205,2440322,4709393,9099507,17602325,34087042,66076419,128207979,248983611,483939977,941362695,1832519379,3569842947,6958934353,13574217626,26494256091,51741723660,101104517496,197665011735,386641451525,756653163200,1481447245845,2901803883615,5686363165871,11147523830125,21862134113449,42891425022576,84179432287299,165269711096165,324583756927603,637677823344495,1253175548485703,2463507488476168,4844208002549777 add $0,1 mov $1,3 mul $1,$0 mov $2,$1 mov $4,$0 mul $0,2 sub $0,1 add $0,$4 sub $2,$4 mov $4,$2 lpb $2 mov $1,-1 mov $2,1 lpb $0 sub $0,3 mul $1,2 mov $3,$4 sub $4,1 lpe add $1,$0 lpb $3 sub $3,1 add $4,1 lpe div $1,$4 sub $1,$2 lpe mul $1,$0 sub $1,1
notes/code-sketches/agda/src/Punctaffy/Hypersnippet/Dim.agda
rocketnia/lexmeta
1
11957
module Punctaffy.Hypersnippet.Dim where open import Level using (Level; suc; _⊔_) open import Algebra.Bundles using (IdempotentCommutativeMonoid) open import Algebra.Morphism using (IsIdempotentCommutativeMonoidMorphism) -- For all the purposes we have for it so far, a `DimSys` is a bounded -- semilattice. The `agda-stdlib` library calls this an idempotent commutative -- monoid. record DimSys {n l : Level} : Set (suc (n ⊔ l)) where field dimIdempotentCommutativeMonoid : IdempotentCommutativeMonoid n l open IdempotentCommutativeMonoid dimIdempotentCommutativeMonoid public record DimSysMorphism {n₀ n₁ l₀ l₁ : Level} : Set (suc (n₀ ⊔ n₁ ⊔ l₀ ⊔ l₁)) where field From : DimSys {n₀} {l₀} To : DimSys {n₁} {l₁} private module F = DimSys From module T = DimSys To field morphDim : F.Carrier → T.Carrier isIdempotentCommutativeMonoidMorphism : IsIdempotentCommutativeMonoidMorphism F.dimIdempotentCommutativeMonoid T.dimIdempotentCommutativeMonoid morphDim dimLte : {n l : Level} → {ds : DimSys {n} {l}} → DimSys.Carrier ds → DimSys.Carrier ds → Set l dimLte {n} {l} {ds} a b = DimSys._≈_ ds (DimSys._∙_ ds a b) b
bb-runtimes/arm/nordic/nrf52/nrf52840/svd/i-nrf52-uicr.ads
JCGobbi/Nucleo-STM32G474RE
0
29745
-- -- Copyright (C) 2019, AdaCore -- -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- 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, except as embedded into a Nordic -- Semiconductor ASA integrated circuit in a product or a software update -- for such product, 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 Nordic Semiconductor ASA nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- 4. This software, with or without modification, must only be used with a -- Nordic Semiconductor ASA integrated circuit. -- -- 5. Any software provided in binary form under this license must not be -- reverse engineered, decompiled, modified and/or disassembled. -- -- THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY -- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -- WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A -- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR -- ASA 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. -- -- This spec has been automatically generated from nrf52840.svd pragma Ada_2012; pragma Style_Checks (Off); with System; package Interfaces.NRF52.UICR is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Registers -- --------------- -- Description collection[n]: Reserved for Nordic firmware design -- Description collection[n]: Reserved for Nordic firmware design type NRFFW_Registers is array (0 .. 14) of Interfaces.NRF52.UInt32; -- Description collection[n]: Reserved for Nordic hardware design -- Description collection[n]: Reserved for Nordic hardware design type NRFHW_Registers is array (0 .. 11) of Interfaces.NRF52.UInt32; -- Description collection[n]: Reserved for customer -- Description collection[n]: Reserved for customer type CUSTOMER_Registers is array (0 .. 31) of Interfaces.NRF52.UInt32; subtype PSELRESET_PIN_Field is Interfaces.NRF52.UInt5; subtype PSELRESET_PORT_Field is Interfaces.NRF52.Bit; -- Connection type PSELRESET_CONNECT_Field is (-- Connect Connected, -- Disconnect Disconnected) with Size => 1; for PSELRESET_CONNECT_Field use (Connected => 0, Disconnected => 1); -- Description collection[n]: Mapping of the nRESET function type PSELRESET_Register is record -- Pin number of PORT onto which nRESET is exposed PIN : PSELRESET_PIN_Field := 16#1F#; -- Port number onto which nRESET is exposed PORT : PSELRESET_PORT_Field := 16#1#; -- unspecified Reserved_6_30 : Interfaces.NRF52.UInt25 := 16#1FFFFFF#; -- Connection CONNECT : PSELRESET_CONNECT_Field := Interfaces.NRF52.UICR.Disconnected; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for PSELRESET_Register use record PIN at 0 range 0 .. 4; PORT at 0 range 5 .. 5; Reserved_6_30 at 0 range 6 .. 30; CONNECT at 0 range 31 .. 31; end record; -- Description collection[n]: Mapping of the nRESET function type PSELRESET_Registers is array (0 .. 1) of PSELRESET_Register; -- Enable or disable access port protection. type APPROTECT_PALL_Field is (-- Enable Enabled, -- Disable Disabled) with Size => 8; for APPROTECT_PALL_Field use (Enabled => 0, Disabled => 255); -- Access port protection type APPROTECT_Register is record -- Enable or disable access port protection. PALL : APPROTECT_PALL_Field := Interfaces.NRF52.UICR.Disabled; -- unspecified Reserved_8_31 : Interfaces.NRF52.UInt24 := 16#FFFFFF#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for APPROTECT_Register use record PALL at 0 range 0 .. 7; Reserved_8_31 at 0 range 8 .. 31; end record; -- Setting of pins dedicated to NFC functionality type NFCPINS_PROTECT_Field is (-- Operation as GPIO pins. Same protection as normal GPIO pins Disabled, -- Operation as NFC antenna pins. Configures the protection for NFC operation Nfc) with Size => 1; for NFCPINS_PROTECT_Field use (Disabled => 0, Nfc => 1); -- Setting of pins dedicated to NFC functionality: NFC antenna or GPIO type NFCPINS_Register is record -- Setting of pins dedicated to NFC functionality PROTECT : NFCPINS_PROTECT_Field := Interfaces.NRF52.UICR.Nfc; -- unspecified Reserved_1_31 : Interfaces.NRF52.UInt31 := 16#7FFFFFFF#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for NFCPINS_Register use record PROTECT at 0 range 0 .. 0; Reserved_1_31 at 0 range 1 .. 31; end record; -- Configure CPU non-intrusive debug features type DEBUGCTRL_CPUNIDEN_Field is (-- Disable CPU ITM and ETM functionality Disabled, -- Enable CPU ITM and ETM functionality (default behavior) Enabled) with Size => 8; for DEBUGCTRL_CPUNIDEN_Field use (Disabled => 0, Enabled => 255); -- Configure CPU flash patch and breakpoint (FPB) unit behavior type DEBUGCTRL_CPUFPBEN_Field is (-- Disable CPU FPB unit. Writes into the FPB registers will be ignored. Disabled, -- Enable CPU FPB unit (default behavior) Enabled) with Size => 8; for DEBUGCTRL_CPUFPBEN_Field use (Disabled => 0, Enabled => 255); -- Processor debug control type DEBUGCTRL_Register is record -- Configure CPU non-intrusive debug features CPUNIDEN : DEBUGCTRL_CPUNIDEN_Field := Interfaces.NRF52.UICR.Enabled; -- Configure CPU flash patch and breakpoint (FPB) unit behavior CPUFPBEN : DEBUGCTRL_CPUFPBEN_Field := Interfaces.NRF52.UICR.Enabled; -- unspecified Reserved_16_31 : Interfaces.NRF52.UInt16 := 16#FFFF#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for DEBUGCTRL_Register use record CPUNIDEN at 0 range 0 .. 7; CPUFPBEN at 0 range 8 .. 15; Reserved_16_31 at 0 range 16 .. 31; end record; -- Output voltage from of REG0 regulator stage. The maximum output voltage -- from this stage is given as VDDH - VEXDIF. type REGOUT0_VOUT_Field is (-- 1.8 V Val_1V8, -- 2.1 V Val_2V1, -- 2.4 V Val_2V4, -- 2.7 V Val_2V7, -- 3.0 V Val_3V0, -- 3.3 V Val_3V3, -- Default voltage: 1.8 V Default) with Size => 3; for REGOUT0_VOUT_Field use (Val_1V8 => 0, Val_2V1 => 1, Val_2V4 => 2, Val_2V7 => 3, Val_3V0 => 4, Val_3V3 => 5, Default => 7); -- GPIO reference voltage / external output supply voltage in high voltage -- mode type REGOUT0_Register is record -- Output voltage from of REG0 regulator stage. The maximum output -- voltage from this stage is given as VDDH - VEXDIF. VOUT : REGOUT0_VOUT_Field := Interfaces.NRF52.UICR.Default; -- unspecified Reserved_3_31 : Interfaces.NRF52.UInt29 := 16#1FFFFFFF#; end record with Volatile_Full_Access, Size => 32, Bit_Order => System.Low_Order_First; for REGOUT0_Register use record VOUT at 0 range 0 .. 2; Reserved_3_31 at 0 range 3 .. 31; end record; ----------------- -- Peripherals -- ----------------- -- User information configuration registers type UICR_Peripheral is record -- Unspecified UNUSED0 : aliased Interfaces.NRF52.UInt32; -- Unspecified UNUSED1 : aliased Interfaces.NRF52.UInt32; -- Unspecified UNUSED2 : aliased Interfaces.NRF52.UInt32; -- Unspecified UNUSED3 : aliased Interfaces.NRF52.UInt32; -- Description collection[n]: Reserved for Nordic firmware design NRFFW : aliased NRFFW_Registers; -- Description collection[n]: Reserved for Nordic hardware design NRFHW : aliased NRFHW_Registers; -- Description collection[n]: Reserved for customer CUSTOMER : aliased CUSTOMER_Registers; -- Description collection[n]: Mapping of the nRESET function PSELRESET : aliased PSELRESET_Registers; -- Access port protection APPROTECT : aliased APPROTECT_Register; -- Setting of pins dedicated to NFC functionality: NFC antenna or GPIO NFCPINS : aliased NFCPINS_Register; -- Processor debug control DEBUGCTRL : aliased DEBUGCTRL_Register; -- GPIO reference voltage / external output supply voltage in high -- voltage mode REGOUT0 : aliased REGOUT0_Register; end record with Volatile; for UICR_Peripheral use record UNUSED0 at 16#0# range 0 .. 31; UNUSED1 at 16#4# range 0 .. 31; UNUSED2 at 16#8# range 0 .. 31; UNUSED3 at 16#10# range 0 .. 31; NRFFW at 16#14# range 0 .. 479; NRFHW at 16#50# range 0 .. 383; CUSTOMER at 16#80# range 0 .. 1023; PSELRESET at 16#200# range 0 .. 63; APPROTECT at 16#208# range 0 .. 31; NFCPINS at 16#20C# range 0 .. 31; DEBUGCTRL at 16#210# range 0 .. 31; REGOUT0 at 16#304# range 0 .. 31; end record; -- User information configuration registers UICR_Periph : aliased UICR_Peripheral with Import, Address => UICR_Base; end Interfaces.NRF52.UICR;
test/Fail/TermSplicingOutOfScope.agda
shlevy/agda
1,989
10308
<reponame>shlevy/agda open import Common.Prelude open import Common.Reflection module TermSplicingOutOfScope where f : Set → Set → Set → Set f x y z = unquote (give (var 3 []))
binutils-2.21.1/gcc-4.5.1/gcc/config/rs6000/darwin-tramp.asm
cberner12/xv6
51
15181
/* Special support for trampolines * * Copyright (C) 1996, 1997, 2000, 2004, 2005, 2009 Free Software Foundation, Inc. * Written By <NAME> * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 3, or (at your option) any * later version. * * This file 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 GNU * General Public License for more details. * * Under Section 7 of GPL version 3, you are granted additional * permissions described in the GCC Runtime Library Exception, version * 3.1, as published by the Free Software Foundation. * * You should have received a copy of the GNU General Public License and * a copy of the GCC Runtime Library Exception along with this program; * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see * <http://www.gnu.org/licenses/>. */ #include "darwin-asm.h" /* Set up trampolines. */ .text .align LOG2_GPR_BYTES Ltrampoline_initial: mflr r0 bl 1f Lfunc = .-Ltrampoline_initial .g_long 0 /* will be replaced with function address */ Lchain = .-Ltrampoline_initial .g_long 0 /* will be replaced with static chain */ 1: mflr r11 lg r12,0(r11) /* function address */ mtlr r0 mtctr r12 lg r11,GPR_BYTES(r11) /* static chain */ bctr trampoline_size = .-Ltrampoline_initial /* R3 = stack address to store trampoline */ /* R4 = length of trampoline area */ /* R5 = function address */ /* R6 = static chain */ .globl ___trampoline_setup ___trampoline_setup: mflr r0 /* save return address */ bcl 20,31,LCF0 /* load up __trampoline_initial into r7 */ LCF0: mflr r11 addis r7,r11,ha16(LTRAMP-LCF0) lg r7,lo16(LTRAMP-LCF0)(r7) subi r7,r7,4 li r8,trampoline_size /* verify trampoline big enough */ cmpg cr1,r8,r4 srwi r4,r4,2 /* # words to move (insns always 4-byte) */ addi r9,r3,-4 /* adjust pointer for lgu */ mtctr r4 blt cr1,Labort mtlr r0 /* Copy the instructions to the stack */ Lmove: lwzu r10,4(r7) stwu r10,4(r9) bdnz Lmove /* Store correct function and static chain */ stg r5,Lfunc(r3) stg r6,Lchain(r3) /* Now flush both caches */ mtctr r4 Lcache: icbi 0,r3 dcbf 0,r3 addi r3,r3,4 bdnz Lcache /* Ensure cache-flushing has finished. */ sync isync /* Make stack writeable. */ b ___enable_execute_stack Labort: #ifdef __DYNAMIC__ bl L_abort$stub .data .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32 .align 2 L_abort$stub: .indirect_symbol _abort mflr r0 bcl 20,31,L0$_abort L0$_abort: mflr r11 addis r11,r11,ha16(L_abort$lazy_ptr-L0$_abort) mtlr r0 lgu r12,lo16(L_abort$lazy_ptr-L0$_abort)(r11) mtctr r12 bctr .data .lazy_symbol_pointer L_abort$lazy_ptr: .indirect_symbol _abort .g_long dyld_stub_binding_helper #else bl _abort #endif .data .align LOG2_GPR_BYTES LTRAMP: .g_long Ltrampoline_initial
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2111b.ada
best08618/asylo
7
4778
<gh_stars>1-10 -- CE2111B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT A SUCCESSFUL RESET POSITIONS THE INDEX CORRECTLY -- TO THE START OF THE FILE FOR DIRECT IO. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- RESET FOR DIRECT FILES. -- HISTORY: -- DLD 08/13/82 -- JBG 03/24/83 -- EG 05/29/85 -- JLH 07/23/87 ADDED CHECKS FOR USE_ERROR WHEN FILE IS RESET. WITH REPORT; USE REPORT; WITH DIRECT_IO; PROCEDURE CE2111B IS PACKAGE DIR_IO IS NEW DIRECT_IO (INTEGER); USE DIR_IO; TEST_FILE_ONE : DIR_IO.FILE_TYPE; DATUM : INTEGER; INCOMPLETE : EXCEPTION; BEGIN TEST ("CE2111B", "CHECK THAT SUCCESSFUL RESETS POSITION THE " & "INDEX CORRECTLY"); -- CREATE AND INITIALIZE TEST FILE BEGIN CREATE (TEST_FILE_ONE, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED ON CREATE"); RAISE INCOMPLETE; WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED ON CREATE"); RAISE INCOMPLETE; END; WRITE (TEST_FILE_ONE, 5); WRITE (TEST_FILE_ONE, 6); WRITE (TEST_FILE_ONE, 7); WRITE (TEST_FILE_ONE, 8); -- CHECK THAT RESET POSITIONS INDEX CORRECTLY FOR OUT_FILE BEGIN RESET (TEST_FILE_ONE); IF INDEX (TEST_FILE_ONE) /= 1 THEN FAILED ("RESET INCORRECTLY POSITIONED FILE FOR " & "OUT_FILE"); END IF; EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("RESET NOT SUPPORTED FOR OUT_FILE"); RAISE INCOMPLETE; END; -- WRITE MORE DATA WRITE (TEST_FILE_ONE, 2); CLOSE (TEST_FILE_ONE); -- NOW CHECK TO SEE THAT RESET WORKED FOR OUT_FILE BEGIN OPEN (TEST_FILE_ONE, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("DIR_IO NOT SUPPORTED FOR IN_FILE OPEN"); RAISE INCOMPLETE; END; READ (TEST_FILE_ONE, DATUM); IF DATUM /= 2 THEN FAILED ("RESET FAILED FOR OUT_FILE"); END IF; -- POSITION POINTER APPROPRIATELY FOR IN_FILE RESET READ (TEST_FILE_ONE, DATUM); -- RESET IN_FILE BEGIN RESET (TEST_FILE_ONE); IF INDEX (TEST_FILE_ONE) /= 1 THEN FAILED ("RESET INCORRECTLY POSITIONED FILE " & "FOR IN_FILE"); END IF; EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("RESET NOT SUPPORTED FOR IN_FILE"); RAISE INCOMPLETE; END; -- VALIDATE IN_FILE RESET READ (TEST_FILE_ONE, DATUM); IF DATUM /= 2 THEN FAILED ("RESET FAILED FOR IN_FILE"); END IF; -- VALIDATE RESET FOR IN_OUT FILE CLOSE (TEST_FILE_ONE); BEGIN OPEN (TEST_FILE_ONE, INOUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("DIR_IO NOT SUPPORTED FOR INOUT_FILE " & "OPEN"); RAISE INCOMPLETE; END; -- WRITE NEW DATA WRITE (TEST_FILE_ONE, 3); -- RESET INOUT_FILE BEGIN RESET (TEST_FILE_ONE); IF INDEX (TEST_FILE_ONE) /= 1 THEN FAILED ("RESET INCORRECTLY POSITIONED FILE " & "FOR INOUT_FILE"); END IF; EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("RESET NOT SUPPORTED FOR INOUT_FILE"); RAISE INCOMPLETE; END; -- VALIDATE RESET READ (TEST_FILE_ONE, DATUM); IF DATUM /= 3 THEN FAILED ("RESET FAILED FOR INOUT_FILE"); END IF; -- DELETE TEST FILE BEGIN DELETE (TEST_FILE_ONE); EXCEPTION WHEN USE_ERROR => NULL; END; RESULT; EXCEPTION WHEN INCOMPLETE => RESULT; END CE2111B;
S4/HW_Lab/sum_of_even.asm
akxavier/Assignments
0
101460
<filename>S4/HW_Lab/sum_of_even.asm ;print sum of even numbers from 0 to a given 2-digit number section .data msg1 : db 'Enter a 2-digit number : ' l1 : equ $-msg1 newline : db 10 section .bss d1 : resb 1 d2 : resb 1 junk : resb 1 num1 : resb 1 count : resb 1 temp : resb 1 sum : resw 1 section .text global _start: _start: mov eax, 4 mov ebx, 1 mov ecx, msg1 mov edx, l1 int 80h mov eax, 3 mov ebx, 0 mov ecx, d1 mov edx, 1 int 80h mov eax, 3 mov ebx, 0 mov ecx, d2 mov edx, 1 int 80h mov eax, 3 mov ebx, 0 mov ecx, junk mov edx, 1 int 80h ;calculate number sub byte[d1], 30h sub byte[d2], 30h mov al, byte[d1] mov bl, 10 mul bl mov bh, 0 mov bl, byte[d2] add ax, bx mov byte[num1], al mov bx, 2 mov ax, 0 while: cmp bx, word[num1] ja print add ax, bx add bx, 2 jmp while print: mov word[sum], ax mov byte[count],0 extract_no: cmp word[sum],0 je print_no inc byte[count] mov dx,0 mov ax,word[sum] mov bx,10 div bx push dx mov word[sum],ax jmp extract_no print_no: cmp byte[count],0 je end_print dec byte[count] pop dx mov byte[temp],dl add byte[temp],30h mov eax,4 mov ebx,1 mov ecx,temp mov edx,1 int 80h jmp print_no end_print: mov eax,4 mov ebx,1 mov ecx,newline mov edx,1 int 80h mov eax, 1 mov ebx, 0 int 80h
nrom-hello-world/src/strings.asm
Gumball2415/nes-scribbles
0
26750
.include "defines.inc" .include "global.inc" .segment "BANK1" ; end of string is important!!! ; else, textprinter loops forever ; strings should be multiples of 28 characters (excluding line feed)! ; ____________________________<-- up till here!! string_test: .byte "sphinx of dark black quartz," .byte "judge my vows...", char_LF, char_LF .byte "the quick brown fox did jump" .byte "over the lazy dog...", char_LF .byte char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF, char_LF .byte "squeak <:3 )~", char_LF .byte "line feed test...", char_LF .byte "curveball :P", char_EOS copyright_info: .byte "v.0.0.1", char_LF .byte "(C) SATELLITE & STARDUST ", char_SNS_LOGO, char_EOS credits: .byte "Initial Template:", char_LF .byte " yoeynsf", char_LF, char_LF .byte "Programming:", char_LF .byte " Persune", char_LF, char_LF .byte "Programming help:", char_LF .byte " yoeynsf, Kasumi, studsX, " .byte "Fiskbit, Pino, zeta0134, " .byte "jroweboy, & many, many more " .byte "others...:P", char_LF, char_LF .byte "Lots of thanks for you who " .byte "helped me through each tiny " .byte "step in this, I am eternally" .byte "grateful!!" .byte char_EOS eternal_gratitude: .byte "Jekuthiel, yoeynsf, Fiskbit," .byte "lidnariq, Kasumi, Pinobatch," .byte "studsX, Lockster, plgDavid, " .byte "Grievre, Iyatemu, BlueMario," .byte "jroweboy, zeta0134, and also" .byte "the entire NESDev community." .byte char_LF, char_LF .byte "I am very grateful for all " .byte "your help. I hope to return " .byte "the favor one day, when I am" .byte "much more able than I am now" .byte char_EOS testline: .byte "Hello, NROM!" .byte char_EOS lorem_ipsum: .byte "But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee.", char_EOS
engine/movie/oak_speech/oak_speech2.asm
opiter09/ASM-Machina
1
19823
<gh_stars>1-10 ChoosePlayerName: call OakSpeechSlidePicRight ld de, DefaultNamesPlayer call DisplayIntroNameTextBox ld a, [wCurrentMenuItem] and a jr z, .customName ld hl, DefaultNamesPlayerList call GetDefaultName ld de, wPlayerName call OakSpeechSlidePicLeft jr .done .customName ld hl, wPlayerName xor a ; NAME_PLAYER_SCREEN ld [wNamingScreenType], a call DisplayNamingScreen ld a, [wcf4b] cp "@" jr z, .customName call ClearScreen call Delay3 ld de, RedPicFront ld b, BANK(RedPicFront) call IntroDisplayPicCenteredOrUpperRight .done ld hl, YourNameIsText jp PrintText YourNameIsText: text_far _YourNameIsText text_end ChooseRivalName: call OakSpeechSlidePicRight ld de, DefaultNamesRival call DisplayIntroNameTextBox ld a, [wCurrentMenuItem] and a jr z, .customName ld hl, DefaultNamesRivalList call GetDefaultName ld de, wRivalName call OakSpeechSlidePicLeft jr .done .customName ld hl, wRivalName ld a, NAME_RIVAL_SCREEN ld [wNamingScreenType], a call DisplayNamingScreen ld a, [wcf4b] cp "@" jr z, .customName call ClearScreen call Delay3 ld de, Rival1Pic ld b, $13 call IntroDisplayPicCenteredOrUpperRight .done ld hl, HisNameIsText jp PrintText HisNameIsText: text_far _HisNameIsText text_end OakSpeechSlidePicLeft: push de hlcoord 0, 0 lb bc, 12, 11 call ClearScreenArea ; clear the name list text box ld c, 10 call DelayFrames pop de ld hl, wcd6d ld bc, NAME_LENGTH call CopyData call Delay3 hlcoord 12, 4 lb de, 6, 6 * SCREEN_WIDTH + 5 ld a, $ff jr OakSpeechSlidePicCommon OakSpeechSlidePicRight: hlcoord 5, 4 lb de, 6, 6 * SCREEN_WIDTH + 5 xor a OakSpeechSlidePicCommon: push hl push de push bc ldh [hSlideDirection], a ld a, d ldh [hSlideAmount], a ld a, e ldh [hSlidingRegionSize], a ld c, a ldh a, [hSlideDirection] and a jr nz, .next ; If sliding right, point hl to the end of the pic's tiles. ld d, 0 add hl, de .next ld d, h ld e, l .loop xor a ldh [hAutoBGTransferEnabled], a ldh a, [hSlideDirection] and a jr nz, .slideLeft ; sliding right ld a, [hli] ld [hld], a dec hl jr .next2 .slideLeft ld a, [hld] ld [hli], a inc hl .next2 dec c jr nz, .loop ldh a, [hSlideDirection] and a jr z, .next3 ; If sliding left, we need to zero the last tile in the pic (there is no need ; to take a corresponding action when sliding right because hl initially points ; to a 0 tile in that case). xor a dec hl ld [hl], a .next3 ld a, 1 ldh [hAutoBGTransferEnabled], a call Delay3 ldh a, [hSlidingRegionSize] ld c, a ld h, d ld l, e ldh a, [hSlideDirection] and a jr nz, .slideLeft2 inc hl jr .next4 .slideLeft2 dec hl .next4 ld d, h ld e, l ldh a, [hSlideAmount] dec a ldh [hSlideAmount], a jr nz, .loop pop bc pop de pop hl ret DisplayIntroNameTextBox: push de hlcoord 0, 0 ld b, $a ld c, $9 call TextBoxBorder hlcoord 3, 0 ld de, .namestring call PlaceString pop de hlcoord 2, 2 call PlaceString call UpdateSprites xor a ld [wCurrentMenuItem], a ld [wLastMenuItem], a inc a ld [wTopMenuItemX], a ld [wMenuWatchedKeys], a ; A_BUTTON inc a ld [wTopMenuItemY], a inc a ld [wMaxMenuItem], a jp HandleMenuInput .namestring db "NAME@" INCLUDE "data/player_names.asm" GetDefaultName: ; a = name index ; hl = name list ld b, a ld c, 0 .loop ld d, h ld e, l .innerLoop ld a, [hli] cp "@" jr nz, .innerLoop ld a, b cp c jr z, .foundName inc c jr .loop .foundName ld h, d ld l, e ld de, wcd6d ld bc, NAME_BUFFER_LENGTH jp CopyData INCLUDE "data/player_names_list.asm" LinkMenuEmptyText: text_end
oeis/191/A191014.asm
neoneye/loda-programs
11
6828
<reponame>neoneye/loda-programs ; A191014: a(n) = 10*a(n-1) + 2*a(n-2), with a(0)=0, a(1)=1. ; Submitted by <NAME>(s2) ; 0,1,10,102,1040,10604,108120,1102408,11240320,114608016,1168560800,11914824032,121485361920,1238683267264,12629803396480,128775400499328,1313013611786240,13387686918861056,136502896412183040,1391804337959552512,14191049172419891200,144694100400118017024,1475323102346019952640,15042619224260435560448,153376838447296395509760,1563853622921484826218496,15945289906109441053204480,162580606306937380184481792,1657696642881592683951226880,16902127641429801599881232384,172336669700061201366714777600 mov $3,1 lpb $0 sub $0,1 mul $1,2 mov $2,$3 mul $3,10 add $3,$1 mov $1,$2 lpe mov $0,$1
programs/oeis/321/A321237.asm
neoneye/loda
22
100187
; A321237: Start with a square of dimension 1 X 1, and repeatedly append along the squares of the previous step squares with half their side length that do not overlap with any prior square; a(n) gives the number of squares appended at n-th step. ; 1,8,28,68,148,308,628,1268,2548,5108,10228,20468,40948,81908,163828,327668,655348,1310708,2621428,5242868,10485748,20971508,41943028,83886068,167772148,335544308,671088628,1342177268,2684354548,5368709108,10737418228,21474836468,42949672948,85899345908,171798691828,343597383668,687194767348,1374389534708,2748779069428,5497558138868,10995116277748,21990232555508,43980465111028,87960930222068,175921860444148,351843720888308,703687441776628,1407374883553268,2814749767106548,5629499534213108,11258999068426228,22517998136852468,45035996273704948,90071992547409908,180143985094819828,360287970189639668,720575940379279348,1441151880758558708,2882303761517117428,5764607523034234868,11529215046068469748,23058430092136939508,46116860184273879028,92233720368547758068,184467440737095516148,368934881474191032308,737869762948382064628,1475739525896764129268,2951479051793528258548,5902958103587056517108,11805916207174113034228,23611832414348226068468,47223664828696452136948,94447329657392904273908,188894659314785808547828,377789318629571617095668,755578637259143234191348,1511157274518286468382708,3022314549036572936765428,6044629098073145873530868,12089258196146291747061748,24178516392292583494123508,48357032784585166988247028,96714065569170333976494068,193428131138340667952988148,386856262276681335905976308,773712524553362671811952628,1547425049106725343623905268,3094850098213450687247810548,6189700196426901374495621108,12379400392853802748991242228,24758800785707605497982484468,49517601571415210995964968948,99035203142830421991929937908,198070406285660843983859875828,396140812571321687967719751668,792281625142643375935439503348,1584563250285286751870879006708,3169126500570573503741758013428,6338253001141147007483516026868 mov $1,2 pow $1,$0 mul $1,10 trn $1,13 add $1,1 mov $0,$1
Examples/common-gateway-interface/querystring.asm
agguro/linux-nasm
6
97579
;Name: querystring.asm ; ;Build: nasm -felf64 -o querystring.o querystring.asm ; ld -melf_x86_64 querystring.o -o querystring ; ;Description: Get the URL parameters and displays them in a HTML table. bits 64 [list -] %include "unistd.inc" [list +] section .bss buffer: resb 1 .len: equ $-buffer section .rodata top: db 'Content-type: text/html',0x0A,0x0A db '<!DOCTYPE html><html><head><title>CGI : Get URL parameters</title></head>' db '<body><pre><h1>Get URL parameters</h1>' .len: equ $-top tabletop: db '<table align="left" width="25',0x25,'" border="0" cellpadding="0" cellspacing="0" class="params">' db '<tr><td><b><u>name</u></b></td><td><b><u>value</u></b></td></tr><tr><td class="name">' .len: equ $-tabletop newcolumn: db '</td><td class="value">' .len: equ $-newcolumn middle: db '</td></tr><tr><td class="name">' .len: equ $-middle noparams: db '<b>no url parameters</b>' .len: equ $-noparams tablebttm: db '</td></tr></table>' .len: equ $-tablebttm bottom: db '</pre></body></html>' .len: equ $-bottom htmlbr: db '<br />' .len: equ $-htmlbr requiredVar: db 'QUERY_STRING' .len: equ $-requiredVar section .text global _start _start: ; write the first part of the webpage mov rsi,top mov rdx,top.len call .write ; adjust the stack to point to the web servers variables pop rax pop rax pop rax cld ; let's loop through the webserver variables .getvariable: pop rsi or rsi,rsi ;done yet? je .done ; RSI contains a pointer to a variable string ; look for the required variable name amongst them mov rcx,requiredVar.len mov rdi,requiredVar rep cmpsb ;compare RCX bytes jne .getvariable ;no match get the next variable,if any ; we found the variable ; determine the len of the parameterstring, ; RSI points to the '=' character,therefore we adjust the counter RCX at the end xor rcx,rcx mov rbx,rsi .nextparamstringchar: lodsb cmp al,0 je .endofparamstring inc rcx jmp .nextparamstringchar .endofparamstring: ; we reached the end of the parameterstring,restore RSI. if len = 0 then there aren't ; parameters and we show that instead of the parameters. dec rcx ;len = rcx - 1 for '=' cmp rcx,0 je .noparameters push rcx push rbx ; print top of table mov rsi,tabletop mov rdx,tabletop.len call .write pop rbx pop rcx ; parse the parameterstring mov rsi,rbx ;rsi points to the first '=' inc rsi .getparamchar: xor rax,rax lodsb ;read byte cmp al,0 ;if zero then string end je .tablebottom push rsi ;save rsi cmp al,'=' ;start with value je .newcolumn cmp al,'&' ;new parameter je .newrow mov byte[buffer],al mov rsi,buffer mov rdx,buffer.len jmp .getnextparam .newcolumn: mov rsi,newcolumn mov rdx,newcolumn.len jmp .getnextparam .newrow: mov rsi,middle mov rdx,middle.len .getnextparam: call .write pop rsi ;restore rsi jmp .getparamchar .tablebottom: mov rsi,tablebttm mov rdx,tablebttm.len call .write jmp .done .noparameters: mov rsi,noparams mov rdx,noparams.len call .write .done: ; we are at the end of our search,print the rest of the HTML form ; write the second part of the webpage mov rsi,bottom mov rdx,bottom.len call .write syscall exit,0 .write: syscall write,stdout ret
examples/test_writer.adb
ytomino/xml-ada
0
629
-- testWriter.c -- -- section: xmlWriter -- synopsis: use various APIs for the xmlWriter -- purpose: tests a number of APIs for the xmlWriter, especially -- the various methods to write to a filename, to a memory -- buffer, to a new document, or to a subtree. It shows how to -- do encoding string conversions too. The resulting -- documents are then serialized. -- usage: testWriter -- test: testWriter ; -- for i in 1 2 3 4 ; do diff writer.xml writer$$i.res ; done ; -- rm writer*.res -- author: <NAME> -- copy: see Copyright for the status of this software. -- -- Ada version by yt -- This file is encoded as Latin-1 -- with Ada.Text_IO; with Ada.Unchecked_Conversion; with System; with C.stdio; with C.stdlib; with C.string; with C.libxml.encoding; with C.libxml.xmlwriter; with C.libxml.globals; with C.libxml.parser; with C.libxml.tree; with C.libxml.xmlmemory; with C.libxml.xmlstring; with C.libxml.xmlversion; --pragma Compile_Time_Error ( -- not C.libxml.xmlversion.LIBXML_WRITER_ENABLED -- or else not C.libxml.xmlversion.LIBXML_OUTPUT_ENABLED, -- "Writer or output support not compiled in"); procedure test_writer is pragma Linker_Options ("-lxml2"); use type C.char; use type C.char_array; use type C.signed_int; use type C.size_t; use type C.libxml.encoding.xmlCharEncodingHandlerPtr; use type C.libxml.tree.xmlBufferPtr; use type C.libxml.tree.xmlDocPtr; use type C.libxml.tree.xmlNodePtr; use type C.libxml.xmlstring.xmlChar_ptr; use type C.libxml.xmlwriter.xmlTextWriterPtr; function To_void_ptr is new Ada.Unchecked_Conversion ( C.libxml.xmlstring.xmlChar_ptr, C.void_ptr); function To_char_const_ptr is new Ada.Unchecked_Conversion ( C.libxml.xmlstring.xmlChar_ptr, C.char_const_ptr); function To_unsigned_char_const_ptr is new Ada.Unchecked_Conversion ( C.char_const_ptr, C.unsigned_char_const_ptr); function To_xmlChar_ptr is new Ada.Unchecked_Conversion ( C.void_ptr, C.libxml.xmlstring.xmlChar_ptr); function To_xmlChar_const_ptr is new Ada.Unchecked_Conversion ( C.char_const_ptr, C.libxml.xmlstring.xmlChar_ptr); MY_ENCODING : constant C.char_array := "ISO-8859-1" & C.char'Val (0); -- ConvertInput: -- @in: string in a given encoding -- @encoding: the encoding used -- -- Converts @in into UTF-8 for processing with libxml2 APIs -- -- Returns the converted UTF-8 string, or NULL in case of error. function ConvertInput (A_in : C.char_array; encoding : C.char_array) return C.libxml.xmlstring.xmlChar_ptr is pragma Assert (A_in'Length > 0 and then A_in (A_in'Last) = C.char'Val (0)); pragma Assert ( encoding'Length > 0 and then encoding (encoding'Last) = C.char'Val (0)); L_out : C.libxml.xmlstring.xmlChar_ptr; ret : C.signed_int; size : C.signed_int; out_size : aliased C.signed_int; temp : aliased C.signed_int; handler : C.libxml.encoding.xmlCharEncodingHandlerPtr; begin handler := C.libxml.encoding.xmlFindCharEncodingHandler ( encoding (encoding'First)'Access); if handler = null then declare encoding_String : String (1 .. encoding'Length - 1); for encoding_String'Address use encoding'Address; begin raise Program_Error with "ConvertInput: no encoding handler found for '" & encoding_String & "'"; end; end if; size := C.signed_int (C.string.strlen (A_in (A_in'First)'Access)) + 1; out_size := size * 2 - 1; L_out := To_xmlChar_ptr (C.libxml.globals.xmlMalloc (C.size_t (out_size))); if L_out /= null then temp := size - 1; ret := handler.input ( L_out, out_size'Access, To_unsigned_char_const_ptr (A_in (A_in'First)'Unchecked_Access), temp'Access); if ret < 0 or else temp - size + 1 /= 0 then C.libxml.globals.xmlFree (To_void_ptr (L_out)); L_out := null; if ret < 0 then raise Program_Error with "ConvertInput: conversion wasn't successful."; else raise Program_Error with "ConvertInput: conversion wasn't successful. converted:" & C.signed_int'Image (temp) & " octets."; end if; else L_out := To_xmlChar_ptr ( C.libxml.globals.xmlRealloc (To_void_ptr (L_out), C.size_t (out_size) + 1)); declare out_Array : array (0 .. C.size_t (out_size)) of C.libxml.xmlstring.xmlChar with Convention => C; for out_Array'Address use System.Address (To_void_ptr (L_out)); begin out_Array (C.size_t (out_size)) := C.libxml.xmlstring.xmlChar'Val (0); -- null terminating out end; end if; else raise Program_Error with "ConvertInput: no mem"; end if; return L_out; end ConvertInput; -- shared procedure Write_Sample_XML (writer : C.libxml.xmlwriter.xmlTextWriterPtr) is rc : C.signed_int; tmp : C.libxml.xmlstring.xmlChar_ptr; begin -- Write a comment as child of EXAMPLE. -- Please observe, that the input to the xmlTextWriter functions -- HAS to be in UTF-8, even if the output XML is encoded -- in iso-8859-1 tmp := ConvertInput ( "This is a comment with special chars: <" & C.char'Val (16#E4#) & C.char'Val (16#F6#) & C.char'Val (16#FC#) & ">" & C.char'Val (0), MY_ENCODING); rc := C.libxml.xmlwriter.xmlTextWriterWriteComment (writer, tmp); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteComment"; end if; if tmp /= null then C.libxml.globals.xmlFree (To_void_ptr (tmp)); end if; -- Start an element named "ORDER" as child of EXAMPLE. declare Name : constant C.char_array := "ORDER" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; -- Add an attribute with name "version" and value "1.0" to ORDER. declare Name : constant C.char_array := "version" & C.char'Val (0); Format : constant C.char_array := "1.0" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteAttribute ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteAttribute"; end if; -- Add an attribute with name "xml:lang" and value "de" to ORDER. declare Name : constant C.char_array := "xml:lang" & C.char'Val (0); Format : constant C.char_array := "de" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteAttribute ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteAttribute"; end if; -- Write a comment as child of ORDER tmp := ConvertInput ( "<" & C.char'Val (16#E4#) & C.char'Val (16#F6#) & C.char'Val (16#FC#) & ">" & C.char'Val (0), MY_ENCODING); declare Format : constant C.char_array := "This is another comment with special chars: " & C.char'Val (0); Value : C.char_array (0 .. 255); Dummy_char_ptr : C.char_ptr; begin Dummy_char_ptr := C.string.strcpy ( Value (Value'First)'Access, Format (Format'First)'Access); Dummy_char_ptr := C.string.strcat ( Value (Value'First)'Access, To_char_const_ptr (tmp)); rc := C.libxml.xmlwriter.xmlTextWriterWriteComment ( writer, To_xmlChar_const_ptr (Value (Value'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteFormatComment"; end if; if tmp /= null then C.libxml.globals.xmlFree (To_void_ptr (tmp)); end if; -- Start an element named "HEADER" as child of ORDER. declare Name : constant C.char_array := "HEADER" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; -- Write an element named "X_ORDER_ID" as child of HEADER. declare Name : constant C.char_array := "X_ORDER_ID" & C.char'Val (0); Format : constant C.char_array := "0000053535" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteFormatElement"; end if; -- Write an element named "CUSTOMER_ID" as child of HEADER. declare Name : constant C.char_array := "CUSTOMER_ID" & C.char'Val (0); Format : constant C.char_array := "1010" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteFormatElement"; end if; -- Write an element named "NAME_1" as child of HEADER. tmp := ConvertInput ( "M" & C.char'Val (16#FC#) & "ller" & C.char'Val (0), MY_ENCODING); declare Name : constant C.char_array := "NAME_1" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), tmp); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteElement"; end if; if tmp /= null then C.libxml.globals.xmlFree (To_void_ptr (tmp)); end if; -- Write an element named "NAME_2" as child of HEADER. tmp := ConvertInput ( "J" & C.char'Val (16#F6#) & "rg" & C.char'Val (0), MY_ENCODING); declare Name : constant C.char_array := "NAME_2" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), tmp); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteElement"; end if; if tmp /= null then C.libxml.globals.xmlFree (To_void_ptr (tmp)); end if; -- Close the element named HEADER. rc := C.libxml.xmlwriter.xmlTextWriterEndElement (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndElement"; end if; -- Start an element named "ENTRIES" as child of ORDER. declare Name : constant C.char_array := "ENTRIES" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; -- Start an element named "ENTRY" as child of ENTRIES. declare Name : constant C.char_array := "ENTRY" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; -- Write an element named "ARTICLE" as child of ENTRY. declare Name : constant C.char_array := "ARTICLE" & C.char'Val (0); Format : constant C.char_array := "<Test>" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteElement"; end if; -- Write an element named "ENTRY_NO" as child of ENTRY. declare Name : constant C.char_array := "ENTRY_NO" & C.char'Val (0); Format : constant C.char_array := "10" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteFormatElement"; end if; -- Close the element named ENTRY. rc := C.libxml.xmlwriter.xmlTextWriterEndElement (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndElement"; end if; -- Start an element named "ENTRY" as child of ENTRIES. declare Name : constant C.char_array := "ENTRY" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; -- Write an element named "ARTICLE" as child of ENTRY. declare Name : constant C.char_array := "ARTICLE" & C.char'Val (0); Format : constant C.char_array := "<Test 2>" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteElement"; end if; -- Write an element named "ENTRY_NO" as child of ENTRY. declare Name : constant C.char_array := "ENTRY_NO" & C.char'Val (0); Format : constant C.char_array := "20" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteFormatElement"; end if; -- Close the element named ENTRY. rc := C.libxml.xmlwriter.xmlTextWriterEndElement (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndElement"; end if; -- Close the element named ENTRIES. rc := C.libxml.xmlwriter.xmlTextWriterEndElement (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndElement"; end if; -- Start an element named "FOOTER" as child of ORDER. declare Name : constant C.char_array := "FOOTER" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; -- Write an element named "TEXT" as child of FOOTER. declare Name : constant C.char_array := "TEXT" & C.char'Val (0); Format : constant C.char_array := "This is a text." & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterWriteElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), To_xmlChar_const_ptr (Format (Format'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterWriteElement"; end if; -- Close the element named FOOTER. rc := C.libxml.xmlwriter.xmlTextWriterEndElement (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndElement"; end if; end Write_Sample_XML; -- testXmlwriterFilename: -- @uri: the output URI -- -- test the xmlWriter interface when writing to a new file procedure testXmlwriterFilename (uri : not null access constant C.char) is rc : C.signed_int; writer : C.libxml.xmlwriter.xmlTextWriterPtr; begin -- Create a new XmlWriter for uri, with no compression. writer := C.libxml.xmlwriter.xmlNewTextWriterFilename (uri, 0); if writer = null then raise Program_Error with "testXmlwriterFilename: Error creating the xml writer"; end if; -- Start the document with the xml default for the version, -- encoding ISO 8859-1 and the default for the standalone -- declaration. rc := C.libxml.xmlwriter.xmlTextWriterStartDocument ( writer, null, MY_ENCODING (MY_ENCODING'First)'Access, null); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartDocument"; end if; -- Start an element named "EXAMPLE". Since thist is the first -- element, this will be the root element of the document. declare Name : constant C.char_array := "EXAMPLE" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; Writing : begin Write_Sample_XML (writer); end Writing; -- Here we could close the elements ORDER and EXAMPLE using the -- function xmlTextWriterEndElement, but since we do not want to -- write any other elements, we simply call xmlTextWriterEndDocument, -- which will do all the work. rc := C.libxml.xmlwriter.xmlTextWriterEndDocument (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndDocument"; end if; C.libxml.xmlwriter.xmlFreeTextWriter (writer); end testXmlwriterFilename; -- testXmlwriterMemory: -- @file: the output file -- -- test the xmlWriter interface when writing to memory procedure testXmlwriterMemory (file : not null access constant C.char) is rc : C.signed_int; writer : C.libxml.xmlwriter.xmlTextWriterPtr; buf : C.libxml.tree.xmlBufferPtr; fp : access C.stdio.FILE; Dummy_signed_int : C.signed_int; begin -- Create a new XML buffer, to which the XML document will be written buf := C.libxml.tree.xmlBufferCreate; if buf = null then raise Program_Error with "testXmlwriterMemory: Error creating the xml buffer"; end if; -- Create a new XmlWriter for memory, with no compression. -- Remark: there is no compression for this kind of xmlTextWriter writer := C.libxml.xmlwriter.xmlNewTextWriterMemory (buf, 0); if writer = null then raise Program_Error with "testXmlwriterMemory: Error creating the xml writer"; end if; -- Start the document with the xml default for the version, -- encoding ISO 8859-1 and the default for the standalone -- declaration. rc := C.libxml.xmlwriter.xmlTextWriterStartDocument ( writer, null, MY_ENCODING (MY_ENCODING'First)'Access, null); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartDocument"; end if; -- Start an element named "EXAMPLE". Since thist is the first -- element, this will be the root element of the document. declare Name : constant C.char_array := "EXAMPLE" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; Writing : begin Write_Sample_XML (writer); end Writing; -- Here we could close the elements ORDER and EXAMPLE using the -- function xmlTextWriterEndElement, but since we do not want to -- write any other elements, we simply call xmlTextWriterEndDocument, -- which will do all the work. rc := C.libxml.xmlwriter.xmlTextWriterEndDocument (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndDocument"; end if; C.libxml.xmlwriter.xmlFreeTextWriter (writer); declare Mode : constant C.char_array := "w" & C.char'Val (0); begin fp := C.stdio.fopen (file, Mode (Mode'First)'Access); end; if fp = null then raise Program_Error with "testXmlwriterMemory: Error at fopen"; end if; Dummy_signed_int := C.stdio.fputs (To_char_const_ptr (buf.content), fp); Dummy_signed_int := C.stdio.fclose (fp); C.libxml.tree.xmlBufferFree (buf); end testXmlwriterMemory; -- testXmlwriterDoc: -- @file: the output file -- -- test the xmlWriter interface when creating a new document procedure testXmlwriterDoc (file : not null access constant C.char) is rc : C.signed_int; writer : C.libxml.xmlwriter.xmlTextWriterPtr; doc : aliased C.libxml.tree.xmlDocPtr; Dummy_signed_int : C.signed_int; begin -- Create a new XmlWriter for DOM, with no compression. writer := C.libxml.xmlwriter.xmlNewTextWriterDoc (doc'Access, 0); if writer = null then raise Program_Error with "testXmlwriterDoc: Error creating the xml writer"; end if; -- Start the document with the xml default for the version, -- encoding ISO 8859-1 and the default for the standalone -- declaration. rc := C.libxml.xmlwriter.xmlTextWriterStartDocument ( writer, null, MY_ENCODING (MY_ENCODING'First)'Access, null); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartDocument"; end if; -- Start an element named "EXAMPLE". Since thist is the first -- element, this will be the root element of the document. declare Name : constant C.char_array := "EXAMPLE" & C.char'Val (0); begin rc := C.libxml.xmlwriter.xmlTextWriterStartElement ( writer, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access)); end; if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartElement"; end if; Writing : begin Write_Sample_XML (writer); end Writing; -- Here we could close the elements ORDER and EXAMPLE using the -- function xmlTextWriterEndElement, but since we do not want to -- write any other elements, we simply call xmlTextWriterEndDocument, -- which will do all the work. rc := C.libxml.xmlwriter.xmlTextWriterEndDocument (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndDocument"; end if; C.libxml.xmlwriter.xmlFreeTextWriter (writer); Dummy_signed_int := C.libxml.tree.xmlSaveFileEnc ( file, doc, MY_ENCODING (MY_ENCODING'First)'Access); C.libxml.tree.xmlFreeDoc (doc); end testXmlwriterDoc; -- testXmlwriterTree: -- @file: the output file -- -- test the xmlWriter interface when writing to a subtree procedure testXmlwriterTree (file : not null access constant C.char) is rc : C.signed_int; writer : C.libxml.xmlwriter.xmlTextWriterPtr; doc : C.libxml.tree.xmlDocPtr; node : C.libxml.tree.xmlNodePtr; Dummy_xmlNodePtr : C.libxml.tree.xmlNodePtr; Dummy_signed_int : C.signed_int; begin -- Create a new XML DOM tree, to which the XML document will be written doc := C.libxml.tree.xmlNewDoc ( To_xmlChar_const_ptr ( C.libxml.parser.XML_DEFAULT_VERSION ( C.libxml.parser.XML_DEFAULT_VERSION'First)'Access)); if doc = null then raise Program_Error with "testXmlwriterTree: Error creating the xml document tree"; end if; -- Create a new XML node, to which the XML document will be appended declare Name : constant C.char_array := "EXAMPLE" & C.char'Val (0); begin node := C.libxml.tree.xmlNewDocNode ( doc, null, To_xmlChar_const_ptr (Name (Name'First)'Unchecked_Access), null); end; if node = null then raise Program_Error with "testXmlwriterTree: Error creating the xml node"; end if; -- Make ELEMENT the root node of the tree Dummy_xmlNodePtr := C.libxml.tree.xmlDocSetRootElement (doc, node); -- Create a new XmlWriter for DOM tree, with no compression. writer := C.libxml.xmlwriter.xmlNewTextWriterTree (doc, node, 0); if writer = null then raise Program_Error with "testXmlwriterTree: Error creating the xml writer"; end if; -- Start the document with the xml default for the version, -- encoding ISO 8859-1 and the default for the standalone -- declaration. rc := C.libxml.xmlwriter.xmlTextWriterStartDocument ( writer, null, MY_ENCODING (MY_ENCODING'First)'Access, null); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterStartDocument"; end if; Writing : begin Write_Sample_XML (writer); end Writing; -- Here we could close the elements ORDER and EXAMPLE using the -- function xmlTextWriterEndElement, but since we do not want to -- write any other elements, we simply call xmlTextWriterEndDocument, -- which will do all the work. rc := C.libxml.xmlwriter.xmlTextWriterEndDocument (writer); if rc < 0 then raise Program_Error with "testXmlwriterTree: Error at xmlTextWriterEndDocument"; end if; C.libxml.xmlwriter.xmlFreeTextWriter (writer); Dummy_signed_int := C.libxml.tree.xmlSaveFileEnc ( file, doc, MY_ENCODING (MY_ENCODING'First)'Access); C.libxml.tree.xmlFreeDoc (doc); end testXmlwriterTree; begin -- this initialize the library and check potential ABI mismatches -- between the version it was compiled for and the actual shared -- library used. C.libxml.xmlversion.xmlCheckVersion (C.libxml.xmlversion.LIBXML_VERSION); declare Default_Temp : constant C.char_array (0 .. 4) := "/tmp" & C.char'Val (0); function Get_Temp return access constant C.char is TMPDIR : constant C.char_array (0 .. 6) := "TMPDIR" & C.char'Val (0); Temp : access constant C.char := C.stdlib.getenv (TMPDIR (0)'Access); begin if Temp = null or else Temp.all = C.char'Val (0) then Temp := Default_Temp (0)'Access; end if; return Temp; end Get_Temp; Temp : constant not null access constant C.char := Get_Temp; Dummy_char_ptr : C.char_ptr; begin -- first, the file version declare uri_Name : constant C.char_array := "/writer1.res" & C.char'Val (0); uri : aliased C.char_array (0 .. C.string.strlen (Temp) + 256); begin Dummy_char_ptr := C.string.strcpy (uri (0)'Access, Temp); Dummy_char_ptr := C.string.strcat (uri (0)'Access, uri_Name (0)'Access); testXmlwriterFilename (uri => uri (0)'Access); end; -- next, the memory version declare file_Name : constant C.char_array := "/writer2.res" & C.char'Val (0); file : aliased C.char_array (0 .. C.string.strlen (Temp) + 256); begin Dummy_char_ptr := C.string.strcpy (file (0)'Access, Temp); Dummy_char_ptr := C.string.strcat (file (0)'Access, file_Name (0)'Access); testXmlwriterMemory (file => file (0)'Access); end; -- next, the DOM version declare file_Name : constant C.char_array := "/writer3.res" & C.char'Val (0); file : aliased C.char_array (0 .. C.string.strlen (Temp) + 256); begin Dummy_char_ptr := C.string.strcpy (file (0)'Access, Temp); Dummy_char_ptr := C.string.strcat (file (0)'Access, file_Name (0)'Access); testXmlwriterDoc (file => file (0)'Access); end; -- next, the tree version declare file_Name : constant C.char_array := "/writer4.res" & C.char'Val (0); file : aliased C.char_array (0 .. C.string.strlen (Temp) + 256); begin Dummy_char_ptr := C.string.strcpy (file (0)'Access, Temp); Dummy_char_ptr := C.string.strcat (file (0)'Access, file_Name (0)'Access); testXmlwriterTree (file => file (0)'Access); end; end; -- Cleanup function for the XML library. C.libxml.parser.xmlCleanupParser; -- this is to debug memory for regression tests C.libxml.xmlmemory.xmlMemoryDump; -- finish Ada.Text_IO.Put_Line (Ada.Text_IO.Standard_Error.all, "ok"); end test_writer;
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a49027a.ada
best08618/asylo
7
15860
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a49027a.ada -- A49027A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT A SUBTYPE CAN BE NONSTATIC IN A GENERIC TEMPLATE AND -- STATIC IN THE CORRESPONDING INSTANCE. -- CHECK THAT FOR A GENERIC INSTANTIATION, IF THE ACTUAL PARAMETER -- IS A STATIC SUBTYPE, THEN EVERY USE OF THE CORRESPONDING FORMAL -- PARAMETER WITHIN THE INSTANCE IS CONSIDERED TO DENOTE A STATIC -- SUBTYPE -- -- THIS IS A TEST BASED ON AI-00409/05-BI-WJ. -- HISTORY: -- <NAME>, 27 AUGUST 1990 -- CJJ 10 OCT 1990 TEST OBJECTIVE CHANGED TO REFLECT AIG -- OBJECTIVE. WITH REPORT ; PROCEDURE A49027A IS BEGIN -- A49027A REPORT.TEST ("A49027A", "CHECK THAT A SUBTYPE CAN BE NONSTATIC " & "IN A GENERIC TEMPLATE AND STATIC IN THE " & "CORRESPONDING INSTANCE.") ; LOCAL_BLOCK: DECLARE TYPE NUMBER IS RANGE 1 .. 10 ; GENERIC TYPE NUMBER_TYPE IS RANGE <> ; PACKAGE STATIC_TEST IS TYPE NEW_NUMBER_TYPE IS NEW NUMBER_TYPE ; SUBTYPE SUB_NUMBER_TYPE IS NUMBER_TYPE ; END STATIC_TEST ; PACKAGE NEW_STATIC_TEST IS NEW STATIC_TEST (NUMBER_TYPE => NUMBER) ; TYPE ANOTHER_NUMBER IS RANGE NEW_STATIC_TEST.NEW_NUMBER_TYPE'FIRST .. NEW_STATIC_TEST.NEW_NUMBER_TYPE'LAST ; TYPE YET_ANOTHER_NUMBER IS RANGE NEW_STATIC_TEST.SUB_NUMBER_TYPE'FIRST .. NEW_STATIC_TEST.SUB_NUMBER_TYPE'LAST ; BEGIN -- LOCAL_BLOCK NULL ; END LOCAL_BLOCK ; REPORT.RESULT ; END A49027A ;
src/main/antlr4/hu/fordprog/regx/grammar/Regx.g4
battila7/RegX
1
1407
<filename>src/main/antlr4/hu/fordprog/regx/grammar/Regx.g4<gh_stars>1-10 grammar Regx; program : declaration* EOF ; declaration : variableDeclaration | functionDeclaration ; variableDeclaration : stringDeclaration | listDeclaration | regexDeclaration ; stringDeclaration : STRING identifier declarationInitializer? ';' ; listDeclaration : LIST identifier declarationInitializer? ';' ; stringListLiteral : '[' stringLiteralList? ']' ; stringLiteralList : StringLiteral (',' StringLiteral)* ; regexDeclaration : REGEX identifier declarationInitializer? ';' ; declarationInitializer : '=' expression ; functionDeclaration : 'function' returnType identifier '(' formalParameterList? ')' block ; returnType : 'void' | STRING | LIST | REGEX ; formalParameterList : formalParameter (',' formalParameter)* ; formalParameter : typeName identifier ; block : statement | '{' statement* '}' ; statement : variableDeclaration | expression ';' | forLoop | returnStatement ';' ; expression : identifier #identifierExpression | literal #literalExpression | functionCall #functionCallExpression | assignment #assignmentExpression ; literal : stringLiteral | regexLiteral | stringListLiteral ; functionCall : identifier '(' argumentList? ')'; argumentList : argument (',' argument)* ; argument : expression ; assignment : <assoc=right> identifier '=' expression ; forLoop : FOR '(' identifier ':' expression ')' block ; returnStatement : RETURN expression; identifier : Identifier ; typeName : STRING | LIST | REGEX ; stringLiteral : StringLiteral ; regexLiteral : RegexLiteral ; StringLiteral : '"' StringCharacters? '"' ; RegexLiteral : '/' StringCharacters? '/' ; fragment StringCharacters : StringCharacter+ ; fragment StringCharacter : UnescapedCharacter | EscapedCharacter ; fragment UnescapedCharacter : ~[\\"'\n\r\t] ; fragment EscapedCharacter : '\\' [btnfr"'\\] ; STRING : 'string'; LIST : 'list'; REGEX : 'regex'; FOR : 'for'; RETURN : 'return'; FUNCTION : 'function'; Identifier: Letter LetterOrDigit*; fragment Letter: [a-zA-Z$_]; fragment LetterOrDigit: [a-zA-Z$_0-9]; WS : [ \t\r\n\u000C]+ -> channel(HIDDEN) ;
libsrc/_DEVELOPMENT/arch/zxn/esxdos/z80/asm_esx_ide_mode_set.asm
jpoikela/z88dk
640
21869
<reponame>jpoikela/z88dk ; unsigned char esx_ide_mode_set(struct esx_mode *mode) INCLUDE "config_private.inc" SECTION code_esxdos PUBLIC asm_esx_ide_mode_set EXTERN l_esx_ide_mode_get asm_esx_ide_mode_set: ; enter : hl = struct esx_mode *mode ; ; exit : success ; ; hl = 0 ; carry reset ; ; fail ; ; hl = -1 ; carry set, errno = nextzxos error code ; ; uses : all except af', iy push hl ld c,(hl) ; submode inc hl ld b,(hl) ; layer ld a,1 ; set jp l_esx_ide_mode_get
bb-runtimes/examples/stm32f4-discovery/leds-raven/leds.adb
JCGobbi/Nucleo-STM32G474RE
0
2034
------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- -- -- Copyright (C) 2013, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 3, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. -- -- -- -- As a special exception under Section 7 of GPL version 3, you are granted -- -- additional permissions described in the GCC Runtime Library Exception, -- -- version 3.1, as published by the Free Software Foundation. -- -- -- -- You should have received a copy of the GNU General Public License and -- -- a copy of the GCC Runtime Library Exception along with this program; -- -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- -- <http://www.gnu.org/licenses/>. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ pragma Warnings (Off); with System.STM32F4; use System.STM32F4; pragma Warnings (On); with Ada.Real_Time; use Ada.Real_Time; procedure Leds is -- Bit definitions for RCC AHB1ENR register RCC_AHB1ENR_GPIOD : constant Word := 16#08#; RCC_AHB1ENR_GPIOA : constant Word := 16#01#; GPIOD_Base : constant := AHB1_Peripheral_Base + 16#0C00#; GPIOA_Base : constant := AHB1_Peripheral_Base + 16#0000#; GPIOD : GPIO_Registers with Volatile, Address => System'To_Address (GPIOD_Base); pragma Import (Ada, GPIOD); GPIOA : GPIO_Registers with Volatile, Address => System'To_Address (GPIOA_Base); pragma Import (Ada, GPIOA); Period : constant Time_Span := Milliseconds (200); Next_Start : Time := Clock; type Idx_Type is mod 4; Idx : Idx_Type := 0; Masks : constant array (Idx_Type) of Word := (16#1_000#, 16#2_000#, 16#4_000#, 16#8_000#); Clockwise : Boolean := True; begin -- Enable clock for GPIO-D (leds) and GPIO-A (button) RCC.AHB1ENR := RCC.AHB1ENR or RCC_AHB1ENR_GPIOD or RCC_AHB1ENR_GPIOA; -- Configure PD12-15 (leds) and PA0 (Button) declare use GPIO; begin GPIOD.MODER (12 .. 15) := (others => Mode_OUT); GPIOD.OTYPER (12 .. 15) := (others => Type_PP); GPIOD.OSPEEDR (12 .. 15) := (others => Speed_100MHz); GPIOD.PUPDR (12 .. 15) := (others => No_Pull); GPIOA.MODER (0) := Mode_IN; GPIOA.PUPDR (0) := No_Pull; end; loop -- Off GPIOD.BSRR := Masks (Idx) * 2**16; if Clockwise then Idx := Idx + 1; else Idx := Idx - 1; end if; -- On GPIOD.BSRR := Masks (Idx); if (GPIOA.IDR and 1) /= 0 then Clockwise := not Clockwise; end if; Next_Start := Next_Start + Period; delay until Next_Start; end loop; end Leds;