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
oeis/151/A151241.asm
neoneye/loda-programs
11
27089
<reponame>neoneye/loda-programs ; A151241: Number of walks within N^3 (the first octant of Z^3) starting at (0,0,0) and consisting of n steps taken from {(-1, 0, 0), (-1, 0, 1), (1, 0, 0), (1, 0, 1), (1, 1, 0)} ; Submitted by <NAME> ; 1,3,15,63,315,1431,7155,33615,168075,804087,4020435,19448991,97244955,473907591,2369537955,11607504687,58037523435,285383915415,1426919577075,7036602369471,35183011847355,173883879452583,869419397262915,4304442210846543,21522211054232715,106705461576611511 mov $2,1 mov $3,$0 mov $4,1 mov $5,1 lpb $3 mul $2,$3 div $2,$4 sub $3,1 add $4,1 trn $5,$2 mul $2,3 mul $5,2 add $5,$2 lpe mov $0,$5
source/streams/machine-w64-mingw32/s-naiona.ads
ytomino/drake
33
26874
pragma License (Unrestricted); -- implementation unit specialized for Windows package System.Native_IO.Names is pragma Preelaborate; procedure Open_Ordinary ( Method : Open_Method; Handle : aliased out Handle_Type; Mode : File_Mode; Name : String; Out_Name : aliased out Name_Pointer; -- null Form : Packed_Form); procedure Get_Full_Name ( Handle : Handle_Type; Has_Full_Name : in out Boolean; Name : in out Name_Pointer; Is_Standard : Boolean; Raise_On_Error : Boolean); end System.Native_IO.Names;
tools-src/gnu/gcc/gcc/ada/hostparm.ads
enfoTek/tomato.linksys.e2000.nvram-mod
80
23854
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- H O S T P A R M -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2001 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 2, 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 COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- This package defines some system dependent parameters for GNAT. These -- are parameters that are relevant to the host machine on which the -- compiler is running, and thus this package is part of the compiler. package Hostparm is pragma Preelaborate (Hostparm); ----------------------- -- TARGET Parameters -- ----------------------- -- ??? The following should really be moved to a Target package Java_VM : constant Boolean := False; -- Set true when compiling the JGNAT tool chain (compiler, gnatmake, etc) --------------------- -- HOST Parameters -- --------------------- OpenVMS : Boolean := False; -- Set True for OpenVMS host. See also OpenVMS target boolean in -- 5vsystem.ads and OpenVMS_On_Target boolean in Targparm. This is -- not a constant, because it can be modified by -gnatdm. Normalized_CWD : constant String := "./"; -- Normalized string to access current directory Max_Line_Length : constant := 255; -- Maximum source line length. This can be set to any value up to -- 2**15 - 1, a limit imposed by the assumption that column numbers -- can be stored in 16 bits (see Types.Column_Number). A value of -- 200 is the minimum value required (RM 2.2(15)), but we use 255 -- for most GNAT targets since this is DEC Ada compatible. Max_Name_Length : constant := 1024; -- Maximum length of unit name (including all dots, and " (spec)") and -- of file names in the library, must be at least Max_Line_Length, but -- can be larger. Max_Instantiations : constant := 4000; -- Maximum number of instantiations permitted (to stop runaway cases -- of nested instantiations). These situations probably only occur in -- specially concocted test cases. Tag_Errors : constant Boolean := False; -- If set to true, then brief form error messages will be prefaced by -- the string "error:". Used as default for Opt.Unique_Error_Tag. Exclude_Missing_Objects : constant Boolean := True; -- If set to true, gnatbind will exclude from consideration all -- non-existent .o files. Max_Debug_Name_Length : constant := 256; -- If a generated qualified debug name exceeds this length, then it -- is automatically compressed, regardless of the setting of the -- Compress_Debug_Names switch controlled by -gnatC. end Hostparm;
Library/User/Gen/genClassBuild.asm
steakknife/pcgeos
504
26705
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1994 -- All Rights Reserved PROJECT: PC GEOS MODULE: UserInterface/Gen FILE: genClassBuild.asm ROUTINES: Name Description ---- ----------- GLB GenClass Gen UI object REVISION HISTORY: Name Date Description ---- ---- ----------- dlitwin 10/10/94 Broken out of genClass.asm DESCRIPTION: This file contains routines to implement the Gen class $Id: genClassBuild.asm,v 1.1 97/04/07 11:45:36 newdeal Exp $ ------------------------------------------------------------------------------@ Build segment resource COMMENT @---------------------------------------------------------------------- METHOD: GenInitialize DESCRIPTION: Initialize a generic object PASS: *ds:si - instance data es - segment of GenClass ax - MSG_META_INITIALIZE RETURN: nothing ALLOWED_TO_DESTROY: ax, cx, dx, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: NOTE: THIS ROUTINE ASSUME THAT THE OBJECT HAS JUST BEEN CREATED AND HAS INSTANCE DATA OF ALL 0'S FOR THE VIS PORTION REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 2/89 Initial version ------------------------------------------------------------------------------@ GenInitialize method static GenClass, MSG_META_INITIALIZE ; No parent class initialization since this is a master class or ds:[di].GI_states, mask GS_ENABLED ret GenInitialize endm COMMENT @---------------------------------------------------------------------- FUNCTION: GenRelocOrUnReloc DESCRIPTION: Relocate or unrelocate active list CALLED BY: INTERNAL PASS: *ds:si - object es - segment of GenClass ax - MSG_META_RELOCATE/MSG_META_UNRELOCATE cx - handle of block containing relocation dx - VMRelocType: VMRT_UNRELOCATE_BEFORE_WRITE VMRT_RELOCATE_AFTER_READ VMRT_RELOCATE_AFTER_WRITE bp - data to pass to ObjRelocOrUnRelocSuper RETURN: carry - set if error bp - unchanged DESTROYED: ax, cx, dx, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 11/89 Copied from GenActiveListClass ------------------------------------------------------------------------------@ GenRelocOrUnReloc method GenClass, reloc uses bp .enter ; ; Set BP non-zero if unrelocating. ; clr bp ; Assume we're relocating cmp ax, MSG_META_RELOCATE je 10$ ; yup inc bp ; wrong 10$: mov di, ds:[si] add di, ds:[di].Gen_offset ;ds:di = instance ;now if the VisMoniker supplied for the generic object ;is actually a moniker list, relocate the optr's in the list. mov cx, ds:[di].GI_visMoniker ;*ds:cx = VisMoniker ;or VisMonikerList mov bx,cx tst <{word} ds:[bx]> ;Is the block freed? jne cont ;Branch if not clr ds:[di].GI_visMoniker ;Else, clear out vis moniker ; instance data cont: mov dx, ds:[LMBH_handle] ;dx = relocation block to use call GenRelocMonikerList ;Relocate the list .leave mov di, offset GenClass call ObjRelocOrUnRelocSuper ret GenRelocOrUnReloc endm COMMENT @---------------------------------------------------------------------- FUNCTION: GenRelocMonikerList DESCRIPTION: Relocate or unrelocate MonikerList CALLED BY: GLOBAL PASS: *ds:cx - moniker list dx - block in which moniker list came from/will be stored back to, i.e. block whose owner has correct relocation tables to use. (In most all cases ds:[LMBH_handle] will work fine. This option is offered for cases where an unrelocated moniker list is copied out of one library's resource & into a block owned by another geode. In this latter case, the block handle in which the moniker list came from should be passed) bp - 0 if we want to relocate the list 1 if we want to unrelocate the list RETURN: carry set if RelocOrUnRelocHandle returned carry set DESTROYED: Nothing - This routine used both as static method call & as a utility routine outside of object world. REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/89 Copied from GenActiveListClass doug 5/92 Change to be static, added "relocation block" option martin 2000/10/9 Added EC check for CORRUPT_MONIKER_LIST ------------------------------------------------------------------------------@ GenRelocMonikerList method static GenClass, MSG_GEN_RELOC_MONIKER_LIST push di tst cx ;is there anything? jz quickExit ;skip to end if not... mov di, cx mov di, ds:[di] ;ds:di = moniker or list tst di ;If freed, exit jz quickExit cmp di, -1 jz quickExit test ds:[di].VM_type, mask VMT_MONIKER_LIST ;is it a list? jnz doList quickExit: pop di clc ; no errors ret doList: push ax, bx, cx, dx ;walk through this VisMonikerList, updating the optr's which point ;to VisMonikers. ChunkSizePtr ds, di, cx ;cx -> size of list (in bytes) ;; ;; EC: Make sure the list size is a multiple of one entry ;; EC < push ax, cx > EC < mov ax, cx ; ax = size of list > EC < mov cx, size VisMonikerListEntry ; cx = list increment > EC < div cl ; ah = remainder > EC < tst ah ; is list size valid? > EC < ERROR_NZ UI_CORRUPT_MONIKER_LIST > EC < pop ax, cx > mov bx, dx ;bx = relocation block to use relocEntry: push cx mov cx, ds:[di].VMLE_moniker.handle ;relocate the handle call RelocOrUnRelocHandle ;uses bp flag to decide ;whether to reloc or unreloc. mov ds:[di].VMLE_moniker.handle,cx pop cx jc done add di,size VisMonikerListEntry sub cx,size VisMonikerListEntry jnz relocEntry clc ; no errors done: pop ax, bx, cx, dx pop di ret GenRelocMonikerList endm RelocOrUnRelocHandle proc near mov al, RELOC_HANDLE tst bp jnz un call ObjDoRelocation jmp exit un: call ObjDoUnRelocation exit: ret RelocOrUnRelocHandle endp COMMENT @---------------------------------------------------------------------- METHOD: GenCopyTree DESCRIPTION: MSG_GEN_COPY_TREE may be used to copy a generic object tree, starting at the object first called. This method should be supported by all Generic object classes, & any subclassings thereof, by first calling the superclass method, & then copying over any additional data needed for that class level. This method is guaranteed NOT to force the specific building of any object. In fact, the copied object should NOT be grown above the Gen level. It will also NOT send MSG_META_INITIALIZE to any of the master levels of the object. WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ds:bx - base structure ax - MSG_GEN_COPY_TREE cx - block into which to copy tree dx - 0 to copy tree w/no parent, else is chunk handle of generic object in destination block onto which to add the new object. bp - CompChildFlags if CCF_MARK_DIRTY is set: CCF_MARK_DIRTY is passed to GenAddChild and the object is marked dirty if CCF_MARK_DIRTY is clear: The object is marked as ignore dirty RETURN: ^lcx:dx - new object created ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 6/89 Initial version ------------------------------------------------------------------------------@ GenCopyTree method dynamic GenClass, MSG_GEN_COPY_TREE EC < call ECCheckGenCopyTreeArgs ;check passed arguments > ; ; Copy the template object to the new block wholesale, without any ; sort of MSG_INITIALIZEs getting sent or anything. This is ; easier, and faster than calling ObjInstantiate and growing the ; individual master levels up to the Gen level...Since no one in the ; Gen world relies on MSG_META_INITIALIZE ; push si ; save source object chunk for copy ; of children (if any) EC < push bp ; preserve all CompChildFlags > EC < ; for final ADD_GEN_CHILD > EC < andnf bp, mask CCF_MARK_DIRTY ; GenCopyChunk wants only > EC < ; CCF_MARK_DIRTY > mov bx, cx mov ax, si ; get flags so we can transfer ; vardataReloc call ObjGetFlags push ax segmov es, ds ; es <- source segment call ObjLockObjBlock mov ds, ax ; ds <- dest segment mov ax, si call GenCopyChunk pop bx ; mark chunk as object and transfer ; vardataReloc flag andnf bx, mask OCF_IS_OBJECT or mask OCF_VARDATA_RELOC call ObjSetFlags ; (DIRTY/IGNORE_DIRTY taken care of by ; GenCopyChunk) ; Copy over Gen-specific chunks. mov bx, es:[si] ; es:bx <- source object Gen data add bx, es:[bx].Gen_offset xchg si, ax ; *ds:si <- destination object (1-b i) mov ax, es:[bx].GI_visMoniker call GenCopyChunk ; mov di, ds:[si] ; get ptr to new object add di, ds:[di].Gen_offset ; Store moniker chunk copied over mov ds:[di].GI_visMoniker, ax ; zero out linkage of new object clr ax mov ds:[di].GI_link.LP_next.handle, ax mov ds:[di].GI_link.LP_next.chunk, ax mov ds:[di].GI_comp.CP_firstChild.handle, ax mov ds:[di].GI_comp.CP_firstChild.chunk, ax ; ADD TO GENERIC PARENT PASSED mov cx, ds:[LMBH_handle] ; Setup ^lcx:dx = new obj xchg dx, si ; and *ds:si = parent obj EC < pop bp ; get addition flags, if we > EC < ; mangled them for EC purposes > tst si ; see if we're supposed to add jz copyChildren ; if not, skip ; Force not USABLE for a moment, ; while we do generic add mov al, ds:[di].GI_states ;save states push ax andnf al, not mask GS_USABLE mov ds:[di].GI_states, al push bp ; needed for calling kids... push dx ; save chunk of new object as parent ; for calling kids and for restoration ; of GI_states mov ax, MSG_GEN_ADD_CHILD call ObjCallInstanceNoLockES pop si ; restore chunk of new object pop bp mov di, ds:[si] ; ds:di <- Gen instance data add di, ds:[di].Gen_offset pop ax ; and its GI_states flags mov ds:[di].GI_states, al ; Store complete state value mov dx, si ; dx <- parent chunk (object just ; copied) for copying kids copyChildren: ; FINISH BY COPYING ALL GENERIC CHILDREN OVER pop si ; Fetch source object chunk handle ; so we can call all its children mov bx, ds:[LMBH_handle] call MemUnlock ; Unlock destination block segmov ds, es ; Send method to template object mov cx, bx ; cx <- destination block (might have ; been trashed by ADD_GEN_CHILD) push cx, dx andnf bp, mask CCF_MARK_DIRTY ; Make sure kids get added in their or bp, CCO_LAST ; current order (each child added is ; added as the last one) mov ax, MSG_GEN_COPY_TREE call GenSendToChildren pop cx, dx ret GenCopyTree endm COMMENT @----------------------------------------------------------------------- METHOD: GenFinalObjFree DESCRIPTION: Intercept method normally handled at MetaClass to add behavior of freeing the chunks that a GenClass object references. Free chunk, hints & vis moniker, unless any of these chunks came from a resource, in which case we mark dirty & resize to zero. PASS: *ds:si - object ax - MSG_META_FINAL_OBJ_FREE RETURN: nothing ALLOWED_TO_DESTROY: ax, cx, dx, bp bx, si, di, ds, es (method handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 8/90 Initial version -------------------------------------------------------------------------------@ GenFinalObjFree method GenClass, MSG_META_FINAL_OBJ_FREE mov ax, ds:[di].GI_visMoniker ; get moniker chunk tst ax jz afterMoniker call ObjFreeChunk afterMoniker: ; Finish up w/nuking the object itself mov ax, MSG_META_FINAL_OBJ_FREE GOTO GenCallMeta GenFinalObjFree endm COMMENT @---------------------------------------------------------------------- METHOD: GenAddGenChild DESCRIPTION: Add a child object to a composite WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_ADD_CHILD ^lcx:dx - object to add bp - flags for how to add child (CompChildFlags) mask CCF_MARK_DIRTY if we want to mark the links as dirty RETURN: nothing cx, dx - unchanged ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 2/89 Initial version ------------------------------------------------------------------------------@ GenAddGenChild method GenClass, MSG_GEN_ADD_CHILD uses cx, dx .enter EC < call CheckForCXDXNotUsable > call GenCheckIfSpecGrown ; If this object is NOT jc AddChild ; specifically grown ; (destroys nothing) ; Then unbuild the new branch ; that is being added, before ; adding it (It has already ; been determined that it ; is NOT USABLE, & therefore ; may be ungrown to ensure ; a consistent "grown" path) push si mov bx, cx mov si, dx call ObjSwapLock call GenSpecShrinkBranch ; Unbuild branch, to match ; (destroys nothing) call ObjSwapUnlock ; parent. This is almost pop si ; always what we want, as the next most ; likely thing to happen is a ; MSG_GEN_SET_USABLE, which will ; require it to be ungrown anyway. AddChild: mov ax, offset GI_link mov bx, offset Gen_offset mov di, offset GI_comp call ObjCompAddChild ; destroys ax, bx & di only mov bx, cx mov si, dx call ObjSwapLock mov di, ds:[si] ; point to instance add di, ds:[di].Gen_offset ; ds:[di] -- GenInstance test ds:[di].GI_attrs, mask GA_KBD_SEARCH_PATH jnz setPath ; search path set to here, continue up test ds:[di].GI_kbdAccelerator, mask KS_CHAR jz 10$ ; no keyboard accelerator, branch setPath: ; ; Clear any path bit on this object, so that the routine that sets ; path bits doesn't think it has gone as far as it needs to. ; (i.e. force MSG_GEN_SET_KBD_MKR_PATH handler to do what its ; supposed to) ; and ds:[di].GI_attrs, not mask GA_KBD_SEARCH_PATH mov ax, MSG_GEN_SET_KBD_MKR_PATH call ObjCallInstanceNoLock ; else set path bits upward 10$: call ObjSwapUnlock .leave ret GenAddGenChild endm COMMENT @---------------------------------------------------------------------- METHOD: MSG_GEN_ADD_CHILD_UPWARD_LINK_ONLY DESCRIPTION: Sets the parent link of the child to point to the parent. This is a "One way" link, in that the parent does not have the child anywhere amongst its children. NOTE: marks nothing dirty WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_ADD_CHILD_UPWARD_LINK_ONLY ^lcx:dx - object to add RETURN: nothing cx, dx - unchanged ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 2/89 Initial version ------------------------------------------------------------------------------@ method GenAddChildUpwardLinkOnly, GenClass, \ MSG_GEN_ADD_CHILD_UPWARD_LINK_ONLY COMMENT @---------------------------------------------------------------------- METHOD: MSG_GEN_GROW_PARENTS DESCRIPTION: Internal message to makes sure that this object's generic parent, & that obj's parent, all the way to the top, are specifically grown. This is required of the parents of any generic object before it itself may be specifically grown. The handlers use this requirement as well, to optimize the effort: If we run into one that is already grown, we may safely assume that they are grown all the way to the top. WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_GROW_PARENTS RETURN: nothing ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 6/92 Initial version ------------------------------------------------------------------------------@ method GenSpecGrowParents, GenClass, MSG_GEN_GROW_PARENTS COMMENT @---------------------------------------------------------------------- METHOD: GenSetKbdMkrPath DESCRIPTION: Sets the keyboard accelerator path for this object and parent objects. PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_SET_KBD_MKR_PATH RETURN: nothing bx, si, ds, es - unchanged for static handling ALLOWED_TO_DESTROY: ax, cx, dx, bp di REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/17/90 Initial version ------------------------------------------------------------------------------@ GenSetKbdMkrPath method GenClass, MSG_GEN_SET_KBD_MKR_PATH uses bx, si .enter mov di, ds:[si] ;point to instance add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance test ds:[di].GI_attrs, mask GA_KBD_SEARCH_PATH jnz exit ;kbd accelerator path set,branch or ds:[di].GI_attrs, mask GA_KBD_SEARCH_PATH mov di, ds:[si] ;point to instance mov di, ds:[di].MB_class.offset ;get this object's class cmp di, offset GenApplicationClass ;are we at the application? je exit ;yes, go no higher, exit call GenFindParent ;Set ^lbx:si = gen parent tst bx jz exit ;If NO vis parent, done call ObjTestIfObjBlockRunByCurThread je sameThread ;run by same thread, branch mov ax, MSG_GEN_SET_KBD_MKR_PATH ;else use obj message mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage jmp short exit sameThread: call ObjSwapLock ;get parent's instance data call GenSetKbdMkrPath ;call routine recursively call ObjSwapUnlock exit: .leave ret GenSetKbdMkrPath endm COMMENT @---------------------------------------------------------------------- METHOD: GenRemove DESCRIPTION: Remove a object from generic tree. This method is guaranteed NOT to force the specific building of any object. WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_REMOVE dl - VisUpdateMode bp - mask CCF_MARK_DIRTY if we want to mark the links as dirty RETURN: nothing ALLOWED_TO_DESTROY: ax, cx, dx, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 9/1/92 Initial version ------------------------------------------------------------------------------@ GenRemove method GenClass, MSG_GEN_REMOVE push bp ; save CCF_MARK_DIRTY mov ax, MSG_GEN_SET_NOT_USABLE call ObjCallInstanceNoLock pop bp ; restore CCF_MARK_DIRTY mov cx, ds:[LMBH_handle] mov dx, si mov ax, MSG_GEN_REMOVE_CHILD GOTO GenCallParent GenRemove endm COMMENT @---------------------------------------------------------------------- METHOD: GenRemoveGenChild DESCRIPTION: Remove a child object from a composite This method is guaranteed NOT to force the specific building of any object. WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_REMOVE_CHILD ^lcx:dx - object to remove bp - mask CCF_MARK_DIRTY if we want to mark the links as dirty RETURN: nothing cx, dx - unchanged ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 2/89 Initial version ------------------------------------------------------------------------------@ GenRemoveGenChild method GenClass, MSG_GEN_REMOVE_CHILD EC < call CheckForCXDXNotUsable > FALL_THRU GenRemoveGenChildLow GenRemoveGenChild endm GenRemoveGenChildLow proc far class GenClass mov ax, offset GI_link mov bx, offset Gen_offset mov di, offset GI_comp GOTO ObjCompRemoveChild GenRemoveGenChildLow endp COMMENT @---------------------------------------------------------------------- METHOD: GenBuild -- MSG_META_RESOLVE_VARIANT_SUPERCLASS for GenClass DESCRIPTION: Blow up if superclass requested -- GenClass isn't allowed to be used separately from other Gen* classes. PASS: *ds:si - instance data (for object in a GenXXXX class) es - segment of GenClass ax - MSG_META_RESOLVE_VARIANT_SUPERCLASS cx - master offset of variant class to build RETURN: cx:dx - class for specific UI part of object (cx = 0 for no build) ALLOWED TO DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 8/92 Initial version ------------------------------------------------------------------------------@ EC <GenBuild method GenClass, MSG_META_RESOLVE_VARIANT_SUPERCLASS EC < ERROR UI_GEN_CLASS_ILLEGALLY_USED EC <GenBuild endm Build ends BuildUncommon segment resource COMMENT @---------------------------------------------------------------------- METHOD: GenMoveGenChild DESCRIPTION: Move a child object in the composite, to reside in another location among its siblings This method is guaranteed NOT to force the specific building of any object. WHO CAN USE: Anyone PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_MOVE_CHILD ^lcx:dx - child to move bp - flags for how to move child (CompChildFlags) mask CCF_MARK_DIRTY if we want to mark the links as dirty RETURN: nothing cx, dx - unchanged ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 2/89 Initial version ------------------------------------------------------------------------------@ GenMoveGenChild method GenClass, MSG_GEN_MOVE_CHILD mov ax, offset GI_link mov bx, offset Gen_offset mov di, offset GI_comp GOTO ObjCompMoveChild GenMoveGenChild endm BuildUncommon ends Build segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: GenFindGenChild DESCRIPTION: Determine the position of a generic child of this object This method is guaranteed NOT to force the specific building of any object. CALLED BY: EXTERNAL PASS: *ds:si - instance data of composite ^lcx:dx - child RETURN: carry - set if NOT FOUND bp - child position (0 = first child, -1 if not found) ^lcx:dx - child preserved ALLOWED_TO_DESTROY: ax bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 6/89 Initial version Eric 12/89 Updated comments, copying from ObjCompFindChild Chris 5/10/93 Moved to Build resource, since used when app attaches to field. ------------------------------------------------------------------------------@ GenFindGenChild method GenClass, MSG_GEN_FIND_CHILD EC < tst cx > EC < ERROR_Z UI_GEN_FIND_CHILD_BAD_OD > EC < tst dx > EC < ERROR_Z UI_GEN_FIND_CHILD_BAD_OD > mov ax, offset GI_link mov bx, offset Gen_offset mov di, offset GI_comp call ObjCompFindChild jnc done ; if found, return child # mov bp, -1 ; else, signal not found done: Destroy ax ret GenFindGenChild endm COMMENT @---------------------------------------------------------------------- FUNCTION: GenFindGenChildAtPosition DESCRIPTION: Looks up a child's address, given its position in the tree. This method is guaranteed NOT to force the specific building of any object. CALLED BY: EXTERNAL PASS: *ds:si - instance data of composite cx = # of child to find RETURN: carry - set if NOT FOUND ^lcx:dx - child, or null if no child at that position ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 6/89 Initial version Eric 12/89 Updated comments, copying from ObjCompFindChild ------------------------------------------------------------------------------@ GenFindGenChildAtPosition method GenClass, MSG_GEN_FIND_CHILD_AT_POSITION mov dx, cx ; dx = child # clr cx ; use child # mov ax, offset GI_link mov bx, offset Gen_offset mov di, offset GI_comp call ObjCompFindChild jnc done ; if found, done mov cx, 0 ; else, signal not found mov dx, cx done: Destroy ax, bp ret GenFindGenChildAtPosition endm COMMENT @---------------------------------------------------------------------- FUNCTION: GenFindGenParent -- MSG_GEN_FIND_PARENT DESCRIPTION: Find the generic parent of this object. PASS: *ds:si = instance data for object RETURN: ^lcx:dx = parent ALLOWED_TO_DESTROY: ax, bp bx, si, di, ds, es PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 4/90 initial version ------------------------------------------------------------------------------@ GenFindGenParent method GenClass, MSG_GEN_FIND_PARENT push si call GenFindParent ;returns ^lbx:si = parent mov cx, bx mov dx, si pop si ret GenFindGenParent endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GenInitializeVarData %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handle VarData intializations for GenClass CALLED BY: MSG_META_INITIALIZE_VAR_DATA PASS: *ds:si = generic object cx = variable data type RETURN: ax = offset to extra data created DESTROYED: cx, dx, bp PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/ 8/92 Initial version doug 5/92 Moved base handler to genClass.asm %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GenInitializeVarData method dynamic GenClass, MSG_META_INITIALIZE_VAR_DATA cmp cx, ATTR_GEN_PATH_DATA je initGenPathData GOTO GenCallMeta initGenPathData: call GenPathInitPathData ret GenInitializeVarData endm COMMENT @---------------------------------------------------------------------- METHOD: GenCallMeta DESCRIPTION: Passes MetaClass methods OVER the specific & vis classes, so that they are not grown out. After all, we're trying to destroy this stuff! PASS: *ds:si - instance data es - segment of GenClass ax - MSG_META_BLOCK_FREE, MSG_META_OBJ_FREE, MSG_META_OBJ_FLUSH_INPUT_QUEUE, MSG_META_DETACH, MSG_META_DETACH_COMPLETE, MSG_META_GCN_LIST_SEND RETURN: nothing ALLOWED_TO_DESTROY: ax, cx, dx, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 1/90 Initial version ardeb 3/1/92 added MSG_META_DETACH to list of handled messages to emulate behaviour of SPUI (passing up to Meta) esp. w.r.t. GenActiveList objects (which perform an extra ObjIncDetach before calling their superclass with dx:bp = self). ------------------------------------------------------------------------------@ GenCallMeta method GenClass, MSG_META_BLOCK_FREE, MSG_META_OBJ_FREE, MSG_META_OBJ_FLUSH_INPUT_QUEUE, MSG_META_DETACH, MSG_META_DETACH_COMPLETE, MSG_META_WIN_DEC_REF_COUNT, MSG_META_GCN_LIST_SEND, MSG_META_ADD_VAR_DATA, MSG_META_SET_OBJ_BLOCK_OUTPUT, MSG_META_SET_FLAGS, MSG_META_GET_FLAGS call GenCheckIfSpecGrown jnc notGrown mov di, offset GenClass GOTO ObjCallSuperNoLock notGrown: mov bx, segment MetaClass mov es, bx mov di, offset MetaClass GOTO ObjCallClassNoLock GenCallMeta endm Build ends BuildUncommon segment resource COMMENT @---------------------------------------------------------------------- METHOD: GenFindViewRanges -- MSG_GEN_FIND_VIEW_RANGES for GenClass DESCRIPTION: Searches for view ranges. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_GEN_FIND_VIEW_RANGES cl -- RequestedViewArea, if any, so far, for horizontal range dx -- chunk handle of horizontal range, if any ch -- RequestedViewArea, if any, so far, for vertical range bp -- chunk handle of vertical range, if any RETURN: cl -- RequestedViewArea, update if horiz scrollbar found at or under this object dx -- chunk handle of horizontal range, if any ch -- RequestedViewArea, update if vertical scrollbar found at or under this object. bp -- chunk handle of vertical range, if any ax - destroyed DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: save old dx, old bp GenSendToChildren bl = GetRangeAreaHint if old (dx = 0) and (dx <> 0) and (cl = RVA_NO_AREA_CHOICE) cl = bl if old (bp = 0) and (bp <> 0) and (ch = RVA_NO_AREA_CHOICE) ch = bl KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/ 9/91 Initial version ------------------------------------------------------------------------------@ GenFindViewRanges method GenClass, MSG_GEN_FIND_VIEW_RANGES test ds:[di].GI_states, mask GS_USABLE jz exit ;we're not usable, don't ; look for scrollbars push bp push dx mov di, OCCT_DONT_SAVE_PARAMS_DONT_TEST_ABORT call GenCallCommonAX ;send to children, return args call GetUnambiguousViewAreaRequest ;bl <- any area hint pop di ;get old horiz scrollbar chunk tst di jnz 10$ ;wasn't zero, branch tst dx ;is it now? jz 10$ ;no, branch cmp cl, RVA_NO_AREA_CHOICE ;was an area choice made? jne 10$ ;yes, branch mov cl, bl ;else use our area choice 10$: pop di ;get old vert scrollbar chunk tst di jnz exit ;wasn't zero coming in, branch tst bp ;was a scrollbar found? jz exit ;yes, branch cmp ch, RVA_NO_AREA_CHOICE ;was an area choice made? jne exit ;yes, branch mov ch, bl ;else use positioning hint exit: ret GenFindViewRanges endm COMMENT @---------------------------------------------------------------------- ROUTINE: GetUnambiguousViewAreaRequest SYNOPSIS: Returns an unambiguous view area request. It it just wants to be with the x or y scroller, we'll return no request. This is used when figuring out where the scrollbars will go. CALLED BY: GenFindViewRanges, GenRangeFindViewRanges PASS: *ds:si -- object RETURN: bl -- RequestedViewArea: area choice for this object, or RVA_AREA_CHOICE if none DESTROYED: di, es, ax PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/10/91 Initial version ------------------------------------------------------------------------------@ GetUnambiguousViewAreaRequest proc far call GetViewAreaRequest ;look up hints cmp bl, RVA_X_SCROLLER_AREA ;is it ambiguous? je returnNoChoice ;yes, no choice made cmp bl, RVA_Y_SCROLLER_AREA jne exit returnNoChoice: mov bl, RVA_NO_AREA_CHOICE ;return no choice made exit: ret GetUnambiguousViewAreaRequest endp COMMENT @---------------------------------------------------------------------- METHOD: GenBranchReplaceParams DESCRIPTION: Simply passes method on to all children. Generic objects which know how will test for the replacement type, & if a match is found, will replace the specified type of instance data. PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_BRANCH_REPLACE_PARAMS dx - size BranchReplaceParams structure ss:bp - offset to BranchReplaceParams RETURN: nothing ALLOWED_TO_DESTROY: ax, cx, dx, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 1/90 Initial version ------------------------------------------------------------------------------@ GenBranchReplaceParams method GenClass, MSG_GEN_BRANCH_REPLACE_PARAMS call GenSendToChildren ; Send method on to all generic children ret GenBranchReplaceParams endm COMMENT @---------------------------------------------------------------------- METHOD: GenBranchReplaceOutputOptrConstant DESCRIPTION: This is simply a special case of MSG_GEN_BRANCH_REPLACE_PARAMS, where the param type is BRPT_OUTPUT_OPTR, & the search paramater optr.handle = 0. It simply maps into calling the more elaborate method, but is provided as a simpler interface to do a common action when building UI components from template .ui files. PASS: *ds:si - instance data es - segment of GenClass ax - MSG_GEN_BRANCH_REPLACE_OUTPUT_OPTR_CONSTANT cx:dx - optr to use to replace any optr's of action descriptors or output optr's, which match constant value below. bp - constant value to search for. (Chunk portion of an optr whose Handle portion is 0) RETURN: nothing ALLOWED_TO_DESTROY: ax, cx, dx, bp bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 1/90 Initial version ------------------------------------------------------------------------------@ GenBranchReplaceOutputOptrConstant method GenClass, \ MSG_GEN_BRANCH_REPLACE_OUTPUT_OPTR_CONSTANT mov bx, bp sub sp, size BranchReplaceParams ; Make room on stack for ; params mov bp, sp ; ss:[bp] points at params ; Search for ; optr = bp value passed mov ss:[bp].BRP_searchParam.handle, 0 mov ss:[bp].BRP_searchParam.chunk, bx mov ss:[bp].BRP_replaceParam.handle, cx ; Replace w/cx:dx mov ss:[bp].BRP_replaceParam.chunk, dx ; is real optr mov ss:[bp].BRP_type, BRPT_OUTPUT_OPTR mov ax, MSG_GEN_BRANCH_REPLACE_PARAMS mov dx, size BranchReplaceParams call ObjCallInstanceNoLock ; Do it! replace params! add sp, size BranchReplaceParams ; fix stack. ret GenBranchReplaceOutputOptrConstant endm BuildUncommon ends Build segment resource COMMENT @---------------------------------------------------------------------- ROUTINE: GetViewAreaRequest SYNOPSIS: Searches for range area hints. CALLED BY: GenFindViewRanges, GenRangeFindViewRanges PASS: *ds:si -- object RETURN: bl -- RequestedViewArea: area choice for this object, or RVA_AREA_CHOICE if none DESTROYED: di, es, ax PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/ 9/91 Initial version ------------------------------------------------------------------------------@ GetViewAreaRequest proc far push cx mov cl, RVA_NO_AREA_CHOICE ;assume no area choice here mov di, cs mov es, di mov di, offset cs:AreaHints mov ax, length (cs:AreaHints) call ObjVarScanData ;look for positioning hint mov bl, cl ;return in bl pop cx ret GetViewAreaRequest endp AreaHints VarDataHandler \ <HINT_SEEK_LEFT_OF_VIEW, offset ReturnAreaHint>, <HINT_SEEK_TOP_OF_VIEW, offset ReturnAreaHint>, <HINT_SEEK_RIGHT_OF_VIEW, offset ReturnAreaHint>, <HINT_SEEK_BOTTOM_OF_VIEW, offset ReturnAreaHint>, <HINT_SEEK_X_SCROLLER_AREA, offset ReturnAreaHint>, <HINT_SEEK_Y_SCROLLER_AREA, offset ReturnAreaHint> ReturnAreaHint proc far mov cx, ax ;return hint in cx sub cx, HINT_SEEK_LEFT_OF_VIEW shr cx, 1 shr cx, 1 add cx, RVA_LEFT_AREA ;convert to our enum ret ReturnAreaHint endp CheckHack <(HINT_SEEK_TOP_OF_VIEW - HINT_SEEK_LEFT_OF_VIEW)/4 eq \ (RVA_TOP_AREA - RVA_LEFT_AREA)> CheckHack <(HINT_SEEK_RIGHT_OF_VIEW - HINT_SEEK_LEFT_OF_VIEW)/4 eq \ (RVA_RIGHT_AREA - RVA_LEFT_AREA)> CheckHack <(HINT_SEEK_BOTTOM_OF_VIEW - HINT_SEEK_LEFT_OF_VIEW)/4 eq \ (RVA_BOTTOM_AREA - RVA_LEFT_AREA)> CheckHack <(HINT_SEEK_X_SCROLLER_AREA - HINT_SEEK_LEFT_OF_VIEW)/4 eq \ (RVA_X_SCROLLER_AREA - RVA_LEFT_AREA)> CheckHack <(HINT_SEEK_Y_SCROLLER_AREA - HINT_SEEK_LEFT_OF_VIEW)/4 eq \ (RVA_Y_SCROLLER_AREA - RVA_LEFT_AREA)> COMMENT @---------------------------------------------------------------------- METHOD: GenQueryViewArea -- MSG_GEN_QUERY_VIEW_AREA for GenClass DESCRIPTION: Returns any preference for where to be put under a GenView. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_GEN_QUERY_VIEW_AREA cl - RequestedViewArea: area request already made by a sibling, possibly RETURN: cl - RequestedViewArea: area request, if any DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 4/10/91 Initial version ------------------------------------------------------------------------------@ GenQueryViewArea method GenClass, MSG_GEN_QUERY_VIEW_AREA cmp cl, RVA_NO_AREA_CHOICE ;any choice made yet? jne exit ;yes, don't bother looking push ax call GetViewAreaRequest ;look for any area hints pop ax mov cl, bl ;keep in cl cmp bl, RVA_NO_AREA_CHOICE ;any choice made here? jne exit ;yes, exit mov di, OCCT_DONT_SAVE_PARAMS_DONT_TEST_ABORT call GenCallCommonAX ;else look for something in ; the children exit: ret GenQueryViewArea endm Build ends
base/rtl6502_raw.asm
zbyti/Mad-Pascal
1
247803
opt l- /* ----------------------------------------------------------------------- /* CPU 6502 Run Time Library - RAW /* 19.04.2018 /* ----------------------------------------------------------------------- /* 16.03.2019 poprawka dla @printPCHAR, @printSTRING gdy [YA] = 0 /* 29.02.2020 optymalizacja @printREAL, pozbycie sie /* 'jsr mov_BYTE_DX', 'jsr mov_WORD_DX', 'jsr mov_CARD_DX' /* 07.04.2020 negSHORT, @TRUNC_SHORT, @ROUND_SHORT, @FRAC_SHORT, @INT_SHORT /* 19.04.2020 nowe podkatalogi base\atari, base\common, base\runtime /* 10.01.2021 c4plus /* ----------------------------------------------------------------------- @AllocMem @FreeMem */ MAXSIZE = 4 EOL = $0D @buf = $0200 ; lo addr = 0 !!! fracpart = eax ; ----------------------------------------------------------------------- .enum e@file eof = 1, open, assign .ende .struct s@file pfname .word ; pointer to string with filename record .word ; record size chanel .byte ; channel *$10 status .byte ; status bit 0..7 buffer .word ; load/write buffer nrecord .word ; number of records for load/write numread .word ; pointer to variable, length of loaded data .ends ; ----------------------------------------------------------------------- icl 'runtime\trunc.asm' ; @TRUNC, @TRUNC_SHORT icl 'runtime\round.asm' ; @ROUND, @ROUND_SHORT icl 'runtime\frac.asm' ; @FRAC, @FRAC_SHORT icl 'runtime\int.asm' ; @INT, @INT_SHORT icl 'runtime\icmp.asm' ; cmpSHORTINT, cmpSMALLINT, cmpINT icl 'runtime\lcmp.asm' ; cmpEAX_ECX icl 'runtime\add.asm' ; addAL_CL, addAX_CX, addEAX_ECX icl 'runtime\sub.asm' ; subAL_CL, subAX_CX, subEAX_ECX icl 'runtime\shl.asm' ; shlEAX_CL.BYTE, shlEAX_CL.WORD, shlEAX_CL.CARD icl 'runtime\shr.asm' ; shrAL_CL, shrAX_CL, shrEAX_CL icl 'runtime\not.asm' ; notaBX, notBOOLEAN icl 'runtime\neg.asm' ; negBYTE, negWORD, negCARD, negBYTE1, negWORD1, negCARD1 ; negEDX, negSHORT icl 'runtime\or.asm' ; orAL_CL, orAX_CX, or_EAX_ECX icl 'runtime\xor.asm' ; xorAL_CL, xorAX_CX, xor_EAX_ECX icl 'runtime\and.asm' ; andAL_CL, andAX_CX, and_EAX_ECX icl 'runtime\expand.asm' ; @xpandSHORT2SMALL, @expandSHORT2SMALL1 ; @expandToCARD.SHORT, @expandToCARD.SMALL, @expandToCARD.BYTE, @expandToCARD.WORD ; @expandToCARD1.SHORT, @expandToCARD1.SMALL, @expandToCARD1.BYTE, @expandToCARD1.WORD icl 'runtime\ini.asm' ; iniEAX_ECX_WORD, iniEAX_ECX_CARD icl 'runtime\mov.asm' ; movBX_EAX, movZTMP_aBX icl 'runtime\hi.asm' ; hiBYTE, hiWORD, hiCARD ; ----------------------------------------------------------------------- icl 'common\cmpstr.asm' ; cmpSTRING2CHAR, cmpCHAR2STRING, cmpSTRING icl 'common\memmove.asm' ; @move, @moveu icl 'common\memset.asm' ; @fill icl 'common\shortint.asm' ; mul / div -> SHORTINT icl 'common\smallint.asm' ; mul / div -> SMALLINT icl 'common\integer.asm' ; mul / div -> INTEGER icl 'common\byte.asm' ; mul / div -> BYTE icl 'common\word.asm' ; mul / div -> WORD icl 'common\cardinal.asm' ; mul / div -> CARDINAL icl 'common\shortreal.asm'; mul / div -> SHORTREAL Q8.8 icl 'common\real.asm' ; mul / div -> REAL Q24.8 icl 'common\single.asm' ; mul / div -> SINGLE IEEE-754 icl 'common\mul40.asm' ; @mul40 icl 'common\mul64.asm' ; @mul64 icl 'common\mul96.asm' ; @mul96 icl 'common\mul320.asm' ; @mul320 ; ----------------------------------------------------------------------- opt l+
src/clic-subcommand.ads
reznikmm/clic
0
16704
<reponame>reznikmm/clic<gh_stars>0 with AAA.Strings; with GNAT.Strings; with GNAT.Command_Line; private with Ada.Strings.Unbounded; private with Ada.Containers.Vectors; package CLIC.Subcommand is -- This root package defines the interface types to be used in the -- Subcommand. See CLIC.Subcommand.Instance to create the parser/executor. type Switches_Configuration is limited private; -- This is a wrapper around GNAT.Command_Line.Command_Line_Configuration -- to provide extra features such as duplicate switch detection and custom -- usage format. The "Define_Switch" procedure below work exactly like the -- GNAT.Command_Line ones. procedure Define_Switch (Config : in out Switches_Configuration; Switch : String := ""; Long_Switch : String := ""; Help : String := ""; Section : String := ""; Argument : String := "ARG"); procedure Define_Switch (Config : in out Switches_Configuration; Output : access Boolean; Switch : String := ""; Long_Switch : String := ""; Help : String := ""; Section : String := ""; Value : Boolean := True); procedure Define_Switch (Config : in out Switches_Configuration; Output : access Integer; Switch : String := ""; Long_Switch : String := ""; Help : String := ""; Section : String := ""; Initial : Integer := 0; Default : Integer := 1; Argument : String := "ARG"); procedure Define_Switch (Config : in out Switches_Configuration; Output : access GNAT.Strings.String_Access; Switch : String := ""; Long_Switch : String := ""; Help : String := ""; Section : String := ""; Argument : String := "ARG"); procedure Define_Switch (Config : in out Switches_Configuration; Callback : not null GNAT.Command_Line.Value_Callback; Switch : String := ""; Long_Switch : String := ""; Help : String := ""; Section : String := ""; Argument : String := "ARG"); subtype Identifier is String with Predicate => (for all C of Identifier => C in 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '-' | '.' | '_'); ------------- -- Command -- ------------- type Command is limited interface; -- This type encapsulates configuration and execution of a specific -- command. It also has help-related subprograms. type Command_Access is access all Command'Class; function Name (Cmd : Command) return Identifier is abstract; -- Commands must override this procedure to provide the sub-command name. -- This name is used to identify the sub-command in usage and command line. -- E.g. "my_app <name>" will exectute the <name> command. procedure Execute (Cmd : in out Command; Args : AAA.Strings.Vector) is abstract; -- Commands must override this procedure to provide the command -- functionality. function Long_Description (Cmd : Command) return AAA.Strings.Vector is abstract; -- Return a detailed description of the command. Each string in the vector -- is a paragraph that will be reformatted into appropriate length lines. procedure Setup_Switches (Cmd : in out Command; Config : in out Switches_Configuration) is null; -- Gets called once the command has been identified, but before the call to -- Execute. Config must be set up with the switches used by the command. function Short_Description (Cmd : Command) return String is abstract; -- One-liner displayed in the list of commands that alr understands that -- gets shown when no command or unknown command is given. Also shown as -- SUMMARY in the help of a specific command. function Usage_Custom_Parameters (Cmd : Command) return String is abstract; -- The part after "<main> [global options] command [command options] " that -- gets shown in USAGE in the command help summary. That is, it is the -- specific command-line part that is not managed via Gnat.Command_Line ----------------- -- Help_Topic -- ----------------- type Help_Topic is limited interface; -- This type encapsulate the content of an "help topic", i.e. a piece of -- documentation that can displayed from the command line. type Help_Topic_Access is access all Help_Topic'Class; function Name (This : Help_Topic) return Identifier is abstract; -- This name is used to identify the topic in usage and command line. -- E.g. "my_app help <name>" will display the content of the <name> topic. function Title (This : Help_Topic) return String is abstract; -- Descriptive title for the topic content. Unlike the Name, the Title can -- containt whitespaces. function Content (This : Help_Topic) return AAA.Strings.Vector is abstract; -- Return the content of the help topic. Each string in the vector is a -- paragraph that will be reformatted into appropriate length lines. ----------- -- Utils -- ----------- function No_TTY (Str : String) return String is (Str); -- Use this function for the TTY_* generic parameters of -- CLIC.Subcommand.Instance if you don't want or need TTY formating. private type Switch_Info is record Switch : Ada.Strings.Unbounded.Unbounded_String; Long_Switch : Ada.Strings.Unbounded.Unbounded_String; Help : Ada.Strings.Unbounded.Unbounded_String; Argument : Ada.Strings.Unbounded.Unbounded_String; end record; -- Used internaly to store informations about the switches package Switch_Info_Vectors is new Ada.Containers.Vectors (Natural, Switch_Info); procedure Add (Vect : in out Switch_Info_Vectors.Vector; Switch, Long_Switch, Help, Argument : String); type Switches_Configuration is limited record GNAT_Cfg : GNAT.Command_Line.Command_Line_Configuration; -- Still use GNAT.Command_Line to do the actual parsing Info : Switch_Info_Vectors.Vector; end record; function Verify_No_Duplicates (A, B : Switches_Configuration) return Boolean; -- Returns True if there are no duplicates. -- Check that no switch is given twice in Config. This is used to ensure -- that command switches are not stepping on global switches, which would -- lead to some undefined behavior. This manual check is necessary because -- the GNAT library does not perform it. end CLIC.Subcommand;
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_1182.asm
ljhsiun2/medusa
9
25703
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x11f7c, %rsi lea addresses_D_ht+0xb7fc, %rdi nop nop xor %r9, %r9 mov $126, %rcx rep movsb nop dec %r14 lea addresses_WT_ht+0x150c, %rcx clflush (%rcx) sub %r11, %r11 vmovups (%rcx), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %r9 nop nop nop nop nop inc %r14 lea addresses_WC_ht+0x2284, %rsi lea addresses_UC_ht+0x15730, %rdi nop dec %r10 mov $95, %rcx rep movsb cmp %rdi, %rdi lea addresses_normal_ht+0x365c, %r11 nop dec %r10 movb (%r11), %r9b nop nop nop nop nop inc %rsi lea addresses_A_ht+0x58c, %rsi lea addresses_A_ht+0x103e8, %rdi nop sub %r11, %r11 mov $127, %rcx rep movsl nop cmp %r11, %r11 lea addresses_WC_ht+0x2b7c, %r11 nop nop nop xor %rsi, %rsi mov (%r11), %rcx nop nop nop xor %r9, %r9 lea addresses_A_ht+0xe37c, %rsi nop nop nop cmp $42750, %rcx vmovups (%rsi), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $0, %xmm3, %r9 nop nop nop nop and %rsi, %rsi lea addresses_D_ht+0x4ff2, %rsi lea addresses_WC_ht+0x58dc, %rdi nop and %rbx, %rbx mov $53, %rcx rep movsw nop nop nop mfence pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %rbp push %rbx push %rdi push %rdx push %rsi // Store lea addresses_RW+0x1ef7c, %rbp nop add %r15, %r15 mov $0x5152535455565758, %rdi movq %rdi, %xmm4 movups %xmm4, (%rbp) nop nop nop nop and %rdi, %rdi // Faulty Load lea addresses_RW+0x1ef7c, %rdx nop nop nop add $60964, %rsi mov (%rdx), %r15w lea oracles, %rbp and $0xff, %r15 shlq $12, %r15 mov (%rbp,%r15,1), %r15 pop %rsi pop %rdx pop %rdi pop %rbx pop %rbp pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 0, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
libsrc/_DEVELOPMENT/sound/bit/c/sccz80/bit_beep_raw_callee.asm
meesokim/z88dk
0
3928
; void bit_beep_raw_callee(uint16_t num_cycles, uint16_t tone_period_T) SECTION code_sound_bit PUBLIC bit_beep_raw_callee EXTERN asm_bit_beep_raw bit_beep_raw_callee: pop af pop hl pop de push af jp asm_bit_beep_raw
sdk-6.5.20/tools/led/example/bcm953547k.asm
copslock/broadcom_cpri
0
17617
; ; $Id: bcm953547k.asm, v 1.0 2017/08/17 15:30:14 leonlee Exp $ ; ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. ; ; Copyright 2007-2020 Broadcom Inc. All rights reserved. ; ; This example is used for showing the serial EGPHY LEDs on ; BCM953547K. ; ; To start it, use the following commands from BCM: ; ; led load bcm953547k.hex ; led auto on ; led start ; ; Each port needs to output 2 bits stream, ; bit 0: LED_0 ; bit 1: LED_1 ; ; Totally 24 ports need be outputed, i.e. 48 (= 24 * 2) bits. ; The output sequence for EGPHY will follow the user port sequence. ; ; The LED sequence is (User Port, Front Panel Order) ; 2, 3, ... 25 ; Mapping onto physical port view, the sequence is: ; 13, 12, ..., 2, 18, 19, ..., 29 ; The output order should be the inverted sequence of the physical ; mapping view ; 29, 28, ..., 18, 2, 3, ..., 13 ; ; Link up/down info cannot be derived from LINKEN, as the LED ; processor does not always have access to link status. This program ; assumes link status is kept current in bit 0 of RAM byte (0xA0 + portnum). ; Generally, a program running on the main CPU must update these ; locations on link change; see linkscan callback in ; $SDK/src/appl/diag/ledproc.c. ; ; ; Constants ; NUM_PORTS equ 24 ;START_PORT_0 equ 13 ;END_PORT_0 equ 2 ;START_PORT_1 equ 18 ;END_PORT_1 equ 29 START_PORT_0 equ 29 END_PORT_0 equ 18 START_PORT_1 equ 2 END_PORT_1 equ 13 ; ; LED process ; start_sec0: ld a, START_PORT_0 iter_sec0: port a ld (PORT_NUM), a call get_activity_hw ld a, (PORT_NUM) port a call get_link_hw ld a, (PORT_NUM) dec a cmp a, END_PORT_0 - 1 jnz iter_sec0 start_sec1: ld a, START_PORT_1 iter_sec1: port a ld (PORT_NUM), a call get_activity_hw ld a, (PORT_NUM) port a call get_link_hw ld a, (PORT_NUM) inc a cmp a, END_PORT_1 + 1 jnz iter_sec1 end: send 2*NUM_PORTS ; ; get_link_hw ; ; This routine finds the link status LED for a port from HW. ; Inputs: (PORT_NUM) ; Outputs: Carry flag set if link is up, clear if link is down. ; Destroys: a, b get_link_hw: pushst LINKEN pop jc led_on jmp led_off ; ; get_activity_hw ; ; This routine finds the link status LED for a port from HW. ; Inputs: (PORT_NUM) ; Outputs: Carry flag set if RX or TX is up, clear if link is down. ; Destroys: a, b get_activity_hw: pushst RX pushst TX tor pop jc led_on jmp led_off ; ; led_on ; ; Outputs: Bits to the LED stream indicating ON ; led_on: push 0 pack ret ; ; led_off ; ; Outputs: Bits to the LED stream indicating OFF ; led_off: push 1 pack ret ; Variables (SDK software initializes LED memory from 0xA0-0xff to 0) PORTDATA equ 0xA0 PORT_NUM equ 0xE0 ; Symbolic names for the bits of the port status fields RX equ 0x0 ; received packet TX equ 0x1 ; transmitted packet COLL equ 0x2 ; collision indicator SPEED_C equ 0x3 ; 100 Mbps SPEED_M equ 0x4 ; 1000 Mbps DUPLEX equ 0x5 ; half/full duplex FLOW equ 0x6 ; flow control capable LINKUP equ 0x7 ; link down/up status LINKEN equ 0x8 ; link disabled/enabled status ZERO equ 0xE ; always 0 ONE equ 0xF ; always 1
programs/oeis/280/A280512.asm
jmorken/loda
1
14875
<filename>programs/oeis/280/A280512.asm ; A280512: Index sequence of the Thue-Morse sequence (A010060, using offset 1) as a reverse block-fractal sequence. ; 1,3,2,1,12,11,10,9,8,7,6,5,4,3,2,1,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,192,191,190,189,188 mov $1,1 mov $2,$0 add $2,1 lpb $0 div $0,4 mul $1,4 lpe sub $1,$2 add $1,1
oeis/014/A014413.asm
neoneye/loda-programs
11
175263
<filename>oeis/014/A014413.asm ; A014413: Triangular array formed from elements to right of middle of Pascal's triangle. ; Submitted by <NAME> ; 1,1,3,1,4,1,10,5,1,15,6,1,35,21,7,1,56,28,8,1,126,84,36,9,1,210,120,45,10,1,462,330,165,55,11,1,792,495,220,66,12,1,1716,1287,715,286,78,13,1,3003,2002,1001,364,91,14,1,6435,5005,3003,1365,455,105,15,1,11440,8008,4368,1820,560,120,16,1,24310,19448,12376,6188,2380,680,136,17,1,43758,31824,18564,8568,3060,816,153,18,1,92378,75582,50388,27132,11628,3876,969,171,19,1 lpb $0 add $1,$2 sub $0,$1 cmp $2,0 sub $0,$2 lpe add $2,$1 add $2,1 add $0,$2 add $1,$2 bin $1,$0 mov $0,$1
Debug/gpio.asm
polamagdygeo/uWave
0
19807
;****************************************************************************** ;* TI ARM C/C++ Codegen Unix v18.1.1.LTS * ;* Date/Time created: Fri Jul 3 20:08:24 2020 * ;****************************************************************************** .compiler_opts --abi=eabi --arm_vmrs_si_workaround=off --code_state=16 --diag_wrap=off --embedded_constants=on --endian=little --float_support=FPv4SPD16 --hll_source=on --object_format=elf --silicon_version=7M4 --symdebug:dwarf --symdebug:dwarf_version=3 --unaligned_access=on .thumb $C$DW$CU .dwtag DW_TAG_compile_unit .dwattr $C$DW$CU, DW_AT_name("../driverlib/gpio.c") .dwattr $C$DW$CU, DW_AT_producer("TI TI ARM C/C++ Codegen Unix v18.1.1.LTS Copyright (c) 1996-2017 Texas Instruments Incorporated") .dwattr $C$DW$CU, DW_AT_TI_version(0x01) .dwattr $C$DW$CU, DW_AT_comp_dir("/home/pola/workspace_v8/Microwave/Debug") .sect ".const:g_ppui32GPIOIntMapBlizzard" .clink .align 4 .elfsym g_ppui32GPIOIntMapBlizzard,SYM_SIZE(192) g_ppui32GPIOIntMapBlizzard: .bits 1073758208,32 ; g_ppui32GPIOIntMapBlizzard[0][0] @ 0 .bits 16,32 ; g_ppui32GPIOIntMapBlizzard[0][1] @ 32 .bits 1074102272,32 ; g_ppui32GPIOIntMapBlizzard[1][0] @ 64 .bits 16,32 ; g_ppui32GPIOIntMapBlizzard[1][1] @ 96 .bits 1073762304,32 ; g_ppui32GPIOIntMapBlizzard[2][0] @ 128 .bits 17,32 ; g_ppui32GPIOIntMapBlizzard[2][1] @ 160 .bits 1074106368,32 ; g_ppui32GPIOIntMapBlizzard[3][0] @ 192 .bits 17,32 ; g_ppui32GPIOIntMapBlizzard[3][1] @ 224 .bits 1073766400,32 ; g_ppui32GPIOIntMapBlizzard[4][0] @ 256 .bits 18,32 ; g_ppui32GPIOIntMapBlizzard[4][1] @ 288 .bits 1074110464,32 ; g_ppui32GPIOIntMapBlizzard[5][0] @ 320 .bits 18,32 ; g_ppui32GPIOIntMapBlizzard[5][1] @ 352 .bits 1073770496,32 ; g_ppui32GPIOIntMapBlizzard[6][0] @ 384 .bits 19,32 ; g_ppui32GPIOIntMapBlizzard[6][1] @ 416 .bits 1074114560,32 ; g_ppui32GPIOIntMapBlizzard[7][0] @ 448 .bits 19,32 ; g_ppui32GPIOIntMapBlizzard[7][1] @ 480 .bits 1073889280,32 ; g_ppui32GPIOIntMapBlizzard[8][0] @ 512 .bits 20,32 ; g_ppui32GPIOIntMapBlizzard[8][1] @ 544 .bits 1074118656,32 ; g_ppui32GPIOIntMapBlizzard[9][0] @ 576 .bits 20,32 ; g_ppui32GPIOIntMapBlizzard[9][1] @ 608 .bits 1073893376,32 ; g_ppui32GPIOIntMapBlizzard[10][0] @ 640 .bits 46,32 ; g_ppui32GPIOIntMapBlizzard[10][1] @ 672 .bits 1074122752,32 ; g_ppui32GPIOIntMapBlizzard[11][0] @ 704 .bits 46,32 ; g_ppui32GPIOIntMapBlizzard[11][1] @ 736 .bits 1073897472,32 ; g_ppui32GPIOIntMapBlizzard[12][0] @ 768 .bits 47,32 ; g_ppui32GPIOIntMapBlizzard[12][1] @ 800 .bits 1074126848,32 ; g_ppui32GPIOIntMapBlizzard[13][0] @ 832 .bits 47,32 ; g_ppui32GPIOIntMapBlizzard[13][1] @ 864 .bits 1073901568,32 ; g_ppui32GPIOIntMapBlizzard[14][0] @ 896 .bits 48,32 ; g_ppui32GPIOIntMapBlizzard[14][1] @ 928 .bits 1074130944,32 ; g_ppui32GPIOIntMapBlizzard[15][0] @ 960 .bits 48,32 ; g_ppui32GPIOIntMapBlizzard[15][1] @ 992 .bits 1073991680,32 ; g_ppui32GPIOIntMapBlizzard[16][0] @ 1024 .bits 70,32 ; g_ppui32GPIOIntMapBlizzard[16][1] @ 1056 .bits 1074135040,32 ; g_ppui32GPIOIntMapBlizzard[17][0] @ 1088 .bits 70,32 ; g_ppui32GPIOIntMapBlizzard[17][1] @ 1120 .bits 1074139136,32 ; g_ppui32GPIOIntMapBlizzard[18][0] @ 1152 .bits 71,32 ; g_ppui32GPIOIntMapBlizzard[18][1] @ 1184 .bits 1074143232,32 ; g_ppui32GPIOIntMapBlizzard[19][0] @ 1216 .bits 72,32 ; g_ppui32GPIOIntMapBlizzard[19][1] @ 1248 .bits 1074147328,32 ; g_ppui32GPIOIntMapBlizzard[20][0] @ 1280 .bits 127,32 ; g_ppui32GPIOIntMapBlizzard[20][1] @ 1312 .bits 1074151424,32 ; g_ppui32GPIOIntMapBlizzard[21][0] @ 1344 .bits 128,32 ; g_ppui32GPIOIntMapBlizzard[21][1] @ 1376 .bits 1074155520,32 ; g_ppui32GPIOIntMapBlizzard[22][0] @ 1408 .bits 132,32 ; g_ppui32GPIOIntMapBlizzard[22][1] @ 1440 .bits 1074159616,32 ; g_ppui32GPIOIntMapBlizzard[23][0] @ 1472 .bits 140,32 ; g_ppui32GPIOIntMapBlizzard[23][1] @ 1504 $C$DW$1 .dwtag DW_TAG_variable .dwattr $C$DW$1, DW_AT_name("g_ppui32GPIOIntMapBlizzard") .dwattr $C$DW$1, DW_AT_TI_symbol_name("g_ppui32GPIOIntMapBlizzard") .dwattr $C$DW$1, DW_AT_type(*$C$DW$T$126) .dwattr $C$DW$1, DW_AT_location[DW_OP_addr g_ppui32GPIOIntMapBlizzard] .dwattr $C$DW$1, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$1, DW_AT_decl_line(0x3f) .dwattr $C$DW$1, DW_AT_decl_column(0x17) .sect ".const:g_ppui32GPIOIntMapSnowflake" .clink .align 4 .elfsym g_ppui32GPIOIntMapSnowflake,SYM_SIZE(216) g_ppui32GPIOIntMapSnowflake: .bits 1073758208,32 ; g_ppui32GPIOIntMapSnowflake[0][0] @ 0 .bits 16,32 ; g_ppui32GPIOIntMapSnowflake[0][1] @ 32 .bits 1074102272,32 ; g_ppui32GPIOIntMapSnowflake[1][0] @ 64 .bits 16,32 ; g_ppui32GPIOIntMapSnowflake[1][1] @ 96 .bits 1073762304,32 ; g_ppui32GPIOIntMapSnowflake[2][0] @ 128 .bits 17,32 ; g_ppui32GPIOIntMapSnowflake[2][1] @ 160 .bits 1074106368,32 ; g_ppui32GPIOIntMapSnowflake[3][0] @ 192 .bits 17,32 ; g_ppui32GPIOIntMapSnowflake[3][1] @ 224 .bits 1073766400,32 ; g_ppui32GPIOIntMapSnowflake[4][0] @ 256 .bits 18,32 ; g_ppui32GPIOIntMapSnowflake[4][1] @ 288 .bits 1074110464,32 ; g_ppui32GPIOIntMapSnowflake[5][0] @ 320 .bits 18,32 ; g_ppui32GPIOIntMapSnowflake[5][1] @ 352 .bits 1073770496,32 ; g_ppui32GPIOIntMapSnowflake[6][0] @ 384 .bits 19,32 ; g_ppui32GPIOIntMapSnowflake[6][1] @ 416 .bits 1074114560,32 ; g_ppui32GPIOIntMapSnowflake[7][0] @ 448 .bits 19,32 ; g_ppui32GPIOIntMapSnowflake[7][1] @ 480 .bits 1073889280,32 ; g_ppui32GPIOIntMapSnowflake[8][0] @ 512 .bits 20,32 ; g_ppui32GPIOIntMapSnowflake[8][1] @ 544 .bits 1074118656,32 ; g_ppui32GPIOIntMapSnowflake[9][0] @ 576 .bits 20,32 ; g_ppui32GPIOIntMapSnowflake[9][1] @ 608 .bits 1073893376,32 ; g_ppui32GPIOIntMapSnowflake[10][0] @ 640 .bits 46,32 ; g_ppui32GPIOIntMapSnowflake[10][1] @ 672 .bits 1074122752,32 ; g_ppui32GPIOIntMapSnowflake[11][0] @ 704 .bits 46,32 ; g_ppui32GPIOIntMapSnowflake[11][1] @ 736 .bits 1073897472,32 ; g_ppui32GPIOIntMapSnowflake[12][0] @ 768 .bits 47,32 ; g_ppui32GPIOIntMapSnowflake[12][1] @ 800 .bits 1074126848,32 ; g_ppui32GPIOIntMapSnowflake[13][0] @ 832 .bits 47,32 ; g_ppui32GPIOIntMapSnowflake[13][1] @ 864 .bits 1073901568,32 ; g_ppui32GPIOIntMapSnowflake[14][0] @ 896 .bits 48,32 ; g_ppui32GPIOIntMapSnowflake[14][1] @ 928 .bits 1074130944,32 ; g_ppui32GPIOIntMapSnowflake[15][0] @ 960 .bits 48,32 ; g_ppui32GPIOIntMapSnowflake[15][1] @ 992 .bits 1073991680,32 ; g_ppui32GPIOIntMapSnowflake[16][0] @ 1024 .bits 67,32 ; g_ppui32GPIOIntMapSnowflake[16][1] @ 1056 .bits 1074135040,32 ; g_ppui32GPIOIntMapSnowflake[17][0] @ 1088 .bits 67,32 ; g_ppui32GPIOIntMapSnowflake[17][1] @ 1120 .bits 1074139136,32 ; g_ppui32GPIOIntMapSnowflake[18][0] @ 1152 .bits 68,32 ; g_ppui32GPIOIntMapSnowflake[18][1] @ 1184 .bits 1074143232,32 ; g_ppui32GPIOIntMapSnowflake[19][0] @ 1216 .bits 69,32 ; g_ppui32GPIOIntMapSnowflake[19][1] @ 1248 .bits 1074147328,32 ; g_ppui32GPIOIntMapSnowflake[20][0] @ 1280 .bits 88,32 ; g_ppui32GPIOIntMapSnowflake[20][1] @ 1312 .bits 1074151424,32 ; g_ppui32GPIOIntMapSnowflake[21][0] @ 1344 .bits 89,32 ; g_ppui32GPIOIntMapSnowflake[21][1] @ 1376 .bits 1074155520,32 ; g_ppui32GPIOIntMapSnowflake[22][0] @ 1408 .bits 92,32 ; g_ppui32GPIOIntMapSnowflake[22][1] @ 1440 .bits 1074159616,32 ; g_ppui32GPIOIntMapSnowflake[23][0] @ 1472 .bits 100,32 ; g_ppui32GPIOIntMapSnowflake[23][1] @ 1504 .bits 1074163712,32 ; g_ppui32GPIOIntMapSnowflake[24][0] @ 1536 .bits 108,32 ; g_ppui32GPIOIntMapSnowflake[24][1] @ 1568 .bits 1074167808,32 ; g_ppui32GPIOIntMapSnowflake[25][0] @ 1600 .bits 109,32 ; g_ppui32GPIOIntMapSnowflake[25][1] @ 1632 .bits 1074171904,32 ; g_ppui32GPIOIntMapSnowflake[26][0] @ 1664 .bits 127,32 ; g_ppui32GPIOIntMapSnowflake[26][1] @ 1696 $C$DW$2 .dwtag DW_TAG_variable .dwattr $C$DW$2, DW_AT_name("g_ppui32GPIOIntMapSnowflake") .dwattr $C$DW$2, DW_AT_TI_symbol_name("g_ppui32GPIOIntMapSnowflake") .dwattr $C$DW$2, DW_AT_type(*$C$DW$T$127) .dwattr $C$DW$2, DW_AT_location[DW_OP_addr g_ppui32GPIOIntMapSnowflake] .dwattr $C$DW$2, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$2, DW_AT_decl_line(0x5d) .dwattr $C$DW$2, DW_AT_decl_column(0x17) .sect ".const:g_pui32GPIOBaseAddrs" .clink .align 4 .elfsym g_pui32GPIOBaseAddrs,SYM_SIZE(144) g_pui32GPIOBaseAddrs: .bits 1073758208,32 ; g_pui32GPIOBaseAddrs[0] @ 0 .bits 1074102272,32 ; g_pui32GPIOBaseAddrs[1] @ 32 .bits 1073762304,32 ; g_pui32GPIOBaseAddrs[2] @ 64 .bits 1074106368,32 ; g_pui32GPIOBaseAddrs[3] @ 96 .bits 1073766400,32 ; g_pui32GPIOBaseAddrs[4] @ 128 .bits 1074110464,32 ; g_pui32GPIOBaseAddrs[5] @ 160 .bits 1073770496,32 ; g_pui32GPIOBaseAddrs[6] @ 192 .bits 1074114560,32 ; g_pui32GPIOBaseAddrs[7] @ 224 .bits 1073889280,32 ; g_pui32GPIOBaseAddrs[8] @ 256 .bits 1074118656,32 ; g_pui32GPIOBaseAddrs[9] @ 288 .bits 1073893376,32 ; g_pui32GPIOBaseAddrs[10] @ 320 .bits 1074122752,32 ; g_pui32GPIOBaseAddrs[11] @ 352 .bits 1073897472,32 ; g_pui32GPIOBaseAddrs[12] @ 384 .bits 1074126848,32 ; g_pui32GPIOBaseAddrs[13] @ 416 .bits 1073901568,32 ; g_pui32GPIOBaseAddrs[14] @ 448 .bits 1074130944,32 ; g_pui32GPIOBaseAddrs[15] @ 480 .bits 1073991680,32 ; g_pui32GPIOBaseAddrs[16] @ 512 .bits 1074135040,32 ; g_pui32GPIOBaseAddrs[17] @ 544 .bits 1074139136,32 ; g_pui32GPIOBaseAddrs[18] @ 576 .bits 1074139136,32 ; g_pui32GPIOBaseAddrs[19] @ 608 .bits 1074143232,32 ; g_pui32GPIOBaseAddrs[20] @ 640 .bits 1074143232,32 ; g_pui32GPIOBaseAddrs[21] @ 672 .bits 1074147328,32 ; g_pui32GPIOBaseAddrs[22] @ 704 .bits 1074147328,32 ; g_pui32GPIOBaseAddrs[23] @ 736 .bits 1074151424,32 ; g_pui32GPIOBaseAddrs[24] @ 768 .bits 1074151424,32 ; g_pui32GPIOBaseAddrs[25] @ 800 .bits 1074155520,32 ; g_pui32GPIOBaseAddrs[26] @ 832 .bits 1074155520,32 ; g_pui32GPIOBaseAddrs[27] @ 864 .bits 1074159616,32 ; g_pui32GPIOBaseAddrs[28] @ 896 .bits 1074159616,32 ; g_pui32GPIOBaseAddrs[29] @ 928 .bits 1074163712,32 ; g_pui32GPIOBaseAddrs[30] @ 960 .bits 1074163712,32 ; g_pui32GPIOBaseAddrs[31] @ 992 .bits 1074167808,32 ; g_pui32GPIOBaseAddrs[32] @ 1024 .bits 1074167808,32 ; g_pui32GPIOBaseAddrs[33] @ 1056 .bits 1074171904,32 ; g_pui32GPIOBaseAddrs[34] @ 1088 .bits 1074171904,32 ; g_pui32GPIOBaseAddrs[35] @ 1120 $C$DW$3 .dwtag DW_TAG_variable .dwattr $C$DW$3, DW_AT_name("g_pui32GPIOBaseAddrs") .dwattr $C$DW$3, DW_AT_TI_symbol_name("g_pui32GPIOBaseAddrs") .dwattr $C$DW$3, DW_AT_type(*$C$DW$T$129) .dwattr $C$DW$3, DW_AT_location[DW_OP_addr g_pui32GPIOBaseAddrs] .dwattr $C$DW$3, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$3, DW_AT_decl_line(0x85) .dwattr $C$DW$3, DW_AT_decl_column(0x17) $C$DW$4 .dwtag DW_TAG_subprogram .dwattr $C$DW$4, DW_AT_name("IntRegister") .dwattr $C$DW$4, DW_AT_TI_symbol_name("IntRegister") .dwattr $C$DW$4, DW_AT_declaration .dwattr $C$DW$4, DW_AT_external .dwattr $C$DW$4, DW_AT_decl_file("/home/pola/workspace_v8/Microwave/driverlib/interrupt.h") .dwattr $C$DW$4, DW_AT_decl_line(0x45) .dwattr $C$DW$4, DW_AT_decl_column(0x0d) $C$DW$5 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$5, DW_AT_type(*$C$DW$T$27) $C$DW$6 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$6, DW_AT_type(*$C$DW$T$25) .dwendtag $C$DW$4 $C$DW$7 .dwtag DW_TAG_subprogram .dwattr $C$DW$7, DW_AT_name("IntEnable") .dwattr $C$DW$7, DW_AT_TI_symbol_name("IntEnable") .dwattr $C$DW$7, DW_AT_declaration .dwattr $C$DW$7, DW_AT_external .dwattr $C$DW$7, DW_AT_decl_file("/home/pola/workspace_v8/Microwave/driverlib/interrupt.h") .dwattr $C$DW$7, DW_AT_decl_line(0x4c) .dwattr $C$DW$7, DW_AT_decl_column(0x0d) $C$DW$8 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$8, DW_AT_type(*$C$DW$T$27) .dwendtag $C$DW$7 $C$DW$9 .dwtag DW_TAG_subprogram .dwattr $C$DW$9, DW_AT_name("IntDisable") .dwattr $C$DW$9, DW_AT_TI_symbol_name("IntDisable") .dwattr $C$DW$9, DW_AT_declaration .dwattr $C$DW$9, DW_AT_external .dwattr $C$DW$9, DW_AT_decl_file("/home/pola/workspace_v8/Microwave/driverlib/interrupt.h") .dwattr $C$DW$9, DW_AT_decl_line(0x4d) .dwattr $C$DW$9, DW_AT_decl_column(0x0d) $C$DW$10 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$10, DW_AT_type(*$C$DW$T$27) .dwendtag $C$DW$9 $C$DW$11 .dwtag DW_TAG_subprogram .dwattr $C$DW$11, DW_AT_name("IntUnregister") .dwattr $C$DW$11, DW_AT_TI_symbol_name("IntUnregister") .dwattr $C$DW$11, DW_AT_declaration .dwattr $C$DW$11, DW_AT_external .dwattr $C$DW$11, DW_AT_decl_file("/home/pola/workspace_v8/Microwave/driverlib/interrupt.h") .dwattr $C$DW$11, DW_AT_decl_line(0x46) .dwattr $C$DW$11, DW_AT_decl_column(0x0d) $C$DW$12 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$12, DW_AT_type(*$C$DW$T$27) .dwendtag $C$DW$11 ; /home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armacpia -@/tmp/TI3PI8CEy7e .sect ".text" .clink .thumbfunc _GPIOIntNumberGet .thumb $C$DW$13 .dwtag DW_TAG_subprogram .dwattr $C$DW$13, DW_AT_name("_GPIOIntNumberGet") .dwattr $C$DW$13, DW_AT_low_pc(_GPIOIntNumberGet) .dwattr $C$DW$13, DW_AT_high_pc(0x00) .dwattr $C$DW$13, DW_AT_TI_symbol_name("_GPIOIntNumberGet") .dwattr $C$DW$13, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$13, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$13, DW_AT_TI_begin_line(0xd7) .dwattr $C$DW$13, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$13, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$13, DW_AT_decl_line(0xd7) .dwattr $C$DW$13, DW_AT_decl_column(0x01) .dwattr $C$DW$13, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 216,column 1,is_stmt,address _GPIOIntNumberGet,isa 1 .dwfde $C$DW$CIE, _GPIOIntNumberGet $C$DW$14 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$14, DW_AT_name("ui32Port") .dwattr $C$DW$14, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$14, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$14, DW_AT_location[DW_OP_reg0] ;---------------------------------------------------------------------- ; 215 | _GPIOIntNumberGet(uint32_t ui32Port) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: _GPIOIntNumberGet * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 16 Auto + 0 Save = 16 byte * ;***************************************************************************** _GPIOIntNumberGet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 $C$DW$15 .dwtag DW_TAG_variable .dwattr $C$DW$15, DW_AT_name("ui32Port") .dwattr $C$DW$15, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$15, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$15, DW_AT_location[DW_OP_breg13 0] $C$DW$16 .dwtag DW_TAG_variable .dwattr $C$DW$16, DW_AT_name("ui32Idx") .dwattr $C$DW$16, DW_AT_TI_symbol_name("ui32Idx") .dwattr $C$DW$16, DW_AT_type(*$C$DW$T$107) .dwattr $C$DW$16, DW_AT_location[DW_OP_breg13 4] $C$DW$17 .dwtag DW_TAG_variable .dwattr $C$DW$17, DW_AT_name("ui32Rows") .dwattr $C$DW$17, DW_AT_TI_symbol_name("ui32Rows") .dwattr $C$DW$17, DW_AT_type(*$C$DW$T$107) .dwattr $C$DW$17, DW_AT_location[DW_OP_breg13 8] $C$DW$18 .dwtag DW_TAG_variable .dwattr $C$DW$18, DW_AT_name("ppui32GPIOIntMap") .dwattr $C$DW$18, DW_AT_TI_symbol_name("ppui32GPIOIntMap") .dwattr $C$DW$18, DW_AT_type(*$C$DW$T$128) .dwattr $C$DW$18, DW_AT_location[DW_OP_breg13 12] ;---------------------------------------------------------------------- ; 217 | uint_fast32_t ui32Idx, ui32Rows; ; 218 | const uint32_t (*ppui32GPIOIntMap)[2]; ; 220 | // ; 221 | // Check the arguments. ; 222 | // ; 223 | ASSERT(_GPIOBaseValid(ui32Port)); ;---------------------------------------------------------------------- STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |216| .dwpsn file "../driverlib/gpio.c",line 225,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 225 | ppui32GPIOIntMap = g_ppui32GPIOIntMapBlizzard; ;---------------------------------------------------------------------- LDR A1, $C$CON1 ; [DPU_V7M3_PIPE] |225| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |225| .dwpsn file "../driverlib/gpio.c",line 226,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 226 | ui32Rows = g_ui32GPIOIntMapBlizzardRows; ;---------------------------------------------------------------------- MOVS A1, #24 ; [DPU_V7M3_PIPE] |226| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |226| .dwpsn file "../driverlib/gpio.c",line 228,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 228 | if(CLASS_IS_TM4C129) ;---------------------------------------------------------------------- LDR A2, $C$CON3 ; [DPU_V7M3_PIPE] |228| LDR A1, $C$CON2 ; [DPU_V7M3_PIPE] |228| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |228| LDR A2, $C$CON4 ; [DPU_V7M3_PIPE] |228| ANDS A1, A1, A3 ; [DPU_V7M3_PIPE] |228| CMP A2, A1 ; [DPU_V7M3_PIPE] |228| BNE ||$C$L1|| ; [DPU_V7M3_PIPE] |228| ; BRANCHCC OCCURS {||$C$L1||} ; [] |228| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 230,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 230 | ppui32GPIOIntMap = g_ppui32GPIOIntMapSnowflake; ;---------------------------------------------------------------------- LDR A1, $C$CON5 ; [DPU_V7M3_PIPE] |230| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |230| .dwpsn file "../driverlib/gpio.c",line 231,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 231 | ui32Rows = g_ui32GPIOIntMapSnowflakeRows; ; 234 | // ; 235 | // Loop through the table that maps I2C base addresses to interrupt ; 236 | // numbers. ; 237 | // ;---------------------------------------------------------------------- MOVS A1, #27 ; [DPU_V7M3_PIPE] |231| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |231| ;* --------------------------------------------------------------------------* ||$C$L1||: .dwpsn file "../driverlib/gpio.c",line 238,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 238 | for(ui32Idx = 0; ui32Idx < ui32Rows; ui32Idx++) ;---------------------------------------------------------------------- MOVS A1, #0 ; [DPU_V7M3_PIPE] |238| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |238| .dwpsn file "../driverlib/gpio.c",line 238,column 22,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 240 | // ; 241 | // See if this base address matches. ; 242 | // ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |238| LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |238| CMP A1, A2 ; [DPU_V7M3_PIPE] |238| BLS ||$C$L4|| ; [DPU_V7M3_PIPE] |238| ; BRANCHCC OCCURS {||$C$L4||} ; [] |238| ;* --------------------------------------------------------------------------* ;* BEGIN LOOP ||$C$L2|| ;* ;* Loop source line : 238 ;* Loop closing brace source line : 250 ;* Known Minimum Trip Count : 1 ;* Known Maximum Trip Count : 4294967295 ;* Known Max Trip Count Factor : 1 ;* --------------------------------------------------------------------------* ||$C$L2||: .dwpsn file "../driverlib/gpio.c",line 243,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 243 | if(ppui32GPIOIntMap[ui32Idx][0] == ui32Port) ; 245 | // ; 246 | // Return the corresponding interrupt number. ; 247 | // ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |243| LDR A3, [SP, #12] ; [DPU_V7M3_PIPE] |243| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |243| LDR A2, [A3, +A2, LSL #3] ; [DPU_V7M3_PIPE] |243| CMP A1, A2 ; [DPU_V7M3_PIPE] |243| BNE ||$C$L3|| ; [DPU_V7M3_PIPE] |243| ; BRANCHCC OCCURS {||$C$L3||} ; [] |243| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 248,column 13,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 248 | return(ppui32GPIOIntMap[ui32Idx][1]); ; 252 | // ; 253 | // The base address could not be found, so return an error. ; 254 | // ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |248| LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |248| ADD A1, A1, A2, LSL #3 ; [DPU_V7M3_PIPE] |248| LDR A1, [A1, #4] ; [DPU_V7M3_PIPE] |248| B ||$C$L5|| ; [DPU_V7M3_PIPE] |248| ; BRANCH OCCURS {||$C$L5||} ; [] |248| ;* --------------------------------------------------------------------------* ||$C$L3||: .dwpsn file "../driverlib/gpio.c",line 238,column 42,is_stmt,isa 1 LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |238| ADDS A1, A1, #1 ; [DPU_V7M3_PIPE] |238| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |238| .dwpsn file "../driverlib/gpio.c",line 238,column 22,is_stmt,isa 1 LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |238| LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |238| CMP A1, A2 ; [DPU_V7M3_PIPE] |238| BHI ||$C$L2|| ; [DPU_V7M3_PIPE] |238| ; BRANCHCC OCCURS {||$C$L2||} ; [] |238| ;* --------------------------------------------------------------------------* ||$C$L4||: .dwpsn file "../driverlib/gpio.c",line 255,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 255 | return(0); ;---------------------------------------------------------------------- MOVS A1, #0 ; [DPU_V7M3_PIPE] |255| ;* --------------------------------------------------------------------------* ||$C$L5||: .dwpsn file "../driverlib/gpio.c",line 256,column 1,is_stmt,isa 1 ADD SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$19 .dwtag DW_TAG_TI_branch .dwattr $C$DW$19, DW_AT_low_pc(0x00) .dwattr $C$DW$19, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$13, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$13, DW_AT_TI_end_line(0x100) .dwattr $C$DW$13, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$13 .sect ".text" .clink .thumbfunc GPIODirModeSet .thumb .global GPIODirModeSet $C$DW$20 .dwtag DW_TAG_subprogram .dwattr $C$DW$20, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$20, DW_AT_low_pc(GPIODirModeSet) .dwattr $C$DW$20, DW_AT_high_pc(0x00) .dwattr $C$DW$20, DW_AT_TI_symbol_name("GPIODirModeSet") .dwattr $C$DW$20, DW_AT_external .dwattr $C$DW$20, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$20, DW_AT_TI_begin_line(0x12d) .dwattr $C$DW$20, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$20, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$20, DW_AT_decl_line(0x12d) .dwattr $C$DW$20, DW_AT_decl_column(0x01) .dwattr $C$DW$20, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 302,column 1,is_stmt,address GPIODirModeSet,isa 1 .dwfde $C$DW$CIE, GPIODirModeSet $C$DW$21 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$21, DW_AT_name("ui32Port") .dwattr $C$DW$21, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$21, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$21, DW_AT_location[DW_OP_reg0] $C$DW$22 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$22, DW_AT_name("ui8Pins") .dwattr $C$DW$22, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$22, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$22, DW_AT_location[DW_OP_reg1] $C$DW$23 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$23, DW_AT_name("ui32PinIO") .dwattr $C$DW$23, DW_AT_TI_symbol_name("ui32PinIO") .dwattr $C$DW$23, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$23, DW_AT_location[DW_OP_reg2] ;---------------------------------------------------------------------- ; 301 | GPIODirModeSet(uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32PinIO) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIODirModeSet * ;* * ;* Regs Modified : A1,A2,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 12 Auto + 0 Save = 12 byte * ;***************************************************************************** GPIODirModeSet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 $C$DW$24 .dwtag DW_TAG_variable .dwattr $C$DW$24, DW_AT_name("ui32Port") .dwattr $C$DW$24, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$24, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$24, DW_AT_location[DW_OP_breg13 0] $C$DW$25 .dwtag DW_TAG_variable .dwattr $C$DW$25, DW_AT_name("ui32PinIO") .dwattr $C$DW$25, DW_AT_TI_symbol_name("ui32PinIO") .dwattr $C$DW$25, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$25, DW_AT_location[DW_OP_breg13 4] $C$DW$26 .dwtag DW_TAG_variable .dwattr $C$DW$26, DW_AT_name("ui8Pins") .dwattr $C$DW$26, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$26, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$26, DW_AT_location[DW_OP_breg13 8] ;---------------------------------------------------------------------- ; 303 | // ; 304 | // Check the arguments. ; 305 | // ; 306 | ASSERT(_GPIOBaseValid(ui32Port)); ; 307 | ASSERT((ui32PinIO == GPIO_DIR_MODE_IN) || ; 308 | (ui32PinIO == GPIO_DIR_MODE_OUT) || ; 309 | (ui32PinIO == GPIO_DIR_MODE_HW)); ; 311 | // ; 312 | // Set the pin direction and mode. ; 313 | // ;---------------------------------------------------------------------- STR A3, [SP, #4] ; [DPU_V7M3_PIPE] |302| STRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |302| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |302| .dwpsn file "../driverlib/gpio.c",line 314,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 314 | HWREG(ui32Port + GPIO_O_DIR) = ((ui32PinIO & 1) ? ; 315 | (HWREG(ui32Port + GPIO_O_DIR) | ui8Pins ; | ) : ; 316 | (HWREG(ui32Port + GPIO_O_DIR) & ~(ui8Pi ; | ns))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |314| LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |314| BCC ||$C$L6|| ; [DPU_V7M3_PIPE] |314| ; BRANCHCC OCCURS {||$C$L6||} ; [] |314| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |314| LDRB A1, [SP, #8] ; [DPU_V7M3_PIPE] |314| LDR A2, [A2, #1024] ; [DPU_V7M3_PIPE] |314| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |314| B ||$C$L7|| ; [DPU_V7M3_PIPE] |314| ; BRANCH OCCURS {||$C$L7||} ; [] |314| ;* --------------------------------------------------------------------------* ||$C$L6||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |314| LDRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |314| LDR A1, [A1, #1024] ; [DPU_V7M3_PIPE] |314| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |314| ;* --------------------------------------------------------------------------* ||$C$L7||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |314| STR A1, [A2, #1024] ; [DPU_V7M3_PIPE] |314| .dwpsn file "../driverlib/gpio.c",line 317,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 317 | HWREG(ui32Port + GPIO_O_AFSEL) = ((ui32PinIO & 2) ? ; 318 | (HWREG(ui32Port + GPIO_O_AFSEL) | ; 319 | ui8Pins) : ; 320 | (HWREG(ui32Port + GPIO_O_AFSEL) & ; 321 | ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |317| LSRS A1, A1, #2 ; [DPU_V7M3_PIPE] |317| BCC ||$C$L8|| ; [DPU_V7M3_PIPE] |317| ; BRANCHCC OCCURS {||$C$L8||} ; [] |317| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |317| LDRB A1, [SP, #8] ; [DPU_V7M3_PIPE] |317| LDR A2, [A2, #1056] ; [DPU_V7M3_PIPE] |317| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |317| B ||$C$L9|| ; [DPU_V7M3_PIPE] |317| ; BRANCH OCCURS {||$C$L9||} ; [] |317| ;* --------------------------------------------------------------------------* ||$C$L8||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |317| LDRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |317| LDR A1, [A1, #1056] ; [DPU_V7M3_PIPE] |317| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |317| ;* --------------------------------------------------------------------------* ||$C$L9||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |317| STR A1, [A2, #1056] ; [DPU_V7M3_PIPE] |317| .dwpsn file "../driverlib/gpio.c",line 322,column 1,is_stmt,isa 1 ADD SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$27 .dwtag DW_TAG_TI_branch .dwattr $C$DW$27, DW_AT_low_pc(0x00) .dwattr $C$DW$27, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$20, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$20, DW_AT_TI_end_line(0x142) .dwattr $C$DW$20, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$20 .sect ".text" .clink .thumbfunc GPIODirModeGet .thumb .global GPIODirModeGet $C$DW$28 .dwtag DW_TAG_subprogram .dwattr $C$DW$28, DW_AT_name("GPIODirModeGet") .dwattr $C$DW$28, DW_AT_low_pc(GPIODirModeGet) .dwattr $C$DW$28, DW_AT_high_pc(0x00) .dwattr $C$DW$28, DW_AT_TI_symbol_name("GPIODirModeGet") .dwattr $C$DW$28, DW_AT_external .dwattr $C$DW$28, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$28, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$28, DW_AT_TI_begin_line(0x155) .dwattr $C$DW$28, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$28, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$28, DW_AT_decl_line(0x155) .dwattr $C$DW$28, DW_AT_decl_column(0x01) .dwattr $C$DW$28, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 342,column 1,is_stmt,address GPIODirModeGet,isa 1 .dwfde $C$DW$CIE, GPIODirModeGet $C$DW$29 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$29, DW_AT_name("ui32Port") .dwattr $C$DW$29, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$29, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$29, DW_AT_location[DW_OP_reg0] $C$DW$30 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$30, DW_AT_name("ui8Pin") .dwattr $C$DW$30, DW_AT_TI_symbol_name("ui8Pin") .dwattr $C$DW$30, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$30, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 341 | GPIODirModeGet(uint32_t ui32Port, uint8_t ui8Pin) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIODirModeGet * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 16 Auto + 0 Save = 16 byte * ;***************************************************************************** GPIODirModeGet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 $C$DW$31 .dwtag DW_TAG_variable .dwattr $C$DW$31, DW_AT_name("ui32Port") .dwattr $C$DW$31, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$31, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$31, DW_AT_location[DW_OP_breg13 0] $C$DW$32 .dwtag DW_TAG_variable .dwattr $C$DW$32, DW_AT_name("ui32Dir") .dwattr $C$DW$32, DW_AT_TI_symbol_name("ui32Dir") .dwattr $C$DW$32, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$32, DW_AT_location[DW_OP_breg13 4] $C$DW$33 .dwtag DW_TAG_variable .dwattr $C$DW$33, DW_AT_name("ui32AFSEL") .dwattr $C$DW$33, DW_AT_TI_symbol_name("ui32AFSEL") .dwattr $C$DW$33, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$33, DW_AT_location[DW_OP_breg13 8] $C$DW$34 .dwtag DW_TAG_variable .dwattr $C$DW$34, DW_AT_name("ui8Pin") .dwattr $C$DW$34, DW_AT_TI_symbol_name("ui8Pin") .dwattr $C$DW$34, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$34, DW_AT_location[DW_OP_breg13 12] ;---------------------------------------------------------------------- ; 343 | uint32_t ui32Dir, ui32AFSEL; ; 345 | // ; 346 | // Check the arguments. ; 347 | // ; 348 | ASSERT(_GPIOBaseValid(ui32Port)); ; 349 | ASSERT(ui8Pin < 8); ; 351 | // ; 352 | // Convert from a pin number to a bit position. ; 353 | // ;---------------------------------------------------------------------- STRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |342| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |342| .dwpsn file "../driverlib/gpio.c",line 354,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 354 | ui8Pin = 1 << ui8Pin; ; 356 | // ; 357 | // Return the pin direction and mode. ; 358 | // ;---------------------------------------------------------------------- LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |354| MOVS A1, #1 ; [DPU_V7M3_PIPE] |354| LSLS A1, A1, A2 ; [DPU_V7M3_PIPE] |354| STRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |354| .dwpsn file "../driverlib/gpio.c",line 359,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 359 | ui32Dir = HWREG(ui32Port + GPIO_O_DIR); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |359| LDR A1, [A1, #1024] ; [DPU_V7M3_PIPE] |359| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |359| .dwpsn file "../driverlib/gpio.c",line 360,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 360 | ui32AFSEL = HWREG(ui32Port + GPIO_O_AFSEL); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |360| LDR A1, [A1, #1056] ; [DPU_V7M3_PIPE] |360| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |360| .dwpsn file "../driverlib/gpio.c",line 361,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 361 | return(((ui32Dir & ui8Pin) ? 1 : 0) | ((ui32AFSEL & ui8Pin) ? 2 : 0)); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |361| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |361| TST A2, A1 ; [DPU_V7M3_PIPE] |361| BEQ ||$C$L10|| ; [DPU_V7M3_PIPE] |361| ; BRANCHCC OCCURS {||$C$L10||} ; [] |361| ;* --------------------------------------------------------------------------* MOVS A2, #1 ; [DPU_V7M3_PIPE] |361| B ||$C$L11|| ; [DPU_V7M3_PIPE] |361| ; BRANCH OCCURS {||$C$L11||} ; [] |361| ;* --------------------------------------------------------------------------* ||$C$L10||: MOVS A2, #0 ; [DPU_V7M3_PIPE] |361| ;* --------------------------------------------------------------------------* ||$C$L11||: LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |361| LDRB A3, [SP, #12] ; [DPU_V7M3_PIPE] |361| TST A3, A1 ; [DPU_V7M3_PIPE] |361| BEQ ||$C$L12|| ; [DPU_V7M3_PIPE] |361| ; BRANCHCC OCCURS {||$C$L12||} ; [] |361| ;* --------------------------------------------------------------------------* MOVS A1, #2 ; [DPU_V7M3_PIPE] |361| B ||$C$L13|| ; [DPU_V7M3_PIPE] |361| ; BRANCH OCCURS {||$C$L13||} ; [] |361| ;* --------------------------------------------------------------------------* ||$C$L12||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |361| ;* --------------------------------------------------------------------------* ||$C$L13||: ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |361| .dwpsn file "../driverlib/gpio.c",line 362,column 1,is_stmt,isa 1 ADD SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$35 .dwtag DW_TAG_TI_branch .dwattr $C$DW$35, DW_AT_low_pc(0x00) .dwattr $C$DW$35, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$28, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$28, DW_AT_TI_end_line(0x16a) .dwattr $C$DW$28, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$28 .sect ".text" .clink .thumbfunc GPIOIntTypeSet .thumb .global GPIOIntTypeSet $C$DW$36 .dwtag DW_TAG_subprogram .dwattr $C$DW$36, DW_AT_name("GPIOIntTypeSet") .dwattr $C$DW$36, DW_AT_low_pc(GPIOIntTypeSet) .dwattr $C$DW$36, DW_AT_high_pc(0x00) .dwattr $C$DW$36, DW_AT_TI_symbol_name("GPIOIntTypeSet") .dwattr $C$DW$36, DW_AT_external .dwattr $C$DW$36, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$36, DW_AT_TI_begin_line(0x195) .dwattr $C$DW$36, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$36, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$36, DW_AT_decl_line(0x195) .dwattr $C$DW$36, DW_AT_decl_column(0x01) .dwattr $C$DW$36, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 407,column 1,is_stmt,address GPIOIntTypeSet,isa 1 .dwfde $C$DW$CIE, GPIOIntTypeSet $C$DW$37 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$37, DW_AT_name("ui32Port") .dwattr $C$DW$37, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$37, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$37, DW_AT_location[DW_OP_reg0] $C$DW$38 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$38, DW_AT_name("ui8Pins") .dwattr $C$DW$38, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$38, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$38, DW_AT_location[DW_OP_reg1] $C$DW$39 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$39, DW_AT_name("ui32IntType") .dwattr $C$DW$39, DW_AT_TI_symbol_name("ui32IntType") .dwattr $C$DW$39, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$39, DW_AT_location[DW_OP_reg2] ;---------------------------------------------------------------------- ; 405 | GPIOIntTypeSet(uint32_t ui32Port, uint8_t ui8Pins, ; 406 | uint32_t ui32IntType) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntTypeSet * ;* * ;* Regs Modified : A1,A2,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 12 Auto + 0 Save = 12 byte * ;***************************************************************************** GPIOIntTypeSet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 $C$DW$40 .dwtag DW_TAG_variable .dwattr $C$DW$40, DW_AT_name("ui32Port") .dwattr $C$DW$40, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$40, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$40, DW_AT_location[DW_OP_breg13 0] $C$DW$41 .dwtag DW_TAG_variable .dwattr $C$DW$41, DW_AT_name("ui32IntType") .dwattr $C$DW$41, DW_AT_TI_symbol_name("ui32IntType") .dwattr $C$DW$41, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$41, DW_AT_location[DW_OP_breg13 4] $C$DW$42 .dwtag DW_TAG_variable .dwattr $C$DW$42, DW_AT_name("ui8Pins") .dwattr $C$DW$42, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$42, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$42, DW_AT_location[DW_OP_breg13 8] ;---------------------------------------------------------------------- ; 408 | // ; 409 | // Check the arguments. ; 410 | // ; 411 | ASSERT(_GPIOBaseValid(ui32Port)); ; 412 | ASSERT(((ui32IntType & 0xF) == GPIO_FALLING_EDGE) || ; 413 | ((ui32IntType & 0xF) == GPIO_RISING_EDGE) || ; 414 | ((ui32IntType & 0xF) == GPIO_BOTH_EDGES) || ; 415 | ((ui32IntType & 0xF) == GPIO_LOW_LEVEL) || ; 416 | ((ui32IntType & 0xF) == GPIO_HIGH_LEVEL)); ; 417 | ASSERT(((ui32IntType & 0x000F0000) == 0) || ; 418 | (((ui32IntType & 0x000F0000) == GPIO_DISCRETE_INT) && ; 419 | ((ui32Port == GPIO_PORTP_BASE) || (ui32Port == GPIO_PORTQ_BASE) ; | ))); ; 421 | // ; 422 | // Set the pin interrupt type. ; 423 | // ;---------------------------------------------------------------------- STR A3, [SP, #4] ; [DPU_V7M3_PIPE] |407| STRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |407| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |407| .dwpsn file "../driverlib/gpio.c",line 424,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 424 | HWREG(ui32Port + GPIO_O_IBE) = ((ui32IntType & 1) ? ; 425 | (HWREG(ui32Port + GPIO_O_IBE) | ui8Pins ; | ) : ; 426 | (HWREG(ui32Port + GPIO_O_IBE) & ~(ui8Pi ; | ns))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |424| LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |424| BCC ||$C$L14|| ; [DPU_V7M3_PIPE] |424| ; BRANCHCC OCCURS {||$C$L14||} ; [] |424| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |424| LDRB A1, [SP, #8] ; [DPU_V7M3_PIPE] |424| LDR A2, [A2, #1032] ; [DPU_V7M3_PIPE] |424| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |424| B ||$C$L15|| ; [DPU_V7M3_PIPE] |424| ; BRANCH OCCURS {||$C$L15||} ; [] |424| ;* --------------------------------------------------------------------------* ||$C$L14||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |424| LDRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |424| LDR A1, [A1, #1032] ; [DPU_V7M3_PIPE] |424| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |424| ;* --------------------------------------------------------------------------* ||$C$L15||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |424| STR A1, [A2, #1032] ; [DPU_V7M3_PIPE] |424| .dwpsn file "../driverlib/gpio.c",line 427,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 427 | HWREG(ui32Port + GPIO_O_IS) = ((ui32IntType & 2) ? ; 428 | (HWREG(ui32Port + GPIO_O_IS) | ui8Pins) ; | : ; 429 | (HWREG(ui32Port + GPIO_O_IS) & ~(ui8Pins ; | ))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |427| LSRS A1, A1, #2 ; [DPU_V7M3_PIPE] |427| BCC ||$C$L16|| ; [DPU_V7M3_PIPE] |427| ; BRANCHCC OCCURS {||$C$L16||} ; [] |427| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |427| LDRB A1, [SP, #8] ; [DPU_V7M3_PIPE] |427| LDR A2, [A2, #1028] ; [DPU_V7M3_PIPE] |427| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |427| B ||$C$L17|| ; [DPU_V7M3_PIPE] |427| ; BRANCH OCCURS {||$C$L17||} ; [] |427| ;* --------------------------------------------------------------------------* ||$C$L16||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |427| LDRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |427| LDR A1, [A1, #1028] ; [DPU_V7M3_PIPE] |427| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |427| ;* --------------------------------------------------------------------------* ||$C$L17||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |427| STR A1, [A2, #1028] ; [DPU_V7M3_PIPE] |427| .dwpsn file "../driverlib/gpio.c",line 430,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 430 | HWREG(ui32Port + GPIO_O_IEV) = ((ui32IntType & 4) ? ; 431 | (HWREG(ui32Port + GPIO_O_IEV) | ui8Pins ; | ) : ; 432 | (HWREG(ui32Port + GPIO_O_IEV) & ~(ui8Pi ; | ns))); ; 434 | // ; 435 | // Set or clear the discrete interrupt feature. This is not available ; 436 | // on all parts or ports but is safe to write in all cases. ; 437 | // ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |430| LSRS A1, A1, #3 ; [DPU_V7M3_PIPE] |430| BCC ||$C$L18|| ; [DPU_V7M3_PIPE] |430| ; BRANCHCC OCCURS {||$C$L18||} ; [] |430| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |430| LDRB A1, [SP, #8] ; [DPU_V7M3_PIPE] |430| LDR A2, [A2, #1036] ; [DPU_V7M3_PIPE] |430| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |430| B ||$C$L19|| ; [DPU_V7M3_PIPE] |430| ; BRANCH OCCURS {||$C$L19||} ; [] |430| ;* --------------------------------------------------------------------------* ||$C$L18||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |430| LDRB A2, [SP, #8] ; [DPU_V7M3_PIPE] |430| LDR A1, [A1, #1036] ; [DPU_V7M3_PIPE] |430| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |430| ;* --------------------------------------------------------------------------* ||$C$L19||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |430| STR A1, [A2, #1036] ; [DPU_V7M3_PIPE] |430| .dwpsn file "../driverlib/gpio.c",line 438,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 438 | HWREG(ui32Port + GPIO_O_SI) = ((ui32IntType & 0x10000) ? ; 439 | (HWREG(ui32Port + GPIO_O_SI) | 0x01) : ; 440 | (HWREG(ui32Port + GPIO_O_SI) & ~(0x01))) ; | ; ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |438| LSRS A1, A1, #17 ; [DPU_V7M3_PIPE] |438| BCC ||$C$L20|| ; [DPU_V7M3_PIPE] |438| ; BRANCHCC OCCURS {||$C$L20||} ; [] |438| ;* --------------------------------------------------------------------------* LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |438| LDR A1, [A1, #1336] ; [DPU_V7M3_PIPE] |438| ORR A1, A1, #1 ; [DPU_V7M3_PIPE] |438| B ||$C$L21|| ; [DPU_V7M3_PIPE] |438| ; BRANCH OCCURS {||$C$L21||} ; [] |438| ;* --------------------------------------------------------------------------* ||$C$L20||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |438| LDR A1, [A1, #1336] ; [DPU_V7M3_PIPE] |438| BIC A1, A1, #1 ; [DPU_V7M3_PIPE] |438| ;* --------------------------------------------------------------------------* ||$C$L21||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |438| STR A1, [A2, #1336] ; [DPU_V7M3_PIPE] |438| .dwpsn file "../driverlib/gpio.c",line 441,column 1,is_stmt,isa 1 ADD SP, SP, #16 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$43 .dwtag DW_TAG_TI_branch .dwattr $C$DW$43, DW_AT_low_pc(0x00) .dwattr $C$DW$43, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$36, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$36, DW_AT_TI_end_line(0x1b9) .dwattr $C$DW$36, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$36 .sect ".text" .clink .thumbfunc GPIOIntTypeGet .thumb .global GPIOIntTypeGet $C$DW$44 .dwtag DW_TAG_subprogram .dwattr $C$DW$44, DW_AT_name("GPIOIntTypeGet") .dwattr $C$DW$44, DW_AT_low_pc(GPIOIntTypeGet) .dwattr $C$DW$44, DW_AT_high_pc(0x00) .dwattr $C$DW$44, DW_AT_TI_symbol_name("GPIOIntTypeGet") .dwattr $C$DW$44, DW_AT_external .dwattr $C$DW$44, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$44, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$44, DW_AT_TI_begin_line(0x1cc) .dwattr $C$DW$44, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$44, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$44, DW_AT_decl_line(0x1cc) .dwattr $C$DW$44, DW_AT_decl_column(0x01) .dwattr $C$DW$44, DW_AT_TI_max_frame_size(0x18) .dwpsn file "../driverlib/gpio.c",line 461,column 1,is_stmt,address GPIOIntTypeGet,isa 1 .dwfde $C$DW$CIE, GPIOIntTypeGet $C$DW$45 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$45, DW_AT_name("ui32Port") .dwattr $C$DW$45, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$45, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$45, DW_AT_location[DW_OP_reg0] $C$DW$46 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$46, DW_AT_name("ui8Pin") .dwattr $C$DW$46, DW_AT_TI_symbol_name("ui8Pin") .dwattr $C$DW$46, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$46, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 460 | GPIOIntTypeGet(uint32_t ui32Port, uint8_t ui8Pin) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntTypeGet * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,SR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR * ;* Local Frame Size : 0 Args + 24 Auto + 0 Save = 24 byte * ;***************************************************************************** GPIOIntTypeGet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #24 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 24 $C$DW$47 .dwtag DW_TAG_variable .dwattr $C$DW$47, DW_AT_name("ui32Port") .dwattr $C$DW$47, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$47, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$47, DW_AT_location[DW_OP_breg13 0] $C$DW$48 .dwtag DW_TAG_variable .dwattr $C$DW$48, DW_AT_name("ui32IBE") .dwattr $C$DW$48, DW_AT_TI_symbol_name("ui32IBE") .dwattr $C$DW$48, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$48, DW_AT_location[DW_OP_breg13 4] $C$DW$49 .dwtag DW_TAG_variable .dwattr $C$DW$49, DW_AT_name("ui32IS") .dwattr $C$DW$49, DW_AT_TI_symbol_name("ui32IS") .dwattr $C$DW$49, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$49, DW_AT_location[DW_OP_breg13 8] $C$DW$50 .dwtag DW_TAG_variable .dwattr $C$DW$50, DW_AT_name("ui32IEV") .dwattr $C$DW$50, DW_AT_TI_symbol_name("ui32IEV") .dwattr $C$DW$50, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$50, DW_AT_location[DW_OP_breg13 12] $C$DW$51 .dwtag DW_TAG_variable .dwattr $C$DW$51, DW_AT_name("ui32SI") .dwattr $C$DW$51, DW_AT_TI_symbol_name("ui32SI") .dwattr $C$DW$51, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$51, DW_AT_location[DW_OP_breg13 16] $C$DW$52 .dwtag DW_TAG_variable .dwattr $C$DW$52, DW_AT_name("ui8Pin") .dwattr $C$DW$52, DW_AT_TI_symbol_name("ui8Pin") .dwattr $C$DW$52, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$52, DW_AT_location[DW_OP_breg13 20] ;---------------------------------------------------------------------- ; 462 | uint32_t ui32IBE, ui32IS, ui32IEV, ui32SI; ; 464 | // ; 465 | // Check the arguments. ; 466 | // ; 467 | ASSERT(_GPIOBaseValid(ui32Port)); ; 468 | ASSERT(ui8Pin < 8); ; 470 | // ; 471 | // Convert from a pin number to a bit position. ; 472 | // ;---------------------------------------------------------------------- STRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |461| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |461| .dwpsn file "../driverlib/gpio.c",line 473,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 473 | ui8Pin = 1 << ui8Pin; ; 475 | // ; 476 | // Return the pin interrupt type. ; 477 | // ;---------------------------------------------------------------------- LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |473| MOVS A1, #1 ; [DPU_V7M3_PIPE] |473| LSLS A1, A1, A2 ; [DPU_V7M3_PIPE] |473| STRB A1, [SP, #20] ; [DPU_V7M3_PIPE] |473| .dwpsn file "../driverlib/gpio.c",line 478,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 478 | ui32IBE = HWREG(ui32Port + GPIO_O_IBE); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |478| LDR A1, [A1, #1032] ; [DPU_V7M3_PIPE] |478| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |478| .dwpsn file "../driverlib/gpio.c",line 479,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 479 | ui32IS = HWREG(ui32Port + GPIO_O_IS); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |479| LDR A1, [A1, #1028] ; [DPU_V7M3_PIPE] |479| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |479| .dwpsn file "../driverlib/gpio.c",line 480,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 480 | ui32IEV = HWREG(ui32Port + GPIO_O_IEV); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |480| LDR A1, [A1, #1036] ; [DPU_V7M3_PIPE] |480| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |480| .dwpsn file "../driverlib/gpio.c",line 481,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 481 | ui32SI = HWREG(ui32Port + GPIO_O_SI); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |481| LDR A1, [A1, #1336] ; [DPU_V7M3_PIPE] |481| STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |481| .dwpsn file "../driverlib/gpio.c",line 483,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 483 | return(((ui32IBE & ui8Pin) ? 1 : 0) | ((ui32IS & ui8Pin) ? 2 : 0) | ; 484 | ((ui32IEV & ui8Pin) ? 4 : 0) | ((ui32SI & 0x01) ? 0 ; | x10000 : 0)); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |483| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |483| TST A2, A1 ; [DPU_V7M3_PIPE] |483| BEQ ||$C$L22|| ; [DPU_V7M3_PIPE] |483| ; BRANCHCC OCCURS {||$C$L22||} ; [] |483| ;* --------------------------------------------------------------------------* MOVS A1, #1 ; [DPU_V7M3_PIPE] |483| B ||$C$L23|| ; [DPU_V7M3_PIPE] |483| ; BRANCH OCCURS {||$C$L23||} ; [] |483| ;* --------------------------------------------------------------------------* ||$C$L22||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |483| ;* --------------------------------------------------------------------------* ||$C$L23||: LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |483| LDRB A3, [SP, #20] ; [DPU_V7M3_PIPE] |483| TST A3, A2 ; [DPU_V7M3_PIPE] |483| BEQ ||$C$L24|| ; [DPU_V7M3_PIPE] |483| ; BRANCHCC OCCURS {||$C$L24||} ; [] |483| ;* --------------------------------------------------------------------------* MOVS A2, #2 ; [DPU_V7M3_PIPE] |483| B ||$C$L25|| ; [DPU_V7M3_PIPE] |483| ; BRANCH OCCURS {||$C$L25||} ; [] |483| ;* --------------------------------------------------------------------------* ||$C$L24||: MOVS A2, #0 ; [DPU_V7M3_PIPE] |483| ;* --------------------------------------------------------------------------* ||$C$L25||: LDR A3, [SP, #12] ; [DPU_V7M3_PIPE] |483| LDRB A4, [SP, #20] ; [DPU_V7M3_PIPE] |483| ORRS A2, A2, A1 ; [DPU_V7M3_PIPE] |483| TST A4, A3 ; [DPU_V7M3_PIPE] |483| BEQ ||$C$L26|| ; [DPU_V7M3_PIPE] |483| ; BRANCHCC OCCURS {||$C$L26||} ; [] |483| ;* --------------------------------------------------------------------------* MOVS A1, #4 ; [DPU_V7M3_PIPE] |483| B ||$C$L27|| ; [DPU_V7M3_PIPE] |483| ; BRANCH OCCURS {||$C$L27||} ; [] |483| ;* --------------------------------------------------------------------------* ||$C$L26||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |483| ;* --------------------------------------------------------------------------* ||$C$L27||: LDR A3, [SP, #16] ; [DPU_V7M3_PIPE] |483| ORRS A2, A1, A2 ; [DPU_V7M3_PIPE] |483| LSRS A1, A3, #1 ; [DPU_V7M3_PIPE] |483| BCC ||$C$L28|| ; [DPU_V7M3_PIPE] |483| ; BRANCHCC OCCURS {||$C$L28||} ; [] |483| ;* --------------------------------------------------------------------------* MOV A1, #65536 ; [DPU_V7M3_PIPE] |483| B ||$C$L29|| ; [DPU_V7M3_PIPE] |483| ; BRANCH OCCURS {||$C$L29||} ; [] |483| ;* --------------------------------------------------------------------------* ||$C$L28||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |483| ;* --------------------------------------------------------------------------* ||$C$L29||: ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |483| .dwpsn file "../driverlib/gpio.c",line 485,column 1,is_stmt,isa 1 ADD SP, SP, #24 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$53 .dwtag DW_TAG_TI_branch .dwattr $C$DW$53, DW_AT_low_pc(0x00) .dwattr $C$DW$53, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$44, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$44, DW_AT_TI_end_line(0x1e5) .dwattr $C$DW$44, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$44 ;****************************************************************************** ;* CONSTANT TABLE * ;****************************************************************************** .sect ".text" .align 4 ||$C$CON1||: .bits g_ppui32GPIOIntMapBlizzard,32 .align 4 ||$C$CON4||: .bits 269090816,32 .align 4 ||$C$CON5||: .bits g_ppui32GPIOIntMapSnowflake,32 .sect ".text" .clink .thumbfunc GPIOPadConfigSet .thumb .global GPIOPadConfigSet $C$DW$54 .dwtag DW_TAG_subprogram .dwattr $C$DW$54, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$54, DW_AT_low_pc(GPIOPadConfigSet) .dwattr $C$DW$54, DW_AT_high_pc(0x00) .dwattr $C$DW$54, DW_AT_TI_symbol_name("GPIOPadConfigSet") .dwattr $C$DW$54, DW_AT_external .dwattr $C$DW$54, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$54, DW_AT_TI_begin_line(0x229) .dwattr $C$DW$54, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$54, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$54, DW_AT_decl_line(0x229) .dwattr $C$DW$54, DW_AT_decl_column(0x01) .dwattr $C$DW$54, DW_AT_TI_max_frame_size(0x18) .dwpsn file "../driverlib/gpio.c",line 555,column 1,is_stmt,address GPIOPadConfigSet,isa 1 .dwfde $C$DW$CIE, GPIOPadConfigSet $C$DW$55 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$55, DW_AT_name("ui32Port") .dwattr $C$DW$55, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$55, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$55, DW_AT_location[DW_OP_reg0] $C$DW$56 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$56, DW_AT_name("ui8Pins") .dwattr $C$DW$56, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$56, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$56, DW_AT_location[DW_OP_reg1] $C$DW$57 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$57, DW_AT_name("ui32Strength") .dwattr $C$DW$57, DW_AT_TI_symbol_name("ui32Strength") .dwattr $C$DW$57, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$57, DW_AT_location[DW_OP_reg2] $C$DW$58 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$58, DW_AT_name("ui32PinType") .dwattr $C$DW$58, DW_AT_TI_symbol_name("ui32PinType") .dwattr $C$DW$58, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$58, DW_AT_location[DW_OP_reg3] ;---------------------------------------------------------------------- ; 553 | GPIOPadConfigSet(uint32_t ui32Port, uint8_t ui8Pins, ; 554 | uint32_t ui32Strength, uint32_t ui32PinType) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPadConfigSet * ;* * ;* Regs Modified : A1,A2,A3,A4,V1,SP,SR * ;* Regs Used : A1,A2,A3,A4,V1,SP,LR,SR * ;* Local Frame Size : 0 Args + 16 Auto + 8 Save = 24 byte * ;***************************************************************************** GPIOPadConfigSet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A1, A2, A3, A4, V1, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 24 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 4, -8 .dwcfi save_reg_to_mem, 3, -12 .dwcfi save_reg_to_mem, 2, -16 .dwcfi save_reg_to_mem, 1, -20 .dwcfi save_reg_to_mem, 0, -24 $C$DW$59 .dwtag DW_TAG_variable .dwattr $C$DW$59, DW_AT_name("ui32Port") .dwattr $C$DW$59, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$59, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$59, DW_AT_location[DW_OP_breg13 0] $C$DW$60 .dwtag DW_TAG_variable .dwattr $C$DW$60, DW_AT_name("ui32Strength") .dwattr $C$DW$60, DW_AT_TI_symbol_name("ui32Strength") .dwattr $C$DW$60, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$60, DW_AT_location[DW_OP_breg13 4] $C$DW$61 .dwtag DW_TAG_variable .dwattr $C$DW$61, DW_AT_name("ui32PinType") .dwattr $C$DW$61, DW_AT_TI_symbol_name("ui32PinType") .dwattr $C$DW$61, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$61, DW_AT_location[DW_OP_breg13 8] $C$DW$62 .dwtag DW_TAG_variable .dwattr $C$DW$62, DW_AT_name("ui8Pins") .dwattr $C$DW$62, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$62, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$62, DW_AT_location[DW_OP_breg13 12] $C$DW$63 .dwtag DW_TAG_variable .dwattr $C$DW$63, DW_AT_name("ui8Bit") .dwattr $C$DW$63, DW_AT_TI_symbol_name("ui8Bit") .dwattr $C$DW$63, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$63, DW_AT_location[DW_OP_breg13 13] ;---------------------------------------------------------------------- ; 556 | uint8_t ui8Bit; ; 558 | // ; 559 | // Check the arguments. ; 560 | // ; 561 | ASSERT(_GPIOBaseValid(ui32Port)); ; 562 | ASSERT((ui32Strength == GPIO_STRENGTH_2MA) || ; 563 | (ui32Strength == GPIO_STRENGTH_4MA) || ; 564 | (ui32Strength == GPIO_STRENGTH_6MA) || ; 565 | (ui32Strength == GPIO_STRENGTH_8MA) || ; 566 | (ui32Strength == GPIO_STRENGTH_8MA_SC) || ; 567 | (ui32Strength == GPIO_STRENGTH_10MA) || ; 568 | (ui32Strength == GPIO_STRENGTH_12MA)); ; 569 | ASSERT((ui32PinType == GPIO_PIN_TYPE_STD) || ; 570 | (ui32PinType == GPIO_PIN_TYPE_STD_WPU) || ; 571 | (ui32PinType == GPIO_PIN_TYPE_STD_WPD) || ; 572 | (ui32PinType == GPIO_PIN_TYPE_OD) || ; 573 | (ui32PinType == GPIO_PIN_TYPE_WAKE_LOW) || ; 574 | (ui32PinType == GPIO_PIN_TYPE_WAKE_HIGH) || ; 575 | (ui32PinType == GPIO_PIN_TYPE_ANALOG)); ;---------------------------------------------------------------------- STR A4, [SP, #8] ; [DPU_V7M3_PIPE] |555| STR A3, [SP, #4] ; [DPU_V7M3_PIPE] |555| STRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |555| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |555| .dwpsn file "../driverlib/gpio.c",line 577,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 577 | if (!(CLASS_IS_TM4C123)) ; 579 | // ; 580 | // Set the GPIO peripheral configuration register first as required ; | . ; 581 | // This register only appears in TM4C129x devices, but is a harmles ; | s ; 582 | // write on older devices. ; 583 | // ;---------------------------------------------------------------------- LDR A2, $C$CON3 ; [DPU_V7M3_PIPE] |577| LDR A1, $C$CON2 ; [DPU_V7M3_PIPE] |577| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |577| LDR A2, $C$CON6 ; [DPU_V7M3_PIPE] |577| ANDS A1, A1, A3 ; [DPU_V7M3_PIPE] |577| CMP A2, A1 ; [DPU_V7M3_PIPE] |577| BEQ ||$C$L32|| ; [DPU_V7M3_PIPE] |577| ; BRANCHCC OCCURS {||$C$L32||} ; [] |577| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 584,column 13,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 584 | for(ui8Bit = 0; ui8Bit < 8; ui8Bit++) ;---------------------------------------------------------------------- MOVS A1, #0 ; [DPU_V7M3_PIPE] |584| STRB A1, [SP, #13] ; [DPU_V7M3_PIPE] |584| .dwpsn file "../driverlib/gpio.c",line 584,column 25,is_stmt,isa 1 LDRB A1, [SP, #13] ; [DPU_V7M3_PIPE] |584| CMP A1, #8 ; [DPU_V7M3_PIPE] |584| BGE ||$C$L32|| ; [DPU_V7M3_PIPE] |584| ; BRANCHCC OCCURS {||$C$L32||} ; [] |584| ;* --------------------------------------------------------------------------* ;* BEGIN LOOP ||$C$L30|| ;* ;* Loop source line : 584 ;* Loop closing brace source line : 593 ;* Known Minimum Trip Count : 1 ;* Known Maximum Trip Count : 4294967295 ;* Known Max Trip Count Factor : 1 ;* --------------------------------------------------------------------------* ||$C$L30||: .dwpsn file "../driverlib/gpio.c",line 586,column 13,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 586 | if(ui8Pins & (1 << ui8Bit)) ;---------------------------------------------------------------------- LDRB A2, [SP, #13] ; [DPU_V7M3_PIPE] |586| LDRB A3, [SP, #12] ; [DPU_V7M3_PIPE] |586| MOVS A1, #1 ; [DPU_V7M3_PIPE] |586| LSLS A1, A1, A2 ; [DPU_V7M3_PIPE] |586| TST A1, A3 ; [DPU_V7M3_PIPE] |586| BEQ ||$C$L31|| ; [DPU_V7M3_PIPE] |586| ; BRANCHCC OCCURS {||$C$L31||} ; [] |586| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 588,column 17,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 588 | HWREG(ui32Port + GPIO_O_PC) = (HWREG(ui32Port + GPIO_O_PC) & ; 589 | ~(0x3 << (2 * ui8Bit))); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |588| LDRB A3, [SP, #13] ; [DPU_V7M3_PIPE] |588| LDR A2, [A1, #4036] ; [DPU_V7M3_PIPE] |588| LDR A4, [SP, #0] ; [DPU_V7M3_PIPE] |588| LSLS A3, A3, #1 ; [DPU_V7M3_PIPE] |588| MOVS A1, #3 ; [DPU_V7M3_PIPE] |588| LSLS A1, A1, A3 ; [DPU_V7M3_PIPE] |588| BICS A2, A2, A1 ; [DPU_V7M3_PIPE] |588| STR A2, [A4, #4036] ; [DPU_V7M3_PIPE] |588| .dwpsn file "../driverlib/gpio.c",line 590,column 17,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 590 | HWREG(ui32Port + GPIO_O_PC) |= (((ui32Strength >> 5) & 0x3) << ; 591 | (2 * ui8Bit)); ; 596 | // ; 597 | // Set the output drive strength. ; 598 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |590| LDR V1, [SP, #4] ; [DPU_V7M3_PIPE] |590| ADD A2, A1, #4036 ; [DPU_V7M3_PIPE] |590| LDRB A1, [SP, #13] ; [DPU_V7M3_PIPE] |590| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |590| LSLS A4, A1, #1 ; [DPU_V7M3_PIPE] |590| UBFX A1, V1, #5, #2 ; [DPU_V7M3_PIPE] |590| LSLS A1, A1, A4 ; [DPU_V7M3_PIPE] |590| ORRS A1, A1, A3 ; [DPU_V7M3_PIPE] |590| STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |590| ;* --------------------------------------------------------------------------* ||$C$L31||: .dwpsn file "../driverlib/gpio.c",line 584,column 37,is_stmt,isa 1 LDRB A1, [SP, #13] ; [DPU_V7M3_PIPE] |584| ADDS A1, A1, #1 ; [DPU_V7M3_PIPE] |584| STRB A1, [SP, #13] ; [DPU_V7M3_PIPE] |584| .dwpsn file "../driverlib/gpio.c",line 584,column 25,is_stmt,isa 1 LDRB A1, [SP, #13] ; [DPU_V7M3_PIPE] |584| CMP A1, #8 ; [DPU_V7M3_PIPE] |584| BLT ||$C$L30|| ; [DPU_V7M3_PIPE] |584| ; BRANCHCC OCCURS {||$C$L30||} ; [] |584| ;* --------------------------------------------------------------------------* ||$C$L32||: .dwpsn file "../driverlib/gpio.c",line 599,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 599 | HWREG(ui32Port + GPIO_O_DR2R) = ((ui32Strength & 1) ? ; 600 | (HWREG(ui32Port + GPIO_O_DR2R) | ; 601 | ui8Pins) : ; 602 | (HWREG(ui32Port + GPIO_O_DR2R) & ; 603 | ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |599| LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |599| BCC ||$C$L33|| ; [DPU_V7M3_PIPE] |599| ; BRANCHCC OCCURS {||$C$L33||} ; [] |599| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |599| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |599| LDR A2, [A2, #1280] ; [DPU_V7M3_PIPE] |599| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |599| B ||$C$L34|| ; [DPU_V7M3_PIPE] |599| ; BRANCH OCCURS {||$C$L34||} ; [] |599| ;* --------------------------------------------------------------------------* ||$C$L33||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |599| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |599| LDR A1, [A1, #1280] ; [DPU_V7M3_PIPE] |599| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |599| ;* --------------------------------------------------------------------------* ||$C$L34||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |599| STR A1, [A2, #1280] ; [DPU_V7M3_PIPE] |599| .dwpsn file "../driverlib/gpio.c",line 604,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 604 | HWREG(ui32Port + GPIO_O_DR4R) = ((ui32Strength & 2) ? ; 605 | (HWREG(ui32Port + GPIO_O_DR4R) | ; 606 | ui8Pins) : ; 607 | (HWREG(ui32Port + GPIO_O_DR4R) & ; 608 | ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |604| LSRS A1, A1, #2 ; [DPU_V7M3_PIPE] |604| BCC ||$C$L35|| ; [DPU_V7M3_PIPE] |604| ; BRANCHCC OCCURS {||$C$L35||} ; [] |604| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |604| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |604| LDR A2, [A2, #1284] ; [DPU_V7M3_PIPE] |604| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |604| B ||$C$L36|| ; [DPU_V7M3_PIPE] |604| ; BRANCH OCCURS {||$C$L36||} ; [] |604| ;****************************************************************************** ;* CONSTANT TABLE * ;****************************************************************************** .sect ".text" .align 4 ||$C$CON2||: .bits 1895759872,32 .align 4 ||$C$CON3||: .bits 1074782208,32 ;* --------------------------------------------------------------------------* ||$C$L35||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |604| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |604| LDR A1, [A1, #1284] ; [DPU_V7M3_PIPE] |604| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |604| ;* --------------------------------------------------------------------------* ||$C$L36||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |604| STR A1, [A2, #1284] ; [DPU_V7M3_PIPE] |604| .dwpsn file "../driverlib/gpio.c",line 609,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 609 | HWREG(ui32Port + GPIO_O_DR8R) = ((ui32Strength & 4) ? ; 610 | (HWREG(ui32Port + GPIO_O_DR8R) | ; 611 | ui8Pins) : ; 612 | (HWREG(ui32Port + GPIO_O_DR8R) & ; 613 | ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |609| LSRS A1, A1, #3 ; [DPU_V7M3_PIPE] |609| BCC ||$C$L37|| ; [DPU_V7M3_PIPE] |609| ; BRANCHCC OCCURS {||$C$L37||} ; [] |609| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |609| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |609| LDR A2, [A2, #1288] ; [DPU_V7M3_PIPE] |609| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |609| B ||$C$L38|| ; [DPU_V7M3_PIPE] |609| ; BRANCH OCCURS {||$C$L38||} ; [] |609| ;* --------------------------------------------------------------------------* ||$C$L37||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |609| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |609| LDR A1, [A1, #1288] ; [DPU_V7M3_PIPE] |609| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |609| ;* --------------------------------------------------------------------------* ||$C$L38||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |609| STR A1, [A2, #1288] ; [DPU_V7M3_PIPE] |609| .dwpsn file "../driverlib/gpio.c",line 614,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 614 | HWREG(ui32Port + GPIO_O_SLR) = ((ui32Strength & 8) ? ; 615 | (HWREG(ui32Port + GPIO_O_SLR) | ; 616 | ui8Pins) : ; 617 | (HWREG(ui32Port + GPIO_O_SLR) & ; 618 | ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |614| LSRS A1, A1, #4 ; [DPU_V7M3_PIPE] |614| BCC ||$C$L39|| ; [DPU_V7M3_PIPE] |614| ; BRANCHCC OCCURS {||$C$L39||} ; [] |614| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |614| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |614| LDR A2, [A2, #1304] ; [DPU_V7M3_PIPE] |614| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |614| B ||$C$L40|| ; [DPU_V7M3_PIPE] |614| ; BRANCH OCCURS {||$C$L40||} ; [] |614| ;* --------------------------------------------------------------------------* ||$C$L39||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |614| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |614| LDR A1, [A1, #1304] ; [DPU_V7M3_PIPE] |614| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |614| ;* --------------------------------------------------------------------------* ||$C$L40||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |614| STR A1, [A2, #1304] ; [DPU_V7M3_PIPE] |614| .dwpsn file "../driverlib/gpio.c",line 620,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 620 | if (!(CLASS_IS_TM4C123)) ; 622 | // ; 623 | // Set the 12-mA drive select register. This register only appears ; | in ; 624 | // TM4C129x and later device classes, but is a harmless write on ol ; | der ; 625 | // devices. ; 626 | // ;---------------------------------------------------------------------- LDR A2, $C$CON7 ; [DPU_V7M3_PIPE] |620| LDR A1, $C$CON8 ; [DPU_V7M3_PIPE] |620| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |620| LDR A2, $C$CON6 ; [DPU_V7M3_PIPE] |620| ANDS A1, A1, A3 ; [DPU_V7M3_PIPE] |620| CMP A2, A1 ; [DPU_V7M3_PIPE] |620| BEQ ||$C$L43|| ; [DPU_V7M3_PIPE] |620| ; BRANCHCC OCCURS {||$C$L43||} ; [] |620| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 627,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 627 | HWREG(ui32Port + GPIO_O_DR12R) = ((ui32Strength & 0x10) ? ; 628 | (HWREG(ui32Port + GPIO_O_DR12R) | ; 629 | ui8Pins) : ; 630 | (HWREG(ui32Port + GPIO_O_DR12R) & ; 631 | ~(ui8Pins))); ; 634 | // ; 635 | // Set the pin type. ; 636 | // ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |627| LSRS A1, A1, #5 ; [DPU_V7M3_PIPE] |627| BCC ||$C$L41|| ; [DPU_V7M3_PIPE] |627| ; BRANCHCC OCCURS {||$C$L41||} ; [] |627| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |627| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |627| LDR A2, [A2, #1340] ; [DPU_V7M3_PIPE] |627| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |627| B ||$C$L42|| ; [DPU_V7M3_PIPE] |627| ; BRANCH OCCURS {||$C$L42||} ; [] |627| ;* --------------------------------------------------------------------------* ||$C$L41||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |627| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |627| LDR A1, [A1, #1340] ; [DPU_V7M3_PIPE] |627| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |627| ;* --------------------------------------------------------------------------* ||$C$L42||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |627| STR A1, [A2, #1340] ; [DPU_V7M3_PIPE] |627| ;* --------------------------------------------------------------------------* ||$C$L43||: .dwpsn file "../driverlib/gpio.c",line 637,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 637 | HWREG(ui32Port + GPIO_O_ODR) = ((ui32PinType & 1) ? ; 638 | (HWREG(ui32Port + GPIO_O_ODR) | ui8Pins) ; | : ; 639 | (HWREG(ui32Port + GPIO_O_ODR) & ~(ui8Pins ; | ))); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |637| LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |637| BCC ||$C$L44|| ; [DPU_V7M3_PIPE] |637| ; BRANCHCC OCCURS {||$C$L44||} ; [] |637| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |637| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |637| LDR A2, [A2, #1292] ; [DPU_V7M3_PIPE] |637| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |637| B ||$C$L45|| ; [DPU_V7M3_PIPE] |637| ; BRANCH OCCURS {||$C$L45||} ; [] |637| ;* --------------------------------------------------------------------------* ||$C$L44||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |637| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |637| LDR A1, [A1, #1292] ; [DPU_V7M3_PIPE] |637| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |637| ;* --------------------------------------------------------------------------* ||$C$L45||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |637| STR A1, [A2, #1292] ; [DPU_V7M3_PIPE] |637| .dwpsn file "../driverlib/gpio.c",line 640,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 640 | HWREG(ui32Port + GPIO_O_PUR) = ((ui32PinType & 2) ? ; 641 | (HWREG(ui32Port + GPIO_O_PUR) | ui8Pins) ; | : ; 642 | (HWREG(ui32Port + GPIO_O_PUR) & ~(ui8Pins ; | ))); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |640| LSRS A1, A1, #2 ; [DPU_V7M3_PIPE] |640| BCC ||$C$L46|| ; [DPU_V7M3_PIPE] |640| ; BRANCHCC OCCURS {||$C$L46||} ; [] |640| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |640| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |640| LDR A2, [A2, #1296] ; [DPU_V7M3_PIPE] |640| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |640| B ||$C$L47|| ; [DPU_V7M3_PIPE] |640| ; BRANCH OCCURS {||$C$L47||} ; [] |640| ;* --------------------------------------------------------------------------* ||$C$L46||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |640| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |640| LDR A1, [A1, #1296] ; [DPU_V7M3_PIPE] |640| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |640| ;* --------------------------------------------------------------------------* ||$C$L47||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |640| STR A1, [A2, #1296] ; [DPU_V7M3_PIPE] |640| .dwpsn file "../driverlib/gpio.c",line 643,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 643 | HWREG(ui32Port + GPIO_O_PDR) = ((ui32PinType & 4) ? ; 644 | (HWREG(ui32Port + GPIO_O_PDR) | ui8Pins) ; | : ; 645 | (HWREG(ui32Port + GPIO_O_PDR) & ~(ui8Pins ; | ))); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |643| LSRS A1, A1, #3 ; [DPU_V7M3_PIPE] |643| BCC ||$C$L48|| ; [DPU_V7M3_PIPE] |643| ; BRANCHCC OCCURS {||$C$L48||} ; [] |643| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |643| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |643| LDR A2, [A2, #1300] ; [DPU_V7M3_PIPE] |643| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |643| B ||$C$L49|| ; [DPU_V7M3_PIPE] |643| ; BRANCH OCCURS {||$C$L49||} ; [] |643| ;* --------------------------------------------------------------------------* ||$C$L48||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |643| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |643| LDR A1, [A1, #1300] ; [DPU_V7M3_PIPE] |643| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |643| ;* --------------------------------------------------------------------------* ||$C$L49||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |643| STR A1, [A2, #1300] ; [DPU_V7M3_PIPE] |643| .dwpsn file "../driverlib/gpio.c",line 646,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 646 | HWREG(ui32Port + GPIO_O_DEN) = ((ui32PinType & 8) ? ; 647 | (HWREG(ui32Port + GPIO_O_DEN) | ui8Pins) ; | : ; 648 | (HWREG(ui32Port + GPIO_O_DEN) & ~(ui8Pins ; | ))); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |646| LSRS A1, A1, #4 ; [DPU_V7M3_PIPE] |646| BCC ||$C$L50|| ; [DPU_V7M3_PIPE] |646| ; BRANCHCC OCCURS {||$C$L50||} ; [] |646| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |646| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |646| LDR A2, [A2, #1308] ; [DPU_V7M3_PIPE] |646| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |646| B ||$C$L51|| ; [DPU_V7M3_PIPE] |646| ; BRANCH OCCURS {||$C$L51||} ; [] |646| ;* --------------------------------------------------------------------------* ||$C$L50||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |646| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |646| LDR A1, [A1, #1308] ; [DPU_V7M3_PIPE] |646| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |646| ;* --------------------------------------------------------------------------* ||$C$L51||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |646| STR A1, [A2, #1308] ; [DPU_V7M3_PIPE] |646| .dwpsn file "../driverlib/gpio.c",line 650,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 650 | if (!(CLASS_IS_TM4C123)) ; 652 | // ; 653 | // Set the wake pin enable register and the wake level register. T ; | hese ; 654 | // registers only appear in TM4C129x and later device classes, but ; | are ; 655 | // harmless writes on older devices. ; 656 | // ;---------------------------------------------------------------------- LDR A2, $C$CON7 ; [DPU_V7M3_PIPE] |650| LDR A1, $C$CON8 ; [DPU_V7M3_PIPE] |650| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |650| LDR A2, $C$CON6 ; [DPU_V7M3_PIPE] |650| ANDS A1, A1, A3 ; [DPU_V7M3_PIPE] |650| CMP A2, A1 ; [DPU_V7M3_PIPE] |650| BEQ ||$C$L56|| ; [DPU_V7M3_PIPE] |650| ; BRANCHCC OCCURS {||$C$L56||} ; [] |650| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 657,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 657 | HWREG(ui32Port + GPIO_O_WAKELVL) = ((ui32PinType & 0x200) ? ; 658 | (HWREG(ui32Port + GPIO_O_WAKELVL) | ; 659 | ui8Pins) : ; 660 | (HWREG(ui32Port + GPIO_O_WAKELVL) & ; 661 | ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |657| LSRS A1, A1, #10 ; [DPU_V7M3_PIPE] |657| BCC ||$C$L52|| ; [DPU_V7M3_PIPE] |657| ; BRANCHCC OCCURS {||$C$L52||} ; [] |657| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |657| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |657| LDR A2, [A2, #1348] ; [DPU_V7M3_PIPE] |657| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |657| B ||$C$L53|| ; [DPU_V7M3_PIPE] |657| ; BRANCH OCCURS {||$C$L53||} ; [] |657| ;* --------------------------------------------------------------------------* ||$C$L52||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |657| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |657| LDR A1, [A1, #1348] ; [DPU_V7M3_PIPE] |657| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |657| ;* --------------------------------------------------------------------------* ||$C$L53||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |657| STR A1, [A2, #1348] ; [DPU_V7M3_PIPE] |657| .dwpsn file "../driverlib/gpio.c",line 662,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 662 | HWREG(ui32Port + GPIO_O_WAKEPEN) = ((ui32PinType & 0x300) ? ; 663 | (HWREG(ui32Port + GPIO_O_WAKEPEN) | ; 664 | ui8Pins) : ; 665 | (HWREG(ui32Port + GPIO_O_WAKEPEN) & ; 666 | ~(ui8Pins))); ; 669 | // ; 670 | // Set the analog mode select register. ; 671 | // ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |662| TST A1, #768 ; [DPU_V7M3_PIPE] |662| BEQ ||$C$L54|| ; [DPU_V7M3_PIPE] |662| ; BRANCHCC OCCURS {||$C$L54||} ; [] |662| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |662| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |662| LDR A2, [A2, #1344] ; [DPU_V7M3_PIPE] |662| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |662| B ||$C$L55|| ; [DPU_V7M3_PIPE] |662| ; BRANCH OCCURS {||$C$L55||} ; [] |662| ;* --------------------------------------------------------------------------* ||$C$L54||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |662| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |662| LDR A1, [A1, #1344] ; [DPU_V7M3_PIPE] |662| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |662| ;* --------------------------------------------------------------------------* ||$C$L55||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |662| STR A1, [A2, #1344] ; [DPU_V7M3_PIPE] |662| ;* --------------------------------------------------------------------------* ||$C$L56||: .dwpsn file "../driverlib/gpio.c",line 672,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 672 | HWREG(ui32Port + GPIO_O_AMSEL) = ; 673 | ((ui32PinType == GPIO_PIN_TYPE_ANALOG) ? ; 674 | (HWREG(ui32Port + GPIO_O_AMSEL) | ui8Pins) : ; 675 | (HWREG(ui32Port + GPIO_O_AMSEL) & ~(ui8Pins))); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |672| CBNZ A1, ||$C$L57|| ; [] ; BRANCHCC OCCURS {||$C$L57||} ; [] |672| ;* --------------------------------------------------------------------------* LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |672| LDRB A1, [SP, #12] ; [DPU_V7M3_PIPE] |672| LDR A2, [A2, #1320] ; [DPU_V7M3_PIPE] |672| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |672| B ||$C$L58|| ; [DPU_V7M3_PIPE] |672| ; BRANCH OCCURS {||$C$L58||} ; [] |672| ;* --------------------------------------------------------------------------* ||$C$L57||: LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |672| LDRB A2, [SP, #12] ; [DPU_V7M3_PIPE] |672| LDR A1, [A1, #1320] ; [DPU_V7M3_PIPE] |672| BICS A1, A1, A2 ; [DPU_V7M3_PIPE] |672| ;* --------------------------------------------------------------------------* ||$C$L58||: LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |672| STR A1, [A2, #1320] ; [DPU_V7M3_PIPE] |672| .dwpsn file "../driverlib/gpio.c",line 676,column 1,is_stmt,isa 1 STR A1, [SP, #0] ; [DPU_V7M3_PIPE] $C$DW$64 .dwtag DW_TAG_TI_branch .dwattr $C$DW$64, DW_AT_low_pc(0x00) .dwattr $C$DW$64, DW_AT_TI_return POP {A1, A2, A3, A4, V1, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 4 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 .dwcfi restore_reg, 0 ; BRANCH OCCURS ; [] .dwattr $C$DW$54, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$54, DW_AT_TI_end_line(0x2a4) .dwattr $C$DW$54, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$54 .sect ".text" .clink .thumbfunc GPIOPadConfigGet .thumb .global GPIOPadConfigGet $C$DW$65 .dwtag DW_TAG_subprogram .dwattr $C$DW$65, DW_AT_name("GPIOPadConfigGet") .dwattr $C$DW$65, DW_AT_low_pc(GPIOPadConfigGet) .dwattr $C$DW$65, DW_AT_high_pc(0x00) .dwattr $C$DW$65, DW_AT_TI_symbol_name("GPIOPadConfigGet") .dwattr $C$DW$65, DW_AT_external .dwattr $C$DW$65, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$65, DW_AT_TI_begin_line(0x2ba) .dwattr $C$DW$65, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$65, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$65, DW_AT_decl_line(0x2ba) .dwattr $C$DW$65, DW_AT_decl_column(0x01) .dwattr $C$DW$65, DW_AT_TI_max_frame_size(0x18) .dwpsn file "../driverlib/gpio.c",line 700,column 1,is_stmt,address GPIOPadConfigGet,isa 1 .dwfde $C$DW$CIE, GPIOPadConfigGet $C$DW$66 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$66, DW_AT_name("ui32Port") .dwattr $C$DW$66, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$66, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$66, DW_AT_location[DW_OP_reg0] $C$DW$67 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$67, DW_AT_name("ui8Pin") .dwattr $C$DW$67, DW_AT_TI_symbol_name("ui8Pin") .dwattr $C$DW$67, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$67, DW_AT_location[DW_OP_reg1] $C$DW$68 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$68, DW_AT_name("pui32Strength") .dwattr $C$DW$68, DW_AT_TI_symbol_name("pui32Strength") .dwattr $C$DW$68, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$68, DW_AT_location[DW_OP_reg2] $C$DW$69 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$69, DW_AT_name("pui32PinType") .dwattr $C$DW$69, DW_AT_TI_symbol_name("pui32PinType") .dwattr $C$DW$69, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$69, DW_AT_location[DW_OP_reg3] ;---------------------------------------------------------------------- ; 698 | GPIOPadConfigGet(uint32_t ui32Port, uint8_t ui8Pin, ; 699 | uint32_t *pui32Strength, uint32_t *pui32PinType) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPadConfigGet * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR * ;* Local Frame Size : 0 Args + 24 Auto + 0 Save = 24 byte * ;***************************************************************************** GPIOPadConfigGet: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #24 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 24 $C$DW$70 .dwtag DW_TAG_variable .dwattr $C$DW$70, DW_AT_name("ui32Port") .dwattr $C$DW$70, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$70, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$70, DW_AT_location[DW_OP_breg13 0] $C$DW$71 .dwtag DW_TAG_variable .dwattr $C$DW$71, DW_AT_name("pui32Strength") .dwattr $C$DW$71, DW_AT_TI_symbol_name("pui32Strength") .dwattr $C$DW$71, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$71, DW_AT_location[DW_OP_breg13 4] $C$DW$72 .dwtag DW_TAG_variable .dwattr $C$DW$72, DW_AT_name("pui32PinType") .dwattr $C$DW$72, DW_AT_TI_symbol_name("pui32PinType") .dwattr $C$DW$72, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$72, DW_AT_location[DW_OP_breg13 8] $C$DW$73 .dwtag DW_TAG_variable .dwattr $C$DW$73, DW_AT_name("ui32PinType") .dwattr $C$DW$73, DW_AT_TI_symbol_name("ui32PinType") .dwattr $C$DW$73, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$73, DW_AT_location[DW_OP_breg13 12] $C$DW$74 .dwtag DW_TAG_variable .dwattr $C$DW$74, DW_AT_name("ui32Strength") .dwattr $C$DW$74, DW_AT_TI_symbol_name("ui32Strength") .dwattr $C$DW$74, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$74, DW_AT_location[DW_OP_breg13 16] $C$DW$75 .dwtag DW_TAG_variable .dwattr $C$DW$75, DW_AT_name("ui8Pin") .dwattr $C$DW$75, DW_AT_TI_symbol_name("ui8Pin") .dwattr $C$DW$75, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$75, DW_AT_location[DW_OP_breg13 20] ;---------------------------------------------------------------------- ; 701 | uint32_t ui32PinType, ui32Strength; ; 703 | // ; 704 | // Check the arguments. ; 705 | // ; 706 | ASSERT(_GPIOBaseValid(ui32Port)); ; 707 | ASSERT(ui8Pin < 8); ; 709 | // ; 710 | // Convert from a pin number to a bit position. ; 711 | // ;---------------------------------------------------------------------- STR A4, [SP, #8] ; [DPU_V7M3_PIPE] |700| STR A3, [SP, #4] ; [DPU_V7M3_PIPE] |700| STRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |700| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |700| .dwpsn file "../driverlib/gpio.c",line 712,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 712 | ui8Pin = (1 << ui8Pin); ; 714 | // ; 715 | // Get the drive strength for this pin. ; 716 | // ;---------------------------------------------------------------------- LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |712| MOVS A1, #1 ; [DPU_V7M3_PIPE] |712| LSLS A1, A1, A2 ; [DPU_V7M3_PIPE] |712| STRB A1, [SP, #20] ; [DPU_V7M3_PIPE] |712| .dwpsn file "../driverlib/gpio.c",line 717,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 717 | ui32Strength = ((HWREG(ui32Port + GPIO_O_DR2R) & ui8Pin) ? 1 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |717| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |717| LDR A1, [A1, #1280] ; [DPU_V7M3_PIPE] |717| TST A2, A1 ; [DPU_V7M3_PIPE] |717| BEQ ||$C$L59|| ; [DPU_V7M3_PIPE] |717| ; BRANCHCC OCCURS {||$C$L59||} ; [] |717| ;* --------------------------------------------------------------------------* MOVS A1, #1 ; [DPU_V7M3_PIPE] |717| B ||$C$L60|| ; [DPU_V7M3_PIPE] |717| ; BRANCH OCCURS {||$C$L60||} ; [] |717| ;* --------------------------------------------------------------------------* ||$C$L59||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |717| ;* --------------------------------------------------------------------------* ||$C$L60||: STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |717| .dwpsn file "../driverlib/gpio.c",line 718,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 718 | ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR4R) & ui8Pin) ? 2 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |718| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |718| LDR A1, [A1, #1284] ; [DPU_V7M3_PIPE] |718| TST A2, A1 ; [DPU_V7M3_PIPE] |718| BEQ ||$C$L61|| ; [DPU_V7M3_PIPE] |718| ; BRANCHCC OCCURS {||$C$L61||} ; [] |718| ;* --------------------------------------------------------------------------* MOVS A1, #2 ; [DPU_V7M3_PIPE] |718| B ||$C$L62|| ; [DPU_V7M3_PIPE] |718| ; BRANCH OCCURS {||$C$L62||} ; [] |718| ;* --------------------------------------------------------------------------* ||$C$L61||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |718| ;* --------------------------------------------------------------------------* ||$C$L62||: LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |718| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |718| STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |718| .dwpsn file "../driverlib/gpio.c",line 719,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 719 | ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR8R) & ui8Pin) ? 4 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |719| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |719| LDR A1, [A1, #1288] ; [DPU_V7M3_PIPE] |719| TST A2, A1 ; [DPU_V7M3_PIPE] |719| BEQ ||$C$L63|| ; [DPU_V7M3_PIPE] |719| ; BRANCHCC OCCURS {||$C$L63||} ; [] |719| ;* --------------------------------------------------------------------------* MOVS A1, #4 ; [DPU_V7M3_PIPE] |719| B ||$C$L64|| ; [DPU_V7M3_PIPE] |719| ; BRANCH OCCURS {||$C$L64||} ; [] |719| ;* --------------------------------------------------------------------------* ||$C$L63||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |719| ;* --------------------------------------------------------------------------* ||$C$L64||: LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |719| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |719| STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |719| .dwpsn file "../driverlib/gpio.c",line 720,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 720 | ui32Strength |= ((HWREG(ui32Port + GPIO_O_SLR) & ui8Pin) ? 8 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |720| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |720| LDR A1, [A1, #1304] ; [DPU_V7M3_PIPE] |720| TST A2, A1 ; [DPU_V7M3_PIPE] |720| BEQ ||$C$L65|| ; [DPU_V7M3_PIPE] |720| ; BRANCHCC OCCURS {||$C$L65||} ; [] |720| ;* --------------------------------------------------------------------------* MOVS A1, #8 ; [DPU_V7M3_PIPE] |720| B ||$C$L66|| ; [DPU_V7M3_PIPE] |720| ; BRANCH OCCURS {||$C$L66||} ; [] |720| ;* --------------------------------------------------------------------------* ||$C$L65||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |720| ;* --------------------------------------------------------------------------* ||$C$L66||: LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |720| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |720| STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |720| .dwpsn file "../driverlib/gpio.c",line 721,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 721 | if (!(CLASS_IS_TM4C123)) ;---------------------------------------------------------------------- LDR A2, $C$CON7 ; [DPU_V7M3_PIPE] |721| LDR A1, $C$CON8 ; [DPU_V7M3_PIPE] |721| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |721| LDR A2, $C$CON6 ; [DPU_V7M3_PIPE] |721| ANDS A1, A1, A3 ; [DPU_V7M3_PIPE] |721| CMP A2, A1 ; [DPU_V7M3_PIPE] |721| BEQ ||$C$L69|| ; [DPU_V7M3_PIPE] |721| ; BRANCHCC OCCURS {||$C$L69||} ; [] |721| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 723,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 723 | ui32Strength |= ((HWREG(ui32Port + GPIO_O_DR12R) & ui8Pin) ? 0x10 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |723| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |723| LDR A1, [A1, #1340] ; [DPU_V7M3_PIPE] |723| TST A2, A1 ; [DPU_V7M3_PIPE] |723| BEQ ||$C$L67|| ; [DPU_V7M3_PIPE] |723| ; BRANCHCC OCCURS {||$C$L67||} ; [] |723| ;* --------------------------------------------------------------------------* MOVS A1, #16 ; [DPU_V7M3_PIPE] |723| B ||$C$L68|| ; [DPU_V7M3_PIPE] |723| ; BRANCH OCCURS {||$C$L68||} ; [] |723| ;****************************************************************************** ;* CONSTANT TABLE * ;****************************************************************************** .sect ".text" .align 4 ||$C$CON6||: .bits 268763136,32 ;* --------------------------------------------------------------------------* ||$C$L67||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |723| ;* --------------------------------------------------------------------------* ||$C$L68||: LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |723| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |723| STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |723| .dwpsn file "../driverlib/gpio.c",line 724,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 724 | ui32Strength |= (((HWREG(ui32Port + GPIO_O_PC) >> ; 725 | (2 * ui8Pin)) & 0x3) << 5); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |724| LDRB A3, [SP, #20] ; [DPU_V7M3_PIPE] |724| LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |724| LDR A1, [A1, #4036] ; [DPU_V7M3_PIPE] |724| LSLS A3, A3, #1 ; [DPU_V7M3_PIPE] |724| LSRS A1, A1, A3 ; [DPU_V7M3_PIPE] |724| AND A1, A1, #3 ; [DPU_V7M3_PIPE] |724| ORR A2, A2, A1, LSL #5 ; [DPU_V7M3_PIPE] |724| STR A2, [SP, #16] ; [DPU_V7M3_PIPE] |724| ;* --------------------------------------------------------------------------* ||$C$L69||: .dwpsn file "../driverlib/gpio.c",line 727,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 727 | *pui32Strength = ui32Strength; ; 729 | // ; 730 | // Get the pin type. ; 731 | // ;---------------------------------------------------------------------- LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |727| LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |727| STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |727| .dwpsn file "../driverlib/gpio.c",line 732,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 732 | ui32PinType = ((HWREG(ui32Port + GPIO_O_ODR) & ui8Pin) ? 1 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |732| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |732| LDR A1, [A1, #1292] ; [DPU_V7M3_PIPE] |732| TST A2, A1 ; [DPU_V7M3_PIPE] |732| BEQ ||$C$L70|| ; [DPU_V7M3_PIPE] |732| ; BRANCHCC OCCURS {||$C$L70||} ; [] |732| ;* --------------------------------------------------------------------------* MOVS A1, #1 ; [DPU_V7M3_PIPE] |732| B ||$C$L71|| ; [DPU_V7M3_PIPE] |732| ; BRANCH OCCURS {||$C$L71||} ; [] |732| ;* --------------------------------------------------------------------------* ||$C$L70||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |732| ;* --------------------------------------------------------------------------* ||$C$L71||: STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |732| .dwpsn file "../driverlib/gpio.c",line 733,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 733 | ui32PinType |= ((HWREG(ui32Port + GPIO_O_PUR) & ui8Pin) ? 2 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |733| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |733| LDR A1, [A1, #1296] ; [DPU_V7M3_PIPE] |733| TST A2, A1 ; [DPU_V7M3_PIPE] |733| BEQ ||$C$L72|| ; [DPU_V7M3_PIPE] |733| ; BRANCHCC OCCURS {||$C$L72||} ; [] |733| ;* --------------------------------------------------------------------------* MOVS A1, #2 ; [DPU_V7M3_PIPE] |733| B ||$C$L73|| ; [DPU_V7M3_PIPE] |733| ; BRANCH OCCURS {||$C$L73||} ; [] |733| ;* --------------------------------------------------------------------------* ||$C$L72||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |733| ;* --------------------------------------------------------------------------* ||$C$L73||: LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |733| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |733| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |733| .dwpsn file "../driverlib/gpio.c",line 734,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 734 | ui32PinType |= ((HWREG(ui32Port + GPIO_O_PDR) & ui8Pin) ? 4 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |734| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |734| LDR A1, [A1, #1300] ; [DPU_V7M3_PIPE] |734| TST A2, A1 ; [DPU_V7M3_PIPE] |734| BEQ ||$C$L74|| ; [DPU_V7M3_PIPE] |734| ; BRANCHCC OCCURS {||$C$L74||} ; [] |734| ;* --------------------------------------------------------------------------* MOVS A1, #4 ; [DPU_V7M3_PIPE] |734| B ||$C$L75|| ; [DPU_V7M3_PIPE] |734| ; BRANCH OCCURS {||$C$L75||} ; [] |734| ;* --------------------------------------------------------------------------* ||$C$L74||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |734| ;* --------------------------------------------------------------------------* ||$C$L75||: LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |734| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |734| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |734| .dwpsn file "../driverlib/gpio.c",line 735,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 735 | ui32PinType |= ((HWREG(ui32Port + GPIO_O_DEN) & ui8Pin) ? 8 : 0); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |735| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |735| LDR A1, [A1, #1308] ; [DPU_V7M3_PIPE] |735| TST A2, A1 ; [DPU_V7M3_PIPE] |735| BEQ ||$C$L76|| ; [DPU_V7M3_PIPE] |735| ; BRANCHCC OCCURS {||$C$L76||} ; [] |735| ;* --------------------------------------------------------------------------* MOVS A1, #8 ; [DPU_V7M3_PIPE] |735| B ||$C$L77|| ; [DPU_V7M3_PIPE] |735| ; BRANCH OCCURS {||$C$L77||} ; [] |735| ;* --------------------------------------------------------------------------* ||$C$L76||: MOVS A1, #0 ; [DPU_V7M3_PIPE] |735| ;* --------------------------------------------------------------------------* ||$C$L77||: LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |735| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |735| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |735| .dwpsn file "../driverlib/gpio.c",line 736,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 736 | if (!(CLASS_IS_TM4C123)) ;---------------------------------------------------------------------- LDR A2, $C$CON7 ; [DPU_V7M3_PIPE] |736| LDR A1, $C$CON8 ; [DPU_V7M3_PIPE] |736| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |736| LDR A2, $C$CON9 ; [DPU_V7M3_PIPE] |736| ANDS A1, A1, A3 ; [DPU_V7M3_PIPE] |736| CMP A2, A1 ; [DPU_V7M3_PIPE] |736| BEQ ||$C$L80|| ; [DPU_V7M3_PIPE] |736| ; BRANCHCC OCCURS {||$C$L80||} ; [] |736| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 738,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 738 | if(HWREG(ui32Port + GPIO_O_WAKEPEN) & ui8Pin) ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |738| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |738| LDR A1, [A1, #1344] ; [DPU_V7M3_PIPE] |738| TST A2, A1 ; [DPU_V7M3_PIPE] |738| BEQ ||$C$L80|| ; [DPU_V7M3_PIPE] |738| ; BRANCHCC OCCURS {||$C$L80||} ; [] |738| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 740,column 13,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 740 | ui32PinType |= ((HWREG(ui32Port + GPIO_O_WAKELVL) & ui8Pin) ? ; 741 | 0x200 : 0x100); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |740| LDRB A2, [SP, #20] ; [DPU_V7M3_PIPE] |740| LDR A1, [A1, #1348] ; [DPU_V7M3_PIPE] |740| TST A2, A1 ; [DPU_V7M3_PIPE] |740| BEQ ||$C$L78|| ; [DPU_V7M3_PIPE] |740| ; BRANCHCC OCCURS {||$C$L78||} ; [] |740| ;* --------------------------------------------------------------------------* MOV A1, #512 ; [DPU_V7M3_PIPE] |740| B ||$C$L79|| ; [DPU_V7M3_PIPE] |740| ; BRANCH OCCURS {||$C$L79||} ; [] |740| ;* --------------------------------------------------------------------------* ||$C$L78||: MOV A1, #256 ; [DPU_V7M3_PIPE] |740| ;* --------------------------------------------------------------------------* ||$C$L79||: LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |740| ORRS A1, A1, A2 ; [DPU_V7M3_PIPE] |740| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |740| ;* --------------------------------------------------------------------------* ||$C$L80||: .dwpsn file "../driverlib/gpio.c",line 744,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 744 | *pui32PinType = ui32PinType; ;---------------------------------------------------------------------- LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |744| LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |744| STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |744| .dwpsn file "../driverlib/gpio.c",line 745,column 1,is_stmt,isa 1 ADD SP, SP, #24 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$76 .dwtag DW_TAG_TI_branch .dwattr $C$DW$76, DW_AT_low_pc(0x00) .dwattr $C$DW$76, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$65, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$65, DW_AT_TI_end_line(0x2e9) .dwattr $C$DW$65, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$65 .sect ".text" .clink .thumbfunc GPIOIntEnable .thumb .global GPIOIntEnable $C$DW$77 .dwtag DW_TAG_subprogram .dwattr $C$DW$77, DW_AT_name("GPIOIntEnable") .dwattr $C$DW$77, DW_AT_low_pc(GPIOIntEnable) .dwattr $C$DW$77, DW_AT_high_pc(0x00) .dwattr $C$DW$77, DW_AT_TI_symbol_name("GPIOIntEnable") .dwattr $C$DW$77, DW_AT_external .dwattr $C$DW$77, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$77, DW_AT_TI_begin_line(0x30f) .dwattr $C$DW$77, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$77, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$77, DW_AT_decl_line(0x30f) .dwattr $C$DW$77, DW_AT_decl_column(0x01) .dwattr $C$DW$77, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 784,column 1,is_stmt,address GPIOIntEnable,isa 1 .dwfde $C$DW$CIE, GPIOIntEnable $C$DW$78 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$78, DW_AT_name("ui32Port") .dwattr $C$DW$78, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$78, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$78, DW_AT_location[DW_OP_reg0] $C$DW$79 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$79, DW_AT_name("ui32IntFlags") .dwattr $C$DW$79, DW_AT_TI_symbol_name("ui32IntFlags") .dwattr $C$DW$79, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$79, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 783 | GPIOIntEnable(uint32_t ui32Port, uint32_t ui32IntFlags) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntEnable * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOIntEnable: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$80 .dwtag DW_TAG_variable .dwattr $C$DW$80, DW_AT_name("ui32Port") .dwattr $C$DW$80, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$80, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$80, DW_AT_location[DW_OP_breg13 0] $C$DW$81 .dwtag DW_TAG_variable .dwattr $C$DW$81, DW_AT_name("ui32IntFlags") .dwattr $C$DW$81, DW_AT_TI_symbol_name("ui32IntFlags") .dwattr $C$DW$81, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$81, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 785 | // ; 786 | // Check the arguments. ; 787 | // ; 788 | ASSERT(_GPIOBaseValid(ui32Port)); ; 790 | // ; 791 | // Enable the interrupts. ; 792 | // ;---------------------------------------------------------------------- STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |784| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |784| .dwpsn file "../driverlib/gpio.c",line 793,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 793 | HWREG(ui32Port + GPIO_O_IM) |= ui32IntFlags; ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |793| LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |793| ADD A1, A1, #1040 ; [DPU_V7M3_PIPE] |793| LDR A3, [A1, #0] ; [DPU_V7M3_PIPE] |793| ORRS A2, A2, A3 ; [DPU_V7M3_PIPE] |793| STR A2, [A1, #0] ; [DPU_V7M3_PIPE] |793| .dwpsn file "../driverlib/gpio.c",line 794,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$82 .dwtag DW_TAG_TI_branch .dwattr $C$DW$82, DW_AT_low_pc(0x00) .dwattr $C$DW$82, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$77, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$77, DW_AT_TI_end_line(0x31a) .dwattr $C$DW$77, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$77 ;****************************************************************************** ;* CONSTANT TABLE * ;****************************************************************************** .sect ".text" .align 4 ||$C$CON7||: .bits 1074782208,32 .align 4 ||$C$CON8||: .bits 1895759872,32 .sect ".text" .clink .thumbfunc GPIOIntDisable .thumb .global GPIOIntDisable $C$DW$83 .dwtag DW_TAG_subprogram .dwattr $C$DW$83, DW_AT_name("GPIOIntDisable") .dwattr $C$DW$83, DW_AT_low_pc(GPIOIntDisable) .dwattr $C$DW$83, DW_AT_high_pc(0x00) .dwattr $C$DW$83, DW_AT_TI_symbol_name("GPIOIntDisable") .dwattr $C$DW$83, DW_AT_external .dwattr $C$DW$83, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$83, DW_AT_TI_begin_line(0x337) .dwattr $C$DW$83, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$83, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$83, DW_AT_decl_line(0x337) .dwattr $C$DW$83, DW_AT_decl_column(0x01) .dwattr $C$DW$83, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 824,column 1,is_stmt,address GPIOIntDisable,isa 1 .dwfde $C$DW$CIE, GPIOIntDisable $C$DW$84 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$84, DW_AT_name("ui32Port") .dwattr $C$DW$84, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$84, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$84, DW_AT_location[DW_OP_reg0] $C$DW$85 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$85, DW_AT_name("ui32IntFlags") .dwattr $C$DW$85, DW_AT_TI_symbol_name("ui32IntFlags") .dwattr $C$DW$85, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$85, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 823 | GPIOIntDisable(uint32_t ui32Port, uint32_t ui32IntFlags) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntDisable * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOIntDisable: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$86 .dwtag DW_TAG_variable .dwattr $C$DW$86, DW_AT_name("ui32Port") .dwattr $C$DW$86, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$86, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$86, DW_AT_location[DW_OP_breg13 0] $C$DW$87 .dwtag DW_TAG_variable .dwattr $C$DW$87, DW_AT_name("ui32IntFlags") .dwattr $C$DW$87, DW_AT_TI_symbol_name("ui32IntFlags") .dwattr $C$DW$87, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$87, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 825 | // ; 826 | // Check the arguments. ; 827 | // ; 828 | ASSERT(_GPIOBaseValid(ui32Port)); ; 830 | // ; 831 | // Disable the interrupts. ; 832 | // ;---------------------------------------------------------------------- STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |824| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |824| .dwpsn file "../driverlib/gpio.c",line 833,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 833 | HWREG(ui32Port + GPIO_O_IM) &= ~(ui32IntFlags); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |833| LDR A3, [SP, #4] ; [DPU_V7M3_PIPE] |833| ADD A1, A1, #1040 ; [DPU_V7M3_PIPE] |833| LDR A2, [A1, #0] ; [DPU_V7M3_PIPE] |833| BICS A2, A2, A3 ; [DPU_V7M3_PIPE] |833| STR A2, [A1, #0] ; [DPU_V7M3_PIPE] |833| .dwpsn file "../driverlib/gpio.c",line 834,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$88 .dwtag DW_TAG_TI_branch .dwattr $C$DW$88, DW_AT_low_pc(0x00) .dwattr $C$DW$88, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$83, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$83, DW_AT_TI_end_line(0x342) .dwattr $C$DW$83, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$83 .sect ".text" .clink .thumbfunc GPIOIntStatus .thumb .global GPIOIntStatus $C$DW$89 .dwtag DW_TAG_subprogram .dwattr $C$DW$89, DW_AT_name("GPIOIntStatus") .dwattr $C$DW$89, DW_AT_low_pc(GPIOIntStatus) .dwattr $C$DW$89, DW_AT_high_pc(0x00) .dwattr $C$DW$89, DW_AT_TI_symbol_name("GPIOIntStatus") .dwattr $C$DW$89, DW_AT_external .dwattr $C$DW$89, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$89, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$89, DW_AT_TI_begin_line(0x355) .dwattr $C$DW$89, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$89, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$89, DW_AT_decl_line(0x355) .dwattr $C$DW$89, DW_AT_decl_column(0x01) .dwattr $C$DW$89, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 854,column 1,is_stmt,address GPIOIntStatus,isa 1 .dwfde $C$DW$CIE, GPIOIntStatus $C$DW$90 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$90, DW_AT_name("ui32Port") .dwattr $C$DW$90, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$90, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$90, DW_AT_location[DW_OP_reg0] $C$DW$91 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$91, DW_AT_name("bMasked") .dwattr $C$DW$91, DW_AT_TI_symbol_name("bMasked") .dwattr $C$DW$91, DW_AT_type(*$C$DW$T$122) .dwattr $C$DW$91, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 853 | GPIOIntStatus(uint32_t ui32Port, bool bMasked) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntStatus * ;* * ;* Regs Modified : A1,SP * ;* Regs Used : A1,A2,SP,LR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOIntStatus: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$92 .dwtag DW_TAG_variable .dwattr $C$DW$92, DW_AT_name("ui32Port") .dwattr $C$DW$92, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$92, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$92, DW_AT_location[DW_OP_breg13 0] $C$DW$93 .dwtag DW_TAG_variable .dwattr $C$DW$93, DW_AT_name("bMasked") .dwattr $C$DW$93, DW_AT_TI_symbol_name("bMasked") .dwattr $C$DW$93, DW_AT_type(*$C$DW$T$122) .dwattr $C$DW$93, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 855 | // ; 856 | // Check the arguments. ; 857 | // ; 858 | ASSERT(_GPIOBaseValid(ui32Port)); ; 860 | // ; 861 | // Return the interrupt status. ; 862 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |854| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |854| .dwpsn file "../driverlib/gpio.c",line 863,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 863 | if(bMasked) ;---------------------------------------------------------------------- LDRB A1, [SP, #4] ; [DPU_V7M3_PIPE] |863| CBZ A1, ||$C$L81|| ; [] ; BRANCHCC OCCURS {||$C$L81||} ; [] |863| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 865,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 865 | return(HWREG(ui32Port + GPIO_O_MIS)); ; 867 | else ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |865| LDR A1, [A1, #1048] ; [DPU_V7M3_PIPE] |865| B ||$C$L82|| ; [DPU_V7M3_PIPE] |865| ; BRANCH OCCURS {||$C$L82||} ; [] |865| ;* --------------------------------------------------------------------------* ;* --------------------------------------------------------------------------* ||$C$L81||: .dwpsn file "../driverlib/gpio.c",line 869,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 869 | return(HWREG(ui32Port + GPIO_O_RIS)); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |869| LDR A1, [A1, #1044] ; [DPU_V7M3_PIPE] |869| ;* --------------------------------------------------------------------------* ||$C$L82||: .dwpsn file "../driverlib/gpio.c",line 871,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$94 .dwtag DW_TAG_TI_branch .dwattr $C$DW$94, DW_AT_low_pc(0x00) .dwattr $C$DW$94, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$89, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$89, DW_AT_TI_end_line(0x367) .dwattr $C$DW$89, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$89 .sect ".text" .clink .thumbfunc GPIOIntClear .thumb .global GPIOIntClear $C$DW$95 .dwtag DW_TAG_subprogram .dwattr $C$DW$95, DW_AT_name("GPIOIntClear") .dwattr $C$DW$95, DW_AT_low_pc(GPIOIntClear) .dwattr $C$DW$95, DW_AT_high_pc(0x00) .dwattr $C$DW$95, DW_AT_TI_symbol_name("GPIOIntClear") .dwattr $C$DW$95, DW_AT_external .dwattr $C$DW$95, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$95, DW_AT_TI_begin_line(0x382) .dwattr $C$DW$95, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$95, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$95, DW_AT_decl_line(0x382) .dwattr $C$DW$95, DW_AT_decl_column(0x01) .dwattr $C$DW$95, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 899,column 1,is_stmt,address GPIOIntClear,isa 1 .dwfde $C$DW$CIE, GPIOIntClear $C$DW$96 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$96, DW_AT_name("ui32Port") .dwattr $C$DW$96, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$96, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$96, DW_AT_location[DW_OP_reg0] $C$DW$97 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$97, DW_AT_name("ui32IntFlags") .dwattr $C$DW$97, DW_AT_TI_symbol_name("ui32IntFlags") .dwattr $C$DW$97, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$97, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 898 | GPIOIntClear(uint32_t ui32Port, uint32_t ui32IntFlags) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntClear * ;* * ;* Regs Modified : A1,A2,SP * ;* Regs Used : A1,A2,SP,LR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOIntClear: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$98 .dwtag DW_TAG_variable .dwattr $C$DW$98, DW_AT_name("ui32Port") .dwattr $C$DW$98, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$98, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$98, DW_AT_location[DW_OP_breg13 0] $C$DW$99 .dwtag DW_TAG_variable .dwattr $C$DW$99, DW_AT_name("ui32IntFlags") .dwattr $C$DW$99, DW_AT_TI_symbol_name("ui32IntFlags") .dwattr $C$DW$99, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$99, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 900 | // ; 901 | // Check the arguments. ; 902 | // ; 903 | ASSERT(_GPIOBaseValid(ui32Port)); ; 905 | // ; 906 | // Clear the interrupts. ; 907 | // ;---------------------------------------------------------------------- STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |899| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |899| .dwpsn file "../driverlib/gpio.c",line 908,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 908 | HWREG(ui32Port + GPIO_O_ICR) = ui32IntFlags; ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |908| LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |908| STR A1, [A2, #1052] ; [DPU_V7M3_PIPE] |908| .dwpsn file "../driverlib/gpio.c",line 909,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$100 .dwtag DW_TAG_TI_branch .dwattr $C$DW$100, DW_AT_low_pc(0x00) .dwattr $C$DW$100, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$95, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$95, DW_AT_TI_end_line(0x38d) .dwattr $C$DW$95, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$95 .sect ".text" .clink .thumbfunc GPIOIntRegister .thumb .global GPIOIntRegister $C$DW$101 .dwtag DW_TAG_subprogram .dwattr $C$DW$101, DW_AT_name("GPIOIntRegister") .dwattr $C$DW$101, DW_AT_low_pc(GPIOIntRegister) .dwattr $C$DW$101, DW_AT_high_pc(0x00) .dwattr $C$DW$101, DW_AT_TI_symbol_name("GPIOIntRegister") .dwattr $C$DW$101, DW_AT_external .dwattr $C$DW$101, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$101, DW_AT_TI_begin_line(0x3a4) .dwattr $C$DW$101, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$101, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$101, DW_AT_decl_line(0x3a4) .dwattr $C$DW$101, DW_AT_decl_column(0x01) .dwattr $C$DW$101, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 933,column 1,is_stmt,address GPIOIntRegister,isa 1 .dwfde $C$DW$CIE, GPIOIntRegister $C$DW$102 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$102, DW_AT_name("ui32Port") .dwattr $C$DW$102, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$102, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$102, DW_AT_location[DW_OP_reg0] $C$DW$103 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$103, DW_AT_name("pfnIntHandler") .dwattr $C$DW$103, DW_AT_TI_symbol_name("pfnIntHandler") .dwattr $C$DW$103, DW_AT_type(*$C$DW$T$25) .dwattr $C$DW$103, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 932 | GPIOIntRegister(uint32_t ui32Port, void (*pfnIntHandler)(void)) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntRegister * ;* * ;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 12 Auto + 4 Save = 16 byte * ;***************************************************************************** GPIOIntRegister: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$104 .dwtag DW_TAG_variable .dwattr $C$DW$104, DW_AT_name("ui32Port") .dwattr $C$DW$104, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$104, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$104, DW_AT_location[DW_OP_breg13 0] $C$DW$105 .dwtag DW_TAG_variable .dwattr $C$DW$105, DW_AT_name("pfnIntHandler") .dwattr $C$DW$105, DW_AT_TI_symbol_name("pfnIntHandler") .dwattr $C$DW$105, DW_AT_type(*$C$DW$T$25) .dwattr $C$DW$105, DW_AT_location[DW_OP_breg13 4] $C$DW$106 .dwtag DW_TAG_variable .dwattr $C$DW$106, DW_AT_name("ui32Int") .dwattr $C$DW$106, DW_AT_TI_symbol_name("ui32Int") .dwattr $C$DW$106, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$106, DW_AT_location[DW_OP_breg13 8] ;---------------------------------------------------------------------- ; 934 | uint32_t ui32Int; ; 936 | // ; 937 | // Check the arguments. ; 938 | // ; 939 | ASSERT(_GPIOBaseValid(ui32Port)); ; 941 | // ; 942 | // Get the interrupt number associated with the specified GPIO. ; 943 | // ;---------------------------------------------------------------------- STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |933| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |933| .dwpsn file "../driverlib/gpio.c",line 944,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 944 | ui32Int = _GPIOIntNumberGet(ui32Port); ; 946 | ASSERT(ui32Int != 0); ; 948 | // ; 949 | // Register the interrupt handler. ; 950 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |944| $C$DW$107 .dwtag DW_TAG_TI_branch .dwattr $C$DW$107, DW_AT_low_pc(0x00) .dwattr $C$DW$107, DW_AT_name("_GPIOIntNumberGet") .dwattr $C$DW$107, DW_AT_TI_call BL _GPIOIntNumberGet ; [DPU_V7M3_PIPE] |944| ; CALL OCCURS {_GPIOIntNumberGet } ; [] |944| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |944| .dwpsn file "../driverlib/gpio.c",line 951,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 951 | IntRegister(ui32Int, pfnIntHandler); ; 953 | // ; 954 | // Enable the GPIO interrupt. ; 955 | // ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |951| LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |951| $C$DW$108 .dwtag DW_TAG_TI_branch .dwattr $C$DW$108, DW_AT_low_pc(0x00) .dwattr $C$DW$108, DW_AT_name("IntRegister") .dwattr $C$DW$108, DW_AT_TI_call BL IntRegister ; [DPU_V7M3_PIPE] |951| ; CALL OCCURS {IntRegister } ; [] |951| .dwpsn file "../driverlib/gpio.c",line 956,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 956 | IntEnable(ui32Int); ;---------------------------------------------------------------------- LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |956| $C$DW$109 .dwtag DW_TAG_TI_branch .dwattr $C$DW$109, DW_AT_low_pc(0x00) .dwattr $C$DW$109, DW_AT_name("IntEnable") .dwattr $C$DW$109, DW_AT_TI_call BL IntEnable ; [DPU_V7M3_PIPE] |956| ; CALL OCCURS {IntEnable } ; [] |956| .dwpsn file "../driverlib/gpio.c",line 957,column 1,is_stmt,isa 1 $C$DW$110 .dwtag DW_TAG_TI_branch .dwattr $C$DW$110, DW_AT_low_pc(0x00) .dwattr $C$DW$110, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$101, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$101, DW_AT_TI_end_line(0x3bd) .dwattr $C$DW$101, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$101 .sect ".text" .clink .thumbfunc GPIOIntUnregister .thumb .global GPIOIntUnregister $C$DW$111 .dwtag DW_TAG_subprogram .dwattr $C$DW$111, DW_AT_name("GPIOIntUnregister") .dwattr $C$DW$111, DW_AT_low_pc(GPIOIntUnregister) .dwattr $C$DW$111, DW_AT_high_pc(0x00) .dwattr $C$DW$111, DW_AT_TI_symbol_name("GPIOIntUnregister") .dwattr $C$DW$111, DW_AT_external .dwattr $C$DW$111, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$111, DW_AT_TI_begin_line(0x3d1) .dwattr $C$DW$111, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$111, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$111, DW_AT_decl_line(0x3d1) .dwattr $C$DW$111, DW_AT_decl_column(0x01) .dwattr $C$DW$111, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 978,column 1,is_stmt,address GPIOIntUnregister,isa 1 .dwfde $C$DW$CIE, GPIOIntUnregister $C$DW$112 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$112, DW_AT_name("ui32Port") .dwattr $C$DW$112, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$112, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$112, DW_AT_location[DW_OP_reg0] ;---------------------------------------------------------------------- ; 977 | GPIOIntUnregister(uint32_t ui32Port) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntUnregister * ;* * ;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOIntUnregister: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$113 .dwtag DW_TAG_variable .dwattr $C$DW$113, DW_AT_name("ui32Port") .dwattr $C$DW$113, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$113, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$113, DW_AT_location[DW_OP_breg13 0] $C$DW$114 .dwtag DW_TAG_variable .dwattr $C$DW$114, DW_AT_name("ui32Int") .dwattr $C$DW$114, DW_AT_TI_symbol_name("ui32Int") .dwattr $C$DW$114, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$114, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 979 | uint32_t ui32Int; ; 981 | // ; 982 | // Check the arguments. ; 983 | // ; 984 | ASSERT(_GPIOBaseValid(ui32Port)); ; 986 | // ; 987 | // Get the interrupt number associated with the specified GPIO. ; 988 | // ;---------------------------------------------------------------------- STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |978| .dwpsn file "../driverlib/gpio.c",line 989,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 989 | ui32Int = _GPIOIntNumberGet(ui32Port); ; 991 | ASSERT(ui32Int != 0); ; 993 | // ; 994 | // Disable the GPIO interrupt. ; 995 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |989| $C$DW$115 .dwtag DW_TAG_TI_branch .dwattr $C$DW$115, DW_AT_low_pc(0x00) .dwattr $C$DW$115, DW_AT_name("_GPIOIntNumberGet") .dwattr $C$DW$115, DW_AT_TI_call BL _GPIOIntNumberGet ; [DPU_V7M3_PIPE] |989| ; CALL OCCURS {_GPIOIntNumberGet } ; [] |989| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |989| .dwpsn file "../driverlib/gpio.c",line 996,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 996 | IntDisable(ui32Int); ; 998 | // ; 999 | // Unregister the interrupt handler. ; 1000 | // ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |996| $C$DW$116 .dwtag DW_TAG_TI_branch .dwattr $C$DW$116, DW_AT_low_pc(0x00) .dwattr $C$DW$116, DW_AT_name("IntDisable") .dwattr $C$DW$116, DW_AT_TI_call BL IntDisable ; [DPU_V7M3_PIPE] |996| ; CALL OCCURS {IntDisable } ; [] |996| .dwpsn file "../driverlib/gpio.c",line 1001,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1001 | IntUnregister(ui32Int); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1001| $C$DW$117 .dwtag DW_TAG_TI_branch .dwattr $C$DW$117, DW_AT_low_pc(0x00) .dwattr $C$DW$117, DW_AT_name("IntUnregister") .dwattr $C$DW$117, DW_AT_TI_call BL IntUnregister ; [DPU_V7M3_PIPE] |1001| ; CALL OCCURS {IntUnregister } ; [] |1001| .dwpsn file "../driverlib/gpio.c",line 1002,column 1,is_stmt,isa 1 $C$DW$118 .dwtag DW_TAG_TI_branch .dwattr $C$DW$118, DW_AT_low_pc(0x00) .dwattr $C$DW$118, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$111, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$111, DW_AT_TI_end_line(0x3ea) .dwattr $C$DW$111, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$111 .sect ".text" .clink .thumbfunc GPIOIntRegisterPin .thumb .global GPIOIntRegisterPin $C$DW$119 .dwtag DW_TAG_subprogram .dwattr $C$DW$119, DW_AT_name("GPIOIntRegisterPin") .dwattr $C$DW$119, DW_AT_low_pc(GPIOIntRegisterPin) .dwattr $C$DW$119, DW_AT_high_pc(0x00) .dwattr $C$DW$119, DW_AT_TI_symbol_name("GPIOIntRegisterPin") .dwattr $C$DW$119, DW_AT_external .dwattr $C$DW$119, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$119, DW_AT_TI_begin_line(0x401) .dwattr $C$DW$119, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$119, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$119, DW_AT_decl_line(0x401) .dwattr $C$DW$119, DW_AT_decl_column(0x01) .dwattr $C$DW$119, DW_AT_TI_max_frame_size(0x18) .dwpsn file "../driverlib/gpio.c",line 1027,column 1,is_stmt,address GPIOIntRegisterPin,isa 1 .dwfde $C$DW$CIE, GPIOIntRegisterPin $C$DW$120 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$120, DW_AT_name("ui32Port") .dwattr $C$DW$120, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$120, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$120, DW_AT_location[DW_OP_reg0] $C$DW$121 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$121, DW_AT_name("ui32Pin") .dwattr $C$DW$121, DW_AT_TI_symbol_name("ui32Pin") .dwattr $C$DW$121, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$121, DW_AT_location[DW_OP_reg1] $C$DW$122 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$122, DW_AT_name("pfnIntHandler") .dwattr $C$DW$122, DW_AT_TI_symbol_name("pfnIntHandler") .dwattr $C$DW$122, DW_AT_type(*$C$DW$T$25) .dwattr $C$DW$122, DW_AT_location[DW_OP_reg2] ;---------------------------------------------------------------------- ; 1025 | GPIOIntRegisterPin(uint32_t ui32Port, uint32_t ui32Pin, ; 1026 | void (*pfnIntHandler)(void)) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntRegisterPin * ;* * ;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 16 Auto + 4 Save = 20 byte * ;***************************************************************************** GPIOIntRegisterPin: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 14, -4 SUB SP, SP, #20 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 24 $C$DW$123 .dwtag DW_TAG_variable .dwattr $C$DW$123, DW_AT_name("ui32Port") .dwattr $C$DW$123, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$123, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$123, DW_AT_location[DW_OP_breg13 0] $C$DW$124 .dwtag DW_TAG_variable .dwattr $C$DW$124, DW_AT_name("ui32Pin") .dwattr $C$DW$124, DW_AT_TI_symbol_name("ui32Pin") .dwattr $C$DW$124, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$124, DW_AT_location[DW_OP_breg13 4] $C$DW$125 .dwtag DW_TAG_variable .dwattr $C$DW$125, DW_AT_name("pfnIntHandler") .dwattr $C$DW$125, DW_AT_TI_symbol_name("pfnIntHandler") .dwattr $C$DW$125, DW_AT_type(*$C$DW$T$25) .dwattr $C$DW$125, DW_AT_location[DW_OP_breg13 8] $C$DW$126 .dwtag DW_TAG_variable .dwattr $C$DW$126, DW_AT_name("ui32Int") .dwattr $C$DW$126, DW_AT_TI_symbol_name("ui32Int") .dwattr $C$DW$126, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$126, DW_AT_location[DW_OP_breg13 12] ;---------------------------------------------------------------------- ; 1028 | uint32_t ui32Int; ; 1030 | // ; 1031 | // Check the arguments. ; 1032 | // ; 1033 | ASSERT((ui32Port == GPIO_PORTP_BASE) || (ui32Port == GPIO_PORTQ_BASE)); ; 1034 | ASSERT((ui32Pin > 0) && (ui32Pin < 8)); ; 1035 | ASSERT(pfnIntHandler != 0); ; 1037 | // ; 1038 | // Get the interrupt number associated with the specified GPIO. ; 1039 | // ;---------------------------------------------------------------------- STR A3, [SP, #8] ; [DPU_V7M3_PIPE] |1027| STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1027| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1027| .dwpsn file "../driverlib/gpio.c",line 1040,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1040 | ui32Int = _GPIOIntNumberGet(ui32Port); ; 1042 | // ; 1043 | // Register the interrupt handler. ; 1044 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1040| $C$DW$127 .dwtag DW_TAG_TI_branch .dwattr $C$DW$127, DW_AT_low_pc(0x00) .dwattr $C$DW$127, DW_AT_name("_GPIOIntNumberGet") .dwattr $C$DW$127, DW_AT_TI_call BL _GPIOIntNumberGet ; [DPU_V7M3_PIPE] |1040| ; CALL OCCURS {_GPIOIntNumberGet } ; [] |1040| STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1040| .dwpsn file "../driverlib/gpio.c",line 1045,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1045 | IntRegister((ui32Int + ui32Pin), pfnIntHandler); ; 1047 | // ; 1048 | // Enable the GPIO pin interrupt. ; 1049 | // ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1045| LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1045| ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1045| LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1045| $C$DW$128 .dwtag DW_TAG_TI_branch .dwattr $C$DW$128, DW_AT_low_pc(0x00) .dwattr $C$DW$128, DW_AT_name("IntRegister") .dwattr $C$DW$128, DW_AT_TI_call BL IntRegister ; [DPU_V7M3_PIPE] |1045| ; CALL OCCURS {IntRegister } ; [] |1045| .dwpsn file "../driverlib/gpio.c",line 1050,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1050 | IntEnable(ui32Int + ui32Pin); ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1050| LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1050| ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1050| $C$DW$129 .dwtag DW_TAG_TI_branch .dwattr $C$DW$129, DW_AT_low_pc(0x00) .dwattr $C$DW$129, DW_AT_name("IntEnable") .dwattr $C$DW$129, DW_AT_TI_call BL IntEnable ; [DPU_V7M3_PIPE] |1050| ; CALL OCCURS {IntEnable } ; [] |1050| .dwpsn file "../driverlib/gpio.c",line 1051,column 1,is_stmt,isa 1 ADD SP, SP, #20 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 4 $C$DW$130 .dwtag DW_TAG_TI_branch .dwattr $C$DW$130, DW_AT_low_pc(0x00) .dwattr $C$DW$130, DW_AT_TI_return POP {PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 ; BRANCH OCCURS ; [] .dwattr $C$DW$119, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$119, DW_AT_TI_end_line(0x41b) .dwattr $C$DW$119, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$119 .sect ".text" .clink .thumbfunc GPIOIntUnregisterPin .thumb .global GPIOIntUnregisterPin $C$DW$131 .dwtag DW_TAG_subprogram .dwattr $C$DW$131, DW_AT_name("GPIOIntUnregisterPin") .dwattr $C$DW$131, DW_AT_low_pc(GPIOIntUnregisterPin) .dwattr $C$DW$131, DW_AT_high_pc(0x00) .dwattr $C$DW$131, DW_AT_TI_symbol_name("GPIOIntUnregisterPin") .dwattr $C$DW$131, DW_AT_external .dwattr $C$DW$131, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$131, DW_AT_TI_begin_line(0x42f) .dwattr $C$DW$131, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$131, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$131, DW_AT_decl_line(0x42f) .dwattr $C$DW$131, DW_AT_decl_column(0x01) .dwattr $C$DW$131, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1072,column 1,is_stmt,address GPIOIntUnregisterPin,isa 1 .dwfde $C$DW$CIE, GPIOIntUnregisterPin $C$DW$132 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$132, DW_AT_name("ui32Port") .dwattr $C$DW$132, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$132, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$132, DW_AT_location[DW_OP_reg0] $C$DW$133 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$133, DW_AT_name("ui32Pin") .dwattr $C$DW$133, DW_AT_TI_symbol_name("ui32Pin") .dwattr $C$DW$133, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$133, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1071 | GPIOIntUnregisterPin(uint32_t ui32Port, uint32_t ui32Pin) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOIntUnregisterPin * ;* * ;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, * ;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, * ;* FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 12 Auto + 4 Save = 16 byte * ;***************************************************************************** GPIOIntUnregisterPin: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$134 .dwtag DW_TAG_variable .dwattr $C$DW$134, DW_AT_name("ui32Port") .dwattr $C$DW$134, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$134, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$134, DW_AT_location[DW_OP_breg13 0] $C$DW$135 .dwtag DW_TAG_variable .dwattr $C$DW$135, DW_AT_name("ui32Pin") .dwattr $C$DW$135, DW_AT_TI_symbol_name("ui32Pin") .dwattr $C$DW$135, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$135, DW_AT_location[DW_OP_breg13 4] $C$DW$136 .dwtag DW_TAG_variable .dwattr $C$DW$136, DW_AT_name("ui32Int") .dwattr $C$DW$136, DW_AT_TI_symbol_name("ui32Int") .dwattr $C$DW$136, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$136, DW_AT_location[DW_OP_breg13 8] ;---------------------------------------------------------------------- ; 1073 | uint32_t ui32Int; ; 1075 | // ; 1076 | // Check the arguments. ; 1077 | // ; 1078 | ASSERT((ui32Port == GPIO_PORTP_BASE) || (ui32Port == GPIO_PORTQ_BASE)); ; 1079 | ASSERT((ui32Pin > 0) && (ui32Pin < 8)); ; 1081 | // ; 1082 | // Get the interrupt number associated with the specified GPIO. ; 1083 | // ;---------------------------------------------------------------------- STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1072| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1072| .dwpsn file "../driverlib/gpio.c",line 1084,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1084 | ui32Int = _GPIOIntNumberGet(ui32Port); ; 1086 | // ; 1087 | // Disable the GPIO pin interrupt. ; 1088 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1084| $C$DW$137 .dwtag DW_TAG_TI_branch .dwattr $C$DW$137, DW_AT_low_pc(0x00) .dwattr $C$DW$137, DW_AT_name("_GPIOIntNumberGet") .dwattr $C$DW$137, DW_AT_TI_call BL _GPIOIntNumberGet ; [DPU_V7M3_PIPE] |1084| ; CALL OCCURS {_GPIOIntNumberGet } ; [] |1084| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1084| .dwpsn file "../driverlib/gpio.c",line 1089,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1089 | IntDisable(ui32Int + ui32Pin); ; 1091 | // ; 1092 | // UnRegister the interrupt handler. ; 1093 | // ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1089| LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1089| ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1089| $C$DW$138 .dwtag DW_TAG_TI_branch .dwattr $C$DW$138, DW_AT_low_pc(0x00) .dwattr $C$DW$138, DW_AT_name("IntDisable") .dwattr $C$DW$138, DW_AT_TI_call BL IntDisable ; [DPU_V7M3_PIPE] |1089| ; CALL OCCURS {IntDisable } ; [] |1089| .dwpsn file "../driverlib/gpio.c",line 1094,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1094 | IntUnregister(ui32Int + ui32Pin); ;---------------------------------------------------------------------- LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1094| LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1094| ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1094| $C$DW$139 .dwtag DW_TAG_TI_branch .dwattr $C$DW$139, DW_AT_low_pc(0x00) .dwattr $C$DW$139, DW_AT_name("IntUnregister") .dwattr $C$DW$139, DW_AT_TI_call BL IntUnregister ; [DPU_V7M3_PIPE] |1094| ; CALL OCCURS {IntUnregister } ; [] |1094| .dwpsn file "../driverlib/gpio.c",line 1095,column 1,is_stmt,isa 1 $C$DW$140 .dwtag DW_TAG_TI_branch .dwattr $C$DW$140, DW_AT_low_pc(0x00) .dwattr $C$DW$140, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$131, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$131, DW_AT_TI_end_line(0x447) .dwattr $C$DW$131, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$131 .sect ".text" .clink .thumbfunc GPIOPinRead .thumb .global GPIOPinRead $C$DW$141 .dwtag DW_TAG_subprogram .dwattr $C$DW$141, DW_AT_name("GPIOPinRead") .dwattr $C$DW$141, DW_AT_low_pc(GPIOPinRead) .dwattr $C$DW$141, DW_AT_high_pc(0x00) .dwattr $C$DW$141, DW_AT_TI_symbol_name("GPIOPinRead") .dwattr $C$DW$141, DW_AT_external .dwattr $C$DW$141, DW_AT_type(*$C$DW$T$92) .dwattr $C$DW$141, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$141, DW_AT_TI_begin_line(0x45f) .dwattr $C$DW$141, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$141, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$141, DW_AT_decl_line(0x45f) .dwattr $C$DW$141, DW_AT_decl_column(0x01) .dwattr $C$DW$141, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 1120,column 1,is_stmt,address GPIOPinRead,isa 1 .dwfde $C$DW$CIE, GPIOPinRead $C$DW$142 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$142, DW_AT_name("ui32Port") .dwattr $C$DW$142, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$142, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$142, DW_AT_location[DW_OP_reg0] $C$DW$143 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$143, DW_AT_name("ui8Pins") .dwattr $C$DW$143, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$143, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$143, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1119 | GPIOPinRead(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinRead * ;* * ;* Regs Modified : A1,A2,SP * ;* Regs Used : A1,A2,SP,LR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOPinRead: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$144 .dwtag DW_TAG_variable .dwattr $C$DW$144, DW_AT_name("ui32Port") .dwattr $C$DW$144, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$144, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$144, DW_AT_location[DW_OP_breg13 0] $C$DW$145 .dwtag DW_TAG_variable .dwattr $C$DW$145, DW_AT_name("ui8Pins") .dwattr $C$DW$145, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$145, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$145, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1121 | // ; 1122 | // Check the arguments. ; 1123 | // ; 1124 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1126 | // ; 1127 | // Return the pin value(s). ; 1128 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1120| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1120| .dwpsn file "../driverlib/gpio.c",line 1129,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1129 | return(HWREG(ui32Port + (GPIO_O_DATA + (ui8Pins << 2)))); ;---------------------------------------------------------------------- LDRB A1, [SP, #4] ; [DPU_V7M3_PIPE] |1129| LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1129| LDR A1, [A2, +A1, LSL #2] ; [DPU_V7M3_PIPE] |1129| .dwpsn file "../driverlib/gpio.c",line 1130,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$146 .dwtag DW_TAG_TI_branch .dwattr $C$DW$146, DW_AT_low_pc(0x00) .dwattr $C$DW$146, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$141, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$141, DW_AT_TI_end_line(0x46a) .dwattr $C$DW$141, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$141 .sect ".text" .clink .thumbfunc GPIOPinWrite .thumb .global GPIOPinWrite $C$DW$147 .dwtag DW_TAG_subprogram .dwattr $C$DW$147, DW_AT_name("GPIOPinWrite") .dwattr $C$DW$147, DW_AT_low_pc(GPIOPinWrite) .dwattr $C$DW$147, DW_AT_high_pc(0x00) .dwattr $C$DW$147, DW_AT_TI_symbol_name("GPIOPinWrite") .dwattr $C$DW$147, DW_AT_external .dwattr $C$DW$147, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$147, DW_AT_TI_begin_line(0x47f) .dwattr $C$DW$147, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$147, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$147, DW_AT_decl_line(0x47f) .dwattr $C$DW$147, DW_AT_decl_column(0x01) .dwattr $C$DW$147, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 1152,column 1,is_stmt,address GPIOPinWrite,isa 1 .dwfde $C$DW$CIE, GPIOPinWrite $C$DW$148 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$148, DW_AT_name("ui32Port") .dwattr $C$DW$148, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$148, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$148, DW_AT_location[DW_OP_reg0] $C$DW$149 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$149, DW_AT_name("ui8Pins") .dwattr $C$DW$149, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$149, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$149, DW_AT_location[DW_OP_reg1] $C$DW$150 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$150, DW_AT_name("ui8Val") .dwattr $C$DW$150, DW_AT_TI_symbol_name("ui8Val") .dwattr $C$DW$150, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$150, DW_AT_location[DW_OP_reg2] ;---------------------------------------------------------------------- ; 1151 | GPIOPinWrite(uint32_t ui32Port, uint8_t ui8Pins, uint8_t ui8Val) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinWrite * ;* * ;* Regs Modified : A1,A2,A3,SP * ;* Regs Used : A1,A2,A3,SP,LR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOPinWrite: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$151 .dwtag DW_TAG_variable .dwattr $C$DW$151, DW_AT_name("ui32Port") .dwattr $C$DW$151, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$151, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$151, DW_AT_location[DW_OP_breg13 0] $C$DW$152 .dwtag DW_TAG_variable .dwattr $C$DW$152, DW_AT_name("ui8Pins") .dwattr $C$DW$152, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$152, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$152, DW_AT_location[DW_OP_breg13 4] $C$DW$153 .dwtag DW_TAG_variable .dwattr $C$DW$153, DW_AT_name("ui8Val") .dwattr $C$DW$153, DW_AT_TI_symbol_name("ui8Val") .dwattr $C$DW$153, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$153, DW_AT_location[DW_OP_breg13 5] ;---------------------------------------------------------------------- ; 1153 | // ; 1154 | // Check the arguments. ; 1155 | // ; 1156 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1158 | // ; 1159 | // Write the pins. ; 1160 | // ;---------------------------------------------------------------------- STRB A3, [SP, #5] ; [DPU_V7M3_PIPE] |1152| STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1152| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1152| .dwpsn file "../driverlib/gpio.c",line 1161,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1161 | HWREG(ui32Port + (GPIO_O_DATA + (ui8Pins << 2))) = ui8Val; ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1161| LDR A3, [SP, #0] ; [DPU_V7M3_PIPE] |1161| LDRB A1, [SP, #5] ; [DPU_V7M3_PIPE] |1161| STR A1, [A3, +A2, LSL #2] ; [DPU_V7M3_PIPE] |1161| .dwpsn file "../driverlib/gpio.c",line 1162,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$154 .dwtag DW_TAG_TI_branch .dwattr $C$DW$154, DW_AT_low_pc(0x00) .dwattr $C$DW$154, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$147, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$147, DW_AT_TI_end_line(0x48a) .dwattr $C$DW$147, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$147 .sect ".text" .clink .thumbfunc GPIOPinTypeADC .thumb .global GPIOPinTypeADC $C$DW$155 .dwtag DW_TAG_subprogram .dwattr $C$DW$155, DW_AT_name("GPIOPinTypeADC") .dwattr $C$DW$155, DW_AT_low_pc(GPIOPinTypeADC) .dwattr $C$DW$155, DW_AT_high_pc(0x00) .dwattr $C$DW$155, DW_AT_TI_symbol_name("GPIOPinTypeADC") .dwattr $C$DW$155, DW_AT_external .dwattr $C$DW$155, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$155, DW_AT_TI_begin_line(0x4aa) .dwattr $C$DW$155, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$155, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$155, DW_AT_decl_line(0x4aa) .dwattr $C$DW$155, DW_AT_decl_column(0x01) .dwattr $C$DW$155, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1195,column 1,is_stmt,address GPIOPinTypeADC,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeADC $C$DW$156 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$156, DW_AT_name("ui32Port") .dwattr $C$DW$156, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$156, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$156, DW_AT_location[DW_OP_reg0] $C$DW$157 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$157, DW_AT_name("ui8Pins") .dwattr $C$DW$157, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$157, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$157, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1194 | GPIOPinTypeADC(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeADC * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeADC: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$158 .dwtag DW_TAG_variable .dwattr $C$DW$158, DW_AT_name("ui32Port") .dwattr $C$DW$158, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$158, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$158, DW_AT_location[DW_OP_breg13 0] $C$DW$159 .dwtag DW_TAG_variable .dwattr $C$DW$159, DW_AT_name("ui8Pins") .dwattr $C$DW$159, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$159, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$159, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1196 | // ; 1197 | // Check the arguments. ; 1198 | // ; 1199 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1201 | // ; 1202 | // Make the pin(s) be inputs. ; 1203 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1195| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1195| .dwpsn file "../driverlib/gpio.c",line 1204,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1204 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_IN); ; 1206 | // ; 1207 | // Set the pad(s) for analog operation. ; 1208 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1204| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1204| MOVS A3, #0 ; [DPU_V7M3_PIPE] |1204| $C$DW$160 .dwtag DW_TAG_TI_branch .dwattr $C$DW$160, DW_AT_low_pc(0x00) .dwattr $C$DW$160, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$160, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1204| ; CALL OCCURS {GPIODirModeSet } ; [] |1204| .dwpsn file "../driverlib/gpio.c",line 1209,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1209 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, ; 1210 | GPIO_PIN_TYPE_ANALOG); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1209| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1209| MOVS A4, #0 ; [DPU_V7M3_PIPE] |1209| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1209| $C$DW$161 .dwtag DW_TAG_TI_branch .dwattr $C$DW$161, DW_AT_low_pc(0x00) .dwattr $C$DW$161, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$161, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1209| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1209| .dwpsn file "../driverlib/gpio.c",line 1211,column 1,is_stmt,isa 1 $C$DW$162 .dwtag DW_TAG_TI_branch .dwattr $C$DW$162, DW_AT_low_pc(0x00) .dwattr $C$DW$162, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$155, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$155, DW_AT_TI_end_line(0x4bb) .dwattr $C$DW$155, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$155 .sect ".text" .clink .thumbfunc GPIOPinTypeCAN .thumb .global GPIOPinTypeCAN $C$DW$163 .dwtag DW_TAG_subprogram .dwattr $C$DW$163, DW_AT_name("GPIOPinTypeCAN") .dwattr $C$DW$163, DW_AT_low_pc(GPIOPinTypeCAN) .dwattr $C$DW$163, DW_AT_high_pc(0x00) .dwattr $C$DW$163, DW_AT_TI_symbol_name("GPIOPinTypeCAN") .dwattr $C$DW$163, DW_AT_external .dwattr $C$DW$163, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$163, DW_AT_TI_begin_line(0x4de) .dwattr $C$DW$163, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$163, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$163, DW_AT_decl_line(0x4de) .dwattr $C$DW$163, DW_AT_decl_column(0x01) .dwattr $C$DW$163, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1247,column 1,is_stmt,address GPIOPinTypeCAN,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeCAN $C$DW$164 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$164, DW_AT_name("ui32Port") .dwattr $C$DW$164, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$164, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$164, DW_AT_location[DW_OP_reg0] $C$DW$165 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$165, DW_AT_name("ui8Pins") .dwattr $C$DW$165, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$165, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$165, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1246 | GPIOPinTypeCAN(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeCAN * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeCAN: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$166 .dwtag DW_TAG_variable .dwattr $C$DW$166, DW_AT_name("ui32Port") .dwattr $C$DW$166, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$166, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$166, DW_AT_location[DW_OP_breg13 0] $C$DW$167 .dwtag DW_TAG_variable .dwattr $C$DW$167, DW_AT_name("ui8Pins") .dwattr $C$DW$167, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$167, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$167, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1248 | // ; 1249 | // Check the arguments. ; 1250 | // ; 1251 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1253 | // ; 1254 | // Make the pin(s) be inputs. ; 1255 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1247| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1247| .dwpsn file "../driverlib/gpio.c",line 1256,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1256 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1258 | // ; 1259 | // Set the pad(s) for standard push-pull operation. ; 1260 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1256| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1256| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1256| $C$DW$168 .dwtag DW_TAG_TI_branch .dwattr $C$DW$168, DW_AT_low_pc(0x00) .dwattr $C$DW$168, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$168, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1256| ; CALL OCCURS {GPIODirModeSet } ; [] |1256| .dwpsn file "../driverlib/gpio.c",line 1261,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1261 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1261| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1261| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1261| MOVS A3, #102 ; [DPU_V7M3_PIPE] |1261| $C$DW$169 .dwtag DW_TAG_TI_branch .dwattr $C$DW$169, DW_AT_low_pc(0x00) .dwattr $C$DW$169, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$169, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1261| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1261| .dwpsn file "../driverlib/gpio.c",line 1262,column 1,is_stmt,isa 1 $C$DW$170 .dwtag DW_TAG_TI_branch .dwattr $C$DW$170, DW_AT_low_pc(0x00) .dwattr $C$DW$170, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$163, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$163, DW_AT_TI_end_line(0x4ee) .dwattr $C$DW$163, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$163 .sect ".text" .clink .thumbfunc GPIOPinTypeComparator .thumb .global GPIOPinTypeComparator $C$DW$171 .dwtag DW_TAG_subprogram .dwattr $C$DW$171, DW_AT_name("GPIOPinTypeComparator") .dwattr $C$DW$171, DW_AT_low_pc(GPIOPinTypeComparator) .dwattr $C$DW$171, DW_AT_high_pc(0x00) .dwattr $C$DW$171, DW_AT_TI_symbol_name("GPIOPinTypeComparator") .dwattr $C$DW$171, DW_AT_external .dwattr $C$DW$171, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$171, DW_AT_TI_begin_line(0x510) .dwattr $C$DW$171, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$171, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$171, DW_AT_decl_line(0x510) .dwattr $C$DW$171, DW_AT_decl_column(0x01) .dwattr $C$DW$171, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1297,column 1,is_stmt,address GPIOPinTypeComparator,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeComparator $C$DW$172 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$172, DW_AT_name("ui32Port") .dwattr $C$DW$172, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$172, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$172, DW_AT_location[DW_OP_reg0] $C$DW$173 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$173, DW_AT_name("ui8Pins") .dwattr $C$DW$173, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$173, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$173, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1296 | GPIOPinTypeComparator(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeComparator * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeComparator: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$174 .dwtag DW_TAG_variable .dwattr $C$DW$174, DW_AT_name("ui32Port") .dwattr $C$DW$174, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$174, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$174, DW_AT_location[DW_OP_breg13 0] $C$DW$175 .dwtag DW_TAG_variable .dwattr $C$DW$175, DW_AT_name("ui8Pins") .dwattr $C$DW$175, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$175, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$175, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1298 | // ; 1299 | // Check the arguments. ; 1300 | // ; 1301 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1303 | // ; 1304 | // Make the pin(s) be inputs. ; 1305 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1297| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1297| .dwpsn file "../driverlib/gpio.c",line 1306,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1306 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_IN); ; 1308 | // ; 1309 | // Set the pad(s) for analog operation. ; 1310 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1306| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1306| MOVS A3, #0 ; [DPU_V7M3_PIPE] |1306| $C$DW$176 .dwtag DW_TAG_TI_branch .dwattr $C$DW$176, DW_AT_low_pc(0x00) .dwattr $C$DW$176, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$176, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1306| ; CALL OCCURS {GPIODirModeSet } ; [] |1306| .dwpsn file "../driverlib/gpio.c",line 1311,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1311 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, ; 1312 | GPIO_PIN_TYPE_ANALOG); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1311| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1311| MOVS A4, #0 ; [DPU_V7M3_PIPE] |1311| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1311| $C$DW$177 .dwtag DW_TAG_TI_branch .dwattr $C$DW$177, DW_AT_low_pc(0x00) .dwattr $C$DW$177, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$177, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1311| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1311| .dwpsn file "../driverlib/gpio.c",line 1313,column 1,is_stmt,isa 1 $C$DW$178 .dwtag DW_TAG_TI_branch .dwattr $C$DW$178, DW_AT_low_pc(0x00) .dwattr $C$DW$178, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$171, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$171, DW_AT_TI_end_line(0x521) .dwattr $C$DW$171, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$171 .sect ".text" .clink .thumbfunc GPIOPinTypeComparatorOutput .thumb .global GPIOPinTypeComparatorOutput $C$DW$179 .dwtag DW_TAG_subprogram .dwattr $C$DW$179, DW_AT_name("GPIOPinTypeComparatorOutput") .dwattr $C$DW$179, DW_AT_low_pc(GPIOPinTypeComparatorOutput) .dwattr $C$DW$179, DW_AT_high_pc(0x00) .dwattr $C$DW$179, DW_AT_TI_symbol_name("GPIOPinTypeComparatorOutput") .dwattr $C$DW$179, DW_AT_external .dwattr $C$DW$179, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$179, DW_AT_TI_begin_line(0x535) .dwattr $C$DW$179, DW_AT_TI_begin_column(0x06) .dwattr $C$DW$179, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$179, DW_AT_decl_line(0x535) .dwattr $C$DW$179, DW_AT_decl_column(0x06) .dwattr $C$DW$179, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1334,column 1,is_stmt,address GPIOPinTypeComparatorOutput,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeComparatorOutput $C$DW$180 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$180, DW_AT_name("ui32Port") .dwattr $C$DW$180, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$180, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$180, DW_AT_location[DW_OP_reg0] $C$DW$181 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$181, DW_AT_name("ui8Pins") .dwattr $C$DW$181, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$181, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$181, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1333 | void GPIOPinTypeComparatorOutput(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeComparatorOutput * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeComparatorOutput: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$182 .dwtag DW_TAG_variable .dwattr $C$DW$182, DW_AT_name("ui32Port") .dwattr $C$DW$182, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$182, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$182, DW_AT_location[DW_OP_breg13 0] $C$DW$183 .dwtag DW_TAG_variable .dwattr $C$DW$183, DW_AT_name("ui8Pins") .dwattr $C$DW$183, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$183, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$183, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1335 | // ; 1336 | // Check the arguments. ; 1337 | // ; 1338 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1340 | // ; 1341 | // Make the pin(s) be inputs. ; 1342 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1334| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1334| .dwpsn file "../driverlib/gpio.c",line 1343,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1343 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1345 | // ; 1346 | // Set the pad(s) for standard push-pull operation. ; 1347 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1343| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1343| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1343| $C$DW$184 .dwtag DW_TAG_TI_branch .dwattr $C$DW$184, DW_AT_low_pc(0x00) .dwattr $C$DW$184, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$184, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1343| ; CALL OCCURS {GPIODirModeSet } ; [] |1343| .dwpsn file "../driverlib/gpio.c",line 1348,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1348 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1348| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1348| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1348| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1348| $C$DW$185 .dwtag DW_TAG_TI_branch .dwattr $C$DW$185, DW_AT_low_pc(0x00) .dwattr $C$DW$185, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$185, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1348| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1348| .dwpsn file "../driverlib/gpio.c",line 1349,column 1,is_stmt,isa 1 $C$DW$186 .dwtag DW_TAG_TI_branch .dwattr $C$DW$186, DW_AT_low_pc(0x00) .dwattr $C$DW$186, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$179, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$179, DW_AT_TI_end_line(0x545) .dwattr $C$DW$179, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$179 .sect ".text" .clink .thumbfunc GPIOPinTypeDIVSCLK .thumb .global GPIOPinTypeDIVSCLK $C$DW$187 .dwtag DW_TAG_subprogram .dwattr $C$DW$187, DW_AT_name("GPIOPinTypeDIVSCLK") .dwattr $C$DW$187, DW_AT_low_pc(GPIOPinTypeDIVSCLK) .dwattr $C$DW$187, DW_AT_high_pc(0x00) .dwattr $C$DW$187, DW_AT_TI_symbol_name("GPIOPinTypeDIVSCLK") .dwattr $C$DW$187, DW_AT_external .dwattr $C$DW$187, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$187, DW_AT_TI_begin_line(0x559) .dwattr $C$DW$187, DW_AT_TI_begin_column(0x06) .dwattr $C$DW$187, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$187, DW_AT_decl_line(0x559) .dwattr $C$DW$187, DW_AT_decl_column(0x06) .dwattr $C$DW$187, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1370,column 1,is_stmt,address GPIOPinTypeDIVSCLK,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeDIVSCLK $C$DW$188 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$188, DW_AT_name("ui32Port") .dwattr $C$DW$188, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$188, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$188, DW_AT_location[DW_OP_reg0] $C$DW$189 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$189, DW_AT_name("ui8Pins") .dwattr $C$DW$189, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$189, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$189, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1369 | void GPIOPinTypeDIVSCLK(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeDIVSCLK * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeDIVSCLK: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$190 .dwtag DW_TAG_variable .dwattr $C$DW$190, DW_AT_name("ui32Port") .dwattr $C$DW$190, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$190, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$190, DW_AT_location[DW_OP_breg13 0] $C$DW$191 .dwtag DW_TAG_variable .dwattr $C$DW$191, DW_AT_name("ui8Pins") .dwattr $C$DW$191, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$191, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$191, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1371 | // ; 1372 | // Check the arguments. ; 1373 | // ; 1374 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1376 | // ; 1377 | // Make the pin(s) be inputs. ; 1378 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1370| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1370| .dwpsn file "../driverlib/gpio.c",line 1379,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1379 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1381 | // ; 1382 | // Set the pad(s) for standard push-pull operation. ; 1383 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1379| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1379| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1379| $C$DW$192 .dwtag DW_TAG_TI_branch .dwattr $C$DW$192, DW_AT_low_pc(0x00) .dwattr $C$DW$192, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$192, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1379| ; CALL OCCURS {GPIODirModeSet } ; [] |1379| .dwpsn file "../driverlib/gpio.c",line 1384,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1384 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1384| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1384| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1384| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1384| $C$DW$193 .dwtag DW_TAG_TI_branch .dwattr $C$DW$193, DW_AT_low_pc(0x00) .dwattr $C$DW$193, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$193, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1384| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1384| .dwpsn file "../driverlib/gpio.c",line 1385,column 1,is_stmt,isa 1 $C$DW$194 .dwtag DW_TAG_TI_branch .dwattr $C$DW$194, DW_AT_low_pc(0x00) .dwattr $C$DW$194, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$187, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$187, DW_AT_TI_end_line(0x569) .dwattr $C$DW$187, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$187 .sect ".text" .clink .thumbfunc GPIOPinTypeEPI .thumb .global GPIOPinTypeEPI $C$DW$195 .dwtag DW_TAG_subprogram .dwattr $C$DW$195, DW_AT_name("GPIOPinTypeEPI") .dwattr $C$DW$195, DW_AT_low_pc(GPIOPinTypeEPI) .dwattr $C$DW$195, DW_AT_high_pc(0x00) .dwattr $C$DW$195, DW_AT_TI_symbol_name("GPIOPinTypeEPI") .dwattr $C$DW$195, DW_AT_external .dwattr $C$DW$195, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$195, DW_AT_TI_begin_line(0x58e) .dwattr $C$DW$195, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$195, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$195, DW_AT_decl_line(0x58e) .dwattr $C$DW$195, DW_AT_decl_column(0x01) .dwattr $C$DW$195, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1423,column 1,is_stmt,address GPIOPinTypeEPI,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeEPI $C$DW$196 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$196, DW_AT_name("ui32Port") .dwattr $C$DW$196, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$196, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$196, DW_AT_location[DW_OP_reg0] $C$DW$197 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$197, DW_AT_name("ui8Pins") .dwattr $C$DW$197, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$197, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$197, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1422 | GPIOPinTypeEPI(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeEPI * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeEPI: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$198 .dwtag DW_TAG_variable .dwattr $C$DW$198, DW_AT_name("ui32Port") .dwattr $C$DW$198, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$198, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$198, DW_AT_location[DW_OP_breg13 0] $C$DW$199 .dwtag DW_TAG_variable .dwattr $C$DW$199, DW_AT_name("ui8Pins") .dwattr $C$DW$199, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$199, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$199, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1424 | // ; 1425 | // Check the arguments. ; 1426 | // ; 1427 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1429 | // ; 1430 | // Make the pin(s) be peripheral controlled. ; 1431 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1423| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1423| .dwpsn file "../driverlib/gpio.c",line 1432,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1432 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1434 | // ; 1435 | // Set the pad(s) for standard push-pull operation. ; 1436 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1432| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1432| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1432| $C$DW$200 .dwtag DW_TAG_TI_branch .dwattr $C$DW$200, DW_AT_low_pc(0x00) .dwattr $C$DW$200, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$200, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1432| ; CALL OCCURS {GPIODirModeSet } ; [] |1432| .dwpsn file "../driverlib/gpio.c",line 1437,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1437 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1437| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1437| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1437| MOVS A3, #102 ; [DPU_V7M3_PIPE] |1437| $C$DW$201 .dwtag DW_TAG_TI_branch .dwattr $C$DW$201, DW_AT_low_pc(0x00) .dwattr $C$DW$201, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$201, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1437| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1437| .dwpsn file "../driverlib/gpio.c",line 1438,column 1,is_stmt,isa 1 $C$DW$202 .dwtag DW_TAG_TI_branch .dwattr $C$DW$202, DW_AT_low_pc(0x00) .dwattr $C$DW$202, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$195, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$195, DW_AT_TI_end_line(0x59e) .dwattr $C$DW$195, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$195 .sect ".text" .clink .thumbfunc GPIOPinTypeEthernetLED .thumb .global GPIOPinTypeEthernetLED $C$DW$203 .dwtag DW_TAG_subprogram .dwattr $C$DW$203, DW_AT_name("GPIOPinTypeEthernetLED") .dwattr $C$DW$203, DW_AT_low_pc(GPIOPinTypeEthernetLED) .dwattr $C$DW$203, DW_AT_high_pc(0x00) .dwattr $C$DW$203, DW_AT_TI_symbol_name("GPIOPinTypeEthernetLED") .dwattr $C$DW$203, DW_AT_external .dwattr $C$DW$203, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$203, DW_AT_TI_begin_line(0x5c0) .dwattr $C$DW$203, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$203, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$203, DW_AT_decl_line(0x5c0) .dwattr $C$DW$203, DW_AT_decl_column(0x01) .dwattr $C$DW$203, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1473,column 1,is_stmt,address GPIOPinTypeEthernetLED,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeEthernetLED $C$DW$204 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$204, DW_AT_name("ui32Port") .dwattr $C$DW$204, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$204, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$204, DW_AT_location[DW_OP_reg0] $C$DW$205 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$205, DW_AT_name("ui8Pins") .dwattr $C$DW$205, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$205, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$205, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1472 | GPIOPinTypeEthernetLED(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeEthernetLED * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeEthernetLED: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$206 .dwtag DW_TAG_variable .dwattr $C$DW$206, DW_AT_name("ui32Port") .dwattr $C$DW$206, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$206, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$206, DW_AT_location[DW_OP_breg13 0] $C$DW$207 .dwtag DW_TAG_variable .dwattr $C$DW$207, DW_AT_name("ui8Pins") .dwattr $C$DW$207, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$207, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$207, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1474 | // ; 1475 | // Check the arguments. ; 1476 | // ; 1477 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1479 | // ; 1480 | // Make the pin(s) be peripheral controlled. ; 1481 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1473| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1473| .dwpsn file "../driverlib/gpio.c",line 1482,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1482 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1484 | // ; 1485 | // Set the pad(s) for standard push-pull operation. ; 1486 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1482| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1482| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1482| $C$DW$208 .dwtag DW_TAG_TI_branch .dwattr $C$DW$208, DW_AT_low_pc(0x00) .dwattr $C$DW$208, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$208, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1482| ; CALL OCCURS {GPIODirModeSet } ; [] |1482| .dwpsn file "../driverlib/gpio.c",line 1487,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1487 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1487| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1487| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1487| MOVS A3, #102 ; [DPU_V7M3_PIPE] |1487| $C$DW$209 .dwtag DW_TAG_TI_branch .dwattr $C$DW$209, DW_AT_low_pc(0x00) .dwattr $C$DW$209, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$209, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1487| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1487| .dwpsn file "../driverlib/gpio.c",line 1488,column 1,is_stmt,isa 1 $C$DW$210 .dwtag DW_TAG_TI_branch .dwattr $C$DW$210, DW_AT_low_pc(0x00) .dwattr $C$DW$210, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$203, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$203, DW_AT_TI_end_line(0x5d0) .dwattr $C$DW$203, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$203 .sect ".text" .clink .thumbfunc GPIOPinTypeEthernetMII .thumb .global GPIOPinTypeEthernetMII $C$DW$211 .dwtag DW_TAG_subprogram .dwattr $C$DW$211, DW_AT_name("GPIOPinTypeEthernetMII") .dwattr $C$DW$211, DW_AT_low_pc(GPIOPinTypeEthernetMII) .dwattr $C$DW$211, DW_AT_high_pc(0x00) .dwattr $C$DW$211, DW_AT_TI_symbol_name("GPIOPinTypeEthernetMII") .dwattr $C$DW$211, DW_AT_external .dwattr $C$DW$211, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$211, DW_AT_TI_begin_line(0x5f2) .dwattr $C$DW$211, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$211, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$211, DW_AT_decl_line(0x5f2) .dwattr $C$DW$211, DW_AT_decl_column(0x01) .dwattr $C$DW$211, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1523,column 1,is_stmt,address GPIOPinTypeEthernetMII,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeEthernetMII $C$DW$212 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$212, DW_AT_name("ui32Port") .dwattr $C$DW$212, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$212, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$212, DW_AT_location[DW_OP_reg0] $C$DW$213 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$213, DW_AT_name("ui8Pins") .dwattr $C$DW$213, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$213, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$213, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1522 | GPIOPinTypeEthernetMII(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeEthernetMII * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeEthernetMII: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$214 .dwtag DW_TAG_variable .dwattr $C$DW$214, DW_AT_name("ui32Port") .dwattr $C$DW$214, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$214, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$214, DW_AT_location[DW_OP_breg13 0] $C$DW$215 .dwtag DW_TAG_variable .dwattr $C$DW$215, DW_AT_name("ui8Pins") .dwattr $C$DW$215, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$215, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$215, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1524 | // ; 1525 | // Check the arguments. ; 1526 | // ; 1527 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1529 | // ; 1530 | // Make the pin(s) be peripheral controlled. ; 1531 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1523| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1523| .dwpsn file "../driverlib/gpio.c",line 1532,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1532 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1534 | // ; 1535 | // Set the pad(s) for standard push-pull operation. ; 1536 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1532| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1532| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1532| $C$DW$216 .dwtag DW_TAG_TI_branch .dwattr $C$DW$216, DW_AT_low_pc(0x00) .dwattr $C$DW$216, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$216, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1532| ; CALL OCCURS {GPIODirModeSet } ; [] |1532| .dwpsn file "../driverlib/gpio.c",line 1537,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1537 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1537| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1537| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1537| MOVS A3, #102 ; [DPU_V7M3_PIPE] |1537| $C$DW$217 .dwtag DW_TAG_TI_branch .dwattr $C$DW$217, DW_AT_low_pc(0x00) .dwattr $C$DW$217, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$217, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1537| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1537| .dwpsn file "../driverlib/gpio.c",line 1538,column 1,is_stmt,isa 1 $C$DW$218 .dwtag DW_TAG_TI_branch .dwattr $C$DW$218, DW_AT_low_pc(0x00) .dwattr $C$DW$218, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$211, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$211, DW_AT_TI_end_line(0x602) .dwattr $C$DW$211, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$211 .sect ".text" .clink .thumbfunc GPIOPinTypeGPIOInput .thumb .global GPIOPinTypeGPIOInput $C$DW$219 .dwtag DW_TAG_subprogram .dwattr $C$DW$219, DW_AT_name("GPIOPinTypeGPIOInput") .dwattr $C$DW$219, DW_AT_low_pc(GPIOPinTypeGPIOInput) .dwattr $C$DW$219, DW_AT_high_pc(0x00) .dwattr $C$DW$219, DW_AT_TI_symbol_name("GPIOPinTypeGPIOInput") .dwattr $C$DW$219, DW_AT_external .dwattr $C$DW$219, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$219, DW_AT_TI_begin_line(0x61f) .dwattr $C$DW$219, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$219, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$219, DW_AT_decl_line(0x61f) .dwattr $C$DW$219, DW_AT_decl_column(0x01) .dwattr $C$DW$219, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1568,column 1,is_stmt,address GPIOPinTypeGPIOInput,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeGPIOInput $C$DW$220 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$220, DW_AT_name("ui32Port") .dwattr $C$DW$220, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$220, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$220, DW_AT_location[DW_OP_reg0] $C$DW$221 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$221, DW_AT_name("ui8Pins") .dwattr $C$DW$221, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$221, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$221, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1567 | GPIOPinTypeGPIOInput(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeGPIOInput * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeGPIOInput: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$222 .dwtag DW_TAG_variable .dwattr $C$DW$222, DW_AT_name("ui32Port") .dwattr $C$DW$222, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$222, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$222, DW_AT_location[DW_OP_breg13 0] $C$DW$223 .dwtag DW_TAG_variable .dwattr $C$DW$223, DW_AT_name("ui8Pins") .dwattr $C$DW$223, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$223, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$223, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1569 | // ; 1570 | // Check the arguments. ; 1571 | // ; 1572 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1574 | // ; 1575 | // Make the pin(s) be inputs. ; 1576 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1568| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1568| .dwpsn file "../driverlib/gpio.c",line 1577,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1577 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_IN); ; 1579 | // ; 1580 | // Set the pad(s) for standard push-pull operation. ; 1581 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1577| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1577| MOVS A3, #0 ; [DPU_V7M3_PIPE] |1577| $C$DW$224 .dwtag DW_TAG_TI_branch .dwattr $C$DW$224, DW_AT_low_pc(0x00) .dwattr $C$DW$224, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$224, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1577| ; CALL OCCURS {GPIODirModeSet } ; [] |1577| .dwpsn file "../driverlib/gpio.c",line 1582,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1582 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1582| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1582| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1582| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1582| $C$DW$225 .dwtag DW_TAG_TI_branch .dwattr $C$DW$225, DW_AT_low_pc(0x00) .dwattr $C$DW$225, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$225, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1582| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1582| .dwpsn file "../driverlib/gpio.c",line 1583,column 1,is_stmt,isa 1 $C$DW$226 .dwtag DW_TAG_TI_branch .dwattr $C$DW$226, DW_AT_low_pc(0x00) .dwattr $C$DW$226, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$219, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$219, DW_AT_TI_end_line(0x62f) .dwattr $C$DW$219, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$219 .sect ".text" .clink .thumbfunc GPIOPinTypeGPIOOutput .thumb .global GPIOPinTypeGPIOOutput $C$DW$227 .dwtag DW_TAG_subprogram .dwattr $C$DW$227, DW_AT_name("GPIOPinTypeGPIOOutput") .dwattr $C$DW$227, DW_AT_low_pc(GPIOPinTypeGPIOOutput) .dwattr $C$DW$227, DW_AT_high_pc(0x00) .dwattr $C$DW$227, DW_AT_TI_symbol_name("GPIOPinTypeGPIOOutput") .dwattr $C$DW$227, DW_AT_external .dwattr $C$DW$227, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$227, DW_AT_TI_begin_line(0x64c) .dwattr $C$DW$227, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$227, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$227, DW_AT_decl_line(0x64c) .dwattr $C$DW$227, DW_AT_decl_column(0x01) .dwattr $C$DW$227, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1613,column 1,is_stmt,address GPIOPinTypeGPIOOutput,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeGPIOOutput $C$DW$228 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$228, DW_AT_name("ui32Port") .dwattr $C$DW$228, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$228, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$228, DW_AT_location[DW_OP_reg0] $C$DW$229 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$229, DW_AT_name("ui8Pins") .dwattr $C$DW$229, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$229, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$229, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1612 | GPIOPinTypeGPIOOutput(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeGPIOOutput * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeGPIOOutput: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$230 .dwtag DW_TAG_variable .dwattr $C$DW$230, DW_AT_name("ui32Port") .dwattr $C$DW$230, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$230, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$230, DW_AT_location[DW_OP_breg13 0] $C$DW$231 .dwtag DW_TAG_variable .dwattr $C$DW$231, DW_AT_name("ui8Pins") .dwattr $C$DW$231, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$231, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$231, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1614 | // ; 1615 | // Check the arguments. ; 1616 | // ; 1617 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1619 | // ; 1620 | // Set the pad(s) for standard push-pull operation. ; 1621 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1613| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1613| .dwpsn file "../driverlib/gpio.c",line 1622,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1622 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ; 1624 | // ; 1625 | // Make the pin(s) be outputs. ; 1626 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1622| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1622| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1622| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1622| $C$DW$232 .dwtag DW_TAG_TI_branch .dwattr $C$DW$232, DW_AT_low_pc(0x00) .dwattr $C$DW$232, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$232, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1622| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1622| .dwpsn file "../driverlib/gpio.c",line 1627,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1627 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_OUT); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1627| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1627| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1627| $C$DW$233 .dwtag DW_TAG_TI_branch .dwattr $C$DW$233, DW_AT_low_pc(0x00) .dwattr $C$DW$233, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$233, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1627| ; CALL OCCURS {GPIODirModeSet } ; [] |1627| .dwpsn file "../driverlib/gpio.c",line 1628,column 1,is_stmt,isa 1 $C$DW$234 .dwtag DW_TAG_TI_branch .dwattr $C$DW$234, DW_AT_low_pc(0x00) .dwattr $C$DW$234, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$227, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$227, DW_AT_TI_end_line(0x65c) .dwattr $C$DW$227, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$227 ;****************************************************************************** ;* CONSTANT TABLE * ;****************************************************************************** .sect ".text" .align 4 ||$C$CON9||: .bits 268763136,32 .sect ".text" .clink .thumbfunc GPIOPinTypeGPIOOutputOD .thumb .global GPIOPinTypeGPIOOutputOD $C$DW$235 .dwtag DW_TAG_subprogram .dwattr $C$DW$235, DW_AT_name("GPIOPinTypeGPIOOutputOD") .dwattr $C$DW$235, DW_AT_low_pc(GPIOPinTypeGPIOOutputOD) .dwattr $C$DW$235, DW_AT_high_pc(0x00) .dwattr $C$DW$235, DW_AT_TI_symbol_name("GPIOPinTypeGPIOOutputOD") .dwattr $C$DW$235, DW_AT_external .dwattr $C$DW$235, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$235, DW_AT_TI_begin_line(0x679) .dwattr $C$DW$235, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$235, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$235, DW_AT_decl_line(0x679) .dwattr $C$DW$235, DW_AT_decl_column(0x01) .dwattr $C$DW$235, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1658,column 1,is_stmt,address GPIOPinTypeGPIOOutputOD,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeGPIOOutputOD $C$DW$236 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$236, DW_AT_name("ui32Port") .dwattr $C$DW$236, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$236, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$236, DW_AT_location[DW_OP_reg0] $C$DW$237 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$237, DW_AT_name("ui8Pins") .dwattr $C$DW$237, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$237, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$237, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1657 | GPIOPinTypeGPIOOutputOD(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeGPIOOutputOD * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeGPIOOutputOD: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$238 .dwtag DW_TAG_variable .dwattr $C$DW$238, DW_AT_name("ui32Port") .dwattr $C$DW$238, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$238, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$238, DW_AT_location[DW_OP_breg13 0] $C$DW$239 .dwtag DW_TAG_variable .dwattr $C$DW$239, DW_AT_name("ui8Pins") .dwattr $C$DW$239, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$239, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$239, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1659 | // ; 1660 | // Check the arguments. ; 1661 | // ; 1662 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1664 | // ; 1665 | // Set the pad(s) for standard push-pull operation. ; 1666 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1658| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1658| .dwpsn file "../driverlib/gpio.c",line 1667,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1667 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_OD ; | ); ; 1669 | // ; 1670 | // Make the pin(s) be outputs. ; 1671 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1667| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1667| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1667| MOVS A4, #9 ; [DPU_V7M3_PIPE] |1667| $C$DW$240 .dwtag DW_TAG_TI_branch .dwattr $C$DW$240, DW_AT_low_pc(0x00) .dwattr $C$DW$240, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$240, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1667| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1667| .dwpsn file "../driverlib/gpio.c",line 1672,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1672 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_OUT); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1672| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1672| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1672| $C$DW$241 .dwtag DW_TAG_TI_branch .dwattr $C$DW$241, DW_AT_low_pc(0x00) .dwattr $C$DW$241, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$241, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1672| ; CALL OCCURS {GPIODirModeSet } ; [] |1672| .dwpsn file "../driverlib/gpio.c",line 1673,column 1,is_stmt,isa 1 $C$DW$242 .dwtag DW_TAG_TI_branch .dwattr $C$DW$242, DW_AT_low_pc(0x00) .dwattr $C$DW$242, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$235, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$235, DW_AT_TI_end_line(0x689) .dwattr $C$DW$235, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$235 .sect ".text" .clink .thumbfunc GPIOPinTypeHibernateRTCCLK .thumb .global GPIOPinTypeHibernateRTCCLK $C$DW$243 .dwtag DW_TAG_subprogram .dwattr $C$DW$243, DW_AT_name("GPIOPinTypeHibernateRTCCLK") .dwattr $C$DW$243, DW_AT_low_pc(GPIOPinTypeHibernateRTCCLK) .dwattr $C$DW$243, DW_AT_high_pc(0x00) .dwattr $C$DW$243, DW_AT_TI_symbol_name("GPIOPinTypeHibernateRTCCLK") .dwattr $C$DW$243, DW_AT_external .dwattr $C$DW$243, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$243, DW_AT_TI_begin_line(0x69d) .dwattr $C$DW$243, DW_AT_TI_begin_column(0x06) .dwattr $C$DW$243, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$243, DW_AT_decl_line(0x69d) .dwattr $C$DW$243, DW_AT_decl_column(0x06) .dwattr $C$DW$243, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1694,column 1,is_stmt,address GPIOPinTypeHibernateRTCCLK,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeHibernateRTCCLK $C$DW$244 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$244, DW_AT_name("ui32Port") .dwattr $C$DW$244, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$244, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$244, DW_AT_location[DW_OP_reg0] $C$DW$245 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$245, DW_AT_name("ui8Pins") .dwattr $C$DW$245, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$245, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$245, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1693 | void GPIOPinTypeHibernateRTCCLK(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeHibernateRTCCLK * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeHibernateRTCCLK: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$246 .dwtag DW_TAG_variable .dwattr $C$DW$246, DW_AT_name("ui32Port") .dwattr $C$DW$246, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$246, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$246, DW_AT_location[DW_OP_breg13 0] $C$DW$247 .dwtag DW_TAG_variable .dwattr $C$DW$247, DW_AT_name("ui8Pins") .dwattr $C$DW$247, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$247, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$247, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1695 | // ; 1696 | // Check the arguments. ; 1697 | // ; 1698 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1700 | // ; 1701 | // Make the pin(s) be inputs. ; 1702 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1694| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1694| .dwpsn file "../driverlib/gpio.c",line 1703,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1703 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1705 | // ; 1706 | // Set the pad(s) for standard push-pull operation. ; 1707 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1703| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1703| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1703| $C$DW$248 .dwtag DW_TAG_TI_branch .dwattr $C$DW$248, DW_AT_low_pc(0x00) .dwattr $C$DW$248, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$248, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1703| ; CALL OCCURS {GPIODirModeSet } ; [] |1703| .dwpsn file "../driverlib/gpio.c",line 1708,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1708 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1708| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1708| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1708| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1708| $C$DW$249 .dwtag DW_TAG_TI_branch .dwattr $C$DW$249, DW_AT_low_pc(0x00) .dwattr $C$DW$249, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$249, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1708| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1708| .dwpsn file "../driverlib/gpio.c",line 1709,column 1,is_stmt,isa 1 $C$DW$250 .dwtag DW_TAG_TI_branch .dwattr $C$DW$250, DW_AT_low_pc(0x00) .dwattr $C$DW$250, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$243, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$243, DW_AT_TI_end_line(0x6ad) .dwattr $C$DW$243, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$243 .sect ".text" .clink .thumbfunc GPIOPinTypeI2C .thumb .global GPIOPinTypeI2C $C$DW$251 .dwtag DW_TAG_subprogram .dwattr $C$DW$251, DW_AT_name("GPIOPinTypeI2C") .dwattr $C$DW$251, DW_AT_low_pc(GPIOPinTypeI2C) .dwattr $C$DW$251, DW_AT_high_pc(0x00) .dwattr $C$DW$251, DW_AT_TI_symbol_name("GPIOPinTypeI2C") .dwattr $C$DW$251, DW_AT_external .dwattr $C$DW$251, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$251, DW_AT_TI_begin_line(0x6cf) .dwattr $C$DW$251, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$251, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$251, DW_AT_decl_line(0x6cf) .dwattr $C$DW$251, DW_AT_decl_column(0x01) .dwattr $C$DW$251, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1744,column 1,is_stmt,address GPIOPinTypeI2C,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeI2C $C$DW$252 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$252, DW_AT_name("ui32Port") .dwattr $C$DW$252, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$252, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$252, DW_AT_location[DW_OP_reg0] $C$DW$253 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$253, DW_AT_name("ui8Pins") .dwattr $C$DW$253, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$253, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$253, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1743 | GPIOPinTypeI2C(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeI2C * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeI2C: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$254 .dwtag DW_TAG_variable .dwattr $C$DW$254, DW_AT_name("ui32Port") .dwattr $C$DW$254, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$254, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$254, DW_AT_location[DW_OP_breg13 0] $C$DW$255 .dwtag DW_TAG_variable .dwattr $C$DW$255, DW_AT_name("ui8Pins") .dwattr $C$DW$255, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$255, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$255, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1745 | // ; 1746 | // Check the arguments. ; 1747 | // ; 1748 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1750 | // ; 1751 | // Make the pin(s) be peripheral controlled. ; 1752 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1744| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1744| .dwpsn file "../driverlib/gpio.c",line 1753,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1753 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1755 | // ; 1756 | // Set the pad(s) for open-drain operation with a weak pull-up. ; 1757 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1753| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1753| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1753| $C$DW$256 .dwtag DW_TAG_TI_branch .dwattr $C$DW$256, DW_AT_low_pc(0x00) .dwattr $C$DW$256, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$256, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1753| ; CALL OCCURS {GPIODirModeSet } ; [] |1753| .dwpsn file "../driverlib/gpio.c",line 1758,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1758 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_OD ; | ); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1758| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1758| MOVS A4, #9 ; [DPU_V7M3_PIPE] |1758| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1758| $C$DW$257 .dwtag DW_TAG_TI_branch .dwattr $C$DW$257, DW_AT_low_pc(0x00) .dwattr $C$DW$257, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$257, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1758| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1758| .dwpsn file "../driverlib/gpio.c",line 1759,column 1,is_stmt,isa 1 $C$DW$258 .dwtag DW_TAG_TI_branch .dwattr $C$DW$258, DW_AT_low_pc(0x00) .dwattr $C$DW$258, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$251, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$251, DW_AT_TI_end_line(0x6df) .dwattr $C$DW$251, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$251 .sect ".text" .clink .thumbfunc GPIOPinTypeI2CSCL .thumb .global GPIOPinTypeI2CSCL $C$DW$259 .dwtag DW_TAG_subprogram .dwattr $C$DW$259, DW_AT_name("GPIOPinTypeI2CSCL") .dwattr $C$DW$259, DW_AT_low_pc(GPIOPinTypeI2CSCL) .dwattr $C$DW$259, DW_AT_high_pc(0x00) .dwattr $C$DW$259, DW_AT_TI_symbol_name("GPIOPinTypeI2CSCL") .dwattr $C$DW$259, DW_AT_external .dwattr $C$DW$259, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$259, DW_AT_TI_begin_line(0x701) .dwattr $C$DW$259, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$259, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$259, DW_AT_decl_line(0x701) .dwattr $C$DW$259, DW_AT_decl_column(0x01) .dwattr $C$DW$259, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1794,column 1,is_stmt,address GPIOPinTypeI2CSCL,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeI2CSCL $C$DW$260 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$260, DW_AT_name("ui32Port") .dwattr $C$DW$260, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$260, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$260, DW_AT_location[DW_OP_reg0] $C$DW$261 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$261, DW_AT_name("ui8Pins") .dwattr $C$DW$261, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$261, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$261, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1793 | GPIOPinTypeI2CSCL(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeI2CSCL * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeI2CSCL: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$262 .dwtag DW_TAG_variable .dwattr $C$DW$262, DW_AT_name("ui32Port") .dwattr $C$DW$262, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$262, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$262, DW_AT_location[DW_OP_breg13 0] $C$DW$263 .dwtag DW_TAG_variable .dwattr $C$DW$263, DW_AT_name("ui8Pins") .dwattr $C$DW$263, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$263, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$263, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1795 | // ; 1796 | // Check the arguments. ; 1797 | // ; 1798 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1800 | // ; 1801 | // Make the pin(s) be peripheral controlled. ; 1802 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1794| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1794| .dwpsn file "../driverlib/gpio.c",line 1803,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1803 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1805 | // ; 1806 | // Set the pad(s) for push-pull operation. ; 1807 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1803| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1803| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1803| $C$DW$264 .dwtag DW_TAG_TI_branch .dwattr $C$DW$264, DW_AT_low_pc(0x00) .dwattr $C$DW$264, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$264, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1803| ; CALL OCCURS {GPIODirModeSet } ; [] |1803| .dwpsn file "../driverlib/gpio.c",line 1808,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1808 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1808| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1808| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1808| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1808| $C$DW$265 .dwtag DW_TAG_TI_branch .dwattr $C$DW$265, DW_AT_low_pc(0x00) .dwattr $C$DW$265, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$265, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1808| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1808| .dwpsn file "../driverlib/gpio.c",line 1809,column 1,is_stmt,isa 1 $C$DW$266 .dwtag DW_TAG_TI_branch .dwattr $C$DW$266, DW_AT_low_pc(0x00) .dwattr $C$DW$266, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$259, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$259, DW_AT_TI_end_line(0x711) .dwattr $C$DW$259, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$259 .sect ".text" .clink .thumbfunc GPIOPinTypeLCD .thumb .global GPIOPinTypeLCD $C$DW$267 .dwtag DW_TAG_subprogram .dwattr $C$DW$267, DW_AT_name("GPIOPinTypeLCD") .dwattr $C$DW$267, DW_AT_low_pc(GPIOPinTypeLCD) .dwattr $C$DW$267, DW_AT_high_pc(0x00) .dwattr $C$DW$267, DW_AT_TI_symbol_name("GPIOPinTypeLCD") .dwattr $C$DW$267, DW_AT_external .dwattr $C$DW$267, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$267, DW_AT_TI_begin_line(0x734) .dwattr $C$DW$267, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$267, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$267, DW_AT_decl_line(0x734) .dwattr $C$DW$267, DW_AT_decl_column(0x01) .dwattr $C$DW$267, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1845,column 1,is_stmt,address GPIOPinTypeLCD,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeLCD $C$DW$268 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$268, DW_AT_name("ui32Port") .dwattr $C$DW$268, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$268, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$268, DW_AT_location[DW_OP_reg0] $C$DW$269 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$269, DW_AT_name("ui8Pins") .dwattr $C$DW$269, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$269, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$269, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1844 | GPIOPinTypeLCD(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeLCD * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeLCD: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$270 .dwtag DW_TAG_variable .dwattr $C$DW$270, DW_AT_name("ui32Port") .dwattr $C$DW$270, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$270, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$270, DW_AT_location[DW_OP_breg13 0] $C$DW$271 .dwtag DW_TAG_variable .dwattr $C$DW$271, DW_AT_name("ui8Pins") .dwattr $C$DW$271, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$271, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$271, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1846 | // ; 1847 | // Check the arguments. ; 1848 | // ; 1849 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1851 | // ; 1852 | // Make the pin(s) be peripheral controlled. ; 1853 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1845| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1845| .dwpsn file "../driverlib/gpio.c",line 1854,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1854 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1856 | // ; 1857 | // Set the pad(s) for standard push-pull operation and beefed up drive. ; 1858 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1854| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1854| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1854| $C$DW$272 .dwtag DW_TAG_TI_branch .dwattr $C$DW$272, DW_AT_low_pc(0x00) .dwattr $C$DW$272, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$272, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1854| ; CALL OCCURS {GPIODirModeSet } ; [] |1854| .dwpsn file "../driverlib/gpio.c",line 1859,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1859 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1859| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1859| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1859| MOVS A3, #102 ; [DPU_V7M3_PIPE] |1859| $C$DW$273 .dwtag DW_TAG_TI_branch .dwattr $C$DW$273, DW_AT_low_pc(0x00) .dwattr $C$DW$273, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$273, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1859| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1859| .dwpsn file "../driverlib/gpio.c",line 1860,column 1,is_stmt,isa 1 $C$DW$274 .dwtag DW_TAG_TI_branch .dwattr $C$DW$274, DW_AT_low_pc(0x00) .dwattr $C$DW$274, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$267, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$267, DW_AT_TI_end_line(0x744) .dwattr $C$DW$267, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$267 .sect ".text" .clink .thumbfunc GPIOPinTypeOneWire .thumb .global GPIOPinTypeOneWire $C$DW$275 .dwtag DW_TAG_subprogram .dwattr $C$DW$275, DW_AT_name("GPIOPinTypeOneWire") .dwattr $C$DW$275, DW_AT_low_pc(GPIOPinTypeOneWire) .dwattr $C$DW$275, DW_AT_high_pc(0x00) .dwattr $C$DW$275, DW_AT_TI_symbol_name("GPIOPinTypeOneWire") .dwattr $C$DW$275, DW_AT_external .dwattr $C$DW$275, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$275, DW_AT_TI_begin_line(0x767) .dwattr $C$DW$275, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$275, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$275, DW_AT_decl_line(0x767) .dwattr $C$DW$275, DW_AT_decl_column(0x01) .dwattr $C$DW$275, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1896,column 1,is_stmt,address GPIOPinTypeOneWire,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeOneWire $C$DW$276 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$276, DW_AT_name("ui32Port") .dwattr $C$DW$276, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$276, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$276, DW_AT_location[DW_OP_reg0] $C$DW$277 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$277, DW_AT_name("ui8Pins") .dwattr $C$DW$277, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$277, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$277, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1895 | GPIOPinTypeOneWire(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeOneWire * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeOneWire: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$278 .dwtag DW_TAG_variable .dwattr $C$DW$278, DW_AT_name("ui32Port") .dwattr $C$DW$278, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$278, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$278, DW_AT_location[DW_OP_breg13 0] $C$DW$279 .dwtag DW_TAG_variable .dwattr $C$DW$279, DW_AT_name("ui8Pins") .dwattr $C$DW$279, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$279, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$279, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1897 | // ; 1898 | // Check the arguments. ; 1899 | // ; 1900 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1902 | // ; 1903 | // Make the pin(s) be peripheral controlled. ; 1904 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1896| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1896| .dwpsn file "../driverlib/gpio.c",line 1905,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1905 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1907 | // ; 1908 | // Set the pad(s) for standard push-pull operation. ; 1909 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1905| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1905| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1905| $C$DW$280 .dwtag DW_TAG_TI_branch .dwattr $C$DW$280, DW_AT_low_pc(0x00) .dwattr $C$DW$280, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$280, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1905| ; CALL OCCURS {GPIODirModeSet } ; [] |1905| .dwpsn file "../driverlib/gpio.c",line 1910,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1910 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1910| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1910| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1910| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1910| $C$DW$281 .dwtag DW_TAG_TI_branch .dwattr $C$DW$281, DW_AT_low_pc(0x00) .dwattr $C$DW$281, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$281, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1910| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1910| .dwpsn file "../driverlib/gpio.c",line 1911,column 1,is_stmt,isa 1 $C$DW$282 .dwtag DW_TAG_TI_branch .dwattr $C$DW$282, DW_AT_low_pc(0x00) .dwattr $C$DW$282, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$275, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$275, DW_AT_TI_end_line(0x777) .dwattr $C$DW$275, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$275 .sect ".text" .clink .thumbfunc GPIOPinTypePWM .thumb .global GPIOPinTypePWM $C$DW$283 .dwtag DW_TAG_subprogram .dwattr $C$DW$283, DW_AT_name("GPIOPinTypePWM") .dwattr $C$DW$283, DW_AT_low_pc(GPIOPinTypePWM) .dwattr $C$DW$283, DW_AT_high_pc(0x00) .dwattr $C$DW$283, DW_AT_TI_symbol_name("GPIOPinTypePWM") .dwattr $C$DW$283, DW_AT_external .dwattr $C$DW$283, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$283, DW_AT_TI_begin_line(0x79a) .dwattr $C$DW$283, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$283, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$283, DW_AT_decl_line(0x79a) .dwattr $C$DW$283, DW_AT_decl_column(0x01) .dwattr $C$DW$283, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1947,column 1,is_stmt,address GPIOPinTypePWM,isa 1 .dwfde $C$DW$CIE, GPIOPinTypePWM $C$DW$284 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$284, DW_AT_name("ui32Port") .dwattr $C$DW$284, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$284, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$284, DW_AT_location[DW_OP_reg0] $C$DW$285 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$285, DW_AT_name("ui8Pins") .dwattr $C$DW$285, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$285, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$285, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1946 | GPIOPinTypePWM(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypePWM * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypePWM: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$286 .dwtag DW_TAG_variable .dwattr $C$DW$286, DW_AT_name("ui32Port") .dwattr $C$DW$286, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$286, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$286, DW_AT_location[DW_OP_breg13 0] $C$DW$287 .dwtag DW_TAG_variable .dwattr $C$DW$287, DW_AT_name("ui8Pins") .dwattr $C$DW$287, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$287, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$287, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1948 | // ; 1949 | // Check the arguments. ; 1950 | // ; 1951 | ASSERT(_GPIOBaseValid(ui32Port)); ; 1953 | // ; 1954 | // Make the pin(s) be peripheral controlled. ; 1955 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1947| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1947| .dwpsn file "../driverlib/gpio.c",line 1956,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1956 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 1958 | // ; 1959 | // Set the pad(s) for standard push-pull operation. ; 1960 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1956| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1956| MOVS A3, #2 ; [DPU_V7M3_PIPE] |1956| $C$DW$288 .dwtag DW_TAG_TI_branch .dwattr $C$DW$288, DW_AT_low_pc(0x00) .dwattr $C$DW$288, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$288, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |1956| ; CALL OCCURS {GPIODirModeSet } ; [] |1956| .dwpsn file "../driverlib/gpio.c",line 1961,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 1961 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1961| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1961| MOVS A4, #8 ; [DPU_V7M3_PIPE] |1961| MOVS A3, #1 ; [DPU_V7M3_PIPE] |1961| $C$DW$289 .dwtag DW_TAG_TI_branch .dwattr $C$DW$289, DW_AT_low_pc(0x00) .dwattr $C$DW$289, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$289, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |1961| ; CALL OCCURS {GPIOPadConfigSet } ; [] |1961| .dwpsn file "../driverlib/gpio.c",line 1962,column 1,is_stmt,isa 1 $C$DW$290 .dwtag DW_TAG_TI_branch .dwattr $C$DW$290, DW_AT_low_pc(0x00) .dwattr $C$DW$290, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$283, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$283, DW_AT_TI_end_line(0x7aa) .dwattr $C$DW$283, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$283 .sect ".text" .clink .thumbfunc GPIOPinTypeQEI .thumb .global GPIOPinTypeQEI $C$DW$291 .dwtag DW_TAG_subprogram .dwattr $C$DW$291, DW_AT_name("GPIOPinTypeQEI") .dwattr $C$DW$291, DW_AT_low_pc(GPIOPinTypeQEI) .dwattr $C$DW$291, DW_AT_high_pc(0x00) .dwattr $C$DW$291, DW_AT_TI_symbol_name("GPIOPinTypeQEI") .dwattr $C$DW$291, DW_AT_external .dwattr $C$DW$291, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$291, DW_AT_TI_begin_line(0x7cd) .dwattr $C$DW$291, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$291, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$291, DW_AT_decl_line(0x7cd) .dwattr $C$DW$291, DW_AT_decl_column(0x01) .dwattr $C$DW$291, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 1998,column 1,is_stmt,address GPIOPinTypeQEI,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeQEI $C$DW$292 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$292, DW_AT_name("ui32Port") .dwattr $C$DW$292, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$292, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$292, DW_AT_location[DW_OP_reg0] $C$DW$293 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$293, DW_AT_name("ui8Pins") .dwattr $C$DW$293, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$293, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$293, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 1997 | GPIOPinTypeQEI(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeQEI * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeQEI: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$294 .dwtag DW_TAG_variable .dwattr $C$DW$294, DW_AT_name("ui32Port") .dwattr $C$DW$294, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$294, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$294, DW_AT_location[DW_OP_breg13 0] $C$DW$295 .dwtag DW_TAG_variable .dwattr $C$DW$295, DW_AT_name("ui8Pins") .dwattr $C$DW$295, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$295, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$295, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 1999 | // ; 2000 | // Check the arguments. ; 2001 | // ; 2002 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2004 | // ; 2005 | // Make the pin(s) be peripheral controlled. ; 2006 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |1998| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1998| .dwpsn file "../driverlib/gpio.c",line 2007,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2007 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 2009 | // ; 2010 | // Set the pad(s) for standard push-pull operation with a weak pull-up. ; 2011 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2007| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2007| MOVS A3, #2 ; [DPU_V7M3_PIPE] |2007| $C$DW$296 .dwtag DW_TAG_TI_branch .dwattr $C$DW$296, DW_AT_low_pc(0x00) .dwattr $C$DW$296, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$296, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2007| ; CALL OCCURS {GPIODirModeSet } ; [] |2007| .dwpsn file "../driverlib/gpio.c",line 2012,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2012 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, ; 2013 | GPIO_PIN_TYPE_STD_WPU); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2012| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2012| MOVS A4, #10 ; [DPU_V7M3_PIPE] |2012| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2012| $C$DW$297 .dwtag DW_TAG_TI_branch .dwattr $C$DW$297, DW_AT_low_pc(0x00) .dwattr $C$DW$297, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$297, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2012| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2012| .dwpsn file "../driverlib/gpio.c",line 2014,column 1,is_stmt,isa 1 $C$DW$298 .dwtag DW_TAG_TI_branch .dwattr $C$DW$298, DW_AT_low_pc(0x00) .dwattr $C$DW$298, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$291, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$291, DW_AT_TI_end_line(0x7de) .dwattr $C$DW$291, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$291 .sect ".text" .clink .thumbfunc GPIOPinTypeSSI .thumb .global GPIOPinTypeSSI $C$DW$299 .dwtag DW_TAG_subprogram .dwattr $C$DW$299, DW_AT_name("GPIOPinTypeSSI") .dwattr $C$DW$299, DW_AT_low_pc(GPIOPinTypeSSI) .dwattr $C$DW$299, DW_AT_high_pc(0x00) .dwattr $C$DW$299, DW_AT_TI_symbol_name("GPIOPinTypeSSI") .dwattr $C$DW$299, DW_AT_external .dwattr $C$DW$299, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$299, DW_AT_TI_begin_line(0x801) .dwattr $C$DW$299, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$299, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$299, DW_AT_decl_line(0x801) .dwattr $C$DW$299, DW_AT_decl_column(0x01) .dwattr $C$DW$299, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2050,column 1,is_stmt,address GPIOPinTypeSSI,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeSSI $C$DW$300 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$300, DW_AT_name("ui32Port") .dwattr $C$DW$300, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$300, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$300, DW_AT_location[DW_OP_reg0] $C$DW$301 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$301, DW_AT_name("ui8Pins") .dwattr $C$DW$301, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$301, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$301, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2049 | GPIOPinTypeSSI(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeSSI * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeSSI: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$302 .dwtag DW_TAG_variable .dwattr $C$DW$302, DW_AT_name("ui32Port") .dwattr $C$DW$302, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$302, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$302, DW_AT_location[DW_OP_breg13 0] $C$DW$303 .dwtag DW_TAG_variable .dwattr $C$DW$303, DW_AT_name("ui8Pins") .dwattr $C$DW$303, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$303, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$303, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2051 | // ; 2052 | // Check the arguments. ; 2053 | // ; 2054 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2056 | // ; 2057 | // Make the pin(s) be peripheral controlled. ; 2058 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2050| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2050| .dwpsn file "../driverlib/gpio.c",line 2059,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2059 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 2061 | // ; 2062 | // Set the pad(s) for standard push-pull operation. ; 2063 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2059| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2059| MOVS A3, #2 ; [DPU_V7M3_PIPE] |2059| $C$DW$304 .dwtag DW_TAG_TI_branch .dwattr $C$DW$304, DW_AT_low_pc(0x00) .dwattr $C$DW$304, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$304, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2059| ; CALL OCCURS {GPIODirModeSet } ; [] |2059| .dwpsn file "../driverlib/gpio.c",line 2064,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2064 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2064| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2064| MOVS A4, #8 ; [DPU_V7M3_PIPE] |2064| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2064| $C$DW$305 .dwtag DW_TAG_TI_branch .dwattr $C$DW$305, DW_AT_low_pc(0x00) .dwattr $C$DW$305, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$305, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2064| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2064| .dwpsn file "../driverlib/gpio.c",line 2065,column 1,is_stmt,isa 1 $C$DW$306 .dwtag DW_TAG_TI_branch .dwattr $C$DW$306, DW_AT_low_pc(0x00) .dwattr $C$DW$306, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$299, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$299, DW_AT_TI_end_line(0x811) .dwattr $C$DW$299, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$299 .sect ".text" .clink .thumbfunc GPIOPinTypeTimer .thumb .global GPIOPinTypeTimer $C$DW$307 .dwtag DW_TAG_subprogram .dwattr $C$DW$307, DW_AT_name("GPIOPinTypeTimer") .dwattr $C$DW$307, DW_AT_low_pc(GPIOPinTypeTimer) .dwattr $C$DW$307, DW_AT_high_pc(0x00) .dwattr $C$DW$307, DW_AT_TI_symbol_name("GPIOPinTypeTimer") .dwattr $C$DW$307, DW_AT_external .dwattr $C$DW$307, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$307, DW_AT_TI_begin_line(0x834) .dwattr $C$DW$307, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$307, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$307, DW_AT_decl_line(0x834) .dwattr $C$DW$307, DW_AT_decl_column(0x01) .dwattr $C$DW$307, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2101,column 1,is_stmt,address GPIOPinTypeTimer,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeTimer $C$DW$308 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$308, DW_AT_name("ui32Port") .dwattr $C$DW$308, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$308, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$308, DW_AT_location[DW_OP_reg0] $C$DW$309 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$309, DW_AT_name("ui8Pins") .dwattr $C$DW$309, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$309, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$309, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2100 | GPIOPinTypeTimer(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeTimer * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeTimer: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$310 .dwtag DW_TAG_variable .dwattr $C$DW$310, DW_AT_name("ui32Port") .dwattr $C$DW$310, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$310, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$310, DW_AT_location[DW_OP_breg13 0] $C$DW$311 .dwtag DW_TAG_variable .dwattr $C$DW$311, DW_AT_name("ui8Pins") .dwattr $C$DW$311, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$311, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$311, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2102 | // ; 2103 | // Check the arguments. ; 2104 | // ; 2105 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2107 | // ; 2108 | // Make the pin(s) be peripheral controlled. ; 2109 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2101| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2101| .dwpsn file "../driverlib/gpio.c",line 2110,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2110 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 2112 | // ; 2113 | // Set the pad(s) for standard push-pull operation. ; 2114 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2110| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2110| MOVS A3, #2 ; [DPU_V7M3_PIPE] |2110| $C$DW$312 .dwtag DW_TAG_TI_branch .dwattr $C$DW$312, DW_AT_low_pc(0x00) .dwattr $C$DW$312, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$312, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2110| ; CALL OCCURS {GPIODirModeSet } ; [] |2110| .dwpsn file "../driverlib/gpio.c",line 2115,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2115 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2115| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2115| MOVS A4, #8 ; [DPU_V7M3_PIPE] |2115| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2115| $C$DW$313 .dwtag DW_TAG_TI_branch .dwattr $C$DW$313, DW_AT_low_pc(0x00) .dwattr $C$DW$313, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$313, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2115| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2115| .dwpsn file "../driverlib/gpio.c",line 2116,column 1,is_stmt,isa 1 $C$DW$314 .dwtag DW_TAG_TI_branch .dwattr $C$DW$314, DW_AT_low_pc(0x00) .dwattr $C$DW$314, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$307, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$307, DW_AT_TI_end_line(0x844) .dwattr $C$DW$307, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$307 .sect ".text" .clink .thumbfunc GPIOPinTypeTrace .thumb .global GPIOPinTypeTrace $C$DW$315 .dwtag DW_TAG_subprogram .dwattr $C$DW$315, DW_AT_name("GPIOPinTypeTrace") .dwattr $C$DW$315, DW_AT_low_pc(GPIOPinTypeTrace) .dwattr $C$DW$315, DW_AT_high_pc(0x00) .dwattr $C$DW$315, DW_AT_TI_symbol_name("GPIOPinTypeTrace") .dwattr $C$DW$315, DW_AT_external .dwattr $C$DW$315, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$315, DW_AT_TI_begin_line(0x866) .dwattr $C$DW$315, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$315, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$315, DW_AT_decl_line(0x866) .dwattr $C$DW$315, DW_AT_decl_column(0x01) .dwattr $C$DW$315, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2151,column 1,is_stmt,address GPIOPinTypeTrace,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeTrace $C$DW$316 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$316, DW_AT_name("ui32Port") .dwattr $C$DW$316, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$316, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$316, DW_AT_location[DW_OP_reg0] $C$DW$317 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$317, DW_AT_name("ui8Pins") .dwattr $C$DW$317, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$317, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$317, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2150 | GPIOPinTypeTrace(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeTrace * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeTrace: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$318 .dwtag DW_TAG_variable .dwattr $C$DW$318, DW_AT_name("ui32Port") .dwattr $C$DW$318, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$318, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$318, DW_AT_location[DW_OP_breg13 0] $C$DW$319 .dwtag DW_TAG_variable .dwattr $C$DW$319, DW_AT_name("ui8Pins") .dwattr $C$DW$319, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$319, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$319, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2152 | // ; 2153 | // Check the arguments. ; 2154 | // ; 2155 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2157 | // ; 2158 | // Make the pin(s) be peripheral controlled. ; 2159 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2151| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2151| .dwpsn file "../driverlib/gpio.c",line 2160,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2160 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 2162 | // ; 2163 | // Set the pad(s) for standard push-pull operation. ; 2164 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2160| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2160| MOVS A3, #2 ; [DPU_V7M3_PIPE] |2160| $C$DW$320 .dwtag DW_TAG_TI_branch .dwattr $C$DW$320, DW_AT_low_pc(0x00) .dwattr $C$DW$320, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$320, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2160| ; CALL OCCURS {GPIODirModeSet } ; [] |2160| .dwpsn file "../driverlib/gpio.c",line 2165,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2165 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2165| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2165| MOVS A4, #8 ; [DPU_V7M3_PIPE] |2165| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2165| $C$DW$321 .dwtag DW_TAG_TI_branch .dwattr $C$DW$321, DW_AT_low_pc(0x00) .dwattr $C$DW$321, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$321, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2165| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2165| .dwpsn file "../driverlib/gpio.c",line 2166,column 1,is_stmt,isa 1 $C$DW$322 .dwtag DW_TAG_TI_branch .dwattr $C$DW$322, DW_AT_low_pc(0x00) .dwattr $C$DW$322, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$315, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$315, DW_AT_TI_end_line(0x876) .dwattr $C$DW$315, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$315 .sect ".text" .clink .thumbfunc GPIOPinTypeUART .thumb .global GPIOPinTypeUART $C$DW$323 .dwtag DW_TAG_subprogram .dwattr $C$DW$323, DW_AT_name("GPIOPinTypeUART") .dwattr $C$DW$323, DW_AT_low_pc(GPIOPinTypeUART) .dwattr $C$DW$323, DW_AT_high_pc(0x00) .dwattr $C$DW$323, DW_AT_TI_symbol_name("GPIOPinTypeUART") .dwattr $C$DW$323, DW_AT_external .dwattr $C$DW$323, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$323, DW_AT_TI_begin_line(0x899) .dwattr $C$DW$323, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$323, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$323, DW_AT_decl_line(0x899) .dwattr $C$DW$323, DW_AT_decl_column(0x01) .dwattr $C$DW$323, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2202,column 1,is_stmt,address GPIOPinTypeUART,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeUART $C$DW$324 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$324, DW_AT_name("ui32Port") .dwattr $C$DW$324, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$324, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$324, DW_AT_location[DW_OP_reg0] $C$DW$325 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$325, DW_AT_name("ui8Pins") .dwattr $C$DW$325, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$325, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$325, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2201 | GPIOPinTypeUART(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeUART * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeUART: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$326 .dwtag DW_TAG_variable .dwattr $C$DW$326, DW_AT_name("ui32Port") .dwattr $C$DW$326, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$326, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$326, DW_AT_location[DW_OP_breg13 0] $C$DW$327 .dwtag DW_TAG_variable .dwattr $C$DW$327, DW_AT_name("ui8Pins") .dwattr $C$DW$327, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$327, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$327, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2203 | // ; 2204 | // Check the arguments. ; 2205 | // ; 2206 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2208 | // ; 2209 | // Make the pin(s) be peripheral controlled. ; 2210 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2202| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2202| .dwpsn file "../driverlib/gpio.c",line 2211,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2211 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 2213 | // ; 2214 | // Set the pad(s) for standard push-pull operation. ; 2215 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2211| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2211| MOVS A3, #2 ; [DPU_V7M3_PIPE] |2211| $C$DW$328 .dwtag DW_TAG_TI_branch .dwattr $C$DW$328, DW_AT_low_pc(0x00) .dwattr $C$DW$328, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$328, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2211| ; CALL OCCURS {GPIODirModeSet } ; [] |2211| .dwpsn file "../driverlib/gpio.c",line 2216,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2216 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2216| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2216| MOVS A4, #8 ; [DPU_V7M3_PIPE] |2216| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2216| $C$DW$329 .dwtag DW_TAG_TI_branch .dwattr $C$DW$329, DW_AT_low_pc(0x00) .dwattr $C$DW$329, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$329, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2216| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2216| .dwpsn file "../driverlib/gpio.c",line 2217,column 1,is_stmt,isa 1 $C$DW$330 .dwtag DW_TAG_TI_branch .dwattr $C$DW$330, DW_AT_low_pc(0x00) .dwattr $C$DW$330, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$323, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$323, DW_AT_TI_end_line(0x8a9) .dwattr $C$DW$323, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$323 .sect ".text" .clink .thumbfunc GPIOPinTypeUSBAnalog .thumb .global GPIOPinTypeUSBAnalog $C$DW$331 .dwtag DW_TAG_subprogram .dwattr $C$DW$331, DW_AT_name("GPIOPinTypeUSBAnalog") .dwattr $C$DW$331, DW_AT_low_pc(GPIOPinTypeUSBAnalog) .dwattr $C$DW$331, DW_AT_high_pc(0x00) .dwattr $C$DW$331, DW_AT_TI_symbol_name("GPIOPinTypeUSBAnalog") .dwattr $C$DW$331, DW_AT_external .dwattr $C$DW$331, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$331, DW_AT_TI_begin_line(0x8cb) .dwattr $C$DW$331, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$331, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$331, DW_AT_decl_line(0x8cb) .dwattr $C$DW$331, DW_AT_decl_column(0x01) .dwattr $C$DW$331, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2252,column 1,is_stmt,address GPIOPinTypeUSBAnalog,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeUSBAnalog $C$DW$332 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$332, DW_AT_name("ui32Port") .dwattr $C$DW$332, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$332, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$332, DW_AT_location[DW_OP_reg0] $C$DW$333 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$333, DW_AT_name("ui8Pins") .dwattr $C$DW$333, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$333, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$333, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2251 | GPIOPinTypeUSBAnalog(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeUSBAnalog * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeUSBAnalog: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$334 .dwtag DW_TAG_variable .dwattr $C$DW$334, DW_AT_name("ui32Port") .dwattr $C$DW$334, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$334, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$334, DW_AT_location[DW_OP_breg13 0] $C$DW$335 .dwtag DW_TAG_variable .dwattr $C$DW$335, DW_AT_name("ui8Pins") .dwattr $C$DW$335, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$335, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$335, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2253 | // ; 2254 | // Check the arguments. ; 2255 | // ; 2256 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2258 | // ; 2259 | // Make the pin(s) be inputs. ; 2260 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2252| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2252| .dwpsn file "../driverlib/gpio.c",line 2261,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2261 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_IN); ; 2263 | // ; 2264 | // Set the pad(s) for analog operation. ; 2265 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2261| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2261| MOVS A3, #0 ; [DPU_V7M3_PIPE] |2261| $C$DW$336 .dwtag DW_TAG_TI_branch .dwattr $C$DW$336, DW_AT_low_pc(0x00) .dwattr $C$DW$336, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$336, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2261| ; CALL OCCURS {GPIODirModeSet } ; [] |2261| .dwpsn file "../driverlib/gpio.c",line 2266,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2266 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, ; 2267 | GPIO_PIN_TYPE_ANALOG); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2266| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2266| MOVS A4, #0 ; [DPU_V7M3_PIPE] |2266| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2266| $C$DW$337 .dwtag DW_TAG_TI_branch .dwattr $C$DW$337, DW_AT_low_pc(0x00) .dwattr $C$DW$337, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$337, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2266| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2266| .dwpsn file "../driverlib/gpio.c",line 2268,column 1,is_stmt,isa 1 $C$DW$338 .dwtag DW_TAG_TI_branch .dwattr $C$DW$338, DW_AT_low_pc(0x00) .dwattr $C$DW$338, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$331, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$331, DW_AT_TI_end_line(0x8dc) .dwattr $C$DW$331, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$331 .sect ".text" .clink .thumbfunc GPIOPinTypeUSBDigital .thumb .global GPIOPinTypeUSBDigital $C$DW$339 .dwtag DW_TAG_subprogram .dwattr $C$DW$339, DW_AT_name("GPIOPinTypeUSBDigital") .dwattr $C$DW$339, DW_AT_low_pc(GPIOPinTypeUSBDigital) .dwattr $C$DW$339, DW_AT_high_pc(0x00) .dwattr $C$DW$339, DW_AT_TI_symbol_name("GPIOPinTypeUSBDigital") .dwattr $C$DW$339, DW_AT_external .dwattr $C$DW$339, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$339, DW_AT_TI_begin_line(0x903) .dwattr $C$DW$339, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$339, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$339, DW_AT_decl_line(0x903) .dwattr $C$DW$339, DW_AT_decl_column(0x01) .dwattr $C$DW$339, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2308,column 1,is_stmt,address GPIOPinTypeUSBDigital,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeUSBDigital $C$DW$340 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$340, DW_AT_name("ui32Port") .dwattr $C$DW$340, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$340, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$340, DW_AT_location[DW_OP_reg0] $C$DW$341 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$341, DW_AT_name("ui8Pins") .dwattr $C$DW$341, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$341, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$341, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2307 | GPIOPinTypeUSBDigital(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeUSBDigital * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeUSBDigital: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$342 .dwtag DW_TAG_variable .dwattr $C$DW$342, DW_AT_name("ui32Port") .dwattr $C$DW$342, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$342, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$342, DW_AT_location[DW_OP_breg13 0] $C$DW$343 .dwtag DW_TAG_variable .dwattr $C$DW$343, DW_AT_name("ui8Pins") .dwattr $C$DW$343, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$343, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$343, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2309 | // ; 2310 | // Check the arguments. ; 2311 | // ; 2312 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2314 | // ; 2315 | // Make the pin(s) be peripheral controlled. ; 2316 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2308| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2308| .dwpsn file "../driverlib/gpio.c",line 2317,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2317 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_HW); ; 2319 | // ; 2320 | // Set the pad(s) for standard push-pull operation. ; 2321 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2317| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2317| MOVS A3, #2 ; [DPU_V7M3_PIPE] |2317| $C$DW$344 .dwtag DW_TAG_TI_branch .dwattr $C$DW$344, DW_AT_low_pc(0x00) .dwattr $C$DW$344, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$344, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2317| ; CALL OCCURS {GPIODirModeSet } ; [] |2317| .dwpsn file "../driverlib/gpio.c",line 2322,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2322 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_ST ; | D); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2322| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2322| MOVS A4, #8 ; [DPU_V7M3_PIPE] |2322| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2322| $C$DW$345 .dwtag DW_TAG_TI_branch .dwattr $C$DW$345, DW_AT_low_pc(0x00) .dwattr $C$DW$345, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$345, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2322| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2322| .dwpsn file "../driverlib/gpio.c",line 2323,column 1,is_stmt,isa 1 $C$DW$346 .dwtag DW_TAG_TI_branch .dwattr $C$DW$346, DW_AT_low_pc(0x00) .dwattr $C$DW$346, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$339, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$339, DW_AT_TI_end_line(0x913) .dwattr $C$DW$339, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$339 .sect ".text" .clink .thumbfunc GPIOPinTypeWakeHigh .thumb .global GPIOPinTypeWakeHigh $C$DW$347 .dwtag DW_TAG_subprogram .dwattr $C$DW$347, DW_AT_name("GPIOPinTypeWakeHigh") .dwattr $C$DW$347, DW_AT_low_pc(GPIOPinTypeWakeHigh) .dwattr $C$DW$347, DW_AT_high_pc(0x00) .dwattr $C$DW$347, DW_AT_TI_symbol_name("GPIOPinTypeWakeHigh") .dwattr $C$DW$347, DW_AT_external .dwattr $C$DW$347, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$347, DW_AT_TI_begin_line(0x930) .dwattr $C$DW$347, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$347, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$347, DW_AT_decl_line(0x930) .dwattr $C$DW$347, DW_AT_decl_column(0x01) .dwattr $C$DW$347, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2353,column 1,is_stmt,address GPIOPinTypeWakeHigh,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeWakeHigh $C$DW$348 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$348, DW_AT_name("ui32Port") .dwattr $C$DW$348, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$348, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$348, DW_AT_location[DW_OP_reg0] $C$DW$349 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$349, DW_AT_name("ui8Pins") .dwattr $C$DW$349, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$349, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$349, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2352 | GPIOPinTypeWakeHigh(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeWakeHigh * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeWakeHigh: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$350 .dwtag DW_TAG_variable .dwattr $C$DW$350, DW_AT_name("ui32Port") .dwattr $C$DW$350, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$350, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$350, DW_AT_location[DW_OP_breg13 0] $C$DW$351 .dwtag DW_TAG_variable .dwattr $C$DW$351, DW_AT_name("ui8Pins") .dwattr $C$DW$351, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$351, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$351, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2354 | // ; 2355 | // Check the arguments. ; 2356 | // ; 2357 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2359 | // ; 2360 | // Make the pin(s) inputs. ; 2361 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2353| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2353| .dwpsn file "../driverlib/gpio.c",line 2362,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2362 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_IN); ; 2364 | // ; 2365 | // Set the pad(s) for wake-high operation. ; 2366 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2362| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2362| MOVS A3, #0 ; [DPU_V7M3_PIPE] |2362| $C$DW$352 .dwtag DW_TAG_TI_branch .dwattr $C$DW$352, DW_AT_low_pc(0x00) .dwattr $C$DW$352, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$352, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2362| ; CALL OCCURS {GPIODirModeSet } ; [] |2362| .dwpsn file "../driverlib/gpio.c",line 2367,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2367 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, ; 2368 | GPIO_PIN_TYPE_WAKE_HIGH); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2367| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2367| MOV A4, #520 ; [DPU_V7M3_PIPE] |2367| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2367| $C$DW$353 .dwtag DW_TAG_TI_branch .dwattr $C$DW$353, DW_AT_low_pc(0x00) .dwattr $C$DW$353, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$353, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2367| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2367| .dwpsn file "../driverlib/gpio.c",line 2369,column 1,is_stmt,isa 1 $C$DW$354 .dwtag DW_TAG_TI_branch .dwattr $C$DW$354, DW_AT_low_pc(0x00) .dwattr $C$DW$354, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$347, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$347, DW_AT_TI_end_line(0x941) .dwattr $C$DW$347, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$347 .sect ".text" .clink .thumbfunc GPIOPinTypeWakeLow .thumb .global GPIOPinTypeWakeLow $C$DW$355 .dwtag DW_TAG_subprogram .dwattr $C$DW$355, DW_AT_name("GPIOPinTypeWakeLow") .dwattr $C$DW$355, DW_AT_low_pc(GPIOPinTypeWakeLow) .dwattr $C$DW$355, DW_AT_high_pc(0x00) .dwattr $C$DW$355, DW_AT_TI_symbol_name("GPIOPinTypeWakeLow") .dwattr $C$DW$355, DW_AT_external .dwattr $C$DW$355, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$355, DW_AT_TI_begin_line(0x95e) .dwattr $C$DW$355, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$355, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$355, DW_AT_decl_line(0x95e) .dwattr $C$DW$355, DW_AT_decl_column(0x01) .dwattr $C$DW$355, DW_AT_TI_max_frame_size(0x10) .dwpsn file "../driverlib/gpio.c",line 2399,column 1,is_stmt,address GPIOPinTypeWakeLow,isa 1 .dwfde $C$DW$CIE, GPIOPinTypeWakeLow $C$DW$356 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$356, DW_AT_name("ui32Port") .dwattr $C$DW$356, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$356, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$356, DW_AT_location[DW_OP_reg0] $C$DW$357 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$357, DW_AT_name("ui8Pins") .dwattr $C$DW$357, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$357, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$357, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2398 | GPIOPinTypeWakeLow(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinTypeWakeLow * ;* * ;* Regs Modified : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Regs Used : A1,A2,A3,A4,SP,LR,SR,FPEXC,FPSCR * ;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte * ;***************************************************************************** GPIOPinTypeWakeLow: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 3, -8 .dwcfi save_reg_to_mem, 2, -12 .dwcfi save_reg_to_mem, 1, -16 $C$DW$358 .dwtag DW_TAG_variable .dwattr $C$DW$358, DW_AT_name("ui32Port") .dwattr $C$DW$358, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$358, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$358, DW_AT_location[DW_OP_breg13 0] $C$DW$359 .dwtag DW_TAG_variable .dwattr $C$DW$359, DW_AT_name("ui8Pins") .dwattr $C$DW$359, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$359, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$359, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2400 | // ; 2401 | // Check the arguments. ; 2402 | // ; 2403 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2405 | // ; 2406 | // Make the pin(s) inputs. ; 2407 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2399| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2399| .dwpsn file "../driverlib/gpio.c",line 2408,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2408 | GPIODirModeSet(ui32Port, ui8Pins, GPIO_DIR_MODE_IN); ; 2410 | // ; 2411 | // Set the pad(s) for wake-high operation. ; 2412 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2408| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2408| MOVS A3, #0 ; [DPU_V7M3_PIPE] |2408| $C$DW$360 .dwtag DW_TAG_TI_branch .dwattr $C$DW$360, DW_AT_low_pc(0x00) .dwattr $C$DW$360, DW_AT_name("GPIODirModeSet") .dwattr $C$DW$360, DW_AT_TI_call BL GPIODirModeSet ; [DPU_V7M3_PIPE] |2408| ; CALL OCCURS {GPIODirModeSet } ; [] |2408| .dwpsn file "../driverlib/gpio.c",line 2413,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2413 | GPIOPadConfigSet(ui32Port, ui8Pins, GPIO_STRENGTH_2MA, ; 2414 | GPIO_PIN_TYPE_WAKE_LOW); ;---------------------------------------------------------------------- LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2413| LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2413| MOV A4, #264 ; [DPU_V7M3_PIPE] |2413| MOVS A3, #1 ; [DPU_V7M3_PIPE] |2413| $C$DW$361 .dwtag DW_TAG_TI_branch .dwattr $C$DW$361, DW_AT_low_pc(0x00) .dwattr $C$DW$361, DW_AT_name("GPIOPadConfigSet") .dwattr $C$DW$361, DW_AT_TI_call BL GPIOPadConfigSet ; [DPU_V7M3_PIPE] |2413| ; CALL OCCURS {GPIOPadConfigSet } ; [] |2413| .dwpsn file "../driverlib/gpio.c",line 2415,column 1,is_stmt,isa 1 $C$DW$362 .dwtag DW_TAG_TI_branch .dwattr $C$DW$362, DW_AT_low_pc(0x00) .dwattr $C$DW$362, DW_AT_TI_return POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$355, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$355, DW_AT_TI_end_line(0x96f) .dwattr $C$DW$355, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$355 .sect ".text" .clink .thumbfunc GPIOPinWakeStatus .thumb .global GPIOPinWakeStatus $C$DW$363 .dwtag DW_TAG_subprogram .dwattr $C$DW$363, DW_AT_name("GPIOPinWakeStatus") .dwattr $C$DW$363, DW_AT_low_pc(GPIOPinWakeStatus) .dwattr $C$DW$363, DW_AT_high_pc(0x00) .dwattr $C$DW$363, DW_AT_TI_symbol_name("GPIOPinWakeStatus") .dwattr $C$DW$363, DW_AT_external .dwattr $C$DW$363, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$363, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$363, DW_AT_TI_begin_line(0x989) .dwattr $C$DW$363, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$363, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$363, DW_AT_decl_line(0x989) .dwattr $C$DW$363, DW_AT_decl_column(0x01) .dwattr $C$DW$363, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 2442,column 1,is_stmt,address GPIOPinWakeStatus,isa 1 .dwfde $C$DW$CIE, GPIOPinWakeStatus $C$DW$364 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$364, DW_AT_name("ui32Port") .dwattr $C$DW$364, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$364, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$364, DW_AT_location[DW_OP_reg0] ;---------------------------------------------------------------------- ; 2441 | GPIOPinWakeStatus(uint32_t ui32Port) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinWakeStatus * ;* * ;* Regs Modified : A1,SP * ;* Regs Used : A1,SP,LR * ;* Local Frame Size : 0 Args + 4 Auto + 0 Save = 4 byte * ;***************************************************************************** GPIOPinWakeStatus: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$365 .dwtag DW_TAG_variable .dwattr $C$DW$365, DW_AT_name("ui32Port") .dwattr $C$DW$365, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$365, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$365, DW_AT_location[DW_OP_breg13 0] STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2442| .dwpsn file "../driverlib/gpio.c",line 2443,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2443 | return(HWREG(ui32Port + GPIO_O_WAKESTAT)); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2443| LDR A1, [A1, #1352] ; [DPU_V7M3_PIPE] |2443| .dwpsn file "../driverlib/gpio.c",line 2444,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$366 .dwtag DW_TAG_TI_branch .dwattr $C$DW$366, DW_AT_low_pc(0x00) .dwattr $C$DW$366, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$363, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$363, DW_AT_TI_end_line(0x98c) .dwattr $C$DW$363, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$363 .sect ".text" .clink .thumbfunc GPIOPinConfigure .thumb .global GPIOPinConfigure $C$DW$367 .dwtag DW_TAG_subprogram .dwattr $C$DW$367, DW_AT_name("GPIOPinConfigure") .dwattr $C$DW$367, DW_AT_low_pc(GPIOPinConfigure) .dwattr $C$DW$367, DW_AT_high_pc(0x00) .dwattr $C$DW$367, DW_AT_TI_symbol_name("GPIOPinConfigure") .dwattr $C$DW$367, DW_AT_external .dwattr $C$DW$367, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$367, DW_AT_TI_begin_line(0x9aa) .dwattr $C$DW$367, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$367, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$367, DW_AT_decl_line(0x9aa) .dwattr $C$DW$367, DW_AT_decl_column(0x01) .dwattr $C$DW$367, DW_AT_TI_max_frame_size(0x18) .dwpsn file "../driverlib/gpio.c",line 2475,column 1,is_stmt,address GPIOPinConfigure,isa 1 .dwfde $C$DW$CIE, GPIOPinConfigure $C$DW$368 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$368, DW_AT_name("ui32PinConfig") .dwattr $C$DW$368, DW_AT_TI_symbol_name("ui32PinConfig") .dwattr $C$DW$368, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$368, DW_AT_location[DW_OP_reg0] ;---------------------------------------------------------------------- ; 2474 | GPIOPinConfigure(uint32_t ui32PinConfig) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOPinConfigure * ;* * ;* Regs Modified : A1,A2,A3,A4,V1,V2,SP,SR * ;* Regs Used : A1,A2,A3,A4,V1,V2,SP,LR,SR * ;* Local Frame Size : 0 Args + 12 Auto + 12 Save = 24 byte * ;***************************************************************************** GPIOPinConfigure: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 PUSH {A2, A3, A4, V1, V2, LR} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 24 .dwcfi save_reg_to_mem, 14, -4 .dwcfi save_reg_to_mem, 5, -8 .dwcfi save_reg_to_mem, 4, -12 .dwcfi save_reg_to_mem, 3, -16 .dwcfi save_reg_to_mem, 2, -20 .dwcfi save_reg_to_mem, 1, -24 $C$DW$369 .dwtag DW_TAG_variable .dwattr $C$DW$369, DW_AT_name("ui32PinConfig") .dwattr $C$DW$369, DW_AT_TI_symbol_name("ui32PinConfig") .dwattr $C$DW$369, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$369, DW_AT_location[DW_OP_breg13 0] $C$DW$370 .dwtag DW_TAG_variable .dwattr $C$DW$370, DW_AT_name("ui32Base") .dwattr $C$DW$370, DW_AT_TI_symbol_name("ui32Base") .dwattr $C$DW$370, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$370, DW_AT_location[DW_OP_breg13 4] $C$DW$371 .dwtag DW_TAG_variable .dwattr $C$DW$371, DW_AT_name("ui32Shift") .dwattr $C$DW$371, DW_AT_TI_symbol_name("ui32Shift") .dwattr $C$DW$371, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$371, DW_AT_location[DW_OP_breg13 8] ;---------------------------------------------------------------------- ; 2476 | uint32_t ui32Base, ui32Shift; ; 2478 | // ; 2479 | // Check the argument. ; 2480 | // ; 2481 | ASSERT(((ui32PinConfig >> 16) & 0xff) < 18); ; 2482 | ASSERT(((ui32PinConfig >> 8) & 0xe3) == 0); ; 2484 | // ; 2485 | // Extract the base address index from the input value. ; 2486 | // ;---------------------------------------------------------------------- STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2475| .dwpsn file "../driverlib/gpio.c",line 2487,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2487 | ui32Base = (ui32PinConfig >> 16) & 0xff; ; 2489 | // ; 2490 | // Get the base address of the GPIO module, selecting either the APB or ; | the ; 2491 | // AHB aperture as appropriate. ; 2492 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2487| UBFX A1, A1, #16, #8 ; [DPU_V7M3_PIPE] |2487| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |2487| .dwpsn file "../driverlib/gpio.c",line 2493,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2493 | if(HWREG(SYSCTL_GPIOHBCTL) & (1 << ui32Base)) ;---------------------------------------------------------------------- LDR A1, $C$CON10 ; [DPU_V7M3_PIPE] |2493| LDR A3, [SP, #4] ; [DPU_V7M3_PIPE] |2493| LDR A2, [A1, #0] ; [DPU_V7M3_PIPE] |2493| MOVS A1, #1 ; [DPU_V7M3_PIPE] |2493| LSLS A1, A1, A3 ; [DPU_V7M3_PIPE] |2493| TST A1, A2 ; [DPU_V7M3_PIPE] |2493| BEQ ||$C$L83|| ; [DPU_V7M3_PIPE] |2493| ; BRANCHCC OCCURS {||$C$L83||} ; [] |2493| ;* --------------------------------------------------------------------------* .dwpsn file "../driverlib/gpio.c",line 2495,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2495 | ui32Base = g_pui32GPIOBaseAddrs[(ui32Base << 1) + 1]; ;---------------------------------------------------------------------- LDR A3, [SP, #4] ; [DPU_V7M3_PIPE] |2495| LDR A2, $C$CON11 ; [DPU_V7M3_PIPE] |2495| MOVS A1, #4 ; [DPU_V7M3_PIPE] |2495| ADD A1, A1, A3, LSL #3 ; [DPU_V7M3_PIPE] |2495| LDR A1, [A2, +A1] ; [DPU_V7M3_PIPE] |2495| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |2495| .dwpsn file "../driverlib/gpio.c",line 2496,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2497 | else ;---------------------------------------------------------------------- B ||$C$L84|| ; [DPU_V7M3_PIPE] |2496| ; BRANCH OCCURS {||$C$L84||} ; [] |2496| ;* --------------------------------------------------------------------------* ||$C$L83||: .dwpsn file "../driverlib/gpio.c",line 2499,column 9,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2499 | ui32Base = g_pui32GPIOBaseAddrs[ui32Base << 1]; ; 2502 | // ; 2503 | // Extract the shift from the input value. ; 2504 | // ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |2499| LDR A2, $C$CON11 ; [DPU_V7M3_PIPE] |2499| LDR A1, [A2, +A1, LSL #3] ; [DPU_V7M3_PIPE] |2499| STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |2499| ;* --------------------------------------------------------------------------* ||$C$L84||: .dwpsn file "../driverlib/gpio.c",line 2505,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2505 | ui32Shift = (ui32PinConfig >> 8) & 0xff; ; 2507 | // ; 2508 | // Write the requested pin muxing value for this GPIO pin. ; 2509 | // ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2505| UBFX A1, A1, #8, #8 ; [DPU_V7M3_PIPE] |2505| STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |2505| .dwpsn file "../driverlib/gpio.c",line 2510,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2510 | HWREG(ui32Base + GPIO_O_PCTL) = ((HWREG(ui32Base + GPIO_O_PCTL) & ; 2511 | ~(0xf << ui32Shift)) | ; 2512 | ((ui32PinConfig & 0xf) << ui32Shift)); ;---------------------------------------------------------------------- LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |2510| LDR A3, [SP, #0] ; [DPU_V7M3_PIPE] |2510| LDR A4, [SP, #8] ; [DPU_V7M3_PIPE] |2510| LDR V1, [SP, #8] ; [DPU_V7M3_PIPE] |2510| LDR V2, [SP, #4] ; [DPU_V7M3_PIPE] |2510| LDR A2, [A1, #1324] ; [DPU_V7M3_PIPE] |2510| AND A3, A3, #15 ; [DPU_V7M3_PIPE] |2510| MOVS A1, #15 ; [DPU_V7M3_PIPE] |2510| LSLS A3, A3, A4 ; [DPU_V7M3_PIPE] |2510| LSLS A1, A1, V1 ; [DPU_V7M3_PIPE] |2510| BICS A2, A2, A1 ; [DPU_V7M3_PIPE] |2510| ORRS A3, A3, A2 ; [DPU_V7M3_PIPE] |2510| STR A3, [V2, #1324] ; [DPU_V7M3_PIPE] |2510| .dwpsn file "../driverlib/gpio.c",line 2513,column 1,is_stmt,isa 1 $C$DW$372 .dwtag DW_TAG_TI_branch .dwattr $C$DW$372, DW_AT_low_pc(0x00) .dwattr $C$DW$372, DW_AT_TI_return POP {A2, A3, A4, V1, V2, PC} ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 .dwcfi restore_reg, 5 .dwcfi restore_reg, 4 .dwcfi restore_reg, 3 .dwcfi restore_reg, 2 .dwcfi restore_reg, 1 ; BRANCH OCCURS ; [] .dwattr $C$DW$367, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$367, DW_AT_TI_end_line(0x9d1) .dwattr $C$DW$367, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$367 .sect ".text" .clink .thumbfunc GPIODMATriggerEnable .thumb .global GPIODMATriggerEnable $C$DW$373 .dwtag DW_TAG_subprogram .dwattr $C$DW$373, DW_AT_name("GPIODMATriggerEnable") .dwattr $C$DW$373, DW_AT_low_pc(GPIODMATriggerEnable) .dwattr $C$DW$373, DW_AT_high_pc(0x00) .dwattr $C$DW$373, DW_AT_TI_symbol_name("GPIODMATriggerEnable") .dwattr $C$DW$373, DW_AT_external .dwattr $C$DW$373, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$373, DW_AT_TI_begin_line(0x9e3) .dwattr $C$DW$373, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$373, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$373, DW_AT_decl_line(0x9e3) .dwattr $C$DW$373, DW_AT_decl_column(0x01) .dwattr $C$DW$373, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 2532,column 1,is_stmt,address GPIODMATriggerEnable,isa 1 .dwfde $C$DW$CIE, GPIODMATriggerEnable $C$DW$374 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$374, DW_AT_name("ui32Port") .dwattr $C$DW$374, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$374, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$374, DW_AT_location[DW_OP_reg0] $C$DW$375 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$375, DW_AT_name("ui8Pins") .dwattr $C$DW$375, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$375, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$375, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2531 | GPIODMATriggerEnable(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIODMATriggerEnable * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIODMATriggerEnable: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$376 .dwtag DW_TAG_variable .dwattr $C$DW$376, DW_AT_name("ui32Port") .dwattr $C$DW$376, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$376, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$376, DW_AT_location[DW_OP_breg13 0] $C$DW$377 .dwtag DW_TAG_variable .dwattr $C$DW$377, DW_AT_name("ui8Pins") .dwattr $C$DW$377, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$377, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$377, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2533 | // ; 2534 | // Check the arguments. ; 2535 | // ; 2536 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2538 | // ; 2539 | // Set the pin as a DMA trigger. ; 2540 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2532| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2532| .dwpsn file "../driverlib/gpio.c",line 2541,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2541 | HWREG(ui32Port + GPIO_O_DMACTL) |= ui8Pins; ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2541| ADD A2, A1, #1332 ; [DPU_V7M3_PIPE] |2541| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |2541| LDRB A1, [SP, #4] ; [DPU_V7M3_PIPE] |2541| ORRS A1, A1, A3 ; [DPU_V7M3_PIPE] |2541| STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |2541| .dwpsn file "../driverlib/gpio.c",line 2542,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$378 .dwtag DW_TAG_TI_branch .dwattr $C$DW$378, DW_AT_low_pc(0x00) .dwattr $C$DW$378, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$373, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$373, DW_AT_TI_end_line(0x9ee) .dwattr $C$DW$373, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$373 .sect ".text" .clink .thumbfunc GPIODMATriggerDisable .thumb .global GPIODMATriggerDisable $C$DW$379 .dwtag DW_TAG_subprogram .dwattr $C$DW$379, DW_AT_name("GPIODMATriggerDisable") .dwattr $C$DW$379, DW_AT_low_pc(GPIODMATriggerDisable) .dwattr $C$DW$379, DW_AT_high_pc(0x00) .dwattr $C$DW$379, DW_AT_TI_symbol_name("GPIODMATriggerDisable") .dwattr $C$DW$379, DW_AT_external .dwattr $C$DW$379, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$379, DW_AT_TI_begin_line(0x9ff) .dwattr $C$DW$379, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$379, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$379, DW_AT_decl_line(0x9ff) .dwattr $C$DW$379, DW_AT_decl_column(0x01) .dwattr $C$DW$379, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 2560,column 1,is_stmt,address GPIODMATriggerDisable,isa 1 .dwfde $C$DW$CIE, GPIODMATriggerDisable $C$DW$380 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$380, DW_AT_name("ui32Port") .dwattr $C$DW$380, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$380, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$380, DW_AT_location[DW_OP_reg0] $C$DW$381 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$381, DW_AT_name("ui8Pins") .dwattr $C$DW$381, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$381, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$381, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2559 | GPIODMATriggerDisable(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIODMATriggerDisable * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIODMATriggerDisable: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$382 .dwtag DW_TAG_variable .dwattr $C$DW$382, DW_AT_name("ui32Port") .dwattr $C$DW$382, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$382, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$382, DW_AT_location[DW_OP_breg13 0] $C$DW$383 .dwtag DW_TAG_variable .dwattr $C$DW$383, DW_AT_name("ui8Pins") .dwattr $C$DW$383, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$383, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$383, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2561 | // ; 2562 | // Check the arguments. ; 2563 | // ; 2564 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2566 | // ; 2567 | // Set the pin as a DMA trigger. ; 2568 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2560| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2560| .dwpsn file "../driverlib/gpio.c",line 2569,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2569 | HWREG(ui32Port + GPIO_O_DMACTL) &= (~ui8Pins); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2569| LDRB A3, [SP, #4] ; [DPU_V7M3_PIPE] |2569| ADD A2, A1, #1332 ; [DPU_V7M3_PIPE] |2569| LDR A1, [A2, #0] ; [DPU_V7M3_PIPE] |2569| BICS A1, A1, A3 ; [DPU_V7M3_PIPE] |2569| STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |2569| .dwpsn file "../driverlib/gpio.c",line 2570,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$384 .dwtag DW_TAG_TI_branch .dwattr $C$DW$384, DW_AT_low_pc(0x00) .dwattr $C$DW$384, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$379, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$379, DW_AT_TI_end_line(0xa0a) .dwattr $C$DW$379, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$379 .sect ".text" .clink .thumbfunc GPIOADCTriggerEnable .thumb .global GPIOADCTriggerEnable $C$DW$385 .dwtag DW_TAG_subprogram .dwattr $C$DW$385, DW_AT_name("GPIOADCTriggerEnable") .dwattr $C$DW$385, DW_AT_low_pc(GPIOADCTriggerEnable) .dwattr $C$DW$385, DW_AT_high_pc(0x00) .dwattr $C$DW$385, DW_AT_TI_symbol_name("GPIOADCTriggerEnable") .dwattr $C$DW$385, DW_AT_external .dwattr $C$DW$385, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$385, DW_AT_TI_begin_line(0xa1e) .dwattr $C$DW$385, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$385, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$385, DW_AT_decl_line(0xa1e) .dwattr $C$DW$385, DW_AT_decl_column(0x01) .dwattr $C$DW$385, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 2591,column 1,is_stmt,address GPIOADCTriggerEnable,isa 1 .dwfde $C$DW$CIE, GPIOADCTriggerEnable $C$DW$386 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$386, DW_AT_name("ui32Port") .dwattr $C$DW$386, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$386, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$386, DW_AT_location[DW_OP_reg0] $C$DW$387 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$387, DW_AT_name("ui8Pins") .dwattr $C$DW$387, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$387, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$387, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2590 | GPIOADCTriggerEnable(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOADCTriggerEnable * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOADCTriggerEnable: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$388 .dwtag DW_TAG_variable .dwattr $C$DW$388, DW_AT_name("ui32Port") .dwattr $C$DW$388, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$388, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$388, DW_AT_location[DW_OP_breg13 0] $C$DW$389 .dwtag DW_TAG_variable .dwattr $C$DW$389, DW_AT_name("ui8Pins") .dwattr $C$DW$389, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$389, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$389, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2592 | // ; 2593 | // Check the arguments. ; 2594 | // ; 2595 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2597 | // ; 2598 | // Set the pin as a DMA trigger. ; 2599 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2591| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2591| .dwpsn file "../driverlib/gpio.c",line 2600,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2600 | HWREG(ui32Port + GPIO_O_ADCCTL) |= ui8Pins; ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2600| LDRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2600| ADD A1, A1, #1328 ; [DPU_V7M3_PIPE] |2600| LDR A3, [A1, #0] ; [DPU_V7M3_PIPE] |2600| ORRS A2, A2, A3 ; [DPU_V7M3_PIPE] |2600| STR A2, [A1, #0] ; [DPU_V7M3_PIPE] |2600| .dwpsn file "../driverlib/gpio.c",line 2601,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$390 .dwtag DW_TAG_TI_branch .dwattr $C$DW$390, DW_AT_low_pc(0x00) .dwattr $C$DW$390, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$385, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$385, DW_AT_TI_end_line(0xa29) .dwattr $C$DW$385, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$385 .sect ".text" .clink .thumbfunc GPIOADCTriggerDisable .thumb .global GPIOADCTriggerDisable $C$DW$391 .dwtag DW_TAG_subprogram .dwattr $C$DW$391, DW_AT_name("GPIOADCTriggerDisable") .dwattr $C$DW$391, DW_AT_low_pc(GPIOADCTriggerDisable) .dwattr $C$DW$391, DW_AT_high_pc(0x00) .dwattr $C$DW$391, DW_AT_TI_symbol_name("GPIOADCTriggerDisable") .dwattr $C$DW$391, DW_AT_external .dwattr $C$DW$391, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$391, DW_AT_TI_begin_line(0xa3a) .dwattr $C$DW$391, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$391, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$391, DW_AT_decl_line(0xa3a) .dwattr $C$DW$391, DW_AT_decl_column(0x01) .dwattr $C$DW$391, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 2619,column 1,is_stmt,address GPIOADCTriggerDisable,isa 1 .dwfde $C$DW$CIE, GPIOADCTriggerDisable $C$DW$392 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$392, DW_AT_name("ui32Port") .dwattr $C$DW$392, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$392, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$392, DW_AT_location[DW_OP_reg0] $C$DW$393 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$393, DW_AT_name("ui8Pins") .dwattr $C$DW$393, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$393, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$393, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2618 | GPIOADCTriggerDisable(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOADCTriggerDisable * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOADCTriggerDisable: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$394 .dwtag DW_TAG_variable .dwattr $C$DW$394, DW_AT_name("ui32Port") .dwattr $C$DW$394, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$394, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$394, DW_AT_location[DW_OP_breg13 0] $C$DW$395 .dwtag DW_TAG_variable .dwattr $C$DW$395, DW_AT_name("ui8Pins") .dwattr $C$DW$395, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$395, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$395, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2620 | // ; 2621 | // Check the arguments. ; 2622 | // ; 2623 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2625 | // ; 2626 | // Set the pin as a DMA trigger. ; 2627 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2619| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2619| .dwpsn file "../driverlib/gpio.c",line 2628,column 5,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2628 | HWREG(ui32Port + GPIO_O_ADCCTL) &= (~ui8Pins); ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2628| LDRB A3, [SP, #4] ; [DPU_V7M3_PIPE] |2628| ADD A1, A1, #1328 ; [DPU_V7M3_PIPE] |2628| LDR A2, [A1, #0] ; [DPU_V7M3_PIPE] |2628| BICS A2, A2, A3 ; [DPU_V7M3_PIPE] |2628| STR A2, [A1, #0] ; [DPU_V7M3_PIPE] |2628| .dwpsn file "../driverlib/gpio.c",line 2629,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$396 .dwtag DW_TAG_TI_branch .dwattr $C$DW$396, DW_AT_low_pc(0x00) .dwattr $C$DW$396, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$391, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$391, DW_AT_TI_end_line(0xa45) .dwattr $C$DW$391, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$391 .sect ".text" .clink .thumbfunc GPIOUnlockPin .thumb .global GPIOUnlockPin $C$DW$397 .dwtag DW_TAG_subprogram .dwattr $C$DW$397, DW_AT_name("GPIOUnlockPin") .dwattr $C$DW$397, DW_AT_low_pc(GPIOUnlockPin) .dwattr $C$DW$397, DW_AT_high_pc(0x00) .dwattr $C$DW$397, DW_AT_TI_symbol_name("GPIOUnlockPin") .dwattr $C$DW$397, DW_AT_external .dwattr $C$DW$397, DW_AT_TI_begin_file("../driverlib/gpio.c") .dwattr $C$DW$397, DW_AT_TI_begin_line(0xa58) .dwattr $C$DW$397, DW_AT_TI_begin_column(0x01) .dwattr $C$DW$397, DW_AT_decl_file("../driverlib/gpio.c") .dwattr $C$DW$397, DW_AT_decl_line(0xa58) .dwattr $C$DW$397, DW_AT_decl_column(0x01) .dwattr $C$DW$397, DW_AT_TI_max_frame_size(0x08) .dwpsn file "../driverlib/gpio.c",line 2649,column 1,is_stmt,address GPIOUnlockPin,isa 1 .dwfde $C$DW$CIE, GPIOUnlockPin $C$DW$398 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$398, DW_AT_name("ui32Port") .dwattr $C$DW$398, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$398, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$398, DW_AT_location[DW_OP_reg0] $C$DW$399 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$399, DW_AT_name("ui8Pins") .dwattr $C$DW$399, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$399, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$399, DW_AT_location[DW_OP_reg1] ;---------------------------------------------------------------------- ; 2648 | GPIOUnlockPin(uint32_t ui32Port, uint8_t ui8Pins) ;---------------------------------------------------------------------- ;***************************************************************************** ;* FUNCTION NAME: GPIOUnlockPin * ;* * ;* Regs Modified : A1,A2,A3,SP,SR * ;* Regs Used : A1,A2,A3,SP,LR,SR * ;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte * ;***************************************************************************** GPIOUnlockPin: ;* --------------------------------------------------------------------------* .dwcfi cfa_offset, 0 SUB SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 8 $C$DW$400 .dwtag DW_TAG_variable .dwattr $C$DW$400, DW_AT_name("ui32Port") .dwattr $C$DW$400, DW_AT_TI_symbol_name("ui32Port") .dwattr $C$DW$400, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$400, DW_AT_location[DW_OP_breg13 0] $C$DW$401 .dwtag DW_TAG_variable .dwattr $C$DW$401, DW_AT_name("ui8Pins") .dwattr $C$DW$401, DW_AT_TI_symbol_name("ui8Pins") .dwattr $C$DW$401, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$401, DW_AT_location[DW_OP_breg13 4] ;---------------------------------------------------------------------- ; 2650 | // ; 2651 | // Check the arguments. ; 2652 | // ; 2653 | ASSERT(_GPIOBaseValid(ui32Port)); ; 2655 | // ; 2656 | // Unlock the port by using the device LOCK key ; 2657 | // ;---------------------------------------------------------------------- STRB A2, [SP, #4] ; [DPU_V7M3_PIPE] |2649| STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2649| .dwpsn file "../driverlib/gpio.c",line 2658,column 2,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2658 | HWREG(ui32Port + GPIO_O_LOCK) = GPIO_LOCK_KEY; ; 2660 | // ; 2661 | // Commit the pin to keep it in GPIO mode ; 2662 | // ;---------------------------------------------------------------------- LDR A1, $C$CON12 ; [DPU_V7M3_PIPE] |2658| LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |2658| STR A1, [A2, #1312] ; [DPU_V7M3_PIPE] |2658| .dwpsn file "../driverlib/gpio.c",line 2663,column 2,is_stmt,isa 1 ;---------------------------------------------------------------------- ; 2663 | HWREG(ui32Port + GPIO_O_CR) |= ui8Pins; ;---------------------------------------------------------------------- LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |2663| ADD A2, A1, #1316 ; [DPU_V7M3_PIPE] |2663| LDR A3, [A2, #0] ; [DPU_V7M3_PIPE] |2663| LDRB A1, [SP, #4] ; [DPU_V7M3_PIPE] |2663| ORRS A1, A1, A3 ; [DPU_V7M3_PIPE] |2663| STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |2663| .dwpsn file "../driverlib/gpio.c",line 2664,column 1,is_stmt,isa 1 ADD SP, SP, #8 ; [DPU_V7M3_PIPE] .dwcfi cfa_offset, 0 $C$DW$402 .dwtag DW_TAG_TI_branch .dwattr $C$DW$402, DW_AT_low_pc(0x00) .dwattr $C$DW$402, DW_AT_TI_return BX LR ; [DPU_V7M3_PIPE] ; BRANCH OCCURS ; [] .dwattr $C$DW$397, DW_AT_TI_end_file("../driverlib/gpio.c") .dwattr $C$DW$397, DW_AT_TI_end_line(0xa68) .dwattr $C$DW$397, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$397 ;****************************************************************************** ;* CONSTANT TABLE * ;****************************************************************************** .sect ".text" .align 4 ||$C$CON10||: .bits 1074782316,32 .align 4 ||$C$CON11||: .bits g_pui32GPIOBaseAddrs,32 .align 4 ||$C$CON12||: .bits 1280262987,32 ;***************************************************************************** ;* UNDEFINED EXTERNAL REFERENCES * ;***************************************************************************** .global IntRegister .global IntEnable .global IntDisable .global IntUnregister ;****************************************************************************** ;* BUILD ATTRIBUTES * ;****************************************************************************** .battr "aeabi", Tag_File, 1, Tag_ABI_PCS_wchar_t(2) .battr "aeabi", Tag_File, 1, Tag_ABI_FP_rounding(0) .battr "aeabi", Tag_File, 1, Tag_ABI_FP_denormal(0) .battr "aeabi", Tag_File, 1, Tag_ABI_FP_exceptions(0) .battr "aeabi", Tag_File, 1, Tag_ABI_FP_number_model(1) .battr "aeabi", Tag_File, 1, Tag_ABI_enum_size(0) .battr "aeabi", Tag_File, 1, Tag_ABI_optimization_goals(5) .battr "aeabi", Tag_File, 1, Tag_ABI_FP_optimization_goals(0) .battr "TI", Tag_File, 1, Tag_Bitfield_layout(2) .battr "aeabi", Tag_File, 1, Tag_ABI_VFP_args(3) .battr "TI", Tag_File, 1, Tag_FP_interface(1) ;****************************************************************************** ;* TYPE INFORMATION * ;****************************************************************************** $C$DW$T$21 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$21, DW_AT_byte_size(0x10) $C$DW$403 .dwtag DW_TAG_member .dwattr $C$DW$403, DW_AT_type(*$C$DW$T$14) .dwattr $C$DW$403, DW_AT_name("__max_align1") .dwattr $C$DW$403, DW_AT_TI_symbol_name("__max_align1") .dwattr $C$DW$403, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$403, DW_AT_accessibility(DW_ACCESS_public) .dwattr $C$DW$403, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$403, DW_AT_decl_line(0x70) .dwattr $C$DW$403, DW_AT_decl_column(0x0c) $C$DW$404 .dwtag DW_TAG_member .dwattr $C$DW$404, DW_AT_type(*$C$DW$T$18) .dwattr $C$DW$404, DW_AT_name("__max_align2") .dwattr $C$DW$404, DW_AT_TI_symbol_name("__max_align2") .dwattr $C$DW$404, DW_AT_data_member_location[DW_OP_plus_uconst 0x8] .dwattr $C$DW$404, DW_AT_accessibility(DW_ACCESS_public) .dwattr $C$DW$404, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$404, DW_AT_decl_line(0x71) .dwattr $C$DW$404, DW_AT_decl_column(0x0e) .dwattr $C$DW$T$21, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$21, DW_AT_decl_line(0x6f) .dwattr $C$DW$T$21, DW_AT_decl_column(0x10) .dwendtag $C$DW$T$21 $C$DW$T$23 .dwtag DW_TAG_typedef .dwattr $C$DW$T$23, DW_AT_name("__max_align_t") .dwattr $C$DW$T$23, DW_AT_type(*$C$DW$T$21) .dwattr $C$DW$T$23, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$23, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$23, DW_AT_decl_line(0x72) .dwattr $C$DW$T$23, DW_AT_decl_column(0x03) $C$DW$T$2 .dwtag DW_TAG_unspecified_type .dwattr $C$DW$T$2, DW_AT_name("void") $C$DW$T$3 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$3, DW_AT_type(*$C$DW$T$2) .dwattr $C$DW$T$3, DW_AT_address_class(0x20) $C$DW$T$24 .dwtag DW_TAG_subroutine_type .dwattr $C$DW$T$24, DW_AT_language(DW_LANG_C) .dwendtag $C$DW$T$24 $C$DW$T$25 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$25, DW_AT_type(*$C$DW$T$24) .dwattr $C$DW$T$25, DW_AT_address_class(0x20) $C$DW$T$4 .dwtag DW_TAG_base_type .dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean) .dwattr $C$DW$T$4, DW_AT_name("bool") .dwattr $C$DW$T$4, DW_AT_byte_size(0x01) $C$DW$T$5 .dwtag DW_TAG_base_type .dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$5, DW_AT_name("signed char") .dwattr $C$DW$T$5, DW_AT_byte_size(0x01) $C$DW$T$44 .dwtag DW_TAG_typedef .dwattr $C$DW$T$44, DW_AT_name("__int8_t") .dwattr $C$DW$T$44, DW_AT_type(*$C$DW$T$5) .dwattr $C$DW$T$44, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$44, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$44, DW_AT_decl_line(0x39) .dwattr $C$DW$T$44, DW_AT_decl_column(0x16) $C$DW$T$45 .dwtag DW_TAG_typedef .dwattr $C$DW$T$45, DW_AT_name("__int_least8_t") .dwattr $C$DW$T$45, DW_AT_type(*$C$DW$T$44) .dwattr $C$DW$T$45, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$45, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$45, DW_AT_decl_line(0x58) .dwattr $C$DW$T$45, DW_AT_decl_column(0x12) $C$DW$T$46 .dwtag DW_TAG_typedef .dwattr $C$DW$T$46, DW_AT_name("int_least8_t") .dwattr $C$DW$T$46, DW_AT_type(*$C$DW$T$45) .dwattr $C$DW$T$46, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$46, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$46, DW_AT_decl_line(0x28) .dwattr $C$DW$T$46, DW_AT_decl_column(0x19) $C$DW$T$47 .dwtag DW_TAG_typedef .dwattr $C$DW$T$47, DW_AT_name("int8_t") .dwattr $C$DW$T$47, DW_AT_type(*$C$DW$T$44) .dwattr $C$DW$T$47, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$47, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$47, DW_AT_decl_line(0x24) .dwattr $C$DW$T$47, DW_AT_decl_column(0x13) $C$DW$T$6 .dwtag DW_TAG_base_type .dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char) .dwattr $C$DW$T$6, DW_AT_name("unsigned char") .dwattr $C$DW$T$6, DW_AT_byte_size(0x01) $C$DW$T$32 .dwtag DW_TAG_typedef .dwattr $C$DW$T$32, DW_AT_name("__uint8_t") .dwattr $C$DW$T$32, DW_AT_type(*$C$DW$T$6) .dwattr $C$DW$T$32, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$32, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$32, DW_AT_decl_line(0x3a) .dwattr $C$DW$T$32, DW_AT_decl_column(0x18) $C$DW$T$48 .dwtag DW_TAG_typedef .dwattr $C$DW$T$48, DW_AT_name("__sa_family_t") .dwattr $C$DW$T$48, DW_AT_type(*$C$DW$T$32) .dwattr $C$DW$T$48, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$48, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$48, DW_AT_decl_line(0x43) .dwattr $C$DW$T$48, DW_AT_decl_column(0x13) $C$DW$T$49 .dwtag DW_TAG_typedef .dwattr $C$DW$T$49, DW_AT_name("__uint_least8_t") .dwattr $C$DW$T$49, DW_AT_type(*$C$DW$T$32) .dwattr $C$DW$T$49, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$49, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$49, DW_AT_decl_line(0x6d) .dwattr $C$DW$T$49, DW_AT_decl_column(0x13) $C$DW$T$50 .dwtag DW_TAG_typedef .dwattr $C$DW$T$50, DW_AT_name("uint_least8_t") .dwattr $C$DW$T$50, DW_AT_type(*$C$DW$T$49) .dwattr $C$DW$T$50, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$50, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$50, DW_AT_decl_line(0x2d) .dwattr $C$DW$T$50, DW_AT_decl_column(0x1a) $C$DW$T$33 .dwtag DW_TAG_typedef .dwattr $C$DW$T$33, DW_AT_name("uint8_t") .dwattr $C$DW$T$33, DW_AT_type(*$C$DW$T$32) .dwattr $C$DW$T$33, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$33, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$33, DW_AT_decl_line(0x38) .dwattr $C$DW$T$33, DW_AT_decl_column(0x14) $C$DW$T$7 .dwtag DW_TAG_base_type .dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$7, DW_AT_name("wchar_t") .dwattr $C$DW$T$7, DW_AT_byte_size(0x02) $C$DW$T$8 .dwtag DW_TAG_base_type .dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$8, DW_AT_name("short") .dwattr $C$DW$T$8, DW_AT_byte_size(0x02) $C$DW$T$51 .dwtag DW_TAG_typedef .dwattr $C$DW$T$51, DW_AT_name("__int16_t") .dwattr $C$DW$T$51, DW_AT_type(*$C$DW$T$8) .dwattr $C$DW$T$51, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$51, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$51, DW_AT_decl_line(0x3b) .dwattr $C$DW$T$51, DW_AT_decl_column(0x11) $C$DW$T$52 .dwtag DW_TAG_typedef .dwattr $C$DW$T$52, DW_AT_name("__int_least16_t") .dwattr $C$DW$T$52, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$T$52, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$52, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$52, DW_AT_decl_line(0x59) .dwattr $C$DW$T$52, DW_AT_decl_column(0x13) $C$DW$T$53 .dwtag DW_TAG_typedef .dwattr $C$DW$T$53, DW_AT_name("int_least16_t") .dwattr $C$DW$T$53, DW_AT_type(*$C$DW$T$52) .dwattr $C$DW$T$53, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$53, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$53, DW_AT_decl_line(0x29) .dwattr $C$DW$T$53, DW_AT_decl_column(0x1a) $C$DW$T$54 .dwtag DW_TAG_typedef .dwattr $C$DW$T$54, DW_AT_name("int16_t") .dwattr $C$DW$T$54, DW_AT_type(*$C$DW$T$51) .dwattr $C$DW$T$54, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$54, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$54, DW_AT_decl_line(0x29) .dwattr $C$DW$T$54, DW_AT_decl_column(0x14) $C$DW$T$9 .dwtag DW_TAG_base_type .dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$9, DW_AT_name("unsigned short") .dwattr $C$DW$T$9, DW_AT_byte_size(0x02) $C$DW$T$55 .dwtag DW_TAG_typedef .dwattr $C$DW$T$55, DW_AT_name("___wchar_t") .dwattr $C$DW$T$55, DW_AT_type(*$C$DW$T$9) .dwattr $C$DW$T$55, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$55, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$55, DW_AT_decl_line(0x76) .dwattr $C$DW$T$55, DW_AT_decl_column(0x1a) $C$DW$T$56 .dwtag DW_TAG_typedef .dwattr $C$DW$T$56, DW_AT_name("__uint16_t") .dwattr $C$DW$T$56, DW_AT_type(*$C$DW$T$9) .dwattr $C$DW$T$56, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$56, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$56, DW_AT_decl_line(0x3c) .dwattr $C$DW$T$56, DW_AT_decl_column(0x19) $C$DW$T$57 .dwtag DW_TAG_typedef .dwattr $C$DW$T$57, DW_AT_name("__mode_t") .dwattr $C$DW$T$57, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$T$57, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$57, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$57, DW_AT_decl_line(0x39) .dwattr $C$DW$T$57, DW_AT_decl_column(0x14) $C$DW$T$58 .dwtag DW_TAG_typedef .dwattr $C$DW$T$58, DW_AT_name("__uint_least16_t") .dwattr $C$DW$T$58, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$T$58, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$58, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$58, DW_AT_decl_line(0x6e) .dwattr $C$DW$T$58, DW_AT_decl_column(0x14) $C$DW$T$59 .dwtag DW_TAG_typedef .dwattr $C$DW$T$59, DW_AT_name("__char16_t") .dwattr $C$DW$T$59, DW_AT_type(*$C$DW$T$58) .dwattr $C$DW$T$59, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$59, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$59, DW_AT_decl_line(0x66) .dwattr $C$DW$T$59, DW_AT_decl_column(0x1a) $C$DW$T$60 .dwtag DW_TAG_typedef .dwattr $C$DW$T$60, DW_AT_name("uint_least16_t") .dwattr $C$DW$T$60, DW_AT_type(*$C$DW$T$58) .dwattr $C$DW$T$60, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$60, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$60, DW_AT_decl_line(0x2e) .dwattr $C$DW$T$60, DW_AT_decl_column(0x1a) $C$DW$T$61 .dwtag DW_TAG_typedef .dwattr $C$DW$T$61, DW_AT_name("uint16_t") .dwattr $C$DW$T$61, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$T$61, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$61, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$61, DW_AT_decl_line(0x3d) .dwattr $C$DW$T$61, DW_AT_decl_column(0x15) $C$DW$T$10 .dwtag DW_TAG_base_type .dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$10, DW_AT_name("int") .dwattr $C$DW$T$10, DW_AT_byte_size(0x04) $C$DW$T$62 .dwtag DW_TAG_typedef .dwattr $C$DW$T$62, DW_AT_name("_Mbstatet") .dwattr $C$DW$T$62, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$62, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$62, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$62, DW_AT_decl_line(0x84) .dwattr $C$DW$T$62, DW_AT_decl_column(0x0d) $C$DW$T$63 .dwtag DW_TAG_typedef .dwattr $C$DW$T$63, DW_AT_name("__mbstate_t") .dwattr $C$DW$T$63, DW_AT_type(*$C$DW$T$62) .dwattr $C$DW$T$63, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$63, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$63, DW_AT_decl_line(0x87) .dwattr $C$DW$T$63, DW_AT_decl_column(0x13) $C$DW$T$64 .dwtag DW_TAG_typedef .dwattr $C$DW$T$64, DW_AT_name("__accmode_t") .dwattr $C$DW$T$64, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$64, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$64, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$64, DW_AT_decl_line(0x3a) .dwattr $C$DW$T$64, DW_AT_decl_column(0x0e) $C$DW$T$65 .dwtag DW_TAG_typedef .dwattr $C$DW$T$65, DW_AT_name("__cpulevel_t") .dwattr $C$DW$T$65, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$65, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$65, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$65, DW_AT_decl_line(0x4b) .dwattr $C$DW$T$65, DW_AT_decl_column(0x0e) $C$DW$T$66 .dwtag DW_TAG_typedef .dwattr $C$DW$T$66, DW_AT_name("__cpusetid_t") .dwattr $C$DW$T$66, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$66, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$66, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$66, DW_AT_decl_line(0x4c) .dwattr $C$DW$T$66, DW_AT_decl_column(0x0e) $C$DW$T$67 .dwtag DW_TAG_typedef .dwattr $C$DW$T$67, DW_AT_name("__cpuwhich_t") .dwattr $C$DW$T$67, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$67, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$67, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$67, DW_AT_decl_line(0x4a) .dwattr $C$DW$T$67, DW_AT_decl_column(0x0e) $C$DW$T$68 .dwtag DW_TAG_typedef .dwattr $C$DW$T$68, DW_AT_name("__ct_rune_t") .dwattr $C$DW$T$68, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$68, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$68, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$68, DW_AT_decl_line(0x60) .dwattr $C$DW$T$68, DW_AT_decl_column(0x0e) $C$DW$T$69 .dwtag DW_TAG_typedef .dwattr $C$DW$T$69, DW_AT_name("__rune_t") .dwattr $C$DW$T$69, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$T$69, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$69, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$69, DW_AT_decl_line(0x61) .dwattr $C$DW$T$69, DW_AT_decl_column(0x15) $C$DW$T$70 .dwtag DW_TAG_typedef .dwattr $C$DW$T$70, DW_AT_name("__wint_t") .dwattr $C$DW$T$70, DW_AT_type(*$C$DW$T$68) .dwattr $C$DW$T$70, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$70, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$70, DW_AT_decl_line(0x62) .dwattr $C$DW$T$70, DW_AT_decl_column(0x15) $C$DW$T$71 .dwtag DW_TAG_typedef .dwattr $C$DW$T$71, DW_AT_name("__int32_t") .dwattr $C$DW$T$71, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$71, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$71, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$71, DW_AT_decl_line(0x3d) .dwattr $C$DW$T$71, DW_AT_decl_column(0x0f) $C$DW$T$72 .dwtag DW_TAG_typedef .dwattr $C$DW$T$72, DW_AT_name("__blksize_t") .dwattr $C$DW$T$72, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$72, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$72, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$72, DW_AT_decl_line(0x2e) .dwattr $C$DW$T$72, DW_AT_decl_column(0x13) $C$DW$T$73 .dwtag DW_TAG_typedef .dwattr $C$DW$T$73, DW_AT_name("__clockid_t") .dwattr $C$DW$T$73, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$73, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$73, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$73, DW_AT_decl_line(0x30) .dwattr $C$DW$T$73, DW_AT_decl_column(0x13) $C$DW$T$74 .dwtag DW_TAG_typedef .dwattr $C$DW$T$74, DW_AT_name("__critical_t") .dwattr $C$DW$T$74, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$74, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$74, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$74, DW_AT_decl_line(0x4e) .dwattr $C$DW$T$74, DW_AT_decl_column(0x13) $C$DW$T$75 .dwtag DW_TAG_typedef .dwattr $C$DW$T$75, DW_AT_name("__int_fast16_t") .dwattr $C$DW$T$75, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$75, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$75, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$75, DW_AT_decl_line(0x55) .dwattr $C$DW$T$75, DW_AT_decl_column(0x13) $C$DW$T$76 .dwtag DW_TAG_typedef .dwattr $C$DW$T$76, DW_AT_name("int_fast16_t") .dwattr $C$DW$T$76, DW_AT_type(*$C$DW$T$75) .dwattr $C$DW$T$76, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$76, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$76, DW_AT_decl_line(0x33) .dwattr $C$DW$T$76, DW_AT_decl_column(0x19) $C$DW$T$77 .dwtag DW_TAG_typedef .dwattr $C$DW$T$77, DW_AT_name("__int_fast32_t") .dwattr $C$DW$T$77, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$77, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$77, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$77, DW_AT_decl_line(0x56) .dwattr $C$DW$T$77, DW_AT_decl_column(0x13) $C$DW$T$78 .dwtag DW_TAG_typedef .dwattr $C$DW$T$78, DW_AT_name("int_fast32_t") .dwattr $C$DW$T$78, DW_AT_type(*$C$DW$T$77) .dwattr $C$DW$T$78, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$78, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$78, DW_AT_decl_line(0x34) .dwattr $C$DW$T$78, DW_AT_decl_column(0x19) $C$DW$T$79 .dwtag DW_TAG_typedef .dwattr $C$DW$T$79, DW_AT_name("__int_fast8_t") .dwattr $C$DW$T$79, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$79, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$79, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$79, DW_AT_decl_line(0x54) .dwattr $C$DW$T$79, DW_AT_decl_column(0x13) $C$DW$T$80 .dwtag DW_TAG_typedef .dwattr $C$DW$T$80, DW_AT_name("int_fast8_t") .dwattr $C$DW$T$80, DW_AT_type(*$C$DW$T$79) .dwattr $C$DW$T$80, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$80, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$80, DW_AT_decl_line(0x32) .dwattr $C$DW$T$80, DW_AT_decl_column(0x18) $C$DW$T$81 .dwtag DW_TAG_typedef .dwattr $C$DW$T$81, DW_AT_name("__int_least32_t") .dwattr $C$DW$T$81, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$81, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$81, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$81, DW_AT_decl_line(0x5a) .dwattr $C$DW$T$81, DW_AT_decl_column(0x13) $C$DW$T$82 .dwtag DW_TAG_typedef .dwattr $C$DW$T$82, DW_AT_name("int_least32_t") .dwattr $C$DW$T$82, DW_AT_type(*$C$DW$T$81) .dwattr $C$DW$T$82, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$82, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$82, DW_AT_decl_line(0x2a) .dwattr $C$DW$T$82, DW_AT_decl_column(0x1a) $C$DW$T$83 .dwtag DW_TAG_typedef .dwattr $C$DW$T$83, DW_AT_name("__intfptr_t") .dwattr $C$DW$T$83, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$83, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$83, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$83, DW_AT_decl_line(0x51) .dwattr $C$DW$T$83, DW_AT_decl_column(0x13) $C$DW$T$84 .dwtag DW_TAG_typedef .dwattr $C$DW$T$84, DW_AT_name("__intptr_t") .dwattr $C$DW$T$84, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$84, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$84, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$84, DW_AT_decl_line(0x53) .dwattr $C$DW$T$84, DW_AT_decl_column(0x13) $C$DW$T$85 .dwtag DW_TAG_typedef .dwattr $C$DW$T$85, DW_AT_name("intptr_t") .dwattr $C$DW$T$85, DW_AT_type(*$C$DW$T$84) .dwattr $C$DW$T$85, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$85, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$85, DW_AT_decl_line(0x4c) .dwattr $C$DW$T$85, DW_AT_decl_column(0x15) $C$DW$T$86 .dwtag DW_TAG_typedef .dwattr $C$DW$T$86, DW_AT_name("__lwpid_t") .dwattr $C$DW$T$86, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$86, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$86, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$86, DW_AT_decl_line(0x38) .dwattr $C$DW$T$86, DW_AT_decl_column(0x13) $C$DW$T$87 .dwtag DW_TAG_typedef .dwattr $C$DW$T$87, DW_AT_name("__pid_t") .dwattr $C$DW$T$87, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$87, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$87, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$87, DW_AT_decl_line(0x3f) .dwattr $C$DW$T$87, DW_AT_decl_column(0x13) $C$DW$T$88 .dwtag DW_TAG_typedef .dwattr $C$DW$T$88, DW_AT_name("__ptrdiff_t") .dwattr $C$DW$T$88, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$88, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$88, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$88, DW_AT_decl_line(0x5c) .dwattr $C$DW$T$88, DW_AT_decl_column(0x13) $C$DW$T$89 .dwtag DW_TAG_typedef .dwattr $C$DW$T$89, DW_AT_name("__register_t") .dwattr $C$DW$T$89, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$89, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$89, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$89, DW_AT_decl_line(0x5d) .dwattr $C$DW$T$89, DW_AT_decl_column(0x13) $C$DW$T$90 .dwtag DW_TAG_typedef .dwattr $C$DW$T$90, DW_AT_name("__segsz_t") .dwattr $C$DW$T$90, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$90, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$90, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$90, DW_AT_decl_line(0x5e) .dwattr $C$DW$T$90, DW_AT_decl_column(0x13) $C$DW$T$91 .dwtag DW_TAG_typedef .dwattr $C$DW$T$91, DW_AT_name("__ssize_t") .dwattr $C$DW$T$91, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$91, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$91, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$91, DW_AT_decl_line(0x60) .dwattr $C$DW$T$91, DW_AT_decl_column(0x13) $C$DW$T$92 .dwtag DW_TAG_typedef .dwattr $C$DW$T$92, DW_AT_name("int32_t") .dwattr $C$DW$T$92, DW_AT_type(*$C$DW$T$71) .dwattr $C$DW$T$92, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$92, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$92, DW_AT_decl_line(0x2e) .dwattr $C$DW$T$92, DW_AT_decl_column(0x14) $C$DW$T$94 .dwtag DW_TAG_typedef .dwattr $C$DW$T$94, DW_AT_name("__nl_item") .dwattr $C$DW$T$94, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$94, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$94, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$94, DW_AT_decl_line(0x3b) .dwattr $C$DW$T$94, DW_AT_decl_column(0x0e) $C$DW$T$11 .dwtag DW_TAG_base_type .dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$11, DW_AT_name("unsigned int") .dwattr $C$DW$T$11, DW_AT_byte_size(0x04) $C$DW$T$26 .dwtag DW_TAG_typedef .dwattr $C$DW$T$26, DW_AT_name("__uint32_t") .dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$11) .dwattr $C$DW$T$26, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$26, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$26, DW_AT_decl_line(0x3e) .dwattr $C$DW$T$26, DW_AT_decl_column(0x17) $C$DW$T$95 .dwtag DW_TAG_typedef .dwattr $C$DW$T$95, DW_AT_name("__clock_t") .dwattr $C$DW$T$95, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$95, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$95, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$95, DW_AT_decl_line(0x4d) .dwattr $C$DW$T$95, DW_AT_decl_column(0x14) $C$DW$T$96 .dwtag DW_TAG_typedef .dwattr $C$DW$T$96, DW_AT_name("__fflags_t") .dwattr $C$DW$T$96, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$96, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$96, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$96, DW_AT_decl_line(0x31) .dwattr $C$DW$T$96, DW_AT_decl_column(0x14) $C$DW$T$97 .dwtag DW_TAG_typedef .dwattr $C$DW$T$97, DW_AT_name("__fixpt_t") .dwattr $C$DW$T$97, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$97, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$97, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$97, DW_AT_decl_line(0x76) .dwattr $C$DW$T$97, DW_AT_decl_column(0x14) $C$DW$T$98 .dwtag DW_TAG_typedef .dwattr $C$DW$T$98, DW_AT_name("__gid_t") .dwattr $C$DW$T$98, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$98, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$98, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$98, DW_AT_decl_line(0x34) .dwattr $C$DW$T$98, DW_AT_decl_column(0x14) $C$DW$T$99 .dwtag DW_TAG_typedef .dwattr $C$DW$T$99, DW_AT_name("__size_t") .dwattr $C$DW$T$99, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$99, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$99, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$99, DW_AT_decl_line(0x5f) .dwattr $C$DW$T$99, DW_AT_decl_column(0x14) $C$DW$T$100 .dwtag DW_TAG_typedef .dwattr $C$DW$T$100, DW_AT_name("__socklen_t") .dwattr $C$DW$T$100, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$100, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$100, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$100, DW_AT_decl_line(0x44) .dwattr $C$DW$T$100, DW_AT_decl_column(0x14) $C$DW$T$101 .dwtag DW_TAG_typedef .dwattr $C$DW$T$101, DW_AT_name("__time_t") .dwattr $C$DW$T$101, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$101, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$101, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$101, DW_AT_decl_line(0x64) .dwattr $C$DW$T$101, DW_AT_decl_column(0x19) $C$DW$T$102 .dwtag DW_TAG_typedef .dwattr $C$DW$T$102, DW_AT_name("__u_register_t") .dwattr $C$DW$T$102, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$102, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$102, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$102, DW_AT_decl_line(0x71) .dwattr $C$DW$T$102, DW_AT_decl_column(0x14) $C$DW$T$103 .dwtag DW_TAG_typedef .dwattr $C$DW$T$103, DW_AT_name("__uid_t") .dwattr $C$DW$T$103, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$103, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$103, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$103, DW_AT_decl_line(0x48) .dwattr $C$DW$T$103, DW_AT_decl_column(0x14) $C$DW$T$104 .dwtag DW_TAG_typedef .dwattr $C$DW$T$104, DW_AT_name("__uint_fast16_t") .dwattr $C$DW$T$104, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$104, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$104, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$104, DW_AT_decl_line(0x6a) .dwattr $C$DW$T$104, DW_AT_decl_column(0x14) $C$DW$T$105 .dwtag DW_TAG_typedef .dwattr $C$DW$T$105, DW_AT_name("uint_fast16_t") .dwattr $C$DW$T$105, DW_AT_type(*$C$DW$T$104) .dwattr $C$DW$T$105, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$105, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$105, DW_AT_decl_line(0x38) .dwattr $C$DW$T$105, DW_AT_decl_column(0x1a) $C$DW$T$106 .dwtag DW_TAG_typedef .dwattr $C$DW$T$106, DW_AT_name("__uint_fast32_t") .dwattr $C$DW$T$106, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$106, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$106, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$106, DW_AT_decl_line(0x6b) .dwattr $C$DW$T$106, DW_AT_decl_column(0x14) $C$DW$T$107 .dwtag DW_TAG_typedef .dwattr $C$DW$T$107, DW_AT_name("uint_fast32_t") .dwattr $C$DW$T$107, DW_AT_type(*$C$DW$T$106) .dwattr $C$DW$T$107, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$107, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$107, DW_AT_decl_line(0x39) .dwattr $C$DW$T$107, DW_AT_decl_column(0x1a) $C$DW$T$108 .dwtag DW_TAG_typedef .dwattr $C$DW$T$108, DW_AT_name("__uint_fast8_t") .dwattr $C$DW$T$108, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$108, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$108, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$108, DW_AT_decl_line(0x69) .dwattr $C$DW$T$108, DW_AT_decl_column(0x14) $C$DW$T$109 .dwtag DW_TAG_typedef .dwattr $C$DW$T$109, DW_AT_name("uint_fast8_t") .dwattr $C$DW$T$109, DW_AT_type(*$C$DW$T$108) .dwattr $C$DW$T$109, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$109, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$109, DW_AT_decl_line(0x37) .dwattr $C$DW$T$109, DW_AT_decl_column(0x19) $C$DW$T$110 .dwtag DW_TAG_typedef .dwattr $C$DW$T$110, DW_AT_name("__uint_least32_t") .dwattr $C$DW$T$110, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$110, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$110, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$110, DW_AT_decl_line(0x6f) .dwattr $C$DW$T$110, DW_AT_decl_column(0x14) $C$DW$T$111 .dwtag DW_TAG_typedef .dwattr $C$DW$T$111, DW_AT_name("__char32_t") .dwattr $C$DW$T$111, DW_AT_type(*$C$DW$T$110) .dwattr $C$DW$T$111, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$111, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$111, DW_AT_decl_line(0x67) .dwattr $C$DW$T$111, DW_AT_decl_column(0x1a) $C$DW$T$112 .dwtag DW_TAG_typedef .dwattr $C$DW$T$112, DW_AT_name("uint_least32_t") .dwattr $C$DW$T$112, DW_AT_type(*$C$DW$T$110) .dwattr $C$DW$T$112, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$112, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$112, DW_AT_decl_line(0x2f) .dwattr $C$DW$T$112, DW_AT_decl_column(0x1a) $C$DW$T$113 .dwtag DW_TAG_typedef .dwattr $C$DW$T$113, DW_AT_name("__uintfptr_t") .dwattr $C$DW$T$113, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$113, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$113, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$113, DW_AT_decl_line(0x66) .dwattr $C$DW$T$113, DW_AT_decl_column(0x14) $C$DW$T$114 .dwtag DW_TAG_typedef .dwattr $C$DW$T$114, DW_AT_name("__uintptr_t") .dwattr $C$DW$T$114, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$114, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$114, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$114, DW_AT_decl_line(0x68) .dwattr $C$DW$T$114, DW_AT_decl_column(0x14) $C$DW$T$115 .dwtag DW_TAG_typedef .dwattr $C$DW$T$115, DW_AT_name("uintptr_t") .dwattr $C$DW$T$115, DW_AT_type(*$C$DW$T$114) .dwattr $C$DW$T$115, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$115, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$115, DW_AT_decl_line(0x50) .dwattr $C$DW$T$115, DW_AT_decl_column(0x16) $C$DW$T$116 .dwtag DW_TAG_typedef .dwattr $C$DW$T$116, DW_AT_name("__vm_offset_t") .dwattr $C$DW$T$116, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$116, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$116, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$116, DW_AT_decl_line(0x72) .dwattr $C$DW$T$116, DW_AT_decl_column(0x14) $C$DW$T$117 .dwtag DW_TAG_typedef .dwattr $C$DW$T$117, DW_AT_name("__vm_paddr_t") .dwattr $C$DW$T$117, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$117, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$117, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$117, DW_AT_decl_line(0x73) .dwattr $C$DW$T$117, DW_AT_decl_column(0x14) $C$DW$T$118 .dwtag DW_TAG_typedef .dwattr $C$DW$T$118, DW_AT_name("__vm_size_t") .dwattr $C$DW$T$118, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$118, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$118, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$118, DW_AT_decl_line(0x74) .dwattr $C$DW$T$118, DW_AT_decl_column(0x14) $C$DW$T$27 .dwtag DW_TAG_typedef .dwattr $C$DW$T$27, DW_AT_name("uint32_t") .dwattr $C$DW$T$27, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$27, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$27, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$27, DW_AT_decl_line(0x42) .dwattr $C$DW$T$27, DW_AT_decl_column(0x15) $C$DW$T$38 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$38, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$T$38, DW_AT_address_class(0x20) $C$DW$T$124 .dwtag DW_TAG_const_type .dwattr $C$DW$T$124, DW_AT_type(*$C$DW$T$27) $C$DW$T$125 .dwtag DW_TAG_array_type .dwattr $C$DW$T$125, DW_AT_type(*$C$DW$T$124) .dwattr $C$DW$T$125, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$125, DW_AT_byte_size(0x08) $C$DW$405 .dwtag DW_TAG_subrange_type .dwattr $C$DW$405, DW_AT_upper_bound(0x01) .dwendtag $C$DW$T$125 $C$DW$T$126 .dwtag DW_TAG_array_type .dwattr $C$DW$T$126, DW_AT_type(*$C$DW$T$124) .dwattr $C$DW$T$126, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$126, DW_AT_byte_size(0xc0) $C$DW$406 .dwtag DW_TAG_subrange_type .dwattr $C$DW$406, DW_AT_upper_bound(0x17) $C$DW$407 .dwtag DW_TAG_subrange_type .dwattr $C$DW$407, DW_AT_upper_bound(0x01) .dwendtag $C$DW$T$126 $C$DW$T$127 .dwtag DW_TAG_array_type .dwattr $C$DW$T$127, DW_AT_type(*$C$DW$T$124) .dwattr $C$DW$T$127, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$127, DW_AT_byte_size(0xd8) $C$DW$408 .dwtag DW_TAG_subrange_type .dwattr $C$DW$408, DW_AT_upper_bound(0x1a) $C$DW$409 .dwtag DW_TAG_subrange_type .dwattr $C$DW$409, DW_AT_upper_bound(0x01) .dwendtag $C$DW$T$127 $C$DW$T$128 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$128, DW_AT_type(*$C$DW$T$125) .dwattr $C$DW$T$128, DW_AT_address_class(0x20) $C$DW$T$129 .dwtag DW_TAG_array_type .dwattr $C$DW$T$129, DW_AT_type(*$C$DW$T$124) .dwattr $C$DW$T$129, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$129, DW_AT_byte_size(0x90) $C$DW$410 .dwtag DW_TAG_subrange_type .dwattr $C$DW$410, DW_AT_upper_bound(0x23) .dwendtag $C$DW$T$129 $C$DW$T$133 .dwtag DW_TAG_typedef .dwattr $C$DW$T$133, DW_AT_name("__useconds_t") .dwattr $C$DW$T$133, DW_AT_type(*$C$DW$T$11) .dwattr $C$DW$T$133, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$133, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$133, DW_AT_decl_line(0x49) .dwattr $C$DW$T$133, DW_AT_decl_column(0x16) $C$DW$T$12 .dwtag DW_TAG_base_type .dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$12, DW_AT_name("long") .dwattr $C$DW$T$12, DW_AT_byte_size(0x04) $C$DW$T$134 .dwtag DW_TAG_typedef .dwattr $C$DW$T$134, DW_AT_name("__key_t") .dwattr $C$DW$T$134, DW_AT_type(*$C$DW$T$12) .dwattr $C$DW$T$134, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$134, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$134, DW_AT_decl_line(0x37) .dwattr $C$DW$T$134, DW_AT_decl_column(0x0f) $C$DW$T$135 .dwtag DW_TAG_typedef .dwattr $C$DW$T$135, DW_AT_name("__suseconds_t") .dwattr $C$DW$T$135, DW_AT_type(*$C$DW$T$12) .dwattr $C$DW$T$135, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$135, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$135, DW_AT_decl_line(0x45) .dwattr $C$DW$T$135, DW_AT_decl_column(0x0f) $C$DW$T$13 .dwtag DW_TAG_base_type .dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$13, DW_AT_name("unsigned long") .dwattr $C$DW$T$13, DW_AT_byte_size(0x04) $C$DW$T$14 .dwtag DW_TAG_base_type .dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed) .dwattr $C$DW$T$14, DW_AT_name("long long") .dwattr $C$DW$T$14, DW_AT_byte_size(0x08) $C$DW$T$136 .dwtag DW_TAG_typedef .dwattr $C$DW$T$136, DW_AT_name("__int64_t") .dwattr $C$DW$T$136, DW_AT_type(*$C$DW$T$14) .dwattr $C$DW$T$136, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$136, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$136, DW_AT_decl_line(0x43) .dwattr $C$DW$T$136, DW_AT_decl_column(0x14) $C$DW$T$137 .dwtag DW_TAG_typedef .dwattr $C$DW$T$137, DW_AT_name("__blkcnt_t") .dwattr $C$DW$T$137, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$137, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$137, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$137, DW_AT_decl_line(0x2f) .dwattr $C$DW$T$137, DW_AT_decl_column(0x13) $C$DW$T$138 .dwtag DW_TAG_typedef .dwattr $C$DW$T$138, DW_AT_name("__id_t") .dwattr $C$DW$T$138, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$138, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$138, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$138, DW_AT_decl_line(0x35) .dwattr $C$DW$T$138, DW_AT_decl_column(0x13) $C$DW$T$139 .dwtag DW_TAG_typedef .dwattr $C$DW$T$139, DW_AT_name("__int_fast64_t") .dwattr $C$DW$T$139, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$139, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$139, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$139, DW_AT_decl_line(0x57) .dwattr $C$DW$T$139, DW_AT_decl_column(0x13) $C$DW$T$140 .dwtag DW_TAG_typedef .dwattr $C$DW$T$140, DW_AT_name("int_fast64_t") .dwattr $C$DW$T$140, DW_AT_type(*$C$DW$T$139) .dwattr $C$DW$T$140, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$140, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$140, DW_AT_decl_line(0x35) .dwattr $C$DW$T$140, DW_AT_decl_column(0x19) $C$DW$T$141 .dwtag DW_TAG_typedef .dwattr $C$DW$T$141, DW_AT_name("__int_least64_t") .dwattr $C$DW$T$141, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$141, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$141, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$141, DW_AT_decl_line(0x5b) .dwattr $C$DW$T$141, DW_AT_decl_column(0x13) $C$DW$T$142 .dwtag DW_TAG_typedef .dwattr $C$DW$T$142, DW_AT_name("int_least64_t") .dwattr $C$DW$T$142, DW_AT_type(*$C$DW$T$141) .dwattr $C$DW$T$142, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$142, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$142, DW_AT_decl_line(0x2b) .dwattr $C$DW$T$142, DW_AT_decl_column(0x1a) $C$DW$T$143 .dwtag DW_TAG_typedef .dwattr $C$DW$T$143, DW_AT_name("__intmax_t") .dwattr $C$DW$T$143, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$143, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$143, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$143, DW_AT_decl_line(0x52) .dwattr $C$DW$T$143, DW_AT_decl_column(0x13) $C$DW$T$144 .dwtag DW_TAG_typedef .dwattr $C$DW$T$144, DW_AT_name("intmax_t") .dwattr $C$DW$T$144, DW_AT_type(*$C$DW$T$143) .dwattr $C$DW$T$144, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$144, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$144, DW_AT_decl_line(0x54) .dwattr $C$DW$T$144, DW_AT_decl_column(0x15) $C$DW$T$145 .dwtag DW_TAG_typedef .dwattr $C$DW$T$145, DW_AT_name("__off64_t") .dwattr $C$DW$T$145, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$145, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$145, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$145, DW_AT_decl_line(0x3e) .dwattr $C$DW$T$145, DW_AT_decl_column(0x13) $C$DW$T$146 .dwtag DW_TAG_typedef .dwattr $C$DW$T$146, DW_AT_name("__off_t") .dwattr $C$DW$T$146, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$146, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$146, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$146, DW_AT_decl_line(0x3d) .dwattr $C$DW$T$146, DW_AT_decl_column(0x13) $C$DW$T$147 .dwtag DW_TAG_typedef .dwattr $C$DW$T$147, DW_AT_name("__rlim_t") .dwattr $C$DW$T$147, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$147, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$147, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$147, DW_AT_decl_line(0x40) .dwattr $C$DW$T$147, DW_AT_decl_column(0x13) $C$DW$T$148 .dwtag DW_TAG_typedef .dwattr $C$DW$T$148, DW_AT_name("int64_t") .dwattr $C$DW$T$148, DW_AT_type(*$C$DW$T$136) .dwattr $C$DW$T$148, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$148, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$148, DW_AT_decl_line(0x33) .dwattr $C$DW$T$148, DW_AT_decl_column(0x14) $C$DW$T$15 .dwtag DW_TAG_base_type .dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned) .dwattr $C$DW$T$15, DW_AT_name("unsigned long long") .dwattr $C$DW$T$15, DW_AT_byte_size(0x08) $C$DW$T$149 .dwtag DW_TAG_typedef .dwattr $C$DW$T$149, DW_AT_name("__uint64_t") .dwattr $C$DW$T$149, DW_AT_type(*$C$DW$T$15) .dwattr $C$DW$T$149, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$149, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$149, DW_AT_decl_line(0x48) .dwattr $C$DW$T$149, DW_AT_decl_column(0x1c) $C$DW$T$150 .dwtag DW_TAG_typedef .dwattr $C$DW$T$150, DW_AT_name("__dev_t") .dwattr $C$DW$T$150, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$150, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$150, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$150, DW_AT_decl_line(0x74) .dwattr $C$DW$T$150, DW_AT_decl_column(0x14) $C$DW$T$151 .dwtag DW_TAG_typedef .dwattr $C$DW$T$151, DW_AT_name("__fsblkcnt_t") .dwattr $C$DW$T$151, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$151, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$151, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$151, DW_AT_decl_line(0x32) .dwattr $C$DW$T$151, DW_AT_decl_column(0x14) $C$DW$T$152 .dwtag DW_TAG_typedef .dwattr $C$DW$T$152, DW_AT_name("__fsfilcnt_t") .dwattr $C$DW$T$152, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$152, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$152, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$152, DW_AT_decl_line(0x33) .dwattr $C$DW$T$152, DW_AT_decl_column(0x14) $C$DW$T$153 .dwtag DW_TAG_typedef .dwattr $C$DW$T$153, DW_AT_name("__ino_t") .dwattr $C$DW$T$153, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$153, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$153, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$153, DW_AT_decl_line(0x36) .dwattr $C$DW$T$153, DW_AT_decl_column(0x14) $C$DW$T$154 .dwtag DW_TAG_typedef .dwattr $C$DW$T$154, DW_AT_name("__nlink_t") .dwattr $C$DW$T$154, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$154, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$154, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$154, DW_AT_decl_line(0x3c) .dwattr $C$DW$T$154, DW_AT_decl_column(0x14) $C$DW$T$155 .dwtag DW_TAG_typedef .dwattr $C$DW$T$155, DW_AT_name("__uint_fast64_t") .dwattr $C$DW$T$155, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$155, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$155, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$155, DW_AT_decl_line(0x6c) .dwattr $C$DW$T$155, DW_AT_decl_column(0x14) $C$DW$T$156 .dwtag DW_TAG_typedef .dwattr $C$DW$T$156, DW_AT_name("uint_fast64_t") .dwattr $C$DW$T$156, DW_AT_type(*$C$DW$T$155) .dwattr $C$DW$T$156, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$156, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$156, DW_AT_decl_line(0x3a) .dwattr $C$DW$T$156, DW_AT_decl_column(0x1a) $C$DW$T$157 .dwtag DW_TAG_typedef .dwattr $C$DW$T$157, DW_AT_name("__uint_least64_t") .dwattr $C$DW$T$157, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$157, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$157, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$157, DW_AT_decl_line(0x70) .dwattr $C$DW$T$157, DW_AT_decl_column(0x14) $C$DW$T$158 .dwtag DW_TAG_typedef .dwattr $C$DW$T$158, DW_AT_name("uint_least64_t") .dwattr $C$DW$T$158, DW_AT_type(*$C$DW$T$157) .dwattr $C$DW$T$158, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$158, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h") .dwattr $C$DW$T$158, DW_AT_decl_line(0x30) .dwattr $C$DW$T$158, DW_AT_decl_column(0x1a) $C$DW$T$159 .dwtag DW_TAG_typedef .dwattr $C$DW$T$159, DW_AT_name("__uintmax_t") .dwattr $C$DW$T$159, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$159, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$159, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$159, DW_AT_decl_line(0x67) .dwattr $C$DW$T$159, DW_AT_decl_column(0x14) $C$DW$T$160 .dwtag DW_TAG_typedef .dwattr $C$DW$T$160, DW_AT_name("__rman_res_t") .dwattr $C$DW$T$160, DW_AT_type(*$C$DW$T$159) .dwattr $C$DW$T$160, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$160, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$160, DW_AT_decl_line(0x8f) .dwattr $C$DW$T$160, DW_AT_decl_column(0x19) $C$DW$T$161 .dwtag DW_TAG_typedef .dwattr $C$DW$T$161, DW_AT_name("uintmax_t") .dwattr $C$DW$T$161, DW_AT_type(*$C$DW$T$159) .dwattr $C$DW$T$161, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$161, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$161, DW_AT_decl_line(0x58) .dwattr $C$DW$T$161, DW_AT_decl_column(0x16) $C$DW$T$162 .dwtag DW_TAG_typedef .dwattr $C$DW$T$162, DW_AT_name("uint64_t") .dwattr $C$DW$T$162, DW_AT_type(*$C$DW$T$149) .dwattr $C$DW$T$162, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$162, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h") .dwattr $C$DW$T$162, DW_AT_decl_line(0x47) .dwattr $C$DW$T$162, DW_AT_decl_column(0x15) $C$DW$T$16 .dwtag DW_TAG_base_type .dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float) .dwattr $C$DW$T$16, DW_AT_name("float") .dwattr $C$DW$T$16, DW_AT_byte_size(0x04) $C$DW$T$163 .dwtag DW_TAG_typedef .dwattr $C$DW$T$163, DW_AT_name("__float_t") .dwattr $C$DW$T$163, DW_AT_type(*$C$DW$T$16) .dwattr $C$DW$T$163, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$163, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$163, DW_AT_decl_line(0x50) .dwattr $C$DW$T$163, DW_AT_decl_column(0x10) $C$DW$T$17 .dwtag DW_TAG_base_type .dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float) .dwattr $C$DW$T$17, DW_AT_name("double") .dwattr $C$DW$T$17, DW_AT_byte_size(0x08) $C$DW$T$164 .dwtag DW_TAG_typedef .dwattr $C$DW$T$164, DW_AT_name("__double_t") .dwattr $C$DW$T$164, DW_AT_type(*$C$DW$T$17) .dwattr $C$DW$T$164, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$164, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$164, DW_AT_decl_line(0x4f) .dwattr $C$DW$T$164, DW_AT_decl_column(0x11) $C$DW$T$18 .dwtag DW_TAG_base_type .dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float) .dwattr $C$DW$T$18, DW_AT_name("long double") .dwattr $C$DW$T$18, DW_AT_byte_size(0x08) $C$DW$T$122 .dwtag DW_TAG_base_type .dwattr $C$DW$T$122, DW_AT_encoding(DW_ATE_unsigned_char) .dwattr $C$DW$T$122, DW_AT_name("unsigned char") .dwattr $C$DW$T$122, DW_AT_byte_size(0x01) $C$DW$T$19 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$19, DW_AT_name("__mq") .dwattr $C$DW$T$19, DW_AT_declaration .dwattr $C$DW$T$19, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$19, DW_AT_decl_line(0x47) .dwattr $C$DW$T$19, DW_AT_decl_column(0x10) .dwendtag $C$DW$T$19 $C$DW$T$165 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$165, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$T$165, DW_AT_address_class(0x20) $C$DW$T$166 .dwtag DW_TAG_typedef .dwattr $C$DW$T$166, DW_AT_name("__mqd_t") .dwattr $C$DW$T$166, DW_AT_type(*$C$DW$T$165) .dwattr $C$DW$T$166, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$166, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$166, DW_AT_decl_line(0x47) .dwattr $C$DW$T$166, DW_AT_decl_column(0x16) $C$DW$T$20 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$20, DW_AT_name("__timer") .dwattr $C$DW$T$20, DW_AT_declaration .dwattr $C$DW$T$20, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$20, DW_AT_decl_line(0x46) .dwattr $C$DW$T$20, DW_AT_decl_column(0x10) .dwendtag $C$DW$T$20 $C$DW$T$167 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$167, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$167, DW_AT_address_class(0x20) $C$DW$T$168 .dwtag DW_TAG_typedef .dwattr $C$DW$T$168, DW_AT_name("__timer_t") .dwattr $C$DW$T$168, DW_AT_type(*$C$DW$T$167) .dwattr $C$DW$T$168, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$168, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h") .dwattr $C$DW$T$168, DW_AT_decl_line(0x46) .dwattr $C$DW$T$168, DW_AT_decl_column(0x19) $C$DW$T$22 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$22, DW_AT_name("__va_list_t") .dwattr $C$DW$T$22, DW_AT_byte_size(0x04) $C$DW$411 .dwtag DW_TAG_member .dwattr $C$DW$411, DW_AT_type(*$C$DW$T$3) .dwattr $C$DW$411, DW_AT_name("__ap") .dwattr $C$DW$411, DW_AT_TI_symbol_name("__ap") .dwattr $C$DW$411, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$411, DW_AT_accessibility(DW_ACCESS_public) .dwattr $C$DW$411, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$411, DW_AT_decl_line(0x88) .dwattr $C$DW$411, DW_AT_decl_column(0x0c) .dwattr $C$DW$T$22, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$22, DW_AT_decl_line(0x87) .dwattr $C$DW$T$22, DW_AT_decl_column(0x10) .dwendtag $C$DW$T$22 $C$DW$T$169 .dwtag DW_TAG_typedef .dwattr $C$DW$T$169, DW_AT_name("__va_list") .dwattr $C$DW$T$169, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$T$169, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$169, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h") .dwattr $C$DW$T$169, DW_AT_decl_line(0x89) .dwattr $C$DW$T$169, DW_AT_decl_column(0x03) .dwattr $C$DW$CU, DW_AT_language(DW_LANG_C) ;*************************************************************** ;* DWARF CIE ENTRIES * ;*************************************************************** $C$DW$CIE .dwcie 14 .dwcfi cfa_register, 13 .dwcfi cfa_offset, 0 .dwcfi same_value, 4 .dwcfi same_value, 5 .dwcfi same_value, 6 .dwcfi same_value, 7 .dwcfi same_value, 8 .dwcfi same_value, 9 .dwcfi same_value, 10 .dwcfi same_value, 11 .dwcfi same_value, 80 .dwcfi same_value, 81 .dwcfi same_value, 82 .dwcfi same_value, 83 .dwcfi same_value, 84 .dwcfi same_value, 85 .dwcfi same_value, 86 .dwcfi same_value, 87 .dwcfi same_value, 88 .dwcfi same_value, 89 .dwcfi same_value, 90 .dwcfi same_value, 91 .dwcfi same_value, 92 .dwcfi same_value, 93 .dwcfi same_value, 94 .dwcfi same_value, 95 .dwendentry ;*************************************************************** ;* DWARF REGISTER MAP * ;*************************************************************** $C$DW$412 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$412, DW_AT_name("A1") .dwattr $C$DW$412, DW_AT_location[DW_OP_reg0] $C$DW$413 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$413, DW_AT_name("A2") .dwattr $C$DW$413, DW_AT_location[DW_OP_reg1] $C$DW$414 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$414, DW_AT_name("A3") .dwattr $C$DW$414, DW_AT_location[DW_OP_reg2] $C$DW$415 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$415, DW_AT_name("A4") .dwattr $C$DW$415, DW_AT_location[DW_OP_reg3] $C$DW$416 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$416, DW_AT_name("V1") .dwattr $C$DW$416, DW_AT_location[DW_OP_reg4] $C$DW$417 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$417, DW_AT_name("V2") .dwattr $C$DW$417, DW_AT_location[DW_OP_reg5] $C$DW$418 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$418, DW_AT_name("V3") .dwattr $C$DW$418, DW_AT_location[DW_OP_reg6] $C$DW$419 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$419, DW_AT_name("V4") .dwattr $C$DW$419, DW_AT_location[DW_OP_reg7] $C$DW$420 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$420, DW_AT_name("V5") .dwattr $C$DW$420, DW_AT_location[DW_OP_reg8] $C$DW$421 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$421, DW_AT_name("V6") .dwattr $C$DW$421, DW_AT_location[DW_OP_reg9] $C$DW$422 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$422, DW_AT_name("V7") .dwattr $C$DW$422, DW_AT_location[DW_OP_reg10] $C$DW$423 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$423, DW_AT_name("V8") .dwattr $C$DW$423, DW_AT_location[DW_OP_reg11] $C$DW$424 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$424, DW_AT_name("V9") .dwattr $C$DW$424, DW_AT_location[DW_OP_reg12] $C$DW$425 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$425, DW_AT_name("SP") .dwattr $C$DW$425, DW_AT_location[DW_OP_reg13] $C$DW$426 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$426, DW_AT_name("LR") .dwattr $C$DW$426, DW_AT_location[DW_OP_reg14] $C$DW$427 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$427, DW_AT_name("PC") .dwattr $C$DW$427, DW_AT_location[DW_OP_reg15] $C$DW$428 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$428, DW_AT_name("SR") .dwattr $C$DW$428, DW_AT_location[DW_OP_reg17] $C$DW$429 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$429, DW_AT_name("AP") .dwattr $C$DW$429, DW_AT_location[DW_OP_reg7] $C$DW$430 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$430, DW_AT_name("D0") .dwattr $C$DW$430, DW_AT_location[DW_OP_regx 0x40] $C$DW$431 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$431, DW_AT_name("D0_hi") .dwattr $C$DW$431, DW_AT_location[DW_OP_regx 0x41] $C$DW$432 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$432, DW_AT_name("D1") .dwattr $C$DW$432, DW_AT_location[DW_OP_regx 0x42] $C$DW$433 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$433, DW_AT_name("D1_hi") .dwattr $C$DW$433, DW_AT_location[DW_OP_regx 0x43] $C$DW$434 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$434, DW_AT_name("D2") .dwattr $C$DW$434, DW_AT_location[DW_OP_regx 0x44] $C$DW$435 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$435, DW_AT_name("D2_hi") .dwattr $C$DW$435, DW_AT_location[DW_OP_regx 0x45] $C$DW$436 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$436, DW_AT_name("D3") .dwattr $C$DW$436, DW_AT_location[DW_OP_regx 0x46] $C$DW$437 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$437, DW_AT_name("D3_hi") .dwattr $C$DW$437, DW_AT_location[DW_OP_regx 0x47] $C$DW$438 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$438, DW_AT_name("D4") .dwattr $C$DW$438, DW_AT_location[DW_OP_regx 0x48] $C$DW$439 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$439, DW_AT_name("D4_hi") .dwattr $C$DW$439, DW_AT_location[DW_OP_regx 0x49] $C$DW$440 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$440, DW_AT_name("D5") .dwattr $C$DW$440, DW_AT_location[DW_OP_regx 0x4a] $C$DW$441 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$441, DW_AT_name("D5_hi") .dwattr $C$DW$441, DW_AT_location[DW_OP_regx 0x4b] $C$DW$442 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$442, DW_AT_name("D6") .dwattr $C$DW$442, DW_AT_location[DW_OP_regx 0x4c] $C$DW$443 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$443, DW_AT_name("D6_hi") .dwattr $C$DW$443, DW_AT_location[DW_OP_regx 0x4d] $C$DW$444 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$444, DW_AT_name("D7") .dwattr $C$DW$444, DW_AT_location[DW_OP_regx 0x4e] $C$DW$445 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$445, DW_AT_name("D7_hi") .dwattr $C$DW$445, DW_AT_location[DW_OP_regx 0x4f] $C$DW$446 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$446, DW_AT_name("D8") .dwattr $C$DW$446, DW_AT_location[DW_OP_regx 0x50] $C$DW$447 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$447, DW_AT_name("D8_hi") .dwattr $C$DW$447, DW_AT_location[DW_OP_regx 0x51] $C$DW$448 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$448, DW_AT_name("D9") .dwattr $C$DW$448, DW_AT_location[DW_OP_regx 0x52] $C$DW$449 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$449, DW_AT_name("D9_hi") .dwattr $C$DW$449, DW_AT_location[DW_OP_regx 0x53] $C$DW$450 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$450, DW_AT_name("D10") .dwattr $C$DW$450, DW_AT_location[DW_OP_regx 0x54] $C$DW$451 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$451, DW_AT_name("D10_hi") .dwattr $C$DW$451, DW_AT_location[DW_OP_regx 0x55] $C$DW$452 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$452, DW_AT_name("D11") .dwattr $C$DW$452, DW_AT_location[DW_OP_regx 0x56] $C$DW$453 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$453, DW_AT_name("D11_hi") .dwattr $C$DW$453, DW_AT_location[DW_OP_regx 0x57] $C$DW$454 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$454, DW_AT_name("D12") .dwattr $C$DW$454, DW_AT_location[DW_OP_regx 0x58] $C$DW$455 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$455, DW_AT_name("D12_hi") .dwattr $C$DW$455, DW_AT_location[DW_OP_regx 0x59] $C$DW$456 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$456, DW_AT_name("D13") .dwattr $C$DW$456, DW_AT_location[DW_OP_regx 0x5a] $C$DW$457 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$457, DW_AT_name("D13_hi") .dwattr $C$DW$457, DW_AT_location[DW_OP_regx 0x5b] $C$DW$458 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$458, DW_AT_name("D14") .dwattr $C$DW$458, DW_AT_location[DW_OP_regx 0x5c] $C$DW$459 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$459, DW_AT_name("D14_hi") .dwattr $C$DW$459, DW_AT_location[DW_OP_regx 0x5d] $C$DW$460 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$460, DW_AT_name("D15") .dwattr $C$DW$460, DW_AT_location[DW_OP_regx 0x5e] $C$DW$461 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$461, DW_AT_name("D15_hi") .dwattr $C$DW$461, DW_AT_location[DW_OP_regx 0x5f] $C$DW$462 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$462, DW_AT_name("FPEXC") .dwattr $C$DW$462, DW_AT_location[DW_OP_reg18] $C$DW$463 .dwtag DW_TAG_TI_assign_register .dwattr $C$DW$463, DW_AT_name("FPSCR") .dwattr $C$DW$463, DW_AT_location[DW_OP_reg19] .dwendtag $C$DW$CU
EulerCpp/uint128.asm
crea7or/EulerPowersConjecture
3
160690
<gh_stars>1-10 .code Multiply128 PROC ; RCX , RDX, R8, R9 push rbx push rsi push rdi mov r10, rcx mov rsi, QWORD PTR [RDX + 08h] ; l2 mov rdi, QWORD PTR [RDX] ; h2 mov rbx, QWORD PTR [R10 + 08h] ; l1 mov rcx, QWORD PTR [R10] ; h1 ; l1 * l2 mov rax, rbx mul rsi ; result in %rdx:%rax mov r8, rax mov r9, rdx ; l1 * h2 mov rax, rbx mul rdi ; result in %rdx:%rax add r9, rax ; adc? ; h1 * l2 mov rax, rcx mul rsi ; result in %rdx:%rax add r9, rax mov QWORD PTR [R10 + 08h], r8 mov QWORD PTR [R10], r9 pop rdi pop rsi pop rbx ret Multiply128 ENDP Adc128 PROC ; RCX , RDX, R8, R9 mov r8, QWORD PTR [RCX + 08h] mov rax, QWORD PTR [RCX] add r8, QWORD PTR [RDX + 08h] mov QWORD PTR [RCX + 08h], r8 adc rax, QWORD PTR [RDX] mov QWORD PTR [RCX], rax ret Adc128 ENDP END
Irvine/Examples/ch11/template.asm
alieonsido/ASM_TESTING
0
101270
<gh_stars>0 ; Demonstrate the MessageBoxA function (MessageBox.asm) .386p .model flat,stdcall .stack 1000h INCLUDE Irvine32.inc MessageBoxA PROTO, hWnd:DWORD, lpText:PTR BYTE, lpCaption:PTR BYTE, style:DWORD ExitProcess PROTO, dwExitCode:DWORD MB_OK = 0 NULL = 0 .data caption db "Message Title",0 helloMsg BYTE "This is a simple message" BYTE 0dh, 0ah, "Click OK to close the box",0 consoleMsg BYTE "Appears in the console window",0dh,0ah,0 questionMsg BYTE "Do you want to quit?",0 .code main PROC call simple_message ; How does popup synchronize with console window? mov edx,OFFSET consoleMsg call WriteString call Crlf INVOKE ExitProcess, 0 main ENDP ;----------------------------------------------- simple_message PROC ;----------------------------------------------- pushad INVOKE MessageBoxA, NULL, ADDR helloMsg, ADDR caption, MB_OK popad ret simple_message ENDP ;----------------------------------------------- question_message PROC ;----------------------------------------------- pushad INVOKE MessageBoxA, NULL, ADDR helloMsg, ADDR caption, MB_OK popad ret question_message ENDP END main
programs/oeis/027/A027800.asm
neoneye/loda
22
86736
<reponame>neoneye/loda<filename>programs/oeis/027/A027800.asm ; A027800: a(n) = (n+1)*binomial(n+4, 4). ; 1,10,45,140,350,756,1470,2640,4455,7150,11011,16380,23660,33320,45900,62016,82365,107730,138985,177100,223146,278300,343850,421200,511875,617526,739935,881020,1042840,1227600,1437656,1675520,1943865,2245530,2583525,2961036,3381430,3848260,4365270,4936400,5565791,6257790,7016955,7848060,8756100,9746296,10824100,11995200,13265525,14641250,16128801,17734860,19466370,21330540,23334850,25487056,27795195,30267590,32912855,35739900,38757936,41976480,45405360,49054720,52935025,57057066,61431965,66071180,70986510,76190100,81694446,87512400,93657175,100142350,106981875,114190076,121781660,129771720,138175740,147009600,156289581,166032370,176255065,186975180,198210650,209979836,222301530,235194960,248679795,262776150,277504591,292886140,308942280,325694960,343166600,361380096,380358825,400126650,420707925,442127500 add $0,4 mov $1,$0 sub $0,3 bin $1,4 mul $0,$1
programs/oeis/174/A174784.asm
karttu/loda
0
99462
<gh_stars>0 ; A174784: Expansion of x*(1-x+x^3+x^4)/(1+x^6) (Period 12). ; 0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0 mov $2,$0 sub $2,1 lpb $2,1 mul $0,2 sub $2,6 lpe lpb $0,1 sub $0,3 lpe mov $1,$0
n2o/Network/WebSocket.agda
o4/n2o
3
8841
{-# OPTIONS --cubical #-} module n2o.Network.WebSocket where open import proto.Base open import proto.IO open import n2o.Network.Internal {-# FOREIGN GHC import Network.N2O.Web.WebSockets #-} data N2OProto (A : Set) : Set where Io : ByteString Strict → ByteString Strict → N2OProto A Nop : N2OProto A Cx : Set → Set Cx = Context N2OProto CxHandler : Set → Set CxHandler a = Cx a → Cx a -- mkHandler : ∀ {A : Set} (h : Set → IO A) → Set → IO A -- mkHandler h m = h m >> return Empty -- TODO : monad instance for Result postulate runServer : ∀ {A : Set} → String → ℤ → Context N2OProto A → IO ⊤ {-# COMPILE GHC Cx = Network.N2O.Web.WebSockets.Cx #-} {-# COMPILE GHC CxHandler = Network.N2O.Web.WebSockets.CxHandler #-} {-# COMPILE GHC runServer = Network.N2O.Web.WebSockets.runServer #-} {-# COMPILE GHC N2OProto = data Network.N2O.Web.Websockets.N2OProto ( Io | Nop ) #-}
oeis/345/A345094.asm
neoneye/loda-programs
11
244885
; A345094: a(n) = Sum_{k=1..n} floor(n/k)^(floor(n/k) - 1). ; Submitted by <NAME> ; 1,3,11,68,630,7790,117664,2097224,43046801,1000000643,25937425245,743008378547,23298085130341,793714773371879,29192926025508929,1152921504608944840,48661191875668966346,2185911559738739586562,104127350297911284587436,5242880000000001000008492,278218429446951549637314774,15519448971100888998512394048,907846434775996175432678104306,55572324035428505186121405177606,3552713678800500929356364348366969,236773830007967588876818463025697515,16423203268260658146231491098837433005 add $0,1 mov $5,$0 lpb $0 mov $3,$2 mov $4,$0 cmp $4,0 add $0,$4 mov $2,$5 div $2,$0 sub $0,1 sub $2,1 cmp $3,0 add $3,$2 pow $3,$2 add $1,$3 div $2,$1 lpe mov $0,$1
in/boot/setup.asm
Daliji/Diers
4
243966
org 0x0000 jmp start SETUPSEG equ 0x9000 DATASEG equ 0x8000 SETSEG equ 0x0400 INT_TABLE equ 0x0500 gdtaddr: dw 0xffff dw 0x3000 dw 0x0000 gdt: null_table: dw 0,0,0,0 system_code_table: dw 0xffff dw 0x0000 dw 0x9a00 dw 0x00c0 system_data_table: dw 0xffff dw 0x0000 dw 0x9200 dw 0x00c0 idtaddr: dw 0x0 dw 0x0 dw 0x0 start: call load_msg load_int: mov ax,0 mov ds,ax xor si,si mov ax,DATASEG mov es,ax mov di,INT_TABLE mov cx,0x400 rep movsb end_load_int: load_jump: mov ax,DATASEG mov ds,ax mov dl,[0] mov ax,SETUPSEG mov es,ax mov bx,SETSEG mov ah,0x02 mov al,1 mov dh,0 mov cx,0x0004 int 0x13 jnc load_set mov ax,0 mov dx,[0] int 0x13 jmp start load_set: mov ax,0x1200 mov es,ax xor bx,bx mov dl,[0] mov ah,0x02 mov al,0x40 ;64个扇区,32kb mov dh,0 mov cx,0x0005 int 0x13 jnc ok_load mov ax,0 mov dx,[0] int 0x13 jmp load_set ok_load: get_vidio_mode: mov ah,0x0f int 0x10 mov [5],bx ;当前显示页面 ;; 0x80007:当前显示模式 ;; 0x80008字符列数 mov [7],ax mov ah,0x12 mov bl,0x10 int 0x10 ;; 0x80009:显示内存 ;; 0x8000a:显示状态 mov [9],bx ;; 0x8000b:显卡特性参数 mov [11],cx ok_get_vidio: ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; hadware read here. ;; get memory size. mov ax,DATASEG mov ds,ax mov ah,0x88 int 0x15 mov [1],ax ;; set curser show message. mov al,'b' mov [3],al mov al,0x04 mov [4],al ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; open A20. call open_a20 ;; no interrupts allowed. cli ;; mov set file to 0x0000:0x0000. call move_jump ;; move gdt to 0x00003000 call move_gdt ;; set gdt. lgdt [gdtaddr] ;; set idt empty. lidt [idtaddr] ;; init 8259A. call init_8259a ;; set cr0 call set_cr0 ;; jump to set program. jmp 0x8:0x0 move_gdt: cld mov ax,0x0000 mov es,ax mov di,0x3000 mov ax,cs mov ds,ax mov si,gdt mov cx,20 rep movsw ret load_msg: call load_curser mov ax,cs mov es,ax mov ax,loadmessage mov cx,16 mov bp,ax mov ax,0x1301 mov bx,0x000c int 0x10 ret load_curser: mov ah,0x03 xor bh,bh int 0x10 ret open_a20: o: mov dx,0x92 mov al,02 out dx,al t: mov dx,92h in al,dx and al,02 jz o ret move_jump: cld mov ax,SETUPSEG mov ds,ax mov si,SETSEG mov ax,0x0 mov es,ax xor di,di mov cx,256 rep movsw ret init_8259a: mov al,0x11 out 0x20,al call io_delay out 0xa0,al call io_delay mov al,0x20 out 0x21,al call io_delay mov al,0x28 out 0xa1,al call io_delay mov al,0x04 out 0x21,al call io_delay mov al,0x02 out 0xa1,al call io_delay mov al,0x01 out 0x21,al call io_delay out 0xa1,al call io_delay mov al,0xff out 0x21,al ;关闭主8259A控制 call io_delay out 0xa1,al ;关闭从8259A控制 call io_delay ret io_delay: mov bx,bx mov bx,bx mov bx,bx ret set_cr0: mov eax,cr0 or eax,1 mov cr0,eax ret loadmessage: db "Setup diers..." db 13,10 times 1024-($-$$) db 0
software/rom/bios_string.asm
JCLemme/eprisc
0
8668
; epRISC development platform - BIOS string and text routines ; ; written by <NAME>, jclemme (at) proportionallabs (dot) com ; this file is part of the epRISC project, released under the epRISC license - see "license.txt" for details. ; ; These routines deal with printing strings, numbers, and other text to the user. Relies on UART-style character printing. !zone str_hnum !def REG_INPT %Zw !def REG_WORK %Zx !def REG_CONT %Zy :str_hnum push.r s:REG_INPT push.r s:REG_WORK push.r s:REG_CONT subr.v d:%SP a:%SP v:#h04 ; Set up the stack pops.r d:REG_INPT ; Get the number we're supposed to print move.v d:REG_CONT v:#h08 addr.v d:%SP a:%SP v:#h05 ; Set up the stack :.ploop andb.v d:REG_WORK a:REG_INPT v:#hF0 s:#h0C arsl.v d:REG_INPT a:REG_INPT v:#h04 losr.v d:REG_WORK a:REG_WORK v:#h1C ; Grab a nybble addr.v d:REG_WORK a:REG_WORK v:#h30 ; Make it an ASCII number cmpr.v a:REG_WORK v:#h3A brch.a c:%LOW a:.prest ; Hex needs a little more addr.v d:REG_WORK a:REG_WORK v:#h07 :.prest push.r s:REG_WORK call.s a:ser_send ;call.s a:vga_putc pops.r d:REG_WORK ; Print it subr.v d:REG_CONT a:REG_CONT v:#h01 cmpr.v a:REG_CONT v:#h00 brch.a c:%NEQ a:.ploop ; Repeat pops.r d:REG_CONT pops.r d:REG_WORK pops.r d:REG_INPT rtrn.s ; And return !zone str_lnum !def REG_INPT %Zw !def REG_CONT %Zx !def REG_WORK %Zy :str_lnum push.r s:REG_INPT push.r s:REG_CONT push.r s:REG_WORK subr.v d:%SP a:%SP v:#h04 ; Set up the stack pops.r d:REG_CONT ; Get the number we're supposed to print pops.r d:REG_INPT addr.v d:%SP a:%SP v:#h06 ; Set up the stack push.r s:REG_CONT push.r s:REG_INPT move.v d:REG_INPT v:#h08 subr.r d:REG_CONT a:REG_INPT b:REG_CONT arsl.v d:REG_CONT a:REG_CONT v:#h02 pops.r d:REG_INPT arsl.r d:REG_INPT a:REG_INPT b:REG_CONT pops.r d:REG_CONT ; Preshift for length selection :.ploop andb.v d:REG_WORK a:REG_INPT v:#hF0 s:#h0C arsl.v d:REG_INPT a:REG_INPT v:#h04 losr.v d:REG_WORK a:REG_WORK v:#h1C ; Grab a nybble addr.v d:REG_WORK a:REG_WORK v:#h30 ; Make it an ASCII number cmpr.v a:REG_WORK v:#h3A brch.a c:%LOW a:.prest ; Hex needs a little more addr.v d:REG_WORK a:REG_WORK v:#h07 :.prest push.r s:REG_WORK call.s a:ser_send ;call.s a:vga_putc pops.r d:REG_WORK ; Print it subr.v d:REG_CONT a:REG_CONT v:#h01 cmpr.v a:REG_CONT v:#h00 brch.a c:%NEQ a:.ploop ; Repeat pops.r d:REG_WORK pops.r d:REG_CONT pops.r d:REG_INPT rtrn.s ; And return !zone str_getc !def REG_SADR %Zw !def REG_WORD %Zx !def REG_ICHR %Zy !def REG_RTRN %Zz :str_getc push.r s:REG_SADR push.r s:REG_WORD push.r s:REG_ICHR subr.v d:%SP a:%SP v:#h04 ; Set up the stack pops.r d:REG_WORD ; Get the index pops.r d:REG_SADR ; Get the string address addr.v d:%SP a:%SP v:#h06 ; Set up the stack move.r d:REG_ICHR s:REG_WORD ; Copy index to ichr arsr.v d:REG_WORD a:REG_WORD v:#h02 ; Divide index in word by 4 addr.r d:REG_SADR a:REG_SADR b:REG_WORD load.o d:REG_RTRN r:REG_SADR ; Load correct word into rtrn move.v d:REG_WORD v:#h03 ; Move 3 into word andb.v d:REG_ICHR a:REG_ICHR v:#h03 ; Mask off upper 30 of ichr subr.r d:REG_ICHR a:REG_WORD b:REG_ICHR ; Subtract ichr from word into ichr arsl.v d:REG_ICHR a:REG_ICHR v:#h03 ; Multiply ichr by 8 masr.r d:REG_RTRN a:REG_RTRN b:REG_ICHR v:#hFF ; Mask and shift right rtrn by ichr pops.r d:REG_ICHR pops.r d:REG_WORD pops.r d:REG_SADR rtrn.s ; And return !zone str_puts !def REG_SADR %Zw !def REG_CONT %Zx !def REG_RTRN %Zz :str_puts push.r s:REG_SADR push.r s:REG_CONT subr.v d:%SP a:%SP v:#h03 ; Set up the stack move.v d:REG_CONT v:#h00 pops.r d:REG_SADR ; Get the string address addr.v d:%SP a:%SP v:#h04 ; Set up the stack push.r s:REG_SADR ; Get the address on the stack :.strloop push.r s:REG_CONT call.s a:str_getc pops.r d:REG_CONT ; Get a character cmpr.v a:%Zz v:#h00 ; Is it zero? brch.a c:%EQL a:.strend ; If so, exit push.r s:%Zz call.s a:ser_send ;call.s a:vga_putc pops.r d:%Zz ; Print it addr.v d:REG_CONT a:REG_CONT v:#h01 ; Increment counter brch.a a:.strloop ; Jump to top of loop :.strend pops.r d:REG_SADR pops.r d:REG_CONT pops.r d:REG_SADR rtrn.s ; And return !zone str_putsl !def REG_SADR %Zw !def REG_ENDA %Zx !def REG_CONT %Zy !def REG_RTRN %Zz :str_putsl push.r s:REG_SADR push.r s:REG_ENDA push.r s:REG_CONT subr.v d:%SP a:%SP v:#h04 ; Set up the stack move.v d:REG_CONT v:#h00 pops.r d:REG_ENDA ; Get the string length pops.r d:REG_SADR ; Get the string address addr.v d:%SP a:%SP v:#h06 ; Set up the stack push.r s:REG_SADR ; Get the address on the stack :.strloop push.r s:REG_CONT call.s a:str_getc pops.r d:REG_CONT ; Get a character cmpr.v a:%Zz v:#h00 ; Is it zero? brch.a c:%EQL a:.strend ; If so, exit push.r s:%Zz call.s a:ser_send ;call.s a:vga_putc pops.r d:%Zz ; Print it addr.v d:REG_CONT a:REG_CONT v:#h01 ; Increment counter subr.v d:REG_ENDA a:REG_ENDA v:#h01 ; Increment counter cmpr.v a:REG_ENDA v:#h00 ; Are we done? brch.a c:%NEQ a:.strloop ; If so, jump to top of loop :.strend pops.r d:REG_SADR pops.r d:REG_CONT pops.r d:REG_ENDA pops.r d:REG_SADR rtrn.s ; And return
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_4832_1748.asm
ljhsiun2/medusa
9
90017
<filename>Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_4832_1748.asm .global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %rax push %rdx push %rsi lea addresses_normal_ht+0x126a1, %r15 nop nop sub %rdx, %rdx movb (%r15), %r13b nop nop cmp $32227, %r11 lea addresses_WC_ht+0x126f8, %rax nop mfence movl $0x61626364, (%rax) nop nop nop nop cmp %r13, %r13 lea addresses_A_ht+0x26f8, %rdx nop inc %r14 and $0xffffffffffffffc0, %rdx movntdqa (%rdx), %xmm4 vpextrq $1, %xmm4, %r15 nop nop nop dec %r13 pop %rsi pop %rdx pop %rax pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi // Store mov $0x3e59c50000000f28, %r15 nop nop nop nop nop sub $23408, %rdi mov $0x5152535455565758, %r13 movq %r13, (%r15) nop nop nop nop inc %r13 // Faulty Load lea addresses_D+0x56f8, %rsi nop cmp $11740, %rbp movb (%rsi), %r15b lea oracles, %rbp and $0xff, %r15 shlq $12, %r15 mov (%rbp,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_NC', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}} {'src': {'same': False, 'congruent': 10, 'NT': True, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'36': 4832} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
src/stories.ads
thindil/steamsky
80
22222
-- Copyright 2018-2021 <NAME> -- -- This file is part of Steam Sky. -- -- Steam Sky 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 of the License, or -- (at your option) any later version. -- -- Steam Sky 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. -- -- You should have received a copy of the GNU General Public License -- along with Steam Sky. If not, see <http://www.gnu.org/licenses/>. with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Vectors; use Ada.Containers; with Ada.Strings.Unbounded.Hash; with Ada.Containers.Hashed_Maps; with DOM.Readers; use DOM.Readers; with Game; use Game; -- ****h* Stories/Stories -- FUNCTION -- Provide code for manipulate the game stories -- SOURCE package Stories is -- **** -- ****t* Stories/Stories.StartConditionType -- FUNCTION -- Types of conditions to start stories -- SOURCE type StartConditionType is (DROPITEM) with Default_Value => DROPITEM; -- **** -- ****t* Stories/Stories.StepConditionType -- FUNCTION -- Types of conditions to finish story step -- SOURCE type StepConditionType is (ASKINBASE, DESTROYSHIP, EXPLORE, ANY, LOOT) with Default_Value => ANY; -- **** -- ****s* Stories/Stories.StepText_Data -- FUNCTION -- Data structure for stories steps texts -- PARAMETERS -- Condition - Finish condition of previous step -- Text - Text which will be show to player when step starts. -- SOURCE type StepText_Data is record Condition: StepConditionType; Text: Unbounded_String; end record; -- **** -- ****t* Stories/Stories.StepTexts_Container -- FUNCTION -- Used to store stories steps text data -- SOURCE package StepTexts_Container is new Vectors(Positive, StepText_Data); -- **** -- ****s* Stories/Stories.StepFinish_Data -- FUNCTION -- Structure for finish condition data -- PARAMETERS -- Name - Name of data -- Value - Value of data -- SOURCE type StepFinish_Data is record Name: Unbounded_String; Value: Unbounded_String; end record; -- **** -- ****t* Stories/Stories.StepData_Container -- FUNCTION -- Used to store stories steps data -- SOURCE package StepData_Container is new Vectors(Positive, StepFinish_Data); -- **** -- ****s* Stories/Stories.Step_Data -- FUNCTION -- Data structure for stories steps -- PARAMETERS -- Index - Index of step -- FinishCondition - Condition which must be met to finish selected step -- and process to next -- FinishData - Data for finish condition -- Texts - Texts which will be show to player when step starts, -- depends on finish condition of previous step. -- FailText - Text which will be show to player when step fails to -- progress. -- SOURCE type Step_Data is record Index: Unbounded_String; FinishCondition: StepConditionType; FinishData: StepData_Container.Vector; Texts: StepTexts_Container.Vector; FailText: Unbounded_String; end record; -- **** -- ****t* Stories/Stories.Steps_Container -- FUNCTION -- Used to store stories steps -- SOURCE package Steps_Container is new Vectors(Positive, Step_Data); -- **** -- ****s* Stories/Stories.Story_Data -- FUNCTION -- Data structure for stories -- PARAMETERS -- StartCondition - Condition which must be met to start story -- StartData - Data for starting condition -- MinSteps - Minimal amount of steps in story -- MaxSteps - Maxium amount of steps in story -- StartingStep - Starting step of story -- Steps - Contains all steps in story -- FinalStep - Final step of story -- EndText - Text which will be show to player when story ends. -- Name - Name of story, show in game -- ForbiddenFactions - If player is in one of this factions, he/she can't -- start this story. -- SOURCE type Story_Data is record StartCondition: StartConditionType; StartData: UnboundedString_Container.Vector; MinSteps: Positive := 1; MaxSteps: Positive := 1; StartingStep: Step_Data; Steps: Steps_Container.Vector; FinalStep: Step_Data; EndText: Unbounded_String; Name: Unbounded_String; ForbiddenFactions: UnboundedString_Container.Vector; end record; -- **** -- ****t* Stories/Stories.Stories_Container -- FUNCTION -- Used to store stories -- SOURCE package Stories_Container is new Hashed_Maps (Unbounded_String, Story_Data, Ada.Strings.Unbounded.Hash, "="); -- **** -- ****s* Stories/Stories.CurrentStory_Data -- FUNCTION -- Data structure for current active story -- PARAMETERS -- Index - Index of story or empty string if no story currently -- active -- Step - Number of current step in story -- CurrentStep - Index of current step, 0 for starting step, -1 for finish -- step -- MaxSteps - Number of maxium amounts of steps in story -- ShowText - If true, show text of current step to player -- Data - Various data for current step, depends on step -- FinishedStep - Finish condition for previous step -- SOURCE type CurrentStory_Data is record Index: Unbounded_String; Step: Positive := 1; CurrentStep: Integer range -3 .. Integer'Last; MaxSteps: Positive := 1; ShowText: Boolean; Data: Unbounded_String; FinishedStep: StepConditionType; end record; -- **** -- ****s* Stories/Stories.FinishedStory_Data -- FUNCTION -- Data structure for finished story/steps -- PARAMETERS -- Index - Index of story -- StepsAmount - Amount of steps in this story -- StepsTexts - Texts of steps done in this story. If less than -- StepsAmount then it is current story. -- SOURCE type FinishedStory_Data is record Index: Unbounded_String; StepsAmount: Positive := 1; StepsTexts: UnboundedString_Container.Vector; end record; -- **** -- ****t* Stories/Stories.FinishedStories_Container -- FUNCTIONS -- Used to store finished stories -- SOURCE package FinishedStories_Container is new Vectors (Positive, FinishedStory_Data); -- **** -- ****v* Stories/Stories.CurrentStory -- FUNCTION -- Contains data about current story on which player is -- SOURCE CurrentStory: CurrentStory_Data; -- **** -- ****v* Stories/Stories.Stories_List -- FUNCTION -- List of available stories in game -- SOURCE Stories_List: Stories_Container.Map; -- **** -- ****v* Stories/Stories.FinishedStories -- FUNCTION -- List of finished stories (or past data of current story) -- SOURCE FinishedStories: FinishedStories_Container.Vector; -- **** -- ****f* Stories/Stories.LoadStories -- FUNCTION -- Load stories data from files -- PARAMETERS -- Reader - XML Reader from which data will be read -- SOURCE procedure LoadStories(Reader: Tree_Reader); -- **** -- ****f* Stories/Stories.StartStory -- FUNCTION -- Check if any story can starts -- PARAMETERS -- FactionName - Name of faction to which players belongs -- Condition - Starting condition which was triggered -- SOURCE procedure StartStory (FactionName: Unbounded_String; Condition: StartConditionType) with Pre => FactionName /= Null_Unbounded_String, Test_Case => (Name => "Test_StartStory", Mode => Nominal); -- **** -- ****f* Stories/Stories.ClearCurrentStory -- FUNCTION -- Resets current story -- SOURCE procedure ClearCurrentStory with Post => CurrentStory.Index = Null_Unbounded_String, Test_Case => (Name => "Test_ClearCurrentStory", Mode => Nominal); -- **** -- ****f* Stories/Stories.ProgressStory -- FUNCTION -- Progress current story one step -- PARAMETERS -- NextStep - Used with DESTROYSHIP condition. If false, progress to the -- next step in story. Default is false. -- RESULT -- True if story goes to next step, otherwise false -- SOURCE function ProgressStory(NextStep: Boolean := False) return Boolean with Test_Case => (Name => "Test_ProgressStory", Mode => Robustness); -- **** -- ****f* Stories/Stories.GetCurrentStoryText -- FUNCTION -- Get text of current step in story -- RESULT -- Text of current step in current story -- SOURCE function GetCurrentStoryText return Unbounded_String with Test_Case => (Name => "Tets_GetCurrentStoryText", Mode => Robustness); -- **** -- ****f* Stories/Stories.GetStepData -- FUNCTION -- Get step finish data with selected name -- PARAMETERS -- FinishData - List of step data -- Name - Name of data to get -- RESULT -- Selected data from FinishData parameter -- SOURCE function GetStepData (FinishData: StepData_Container.Vector; Name: String) return Unbounded_String with Pre => Name'Length > 0, Test_Case => (Name => "Test_GetStepData", Mode => Nominal); -- **** -- ****f* Stories/Stories.GetStoryLocation -- FUNCTION -- Get target location of current story -- PARAMETERS -- StoryX - X coordination of current story target -- StoryY - Y coordination of current story target -- RESULT -- Parameters X and Y -- SOURCE procedure GetStoryLocation (StoryX: out Map_X_Range; StoryY: out Map_Y_Range) with Test_Case => (Name => "Test_GetStoryLocation", Mode => Robustness); -- **** end Stories;
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Compress.asm
prismotizm/gigaleak
0
20308
<filename>other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/Compress.asm Name: Compress.asm Type: file Size: 12413 Last-Modified: '1992-02-13T07:47:42Z' SHA-1: 983376FB95867224264112139D2EAE3F28095C70 Description: null
gcc-gcc-7_3_0-release/gcc/ada/s-stchop-limit.ads
best08618/asylo
7
6941
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- S Y S T E M . S T A C K _ C H E C K I N G . O P E R A T I O N S -- -- -- -- S p e c -- -- -- -- Copyright (C) 1999-2009, Free Software Foundation, Inc. -- -- -- -- GNARL 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/>. -- -- -- -- GNARL was developed by the GNARL team at Florida State University. -- -- Extensive contributions were provided by Ada Core Technologies, Inc. -- -- -- ------------------------------------------------------------------------------ -- This version of this package is for implementations which use -- the stack limit approach (the limit of the stack is stored into a per -- thread variable). pragma Restrictions (No_Elaboration_Code); -- We want to guarantee the absence of elaboration code because the binder -- does not handle references to this package. pragma Polling (Off); -- Turn off polling, we do not want polling to take place during stack -- checking operations. It causes infinite loops and other problems. package System.Stack_Checking.Operations is pragma Preelaborate; procedure Initialize_Stack_Limit; pragma Export (C, Initialize_Stack_Limit, "__gnat_initialize_stack_limit"); -- This procedure is called before elaboration to setup the stack limit -- for the environment task and to register the hook to be called at -- task creation. end System.Stack_Checking.Operations;
src/Putil.agda
shinji-kono/Galois
1
6899
{-# OPTIONS --allow-unsolved-metas #-} module Putil where open import Level hiding ( suc ; zero ) open import Algebra open import Algebra.Structures open import Data.Fin hiding ( _<_ ; _≤_ ; _-_ ; _+_ ; _≟_) open import Data.Fin.Properties hiding ( <-trans ; ≤-trans ; ≤-irrelevant ; _≟_ ) renaming ( <-cmp to <-fcmp ) open import Data.Fin.Permutation open import Function hiding (id ; flip) open import Function.Inverse as Inverse using (_↔_; Inverse; _InverseOf_) open import Function.LeftInverse using ( _LeftInverseOf_ ) open import Function.Equality using (Π) open import Data.Nat -- using (ℕ; suc; zero; s≤s ; z≤n ) open import Data.Nat.Properties -- using (<-trans) open import Relation.Binary.PropositionalEquality hiding ( [_] ) open import Data.List using (List; []; _∷_ ; length ; _++_ ; head ; tail ) renaming (reverse to rev ) open import nat open import Symmetric open import Relation.Nullary open import Data.Empty open import Relation.Binary.Core open import Relation.Binary.Definitions open import fin -- An inductive construction of permutation pprep : {n : ℕ } → Permutation n n → Permutation (suc n) (suc n) pprep {n} perm = permutation p→ p← record { left-inverse-of = piso→ ; right-inverse-of = piso← } where p→ : Fin (suc n) → Fin (suc n) p→ zero = zero p→ (suc x) = suc ( perm ⟨$⟩ʳ x) p← : Fin (suc n) → Fin (suc n) p← zero = zero p← (suc x) = suc ( perm ⟨$⟩ˡ x) piso← : (x : Fin (suc n)) → p→ ( p← x ) ≡ x piso← zero = refl piso← (suc x) = cong (λ k → suc k ) (inverseʳ perm) piso→ : (x : Fin (suc n)) → p← ( p→ x ) ≡ x piso→ zero = refl piso→ (suc x) = cong (λ k → suc k ) (inverseˡ perm) pswap : {n : ℕ } → Permutation n n → Permutation (suc (suc n)) (suc (suc n )) pswap {n} perm = permutation p→ p← record { left-inverse-of = piso→ ; right-inverse-of = piso← } where p→ : Fin (suc (suc n)) → Fin (suc (suc n)) p→ zero = suc zero p→ (suc zero) = zero p→ (suc (suc x)) = suc ( suc ( perm ⟨$⟩ʳ x) ) p← : Fin (suc (suc n)) → Fin (suc (suc n)) p← zero = suc zero p← (suc zero) = zero p← (suc (suc x)) = suc ( suc ( perm ⟨$⟩ˡ x) ) piso← : (x : Fin (suc (suc n)) ) → p→ ( p← x ) ≡ x piso← zero = refl piso← (suc zero) = refl piso← (suc (suc x)) = cong (λ k → suc (suc k) ) (inverseʳ perm) piso→ : (x : Fin (suc (suc n)) ) → p← ( p→ x ) ≡ x piso→ zero = refl piso→ (suc zero) = refl piso→ (suc (suc x)) = cong (λ k → suc (suc k) ) (inverseˡ perm) psawpn : {n : ℕ} → 1 < n → Permutation n n psawpn {suc zero} (s≤s ()) psawpn {suc n} (s≤s (s≤s x)) = pswap pid pfill : { n m : ℕ } → m ≤ n → Permutation m m → Permutation n n pfill {n} {m} m≤n perm = pfill1 (n - m) (n-m<n n m ) (subst (λ k → Permutation k k ) (n-n-m=m m≤n ) perm) where pfill1 : (i : ℕ ) → i ≤ n → Permutation (n - i) (n - i) → Permutation n n pfill1 0 _ perm = perm pfill1 (suc i) i<n perm = pfill1 i (≤to< i<n) (subst (λ k → Permutation k k ) (si-sn=i-n i<n ) ( pprep perm ) ) -- -- psawpim (inseert swap at position m ) -- psawpim : {n m : ℕ} → suc (suc m) ≤ n → Permutation n n psawpim {n} {m} m≤n = pfill m≤n ( psawpn (s≤s (s≤s z≤n)) ) n≤ : (i : ℕ ) → {j : ℕ } → i ≤ i + j n≤ (zero) {j} = z≤n n≤ (suc i) {j} = s≤s ( n≤ i ) lem0 : {n : ℕ } → n ≤ n lem0 {zero} = z≤n lem0 {suc n} = s≤s lem0 lem00 : {n m : ℕ } → n ≡ m → n ≤ m lem00 refl = lem0 plist1 : {n : ℕ} → Permutation (suc n) (suc n) → (i : ℕ ) → i < suc n → List ℕ plist1 {n} perm zero _ = toℕ ( perm ⟨$⟩ˡ (fromℕ< {zero} (s≤s z≤n))) ∷ [] plist1 {n} perm (suc i) (s≤s lt) = toℕ ( perm ⟨$⟩ˡ (fromℕ< (s≤s lt))) ∷ plist1 perm i (<-trans lt a<sa) plist : {n : ℕ} → Permutation n n → List ℕ plist {0} perm = [] plist {suc n} perm = rev (plist1 perm n a<sa) -- -- from n-1 length create n length inserting new element at position m -- -- 0 ∷ 1 ∷ 2 ∷ 3 ∷ [] -- 0 ∷ 1 ∷ 2 ∷ 3 ∷ [] -- 1 ∷ 0 ∷ 2 ∷ 3 ∷ [] plist ( pins {3} (n≤ 1) ) 1 ∷ 0 ∷ 2 ∷ 3 ∷ [] -- 1 ∷ 2 ∷ 0 ∷ 3 ∷ [] plist ( pins {3} (n≤ 2) ) 2 ∷ 0 ∷ 1 ∷ 3 ∷ [] -- 1 ∷ 2 ∷ 3 ∷ 0 ∷ [] plist ( pins {3} (n≤ 3) ) 3 ∷ 0 ∷ 1 ∷ 2 ∷ [] -- -- defined by pprep and pswap -- -- pins : {n m : ℕ} → m ≤ n → Permutation (suc n) (suc n) -- pins {_} {zero} _ = pid -- pins {suc _} {suc zero} _ = pswap pid -- pins {suc (suc n)} {suc m} (s≤s m<n) = pins1 (suc m) (suc (suc n)) lem0 where -- pins1 : (i j : ℕ ) → j ≤ suc (suc n) → Permutation (suc (suc (suc n ))) (suc (suc (suc n))) -- pins1 _ zero _ = pid -- pins1 zero _ _ = pid -- pins1 (suc i) (suc j) (s≤s si≤n) = psawpim {suc (suc (suc n))} {j} (s≤s (s≤s si≤n)) ∘ₚ pins1 i j (≤-trans si≤n a≤sa ) open import Relation.Binary.HeterogeneousEquality as HE using (_≅_ ) open ≡-Reasoning pins : {n m : ℕ} → m ≤ n → Permutation (suc n) (suc n) pins {_} {zero} _ = pid pins {suc n} {suc m} (s≤s m≤n) = permutation p← p→ record { left-inverse-of = piso← ; right-inverse-of = piso→ } where next : Fin (suc (suc n)) → Fin (suc (suc n)) next zero = suc zero next (suc x) = fromℕ< (≤-trans (fin<n {_} {x} ) a≤sa ) p→ : Fin (suc (suc n)) → Fin (suc (suc n)) p→ x with <-cmp (toℕ x) (suc m) ... | tri< a ¬b ¬c = fromℕ< (≤-trans (s≤s a) (s≤s (s≤s m≤n) )) ... | tri≈ ¬a b ¬c = zero ... | tri> ¬a ¬b c = x p← : Fin (suc (suc n)) → Fin (suc (suc n)) p← zero = fromℕ< (s≤s (s≤s m≤n)) p← (suc x) with <-cmp (toℕ x) (suc m) ... | tri< a ¬b ¬c = fromℕ< (≤-trans (fin<n {_} {x}) a≤sa ) ... | tri≈ ¬a b ¬c = suc x ... | tri> ¬a ¬b c = suc x mm : toℕ (fromℕ< {suc m} {suc (suc n)} (s≤s (s≤s m≤n))) ≡ suc m mm = toℕ-fromℕ< (s≤s (s≤s m≤n)) mma : (x : Fin (suc n) ) → suc (toℕ x) ≤ suc m → toℕ ( fromℕ< (≤-trans (fin<n {_} {x}) a≤sa ) ) ≤ m mma x (s≤s x<sm) = subst (λ k → k ≤ m) (sym (toℕ-fromℕ< (≤-trans fin<n a≤sa ) )) x<sm p3 : (x : Fin (suc n) ) → toℕ (fromℕ< (≤-trans (fin<n {_} {suc x} ) (s≤s a≤sa))) ≡ suc (toℕ x) p3 x = begin toℕ (fromℕ< (≤-trans (fin<n {_} {suc x} ) (s≤s a≤sa))) ≡⟨ toℕ-fromℕ< ( s≤s ( ≤-trans fin<n a≤sa ) ) ⟩ suc (toℕ x) ∎ piso→ : (x : Fin (suc (suc n)) ) → p← ( p→ x ) ≡ x piso→ zero with <-cmp (toℕ (fromℕ< (≤-trans (s≤s z≤n) (s≤s (s≤s m≤n) )))) (suc m) ... | tri< a ¬b ¬c = refl piso→ (suc x) with <-cmp (toℕ (suc x)) (suc m) ... | tri≈ ¬a refl ¬c = p13 where p13 : fromℕ< (s≤s (s≤s m≤n)) ≡ suc x p13 = cong (λ k → suc k ) (fromℕ<-toℕ _ (s≤s m≤n) ) ... | tri> ¬a ¬b c = p16 (suc x) refl where p16 : (y : Fin (suc (suc n))) → y ≡ suc x → p← y ≡ suc x p16 zero eq = ⊥-elim ( nat-≡< (cong (λ k → suc (toℕ k) ) eq) (s≤s (s≤s (z≤n)))) p16 (suc y) eq with <-cmp (toℕ y) (suc m) -- suc (suc m) < toℕ (suc x) ... | tri< a ¬b ¬c = ⊥-elim ( nat-≡< refl ( ≤-trans c (subst (λ k → k < suc m) p17 a )) ) where -- x = suc m case, c : suc (suc m) ≤ suc (toℕ x), a : suc (toℕ y) ≤ suc m, suc y ≡ suc x p17 : toℕ y ≡ toℕ x p17 with <-cmp (toℕ y) (toℕ x) | cong toℕ eq ... | tri< a ¬b ¬c | seq = ⊥-elim ( nat-≡< seq (s≤s a) ) ... | tri≈ ¬a b ¬c | seq = b ... | tri> ¬a ¬b c | seq = ⊥-elim ( nat-≡< (sym seq) (s≤s c)) ... | tri≈ ¬a b ¬c = eq ... | tri> ¬a ¬b c₁ = eq ... | tri< a ¬b ¬c = p10 (fromℕ< (≤-trans (s≤s a) (s≤s (s≤s m≤n) ))) refl where p10 : (y : Fin (suc (suc n)) ) → y ≡ fromℕ< (≤-trans (s≤s a) (s≤s (s≤s m≤n) )) → p← y ≡ suc x p10 zero () p10 (suc y) eq = p15 where p12 : toℕ y ≡ suc (toℕ x) p12 = begin toℕ y ≡⟨ cong (λ k → Data.Nat.pred (toℕ k)) eq ⟩ toℕ (fromℕ< (≤-trans a (s≤s m≤n))) ≡⟨ toℕ-fromℕ< {suc (toℕ x)} {suc n} (≤-trans a (s≤s m≤n)) ⟩ suc (toℕ x) ∎ p15 : p← (suc y) ≡ suc x p15 with <-cmp (toℕ y) (suc m) -- eq : suc y ≡ suc (suc (fromℕ< (≤-pred (≤-trans a (s≤s m≤n))))) , a : suc x < suc m ... | tri< a₁ ¬b ¬c = p11 where p11 : fromℕ< (≤-trans (fin<n {_} {y}) a≤sa ) ≡ suc x p11 = begin fromℕ< (≤-trans (fin<n {_} {y}) a≤sa ) ≡⟨ lemma10 {suc (suc n)} {_} {_} p12 {≤-trans (fin<n {_} {y}) a≤sa} {s≤s (fin<n {suc n} {x} )} ⟩ suc (fromℕ< (fin<n {suc n} {x} )) ≡⟨ cong suc (fromℕ<-toℕ x _ ) ⟩ suc x ∎ ... | tri≈ ¬a b ¬c = ⊥-elim ( nat-≡< b (subst (λ k → k < suc m) (sym p12) a )) -- suc x < suc m -> y = suc x → toℕ y < suc m ... | tri> ¬a ¬b c = ⊥-elim ( nat-<> c (subst (λ k → k < suc m) (sym p12) a )) piso← : (x : Fin (suc (suc n)) ) → p→ ( p← x ) ≡ x piso← zero with <-cmp (toℕ (fromℕ< (s≤s (s≤s m≤n)))) (suc m) | mm ... | tri< a ¬b ¬c | t = ⊥-elim ( ¬b t ) ... | tri≈ ¬a b ¬c | t = refl ... | tri> ¬a ¬b c | t = ⊥-elim ( ¬b t ) piso← (suc x) with <-cmp (toℕ x) (suc m) ... | tri> ¬a ¬b c with <-cmp (toℕ (suc x)) (suc m) ... | tri< a ¬b₁ ¬c = ⊥-elim ( nat-<> a (<-trans c a<sa ) ) ... | tri≈ ¬a₁ b ¬c = ⊥-elim ( nat-≡< (sym b) (<-trans c a<sa )) ... | tri> ¬a₁ ¬b₁ c₁ = refl piso← (suc x) | tri≈ ¬a b ¬c with <-cmp (toℕ (suc x)) (suc m) ... | tri< a ¬b ¬c₁ = ⊥-elim ( nat-≡< b (<-trans a<sa a) ) ... | tri≈ ¬a₁ refl ¬c₁ = ⊥-elim ( nat-≡< b a<sa ) ... | tri> ¬a₁ ¬b c = refl piso← (suc x) | tri< a ¬b ¬c with <-cmp (toℕ ( fromℕ< (≤-trans (fin<n {_} {x}) a≤sa ) )) (suc m) ... | tri≈ ¬a b ¬c₁ = ⊥-elim ( ¬a (s≤s (mma x a))) ... | tri> ¬a ¬b₁ c = ⊥-elim ( ¬a (s≤s (mma x a))) ... | tri< a₁ ¬b₁ ¬c₁ = p0 where p2 : suc (suc (toℕ x)) ≤ suc (suc n) p2 = s≤s (fin<n {suc n} {x}) p6 : suc (toℕ (fromℕ< (≤-trans (fin<n {_} {suc x}) (s≤s a≤sa)))) ≤ suc (suc n) p6 = s≤s (≤-trans a₁ (s≤s m≤n)) p0 : fromℕ< (≤-trans (s≤s a₁) (s≤s (s≤s m≤n) )) ≡ suc x p0 = begin fromℕ< (≤-trans (s≤s a₁) (s≤s (s≤s m≤n) )) ≡⟨⟩ fromℕ< (s≤s (≤-trans a₁ (s≤s m≤n))) ≡⟨ lemma10 {suc (suc n)} (p3 x) {p6} {p2} ⟩ fromℕ< ( s≤s (fin<n {suc n} {x}) ) ≡⟨⟩ suc (fromℕ< (fin<n {suc n} {x} )) ≡⟨ cong suc (fromℕ<-toℕ x _ ) ⟩ suc x ∎ t7 = plist (pins {3} (n≤ 3)) ∷ plist (flip ( pins {3} (n≤ 3) )) ∷ plist ( pins {3} (n≤ 3) ∘ₚ flip ( pins {3} (n≤ 3))) ∷ [] -- t8 = {!!} open import logic open _∧_ perm1 : {perm : Permutation 1 1 } {q : Fin 1} → (perm ⟨$⟩ʳ q ≡ # 0) ∧ ((perm ⟨$⟩ˡ q ≡ # 0)) perm1 {p} {q} = ⟪ perm01 _ _ , perm00 _ _ ⟫ where perm01 : (x y : Fin 1) → (p ⟨$⟩ʳ x) ≡ y perm01 x y with p ⟨$⟩ʳ x perm01 zero zero | zero = refl perm00 : (x y : Fin 1) → (p ⟨$⟩ˡ x) ≡ y perm00 x y with p ⟨$⟩ˡ x perm00 zero zero | zero = refl ---- -- find insertion point of pins ---- p=0 : {n : ℕ } → (perm : Permutation (suc n) (suc n) ) → ((perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) ⟨$⟩ˡ (# 0)) ≡ # 0 p=0 {zero} perm with ((perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) ⟨$⟩ˡ (# 0)) ... | zero = refl p=0 {suc n} perm with perm ⟨$⟩ʳ (# 0) | inspect (_⟨$⟩ʳ_ perm ) (# 0)| toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)) | inspect toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)) ... | zero | record { eq = e} | m<n | _ = p001 where p001 : perm ⟨$⟩ˡ ( pins m<n ⟨$⟩ʳ zero) ≡ zero p001 = subst (λ k → perm ⟨$⟩ˡ k ≡ zero ) e (inverseˡ perm) ... | suc t | record { eq = e } | m<n | record { eq = e1 } = p002 where -- m<n : suc (toℕ t) ≤ suc n p002 : perm ⟨$⟩ˡ ( pins m<n ⟨$⟩ʳ zero) ≡ zero p002 = p005 zero (toℕ t) refl m<n refl where -- suc (toℕ t) ≤ suc n p003 : (s : Fin (suc (suc n))) → s ≡ (perm ⟨$⟩ʳ (# 0)) → perm ⟨$⟩ˡ s ≡ # 0 p003 s eq = subst (λ k → perm ⟨$⟩ˡ k ≡ zero ) (sym eq) (inverseˡ perm) p005 : (x : Fin (suc (suc n))) → (m : ℕ ) → x ≡ zero → (m≤n : suc m ≤ suc n ) → m ≡ toℕ t → perm ⟨$⟩ˡ ( pins m≤n ⟨$⟩ʳ zero) ≡ zero p005 zero m eq (s≤s m≤n) meq = p004 where p004 : perm ⟨$⟩ˡ (fromℕ< (s≤s (s≤s m≤n))) ≡ zero p004 = p003 (fromℕ< (s≤s (s≤s m≤n))) ( begin fromℕ< (s≤s (s≤s m≤n)) ≡⟨ lemma10 {suc (suc n)} (cong suc meq) {s≤s (s≤s m≤n)} {subst (λ k → suc k < suc (suc n)) meq (s≤s (s≤s m≤n)) } ⟩ fromℕ< (subst (λ k → suc k < suc (suc n)) meq (s≤s (s≤s m≤n)) ) ≡⟨ fromℕ<-toℕ {suc (suc n)} (suc t) (subst (λ k → suc k < suc (suc n)) meq (s≤s (s≤s m≤n)) ) ⟩ suc t ≡⟨ sym e ⟩ (perm ⟨$⟩ʳ (# 0)) ∎ ) ---- -- other elements are preserved in pins ---- px=x : {n : ℕ } → (x : Fin (suc n)) → pins ( toℕ≤pred[n] x ) ⟨$⟩ʳ (# 0) ≡ x px=x {n} zero = refl px=x {suc n} (suc x) = p001 where p002 : fromℕ< (s≤s (toℕ≤pred[n] x)) ≡ x p002 = fromℕ<-toℕ x (s≤s (toℕ≤pred[n] x)) p001 : (pins (toℕ≤pred[n] (suc x)) ⟨$⟩ʳ (# 0)) ≡ suc x p001 with <-cmp 0 ((toℕ x)) ... | tri< a ¬b ¬c = cong suc p002 ... | tri≈ ¬a b ¬c = cong suc p002 -- pp : {n : ℕ } → (perm : Permutation (suc n) (suc n) ) → Fin (suc n) -- pp perm → (( perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) ⟨$⟩ˡ (# 0)) plist2 : {n : ℕ} → Permutation (suc n) (suc n) → (i : ℕ ) → i < suc n → List ℕ plist2 {n} perm zero _ = toℕ ( perm ⟨$⟩ʳ (fromℕ< {zero} (s≤s z≤n))) ∷ [] plist2 {n} perm (suc i) (s≤s lt) = toℕ ( perm ⟨$⟩ʳ (fromℕ< (s≤s lt))) ∷ plist2 perm i (<-trans lt a<sa) plist0 : {n : ℕ} → Permutation n n → List ℕ plist0 {0} perm = [] plist0 {suc n} perm = plist2 perm n a<sa open _=p=_ -- -- plist cong -- ←pleq : {n : ℕ} → (x y : Permutation n n ) → x =p= y → plist0 x ≡ plist0 y ←pleq {zero} x y eq = refl ←pleq {suc n} x y eq = ←pleq1 n a<sa where ←pleq1 : (i : ℕ ) → (i<sn : i < suc n ) → plist2 x i i<sn ≡ plist2 y i i<sn ←pleq1 zero _ = cong ( λ k → toℕ k ∷ [] ) ( peq eq (fromℕ< {zero} (s≤s z≤n))) ←pleq1 (suc i) (s≤s lt) = cong₂ ( λ j k → toℕ j ∷ k ) ( peq eq (fromℕ< (s≤s lt))) ( ←pleq1 i (<-trans lt a<sa) ) headeq : {A : Set } → {x y : A } → {xt yt : List A } → (x ∷ xt) ≡ (y ∷ yt) → x ≡ y headeq refl = refl taileq : {A : Set } → {x y : A } → {xt yt : List A } → (x ∷ xt) ≡ (y ∷ yt) → xt ≡ yt taileq refl = refl -- -- plist injection / equalizer -- -- if plist0 of two perm looks the same, the permutations are the same -- pleq : {n : ℕ} → (x y : Permutation n n ) → plist0 x ≡ plist0 y → x =p= y pleq {0} x y refl = record { peq = λ q → pleq0 q } where pleq0 : (q : Fin 0 ) → (x ⟨$⟩ʳ q) ≡ (y ⟨$⟩ʳ q) pleq0 () pleq {suc n} x y eq = record { peq = λ q → pleq1 n a<sa eq q fin<n } where pleq1 : (i : ℕ ) → (i<sn : i < suc n ) → plist2 x i i<sn ≡ plist2 y i i<sn → (q : Fin (suc n)) → toℕ q < suc i → x ⟨$⟩ʳ q ≡ y ⟨$⟩ʳ q pleq1 zero i<sn eq q q<i with <-cmp (toℕ q) zero ... | tri< () ¬b ¬c ... | tri> ¬a ¬b c = ⊥-elim (nat-≤> c q<i ) ... | tri≈ ¬a b ¬c = begin x ⟨$⟩ʳ q ≡⟨ cong ( λ k → x ⟨$⟩ʳ k ) (toℕ-injective b )⟩ x ⟨$⟩ʳ zero ≡⟨ toℕ-injective (headeq eq) ⟩ y ⟨$⟩ʳ zero ≡⟨ cong ( λ k → y ⟨$⟩ʳ k ) (sym (toℕ-injective b )) ⟩ y ⟨$⟩ʳ q ∎ pleq1 (suc i) (s≤s i<sn) eq q q<i with <-cmp (toℕ q) (suc i) ... | tri< a ¬b ¬c = pleq1 i (<-trans i<sn a<sa ) (taileq eq) q a ... | tri> ¬a ¬b c = ⊥-elim (nat-≤> c q<i ) ... | tri≈ ¬a b ¬c = begin x ⟨$⟩ʳ q ≡⟨ cong (λ k → x ⟨$⟩ʳ k) (pleq3 b) ⟩ x ⟨$⟩ʳ (suc (fromℕ< i<sn)) ≡⟨ toℕ-injective pleq2 ⟩ y ⟨$⟩ʳ (suc (fromℕ< i<sn)) ≡⟨ cong (λ k → y ⟨$⟩ʳ k) (sym (pleq3 b)) ⟩ y ⟨$⟩ʳ q ∎ where pleq3 : toℕ q ≡ suc i → q ≡ suc (fromℕ< i<sn) pleq3 tq=si = toℕ-injective ( begin toℕ q ≡⟨ b ⟩ suc i ≡⟨ sym (toℕ-fromℕ< (s≤s i<sn)) ⟩ toℕ (fromℕ< (s≤s i<sn)) ≡⟨⟩ toℕ (suc (fromℕ< i<sn)) ∎ ) pleq2 : toℕ ( x ⟨$⟩ʳ (suc (fromℕ< i<sn)) ) ≡ toℕ ( y ⟨$⟩ʳ (suc (fromℕ< i<sn)) ) pleq2 = headeq eq is-=p= : {n : ℕ} → (x y : Permutation n n ) → Dec (x =p= y ) is-=p= {zero} x y = yes record { peq = λ () } is-=p= {suc n} x y with ℕL-eq? (plist0 x ) ( plist0 y ) ... | yes t = yes (pleq x y t) ... | no t = no ( contra-position (←pleq x y) t ) pprep-cong : {n : ℕ} → {x y : Permutation n n } → x =p= y → pprep x =p= pprep y pprep-cong {n} {x} {y} x=y = record { peq = pprep-cong1 } where pprep-cong1 : (q : Fin (suc n)) → (pprep x ⟨$⟩ʳ q) ≡ (pprep y ⟨$⟩ʳ q) pprep-cong1 zero = refl pprep-cong1 (suc q) = begin pprep x ⟨$⟩ʳ suc q ≡⟨⟩ suc ( x ⟨$⟩ʳ q ) ≡⟨ cong ( λ k → suc k ) ( peq x=y q ) ⟩ suc ( y ⟨$⟩ʳ q ) ≡⟨⟩ pprep y ⟨$⟩ʳ suc q ∎ pprep-dist : {n : ℕ} → {x y : Permutation n n } → pprep (x ∘ₚ y) =p= (pprep x ∘ₚ pprep y) pprep-dist {n} {x} {y} = record { peq = pprep-dist1 } where pprep-dist1 : (q : Fin (suc n)) → (pprep (x ∘ₚ y) ⟨$⟩ʳ q) ≡ ((pprep x ∘ₚ pprep y) ⟨$⟩ʳ q) pprep-dist1 zero = refl pprep-dist1 (suc q) = cong ( λ k → suc k ) refl pswap-cong : {n : ℕ} → {x y : Permutation n n } → x =p= y → pswap x =p= pswap y pswap-cong {n} {x} {y} x=y = record { peq = pswap-cong1 } where pswap-cong1 : (q : Fin (suc (suc n))) → (pswap x ⟨$⟩ʳ q) ≡ (pswap y ⟨$⟩ʳ q) pswap-cong1 zero = refl pswap-cong1 (suc zero) = refl pswap-cong1 (suc (suc q)) = begin pswap x ⟨$⟩ʳ suc (suc q) ≡⟨⟩ suc (suc (x ⟨$⟩ʳ q)) ≡⟨ cong ( λ k → suc (suc k) ) ( peq x=y q ) ⟩ suc (suc (y ⟨$⟩ʳ q)) ≡⟨⟩ pswap y ⟨$⟩ʳ suc (suc q) ∎ pswap-dist : {n : ℕ} → {x y : Permutation n n } → pprep (pprep (x ∘ₚ y)) =p= (pswap x ∘ₚ pswap y) pswap-dist {n} {x} {y} = record { peq = pswap-dist1 } where pswap-dist1 : (q : Fin (suc (suc n))) → ((pprep (pprep (x ∘ₚ y))) ⟨$⟩ʳ q) ≡ ((pswap x ∘ₚ pswap y) ⟨$⟩ʳ q) pswap-dist1 zero = refl pswap-dist1 (suc zero) = refl pswap-dist1 (suc (suc q)) = cong ( λ k → suc (suc k) ) refl shlem→ : {n : ℕ} → (perm : Permutation (suc n) (suc n) ) → (p0=0 : perm ⟨$⟩ˡ (# 0) ≡ # 0 ) → (x : Fin (suc n) ) → perm ⟨$⟩ˡ x ≡ zero → x ≡ zero shlem→ perm p0=0 x px=0 = begin x ≡⟨ sym ( inverseʳ perm ) ⟩ perm ⟨$⟩ʳ ( perm ⟨$⟩ˡ x) ≡⟨ cong (λ k → perm ⟨$⟩ʳ k ) px=0 ⟩ perm ⟨$⟩ʳ zero ≡⟨ cong (λ k → perm ⟨$⟩ʳ k ) (sym p0=0) ⟩ perm ⟨$⟩ʳ ( perm ⟨$⟩ˡ zero) ≡⟨ inverseʳ perm ⟩ zero ∎ shlem← : {n : ℕ} → (perm : Permutation (suc n) (suc n) ) → (p0=0 : perm ⟨$⟩ˡ (# 0) ≡ # 0 ) → (x : Fin (suc n)) → perm ⟨$⟩ʳ x ≡ zero → x ≡ zero shlem← perm p0=0 x px=0 = begin x ≡⟨ sym (inverseˡ perm ) ⟩ perm ⟨$⟩ˡ ( perm ⟨$⟩ʳ x ) ≡⟨ cong (λ k → perm ⟨$⟩ˡ k ) px=0 ⟩ perm ⟨$⟩ˡ zero ≡⟨ p0=0 ⟩ zero ∎ sh2 : {n : ℕ} → (perm : Permutation (suc n) (suc n) ) → (p0=0 : perm ⟨$⟩ˡ (# 0) ≡ # 0 ) → {x : Fin n} → ¬ perm ⟨$⟩ˡ (suc x) ≡ zero sh2 perm p0=0 {x} eq with shlem→ perm p0=0 (suc x) eq sh2 perm p0=0 {x} eq | () sh1 : {n : ℕ} → (perm : Permutation (suc n) (suc n) ) → (p0=0 : perm ⟨$⟩ˡ (# 0) ≡ # 0 ) → {x : Fin n} → ¬ perm ⟨$⟩ʳ (suc x) ≡ zero sh1 perm p0=0 {x} eq with shlem← perm p0=0 (suc x) eq sh1 perm p0=0 {x} eq | () -- 0 ∷ 1 ∷ 2 ∷ 3 ∷ [] → 0 ∷ 1 ∷ 2 ∷ [] shrink : {n : ℕ} → (perm : Permutation (suc n) (suc n) ) → perm ⟨$⟩ˡ (# 0) ≡ # 0 → Permutation n n shrink {n} perm p0=0 = permutation p→ p← record { left-inverse-of = piso→ ; right-inverse-of = piso← } where p→ : Fin n → Fin n p→ x with perm ⟨$⟩ʳ (suc x) | inspect (_⟨$⟩ʳ_ perm ) (suc x) p→ x | zero | record { eq = e } = ⊥-elim ( sh1 perm p0=0 {x} e ) p→ x | suc t | _ = t p← : Fin n → Fin n p← x with perm ⟨$⟩ˡ (suc x) | inspect (_⟨$⟩ˡ_ perm ) (suc x) p← x | zero | record { eq = e } = ⊥-elim ( sh2 perm p0=0 {x} e ) p← x | suc t | _ = t piso← : (x : Fin n ) → p→ ( p← x ) ≡ x piso← x with perm ⟨$⟩ˡ (suc x) | inspect (_⟨$⟩ˡ_ perm ) (suc x) piso← x | zero | record { eq = e } = ⊥-elim ( sh2 perm p0=0 {x} e ) piso← x | suc t | _ with perm ⟨$⟩ʳ (suc t) | inspect (_⟨$⟩ʳ_ perm ) (suc t) piso← x | suc t | _ | zero | record { eq = e } = ⊥-elim ( sh1 perm p0=0 e ) piso← x | suc t | record { eq = e0 } | suc t1 | record { eq = e1 } = begin t1 ≡⟨ plem0 plem1 ⟩ x ∎ where open ≡-Reasoning plem0 : suc t1 ≡ suc x → t1 ≡ x plem0 refl = refl plem1 : suc t1 ≡ suc x plem1 = begin suc t1 ≡⟨ sym e1 ⟩ Inverse.to perm Π.⟨$⟩ suc t ≡⟨ cong (λ k → Inverse.to perm Π.⟨$⟩ k ) (sym e0) ⟩ Inverse.to perm Π.⟨$⟩ ( Inverse.from perm Π.⟨$⟩ suc x ) ≡⟨ inverseʳ perm ⟩ suc x ∎ piso→ : (x : Fin n ) → p← ( p→ x ) ≡ x piso→ x with perm ⟨$⟩ʳ (suc x) | inspect (_⟨$⟩ʳ_ perm ) (suc x) piso→ x | zero | record { eq = e } = ⊥-elim ( sh1 perm p0=0 {x} e ) piso→ x | suc t | _ with perm ⟨$⟩ˡ (suc t) | inspect (_⟨$⟩ˡ_ perm ) (suc t) piso→ x | suc t | _ | zero | record { eq = e } = ⊥-elim ( sh2 perm p0=0 e ) piso→ x | suc t | record { eq = e0 } | suc t1 | record { eq = e1 } = begin t1 ≡⟨ plem2 plem3 ⟩ x ∎ where plem2 : suc t1 ≡ suc x → t1 ≡ x plem2 refl = refl plem3 : suc t1 ≡ suc x plem3 = begin suc t1 ≡⟨ sym e1 ⟩ Inverse.from perm Π.⟨$⟩ suc t ≡⟨ cong (λ k → Inverse.from perm Π.⟨$⟩ k ) (sym e0 ) ⟩ Inverse.from perm Π.⟨$⟩ ( Inverse.to perm Π.⟨$⟩ suc x ) ≡⟨ inverseˡ perm ⟩ suc x ∎ shrink-iso : { n : ℕ } → {perm : Permutation n n} → shrink (pprep perm) refl =p= perm shrink-iso {n} {perm} = record { peq = λ q → refl } shrink-iso2 : { n : ℕ } → {perm : Permutation (suc n) (suc n)} → (p=0 : perm ⟨$⟩ˡ (# 0) ≡ # 0) → pprep (shrink perm p=0) =p= perm shrink-iso2 {n} {perm} p=0 = record { peq = s001 } where s001 : (q : Fin (suc n)) → (pprep (shrink perm p=0) ⟨$⟩ʳ q) ≡ perm ⟨$⟩ʳ q s001 zero = begin zero ≡⟨ sym ( inverseʳ perm ) ⟩ perm ⟨$⟩ʳ ( perm ⟨$⟩ˡ zero ) ≡⟨ cong (λ k → perm ⟨$⟩ʳ k ) p=0 ⟩ perm ⟨$⟩ʳ zero ∎ s001 (suc q) with perm ⟨$⟩ʳ (suc q) | inspect (_⟨$⟩ʳ_ perm ) (suc q) ... | zero | record {eq = e} = ⊥-elim (sh1 perm p=0 {q} e) ... | suc t | e = refl shrink-cong : { n : ℕ } → {x y : Permutation (suc n) (suc n)} → x =p= y → (x=0 : x ⟨$⟩ˡ (# 0) ≡ # 0 ) → (y=0 : y ⟨$⟩ˡ (# 0) ≡ # 0 ) → shrink x x=0 =p= shrink y y=0 shrink-cong {n} {x} {y} x=y x=0 y=0 = record { peq = p002 } where p002 : (q : Fin n) → (shrink x x=0 ⟨$⟩ʳ q) ≡ (shrink y y=0 ⟨$⟩ʳ q) p002 q with x ⟨$⟩ʳ (suc q) | inspect (_⟨$⟩ʳ_ x ) (suc q) | y ⟨$⟩ʳ (suc q) | inspect (_⟨$⟩ʳ_ y ) (suc q) p002 q | zero | record { eq = ex } | zero | ey = ⊥-elim ( sh1 x x=0 ex ) p002 q | zero | record { eq = ex } | suc py | ey = ⊥-elim ( sh1 x x=0 ex ) p002 q | suc px | ex | zero | record { eq = ey } = ⊥-elim ( sh1 y y=0 ey ) p002 q | suc px | record { eq = ex } | suc py | record { eq = ey } = p003 ( begin suc px ≡⟨ sym ex ⟩ x ⟨$⟩ʳ (suc q) ≡⟨ peq x=y (suc q) ⟩ y ⟨$⟩ʳ (suc q) ≡⟨ ey ⟩ suc py ∎ ) where p003 : suc px ≡ suc py → px ≡ py p003 refl = refl open import FLutil FL→perm : {n : ℕ } → FL n → Permutation n n FL→perm f0 = pid FL→perm (x :: fl) = pprep (FL→perm fl) ∘ₚ pins ( toℕ≤pred[n] x ) t40 = (# 2) :: ( (# 1) :: (( # 0 ) :: f0 )) t4 = FL→perm ((# 2) :: t40 ) -- t1 = plist (shrink (pid {3} ∘ₚ (pins (n≤ 1))) refl) t2 = plist ((pid {5} ) ∘ₚ transpose (# 2) (# 4)) ∷ plist (pid {5} ∘ₚ reverse ) ∷ [] t3 = plist (FL→perm t40) -- ∷ plist (pprep (FL→perm t40)) -- ∷ plist ( pprep (FL→perm t40) ∘ₚ pins ( n≤ 0 {3} )) -- ∷ plist ( pprep (FL→perm t40 )∘ₚ pins ( n≤ 1 {2} )) -- ∷ plist ( pprep (FL→perm t40 )∘ₚ pins ( n≤ 2 {1} )) -- ∷ plist ( pprep (FL→perm t40 )∘ₚ pins ( n≤ 3 {0} )) ∷ plist ( FL→perm ((# 0) :: t40)) -- (0 ∷ 1 ∷ 2 ∷ []) ∷ ∷ plist ( FL→perm ((# 1) :: t40)) -- (0 ∷ 2 ∷ 1 ∷ []) ∷ ∷ plist ( FL→perm ((# 2) :: t40)) -- (1 ∷ 0 ∷ 2 ∷ []) ∷ ∷ plist ( FL→perm ((# 3) :: t40)) -- (2 ∷ 0 ∷ 1 ∷ []) ∷ -- ∷ plist ( FL→perm ((# 3) :: ((# 2) :: ( (# 0) :: (( # 0 ) :: f0 )) ))) -- (1 ∷ 2 ∷ 0 ∷ []) ∷ -- ∷ plist ( FL→perm ((# 3) :: ((# 2) :: ( (# 1) :: (( # 0 ) :: f0 )) ))) -- (2 ∷ 1 ∷ 0 ∷ []) ∷ -- ∷ plist ( (flip (FL→perm ((# 3) :: ((# 1) :: ( (# 0) :: (( # 0 ) :: f0 )) ))))) -- ∷ plist ( (flip (FL→perm ((# 3) :: ((# 1) :: ( (# 0) :: (( # 0 ) :: f0 )) ))) ∘ₚ (FL→perm ((# 3) :: (((# 1) :: ( (# 0) :: (( # 0 ) :: f0 )) )))) )) ∷ [] -- FL→plist-iso : {n : ℕ} → (f : FL n ) → plist→FL (FL→plist f ) ≡ f -- FL→plist-inject : {n : ℕ} → (f g : FL n ) → FL→plist f ≡ FL→plist g → f ≡ g perm→FL : {n : ℕ } → Permutation n n → FL n perm→FL {zero} perm = f0 perm→FL {suc n} perm = (perm ⟨$⟩ʳ (# 0)) :: perm→FL (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm) ) ---FL→perm : {n : ℕ } → FL n → Permutation n n ---FL→perm x = plist→perm ( FL→plis x) -- perm→FL : {n : ℕ } → Permutation n n → FL n -- perm→FL p = plist→FL (plist p) -- pcong-pF : {n : ℕ } → {x y : Permutation n n} → x =p= y → perm→FL x ≡ perm→FL y -- pcong-pF {n} {x} {y} x=y = FL→plist-inject (subst ... (pleq← eq)) (perm→FL x) (perm→FL y) -- FL→iso : {n : ℕ } → (fl : FL n ) → perm→FL ( FL→perm fl ) ≡ fl -- FL→iso = -- pcong-Fp : {n : ℕ } → {x y : FL n} → x ≡ y → FL→perm x =p= FL→perm y -- FL←iso : {n : ℕ } → (perm : Permutation n n ) → FL→perm ( perm→FL perm ) =p= perm _p<_ : {n : ℕ } ( x y : Permutation n n ) → Set x p< y = perm→FL x f< perm→FL y pcong-pF : {n : ℕ } → {x y : Permutation n n} → x =p= y → perm→FL x ≡ perm→FL y pcong-pF {zero} eq = refl pcong-pF {suc n} {x} {y} eq = cong₂ (λ j k → j :: k ) ( peq eq (# 0)) (pcong-pF (shrink-cong (presp eq p001 ) (p=0 x) (p=0 y))) where p002 : x ⟨$⟩ʳ (# 0) ≡ y ⟨$⟩ʳ (# 0) p002 = peq eq (# 0) p001 : flip (pins (toℕ≤pred[n] (x ⟨$⟩ʳ (# 0)))) =p= flip (pins (toℕ≤pred[n] (y ⟨$⟩ʳ (# 0)))) p001 = subst ( λ k → flip (pins (toℕ≤pred[n] (x ⟨$⟩ʳ (# 0)))) =p= flip (pins (toℕ≤pred[n] k ))) p002 prefl -- t5 = plist t4 ∷ plist ( t4 ∘ₚ flip (pins ( n≤ 3 ) )) t5 = plist (t4) ∷ plist (flip t4) ∷ ( toℕ (t4 ⟨$⟩ˡ fromℕ< a<sa) ∷ [] ) ∷ ( toℕ (t4 ⟨$⟩ʳ (# 0)) ∷ [] ) -- ∷ plist ( t4 ∘ₚ flip (pins ( n≤ 1 ) )) ∷ plist (remove (# 0) t4 ) ∷ plist ( FL→perm t40 ) ∷ [] t6 = perm→FL t4 FL→iso : {n : ℕ } → (fl : FL n ) → perm→FL ( FL→perm fl ) ≡ fl FL→iso f0 = refl FL→iso {suc n} (x :: fl) = cong₂ ( λ j k → j :: k ) f001 f002 where perm = pprep (FL→perm fl) ∘ₚ pins ( toℕ≤pred[n] x ) f001 : perm ⟨$⟩ʳ (# 0) ≡ x f001 = begin (pprep (FL→perm fl) ∘ₚ pins ( toℕ≤pred[n] x )) ⟨$⟩ʳ (# 0) ≡⟨⟩ pins ( toℕ≤pred[n] x ) ⟨$⟩ʳ (# 0) ≡⟨ px=x x ⟩ x ∎ x=0 : (perm ∘ₚ flip (pins (toℕ≤pred[n] x))) ⟨$⟩ˡ (# 0) ≡ # 0 x=0 = subst ( λ k → (perm ∘ₚ flip (pins (toℕ≤pred[n] k))) ⟨$⟩ˡ (# 0) ≡ # 0 ) f001 (p=0 perm) x=0' : (pprep (FL→perm fl) ∘ₚ pid) ⟨$⟩ˡ (# 0) ≡ # 0 x=0' = refl f003 : (q : Fin (suc n)) → ((perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) ⟨$⟩ʳ q) ≡ ((perm ∘ₚ flip (pins (toℕ≤pred[n] x))) ⟨$⟩ʳ q) f003 q = cong (λ k → (perm ∘ₚ flip (pins (toℕ≤pred[n] k))) ⟨$⟩ʳ q ) f001 f002 : perm→FL (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm) ) ≡ fl f002 = begin perm→FL (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm) ) ≡⟨ pcong-pF (shrink-cong {n} {perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))} {perm ∘ₚ flip (pins (toℕ≤pred[n] x))} record {peq = f003 } (p=0 perm) x=0) ⟩ perm→FL (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] x))) x=0 ) ≡⟨⟩ perm→FL (shrink ((pprep (FL→perm fl) ∘ₚ pins ( toℕ≤pred[n] x )) ∘ₚ flip (pins (toℕ≤pred[n] x))) x=0 ) ≡⟨ pcong-pF (shrink-cong (passoc (pprep (FL→perm fl)) (pins ( toℕ≤pred[n] x )) (flip (pins (toℕ≤pred[n] x))) ) x=0 x=0) ⟩ perm→FL (shrink (pprep (FL→perm fl) ∘ₚ (pins ( toℕ≤pred[n] x ) ∘ₚ flip (pins (toℕ≤pred[n] x)))) x=0 ) ≡⟨ pcong-pF (shrink-cong {n} {pprep (FL→perm fl) ∘ₚ (pins ( toℕ≤pred[n] x ) ∘ₚ flip (pins (toℕ≤pred[n] x)))} {pprep (FL→perm fl) ∘ₚ pid} ( presp {suc n} {pprep (FL→perm fl) } {_} {(pins ( toℕ≤pred[n] x ) ∘ₚ flip (pins (toℕ≤pred[n] x)))} {pid} prefl record { peq = λ q → inverseˡ (pins ( toℕ≤pred[n] x )) } ) x=0 x=0') ⟩ perm→FL (shrink (pprep (FL→perm fl) ∘ₚ pid) x=0' ) ≡⟨ pcong-pF (shrink-cong {n} {pprep (FL→perm fl) ∘ₚ pid} {pprep (FL→perm fl)} record {peq = λ q → refl } x=0' x=0') ⟩ -- prefl won't work perm→FL (shrink (pprep (FL→perm fl)) x=0' ) ≡⟨ pcong-pF shrink-iso ⟩ perm→FL ( FL→perm fl ) ≡⟨ FL→iso fl ⟩ fl ∎ pcong-Fp : {n : ℕ } → {x y : FL n} → x ≡ y → FL→perm x =p= FL→perm y pcong-Fp {n} {x} {x} refl = prefl FL←iso : {n : ℕ } → (perm : Permutation n n ) → FL→perm ( perm→FL perm ) =p= perm FL←iso {0} perm = record { peq = λ () } FL←iso {suc n} perm = record { peq = λ q → ( begin FL→perm ( perm→FL perm ) ⟨$⟩ʳ q ≡⟨⟩ (pprep (FL→perm (perm→FL (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm) ))) ∘ₚ pins ( toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)) ) ) ⟨$⟩ʳ q ≡⟨ peq (presp {suc n} {_} {_} {pins ( toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)))} (pprep-cong {n} {FL→perm (perm→FL (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm) ))} (FL←iso _ ) ) prefl ) q ⟩ (pprep (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm)) ∘ₚ pins ( toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)) )) ⟨$⟩ʳ q ≡⟨ peq (presp {suc n} {pprep (shrink (perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) (p=0 perm))} {perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))} {pins ( toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)) )} (shrink-iso2 (p=0 perm)) prefl) q ⟩ ((perm ∘ₚ flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0))))) ∘ₚ pins ( toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)) )) ⟨$⟩ʳ q ≡⟨ peq (presp {suc n} {perm} {_} {flip (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)))) ∘ₚ pins ( toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)))} {pid} prefl record { peq = λ q → inverseʳ (pins (toℕ≤pred[n] (perm ⟨$⟩ʳ (# 0)))) }) q ⟩ ( perm ∘ₚ pid ) ⟨$⟩ʳ q ≡⟨⟩ perm ⟨$⟩ʳ q ∎ ) } FL-inject : {n : ℕ } → {g h : Permutation n n } → perm→FL g ≡ perm→FL h → g =p= h FL-inject {n} {g} {h} g=h = record { peq = λ q → ( begin g ⟨$⟩ʳ q ≡⟨ peq (psym (FL←iso g )) q ⟩ ( FL→perm (perm→FL g) ) ⟨$⟩ʳ q ≡⟨ cong ( λ k → FL→perm k ⟨$⟩ʳ q ) g=h ⟩ ( FL→perm (perm→FL h) ) ⟨$⟩ʳ q ≡⟨ peq (FL←iso h) q ⟩ h ⟨$⟩ʳ q ∎ ) } FLpid : {n : ℕ} → (x : Permutation n n) → perm→FL x ≡ FL0 → FL→perm FL0 =p= pid → x =p= pid FLpid x eq p0id = ptrans pf2 (ptrans pf0 p0id ) where pf2 : x =p= FL→perm (perm→FL x) pf2 = psym (FL←iso x) pf0 : FL→perm (perm→FL x) =p= FL→perm FL0 pf0 = pcong-Fp eq pFL0 : {n : ℕ } → FL0 {n} ≡ perm→FL pid pFL0 {zero} = refl pFL0 {suc n} = cong (λ k → zero :: k ) pFL0
programs/oeis/239/A239123.asm
karttu/loda
1
22466
; A239123: a(n) = 128*n - 107 for n >= 1. Third column of triangle A238475. ; 21,149,277,405,533,661,789,917,1045,1173,1301,1429,1557,1685,1813,1941,2069,2197,2325,2453,2581,2709,2837,2965,3093,3221,3349,3477,3605,3733,3861,3989,4117,4245,4373,4501,4629,4757,4885,5013,5141,5269,5397,5525,5653,5781,5909,6037,6165,6293,6421,6549,6677,6805,6933,7061,7189,7317,7445,7573,7701,7829,7957,8085,8213,8341,8469,8597,8725,8853,8981,9109,9237,9365,9493,9621,9749,9877,10005,10133,10261,10389,10517,10645,10773,10901,11029,11157,11285,11413,11541,11669,11797,11925,12053,12181,12309,12437,12565,12693,12821,12949,13077,13205,13333,13461,13589,13717,13845,13973,14101,14229,14357,14485,14613,14741,14869,14997,15125,15253,15381,15509,15637,15765,15893,16021,16149,16277,16405,16533,16661,16789,16917,17045,17173,17301,17429,17557,17685,17813,17941,18069,18197,18325,18453,18581,18709,18837,18965,19093,19221,19349,19477,19605,19733,19861,19989,20117,20245,20373,20501,20629,20757,20885,21013,21141,21269,21397,21525,21653,21781,21909,22037,22165,22293,22421,22549,22677,22805,22933,23061,23189,23317,23445,23573,23701,23829,23957,24085,24213,24341,24469,24597,24725,24853,24981,25109,25237,25365,25493,25621,25749,25877,26005,26133,26261,26389,26517,26645,26773,26901,27029,27157,27285,27413,27541,27669,27797,27925,28053,28181,28309,28437,28565,28693,28821,28949,29077,29205,29333,29461,29589,29717,29845,29973,30101,30229,30357,30485,30613,30741,30869,30997,31125,31253,31381,31509,31637,31765,31893 mov $1,$0 mul $1,128 add $1,21
GCode.g4
grwhitehead/rs274ngc-python3
1
1126
// // NIST RS274NGC Version 3 // // https://www.nist.gov/publications/nist-rs274ngc-interpreter-version-3 // grammar GCode; ngcfile : '%' EOL program '%' EOL .*? EOF | '%' EOL program EOF // not strict | program EOF ; program : line* ; line : block_delete? line_number? segment* EOL ; block_delete : '/' ; line_number : N DIGIT DIGIT? DIGIT? DIGIT? DIGIT? ; segment : mid_line_word | parameter_setting | comment ; mid_line_word : mid_line_letter real_value ; mid_line_letter : A | B | C | D | E // not strict | F | G | H | I | J | K | L | M | O // not strict | P | Q | R | S | T | U // not strict | V // not strict | W // not strict | X | Y | Z ; real_value : real_number | expression | parameter_value | unary_combo ; real_number : (PLUS | MINUS)? DIGIT+ (DECIMAL_POINT DIGIT*)? | (PLUS | MINUS)? DECIMAL_POINT DIGIT+ ; expression : LEFT_BRACKET real_value (binary_operation real_value)* RIGHT_BRACKET ; binary_operation : binary_operation1 | binary_operation2 | binary_operation3 ; binary_operation1 : POWER ; binary_operation2 : DIVIDED_BY | MODULO | TIMES ; binary_operation3 : LOGICAL_AND | EXCLUSIVE_OR | MINUS | NON_EXCLUSIVE_OR | PLUS ; unary_combo : ordinary_unary_combo | arc_tangent_combo ; ordinary_unary_combo : ordinary_unary_operation expression ; ordinary_unary_operation : ABSOLUTE_VALUE | ARC_COSINE | ARC_SINE | COSINE | E_RAISED_TO | FIX_DOWN | FIX_UP | NATURAL_LOG_OF | ROUND_OPERATION | SINE | SQUARE_ROOT | TANGENT ; arc_tangent_combo : ARC_TANGENT expression DIVIDED_BY expression ; parameter_setting : PARAMETER_SIGN parameter_index EQUAL_SIGN real_value ; parameter_value : PARAMETER_SIGN parameter_index ; parameter_index : real_value ; comment : COMMENT ; A : [Aa] ; B : [Bb] ; C : [Cc] ; D : [Dd] ; E : [Ee] ; F : [Ff] ; G : [Gg] ; H : [Hh] ; I : [Ii] ; J : [Jj] ; K : [Kk] ; L : [Ll] ; M : [Mm] ; N : [Nn] ; O : [Oo] ; P : [Pp] ; Q : [Qq] ; R : [Rr] ; S : [Ss] ; T : [Tt] ; U : [Uu] ; V : [Vv] ; W : [Ww] ; X : [Xx] ; Y : [Yy] ; Z : [Zz] ; PLUS : '+' ; MINUS : '-' ; DECIMAL_POINT : '.' ; DIGIT : '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' ; LEFT_BRACKET : '[' ; RIGHT_BRACKET : ']' ; POWER : '**' ; DIVIDED_BY : '/' ; MODULO : 'mod' | 'MOD' ; TIMES : '*' ; LOGICAL_AND : [Aa][Nn][Dd] ; EXCLUSIVE_OR : [Xx][Oo][Rr] ; NON_EXCLUSIVE_OR : [Oo][Rr] ; ABSOLUTE_VALUE : [Aa][Bb][Ss] ; ARC_COSINE : [Aa][Cc][Oo][Ss] ; ARC_SINE : [Aa][Ss][Ii][Nn] ; COSINE : [Cc][Oo][Ss] ; E_RAISED_TO : [Ee][Xx][Pp] ; FIX_DOWN : [Ff][Ii][Xx] ; FIX_UP : [Ff][Uu][Pp] ; NATURAL_LOG_OF : [Ll][Nn] ; ROUND_OPERATION : [Rr][Oo][Uu][Nn][Dd] ; SINE : [Ss][Ii][Nn] ; SQUARE_ROOT : [Ss][Qq][Rr][Tt] ; TANGENT : [Tt][Aa][Nn] ; ARC_TANGENT : [Aa][Tt][Aa][Nn] ; PARAMETER_SIGN : '#' ; EQUAL_SIGN : '=' ; COMMENT : '('~(')')*')' | ';'~([\r\n])* // not strict ; EOL : '\r' | '\n' | '\r\n' ; WS : [ \t] + -> skip ;
programs/oeis/065/A065855.asm
neoneye/loda
22
24386
<reponame>neoneye/loda ; A065855: Number of composites <= n. ; 0,0,0,1,1,2,2,3,4,5,5,6,6,7,8,9,9,10,10,11,12,13,13,14,15,16,17,18,18,19,19,20,21,22,23,24,24,25,26,27,27,28,28,29,30,31,31,32,33,34,35,36,36,37,38,39,40,41,41,42,42,43,44,45,46,47,47,48,49,50,50,51,51,52,53,54,55,56,56,57,58,59,59,60,61,62,63,64,64,65,66,67,68,69,70,71,71,72,73,74 mov $1,1 max $1,$0 mov $2,$1 seq $2,33270 ; Number of odd primes <= n. sub $1,$2 sub $1,1 mov $0,$1
oeis/142/A142141.asm
neoneye/loda-programs
11
17181
; A142141: Primes congruent to 32 mod 37. ; Submitted by <NAME> ; 439,587,661,809,883,1031,1327,1549,1697,1993,2141,2437,2659,3251,3547,3769,3917,4139,4583,4657,5101,5323,5471,5693,6211,6359,6581,6803,7247,7321,7691,8209,8431,9319,9467,9689,10133,10429,10651,10799,11243,11317,11909,13093,13241,13463,13537,13759,13907,14869,15017,15091,15313,15461,15683,16127,16349,17681,17903,17977,18199,19013,19087,19309,19457,19531,19753,20123,20641,20789,21011,21529,21751,22343,22639,22787,22861,23971,24859,25229,25303,25673,25747,25969,26339,26561,26783,27449,27893,27967 mov $2,$0 add $2,6 pow $2,2 mov $4,9 lpb $2 mov $3,$4 add $3,22 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,37 lpe mov $0,$4 add $0,23
Time.agda
amal029/compositional-real-time-contracts
0
11867
-- {-# OPTIONS --safe #-} module Time where open import Map open import Relation.Binary.PropositionalEquality open import Data.String using (String) open import Data.Nat open import Data.Nat.Base using (_≤_) open import Data.Bool using (true ; false) open import Data.Bool.Base using (if_then_else_) open import Data.Maybe using (Maybe; just; nothing) open import Agda.Builtin.Unit open import Data.Empty open import Relation.Nullary using (¬_) open import Data.Product using (_×_) open import Data.List open import Data.Nat.Properties open import Language open import Function.Base using (_$_) max : ∀ (m n : ℕ) → ℕ max m n with (m ≤? n) ... | false Relation.Nullary.because _ = m ... | true Relation.Nullary.because _ = n taeval : (Γ : (String → ℕ)) → (Aexp {ℕ}) → ℕ taeval Γ (a +` a₁) = taeval Γ a + taeval Γ a₁ + (Γ "+") taeval Γ (a -` a₁) = taeval Γ a + taeval Γ a₁ + (Γ "-") taeval Γ (a *` a₁) = taeval Γ a + taeval Γ a₁ + (Γ "*") taeval Γ (Avar x) = 1 -- Just look up in memory assuming 1 -- clock cycle taeval Γ (Anum x) = 1 -- Just look up in mem is 1 clock cycle tbeval : (Γ : (String → ℕ)) → (Bexp {ℕ}) → ℕ tbeval Γ TRUE = Γ "TRUE" tbeval Γ FALSE = Γ "FALSE" tbeval Γ (x1 <` x2) = aeval Γ x1 + aeval Γ x2 + (Γ "<") tbeval Γ (x1 >` x2) = aeval Γ x1 + aeval Γ x2 + (Γ ">") tbeval Γ (x1 ≤` x2) = aeval Γ x1 + aeval Γ x2 + (Γ "≤") tbeval Γ (x1 ≥` x2) = aeval Γ x1 + aeval Γ x2 + (Γ "≥") tbeval Γ (x1 ≡` x2) = aeval Γ x1 + aeval Γ x2 + (Γ "≡") tbeval Γ (¬` b) = tbeval Γ b + (Γ "NOT") tbeval Γ (b &&` b₁) = tbeval Γ b + tbeval Γ b₁ + (Γ "AND") tbeval Γ (b ||` b₁) = tbeval Γ b + tbeval Γ b₁ + (Γ "OR") -- Making the tuple type needed to hold the program data TProgTuple {A : Set} : Set where _,_,_,_ : (a : ATuple) → (r : RTuple) → (c : Cmd {A}) → (cmt : ℕ) → TProgTuple -- Getting stuff from the TProgTuple getProgCmdT : {A : Set} → (p : Maybe (TProgTuple {A})) → Cmd {A} getProgCmdT (just (_ , _ , c , _)) = c getProgCmdT nothing = SKIP -- Dangerous getProgArgsT : {A : Set} → (p : Maybe (TProgTuple {A})) → ATuple getProgArgsT (just (a , _ , _ , _)) = a getProgArgsT nothing = Arg "VOID" getProgRetsT : {A : Set} → (p : Maybe (TProgTuple {A})) → RTuple getProgRetsT (just (_ , r , _ , _)) = r getProgRetsT nothing = Ret "VOID" getProgTimeT : {A : Set} → (p : Maybe (TProgTuple {A})) → ℕ getProgTimeT (just (_ , _ , _ , t)) = t getProgTimeT nothing = 0 data _,_=[_]=>ᴬ_ (Γ : (String → ℕ)) : ℕ → (ATuple) → ℕ → Set where hd : ∀ (W : ℕ) → ∀ (v : String) → Γ , W =[ Arg v ]=>ᴬ (W + (Γ "arg-copy")) tl : (l r : ATuple) → (W W' W'' : ℕ) → (Γ , W =[ l ]=>ᴬ (W + W')) → (Γ , W + W' =[ r ]=>ᴬ (W + W' + W'')) → ----------------------------------------------------------- Γ , W =[ (l ,` r) ]=>ᴬ (W + W' + W'') numargs : ∀ (args : ATuple) → ℕ numargs (Arg v) = 1 numargs (args ,` args₁) = numargs args + numargs args₁ -- soundness theorem for arg copy args-sound : ∀ (Γ : (String → ℕ)) → ∀ (args : ATuple) → (W W' : ℕ) → (Γ , W =[ args ]=>ᴬ W') → (W + numargs args * (Γ "arg-copy")) ≡ W' args-sound Γ .(Arg v) W .(W + Γ "arg-copy") (hd .W v) rewrite +-comm (Γ "arg-copy") 0 = refl args-sound Γ .(l ,` r) W .(W + W' + W'') (tl l r .W W' W'' cmd cmd₁) with (Γ "arg-copy") in eq ... | u rewrite *-distribʳ-+ u (numargs l) (numargs r) | +-comm W (((numargs l) * u) + ((numargs r) * u)) | +-comm ((numargs l) * u) ((numargs r) * u) | +-assoc ((numargs r) * u) ((numargs l) * u) W | +-comm ((numargs l) * u) W | +-comm ((numargs r) * u) (W + ((numargs l) * u)) with args-sound Γ l W (W + W') cmd ... | j with args-sound Γ r (W + W') (W + W' + W'') cmd₁ ... | k with +-cancelˡ-≡ W j | +-cancelˡ-≡ (W + W') k | eq ... | refl | refl | refl = refl data _,_=[_]=>ᴿ_ (Γ : (String → ℕ)) : ℕ → RTuple → ℕ → Set where hd : ∀ (W : ℕ) → ∀ (v : String) → Γ , W =[ Ret v ]=>ᴿ (W + (Γ "ret-copy")) tl : (l r : RTuple) → (W W' W'' : ℕ) → (Γ , W =[ l ]=>ᴿ (W + W')) → (Γ , W + W' =[ r ]=>ᴿ (W + W' + W'')) → ----------------------------------------------------------- Γ , W =[ (l ,` r) ]=>ᴿ (W + W' + W'') numrets : ∀ (rets : RTuple) → ℕ numrets (Ret v) = 1 numrets (rets ,` rets₁) = numrets rets + numrets rets₁ -- soundness theorem for ret copy rets-sound : ∀ (Γ : (String → ℕ)) → ∀ (rets : RTuple) → (W W' : ℕ) → Γ , W =[ rets ]=>ᴿ W' → (W + numrets rets * (Γ "ret-copy")) ≡ W' rets-sound Γ .(Ret v) W .(W + Γ "ret-copy") (hd .W v) rewrite +-comm (Γ "ret-copy") 0 = refl rets-sound Γ .(l ,` r) W .(W + W' + W'') (tl l r .W W' W'' cmd cmd₁) with (Γ "ret-copy") in eq ... | u rewrite *-distribʳ-+ u (numrets l) (numrets r) | +-comm W (((numrets l) * u) + ((numrets r) * u)) | +-comm ((numrets l) * u) ((numrets r) * u) | +-assoc ((numrets r) * u) ((numrets l) * u) W | +-comm ((numrets l) * u) W | +-comm ((numrets r) * u) (W + ((numrets l) * u)) with rets-sound Γ l W (W + W') cmd ... | j with rets-sound Γ r (W + W') (W + W' + W'') cmd₁ ... | k with +-cancelˡ-≡ W j | +-cancelˡ-≡ (W + W') k | eq ... | refl | refl | refl = refl mutual -- Semantics of time from here data _,_,_=[_]=>_ (Γ : (String → Maybe (TProgTuple {ℕ}))) (st : String → ℕ) : ℕ → Cmd {ℕ} → ℕ → Set where TSKIP : ∀ (W : ℕ) → Γ , st , W =[ SKIP ]=> (W + 0) TASSIGN : ∀ (X : String) → ∀ (n : ℕ) → ∀ (e : Aexp {ℕ}) → ∀ (W : ℕ) → --------------------------------- Γ , st , W =[ (Var X := e) ]=> (W + (taeval st e) + (st "store")) TSEQ : ∀ (c1 c2 : Cmd {ℕ}) → ∀ (W W' W'' : ℕ) → Γ , st , W =[ c1 ]=> (W + W') → Γ , st , (W + W') =[ c2 ]=> (W + (W' + W'')) → -------------------------------------------- Γ , st , W =[ c1 ; c2 ]=> (W + (W' + W'')) -- XXX: Hack, st contains both exec time and state! TIFT : (n1 : ℕ) → (b : Bexp {ℕ}) → (t e : Cmd {ℕ}) → ∀ (W W' W'' : ℕ) → (beval st b ≡ true) → Γ , st , W =[ t ]=> (W + W') → Γ , st , W =[ e ]=> (W + W'') → Γ , st , W =[ (IF b THEN t ELSE e END) ]=> (W + W' + (tbeval st b)) TIFE : (n1 : ℕ) → (b : Bexp {ℕ}) → (t e : Cmd {ℕ}) → ∀ (W W' W'' : ℕ) → (beval st b ≡ false) → Γ , st , W =[ t ]=> (W + W') → Γ , st , W =[ e ]=> (W + W'') → Γ , st , W =[ (IF b THEN t ELSE e END) ]=> (W + W'' + (tbeval st b)) TLF : (b : Bexp {ℕ}) → (c : Cmd {ℕ}) → beval st b ≡ false → ∀ (W : ℕ) → ----------------------------------------------------------- Γ , st , W =[ (WHILE b DO c END) ]=> (W + 0 + (tbeval st b)) TLT : (b : Bexp {ℕ}) → (c : Cmd {ℕ}) → beval st b ≡ true → ∀ (W W' : ℕ) → ----------------------------------------------------------- Γ , st , W =[ c ]=> (W + W') → Γ , st , W =[ (WHILE b DO c END) ]=> (W + ((st "loop-count") * (W' + (tbeval st b))) + (tbeval st b)) -- CEX : ∀ (f : FuncCall {ℕ}) → ∀ (st st' : (String → ℕ)) -- → Γ , st =[ f ]=>ᶠ st' -- ----------------------------------------------------------- -- → Γ , st =[ EXEC f ]=> st' data _,_,_=[_]=>ᶠ_ (Γ : String → (Maybe (TProgTuple {ℕ}))) (st : String → ℕ) : ℕ → FuncCall {ℕ} → ℕ → Set where Base : ∀ (fname : String) → -- name of the function ∀ (W W' W'' W''' : ℕ) -- time to put args on function stack → st , W =[ getProgArgsT (Γ fname) ]=>ᴬ (W + W') -- Proof that WCET is what we have in the tuple → (wcet-is : (getProgTimeT (Γ fname)) ≡ W'') -- time to run the function → Γ , st , (W + W') =[ getProgCmdT (Γ fname) ]=> (W + W' + W'') -- copying ret values back on caller' stack → st , (W + W' + W'') =[ getProgRetsT (Γ fname) ]=>ᴿ (W + W' + W'' + W''') ----------------------------------------------------------- → Γ , st , W =[ < getProgRetsT (Γ fname) >:= fname < getProgArgsT (Γ fname) > ]=>ᶠ (W + W' + W'' + W''') PAR : ∀ (l r : FuncCall {ℕ}) → ∀ (W X1 X2 : ℕ) → Γ , st , W =[ l ]=>ᶠ (W + X1) → Γ , st , W =[ r ]=>ᶠ (W + X2) ----------------------------------------------------------- → Γ , st , W =[ l ||` r ]=>ᶠ (W + (max X1 X2) + ((2 * (st "fork")) + (2 * (st "join")))) -- Soundness theorem for SKIP WCET rule skip-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) -- map of labels to execution times → ∀ (W W' X : ℕ) → (cmd : Γ , Γᵗ , W =[ SKIP ]=> W') → (W ≡ X) → (W' ≡ X) skip-sound Γ Γᵗ W .(W + 0) .W (TSKIP .W) refl rewrite +-comm W 0 = refl -- Soundness theorem for Assign WCET rule assign-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : (String → ℕ)) → (S : String) → (e : Aexp {ℕ}) → (W W' : ℕ) → (cmd : Γ , Γᵗ , W =[ Var S := e ]=> W') → (W' ≡ W + (taeval Γᵗ e) + (Γᵗ "store")) assign-sound Γ Γᵗ S e W .(W + taeval Γᵗ e + Γᵗ "store") (TASSIGN .S n .e .W) = refl -- Deterministic exec Δ-exec : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (W W' W'' : ℕ) → (c1 : Cmd {ℕ}) → (Γ , Γᵗ , W =[ c1 ]=> W') → (Γ , Γᵗ , W =[ c1 ]=> W'') → W' ≡ W'' Δ-exec Γ Γᵗ W .(W + taeval Γᵗ e + Γᵗ "store") .(W + taeval Γᵗ e + Γᵗ "store") (Var X := e) (TASSIGN .X n₁ .e .W) (TASSIGN .X n .e .W) = refl Δ-exec Γ Γᵗ W .(W + 0) .(W + 0) .SKIP (TSKIP .W) (TSKIP .W) = refl Δ-exec Γ Γᵗ W .(W + (W' + W''')) .(W + (W'' + W'''')) .(c1 ; c2) (TSEQ c1 c2 .W W' W''' p1 p3) (TSEQ .c1 .c2 .W W'' W'''' p2 p4) with Δ-exec Γ Γᵗ W (W + W') (W + W'') c1 p1 p2 ... | r with +-cancelˡ-≡ W r ... | refl with Δ-exec Γ Γᵗ (W + W') (W + (W' + W''')) (W + (W' + W'''')) c2 p3 p4 ... | rr with +-cancelˡ-≡ W rr ... | rm with +-cancelˡ-≡ W' rm ... | refl = refl Δ-exec Γ Γᵗ W .(W + 0 + tbeval Γᵗ b) .(W + 0 + tbeval Γᵗ b) WHILE b DO c END (TLF .b .c x .W) (TLF .b .c x₁ .W) = refl Δ-exec Γ Γᵗ W .(W + Γᵗ "loop-count" * (W' + tbeval Γᵗ b) + _) .(W + 0 + tbeval Γᵗ b) WHILE b DO c END (TLT .b .c x .W W' x₂) (TLF .b .c x₁ .W) = ⊥-elim (contradiction-lemma b Γᵗ x x₁) Δ-exec Γ Γᵗ W .(W + 0 + tbeval Γᵗ b) .(W + Γᵗ "loop-count" * (W'' + tbeval Γᵗ b) + _) WHILE b DO c END (TLF .b .c x .W) (TLT .b .c x₁ .W W'' x₂) = ⊥-elim (contradiction-lemma b Γᵗ x₁ x) Δ-exec Γ Γᵗ W .(W + Γᵗ "loop-count" * (W' + tbeval Γᵗ b) + _) .(W + Γᵗ "loop-count" * (W'' + tbeval Γᵗ b) + _) WHILE b DO c END (TLT .b .c x .W W' x₃) (TLT .b .c x₁ .W W'' x₂) with Δ-exec Γ Γᵗ W (W + W') (W + W'') c x₃ x₂ ... | l with +-cancelˡ-≡ W l ... | refl = refl Δ-exec Γ Γᵗ W .(W + W' + tbeval Γᵗ b) .(W + W'' + tbeval Γᵗ b) IF b THEN t ELSE e END (TIFT n2 .b .t .e .W W' W'''' x x₄ x₅) (TIFT n1 .b .t .e .W W'' W''' x₁ x₂ x₃) with Δ-exec Γ Γᵗ W (W + W') (W + W'') t x₄ x₂ ... | y with +-cancelˡ-≡ W y ... | refl = refl Δ-exec Γ Γᵗ W .(W + W'''' + tbeval Γᵗ b) .(W + W'' + tbeval Γᵗ b) IF b THEN t ELSE e END (TIFE n2 .b .t .e .W W' W'''' x x₄ x₅) (TIFT n1 .b .t .e .W W'' W''' x₁ x₂ x₃) = ⊥-elim (contradiction-lemma b Γᵗ x₁ x) Δ-exec Γ Γᵗ W .(W + W' + tbeval Γᵗ b) .(W + W''' + tbeval Γᵗ b) IF b THEN t ELSE e END (TIFT n2 .b .t .e .W W' W'''' x x₄ x₅) (TIFE n1 .b .t .e .W W'' W''' x₁ x₂ x₃) = ⊥-elim (contradiction-lemma b Γᵗ x x₁) Δ-exec Γ Γᵗ W .(W + W'''' + tbeval Γᵗ b) .(W + W''' + tbeval Γᵗ b) IF b THEN t ELSE e END (TIFE n2 .b .t .e .W W' W'''' x x₄ x₅) (TIFE n1 .b .t .e .W W'' W''' x₁ x₂ x₃) with Δ-exec Γ Γᵗ W (W + W''') (W + W'''') e x₃ x₅ ... | y with +-cancelˡ-≡ W y ... | refl = refl -- Deterministic execution of a function Δ-exec-func : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → (l : FuncCall {ℕ}) → (W W' W'' : ℕ) → Γ , Γᵗ , W =[ l ]=>ᶠ W' → Γ , Γᵗ , W =[ l ]=>ᶠ W'' → W' ≡ W'' Δ-exec-func Γ Γᵗ .(< getProgRetsT (Γ fname) >:= fname < getProgArgsT (Γ fname) >) W .(W + W' + getProgTimeT (Γ fname) + W'''') .(W + W'' + getProgTimeT (Γ fname) + W'''''') (Base fname .W W' .(getProgTimeT (Γ fname)) W'''' x refl x₁ x₂) (Base .fname .W W'' .(getProgTimeT (Γ fname)) W'''''' x₃ refl x₄ x₅) with args-sound Γᵗ (getProgArgsT (Γ fname)) W (W + W') x | args-sound Γᵗ (getProgArgsT (Γ fname)) W (W + W'') x₃ | rets-sound Γᵗ (getProgRetsT (Γ fname)) (W + W' + getProgTimeT (Γ fname)) (W + W' + getProgTimeT (Γ fname) + W'''') x₂ | rets-sound Γᵗ (getProgRetsT (Γ fname)) (W + W'' + getProgTimeT (Γ fname)) (W + W'' + getProgTimeT (Γ fname) + W'''''') x₅ ... | l | l1 | r1 | r2 with +-cancelˡ-≡ W l | +-cancelˡ-≡ W l1 ... | refl | refl with +-cancelˡ-≡ (W + numargs (getProgArgsT (Γ fname)) * Γᵗ "arg-copy" + getProgTimeT (Γ fname)) r2 ... | refl with +-cancelˡ-≡ (W + numargs (getProgArgsT (Γ fname)) * Γᵗ "arg-copy" + getProgTimeT (Γ fname)) r1 ... | refl = refl Δ-exec-func Γ Γᵗ .(l ||` r) W .(W + max X1 X2 + (2 * Γᵗ "fork" + 2 * Γᵗ "join")) .(W + max X3 X4 + (2 * Γᵗ "fork" + 2 * Γᵗ "join")) (PAR l r .W X1 X2 e1 e3) (PAR .l .r .W X3 X4 e2 e4) with Δ-exec-func Γ Γᵗ l W (W + X1) (W + X3) e1 e2 | Δ-exec-func Γ Γᵗ r W (W + X2) (W + X4) e3 e4 ... | m | y with +-cancelˡ-≡ W m | +-cancelˡ-≡ W y ... | refl | refl = refl skip-cancel : ∀ (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (W1 W2 X1 X2 : ℕ) → (Γ , Γᵗ , W1 =[ SKIP ]=> (W1 + X1)) → (Γ , Γᵗ , W2 =[ SKIP ]=> (W2 + X2)) → X1 ≡ X2 skip-cancel Γ Γᵗ W1 W2 X1 X2 p1 p2 with (W1 + X1) in eq1 skip-cancel Γ Γᵗ W1 W2 X1 X2 (TSKIP .W1) p2 | .(W1 + 0) with +-cancelˡ-≡ W1 eq1 skip-cancel Γ Γᵗ W1 W2 X1 X2 (TSKIP .W1) p2 | .(W1 + 0) | refl with (W2 + X2) in eq2 skip-cancel Γ Γᵗ W1 W2 _ X2 (TSKIP .W1) (TSKIP .W2) | .(W1 + _) | refl | .(W2 + 0) with +-cancelˡ-≡ W2 eq2 ... | refl = refl assign-cancel : ∀ (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (W1 W2 X1 X2 : ℕ) → (S : String) → (e : Aexp {ℕ}) → (Γ , Γᵗ , W1 =[ Var S := e ]=> (W1 + X1)) → (Γ , Γᵗ , W2 =[ Var S := e ]=> (W2 + X2)) → X1 ≡ X2 assign-cancel Γ Γᵗ W1 W2 X1 X2 S e cmd1 cmd2 with (W1 + X1) in eq1 | (W2 + X2) in eq2 assign-cancel Γ Γᵗ W1 W2 X1 X2 S e (TASSIGN .S n .e .W1) (TASSIGN .S n₁ .e .W2) | .(W1 + taeval Γᵗ e + Γᵗ "store") | .(W2 + taeval Γᵗ e + Γᵗ "store") rewrite +-assoc W1 (taeval Γᵗ e) (Γᵗ "store") | +-assoc W2 (taeval Γᵗ e) (Γᵗ "store") with +-cancelˡ-≡ W1 eq1 | +-cancelˡ-≡ W2 eq2 ... | refl | refl = refl loop-cancel : ∀ (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (W1 W2 X1 X2 : ℕ) → (b : Bexp {ℕ}) → (c : Cmd {ℕ}) → (Γ , Γᵗ , W1 =[ (WHILE b DO c END) ]=> (W1 + X1)) → (Γ , Γᵗ , W2 =[ (WHILE b DO c END) ]=> (W2 + X2)) → X1 ≡ X2 ife-cancel : ∀ (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (W1 W2 X1 X2 : ℕ) → (b : Bexp {ℕ}) → (t e : Cmd {ℕ}) → (Γ , Γᵗ , W1 =[ ( IF b THEN t ELSE e END ) ]=> (W1 + X1)) → (Γ , Γᵗ , W2 =[ ( IF b THEN t ELSE e END ) ]=> (W2 + X2)) → X1 ≡ X2 seq-cancel : ∀ (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (W1 W2 X1 X2 : ℕ) → (c1 c2 : Cmd {ℕ}) → (Γ , Γᵗ , W1 =[ ( c1 ; c2) ]=> (W1 + X1)) → (Γ , Γᵗ , W2 =[ ( c1 ; c2) ]=> (W2 + X2)) → X1 ≡ X2 -- The general case of cancellation. eq-cancel : ∀ (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → ∀ (c : Cmd {ℕ}) → ∀ (W1 W2 X1 X2 : ℕ) → (Γ , Γᵗ , W1 =[ c ]=> (W1 + X1)) → (Γ , Γᵗ , W2 =[ c ]=> (W2 + X2)) → X1 ≡ X2 loop-cancel Γ Γᵗ W1 W2 X1 X2 b c cmd1 cmd2 with (W1 + X1) in eq1 | (W2 + X2) in eq2 loop-cancel Γ Γᵗ W1 W2 X1 X2 b c (TLF .b .c x .W1) (TLF .b .c x₁ .W2) | .(W1 + 0 + tbeval Γᵗ b) | .(W2 + 0 + tbeval Γᵗ b) rewrite +-assoc W1 0 (tbeval Γᵗ b) | +-assoc W2 0 (tbeval Γᵗ b) with +-cancelˡ-≡ W1 eq1 | +-cancelˡ-≡ W2 eq2 ... | refl | refl = refl loop-cancel Γ Γᵗ W1 W2 X1 X2 b c (TLF .b .c x .W1) (TLT .b .c x₁ .W2 W' cmd2) | .(W1 + 0 + tbeval Γᵗ b) | .(W2 + Γᵗ "loop-count" * (W' + tbeval Γᵗ b) + tbeval Γᵗ b) = ⊥-elim (contradiction-lemma b Γᵗ x₁ x) loop-cancel Γ Γᵗ W1 W2 X1 X2 b c (TLT .b .c x .W1 W' cmd1) (TLF .b .c x₁ .W2) | .(W1 + Γᵗ "loop-count" * (W' + tbeval Γᵗ b) + tbeval Γᵗ b) | .(W2 + 0 + tbeval Γᵗ b) = ⊥-elim (contradiction-lemma b Γᵗ x x₁) loop-cancel Γ Γᵗ W1 W2 X1 X2 b c (TLT .b .c x .W1 W' cmd1) (TLT .b .c x₁ .W2 W'' cmd2) | .(W1 + Γᵗ "loop-count" * (W' + tbeval Γᵗ b) + tbeval Γᵗ b) | .(W2 + Γᵗ "loop-count" * (W'' + tbeval Γᵗ b) + tbeval Γᵗ b) with eq-cancel Γ Γᵗ c W1 W2 W' W'' cmd1 cmd2 ... | refl with (Γᵗ "loop-count") | (tbeval Γᵗ b) ... | LC | BC rewrite +-assoc W2 (LC * (W' + BC)) BC | +-assoc W1 (LC * (W' + BC)) BC with +-cancelˡ-≡ W2 eq2 | +-cancelˡ-≡ W1 eq1 ... | refl | refl = refl ife-cancel Γ Γᵗ W1 W2 X1 X2 b t e p1 p2 with (W1 + X1) in eq1 | (W2 + X2) in eq2 ife-cancel Γ Γᵗ W1 W2 X1 X2 b t e (TIFT n1 .b .t .e .W1 W' W'' x p1 p3) (TIFT n2 .b .t .e .W2 W''' W'''' x₁ p2 p4) | .(W1 + W' + tbeval Γᵗ b) | .(W2 + W''' + tbeval Γᵗ b) with eq-cancel Γ Γᵗ t W1 W2 W' W''' p1 p2 ... | refl rewrite +-assoc W2 W' (tbeval Γᵗ b) | +-assoc W1 W' (tbeval Γᵗ b) with +-cancelˡ-≡ W2 eq2 | +-cancelˡ-≡ W1 eq1 ... | refl | refl = refl ife-cancel Γ Γᵗ W1 W2 X1 X2 b t e (TIFT n1 .b .t .e .W1 W' W'' x p1 p3) (TIFE n2 .b .t .e .W2 W''' W'''' x₁ p2 p4) | .(W1 + W' + tbeval Γᵗ b) | .(W2 + W'''' + tbeval Γᵗ b) = ⊥-elim (contradiction-lemma b Γᵗ x x₁) ife-cancel Γ Γᵗ W1 W2 X1 X2 b t e (TIFE n1 .b .t .e .W1 W' W'' x p1 p3) (TIFT n2 .b .t .e .W2 W''' W'''' x₁ p2 p4) | .(W1 + W'' + tbeval Γᵗ b) | .(W2 + W''' + tbeval Γᵗ b) = ⊥-elim (contradiction-lemma b Γᵗ x₁ x) ife-cancel Γ Γᵗ W1 W2 X1 X2 b t e (TIFE n1 .b .t .e .W1 W' W'' x p1 p3) (TIFE n2 .b .t .e .W2 W''' W'''' x₁ p2 p4) | .(W1 + W'' + tbeval Γᵗ b) | .(W2 + W'''' + tbeval Γᵗ b) rewrite +-assoc W1 W'' (tbeval Γᵗ b) | +-assoc W2 W'''' (tbeval Γᵗ b) with +-cancelˡ-≡ W2 eq2 | +-cancelˡ-≡ W1 eq1 | eq-cancel Γ Γᵗ e W1 W2 W'' W'''' p3 p4 ... | refl | refl | refl = refl seq-cancel Γ Γᵗ W1 W2 X1 X2 c1 c2 p1 p2 with (W1 + X1) in eq1 | (W2 + X2) in eq2 seq-cancel Γ Γᵗ W1 W2 X1 X2 c1 c2 (TSEQ .c1 .c2 .W1 W' W'' p1 p3) (TSEQ .c1 .c2 .W2 W''' W'''' p2 p4) | .(W1 + (W' + W'')) | .(W2 + (W''' + W'''')) rewrite +-cancelˡ-≡ W1 eq1 | +-cancelˡ-≡ W2 eq2 with eq-cancel Γ Γᵗ c1 W1 W2 W' W''' p1 p2 ... | refl rewrite +-comm W''' W'' | +-comm W1 (W'' + W''') | +-assoc W'' W''' W1 | +-comm W''' W1 | +-comm W'' (W1 + W''') | +-comm W''' W'''' | +-comm W2 (W'''' + W''') | +-assoc W'''' W''' W2 | +-comm W''' W2 | +-comm W'''' (W2 + W''') with (W1 + W''') | (W2 + W''') ... | l | m with eq-cancel Γ Γᵗ c2 l m W'' W'''' p3 p4 ... | refl = refl eq-cancel Γ Γᵗ SKIP W1 W2 X1 X2 p1 p2 = skip-cancel Γ Γᵗ W1 W2 X1 X2 p1 p2 eq-cancel Γ Γᵗ (Var x := r) W1 W2 X1 X2 p1 p2 = assign-cancel Γ Γᵗ W1 W2 X1 X2 x r p1 p2 eq-cancel Γ Γᵗ (c ; c₁) W1 W2 X1 X2 p1 p2 = seq-cancel Γ Γᵗ W1 W2 X1 X2 c c₁ p1 p2 eq-cancel Γ Γᵗ IF b THEN c ELSE c₁ END W1 W2 X1 X2 p1 p2 = ife-cancel Γ Γᵗ W1 W2 X1 X2 b c c₁ p1 p2 eq-cancel Γ Γᵗ WHILE b DO c END W1 W2 X1 X2 p1 p2 = loop-cancel Γ Γᵗ W1 W2 X1 X2 b c p1 p2 -- TODO: The function call case and concurrency cases will go here -- Soundness theorem for Seq WCET rule seq-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → (c1 c2 : Cmd {ℕ}) → (W X1 X2 W' : ℕ) → (cmd : Γ , Γᵗ , W =[ c1 ; c2 ]=> W') → (p1 : Γ , Γᵗ , W =[ c1 ]=> (W + X1)) → (p2 : Γ , Γᵗ , W =[ c2 ]=> (W + X2)) → (W' ≡ W + (X1 + X2)) seq-sound Γ Γᵗ c1 c2 W X1 X2 .(W + (W' + W'')) (TSEQ .c1 .c2 .W W' W'' cmd cmd₁) p1 p2 with Δ-exec Γ Γᵗ W (W + W') (W + X1) c1 cmd p1 ... | q with +-cancelˡ-≡ W q ... | refl rewrite +-comm W (X1 + W'') | +-comm X1 W'' | +-assoc W'' X1 W | +-comm X1 W | +-comm W'' (W + X1) | +-comm X1 X2 | +-comm W (X2 + X1) | +-assoc X2 X1 W | +-comm X2 (X1 + W) | +-comm X1 W with (W + X1) ... | rl with eq-cancel Γ Γᵗ c2 rl W W'' X2 cmd₁ p2 ... | refl = refl -- Helping lemma for ife plus-≤ : ∀ (m n p : ℕ) → (m ≤ n) → (m + p) ≤ (n + p) plus-≤ .zero n p z≤n = m≤n+m p n plus-≤ .(suc _) .(suc _) p (s≤s {m} {n} q) with plus-≤ m n p q ... | H0 = s≤s H0 ≤-rela1 : ∀ (m n : ℕ) → ¬ (m ≤ n) → (n < m) ≤-rela1 zero n p = ⊥-elim (p z≤n) ≤-rela1 (suc m) zero p = s≤s z≤n ≤-rela1 (suc m) (suc n) p = s≤s (≤-rela1 m n (λ z → p (s≤s z))) ≤-rela2 : ∀ (m n : ℕ) → (suc n ≤ m) → (n ≤ m) ≤-rela2 m n p with n≤1+n n ... | q = ≤-trans q p -- if-helper if-helper : ∀ (X1 X2 : ℕ) → (X1 ≤ max X1 X2) if-helper X1 X2 with (X1 ≤? X2) ... | false Relation.Nullary.because proof = ≤′⇒≤ ≤′-refl ... | true Relation.Nullary.because Relation.Nullary.ofʸ p = p if-helper2 : ∀ (X1 X2 : ℕ) → (X2 ≤ max X1 X2) if-helper2 X1 X2 with (X1 ≤? X2) if-helper2 X1 X2 | false Relation.Nullary.because Relation.Nullary.ofⁿ ¬p with ≤-rela1 X1 X2 (¬p) ... | q = ≤-rela2 X1 X2 q if-helper2 X1 X2 | true Relation.Nullary.because _ = ≤′⇒≤ ≤′-refl -- Soundness theorem for If-else WCET rule ife-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → (t e : Cmd {ℕ}) → (b : Bexp {ℕ}) → (W X1 X2 W' : ℕ) → (tcmd : Γ , Γᵗ , W =[ t ]=> (W + X1)) → (ecmd : Γ , Γᵗ , W =[ e ]=> (W + X2)) → (cmd : Γ , Γᵗ , W =[ (IF b THEN t ELSE e END) ]=> W') → (W' ≤ W + (max X1 X2) + (tbeval Γᵗ b)) ife-sound Γ Γᵗ t e b W X1 X2 .(W + W' + tbeval Γᵗ b) tcmd ecmd (TIFT n1 .b .t .e .W W' W'' x cmd cmd₁) with Δ-exec Γ Γᵗ W (W + W') (W + X1) t cmd tcmd ... | l with +-cancelˡ-≡ W l ... | refl rewrite +-assoc W X1 (tbeval Γᵗ b) | +-comm W (X1 + (tbeval Γᵗ b)) | +-assoc X1 (tbeval Γᵗ b) W with (tbeval Γᵗ b) ... | Y with max X1 X2 in eq ... | M rewrite +-assoc W M Y | +-comm W (M + Y) | +-assoc M Y W with (Y + W) ... | L with if-helper X1 X2 | eq ... | T | refl = plus-≤ X1 M L T ife-sound Γ Γᵗ t e b W X1 X2 .(W + W'' + tbeval Γᵗ b) tcmd ecmd (TIFE n1 .b .t .e .W W' W'' x cmd cmd₁) with (tbeval Γᵗ b) | Δ-exec Γ Γᵗ W (W + W'') (W + X2) e cmd₁ ecmd ... | Y | l with +-cancelˡ-≡ W l ... | refl with max X1 X2 in eq ... | M rewrite +-assoc W X2 Y | +-assoc W M Y | +-comm W (X2 + Y) | +-comm W (M + Y) | +-assoc X2 Y W | +-assoc M Y W with (Y + W) ... | L with if-helper2 X1 X2 | eq ... | T | refl = plus-≤ X2 M L T -- Helper for loop loop-helper : ∀ (l g : ℕ) → (l ≤′ (g + l)) loop-helper l zero = ≤′-refl loop-helper l (suc g) = ≤′-step (loop-helper l g) -- XXX: Using well founded recursion here loop-sound-≤′ : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → (c : Cmd {ℕ}) → (b : Bexp {ℕ}) → (W W' X1 : ℕ) → (Γ , Γᵗ , W =[ c ]=> (W + X1)) → (cmd : Γ , Γᵗ , W =[ (WHILE b DO c END) ]=> W') → W' ≤′ W + ((Γᵗ "loop-count") * (X1 + (tbeval Γᵗ b))) + (tbeval Γᵗ b) loop-sound-≤′ Γ Γᵗ c b W .(W + 0 + tbeval Γᵗ b) X1 cmd (TLF .b .c x .W) with (Γᵗ "loop-count") ... | zero = ≤′-refl ... | suc m rewrite +-comm W 0 with (tbeval Γᵗ b) ... | q with (X1 + q + m * (X1 + q)) ... | t rewrite +-comm W t | +-assoc t W q with (W + q) ... | l = loop-helper l t loop-sound-≤′ Γ Γᵗ c b W .(W + Γᵗ "loop-count" * (W' + tbeval Γᵗ b) + tbeval Γᵗ b) X1 cmd (TLT .b .c x .W W' cmd1) with Δ-exec Γ Γᵗ W (W + W') (W + X1) c cmd1 cmd ... | r with +-cancelˡ-≡ W r ... | refl = ≤′-refl -- The general case loop-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → (Γᵗ : String → ℕ) → (c : Cmd {ℕ}) → (b : Bexp {ℕ}) → (W W' X1 : ℕ) → (Γ , Γᵗ , W =[ c ]=> (W + X1)) → (cmd : Γ , Γᵗ , W =[ (WHILE b DO c END) ]=> W') → W' ≤ W + ((Γᵗ "loop-count") * (X1 + (tbeval Γᵗ b))) + (tbeval Γᵗ b) loop-sound Γ Γᵗ c b W W' X1 c2 cmd = ≤′⇒≤ (loop-sound-≤′ Γ Γᵗ c b W W' X1 c2 cmd) -- The soundness theorem for a single function call func-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → ∀ (Γᵗ : String → ℕ) → ∀ (fname : String) → ∀ (W W' : ℕ) → Γ , Γᵗ , W =[ < getProgRetsT (Γ fname) >:= fname < getProgArgsT (Γ fname) > ]=>ᶠ W' → W' ≡ (W + ((numargs $ getProgArgsT $ (Γ fname)) * (Γᵗ "arg-copy")) + (getProgTimeT (Γ fname)) + ((numrets $ getProgRetsT $ (Γ fname)) * (Γᵗ "ret-copy"))) func-sound Γ Γᵗ fname W .(W + W' + getProgTimeT (Γ fname) + W''') (Base .fname .W W' .(getProgTimeT (Γ fname)) W''' x refl x₁ x₂) with args-sound Γᵗ (getProgArgsT (Γ fname)) W (W + W') x | rets-sound Γᵗ (getProgRetsT (Γ fname)) (W + W' + getProgTimeT (Γ fname)) (W + W' + getProgTimeT (Γ fname) + W''') x₂ ... | l | m with +-cancelˡ-≡ W l ... | refl with +-cancelˡ-≡ (W + numargs (getProgArgsT (Γ fname)) * Γᵗ "arg-copy" + getProgTimeT (Γ fname)) m ... | refl = refl -- The soundness theorem for PAR (||`) execution of threads par-sound : (Γ : String → Maybe (TProgTuple {ℕ})) → ∀ (Γᵗ : String → ℕ) → (l r : FuncCall {ℕ}) → (W W' X1 X2 : ℕ) → Γ , Γᵗ , W =[ l ||` r ]=>ᶠ W' → Γ , Γᵗ , W =[ l ]=>ᶠ (W + X1) → Γ , Γᵗ , W =[ r ]=>ᶠ (W + X2) → W' ≡ W + (max X1 X2) + 2 * ((Γᵗ "fork") + (Γᵗ "join")) par-sound Γ Γᵗ l r W .(W + max X3 X4 + (2 * Γᵗ "fork" + 2 * Γᵗ "join")) X1 X2 (PAR .l .r .W X3 X4 pare pare₁) parl parr with (Γᵗ "fork") | (Γᵗ "join") ... | tf | tj rewrite *-distribˡ-+ 2 tf tj | +-assoc tf tj 0 | +-comm tj 0 | +-comm tf 0 | +-assoc tf tj (tf + tj) | +-comm tj (tf + tj) | +-assoc tf tj tj | +-comm tf (tf + (tj + tj)) | +-comm tf (tj + tj) with (tf + tf + (tj + tj)) ... | m with Δ-exec-func Γ Γᵗ l W (W + X1) (W + X3) parl pare ... | q with Δ-exec-func Γ Γᵗ r W (W + X2) (W + X4) parr pare₁ ... | q2 with +-cancelˡ-≡ W q | +-cancelˡ-≡ W q2 ... | refl | refl = refl
.emacs.d/elpa/wisi-2.1.1/sal-gen_bounded_definite_queues.ads
caqg/linux-home
0
9455
-- Abstract: -- -- A generic queue, allowing definite non-limited item types. -- -- Copyright (C) 2004, 2008, 2009, 2011, 2017, 2019 Free Software Foundation All Rights Reserved. -- -- This library is free software; you can redistribute it and/or modify it -- under 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 library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY 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. pragma License (Modified_GPL); generic type Item_Type is private; package SAL.Gen_Bounded_Definite_Queues is pragma Pure; type Queue_Type (Size : Positive) is tagged private; -- Size is maximum number of items in the queue. -- Tagged to allow Object.Method syntax. function Get_Overflow_Handling (Queue : in Queue_Type) return Overflow_Action_Type; procedure Set_Overflow_Handling (Queue : in out Queue_Type; Handling : in Overflow_Action_Type); -- See Add for meaning of Overflow_Handling. Default is Error. procedure Clear (Queue : in out Queue_Type); -- Empty Queue of all items. function Count (Queue : in Queue_Type) return Natural; -- Returns count of items in the Queue function Is_Empty (Queue : in Queue_Type) return Boolean; -- Returns true if no items are in Queue. function Is_Full (Queue : in Queue_Type) return Boolean; -- Returns true if Queue is full. function Remove (Queue : in out Queue_Type) return Item_Type; -- Remove head item from Queue, return it. -- -- Raises Container_Empty if Is_Empty. function Get (Queue : in out Queue_Type) return Item_Type renames Remove; procedure Drop (Queue : in out Queue_Type); -- Remove head item from Queue, discard it. -- -- Raises Container_Empty if Is_Empty. function Peek (Queue : in Queue_Type; N : Integer := 0) return Item_Type; -- Return a copy of a queue item, without removing it. N = 0 is -- the queue head. procedure Add (Queue : in out Queue_Type; Item : in Item_Type); -- Add Item to the tail of Queue. -- -- If Queue is full, result depends on Queue.Overflow_Handling: -- -- when Overwrite, an implicit Remove is done (and the data -- discarded), then Add is done. -- -- when Error, raises Container_Full. procedure Put (Queue : in out Queue_Type; Item : in Item_Type) renames Add; procedure Add_To_Head (Queue : in out Queue_Type; Item : in Item_Type); -- Add Item to the head of Queue. -- -- If Queue is full, result depends on Queue.Overflow_Handling: -- -- when Overwrite, an implicit Remove is done (and the data -- discarded), then Add is done. -- -- when Error, raises Container_Full. private type Item_Array_Type is array (Positive range <>) of Item_Type; type Queue_Type (Size : Positive) is tagged record Overflow_Handling : Overflow_Action_Type := Error; Head : Natural := 0; Tail : Natural := 0; Count : Natural := 0; Data : Item_Array_Type (1 .. Size); -- Add at Tail + 1, remove at Head. Count is current count; -- easier to keep track of that than to compute Is_Empty for -- each Add and Remove. end record; end SAL.Gen_Bounded_Definite_Queues;
04.Machine_Language/Sum1toN.asm
metabuddy/NAND2Tetris
0
4038
// Sum1toN.asm // Computes RAM[1] = 1+2+...+n // Usage: put a number(n) in RAM[0] // ====== pseudo code ==== // n = R0 // i = 1 // sum = 0 // LOOP: // if i > n goto STOP // sum = sum + i // i = i + 1 // goto LOOP // STOP: // R1 = sum // --------------------------------- @R0 D=M @n //n var M=D @i //i var M=1 @sum //sum var M=0 (LOOP) //if condition & goto @n D=M @i D=D-M @STOP D;JLT //if body @i D=M @sum M=M+D // sum=sum+i @i M=M+1 //i=i+1 @LOOP 0;JMP (STOP) @sum D=M @R1 M=D (END) @END 0;JMP
src/test/ref/fragment-synth.asm
jbrandwood/kickc
2
28364
// Tests a sub-optimal fragment synthesis // vbuaa=vbuxx_band_pbuz1_derefidx_vbuc1 < vbuaa=pbuz1_derefidx_vbuc1_band_vbuxx < vbuaa=pbuz1_derefidx_vbuaa_band_vbuxx < vbuaa=pbuz1_derefidx_vbuyy_band_vbuxx < vbuaa=pbuz1_derefidx_vbuyy_band_vbuaa < vbuaa=vbuaa_band_pbuz1_derefidx_vbuyy - clobber:A Y cycles:11.5 // Commodore 64 PRG executable file .file [name="fragment-synth.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .segment Code main: { .label screen = $400 // z[2] = $f0 lda #$f0 sta $450+2 // z[3] = $0f lda #$f sta $450+3 // byte a1 = fct(x, z) lda #<$450 sta.z fct.z lda #>$450 sta.z fct.z+1 ldx #$aa jsr fct // byte a1 = fct(x, z) // screen[0] = a1 sta screen // byte a2 = fct(x, z) lda #<$450+1 sta.z fct.z lda #>$450+1 sta.z fct.z+1 ldx #$55 jsr fct // byte a2 = fct(x, z) // screen[1] = a2 sta screen+1 // } rts } // __register(A) char fct(__register(X) char x, __zp(2) char *z) fct: { .label z = 2 // byte register(A) a = x & z[2] ldy #2 txa and (z),y // } rts }
programs/oeis/102/A102518.asm
karttu/loda
1
241744
<filename>programs/oeis/102/A102518.asm ; A102518: a(n) = Sum_{k=0..n} binomial(n, k) * Sum_{j=0..k} binomial(3k, 3j). ; 1,3,27,243,2187,19683,177147,1594323,14348907,129140163,1162261467,10460353203,94143178827,847288609443,7625597484987,68630377364883,617673396283947,5559060566555523 mov $2,$0 mul $2,2 sub $2,1 mov $1,3 pow $1,$2
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_21829_117.asm
ljhsiun2/medusa
9
245820
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %r8 push %rbp push %rbx lea addresses_normal_ht+0x2fa2, %r8 nop nop and %r14, %r14 movb $0x61, (%r8) nop sub $41745, %r13 lea addresses_D_ht+0x1ada2, %rbx nop nop and $29674, %r8 movups (%rbx), %xmm2 vpextrq $0, %xmm2, %r10 nop and $41684, %rbp lea addresses_D_ht+0xa4a2, %r8 nop nop nop xor %r15, %r15 movups (%r8), %xmm0 vpextrq $0, %xmm0, %r10 nop nop nop nop and $55446, %rbp pop %rbx pop %rbp pop %r8 pop %r15 pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rax push %rbp push %rcx push %rdi // Load lea addresses_RW+0x12ea2, %rdi nop nop nop nop xor $35727, %rcx movups (%rdi), %xmm5 vpextrq $0, %xmm5, %rbp nop nop sub $23259, %r10 // Faulty Load lea addresses_RW+0x12ea2, %r13 nop and $22648, %r11 movb (%r13), %r10b lea oracles, %r11 and $0xff, %r10 shlq $12, %r10 mov (%r11,%r10,1), %r10 pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
programs/oeis/164/A164096.asm
neoneye/loda
22
144
<filename>programs/oeis/164/A164096.asm ; A164096: Partial sums of A164095. ; 5,11,21,33,53,77,117,165,245,341,501,693,1013,1397,2037,2805,4085,5621,8181,11253,16373,22517,32757,45045,65525,90101,131061,180213,262133,360437,524277,720885,1048565,1441781,2097141,2883573,4194293,5767157,8388597,11534325,16777205,23068661,33554421,46137333,67108853,92274677,134217717,184549365,268435445,369098741,536870901,738197493,1073741813,1476394997,2147483637,2952790005,4294967285,5905580021,8589934581,11811160053,17179869173,23622320117,34359738357,47244640245,68719476725,94489280501,137438953461,188978561013,274877906933,377957122037,549755813877,755914244085,1099511627765,1511828488181,2199023255541,3023656976373,4398046511093,6047313952757,8796093022197,12094627905525,17592186044405,24189255811061,35184372088821,48378511622133,70368744177653,96757023244277,140737488355317,193514046488565,281474976710645,387028092977141,562949953421301,774056185954293,1125899906842613,1548112371908597,2251799813685237,3096224743817205,4503599627370485,6192449487634421,9007199254740981,12384898975268853 lpb $0 mov $2,$0 sub $0,1 add $1,2 gcd $2,2 mul $1,$2 add $1,1 lpe mul $1,2 add $1,5 mov $0,$1
04_encoder/decoder.nasm
undefinstr/SLAE64
0
89347
BITS 64 global _start section .text _start: jmp real_start encoded_shellcode: db 0x8e,0x5d,0x05,0x1b,0xab,0x0c,0x96,0x38,0x1c,0x23,0x1c,0x93,0x72,0x45,0x3e,0x06,0xc4,0x0c,0x2e,0x6f,0x51,0x45,0x66,0x2b,0x40,0x90,0x91,0x3f,0x59,0x33,0x0e,0x89,0x77,0x35,0x62,0x55,0x1e,0x58,0x07,0x11,0x7d,0x32,0x3a,0x7d,0x03,0x73,0x08,0x15,0x04,0xa4,0x24,0x93,0x39,0x3d,0x09,0x10,0x8b,0x2c,0x11,0x6b,0x0c,0x33,0x62,0x62,0x0a,0xe6,0x92,0x68,0x1d,0x2b,0x32,0x5b,0x19,0x1c,0xbc,0x1d,0x6e,0x91,0x44,0xbb,0x7a,0x85,0x2f,0x19,0x1f,0x12,0x4d,0x7c,0x55,0x2b,0x3e,0x83,0x05,0x1b,0xac,0x4a,0x0f,0x07,0x13,0x35,0x6c,0x93,0xaa,0x1c,0x97,0x4b,0x8c,0x6d,0x28,0xc3,0x04,0xc6 real_start: xor rax, rax xor rbx, rbx mov rcx, 56 ; TODO shellcode original lenth lea r10, [rel encoded_shellcode] ; points to plain shellcode lea r11, [rel encoded_shellcode] ; points to encoded shellcode (byte 1) mov r12, r11 ; byte 2 inc r12 decode: mov byte al, [r11] mov byte bl, [r12] add al, bl mov byte [r10], al inc r10 ; plain shellcode add r11, 2 mov r12, r11 inc r12 loop decode jmp encoded_shellcode
programs/oeis/323/A323162.asm
karttu/loda
0
5417
; A323162: a(n) = 1 if both n and n-1 are composite, 0 otherwise. ; 0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1 lpb $0,1 div $0,2 add $1,1 cal $0,90368 ; a(1) = 1; for n>1, smallest divisor > 1 of 2n-1. lpe
commands/apps/safari/safari-create-reading-list-item.applescript
daviddzhou/script-commands
3,305
4736
<reponame>daviddzhou/script-commands<filename>commands/apps/safari/safari-create-reading-list-item.applescript #!/usr/bin/osascript # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Add Item to Reading List # @raycast.mode fullOutput # Optional parameters: # @raycast.packageName Safari # @raycast.icon images/safari.png # @raycast.argument1 { "type": "text", "placeholder": "Link" } # @raycast.argument2 { "type": "text", "placeholder": "Title", "optional": true } # @Documentation: # @raycast.author <NAME> # @raycast.authorURL https://github.com/thomaspaulmann # @raycast.description Add a new Reading List item with the given URL. Allows a custom title to be specified. on run argv try set linkArgument to item 1 of argv as text set titleArgument to item 2 of argv as text if titleArgument is equal to "" then tell application "Safari" to add reading list item linkArgument else tell application "Safari" to add reading list item linkArgument with title titleArgument end if log "Added item to reading list" on error errorMessage number errorNumber log errorMessage log "Failed to add item to reading list" return errorNumber end try end run
src/arch/x86_64/long_mode_init.asm
tushargosavi/osdev
0
174281
<gh_stars>0 global long_mode_start section .text bits 64 long_mode_start: ; load 0 into all data segment registers mov ax, 0 mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax extern rust_main call rust_main .os_returned: ; rust main returned, print `OS returned!` mov rax, 0x4f724f204f534f4f mov [0xb8000], rax mov rax, 0x4f724f754f744f65 mov [0xb8008], rax mov rax, 0x4f214f644f654f6e mov [0xb8010], rax hlt
test/interaction/Issue1447.agda
cruhland/agda
1,989
7887
-- Andreas, 2015-02-26 -- {-# OPTIONS -v interaction:100 #-} data D : Set where c : D goal : D goal = {! !} -- C-c C-r gave a parse error here, as there was a (single) space. g1 : D g1 = {! !} g2 : D g2 = {! !} -- works now
test/Succeed/Issue4203.agda
cruhland/agda
1,989
2891
{-# OPTIONS --cumulativity #-} open import Agda.Primitive module _ (a ℓ : Level) where mutual X : Level X = _ X<=a : Set X → Set a X<=a A = A test : Set₁ test with (lsuc ℓ) ... | _ = Set where a<=X : Set a → Set X a<=X A = A
src/vulkan-math/vulkan-math-integers.ads
zrmyers/VulkanAda
1
23004
<filename>src/vulkan-math/vulkan-math-integers.ads -------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the Software is -- furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included in all -- copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -- SOFTWARE. -------------------------------------------------------------------------------- with Vulkan.Math.GenIType; with Vulkan.Math.GenUType; -- Uses use Vulkan.Math.GenUType; use Vulkan.Math.GenIType; -------------------------------------------------------------------------------- --< @group Vulkan Math Functions -------------------------------------------------------------------------------- --< @summary --< This package provides GLSL Integer Built-in functions. --< --< @description --< All common functions operate component-wise. -------------------------------------------------------------------------------- package Vulkan.Math.Integers is pragma Preelaborate; pragma Pure; ---------------------------------------------------------------------------- --< @summary --< Adds two unsigned integers modulo 32, returning the result and a carry. --< --< @description --< Adds two unsigned integers modulo 32. If the result is greater than or --< equal 2^32 the carry is 1. Otherwise the carry is 0. --< --< @param x --< One of the addition operands. --< --< @param y --< One of the addition operands. --< --< @param carry --< The carry value from the addition operation. --< --< @return --< The result of x + y modulo 32. ---------------------------------------------------------------------------- function Unsigned_Add_Carry(x, y : in Vkm_Uint; carry : out Vkm_Uint) return Vkm_Uint; ---------------------------------------------------------------------------- --< @summary --< Adds two unsigned integers modulo 32, returning the result and a carry. --< --< @description --< Applies Unsigned_Add_Carry() component-wise on three Vkm_GenUType vectors, --< returning the result of addition as a Vkm_GenUType vector. ---------------------------------------------------------------------------- function Unsigned_Add_Carry is new GUT.Apply_Func_IV_IV_OV_RV(Unsigned_Add_Carry); ---------------------------------------------------------------------------- --< @summary --< Subtracts two unsigned integers modulo 32, returning the result and a borrow. --< --< @description --< Subtracts two unsigned integers modulo 32. If x is less than y, the result --< is 2^32 plus the difference and a borrow of 1; Otherwise, the result is --< the difference and a borrow of 0. --< --< @param x --< The left subtraction operand. --< --< @param y --< The right subtraction operand. --< --< @param borrow --< The borrow value from the subtraction operation. --< --< @return --< The result of x - y modulo 32. ---------------------------------------------------------------------------- function Unsigned_Sub_Borrow(x, y : in Vkm_Uint; borrow : out Vkm_Uint) return Vkm_Uint; ---------------------------------------------------------------------------- --< @summary --< Subtracts two unsigned integers modulo 32, returning the result and a borrow. --< --< @description --< Applies Unsigned_Sub_Borrow() component-wise on three Vkm_GenUType vectors, --< returning the result of addition as a Vkm_GenUType vector. ---------------------------------------------------------------------------- function Unsigned_Sub_Borrow is new GUT.Apply_Func_IV_IV_OV_RV(Unsigned_Sub_Borrow); ---------------------------------------------------------------------------- --< @summary --< This operation performs extended multiplication of two 32-bit unsigned --< integers. --< --< @description --< Multiplies two 32-bit unsigned integers returning two 32-bit unsigned --< integers representing the most significant and least significant 32 bits --< of the result of multiplication. --< --< @param x --< The left subtraction operand. --< --< @param y --< The right subtraction operand. --< --< @param msb --< The 32 most significant bits of the resulting 64-bit unsigned integer. --< --< @param lsb --< The 32 least significant bits of the resulting 64-bit unsigned integer. ---------------------------------------------------------------------------- procedure Unsigned_Mul_Extended(x, y : in Vkm_Uint; msb, lsb : out Vkm_Uint); ---------------------------------------------------------------------------- --< @summary --< This operation performs extended multiplication of two Vkm_GenUType vectors. --< --< @description --< Applies Unsigned_Mul_Extended() component-wise on two input Vkm_GenUType --< vectors and two output Vkm_GenUType vectors. ---------------------------------------------------------------------------- procedure Unsigned_Mul_Extended is new GUT.Apply_Func_IV_IV_OV_OV(Unsigned_Mul_Extended); ---------------------------------------------------------------------------- --< @summary --< This operation performs extended multiplication of two 32-bit signed --< integers. --< --< @description --< Multiplies two 32-bit signed integers returning two 32-bit signed --< integers representing the most significant and least significant 32 bits --< of the result of multiplication. --< --< @param x --< The left subtraction operand. --< --< @param y --< The right subtraction operand. --< --< @param msb --< The 32 most significant bits of the resulting 64-bit signed integer. --< --< @param lsb --< The 32 least significant bits of the resulting 64-bit signed integer. ---------------------------------------------------------------------------- procedure Signed_Mul_Extended(x, y : in Vkm_Int; msb, lsb : out Vkm_Int); ---------------------------------------------------------------------------- --< @summary --< This operation performs extended multiplication of two 32-bit signed --< integers. --< --< @description --< Applies Unsigned_Mul_Extended() component-wise on two input Vkm_GenIType --< vectors and two output Vkm_GenIType vectors. ---------------------------------------------------------------------------- procedure Signed_Mul_Extended is new GIT.Apply_Func_IV_IV_OV_OV(Signed_Mul_Extended); ---------------------------------------------------------------------------- --< @summary --< This operation extracts a bitfield from a 32-bit signed integer. --< --< @description --< Extract bits starting from offset to the number of bits in the bitfield. --< --< Let bN = bits + offset -1. --< Let b0 = offset. --< --< In general, the bitfield is extracted from the value the value as follows: --< --< \ | MSB | Bitfield | LSB | --< bits | 31 ... bN+1 | bN bN-1 ... b1 b0 | b0-1 ... 0 | --< --< The result is formatted as follows, where N = bits -1: --< --< \ | MSB | Bitfield | --< bit | 31 ... N+1 | N N-1 ... 1 0 | --< value | bN'Val ... bN'Val | bN'Val (bN-1)'Val ... b1'Val b0'Val | --< --< @param value --< The value from which the bitfield is extracted. --< --< @param offset --< The offset into the value from which the bitfield is extracted. --< --< @param bits --< The number of bits in the bitfield. --< --< @return --< The extracted value from the bitfield. The most significant bits are set --< to the signed bit of the bitfield. ---------------------------------------------------------------------------- function Bitfield_Extract(value, offset, bits : in Vkm_Int) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation extracts a bitfield vector from a Vkm_GenIType vector. --< --< @description --< Applies Bitfield_Extract() component-wise on an input Vkm_GenIType --< vector and two Vkm_Int scalars, returning a Vkm_GenIType vector of the --< extracted bitfields. ---------------------------------------------------------------------------- function Bitfield_Extract is new GIT.Apply_Func_IV_IS_IS_RV(Bitfield_Extract); ---------------------------------------------------------------------------- --< @summary --< This operation extracts a bitfield from a 32-bit unsigned integer. --< --< @description --< Extract bits starting from offset to the number of bits in the bitfield. --< --< Let bN = bits + offset -1. --< Let b0 = offset. --< --< In general, the bitfield is extracted from the value the value as follows: --< --< \ | MSB | Bitfield | LSB | --< bits | 31 ... bN+1 | bN bN-1 ... b1 b0 | b0-1 ... 0 | --< --< The result is formatted as follows, where N = bits -1: --< --< \ | MSB | Bitfield | --< bit | 31 ... N+1 | N N-1 ... 1 0 | --< value | 0 ... 0 | bN'Val (bN-1)'Val ... b1'Val b0'Val | --< --< @param value --< The value from which the bitfield is extracted. --< --< @param offset --< The offset into the value from which the bitfield is extracted. --< --< @param bits --< The number of bits in the bitfield. --< --< @return --< The extracted value from the bitfield. The most significant bits are set --< to 0. ---------------------------------------------------------------------------- function Bitfield_Extract(value : in Vkm_Uint; offset, bits : in Vkm_Int) return Vkm_Uint; ---------------------------------------------------------------------------- --< @summary --< This operation extracts a bitfield vector from a Vkm_GenUType vector. --< --< @description --< Applies Bitfield_Extract() component-wise on an input Vkm_GenUType --< vector and two Vkm_Int scalars, returning a Vkm_GenUType vector of the --< extracted bitfields. ---------------------------------------------------------------------------- function Bitfield_Extract is new Apply_Func_IVU_ISI_ISI_RVU(Bitfield_Extract); ---------------------------------------------------------------------------- --< @summary --< This operation inserts a bitfield into a 32-bit signed integer. --< --< @description --< Insert bits starting from offset to the number of bits in the bitfield. --< --< Let bN = bits + offset -1. --< Let b0 = offset. --< --< In general, the 'bits' least significant bits of 'insert' are copied into --< base as follows: --< --< \ | MSB | Bitfield | LSB | --< bits | 31 ... bN+1 | bN bN-1 ... b1 b0 | b0-1 ... 0 | --< value | base | insert | base | --< --< @param base --< The value into which the bitfield is inserted. --< --< @param insert --< The value that is inserted into base. --< --< @param offset --< The offset into the base at which the bitfield is inserted. --< --< @param bits --< The number of bits in the bitfield. --< --< @return --< The value of base with the bitfield inserted. ---------------------------------------------------------------------------- function Bitfield_Insert(base, insert, offset, bits : in Vkm_Int) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation inserts a bitfield vector into a Vkm_GenIType vector. --< --< @description --< Applies Bitfield_Insert() component-wise on two input Vkm_GenIType --< vectors and two Vkm_Int scalars, returning a Vkm_GenIType vector of the --< base vector with inserted bitfields. ---------------------------------------------------------------------------- function Bitfield_Insert is new GIT.Apply_Func_IV_IV_IS_IS_RV(Bitfield_Insert); ---------------------------------------------------------------------------- --< @summary --< This operation inserts a bitfield into a 32-bit unsigned integer. --< --< @description --< Insert bits starting from offset to the number of bits in the bitfield. --< --< Let bN = bits + offset -1. --< Let b0 = offset. --< --< In general, the 'bits' least significant bits of 'insert' are copied into --< base as follows: --< --< \ | MSB | Bitfield | LSB | --< bits | 31 ... bN+1 | bN bN-1 ... b1 b0 | b0-1 ... 0 | --< value | base | insert | base | --< --< @param base --< The value into which the bitfield is inserted. --< --< @param insert --< The value that is inserted into base. --< --< @param offset --< The offset into the base at which the bitfield is inserted. --< --< @param bits --< The number of bits in the bitfield. --< --< @return --< The value of base with the bitfield inserted. ---------------------------------------------------------------------------- function Bitfield_Insert(base, insert : in Vkm_Uint; offset, bits : in Vkm_Int) return Vkm_Uint; ---------------------------------------------------------------------------- --< @summary --< This operation inserts a bitfield vector into a Vkm_GenUType vector. --< --< @description --< Applies Bitfield_Insert() component-wise on two input Vkm_GenUType --< vectors and two Vkm_Int scalars, returning a Vkm_GenUType vector of the --< base vector with inserted bitfields. ---------------------------------------------------------------------------- function Bitfield_Insert is new Apply_Func_IVU_IVU_ISI_ISI_RVU(Bitfield_Insert); ---------------------------------------------------------------------------- --< @summary --< This operation reverses the bits of a 32-bit signed integer. --< --< @description --< Reverse the bits of a 32-bit signed integer. --< --< Let vI be the value of bit at bit position I in the input value. --< --< bit | 31 30 ... 1 0 | --< input | v31 v30 ... v1 v0 | --< output | v0 v1 ... v30 v31 | --< --< @param value --< The value which is to be reversed. --< --< @return --< The reversed value. ---------------------------------------------------------------------------- function Bitfield_Reverse(value : in Vkm_Int) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation reverses the binary representation of the components of a --< Vkm_GenIType vector. --< --< @description --< Applies Bitfield_Reverse() component-wise on input Vkm_GenIType, --< returning a Vkm_GenIType vector of the reversed components. ---------------------------------------------------------------------------- function Bitfield_Reverse is new GIT.Apply_Func_IV_RV(Bitfield_Reverse); ---------------------------------------------------------------------------- --< @summary --< This operation reverses the bits of a 32-bit unsigned integer. --< --< @description --< Reverse the bits of a 32-bit unsigned integer. --< --< Let vI be the value of bit at bit position I in the input value. --< --< bit | 31 30 ... 1 0 | --< input | v31 v30 ... v1 v0 | --< output | v0 v1 ... v30 v31 | --< --< @param value --< The value which is to be reversed. --< --< @return --< The reversed value. ---------------------------------------------------------------------------- function Bitfield_Reverse(value : in Vkm_Uint) return Vkm_Uint; ---------------------------------------------------------------------------- --< @summary --< This operation reverses the binary representation of the components of a --< Vkm_GenUType vector. --< --< @description --< Applies Bitfield_Reverse() component-wise on input Vkm_GenUType, --< returning a Vkm_GenUType vector of the reversed components. ---------------------------------------------------------------------------- function Bitfield_Reverse is new GUT.Apply_Func_IV_RV(Bitfield_Reverse); ---------------------------------------------------------------------------- --< @summary --< This operation counts the number of 1-bits in a 32-bit signed value. --< --< @description --< Count the 1's bits of a 32-bit signed integer. --< --< @param value --< The value for which 1's bits are counted. --< --< @return --< The number of 1's in value. ---------------------------------------------------------------------------- function Bit_Count(value : in Vkm_Int) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation counts the number of 1-bits for each component of a --< Vkm_GenIType vector. --< --< @description --< Applies Bit_Count() component-wise on input Vkm_GenIType, --< returning a Vkm_GenIType vector of counts for each component. ---------------------------------------------------------------------------- function Bit_Count is new GIT.Apply_Func_IV_RV(Bit_Count); ---------------------------------------------------------------------------- --< @summary --< This operation counts the number of 1-bits in a 32-bit unsigned value. --< --< @description --< Count the 1's bits of a 32-bit unsigned integer. --< --< @param value --< The value for which 1's bits are counted. --< --< @return --< The number of 1's in value. ---------------------------------------------------------------------------- function Bit_Count(value : in Vkm_Uint) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation counts the number of 1-bits for each component of a --< Vkm_GenUType vector. --< --< @description --< Applies Bit_Count() component-wise on input Vkm_GenUType, --< returning a Vkm_GenIType vector of counts for each component. ---------------------------------------------------------------------------- function Bit_Count is new Apply_Func_IVU_RVI(Bit_Count); ---------------------------------------------------------------------------- --< @summary --< This operation finds the least significant 1-bit in the 32-bit signed --< integer. --< --< @description --< Find the least significant bit in a 32-bit signed integer with a value of 1. --< --< @param value --< The value to find the least significant 1-bit for. --< --< @return --< The bit position of the least significant 1-bit. -1 is returned if there --< are no 1-bits. ---------------------------------------------------------------------------- function Find_Lsb(value : in Vkm_Int) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation finds the least significant 1-bit for each component of a --< Vkm_GenIType vector. --< --< @description --< Applies Find_Lsb() component-wise on input Vkm_GenIType, returning a --< Vkm_GenIType vector of the bit positions for the least significant 1-bit --< in each component. ---------------------------------------------------------------------------- function Find_Lsb is new GIT.Apply_Func_IV_RV(Find_Lsb); ---------------------------------------------------------------------------- --< @summary --< This operation finds the least significant 1-bit in the 32-bit unsigned --< integer. --< --< @description --< Find the least significant bit in a 32-bit unsigned integer with a value of 1. --< --< @param value --< The value to find the least significant 1-bit for. --< --< @return --< The bit position of the least significant 1-bit. -1 is returned if there --< are no 1-bits. ---------------------------------------------------------------------------- function Find_Lsb(value : in Vkm_Uint) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation finds the least significant 1-bit for each component of a --< Vkm_GenUType vector. --< --< @description --< Applies Find_Lsb() component-wise on input Vkm_GenUType, returning a --< Vkm_GenIType vector of the bit positions for the least significant 1-bit --< in each component. ---------------------------------------------------------------------------- function Find_Lsb is new Apply_Func_IVU_RVI(Find_Lsb); ---------------------------------------------------------------------------- --< @summary --< This operation finds the most significant 0-bit in the 32-bit signed --< integer. --< --< @description --< Find the most significant bit in a 32-bit signed integer with a value of 0. --< --< @param value --< The value to find the most significant 0-bit for. --< --< @return --< The bit position of the most significant 0-bit. -1 is returned if there --< are no 0-bits. ---------------------------------------------------------------------------- function Find_Msb(value : in Vkm_Int) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation finds the most significant 0-bit for each component of a --< Vkm_GenIType vector. --< --< @description --< Applies Find_Msb() component-wise on input Vkm_GenIType, returning a --< Vkm_GenIType vector of the bit positions for the most significant 0-bit --< in each component. ---------------------------------------------------------------------------- function Find_Msb is new GIT.Apply_Func_IV_RV(Find_Msb); ---------------------------------------------------------------------------- --< @summary --< This operation finds the most significant 1-bit in the 32-bit unsigned --< integer. --< --< @description --< Find the most significant bit in a 32-bit unsigned integer with a value of 1. --< --< @param value --< The value to find the most significant 1-bit for. --< --< @return --< The bit position of the most significant 1-bit. -1 is returned if there --< are no 1-bits. ---------------------------------------------------------------------------- function Find_Msb(value : in Vkm_Uint) return Vkm_Int; ---------------------------------------------------------------------------- --< @summary --< This operation finds the most significant 1-bit for each component of a --< Vkm_GenUType vector. --< --< @description --< Applies Find_Msb() component-wise on input Vkm_GenUType, returning a --< Vkm_GenIType vector of the bit positions for the most significant 0-bit --< in each component. ---------------------------------------------------------------------------- function Find_Msb is new Apply_Func_IVU_RVI(Find_Msb); end Vulkan.Math.Integers;
key-print-int9/src/main.asm
w1jtoo/dos-tasks
0
178228
<reponame>w1jtoo/dos-tasks<filename>key-print-int9/src/main.asm bits 16 org 0x100 _start: jmp start %include "src/utils/std.asm" %include "src/utils/str.asm" %include "src/keyboard_handler.asm" %define NEW_LINE 0xa, 0xd promt: db " This program shows state of keyboard", NEW_LINE db " buffer. This buffer uses self written 9th", NEW_LINE db " interruption emulation.", NEW_LINE, NEW_LINE db " enter - push the print of buffer state", NEW_LINE db " escape - exit the program", NEW_LINE, '$' start: call init_int9 call print_line PRINT_PTR promt call print_line .loop: hlt mov bx, [ibuff.tail] cmp bx, [ibuff.head] jz .loop mov bl, byte [ibuff.flags] cmp bl, OVERFLOW_FLAG ;; todo fix flag size byte -> bit jz .overflow push bx push ax mov bx, word [ibuff.head] .contains_loop: xor ax, ax mov ah, byte [bx] cmp ah, 0x1 je .exit cmp ah, 0x1c je .print_buffer cmp bx, [ibuff.tail] je .ret inc bx cmp bx, ibuff.end jnz .to_end mov bx, ibuff.buffer .to_end: jmp .contains_loop .ret: pop ax pop bx jmp .loop .overflow: call print_line PRINT_PTR overflow call print_kb_struct call pop_all_buffer call print_line jmp .loop .print_buffer: call print_line call print_kb_struct call pop_all_buffer call print_line jmp .loop .exit: call restore_int9 EXIT print_line: PRINTLN_STR "============================================" ret description: db NEW_LINE .l1: db "Head index: 0x" .head: dw 0x0 db NEW_LINE .l2: db "Tail index: 0x" .tail: dw 0x0 db NEW_LINE .l3: db "Overflow flag:" .overflow: dw 0x0 db NEW_LINE, '$' overflow: db "Buffer overflow. Print buffer state and", NEW_LINE db "clean the buffer.", NEW_LINE, NEW_LINE, '$' print_kb_struct: push ax PRINT_STR "Buffer state: " call print_buffer mov ax, word [ibuff.head] sub ax, ibuff.buffer TO_HEX al mov [description.head], ax mov ax, word [ibuff.tail] sub ax, ibuff.buffer TO_HEX al mov [description.tail], ax xor bx, bx mov al, byte [ibuff.flags] cmp al, OVERFLOW_FLAG jne .ret inc bx .ret: add bx, '0' mov [description.overflow], bx PRINT_PTR description pop ax ret tmp: dw 0x0, '$' print_buffer: push bx push ax mov bx, word [ibuff.head] .loop: xor ax, ax mov ah, byte [bx] call to_scan_code mov [tmp], ax PRINT_PTR tmp mov al, ' ' call print_al cmp bx, [ibuff.tail] je .ret inc bx cmp bx, ibuff.end jnz .to_end mov bx, ibuff.buffer .to_end: jmp .loop .ret: pop ax pop bx ret print_al: PRINT_CHAR al ret to_scan_code: push bx mov bx, ax and ax, 0xf000 shr ax, 0xc TO_HEX al and bx, 0xf00 shr bx, 0x8 TO_HEX bl shl bx, 0x8 add ax, bx pop bx ret pop_all_buffer: push ax push dx .loop: mov bx, [ibuff.head] cmp bx, [ibuff.tail] je .ret call pop_and_clean_buffer jmp .loop .ret: pop dx pop ax ret
source/handler/nmi.asm
mega65dev/rom-assembler
0
7835
<reponame>mega65dev/rom-assembler<filename>source/handler/nmi.asm ; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : nmi.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : <NAME> ; ; ******************************************************************************************** ; ******************************************************************************************** basic_nmi ; removed [910826] ; lda nmi_wrap_flag ;filter out wrapped NMI calls [910523] audio ; beq 1$ ; it's ok ; rts ; exit- we're already handling one interrupt ; ;1$ inc nmi_wrap_flag ;shut the door to NMI ; ;basic_nmi_end ; dec nmi_wrap_flag ;open the door to NMI rts ;.end ; ******************************************************************************************** ; ; Date Changes ; ==== ======= ; ; ********************************************************************************************
programs/oeis/061/A061502.asm
karttu/loda
0
170383
; A061502: a(n) = Sum_{k<=n} tau(k)^2, where tau = number of divisors function A000005. ; 1,5,9,18,22,38,42,58,67,83,87,123,127,143,159,184,188,224,228,264,280,296,300,364,373,389,405,441,445,509,513,549,565,581,597,678,682,698,714,778,782,846,850,886,922,938,942,1042,1051,1087,1103,1139,1143,1207,1223,1287,1303,1319,1323,1467,1471,1487,1523,1572,1588,1652,1656,1692,1708,1772,1776,1920,1924,1940,1976,2012,2028,2092,2096,2196,2221,2237,2241,2385,2401,2417,2433,2497,2501,2645,2661,2697,2713,2729,2745,2889,2893,2929,2965,3046,3050,3114,3118,3182,3246,3262,3266,3410,3414,3478,3494,3594,3598,3662,3678,3714,3750,3766,3782,4038,4047,4063,4079,4115,4131,4275,4279,4343,4359,4423,4427,4571,4587,4603,4667,4731,4735,4799,4803,4947,4963,4979,4995,5220,5236,5252,5288,5324,5328,5472,5476,5540,5576,5640,5656,5800,5804,5820,5836,5980,5996,6096,6100,6136,6200,6216,6220,6476,6485,6549,6585,6621,6625,6689,6725,6825,6841,6857,6861,7185,7189,7253,7269,7333,7349,7413,7429,7465,7529,7593,7597,7793,7797,7813,7877,7958,7962,8106,8110,8254,8270,8286,8302,8446,8462,8478,8514,8614,8630,8886,8890,8926,8942,8958,8974,9230,9246,9262,9278,9422,9438,9502,9506,9650,9731,9747,9751,9895,9899,9963,10027,10091,10095,10239,10255,10291,10307,10371,10375,10775,10779,10815,10851,10887,10923,10987,11003,11067,11083,11147 mov $2,$0 add $2,1 mov $4,$0 lpb $2,1 mov $0,$4 sub $2,1 sub $0,$2 cal $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. pow $0,2 mul $0,2 mov $3,$0 sub $3,2 div $3,2 add $3,1 add $1,$3 lpe
src/shared/generic/lsc-aes_generic.ads
Componolit/libsparkcrypto
30
11397
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- @author <NAME> -- @date 2019-02-21 -- -- Copyright (C) 2018 Componolit GmbH -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- -- * Neither the name of the 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. ------------------------------------------------------------------------------- private with LSC.Internal.AES; package LSC.AES_Generic is pragma Pure; type Keylen_Type is (L128, L192, L256); -- Available AES modes function Key_Bytes (Keylen : Keylen_Type) return Natural; -- AES key lengths for @Keylen in bytes -- FIXME: This crashes GCC 6.3. Re-add as soon as it's not used anymore. -- with Ghost; type Dec_Key_Type is private; type Enc_Key_Type is private; generic type Index_Type is (<>); type Elem_Type is (<>); type Key_Type is array (Index_Type range <>) of Elem_Type; function Dec_Key (K : Key_Type; Keylen : Keylen_Type) return Dec_Key_Type with Pre => K'Length = Key_Bytes (Keylen); -- Return decryption key of length @Keylen from byte array generic type Index_Type is (<>); type Elem_Type is (<>); type Key_Type is array (Index_Type range <>) of Elem_Type; function Enc_Key (K : Key_Type; Keylen : Keylen_Type) return Enc_Key_Type with Pre => K'Length = Key_Bytes (Keylen); -- Return encryption key of length @Keylen from byte array generic type Plaintext_Index_Type is (<>); type Plaintext_Elem_Type is (<>); type Plaintext_Type is array (Plaintext_Index_Type range <>) of Plaintext_Elem_Type; type Ciphertext_Index_Type is (<>); type Ciphertext_Elem_Type is (<>); type Ciphertext_Type is array (Ciphertext_Index_Type range <>) of Ciphertext_Elem_Type; function Decrypt (Ciphertext : Ciphertext_Type; Key : Dec_Key_Type) return Plaintext_Type with Pre => Ciphertext'Length = 16, Post => Decrypt'Result'Length = 16; -- Decrypt @Ciphertext using @Key, @Keylen determines the AES key -- length (AES-128, AES-192, AES-256) generic type Plaintext_Index_Type is (<>); type Plaintext_Elem_Type is (<>); type Plaintext_Type is array (Plaintext_Index_Type range <>) of Plaintext_Elem_Type; type Ciphertext_Index_Type is (<>); type Ciphertext_Elem_Type is (<>); type Ciphertext_Type is array (Ciphertext_Index_Type range <>) of Ciphertext_Elem_Type; function Encrypt (Plaintext : Plaintext_Type; Key : Enc_Key_Type) return Ciphertext_Type with Pre => Plaintext'Length = 16, Post => Encrypt'Result'Length = 16; -- Decrypt @Plaintext using @Key, @Keylen determines the AES key -- length (AES-128, AES-192, AES-256) private function Key_Bytes (Keylen : Keylen_Type) return Natural is (case Keylen is when L128 => 16, when L192 => 24, when L256 => 32); type Dec_Key_Type is record Context : Internal.AES.AES_Dec_Context; end record; type Enc_Key_Type is record Context : Internal.AES.AES_Enc_Context; end record; end LSC.AES_Generic;
kernel/amd64/src/atomic.asm
betopp/pathetix
0
15700
;atomic.asm ;Atomic counters for amd64 ;<NAME> <<EMAIL>> 2021 section .text bits 64 global hal_atomic_inc ;uint64_t hal_atomic_inc(hal_atomic_t *atom); hal_atomic_inc: mov EAX, [RDI] ;Get old value mov ECX, EAX inc ECX ;Make incremented value aside from old value lock cmpxchg [RDI], ECX ;Compares value in memory with EAX (old value), if eq, replaces with ECX (incremented) jnz hal_atomic_inc ;Try again if somebody else got there first mov EAX, ECX ;Return the value written ret global hal_atomic_dec ;uint64_t hal_atomic_dec(hal_atomic_t *atom); hal_atomic_dec: mov EAX, [RDI] mov ECX, EAX dec ECX ;Only difference from hal_atomic_inc lock cmpxchg [RDI], ECX jnz hal_atomic_dec mov EAX, ECX ret
source/exceptions.ads
jquorning/CELLE
0
24938
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.Exceptions; package Exceptions is procedure Put_Message (Occurrence : in Ada.Exceptions.Exception_Occurrence); end Exceptions;
Driver/Printer/DotMatrix/Epshi24/epshi24lq850Info.asm
steakknife/pcgeos
504
90372
<filename>Driver/Printer/DotMatrix/Epshi24/epshi24lq850Info.asm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Epson late model 24-pin driver FILE: epshi24lq850Info.asm AUTHOR: <NAME>, 27 Mar 1990 REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 3/27/90 Initial revision DESCRIPTION: This file contains the device information for the Epson lq850 printer Other Printers Supported by this resource: $Id: epshi24lq850Info.asm,v 1.1 97/04/18 11:54:13 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;---------------------------------------------------------------------------- ; Epson lq850 ;---------------------------------------------------------------------------- lq850Info segment resource ; info blocks PrinterInfo < ; ---- PrinterType ------------- < PT_RASTER, BMF_MONO >, ; ---- PrinterConnections ------ < IC_NO_IEEE488, CC_NO_CUSTOM, SC_NO_SCSI, RC_RS232C, CC_CENTRONICS, FC_FILE, AC_NO_APPLETALK >, ; ---- PrinterSmarts ----------- PS_DUMB_RASTER, ;-------Custom Entry Routine------- NULL, ;-------Custom Exit Routine------- NULL, ; ---- Mode Info Offsets ------- offset lq850lowRes, offset lq850medRes, offset lq850hiRes, offset printerFontInfo:lq850draft, offset printerFontInfo:lq850nlq, ; ---- Font Information -------- offset lq850fontGeometries, ; ---- Symbol Set list ----------- NULL, ; ---- PaperMargins ------------ < PR_MARGIN_LEFT, ; Tractor Margins PR_MARGIN_TRACTOR, PR_MARGIN_RIGHT, PR_MARGIN_TRACTOR >, < PR_MARGIN_LEFT, ; ASF Margins PR_MARGIN_TOP, PR_MARGIN_RIGHT, PR_MARGIN_BOTTOM >, ; ---- PaperInputOptions ------- < MF_MANUAL1, TF_TRACTOR1, ASF_TRAY2 >, ; ---- PaperOutputOptions ------ < OC_NO_COPIES, PS_REVERSE, OD_SIMPLEX, SO_NO_STAPLER, OS_NO_SORTER, OB_NO_OUTPUTBIN >, ; 612, ; paper width (points). NULL, ; Main UI ASF2BinOptionsDialogBox, ; Options UI PrintEvalASF2Bin ; eval routine address > ;---------------------------------------------------------------------------- ; Graphics modes info ;---------------------------------------------------------------------------- lq850lowRes GraphicsProperties < LO_RES_X_RES, ; xres LO_RES_Y_RES, ; yres LO_RES_BAND_HEIGHT, ; band height LO_RES_BUFF_HEIGHT, ; buffer height LO_RES_INTERLEAVE_FACTOR, ;#interleaves BMF_MONO, ;color format NULL > ; color format lq850medRes GraphicsProperties < MED_RES_X_RES, ; xres MED_RES_Y_RES, ; yres MED_RES_BAND_HEIGHT, ; band height MED_RES_BUFF_HEIGHT, ; buffer height MED_RES_INTERLEAVE_FACTOR, ;#interleaves BMF_MONO, ;color format NULL > ; color format lq850hiRes GraphicsProperties < HI_RES_X_RES, ; xres HI_RES_Y_RES, ; yres HI_RES_BAND_HEIGHT, ; band height HI_RES_BUFF_HEIGHT, ; buffer height HI_RES_INTERLEAVE_FACTOR, ;#interleaves BMF_MONO, ;color format handle gamma30 > ; color format ;---------------------------------------------------------------------------- ; Text modes info ;---------------------------------------------------------------------------- ;need to add geometries in ascending pointsize, grouped by font lq850fontGeometries FontGeometry \ < FID_DTC_URW_ROMAN, 8, offset lq850_8ptpitchTab >, < FID_DTC_URW_ROMAN, 12, offset lq850_12ptpitchTab >, < FID_DTC_URW_ROMAN, 24, offset lq850_24ptpitchTab >, < FID_DTC_URW_SANS, 8, offset lq850_8ptpitchTab >, < FID_DTC_URW_SANS, 12, offset lq850_12ptpitchTab >, < FID_DTC_URW_SANS, 24, offset lq850_24ptpitchTab > word FID_INVALID ;table terminator lq850_8ptpitchTab label byte byte TP_15_PITCH byte TP_PROPORTIONAL ;"table Terminator" lq850_12ptpitchTab label byte byte TP_20_PITCH byte TP_17_PITCH byte TP_12_PITCH byte TP_10_PITCH byte TP_6_PITCH byte TP_5_PITCH byte TP_PROPORTIONAL ;"table Terminator" lq850_24ptpitchTab label byte byte TP_12_PITCH byte TP_10_PITCH byte TP_6_PITCH byte TP_5_PITCH byte TP_PROPORTIONAL ;"table Terminator" lq850Info ends
oeis/229/A229787.asm
neoneye/loda-programs
11
87651
<filename>oeis/229/A229787.asm ; A229787: Primes modulo 24. ; Submitted by Jon Maiga ; 2,3,5,7,11,13,17,19,23,5,7,13,17,19,23,5,11,13,19,23,1,7,11,17,1,5,7,11,13,17,7,11,17,19,5,7,13,19,23,5,11,13,23,1,5,7,19,7,11,13,17,23,1,11,17,23,5,7,13,17,19,5,19,23,1,5,19,1,11,13,17,23,7,13,19,23,5,13,17,1,11,13,23,1,7,11,17,1,5,7,11,23,7,11,19,23,5,17,19,13 mul $0,2 max $0,1 seq $0,173919 ; Numbers that are prime or one less than a prime. mod $0,24
oeis/208/A208895.asm
neoneye/loda-programs
11
161663
<reponame>neoneye/loda-programs ; A208895: Number of non-congruent solutions to x^2 + y^2 + z^2 + t^2 == 1 (mod n). ; Submitted by <NAME> ; 1,8,24,64,120,192,336,512,648,960,1320,1536,2184,2688,2880,4096,4896,5184,6840,7680,8064,10560,12144,12288,15000,17472,17496,21504,24360,23040,29760,32768,31680,39168,40320,41472,50616,54720,52416,61440,68880,64512 mov $1,$0 add $0,1 add $1,$0 seq $1,7434 ; Jordan function J_2(n) (a generalization of phi(n)). mul $1,$0 mov $0,$1 div $0,3
TypeTheory/Container/PolyFinalCoalg.agda
hbasold/Sandbox
0
7205
{-# OPTIONS --copatterns --sized-types --without-K #-} module PolyFinalCoalg where open import Data.Product open import Data.Nat open import Data.Fin open import Data.Unit as Unit open import Data.Empty open import Data.Vec hiding (_∈_; [_]) open import Relation.Binary.PropositionalEquality open import Function open import Data.Sum as Sum open import Size open import Poly -- | Indexed product _×ᵢ_ : {I : Set} → Fam I → Fam I → Fam I (A ×ᵢ B) i = A i × B i -- | Product of indexed functors _×ᵢ'_ : {I J K : Set} → (Fam K → Fam I) → (Fam J → Fam I) → (Fam K × Fam J → Fam I) (F ×ᵢ' G) (X , Y) = F X ×ᵢ G Y record Isomorphic (A B : Set) : Set where -- constructor isIso field f : A → B f⃖ : B → A is-invˡ : (a : A) → f⃖ (f a) ≡ a is-invʳ : (b : B) → f (f⃖ b) ≡ b _≃_ = Isomorphic _≃'_ : {I : Set} → Fam I → Fam I → Set _≃'_ {I} A B = (i : I) → A i ≃ B i -- | Avoid setoids for now postulate Π'-ext : {I J : Set} {u : I → J} {P : Fam I} → (j : J) (f g : Π' u P j) → ((i : I) → (p : u i ≡ j) → f (i , p) ≡ g (i , p)) → f ≡ g Π'-ext' : {I J : Set} {u : I → J} {P : Fam I} → (f g : (i : I) → Π' u P (u i)) → ((i : I) → app i (f i) ≡ app i (g i)) → (i : I) → f i ≡ g i -- | Dependent polynomials record ParamPoly {I J : Set} : Set₁ where constructor ppoly field -- J ←t- B -p→ A -s→ I A : Set -- ^ Labels s : A → I B : Set p₁ p₂ : B → A t₁ : B → J t₂ : B → I first : {I J : Set} → ParamPoly {I} {J} → DPoly {I} {J} first (ppoly A s B p₁ p₂ t₁ t₂) = dpoly A s B p₁ t₁ second : {I J : Set} → ParamPoly {I} {J} → DPoly {I} {I} second (ppoly A s B p₁ p₂ t₁ t₂) = dpoly A s B p₂ t₂ R : {I J : Set} → ParamPoly {I} {J} → (X : Fam J) → (Y : Fam I) → Fam I R (ppoly A s B p₁ p₂ t₁ t₂) X Y = Σ' s (Π' p₁ ((t₁ *) X) ×ᵢ Π' p₂ ((t₂ *) Y)) data ⊤' (I : Set) : I → Set where tt : (i : I) → ⊤' I i ⊤'-unique : {I : Set} {i : I} → (x y : ⊤' I i) → x ≡ y ⊤'-unique (tt i) (tt .i) = refl triv-param : {I J : Set} → (P : ParamPoly {I} {J}) → (Y : Fam I) → R P (⊤' J) Y ≃' T (second P) Y triv-param {I} {J} (ppoly A s B p₁ p₂ t₁ t₂) Y i = record { f = f i ; f⃖ = g i ; is-invˡ = is-invˡ i ; is-invʳ = is-invʳ i } where P = ppoly A s B p₁ p₂ t₁ t₂ f : (i : I) → R P (⊤' J) Y i → T (second P) Y i f ._ (ins a (v₁ , v₂)) = ins a v₂ triv : (a : A) → Π' p₁ ((t₁ *) (⊤' J)) a triv a = abs (λ b → tt (t₁ b)) a g : (i : I) → T (second P) Y i → R P (⊤' J) Y i g ._ (ins a v) = ins a (triv a , v) is-invˡ : (i : I) → (x : R P (⊤' J) Y i) → g i (f i x) ≡ x is-invˡ ._ (ins a (v₁ , v₂)) = Σ'-eq a a (triv a , v₂) (v₁ , v₂) refl (×-eq (triv a) v₁ v₂ v₂ (Π'-ext a (triv a) v₁ (lem a v₁)) refl) where lem : (a : A) (v₁ : Π' p₁ ((t₁ *) (⊤' J)) a) (i₁ : B) (p : p₁ i₁ ≡ a) → triv a (i₁ , p) ≡ v₁ (i₁ , p) lem ._ v₁ i₁ refl = ⊤'-unique (tt (t₁ i₁)) (app i₁ v₁) is-invʳ : (i : I) → (x : T (second P) Y i) → f i (g i x) ≡ x is-invʳ ._ (ins a x) = refl triv : {I J : Set} (P : DPoly {I} {J}) → T P (⊤' J) ≃' toFam (DPoly.s P) triv {I} {J} (dpoly A s E p t) i = record { f = f i ; f⃖ = g i ; is-invˡ = p₁ i ; is-invʳ = p₂ i } where P = dpoly A s E p t f : (i : I) → T P (⊤' J) i → toFam s i f ._ (ins a v) = (a , refl) g : (i : I) → toFam s i → T P (⊤' J) i g ._ (a , refl) = ins a (abs'' a v) where v : (b : E) → p b ≡ a → ⊤' J (t b) v b _ = tt (t b) p₁ : (i : I) → (x : T (dpoly A s E p t) (⊤' J) i) → g i (f i x) ≡ x p₁ ._ (ins a v) = Σ'-eq a a (abs'' a (λ b _ → tt (t b))) v refl (Π'-ext a (abs'' a (λ b _ → tt (t b))) v (λ b p₂ → ⊤'-unique (tt (t b)) (v (b , p₂)))) p₂ : (i : I) (b : toFam s i) → f i (g i b) ≡ b p₂ ._ (a , refl) = refl foo : {A C P : Set} (B : Fam A) (D : Fam C) (Q : Fam P) (X : Set) → Σ (A × C) (λ {(a , c) → (B a → X) × (D c → Σ P (λ p → Q p → X)) }) ≃ Σ (A × Σ C (λ c → D c → P)) (λ {(a , c , t) → ((B a → X) × ((Σ (D c) ((t *) Q)) → X))}) foo {A} {C} {P} B D Q X = record { f = f ; f⃖ = g ; is-invˡ = {!!} ; is-invʳ = {!!} } where f : Σ (A × C) (λ {(a , c) → (B a → X) × (D c → Σ P (λ p → Q p → X)) }) → Σ (A × Σ C (λ c → D c → P)) (λ {(a , c , t) → ((B a → X) × ((Σ (D c) ((t *) Q)) → X))}) f ((a , c) , t) = ((a , c , (λ d → proj₁ (proj₂ t d) )) , ((proj₁ t) , (λ { (d , q) → proj₂ (proj₂ t d) q}))) g : Σ (A × Σ C (λ c → D c → P)) (λ {(a , c , t) → ((B a → X) × ((Σ (D c) ((t *) Q)) → X))}) → Σ (A × C) (λ {(a , c) → (B a → X) × (D c → Σ P (λ p → Q p → X)) }) g ((a , c , t₁) , t₂) = ((a , c) , (proj₁ t₂) , (λ d → (t₁ d , (λ q → proj₂ t₂ (d , q))))) δ : {I : Set} → I → I × I δ i = (i , i) bar : {I K L : Set} (t : K → I) (v : L → I) (A : Fam K) (B : Fam L) → (Σ' t A ×ᵢ Σ' v B) ≃' (δ *) (Σ' (t ⊗ v) ((proj₁ *) A ×ᵢ (proj₂ *) B)) bar {I} {K} {L} t v A B i = record { f = f i ; f⃖ = g i ; is-invˡ = {!!} ; is-invʳ = {!!} } where f : (i : I) → (Σ' t A ×ᵢ Σ' v B) i → (Σ' (t ⊗ v) ((proj₁ *) A ×ᵢ (proj₂ *) B)) (i , i) f .(t k) (ins k x , y) = h k x (t k) refl y where h : (k : K) (x : A k) (i : I) (p : t k ≡ i) → (Σ' v B) i → (Σ' (t ⊗ v) ((proj₁ *) A ×ᵢ (proj₂ *) B)) (i , i) h k x ._ p (ins l y) = ins' (k , l) ((v l) , (v l)) (⊗-eq {f = t} {v} k l p) (x , y) g : (i : I) → (Σ' (t ⊗ v) ((proj₁ *) A ×ᵢ (proj₂ *) B)) (i , i) → (Σ' t A ×ᵢ Σ' v B) i g i x = let k = proj₁ (p₁' x) l = proj₂ (p₁' x) q₁ : t k ≡ i q₁ = ×-eqˡ (p₌' x) q₂ : v l ≡ i q₂ = ×-eqʳ (p₌' x) u : A k × B l u = p₂' x in (ins' k i q₁ (proj₁ u) , ins' l i q₂ (proj₂ u)) _∣_ : {I J : Set} → Fam I → Fam J → Fam (I ⊎ J) X ∣ Y = [ X , Y ]′ PB : {A₁ A₂ I : Set} → (A₁ → I) → (A₂ → I) → Set PB {A₁} {A₂} f g = Σ[ x ∈ A₁ × A₂ ] (f (proj₁ x) ≡ g (proj₂ x)) PB-idx : {A₁ A₂ I : Set} → (f : A₁ → I) → (g : A₂ → I) → (PB f g → I) PB-idx f _ ((x₁ , x₂) , _) = f x₁ _⊎'_ : {I J K : Set} → DPoly {I} {J} → DPoly {I} {K} → DPoly {I} {J ⊎ K} (dpoly A₁ s₁ B₁ p₁ t₁) ⊎' (dpoly A₂ s₂ B₂ p₂ t₂) = dpoly A (PB-idx s₁ s₂) (U₁ ⊎ U₂) [ q₁ , q₂ ]′ (Sum.map (t₁ ∘ r₁) (t₂ ∘ r₂)) where A = PB s₁ s₂ U₁ = PB {A} (proj₁ ∘ proj₁) p₁ U₂ = PB {A} (proj₂ ∘ proj₁) p₂ q₁ : U₁ → A q₁ = proj₁ ∘ proj₁ q₂ : U₂ → A q₂ = proj₁ ∘ proj₁ r₁ : U₁ → B₁ r₁ = proj₂ ∘ proj₁ r₂ : U₂ → B₂ r₂ = proj₂ ∘ proj₁ parametric-poly-by-sum : {I J K : Set} → (P : DPoly {I} {J}) → (Q : DPoly {I} {K}) → ∀ X Y → (T P ×ᵢ' T Q)(X , Y) ≃' T (P ⊎' Q) (X ∣ Y) parametric-poly-by-sum {I} {J} P Q X Y i = record { f = f i ; f⃖ = g i ; is-invˡ = {!!} ; is-invʳ = {!!} } where f : (i : I) → (T P ×ᵢ' T Q) (X , Y) i → T (P ⊎' Q) (X ∣ Y) i f ._ (ins a v , y) = h a v (DPoly.s P a) refl y where h : (a : DPoly.A P) (v : Π' (DPoly.p P) (λ e → X (DPoly.t P e)) a) (i : I) (p : DPoly.s P a ≡ i) → T Q Y i → T (P ⊎' Q) (X ∣ Y) i h a₁ v₁ ._ p (ins a₂ v₂) = ins' a₃ (DPoly.s Q a₂) p₃ v₃ where a₃ : DPoly.A (P ⊎' Q) a₃ = (a₁ , a₂) , p p₃ : DPoly.s (P ⊎' Q) a₃ ≡ DPoly.s Q a₂ p₃ = trans refl p v₃ : Π' (DPoly.p (P ⊎' Q)) (λ e → (X ∣ Y) (DPoly.t (P ⊎' Q) e)) a₃ v₃ = abs'' a₃ (v' a₃ refl) where v' : (u : DPoly.A (P ⊎' Q)) → (a₁ , a₂) ≡ proj₁ u → (i₁ : DPoly.E (P ⊎' Q)) → DPoly.p (P ⊎' Q) i₁ ≡ u → ((X ∣ Y) (DPoly.t (P ⊎' Q) i₁)) v' u r (inj₁ ((.u , b) , q)) refl = v₁ (b , sym (trans (×-eqˡ r) q)) v' u r (inj₂ ((.u , b) , q)) refl = v₂ (b , sym (trans (×-eqʳ r) q)) g : (i : I) → T (P ⊎' Q) (X ∣ Y) i → (T P ×ᵢ' T Q) (X , Y) i g ._ (ins x v) = (ins (proj₁ (proj₁ x)) v₁ , ins' a₂ (DPoly.s P a₁) (sym (proj₂ x)) v₂) where a₁ = proj₁ (proj₁ x) a₂ = proj₂ (proj₁ x) v₁ : Π' (DPoly.p P) (((DPoly.t P) *) X) a₁ v₁ = abs'' a₁ (v₁' a₁ refl) where v₁' : (a : DPoly.A P) (p : a₁ ≡ a) (b : DPoly.E P) → DPoly.p P b ≡ a → X (DPoly.t P b) v₁' ._ p b refl = v ((inj₁ ((x , b) , p)) , refl) v₂ : Π' (DPoly.p Q) (((DPoly.t Q) *) Y) a₂ v₂ = abs'' a₂ (v₂' a₂ refl) where v₂' : (a : DPoly.A Q) (p : a₂ ≡ a) (b : DPoly.E Q) → DPoly.p Q b ≡ a → Y (DPoly.t Q b) v₂' ._ p b refl = v ((inj₂ ((x , b) , p)) , refl) {- : {I J : Set} → (P : DPoly {I} {J}) → (Q : DPoly {I} {J}) → let H = λ X Y → ⟦ P ⟧ X ×ᵢ ⟦ Q ⟧ in -}
base/crts/fpw32/tran/i386/log_pentium4.asm
npocmaka/Windows-Server-2003
17
97814
<reponame>npocmaka/Windows-Server-2003 ;// ;// INTEL CORPORATION PROPRIETARY INFORMATION ;// This software is supplied under the terms of a license agreement or ;// nondisclosure agreement with Intel Corporation and may not be copied ;// or disclosed except in accordance with the terms of that agreement. ;// Copyright (c) 2000 Intel Corporation. All Rights Reserved. ;// ;// ; log_wmt.asm ; ; double log(double); ; ; Initial version: 12/15/2000 ; Updated with bug fixes: 2/20/2001 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; ;; Another important feature is that we use the table of log(1/B) ;; ;; throughout. To ensure numerical accuracy, we only need to ensure that ;; ;; T(0)_hi = B(last)_hi, T(0)_lo = B(last)_lo. This ensures W_hi = 0 and ;; ;; W_lo = 0 exactly in the case of |X-1| <= 2^(-7). ;; ;; Finally, we do away with the need for extra-precision addition by the ;; ;; following observation. The three pieces at the end are ;; ;; A = W_hi + r_hi; B = r_lo; C = P + W_lo. ;; ;; When W_hi = W_lo = 0, the addition sequence (A+B) + C is accurate as ;; ;; the sum A+B is exact. ;; ;; Otherwise, A + (B+C) is accurate as B is going to be largely shifted ;; ;; off compared to the final result. ;; ;; Hence if we use compare and mask operations to ;; ;; create alpha = (r_lo or 0), beta = (0 or r_lo), Res_hi <- W_hi+alpha, ;; ;; Res_lo <- C + beta, then result is accurately computed as ;; ;; Res_hi+Res_lo. ;; ;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .686P .387 .XMM .MODEL FLAT,C EXTRN C __libm_error_support : NEAR CONST SEGMENT PARA PUBLIC USE32 'CONST' ALIGN 16 emask DQ 000FFFFFFFFFFFFFH, 000FFFFFFFFFFFFFH ; mask off sign/expo field Magic DQ 428FFFFFFFFFF80FH, 428FFFFFFFFFF80FH ; 2^(42)-1+2^(-7) hi_mask DQ 7FFFFFFFFFE00000H, 7FFFFFFFFFE00000H ; mask of bottom 21 bits LOG_2 DQ 3FE62E42FEFA3800H, 3D2EF35793C76730H ; L_hi,L_lo -> [L_lo|L_hi] place_L DQ 0000000000000000H,0FFFFFFFFFFFFFFFFH ; 0,1 -> [FF..FF|00..00] DQ 0FFFFFFFFFFFFFFFFH, 0000000000000000H ; 1,0 -> [00..00|FF..FF] One DQ 3ff0000000000000H, 3ff0000000000000H ; 1,1 Zero DQ 0000000000000000H, 0000000000000000H ; 0,0 Two52 DQ 4330000000000000H, 4330000000000000H ; 2^52 for normalization Infs DQ 0FFF0000000000000H, 7FF0000000000000H ; -inf,+inf --> [+inf|-inf] NaN DQ 7FF0000000000001H, 7FF0000000000001H ; NaN for log(-ve), log(Nan) coeff DQ 3FC24998090DC555H, 0BFCFFFFFFF201E13H ; p6,p3 ->[p3|p6] DQ 0BFC555C54DD57D75H, 3FD55555555555A7H ; p5,p2 ->[p2|p5] DQ 3FC9999998867A53H, 0BFE000000000001CH ; p4,p1 ->[p1|p4] ;-------Table B----------- B_Tbl DQ 3FF0000000000000H, 3FF0000000000000H DQ 3FEF820000000000H, 3FEF820000000000H DQ 3FEF080000000000H, 3FEF080000000000H DQ 3FEE920000000000H, 3FEE920000000000H DQ 3FEE1E0000000000H, 3FEE1E0000000000H DQ 3FEDAE0000000000H, 3FEDAE0000000000H DQ 3FED420000000000H, 3FED420000000000H DQ 3FECD80000000000H, 3FECD80000000000H DQ 3FEC720000000000H, 3FEC720000000000H DQ 3FEC0E0000000000H, 3FEC0E0000000000H DQ 3FEBAC0000000000H, 3FEBAC0000000000H DQ 3FEB4E0000000000H, 3FEB4E0000000000H DQ 3FEAF20000000000H, 3FEAF20000000000H DQ 3FEA980000000000H, 3FEA980000000000H DQ 3FEA420000000000H, 3FEA420000000000H DQ 3FE9EC0000000000H, 3FE9EC0000000000H DQ 3FE99A0000000000H, 3FE99A0000000000H DQ 3FE9480000000000H, 3FE9480000000000H DQ 3FE8FA0000000000H, 3FE8FA0000000000H DQ 3FE8AC0000000000H, 3FE8AC0000000000H DQ 3FE8620000000000H, 3FE8620000000000H DQ 3FE8180000000000H, 3FE8180000000000H DQ 3FE7D00000000000H, 3FE7D00000000000H DQ 3FE78A0000000000H, 3FE78A0000000000H DQ 3FE7460000000000H, 3FE7460000000000H DQ 3FE7020000000000H, 3FE7020000000000H DQ 3FE6C20000000000H, 3FE6C20000000000H DQ 3FE6820000000000H, 3FE6820000000000H DQ 3FE6420000000000H, 3FE6420000000000H DQ 3FE6060000000000H, 3FE6060000000000H DQ 3FE5CA0000000000H, 3FE5CA0000000000H DQ 3FE58E0000000000H, 3FE58E0000000000H DQ 3FE5560000000000H, 3FE5560000000000H DQ 3FE51E0000000000H, 3FE51E0000000000H DQ 3FE4E60000000000H, 3FE4E60000000000H DQ 3FE4B00000000000H, 3FE4B00000000000H DQ 3FE47A0000000000H, 3FE47A0000000000H DQ 3FE4460000000000H, 3FE4460000000000H DQ 3FE4140000000000H, 3FE4140000000000H DQ 3FE3E20000000000H, 3FE3E20000000000H DQ 3FE3B20000000000H, 3FE3B20000000000H DQ 3FE3820000000000H, 3FE3820000000000H DQ 3FE3520000000000H, 3FE3520000000000H DQ 3FE3240000000000H, 3FE3240000000000H DQ 3FE2F60000000000H, 3FE2F60000000000H DQ 3FE2CA0000000000H, 3FE2CA0000000000H DQ 3FE29E0000000000H, 3FE29E0000000000H DQ 3FE2740000000000H, 3FE2740000000000H DQ 3FE24A0000000000H, 3FE24A0000000000H DQ 3FE2200000000000H, 3FE2200000000000H DQ 3FE1F80000000000H, 3FE1F80000000000H DQ 3FE1D00000000000H, 3FE1D00000000000H DQ 3FE1A80000000000H, 3FE1A80000000000H DQ 3FE1820000000000H, 3FE1820000000000H DQ 3FE15C0000000000H, 3FE15C0000000000H DQ 3FE1360000000000H, 3FE1360000000000H DQ 3FE1120000000000H, 3FE1120000000000H DQ 3FE0EC0000000000H, 3FE0EC0000000000H DQ 3FE0CA0000000000H, 3FE0CA0000000000H DQ 3FE0A60000000000H, 3FE0A60000000000H DQ 3FE0840000000000H, 3FE0840000000000H DQ 3FE0620000000000H, 3FE0620000000000H DQ 3FE0420000000000H, 3FE0420000000000H DQ 3FE0200000000000H, 3FE0200000000000H DQ 3FE0000000000000H, 3FE0000000000000H ;-------Table T_hi,T_lo so that movapd gives [ T_lo | T_hi ] T_Tbl DQ 0000000000000000H, 0000000000000000H DQ 3F8FBEA8B13C0000H, 3CDEC927B17E4E13H DQ 3F9F7A9B16780000H, 3D242AD9271BE7D7H DQ 3FA766D923C20000H, 3D1FF0A82F1C24C1H DQ 3FAF0C30C1114000H, 3D31A88653BA4140H DQ 3FB345179B63C000H, 3D3D4203D36150D0H DQ 3FB6EF528C056000H, 3D24573A51306A44H DQ 3FBA956D3ECAC000H, 3D3E63794C02C4AFH DQ 3FBE2507702AE000H, 3D303B433FD6EEDCH DQ 3FC0D79E7CD48000H, 3D3CB422847849E4H DQ 3FC299D30C606000H, 3D3D4D0079DC08D9H DQ 3FC44F8B726F8000H, 3D3DF6A4432B9BB4H DQ 3FC601B076E7A000H, 3D3152D7D4DFC8E5H DQ 3FC7B00916515000H, 3D146280D3E606A3H DQ 3FC9509AA0044000H, 3D3F1E675B4D35C6H DQ 3FCAF6895610D000H, 3D375BEBBA042B64H DQ 3FCC8DF7CB9A8000H, 3D3EEE42F58E1E6EH DQ 3FCE2A877A6B2000H, 3D3823817787081AH DQ 3FCFB7D86EEE3000H, 3D371FCF1923FB43H DQ 3FD0A504E97BB000H, 3D303094E6690C44H DQ 3FD1661CAECB9800H, 3D2D1C000C076A8BH DQ 3FD22981FBEF7800H, 3D17AF7A7DA9FC99H DQ 3FD2E9E2BCE12000H, 3D24300C128D1DC2H DQ 3FD3A71C56BB4800H, 3D08C46FB5A88483H DQ 3FD4610BC29C5800H, 3D385F4D833BCDC7H DQ 3FD51D1D93104000H, 3D35B0FAA20D9C8EH DQ 3FD5D01DC49FF000H, 3D2740AB8CFA5ED3H DQ 3FD68518244CF800H, 3D28722FF88BF119H DQ 3FD73C1800DC0800H, 3D3320DBF75476C0H DQ 3FD7E9883FA49800H, 3D3FAFF96743F289H DQ 3FD898D38A893000H, 3D31F666071E2F57H DQ 3FD94A0428036000H, 3D30E7BCB08C6B44H DQ 3FD9F123F4BF6800H, 3D36892015F2401FH DQ 3FDA99FCABDB8000H, 3D11E89C5F87A311H DQ 3FDB44977C148800H, 3D3C6A343FB526DBH DQ 3FDBEACD9E271800H, 3D268A6EDB879B51H DQ 3FDC92B7D6BB0800H, 3D10FE9FFF876CC2H DQ 3FDD360E90C38000H, 3D342CDB58440FD6H DQ 3FDDD4AA04E1C000H, 3D32D8512DF01AFDH DQ 3FDE74D262788800H, 3CFEB945ED9457BCH DQ 3FDF100F6C2EB000H, 3D2CCE779D37F3D8H DQ 3FDFACC89C9A9800H, 3D163E0D100EC76CH DQ 3FE02582A5C9D000H, 3D222C6C4E98E18CH DQ 3FE0720E5C40DC00H, 3D38E27400B03FBEH DQ 3FE0BF52E7353800H, 3D19B5899CD387D3H DQ 3FE109EB9E2E4C00H, 3D12DA67293E0BE7H DQ 3FE15533D3B8D400H, 3D3D981CA8B0D3C3H DQ 3FE19DB6BA0BA400H, 3D2B675885A4A268H DQ 3FE1E6DF676FF800H, 3D1A58BA81B983AAH DQ 3FE230B0D8BEBC00H, 3D12FC066E48667BH DQ 3FE2779E1EC93C00H, 3D36523373359B79H DQ 3FE2BF29F9841C00H, 3CFD8A3861D3B7ECH DQ 3FE30757344F0C00H, 3D309BE85662F034H DQ 3FE34C80A8958000H, 3D1D4093FCAC34BDH DQ 3FE39240DDE5CC00H, 3D3493DBEAB758B3H DQ 3FE3D89A6B1A5400H, 3D28C7CD5FA81E3EH DQ 3FE41BCFF4860000H, 3D076FD6B90E2A84H DQ 3FE4635BCF40DC00H, 3D2CE8D5D412CAADH DQ 3FE4A3E862342400H, 3D224FA993F78464H DQ 3FE4E8D015786C00H, 3D38B1C0D0303623H DQ 3FE52A6D269BC400H, 3D30022268F689C9H DQ 3FE56C91D71CF800H, 3CE07BAFD1366E9EH DQ 3FE5AB505B390400H, 3CD5627AF66563FAH DQ 3FE5EE82AA241800H, 3D2202380CDA46BEH DQ 3FE62E42FEFA3800H, 3D2EF35793C76730H ALIGN 16 CONST ENDS $cmpsd MACRO op1, op2, op3 LOCAL begin_cmpsd, end_cmpsd begin_cmpsd: cmppd op1, op2, op3 end_cmpsd: org begin_cmpsd db 0F2h org end_cmpsd ENDM _TEXT SEGMENT PARA PUBLIC USE32 'CODE' ALIGN 16 PUBLIC _log_pentium4, _CIlog_pentium4 _CIlog_pentium4 PROC NEAR push ebp mov ebp, esp sub esp, 8 ; for argument DBLSIZE and esp, 0fffffff0h fstp qword ptr [esp] movq xmm0, qword ptr [esp] call start leave ret ;----------------------; ;--Argument Reduction--; ;----------------------; _log_pentium4 label proc movlpd xmm0, QWORD PTR [4+esp] ;... load X to low part of xmm0 start: mov edx,0 ;... set edx to 0 DENORMAL_RETRY: movapd xmm5,xmm0 unpcklpd xmm0,xmm0 ;... [X|X] psrlq xmm5,52 pextrw ecx,xmm5,0 movapd xmm1, QWORD PTR [emask] ;... pair of 000FF...FF movapd xmm3, QWORD PTR [One] ;... pair of 3FF000...000 movapd xmm4, QWORD PTR [Magic] ;... pair of 2^(42)-1+2^(-7) movapd xmm6, QWORD PTR [hi_mask] ;... pair of 7FFFFFFF..FE00000 andpd xmm0,xmm1 orpd xmm0,xmm3 ;... [Y|Y] addpd xmm4,xmm0 ;... 11 lsb contains the index to B ;... the last 4 lsb are don't cares, the ;... 7 bits following that is the index ;... Hence by masking, we already have index*16 pextrw eax,xmm4,0 and eax,000007F0H ;... eax is offset movapd xmm4, QWORD PTR [eax+B_Tbl] ;... [B|B] movapd xmm7, QWORD PTR [eax+T_Tbl] andpd xmm6,xmm0 ;... [Y_hi|Y_hi] subpd xmm0,xmm6 ;... [Y_lo|Y_lo] mulpd xmm6,xmm4 ;... [B*Y_hi|B*Y_hi] subpd xmm6,xmm3 ;... [R_hi|R_hi] addsd xmm7,xmm6 ;... [T_lo|T_hi+R_hi] mulpd xmm0,xmm4 ;... [R_lo|R_lo] movapd xmm4,xmm0 ;... [R_lo|R_lo] addpd xmm0,xmm6 ;... [R|R] ;-----------------------------------------; ;--Approx and Reconstruction in parallel--; ;-----------------------------------------; ;...m is in ecx, [T_lo,T_hi+R_hi] in xmm7 ;...xmm4 through xmm6 will be used and ecx,00000FFFH ;... note we need sign and biased exponent sub ecx,1 cmp ecx,2045 ;... the largest biased exponent 2046-1 ;... if ecx is ABOVE (unsigned) this, either ;... the sign is +ve and biased exponent is 7FF ;... or the sign is +ve and exponent is 0, or ;... the sign is -ve (i.e. sign bit 1) ja SPECIAL_CASES sub ecx,1022 ;... m in integer format add ecx,edx ;... this is the denormal adjustment cvtsi2sd xmm6,ecx unpcklpd xmm6,xmm6 ;... [m | m] in FP format shl ecx,10 add eax,ecx ;16*(64*m + j) 0 <=> (m=-1 & j=64) or (m=0 & j=0) mov ecx,16 mov edx,0 cmp eax,0 cmove edx,ecx ;this is the index into the mask table (place_{L,R}) movapd xmm1, QWORD PTR [coeff] ;... loading [p3|p6] movapd xmm3,xmm0 movapd xmm2, QWORD PTR [coeff+16] ;... loading [p2|p5] mulpd xmm1,xmm0 ;... [p3 R | p6 R] mulpd xmm3,xmm3 ;... [R^2|R^2] addpd xmm1,xmm2 ;... [p2+p3 R |p5+p6 R] movapd xmm2, QWORD PTR [coeff+32] ;... [p1|p4] mulsd xmm3,xmm3 ;... [R^2|R^4] movapd xmm5, QWORD PTR [LOG_2] ;... loading [L_lo|L_hi] ;... [T_lo|T_hi+R_hi] already in xmm7 mulpd xmm6,xmm5 ;... [m L_lo | m L_hi] movapd xmm5, QWORD PTR [edx+place_L] ;... [FF..FF|00.00] or [00..00|FF..FF] andpd xmm4,xmm5 ;... [R_lo|0] or [0|R_lo] addpd xmm7,xmm6 ;... [W_lo|W_hi] addpd xmm7,xmm4 ;... [A_lo|A_hi] mulpd xmm1,xmm0 ;... [p2 R+p3 R^2|p5 R+p6 R^2] mulsd xmm3,xmm0 ;... [R^2|R^5] addpd xmm1,xmm2 ;... [p1+.. | p4+...] movapd xmm6,xmm7 unpckhpd xmm6,xmm6 ;... [*|A_lo] mulpd xmm1,xmm3 ;... [P_hi|P_lo] sub esp, 16 movapd xmm0,xmm1 ;... copy of [P_hi|P_lo] unpckhpd xmm1,xmm1 ;... [P_hi|P_hi] ;...[P_hi|P_lo] in xmm1 at this point addsd xmm0,xmm1 ;... [*|P] addsd xmm0,xmm6 addsd xmm0,xmm7 movlpd QWORD PTR [esp+4], xmm0 ; return result fld QWORD PTR [esp+4] ; add esp, 16 ret SPECIAL_CASES: movlpd xmm0, QWORD PTR [4+esp] ;... load X again movapd xmm1, QWORD PTR [Zero] $cmpsd xmm1,xmm0,0 pextrw eax,xmm1,0 ;... ones if X = +-0.0 cmp eax,0 ja INPUT_ZERO cmp ecx,-1 ;... ecx = -1 iff X is positive denormal je INPUT_DENORM cmp ecx,000007FEH ja INPUT_NEGATIVE movlpd xmm0, QWORD PTR [4+esp] movapd xmm1, QWORD PTR [emask] movapd xmm2, QWORD PTR [One] andpd xmm0,xmm1 orpd xmm0,xmm2 ;... xmm0 is 1 iff the input argument was +inf $cmpsd xmm2,xmm0,0 pextrw eax,xmm2,0 ;... 0 if X is NaN cmp eax, 0 je INPUT_NaN INPUT_INF: ;....Input is +Inf fld QWORD PTR [Infs+8] ; ret INPUT_NaN: ; movlpd xmm0, QWORD PTR [esp+4] ; addsd xmm0, xmm0 ; sub esp, 16 ; movlpd QWORD PTR [esp+4], xmm0 ; return result ; fld QWORD PTR [esp+4] ; ; add esp, 16 ; ret mov edx, 1000 jmp CALL_LIBM_ERROR INPUT_ZERO: ; raise Divide by Zero movlpd xmm2, QWORD PTR [One] divsd xmm2, xmm0 movlpd xmm1, QWORD PTR [Infs] mov edx, 2 jmp CALL_LIBM_ERROR INPUT_DENORM: ;....check for zero or denormal ;....for now I assume this is simply denormal ;....in reality, we need to check for zero and handle appropriately movlpd xmm1,Two52 mulsd xmm0,xmm1 mov edx,-52 ;...set adjustment to exponent jmp DENORMAL_RETRY ;...branch back INPUT_NEGATIVE: add ecx,1 and ecx, 7ffH cmp ecx, 7ffH jae NEG_INF_NAN NEG_NORMAL_INFINITY: ; xmm1=0 xorpd xmm1, xmm1 ; raise Invalid divsd xmm1, xmm1 mov edx, 3 CALL_LIBM_ERROR: ;call libm_error_support(void *arg1,void *arg2,void *retval,error_types input_tag) sub esp, 28 movlpd QWORD PTR [esp+16], xmm1 mov DWORD PTR [esp+12],edx mov edx, esp add edx,16 mov DWORD PTR [esp+8],edx add edx,16 mov DWORD PTR [esp+4],edx mov DWORD PTR [esp],edx call NEAR PTR __libm_error_support ; movlpd xmm0, QWORD PTR [esp+16] ; movlpd QWORD PTR [esp+16], xmm0 ; return result fld QWORD PTR [esp+16] ; add esp,28 ret NEG_INF_NAN: movlpd xmm2, QWORD PTR [esp+4] movlpd xmm0, QWORD PTR [esp+4] movd eax, xmm2 psrlq xmm2, 32 movd ecx, xmm2 and ecx, 0fffffH ; eliminate sign/exponent or eax, ecx cmp eax,0 jz NEG_NORMAL_INFINITY ; negative infinity ; addsd xmm0, xmm0 ; sub esp,16 ; movlpd QWORD PTR [esp+4], xmm0 ; fld QWORD PTR [esp+4] ; add esp, 16 ; ret mov edx, 1000 jmp CALL_LIBM_ERROR _CIlog_pentium4 ENDP ALIGN 16 _TEXT ENDS END
agda-stdlib-0.9/src/Relation/Binary/Product/NonStrictLex.agda
qwe2/try-agda
1
7401
<filename>agda-stdlib-0.9/src/Relation/Binary/Product/NonStrictLex.agda ------------------------------------------------------------------------ -- The Agda standard library -- -- Lexicographic products of binary relations ------------------------------------------------------------------------ -- The definition of lexicographic product used here is suitable if -- the left-hand relation is a (non-strict) partial order. module Relation.Binary.Product.NonStrictLex where open import Data.Product open import Data.Sum open import Level open import Relation.Binary open import Relation.Binary.Consequences import Relation.Binary.NonStrictToStrict as Conv open import Relation.Binary.Product.Pointwise as Pointwise using (_×-Rel_) import Relation.Binary.Product.StrictLex as Strict module _ {a₁ a₂ ℓ₁ ℓ₂} {A₁ : Set a₁} {A₂ : Set a₂} where ×-Lex : (_≈₁_ _≤₁_ : Rel A₁ ℓ₁) → (_≤₂_ : Rel A₂ ℓ₂) → Rel (A₁ × A₂) _ ×-Lex _≈₁_ _≤₁_ _≤₂_ = Strict.×-Lex _≈₁_ (Conv._<_ _≈₁_ _≤₁_) _≤₂_ -- Some properties which are preserved by ×-Lex (under certain -- assumptions). ×-reflexive : ∀ _≈₁_ _≤₁_ {_≈₂_} _≤₂_ → _≈₂_ ⇒ _≤₂_ → (_≈₁_ ×-Rel _≈₂_) ⇒ (×-Lex _≈₁_ _≤₁_ _≤₂_) ×-reflexive _≈₁_ _≤₁_ _≤₂_ refl₂ {x} {y} = Strict.×-reflexive _≈₁_ (Conv._<_ _≈₁_ _≤₁_) _≤₂_ refl₂ {x} {y} ×-transitive : ∀ {_≈₁_ _≤₁_} → IsPartialOrder _≈₁_ _≤₁_ → ∀ {_≤₂_} → Transitive _≤₂_ → Transitive (×-Lex _≈₁_ _≤₁_ _≤₂_) ×-transitive {_≈₁_ = _≈₁_} {_≤₁_ = _≤₁_} po₁ {_≤₂_ = _≤₂_} trans₂ {x} {y} {z} = Strict.×-transitive {_<₁_ = Conv._<_ _≈₁_ _≤₁_} isEquivalence (Conv.<-resp-≈ _ _ isEquivalence ≤-resp-≈) (Conv.trans _ _ po₁) {_≤₂_ = _≤₂_} trans₂ {x} {y} {z} where open IsPartialOrder po₁ ×-antisymmetric : ∀ {_≈₁_ _≤₁_} → IsPartialOrder _≈₁_ _≤₁_ → ∀ {_≈₂_ _≤₂_} → Antisymmetric _≈₂_ _≤₂_ → Antisymmetric (_≈₁_ ×-Rel _≈₂_) (×-Lex _≈₁_ _≤₁_ _≤₂_) ×-antisymmetric {_≈₁_ = _≈₁_} {_≤₁_ = _≤₁_} po₁ {_≤₂_ = _≤₂_} antisym₂ {x} {y} = Strict.×-antisymmetric {_<₁_ = Conv._<_ _≈₁_ _≤₁_} ≈-sym₁ irrefl₁ asym₁ {_≤₂_ = _≤₂_} antisym₂ {x} {y} where open IsPartialOrder po₁ open Eq renaming (refl to ≈-refl₁; sym to ≈-sym₁) irrefl₁ : Irreflexive _≈₁_ (Conv._<_ _≈₁_ _≤₁_) irrefl₁ = Conv.irrefl _≈₁_ _≤₁_ asym₁ : Asymmetric (Conv._<_ _≈₁_ _≤₁_) asym₁ = trans∧irr⟶asym {_≈_ = _≈₁_} ≈-refl₁ (Conv.trans _ _ po₁) irrefl₁ ×-≈-respects₂ : ∀ {_≈₁_ _≤₁_} → IsEquivalence _≈₁_ → _≤₁_ Respects₂ _≈₁_ → ∀ {_≈₂_ _≤₂_ : Rel A₂ ℓ₂} → _≤₂_ Respects₂ _≈₂_ → (×-Lex _≈₁_ _≤₁_ _≤₂_) Respects₂ (_≈₁_ ×-Rel _≈₂_) ×-≈-respects₂ eq₁ resp₁ resp₂ = Strict.×-≈-respects₂ eq₁ (Conv.<-resp-≈ _ _ eq₁ resp₁) resp₂ ×-decidable : ∀ {_≈₁_ _≤₁_} → Decidable _≈₁_ → Decidable _≤₁_ → ∀ {_≤₂_} → Decidable _≤₂_ → Decidable (×-Lex _≈₁_ _≤₁_ _≤₂_) ×-decidable dec-≈₁ dec-≤₁ dec-≤₂ = Strict.×-decidable dec-≈₁ (Conv.decidable _ _ dec-≈₁ dec-≤₁) dec-≤₂ ×-total : ∀ {_≈₁_ _≤₁_} → Symmetric _≈₁_ → Decidable _≈₁_ → Antisymmetric _≈₁_ _≤₁_ → Total _≤₁_ → ∀ {_≤₂_} → Total _≤₂_ → Total (×-Lex _≈₁_ _≤₁_ _≤₂_) ×-total {_≈₁_ = _≈₁_} {_≤₁_ = _≤₁_} sym₁ dec₁ antisym₁ total₁ {_≤₂_ = _≤₂_} total₂ = total where tri₁ : Trichotomous _≈₁_ (Conv._<_ _≈₁_ _≤₁_) tri₁ = Conv.trichotomous _ _ sym₁ dec₁ antisym₁ total₁ total : Total (×-Lex _≈₁_ _≤₁_ _≤₂_) total x y with tri₁ (proj₁ x) (proj₁ y) ... | tri< x₁<y₁ x₁≉y₁ x₁≯y₁ = inj₁ (inj₁ x₁<y₁) ... | tri> x₁≮y₁ x₁≉y₁ x₁>y₁ = inj₂ (inj₁ x₁>y₁) ... | tri≈ x₁≮y₁ x₁≈y₁ x₁≯y₁ with total₂ (proj₂ x) (proj₂ y) ... | inj₁ x₂≤y₂ = inj₁ (inj₂ (x₁≈y₁ , x₂≤y₂)) ... | inj₂ x₂≥y₂ = inj₂ (inj₂ (sym₁ x₁≈y₁ , x₂≥y₂)) -- Some collections of properties which are preserved by ×-Lex -- (under certain assumptions). _×-isPartialOrder_ : ∀ {_≈₁_ _≤₁_} → IsPartialOrder _≈₁_ _≤₁_ → ∀ {_≈₂_ _≤₂_} → IsPartialOrder _≈₂_ _≤₂_ → IsPartialOrder (_≈₁_ ×-Rel _≈₂_) (×-Lex _≈₁_ _≤₁_ _≤₂_) _×-isPartialOrder_ {_≈₁_ = _≈₁_} {_≤₁_ = _≤₁_} po₁ {_≤₂_ = _≤₂_} po₂ = record { isPreorder = record { isEquivalence = Pointwise._×-isEquivalence_ (isEquivalence po₁) (isEquivalence po₂) ; reflexive = λ {x y} → ×-reflexive _≈₁_ _≤₁_ _≤₂_ (reflexive po₂) {x} {y} ; trans = λ {x y z} → ×-transitive po₁ {_≤₂_ = _≤₂_} (trans po₂) {x} {y} {z} } ; antisym = λ {x y} → ×-antisymmetric {_≤₁_ = _≤₁_} po₁ {_≤₂_ = _≤₂_} (antisym po₂) {x} {y} } where open IsPartialOrder ×-isTotalOrder : ∀ {_≈₁_ _≤₁_} → Decidable _≈₁_ → IsTotalOrder _≈₁_ _≤₁_ → ∀ {_≈₂_ _≤₂_} → IsTotalOrder _≈₂_ _≤₂_ → IsTotalOrder (_≈₁_ ×-Rel _≈₂_) (×-Lex _≈₁_ _≤₁_ _≤₂_) ×-isTotalOrder {_≤₁_ = _≤₁_} ≈₁-dec to₁ {_≤₂_ = _≤₂_} to₂ = record { isPartialOrder = isPartialOrder to₁ ×-isPartialOrder isPartialOrder to₂ ; total = ×-total {_≤₁_ = _≤₁_} (Eq.sym to₁) ≈₁-dec (antisym to₁) (total to₁) {_≤₂_ = _≤₂_} (total to₂) } where open IsTotalOrder _×-isDecTotalOrder_ : ∀ {_≈₁_ _≤₁_} → IsDecTotalOrder _≈₁_ _≤₁_ → ∀ {_≈₂_ _≤₂_} → IsDecTotalOrder _≈₂_ _≤₂_ → IsDecTotalOrder (_≈₁_ ×-Rel _≈₂_) (×-Lex _≈₁_ _≤₁_ _≤₂_) _×-isDecTotalOrder_ {_≤₁_ = _≤₁_} to₁ {_≤₂_ = _≤₂_} to₂ = record { isTotalOrder = ×-isTotalOrder (_≟_ to₁) (isTotalOrder to₁) (isTotalOrder to₂) ; _≟_ = Pointwise._×-decidable_ (_≟_ to₁) (_≟_ to₂) ; _≤?_ = ×-decidable (_≟_ to₁) (_≤?_ to₁) (_≤?_ to₂) } where open IsDecTotalOrder -- "Packages" (e.g. posets) can also be combined. _×-poset_ : ∀ {p₁ p₂ p₃ p₄} → Poset p₁ p₂ _ → Poset p₃ p₄ _ → Poset _ _ _ p₁ ×-poset p₂ = record { isPartialOrder = isPartialOrder p₁ ×-isPartialOrder isPartialOrder p₂ } where open Poset _×-totalOrder_ : ∀ {d₁ d₂ t₃ t₄} → DecTotalOrder d₁ d₂ _ → TotalOrder t₃ t₄ _ → TotalOrder _ _ _ t₁ ×-totalOrder t₂ = record { isTotalOrder = ×-isTotalOrder T₁._≟_ T₁.isTotalOrder T₂.isTotalOrder } where module T₁ = DecTotalOrder t₁ module T₂ = TotalOrder t₂ _×-decTotalOrder_ : ∀ {d₁ d₂ d₃ d₄} → DecTotalOrder d₁ d₂ _ → DecTotalOrder d₃ d₄ _ → DecTotalOrder _ _ _ t₁ ×-decTotalOrder t₂ = record { isDecTotalOrder = isDecTotalOrder t₁ ×-isDecTotalOrder isDecTotalOrder t₂ } where open DecTotalOrder
src/Tactic/Deriving/Eq.agda
lclem/agda-prelude
0
8999
<gh_stars>0 open import Prelude hiding (abs) open import Container.List open import Container.Traversable open import Tactic.Reflection hiding (substArgs) renaming (unify to unifyTC) open import Tactic.Reflection.Equality open import Tactic.Deriving module Tactic.Deriving.Eq where _∋_ : ∀ {a} (A : Set a) → A → A A ∋ x = x private -- Pattern synonyms -- infix 5 _`≡_ pattern _`≡_ x y = def₂ (quote _≡_) x y pattern `subst x y z = def₃ (quote transport) x y z pattern `refl = con (quote refl) [] pattern `Eq a = def (quote Eq) (vArg a ∷ []) pattern vLam s t = lam visible (abs s t) -- Helper functions -- nLam : ∀ {A} → List (Arg A) → Term → Term nLam [] t = t nLam (arg (arg-info v _) s ∷ tel) t = lam v (abs "x" (nLam tel t)) nPi : ∀ {A} → List (Arg A) → Term → Term nPi [] t = t nPi (arg i _ ∷ tel) t = pi (arg i unknown) (abs "x" (nPi tel t)) newArgs : ∀ {A} → List (Arg A) → List (Arg Term) newArgs {A} tel = newArgsFrom (length tel) tel where newArgsFrom : Nat → List (Arg A) → List (Arg Term) newArgsFrom (suc n) (arg i _ ∷ tel) = arg i (var n []) ∷ newArgsFrom n tel newArgsFrom _ _ = [] hideTel : ∀ {A} → List (Arg A) → List (Arg A) hideTel [] = [] hideTel (arg (arg-info _ r) t ∷ tel) = arg (arg-info hidden r) t ∷ hideTel tel weakenTelFrom : (from n : Nat) → Telescope → Telescope weakenTelFrom from n [] = [] weakenTelFrom from n (t ∷ tel) = weakenFrom from n t ∷ weakenTelFrom (suc from) n tel weakenTel : (n : Nat) → Telescope → Telescope weakenTel 0 = id weakenTel n = weakenTelFrom 0 n #pars : (d : Name) → TC Nat #pars = getParameters argsTel : (c : Name) → TC Telescope argsTel c = caseM telView <$> getType c of λ { (tel , def d ixs) → flip drop tel <$> #pars d ; (tel , _ ) → pure tel } #args : (c : Name) → TC Nat #args c = length <$> argsTel c params : (c : Name) → TC (List (Arg Type)) params c = telView <$> getType c >>= λ { (tel , def d ixs) → flip take tel <$> #pars d ; _ → pure [] } -- Parallel substitution -- Substitution : Set Substitution = List (Nat × Term) underLambda : Substitution → Substitution underLambda = map (λ { (i , t) → suc i , weaken 1 t }) {-# TERMINATING #-} subst : Substitution → Term → Term apply : Term → List (Arg Term) → Term substArgs : Substitution → List (Arg Term) → List (Arg Term) subst sub (var x args) = case (lookup sub x) of λ { (just s) → apply s (substArgs sub args) ; nothing → var x (substArgs sub args) } subst sub (con c args) = con c (substArgs sub args) subst sub (def f args) = def f (substArgs sub args) subst sub (lam v t) = lam v (fmap (subst (underLambda sub)) t) subst sub (lit l) = lit l subst sub _ = unknown -- TODO apply f [] = f apply (var x args) xs = var x (args ++ xs) apply (con c args) xs = con c (args ++ xs) apply (def f args) xs = def f (args ++ xs) apply (lam _ (abs _ t)) (arg _ x ∷ xs) = case (strengthen 1 (subst ((0 , weaken 1 x) ∷ []) t)) of λ { (just f) → apply f xs ; nothing → unknown } apply _ _ = unknown -- TODO substArgs sub = map (fmap (subst sub)) -- Unification of datatype indices -- data Unify : Set where positive : List (Nat × Term) → Unify negative : Unify failure : ∀ {a} {A : Set a} → String → TC A failure s = typeErrorS ("Unification error when deriving Eq: " & s) _&U_ : Unify → Unify → Unify (positive xs) &U (positive ys) = positive (xs ++ ys) (positive _) &U negative = negative negative &U (positive _) = negative negative &U negative = negative {-# TERMINATING #-} unify : Term → Term → TC Unify unifyArgs : List (Arg Term) → List (Arg Term) → TC Unify unify s t with s == t unify s t | yes _ = pure (positive []) unify (var x []) (var y []) | no _ = if (x <? y) -- In var-var case, instantiate the one that is bound the closest to us. then pure (positive ((x , var y []) ∷ [])) else pure (positive ((y , var x []) ∷ [])) unify (var x []) t | no _ = if (elem x (freeVars t)) then failure "cyclic occurrence" -- We don't currently know if the occurrence is rigid or not else pure (positive ((x , t) ∷ [])) unify t (var x []) | no _ = if (elem x (freeVars t)) then failure "cyclic occurrence" else pure (positive ((x , t) ∷ [])) unify (con c₁ xs₁) (con c₂ xs₂) | no _ = if (isYes (c₁ == c₂)) then unifyArgs xs₁ xs₂ else pure negative unify _ _ | no _ = failure "not a constructor or a variable" unifyArgs [] [] = pure (positive []) unifyArgs [] (_ ∷ _) = failure "panic: different number of arguments" unifyArgs (_ ∷ _) [] = failure "panic: different number of arguments" unifyArgs (arg v₁ x ∷ xs) (arg v₂ y ∷ ys) = if isYes (_==_ {{EqArgInfo}} v₁ v₂) then (unify x y >>= λ { (positive sub) → (positive sub &U_) <$> unifyArgs (substArgs sub xs) (substArgs sub ys) ; negative → pure negative }) else failure "panic: hiding mismatch" unifyIndices : (c₁ c₂ : Name) → TC Unify unifyIndices c₁ c₂ = do let panic = failure "panic: constructor type doesn't end in a def" tel₁ , def d₁ xs₁ ← telView <$> getType c₁ where _ → panic tel₂ , def d₂ xs₂ ← telView <$> getType c₂ where _ → panic n₁ ← #pars d₁ n₂ ← #pars d₂ let ixs₁ = drop n₁ xs₁ ixs₂ = drop n₂ xs₂ unifyArgs (weaken (length tel₂ - n₂) ixs₁) -- weaken all variables of first constructor by number of arguments of second constructor (weakenFrom (length tel₂ - n₂) (length tel₁ - n₁) ixs₂) -- weaken parameters of second constructor by number of arguments of first constructor -- Analysing constructor types -- forcedArgs : (c : Name) → TC (List Nat) forcedArgs c = caseM (unifyIndices c c) of λ { (positive xs) → pure (map fst xs) ; _ → pure [] } data Forced : Set where forced free : Forced instance DeBruijnForced : DeBruijn Forced strengthenFrom {{DeBruijnForced}} _ _ = just weakenFrom {{DeBruijnForced}} _ _ = id DeBruijnProd : {A B : Set} {{_ : DeBruijn A}} {{_ : DeBruijn B}} → DeBruijn (A × B) strengthenFrom {{DeBruijnProd}} m n (x , y) = ⦇ strengthenFrom m n x , strengthenFrom m n y ⦈ weakenFrom {{DeBruijnProd}} m n (x , y) = weakenFrom m n x , weakenFrom m n y RemainingArgs : Nat → Set RemainingArgs = Vec (Arg (Forced × Term × Term)) leftArgs : ∀ {n} → RemainingArgs n → List (Arg Term) leftArgs = map (fmap (fst ∘ snd)) ∘ vecToList rightArgs : ∀ {n} → RemainingArgs n → List (Arg Term) rightArgs = map (fmap (snd ∘ snd)) ∘ vecToList classifyArgs : (c : Name) → TC (Σ Nat RemainingArgs) classifyArgs c = do #argsc ← #args c forcedc ← forcedArgs c let #freec = #argsc - length forcedc _,_ _ ∘ classify #freec forcedc (#argsc - 1) (#freec - 1) <$> argsTel c -- The final argument should be (weakenTel (#argsc + #freec) (argsTel c)), -- but we don't really care about the types of the arguments anyway. where classify : Nat → List Nat → (m n : Nat) (tel : List (Arg Type)) → RemainingArgs (length tel) classify _ _ m n [] = [] classify #freec forcedc m n (arg i ty ∷ tel) = if (elem m forcedc) then arg i (forced , var (#freec + m) [] , var (#freec + m) []) ∷ classify #freec forcedc (m - 1) n tel else arg i (free , var (#freec + m) [] , var n []) ∷ classify #freec forcedc (m - 1) (n - 1) tel rightArgsFree : ∀ {n} → RemainingArgs n → List (Arg Term) rightArgsFree [] = [] rightArgsFree (arg _ (forced , _ , _) ∷ xs) = rightArgsFree xs rightArgsFree (arg i (free , _ , x) ∷ xs) = arg i x ∷ rightArgsFree xs countFree : ∀ {n} → RemainingArgs n → Nat countFree xs = length (rightArgsFree xs) refreshArgs : ∀ {n} → RemainingArgs n → RemainingArgs n refreshArgs xs = refresh (nfree - 1) xs where nfree = countFree xs refresh : ∀ {n} → Nat → RemainingArgs n → RemainingArgs n refresh n [] = [] refresh n (arg i (forced , x , y) ∷ xs) = arg i (forced , x , y) ∷ refresh n xs refresh n (arg i (free , x , y) ∷ xs) = arg i (free , x , var n []) ∷ refresh (n - 1) xs -- Matching constructor case -- caseDec : ∀ {a b} {A : Set a} {B : Set b} → Dec A → (A → B) → (¬ A → B) → B caseDec (yes x) y n = y x caseDec (no x) y n = n x checkEqArgs : ∀ {n} (c : Name) (xs : List (Arg Term)) (ys : RemainingArgs n) → Term checkEqArgs c xs (arg i (forced , y , z) ∷ args) = checkEqArgs c (xs ++ [ arg i y ]) args checkEqArgs {suc remainingArgs} c xs (arg i (free , y , z) ∷ args) = def₃ (quote caseDec) (def₂ (quote _==_) y z) (vLam "x≡y" checkEqArgsYes) (vLam "x≢y" checkEqArgsNo) where remainingFree = countFree args wk : {A : Set} {{_ : DeBruijn A}} → Nat → A → A wk k = weaken (k + remainingFree) checkEqArgsYes : Term checkEqArgsYes = def (quote transport) ( (vArg (vLam "x" (nPi (rightArgsFree args) (def₁ (quote Dec) (wk 2 (con c (xs ++ arg i y ∷ (leftArgs args))) `≡ con c (wk 2 xs ++ arg i (var remainingFree []) ∷ rightArgs (refreshArgs (wk 2 args)))))))) ∷ (vArg (var 0 [])) ∷ (vArg (nLam (rightArgsFree args) (checkEqArgs c (wk 1 (xs ++ [ arg i y ])) (refreshArgs (wk 1 args))))) ∷ weaken 1 (rightArgsFree args)) checkEqArgsNo : Term checkEqArgsNo = con₁ (quote no) (vLam "eq" (var 1 (vArg (def₃ (quote _∋_) (nPi (hideTel (arg i z ∷ rightArgsFree args)) (weaken (3 + remainingFree) (con c (xs ++ arg i y ∷ leftArgs args)) `≡ con c (wk 3 xs ++ arg i (var remainingFree []) ∷ rightArgs (refreshArgs (wk 3 args))) `→ wk 4 y `≡ var (1 + remainingFree) [])) (pat-lam (clause (replicate (1 + remainingFree) (hArg dot) ++ vArg `refl ∷ []) `refl ∷ []) []) (var 0 [])) ∷ []))) checkEqArgs _ _ _ = con₁ (quote yes) (con₀ (quote refl)) matchingClause : (c : Name) → TC Clause matchingClause c = do _ , args ← classifyArgs c paramPats ← map (fmap λ _ → var "A") ∘ hideTel <$> params c params ← makeParams args pure (clause (paramPats ++ vArg (con c (makeLeftPattern args)) ∷ vArg (con c (makeRightPattern args)) ∷ []) (checkEqArgs c params args)) where args = classifyArgs c makeParamsPats : TC (List (Arg Pattern)) makeParamsPats = map (fmap λ _ → var "A") ∘ hideTel <$> params c makeParams : ∀ {n} → RemainingArgs n → TC (List (Arg Term)) makeParams args = do ps ← params c pure (weaken (length (vecToList args) + countFree args) (newArgs ps)) makeLeftPattern : ∀ {n} → RemainingArgs n → List (Arg Pattern) makeLeftPattern [] = [] makeLeftPattern (arg i _ ∷ xs) = arg i (var "x") ∷ makeLeftPattern xs makeRightPattern : ∀ {n} → RemainingArgs n → List (Arg Pattern) makeRightPattern [] = [] makeRightPattern (arg i (forced , _ , _) ∷ xs) = arg i dot ∷ makeRightPattern xs makeRightPattern (arg i (free , _ , _) ∷ xs) = arg i (var "y") ∷ makeRightPattern xs -- Mismatching constructor case -- mismatchingClause : (c₁ c₂ : Name) (fs : List Nat) → TC Clause mismatchingClause c₁ c₂ fs = do args₁ ← argsTel c₁ args₂ ← argsTel c₂ let #args₁ = length args₁ #args₂ = length args₂ pure (clause (vArg (con c₁ (makePattern (#args₁ + #args₂ - 1) args₁)) ∷ vArg (con c₂ (makePattern (#args₂ - 1) args₂)) ∷ []) (con (quote no) ([ vArg (pat-lam ([ absurd-clause ([ vArg absurd ]) ]) []) ]))) where makePattern : (k : Nat) (args : List (Arg Type)) → List (Arg Pattern) makePattern k [] = [] makePattern k (arg i _ ∷ args) = (if (elem k fs) then (arg i dot) else arg i (var "x")) ∷ makePattern (k - 1) args -- Clauses -- makeClause : (c₁ c₂ : Name) → TC (List Clause) makeClause c₁ c₂ = case (c₁ == c₂) of λ { (yes _) → _∷ [] <$> matchingClause c₁ ; (no _) → caseM (unifyIndices c₁ c₂) of λ { (positive fs) → _∷ [] <$> mismatchingClause c₁ c₂ (map fst fs) ; _ → pure [] } } constructorPairs : (d : Name) → TC (List (Name × Name)) constructorPairs d = caseM getDefinition d of λ { (data-type _ cs) → pure $ concat (map (λ c₁ → map (_,_ c₁) cs) cs) ; _ → pure [] } eqDefinition : (d : Name) → TC (List Clause) eqDefinition d = concat <$> (mapM (uncurry makeClause) =<< constructorPairs d) makeArgs : Nat → List (Arg Nat) → List (Arg Term) makeArgs n xs = reverse $ map (fmap (λ i → var (n - i - 1) [])) xs computeInstanceType : Nat → List (Arg Nat) → Type → Maybe Term computeInstanceType n xs (agda-sort _) = just (`Eq (var n (makeArgs n xs))) computeInstanceType n xs (pi a (abs s b)) = pi (hArg (unArg a)) ∘ abs s <$> computeInstanceType (suc n) ((n <$ a) ∷ xs) b computeInstanceType _ _ _ = nothing computeType : Name → Nat → List (Arg Nat) → Telescope → Telescope → Term computeType d n xs is [] = telPi (reverse is) $ def d (makeArgs (n + k) xs) `→ def d (makeArgs (n + k + 1) xs) `→ def₁ (quote Dec) (var 1 [] `≡ var 0 []) where k = length is computeType d n xs is (a ∷ tel) = unArg a `→ʰ (case computeInstanceType 0 [] (weaken 1 $ unArg a) of λ { (just i) → computeType d (1 + n) ((n <$ a) ∷ xs) (iArg (weaken (length is) i) ∷ weaken 1 is) tel ; nothing → computeType d (1 + n) ((n <$ a) ∷ xs) (weaken 1 is) tel }) eqType : Name → TC Type eqType d = computeType d 0 [] [] ∘ fst ∘ telView <$> getType d macro deriveEqType : Name → Tactic deriveEqType d hole = unifyTC hole =<< (computeType d 0 [] [] ∘ fst ∘ telView <$> getType d) deriveEqDef : Name → Name → TC ⊤ deriveEqDef i d = defineFun i =<< eqDefinition d declareEqInstance : Name → Name → TC ⊤ declareEqInstance iname d = declareDef (iArg iname) =<< instanceType d (quote Eq) defineEqInstance : Name → Name → TC ⊤ defineEqInstance iname d = do fname ← freshName ("_==[" & show d & "]_") declareDef (vArg fname) =<< eqType d dictCon ← recordConstructor (quote Eq) defineFun iname (clause [] (con₁ dictCon (def₀ fname)) ∷ []) defineFun fname =<< eqDefinition d return _ deriveEq : Name → Name → TC ⊤ deriveEq iname d = declareEqInstance iname d >> defineEqInstance iname d
ada/src/afrl/cmasi/afrl-cmasi-abstractgeometry.adb
joffreyhuguet/LmcpGen
0
20257
package body afrl.cmasi.abstractGeometry is function getFullLmcpTypeName(this : AbstractGeometry) return String is ("afrl.cmasi.abstractGeometry.AbstractGeometry"); function getLmcpTypeName(this : AbstractGeometry) return String is ("AbstractGeometry"); function getLmcpType(this : AbstractGeometry) return UInt32_t is (CMASIEnum'Pos(ABSTRACTGEOMETRY_ENUM)); end afrl.cmasi.abstractGeometry;
src/sdl-events-events.ads
treggit/sdlada
89
16353
<reponame>treggit/sdlada<filename>src/sdl-events-events.ads<gh_stars>10-100 -------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- including commercial applications, and to alter it and redistribute it -- freely, subject to the following restrictions: -- -- 1. The origin of this software must not be misrepresented; you must not -- claim that you wrote the original software. If you use this software -- in a product, an acknowledgment in the product documentation would be -- appreciated but is not required. -- -- 2. Altered source versions must be plainly marked as such, and must not be -- misrepresented as being the original software. -- -- 3. This notice may not be removed or altered from any source -- distribution. -------------------------------------------------------------------------------------------------------------------- -- SDL.Events.Events -- -- Combines all of the various event types into a single variant record to match the union in the SDL library. Not -- the nicest of names for the package, but it works. -------------------------------------------------------------------------------------------------------------------- with SDL.Events.Windows; with SDL.Events.Keyboards; with SDL.Events.Mice; with SDL.Events.Joysticks; with SDL.Events.Controllers; with SDL.Events.Touches; with SDL.Events.Files; package SDL.Events.Events is pragma Preelaborate; type Event_Selector is (Is_Event, Is_Window_Event, Is_Keyboard_Event, Is_Text_Editing_Event, Is_Text_Input_Event, Is_Mouse_Motion_Event, Is_Mouse_Button_Event, Is_Mouse_Wheel_Event, Is_Joystick_Axis_Event, Is_Joystick_Ball_Event, Is_Joystick_Hat_Event, Is_Joystick_Button_Event, Is_Joystick_Device_Event, Is_Controller_Axis_Event, Is_Controller_Button_Event, Is_Controller_Device_Event, Is_Touch_Finger_Event, Is_Touch_Multi_Gesture_Event, Is_Touch_Dollar_Gesture, Is_Drop_Event); type Events (Event_Type : Event_Selector := Is_Event) is record case Event_Type is when Is_Window_Event => Window : SDL.Events.Windows.Window_Events; when Is_Keyboard_Event => Keyboard : SDL.Events.Keyboards.Keyboard_Events; when Is_Text_Editing_Event => Text_Editing : SDL.Events.Keyboards.Text_Editing_Events; when Is_Text_Input_Event => Text_Input : SDL.Events.Keyboards.Text_Input_Events; when Is_Mouse_Motion_Event => Mouse_Motion : SDL.Events.Mice.Motion_Events; when Is_Mouse_Button_Event => Mouse_Button : SDL.Events.Mice.Button_Events; when Is_Mouse_Wheel_Event => Mouse_Wheel : SDL.Events.Mice.Wheel_Events; when Is_Joystick_Axis_Event => Joystick_Axis : SDL.Events.Joysticks.Axis_Events; when Is_Joystick_Ball_Event => Joystick_Ball : SDL.Events.Joysticks.Ball_Events; when Is_Joystick_Hat_Event => Joystick_Hat : SDL.Events.Joysticks.Hat_Events; when Is_Joystick_Button_Event => Joystick_Button : SDL.Events.Joysticks.Button_Events; when Is_Joystick_Device_Event => Joystick_Device : SDL.Events.Joysticks.Device_Events; when Is_Controller_Axis_Event => Controller_Axis : SDL.Events.Controllers.Axis_Events; when Is_Controller_Button_Event => Controller_Button : SDL.Events.Controllers.Button_Events; when Is_Controller_Device_Event => Controller_Device : SDL.Events.Controllers.Device_Events; when Is_Touch_Finger_Event => Touch_Finger : SDL.Events.Touches.Finger_Events; when Is_Touch_Multi_Gesture_Event => Touch_Multi_Gesture : SDL.Events.Touches.Multi_Gesture_Events; when Is_Touch_Dollar_Gesture => Touch_Dollar_Gesture : SDL.Events.Touches.Dollar_Events; when Is_Drop_Event => Drop : SDL.Events.Files.Drop_Events; when others => Common : Common_Events; end case; end record with Unchecked_Union, Convention => C; -- Some error occurred while polling/waiting for events. Event_Error : exception; -- Poll for currently pending events. -- -- If the are any pending events, the next event is removed from the queue -- and stored in Event, and then this returns True. Otherwise, this does -- nothing and returns False. function Poll (Event : out Events) return Boolean with Inline => True; -- Wait until an event is pending. -- -- If there are any pending events, the next event is removed from -- the queue and stored in Event. procedure Wait (Event : out Events); end SDL.Events.Events;
programs/oeis/137/A137885.asm
neoneye/loda
22
92732
; A137885: Number of directed Hamiltonian paths in the 2n-crossed prism graph. ; 144,576,1920,5760,16128,43008,110592,276480,675840,1622016,3833856,8945664,20643840,47185920,106954752,240648192,537919488,1195376640,2642411520,5813305344,12733906944,27783069696,60397977600,130862284800,282662535168,608811614208 mov $1,$0 add $1,3 bin $1,2 mov $2,2 pow $2,$0 mul $1,$2 mov $0,$1 mul $0,48
0x06_libc/libc_01.nasm
bigb0sss/b0ssTheASM
2
29286
; Executable name : libc_01 ; Version : 1.0 ; Created date : 05/30/2020 ; Last update : 05/30/2020 ; Author : bigb0ss ; Description. : Print "Hello World!" using libc ; ; ; Defining libc functions that I want to use extern printf extern exit global main ; For libc, use the starting point as "main" instead of "_start" section .text main push message ; Pushing the message location on the stack call printf ; Calling the printf from the libc add esp, 0x4 ; Adjusting the stack address mov eax, 0xa call exit ; Calling the exit from the libc section .data message: db "Hello World!", 0xA, 0x00 mlen equ $-message
sendText.applescript
fabiopigi/iMessageSpam
0
4303
<gh_stars>0 on run argv tell application "Messages" set contact to buddy (item 1 of argv) of service "E:<EMAIL>" set mes to (item 2 of argv) send mes to contact end tell end run
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32001b.ada
best08618/asylo
7
4054
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32001b.ada -- C32001B.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 IN MULTIPLE OBJECT DECLARATIONS FOR ARRAY TYPES, THE -- SUBTYPE INDICATION AND THE INITIALIZATION EXPRESSIONS ARE -- EVALUATED ONCE FOR EACH NAMED OBJECT THAT IS DECLARED AND THE -- SUBTYPE INDICATION IS EVALUATED FIRST. ALSO, CHECK THAT THE -- EVALUATIONS YIELD THE SAME RESULT AS A SEQUENCE OF SINGLE OBJECT -- DECLARATIONS. -- HISTORY: -- RJW 07/16/86 CREATED ORIGINAL TEST. -- BCB 08/18/87 CHANGED HEADER TO STANDARD HEADER FORMAT. CHANGED -- COMMENTS FOR S4 AND CS4 TO READ THAT THE BOUNDS ARE -- 1 .. 6 AND THE COMPONENT TYPE ARR IS 1 .. 5. WITH REPORT; USE REPORT; PROCEDURE C32001B IS TYPE ARR IS ARRAY (NATURAL RANGE <>) OF INTEGER; BUMP : ARRAY (1 .. 4) OF INTEGER := (0, 0, 0, 0); FUNCTION F (I : INTEGER) RETURN INTEGER IS BEGIN BUMP (I) := BUMP (I) + 1; RETURN BUMP (I); END F; BEGIN TEST ("C32001B", "CHECK THAT IN MULTIPLE OBJECT DECLARATIONS " & "FOR ARRAY TYPES, THE SUBTYPE INDICATION " & "AND THE INITIALIZATION EXPRESSIONS ARE " & "EVALUATED ONCE FOR EACH NAMED OBJECT THAT " & "IS DECLARED AND THE SUBTYPE INDICATION IS " & "EVALUATED FIRST. ALSO, CHECK THAT THE " & "EVALUATIONS YIELD THE SAME RESULT AS A " & "SEQUENCE OF SINGLE OBJECT DECLARATIONS" ); DECLARE S1, S2 : ARR (1 .. F (1)) := (OTHERS => F (1)); CS1, CS2 : CONSTANT ARR (1 .. F (2)) := (OTHERS => F (2)); PROCEDURE CHECK (A, B : ARR; STR1, STR2 : STRING) IS BEGIN IF A'LAST /= 1 THEN FAILED ( "INCORRECT UPPER BOUND FOR " & STR1 ); END IF; IF A (1) /= 2 THEN FAILED ( "INCORRECT INITIAL VALUE FOR " & STR1 ); END IF; IF B'LAST /= 3 THEN FAILED ( "INCORRECT UPPER BOUND FOR " & STR2 ); END IF; BEGIN IF B (1 .. 3) = (4, 5, 6) THEN COMMENT ( STR2 & " WAS INITIALIZED TO " & "(4, 5, 6)" ); ELSIF B (1 .. 3) = (5, 4, 6) THEN COMMENT ( STR2 & " WAS INITIALIZED TO " & "(5, 4, 6)" ); ELSIF B (1 .. 3) = (4, 6, 5) THEN COMMENT ( STR2 & " WAS INITIALIZED TO " & "(4, 6, 5)" ); ELSIF B (1 .. 3) = (6, 4, 5) THEN COMMENT ( STR2 & " WAS INITIALIZED TO " & "(6, 4, 5)" ); ELSIF B (1 .. 3) = (6, 5, 4) THEN COMMENT ( STR2 & " WAS INITIALIZED TO " & "(6, 5, 4)" ); ELSIF B (1 .. 3) = (5, 6, 4) THEN COMMENT ( STR2 & " WAS INITIALIZED TO " & "(5, 6, 4)" ); ELSE FAILED ( STR2 & " HAS INCORRECT INITIAL " & "VALUE" ); END IF; EXCEPTION WHEN CONSTRAINT_ERROR => FAILED ( "CONSTRAINT_ERROR RAISED - " & STR2 ); WHEN OTHERS => FAILED ( "EXCEPTION RAISED - " & STR2 ); END; END; BEGIN CHECK (S1, S2, "S1", "S2"); CHECK (CS1, CS2, "CS1", "CS2"); END; DECLARE S3, S4 : ARRAY (1 .. F (3)) OF ARR (1 .. F (3)) := (OTHERS => (OTHERS => F (3))); CS3, CS4 : CONSTANT ARRAY (1.. F (4)) OF ARR (1 .. F (4)) := (OTHERS => (OTHERS => F (4))); BEGIN IF S3'LAST = 1 THEN IF S3 (1)'LAST = 2 THEN COMMENT ( "S3 HAS BOUNDS 1 .. 1 AND " & "COMPONENT TYPE ARR (1 .. 2)" ); IF S3 (1)(1 .. 2) = (3, 4) THEN COMMENT ( "S3 HAS INITIAL VALUES " & "3 AND 4 - 1" ); ELSIF S3 (1)(1 .. 2) = (4, 3) THEN COMMENT ( "S3 HAS INITIAL VALUES " & "4 AND 3 - 1" ); ELSE FAILED ( "S3 HAS WRONG INITIAL VALUES - 1" ); END IF; ELSE FAILED ( "S3 HAS WRONG COMPONENT TYPE - 1" ); END IF; ELSIF S3'LAST = 2 THEN IF S3 (1)'LAST = 1 THEN COMMENT ( "S3 HAS BOUNDS 1 .. 2 AND " & "COMPONENT TYPE ARR (1 .. 1)" ); IF S3 (1) (1) = 3 AND S3 (2) (1) = 4 THEN COMMENT ( "S3 HAS INITIAL VALUES " & "3 AND 4 - 2" ); ELSIF S3 (1) (1) = 4 AND S3 (2) (1) = 3 THEN COMMENT ( "S3 HAS INITIAL VALUES " & "4 AND 3 - 2" ); ELSE FAILED ( "S3 HAS WRONG INITIAL VALUES - 2" ); END IF; ELSE FAILED ( "S3 HAS WRONG COMPONENT TYPE - 2" ); END IF; ELSE FAILED ( "S3 HAS INCORRECT BOUNDS" ); END IF; IF S4'LAST = 5 THEN IF S4 (1)'LAST = 6 THEN COMMENT ( "S4 HAS BOUNDS 1 .. 5 AND " & "COMPONENT TYPE ARR (1 .. 6)" ); ELSE FAILED ( "S4 HAS WRONG COMPONENT TYPE - 1" ); END IF; ELSIF S4'LAST = 6 THEN IF S4 (1)'FIRST = 1 AND S4 (1)'LAST = 5 THEN COMMENT ( "S4 HAS BOUNDS 1 .. 6 AND " & "COMPONENT TYPE ARR (1 .. 5)" ); ELSE FAILED ( "S4 HAS WRONG COMPONENT TYPE - 2" ); END IF; ELSE FAILED ( "S4 HAS INCORRECT BOUNDS" ); END IF; IF BUMP (3) /= 36 THEN FAILED ( "FUNCTION F NOT INVOKED CORRECT NUMBER OF " & "TIMES TO INITIALIZE S4" ); END IF; IF CS3'FIRST = 1 AND CS3'LAST = 1 THEN IF CS3 (1)'FIRST = 1 AND CS3 (1)'LAST = 2 THEN COMMENT ( "CS3 HAS BOUNDS 1 .. 1 AND " & "COMPONENT TYPE ARR (1 .. 2)" ); IF CS3 (1)(1 .. 2) = (3, 4) THEN COMMENT ( "CS3 HAS INITIAL VALUES " & "3 AND 4 - 1" ); ELSIF CS3 (1)(1 .. 2) = (4, 3) THEN COMMENT ( "CS3 HAS INITIAL VALUES " & "4 AND 3 - 1" ); ELSE FAILED ( "CS3 HAS WRONG INITIAL VALUES - 1" ); END IF; ELSE FAILED ( "CS3 HAS WRONG COMPONENT TYPE - 1" ); END IF; ELSIF CS3'FIRST = 1 AND CS3'LAST = 2 THEN IF CS3 (1)'FIRST = 1 AND CS3 (1)'LAST = 1 THEN COMMENT ( "CS3 HAS BOUNDS 1 .. 2 AND " & "COMPONENT TYPE ARR (1 .. 1)" ); IF CS3 (1) (1) = 3 AND CS3 (2) (1) = 4 THEN COMMENT ( "CS3 HAS INITIAL VALUES " & "3 AND 4 - 2" ); ELSIF CS3 (1) (1) = 4 AND CS3 (2) (1) = 3 THEN COMMENT ( "CS3 HAS INITIAL VALUES " & "4 AND 3 - 2" ); ELSE FAILED ( "CS3 HAS WRONG INITIAL VALUES - 2" ); END IF; ELSE FAILED ( "CS3 HAS WRONG COMPONENT TYPE - 2" ); END IF; ELSE FAILED ( "CS3 HAS INCORRECT BOUNDS" ); END IF; IF CS4'FIRST = 1 AND CS4'LAST = 5 THEN IF CS4 (1)'FIRST = 1 AND CS4 (1)'LAST = 6 THEN COMMENT ( "CS4 HAS BOUNDS 1 .. 5 AND " & "COMPONENT TYPE ARR (1 .. 6)" ); ELSE FAILED ( "CS4 HAS WRONG COMPONENT TYPE - 1" ); END IF; ELSIF CS4'FIRST = 1 AND CS4'LAST = 6 THEN IF CS4 (1)'FIRST = 1 AND CS4 (1)'LAST = 5 THEN COMMENT ( "CS4 HAS BOUNDS 1 .. 6 AND " & "COMPONENT TYPE ARR (1 .. 5)" ); ELSE FAILED ( "CS4 HAS WRONG COMPONENT TYPE - 2" ); END IF; ELSE FAILED ( "CS4 HAS INCORRECT BOUNDS" ); END IF; IF BUMP (4) /= 36 THEN FAILED ( "FUNCTION F NOT INVOKED CORRECT NUMBER OF " & "TIMES TO INITIALIZE CS4" ); END IF; END; RESULT; END C32001B;
models/bugs/bug.als
transclosure/Amalgam
4
4215
sig Root { elems: seq A } sig A { moreElems: seq B } sig B {} fun flatten[root: Root]: A { root.elems[0] } run { one Root some r: Root | some flatten[r] } for 4
programs/oeis/238/A238705.asm
neoneye/loda
22
87288
<filename>programs/oeis/238/A238705.asm ; A238705: Number of partitions of 4n into 4 parts with smallest part = 1. ; 1,4,10,19,30,44,61,80,102,127,154,184,217,252,290,331,374,420,469,520,574,631,690,752,817,884,954,1027,1102,1180,1261,1344,1430,1519,1610,1704,1801,1900,2002,2107,2214,2324,2437,2552,2670,2791,2914,3040,3169,3300,3434,3571,3710,3852,3997,4144,4294,4447,4602,4760,4921,5084,5250,5419,5590,5764,5941,6120,6302,6487,6674,6864,7057,7252,7450,7651,7854,8060,8269,8480,8694,8911,9130,9352,9577,9804,10034,10267,10502,10740,10981,11224,11470,11719,11970,12224,12481,12740,13002,13267 mul $0,2 mov $1,$0 pow $0,2 div $0,3 add $0,$1 add $0,1
programs/oeis/055/A055842.asm
neoneye/loda
22
168541
; A055842: Expansion of (1-x)^2/(1-5*x). ; 1,3,16,80,400,2000,10000,50000,250000,1250000,6250000,31250000,156250000,781250000,3906250000,19531250000,97656250000,488281250000,2441406250000,12207031250000,61035156250000,305175781250000,1525878906250000,7629394531250000,38146972656250000,190734863281250000,953674316406250000,4768371582031250000,23841857910156250000,119209289550781250000,596046447753906250000,2980232238769531250000,14901161193847656250000,74505805969238281250000,372529029846191406250000,1862645149230957031250000,9313225746154785156250000,46566128730773925781250000,232830643653869628906250000,1164153218269348144531250000,5820766091346740722656250000,29103830456733703613281250000,145519152283668518066406250000,727595761418342590332031250000,3637978807091712951660156250000,18189894035458564758300781250000,90949470177292823791503906250000,454747350886464118957519531250000,2273736754432320594787597656250000,11368683772161602973937988281250000,56843418860808014869689941406250000,284217094304040074348449707031250000 mov $3,$0 mov $5,2 lpb $5 mov $0,$3 sub $5,1 add $0,$5 trn $0,1 seq $0,110595 ; a(1)=5. For n > 1, a(n) = 4*5^(n-1) = A005054(n). div $0,5 mov $2,$5 mul $2,$0 add $1,$2 mov $4,$0 lpe min $3,1 mul $3,$4 sub $1,$3 mov $0,$1
rcg/src/main/antlr4/com/salesforce/rcg/numbers/dice/impl/Dice.g4
mpm-bug/RandomContentGenerator
0
1515
// Define a grammar for random-number expressions grammar Dice; // Dice language to-do's: // - Chaining together multiple dice, in the form 1d6 & 2d10 // - Dice expressions with chances, such as 10%:1d6 @header { // No package declaration - the Antlr4 Maven plugin should deal with that. // Put import statements here as needed...but at the moment none are needed. // End of @header } // // The top of the parse tree: various kinds of random-number expressions // This will be represented by the RandomNumericExpression interface // By adding EOF to the end of the syntax, that tells Antlr that I expect // to parse the entire input. Now I get errors output to the console when // there is extraneous input, but I don't know how to turn those into // runtime exceptions. expression : singleDie (AND singleDie)* EOF //| singleDie AND expression ; singleDie : dicePrefix? basicExpression ; dicePrefix : CHANCE COLON INTEGER PERCENT COMMA ; // The concrete types of random number expressions. These are implementations of the RandomNumericExpression interface basicExpression // FrpExpression : frpExpression multiplier? // MinMaxExpression | minMaxExpression multiplier? // ConstantExpression | constantExpression multiplier? ; multiplier : TIMES INTEGER ; // // Fantasy Role-Playing Game Expressions frpExpression // Basic FRP expressions are xDy+z // x = number of dice to roll. This part is optional. If not present, // it's assumed to be 1 // y = number of sides on each die // z = constant to add or subtract. This part is also optional. If not // present, it's assumed to be 0. : INTEGER? die INTEGER add_or_subtract? ; // A random die is represented by the Die interface. At some point I need a way to say whether you want standard dice // (the SimpleDie implementation) or various loaded dice. die : SIMPLE_DIE ; // // Utility constructs // // Amount added to or subtracted from a dice expression. For purposes of the // examples below, assume we've already parsed a basic FRP expression of "3d6" add_or_subtract : // This is to support adding a constant to the expression. // For example, you may want to add 2 to the result with "3d6 + 2" PLUS INTEGER // Alternatively, you may with to subtract a constant from the // expression, such as "3d6 - 2" | MINUS INTEGER // This is a funny one to deal with ambiguity. The expression "3d6 - 2" is simple // to parse, because it's // NUMBER (3) SIMPLE_DIE ('d') NUMBER (6) MINUS ('-') NUMBER (2) // But "3d6-2" is trickier. The "-2" part could be MINUS NUMBER or just NUMBER, // since numbers can start with a unary minus. And antlr picks the longest matching // rule, so it becomes just NUMBER (-2). This form is to deal with that lexigraphic // ambiguity. | INTEGER ; // // Min/max expressions: this is a lower and upper range, separated by a dash. // For example, "4-10" means we want a random number between 4 and 10, inclusive minMaxExpression: INTEGER MINUS INTEGER | INTEGER INTEGER ; // A constant expression is just a number, like "6". As you might expect, this means // to always generate the specified value. constantExpression: INTEGER ; // Keywords CHANCE: ('c' | 'C') ('h' | 'H') ('a' | 'A') ('n' | 'N') ('c' | 'C') ('e' | 'E') ; AND : ('a' | 'A') ('n' | 'N') ('d' | 'D') | '&' ; // // Lexical analysis PLUS : '+' ; MINUS : '-' ; TIMES : '*' ; COLON : ':' ; PERCENT : '%' ; PERIOD : '.' ; COMMA : ',' ; // Numbers //DECIMAL_NUMBER // : INTEGER // | INTEGER PERIOD DIGITS // ; INTEGER : ZERO | MINUS? NZDIGIT DIGIT* ; // Individual digits DIGIT : ZERO | NZDIGIT ; ZERO : '0' ; NZDIGIT : [1-9] ; // 'd' represents dice to roll. // I need to think about this one carefully. I've got this defined as a lexical expression, // which may not be the right way to go about doing this if I have other tokens that begin // with 'd'. SIMPLE_DIE : D; // // Fragments for characters // fragment D : [dD] ; // Whitespace is ignored WS : [ \t\r\n]+ -> skip ;
src/Fragment/Examples/Semigroup/Arith/Base.agda
yallop/agda-fragment
18
14451
{-# OPTIONS --without-K --safe #-} module Fragment.Examples.Semigroup.Arith.Base where open import Fragment.Prelude public open import Data.Nat using (ℕ; _*_; _+_) public open import Data.Nat.Properties using (*-isSemigroup; +-isSemigroup) open import Relation.Binary.PropositionalEquality public open ≡-Reasoning public +-semigroup = semigroup→model +-isSemigroup *-semigroup = semigroup→model *-isSemigroup
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i9-9900K_12_0xa0.log_21829_284.asm
ljhsiun2/medusa
9
164545
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1aa85, %rbx and $18829, %rsi and $0xffffffffffffffc0, %rbx movntdqa (%rbx), %xmm6 vpextrq $0, %xmm6, %r12 nop nop add $21621, %rax lea addresses_UC_ht+0x3185, %rdx nop nop xor $14715, %rcx vmovups (%rdx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %rsi nop nop nop nop nop cmp %rbx, %rbx lea addresses_A_ht+0x10b45, %rsi xor $42758, %r11 movl $0x61626364, (%rsi) nop nop nop nop nop xor %r11, %r11 lea addresses_WC_ht+0x3105, %rsi lea addresses_A_ht+0x1b285, %rdi nop dec %rdx mov $2, %rcx rep movsl nop nop nop nop nop sub $8497, %rdi lea addresses_D_ht+0x6905, %r11 nop nop nop nop nop inc %rsi movb $0x61, (%r11) nop cmp %rdx, %rdx lea addresses_WC_ht+0xb985, %rsi lea addresses_D_ht+0xb9a1, %rdi nop nop nop nop nop sub %rax, %rax mov $52, %rcx rep movsq nop add %rdi, %rdi lea addresses_A_ht+0x9185, %r11 clflush (%r11) nop inc %rdi vmovups (%r11), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rdx nop nop nop and %r12, %r12 lea addresses_A_ht+0x17985, %rdx nop nop nop cmp $12903, %rcx movb $0x61, (%rdx) nop add %rax, %rax lea addresses_normal_ht+0x3195, %rdi nop lfence mov $0x6162636465666768, %r12 movq %r12, (%rdi) nop nop nop dec %rdx lea addresses_WT_ht+0x1c985, %rsi lea addresses_A_ht+0x1f05, %rdi nop nop nop nop nop add %rdx, %rdx mov $111, %rcx rep movsl nop and %rdx, %rdx lea addresses_A_ht+0x17585, %r12 nop nop xor %rax, %rax movw $0x6162, (%r12) nop nop nop nop nop cmp %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %r8 push %rbp push %rbx push %rdx push %rsi // Store lea addresses_D+0x10885, %rbp nop nop sub %r15, %r15 movw $0x5152, (%rbp) nop nop nop nop nop and $11150, %rsi // Load lea addresses_normal+0x6e75, %rdx nop nop nop cmp $40068, %rsi mov (%rdx), %bx sub $14419, %rsi // Faulty Load lea addresses_RW+0x1b185, %r15 nop nop nop nop and $45972, %r13 vmovntdqa (%r15), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rbx lea oracles, %rdx and $0xff, %rbx shlq $12, %rbx mov (%rdx,%rbx,1), %rbx pop %rsi pop %rdx pop %rbx pop %rbp pop %r8 pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_D', 'AVXalign': False, 'size': 2}} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 5, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}} {'src': {'same': True, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 8, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 2}} {'b7': 728, '51': 270, '3b': 91, '75': 1, 'e0': 174, '89': 766, '44': 4, '42': 1580, '00': 7547, '4c': 1, '0e': 31, '74': 91, '90': 3, '6e': 4, '6d': 3, '0a': 62, 'a3': 3, '29': 2, '2f': 1, '8b': 4, 'fa': 1, '71': 7, '4e': 93, '32': 1, 'f8': 277, 'bf': 2, 'd8': 1, '25': 93, '60': 2, '73': 1, '1b': 1, 'e8': 1, 'ad': 366, '13': 420, 'c2': 1, '40': 585, 'd7': 3, '8a': 639, 'a0': 1, 'ff': 6420, '1a': 1080, 'b0': 4, '61': 301, 'a2': 1, '08': 3, '55': 3, '37': 1, 'ee': 1, '57': 5, '34': 2, '2e': 7, '30': 1, '3f': 2, '87': 60, '68': 45, 'e7': 2, '66': 17, '12': 9, '9a': 1, '4a': 1, 'ec': 1, '6b': 1} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 89 ff 75 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff 8a 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 42 73 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 89 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 00 74 ff ff 8a ff 8a ff 8a ff ff ff 8a ff ff 8a ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 8a ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 8a ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 71 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 71 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 71 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 71 ff ff ff ff ff 71 ff ff ff ff ff ff ff ff ff 71 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 71 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 42 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 42 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 42 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 6e ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 6e ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 6e ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 6e ff 6d ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 6d ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 6d ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 42 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 1a ff ff */
8088/demo/100line/l100.asm
reenigne/reenigne
92
241689
org 0x100 cpu 8086 demoAPI EQU 0F8h ; Determine if loader is present, and abort if not ; First, check to see if the API is even present. ; If not, don't try to call anything since it will hang the system. xor bx,bx mov es,bx mov di,(demoAPI * 4)+2 ;check to see if our INT is empty cmp [word es:di],bx ;int. vector empty? je exitShort ;abort if so mov ax,0700h ;check int. vector to see if it's ours int demoAPI cmp ax,0C0DEh ;magic cookie received? jne exitShort ;abort if not jmp mstart exitShort: jmp exitEffect mstart: ; Move vsync start up 50 scanlines (25 rows) to scanline 174 = row 37 ; Active region: ; Scanline 0 = row 0 scanline 0 of 100-line screen ; Scanline 1 = row 1 scanline 0 of 100-line screen ; ... ; Overscan region: ; Scanline 100 = row 0 scanline 0 of 162-line screen ; Scanline 101 = row 0 scanline 1 of 162-line screen = last visible ; Scanline 102 = row 1 scanline 0 of 162-line screen ; Scanline 103 = row 1 scanline 1 of 162-line screen ; ... ; Scanline 126 = row 126 scanline 0 of 162-line screen ; Scanline 127 = row 0 scanline 0 of 162-line screen ; Common: 0x7100, 0x5001, 0x5a02, 0x0003, 0x0005, 0x0208, 0x060a, 0x070b, 0x030a, 0xc00f ; Active region: 0x6304, 0x6406, 0x7f07, 0x0009, 0x1f0c, 0x400d ; Overscan region: 0x5004, 0x0106, 0x2507, 0x0109, 0x000c, 0x000d ; Ready to start; tell API we are waiting, then proceed when ; we get the signal. mov ah,01 ;tell loader we are ready to start int demoAPI mov ah,02 ;wait for signal to proceed stc waitLoader: int demoAPI jnc waitLoader ;if carry not set, don't start yet ; Copy data mov ax,cs mov ds,ax mov ax,0xb800 mov es,ax mov cx,8160 mov si,data xor di,di cld rep movsw xor ax,ax stosw ; Mode 09 ; 1 +HRES 1 ; 2 +GRPH 0 ; 4 +BW 0 ; 8 +VIDEO ENABLE 8 ; 0x10 +1BPP 0 ; 0x20 +ENABLE BLINK 0 mov dx,0x3d8 mov al,0x09 out dx,al ; Palette 00 ; 1 +OVERSCAN B 0 ; 2 +OVERSCAN G 2 ; 4 +OVERSCAN R 4 ; 8 +OVERSCAN I 0 ; 0x10 +BACKGROUND I 0 ; 0x20 +COLOR SEL 0 inc dx mov al,0x00 out dx,al mov dl,0xd4 ; 0xff Horizontal Total 71 mov ax,0x7100 out dx,ax ; 0xff Horizontal Displayed 50 mov ax,0x5001 out dx,ax ; 0xff Horizontal Sync Position 5a mov ax,0x5a02 out dx,ax ; 0x0f Horizontal Sync Width 0d mov ax,0x0003 out dx,ax ; 0x7f Vertical Total 3d mov ax,0x6304 out dx,ax ; 0x1f Vertical Total Adjust 00 mov ax,0x0005 out dx,ax ; 0x7f Vertical Displayed 02 mov ax,0x6406 out dx,ax ; 0x7f Vertical Sync Position 18 mov ax,0x7f07 out dx,ax ; 0x03 Interlace Mode 02 mov ax,0x0208 out dx,ax ; 0x1f Max Scan Line Address 00 mov ax,0x0009 out dx,ax ; Cursor Start 06 ; 0x1f Cursor Start 6 ; 0x60 Cursor Mode 0 mov ax,0x000a out dx,ax ; 0x1f Cursor End 07 mov ax,0x000b out dx,ax ; 0x3f Start Address (H) 00 mov ax,0x000c out dx,ax ; 0xff Start Address (L) 00 mov ax,0x000d out dx,ax ; 0x3f Cursor (H) 03 mov ax,0x1f0e out dx,ax ; 0xff Cursor (L) c0 mov ax,0xff0f out dx,ax %macro waitForDisplayEnable 0 %%waitForDisplayEnable in al,dx ; 1 1 2 test al,1 ; 2 0 2 jnz %%waitForDisplayEnable ; 2 0 2 %endmacro %macro waitForDisplayDisable 0 %%waitForDisplayDisable in al,dx ; 1 1 2 test al,1 ; 2 0 2 jz %%waitForDisplayDisable ; 2 0 2 %endmacro %macro waitForVerticalSync 0 %%waitForVerticalSync in al,dx test al,8 jz %%waitForVerticalSync %endmacro %macro waitForNoVerticalSync 0 %%waitForNoVerticalSync in al,dx test al,8 jnz %%waitForNoVerticalSync %endmacro cli mov dl,0xda mov bx,80 ; Initial mov cx,0 ; Frame counter frameLoop: ; Scanline 0 waitForDisplayEnable ; Active region: 0x6304, 0x6406, 0x7f07, 0x0009, 0x1f0c, 0x400d mov dl,0xd4 mov ax,0x0009 out dx,ax mov ax,0x6304 out dx,ax mov ax,0x6406 out dx,ax mov ax,0x7f07 out dx,ax mov ax,0x1f0c out dx,ax mov ax,0x400d out dx,ax mov dl,0xda waitForDisplayDisable ; Scanlines 1-99 %rep 99 waitForDisplayEnable waitForDisplayDisable %endrep ; Scanline 100 waitForDisplayEnable ; Overscan region: 0x5004, 0x0106, 0x2507, 0x0109, 0x000c, 0x000d mov dl,0xd4 mov ax,0x0109 out dx,ax mov ax,0x0106 out dx,ax mov ax,0x2507 out dx,ax mov ax,0x5004 out dx,ax mov ax,0x000c out dx,ax inc ax out dx,ax mov dl,0xda waitForDisplayDisable waitForVerticalSync waitForNoVerticalSync push dx mov ah,0 int demoAPI mov ah,2 int demoAPI jnc exitEffect pop dx jmp frameLoop exitEffect: mov ax,0x4c00 int 0x21 data:
P6/data_P6_2/MDTest127.asm
alxzzhou/BUAA_CO_2020
1
83147
ori $ra,$ra,0xf sll $4,$2,21 sb $5,4($0) lb $0,6($0) mfhi $2 mthi $4 sll $3,$2,14 mult $6,$1 addiu $0,$0,-17345 ori $4,$4,58171 addiu $4,$5,28987 mult $4,$2 lb $5,1($0) ori $4,$4,19325 ori $4,$2,18805 div $4,$ra addu $0,$1,$0 mflo $3 multu $3,$3 ori $2,$2,4044 addu $1,$1,$1 sll $5,$5,26 multu $4,$5 addiu $3,$3,21225 divu $4,$ra lui $0,56321 srav $4,$4,$5 multu $4,$1 multu $4,$2 sb $2,4($0) div $1,$ra mult $1,$1 multu $2,$1 sll $1,$1,3 mult $1,$2 lui $2,25205 lui $5,14460 srav $4,$6,$3 sb $5,12($0) mtlo $0 lui $4,18247 srav $4,$4,$4 mthi $1 lui $1,43898 mflo $4 mult $4,$4 mflo $4 ori $1,$4,15363 mtlo $5 div $1,$ra mflo $5 multu $4,$0 mfhi $4 mthi $4 multu $4,$2 mfhi $3 divu $4,$ra lb $2,16($0) ori $3,$3,46004 sb $0,2($0) divu $5,$ra mfhi $4 mult $4,$6 mtlo $6 mult $4,$4 lui $5,42969 div $2,$ra sb $5,13($0) mthi $4 addiu $6,$6,24864 multu $6,$1 mtlo $6 mflo $1 addu $5,$0,$5 sll $1,$4,0 mfhi $5 mult $4,$2 mfhi $4 divu $2,$ra mult $1,$1 addu $5,$2,$5 div $1,$ra mthi $2 mthi $4 srav $3,$5,$3 mfhi $4 addu $4,$4,$4 mult $5,$5 multu $4,$3 addu $5,$4,$4 divu $6,$ra mfhi $2 sb $6,15($0) mthi $6 mult $4,$3 srav $3,$3,$3 sb $0,14($0) sb $0,3($0) div $6,$ra addiu $4,$2,13588 multu $2,$2 mfhi $0 divu $5,$ra addu $5,$6,$2 sll $3,$4,4 mthi $0 srav $3,$4,$3 sll $1,$1,17 sll $5,$5,20 addu $1,$2,$2 div $4,$ra mflo $2 multu $5,$2 divu $1,$ra lb $4,5($0) addiu $1,$0,-24401 srav $2,$2,$2 mult $6,$0 divu $5,$ra mflo $2 multu $3,$6 mult $4,$4 sll $5,$5,23 sb $3,2($0) mfhi $0 addiu $1,$4,20384 divu $3,$ra srav $1,$2,$5 sll $1,$1,30 mthi $1 lui $5,19181 mtlo $4 mult $0,$4 divu $5,$ra mflo $4 sb $3,3($0) mtlo $1 mfhi $5 addu $2,$2,$5 addu $1,$0,$0 lb $1,0($0) mflo $5 sll $5,$4,8 srav $1,$4,$2 mtlo $5 ori $5,$1,49978 lui $4,24371 multu $2,$2 mflo $6 addu $4,$2,$2 mfhi $5 lb $4,2($0) div $3,$ra lb $2,14($0) addu $5,$5,$5 lui $5,61667 lui $4,58047 sb $1,5($0) multu $1,$1 mtlo $4 mfhi $5 sb $5,7($0) mtlo $4 sb $5,6($0) divu $4,$ra ori $2,$2,47928 div $5,$ra addu $3,$3,$3 sll $4,$4,29 sll $1,$0,13 mflo $1 mthi $4 mthi $1 lb $4,4($0) addu $4,$1,$3 div $4,$ra ori $4,$5,57177 mfhi $4 ori $1,$3,7003 multu $4,$4 div $4,$ra mult $5,$5 addu $5,$1,$1 srav $2,$0,$2 addu $2,$2,$3 div $0,$ra mtlo $0 mfhi $4 addiu $0,$4,27943 lb $3,6($0) addiu $5,$0,-26998 addu $5,$3,$3 srav $4,$1,$4 multu $6,$1 mthi $1 mfhi $0 addu $1,$0,$2 ori $1,$3,48219 lui $3,18516 addiu $6,$6,20990 mtlo $4 lui $1,4109 div $1,$ra mfhi $4 mtlo $1 addiu $3,$4,-18686 divu $5,$ra sll $2,$2,18 srav $3,$0,$3 multu $6,$6 mflo $4 srav $2,$2,$2 addiu $1,$2,-2676 ori $1,$2,21938 ori $4,$4,7576 lb $3,5($0) lui $4,4257 sb $4,13($0) mthi $1 addu $5,$5,$5 ori $0,$3,27122 lb $1,9($0) mult $2,$2 ori $5,$0,15751 mthi $4 mtlo $1 sb $2,11($0) mtlo $5 addu $5,$0,$0 addu $2,$2,$6 mthi $2 mthi $5 addu $5,$5,$5 srav $1,$1,$5 addu $1,$0,$4 addu $1,$4,$4 div $0,$ra mult $2,$2 mfhi $4 mfhi $3 mtlo $5 sll $4,$0,13 divu $4,$ra multu $0,$3 ori $5,$5,60745 lb $4,15($0) multu $0,$0 addiu $2,$2,-4106 ori $3,$4,7554 mthi $0 mtlo $0 mthi $1 divu $4,$ra lb $3,11($0) ori $5,$4,44971 sb $4,12($0) sb $2,13($0) mthi $5 mtlo $5 mthi $5 mtlo $3 div $1,$ra addu $1,$2,$4 srav $6,$4,$3 mtlo $6 divu $6,$ra addu $4,$4,$4 mtlo $2 addu $6,$6,$2 addiu $2,$2,-6243 divu $5,$ra lb $5,3($0) div $4,$ra multu $5,$5 mflo $3 div $5,$ra mtlo $5 lb $1,5($0) mthi $1 mthi $6 addu $5,$5,$5 addu $1,$5,$4 srav $2,$2,$1 lb $1,4($0) sb $4,16($0) lb $6,1($0) mthi $1 mtlo $4 mfhi $2 addiu $4,$4,-21165 mflo $3 mtlo $5 addu $0,$2,$3 lb $6,16($0) addu $2,$2,$2 div $4,$ra ori $1,$2,33528 ori $2,$2,30742 sll $0,$0,15 sb $4,6($0) addu $4,$5,$4 lui $1,31932 addiu $3,$2,24068 ori $2,$2,40214 div $2,$ra srav $1,$4,$2 mflo $4 sll $0,$2,2 sll $1,$1,30 divu $4,$ra addu $0,$2,$2 mthi $0 mult $5,$5 addu $3,$6,$3 mflo $5 mfhi $3 addu $3,$2,$3 sb $5,0($0) mflo $4 mfhi $0 ori $1,$3,9197 ori $5,$5,28005 ori $4,$5,10002 multu $6,$3 lui $6,47917 mult $5,$2 sll $6,$2,22 mflo $4 div $1,$ra lb $1,14($0) ori $4,$4,54973 mult $4,$4 addiu $4,$5,12065 mthi $3 div $4,$ra mflo $5 mthi $5 ori $2,$2,44307 ori $2,$1,37253 lb $4,4($0) sll $4,$2,7 sb $4,7($0) mthi $5 srav $4,$1,$1 mtlo $1 div $0,$ra sb $0,2($0) mtlo $1 addiu $0,$4,-27298 ori $4,$4,45658 mfhi $5 divu $1,$ra mfhi $0 addiu $2,$2,-7763 lui $4,30967 addiu $4,$4,14514 addiu $1,$1,31843 multu $1,$6 sb $4,6($0) addiu $4,$1,-31630 lui $0,50393 lui $3,25314 lui $5,19105 ori $4,$4,33448 srav $5,$4,$6 mtlo $4 mthi $1 sb $0,1($0) mfhi $6 addu $1,$2,$6 addiu $2,$2,11678 mfhi $5 sll $4,$1,11 mfhi $6 multu $6,$2 divu $4,$ra multu $0,$0 multu $4,$4 addiu $1,$3,29246 srav $5,$2,$1 mthi $3 mflo $5 lb $4,11($0) mflo $0 srav $1,$4,$4 multu $2,$2 mtlo $0 ori $4,$4,56596 sll $3,$3,3 mthi $5 div $2,$ra ori $1,$1,13448 mflo $5 mflo $3 mtlo $5 srav $6,$4,$6 mthi $2 lui $1,58593 lb $1,1($0) mfhi $1 mfhi $5 srav $3,$2,$3 mfhi $2 sll $6,$6,27 ori $4,$4,51994 mfhi $1 addiu $4,$4,-13693 sll $4,$4,3 lui $5,55648 lui $0,23670 srav $1,$1,$4 multu $1,$1 lb $5,9($0) lui $4,19109 addu $4,$4,$3 sb $1,8($0) sll $2,$6,17 div $4,$ra ori $6,$4,51202 mfhi $5 addu $5,$5,$5 mthi $1 mult $6,$6 divu $4,$ra divu $1,$ra addiu $3,$0,-15282 addu $3,$1,$3 mflo $1 srav $4,$4,$4 addiu $0,$1,16345 sb $1,14($0) mtlo $4 addiu $1,$2,27606 multu $5,$4 lb $5,4($0) mfhi $4 addu $3,$3,$3 addu $4,$4,$4 div $3,$ra mthi $1 sb $4,1($0) lb $4,1($0) multu $1,$2 mult $5,$0 lui $5,44992 mfhi $5 srav $0,$0,$0 srav $5,$2,$5 addu $4,$2,$3 lb $4,10($0) mfhi $0 ori $0,$1,38522 addiu $4,$4,-12967 mflo $5 addiu $2,$2,-8794 mflo $5 divu $4,$ra ori $6,$2,50479 sb $4,3($0) divu $5,$ra div $1,$ra sll $4,$5,0 div $1,$ra addu $4,$4,$4 sll $4,$4,23 div $3,$ra srav $0,$4,$6 ori $0,$4,31052 multu $5,$4 lui $1,8305 sll $1,$5,26 divu $4,$ra mfhi $4 sll $1,$2,31 div $3,$ra ori $1,$5,42645 lb $4,2($0) div $1,$ra mfhi $5 lui $1,16142 lb $4,14($0) mfhi $3 mfhi $5 divu $3,$ra sb $5,3($0) divu $2,$ra mtlo $1 lui $1,56138 lb $4,5($0) lui $4,55515 mtlo $4 sb $4,3($0) div $4,$ra ori $4,$2,54558 mflo $1 lui $1,6813 lui $1,37062 lb $0,2($0) addu $2,$2,$0 mflo $0 lui $3,8375 lui $4,34472 mtlo $0 lui $1,22489 divu $4,$ra ori $4,$3,3653 lui $5,61510 sll $6,$4,18 mflo $4 addiu $4,$4,-28772 divu $2,$ra srav $4,$4,$1 mtlo $5 lui $0,27788 lui $1,42191 ori $6,$4,46789 mfhi $5 sb $1,2($0) divu $1,$ra mflo $4 lui $4,43757 mtlo $4 multu $4,$2 sll $1,$0,15 lb $4,11($0) mult $2,$2 lb $5,3($0) mult $5,$5 mthi $2 divu $4,$ra multu $1,$1 ori $5,$5,64766 mtlo $1 sb $4,11($0) addiu $4,$3,918 multu $1,$1 addiu $3,$3,-1615 sb $5,13($0) mfhi $4 lui $4,18098 div $4,$ra lui $4,64804 multu $2,$2 mfhi $6 mthi $2 mfhi $0 div $0,$ra mfhi $6 divu $1,$ra addiu $5,$5,-4972 div $4,$ra multu $5,$5 addiu $2,$2,3521 srav $5,$0,$6 multu $0,$5 sb $4,8($0) addiu $3,$0,-20935 mflo $6 multu $0,$0 sb $5,9($0) addu $5,$3,$3 addiu $5,$6,29329 mtlo $1 mflo $5 lb $5,0($0) div $5,$ra mult $4,$4 sb $2,2($0) mtlo $4 addiu $0,$0,18011 ori $1,$6,28792 addiu $3,$2,-15308 mflo $1 addu $2,$2,$2 mflo $2 divu $4,$ra multu $1,$2 lui $1,45689 addiu $6,$1,3338 srav $2,$2,$2 sll $6,$6,0 addu $4,$1,$2 div $2,$ra addiu $5,$2,10586 mult $5,$6 mtlo $5 mult $3,$2 addiu $1,$2,-13717 mult $0,$3 div $0,$ra mthi $4 mfhi $4 lui $1,46726 multu $6,$5 divu $4,$ra addiu $1,$1,-14457 lui $5,3683 lb $4,13($0) sb $1,2($0) mtlo $6 srav $4,$1,$0 sb $0,11($0) divu $0,$ra addiu $1,$1,-10695 mult $6,$6 mthi $2 lb $2,0($0) mtlo $1 lui $4,13514 mtlo $1 mtlo $1 mtlo $4 mfhi $4 mthi $2 ori $1,$2,21199 mflo $4 srav $4,$2,$4 div $1,$ra addiu $4,$4,-22251 lui $5,61196 lb $1,14($0) addiu $4,$2,21917 mflo $4 ori $5,$3,11559 multu $3,$1 ori $1,$1,28414 addu $5,$1,$2 mult $2,$1 multu $1,$4 multu $2,$2 sll $4,$2,26 div $3,$ra div $2,$ra ori $0,$5,54724 mult $1,$1 addu $3,$2,$3 mthi $6 sb $1,4($0) mult $6,$6 addiu $4,$4,-22094 srav $4,$4,$4 mflo $1 mflo $4 addu $2,$2,$2 multu $2,$6 lui $4,23847 mthi $5 lb $5,8($0) mflo $3 lui $0,23322 mult $4,$2 multu $1,$1 sll $4,$6,21 div $0,$ra srav $0,$2,$3 addu $6,$1,$1 srav $0,$2,$4 lb $0,8($0) mthi $1 mtlo $2 ori $0,$0,50466 sll $1,$2,14 sll $4,$4,15 sb $4,4($0) divu $4,$ra lui $5,33403 addiu $6,$6,31424 srav $5,$4,$2 mult $5,$5 sb $4,2($0) srav $0,$4,$3 addiu $0,$4,-12253 divu $4,$ra divu $6,$ra lui $4,13098 ori $5,$5,21848 ori $1,$4,35841 lb $5,4($0) sb $4,15($0) sb $4,15($0) ori $3,$4,7554 lui $5,56077 srav $4,$6,$5 mult $1,$2 div $1,$ra lb $2,8($0) mtlo $5 ori $4,$2,3544 mflo $0 lui $4,29835 div $4,$ra sll $1,$5,1 mfhi $1 mfhi $2 lb $6,3($0) divu $4,$ra div $3,$ra addu $4,$6,$6 lb $5,8($0) addu $1,$4,$3 multu $3,$2 mflo $4 lb $5,6($0) ori $4,$4,22502 mtlo $2 lui $1,45187 mtlo $4 lb $6,1($0) mflo $4 addu $2,$2,$4 ori $1,$1,13606 mfhi $0 div $3,$ra mtlo $1 ori $6,$2,39627 lui $0,36790 sb $0,10($0) mfhi $1 div $0,$ra mflo $2 mflo $2 addiu $0,$1,315 ori $4,$0,39064 divu $3,$ra mtlo $4 mult $6,$4 addiu $4,$0,-32550 ori $2,$2,52822 mtlo $4 addiu $4,$3,-4207 mthi $0 addu $3,$1,$3 lb $5,0($0) addiu $2,$2,32074 sb $3,6($0) sll $4,$2,11 mthi $6 sb $0,6($0) lui $6,31700 mthi $2 mfhi $2 mtlo $1 mfhi $0 sb $4,16($0) srav $4,$4,$4 divu $1,$ra sb $3,1($0) addiu $6,$6,30486 divu $6,$ra mult $0,$0 sb $0,16($0) addiu $5,$5,1983 mtlo $5 mfhi $4 mtlo $5 mfhi $6 mfhi $2 mthi $4 lb $3,7($0) sll $4,$5,30 div $4,$ra mfhi $5 addu $2,$2,$2 divu $5,$ra mfhi $4 mult $1,$1 ori $4,$2,373 mfhi $4 mflo $6 sb $5,1($0) divu $5,$ra div $5,$ra addu $6,$1,$3 mtlo $0 div $4,$ra multu $4,$4 addiu $0,$0,-32328 divu $4,$ra lb $1,16($0) srav $5,$2,$2 addiu $6,$4,-25650 divu $1,$ra lb $0,14($0) sll $1,$5,4 mthi $6 lb $5,12($0) mfhi $1 lb $1,13($0) mflo $4 mthi $1 lb $2,10($0) srav $2,$2,$2 mfhi $4 div $1,$ra addiu $4,$2,17049 sll $2,$2,1 ori $1,$1,45450 lui $2,58905 mult $1,$0 lui $5,20178 srav $4,$4,$4 addiu $1,$1,27015 mflo $5 mult $1,$1 mtlo $3 div $1,$ra mflo $5 srav $0,$5,$4 div $2,$ra sb $0,13($0) mult $5,$5 lb $1,9($0) multu $1,$2 sll $5,$4,30 srav $6,$2,$5 addu $3,$1,$3 mthi $2 div $1,$ra lui $1,62840 addiu $3,$2,20171 addu $2,$6,$2 addu $3,$3,$3 multu $1,$6 mult $4,$5 mthi $4 sll $5,$2,5 ori $4,$6,8771 lb $6,16($0) lb $4,16($0) addiu $1,$4,8218 addiu $5,$5,460 mflo $4 ori $5,$5,45082 mthi $2 multu $0,$2 multu $6,$2 mtlo $4 lb $1,9($0) mfhi $6 addu $5,$5,$5 sb $4,9($0) srav $5,$2,$5 mfhi $4 mtlo $5 mflo $1 srav $4,$1,$3 divu $0,$ra mfhi $4 sb $1,7($0) div $5,$ra lb $4,4($0) srav $5,$1,$5 div $4,$ra lui $2,58485 mtlo $1 mflo $6 mfhi $5 addiu $0,$4,-29706 sb $6,8($0) ori $2,$2,46952 mult $1,$1 mthi $6 addu $4,$4,$4 addiu $4,$5,-6857 lb $2,1($0) srav $4,$4,$5 sb $6,7($0) mfhi $4 ori $4,$6,38440 mtlo $4 mult $5,$2 divu $5,$ra addiu $5,$4,-1192 mflo $4 mult $1,$6 mtlo $5 mflo $4 lui $2,617 sb $0,14($0) mfhi $4 lui $6,25144 addiu $0,$4,-1012 addu $4,$5,$4 srav $4,$4,$4 addu $1,$5,$1 lui $5,16791 sb $1,3($0) mult $0,$2 multu $4,$4
OvmfPkg/Library/XenHypercallLib/Ia32/hypercall.nasm
CEOALT1/RefindPlusUDK
3,012
6977
<gh_stars>1000+ SECTION .text ; INTN ; EFIAPI ; __XenHypercall2 ( ; IN VOID *HypercallAddr, ; IN OUT INTN Arg1, ; IN OUT INTN Arg2 ; ); global ASM_PFX(__XenHypercall2) ASM_PFX(__XenHypercall2): ; Save only ebx, ecx is supposed to be a scratch register and needs to be ; saved by the caller push ebx ; Copy HypercallAddr to eax mov eax, [esp + 8] ; Copy Arg1 to the register expected by Xen mov ebx, [esp + 12] ; Copy Arg2 to the register expected by Xen mov ecx, [esp + 16] ; Call HypercallAddr call eax pop ebx ret
programs/oeis/090/A090996.asm
jmorken/loda
1
165065
<gh_stars>1-10 ; A090996: Number of leading 1's in binary expansion of n. ; 0,1,1,2,1,1,2,3,1,1,1,1,2,2,3,4,1,1,1,1,1,1,1,1,2,2,2,2,3,3,4,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,4,5,6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5 lpb $0 add $1,362880 mov $2,$0 div $0,2 mod $2,2 mul $1,$2 lpe div $1,362880
agda/Algebra/Construct/Free/Semilattice/Extensionality.agda
oisdk/combinatorics-paper
6
1197
{-# OPTIONS --cubical --safe #-} module Algebra.Construct.Free.Semilattice.Extensionality where open import Prelude open import Algebra.Construct.Free.Semilattice.Definition open import Algebra.Construct.Free.Semilattice.Eliminators open import Algebra.Construct.Free.Semilattice.Relation.Unary open import Algebra.Construct.Free.Semilattice.Union open import HITs.PropositionalTruncation.Sugar import HITs.PropositionalTruncation as PropTrunc open import HITs.PropositionalTruncation.Properties open import Path.Reasoning infix 4 _↭_ _↭_ : 𝒦 A → 𝒦 A → Type _ xs ↭ ys = ∀ x → x ∈ xs ↔ x ∈ ys in-cons : (x : A) (xs : 𝒦 A) → x ∈ xs → xs ≡ x ∷ xs in-cons = λ x → ∥ in-cons′ x ∥⇓ where in-cons′ : ∀ x → xs ∈𝒦 A ⇒∥ (x ∈ xs → xs ≡ x ∷ xs) ∥ ∥ in-cons′ y ∥-prop {xs} p q i y∈xs = trunc xs (y ∷ xs) (p y∈xs) (q y∈xs) i ∥ in-cons′ y ∥[] () ∥ in-cons′ y ∥ x ∷ xs ⟨ Pxs ⟩ = PropTrunc.rec (trunc _ _) λ { (inl x≡y) → sym (dup x xs) ; cong (_∷ x ∷ xs) x≡y ; (inr y∈xs) → cong (x ∷_) (Pxs y∈xs) ; com x y xs } subset-ext : ∀ xs ys → (∀ (x : A) → x ∈ xs → x ∈ ys) → xs ∪ ys ≡ ys subset-ext = ∥ subset-ext′ ∥⇓ where subset-ext′ : xs ∈𝒦 A ⇒∥ (∀ ys → (∀ x → x ∈ xs → x ∈ ys) → xs ∪ ys ≡ ys) ∥ ∥ subset-ext′ ∥-prop {xs} p q i ys perm = trunc (xs ∪ ys) ys (p ys perm) (q ys perm) i ∥ subset-ext′ ∥[] _ _ = refl ∥ subset-ext′ ∥ x ∷ xs ⟨ Pxs ⟩ ys perm = (x ∷ xs) ∪ ys ≡⟨ cons-distrib-∪ x xs ys ⟩ xs ∪ (x ∷ ys) ≡⟨ Pxs (x ∷ ys) (λ y y∈xs → ∣ inr (perm y ∣ inr y∈xs ∣) ∣) ⟩ x ∷ ys ≡˘⟨ in-cons x ys (perm x ∣ inl refl ∣) ⟩ ys ∎ extensional : (xs ys : 𝒦 A) → (xs ↭ ys) → xs ≡ ys extensional xs ys xs↭ys = xs ≡˘⟨ subset-ext ys xs (inv ∘ xs↭ys) ⟩ ys ∪ xs ≡⟨ ∪-comm ys xs ⟩ xs ∪ ys ≡⟨ subset-ext xs ys (fun ∘ xs↭ys) ⟩ ys ∎
lib/target/pv2000/classic/pv2000_crt0.asm
witchcraft2001/z88dk
2
25371
; Casio PV-2000 CRT0 ; MODULE pv2000_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- defc crt0 = 1 INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- EXTERN _main ; main() is always external to crt0 code PUBLIC cleanup ; jp'd to by exit() PUBLIC l_dcal ; jp(hl) ; VDP specific PUBLIC msxbios EXTERN msx_set_mode EXTERN nmi_vectors EXTERN im1_vectors EXTERN asm_interrupt_handler EXTERN asm_im1_handler EXTERN __vdp_enable_status EXTERN VDP_STATUS ;-------- ; Set an origin for the application (-zorg=) default to 32768 ;-------- defc CRT_ORG_CODE = 0xc000 defc CRT_ORG_BSS = 0x7565 defc CONSOLE_ROWS = 24 defc CONSOLE_COLUMNS = 32 defc TAR__fputc_cons_generic = 1 defc TAR__clib_exit_stack_size = 0 defc TAR__register_sp = 0x7fff defc __CPU_CLOCK = 3579000 INCLUDE "crt/classic/crt_rules.inc" org CRT_ORG_CODE jp start start: di ; Hook the interrupt ld a,0xc3 ld ($7498),a ;jp ld hl,nmi_handler ld ($7499),hl ld a,0xc3 ld ($749b),a ;jp ld hl,mask_int ld ($749c),hl INCLUDE "crt/classic/crt_init_sp.asm" INCLUDE "crt/classic/crt_init_atexit.asm" ld (start1+1),sp ; Save entry stack call crt0_init_bss ld (exitsp),sp ld hl,2 call msx_set_mode ei ; Optional definition for auto MALLOC init ; it assumes we have free space between the end of ; the compiled program and the stack pointer IF DEFINED_USING_amalloc INCLUDE "crt/classic/crt_init_amalloc.asm" ENDIF call _main ; Call user program cleanup: push hl ; return code call crt0_exit cleanup_exit: pop bc ; return code (still not sure it is teh right one !) start1: ld sp,0 ;Restore stack to entry value ret l_dcal: jp (hl) ;Used for function pointer calls mask_int: ex (sp),hl ;Discard return address push af ld hl,im1_vectors call asm_interrupt_handler pop af pop hl ei reti ; On the PV-2000, the NMI receives the VDP interrupt nmi_handler: push af push hl ld a,(__vdp_enable_status) rlca jr c,skip_vbl ; Polling the VDP from the NMI causes graphical glitches ld a,(-VDP_STATUS) ;VDP status register skip_vbl: ld hl,nmi_vectors call asm_interrupt_handler not_VBL: pop hl pop af retn ; --------------- ; MSX specific stuff ; --------------- ; Safe BIOS call msxbios: push ix ret INCLUDE "crt/classic/crt_runtime_selection.asm" defc __crt_org_bss = CRT_ORG_BSS IF DEFINED_CRT_MODEL defc __crt_model = CRT_MODEL ELSE defc __crt_model = 1 ENDIF INCLUDE "crt/classic/crt_section.asm"
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/loop_statement.adb
sourceryinstitute/rose-sourcery-institute
1
476
procedure Loop_Statement is begin loop null; end loop; end Loop_Statement;
programs/oeis/212/A212012.asm
neoneye/loda
22
175806
<reponame>neoneye/loda ; A212012: Triangle read by rows in which row n lists the number of states of the subshells of the n-th shell of the nuclear shell model ordered by energy level in increasing order. ; 2,4,2,6,4,2,8,6,4,2,10,8,6,4,2,12,10,8,6,4,2,14,12,10,8,6,4,2,16,14,12,10,8,6,4,2,18,16,14,12,10,8,6,4,2,20,18,16,14,12,10,8,6,4,2,22,20,18,16,14,12,10,8,6,4,2,24,22,20,18,16,14,12 mul $0,2 mov $1,2 lpb $0 sub $0,$1 add $1,2 lpe sub $1,$0 mov $0,$1
stressfs.asm
KaushikKPDARE/xv6-Clone-System-Call
0
28523
<filename>stressfs.asm _stressfs: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "fs.h" #include "fcntl.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 81 ec 30 02 00 00 sub $0x230,%esp int fd, i; char path[] = "stressfs0"; c: c7 84 24 1e 02 00 00 movl $0x65727473,0x21e(%esp) 13: 73 74 72 65 17: c7 84 24 22 02 00 00 movl $0x73667373,0x222(%esp) 1e: 73 73 66 73 22: 66 c7 84 24 26 02 00 movw $0x30,0x226(%esp) 29: 00 30 00 char data[512]; printf(1, "stressfs starting\n"); 2c: c7 44 24 04 22 0a 00 movl $0xa22,0x4(%esp) 33: 00 34: c7 04 24 01 00 00 00 movl $0x1,(%esp) 3b: e8 6c 05 00 00 call 5ac <printf> memset(data, 'a', sizeof(data)); 40: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp) 47: 00 48: c7 44 24 04 61 00 00 movl $0x61,0x4(%esp) 4f: 00 50: 8d 44 24 1e lea 0x1e(%esp),%eax 54: 89 04 24 mov %eax,(%esp) 57: e8 13 02 00 00 call 26f <memset> for(i = 0; i < 4; i++) 5c: c7 84 24 2c 02 00 00 movl $0x0,0x22c(%esp) 63: 00 00 00 00 67: eb 13 jmp 7c <main+0x7c> if(fork() > 0) 69: e8 a6 03 00 00 call 414 <fork> 6e: 85 c0 test %eax,%eax 70: 7e 02 jle 74 <main+0x74> break; 72: eb 12 jmp 86 <main+0x86> char data[512]; printf(1, "stressfs starting\n"); memset(data, 'a', sizeof(data)); for(i = 0; i < 4; i++) 74: 83 84 24 2c 02 00 00 addl $0x1,0x22c(%esp) 7b: 01 7c: 83 bc 24 2c 02 00 00 cmpl $0x3,0x22c(%esp) 83: 03 84: 7e e3 jle 69 <main+0x69> if(fork() > 0) break; printf(1, "write %d\n", i); 86: 8b 84 24 2c 02 00 00 mov 0x22c(%esp),%eax 8d: 89 44 24 08 mov %eax,0x8(%esp) 91: c7 44 24 04 35 0a 00 movl $0xa35,0x4(%esp) 98: 00 99: c7 04 24 01 00 00 00 movl $0x1,(%esp) a0: e8 07 05 00 00 call 5ac <printf> path[8] += i; a5: 0f b6 84 24 26 02 00 movzbl 0x226(%esp),%eax ac: 00 ad: 89 c2 mov %eax,%edx af: 8b 84 24 2c 02 00 00 mov 0x22c(%esp),%eax b6: 01 d0 add %edx,%eax b8: 88 84 24 26 02 00 00 mov %al,0x226(%esp) fd = open(path, O_CREATE | O_RDWR); bf: c7 44 24 04 02 02 00 movl $0x202,0x4(%esp) c6: 00 c7: 8d 84 24 1e 02 00 00 lea 0x21e(%esp),%eax ce: 89 04 24 mov %eax,(%esp) d1: e8 86 03 00 00 call 45c <open> d6: 89 84 24 28 02 00 00 mov %eax,0x228(%esp) for(i = 0; i < 20; i++) dd: c7 84 24 2c 02 00 00 movl $0x0,0x22c(%esp) e4: 00 00 00 00 e8: eb 27 jmp 111 <main+0x111> // printf(fd, "%d\n", i); write(fd, data, sizeof(data)); ea: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp) f1: 00 f2: 8d 44 24 1e lea 0x1e(%esp),%eax f6: 89 44 24 04 mov %eax,0x4(%esp) fa: 8b 84 24 28 02 00 00 mov 0x228(%esp),%eax 101: 89 04 24 mov %eax,(%esp) 104: e8 33 03 00 00 call 43c <write> printf(1, "write %d\n", i); path[8] += i; fd = open(path, O_CREATE | O_RDWR); for(i = 0; i < 20; i++) 109: 83 84 24 2c 02 00 00 addl $0x1,0x22c(%esp) 110: 01 111: 83 bc 24 2c 02 00 00 cmpl $0x13,0x22c(%esp) 118: 13 119: 7e cf jle ea <main+0xea> // printf(fd, "%d\n", i); write(fd, data, sizeof(data)); close(fd); 11b: 8b 84 24 28 02 00 00 mov 0x228(%esp),%eax 122: 89 04 24 mov %eax,(%esp) 125: e8 1a 03 00 00 call 444 <close> printf(1, "read\n"); 12a: c7 44 24 04 3f 0a 00 movl $0xa3f,0x4(%esp) 131: 00 132: c7 04 24 01 00 00 00 movl $0x1,(%esp) 139: e8 6e 04 00 00 call 5ac <printf> fd = open(path, O_RDONLY); 13e: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 145: 00 146: 8d 84 24 1e 02 00 00 lea 0x21e(%esp),%eax 14d: 89 04 24 mov %eax,(%esp) 150: e8 07 03 00 00 call 45c <open> 155: 89 84 24 28 02 00 00 mov %eax,0x228(%esp) for (i = 0; i < 20; i++) 15c: c7 84 24 2c 02 00 00 movl $0x0,0x22c(%esp) 163: 00 00 00 00 167: eb 27 jmp 190 <main+0x190> read(fd, data, sizeof(data)); 169: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp) 170: 00 171: 8d 44 24 1e lea 0x1e(%esp),%eax 175: 89 44 24 04 mov %eax,0x4(%esp) 179: 8b 84 24 28 02 00 00 mov 0x228(%esp),%eax 180: 89 04 24 mov %eax,(%esp) 183: e8 ac 02 00 00 call 434 <read> close(fd); printf(1, "read\n"); fd = open(path, O_RDONLY); for (i = 0; i < 20; i++) 188: 83 84 24 2c 02 00 00 addl $0x1,0x22c(%esp) 18f: 01 190: 83 bc 24 2c 02 00 00 cmpl $0x13,0x22c(%esp) 197: 13 198: 7e cf jle 169 <main+0x169> read(fd, data, sizeof(data)); close(fd); 19a: 8b 84 24 28 02 00 00 mov 0x228(%esp),%eax 1a1: 89 04 24 mov %eax,(%esp) 1a4: e8 9b 02 00 00 call 444 <close> wait(); 1a9: e8 76 02 00 00 call 424 <wait> exit(); 1ae: e8 69 02 00 00 call 41c <exit> 1b3: 90 nop 000001b4 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 1b4: 55 push %ebp 1b5: 89 e5 mov %esp,%ebp 1b7: 57 push %edi 1b8: 53 push %ebx asm volatile("cld; rep stosb" : 1b9: 8b 4d 08 mov 0x8(%ebp),%ecx 1bc: 8b 55 10 mov 0x10(%ebp),%edx 1bf: 8b 45 0c mov 0xc(%ebp),%eax 1c2: 89 cb mov %ecx,%ebx 1c4: 89 df mov %ebx,%edi 1c6: 89 d1 mov %edx,%ecx 1c8: fc cld 1c9: f3 aa rep stos %al,%es:(%edi) 1cb: 89 ca mov %ecx,%edx 1cd: 89 fb mov %edi,%ebx 1cf: 89 5d 08 mov %ebx,0x8(%ebp) 1d2: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 1d5: 5b pop %ebx 1d6: 5f pop %edi 1d7: 5d pop %ebp 1d8: c3 ret 000001d9 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1d9: 55 push %ebp 1da: 89 e5 mov %esp,%ebp 1dc: 83 ec 10 sub $0x10,%esp char *os; os = s; 1df: 8b 45 08 mov 0x8(%ebp),%eax 1e2: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 1e5: 90 nop 1e6: 8b 45 08 mov 0x8(%ebp),%eax 1e9: 8d 50 01 lea 0x1(%eax),%edx 1ec: 89 55 08 mov %edx,0x8(%ebp) 1ef: 8b 55 0c mov 0xc(%ebp),%edx 1f2: 8d 4a 01 lea 0x1(%edx),%ecx 1f5: 89 4d 0c mov %ecx,0xc(%ebp) 1f8: 0f b6 12 movzbl (%edx),%edx 1fb: 88 10 mov %dl,(%eax) 1fd: 0f b6 00 movzbl (%eax),%eax 200: 84 c0 test %al,%al 202: 75 e2 jne 1e6 <strcpy+0xd> ; return os; 204: 8b 45 fc mov -0x4(%ebp),%eax } 207: c9 leave 208: c3 ret 00000209 <strcmp>: int strcmp(const char *p, const char *q) { 209: 55 push %ebp 20a: 89 e5 mov %esp,%ebp while(*p && *p == *q) 20c: eb 08 jmp 216 <strcmp+0xd> p++, q++; 20e: 83 45 08 01 addl $0x1,0x8(%ebp) 212: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 216: 8b 45 08 mov 0x8(%ebp),%eax 219: 0f b6 00 movzbl (%eax),%eax 21c: 84 c0 test %al,%al 21e: 74 10 je 230 <strcmp+0x27> 220: 8b 45 08 mov 0x8(%ebp),%eax 223: 0f b6 10 movzbl (%eax),%edx 226: 8b 45 0c mov 0xc(%ebp),%eax 229: 0f b6 00 movzbl (%eax),%eax 22c: 38 c2 cmp %al,%dl 22e: 74 de je 20e <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 230: 8b 45 08 mov 0x8(%ebp),%eax 233: 0f b6 00 movzbl (%eax),%eax 236: 0f b6 d0 movzbl %al,%edx 239: 8b 45 0c mov 0xc(%ebp),%eax 23c: 0f b6 00 movzbl (%eax),%eax 23f: 0f b6 c0 movzbl %al,%eax 242: 29 c2 sub %eax,%edx 244: 89 d0 mov %edx,%eax } 246: 5d pop %ebp 247: c3 ret 00000248 <strlen>: uint strlen(char *s) { 248: 55 push %ebp 249: 89 e5 mov %esp,%ebp 24b: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 24e: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 255: eb 04 jmp 25b <strlen+0x13> 257: 83 45 fc 01 addl $0x1,-0x4(%ebp) 25b: 8b 55 fc mov -0x4(%ebp),%edx 25e: 8b 45 08 mov 0x8(%ebp),%eax 261: 01 d0 add %edx,%eax 263: 0f b6 00 movzbl (%eax),%eax 266: 84 c0 test %al,%al 268: 75 ed jne 257 <strlen+0xf> ; return n; 26a: 8b 45 fc mov -0x4(%ebp),%eax } 26d: c9 leave 26e: c3 ret 0000026f <memset>: void* memset(void *dst, int c, uint n) { 26f: 55 push %ebp 270: 89 e5 mov %esp,%ebp 272: 83 ec 0c sub $0xc,%esp stosb(dst, c, n); 275: 8b 45 10 mov 0x10(%ebp),%eax 278: 89 44 24 08 mov %eax,0x8(%esp) 27c: 8b 45 0c mov 0xc(%ebp),%eax 27f: 89 44 24 04 mov %eax,0x4(%esp) 283: 8b 45 08 mov 0x8(%ebp),%eax 286: 89 04 24 mov %eax,(%esp) 289: e8 26 ff ff ff call 1b4 <stosb> return dst; 28e: 8b 45 08 mov 0x8(%ebp),%eax } 291: c9 leave 292: c3 ret 00000293 <strchr>: char* strchr(const char *s, char c) { 293: 55 push %ebp 294: 89 e5 mov %esp,%ebp 296: 83 ec 04 sub $0x4,%esp 299: 8b 45 0c mov 0xc(%ebp),%eax 29c: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 29f: eb 14 jmp 2b5 <strchr+0x22> if(*s == c) 2a1: 8b 45 08 mov 0x8(%ebp),%eax 2a4: 0f b6 00 movzbl (%eax),%eax 2a7: 3a 45 fc cmp -0x4(%ebp),%al 2aa: 75 05 jne 2b1 <strchr+0x1e> return (char*)s; 2ac: 8b 45 08 mov 0x8(%ebp),%eax 2af: eb 13 jmp 2c4 <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 2b1: 83 45 08 01 addl $0x1,0x8(%ebp) 2b5: 8b 45 08 mov 0x8(%ebp),%eax 2b8: 0f b6 00 movzbl (%eax),%eax 2bb: 84 c0 test %al,%al 2bd: 75 e2 jne 2a1 <strchr+0xe> if(*s == c) return (char*)s; return 0; 2bf: b8 00 00 00 00 mov $0x0,%eax } 2c4: c9 leave 2c5: c3 ret 000002c6 <gets>: char* gets(char *buf, int max) { 2c6: 55 push %ebp 2c7: 89 e5 mov %esp,%ebp 2c9: 83 ec 28 sub $0x28,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 2cc: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 2d3: eb 4c jmp 321 <gets+0x5b> cc = read(0, &c, 1); 2d5: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 2dc: 00 2dd: 8d 45 ef lea -0x11(%ebp),%eax 2e0: 89 44 24 04 mov %eax,0x4(%esp) 2e4: c7 04 24 00 00 00 00 movl $0x0,(%esp) 2eb: e8 44 01 00 00 call 434 <read> 2f0: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 2f3: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 2f7: 7f 02 jg 2fb <gets+0x35> break; 2f9: eb 31 jmp 32c <gets+0x66> buf[i++] = c; 2fb: 8b 45 f4 mov -0xc(%ebp),%eax 2fe: 8d 50 01 lea 0x1(%eax),%edx 301: 89 55 f4 mov %edx,-0xc(%ebp) 304: 89 c2 mov %eax,%edx 306: 8b 45 08 mov 0x8(%ebp),%eax 309: 01 c2 add %eax,%edx 30b: 0f b6 45 ef movzbl -0x11(%ebp),%eax 30f: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 311: 0f b6 45 ef movzbl -0x11(%ebp),%eax 315: 3c 0a cmp $0xa,%al 317: 74 13 je 32c <gets+0x66> 319: 0f b6 45 ef movzbl -0x11(%ebp),%eax 31d: 3c 0d cmp $0xd,%al 31f: 74 0b je 32c <gets+0x66> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 321: 8b 45 f4 mov -0xc(%ebp),%eax 324: 83 c0 01 add $0x1,%eax 327: 3b 45 0c cmp 0xc(%ebp),%eax 32a: 7c a9 jl 2d5 <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 32c: 8b 55 f4 mov -0xc(%ebp),%edx 32f: 8b 45 08 mov 0x8(%ebp),%eax 332: 01 d0 add %edx,%eax 334: c6 00 00 movb $0x0,(%eax) return buf; 337: 8b 45 08 mov 0x8(%ebp),%eax } 33a: c9 leave 33b: c3 ret 0000033c <stat>: int stat(char *n, struct stat *st) { 33c: 55 push %ebp 33d: 89 e5 mov %esp,%ebp 33f: 83 ec 28 sub $0x28,%esp int fd; int r; fd = open(n, O_RDONLY); 342: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 349: 00 34a: 8b 45 08 mov 0x8(%ebp),%eax 34d: 89 04 24 mov %eax,(%esp) 350: e8 07 01 00 00 call 45c <open> 355: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 358: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 35c: 79 07 jns 365 <stat+0x29> return -1; 35e: b8 ff ff ff ff mov $0xffffffff,%eax 363: eb 23 jmp 388 <stat+0x4c> r = fstat(fd, st); 365: 8b 45 0c mov 0xc(%ebp),%eax 368: 89 44 24 04 mov %eax,0x4(%esp) 36c: 8b 45 f4 mov -0xc(%ebp),%eax 36f: 89 04 24 mov %eax,(%esp) 372: e8 fd 00 00 00 call 474 <fstat> 377: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 37a: 8b 45 f4 mov -0xc(%ebp),%eax 37d: 89 04 24 mov %eax,(%esp) 380: e8 bf 00 00 00 call 444 <close> return r; 385: 8b 45 f0 mov -0x10(%ebp),%eax } 388: c9 leave 389: c3 ret 0000038a <atoi>: int atoi(const char *s) { 38a: 55 push %ebp 38b: 89 e5 mov %esp,%ebp 38d: 83 ec 10 sub $0x10,%esp int n; n = 0; 390: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 397: eb 25 jmp 3be <atoi+0x34> n = n*10 + *s++ - '0'; 399: 8b 55 fc mov -0x4(%ebp),%edx 39c: 89 d0 mov %edx,%eax 39e: c1 e0 02 shl $0x2,%eax 3a1: 01 d0 add %edx,%eax 3a3: 01 c0 add %eax,%eax 3a5: 89 c1 mov %eax,%ecx 3a7: 8b 45 08 mov 0x8(%ebp),%eax 3aa: 8d 50 01 lea 0x1(%eax),%edx 3ad: 89 55 08 mov %edx,0x8(%ebp) 3b0: 0f b6 00 movzbl (%eax),%eax 3b3: 0f be c0 movsbl %al,%eax 3b6: 01 c8 add %ecx,%eax 3b8: 83 e8 30 sub $0x30,%eax 3bb: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 3be: 8b 45 08 mov 0x8(%ebp),%eax 3c1: 0f b6 00 movzbl (%eax),%eax 3c4: 3c 2f cmp $0x2f,%al 3c6: 7e 0a jle 3d2 <atoi+0x48> 3c8: 8b 45 08 mov 0x8(%ebp),%eax 3cb: 0f b6 00 movzbl (%eax),%eax 3ce: 3c 39 cmp $0x39,%al 3d0: 7e c7 jle 399 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 3d2: 8b 45 fc mov -0x4(%ebp),%eax } 3d5: c9 leave 3d6: c3 ret 000003d7 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 3d7: 55 push %ebp 3d8: 89 e5 mov %esp,%ebp 3da: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 3dd: 8b 45 08 mov 0x8(%ebp),%eax 3e0: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 3e3: 8b 45 0c mov 0xc(%ebp),%eax 3e6: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 3e9: eb 17 jmp 402 <memmove+0x2b> *dst++ = *src++; 3eb: 8b 45 fc mov -0x4(%ebp),%eax 3ee: 8d 50 01 lea 0x1(%eax),%edx 3f1: 89 55 fc mov %edx,-0x4(%ebp) 3f4: 8b 55 f8 mov -0x8(%ebp),%edx 3f7: 8d 4a 01 lea 0x1(%edx),%ecx 3fa: 89 4d f8 mov %ecx,-0x8(%ebp) 3fd: 0f b6 12 movzbl (%edx),%edx 400: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 402: 8b 45 10 mov 0x10(%ebp),%eax 405: 8d 50 ff lea -0x1(%eax),%edx 408: 89 55 10 mov %edx,0x10(%ebp) 40b: 85 c0 test %eax,%eax 40d: 7f dc jg 3eb <memmove+0x14> *dst++ = *src++; return vdst; 40f: 8b 45 08 mov 0x8(%ebp),%eax } 412: c9 leave 413: c3 ret 00000414 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 414: b8 01 00 00 00 mov $0x1,%eax 419: cd 40 int $0x40 41b: c3 ret 0000041c <exit>: SYSCALL(exit) 41c: b8 02 00 00 00 mov $0x2,%eax 421: cd 40 int $0x40 423: c3 ret 00000424 <wait>: SYSCALL(wait) 424: b8 03 00 00 00 mov $0x3,%eax 429: cd 40 int $0x40 42b: c3 ret 0000042c <pipe>: SYSCALL(pipe) 42c: b8 04 00 00 00 mov $0x4,%eax 431: cd 40 int $0x40 433: c3 ret 00000434 <read>: SYSCALL(read) 434: b8 05 00 00 00 mov $0x5,%eax 439: cd 40 int $0x40 43b: c3 ret 0000043c <write>: SYSCALL(write) 43c: b8 10 00 00 00 mov $0x10,%eax 441: cd 40 int $0x40 443: c3 ret 00000444 <close>: SYSCALL(close) 444: b8 15 00 00 00 mov $0x15,%eax 449: cd 40 int $0x40 44b: c3 ret 0000044c <kill>: SYSCALL(kill) 44c: b8 06 00 00 00 mov $0x6,%eax 451: cd 40 int $0x40 453: c3 ret 00000454 <exec>: SYSCALL(exec) 454: b8 07 00 00 00 mov $0x7,%eax 459: cd 40 int $0x40 45b: c3 ret 0000045c <open>: SYSCALL(open) 45c: b8 0f 00 00 00 mov $0xf,%eax 461: cd 40 int $0x40 463: c3 ret 00000464 <mknod>: SYSCALL(mknod) 464: b8 11 00 00 00 mov $0x11,%eax 469: cd 40 int $0x40 46b: c3 ret 0000046c <unlink>: SYSCALL(unlink) 46c: b8 12 00 00 00 mov $0x12,%eax 471: cd 40 int $0x40 473: c3 ret 00000474 <fstat>: SYSCALL(fstat) 474: b8 08 00 00 00 mov $0x8,%eax 479: cd 40 int $0x40 47b: c3 ret 0000047c <link>: SYSCALL(link) 47c: b8 13 00 00 00 mov $0x13,%eax 481: cd 40 int $0x40 483: c3 ret 00000484 <mkdir>: SYSCALL(mkdir) 484: b8 14 00 00 00 mov $0x14,%eax 489: cd 40 int $0x40 48b: c3 ret 0000048c <chdir>: SYSCALL(chdir) 48c: b8 09 00 00 00 mov $0x9,%eax 491: cd 40 int $0x40 493: c3 ret 00000494 <dup>: SYSCALL(dup) 494: b8 0a 00 00 00 mov $0xa,%eax 499: cd 40 int $0x40 49b: c3 ret 0000049c <getpid>: SYSCALL(getpid) 49c: b8 0b 00 00 00 mov $0xb,%eax 4a1: cd 40 int $0x40 4a3: c3 ret 000004a4 <sbrk>: SYSCALL(sbrk) 4a4: b8 0c 00 00 00 mov $0xc,%eax 4a9: cd 40 int $0x40 4ab: c3 ret 000004ac <sleep>: SYSCALL(sleep) 4ac: b8 0d 00 00 00 mov $0xd,%eax 4b1: cd 40 int $0x40 4b3: c3 ret 000004b4 <uptime>: SYSCALL(uptime) 4b4: b8 0e 00 00 00 mov $0xe,%eax 4b9: cd 40 int $0x40 4bb: c3 ret 000004bc <clone>: SYSCALL(clone) 4bc: b8 16 00 00 00 mov $0x16,%eax 4c1: cd 40 int $0x40 4c3: c3 ret 000004c4 <join>: 4c4: b8 17 00 00 00 mov $0x17,%eax 4c9: cd 40 int $0x40 4cb: c3 ret 000004cc <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 4cc: 55 push %ebp 4cd: 89 e5 mov %esp,%ebp 4cf: 83 ec 18 sub $0x18,%esp 4d2: 8b 45 0c mov 0xc(%ebp),%eax 4d5: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 4d8: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 4df: 00 4e0: 8d 45 f4 lea -0xc(%ebp),%eax 4e3: 89 44 24 04 mov %eax,0x4(%esp) 4e7: 8b 45 08 mov 0x8(%ebp),%eax 4ea: 89 04 24 mov %eax,(%esp) 4ed: e8 4a ff ff ff call 43c <write> } 4f2: c9 leave 4f3: c3 ret 000004f4 <printint>: static void printint(int fd, int xx, int base, int sgn) { 4f4: 55 push %ebp 4f5: 89 e5 mov %esp,%ebp 4f7: 56 push %esi 4f8: 53 push %ebx 4f9: 83 ec 30 sub $0x30,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 4fc: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 503: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 507: 74 17 je 520 <printint+0x2c> 509: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 50d: 79 11 jns 520 <printint+0x2c> neg = 1; 50f: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 516: 8b 45 0c mov 0xc(%ebp),%eax 519: f7 d8 neg %eax 51b: 89 45 ec mov %eax,-0x14(%ebp) 51e: eb 06 jmp 526 <printint+0x32> } else { x = xx; 520: 8b 45 0c mov 0xc(%ebp),%eax 523: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 526: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 52d: 8b 4d f4 mov -0xc(%ebp),%ecx 530: 8d 41 01 lea 0x1(%ecx),%eax 533: 89 45 f4 mov %eax,-0xc(%ebp) 536: 8b 5d 10 mov 0x10(%ebp),%ebx 539: 8b 45 ec mov -0x14(%ebp),%eax 53c: ba 00 00 00 00 mov $0x0,%edx 541: f7 f3 div %ebx 543: 89 d0 mov %edx,%eax 545: 0f b6 80 50 0d 00 00 movzbl 0xd50(%eax),%eax 54c: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 550: 8b 75 10 mov 0x10(%ebp),%esi 553: 8b 45 ec mov -0x14(%ebp),%eax 556: ba 00 00 00 00 mov $0x0,%edx 55b: f7 f6 div %esi 55d: 89 45 ec mov %eax,-0x14(%ebp) 560: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 564: 75 c7 jne 52d <printint+0x39> if(neg) 566: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 56a: 74 10 je 57c <printint+0x88> buf[i++] = '-'; 56c: 8b 45 f4 mov -0xc(%ebp),%eax 56f: 8d 50 01 lea 0x1(%eax),%edx 572: 89 55 f4 mov %edx,-0xc(%ebp) 575: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 57a: eb 1f jmp 59b <printint+0xa7> 57c: eb 1d jmp 59b <printint+0xa7> putc(fd, buf[i]); 57e: 8d 55 dc lea -0x24(%ebp),%edx 581: 8b 45 f4 mov -0xc(%ebp),%eax 584: 01 d0 add %edx,%eax 586: 0f b6 00 movzbl (%eax),%eax 589: 0f be c0 movsbl %al,%eax 58c: 89 44 24 04 mov %eax,0x4(%esp) 590: 8b 45 08 mov 0x8(%ebp),%eax 593: 89 04 24 mov %eax,(%esp) 596: e8 31 ff ff ff call 4cc <putc> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 59b: 83 6d f4 01 subl $0x1,-0xc(%ebp) 59f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 5a3: 79 d9 jns 57e <printint+0x8a> putc(fd, buf[i]); } 5a5: 83 c4 30 add $0x30,%esp 5a8: 5b pop %ebx 5a9: 5e pop %esi 5aa: 5d pop %ebp 5ab: c3 ret 000005ac <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 5ac: 55 push %ebp 5ad: 89 e5 mov %esp,%ebp 5af: 83 ec 38 sub $0x38,%esp char *s; int c, i, state; uint *ap; state = 0; 5b2: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 5b9: 8d 45 0c lea 0xc(%ebp),%eax 5bc: 83 c0 04 add $0x4,%eax 5bf: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 5c2: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 5c9: e9 7c 01 00 00 jmp 74a <printf+0x19e> c = fmt[i] & 0xff; 5ce: 8b 55 0c mov 0xc(%ebp),%edx 5d1: 8b 45 f0 mov -0x10(%ebp),%eax 5d4: 01 d0 add %edx,%eax 5d6: 0f b6 00 movzbl (%eax),%eax 5d9: 0f be c0 movsbl %al,%eax 5dc: 25 ff 00 00 00 and $0xff,%eax 5e1: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 5e4: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 5e8: 75 2c jne 616 <printf+0x6a> if(c == '%'){ 5ea: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 5ee: 75 0c jne 5fc <printf+0x50> state = '%'; 5f0: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 5f7: e9 4a 01 00 00 jmp 746 <printf+0x19a> } else { putc(fd, c); 5fc: 8b 45 e4 mov -0x1c(%ebp),%eax 5ff: 0f be c0 movsbl %al,%eax 602: 89 44 24 04 mov %eax,0x4(%esp) 606: 8b 45 08 mov 0x8(%ebp),%eax 609: 89 04 24 mov %eax,(%esp) 60c: e8 bb fe ff ff call 4cc <putc> 611: e9 30 01 00 00 jmp 746 <printf+0x19a> } } else if(state == '%'){ 616: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 61a: 0f 85 26 01 00 00 jne 746 <printf+0x19a> if(c == 'd'){ 620: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 624: 75 2d jne 653 <printf+0xa7> printint(fd, *ap, 10, 1); 626: 8b 45 e8 mov -0x18(%ebp),%eax 629: 8b 00 mov (%eax),%eax 62b: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp) 632: 00 633: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp) 63a: 00 63b: 89 44 24 04 mov %eax,0x4(%esp) 63f: 8b 45 08 mov 0x8(%ebp),%eax 642: 89 04 24 mov %eax,(%esp) 645: e8 aa fe ff ff call 4f4 <printint> ap++; 64a: 83 45 e8 04 addl $0x4,-0x18(%ebp) 64e: e9 ec 00 00 00 jmp 73f <printf+0x193> } else if(c == 'x' || c == 'p'){ 653: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 657: 74 06 je 65f <printf+0xb3> 659: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 65d: 75 2d jne 68c <printf+0xe0> printint(fd, *ap, 16, 0); 65f: 8b 45 e8 mov -0x18(%ebp),%eax 662: 8b 00 mov (%eax),%eax 664: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp) 66b: 00 66c: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp) 673: 00 674: 89 44 24 04 mov %eax,0x4(%esp) 678: 8b 45 08 mov 0x8(%ebp),%eax 67b: 89 04 24 mov %eax,(%esp) 67e: e8 71 fe ff ff call 4f4 <printint> ap++; 683: 83 45 e8 04 addl $0x4,-0x18(%ebp) 687: e9 b3 00 00 00 jmp 73f <printf+0x193> } else if(c == 's'){ 68c: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 690: 75 45 jne 6d7 <printf+0x12b> s = (char*)*ap; 692: 8b 45 e8 mov -0x18(%ebp),%eax 695: 8b 00 mov (%eax),%eax 697: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 69a: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 69e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 6a2: 75 09 jne 6ad <printf+0x101> s = "(null)"; 6a4: c7 45 f4 45 0a 00 00 movl $0xa45,-0xc(%ebp) while(*s != 0){ 6ab: eb 1e jmp 6cb <printf+0x11f> 6ad: eb 1c jmp 6cb <printf+0x11f> putc(fd, *s); 6af: 8b 45 f4 mov -0xc(%ebp),%eax 6b2: 0f b6 00 movzbl (%eax),%eax 6b5: 0f be c0 movsbl %al,%eax 6b8: 89 44 24 04 mov %eax,0x4(%esp) 6bc: 8b 45 08 mov 0x8(%ebp),%eax 6bf: 89 04 24 mov %eax,(%esp) 6c2: e8 05 fe ff ff call 4cc <putc> s++; 6c7: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 6cb: 8b 45 f4 mov -0xc(%ebp),%eax 6ce: 0f b6 00 movzbl (%eax),%eax 6d1: 84 c0 test %al,%al 6d3: 75 da jne 6af <printf+0x103> 6d5: eb 68 jmp 73f <printf+0x193> putc(fd, *s); s++; } } else if(c == 'c'){ 6d7: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 6db: 75 1d jne 6fa <printf+0x14e> putc(fd, *ap); 6dd: 8b 45 e8 mov -0x18(%ebp),%eax 6e0: 8b 00 mov (%eax),%eax 6e2: 0f be c0 movsbl %al,%eax 6e5: 89 44 24 04 mov %eax,0x4(%esp) 6e9: 8b 45 08 mov 0x8(%ebp),%eax 6ec: 89 04 24 mov %eax,(%esp) 6ef: e8 d8 fd ff ff call 4cc <putc> ap++; 6f4: 83 45 e8 04 addl $0x4,-0x18(%ebp) 6f8: eb 45 jmp 73f <printf+0x193> } else if(c == '%'){ 6fa: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 6fe: 75 17 jne 717 <printf+0x16b> putc(fd, c); 700: 8b 45 e4 mov -0x1c(%ebp),%eax 703: 0f be c0 movsbl %al,%eax 706: 89 44 24 04 mov %eax,0x4(%esp) 70a: 8b 45 08 mov 0x8(%ebp),%eax 70d: 89 04 24 mov %eax,(%esp) 710: e8 b7 fd ff ff call 4cc <putc> 715: eb 28 jmp 73f <printf+0x193> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 717: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp) 71e: 00 71f: 8b 45 08 mov 0x8(%ebp),%eax 722: 89 04 24 mov %eax,(%esp) 725: e8 a2 fd ff ff call 4cc <putc> putc(fd, c); 72a: 8b 45 e4 mov -0x1c(%ebp),%eax 72d: 0f be c0 movsbl %al,%eax 730: 89 44 24 04 mov %eax,0x4(%esp) 734: 8b 45 08 mov 0x8(%ebp),%eax 737: 89 04 24 mov %eax,(%esp) 73a: e8 8d fd ff ff call 4cc <putc> } state = 0; 73f: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 746: 83 45 f0 01 addl $0x1,-0x10(%ebp) 74a: 8b 55 0c mov 0xc(%ebp),%edx 74d: 8b 45 f0 mov -0x10(%ebp),%eax 750: 01 d0 add %edx,%eax 752: 0f b6 00 movzbl (%eax),%eax 755: 84 c0 test %al,%al 757: 0f 85 71 fe ff ff jne 5ce <printf+0x22> putc(fd, c); } state = 0; } } } 75d: c9 leave 75e: c3 ret 75f: 90 nop 00000760 <free>: static Header base; static Header *freep; void free(void *ap) { 760: 55 push %ebp 761: 89 e5 mov %esp,%ebp 763: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 766: 8b 45 08 mov 0x8(%ebp),%eax 769: 83 e8 08 sub $0x8,%eax 76c: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 76f: a1 6c 0d 00 00 mov 0xd6c,%eax 774: 89 45 fc mov %eax,-0x4(%ebp) 777: eb 24 jmp 79d <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 779: 8b 45 fc mov -0x4(%ebp),%eax 77c: 8b 00 mov (%eax),%eax 77e: 3b 45 fc cmp -0x4(%ebp),%eax 781: 77 12 ja 795 <free+0x35> 783: 8b 45 f8 mov -0x8(%ebp),%eax 786: 3b 45 fc cmp -0x4(%ebp),%eax 789: 77 24 ja 7af <free+0x4f> 78b: 8b 45 fc mov -0x4(%ebp),%eax 78e: 8b 00 mov (%eax),%eax 790: 3b 45 f8 cmp -0x8(%ebp),%eax 793: 77 1a ja 7af <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 795: 8b 45 fc mov -0x4(%ebp),%eax 798: 8b 00 mov (%eax),%eax 79a: 89 45 fc mov %eax,-0x4(%ebp) 79d: 8b 45 f8 mov -0x8(%ebp),%eax 7a0: 3b 45 fc cmp -0x4(%ebp),%eax 7a3: 76 d4 jbe 779 <free+0x19> 7a5: 8b 45 fc mov -0x4(%ebp),%eax 7a8: 8b 00 mov (%eax),%eax 7aa: 3b 45 f8 cmp -0x8(%ebp),%eax 7ad: 76 ca jbe 779 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 7af: 8b 45 f8 mov -0x8(%ebp),%eax 7b2: 8b 40 04 mov 0x4(%eax),%eax 7b5: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 7bc: 8b 45 f8 mov -0x8(%ebp),%eax 7bf: 01 c2 add %eax,%edx 7c1: 8b 45 fc mov -0x4(%ebp),%eax 7c4: 8b 00 mov (%eax),%eax 7c6: 39 c2 cmp %eax,%edx 7c8: 75 24 jne 7ee <free+0x8e> bp->s.size += p->s.ptr->s.size; 7ca: 8b 45 f8 mov -0x8(%ebp),%eax 7cd: 8b 50 04 mov 0x4(%eax),%edx 7d0: 8b 45 fc mov -0x4(%ebp),%eax 7d3: 8b 00 mov (%eax),%eax 7d5: 8b 40 04 mov 0x4(%eax),%eax 7d8: 01 c2 add %eax,%edx 7da: 8b 45 f8 mov -0x8(%ebp),%eax 7dd: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 7e0: 8b 45 fc mov -0x4(%ebp),%eax 7e3: 8b 00 mov (%eax),%eax 7e5: 8b 10 mov (%eax),%edx 7e7: 8b 45 f8 mov -0x8(%ebp),%eax 7ea: 89 10 mov %edx,(%eax) 7ec: eb 0a jmp 7f8 <free+0x98> } else bp->s.ptr = p->s.ptr; 7ee: 8b 45 fc mov -0x4(%ebp),%eax 7f1: 8b 10 mov (%eax),%edx 7f3: 8b 45 f8 mov -0x8(%ebp),%eax 7f6: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 7f8: 8b 45 fc mov -0x4(%ebp),%eax 7fb: 8b 40 04 mov 0x4(%eax),%eax 7fe: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 805: 8b 45 fc mov -0x4(%ebp),%eax 808: 01 d0 add %edx,%eax 80a: 3b 45 f8 cmp -0x8(%ebp),%eax 80d: 75 20 jne 82f <free+0xcf> p->s.size += bp->s.size; 80f: 8b 45 fc mov -0x4(%ebp),%eax 812: 8b 50 04 mov 0x4(%eax),%edx 815: 8b 45 f8 mov -0x8(%ebp),%eax 818: 8b 40 04 mov 0x4(%eax),%eax 81b: 01 c2 add %eax,%edx 81d: 8b 45 fc mov -0x4(%ebp),%eax 820: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 823: 8b 45 f8 mov -0x8(%ebp),%eax 826: 8b 10 mov (%eax),%edx 828: 8b 45 fc mov -0x4(%ebp),%eax 82b: 89 10 mov %edx,(%eax) 82d: eb 08 jmp 837 <free+0xd7> } else p->s.ptr = bp; 82f: 8b 45 fc mov -0x4(%ebp),%eax 832: 8b 55 f8 mov -0x8(%ebp),%edx 835: 89 10 mov %edx,(%eax) freep = p; 837: 8b 45 fc mov -0x4(%ebp),%eax 83a: a3 6c 0d 00 00 mov %eax,0xd6c } 83f: c9 leave 840: c3 ret 00000841 <morecore>: static Header* morecore(uint nu) { 841: 55 push %ebp 842: 89 e5 mov %esp,%ebp 844: 83 ec 28 sub $0x28,%esp char *p; Header *hp; if(nu < 4096) 847: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 84e: 77 07 ja 857 <morecore+0x16> nu = 4096; 850: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 857: 8b 45 08 mov 0x8(%ebp),%eax 85a: c1 e0 03 shl $0x3,%eax 85d: 89 04 24 mov %eax,(%esp) 860: e8 3f fc ff ff call 4a4 <sbrk> 865: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 868: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 86c: 75 07 jne 875 <morecore+0x34> return 0; 86e: b8 00 00 00 00 mov $0x0,%eax 873: eb 22 jmp 897 <morecore+0x56> hp = (Header*)p; 875: 8b 45 f4 mov -0xc(%ebp),%eax 878: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 87b: 8b 45 f0 mov -0x10(%ebp),%eax 87e: 8b 55 08 mov 0x8(%ebp),%edx 881: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 884: 8b 45 f0 mov -0x10(%ebp),%eax 887: 83 c0 08 add $0x8,%eax 88a: 89 04 24 mov %eax,(%esp) 88d: e8 ce fe ff ff call 760 <free> return freep; 892: a1 6c 0d 00 00 mov 0xd6c,%eax } 897: c9 leave 898: c3 ret 00000899 <malloc>: void* malloc(uint nbytes) { 899: 55 push %ebp 89a: 89 e5 mov %esp,%ebp 89c: 83 ec 28 sub $0x28,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 89f: 8b 45 08 mov 0x8(%ebp),%eax 8a2: 83 c0 07 add $0x7,%eax 8a5: c1 e8 03 shr $0x3,%eax 8a8: 83 c0 01 add $0x1,%eax 8ab: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 8ae: a1 6c 0d 00 00 mov 0xd6c,%eax 8b3: 89 45 f0 mov %eax,-0x10(%ebp) 8b6: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8ba: 75 23 jne 8df <malloc+0x46> base.s.ptr = freep = prevp = &base; 8bc: c7 45 f0 64 0d 00 00 movl $0xd64,-0x10(%ebp) 8c3: 8b 45 f0 mov -0x10(%ebp),%eax 8c6: a3 6c 0d 00 00 mov %eax,0xd6c 8cb: a1 6c 0d 00 00 mov 0xd6c,%eax 8d0: a3 64 0d 00 00 mov %eax,0xd64 base.s.size = 0; 8d5: c7 05 68 0d 00 00 00 movl $0x0,0xd68 8dc: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 8df: 8b 45 f0 mov -0x10(%ebp),%eax 8e2: 8b 00 mov (%eax),%eax 8e4: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 8e7: 8b 45 f4 mov -0xc(%ebp),%eax 8ea: 8b 40 04 mov 0x4(%eax),%eax 8ed: 3b 45 ec cmp -0x14(%ebp),%eax 8f0: 72 4d jb 93f <malloc+0xa6> if(p->s.size == nunits) 8f2: 8b 45 f4 mov -0xc(%ebp),%eax 8f5: 8b 40 04 mov 0x4(%eax),%eax 8f8: 3b 45 ec cmp -0x14(%ebp),%eax 8fb: 75 0c jne 909 <malloc+0x70> prevp->s.ptr = p->s.ptr; 8fd: 8b 45 f4 mov -0xc(%ebp),%eax 900: 8b 10 mov (%eax),%edx 902: 8b 45 f0 mov -0x10(%ebp),%eax 905: 89 10 mov %edx,(%eax) 907: eb 26 jmp 92f <malloc+0x96> else { p->s.size -= nunits; 909: 8b 45 f4 mov -0xc(%ebp),%eax 90c: 8b 40 04 mov 0x4(%eax),%eax 90f: 2b 45 ec sub -0x14(%ebp),%eax 912: 89 c2 mov %eax,%edx 914: 8b 45 f4 mov -0xc(%ebp),%eax 917: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 91a: 8b 45 f4 mov -0xc(%ebp),%eax 91d: 8b 40 04 mov 0x4(%eax),%eax 920: c1 e0 03 shl $0x3,%eax 923: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 926: 8b 45 f4 mov -0xc(%ebp),%eax 929: 8b 55 ec mov -0x14(%ebp),%edx 92c: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 92f: 8b 45 f0 mov -0x10(%ebp),%eax 932: a3 6c 0d 00 00 mov %eax,0xd6c return (void*)(p + 1); 937: 8b 45 f4 mov -0xc(%ebp),%eax 93a: 83 c0 08 add $0x8,%eax 93d: eb 38 jmp 977 <malloc+0xde> } if(p == freep) 93f: a1 6c 0d 00 00 mov 0xd6c,%eax 944: 39 45 f4 cmp %eax,-0xc(%ebp) 947: 75 1b jne 964 <malloc+0xcb> if((p = morecore(nunits)) == 0) 949: 8b 45 ec mov -0x14(%ebp),%eax 94c: 89 04 24 mov %eax,(%esp) 94f: e8 ed fe ff ff call 841 <morecore> 954: 89 45 f4 mov %eax,-0xc(%ebp) 957: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 95b: 75 07 jne 964 <malloc+0xcb> return 0; 95d: b8 00 00 00 00 mov $0x0,%eax 962: eb 13 jmp 977 <malloc+0xde> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 964: 8b 45 f4 mov -0xc(%ebp),%eax 967: 89 45 f0 mov %eax,-0x10(%ebp) 96a: 8b 45 f4 mov -0xc(%ebp),%eax 96d: 8b 00 mov (%eax),%eax 96f: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 972: e9 70 ff ff ff jmp 8e7 <malloc+0x4e> } 977: c9 leave 978: c3 ret 979: 66 90 xchg %ax,%ax 97b: 90 nop 0000097c <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { 97c: 55 push %ebp 97d: 89 e5 mov %esp,%ebp 97f: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 982: 8b 55 08 mov 0x8(%ebp),%edx 985: 8b 45 0c mov 0xc(%ebp),%eax 988: 8b 4d 08 mov 0x8(%ebp),%ecx 98b: f0 87 02 lock xchg %eax,(%edx) 98e: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 991: 8b 45 fc mov -0x4(%ebp),%eax } 994: c9 leave 995: c3 ret 00000996 <mutex_init>: #include "types.h" #include "user.h" #include "x86.h" #include "threadlib.h" void mutex_init(mutex_t *m) { 996: 55 push %ebp 997: 89 e5 mov %esp,%ebp // 0 indicates that lock is available, 1 that it is held by a thread m->flag = 0; 999: 8b 45 08 mov 0x8(%ebp),%eax 99c: c7 00 00 00 00 00 movl $0x0,(%eax) } 9a2: 5d pop %ebp 9a3: c3 ret 000009a4 <mutex_lock>: void mutex_lock(mutex_t *m) { 9a4: 55 push %ebp 9a5: 89 e5 mov %esp,%ebp 9a7: 83 ec 08 sub $0x8,%esp while (xchg(&m->flag, 1) == 1); // spin-wait (do nothing) 9aa: 90 nop 9ab: 8b 45 08 mov 0x8(%ebp),%eax 9ae: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp) 9b5: 00 9b6: 89 04 24 mov %eax,(%esp) 9b9: e8 be ff ff ff call 97c <xchg> 9be: 83 f8 01 cmp $0x1,%eax 9c1: 74 e8 je 9ab <mutex_lock+0x7> } 9c3: c9 leave 9c4: c3 ret 000009c5 <mutex_unlock>: void mutex_unlock(mutex_t *m) { 9c5: 55 push %ebp 9c6: 89 e5 mov %esp,%ebp m->flag = 0; 9c8: 8b 45 08 mov 0x8(%ebp),%eax 9cb: c7 00 00 00 00 00 movl $0x0,(%eax) } 9d1: 5d pop %ebp 9d2: c3 ret 000009d3 <thread_create>: if(!pid) (*start_routine)(arg); else return pid; }*/ int thread_create(void(*child)(void*), void *arg_ptr) { 9d3: 55 push %ebp 9d4: 89 e5 mov %esp,%ebp 9d6: 83 ec 28 sub $0x28,%esp void *stack = malloc(4096); 9d9: c7 04 24 00 10 00 00 movl $0x1000,(%esp) 9e0: e8 b4 fe ff ff call 899 <malloc> 9e5: 89 45 f4 mov %eax,-0xc(%ebp) int clone_pid = clone(child, arg_ptr, stack); 9e8: 8b 45 f4 mov -0xc(%ebp),%eax 9eb: 89 44 24 08 mov %eax,0x8(%esp) 9ef: 8b 45 0c mov 0xc(%ebp),%eax 9f2: 89 44 24 04 mov %eax,0x4(%esp) 9f6: 8b 45 08 mov 0x8(%ebp),%eax 9f9: 89 04 24 mov %eax,(%esp) 9fc: e8 bb fa ff ff call 4bc <clone> a01: 89 45 f0 mov %eax,-0x10(%ebp) return clone_pid; a04: 8b 45 f0 mov -0x10(%ebp),%eax } a07: c9 leave a08: c3 ret 00000a09 <thread_join>: int thread_join(void) { a09: 55 push %ebp a0a: 89 e5 mov %esp,%ebp a0c: 83 ec 28 sub $0x28,%esp void *join_s; int join_pid = join(&join_s); a0f: 8d 45 f0 lea -0x10(%ebp),%eax a12: 89 04 24 mov %eax,(%esp) a15: e8 aa fa ff ff call 4c4 <join> a1a: 89 45 f4 mov %eax,-0xc(%ebp) return join_pid; a1d: 8b 45 f4 mov -0xc(%ebp),%eax a20: c9 leave a21: c3 ret
Ada/system_function_package.adb
UdayanSinha/Code_Blocks
3
6939
package body System_Function_Package is function System_A(X : Integer) return Integer is begin delay To_Duration(Milliseconds(100)); return X + 1; end System_A; function System_B(Y : Integer) return Integer is begin delay To_Duration(Milliseconds(200)); return Y * 2; end System_B; function System_C(X, Y : Integer) return Integer is begin delay To_Duration(Milliseconds(200)); return X * Y; end System_C; end System_Function_Package;
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_remove_generic_callback.asm
teknoplop/z88dk
0
89184
<gh_stars>0 ; int im2_remove_generic_callback(uint8_t vector, void *callback) SECTION code_clib SECTION code_z80 PUBLIC _im2_remove_generic_callback EXTERN asm_im2_remove_generic_callback _im2_remove_generic_callback: pop af pop hl pop de push de push hl push af jp asm_im2_remove_generic_callback
tasks.asm
jballoffet/ia32-kernel
0
98624
;################################################################################ ;# Título: Tasks # ;# # ;# Versión: 1.0 Fecha: 13/10/2015 # ;# Autor: <NAME> Tab: 4 # ;# Compilación: # ;# Usar Makefile # ;# Uso: - # ;# ------------------------------------------------------------------------# ;# Descripción: # ;# * Rutinas de tareas para sistema multitarea # ;# ------------------------------------------------------------------------# ;# Revisiones: # ;# 1.0 | 13/10/2015 | J.BALLOFFET | Inicial # ;# ------------------------------------------------------------------------# ;# TODO: # ;# - # ;################################################################################ %include "general.inc" USE32 ;******************************************************************************** ; Simbolos externos y globales ;******************************************************************************** GLOBAL Inicio_T1 GLOBAL Inicio_T2 GLOBAL Inicio_T3 EXTERN Sleep ; definidos en wrapper.asm EXTERN Scan_Key EXTERN Print_Screen EXTERN Time ;******************************************************************************** ; Datos ;******************************************************************************** SECTION .t1_data progbits printstruct1: atributos1 dd 0 fila1 dd 0 columna1 dd 0 Contador_T1 db "000000000", NULL SECTION .t2_data progbits printstruct2: atributos2 dd 0 fila2 dd 0 columna2 dd 0 Contador_T2 db " 00/00/00 - 00:00:00", NULL timestruct2: segundo2 dd 0 minuto2 dd 0 hora2 dd 0 dia2 dd 0 diasemana2 dd 0 mes2 dd 0 anio2 dd 0 numASCII dd 0 dias: domingo db " Domingo ",NULL lunes db " Lunes ",NULL martes db " Martes ",NULL miercoles db "Miercoles",NULL jueves db " Jueves ",NULL viernes db " Viernes ",NULL sabado db " Sabado ",NULL SECTION .t3_data progbits key_ascii db 0 printstruct3: atributos3 dd 0 fila3 dd 0 columna3 dd 0 msgPtr db 0, NULL ;******************************************************************************** ; Tareas ;******************************************************************************** ;------------------------------------TAREA 1------------------------------------- ; Contador incremental ;-------------------------------------------------------------------------------- SECTION .t1_main progbits Inicio_T1: mov edi, Contador_T1 ; Cargo contador y lo incremento mov al, '0' mov ecx, 9 cld rep stosb ciclo_t1: mov edi, Contador_T1 + 8 mov ecx, 9 ciclo_incrementar1: mov al, [edi] inc al cmp al, '9' jbe digito_ok1 mov al, '0' mov [edi], al dec edi loop ciclo_incrementar1 jmp mostrar_t1 digito_ok1: mov [edi], al mostrar_t1: mov dword[atributos1],WHITE_F | BLACK_B ; Atributos: Color mov dword[fila1],8 ; Y=8 (FILA) mov dword[columna1],36 ; X=36 (COLUMNA) push printstruct1 ; Pusheo puntero a estructura de parametros de impresion call Print_Screen ; Llamo al servicio Print_Screen que imprime en pantalla add esp, 4 ; Limpio stack de parametros ;NOTA DEL PROGRAMADOR: Si bien no es recomendable que una tarea se aduenie del procesador, se realizo de esta manera a fines demostrativos ; del funcionamiento de las prioridades en el scheduler ;mov eax,100 ;push eax ; Pusheo cantidad de ms a dormir la tarea ;call Sleep ; Llamo al servicio Sleep que duerme la tarea la cantidad de ms indicada ;add esp, 4 ; Limpio stack de parametros ;mov ecx,0xFFFFFFF ;caverna: ;loop caverna jmp ciclo_t1 ;------------------------------------TAREA 2------------------------------------- ; Muestra fecha y hora de sistema ;-------------------------------------------------------------------------------- SECTION .t2_main progbits Inicio_T2: ciclo_t2: mov eax,segundo2 ; Limpio registros de tiempo mov ecx,7 cleanloop: mov dword[eax],0x0000 loop cleanloop push timestruct2 ; Pusheo puntero a estructura de parametros de tiempo call Time ; Llamo al servicio Time que devuelve fecha y hora del sistema add esp, 4 ; Limpio stack de parametros mov eax,segundo2 ; Cargo eax con el primer parametro de tiempo mov ecx,7 ; Cargo ecx con la cantidad de parametros de tiempo cvtASCII: push eax ; Pusheo parametro de tiempo call timetoASCII ; Subrutina que convierte el tiempo a ASCII add esp, 4 ; Limpio stack de parametros add eax,4 ; Incremento al parametro que sigue loop cvtASCII mov ax,[segundo2] ; Cargo segundos en el string mov [Contador_T2+28],al mov [Contador_T2+27],ah mov ax,[minuto2] ; Cargo minutos en el string mov [Contador_T2+25],al mov [Contador_T2+24],ah mov ax,[hora2] ; Cargo hora en el string mov [Contador_T2+22],al mov [Contador_T2+21],ah mov ax,[anio2] ; Cargo anio en el string mov [Contador_T2+17],al mov [Contador_T2+16],ah mov ax,[mes2] ; Cargo mes en el string mov [Contador_T2+14],al mov [Contador_T2+13],ah mov ax,[dia2] ; Cargo dia en el string mov [Contador_T2+11],al mov [Contador_T2+10],ah xor edx,edx ; Obtengo string correspondiente al dia de la semana mov eax,[diasemana2] sub eax,0x3030 mov ebx,domingo cmp eax,1 je copy mov ebx,lunes cmp eax,2 je copy mov ebx,martes cmp eax,3 je copy mov ebx,miercoles cmp eax,4 je copy mov ebx,jueves cmp eax,5 je copy mov ebx,viernes cmp eax,6 je copy mov ebx,sabado copy: mov eax,Contador_T2 mov ecx,9 loopcopy: mov dl,[ebx] ; Cargo dia de la semana en el string mov [eax],dl add ebx,1 add eax,1 loop loopcopy mostrar_t2: mov dword[printstruct2],WHITE_F | BLACK_B ; Atributos: Color mov dword[fila2],12 ; Y=12 (FILA) mov dword[columna2],26 ; X=26 (COLUMNA) push printstruct2 ; Pusheo puntero a estructura de parametros de impresion call Print_Screen ; Llamo al servicio Print_Screen que imprime en pantalla add esp, 4 ; Limpio stack de parametros mov eax,500 push eax ; Pusheo cantidad de ms a dormir la tarea (no tiene sentido que corra permanentemente) call Sleep ; Llamo al servicio Sleep que duerme la tarea la cantidad de ms indicada add esp, 4 ; Limpio stack de parametros jmp ciclo_t2 ;------------------------------------TAREA 3------------------------------------- ; Procesador de textos desde el teclado ;-------------------------------------------------------------------------------- SECTION .t3_main progbits Inicio_T3: mov [fila3],dword 17 ; Y=17 (FILA) mov [columna3],dword 2 ; X=2 (COLUMNA) escaneo: push key_ascii ; Paso por referencia key_ascii call Scan_Key ; Llamo al servicio Scan_Key que devuelve la tecla pulsada add esp, 4 ; Limpio stack de parametros cmp eax,0x00 ; Chequeo error en la lectura de teclado je show_char ; Si no hubo error, muestro tecla ;NOTA DEL PROGRAMADOR: Si bien no es recomendable que una tarea se aduenie del procesador, se realizo de esta manera a fines demostrativos ; del funcionamiento de las prioridades en el scheduler ;mov eax,10 ;push eax ; Pusheo cantidad de ms a dormir la tarea (no tiene sentido que corra permanentemente) ;call Sleep ; Llamo al servicio Sleep que duerme la tarea la cantidad de ms indicada ;add esp, 4 ; Limpio stack de parametros jmp escaneo ; Tecla erronea o no se pulso el teclado show_char: mov al,[key_ascii] ; Cargo en AL el caracter pulsado mov [msgPtr],al ; Cargo caracter en la posicion de memoria apuntada por msgPtr mov dword[atributos3],WHITE_F | BLACK_B ; Atributos: Color push printstruct3 ; Pusheo puntero a estructura de parametros de impresion call Print_Screen ; Llamo al servicio Print_Screen que imprime en pantalla add esp, 4 ; Limpio stack de parametros add [columna3],dword 1 ; Incremento columna cmp dword[columna3],79 ; Llegue al final de la linea? jbe escaneo ; No llegue. sigo mov [columna3],dword 0 ; Llegue, retorno de carro add [fila3],dword 1 ; Incremento linea cmp dword[fila3],24 ; Llegue al final de la pantalla? jbe escaneo ; No llegue, sigo mov [fila3],dword 17 ; Llegue, reseteo fila y columna mov [columna3],dword 2 jmp escaneo ;******************************************************************************** ; Funciones ;******************************************************************************** SECTION .t2_main progbits ;-------------------------------------------------------------------------------- ;| Título: timetoASCII | ;| Versión: 1.0 Fecha: 02/11/2015 | ;| Autor: <NAME> Legajo: 143.588-7 | ;| ------------------------------------------------------------------------| ;| Descripción: | ;| void timetoASCII(unsigned int numero) | ;| Convierte un numero entero positivo de 2 cifras a ASCII | ;| ------------------------------------------------------------------------| ;| Recibe: | ;| esp+4 numero | ;| | ;| Retorna: | ;| Nada | ;| ------------------------------------------------------------------------| ;| Revisiones: | ;-------------------------------------------------------------------------------- timetoASCII: push ebp ; Resguardo Stack Base Pointer mov ebp, esp ; Puntero imagen - Stack Pointer pushad ; Resguardo Registros de Uso General mov edx,[ebp+8] mov ax,[edx] ; Obtengo numero a convertir mov ebx,[ebp+8] ; Obtengo donde devolverlo mov cx,ax and al,0x0F mov [ebx],al add byte[ebx],0x30 mov ax,cx shr ax,4 and al,0x0F mov [ebx+1],al add byte[ebx+1],0x30 popad ; Obtengo Registros de Uso General pop ebp ; Obtengo Stack Base Pointer ret ;******************************************************************************** ; - -- --- Fin de archivo --- -- - ; <NAME> c2015 ;********************************************************************************
programs/oeis/075/A075101.asm
neoneye/loda
22
169683
<filename>programs/oeis/075/A075101.asm<gh_stars>10-100 ; A075101: Numerator of 2^n/n. ; 2,2,8,4,32,32,128,32,512,512,2048,1024,8192,8192,32768,4096,131072,131072,524288,262144,2097152,2097152,8388608,2097152,33554432,33554432,134217728,67108864,536870912,536870912,2147483648,134217728,8589934592,8589934592,34359738368,17179869184,137438953472,137438953472,549755813888,137438953472,2199023255552,2199023255552,8796093022208,4398046511104,35184372088832,35184372088832,140737488355328,17592186044416,562949953421312,562949953421312,2251799813685248,1125899906842624,9007199254740992,9007199254740992,36028797018963968,9007199254740992,144115188075855872,144115188075855872,576460752303423488,288230376151711744,2305843009213693952,2305843009213693952,9223372036854775808,288230376151711744,36893488147419103232,36893488147419103232,147573952589676412928,73786976294838206464,590295810358705651712,590295810358705651712,2361183241434822606848,590295810358705651712,9444732965739290427392,9444732965739290427392,37778931862957161709568,18889465931478580854784,151115727451828646838272,151115727451828646838272,604462909807314587353088,75557863725914323419136,2417851639229258349412352,2417851639229258349412352,9671406556917033397649408,4835703278458516698824704,38685626227668133590597632,38685626227668133590597632,154742504910672534362390528,38685626227668133590597632,618970019642690137449562112,618970019642690137449562112,2475880078570760549798248448,1237940039285380274899124224,9903520314283042199192993792,9903520314283042199192993792,39614081257132168796771975168,2475880078570760549798248448,158456325028528675187087900672,158456325028528675187087900672,633825300114114700748351602688,316912650057057350374175801344 add $0,1 mov $1,2 pow $1,$0 gcd $0,$1 div $1,$0 mov $0,$1
projects/batfish/src/main/antlr4/org/batfish/grammar/frr/Frr_ip_prefix_list.g4
ton31337/batfish
1
6213
parser grammar Frr_ip_prefix_list; import Frr_common; options { tokenVocab = FrrLexer; } ip_prefix_list : PREFIX_LIST name = ip_prefix_list_name pl_line ; pl_line : pl_line_action | pl_line_description ; pl_line_action : (SEQ num = uint32)? action = line_action ( (ANY NEWLINE) | ( ip_prefix = prefix (GE ge = ip_prefix_length)? (LE le = ip_prefix_length)? NEWLINE ) ) ; pl_line_description : DESCRIPTION REMARK_TEXT NEWLINE ;
src/implementation/cl-vector_operations.adb
flyx/OpenCLAda
8
6595
-------------------------------------------------------------------------------- -- Copyright (c) 2013, <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- package body CL.Vector_Operations is function Element_Wise (Left, Right : Vector) return Vector is Result : Vector; begin for I in Natural (Vector_Range'First) .. Natural (Vector_Range'Last) loop Result (I) := Operation (Left (I), Right (I)); end loop; return Result; end Element_Wise; function Apply_Scalar (Left : Vector; Right : Base) return Vector is Result : Vector; begin for I in Natural (Vector_Range'First) .. Natural (Vector_Range'Last) loop Result (I) := Operation (Left (I), Right); end loop; return Result; end Apply_Scalar; function Add is new Element_Wise (Operation => "+"); function "+" (Left, Right: Vector) return Vector renames Add; function Substract is new Element_Wise (Operation => "-"); function "-" (Left, Right: Vector) return Vector renames Substract; function Multiply_Scalar is new Apply_Scalar (Operation => "*"); function "*" (Left : Vector; Right : Base) return Vector renames Multiply_Scalar; -- Element-wise multiplication function Multiply is new Element_Wise (Operation => "*"); function "*" (Left, Right : Vector) return Vector renames Multiply; function Divide_Scalar is new Apply_Scalar (Operation => "/"); function "/" (Left : Vector; Right : Base) return Vector renames Divide_Scalar; -- Element-wise division function Divide is new Element_Wise (Operation => "/"); function "/" (Left, Right : Vector) return Vector renames Divide; function To_String (Value : Vector) return String is Max : constant := 256; Result : String (1 .. Max); Pos : Integer := 2; begin Result (1) := '('; Pos := 2; for I in Natural (Vector_Range'First) .. Natural (Vector_Range'Last) loop if Pos /= 2 and Pos + 1 <= Max then Result (Pos .. Pos + 1) := ", "; Pos := Pos + 2; end if; declare Repr : constant String := To_String (Value (I)); begin if Pos + Repr'Length - 1 <= Max then Result (Pos .. Pos + Repr'Length - 1) := Repr; Pos := Pos + Repr'Length; end if; end; end loop; if Pos <= Max then Result (Pos) := ')'; Pos := Pos + 1; end if; return Result (1 .. Pos - 1); end To_String; end CL.Vector_Operations;
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_1901.asm
ljhsiun2/medusa
9
83479
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x8be1, %rsi lea addresses_A_ht+0x1bdc1, %rdi nop nop nop nop nop dec %r8 mov $39, %rcx rep movsw nop sub %r14, %r14 lea addresses_A_ht+0x51c1, %r12 nop nop nop sub $63706, %r11 movl $0x61626364, (%r12) nop nop nop nop sub %r12, %r12 lea addresses_UC_ht+0x17701, %rsi lea addresses_D_ht+0x1bb41, %rdi nop nop nop nop nop sub $38922, %r9 mov $77, %rcx rep movsb nop nop nop nop nop and %rcx, %rcx lea addresses_A_ht+0x7b01, %rsi add %r12, %r12 mov $0x6162636465666768, %r8 movq %r8, (%rsi) nop nop inc %r14 lea addresses_WT_ht+0x14bc1, %r14 nop nop nop nop xor %r11, %r11 mov (%r14), %r9d xor $14788, %r14 lea addresses_UC_ht+0xe1c1, %rsi lea addresses_UC_ht+0x113c1, %rdi nop nop nop nop add %r12, %r12 mov $121, %rcx rep movsb and %r14, %r14 lea addresses_WC_ht+0x9441, %r8 clflush (%r8) nop sub $14169, %r11 movb $0x61, (%r8) nop nop inc %rdi pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %rax push %rbx // Store lea addresses_WT+0x180c1, %r13 nop add %r15, %r15 movw $0x5152, (%r13) nop nop nop nop cmp %rbx, %rbx // Faulty Load lea addresses_WT+0x35c1, %r12 nop nop add %rax, %rax mov (%r12), %r15d lea oracles, %r10 and $0xff, %r15 shlq $12, %r15 mov (%r10,%r15,1), %r15 pop %rbx pop %rax pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': True}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_WT', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 4, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
programs/oeis/167/A167547.asm
karttu/loda
1
26983
; A167547: The fourth row of the ED1 array A167546. ; 6,48,160,384,762,1336,2148,3240,4654,6432,8616,11248,14370,18024,22252,27096,32598,38800,45744,53472,62026,71448,81780,93064,105342,118656,133048,148560,165234,183112,202236,222648,244390,267504,292032,318016,345498,374520,405124,437352,471246,506848,544200,583344,624322,667176,711948,758680,807414,858192,911056,966048,1023210,1082584,1144212,1208136,1274398,1343040,1414104,1487632,1563666,1642248,1723420,1807224,1893702,1982896,2074848,2169600,2267194,2367672,2471076,2577448,2686830,2799264,2914792,3033456,3155298,3280360,3408684,3540312,3675286,3813648,3955440,4100704,4249482,4401816,4557748,4717320,4880574,5047552,5218296,5392848,5571250,5753544,5939772,6129976,6324198,6522480,6724864,6931392,7142106,7357048,7576260,7799784,8027662,8259936,8496648,8737840,8983554,9233832,9488716,9748248,10012470,10281424,10555152,10833696,11117098,11405400,11698644,11996872,12300126,12608448,12921880,13240464,13564242,13893256,14227548,14567160,14912134,15262512,15618336,15979648,16346490,16718904,17096932,17480616,17869998,18265120,18666024,19072752,19485346,19903848,20328300,20758744,21195222,21637776,22086448,22541280,23002314,23469592,23943156,24423048,24909310,25401984,25901112,26406736,26918898,27437640,27963004,28495032,29033766,29579248,30131520,30690624,31256602,31829496,32409348,32996200,33590094,34191072,34799176,35414448,36036930,36666664,37303692,37948056,38599798,39258960,39925584,40599712,41281386,41970648,42667540,43372104,44084382,44804416,45532248,46267920,47011474,47762952,48522396,49289848,50065350,50848944,51640672,52440576,53248698,54065080,54889764,55722792,56564206,57414048,58272360,59139184,60014562,60898536,61791148,62692440,63602454,64521232,65448816,66385248,67330570,68284824,69248052,70220296,71201598,72192000,73191544,74200272,75218226,76245448,77281980,78327864,79383142,80447856,81522048,82605760,83699034,84801912,85914436,87036648,88168590,89310304,90461832,91623216,92794498,93975720,95166924,96368152,97579446,98800848,100032400,101274144,102526122,103788376,105060948,106343880,107637214,108940992 add $0,1 mov $1,$0 bin $0,2 add $0,1 mul $1,$0 sub $1,1 mul $1,14 add $1,6
Transynther/x86/_processed/NC/_st_zr_4k_/i7-7700_9_0xca.log_21829_1711.asm
ljhsiun2/medusa
9
97022
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0xa53f, %rsi lea addresses_UC_ht+0x233f, %rdi clflush (%rsi) dec %r14 mov $117, %rcx rep movsw nop nop nop nop add %r12, %r12 lea addresses_normal_ht+0x1d58f, %r14 nop cmp $59197, %r8 movb (%r14), %r11b nop inc %r11 lea addresses_WT_ht+0x9fd, %rsi nop nop nop nop cmp $36918, %r8 and $0xffffffffffffffc0, %rsi vmovntdqa (%rsi), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r12 nop nop nop nop add %rcx, %rcx lea addresses_A_ht+0x233f, %rsi lea addresses_normal_ht+0x942f, %rdi nop nop nop nop nop sub %r15, %r15 mov $44, %rcx rep movsw nop nop nop nop cmp %r15, %r15 lea addresses_A_ht+0xbf, %r8 nop nop nop nop add $12305, %r15 mov (%r8), %rsi nop sub %rdi, %rdi lea addresses_normal_ht+0x113f, %rcx nop nop nop and $6008, %rdi mov $0x6162636465666768, %r12 movq %r12, %xmm4 movups %xmm4, (%rcx) nop nop cmp $41892, %rsi pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r15 push %r8 push %r9 push %rdi // Store lea addresses_normal+0x193f, %r12 nop and %r13, %r13 mov $0x5152535455565758, %r8 movq %r8, %xmm5 vmovups %ymm5, (%r12) add %r9, %r9 // Store mov $0x13f, %r11 nop nop nop nop add $61818, %r12 mov $0x5152535455565758, %r9 movq %r9, %xmm5 vmovups %ymm5, (%r11) nop nop nop nop nop sub $18578, %r15 // Store lea addresses_WC+0x8ad3, %r9 nop nop nop add $2593, %r11 mov $0x5152535455565758, %r8 movq %r8, (%r9) nop sub $1135, %r15 // Store lea addresses_D+0xb133, %r9 nop nop xor %rdi, %rdi movb $0x51, (%r9) nop nop nop dec %r12 // Store lea addresses_US+0xf92f, %r13 nop nop nop nop add $12555, %r15 movb $0x51, (%r13) and %r13, %r13 // Faulty Load mov $0x482096000000093f, %r15 clflush (%r15) nop nop nop inc %rdi movb (%r15), %r13b lea oracles, %r11 and $0xff, %r13 shlq $12, %r13 mov (%r11,%r13,1), %r13 pop %rdi pop %r9 pop %r8 pop %r15 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal'}} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_P'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_WC'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_US'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}} {'00': 222, '58': 21607} 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
PIM/TP3_Sous_Programmes/maximum.adb
Hathoute/ENSEEIHT
1
26673
<filename>PIM/TP3_Sous_Programmes/maximum.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Maximum is -- On peut renommer Max2 et Max3 en Max car les deux fonctions ont des paramètres differents -- Le plus grand de 2 entiers. function Max (N1, N2 : in Integer) return Integer with Post => Max'Result >= N1 and Max'Result >= N2 is begin return Integer(Float(N1 + N2)/2.0 + Abs(Float(N1 - N2)/2.0)); end Max; procedure Tester_Max2 is begin pragma Assert (Max(9, 6) = 9); pragma Assert (Max(9, 6) = 9); pragma Assert (Max(-5, -5) = -5); end Tester_Max2; -- Le plus grand de 3 entiers. function Max (N1, N2, N3 : in Integer) return Integer with Post => Max'Result >= N1 and Max'Result >= N2 and Max'Result >= N3 is begin return Max(Max(N1, N2), N3); -- TODO à remplacer end Max; procedure Tester_Max3 is begin pragma Assert (Max(1, 2, 3) = 3); pragma Assert (Max(3, 2, 1) = 3); pragma Assert (Max(2, 1, 3) = 3); pragma Assert (Max(2, 3, 1) = 3); pragma Assert (Max(0, 0, 0) = 0); end Tester_Max3; -- Test PIXAL ------------------------------------------------------------------ A, B, C, D, E: Integer; -- 5 entiers lu au clavier begin Tester_Max2; Tester_Max3; -- Demander les entiers Put("Donner 5 entiers : "); Get(A); Get(B); Get(C); Get(D); Get(E); -- Afficher le Max de A et B Put ("Max ("); Put (A, 1); Put (", "); Put (B, 1); Put (") = "); Put (Max (A, B), 1); New_Line; -- Afficher le Max de C, D et E Put ("Max ("); Put (C, 1); Put (", "); Put (D, 1); Put (", "); Put (E, 1); Put (") = "); Put (Max (C, D, E), 1); New_Line; end Maximum;
Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_1110.asm
ljhsiun2/medusa
9
160471
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x156fe, %rsi lea addresses_D_ht+0x16e53, %rdi nop nop nop nop add %r15, %r15 mov $64, %rcx rep movsl nop nop nop nop sub %rdx, %rdx lea addresses_UC_ht+0x3c21, %rsi lea addresses_A_ht+0x12073, %rdi nop nop nop and %rdx, %rdx mov $101, %rcx rep movsl nop nop nop nop sub %rsi, %rsi lea addresses_normal_ht+0x1121f, %r14 nop nop nop xor $17584, %rsi mov $0x6162636465666768, %rdi movq %rdi, %xmm4 vmovups %ymm4, (%r14) nop nop nop xor $14606, %rsi lea addresses_UC_ht+0x1c13b, %rcx nop nop and $56302, %r10 mov $0x6162636465666768, %rdx movq %rdx, %xmm0 movups %xmm0, (%rcx) nop inc %rdi lea addresses_A_ht+0x5253, %rcx nop nop nop cmp %rdi, %rdi mov (%rcx), %r10w nop nop nop nop sub $28328, %r14 lea addresses_WT_ht+0x18502, %rdi nop nop nop nop xor %r15, %r15 mov $0x6162636465666768, %rcx movq %rcx, (%rdi) nop nop nop nop nop add %rsi, %rsi lea addresses_D_ht+0xe8d3, %rdx add $59625, %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm4 movups %xmm4, (%rdx) nop nop nop nop sub $62138, %r14 lea addresses_D_ht+0x1ea53, %rsi lea addresses_normal_ht+0x15bb, %rdi nop nop and %r10, %r10 mov $104, %rcx rep movsq nop nop nop cmp $13834, %r10 lea addresses_WC_ht+0xac63, %rsi lea addresses_normal_ht+0xed63, %rdi nop nop nop nop nop inc %rax mov $110, %rcx rep movsq nop add $47235, %rdx lea addresses_WT_ht+0x553, %rsi lea addresses_UC_ht+0x16d53, %rdi nop and %r14, %r14 mov $86, %rcx rep movsw and %rdi, %rdi lea addresses_WC_ht+0xfa53, %rsi nop nop nop nop sub $38825, %rdi movw $0x6162, (%rsi) nop nop nop and $16647, %rcx lea addresses_A_ht+0xb8cb, %rdi nop nop add %rdx, %rdx movb $0x61, (%rdi) nop nop nop add %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %rcx push %rdi push %rsi // Faulty Load lea addresses_PSE+0x16253, %rcx xor $28191, %rsi vmovntdqa (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r10 lea oracles, %rsi and $0xff, %r10 shlq $12, %r10 mov (%rsi,%r10,1), %r10 pop %rsi pop %rdi pop %rcx pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'src': {'same': True, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}} {'48': 5005, '49': 14209, '7b': 1, '00': 2602, '46': 12} 48 48 49 49 00 48 48 49 49 49 49 48 49 48 49 00 49 49 48 49 00 49 49 49 49 49 48 49 49 49 49 48 49 48 49 48 49 49 48 49 49 00 49 49 48 49 49 48 49 49 48 49 00 48 49 48 49 48 49 49 48 49 00 49 49 48 48 48 49 49 48 48 00 49 49 00 49 48 48 48 49 48 49 49 48 49 00 49 49 48 49 48 49 49 48 49 48 49 49 48 49 00 49 49 48 49 48 49 49 48 49 48 49 49 48 49 48 49 49 49 00 49 49 48 49 48 49 49 48 49 48 49 49 48 48 48 49 48 49 48 49 49 48 49 00 49 49 48 49 48 49 48 48 49 00 49 49 48 48 49 48 49 49 00 49 49 48 48 49 49 48 49 48 49 49 49 48 49 49 48 49 48 49 49 48 49 48 48 49 48 49 00 49 48 49 48 48 49 48 49 48 49 48 49 00 49 49 48 49 48 49 49 48 48 48 49 49 48 49 00 48 49 48 49 48 49 49 48 49 49 48 48 49 48 48 00 49 48 49 48 49 49 48 49 48 49 49 48 49 48 49 49 49 48 49 49 48 48 00 49 49 48 49 48 49 48 48 49 00 49 49 48 49 49 48 49 49 48 49 48 49 49 48 49 00 48 49 48 49 00 49 48 48 49 48 49 49 00 49 48 49 49 48 49 49 48 49 49 00 49 48 49 49 48 49 48 49 49 48 49 00 48 49 48 49 00 49 49 00 49 00 49 49 48 49 00 49 49 48 49 00 49 49 48 49 00 48 49 48 49 48 49 49 49 00 49 49 48 49 48 49 49 00 49 00 49 49 48 49 00 49 48 49 49 00 49 49 48 48 49 48 49 49 48 49 48 49 48 49 49 49 48 49 49 48 48 49 48 49 48 49 49 48 49 48 49 49 48 49 48 49 49 48 49 48 49 49 48 49 48 49 49 48 48 00 49 48 48 49 48 49 49 00 48 49 00 49 49 00 49 48 00 49 49 00 49 49 00 48 49 00 49 49 00 49 49 00 49 49 00 49 49 00 48 49 00 49 49 00 49 48 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 48 49 48 49 49 00 49 48 00 49 00 49 49 00 48 49 48 49 49 49 49 48 49 00 49 00 49 49 49 48 49 49 49 49 49 49 49 48 49 49 49 49 49 49 49 49 49 49 49 49 49 48 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 48 49 49 49 49 49 49 49 48 49 49 49 49 49 49 49 49 49 49 48 49 49 49 49 49 48 49 48 49 49 00 49 48 49 49 48 48 00 49 49 49 48 49 49 00 49 48 48 49 49 00 49 49 48 48 49 48 49 49 49 49 48 49 49 49 49 49 00 49 48 49 49 48 49 48 49 48 49 48 49 49 48 49 49 49 49 00 48 49 49 49 49 48 49 48 48 49 49 48 49 48 48 49 00 49 49 48 49 00 49 49 48 49 48 49 49 48 49 48 49 49 48 49 48 49 48 48 49 48 49 49 48 48 00 49 48 49 48 00 49 49 48 49 48 48 48 49 48 49 49 48 49 48 49 49 48 49 48 49 48 49 49 48 49 49 48 48 48 49 49 48 49 48 49 49 48 49 00 48 49 00 49 49 48 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 48 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 49 49 00 48 49 00 49 49 00 49 49 00 49 49 48 49 49 00 49 49 00 49 49 00 49 48 00 49 00 49 49 49 49 48 49 49 48 49 49 48 49 49 49 49 49 48 49 48 48 49 49 48 49 49 48 49 49 48 49 00 49 49 49 49 48 49 49 48 48 48 49 49 48 49 48 49 00 49 49 49 49 48 49 48 49 49 00 49 48 48 49 49 48 49 48 49 00 49 49 49 49 00 49 48 49 49 49 49 49 48 49 49 48 49 48 48 00 49 48 48 49 48 49 49 48 48 48 49 49 48 49 48 49 49 49 48 49 49 48 49 00 49 48 49 48 49 49 48 49 48 49 48 49 49 48 49 49 48 49 00 48 49 48 49 48 49 */
programs/oeis/155/A155634.asm
neoneye/loda
22
15348
<filename>programs/oeis/155/A155634.asm<gh_stars>10-100 ; A155634: 7^n + 5^n - 1. ; 1,11,73,467,3025,19931,133273,901667,6155425,42306731,292240873,2026154867,14085427825,98109713531,684326588473,4778079088067,33385518460225,233393453440331,1632228295176073,11417968671701267 mov $1,7 pow $1,$0 add $1,3 mov $2,5 pow $2,$0 add $1,$2 sub $1,4 mov $0,$1
untested/ARM/lcmArray.asm
GabrielRavier/Generic-Assembly-Samples
0
8466
code32 format ELF public _lcmArray section '.text' executable align 16 _lcmArray: ; Requires armv7ve cmp r1, #1 ldr r2, [r0] ble .return str lr, [sp, #-4] add lr, r0, r1, lsl #2 add r0, r0, #4 .loop: ldr r1, [r0], #4 cmp r2, #0 mul ip, r2, r1 bne .startGcdLoop b .check .gcdLoop: mov r2, r3 .startGcdLoop: sdiv r3, r1, r2 mls r3, r2, r3, r1 mov r1, r2 cmp r3, #0 bne .gcdLoop cmp r0, lr sdiv r2, ip, r2 bne .loop .return2: mov r0, r2 ldr pc, [sp], #4 .check: cmp r0, lr mov r2, r1 sdiv r2, ip, r2 bne .loop b .return2 .return: mov r0, r2 bx lr
test/expimp.asm
bitwiseworks/nasm-os2
3
242346
;Testname=O0; Arguments=-O0 -fbin -oexpimp.bin; Files=stdout stderr expimp.bin ;Testname=O1; Arguments=-O1 -fbin -oexpimp.bin; Files=stdout stderr expimp.bin ;Testname=Ox; Arguments=-Ox -fbin -oexpimp.bin; Files=stdout stderr expimp.bin ;Testname=error-O0; Arguments=-O0 -fbin -oexpimp.bin -DERROR; Files=stdout stderr expimp.bin ;Testname=error-Ox; Arguments=-Ox -fbin -oexpimp.bin -DERROR; Files=stdout stderr expimp.bin ; ; Test of explicitly and implicitly sized operands ; BITS 32 add esi,2 ; Implicit add esi,123456h ; Implicit add esi,byte 2 ; Explicit add esi,dword 2 ; Explicit add esi,dword 123456h ; Explicit add esi,byte 123456h ; Explicit Truncation add esi,strict 2 ; Implicit Strict add esi,strict 123456h ; Implicit Strict add esi,strict byte 2 ; Explicit Strict add esi,strict dword 2 ; Explicit Strict add esi,strict dword 123456h ; Explicit Strict add esi,strict byte 123456h ; Explicit Strict Truncation add eax,2 ; Implicit add eax,123456h ; Implicit add eax,byte 2 ; Explicit add eax,dword 2 ; Explicit add eax,dword 123456h ; Explicit add eax,byte 123456h ; Explicit Truncation add eax,strict 2 ; Implicit Strict add eax,strict 123456h ; Implicit Strict add eax,strict byte 2 ; Explicit Strict add eax,strict dword 2 ; Explicit Strict add eax,strict dword 123456h ; Explicit Strict add eax,strict byte 123456h ; Explicit Strict Truncation imul dx,3 ; Implicit imul dx,byte 3 ; Explicit imul dx,word 3 ; Explicit imul dx,strict byte 3 ; Explicit Strict imul dx,strict word 3 ; Explicit Strict ; ; Same thing with branches ; start: jmp short start ; Explicit jmp near start ; Explicit jmp word start ; Explicit jmp dword start ; Explicit jmp short forward ; Explicit jmp near forward ; Explicit jmp word forward ; Explicit jmp dword forward ; Explicit %ifdef ERROR jmp short faraway ; Explicit (ERROR) %endif jmp near faraway ; Explicit jmp word faraway ; Explicit jmp dword faraway ; Explicit jmp start ; Implicit jmp forward ; Implicit jmp faraway ; Implicit jmp strict short start ; Explicit Strict jmp strict near start ; Explicit Strict jmp strict word start ; Explicit Strict jmp strict dword start ; Explicit Strict jmp strict short forward ; Explicit Strict jmp strict near forward ; Explicit Strict jmp strict word forward ; Explicit Strict jmp strict dword forward ; Explicit Strict %ifdef ERROR jmp strict short faraway ; Explicit (ERROR) %endif jmp strict near faraway ; Explicit Strict jmp strict word faraway ; Explicit Strict jmp strict dword faraway ; Explicit Strict jmp strict start ; Implicit Strict jmp strict forward ; Implicit Strict jmp strict faraway ; Implicit Strict forward: times 256 nop faraway:
nicolai/anonymousExistence/library/Basics.agda
nicolaikraus/HoTT-Agda
1
38
<filename>nicolai/anonymousExistence/library/Basics.agda {-# OPTIONS --without-K #-} module library.Basics where open import library.Base public open import library.PathGroupoid public open import library.PathFunctor public open import library.NType public open import library.Equivalences public open import library.Univalence public open import library.Funext public open import library.PathOver public
test/Succeed/Issue1987.agda
alhassy/agda
3
13553
{-# OPTIONS --rewriting #-} data Unit : Set where unit : Unit _+_ : Unit → Unit → Unit unit + x = x data _≡_ (x : Unit) : Unit → Set where refl : x ≡ x {-# BUILTIN REWRITE _≡_ #-} postulate f : Unit → Unit fu : f unit ≡ unit {-# REWRITE fu #-} g : Unit → Unit g unit = unit data D (h : Unit → Unit) (x : Unit) : Set where wrap : Unit → D h x run : ∀ {h x} → D h x → Unit run (wrap x) = x postulate d₁ : ∀ n x y (p : D y n) → x (run p + n) ≡ y (run p + n) → D x n d₂ : ∀ s n → D s n d₂ _ _ = wrap unit d₃ : D (λ _ → unit) unit d₃ = d₁ _ (λ _ → unit) (λ n → f (g n)) (d₂ (λ n → f (g n)) _) refl
src/t_mapcode.adb
mapcode-foundation/mapcode-ada
1
11527
<reponame>mapcode-foundation/mapcode-ada -- ----------------------------------------------------------------------------- -- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com) -- -- 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. -- ----------------------------------------------------------------------------- -- Mapcode test main program with Ada.Command_Line, Ada.Text_Io, Ada.Strings.Utf_Encoding.Wide_Strings; with Mapcode_Utils.As_U, Mapcode_Utils.Str_Tools; use Mapcode_Utils; with Countries, Mapcodes.Languages; procedure T_Mapcode is use Mapcodes; Argument_Error : exception; Max_Precision : constant Mapcodes.Precisions := Mapcodes.Precisions'Last; procedure Usage is begin Ada.Text_Io.Put_Line ( "Usage: " & Ada.Command_Line.Command_Name & " <command>"); Ada.Text_Io.Put_Line ( " -h // This help"); Ada.Text_Io.Put_Line ( " -t <territory> [ <context> ] // Territory info"); Ada.Text_Io.Put_Line ( " -s <subdivision> // Same subdivisions"); Ada.Text_Io.Put_Line ( " -S <name> // Search territory"); Ada.Text_Io.Put_Line ( " -d <territory_mapcode> // Decode"); Ada.Text_Io.Put_Line ( " -c <lat> <lon> [ <options> ] // Encode"); Ada.Text_Io.Put_Line ( " -a <territory_mapcode> [ <options> ] // Alternative mapcodes"); Ada.Text_Io.Put_Line ( " -l <mapcode> [ <language> ] // Convert into a language"); Ada.Text_Io.Put_Line ( " <territory_mapcode> ::= <territory>:<mapcode> | [ <territory> ] <mapcode>"); Ada.Text_Io.Put_Line ( " <options> ::= [ <territory> ] [ <selection> ] [ <precision> ]"); Ada.Text_Io.Put_Line ( " <selection> ::= [ all | local | short] // Default short"); Ada.Text_Io.Put_Line ( " // short: one mapcode (the shortest) of each territory"); Ada.Text_Io.Put_Line ( " // all: all the mapcodes of all territories"); Ada.Text_Io.Put_Line ( " // local: the shortest among all the mapcodes"); Ada.Text_Io.Put_Line ( " <precision> ::= P0 .. P8 // Default P0 or from input"); Ada.Text_Io.Put_Line ( " <language> ::= language name (any casing) or num (0 for Roman)"); Ada.Text_Io.Put_Line ( " // Input language is guessed, default output is Romaic"); end Usage; function Lower_Str (Str : String) return String is Offset : constant Integer := Character'Pos('A') - Character'Pos('a'); Result : String := Str; begin for C of Result loop C := (if C not in 'A' .. 'Z' then C else Character'Val (Character'Pos(C) - Offset)); end loop; return Result; end Lower_Str; procedure Put_Territory (Territory, Context : in String; Show_Subdivision : in Boolean) is Index : Territories; begin Ada.Text_Io.Put (Territory & (if Context /= "" then " " else "") & Context & " "); Index := Get_Territory (Territory, Context); Ada.Text_Io.Put_Line ("=> " & Get_Territory_Number (Index) & ": " & Get_Territory_Alpha_Code (Index, Mapcodes.Local) & "/" & Get_Territory_Alpha_Code (Index, Mapcodes.International) & "/" & Get_Territory_Alpha_Code (Index, Mapcodes.Shortest) & "/" & Get_Territory_Fullname (Index) ); if Is_Subdivision (Index) then Ada.Text_Io.Put_Line (" Parent: " & Get_Territory_Alpha_Code (Get_Parent_Of (Index))); end if; if Show_Subdivision and then Has_Subdivision (Index) then Ada.Text_Io.Put_Line (" Has subdivisions"); end if; end Put_Territory; function Is_Command (Arg : in String) return Boolean is (Arg = "-h" or else Arg = "-t" or else Arg = "-s" or else Arg = "-S" or else Arg = "-d" or else Arg = "-c" or else Arg = "-a"); function Image (F : Mapcodes.Real) return String is begin return F'Img; end Image; function Quote (Str : String) return String is (''' & Str & '''); function Get (Str : String) return Mapcodes.Real is begin return Mapcodes.Real'Value (Str); exception when Constraint_Error => raise Argument_Error; end Get; I : Positive; Command, Arg1, Arg2, Tmp : As_U.Asu_Us; Coord : Mapcodes.Coordinate; Territory : As_U.Asu_Us; Shortest : Boolean; Sorted : Boolean; Precision : Precisions; Opt_Set, Pre_Set : Boolean; -- If Arg2 is a mapcode then parse Arg1=Ctx and Arg2=Map -- otherwise parse Arg1=[Ctx:]Map -- Locate "-" in Map to set Precision procedure Parse_Mapcode is Index : Natural; begin I := I + 1; Arg1 := As_U.Tus (Ada.Command_Line.Argument (I)); Arg2.Set_Null; Tmp.Set_Null; if I < Ada.Command_Line.Argument_Count then Tmp := As_U.Tus (Ada.Command_Line.Argument (I + 1)); end if; if Tmp.Locate (".") /= 0 then -- Arg2 is a mapcode Arg2 := Arg1; Arg1 := Tmp; I := I + 1; end if; -- Split <territory>:<mapcode> in Arg1 if Arg2.Is_Null then Index := Arg1.Locate (":"); if Index > 1 then Arg2 := Arg1.Head (Index - 1); Arg1.Delete (1, Index); end if; end if; -- Get precision from input Index := Str_Tools.Locate (Arg1.Image, "-"); if Index > 0 then if Index = Arg1.Length or else Index < Arg1.Length - Max_Precision then raise Decode_Error; end if; Precision := Arg1.Length - Index; end if; Ada.Text_Io.Put_Line (Arg1.Image & " " & Arg2.Image); end Parse_Mapcode; begin if Ada.Command_Line.Argument_Count = 0 then Usage; end if; I := 1; while I <= Ada.Command_Line.Argument_Count loop Command := As_U.Tus (Ada.Command_Line.Argument (I)); if Command.Image = "-h" then Usage; elsif Command.Image = "-t" then -- Display territory info of next argument(s) I := I + 1; Arg1 := As_U.Tus (Ada.Command_Line.Argument (I)); if I < Ada.Command_Line.Argument_Count then Arg2 := As_U.Tus (Ada.Command_Line.Argument (I + 1)); if Is_Command (Arg2.Image) then Arg2.Set_Null; else I := I + 1; end if; end if; Put_Territory (Arg1.Image, Arg2.Image, True); elsif Command.Image = "-s" then -- Subdirectories with same suffix I := I + 1; declare Brothers : constant Mapcodes.Territories_Array := Mapcodes.Get_Subdivisions_With ( Ada.Command_Line.Argument (I)); begin for Brother of Brothers loop Put_Territory (Mapcodes.Get_Territory_Alpha_Code (Brother), "", False); end loop; end; elsif Command.Image = "-S" then -- Search country names I := I + 1; Territory.Set (Str_Tools.Upper_Str (Ada.Command_Line.Argument (I))); for J in Countries.Territories_Def'Range loop if Str_Tools.Locate (Str_Tools.Upper_Str (Countries.Territories_Def(J).Name.Image), Territory.Image) /= 0 then -- Territory number is Index - 1 Put_Territory (Countries.Territories_Def(J).Code.Image, "", True); end if; end loop; elsif Command.Image = "-c" or else Command.Image = "-a" then -- Default precision for coding -- default precision for alternate mode will be deduced from input -- In any way it can be superseeded by argument Precision := 0; if Command.Image = "-c" then -- Encode a lat lon -- Get coord lat and lon I := I + 1; Arg1 := As_U.Tus (Ada.Command_Line.Argument (I)); Coord.Lat := Get (Arg1.Image); I := I + 1; Arg2 := As_U.Tus (Ada.Command_Line.Argument (I)); Coord.Lon := Get (Arg2.Image); Ada.Text_Io.Put_Line (Image (Coord.Lat) & " " & Image (Coord.Lon)); else -- Alternative mapcodes Parse_Mapcode; Coord := Decode (Arg1.Image, Arg2.Image); end if; -- Parse options: Territory, selection and precsion Territory := As_U.Asu_Null; Opt_Set := False; Pre_Set := False; -- Default selection: One (shortest) mapcode for each territory, -- not sorted Shortest := True; Sorted := False; for J in I + 1 .. Ada.Command_Line.Argument_Count loop Arg1 := As_U.Tus (Ada.Command_Line.Argument (J)); exit when Is_Command (Arg1.Image); I := J; if Lower_Str (Arg1.Image) = "all" then if Opt_Set then raise Argument_Error; end if; -- All mapcodes for each territory, not sorted Shortest := False; Opt_Set := True; elsif Lower_Str (Arg1.Image) = "local" then if Opt_Set then raise Argument_Error; end if; -- One (shortest) mapcode for each territory, -- sorted i.o. to put the first one Sorted := True; Opt_Set := True; elsif Lower_Str (Arg1.Image) = "short" then if Opt_Set then raise Argument_Error; end if; Opt_Set := True; elsif Arg1.Length = 2 and then Arg1.Element (1) = 'P' and then Arg1.Element (2) >= '0' and then Arg1.Element (2) <= Character'Val (Character'Pos ('0') + Max_Precision) then if Pre_Set then raise Argument_Error; end if; Precision := Precisions'Value (Arg1.Slice (2, 2)); Pre_Set := True; else if not Territory.Is_Null then raise Argument_Error; end if; Territory := Arg1; end if; end loop; -- Put mapcodes declare procedure Put_Code (Code : Mapcodes.Mapcode_Info) is begin Ada.Text_Io.Put_Line ("=> " & Code.Territory_Alpha_Code.Image & " " & Code.Mapcode.Image & " " & Quote (Code.Full_Mapcode.Image) & " " & Get_Territory_Number (Code.Territory)); end Put_Code; -- Sort if Local Codes : constant Mapcodes.Mapcode_Infos := Encode (Coord, Territory.Image, Shortest, Precision, Sorted); begin if Sorted then -- Local <=> Sorted, put the first one -- First mapcode is the shortest, and then others of the same -- territory and then others... if Codes'Length /= 0 then Put_Code (Codes(Codes'First)); end if; else for Code of Codes loop Put_Code (Code); end loop; end if; end; Ada.Text_Io.New_Line; elsif Command.Image = "-d" then -- Decode: next argument is mapcode, optionally preceeded by a context Parse_Mapcode; -- Decode Coord := Decode (Arg1.Image, Arg2.Image); Ada.Text_Io.Put_Line ("=> " & Image (Coord.Lat) & " " & Image (Coord.Lon)); elsif Command.Image = "-l" then if I + 1 <= Ada.Command_Line.Argument_Count then I := I + 1; Arg1 := As_U.Tus (Ada.Command_Line.Argument (I)); else raise Argument_Error; end if; Arg2.Set_Null; if I + 1 <= Ada.Command_Line.Argument_Count then -- Optional output language Arg2 := As_U.Tus (Ada.Command_Line.Argument (I + 1)); if Arg2.Length = 0 and then Arg2.Element (1) = '-' then Arg2.Set_Null; else I := I + 1; end if; end if; -- Set output language declare Language : Mapcodes.Languages.Language_List := Mapcodes.Languages.Roman; begin if not Arg2.Is_Null and then Arg2.Element (1) >= '0' and then Arg2.Element (1) <= '9' then -- Argument is language num Language := Mapcodes.Languages.Language_List'Val ( Natural'Value (Arg2.Image)); elsif not Arg2.Is_Null then -- Argument is language name Language := Mapcodes.Languages.Language_List'Value ( Mapcode_Utils.Str_Tools.Upper_Str (Arg2.Image)); end if; Ada.Text_Io.Put_Line ( Ada.Strings.Utf_Encoding.Wide_Strings.Encode ( Mapcodes.Languages.Convert ( Ada.Strings.Utf_Encoding.Wide_Strings.Decode (Arg1.Image), Language))); exception when Mapcodes.Decode_Error | Mapcodes.Languages.Invalid_Text | Mapcodes.Languages.Unknown_Language => raise; when others => raise Argument_Error; end; else raise Argument_Error; end if; I := I + 1; end loop; Ada.Command_Line.Set_Exit_Status (0); exception when Mapcodes.Unknown_Territory => Ada.Text_Io.Put_Line (Ada.Text_Io.Standard_Error, "Raised Unknown_Territory"); Ada.Command_Line.Set_Exit_Status (1); when Mapcodes.Not_A_Subdivision => Ada.Text_Io.Put_Line (Ada.Text_Io.Standard_Error, "Raised Not_A_Subdivision"); when Mapcodes.Decode_Error => Ada.Text_Io.Put_Line (Ada.Text_Io.Standard_Error, "Raised Decode_Error"); Ada.Command_Line.Set_Exit_Status (1); when Mapcodes.Languages.Invalid_Text => Ada.Text_Io.Put_Line (Ada.Text_Io.Standard_Error, "Raised Invalid_Text"); Ada.Command_Line.Set_Exit_Status (1); when Mapcodes.Languages.Unknown_Language => Ada.Text_Io.Put_Line (Ada.Text_Io.Standard_Error, "Raised Unknown_Language"); Ada.Command_Line.Set_Exit_Status (1); when Argument_Error => Ada.Text_Io.Put_Line (Ada.Text_Io.Standard_Error, "Invalid Argument"); Ada.Command_Line.Set_Exit_Status (2); when others => Ada.Command_Line.Set_Exit_Status (2); raise; end T_Mapcode;
sim/asm/fn22.asm
nanamake/avr_cpu
2
10073
<reponame>nanamake/avr_cpu<gh_stars>1-10 ;------------------- ; test for adiw/sbiw ;------------------- ldi r25,0x02 ldi r24,0xd8 adiw r24,0x30 ldi r27,0x02 ldi r26,0xd8 adiw r26,0x0f ;------------------- ldi r29,0x02 ldi r28,0x18 sbiw r28,0x30 ldi r31,0x02 ldi r30,0x18 sbiw r30,0x0f ;------------------- ldi r16,0xd8 ldi r17,0x02 ldi r18,0x30 ldi r19,0x0f ldi r20,0x18 ldi r21,0x02 ldi r22,0x30 ldi r23,0x0f ;------------------- sts 0x0100,r16 ; (ldi) 0xd8 sts 0x0101,r17 ; (ldi) 0x02 sts 0x0102,r18 ; (ldi) 0x30 sts 0x0103,r19 ; (ldi) 0x0f sts 0x0104,r20 ; (ldi) 0x18 sts 0x0105,r21 ; (ldi) 0x02 sts 0x0106,r22 ; (ldi) 0x30 sts 0x0107,r23 ; (ldi) 0x0f sts 0x0108,r24 ; (adiw) 0x02d8 0x30 sts 0x0109,r25 sts 0x010a,r26 ; (adiw) 0x02d8 0x0f sts 0x010b,r27 sts 0x010c,r28 ; (sbiw) 0x0218 0x30 sts 0x010d,r29 sts 0x010e,r30 ; (sbiw) 0x0218 0x0f sts 0x010f,r31 ;------------------- ldi r16,0xff sts 0xffff,r16 halt: rjmp halt
joern-cli/frontends/fuzzyc2cpg/src/main/antlr4/io/joern/fuzzyc2cpg/Function.g4
zu1kbackup/joern
415
5957
<reponame>zu1kbackup/joern grammar Function; import ModuleLex, Common; @parser::members { public void preProcSkipToEnd() { Stack<Object> CurlyStack = new Stack<>(); Object o = new Object(); int t = _input.LA(1); while(t != EOF && !(CurlyStack.empty() && t == PRE_ENDIF)){ if(t == PRE_IF) CurlyStack.push(o); else if(t == PRE_ENDIF) CurlyStack.pop(); consume(); t = _input.LA(1); } if(t != EOF) consume(); } } statements: (pre_opener | pre_closer | pre_else {preProcSkipToEnd(); } | statement)*; statement: opening_curly | closing_curly | block_starter | jump_statement | label | simple_decl | expr_statement | water ; pre_opener: PRE_IF; pre_else: PRE_ELSE; pre_closer: PRE_ENDIF; opening_curly: '{'; closing_curly: '}'; block_starter: selection_or_iteration; selection_or_iteration: TRY #Try_statement | CATCH '(' (param_type | ELLIPSIS) ')' #Catch_statement | IF '(' condition ')' #If_statement | ELSE #Else_statement | SWITCH '(' condition ')' #Switch_statement | FOR '(' (for_init_statement | ';') condition? ';' expr? ')' #For_statement | DO #Do_statement | WHILE '(' condition ')' #While_statement ; // Don't know why, but: introducing this unused rule results // in a performance boost. do_statement1: DO statement WHILE '(' expr ')'; for_init_statement : simple_decl | expr ';' ; jump_statement: BREAK ';' #breakStatement | CONTINUE ';' #continueStatement | GOTO identifier ';' #gotoStatement | RETURN expr? ';' #returnStatement | THROW expr? ';' #throwStatement ; label: CASE? (identifier | number | CHAR ) ':' ; expr_statement: expr? ';'; condition: expr | type_name declarator '=' assign_expr; // Copied from FineSimpleDecl.g4 init_declarator: declarator '(' expr? ')' #initDeclWithCall | declarator '=' initializer #initDeclWithAssign | declarator #initDeclSimple ; declarator: ptrs? identifier template_args? type_suffix? | ptrs? '(' func_ptrs identifier ')' type_suffix; type_suffix : ('[' conditional_expression? ']') | param_type_list; // Copied from SimpleDecl.g4 simple_decl : (TYPEDEF?) var_decl; var_decl : class_def init_declarator_list? #declByClass | template_decl* type_name init_declarator_list #declByType ; init_declarator_list: init_declarator (',' init_declarator)* ';'; initializer: assign_expr |'{' initializer_list '}' ; initializer_list: initializer (',' initializer)*; // Parameters param_decl_specifiers : (AUTO | REGISTER)? type_name; // this is a bit misleading. We're just allowing access_specifiers // here because C programs can use 'public', 'protected' or 'private' // as variable names. parameter_name: identifier; param_type_list: '(' VOID ')' | '(' (param_type (',' param_type)*)? ')'; param_type: param_decl_specifiers param_type_id; param_type_id: (ptrs | rvalue_ref)? ('(' param_type_id ')' | parameter_name?) type_suffix?;
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_1089.asm
ljhsiun2/medusa
9
87176
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x14062, %r9 nop nop nop nop and $30079, %r11 mov $0x6162636465666768, %rcx movq %rcx, %xmm2 vmovups %ymm2, (%r9) xor $16098, %rdi lea addresses_normal_ht+0xe502, %rsi lea addresses_UC_ht+0x6902, %rdi sub $63950, %r10 mov $75, %rcx rep movsb cmp $16978, %rdi lea addresses_WT_ht+0xca82, %rsi lea addresses_WT_ht+0xbd82, %rdi clflush (%rdi) xor $4678, %rbx mov $116, %rcx rep movsl nop nop nop nop dec %r11 lea addresses_UC_ht+0xfc88, %r9 nop nop nop nop cmp %rcx, %rcx movw $0x6162, (%r9) nop nop nop nop cmp $19958, %rbx lea addresses_D_ht+0x186bc, %rdi nop xor $21465, %r10 movb $0x61, (%rdi) nop inc %rsi lea addresses_A_ht+0x17c02, %rbx nop nop nop nop dec %rdi movb $0x61, (%rbx) nop sub %r11, %r11 lea addresses_UC_ht+0x1c702, %r11 clflush (%r11) nop nop nop nop add $45177, %r10 mov (%r11), %ebx nop nop nop sub $59659, %rbx lea addresses_WC_ht+0x178c2, %rcx nop nop nop nop cmp %r10, %r10 mov (%rcx), %r11w nop nop nop nop nop and $8972, %r10 lea addresses_WC_ht+0xfa08, %r9 nop nop cmp $19224, %rdi movb (%r9), %cl nop nop nop sub %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r8 push %r9 push %rdi // Faulty Load lea addresses_UC+0x13502, %r8 nop nop nop nop nop add %r14, %r14 mov (%r8), %rdi lea oracles, %r8 and $0xff, %rdi shlq $12, %rdi mov (%r8,%rdi,1), %rdi pop %rdi pop %r9 pop %r8 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, '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 */
boot/04_stack.asm
musgravejw/OS
8
14257
<reponame>musgravejw/OS ; ; A simple boot sector program that demonstrates the stack. ; mov ah, 0x0e ; int 10/ah = 0eh -> scrolling teletype BIOS routine mov bp, 0x8000 ; Set the base of the stack a little above where BIOS ; loads our boot sector - so it won’t overwrite us. mov sp, bp ; Push some characters on the stack for later ; retreival. Note, these are pushed on as ; 16-bit values, so the most significant byte ; will be added by our assembler as 0x00. push 'A' push 'B' push 'C' ; Note, we can only pop 16-bits, so pop to bx ; then copy bl (i.e. 8-bit char) to al ; print(al) pop bx mov al, bl int 0x10 ; Pop the next value ; print(al) pop bx mov al, bl int 0x10 ; To prove our stack grows downwards from bp, ; fetch the char at 0x8000 - 0x2 (i.e. 16-bits) ; print(al) mov al, [0x7ffe] int 0x10 ; Jump forever. jmp $ ; Padding and magic BIOS number. times 510-($-$$) db 0 dw 0xaa55
data/maps/objects/UndergroundPathRoute7Copy.asm
opiter09/ASM-Machina
1
939
<reponame>opiter09/ASM-Machina<filename>data/maps/objects/UndergroundPathRoute7Copy.asm UndergroundPathRoute7Copy_Object: db $a ; border block def_warps warp 3, 7, 5, LAST_MAP warp 4, 7, 5, LAST_MAP warp 4, 4, 0, UNDERGROUND_PATH_WEST_EAST def_signs def_objects object SPRITE_GIRL, 3, 2, STAY, NONE, 1 ; person object SPRITE_MIDDLE_AGED_MAN, 2, 4, STAY, NONE, 2 ; person def_warps_to UNDERGROUND_PATH_ROUTE_7_COPY
models/aleks/excludedmiddle.als
transclosure/Amalgam
4
3557
----------------------------------------- -- run with overflow prevention turned on ----------------------------------------- -- no counterexample check { 4.plus[5] = 6.plus[3] } for 4 Int -- no counterexample check { 4.plus[5] != 6.plus[3] } for 4 Int -- no counterexample check { all x: Int | x.mul[2] < 0 or !(x.mul[2] < 0) } for 3 Int one sig S { x: one Int } -- returns only values which don't cause an overflow when multiplied by 2 run { S.x.mul[2] < 0 or !(S.x.mul[2] < 0) } for 3 Int