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 |
|---|---|---|---|---|
examples/outdated-and-incorrect/AIM6/Cat/lib/Logic/Base.agda | asr/agda-kanso | 1 | 2835 |
module Logic.Base where
infix 60 ¬_
infix 30 _/\_
infix 20 _\/_
data True : Set where
tt : True
data False : Set where
elim-False : {A : Set} -> False -> A
elim-False ()
data _/\_ (P Q : Set) : Set where
/\-I : P -> Q -> P /\ Q
data _\/_ (P Q : Set) : Set where
\/-IL : P -> P \/ Q
\/-IR : Q -> P \/ Q
elimD-\/ : {P Q : Set}(C : P \/ Q -> Set) ->
((p : P) -> C (\/-IL p)) ->
((q : Q) -> C (\/-IR q)) ->
(pq : P \/ Q) -> C pq
elimD-\/ C left right (\/-IL p) = left p
elimD-\/ C left right (\/-IR q) = right q
elim-\/ : {P Q R : Set} -> (P -> R) -> (Q -> R) -> P \/ Q -> R
elim-\/ = elimD-\/ (\_ -> _)
¬_ : Set -> Set
¬ P = P -> False
data ∃ {A : Set}(P : A -> Set) : Set where
∃-I : (w : A) -> P w -> ∃ P
∏ : {A : Set}(P : A -> Set) -> Set
∏ {A} P = (x : A) -> P x
|
ada/host.ads | rtoal/enhanced-dining-philosophers | 0 | 8322 | <reponame>rtoal/enhanced-dining-philosophers<filename>ada/host.ads
------------------------------------------------------------------------------
-- host.ads
--
-- This package defines the task for the host. The host allows the philoso-
-- phers to enter and leave the restaurant. It also keeps track of how many
-- philosophers have died. The host is called Norman_Bates.
--
-- Entries:
--
-- Enter Allows you to enter the restaurant provided there are
-- at least two empty seats.
-- Leave Allows you to leave the restaurant.
-- Death_Announcement Records the fact that a philosopher has died.
--
-- Behavior:
--
-- The host just sits around waiting for someone to ask him to escort her
-- in to or out of the restaurant, or to inform him of a (philosopher's)
-- death. He will take requests to be seated only if there are at least two
-- free seats at the table. He will take requests to leave at any time.
-- After all the philosophers have informed him of their deaths, he will
-- fire all the cooks.
--
-- Termination:
--
-- The host keeps track of how many philosophers are alive. When this count
-- reaches zero, he will fire all the cooks and then subsequently terminate
-- himself.
--
-- Note:
--
-- The use of a host in the Dining Philosophers Problem is controversial be-
-- cause the system relies on the "ethics" of our philosophers. The phil-
-- osophers must be honest and always use the host to enter and leave, and
-- always inform the host that they are dead (or terminally ill and unable
-- to eat again!) One advantage, though, of having the philosophers inform-
-- ing the host of their death is that the host does not need to poll to see
-- how many philosophers are alive.
------------------------------------------------------------------------------
package Host is
task Norman_Bates is
entry Enter;
entry Leave;
entry Death_Announcement;
end Norman_Bates;
end Host;
|
sources/ippcp/asm_intel64/pcprij128decryptcbcpipee9as.asm | ymarkovitch/ipp-crypto | 0 | 81629 | ;===============================================================================
; Copyright 2015-2019 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") contained herein is
; owned by Intel Corporation or its suppliers or licensors, and title to such
; Material remains with Intel Corporation or its suppliers or licensors. The
; Material contains proprietary information of Intel or its suppliers and
; licensors. The Material is protected by worldwide copyright laws and treaty
; provisions. No part of the Material may be used, copied, reproduced,
; modified, published, uploaded, posted, transmitted, distributed or disclosed
; in any way without Intel's prior express written permission. No license under
; any patent, copyright or other intellectual property rights in the Material
; is granted to or conferred upon you, either expressly, by implication,
; inducement, estoppel or otherwise. Any license under such intellectual
; property rights must be express and approved by Intel in writing.
;
; Unless otherwise agreed by Intel in writing, you may not remove or alter this
; notice or any other notice embedded in Materials by Intel or Intel's
; suppliers or licensors in any way.
;
;
; If this software was obtained under the Apache License, Version 2.0 (the
; "License"), the following terms apply:
;
; 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.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Rijndael Inverse Cipher function
;
; Content:
; DecryptCBC_RIJ128pipe_AES_NI()
;
;
include asmdefs.inc
include ia_32e.inc
include pcpvariant.inc
IF (_AES_NI_ENABLING_ EQ _FEATURE_ON_) OR (_AES_NI_ENABLING_ EQ _FEATURE_TICKTOCK_)
IF (_IPP32E GE _IPP32E_Y8)
IPPCODE SEGMENT 'CODE' ALIGN (IPP_ALIGN_FACTOR)
;***************************************************************
;* Purpose: pipelined RIJ128 CBC decryption
;*
;* void DecryptCBC_RIJ128pipe_AES_NI(const Ipp32u* inpBlk,
;* Ipp32u* outBlk,
;* int nr,
;* const Ipp32u* pRKey,
;* int len,
;* const Ipp8u* pIV)
;***************************************************************
;;
;; Lib = Y8
;;
;; Caller = ippsAESDecryptCBC
;;
AES_BLOCK = (16)
ALIGN IPP_ALIGN_FACTOR
IPPASM DecryptCBC_RIJ128pipe_AES_NI PROC PUBLIC FRAME
USES_GPR rsi, rdi, rbx
LOCAL_FRAME = ((1+8)*AES_BLOCK)
USES_XMM xmm15
COMP_ABI 6
;; rdi: pInpBlk: PTR DWORD, ; input blocks address
;; rsi: pOutBlk: PTR DWORD, ; output blocks address
;; rdx: nr: DWORD, ; number of rounds
;; rcx pKey: PTR DWORD ; key material address
;; r8d length: DWORD ; length (bytes)
;; r9 pIV PTR BYTE ; pointer to the IV
SC equ (4)
movdqu xmm15, oword ptr [r9] ; IV
movsxd r8, r8d ; processed length
lea rax,[rdx*SC] ; keys offset
cmp r8, (4*AES_BLOCK)
jl short123_input
cmp r8, (16*AES_BLOCK)
jle block4x
;;
;; 8-blocks processing
;;
mov rbx, rsp ; rbx points on cipher's data in stack
sub rsp, sizeof(oword)*4 ; allocate stack and xmm registers
movdqa oword ptr[rsp+0*sizeof(oword)], xmm6
movdqa oword ptr[rsp+1*sizeof(oword)], xmm7
movdqa oword ptr[rsp+2*sizeof(oword)], xmm8
movdqa oword ptr[rsp+3*sizeof(oword)], xmm9
sub r8, (8*AES_BLOCK)
ALIGN IPP_ALIGN_FACTOR
blk8_loop:
lea r9,[rcx+rax*sizeof(dword)-AES_BLOCK]; pointer to the key material
movdqu xmm0, oword ptr[rdi+0*AES_BLOCK] ; get input blocks
movdqu xmm1, oword ptr[rdi+1*AES_BLOCK]
movdqu xmm2, oword ptr[rdi+2*AES_BLOCK]
movdqu xmm3, oword ptr[rdi+3*AES_BLOCK]
movdqu xmm6, oword ptr[rdi+4*AES_BLOCK]
movdqu xmm7, oword ptr[rdi+5*AES_BLOCK]
movdqu xmm8, oword ptr[rdi+6*AES_BLOCK]
movdqu xmm9, oword ptr[rdi+7*AES_BLOCK]
movdqa xmm5, oword ptr [r9+AES_BLOCK] ; whitening keys
movdqa xmm4, oword ptr [r9] ; pre load operation's keys
movdqa oword ptr [rbx+1*AES_BLOCK], xmm0 ; save input into the stack
pxor xmm0, xmm5 ; and do whitening
movdqa oword ptr [rbx+2*AES_BLOCK], xmm1
pxor xmm1, xmm5
movdqa oword ptr [rbx+3*AES_BLOCK], xmm2
pxor xmm2, xmm5
movdqa oword ptr [rbx+4*AES_BLOCK], xmm3
pxor xmm3, xmm5
movdqa oword ptr [rbx+5*AES_BLOCK], xmm6
pxor xmm6, xmm5
movdqa oword ptr [rbx+6*AES_BLOCK], xmm7
pxor xmm7, xmm5
movdqa oword ptr [rbx+7*AES_BLOCK], xmm8
pxor xmm8, xmm5
movdqa oword ptr [rbx+8*AES_BLOCK], xmm9
pxor xmm9, xmm5
movdqa xmm5, oword ptr [r9-AES_BLOCK] ; pre load operation's keys
sub r9, (2*AES_BLOCK)
lea r10, [rdx-2] ; counter = nrounds-2
ALIGN IPP_ALIGN_FACTOR
cipher_loop8:
aesdec xmm0, xmm4 ; regular round
aesdec xmm1, xmm4
aesdec xmm2, xmm4
aesdec xmm3, xmm4
aesdec xmm6, xmm4
aesdec xmm7, xmm4
aesdec xmm8, xmm4
aesdec xmm9, xmm4
movdqa xmm4, oword ptr[r9] ; pre load operation's keys
aesdec xmm0, xmm5 ; regular round
aesdec xmm1, xmm5
aesdec xmm2, xmm5
aesdec xmm3, xmm5
aesdec xmm6, xmm5
aesdec xmm7, xmm5
aesdec xmm8, xmm5
aesdec xmm9, xmm5
movdqa xmm5, oword ptr [r9-AES_BLOCK] ; pre load operation's keys
sub r9, (2*AES_BLOCK)
sub r10, 2
jnz cipher_loop8
aesdec xmm0, xmm4 ; regular round
aesdec xmm1, xmm4
aesdec xmm2, xmm4
aesdec xmm3, xmm4
aesdec xmm6, xmm4
aesdec xmm7, xmm4
aesdec xmm8, xmm4
aesdec xmm9, xmm4
aesdeclast xmm0, xmm5 ; irregular round, ^IV, and store result
pxor xmm0, xmm15
movdqu oword ptr[rsi+0*AES_BLOCK], xmm0
aesdeclast xmm1, xmm5
pxor xmm1, oword ptr[rbx+1*AES_BLOCK]
movdqu oword ptr[rsi+1*AES_BLOCK], xmm1
aesdeclast xmm2, xmm5
pxor xmm2, oword ptr[rbx+2*AES_BLOCK]
movdqu oword ptr[rsi+2*AES_BLOCK], xmm2
aesdeclast xmm3, xmm5
pxor xmm3, oword ptr[rbx+3*AES_BLOCK]
movdqu oword ptr[rsi+3*AES_BLOCK], xmm3
aesdeclast xmm6, xmm5
pxor xmm6, oword ptr[rbx+4*AES_BLOCK]
movdqu oword ptr[rsi+4*AES_BLOCK], xmm6
aesdeclast xmm7, xmm5
pxor xmm7, oword ptr[rbx+5*AES_BLOCK]
movdqu oword ptr[rsi+5*AES_BLOCK], xmm7
aesdeclast xmm8, xmm5
pxor xmm8, oword ptr[rbx+6*AES_BLOCK]
movdqu oword ptr[rsi+6*AES_BLOCK], xmm8
aesdeclast xmm9, xmm5
pxor xmm9, oword ptr[rbx+7*AES_BLOCK]
movdqu oword ptr[rsi+7*AES_BLOCK], xmm9
movdqa xmm15,oword ptr[rbx+8*AES_BLOCK] ; update IV
add rsi, (8*AES_BLOCK)
add rdi, (8*AES_BLOCK)
sub r8, (8*AES_BLOCK)
jge blk8_loop
movdqa xmm6, oword ptr[rsp+0*sizeof(oword)] ; restore xmm registers
movdqa xmm7, oword ptr[rsp+1*sizeof(oword)]
movdqa xmm8, oword ptr[rsp+2*sizeof(oword)]
movdqa xmm9, oword ptr[rsp+3*sizeof(oword)]
add rsp, sizeof(oword)*4 ; and release stack
add r8, (8*AES_BLOCK)
jz quit
;;
;; test if 4-blocks processing alaivalbe
;;
block4x:
cmp r8, (4*AES_BLOCK)
jl short123_input
sub r8, (4*AES_BLOCK)
ALIGN IPP_ALIGN_FACTOR
blk4_loop:
lea r9,[rcx+rax*sizeof(dword)-AES_BLOCK]; pointer to the key material
movdqu xmm0, oword ptr[rdi+0*AES_BLOCK] ; get input blocks
movdqu xmm1, oword ptr[rdi+1*AES_BLOCK]
movdqu xmm2, oword ptr[rdi+2*AES_BLOCK]
movdqu xmm3, oword ptr[rdi+3*AES_BLOCK]
movdqa xmm5, oword ptr [r9+AES_BLOCK] ; whitening keys
movdqa xmm4, oword ptr [r9] ; pre load operation's keys
movdqa oword ptr [rsp+1*AES_BLOCK], xmm0 ; save input into the stack
pxor xmm0, xmm5 ; and do whitening
movdqa oword ptr [rsp+2*AES_BLOCK], xmm1
pxor xmm1, xmm5
movdqa oword ptr [rsp+3*AES_BLOCK], xmm2
pxor xmm2, xmm5
movdqa oword ptr [rsp+4*AES_BLOCK], xmm3
pxor xmm3, xmm5
movdqa xmm5, oword ptr [r9-AES_BLOCK] ; pre load operation's keys
sub r9, (2*AES_BLOCK)
lea r10, [rdx-2] ; counter = nrounds-2
ALIGN IPP_ALIGN_FACTOR
cipher_loop4:
aesdec xmm0, xmm4 ; regular round
aesdec xmm1, xmm4
aesdec xmm2, xmm4
aesdec xmm3, xmm4
movdqa xmm4, oword ptr[r9] ; pre load operation's keys
aesdec xmm0, xmm5 ; regular round
aesdec xmm1, xmm5
aesdec xmm2, xmm5
aesdec xmm3, xmm5
movdqa xmm5, oword ptr [r9-AES_BLOCK] ; pre load operation's keys
sub r9, (2*AES_BLOCK)
sub r10, 2
jnz cipher_loop4
aesdec xmm0, xmm4 ; regular round
aesdec xmm1, xmm4
aesdec xmm2, xmm4
aesdec xmm3, xmm4
aesdeclast xmm0, xmm5 ; irregular round, ^IV, and store result
pxor xmm0, xmm15
movdqu oword ptr[rsi+0*AES_BLOCK], xmm0
aesdeclast xmm1, xmm5
pxor xmm1, oword ptr[rsp+1*AES_BLOCK]
movdqu oword ptr[rsi+1*AES_BLOCK], xmm1
aesdeclast xmm2, xmm5
pxor xmm2, oword ptr[rsp+2*AES_BLOCK]
movdqu oword ptr[rsi+2*AES_BLOCK], xmm2
aesdeclast xmm3, xmm5
pxor xmm3, oword ptr[rsp+3*AES_BLOCK]
movdqu oword ptr[rsi+3*AES_BLOCK], xmm3
movdqa xmm15,oword ptr[rsp+4*AES_BLOCK] ; update IV
add rsi, (4*AES_BLOCK)
add rdi, (4*AES_BLOCK)
sub r8, (4*AES_BLOCK)
jge blk4_loop
add r8, (4*AES_BLOCK)
jz quit
;;
;; block-by-block processing
;;
short123_input:
lea r9,[rcx+rax*sizeof(dword)] ; pointer to the key material (whitening)
ALIGN IPP_ALIGN_FACTOR
single_blk_loop:
movdqu xmm0, oword ptr[rdi] ; get input block
add rdi, AES_BLOCK
movdqa xmm1, xmm0 ; and save as IV for future
pxor xmm0, oword ptr [r9] ; whitening
cmp rdx,12 ; switch according to number of rounds
jl key_128_s
jz key_192_s
key_256_s:
aesdec xmm0, oword ptr[rcx+9*SC*4+4*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4+3*SC*4]
key_192_s:
aesdec xmm0, oword ptr[rcx+9*SC*4+2*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4+1*SC*4]
key_128_s:
aesdec xmm0, oword ptr[rcx+9*SC*4-0*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-1*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-2*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-3*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-4*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-5*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-6*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-7*SC*4]
aesdec xmm0, oword ptr[rcx+9*SC*4-8*SC*4]
aesdeclast xmm0, oword ptr[rcx+9*SC*4-9*SC*4]
pxor xmm0, xmm15 ; add IV
movdqu oword ptr[rsi], xmm0 ; and save output blocl
add rsi, AES_BLOCK
sub r8, AES_BLOCK
movdqa xmm15, xmm1 ; update IV
jnz single_blk_loop
quit:
pxor xmm4, xmm4
pxor xmm5, xmm5
REST_XMM
REST_GPR
ret
IPPASM DecryptCBC_RIJ128pipe_AES_NI ENDP
ENDIF ;; _IPP32E GE _IPP32E_Y8
ENDIF ;; _AES_NI_ENABLING_
END
|
CSE 341 Microprocessors/Lab Final/Task 2.asm | iamraufu/BRACU | 12 | 164251 | .MODEL SMALL
FINDGREATER MACRO X,Y,Z
MOV CL,X
MOV CH,Y
MOV BH,Z
CMP CL,CH
JG C1
JNG C2
C1:
CMP CL,BH
JG MAX_X
JNG MAX_Z
C2:
CMP CH,BH
JG MAX_Y
JNG MAX_Z
MAX_X:
MOV DL,CL
MOV AH,2
INT 21H
JMP EXIT
MAX_Y:
MOV DL,CH
MOV AH,2
INT 21H
JMP EXIT
MAX_Z:
MOV DL,BH
MOV AH,2
INT 21H
EXIT:
ENDM
.STACK 100H
.DATA
A DB 0
B DB 0
C DB 0
M1 DB 0AH,0DH,"Maximum number is $"
M2 DB 0AH,0DH,"Minimum number is $"
M3 DB "INPUT:$"
.CODE
MAIN PROC
;INITIALIZE DS
MOV AX, @DATA
MOV DS, AX
;ENTER YOUR CODE HERE
LEA DX,M3
MOV AH,9
INT 21H
MOV AH,1
INT 21H
MOV A,AL
INT 21H
MOV B,AL
INT 21H
MOV C,AL
LEA DX,M1
MOV AH,9
INT 21H
FINDGREATER A,B,C
LEA DX,M2
MOV AH,9
INT 21H
CALL FINDMINIMUM
FINDMINIMUM PROC
MOV CL,A
MOV CH,B
MOV BH,C
CMP CL,CH ;A<B?
JNL C3 ;A<B=NO?
JL C4 ;A<B=YES?
C3:
CMP CH,BH
JL MIN_B ;B<C=YES? MIN=B
JNL MIN_C ;B<C=NO? MIN=C
C4:
CMP CL,BH
JL MIN_A ;A<C=YES? MIN=A
JNL MIN_C ;A<C=NO? MIN=C
MIN_A:
MOV DL,CL
MOV AH,2
INT 21H
JMP EXIT_
MIN_B:
MOV DL,CH
MOV AH,2
INT 21H
JMP EXIT_
MIN_C:
MOV DL,BH
MOV AH,2
INT 21H
EXIT_:
MOV AX, 4C00H
INT 21H
RET
FINDMINIMUM ENDP
|
Working Disassembly/Levels/ICZ/Misc Object Data/Map - Wall and Column.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 101725 | <filename>Working Disassembly/Levels/ICZ/Misc Object Data/Map - Wall and Column.asm
Map_3639C0: dc.w Frame_3639DC-Map_3639C0
dc.w Frame_363A3E-Map_3639C0
dc.w Frame_363AC4-Map_3639C0
dc.w Frame_363B1A-Map_3639C0
dc.w Frame_363B28-Map_3639C0
dc.w Frame_363B30-Map_3639C0
dc.w Frame_363B38-Map_3639C0
dc.w Frame_363B6A-Map_3639C0
dc.w Frame_363B7E-Map_3639C0
dc.w Frame_363B8C-Map_3639C0
dc.w Frame_363BAC-Map_3639C0
dc.w Frame_363BBA-Map_3639C0
dc.w Frame_363BBC-Map_3639C0
dc.w Frame_363C12-Map_3639C0
Frame_3639DC: dc.w $10
dc.b $D4, $D, 0, 0,$FF,$D0
dc.b $D4, $D, 0, 8,$FF,$F0
dc.b $D4, $D, 0,$10, 0,$10
dc.b $E4, $D, 0,$18,$FF,$D0
dc.b $E4, $D, 0,$18,$FF,$F0
dc.b $E4, $D, 0,$20, 0,$10
dc.b $F4, $D, 0,$28,$FF,$D0
dc.b $F4, $D,$18,$28,$FF,$F0
dc.b $F4, $D, 0,$30, 0,$10
dc.b 4, $D, 8,$28,$FF,$D0
dc.b 4, $D, 0,$28,$FF,$F0
dc.b 4, $D, 0,$30, 0,$10
dc.b $14, $D, 0,$38,$FF,$D0
dc.b $14, $D, 0,$40,$FF,$F0
dc.b $14, $C, 0,$48, 0,$10
dc.b $24, $C, 0,$48,$FF,$D0
Frame_363A3E: dc.w $16
dc.b $DC, $D, 0, 0,$FF,$B0
dc.b $DC, $D, 0, 8,$FF,$D0
dc.b $DC, $D, 8, 8,$FF,$F0
dc.b $DC, $D, 8, 0, 0,$10
dc.b $DC, $D, 0, 0, 0,$30
dc.b $EC, $D, 0,$18,$FF,$B0
dc.b $EC, $D, 0,$18,$FF,$D0
dc.b $EC, $D, 0,$18,$FF,$F0
dc.b $EC, $D, 0,$18, 0,$10
dc.b $EC, $D, 8,$18, 0,$30
dc.b $FC, $D, 0,$28,$FF,$B0
dc.b $FC, $D, 0,$28,$FF,$D0
dc.b $FC, $D, 8,$28,$FF,$F0
dc.b $FC, $D, 8,$28, 0,$10
dc.b $FC, $D, 0,$28, 0,$30
dc.b $C, $D, 8,$40,$FF,$B0
dc.b $C, $D, 8,$38,$FF,$D0
dc.b $C, $D, 0,$38,$FF,$F0
dc.b $C, $D, 0,$40, 0,$10
dc.b $C, $D, 8,$40, 0,$30
dc.b $1C, $C, 8,$48,$FF,$D0
dc.b $1C, $C, 0,$48,$FF,$F0
Frame_363AC4: dc.w $E
dc.b $90, $F, 0,$4C,$FF,$E0
dc.b $90, $F, 8,$4C, 0, 0
dc.b $B0, $F, 0,$5C,$FF,$E0
dc.b $B0, $F, 0,$6C, 0, 0
dc.b $D0, $F,$18,$6C,$FF,$E0
dc.b $D0, $F,$18,$5C, 0, 0
dc.b $F0, $F, 0,$5C,$FF,$E0
dc.b $F0, $F, 0,$6C, 0, 0
dc.b $10, $F,$18,$6C,$FF,$E0
dc.b $10, $F,$18,$5C, 0, 0
dc.b $30, $F, 0,$5C,$FF,$E0
dc.b $30, $F, 0,$6C, 0, 0
dc.b $50, $F,$10,$4C,$FF,$E0
dc.b $50, $F,$18,$4C, 0, 0
Frame_363B1A: dc.w 2
dc.b $F0, $F, 0,$4C,$FF,$E0
dc.b $F0, $F, 8,$4C, 0, 0
Frame_363B28: dc.w 1
dc.b $F0, 7, 0,$8C,$FF,$F8
Frame_363B30: dc.w 1
dc.b $F0, $B, 0,$94,$FF,$F4
Frame_363B38: dc.w 8
dc.b $C0, $F, 0,$5C,$FF,$E0
dc.b $C0, $F, 0,$6C, 0, 0
dc.b $E0, $F,$18,$6C,$FF,$E0
dc.b $E0, $F,$18,$5C, 0, 0
dc.b 0, $F, 0,$5C,$FF,$E0
dc.b 0, $F, 0,$6C, 0, 0
dc.b $20, $F,$18,$6C,$FF,$E0
dc.b $20, $F,$18,$5C, 0, 0
Frame_363B6A: dc.w 3
dc.b $E0, 7, 0,$A0,$FF,$F0
dc.b $E0, 7, 8,$A0, 0, 0
dc.b 0, 7, 0,$8C,$FF,$F8
Frame_363B7E: dc.w 2
dc.b $F4, $D, 0,$38,$FF,$F0
dc.b 4, $C, 0,$48,$FF,$F0
Frame_363B8C: dc.w 5
dc.b $DC, $D, 0,$AC,$FF,$F0
dc.b $EC, $D, 0,$18,$FF,$F0
dc.b $FC, $D, 0,$28,$FF,$F0
dc.b $C, $D, 0,$38,$FF,$F0
dc.b $1C, $C, 0,$48,$FF,$F0
Frame_363BAC: dc.w 2
dc.b $F0, $F, 0,$7C,$FF,$E0
dc.b $F0, $F,$18,$7C, 0, 0
Frame_363BBA: dc.w 0
Frame_363BBC: dc.w $E
dc.b $90, $F, 0,$4C,$FF,$E0
dc.b $90, $F, 8,$4C, 0, 0
dc.b $B0, $F, 0,$5C,$FF,$E0
dc.b $B0, $F, 0,$6C, 0, 0
dc.b $D0, $F,$18,$6C,$FF,$E0
dc.b $D0, $F,$18,$5C, 0, 0
dc.b $F0, $F, 0,$5C,$FF,$E0
dc.b $F0, $F, 0,$6C, 0, 0
dc.b $10, $F,$18,$6C,$FF,$E0
dc.b $10, $F,$18,$5C, 0, 0
dc.b $30, $F, 0,$5C,$FF,$E0
dc.b $30, $F, 0,$6C, 0, 0
dc.b $50, $F,$18,$6C,$FF,$E0
dc.b $50, $F,$18,$5C, 0, 0
Frame_363C12: dc.w 8
dc.b $C0, $F,$18,$6C,$FF,$E0
dc.b $C0, $F,$18,$5C, 0, 0
dc.b $E0, $F, 0,$5C,$FF,$E0
dc.b $E0, $F, 0,$6C, 0, 0
dc.b 0, $F,$18,$6C,$FF,$E0
dc.b 0, $F,$18,$5C, 0, 0
dc.b $20, $F,$10,$4C,$FF,$E0
dc.b $20, $F,$18,$4C, 0, 0
|
maps/OlivineLighthouse4F.asm | Dev727/ancientplatinum | 28 | 23954 | <filename>maps/OlivineLighthouse4F.asm
object_const_def ; object_event constants
const OLIVINELIGHTHOUSE4F_SAILOR
const OLIVINELIGHTHOUSE4F_LASS
OlivineLighthouse4F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerLassConnie:
trainer LASS, CONNIE1, EVENT_BEAT_LASS_CONNIE, LassConnie1SeenText, LassConnie1BeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext LassConnie1AfterBattleText
waitbutton
closetext
end
TrainerSailorKent:
trainer SAILOR, KENT, EVENT_BEAT_SAILOR_KENT, SailorKentSeenText, SailorKentBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext SailorKentAfterBattleText
waitbutton
closetext
end
SailorKentSeenText:
text "JASMINE must be"
line "worried sick about"
cont "the #MON here."
para "She won't even"
line "smile these days."
done
SailorKentBeatenText:
text "I can't manage a"
line "smile either…"
done
SailorKentAfterBattleText:
text "Speaking of sick,"
line "I've heard there's"
para "a good PHARMACY in"
line "CIANWOOD."
done
LassConnie1SeenText:
text "JASMINE is this"
line "city's GYM LEADER."
para "I mean to bring"
line "her back with me."
para "Nobody had better"
line "get in my way!"
done
LassConnie1BeatenText:
text "Aaack! My #MON!"
done
LassConnie1AfterBattleText:
text "Right. Anybody"
line "would be worried"
cont "if his or her own"
cont "#MON were hurt."
para "I'll pray for the"
line "#MON here, so"
para "JASMINE can come"
line "back to the GYM."
done
OlivineLighthouse4F_MapEvents:
db 0, 0 ; filler
db 10 ; warp events
warp_event 13, 3, OLIVINE_LIGHTHOUSE_3F, 1
warp_event 3, 5, OLIVINE_LIGHTHOUSE_5F, 2
warp_event 9, 7, OLIVINE_LIGHTHOUSE_5F, 3
warp_event 9, 5, OLIVINE_LIGHTHOUSE_3F, 3
warp_event 16, 9, OLIVINE_LIGHTHOUSE_3F, 6
warp_event 17, 9, OLIVINE_LIGHTHOUSE_3F, 7
warp_event 8, 3, OLIVINE_LIGHTHOUSE_3F, 8
warp_event 9, 3, OLIVINE_LIGHTHOUSE_3F, 9
warp_event 16, 7, OLIVINE_LIGHTHOUSE_5F, 4
warp_event 17, 7, OLIVINE_LIGHTHOUSE_5F, 5
db 0 ; coord events
db 0 ; bg events
db 2 ; object events
object_event 7, 14, SPRITE_SAILOR, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSailorKent, -1
object_event 11, 2, SPRITE_LASS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerLassConnie, -1
|
test/Succeed/SizeInfinity.agda | shlevy/agda | 3 | 10860 | <filename>test/Succeed/SizeInfinity.agda
-- Andreas, 2016-02-21 issue 1862 reported by nad
-- {-# OPTIONS -v tc.decl:10 -v tc.def.where:10 -v tc.meta:10 -v tc.size.solve:100 #-}
open import Common.Size
data Nat (i : Size) : Set where
zero : Nat i
suc : (j : Size< i) (n : Nat j) → Nat i
id : ∀ i → Nat i → Nat i
id _ zero = zero
id _ (suc j n) = s
where
mutual
s = suc _ r -- should not be instantiated to ∞x
r = id _ n
|
programs/oeis/189/A189676.asm | neoneye/loda | 22 | 97444 | ; A189676: a(n) = n + [nr/s] + [nt/s]; r=Pi/2, s=arcsin(3/5), t=arcsin(4/5).
; 4,8,14,18,24,28,34,38,42,48,52,58,62,68,72,78,82,86,92,96,102,106,112,116,122,126,130,136,140,146,150,156,160,164,170,174,180,184,190,194,200,204,208,214,218,224,228,234,238,244,248,252,258,262,268,272,278,282,288,292,296,302,306,312,316,322,326,330,336,340,346
mov $3,$0
add $0,10
mul $0,15
div $0,34
mul $0,2
sub $0,4
mov $2,$3
mul $2,4
add $0,$2
|
source/amf/uml/amf-uml-call_behavior_actions.ads | svn2github/matreshka | 24 | 2733 | <filename>source/amf/uml/amf-uml-call_behavior_actions.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, <NAME> <<EMAIL>> --
-- 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 Vadim Godunko, IE 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. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- A call behavior action is a call action that invokes a behavior directly
-- rather than invoking a behavioral feature that, in turn, results in the
-- invocation of that behavior. The argument values of the action are
-- available to the execution of the invoked behavior. For synchronous calls
-- the execution of the call behavior action waits until the execution of the
-- invoked behavior completes and a result is returned on its output pin. The
-- action completes immediately without a result, if the call is
-- asynchronous. In particular, the invoked behavior may be an activity.
------------------------------------------------------------------------------
limited with AMF.UML.Behaviors;
with AMF.UML.Call_Actions;
package AMF.UML.Call_Behavior_Actions is
pragma Preelaborate;
type UML_Call_Behavior_Action is limited interface
and AMF.UML.Call_Actions.UML_Call_Action;
type UML_Call_Behavior_Action_Access is
access all UML_Call_Behavior_Action'Class;
for UML_Call_Behavior_Action_Access'Storage_Size use 0;
not overriding function Get_Behavior
(Self : not null access constant UML_Call_Behavior_Action)
return AMF.UML.Behaviors.UML_Behavior_Access is abstract;
-- Getter of CallBehaviorAction::behavior.
--
-- The invoked behavior. It must be capable of accepting and returning
-- control.
not overriding procedure Set_Behavior
(Self : not null access UML_Call_Behavior_Action;
To : AMF.UML.Behaviors.UML_Behavior_Access) is abstract;
-- Setter of CallBehaviorAction::behavior.
--
-- The invoked behavior. It must be capable of accepting and returning
-- control.
end AMF.UML.Call_Behavior_Actions;
|
lib/src/xr/x86/os2/xrnincls.asm | zanud/xds-2.60 | 53 | 102056 | .386p
; COPYRIGHT (c) 1995,99 XDS. All Rights Reserved.
; X2C_INCLs constant array
ifdef OS2
.model FLAT
endif
DGROUP group _DATA
public X2C_INCLs
public X2C_INCLs_HI
ifdef OS2
_DATA segment use32 dword public 'DATA'
else
_DATA segment use32 para public 'DATA'
endif
X2C_INCLs dd 00000001h, 00000002h, 00000004h, 00000008h
dd 00000010h, 00000020h, 00000040h, 00000080h
dd 00000100h, 00000200h, 00000400h, 00000800h
dd 00001000h, 00002000h, 00004000h, 00008000h
dd 00010000h, 00020000h, 00040000h, 00080000h
dd 00100000h, 00200000h, 00400000h, 00800000h
dd 01000000h, 02000000h, 04000000h, 08000000h
dd 10000000h, 20000000h, 40000000h, 80000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
X2C_INCLs_HI dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000000h, 00000000h, 00000000h, 00000000h
dd 00000001h, 00000002h, 00000004h, 00000008h
dd 00000010h, 00000020h, 00000040h, 00000080h
dd 00000100h, 00000200h, 00000400h, 00000800h
dd 00001000h, 00002000h, 00004000h, 00008000h
dd 00010000h, 00020000h, 00040000h, 00080000h
dd 00100000h, 00200000h, 00400000h, 00800000h
dd 01000000h, 02000000h, 04000000h, 08000000h
dd 10000000h, 20000000h, 40000000h, 80000000h
_DATA ends
end
|
programs/oeis/301/A301708.asm | karttu/loda | 0 | 3759 | ; A301708: Coordination sequence for node of type V1 in "krc" 2-D tiling (or net).
; 1,6,11,16,22,28,33,38,44,50,55,60,66,72,77,82,88,94,99,104,110,116,121,126,132,138,143,148,154,160,165,170,176,182,187,192,198,204,209,214,220,226,231,236,242,248,253,258,264,270,275,280,286,292,297,302,308,314,319,324,330,336,341,346,352,358,363,368,374,380,385,390,396,402,407,412,418,424,429,434,440,446,451,456,462,468,473,478,484,490,495,500,506,512,517,522,528,534,539,544,550,556,561,566,572,578,583,588,594,600,605,610,616,622,627,632,638,644,649,654,660,666,671,676,682,688,693,698,704,710,715,720,726,732,737,742,748,754,759,764,770,776,781,786,792,798,803,808,814,820,825,830,836,842,847,852,858,864,869,874,880,886,891,896,902,908,913,918,924,930,935,940,946,952,957,962,968,974,979,984,990,996,1001,1006,1012,1018,1023,1028,1034,1040,1045,1050,1056,1062,1067,1072,1078,1084,1089,1094,1100,1106,1111,1116,1122,1128,1133,1138,1144,1150,1155,1160,1166,1172,1177,1182,1188,1194,1199,1204,1210,1216,1221,1226,1232,1238,1243,1248,1254,1260,1265,1270,1276,1282,1287,1292,1298,1304,1309,1314,1320,1326,1331,1336,1342,1348,1353,1358,1364,1370
mov $1,1
trn $1,$0
add $1,1
mov $3,$0
mov $4,$0
sub $4,1
lpb $0,1
sub $0,1
mov $2,2
trn $2,$4
add $1,$2
trn $4,4
lpe
lpb $3,1
add $1,4
sub $3,1
lpe
sub $1,1
|
tests/misc/sjio_cpp/sjio_coverage2.asm | fengjixuchui/sjasmplus | 220 | 23136 | DEVICE ZXSPECTRUM48
LUA
sj.get_word(0)
sj.get_word(0xFFFF)
sj.get_byte(0x2000)
sj.get_byte(0x20000)
ENDLUA
EMPTYTAP "sjio_coverage2_ignore.tap"
TAPOUT "sjio_coverage2_ignore.tap"
DS 0x8000,1
DS 0x8000,2
TAPEND
MACRO MacroWithoutENDM
|
lib/Haskell/RangedSetsProp/library.agda | ioanasv/agda2hs | 1 | 10364 | <reponame>ioanasv/agda2hs
module Haskell.RangedSetsProp.library where
open import Agda.Builtin.Equality
open import Agda.Builtin.Bool
open import Haskell.Prim
open import Haskell.Prim.Ord
open import Haskell.Prim.Bool
open import Haskell.Prim.Eq
open import Haskell.Prim.Int
open import Haskell.Prim.List
open import Haskell.RangedSets.Boundaries
open import Haskell.RangedSets.Ranges
-- symmetry of equality
sym : {A : Set} {x y : A} → x ≡ y → y ≡ x
sym refl = refl
-- transitivity of equality
trans : {A : Set} {x y z : A} → x ≡ y → y ≡ z → x ≡ z
trans refl refl = refl
-- congruence of equality
cong : {A B : Set} {x y : A} → (f : A → B) → x ≡ y → f x ≡ f y
cong f refl = refl
begin_ : {A : Set} → {x y : A} → x ≡ y → x ≡ y
begin p = p
_end : {A : Set} → (x : A) → x ≡ x
x end = refl
_=⟨_⟩_ : {A : Set} → (x : A) → {y z : A}
→ x ≡ y → y ≡ z → x ≡ z
x =⟨ p ⟩ q = trans p q
_=⟨⟩_ : {A : Set} → (x : A) → {y : A} → x ≡ y → x ≡ y
x =⟨⟩ q = x =⟨ refl ⟩ q
infix 1 begin_
infix 3 _end
infixr 2 _=⟨_⟩_
infixr 2 _=⟨⟩_
subst : {A : Set} {x y : A} → (P : A → Set) → x ≡ y → P x → P y
subst P refl p = p
isTrue&&₁ : {x y : Bool} → IsTrue (x && y) → IsTrue x
isTrue&&₂ : {x y : Bool} → IsTrue (x && y) → IsTrue y
isTrue&&₁ {true} _ = IsTrue.itsTrue
isTrue&&₁ {false} ()
isTrue&&₂ {true} p = p
isTrue&&₂ {false} ()
ifThenElseHelper : {a : Set ℓ} → a → a → Bool → a
ifThenElseHelper b c d = if_then_else_ d b c
propIf : {a b : Set} → {x y : a} (f : a → b) (c : Bool) → f (if c then x else y) ≡ (if c then f x else f y)
propIf f false = refl
propIf f true = refl
propIf2 : ⦃ Ord a ⦄ → {x y : a} (c : Bool) → IsTrue c → (if c then x else y) ≡ x
propIf2 true f = refl
propIf3 : ⦃ Ord a ⦄ → {x y : a} (c : Bool) → IsFalse c → (if c then x else y) ≡ y
propIf3 false f = refl
propIf2' : ⦃ o : Ord a ⦄ → ⦃ dio : DiscreteOrdered a ⦄ → {x y : List (Range a)} (c : Bool) → IsTrue c → (if c then x else y) ≡ x
propIf2' true f = refl
propIf3' : ⦃ o : Ord a ⦄ → ⦃ dio : DiscreteOrdered a ⦄ → {x y : List (Range a)} (c : Bool) → IsFalse c → (if c then x else y) ≡ y
propIf3' false f = refl
propIsFalse : (x : Bool) → IsFalse x → x ≡ false
propIsFalse false f = refl
propIsTrue : (x : Bool) → IsTrue x → x ≡ true
propIsTrue true f = refl
prop_or_and_eqiv_true : (x y : Bool) -> IsTrue x -> IsTrue y -> (x || y) ≡ (x && y)
prop_or_and_eqiv_true true true _ _ = refl
prop_or_and_eqiv_false : (x y : Bool) -> IsFalse x -> IsFalse y -> (x || y) ≡ (x && y)
prop_or_and_eqiv_false false false _ _ = refl
postulate
isTrueAndIsFalse1 : {b : Bool} -> IsTrue b -> IsFalse (not b)
isTrueAndIsFalse2 : {b : Bool} -> IsTrue (not b) -> IsFalse b
isTrueAndIsFalse3 : {b : Bool} -> IsFalse (not b) -> IsTrue b
isTrueAndIsFalse4 : {b : Bool} -> IsFalse b -> IsTrue (not b)
gteq : ⦃ o : Ord a ⦄ → ∀ {x y : a} → (x ≡ y) → (_>=_ ⦃ o ⦄ x y) ≡ true
lt : ⦃ o : Ord a ⦄ → (x y : a) → (x ≡ y) → IsFalse (_>_ ⦃ o ⦄ x y)
lteq : ⦃ o : Ord a ⦄ → (x y : a) → (_<_ ⦃ o ⦄ x y) ≡ (_<=_ ⦃ o ⦄ x y)
gt : ⦃ o : Ord a ⦄ → ∀ {x y : a} → (x ≡ y) → not (_>_ ⦃ o ⦄ x y) ≡ true
eq0 : ⦃ o : Ord a ⦄ → ∀ {x y : a} → (x ≡ y) → IsTrue (x == y)
eq1 : ⦃ o : Ord a ⦄ → (x y : a) → ((_>=_ ⦃ o ⦄ x y) && (not (_>_ ⦃ o ⦄ x y))) ≡ (y == x)
eq2 : ⦃ o : Ord a ⦄ → (x y : a) → not (_<=_ ⦃ o ⦄ x y) ≡ (_<_ ⦃ o ⦄ y x)
eq3 : ⦃ o : Ord a ⦄ → (x y i j : a) → ⦃ IsTrue ((_<_ ⦃ o ⦄ i x) && (_<_ ⦃ o ⦄ j y)) ⦄ → ((min ⦃ o ⦄ x y) <= (max ⦃ o ⦄ i j)) ≡ ((_<=_ ⦃ o ⦄ x j) || (_<=_ ⦃ o ⦄ y i))
eq4 : ⦃ o : Ord a ⦄ → ∀ {x y : a} → (x ≡ y) → ((compare x y) == EQ) ≡ true
boundaries0 : ⦃ o : Ord a ⦄ → ⦃ dio : DiscreteOrdered a ⦄ → (x : a) → (b c : Boundary a) → ((x />/ b) && (x />/ c)) ≡ (x />/ (max b c))
boundaries1 : ⦃ o : Ord a ⦄ → ⦃ dio : DiscreteOrdered a ⦄ → (x : a) → (b c : Boundary a) → ((x />/ b) || (x />/ c)) ≡ (x />/ (min b c))
prop_and_assoc : (a b c : Bool) → ((a && b) && c) ≡ (a && (b && c))
prop_and_assoc true b c =
begin
((true && b) && c)
=⟨⟩
(b && c)
=⟨⟩
(true && (b && c))
end
prop_and_assoc false b c =
begin
((false && b) && c)
=⟨⟩
(false && c)
=⟨⟩
false
=⟨⟩
(false && (b && c))
end
prop_and_cancel : (a : Bool) {b : Bool} → (a && a && b) ≡ (a && b)
prop_and_cancel true = refl
prop_and_cancel false = refl
prop_or_assoc : (a b c : Bool) → ((a || b) || c) ≡ (a || (b || c))
prop_or_assoc true b c = refl
prop_or_assoc false b c = refl
prop_or_sym : (a b : Bool) → (a || b) ≡ (b || a)
prop_or_sym true true = refl
prop_or_sym true false = refl
prop_or_sym false true = refl
prop_or_sym false false = refl
prop_or_same_value : (a : Bool) → (a || a) ≡ a
prop_or_same_value true = refl
prop_or_same_value false = refl
prop_and_false : (a : Bool) → (a && false) ≡ false
prop_and_false true = refl
prop_and_false false = refl
prop_and_true : (a : Bool) → (a && true) ≡ a
prop_and_true true = refl
prop_and_true false = refl
prop_or_false : (a : Bool) → (false || a) ≡ a
prop_or_false true = refl
prop_or_false false = refl
prop_or_false2 : (a : Bool) → (a || false) ≡ a
prop_or_false2 true = refl
prop_or_false2 false = refl
prop_or_false3 : (a : Bool) → (a || true) ≡ true
prop_or_false3 true = refl
prop_or_false3 false = refl
prop_or_true : (a : Bool) → (true || a) ≡ true
prop_or_true true = refl
prop_or_true false = refl
prop_and_comm : (a b : Bool) → (a && b) ≡ (b && a)
prop_and_comm false b =
begin
(false && b)
=⟨⟩
false
=⟨ sym (prop_and_false b) ⟩
(b && false)
end
prop_and_comm true b =
begin
(true && b)
=⟨⟩
b
=⟨ sym (prop_and_true b) ⟩
(b && true)
end
prop_distr : (a b c : Bool) → ((a || b) && c) ≡ ((a && c) || (b && c))
prop_distr true b true = refl
prop_distr true true false = refl
prop_distr true false false = refl
prop_distr false true true = refl
prop_distr false true false = refl
prop_distr false false false = refl
prop_distr false false true = refl
prop_dnf : (a b c d : Bool) → ((a || b) && (c || d)) ≡ ((a && c) || (b && d) || (b && c) || (a && d))
prop_dnf true b true d = refl
prop_dnf true true false true = refl
prop_dnf true false false true = refl
prop_dnf true true false false = refl
prop_dnf true false false false = refl
prop_dnf false true true true = refl
prop_dnf false true false true = refl
prop_dnf false false true true = refl
prop_dnf false false true false = refl
prop_dnf false false false true = refl
prop_dnf false false false false = refl
prop_dnf false true true false = refl
prop_dnf false true false false = refl
prop_demorgan2 : (a b : Bool) → ((not a) && (not b)) ≡ (not (a || b))
prop_demorgan2 false b = refl
prop_demorgan2 true b = refl
prop_demorgan : (a b : Bool) → (not (a && b)) ≡ ((not a) || (not b))
prop_demorgan false b = refl
prop_demorgan true b = refl
not-not : (b : Bool) → b ≡ not (not b)
not-not false = refl
not-not true =
begin
not (not true)
=⟨⟩
not false
=⟨⟩
true
end
demorgan3 : (a b c d : Bool) → (not (a || b || c || d)) ≡ ((not a) && (not b) && (not c) && (not d))
demorgan3 true b c d = refl
demorgan3 false true c d = refl
demorgan3 false false true d = refl
demorgan3 false false false true = refl
demorgan3 false false false false = refl |
oeis/045/A045380.asm | neoneye/loda-programs | 11 | 96757 | <gh_stars>10-100
; A045380: Primes congruent to 2 mod 5.
; Submitted by <NAME>
; 2,7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,347,367,397,457,467,487,547,557,577,587,607,617,647,677,727,757,787,797,827,857,877,887,907,937,947,967,977,997,1087,1097,1117,1187,1217,1237,1277,1297,1307,1327,1367,1427,1447,1487,1567,1597,1607,1627,1637,1657,1667,1697,1747,1777,1787,1847,1867,1877,1907,1987,1997,2017,2027,2087,2137,2207,2237,2267,2287,2297,2347,2357,2377,2417,2437,2447,2467,2477,2557,2617,2647,2657,2677
mov $1,1
mov $2,$0
add $2,2
pow $2,2
lpb $2
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,5
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,4
|
Assembly Microbenchmarks/sltuTest.asm | idn0971/HLS_Benchmarking | 0 | 246344 | li t0, 3
li t1, -1
sltu s6, t0 ,t1 |
lib/ncurses-6.1/Ada95/samples/sample-manifest.ads | Haransis/gpio-map | 11 | 6771 | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- Sample.Manifest --
-- --
-- S P E C --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998,2003 Free Software Foundation, Inc. --
-- --
-- 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, distribute with modifications, 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 ABOVE 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. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: <NAME>, 1996
-- Version Control
-- $Revision: 1.12 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
package Sample.Manifest is
QUIT : constant User_Key_Code := User_Key_Code'First;
SELECT_ITEM : constant User_Key_Code := QUIT + 1;
FKEY_HELP : constant Label_Number := 1;
HELP_CODE : constant Special_Key_Code := Key_F1;
FKEY_EXPLAIN : constant Label_Number := 2;
EXPLAIN_CODE : constant Special_Key_Code := Key_F2;
FKEY_QUIT : constant Label_Number := 3;
QUIT_CODE : constant Special_Key_Code := Key_F3;
Menu_Marker : constant String := "=> ";
Default_Colors : constant Redefinable_Color_Pair := 1;
Menu_Fore_Color : constant Redefinable_Color_Pair := 2;
Menu_Back_Color : constant Redefinable_Color_Pair := 3;
Menu_Grey_Color : constant Redefinable_Color_Pair := 4;
Form_Fore_Color : constant Redefinable_Color_Pair := 5;
Form_Back_Color : constant Redefinable_Color_Pair := 6;
Notepad_Color : constant Redefinable_Color_Pair := 7;
Help_Color : constant Redefinable_Color_Pair := 8;
Header_Color : constant Redefinable_Color_Pair := 9;
end Sample.Manifest;
|
source/amf/dd/amf-internals-tables-di_metamodel.adb | svn2github/matreshka | 24 | 4496 | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, <NAME> <<EMAIL>> --
-- 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 Vadim Godunko, IE 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. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
package body AMF.Internals.Tables.DI_Metamodel is
--------------
-- MM_DI_DI --
--------------
function MM_DI_DI return AMF.Internals.CMOF_Element is
begin
return Base + 24;
end MM_DI_DI;
-------------------
-- MC_DI_Diagram --
-------------------
function MC_DI_Diagram return AMF.Internals.CMOF_Element is
begin
return Base + 1;
end MC_DI_Diagram;
---------------------------
-- MC_DI_Diagram_Element --
---------------------------
function MC_DI_Diagram_Element return AMF.Internals.CMOF_Element is
begin
return Base + 2;
end MC_DI_Diagram_Element;
----------------
-- MC_DI_Edge --
----------------
function MC_DI_Edge return AMF.Internals.CMOF_Element is
begin
return Base + 3;
end MC_DI_Edge;
-----------------
-- MC_DI_Shape --
-----------------
function MC_DI_Shape return AMF.Internals.CMOF_Element is
begin
return Base + 4;
end MC_DI_Shape;
-----------------
-- MC_DI_Style --
-----------------
function MC_DI_Style return AMF.Internals.CMOF_Element is
begin
return Base + 5;
end MC_DI_Style;
---------------------------------
-- MP_DI_Diagram_Documentation --
---------------------------------
function MP_DI_Diagram_Documentation return AMF.Internals.CMOF_Element is
begin
return Base + 7;
end MP_DI_Diagram_Documentation;
------------------------
-- MP_DI_Diagram_Name --
------------------------
function MP_DI_Diagram_Name return AMF.Internals.CMOF_Element is
begin
return Base + 8;
end MP_DI_Diagram_Name;
------------------------------
-- MP_DI_Diagram_Resolution --
------------------------------
function MP_DI_Diagram_Resolution return AMF.Internals.CMOF_Element is
begin
return Base + 9;
end MP_DI_Diagram_Resolution;
--------------------------------------------------------
-- MP_DI_Diagram_Element_Local_Style_A_Styled_Element --
--------------------------------------------------------
function MP_DI_Diagram_Element_Local_Style_A_Styled_Element return AMF.Internals.CMOF_Element is
begin
return Base + 10;
end MP_DI_Diagram_Element_Local_Style_A_Styled_Element;
-----------------------------------------------------------
-- MP_DI_Diagram_Element_Model_Element_A_Diagram_Element --
-----------------------------------------------------------
function MP_DI_Diagram_Element_Model_Element_A_Diagram_Element return AMF.Internals.CMOF_Element is
begin
return Base + 11;
end MP_DI_Diagram_Element_Model_Element_A_Diagram_Element;
------------------------------------------------------------------------
-- MP_DI_Diagram_Element_Owned_Element_Diagram_Element_Owning_Element --
------------------------------------------------------------------------
function MP_DI_Diagram_Element_Owned_Element_Diagram_Element_Owning_Element return AMF.Internals.CMOF_Element is
begin
return Base + 6;
end MP_DI_Diagram_Element_Owned_Element_Diagram_Element_Owning_Element;
------------------------------------------------------------------------
-- MP_DI_Diagram_Element_Owning_Element_Diagram_Element_Owned_Element --
------------------------------------------------------------------------
function MP_DI_Diagram_Element_Owning_Element_Diagram_Element_Owned_Element return AMF.Internals.CMOF_Element is
begin
return Base + 12;
end MP_DI_Diagram_Element_Owning_Element_Diagram_Element_Owned_Element;
---------------------------------------------------------
-- MP_DI_Diagram_Element_Shared_Style_A_Styled_Element --
---------------------------------------------------------
function MP_DI_Diagram_Element_Shared_Style_A_Styled_Element return AMF.Internals.CMOF_Element is
begin
return Base + 13;
end MP_DI_Diagram_Element_Shared_Style_A_Styled_Element;
-------------------------------------
-- MP_DI_Edge_Source_A_Source_Edge --
-------------------------------------
function MP_DI_Edge_Source_A_Source_Edge return AMF.Internals.CMOF_Element is
begin
return Base + 14;
end MP_DI_Edge_Source_A_Source_Edge;
-------------------------------------
-- MP_DI_Edge_Target_A_Target_Edge --
-------------------------------------
function MP_DI_Edge_Target_A_Target_Edge return AMF.Internals.CMOF_Element is
begin
return Base + 15;
end MP_DI_Edge_Target_A_Target_Edge;
-------------------------
-- MP_DI_Edge_Waypoint --
-------------------------
function MP_DI_Edge_Waypoint return AMF.Internals.CMOF_Element is
begin
return Base + 16;
end MP_DI_Edge_Waypoint;
------------------------
-- MP_DI_Shape_Bounds --
------------------------
function MP_DI_Shape_Bounds return AMF.Internals.CMOF_Element is
begin
return Base + 17;
end MP_DI_Shape_Bounds;
-------------------------------------
-- MP_DI_A_Target_Edge_Edge_Target --
-------------------------------------
function MP_DI_A_Target_Edge_Edge_Target return AMF.Internals.CMOF_Element is
begin
return Base + 45;
end MP_DI_A_Target_Edge_Edge_Target;
-------------------------------------
-- MP_DI_A_Source_Edge_Edge_Source --
-------------------------------------
function MP_DI_A_Source_Edge_Edge_Source return AMF.Internals.CMOF_Element is
begin
return Base + 47;
end MP_DI_A_Source_Edge_Edge_Source;
-----------------------------------------------------------
-- MP_DI_A_Diagram_Element_Diagram_Element_Model_Element --
-----------------------------------------------------------
function MP_DI_A_Diagram_Element_Diagram_Element_Model_Element return AMF.Internals.CMOF_Element is
begin
return Base + 49;
end MP_DI_A_Diagram_Element_Diagram_Element_Model_Element;
---------------------------------------------------------
-- MP_DI_A_Styled_Element_Diagram_Element_Shared_Style --
---------------------------------------------------------
function MP_DI_A_Styled_Element_Diagram_Element_Shared_Style return AMF.Internals.CMOF_Element is
begin
return Base + 50;
end MP_DI_A_Styled_Element_Diagram_Element_Shared_Style;
--------------------------------------------------------
-- MP_DI_A_Styled_Element_Diagram_Element_Local_Style --
--------------------------------------------------------
function MP_DI_A_Styled_Element_Diagram_Element_Local_Style return AMF.Internals.CMOF_Element is
begin
return Base + 51;
end MP_DI_A_Styled_Element_Diagram_Element_Local_Style;
-----------------------------------
-- MA_DI_Edge_Target_Target_Edge --
-----------------------------------
function MA_DI_Edge_Target_Target_Edge return AMF.Internals.CMOF_Element is
begin
return Base + 18;
end MA_DI_Edge_Target_Target_Edge;
-----------------------------------
-- MA_DI_Edge_Source_Source_Edge --
-----------------------------------
function MA_DI_Edge_Source_Source_Edge return AMF.Internals.CMOF_Element is
begin
return Base + 19;
end MA_DI_Edge_Source_Source_Edge;
--------------------------------------------------------
-- MA_DI_Diagram_Element_Owned_Element_Owning_Element --
--------------------------------------------------------
function MA_DI_Diagram_Element_Owned_Element_Owning_Element return AMF.Internals.CMOF_Element is
begin
return Base + 20;
end MA_DI_Diagram_Element_Owned_Element_Owning_Element;
---------------------------------------------------------
-- MA_DI_Diagram_Element_Model_Element_Diagram_Element --
---------------------------------------------------------
function MA_DI_Diagram_Element_Model_Element_Diagram_Element return AMF.Internals.CMOF_Element is
begin
return Base + 21;
end MA_DI_Diagram_Element_Model_Element_Diagram_Element;
-------------------------------------------------------
-- MA_DI_Diagram_Element_Shared_Style_Styled_Element --
-------------------------------------------------------
function MA_DI_Diagram_Element_Shared_Style_Styled_Element return AMF.Internals.CMOF_Element is
begin
return Base + 22;
end MA_DI_Diagram_Element_Shared_Style_Styled_Element;
------------------------------------------------------
-- MA_DI_Diagram_Element_Local_Style_Styled_Element --
------------------------------------------------------
function MA_DI_Diagram_Element_Local_Style_Styled_Element return AMF.Internals.CMOF_Element is
begin
return Base + 23;
end MA_DI_Diagram_Element_Local_Style_Styled_Element;
-----------
-- MB_DI --
-----------
function MB_DI return AMF.Internals.AMF_Element is
begin
return Base;
end MB_DI;
-----------
-- MB_DI --
-----------
function ML_DI return AMF.Internals.AMF_Element is
begin
return Base + 53;
end ML_DI;
end AMF.Internals.Tables.DI_Metamodel;
|
hash/sha1/sha1-x64.asm | jfehren/Crypto | 0 | 173235 | .file "sha1-x64.asm"
.macro LOAD off
movl \off+0x00(%rsi), %eax
movl \off+0x04(%rsi), %ebx
movl \off+0x08(%rsi), %ecx
movl \off+0x0C(%rsi), %edx
bswapl %eax
bswapl %ebx
bswapl %ecx
bswapl %edx
movl %eax, \off+0x00(%rsp)
movl %ebx, \off+0x04(%rsp)
movl %ecx, \off+0x08(%rsp)
movl %edx, \off+0x0C(%rsp)
.endm
.macro EXPAND i, j, k, l
movl \i(%rsp), %r9d
xorl \j(%rsp), %r9d
xorl \k(%rsp), %r9d
xorl \l(%rsp), %r9d
roll $1, %r9d
movl %r9d, \i(%rsp)
.endm
.macro F1 a, b, c, d, e, i, k
EXPAND \i, "((\i-56) % 64)", "((\i-32) % 64)", "((\i-12) % 64)"
movl \d, %r10d
xorl \e, %r10d
andl \b, %r10d
xorl \d, %r10d
roll $30, \b
addl %r9d, \e
addl \k, \e
movl \a, %r9d
roll $5, %r9d
addl %r9d, \e
addl %r10d, \e
.endm
.macro F1_NOEXP a, b, c, d, e, i, k
movl \d, %r10d
xorl \c, %r10d
movl \a, %r9d
andl \b, %r10d
addl \i(%rsp), \e
xorl \d, %r10d
addl %r10d, \e
roll $30, \b
roll $5, %r9d
addl %r9d, \e
addl \k, \e
.endm
.macro F2 a, b, c, d, e, i, k
EXPAND \i, "((\i-56) % 64)", "((\i-32) % 64)", "((\i-12) % 64)"
movl \d, %r10d
xorl \c, %r10d
xorl \b, %r10d
roll $30, \b
addl %r9d, \e
addl \k, \e
movl \a, %r9d
roll $5, %r9d
addl %r9d, \e
addl %r10d, \e
.endm
.macro F3 a, b, c, d, e, i, k
EXPAND \i, "((\i-56) % 64)", "((\i-32) % 64)", "((\i-12) % 64)"
movl \d, %r10d
andl \c, %r10d
addl %r9d, \e
addl \k, \e
movl \d, %r9d
xorl \c, %r9d
andl \b, %r9d
addl %r10d, \e
roll $30, \b
movl \a, %r10d
roll $5, %r10d
addl %r9d, \e
addl %r10d, \e
.endm
.macro ROUND_F1 a, b, c, d, e, i
F1 \a, \b, \c, \d, \e, "((\i*4) % 64)", %r11d
.endm
.macro ROUND_F1_NOEXP a, b, c, d, e, i
F1_NOEXP \a, \b, \c, \d, \e, "((\i*4) % 64)", %r11d
.endm
.macro ROUND_F2 a, b, c, d, e, i
F2 \a, \b, \c, \d, \e, "((\i*4) % 64)", %r12d
.endm
.macro ROUND_F3 a, b, c, d, e, i
F3 \a, \b, \c, \d, \e, "((\i*4) % 64)", %r13d
.endm
.macro ROUND_F4 a, b, c, d, e, i
F2 \a, \b, \c, \d, \e, "((\i*4) % 64)", %r14d
.endm
.text
.globl _crypto_sha1_compress_x64
.def _crypto_sha1_compress_x64; .scl 2; .type 32; .endef
/* void _sha1_compress_x64(uint32_t *state [%rdi], */
/* const uint8_t *data [%rsi], */
/* size_t length [%rdx]) */
.align 16
_crypto_sha1_compress_x64:
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rbp
subq $64, %rsp /* %rsp = W */
shrq $6, %rdx /* length /= 64 */
jz .Lend
movq %rdx, %r8
movl $0x5A827999, %r11d /* load first K value */
movl $0x6ED9EBA1, %r12d /* load second K value */
movl $0x8F1BBCDC, %r13d /* load third K value */
movl $0xCA62C1D6, %r14d /* load fourth K value */
.align 16
.Ltop: /* start of loop */
/* Read input */
LOAD 0x00
LOAD 0x10
LOAD 0x20
LOAD 0x30
addl $64, %rsi /* offset data pointer */
/* load the state vector */
movl 0x00(%rdi), %eax
movl 0x00(%rdi), %ebx
movl 0x00(%rdi), %ecx
movl 0x00(%rdi), %edx
movl 0x00(%rdi), %ebp
/* 4 sub-rounds of 20 iterations each */
/* the first 16 iterations of the first sub-round have no data expansion */
ROUND_F1_NOEXP %eax, %ebx, %ecx, %edx, %ebp, 0
ROUND_F1_NOEXP %ebp, %eax, %ebx, %ecx, %edx, 1
ROUND_F1_NOEXP %edx, %ebp, %eax, %ebx, %ecx, 2
ROUND_F1_NOEXP %ecx, %edx, %ebp, %eax, %ebx, 3
ROUND_F1_NOEXP %ebx, %ecx, %edx, %ebp, %eax, 4
ROUND_F1_NOEXP %eax, %ebx, %ecx, %edx, %ebp, 5
ROUND_F1_NOEXP %ebp, %eax, %ebx, %ecx, %edx, 6
ROUND_F1_NOEXP %edx, %ebp, %eax, %ebx, %ecx, 7
ROUND_F1_NOEXP %ecx, %edx, %ebp, %eax, %ebx, 8
ROUND_F1_NOEXP %ebx, %ecx, %edx, %ebp, %eax, 9
ROUND_F1_NOEXP %eax, %ebx, %ecx, %edx, %ebp, 10
ROUND_F1_NOEXP %ebp, %eax, %ebx, %ecx, %edx, 11
ROUND_F1_NOEXP %edx, %ebp, %eax, %ebx, %ecx, 12
ROUND_F1_NOEXP %ecx, %edx, %ebp, %eax, %ebx, 13
ROUND_F1_NOEXP %ebx, %ecx, %edx, %ebp, %eax, 14
ROUND_F1_NOEXP %eax, %ebx, %ecx, %edx, %ebp, 15
ROUND_F1 %ebp, %eax, %ebx, %ecx, %edx, 16
ROUND_F1 %edx, %ebp, %eax, %ebx, %ecx, 17
ROUND_F1 %ecx, %edx, %ebp, %eax, %ebx, 18
ROUND_F1 %ebx, %ecx, %edx, %ebp, %eax, 19
ROUND_F2 %eax, %ebx, %ecx, %edx, %ebp, 20
ROUND_F2 %ebp, %eax, %ebx, %ecx, %edx, 21
ROUND_F2 %edx, %ebp, %eax, %ebx, %ecx, 22
ROUND_F2 %ecx, %edx, %ebp, %eax, %ebx, 23
ROUND_F2 %ebx, %ecx, %edx, %ebp, %eax, 24
ROUND_F2 %eax, %ebx, %ecx, %edx, %ebp, 25
ROUND_F2 %ebp, %eax, %ebx, %ecx, %edx, 26
ROUND_F2 %edx, %ebp, %eax, %ebx, %ecx, 27
ROUND_F2 %ecx, %edx, %ebp, %eax, %ebx, 28
ROUND_F2 %ebx, %ecx, %edx, %ebp, %eax, 29
ROUND_F2 %eax, %ebx, %ecx, %edx, %ebp, 30
ROUND_F2 %ebp, %eax, %ebx, %ecx, %edx, 31
ROUND_F2 %edx, %ebp, %eax, %ebx, %ecx, 32
ROUND_F2 %ecx, %edx, %ebp, %eax, %ebx, 33
ROUND_F2 %ebx, %ecx, %edx, %ebp, %eax, 34
ROUND_F2 %eax, %ebx, %ecx, %edx, %ebp, 35
ROUND_F2 %ebp, %eax, %ebx, %ecx, %edx, 36
ROUND_F2 %edx, %ebp, %eax, %ebx, %ecx, 37
ROUND_F2 %ecx, %edx, %ebp, %eax, %ebx, 38
ROUND_F2 %ebx, %ecx, %edx, %ebp, %eax, 39
ROUND_F3 %eax, %ebx, %ecx, %edx, %ebp, 40
ROUND_F3 %ebp, %eax, %ebx, %ecx, %edx, 41
ROUND_F3 %edx, %ebp, %eax, %ebx, %ecx, 42
ROUND_F3 %ecx, %edx, %ebp, %eax, %ebx, 43
ROUND_F3 %ebx, %ecx, %edx, %ebp, %eax, 44
ROUND_F3 %eax, %ebx, %ecx, %edx, %ebp, 45
ROUND_F3 %ebp, %eax, %ebx, %ecx, %edx, 46
ROUND_F3 %edx, %ebp, %eax, %ebx, %ecx, 47
ROUND_F3 %ecx, %edx, %ebp, %eax, %ebx, 48
ROUND_F3 %ebx, %ecx, %edx, %ebp, %eax, 49
ROUND_F3 %eax, %ebx, %ecx, %edx, %ebp, 50
ROUND_F3 %ebp, %eax, %ebx, %ecx, %edx, 51
ROUND_F3 %edx, %ebp, %eax, %ebx, %ecx, 52
ROUND_F3 %ecx, %edx, %ebp, %eax, %ebx, 53
ROUND_F3 %ebx, %ecx, %edx, %ebp, %eax, 54
ROUND_F3 %eax, %ebx, %ecx, %edx, %ebp, 55
ROUND_F3 %ebp, %eax, %ebx, %ecx, %edx, 56
ROUND_F3 %edx, %ebp, %eax, %ebx, %ecx, 57
ROUND_F3 %ecx, %edx, %ebp, %eax, %ebx, 58
ROUND_F3 %ebx, %ecx, %edx, %ebp, %eax, 59
ROUND_F4 %eax, %ebx, %ecx, %edx, %ebp, 60
ROUND_F4 %ebp, %eax, %ebx, %ecx, %edx, 61
ROUND_F4 %edx, %ebp, %eax, %ebx, %ecx, 62
ROUND_F4 %ecx, %edx, %ebp, %eax, %ebx, 63
ROUND_F4 %ebx, %ecx, %edx, %ebp, %eax, 64
ROUND_F4 %eax, %ebx, %ecx, %edx, %ebp, 65
ROUND_F4 %ebp, %eax, %ebx, %ecx, %edx, 66
ROUND_F4 %edx, %ebp, %eax, %ebx, %ecx, 67
ROUND_F4 %ecx, %edx, %ebp, %eax, %ebx, 68
ROUND_F4 %ebx, %ecx, %edx, %ebp, %eax, 69
ROUND_F4 %eax, %ebx, %ecx, %edx, %ebp, 70
ROUND_F4 %ebp, %eax, %ebx, %ecx, %edx, 71
ROUND_F4 %edx, %ebp, %eax, %ebx, %ecx, 72
ROUND_F4 %ecx, %edx, %ebp, %eax, %ebx, 73
ROUND_F4 %ebx, %ecx, %edx, %ebp, %eax, 74
ROUND_F4 %eax, %ebx, %ecx, %edx, %ebp, 75
ROUND_F4 %ebp, %eax, %ebx, %ecx, %edx, 76
ROUND_F4 %edx, %ebp, %eax, %ebx, %ecx, 77
ROUND_F4 %ecx, %edx, %ebp, %eax, %ebx, 78
ROUND_F4 %ebx, %ecx, %edx, %ebp, %eax, 79
/* Update the state vector */
addl %eax, 0x00(%rdi)
addl %ebx, 0x04(%rdi)
addl %ecx, 0x08(%rdi)
addl %edx, 0x0C(%rdi)
addl %ebp, 0x10(%rdi)
decq %r8 /* --length */
jnz .Ltop
.Lend:
/* Restore clobbered registers and return */
addq $64, %rsp
popq %rbp
popq %rbx
popq %r12
popq %r13
popq %r14
ret
|
src/gl/interface/gl-immediate.ads | Roldak/OpenGLAda | 79 | 16341 | <filename>src/gl/interface/gl-immediate.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Finalization;
with GL.Types.Colors;
-- This package provides functions to directly insert vertices, colors, normals
-- etc. into the pipeline. Note that these functions have been deprecated with
-- OpenGL 3, you should use VBOs instead.
package GL.Immediate is
pragma Preelaborate;
use GL.Types;
use GL.Types.Doubles;
type Input_Token (<>) is new Ada.Finalization.Limited_Controlled with private;
overriding procedure Finalize (Token : in out Input_Token);
function Start (Mode : Connection_Mode) return Input_Token;
procedure Add_Vertex (Token : Input_Token; Vertex : Vector2);
procedure Add_Vertex (Token : Input_Token; Vertex : Vector3);
procedure Add_Vertex (Token : Input_Token; Vertex : Vector4);
procedure Set_Color (Value : Colors.Color);
function Current_Color return Colors.Color;
procedure Set_Secondary_Color (Value : Colors.Color);
function Current_Secondary_Color return Colors.Color;
procedure Set_Fog_Distance (Value : Double);
function Current_Fog_Distance return Double;
procedure Set_Normal (Value : Vector3);
function Current_Normal return Vector3;
procedure Set_Texture_Coordinates (Value : Vector2);
procedure Set_Texture_Coordinates (Value : Vector3);
procedure Set_Texture_Coordinates (Value : Vector4);
function Current_Texture_Coordinates return Vector4;
private
type Input_Token (Mode : Connection_Mode) is
new Ada.Finalization.Limited_Controlled with record
Finalized : Boolean := True;
end record;
end GL.Immediate;
|
programs/oeis/281/A281234.asm | neoneye/loda | 22 | 168802 | <gh_stars>10-100
; A281234: Solutions y to the negative Pell equation y^2 = 72*x^2 - 288 with x,y >= 0.
; 0,48,288,1680,9792,57072,332640,1938768,11299968,65861040,383866272,2237336592,13040153280,76003583088,442981345248,2581884488400,15048325585152,87708069022512,511200088549920,2979492462277008,17365754685112128,101215035648395760,589924459205262432,3438331719583178832,20040065858293810560,116802063430179684528,680772314722784296608,3967831824906526095120,23126218634716372274112,134789479983391707549552,785610661265633873023200,4578874487610411530589648,26687636264396835310514688,155546943098770600332498480,906594022328226766684476192,5284017190870589999774358672,30797509122895313231961675840,179501037546501289391995696368,1046208716156112423120012502368,6097751259390173249328079317840,35540298840184927072848463404672,207144041781719389187762701110192,1207323951850131408053727743256480,7036799669319069059134603758428688,41013474064064282946753894807315648,239044044715066628621388765085465200
mov $2,1
lpb $0
sub $0,1
add $1,$2
add $2,$1
add $2,$1
add $1,$2
lpe
mul $1,12
mov $0,$1
|
Run.applescript | dragonee/iterm2-startenv | 1 | 709 | <filename>Run.applescript<gh_stars>1-10
ObjC.import('stdlib')
// get params
var _args = $.NSProcessInfo.processInfo.arguments
var argv = []
// drop 'osascript -l Javascript this.applescript'
for (var i = 4; i < _args.count; i++) {
argv.push(ObjC.unwrap(_args.objectAtIndex(i)))
}
if(argv.length < 1 && argv.length > 2) {
console.error("usage: script FILE [-w]")
$.exit(1)
}
useTabs = true
if(argv.length > 1 && argv[1] == '-w') {
useTabs = false
}
// load file
app = Application.currentApplication()
app.includeStandardAdditions = true
var load = function (path) {
var handle = app.openForAccess(path)
var contents = app.read(handle)
app.closeAccess(path)
var title = function(title) {
return 'echo -ne "\\033]0;' + title + '\\007"'
}
var PROFILE = null
var TERMS = []
var ALLTERMS = []
var PATH = null
var iTerm = true
eval(contents)
if(PATH === null) {
PATH = path.substring(0, path.lastIndexOf('/'))
}
return {
PROFILE: PROFILE,
TERMS: TERMS,
ALLTERMS: ALLTERMS,
PATH: PATH,
iTerm: iTerm,
}
}
config = load(argv[0])
function runIterm(config) {
iTerm = Application('iTerm')
iTerm.activate()
if(useTabs) {
win = iTerm.currentWindow
} else if(config.PROFILE == null) {
win = iTerm.createWindowWithDefaultProfile()
} else {
win = iTerm.createWindowWithProfile(config.PROFILE)
}
firstTab = null
for(i = 0; i < config.TERMS.length; i++) {
if(i == 0 && !useTabs) {
tab = win.tabs[0]
} else if(config.PROFILE == null) {
tab = win.createTabWithDefaultProfile()
} else {
tab = win.createTab({withProfile: config.PROFILE})
}
if(i == 0) {
firstTab = tab
}
termlines = config.TERMS[i]
if(termlines === null) {
termlines = []
}else if(!Array.isArray(config.TERMS[i])) {
termlines = [termlines]
}
termlines = config.ALLTERMS.concat(termlines)
if(config.PROFILE == null) {
termlines.unshift('cd "' + config.PATH + '"')
}
session = tab.currentSession
for(j = 0; j < termlines.length; j++) {
if(termlines[j] == null) {
continue;
}
session.write({text: termlines[j]})
}
}
firstTab.select()
iTerm.activate()
}
if(config.iTerm) {
runIterm(config)
}
// vim: set syntax=javascript:
|
programs/oeis/048/A048493.asm | karttu/loda | 1 | 14204 | ; A048493: a(n) = (n+1)*2^n - n.
; 1,3,10,29,76,187,442,1017,2296,5111,11254,24565,53236,114675,245746,524273,1114096,2359279,4980718,10485741,22020076,46137323,96468970,201326569,419430376,872415207,1811939302,3758096357,7784628196,16106127331,33285996514,68719476705,141733920736,292057776095,601295421406,1236950581213,2542620639196,5222680231899,10720238370778,21990232555481,45079976738776,92358976733143,189115999977430,387028092977109,791648371998676,1618481116086227,3307330976350162,6755399441055697
sub $0,1
mov $1,2
mov $2,2
add $2,$0
pow $1,$2
sub $1,2
mul $1,$2
div $1,2
add $1,1
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2332.asm | ljhsiun2/medusa | 9 | 27592 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2332.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x178be, %r12
nop
nop
cmp %rdx, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, (%r12)
dec %r11
lea addresses_UC_ht+0x16b26, %rbp
nop
and $51550, %rax
movb $0x61, (%rbp)
nop
nop
nop
nop
sub $62627, %rdx
lea addresses_normal_ht+0xe266, %rdx
nop
nop
cmp %r9, %r9
and $0xffffffffffffffc0, %rdx
movntdqa (%rdx), %xmm4
vpextrq $0, %xmm4, %rax
nop
cmp $49530, %rax
lea addresses_normal_ht+0x8fa6, %r12
nop
nop
nop
nop
nop
add $44913, %r9
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
vmovups %ymm3, (%r12)
nop
nop
nop
add %rbp, %rbp
lea addresses_D_ht+0x18d26, %r11
nop
nop
nop
and $37692, %rbp
and $0xffffffffffffffc0, %r11
vmovaps (%r11), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rcx
nop
nop
dec %rdx
lea addresses_normal_ht+0x16926, %rdx
nop
sub $48553, %rax
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
vmovups %ymm4, (%rdx)
nop
nop
nop
dec %rdx
lea addresses_WC_ht+0x9640, %rsi
lea addresses_WC_ht+0x12926, %rdi
nop
nop
nop
nop
dec %rdx
mov $13, %rcx
rep movsl
nop
nop
nop
add %rdi, %rdi
lea addresses_D_ht+0x14126, %r11
nop
nop
cmp %rbp, %rbp
movw $0x6162, (%r11)
nop
xor $48755, %rcx
lea addresses_UC_ht+0xe646, %rsi
lea addresses_WC_ht+0x134d6, %rdi
dec %rdx
mov $20, %rcx
rep movsq
nop
xor %rcx, %rcx
lea addresses_A_ht+0x4d26, %rdi
nop
nop
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %r9
movq %r9, (%rdi)
nop
nop
nop
xor %rdx, %rdx
lea addresses_D_ht+0x1b0b6, %rsi
and $30953, %r11
mov (%rsi), %r9d
nop
cmp %rbp, %rbp
lea addresses_normal_ht+0x6d26, %r9
nop
nop
add $52013, %r11
movb (%r9), %cl
nop
nop
nop
xor $32400, %rsi
lea addresses_D_ht+0xe326, %rdx
nop
nop
cmp %r12, %r12
movb (%rdx), %r9b
nop
nop
nop
and $41723, %rcx
lea addresses_UC_ht+0x19f26, %rdi
sub $4005, %rbp
mov (%rdi), %ax
nop
nop
dec %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rsi
// Store
lea addresses_normal+0x1126, %rbx
nop
nop
add %rcx, %rcx
mov $0x5152535455565758, %r13
movq %r13, %xmm3
vmovups %ymm3, (%rbx)
nop
nop
cmp %r15, %r15
// Store
mov $0x3f6cbc00000009cc, %rbp
nop
nop
nop
nop
add $37458, %rbx
mov $0x5152535455565758, %r15
movq %r15, (%rbp)
nop
nop
nop
add %r13, %r13
// Faulty Load
lea addresses_D+0x17d26, %rcx
clflush (%rcx)
nop
inc %rsi
movb (%rcx), %bl
lea oracles, %r15
and $0xff, %rbx
shlq $12, %rbx
mov (%r15,%rbx,1), %rbx
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 6, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 10, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': True}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
oeis/000/A000078.asm | neoneye/loda-programs | 11 | 28667 | <reponame>neoneye/loda-programs
; A000078: Tetranacci numbers: a(n) = a(n-1) + a(n-2) + a(n-3) + a(n-4) for n >= 4 with a(0) = a(1) = a(2) = 0 and a(3) = 1.
; Submitted by <NAME>
; 0,0,0,1,1,2,4,8,15,29,56,108,208,401,773,1490,2872,5536,10671,20569,39648,76424,147312,283953,547337,1055026,2033628,3919944,7555935,14564533,28074040,54114452,104308960,201061985,387559437,747044834,1439975216,2775641472,5350220959,10312882481,19878720128,38317465040,73859288608,142368356257,274423830033,528968939938,1019620414836,1965381541064,3788394725871,7302365621709,14075762303480,27131904192124,52298426843184,100808458960497,194314552299285,374553342295090,721974780398056
mov $2,1
lpb $0
sub $0,1
sub $3,$4
mov $4,$2
mov $2,$3
add $2,$1
add $5,$1
mov $1,$3
add $5,$4
mov $3,$5
lpe
mov $0,$1
|
src/17-promotion/Vector.agda | aavogt/wiwinwlh | 2,479 | 10303 | module Vector where
infixr 10 _∷_
data ℕ : Set where
zero : ℕ
suc : ℕ → ℕ
{-# BUILTIN NATURAL ℕ #-}
{-# BUILTIN ZERO zero #-}
{-# BUILTIN SUC suc #-}
infixl 6 _+_
_+_ : ℕ → ℕ → ℕ
0 + n = n
suc m + n = suc (m + n)
data Vec (A : Set) : ℕ → Set where
[] : Vec A 0
_∷_ : ∀ {n} → A → Vec A n → Vec A (suc n)
_++_ : ∀ {A n m} → Vec A n → Vec A m → Vec A (n + m)
[] ++ ys = ys
(x ∷ xs) ++ ys = x ∷ (xs ++ ys)
infix 4 _≡_
data _≡_ {A : Set} (x : A) : A → Set where
refl : x ≡ x
subst : {A : Set} → (P : A → Set) → ∀{x y} → x ≡ y → P x → P y
subst P refl p = p
cong : {A B : Set} (f : A → B) → {x y : A} → x ≡ y → f x ≡ f y
cong f refl = refl
vec : ∀ {A} (k : ℕ) → Set
vec {A} k = Vec A k
plus_zero : {n : ℕ} → n + 0 ≡ n
plus_zero {zero} = refl
plus_zero {suc n} = cong suc plus_zero
plus_suc : {n : ℕ} → n + (suc 0) ≡ suc n
plus_suc {zero} = refl
plus_suc {suc n} = cong suc (plus_suc {n})
reverse : ∀ {A n} → Vec A n → Vec A n
reverse [] = []
reverse {A} {suc n} (x ∷ xs) = subst vec (plus_suc {n}) (reverse xs ++ (x ∷ []))
|
src/002/my_pack.adb | xeenta/learning-ada | 0 | 9644 | <reponame>xeenta/learning-ada
package body My_Pack is
Internal_Value : Integer;
Count : Integer := 0;
function Get return Integer is (Internal_Value);
function Get_Count return Integer is (Count);
procedure Set (V : in Integer) is
begin
Internal_Value := V;
end Set;
begin
Internal_Value := 25;
Count := Count + 1;
end My_Pack;
|
Application/AssemblyCode/working_and_tmp_asm_files/ghost1DrawGlyph.asm | t0ddpar0dy/Handmade_Pacman | 0 | 91951 |
Ghost1DRAW_GLYPH:
//MAKE ARI LOCATION ADDRESS IN r2
//ARI GHOST IS IN 12800
//LUI 200 AND ORI 0
LUI 200 r2
ORI 0 r2
//MAKE GHOST STATE ADDRESS IN r3
LUI 51 r3
ORI 145 r3
//load location of pacman INTO r0
LOAD r0 r2
//CHECK IF STATE UP0
drawUP0:
load r5 r3
CMPI 16 r5
BNE drawUP1 //else check if in state UP1
//check the condition of the mouth
//if open
CMPI 1 R4
BNE CLOSED_STATE_UP0
LUI 1 r1 //load PACMAN_OPEN_UP_0
ORI 8 r1
STOR r1 r0
ADDI -53 r0 //get location below pacman
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
CLOSED_STATE_UP0:
LUI 0 r1 //load PACMAN_CLOSED_UP_0
ORI 212 r1
STOR r1 r0
ADDI -53 r0 //get location below pacman
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
//CHECK IF STATE UP1
drawUP1:
LOAD R5 R3
CMPI 17 r5
BNE drawUP2 //else check if in state UP2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_UP1
//GET PACMAN_OPEN_6...GLYPH NUM 270
MOVI 255 r1
ADDI 15 R1 //R1 SHOULD BE 270 NOW
STOR R1 R0 //LOAD GLYPH INTO POSITION
ADDI 53 R0 // GET POSITION ABOVE PACMAN
//NOW NEED TO LOAD PACMAN_OPEN_UP5
//IT IS GLPYH NUM 269
MOVI 255 R1
ADDI 14 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_UP1:
//LOAD PACMAN_CLOSED_UP6
//IT'S GLYPH 218
MOVI 218 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI 53 R0 // GET POSITION ABOVE PACMAN //fixed this, was negative, needed positive
//NOW NEED TO LOAD PMANCLOSED_UP_5
//IT'S GLYPH 217
MOVI 217 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE UP2
drawUP2:
LOAD R5 R3
CMPI 18 r5
BNE drawUP3 //else check if in state UP3
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_UP2
//GET PMANOPEN_UP_4
//THIS IS GLYPH 268
MOVI 255 r1
ADDI 13 R1 //R1 SHOULD BE 268 NOW
STOR R1 R0 //LOAD INTO POSITION
ADDI 53 R0 // GET POSITION ABOVE PACMAN
//NOW NEED TO LOAD PMANOPEN_Up_3
//ITS IN LOCATION 267
MOVI 255 R1
ADDI 12 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_UP2:
//LOAD PMANCLOSED_Up_4 //are these right?
//IT'S GLYPH 216
MOVI 216 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI 53 R0 // GET POSITION ABOVE PACMAN
//NOW NEED TO LOAD PMANCLOSED_Up_3
//IT'S GLYPH 215
MOVI 215 R1 ///wait what?
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE UP3
drawUP3:
LOAD R5 R3
CMPI 19 r5
BNE drawDOWN0 //else check if in state drawDOWN0
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_UP3
//GET PMANOPEN_Up_1
//THIS IS GLYPH 265
MOVI 255 r1
ADDI 10 R1 //R1 SHOULD BE 265 NOW
STOR R1 R0 //LOAD POSITION
ADDI -53 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO PMANOPEN_Up_2
//ITS IN LOCATION 266
MOVI 255 R1
ADDI 11 R1 //R1 SHOULD BE 266
STOR r1 r0 //STORE POSITION BELOW PACMAN
RETX
CLOSED_STATE_UP3:
//LOAD PMANCLOSED_Up_1
//IT'S GLYPH 213
MOVI 213 R1 //wait what?
STOR R1 R0 //LOAD INTO POSITION
ADDI -53 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO LOAD PMANCLOSED_Up_2
//IT'S GLYPH 266
MOVI 255 r1
ADDI 11 r1 //R1 should be 266
STOR r1 r0 //STORE POSITION BELOW PACMAN
RETX
//COPY AND PASTING FROM STATE 1
//CHECK IF STATE DOWN0
drawDOWN0:
LOAD R5 R3
CMPI 32 r5
BNE drawDOWN1 //else check if in state UP1
//check the condition of the mouth
//if open
CMPI 1 R4
BNE CLOSED_STATE_DOWN0
//load PMANOPEN_DOWN_0
//GLYPH 219
MOVI 219 R1
STOR r1 r0
ADDI 53 r0 //get location ABOVE pacman
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
CLOSED_STATE_DOWN0:
LUI 0 r1 //load PMANCLOSED_DOWN_0
// GLYPH 179
MOVI 179 R1
STOR r1 r0
ADDI 53 r0 //get location ABOVE pacman
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
//CHECK IF STATE DOWN1
drawDOWN1:
LOAD R5 R3
CMPI 33 r5
BNE drawDOWN2 //else check if in state DOWN2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_DOWN1
//GET PMANOPEN_Down_1...in GLYPH 220
MOVI 220 r1
STOR R1 R0 //LOAD POSITION
ADDI -53 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO LOAD PMANOPEN_Down_2
//ITS IN LOCATION 221
MOVI 221 R1
STOR r1 r0 //STORE POSITION BELOW PACMAN
RETX
CLOSED_STATE_DOWN1:
//LOAD PMANCLOSED_Down_1
//IT'S GLYPH 180
MOVI 180 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI -53 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO LOAD PMANCLOSED_Down_2
//IT'S GLYPH 181
MOVI 181 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE DOWN2
drawDOWN2:
LOAD R5 R3
CMPI 34 r5
BNE drawDOWN3 //else check if in state DOWN2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_DOWN2
//GET PMANOPEN_DOWN_3
//THIS IS GLYPH 222
MOVI 222 r1
STOR R1 R0 //LOAD POSITION
ADDI -53 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO LOAD PMANOPEN_Down_4
//ITS IN LOCATION 223
MOVI 223 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_DOWN2:
//LOAD PMANCLOSED_DOWN_3
//IT'S GLYPH 182
MOVI 182 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI -53 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO LOAD PMANCLOSE_Down_4
//IT'S GLYPH 183
MOVI 183 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE DOWN3
drawDOWN3:
LOAD R5 R3
CMPI 35 r5
BNE drawLEFT0 //else check if in state drawDOWN0
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_DOWN3
//GET PMANOPEN_Down_6
//THIS IS GLYPH 225
MOVI 225 r1
STOR R1 R0 //LOAD POSITION
ADDI 53 R0 // GET POSITION ABOVE PACMAN
//NOW NEED TO PMANOPEN_Down_5
//ITS IN LOCATION 224
MOVI 224 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_DOWN3:
//LOAD PMANCLOSED_Down_6
//IT'S GLYPH 185
MOVI 185 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI 53 R0 // GET POSITION ABOVE PACMAN
//NOW NEED TO LOAD PMANOPEN_Down_5 (SAME AS PMANCLOSED)
//IT'S GLYPH 224
MOVI 224 R1 //is this right? i guess its same as pmanclosed?
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
// COPY AND PASTED FROM DOWN STATES
//CHECK IF STATE LEFT0
drawLEFT0:
LOAD R5 R3
CMPI 48 r5
BNE drawLEFT1 //else check if in state LEFT1
//check the condition of the mouth
//if open
CMPI 1 R4
BNE CLOSED_STATE_LEFT0
//load PMANOPEN_LEFT_0
//GLYPH 226
MOVI 226 R1
STOR r1 r0
ADDI -1 r0 //get location TO THE RIGHT
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
CLOSED_STATE_LEFT0:
LUI 0 r1 //load PMANCLOSED_LEFT_0
// GLYPH 186
MOVI 186 R1
STOR r1 r0
ADDI -1 r0 //get location TO THE RIGHT
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
//CHECK IF STATE LEFT1
drawLEFT1:
LOAD R5 R3
CMPI 49 r5
BNE drawLEFT2 //else check if in state LEFT2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_LEFT1
//GET PMANOPEN_Left_6...in GLYPH 232
MOVI 232 r1
STOR R1 R0 //LOAD POSITION
ADDI 1 R0 // GET POSITION TO THE LEFT OF PACMAN
//NOW NEED TO PMANOPEN_Left_5
//ITS IN LOCATION 231
MOVI 231 R1
STOR r1 r0 //STORE POSITION BELOW PACMAN
RETX
CLOSED_STATE_LEFT1:
//LOAD PMANCLOSED_Left_6
//IT'S GLYPH 192
MOVI 192 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI 1 R0 // GET POSITION TO THE LEFT OF PACMAN
//NOW NEED TO LOAD PMANCLOSED_Left_5
//IT'S GLYPH 191
MOVI 191 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE LEFT2
drawLEFT2:
LOAD R5 R3
CMPI 50 r5
BNE drawLEFT3 //else check if in state LEFT2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_LEFT2
//GET PMANOPEN_Left_4
//THIS IS GLYPH 230
MOVI 230 r1
STOR R1 R0 //LOAD POSITION
ADDI 1 R0 // GET POSITION TO THE LEFT OF PACMAN
//NOW NEED TO LOAD PMANOPEN_Left_3
//ITS IN LOCATION 229
MOVI 229 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_LEFT2:
//LOAD PMANCLOSED_Left_4
//IT'S GLYPH 190
MOVI 190 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI 1 R0 // GET POSITION BELOW PACMAN
//NOW NEED TO LOAD PMANCLOSED_Left_3
//IT'S GLYPH 189
MOVI 189 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE LEFT3
drawLEFT3:
LOAD R5 R3
CMPI 51 r5
BNE drawRIGHT0 //else check if in state drawRIGHT0
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_LEFT3
//GET PMANOPEN_Left_1
//THIS IS GLYPH 227
MOVI 227 r1
STOR R1 R0 //LOAD POSITION
ADDI -1 R0 // GET POSITION TO THE RIGHT OF PACMAN
//NOW NEED TO PMANOPEN_Left_2
//ITS IN LOCATION 228
MOVI 228 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_LEFT3:
//LOAD PMANCLOSED_Left_1
//IT'S GLYPH 187
MOVI 187 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI -1 R0 // GET POSITION TO THE RIGHT PACMAN
//NOW NEED TO LOAD PMANCLOSED_Left_2 (SAME AS PMANCLOSED)
//IT'S GLYPH 188
MOVI 188 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
// COPY AND PASTE FROM LEFT
//CHECK IF STATE RIGHT0
drawRIGHT0:
LOAD R5 R3
CMPI 64 r5
BNE drawRIGHT1 //else check if in state RIGHT1
//check the condition of the mouth
//if open
CMPI 1 R4
BNE CLOSED_STATE_RIGHT0
//load PMANOPEN_RIGHT_0
//GLYPH 245
MOVI 245 R1
STOR r1 r0
ADDI 1 r0 //get location TO THE LEFT
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
CLOSED_STATE_RIGHT0:
LUI 0 r1 //load PMANCLOSED_RIGHT_0
// GLYPH 205
MOVI 205 R1
STOR r1 r0
ADDI 1 r0 //get location TO THE LEFT
MOVI 0 r1 //LOAD BLANK
STOR r1 r0
RETX
//CHECK IF STATE RIGHT1
drawRIGHT1:
LOAD R5 R3
CMPI 65 r5
BNE drawRIGHT2 //else check if in state RIGHT2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_RIGHT1
//GET PMANOPEN_Right_1...in GLYPH 246
MOVI 246 r1
STOR R1 R0 //LOAD POSITION
ADDI -1 R0 // GET POSITION TO THE RIGHT OF PACMAN
//NOW NEED TO PMANOPEN_Right_2
//ITS IN LOCATION 247
MOVI 247 R1
STOR r1 r0 //STORE POSITION BELOW PACMAN
RETX
CLOSED_STATE_RIGHT1:
//LOAD PMANCLOSED_Right_1
//IT'S GLYPH 206
MOVI 206 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI -1 R0 // GET POSITION TO THE RIGHT OF PACMAN
//NOW NEED TO LOAD PMANCLOSED_Right_2
//IT'S GLYPH 207
MOVI 207 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE RIGHT2
drawRIGHT2:
LOAD R5 R3
CMPI 66 r5
BNE drawRIGHT3 //else check if in state RIGHT2
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_RIGHT2
//GET PMANOPEN_Right_3
//THIS IS GLYPH 248
MOVI 248 r1
STOR R1 R0 //LOAD POSITION
ADDI -1 R0 // GET POSITION TO THE RIGHT OF PACMAN
//NOW NEED TO LOAD PMANOPEN_Right_4
//ITS IN LOCATION 249
MOVI 249 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_RIGHT2:
//LOAD PMANCLOSED_Right_3
//IT'S GLYPH 208
MOVI 208 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI -1 R0 // GET POSITION TO THE RIGHT PACMAN
//NOW NEED TO LOAD PMANCLOSED_Right_4
//IT'S GLYPH 209
MOVI 209 R1
STOR R1 R0 //LOAD INTO POSITION
RETX
//CHECK IF STATE RIGHT3
drawRIGHT3:
LOAD R5 R3
CMPI 67 r5
BNE drawDEAD1 //else check if in state drawRIGHT0
//CHECK CONDITION OF MOUTH
//IF OPEN
CMPI 1 R4
BNE CLOSED_STATE_RIGHT3
//GET PMANOPEN_Right_6
//THIS IS GLYPH 251
MOVI 251 r1
STOR R1 R0 //LOAD POSITION
ADDI 1 R0 // GET POSITION TO THE LEFT OF PACMAN
//NOW NEED TO PMANOPEN_Right_5
//ITS IN LOCATION 250
MOVI 250 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
CLOSED_STATE_RIGHT3:
//LOAD PMANCLOSED_Right_6
//IT'S GLYPH 211
MOVI 211 R1
STOR R1 R0 //LOAD INTO POSITION
ADDI 1 R0 // GET POSITION TO THE LEFT PACMAN
//NOW NEED TO LOAD PMANCLOSED_Right_5 (SAME AS PMANCLOSED)
//IT'S GLYPH 210
MOVI 210 R1
STOR r1 r0 //STORE POSITION ABOVE PACMAN
RETX
|
libsrc/_DEVELOPMENT/arch/sms/misc/z80/asm_sms_tiles_get_area.asm | jpoikela/z88dk | 640 | 85122 | <gh_stars>100-1000
; void sms_tiles_get_area(struct r_Rect8 *r, void *dst)
;
; Copy tile contents of a rectangular area in vram to memory
SECTION code_clib
SECTION code_arch
PUBLIC asm_sms_tiles_get_area
EXTERN asm_sms_cxy2saddr, asm_sms_memcpy_vram_to_mem
asm_sms_tiles_get_area:
; enter : de = void *dst
; ix = struct r_Rect *r
;
; exit : de = void *dst after last byte written to memory
;
; uses : af, bc, de, hl
ld l,(ix+0) ; l = rect.x
ld h,(ix+2) ; h = rect.y
call asm_sms_cxy2saddr ; hl = screen map address
; ix = rect *
; hl = screen map address
; de = void *dst
ld c,(ix+3) ; c = rect.height
ld b,0
copy_loop:
push bc
push hl
ld c,(ix+1)
sla c ; c = rect.width * 2
call asm_sms_memcpy_vram_to_mem
pop hl
ld c,64
add hl,bc
pop bc
dec c
jr nz, copy_loop
ret
|
test/asm/correct-line-number.asm | orbea/rgbds | 522 | 11843 | IF 0
"\
"
ELIF 1
WARN "Am I geting ahead of myself?"
ELSE
"\
"
ENDC
WARN "Hopefully not." |
alloy4fun_models/trainstlt/models/7/wH6jfst8zafdfd9ce.als | Kaixi26/org.alloytools.alloy | 0 | 3673 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred idwH6jfst8zafdfd9ce_prop8 {
always (all t:Train | (some t.pos and some t.pos.signal and some t.pos.prox) and ((t.pos.signal) in (Signal-Green) implies (some t.pos') since eventually ((t.pos.signal) in Green)))
}
pred __repair { idwH6jfst8zafdfd9ce_prop8 }
check __repair { idwH6jfst8zafdfd9ce_prop8 <=> prop8o } |
regtests/util-dates-tests.ads | RREE/ada-util | 60 | 16042 | -----------------------------------------------------------------------
-- util-dates-tests - Test for dates
-- Copyright (C) 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Tests;
package Util.Dates.Tests is
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);
type Test is new Util.Tests.Test with null record;
-- Test converting a date in ISO8601.
procedure Test_ISO8601_Image (T : in out Test);
-- Test converting a string in ISO8601 into a date.
procedure Test_ISO8601_Value (T : in out Test);
-- Test value convertion errors.
procedure Test_ISO8601_Error (T : in out Test);
-- Test Is_Same_Day operation.
procedure Test_Is_Same_Day (T : in out Test);
-- Test Get_Day_Count operation.
procedure Test_Get_Day_Count (T : in out Test);
end Util.Dates.Tests;
|
agda/course/2017-conor_mcbride_cs410/HC-Lec1.agda | haroldcarr/learn-haskell-coq-ml-etc | 36 | 5635 | <reponame>haroldcarr/learn-haskell-coq-ml-etc
module HC-Lec1 where
-- ==============================================================================
-- Lecture 1 : Programs and Proofs
-- https://www.youtube.com/watch?v=O4oczQry9Jw&t=1412s
------------------------------------------------------------------------------
-- some basic logical types
-- 13:22 -- like Haskell Void
data Zero : Set where
-- No constructors, so no inhabitants
-- Represents logical impossibility.
-- 16:45 -- like Haskell ()
record One : Set where
constructor <> -- added in video Lecture 2 4:50
-- This record has no fields.
-- This record has exactly one inhabitant.
-- 18:42 -- like Haskell Either
data _+_ (S : Set) (T : Set) : Set where
inl : S -> S + T -- left constructor
inr : T -> S + T -- right constructor
-- 24:50 -- like Haskell pair ( , )
record _*_ (S : Set) (T : Set) : Set where
constructor _,_ -- added in video Lecture 2 4:58
field
fst : S
snd : T
------------------------------------------------------------------------------
-- examples
-- 28:36
comm-* : {A : Set} {B : Set} -> A * B -> B * A
comm-* record { fst = a ; snd = b } = record { fst = b ; snd = a }
-- 43:00
assocLR-+ : {A B C : Set} -> (A + B) + C -> A + (B + C)
assocLR-+ (inl (inl a)) = inl a
assocLR-+ (inl (inr b)) = inr (inl b)
assocLR-+ (inr c) = inr (inr c)
-- 47:34
-- If you can arrive at a contradiction, then you can derive any conclusion.
-- Given a Zero, must produce an X for ANY X.
-- But there are no inhabitants of Zero.
-- So use 'absurd' pattern that indicates something that is IMPOSSIBLE.
naughtE : {X : Set} -> Zero -> X
naughtE ()
-- standard composition: f << g is "f after g"
_<<_ : {X Y Z : Set} -> (Y -> Z) -> (X -> Y) -> (X -> Z)
(f << g) x = f (g x)
-- diagrammatic composition: f >> g is "f then g"
_>>_ : {X Y Z : Set} -> (X -> Y) -> (Y -> Z) -> (X -> Z)
-- ^^^^^^^^ dominoes!
(f >> g) x = g (f x)
-- infix application
_$_ : {S : Set}{T : S -> Set}(f : (x : S) -> T x)(s : S) -> T s
f $ s = f s
infixl 2 _$_
-- ==============================================================================
-- Lecture 2 : more Programs and Proof, Introducing "with"
-- https://www.youtube.com/watch?v=qcVZxQTouDk
-- 2:25
_$*_ : {A A' B B' : Set} -> (A -> A') -> (B -> B') -> A * B -> A' * B'
(a→a' $* b→b') (a , b) = (a→a' a) , (b→b' b)
-- 6:53
_$+_ : {A A' B B' : Set} -> (A -> A') -> (B -> B') -> A + B -> A' + B'
(a→a' $+ b→b') (inl a) = inl (a→a' a)
(a→a' $+ b→b') (inr b) = inr (b→b' b)
-- 8:52 -- like Haskell const ; this is pure for applicative functor needing an E
combinatorK : {A E : Set} -> A -> E -> A
combinatorK a _ = a
-- 11:25 -- this is application
combinatorS : {S T E : Set} -> (E -> S -> T) -> (E -> S) -> E -> T
combinatorS e→s→t e→s e = e→s→t e (e→s e)
-- 14:50
idK : {X : Set} -> X -> X
idK x = combinatorK x x
-- 19:00
idSKK : {X : Set} -> X -> X
idSKK {X} = combinatorS combinatorK (combinatorK {E = X}) -- 'Zero' and 'One' also work
id : {X : Set} -> X -> X
-- id x = x -- is the easy way; let's do it a funny way to make a point
id = combinatorS combinatorK (combinatorK {_} {Zero})
-- no choice for -^ ^^^^- could be anything
-- 30:25
-- naughtE
------------------------------------------------------------------------------
-- from logic to data
-- 32:05
data Nat : Set where
zero : Nat
suc : Nat -> Nat -- recursive data type
{-# BUILTIN NATURAL Nat #-} -- enables decimal notation
-- 32:58
_+N_ : Nat -> Nat -> Nat
zero +N y = y
suc x +N y = suc (x +N y)
four : Nat
four = 2 +N 2
------------------------------------------------------------------------------
-- and back to logic
-- 36:46
data _==_ {X : Set} : X -> X -> Set where
refl : (x : X) -> x == x -- the relation that is "only reflexive"
{-# BUILTIN EQUALITY _==_ #-}
see4 : (2 +N 2) == 4
see4 = refl 4
-- 42:35
-- application of equalities
_=$=_ : {X Y : Set} {f f' : X -> Y} {x x' : X}
-> f == f'
-> x == x'
-> f x == f' x
refl f =$= refl x = refl (f x)
------------------------------------------------------------------------------
-- computing types
-- 45:00
_>=_ : Nat -> Nat -> Set
x >= zero = One -- i.e., true
zero >= suc y = Zero -- i.e., false
suc x >= suc y = x >= y
--a0 : 2 >= 4
--a0 = {!!}
a1 : 4 >= 2
a1 = <>
refl->= : (n : Nat) -> n >= n
refl->= zero = <>
refl->= (suc n) = refl->= n
trans->= : (x y z : Nat) -> x >= y -> y >= z -> x >= z
trans->= zero zero z x>=y y>=z = y>=z
trans->= (suc x) zero zero x>=y y>=z = <>
trans->= (suc x) (suc y) zero x>=y y>=z = <>
trans->= (suc x) (suc y) (suc z) x>=y y>=z = trans->= x y z x>=y y>=z
------------------------------------------------------------------------------
-- construction by proof
-- 47:38
record Sg (S : Set) (T : S -> Set) : Set where -- Sg is short for "Sigma"
constructor _,_
field
fst : S -- a value
snd : T fst -- some evidence about that value
difference : (m n : Nat) -> m >= n -> Sg Nat λ d -> m == (n +N d)
difference m zero m>=n = m , refl m
difference zero (suc n) ()
difference (suc m) (suc n) m>=n
with difference m n m>=n
...| d , e
= d , xxx m n d e
where
xxx : ∀ (m n d : Nat) -> m == (n +N d) -> suc m == suc (n +N d)
xxx m n d p rewrite p = refl (suc (n +N d))
-- ==============================================================================
-- Lecture 3 : Proof by induction
-- https://www.youtube.com/watch?v=8xFT9FPlm18
-- 6:20
-- Nat with zero, +N and assocLR-+ form a monoid.
-- 8:48
zero-+N : (n : Nat) -> (zero +N n) == n
zero-+N n = refl n -- by definition
-- 9:36
-- version in video
-- +N-zero' : (n : Nat) -> (n +N zero) == n
-- +N-zero' zero = refl zero -- by definition
-- +N-zero' (suc n) = refl suc =$= +N-zero' n -- TODO : does not compile
-- HC alternate version
+N-zero : (n : Nat) -> (n +N zero) == n
+N-zero zero = refl zero -- by definition
+N-zero (suc n)
with +N-zero n
...| n+N0==n
rewrite n+N0==n
= refl (suc n)
-- 26:00
-- version in video
-- assocLR-+N' : (x y z : Nat) -> ((x +N y) +N z) == (x +N (y +N z))
-- assocLR-+N' zero y z = refl (y +N z)
-- assocLR-+N' (suc x) y z = refl suc =$= assocLR-+N' x y z -- TODO : does not compile
-- 30:21
assocLR-+N : (x y z : Nat) -> ((x +N y) +N z) == (x +N (y +N z))
assocLR-+N zero y z = refl (y +N z)
assocLR-+N (suc x) y z
rewrite assocLR-+N x y z
= refl (suc (x +N (y +N z)))
------------------------------------------------------------------------------
-- computing types
-- 34:46
refl->=' : (n : Nat) -> n >= n
refl->=' zero = <>
refl->=' (suc n) = refl->=' n
-- 41:00
trans->=' : (x y z : Nat) -> x >= y -> y >= z -> x >= z
-- start with 'z'
trans->=' x y zero x>=y y>=z = <>
trans->=' (suc x) (suc y) (suc z) x>=y y>=z = trans->=' x y z x>=y y>=z
-- ==============================================================================
-- Lecture 4 : Sigma, Difference, Vector Take
-- https://www.youtube.com/watch?v=OZeDRtRmgkw
-- 0:46 Sigma type (see above)
-- 5:10 -- make _*_ from Sg
_*'_ : (S : Set) -> (T : Set) -> Set
s *' t = Sg s λ _ -> t
-- 10:55 difference (see above)
difference' : (m n : Nat) -> m >= n -> Sg Nat λ d -> m == (n +N d)
-- 1st clause of >= matches on right, so start with 'n'
difference' m zero m>=n = m , refl m
difference' (suc m) (suc n) m>=n
with difference' m n m>=n
...| d , m==n+Nd
rewrite m==n+Nd
= d , refl (suc (n +N d)) -- video also uses refl suc =$= m==n+Nd
-- 27:24 -- pattern match on proof of equation ; here 'm==n+Nd'
difference'' : (m n : Nat) -> m >= n -> Sg Nat λ d -> m == (n +N d)
-- 1st clause of >= matches on right, so start with 'n'
difference'' m zero m>=n = m , refl m
difference'' (suc m) (suc n) m>=n
with difference'' m n m>=n
...| d , m==n+Nd
with m==n+Nd
... | refl .(n +N d) = d , (refl (suc (n +N d)))
tryMe = difference 42 37
-- dontTryMe = difference 37 42 {!!}
------------------------------------------------------------------------------
-- things to remember to say
{-
-- 34:22 : = VIZ ==
= : makes a definition (part of Agda programming language)
== : makes a type (by user built definition)
function type is both IMPLICATION and UNIVERSAL QUANTIFICATION : why call Pi?
why is Sigma called Sigma?
-- 38:50 : B or not B
must be able to return a
- inl B for any B : not possible because nothing known about B
- inR B→Zero for any B : not possible because Zero has no elements
exMiddle : {B : Set} -> B + (B -> Zero)
exMiddle = ?
-- 40:45
-- not possible to "look inside" 'notAandB' to determine 'inl' or 'inr'
deMorgan : {A B : Set} -> ((A * B) -> Zero) -> (A -> Zero) + (B -> Zero)
deMorgan notAandB = {!!}
-}
|
programs/oeis/008/A008860.asm | karttu/loda | 0 | 90853 | ; A008860: a(n) = Sum_{k=0..7} binomial(n,k).
; 1,2,4,8,16,32,64,128,255,502,968,1816,3302,5812,9908,16384,26333,41226,63004,94184,137980,198440,280600,390656,536155,726206,971712,1285624,1683218,2182396,2804012,3572224,4514873,5663890,7055732,8731848,10739176,13130672,15965872,19311488,23242039,27840518,33199096,39419864,46615614,54910660,64441700,75358720,87825941,102022810,118145036,136405672,157036244,180287928,206432776,235764992,268602259,305287118,346188400,391702712,442255978,498305036,560339292,628882432,704494193,787772194,879353828,979918216,1090188224,1210932544,1342967840,1487160960,1644431215,1815752726,2002156840,2204734616,2424639382,2663089364,2921370388,3200838656,3502923597,3829130794,4181044988,4560333160,4968747692,5408129608,5880411896,6387622912,6931889867,7515442398,8140616224,8809856888,9525723586,10290893084,11108163724,11980459520,12910834345,13902476210,14958711636,16083010120,17278988696,18550416592,19901219984,21335486848,22857471911,24471601702,26182479704,27994891608,29913810670,31944403172,34092033988,36362272256,38760897157,41293903802,43967509228,46788158504,49762530948,52897546456,56200371944,59678427904,63339395075,67191221230,71242128080,75500618296,79975482650,84675807276,89610981052,94790703104,100224990433,105924185666,111898964932,118160345864,124719695728,131588739680,138779569152,146304650368,154176832991,162409358902,171015871112,180010422808,189407486534,199221963508,209469193076,220164962304,231325515709,242967565130,255108299740,267765396200,280957028956,294701880680,309019152856,323928576512,339450423099,355605515518,372415239296,389901553912,408087004274,426994732348,446648488940,467072645632,488292206873,510332822226,533220798772,556983113672,581647426888,607242094064,633796179568,661339469696,689902486039,719516499014,750213541560,782026423000,814988743070,849134906116,884500135460,921120487936,959032868597,998275045594,1038885665228,1080904267176,1124371299892,1169328136184,1215817088968,1263881427200,1313565391987,1364914212878,1417974124336,1472792382392,1529417281482,1587898171468,1648285474844,1710630704128,1774986479441,1841406546274,1909945793444,1980660271240,2053607209760,2128845037440,2206433399776,2286433178240,2368906509391,2453916804182,2541528767464,2631808417688,2724823106806,2820641540372,2919333797844,3020971353088,3125627095085,3233375348842,3344291896508,3458453998696,3575940416012,3696831430792,3821208869048,3949156122624,4080758171563,4216101606686,4355274652384,4498367189624,4645470779170,4796678685020,4952085898060,5111789159936,5275886987145,5444479695346,5617669423892,5795560160584,5978257766648,6165870001936,6358506550352,6556279045504,6759301096583,6967688314470,7181558338072,7401030860888,7626227657806,7857272612132,8094291742852,8337413232128,8586767453029,8842486997498,9104706704556,9373563688744,9649197368804,9931749496600,10221364186280,10518187943680,10822369695971,11134060821550
mov $4,$0
add $4,1
mov $5,$0
lpb $4,1
mov $0,$5
sub $4,1
sub $0,$4
mov $2,$0
mov $3,2
lpb $3,1
mov $0,$2
sub $0,1
sub $3,1
cal $0,115567 ; a(n) = C(n,6) + C(n,5) + C(n,4) + C(n,3) + C(n,2) + C(n,1).
mov $6,1
add $6,$0
lpe
add $1,$6
lpe
|
libsrc/stdio/ansi/g800/f_ansi_char_850.asm | rjcorrig/z88dk | 0 | 177535 | ;
; ANSI Video handling for the Sharp PC G-800 family
;
; <NAME> - 2017
; Original code by maruhiro, 2007
;
; set it up with:
; .__console_w = max columns
; .__console_h = max rows
;
; Display a char in location (__console_y),(__console_x)
; A=char to display
;
;
; $Id: f_ansi_char_850.asm $
;
SECTION code_clib
PUBLIC ansi_CHAR
EXTERN __console_w
EXTERN __console_h
EXTERN __console_y
EXTERN __console_x
EXTERN ansifont
EXTERN CONSOLE_COLUMNS
EXTERN CONSOLE_ROWS
PUBLIC init_screen
PUBLIC scroll_up
PUBLIC screenmode
IF USE_ATTR
EXTERN g850_attr
ENDIF
defc SCREENMODE_VISIBLECURSOR_MASK=0x01
defc SCREENMODE_VISIBLECURSOR_BIT=0
.ansi_CHAR
_print_char:
ld de,(__console_x)
; D=x; E=Y
push ix ;save callers
; push BC
; push HL
push DE
call vram_addr
ld (HL), A
IF USE_ATTR
ld de,attr-vram
add hl,de
ld a,(g850_attr)
ld (hl),a
ENDIF
pop DE
call update_vcell
; pop HL
; pop BC
pop ix ;restore callers
ret
;
; Display status
;
; Input
; B: Real screen column number
; C: Output pattern
;
; Output
; Destroys: AF, BC
;
putstat:
push BC
putstat_loop:
in A, (0x40)
rlca
jr C, putstat_loop
xor A
out (0x40), A
ld A, 0x19
out (0x40), A
ld A, (0x790d)
add B
and 0x0f
or 0xb0
out (0x40), A
ld A, C
out (0x41), A
pop BC
ret
;
; Display a pattern
;
; Input
; D: Line number of real screen
; E: Column number of the virtual screen
;
; Output
; Destroys: AF, BC, HL
;
putpat:
ld C, 0x40
putpat_wait:
in A, (C)
rlca
jr C, putpat_wait
; Set X coordinate (lower order)
ld A, E
rlca
rlca
ld B, A
and 0x0f
out (C), A
; Set X coordinate (upper)
ld A, B
and 0xf0
rrca
rrca
rrca
rrca
or 0x10
out (C), A
; Set Y coordinate
ld A, (0x790d)
add D
and 0x07
or 0xb0
out (C), A
; Display a pattern
inc C
ld HL, pattern
outi
outi
outi
outi
; Erase the pattern buffer
xor A
dec HL
ld (HL), A
dec HL
ld (HL), A
dec HL
ld (HL), A
dec HL
ld (HL), A
ret
pattern:
defb 0, 0, 0, 0, 0, 0, 0, 0
;
; Cursor position?
;
; Input
; DE: Position to examine
;
; Output
; BC: Destroyed
; Z: Cursor position NZ: Not at cursor position
;
is_cur:
; Cursor position?
ld C, A
ld A, (cursor_x)
cp E
jr NZ, is_cur_last
ld A, (cursor_y)
cp D
jr NZ, is_cur_last
; Is the cursor hidden?
ld A, (screenmode)
cpl
and SCREENMODE_VISIBLECURSOR_MASK
jr NZ, is_cur_last
; Flashing cursor
in A, (0x14)
neg
is_cur_last:
ld A, C
ret
;
; Get font offset
;
; Input
; A: letter
;
; Output
; AF: destroyed
; BC: offset
;
font_offset:
; Can it be displayed?
ld B, A
and 0x60
ld A, B
ld BC, 0x00a0
ret Z
; ????
sub 0x20
cp 0x60
jr C, font_offset_alphabet
sub 0x20
; Is it possible to display?
cp 0xa0
ret NC
font_offset_alphabet:
ld C, A
ret
;
; Setting attributes
;
; Input
; C: attribute
; H: inverted pattern
; L: Underline pattern
; IY: font address
;
; Output
; AF: destroyed
; C: Attribute pattern
; IY: font address
;
setattr:
IF USE_ATTR
xor A
ld (font_bold + 0), A
ld (font_bold + 1), A
; Inversion?
srl C
jr NC, setattr_no_reverse
xor H
setattr_no_reverse:
; Is it underlined?
srl C
jr NC, setattr_no_underline
xor L
setattr_no_underline:
; Is it blinking?
srl C
jr NC, setattr_no_blink
ld C, A
in A, (0x14)
or A
ld A, C
jr Z, setattr_no_blink
ld IY, ansifont
setattr_no_blink:
; Is it bold?
srl C
ld C, A
jr NC, setattr_no_bold
ld A, (IY+1)
ld (font_bold + 0), A
ld A, (IY+2)
ld (font_bold + 1), A
setattr_no_bold:
ENDIF
; Is it a cursor position?
IF USE_ATTR
ELSE
ld C, 0
ENDIF
push BC
call is_cur
pop BC
ret NZ
ld A, C
xor H
ld C, A
ret
IF USE_ATTR
font_bold:
defb 0, 0
ENDIF
;
; Shift A register
;
; Input
; A: number shifted
; B: Amount to shift
;
; Output
; A: number shifted
; F: destroyed
;
shift_a:
push BC
inc B
dec B
jr Z, shift_a_last
jp P, shift_a_left
shift_a_right:
; ????
ld C, A
ld A, B
neg
ld B, A
ld A, C
shift_a_right0:
srl A
djnz shift_a_right0
pop BC
ret
shift_a_left:
; ????
sla A
djnz shift_a_left
shift_a_last:
pop BC
ret
;
; Write to the pattern buffer (3 x 5 font)
;
; Input
; A: letter
; B: shift
; C: attribute
; DE: virtual screen coordinates
;
; Output
; AF, HL, IY: Destroyed
;
setpat3x5:
push IY
; Get font address
push BC
ld IY, ansifont
call font_offset
add IY, BC
add IY, BC
add IY, BC
pop BC
ld HL, 0x3f20
call setattr
; Write 1st byte
ld HL, pattern
ld A, (IY+0)
xor C
call shift_a
or (HL)
ld (HL), A
; Write the second byte
inc HL
ld A, (IY+1)
xor C
call shift_a
or (HL)
ld (HL), A
; Write the third byte
inc HL
ld A, (IY+2)
IF USE_ATTR
ld IY, font_bold
or (IY+0)
ENDIF
xor C
call shift_a
or (HL)
ld (HL), A
; Write 4th byte
IF USE_ATTR
inc HL
ld A, (font_bold + 1)
or (IY+1)
xor C
call shift_a
or (HL)
ld (HL), A
ENDIF
pop IY
ret
;
; The contents of the virtual VRAM are reflected in the real VRAM
;
; Input
; D: actual screen Y coordinate
; E: X coordinate of the virtual screen
;
; Output
; AF, BC, DE, HL, IX, IY: Destroyed
;
update_cell:
; font size?
ld A, (__console_h)
cp CONSOLE_ROWS
jp Z, update_cell_3x5
;
; 36 x 8 screen
;
update_cell_3x5_0:
ld A, (IX+0)
IF USE_ATTR
ld C, (IY+0)
ENDIF
ld B, 0
ld D, B
call setpat3x5
ld A, (IX+CONSOLE_COLUMNS*1)
IF USE_ATTR
ld C, (IY+CONSOLE_COLUMNS*1)
ENDIF
ld B, 6
inc D
call setpat3x5
dec D
jp putpat
update_cell_3x5:
ld B, 0
ld C, E
ld IX, vram0
IF USE_ATTR
ld IY, attr0
ENDIF
add IX, BC
IF USE_ATTR
add IY, BC
ENDIF
ld BC, CONSOLE_COLUMNS
inc D
dec D
jr Z, update_cell_3x5_0
add IX, BC
IF USE_ATTR
add IY, BC
ENDIF
dec D
jr Z, update_cell_3x5_1
add IX, BC
IF USE_ATTR
add IY, BC
ENDIF
dec D
jr Z, update_cell_3x5_2
add IX, BC
add IX, BC
IF USE_ATTR
add IY, BC
add IY, BC
ENDIF
dec D
jr Z, update_cell_3x5_3
add IX, BC
IF USE_ATTR
add IY, BC
ENDIF
dec D
jr Z, update_cell_3x5_4
add IX, BC
IF USE_ATTR
add IY, BC
ENDIF
dec D
jr Z, update_cell_3x5_5
ret
update_cell_3x5_1:
ld A, (IX+0)
IF USE_ATTR
ld C, (IY+0)
ENDIF
ld B, -2
ld D, 1
call setpat3x5
ld A, (IX+CONSOLE_COLUMNS*1)
IF USE_ATTR
ld C, (IY+CONSOLE_COLUMNS*1)
ENDIF
ld B, 4
inc D
call setpat3x5
dec D
jr update_cell_3x5_last
update_cell_3x5_2:
ld A, (IX+0)
IF USE_ATTR
ld C, (IY+0)
ENDIF
ld B, -4
ld D, 2
call setpat3x5
ld A, (IX+CONSOLE_COLUMNS*1)
IF USE_ATTR
ld C, (IY+CONSOLE_COLUMNS*1)
ENDIF
ld B, 2
inc D
call setpat3x5
dec D
jr update_cell_3x5_last
update_cell_3x5_3:
ld A, (IX+0)
IF USE_ATTR
ld C, (IY+0)
ENDIF
ld B, 0
ld D, 4
call setpat3x5
ld A, (IX+CONSOLE_COLUMNS*1)
IF USE_ATTR
ld C, (IY+CONSOLE_COLUMNS*1)
ENDIF
ld B, 6
inc D
call setpat3x5
ld D, 3
jr update_cell_3x5_last
update_cell_3x5_4:
ld A, (IX+0)
IF USE_ATTR
ld C, (IY+0)
ENDIF
ld B, -2
ld D, 5
call setpat3x5
ld A, (IX+CONSOLE_COLUMNS*1)
IF USE_ATTR
ld C, (IY+CONSOLE_COLUMNS*1)
ENDIF
ld B, 4
inc D
call setpat3x5
ld D, 4
jr update_cell_3x5_last
update_cell_3x5_5:
push BC
ld A, (IX+0)
IF USE_ATTR
ld C, (IY+0)
ENDIF
ld B, -4
ld D, 6
call setpat3x5
ld A, (IX+CONSOLE_COLUMNS*1)
IF USE_ATTR
ld C, (IY+CONSOLE_COLUMNS*1)
ENDIF
ld B, 2
inc D
call setpat3x5
ld D, 5
update_cell_3x5_last:
jp putpat
;
; wait a bit
;
; Input
; None
;
; Output
; None
;
wait:
push BC
ld B, 100
wait_loop:
djnz wait_loop
pop BC
ret
;
; Get the address of the virtual VRAM
;
; Input
; A: y coordinate
;
; Output
; DE: Virtual VRAM address
; AF, IX: Destroyed
;
vram_addr_row:
add A
ld D, 0
ld E, A
ld IX, row_table
add IX, DE
ld D, (IX+1)
ld E, (IX+0)
ret
row_table:
defw vram0
defw vram1
defw vram2
defw vram3
defw vram4
defw vram5
defw vram6
defw vram7
defw vram_last
;
; Get the address of the virtual VRAM
;
; Input
; DE: virtual screen coordinates
;
; Output
; F, BC, IX: Destroyed
; HL: Virtual VRAM address
;
vram_addr:
push AF
push DE
ld H, 0
ld L, E
ld A, D
call vram_addr_row
add HL, DE
pop DE
pop AF
; Is it within range?
or A
push HL
ld BC, vram_last
sbc HL, BC
pop HL
jp P, vram_addr_err
ret
vram_addr_err:
; Out of range
ld HL, vram_err
ret
;
; ??
; A:??
;
; ??
; BC:VRAM????
; AF,IX:??
;
vram_size:
add A
ld B, 0
ld C, A
ld IX, vram_size_table
add IX, BC
ld B, (IX+1)
ld C, (IX+0)
ret
vram_size_table:
defw CONSOLE_COLUMNS * 0
defw CONSOLE_COLUMNS * 1
defw CONSOLE_COLUMNS * 2
defw CONSOLE_COLUMNS * 3
defw CONSOLE_COLUMNS * 4
defw CONSOLE_COLUMNS * 5
defw CONSOLE_COLUMNS * 6
defw CONSOLE_COLUMNS * 7
defw CONSOLE_COLUMNS * 8
;
; Initialize the screen
;
; Input
; None
;
; Output
; AF, BC, DE, HL: Destroyed
;
init_screen:
; Initialize update position
ld HL, 0
ld (update_loc), HL
; Initialize screen area
ld A, (__console_h)
dec A
ld L, A
ld (screen_region), HL
; Initialize mode
;ld A, SCREENMODE_VISIBLECURSOR_MASK
xor A
ld (screenmode), A
ld DE, 0
ld (cursor_location), DE
; Erase the screen
ld BC, 0x0700
init_screen_loop:
call putstat
djnz init_screen_loop
call putstat
call clear_screen
jp refresh_screen
;
; Erase the entire screen
;
; Input
; None
;
; Output
; AF, BC, HL: Destroyed
;
clear_screen:
ld HL, CONSOLE_ROWS - 1
;
; Delete the scroll area of the screen
;
; Input
; H: upper line
; L: lower line
;
; Output
; AF, BC, HL: Destroyed
;
clear_region:
push DE
; BC
ld A, L
inc A
sub H
call vram_size
; DE
ld A, H
call vram_addr_row
call clear_region0
pop DE
ret
;
; Clear specified address / length range
;
; Input
; BC: length
; DE: Start address
;
; Output
; AF, BC, DE, HL: Destroyed
;
clear_region0:
; Return if length is 0
ld A, B
or C
ret Z
; Is the length one?
dec BC
xor A
cp B
jr NZ, clear_region0_skip
cp C
jr NZ, clear_region0_skip
; Delete one character
ex DE, HL
ld (HL), ' '
IF USE_ATTR
; Delete one attribute
;ld BC, (CONSOLE_COLUMNS * 8 + 8)
ld bc,attr-vram
add HL, BC
ld (HL), 0
ENDIF
ret
clear_region0_skip:
; Erase characters
ld H, D
ld L, E
inc DE
IF USE_ATTR
push BC
push DE
push HL
ENDIF
ld (HL), ' '
ldir
IF USE_ATTR
; Delete attribute
pop HL
pop DE
;ld BC, (CONSOLE_COLUMNS * 8 + 8)
ld bc,attr-vram
add HL, BC
ex DE, HL
add HL, BC
ex DE, HL
pop BC
ld (HL), 0
ldir
ENDIF
ret
;
; Execute ldir for virtual VRAM
;
; Input
; BC: Counter
; DE: Source address
; HL: Forwarding address
;
; Output
; BC: 0
; DE: Before execution DE + BC
; HL: Before execution HL + BC
;
ldir_screen:
IF USE_ATTR
push BC
push DE
push HL
ldir
pop HL
pop DE
;ld BC, (CONSOLE_COLUMNS * 8 + 8)
ld bc,attr-vram
add HL, BC
ex DE, HL
add HL, BC
ex DE, HL
pop BC
ldir
;ld BC, -(CONSOLE_COLUMNS * 8 + 8)
ld bc,-(attr-vram)
add HL, BC
ex DE, HL
add HL, BC
ex DE, HL
ld BC, 0
ret
ELSE
ldir
ret
ENDIF
;
; Scroll up the virtual VRAM
;
; Input
; None
;
; Output
; AF, BC, HL: Destroyed
;
scroll_up:
ld HL, (screen_region)
ld C, 1
;
; Scroll up the virtual VRAM by specifying the range and number of times
;
; Input
; C: number of lines to scroll
; H: upper line
; L: lower line
;
; Output
; AF, BC, HL: Destroyed
;
scroll_up0:
; (BC)
ld A, L
sub H
sub C
jp C, clear_region
push DE
push AF
; DE
ld A, H
call vram_addr_row
; HL
ld A, C
call vram_size
ld H, D
ld L, E
add HL, BC
; BC
pop AF
push BC
inc A
call vram_size
; Execute scroll up
call ldir_screen
pop BC
or A
sbc HL, BC
ex DE, HL
call clear_region0
pop DE
;ret
jp refresh_screen
;
; Reflect the contents of the virtual VRAM in the real VRAM
;
; Input
; DE: the coordinates of the virtual screen
;
; Output
; AF, BC, DE, HL, IX, IY: Destruction
;
;
update_vcell:
ld A, D
ld D, 0
or A
jp Z, update_cell_3x5
dec A
jr Z, putch1
inc D
dec A
jr Z, putch2
inc D
dec A
jp Z, update_cell_3x5
inc D
dec A
jp Z, update_cell_3x5
dec A
jr Z, putch5
inc D
dec A
jr Z, putch6
inc D
jp update_cell_3x5
putch1:
push DE
call update_cell_3x5
pop DE
inc D
jp update_cell_3x5
putch2:
push DE
call update_cell_3x5
pop DE
inc D
jp update_cell_3x5
putch5:
push DE
call update_cell_3x5
pop DE
inc D
jp update_cell_3x5
putch6:
push DE
call update_cell_3x5
pop DE
inc D
jp update_cell_3x5
;
; Update the screen
;
; Input
; None
;
; Output
; AF, BC, HL: Destruction
;
refresh_screen0:
; Update (x, y)
push DE
ld HL, update_loc
ld D, (HL)
inc HL
ld E, (HL)
call update_cell
pop DE
; x := x - 1, Return if x >= 0
ld HL, update_x
dec (HL)
ret P
; x := WIDTH - 1
ld A, (__console_w)
dec A
ld (HL), A
; y := y - 1, Return if y >= 0
ld HL, update_y
dec (HL)
ret P
; y := HEIGHT - 1
ld (HL), 5
ret
update_loc:
update_y:
defb 0
update_x:
defb 0
;
; Update the screen
;
; Input
; None
;
; Output
; AF, BC, HL: Destruction
;
refresh_screen:
ld B, 144
refresh_screen_loop:
push BC
call refresh_screen0
call refresh_screen0
pop BC
djnz refresh_screen_loop
ret
SECTION bss_clib
; Virtual VRAM
vram:
vram0:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram1:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram2:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram3:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram4:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram5:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram6:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram7:
defb 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
vram_last:
vram_err:
vram8:
defb 0, 0, 0, 0, 0, 0, 0, 0
IF USE_ATTR
attr:
attr0:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr1:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr2:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr3:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr4:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr5:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr6:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr7:
defb 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
attr_last:
attr8:
defb 0, 0, 0, 0, 0, 0, 0, 0
ENDIF
;
; Screen up and down
;
screen_region:
screen_bottom:
defb CONSOLE_ROWS - 1
screen_top:
defb 0
;
; Cursor position
;
cursor_location:
cursor_x:
defb 0
cursor_y:
defb 0
;
; Mode
;
screenmode:
defb 0
|
src/PiCalculus/LinearTypeSystem/Algebras/Linear.agda | guilhermehas/typing-linear-pi | 26 | 16435 | {-# OPTIONS --safe --without-K #-}
open import Relation.Binary.PropositionalEquality using (_≡_; refl; cong; sym)
open import Relation.Nullary using (Dec; yes; no)
import Data.Bool as Bool
import Data.Empty as Empty
import Data.Unit as Unit
import Data.Sum as Sum
import Data.Product as Product
import Data.Nat as ℕ
import Data.Nat.Properties as ℕₚ
open Empty using (⊥)
open Unit using (⊤; tt)
open Sum using (inj₁; inj₂)
open Product using (∃-syntax; _×_; _,_)
open ℕ using (ℕ)
open import PiCalculus.LinearTypeSystem.Algebras
module PiCalculus.LinearTypeSystem.Algebras.Linear where
open Bool using (Bool; true; false) public
pattern zero = false
pattern one = true
data _≔_∙_ : Bool → Bool → Bool → Set where
skip : zero ≔ zero ∙ zero
right : one ≔ zero ∙ one
left : one ≔ one ∙ zero
∙-computeʳ : ∀ x y → Dec (∃[ z ] (x ≔ y ∙ z))
∙-computeʳ zero zero = yes (zero , skip)
∙-computeʳ zero one = no λ ()
∙-computeʳ one zero = yes (one , right)
∙-computeʳ one one = yes (zero , left)
∙-unique : ∀ {x' x y z} → x' ≔ y ∙ z → x ≔ y ∙ z → x' ≡ x
∙-unique skip skip = refl
∙-unique right right = refl
∙-unique left left = refl
∙-uniqueˡ : ∀ {x y' y z} → x ≔ y' ∙ z → x ≔ y ∙ z → y' ≡ y
∙-uniqueˡ skip skip = refl
∙-uniqueˡ right right = refl
∙-uniqueˡ left left = refl
∙-idˡ : ∀ {x} → x ≔ zero ∙ x
∙-idˡ {zero} = skip
∙-idˡ {one} = right
∙-comm : ∀ {x y z} → x ≔ y ∙ z → x ≔ z ∙ y
∙-comm skip = skip
∙-comm right = left
∙-comm left = right
∙-assoc : ∀ {x y z u v} → x ≔ y ∙ z → y ≔ u ∙ v → ∃-syntax (λ w → (x ≔ u ∙ w) × (w ≔ v ∙ z))
∙-assoc skip skip = zero , skip , skip
∙-assoc right skip = one , right , right
∙-assoc left right = one , right , left
∙-assoc left left = zero , left , skip
Linear : Algebra Bool
Algebra.1∙ Linear = true
Algebra.0∙ Linear = false
Algebra._≔_∙_ Linear = _≔_∙_
Algebra.∙-computeʳ Linear = ∙-computeʳ
Algebra.∙-unique Linear = ∙-unique
Algebra.∙-uniqueˡ Linear = ∙-uniqueˡ
Algebra.0∙-minˡ Linear skip = refl
Algebra.∙-idˡ Linear = ∙-idˡ
Algebra.∙-comm Linear = ∙-comm
Algebra.∙-assoc Linear = ∙-assoc
|
emulator/src/ramen.asm | ashitani/TD4 | 0 | 94744 | <gh_stars>0
OUT 0b0111
LOOP1: ADD A,1
JNC LOOP1
LOOP2: ADD A,1
JNC LOOP2
OUT 0b0110
LOOP3: ADD A,1
JNC LOOP3
LOOP4: ADD A,1
JNC LOOP4
LOOP5: OUT 0b0000
OUT 0b0100
ADD A,1
JNC LOOP5
OUT 0b1000
HALT: JMP HALT
|
code/Forec/t40.asm | KongoHuster/assembly-exercise | 1 | 167304 | ;; last edit date: 2016/11/2
;; author: Forec
;; LICENSE
;; Copyright (c) 2015-2017, Forec <<EMAIL>>
;; Permission to use, copy, modify, and/or distribute this code for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
title forec_t40
data segment
X dw 0505h
Y dw 0a0ah
SUM dw ?
data ends
code segment
assume cs:code, ds:data
start:
mov ax, data
mov ds, ax
finsum macro x, y
push ax
push bx
mov ax, x
mov bx, y
if ax gt bx
shl bx, 1
else
shl ax, 1
endif
add ax, bx
mov sum, ax
pop bx
pop ax
endm
finsum X, Y
mov ah, 4ch
int 21h
code ends
end start |
src/CPCDiagRomCard.asm | SerErris/amstrad-diagnostics | 0 | 95716 | MODULE CPCDiagRomCard
@CPCDiagRomCardDisableLowerROM:
; Disable CPCDiagRomBoard lower ROM so system lower ROM is accessible
; CPCDiagRomBoard interprets bit7 of the dataword for the Upper ROM select byte.
; 0=enabled (default) 1=disabled. Any normal rom select operation will enable rom0 again.
;Deactivate Lower ROM and enables Diag Upper ROM
LD BC,#FBEC ;Address of DiagRom for ROM disable
LD A,1 ;disable rom
OUT (C),A ;output C to &FBEC
ret
@CPCDiagRomCardEnableLowerROM:
;Enables Lower AND Upper ROM0 from the Board.
LD BC,#FBEC ;Address of DiagRom for ROM disable
LD A,0 ;enable rom
OUT (C),A ;output A to &FBEC
ret
ENDMODULE
|
alloy4fun_models/trashltl/models/1/uCK5xTfbs8NDgXGpM.als | Kaixi26/org.alloytools.alloy | 0 | 1841 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred iduCK5xTfbs8NDgXGpM_prop2 {
no File
}
pred __repair { iduCK5xTfbs8NDgXGpM_prop2 }
check __repair { iduCK5xTfbs8NDgXGpM_prop2 <=> prop2o } |
oeis/081/A081805.asm | neoneye/loda-programs | 11 | 174689 | ; A081805: a(n) = n minus (largest prime power in n factorization); a(1) = 0.
; Submitted by <NAME>
; 0,0,0,0,0,3,0,0,0,5,0,8,0,7,10,0,0,9,0,15,14,11,0,16,0,13,0,21,0,25,0,0,22,17,28,27,0,19,26,32,0,35,0,33,36,23,0,32,0,25,34,39,0,27,44,48,38,29,0,55,0,31,54,0,52,55,0,51,46,63,0,63,0,37,50,57,66,65,0,64,0,41,0,77,68,43,58,77,0,81,78,69,62,47,76,64,0,49,88,75
mov $2,$0
seq $0,34699 ; Largest prime power factor of n.
sub $2,$0
mov $0,$2
add $0,1
|
software/obsolete/new-rom/ui_box.asm | Noah1989/micro-21 | 1 | 86318 | public ui_box_IX_fill_color_L_character_H
public ui_box_IX_calculate_absolute_position_DE
public ui_box_IX_toggle_visibility
include "ui.inc"
include "video_io.inc"
ui_box_IX_fill_color_L_character_H:
CALL ui_box_IX_calculate_absolute_position_DE
LD B, (IX+ui_box_width)
LD C, (IX+ui_box_height)
ui_box_IX_draw_loop:
LD A, E
OUT (video_address_l), A
LD A, D
OUT (video_address_h), A
; draw a whole line
PUSH BC
ui_box_IX_draw_loop_line:
LD A, L
OUT (video_table_attribute), A
LD A, H
OUT (video_table_name_increment), A
DJNZ ui_box_IX_draw_loop_line
POP BC
; next line
INC D
DEC C
JR NZ, ui_box_IX_draw_loop
; done
RET
ui_box_IX_calculate_absolute_position_DE:
; start with own position
LD E, (IX+ui_box_left)
LD D, (IX+ui_box_top)
; check if this box is a widget
LD A, (IX+ui_object_type)
CP A, ui_object_type_widget
RET NZ
PUSH IX
ui_box_IX_calculate_absolute_position_DE_loop:
; get parent
LD C, (IX+ui_widget_parent)
LD B, (IX+ui_widget_parent+1)
LD IX, BC
; add parent position left
LD A, E
ADD A, (IX+ui_box_left)
LD E, A
; add parent position top
LD A, D
ADD A, (IX+ui_box_top)
LD D, A
; repeat if parent is also a widget
LD A, (IX+ui_object_type)
CP ui_object_type_widget
JR Z, ui_box_IX_calculate_absolute_position_DE_loop
; done
POP IX
RET
ui_box_IX_toggle_visibility:
LD A, (IX+ui_box_left)
ADD A, 128
LD (IX+ui_box_left), A
RET
|
OpusEtAl/tools/src/makekeyn.asm | Computer-history-Museum/MS-Word-for-Windows-v1.1 | 2 | 24640 | <reponame>Computer-history-Museum/MS-Word-for-Windows-v1.1
.xlist
memC = 1
?PLM = 0
?WIN = 0
INCLUDE CMACROS.INC
.list
;=============================================================================
; CODE SEGMENT
;=============================================================================
sBegin CODE
assumes cs,CODE
;=========================================================================
; CbScanKeyStNat(stKey, pstStr, fSingleString);
; Scan all strings in array pointed to by pstStr for occurrances
; of stkey. Keep a total of the number of bytes saved if all
; occurrances of stKey are replaced by a one byte token. If
; fSingleString is true, only check the one string pointed to
; by pstStr.
;=========================================================================
cProc CbScanKeyStNat,<NEAR,PUBLIC>,<ds, si, di>
ParmDP <stKey, pstStr>
ParmW <fSingleString>
LocalW <cbSave, cbScan>
cBegin
mov cbSave,0 ; cbSave = 0;
les di,stKey ; if (stKey == NULL)
and di,di ;
jz CSKret ; return(0);
mov ah,es:[di+1] ; chFirst = *(stKey+1);
mov cl,es:[di] ; cbKey = *stKey - 1;
xor ch,ch ;
dec cx ; if (cbKey == 0)
jz CSKret ; return(0);
mov dx,cx ;
While1: lds bx,pstStr ; while ((pchScan = *pstStr++) != NULL)
add OFF_pstStr,4 ;
lds bx,ds:[bx] ;
and bx,bx ;
jz EndWhile1 ; {
mov cl,ds:[bx] ; cbScan = (int)*pchScan++;
inc bx ;
xor ch,ch ;
mov cbScan,cx ;
ForLoop: ; for (;;)
; {
mov si,ds ;
mov es,si ;
mov di,bx ; while (cbScan-- > 0)
mov cx,cbScan ; if (*pchScan++ == chFirst)
mov al,ah ; break;
repne scasb ;
cmp cx,dx ; if (cbScan < cbKey)
jl EndFor ; break;
mov bx,di ;
mov cbScan,cx ;
mov cx,dx ; cb = cbKey;
mov si,bx ; pch = pchScan;
les di,stKey ; pchKey = stKey+2;
add di,2 ;
repe cmpsb ; while (cb-- > 0)
; if (*pchKey++ != *pch++)
; break;
jne ForLoop ; if (cb == -1)
; {
add cbSave,dx ; cbSave += cbKey;
mov bx,si ; pchScan = pch - 1;
dec bx ;
sub cbScan,dx ; cbScan -= cbKey;
; }
jmp ForLoop ; }
EndFor: ;
test fSingleString,0ffffh ; if (fSingleString)
jz While1 ; break;
; }
EndWhile1: ;
CSKret: ;
mov ax,cbSave ; return(cbSave);
cEnd
sEnd CODE
end
|
oeis/036/A036704.asm | neoneye/loda-programs | 11 | 95694 | <reponame>neoneye/loda-programs
; A036704: a(n)=number of Gaussian integers z=a+bi satisfying |z|<=n+1/2.
; Submitted by <NAME>
; 1,9,21,37,69,97,137,177,225,293,349,421,489,577,665,749,861,973,1085,1201,1313,1457,1597,1741,1885,2053,2217,2377,2561,2733,2933,3125,3313,3521,3745,3969,4197,4421,4669,4905,5169,5417,5681,5957,6221,6509,6785,7089,7393,7705,8021,8341,8685,9001,9337,9689,10029,10405,10741,11133,11513,11881,12281,12645,13085,13485,13909,14329,14745,15193,15621,16053,16533,16977,17449,17905,18393,18893,19365,19861,20353,20889,21401,21913,22429,22981,23525,24065,24601,25185,25741,26317,26885,27477,28057,28649,29249
mul $0,2
add $0,1
pow $0,2
div $0,4
seq $0,57655 ; The circle problem: number of points (x,y) in square lattice with x^2 + y^2 <= n.
|
evernote-backup.applescript | audy/evernote-backup | 9 | 4089 | <filename>evernote-backup.applescript
#!/usr/bin/env osascript
-- credit:
-- https://stackoverflow.com/questions/11939940/how-do-i-export-notes-from-evernote-using-applescript
-- https://superuser.com/questions/670893/get-path-of-parent-folder-of-script-location-applescript
-- this will delete and replace the notes directory every time!
-- this is how you get $PWD in AppleScript (ノಠ益ಠ)ノ
set outputpath to POSIX path of ((path to me as text) & "::") & "notes"
tell application "Evernote"
set allmynotes to find notes
export allmynotes to outputpath format HTML
end tell
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_12_1669.asm | ljhsiun2/medusa | 9 | 102986 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x11466, %rdi
nop
nop
nop
nop
nop
sub %rbx, %rbx
movb (%rdi), %r13b
sub %r8, %r8
lea addresses_A_ht+0x1dce6, %rcx
nop
nop
dec %r9
movb $0x61, (%rcx)
nop
nop
nop
xor $62201, %rdi
lea addresses_D_ht+0x15e66, %rsi
lea addresses_UC_ht+0x33e6, %rdi
nop
nop
add %rbp, %rbp
mov $13, %rcx
rep movsw
nop
nop
nop
inc %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %rbp
push %rbx
push %rcx
// Store
lea addresses_PSE+0x4f33, %rbp
nop
nop
nop
dec %r11
movb $0x51, (%rbp)
nop
nop
sub %r13, %r13
// Store
lea addresses_RW+0x15466, %r12
nop
nop
and %rbx, %rbx
mov $0x5152535455565758, %r11
movq %r11, %xmm1
vmovups %ymm1, (%r12)
nop
nop
nop
nop
nop
sub $3708, %r12
// Store
mov $0x29d95d0000000666, %r13
nop
nop
sub $31974, %rbx
mov $0x5152535455565758, %rcx
movq %rcx, (%r13)
nop
and $13894, %r11
// Faulty Load
lea addresses_WT+0x14e66, %r8
nop
nop
dec %rcx
mov (%r8), %bx
lea oracles, %r12
and $0xff, %rbx
shlq $12, %rbx
mov (%r12,%rbx,1), %rbx
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': True, 'same': False, 'congruent': 8, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'00': 12}
00 00 00 00 00 00 00 00 00 00 00 00
*/
|
examples/vector_cond_jump.asm | neoISAcpu/basicVM | 1 | 98883 | <reponame>neoISAcpu/basicVM
# this is a demonstration of a conditional vector jump
main:
const.i32.4 1, 4, 3, 4
const.i8 4
eq
const.a32.4 one, two, tree, four
jmp.con
quit
one:
const.i8 1
print
drop
quit
two:
const.i8 2
print
drop
quit
tree:
const.i8 3
print
drop
quit
four:
const.i8 4
print
drop
quit
|
project.asm | HxnDev/Canon-War-Game-using-Assembly-Language | 6 | 13111 | <reponame>HxnDev/Canon-War-Game-using-Assembly-Language<gh_stars>1-10
;bulets zyada damage canon ka zyada krna damage player ka kam krna hy
.model small
.stack 100h
.386
.data
scor db "Score:$"
cman db "Robot$"
canon1 db "CannonA$"
canon2 db "CannonB$"
play db "PLAY$"
endd db "Game End$"
inst db "INSTRUCTIONS$"
scr db "SCORE$"
exts db "EXIT$"
;ooof db "<- ->: move, Up Arrow: shoot, e: exit$"
win db "YOU WIN!!$"
los db "LOSER HAHA$"
pose db "PAUSE", 10, 13, "PRESS SPACE BAR TO RESUME$"
entname db "Enter player name: $"
ename db "Name: $"
lstring db "Press Enter to go to the next level, any other key to end the game $"
uname db 20 dup('$')
score dw 0
sound dw 0
level dw 0
;1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Splash DB 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ;01
DB 0, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0 ;02
DB 0, 1, 5, 5, 5, 5, 1, 5, 5, 1, 1, 1, 1, 1, 1, 5, 5, 1, 5, 5, 5, 5, 1, 0, 0, 0 ;03
DB 0, 1, 5, 5, 1, 5, 5, 1, 5, 5, 1, 1, 1, 1, 5, 5, 1, 5, 5, 1, 5, 5, 1, 0, 0, 0 ;04
DB 0, 1, 7, 7, 7, 1, 7, 7, 1, 7, 7, 1, 1, 7, 7, 1, 7, 7, 1, 7, 7, 7, 1, 0, 0, 0 ;05
DB 0, 1, 7, 7, 7, 7, 1, 7, 7, 1, 7, 7, 7, 7, 1, 7, 7, 1, 7, 7, 7, 7, 1, 0, 0, 0 ;06
DB 0, 1, 7, 7, 1, 7, 7, 1, 7, 1, 1, 7, 7, 1, 1, 7, 1, 7, 7, 1, 7, 7, 1, 0, 0, 0 ;07
DB 0, 1, 7, 7, 7, 1, 7, 7, 7, 1, 7, 1, 1, 7, 1, 7, 7, 7, 1, 7, 7, 7, 1, 0, 0, 0 ;08
DB 0, 0, 1, 4, 4, 4, 1, 4, 4, 1, 4, 4, 4, 4, 1, 4, 4, 1, 4, 4, 4, 1, 0, 0, 0, 0 ;09
DB 0, 0, 0, 1, 4, 4, 4, 1, 4, 1, 1, 4, 4, 1, 1, 4, 1, 4, 4, 4, 1, 0, 0, 0, 0, 0 ;10
DB 0, 0, 0, 1, 1, 1, 4, 4, 4, 4, 1, 4, 4, 1, 4, 4, 4, 4, 1, 1, 1, 0, 0, 0, 0, 0 ;11
DB 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ;12
DB 0, 0, 0, 1, 9, 1, 1, 1, 1, 1, 1, 9, 9, 1, 1, 1, 1, 1, 1, 9, 1, 0, 0, 0, 0, 0 ;13
DB 0, 0, 0, 1, 9, 9, 1, 1, 1, 9, 1, 9, 9, 1, 9, 1, 1, 1, 9, 9, 1, 0, 0, 0, 0, 0 ;14
DB 0, 0, 0, 1, 9, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 9, 1, 0, 0, 0, 0, 0 ;15
DB 0, 0, 0, 1, 9, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 9, 1, 0, 0, 0, 0, 0 ;16
DB 0, 0, 0, 1, 9, 9, 9, 1, 9, 9, 1, 1, 1, 1, 9, 9, 1, 9, 9, 9, 1, 0, 0, 0, 0, 0 ;17
DB 0, 0, 0, 0, 1, 7, 7, 1, 7, 7, 7, 7, 7, 7, 7, 7, 1, 7, 7, 1, 0, 0, 0, 0, 0, 0 ;18
DB 0, 0, 0, 0, 0, 1, 2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0 ;19
DB 0, 0, 0, 0, 0, 0, 1, 1, 4, 1, 1, 4, 4, 1, 1, 4, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ;20
DB 0, 0, 0, 0, 0, 0, 0, 1, 4, 1, 4, 4, 4, 4, 1, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;21
DB 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 4, 4, 4, 4, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;22
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;23
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;24
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;25
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;26
DB 8, 8, 8, 0, 8, 8, 8, 0, 8, 0, 0, 8, 0, 8, 8, 8, 0, 8, 0, 0, 8, 0, 0, 0, 0, 0 ;27
DB 8, 0, 0, 0, 8, 0, 8, 0, 8, 8, 0, 8, 0, 8, 0, 8, 0, 8, 8, 0, 8, 0, 0, 0, 0, 0 ;28
DB 8, 0, 0, 0, 8, 8, 8, 0, 8, 0, 8, 8, 0, 8, 0, 8, 0, 8, 0, 8, 8, 0, 0, 0, 0, 0 ;29
DB 8, 8, 8, 0, 8, 0, 8, 0, 8, 0, 0, 8, 0, 8, 8, 8, 0, 8, 0, 0, 8, 0, 0, 0, 0, 0 ;30
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;31
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;32
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 8, 8, 8, 0, 8, 8, 8, 0, 0 ;33
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 0 ;34
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 0, 8, 8, 0, 8, 8, 8, 0, 8, 8, 0, 0, 0 ;35
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 8, 0 ;36
DB 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;37
DB 0, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;38
DB 0, 9, 9, 9, 9, 0, 0, 0, 0, 0, 7, 4, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;39
DB 0, 9, 1, 1, 9, 0, 0, 0, 0, 7, 4, 4, 4, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;40
DB 0, 9, 1, 1, 9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;41
DB 0, 9, 1, 1, 9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;42
DB 0, 9, 9, 9, 9, 7, 1, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0 ;43
DB 0, 9, 9, 9, 9, 7, 1, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 5, 5, 5, 9, 0, 0, 0, 0, 0 ;44
DB 0, 9, 7, 7, 9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 5, 5, 5, 9, 0, 0, 0, 0, 0 ;45
DB 0, 9, 7, 7, 9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0 ;46
splashx dw 100
splashy dw 10
;1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Canoon1 DB 07,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,07;01
DB 07,07,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,07,07;02
DB 07,07,07,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,07,07,07;03
DB 07,07,07,07,10,10,10,10,10,10,10,10,10,10,10,10,10,10,07,07,07,07;04
DB 07,07,07,07,07,10,10,10,10,10,10,10,10,10,10,10,10,07,07,07,07,07;05
DB 07,07,07,07,07,07,10,10,10,10,10,10,10,10,10,10,07,07,07,07,07,07;06
DB 07,07,07,07,07,07,07,10,10,10,10,10,10,10,10,07,07,07,07,07,07,07;07
DB 07,07,07,07,07,07,07,07,10,10,10,10,10,10,07,07,07,07,07,07,07,07;08
DB 07,07,07,07,07,07,07,07,07,10,10,10,10,07,07,07,07,07,07,07,07,07;09
DB 07,07,07,07,07,07,07,07,07,07,10,10,07,07,07,07,07,07,07,07,07,07;10
;1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Canoon2 DB 07,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,07;01
DB 07,07,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,07,07;02
DB 07,07,07,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,09,07,07,07;03
DB 07,07,07,07,09,09,09,09,09,09,09,09,09,09,09,09,09,09,07,07,07,07;04
DB 07,07,07,07,07,09,09,09,09,09,09,09,09,09,09,09,09,07,07,07,07,07;05
DB 07,07,07,07,07,07,09,09,09,09,09,09,09,09,09,09,07,07,07,07,07,07;06
DB 07,07,07,07,07,07,07,09,09,09,09,09,09,09,09,07,07,07,07,07,07,07;07
DB 07,07,07,07,07,07,07,07,09,09,09,09,09,09,07,07,07,07,07,07,07,07;08
DB 07,07,07,07,07,07,07,07,07,09,09,09,09,07,07,07,07,07,07,07,07,07;09
DB 07,07,07,07,07,07,07,07,07,07,09,09,07,07,07,07,07,07,07,07,07,07;10
;1 2 3 4 5 6
Bullet DB 07, 07, 07, 07, 07, 07 ;01
DB 07, 07, 14, 14, 07, 07 ;02
DB 07, 14, 14, 14, 14, 07 ;03
DB 07, 14, 14, 14, 14, 07 ;04
DB 07, 06, 06, 06, 06, 07 ;05
DB 07, 06, 06, 06, 06, 07 ;06
DB 07, 06, 06, 06, 06, 07 ;07
DB 07, 06, 06, 06, 06, 07 ;08
DB 07, 07, 06, 06, 07, 07 ;09
DB 07, 07, 07, 07, 07, 07 ;10
DB 07, 07, 07, 07, 07, 07 ;11
DB 07, 07, 07, 07, 07, 07 ;12
;1 2 3 4 5 6
BulletC DB 07, 07, 07, 07, 07, 07 ;01
DB 07, 07, 07, 07, 07, 07 ;10
DB 07, 07, 07, 07, 07, 07 ;11
DB 07, 07, 15, 15, 07, 07 ;02
DB 07, 15, 15, 15, 15, 07 ;03
DB 07, 15, 15, 15, 15, 07 ;04
DB 07, 15, 15, 15, 15, 07 ;05
DB 07, 00, 00, 00, 00, 07 ;06
DB 07, 00, 00, 00, 00, 07 ;07
DB 07, 00, 00, 00, 00, 07 ;08
DB 07, 07, 00, 00, 07, 07 ;09
DB 07, 07, 07, 07, 07, 07 ;12
;1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
robut DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;71
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;02
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 4, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;03
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 4, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;04
DB 7, 7, 7, 7, 4, 7, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 4, 7, 7, 7, 7 ;05
DB 7, 7, 7, 7, 4, 7, 7, 7, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 4, 7, 7, 7, 7 ;06
DB 7, 7, 7, 7, 4, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 4, 7, 7, 7, 7 ;07
DB 7, 7, 7, 7, 4, 2, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 2, 4, 7, 7, 7, 7 ;08
DB 7, 7, 7, 7, 2, 2, 8, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 2, 2, 7, 7, 7, 7 ;09
DB 7, 7, 7, 7, 2, 2, 8, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 2, 2, 7, 7, 7, 7 ;10
DB 7, 7, 7, 7, 2, 2, 8, 3, 1, 1, 3, 3, 3, 3, 3, 3, 3, 1, 1, 3, 8, 2, 2, 7, 7, 7, 7 ;11
DB 7, 7, 7, 7, 2, 2, 8, 3, 1, 1, 3, 3, 3, 3, 3, 3, 3, 1, 1, 3, 8, 2, 2, 7, 7, 7, 7 ;12
DB 7, 7, 7, 7, 2, 2, 8, 3, 1, 1, 3, 3, 3, 3, 3, 3, 3, 1, 1, 3, 8, 2, 2, 7, 7, 7, 7 ;13
DB 7, 7, 7, 7, 2, 2, 8, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 2, 2, 7, 7, 7, 7 ;14
DB 7, 7, 7, 7, 7, 7, 8, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 7, 7, 7, 7, 7, 7 ;15
DB 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7 ;16
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;17
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 3, 3, 3, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;18
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 8, 3, 3, 3, 8, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;19
DB 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 2, 8, 3, 3, 3, 8, 2, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7 ;20
DB 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 8, 8, 8, 8, 8, 8, 8, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7 ;21
DB 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 8, 8, 8, 8, 8, 8, 8, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7 ;22
DB 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 8, 8, 8, 8, 8, 8, 8, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7 ;23
DB 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7 ;24
DB 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 7, 2, 2, 7, 2, 2, 7, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7 ;25
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 2, 2, 7, 2, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;26
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 2, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;27
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 2, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;28
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 7, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;29
DB 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 ;30
; central point of bullets
shotr dw 83
shotc1 dw 61
shotc2 dw 111
time db 0
; x y of bullets initial/final canon 1/2
xbic1 sword 11
xbfc1 sword 22
ybic1 dw 58
ybfc1 dw 64
xbic2 sword 11
xbfc2 sword 22
ybic2 dw 108
ybfc2 dw 114
; x/y bulets initial/final robot
xbir sword 118
xbfr sword 130
ybir dw 80
ybfr dw 86
; y coordinate of canon initial/final 1/2
yci1 dw 50
ycf1 dw 72
yci2 dw 100
ycf2 dw 122
; y coordinate of robot initial/final 1/2
yxi dw 70
yxf dw 97
;-- generic initial coordinates
xcordi dw 0 ; x coordinate initial to draw
xcordf dw 0 ; final
ycordi dw 0
ycordf dw 0
colorOf db 0
;---movement variable for canons
movv1 dw 0
movv2 dw 0
movvb dw 0
movvcb1 dw 0
movvcb2 dw 0
Helth DB 07, 07, 09, 07, 07, 07, 09, 07, 07, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04;36
DB 07, 09, 09, 09, 07, 09, 09, 09, 07, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
DB 09, 09, 09, 09, 09, 09, 09, 09, 09, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
DB 09, 09, 09, 09, 09, 09, 09, 09, 09, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
DB 07, 09, 09, 09, 09, 09, 09, 09, 07, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
DB 07, 07, 09, 09, 09, 09, 09, 07, 07, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
DB 07, 07, 07, 09, 09, 09, 07, 07, 07, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
DB 07, 07, 07, 07, 09, 07, 07, 07, 07, 07, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04, 07, 04, 04, 04
exHelth db 07,07,04,04,07,04,04,07,07 ;09
db 07,04,15,04,04,04,04,04,07
db 07,04,04,04,04,04,04,04,07
db 07,07,04,04,04,04,04,07,07
db 07,07,07,04,04,04,07,07,07
db 07,07,07,07,04,07,07,07,07 ;06
helthx dw 0
helthy dw 0
heltcontr dw 0
helttimr dw 0
heltx dw 260
helty dw 10
;health final robot (x axis)
hfr dw 298
hifr dw 298
hfc1 dw 298
hfc2 dw 298
hifc1 dw 298
hifc2 dw 298
;counters
hlos dw 7
hc1 dw 7
hc2 dw 7
hscore dw 17
;---file load k variable
handle dw ?
filename db "insturr.txt", 0
buffer db 500 DUP('$')
;---file handling for highscores
fname db "hscores.txt",0
handle1 dw ?
buffer1 db 500 dup('$')
count db 10
scount db 3
oof dw ":"
sstring db 10,13, "Highscore: "
hss dw 0
dstring db 10,13 ,"Date: "
date db 10 dup(?)
tstring db 10,13 ,"Time: "
ttime db 8 dup (?)
entr db 10,13
;******************************************************************************************************************************************
.code
main proc
mov ax,@data
mov ds,ax
; setting video mode
mov al, 13h
mov ah, 00h
int 10H
;==========================================SPLASH============================================================================
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov si, offset Splash ;draw splash
mov xcordi, 20
mov xcordf, 158
mov ycordi, 100
mov ycordf, 178
mov ah,0ch
mov dx, xcordi ; x coordinate initial( up down)
ywalas:
mov cx, ycordi ;y coordinate initial (left right)
xwalas:
mov al,[si]
int 10h
inc cx
int 10h
inc cx
int 10h
inc si
inc cx
cmp cx, ycordf ; y coordinate final( left right)
jb xwalas
inc dx
mov cx, ycordi
sub si,26
xwalas2:
mov al,[si]
int 10h
inc cx
int 10h
inc cx
int 10h
inc si
inc cx
cmp cx, ycordf ; y coordinate final( left right)
jb xwalas2
inc dx
mov cx, ycordi
sub si,26
xwalas3:
mov al,[si]
int 10h
inc cx
int 10h
inc cx
int 10h
inc si
inc cx
cmp cx, ycordf ; y coordinate final( left right)
jb xwalas3
inc dx
cmp dx, xcordf ; x coordinate final( up down)
jb ywalas
;TIme delay
mov CX, 13H
mov DX, 4240H
mov AH, 86H
int 15H
;==================================================================ENTER NAME===================================================
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ch,2 ;write name
mov cl,2
mov si, offset entname
call stringKap
mov si,offset uname
string1:
mov ah,1
int 21h
cmp al,13
je meenu
mov [si],al
inc si
jmp string1
;==============================================M3Nu==============================================================================
meenu:
;----------M3Nu-------------
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
;-----------strings with dabbe unk
;play box on menu
mov xcordi, 110
mov xcordf, 147
mov ycordi, 72
mov ycordf, 82
mov colorOf, 2
call boxKap
mov ch,9 ;write play
mov cl,54
mov si, offset play
call stringKap
;---------------------------next
mov xcordi, 110
mov xcordf, 210
mov ycordi, 88
mov ycordf, 98
mov colorOf, 4
call boxKap
mov ch,11 ;write Instructions
mov cl,54
mov si, offset inst
call stringKap
;-----------------------------next
mov xcordi, 110
mov xcordf, 154
mov ycordi, 104
mov ycordf, 114
mov colorOf, 0
call boxKap
mov ch,13 ;write score
mov cl,54
mov si, offset scr
call stringKap
;----------------------------------next
mov xcordi, 110
mov xcordf, 147
mov ycordi, 120
mov ycordf, 130
mov colorOf, 6
call boxKap
mov ch,15 ;write Exit
mov cl,54
mov si, offset exts
call stringKap
;========================================================================================================================
;-------Mouse----------------
mov ax,01
int 33h
mouse:
mov ax, 03
int 33h
cmp bx,1
je Cecks
;je dispppp
jmp mouse
Cecks:
;---Play screen----
.if(cx>=210 && cx<=277 && dx>=72 && dx<=82 )
jmp dispppp
.endif
.if(cx>=210 && cx<=420 && dx>=88 && dx<=98)
jmp ififififi
.endif
.if(cx>=210 && cx<=287 && dx>=104 && dx<=114)
jmp hsc
.endif
.if(cx>=210 && cx<=287 && dx>=120 && dx<=130)
jmp extt
.endif
jmp mouse
;--- PRESS SPACE BAR TO START
inputt:
mov ah,0h
int 16h
; mov kee,al
;---display---
; cmp al,020H
; je dispppp
;-----I/i----
; cmp al,049H
; je ififififi
; cmp al,069H
; je ififififi
;---back to menu from backspace
cmp al,008H
je meenu
jmp inputt
;---
hsc:
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
;---reset background---
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ah,02h ;reset cursor
mov bx,0
mov dh,0
mov dl,0
int 10h
;LOAD FILE HANDLE
lea dx, fname ; Load address of String “file”
mov al, 0 ; Open file (read)
mov ah, 3Dh ; Load File Handler and store in ax
int 21h
mov handle1, ax
;READ FROM FILE
mov bx, handle1 ; Move file Handle to bx
lea dx, buffer1
mov ah, 3Fh ; Function to read from file
int 21h
;PRINT BUFFER
lea dx, buffer1
mov ah, 09h
int 21h
;CLOSE FILE HANDLE
mov ah, 3Eh
mov bx, handle1
int 21h
jmp inputt
;--- INSTRUCTIONS TO LOAD
ififififi:
;---reset background---
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ah,02h ;reset cursor
mov bx,0
mov dh,0
mov dl,0
int 10h
;LOAD FILE HANDLE
lea dx, filename ; Load address of String “file”
mov al, 0 ; Open file (read)
mov ah, 3Dh ; Load File Handler and store in ax
int 21h
mov handle, ax
;READ FROM FILE
mov bx, handle ; Move file Handle to bx
lea dx, buffer
mov ah, 3Fh ; Function to read from file
int 21h
;PRINT BUFFER
lea dx, buffer
mov ah, 09h
int 21h
;CLOSE FILE HANDLE
mov ah, 3Eh
mov bx, handle
int 21h
jmp inputt
;========================================================DISPLAY=================================================================
dispppp:
mov ax, 02 ; hides the mouse
int 33h
;------asmaan ka ganda rang----
;top box
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 160
mov colorOf, 7
call boxKap
;division line
mov xcordi, 0
mov xcordf, 320
mov ycordi, 160
mov ycordf, 163
mov colorOf, 8
call boxKap
;ground box
mov xcordi, 0
mov xcordf, 320
mov ycordi, 163
mov ycordf, 200
mov colorOf, 196
call boxKap
;---canons--
mov si, offset Canoon1 ;draw canon1
mov xcordi, 0
mov xcordf, 10
mov ax, yci1
mov ycordi, ax
mov ax, ycf1
mov ycordf, ax
call drawKap
mov si, offset Canoon2 ;draw canon2
mov xcordi, 0
mov xcordf, 10
mov ax, yci2
mov ycordi, ax
mov ax, ycf2
mov ycordf, ax
call drawKap
;---robot--
mov si, offset robut ;draw robot
mov xcordi, 130
mov xcordf, 160
mov ax, yxi
mov ycordi, ax
mov ax, yxf
mov ycordf, ax
call drawKap
; mov ax, ycordi
; add ax,13
; mov shotr, ax
;----health---
;---1
mov si, offset Helth ;draw health of robot
mov xcordi, 30
mov xcordf, 38
mov ycordi, 260
mov ycordf, 298
call drawKap
mov ax,xcordf
mov ycordf,ax
mov ax,xcordi
mov ycordi,ax
.if(hlos > 7)
; mov xcordi, 299
; ;mov xcordf, 301
; mov cx, hlos
; sub cx, 7
; l3helth:
; mov ycordi, 30
; mov ycordf, 38
; mov ax, xcordi
; mov xcordf, ax
; add xcordf, 2
; add ax, 3
; push ax
; push cx
; mov colorOf, 04
; call boxKap
; pop cx
; pop ax
; mov xcordi, ax
; loop l3helth
.endif
mov ycordi, 30
mov ycordf, 38
mov ax, hifr
mov xcordi, ax
mov ax, hfr
mov xcordf, ax
mov colorOf, 07
call boxKap
;---2
mov si, offset Helth ;draw health of canon1
mov xcordi, 70
mov xcordf, 78
mov ycordi, 260
mov ycordf, 298
call drawKap
mov ax,xcordf
mov ycordf,ax
mov ax,xcordi
mov ycordi,ax
mov ax, hifc1
mov xcordi, ax
mov ax, hfc1
mov xcordf, ax
mov colorOf, 07
call boxKap
;--3
mov si, offset Helth ;draw health of canon2
mov xcordi, 110
mov xcordf, 118
mov ycordi, 260
mov ycordf, 298
call drawKap
mov ax,xcordf
mov ycordf,ax
mov ax,xcordi
mov ycordi,ax
mov ax, hifc2
mov xcordi, ax
mov ax, hfc2
mov xcordf, ax
mov colorOf, 07
call boxKap
;----------side health box/ status bar----
;1
mov xcordi, 230
mov xcordf, 320
mov ycordi, 0
mov ycordf, 3
mov colorOf, 8
call boxKap
;2
mov xcordi, 230
mov xcordf, 233
mov ycordi, 0
mov ycordf, 160
mov colorOf, 8
call boxKap
;3
mov xcordi, 317
mov xcordf, 320
mov ycordi, 0
mov ycordf, 160
mov colorOf, 8
call boxKap
;4
mov xcordi, 230
mov xcordf, 320
mov ycordi, 160
mov ycordf, 163
mov colorOf, 8
call boxKap
;5
mov xcordi, 230
mov xcordf, 320
mov ycordi, 120
mov ycordf, 123
mov colorOf, 8
call boxKap
;------------------strings of heath box-------
mov ch,2 ;write robot
mov cl,73
mov si, offset cman
call stringKap
mov ch,7 ;write canonA
mov cl,71
mov si, offset canon1
call stringKap
mov ch,12 ;write canonB
mov cl,71
mov si, offset canon2
call stringKap
mov ch,24 ;write neechy wali line
mov cl,0
mov si, offset ename
call stringKap
mov ch,24 ;write neechy wali line
mov cl,5
mov si, offset uname
call stringKap
;---bullet--
; mov si, offset BulletC ;draw bullet
; mov xcordi, 110
; mov xcordf, 121
; mov ycordi, 70
; mov ycordf, 76
; call drawKap
cnonn:
;------------------------------------------------------------------------------------------------------------------move canons--
;mov ah, 02h
; mov bh,00h
; mov dh,10 ;row k liye
; mov dl,3 ;column k liye
; int 10h
;mov dx, score
;mov ah, 02
;int 21h
;----------------- score display--------------------
mov ch,16 ;write score
mov cl,71
mov si, offset scor
call stringKap
mov ah,2 ;setting cursor to show score
mov bx,0
mov dh,69
mov dl,18
int 10h
mov ax,score
call scoreKaP
; ;/////////////////////////////
; mov ah,2 ;setting cursor to show score
; mov bx,0
; mov dh,70
; mov dl,20
; int 10h
; mov ax,hscore
; call scoreKaP
; ;///////////////////////////////
mov ah,0ch
mov al, 0h
int 21h
; Adding Time Delay
mov cx, 01H
.if(level > 0)
mov cx, 0
.endif
mov dx, 2120H
.if(level > 0)
mov dx, 9090H
.if(level > 1)
mov dx, 6060H
.endif
.endif
mov ah, 86H
int 15H
;--------shooting---
mov ah,2Ch
int 21h
mov time, dh
mov ah,0
mov al,dh
mov dl,5
div dl
.if(ah == 4 && movvcb1 == 0)
mov movvcb1,1
mov sound, 9121
mov cx, 0
call beep
.endif
mov ah,2Ch
int 21h
mov time, dh
mov ah,0
mov al,dh
mov dl,5
mov bx, level
sub dl, bl
div dl
.if(ah == 0 && movvcb2 == 0)
mov movvcb2,1
mov sound, 9121
mov cx, 0
call beep
.endif
;----------------------------extra life gand------------------------
.if(level < 2)
.if(helttimr == 0)
.if(heltcontr == 0)
mov ah,2Ch
int 21h
mov time, dl
mov ah,0
mov al,dh
mov dl,20
div dl
.endif
.if(ah == 9 && heltcontr == 0)
mov ah,2Ch
int 21h
;mov time, dl
mov ah,0
mov al,dh
mov dl, 3
mul dl
mov ycordi,ax
mov ycordf, ax
add ycordf, 9
mov helthx, ax
mov si, offset exHelth ;draw health of robot
mov xcordi, 132
mov xcordf, 138
;mov ycordi, 160
;mov ycordf, 169
call drawKap
mov heltcontr,1
.endif
.if(heltcontr == 60)
mov ax, helthx
mov xcordi, ax
mov xcordf, ax
add xcordf, 9
; mov xcordi, 160
; mov xcordf, 169
mov ycordi, 132
mov ycordf, 138
mov colorOf, 07
call boxKap
mov heltcontr, 0
.elseif(heltcontr > 0)
inc heltcontr
mov si, yxi
mov di, yxf
.if(helthx <= di && helthx >= si)
.if(hlos <= 10)
;add hfr, 4
add hifr, 4
;mov heltcontr, 0
mov helttimr, 60
mov helthx, 0
inc hlos
mov ax, hifr
mov xcordi, ax
mov xcordf, ax
sub xcordi, 3
mov ycordi, 30
mov ycordf, 38
mov colorOf, 04
call boxKap
.if(hlos > 7)
add hfr, 4
.endif
.else
.if(helttimr == 0)
inc score
mov helttimr, 60
mov helthx, 0
.endif
.endif
.endif
.endif
.else
dec helttimr
.endif
.endif
;-------canons
.if(hc1 > 0)
.if(yci1<=1)
mov movv1, 0
.endif
.if(yci1 >= 110)
mov movv1, 1
.endif
.endif
.if(hc2 > 0)
.if (yci2>=207)
mov movv2,1
.endif
.if(yci2 <= 133)
mov movv2, 0
.endif
.endif
.if(hc1 > 0)
.if (movv1==0)
jmp forwrd1
.elseif (movv1==1)
jmp bckwrd1
.endif
forwrd1:
inc ycf1
inc yci1
.if(movvcb1 == 0)
inc ybic1
inc ybfc1
.endif
; jmp input1
jmp contnuee1
bckwrd1:
dec ycf1
dec yci1
.if(movvcb1 == 0)
dec ybic1
dec ybfc1
.endif
; jmp input1
jmp contnuee1
contnuee1:
mov si, offset Canoon1 ;draw canon1
mov xcordi, 0
mov xcordf, 10
mov ax, yci1
mov ycordi, ax
mov ax, ycf1
mov ycordf, ax
call drawKap
.endif
.if(hc2 > 0)
.if(movv2 == 0)
jmp forwrd2
.elseif(movv2 == 1)
jmp bckwrd2
.endif
forwrd2:
inc ycf2
inc yci2
.if(movvcb2 == 0)
inc ybic2
inc ybfc2
.endif
jmp contnuee2
bckwrd2:
dec ycf2
dec yci2
.if(movvcb2 == 0)
dec ybic2
dec ybfc2
.endif
jmp contnuee2
contnuee2:
mov si, offset Canoon2 ;draw canon2
mov xcordi, 0
mov xcordf, 10
mov ax, yci2
mov ycordi, ax
mov ax, ycf2
mov ycordf, ax
call drawKap
.endif
.if(movvb==0)
jmp cnonnfire
.endif
contnuee3:
mov si, offset Bullet ;draw bullet again robot
mov ax, xbir
mov xcordi, ax
mov ax, xbfr
mov xcordf, ax
mov ax, ybir
mov ycordi, ax
mov ax, ybfr
mov ycordf, ax
call drawKap
sub xbfr, 3
sub xbir, 3
.if(xbir<=0)
mov movvb,0
mov ycordi,0
mov ycordf,12
mov ax, ybir
mov xcordi, ax
mov ax, ybfr
mov xcordf, ax
mov colorOf, 07
call boxKap
.endif
.if(hc1 > 0)
mov si, hifc1
mov di, 70
mov ax, ycf1
mov bx, yci1
mov cx, ybir
mov dx, xbfr
call DamageCanon
.endif
.if(hifc1 > si)
mov hifc1,si
dec hc1
.if(hc1 == 0)
mov ax, yci1
mov bx, ycf1
mov xcordi, ax
mov xcordf, bx
mov ycordi, 0
mov ycordf, 11
mov colorOf, 07
call boxKap
mov movvcb1, 0
.endif
.endif
.if(hc2 > 0)
mov si, hifc2
mov di, 110
mov ax, ycf2
mov bx, yci2
mov cx, ybir
mov dx, xbfr
call DamageCanon
.endif
.if(hifc2 > si)
mov hifc2,si
dec hc2
.if(hc2 == 0)
mov ax, yci2
mov bx, ycf2
mov xcordi, ax
mov xcordf, bx
mov ycordi, 0
mov ycordf, 11
mov colorOf, 07
call boxKap
mov movvcb2, 0
.endif
.endif
.if (hc1 == 0 && hc2 == 0)
call winKaP
.if(ax == 1)
jmp extt
.endif
inc level
call nayaLevelKap
jmp dispppp
.endif
;jmp cnonn
cnonnfire:
;----------cannon bullet drawing----
;1:
.if(movvcb1 == 1)
mov si, offset BulletC ;draw bullet again
mov ax, xbic1
mov xcordi, ax
mov ax, xbfc1
mov xcordf, ax
mov ax, ybic1
mov ycordi, ax
mov ax, ybfc1
mov ycordf, ax
call drawKap
add xbfc1, 3
add xbic1, 3
.if(xbfc1>=157)
mov movvcb1,0
mov ycordi,145
mov ycordf,157
mov xbic1,11
mov xbfc1,22
mov ax, ybic1
mov xcordi, ax
mov ax, ybfc1
mov xcordf, ax
mov ax, yci1
mov ybic1, ax
add ybic1,10
mov ybfc1,ax
add ybfc1, 16
mov colorOf, 07
call boxKap
.if(hc1 == 0)
mov movvcb1, 2
.endif
.endif
.endif
mov cx, ybic1
mov dx, xbfc1
call DamageRobo1
.if (hlos == 0)
call losKaP
jmp extt1
.endif
;2
.if(movvcb2 == 1)
mov si, offset BulletC ;draw bullet again
mov ax, xbic2
mov xcordi, ax
mov ax, xbfc2
mov xcordf, ax
mov ax, ybic2
mov ycordi, ax
mov ax, ybfc2
mov ycordf, ax
call drawKap
add xbfc2, 3
add xbic2, 3
.if(xbfc2>=157)
mov movvcb2,0
mov ycordi,145
mov ycordf,157
mov xbic2,11
mov xbfc2,22
mov ax, ybic2
mov xcordi, ax
mov ax, ybfc2
mov xcordf, ax
mov ax, yci2
mov ybic2, ax
add ybic2,10
mov ybfc2,ax
add ybfc2, 16
mov colorOf, 07
call boxKap
.if(hc2 == 0)
mov movvcb2, 2
.endif
.endif
.endif
mov cx, ybic2
mov dx, xbfc2
call DamageRobo2
.if (hlos == 0)
call losKaP
jmp extt1
.endif
input1:
mov ah,01h
int 16h
;---------------------------------------------------------------robot left right q(4Bh) w(4Dh) for now---
cmp ah,4Bh
je goLeft
cmp ah, 4Dh
je goRight
cmp ah, 48h ;up arrow key
je shoot
cmp al, 'e' ;escape key
je extt
.if( al == 20h) ;spacebar
mov ah, 0ch
int 21h
jmp pauseL
.endif
jmp cnonn
shoot:
mov si, offset Bullet ;draw bullet
.if(movvb == 0)
mov xcordi, 118
mov xcordf, 130
mov xbir, 118
mov xbfr, 130
mov ax, shotr
sub ax, 3
mov ycordi, ax
mov ybir ,ax
mov ax, shotr
add ax, 3
mov ycordf, ax
mov ybfr, ax
call drawKap
mov movvb,1
mov sound, 2280
mov cx, 1
call beep
; jmp contnuee3
.endif
jmp cnonn
goLeft:
mov si, offset robut ;draw robot again
mov xcordi, 130
mov xcordf, 160
.if(yxi>3)
sub yxi,3
sub yxf,3
sub shotr,3
jmp contnuee
.endif
jmp cnonn
goRight:
mov si, offset robut ;draw robot
mov xcordi, 130
mov xcordf, 160
.if (yxf<227)
add yxi,3
add yxf,3
add shotr,3
jmp contnuee
.endif
contnuee:
mov ax, yxi
mov ycordi, ax
mov ax, yxf
mov ycordf, ax
call drawKap
jmp cnonn
;=====================================================================PAUSE============================================
pauseL:
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ch,9 ;write you pause
mov cl,54
mov si, offset pose
call stringKap
mov movv1,2
mov movv2,2
mov movvb,0
mov movvcb1,0
mov movvcb2,0
input:
mov ah,01h
int 16h
cmp al,20h ;spacebar
je resume
mov ah, 0ch
int 21h
jmp pauseL
resume:
; mov movv1,1
; mov movv2,1
; mov movvb,1
; mov movvcb1,1
; mov movvcb2,1
jmp dispppp
;********************************************************************************************************************************
extt:
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ch,5
mov cl,50
mov si, offset endd
call stringKap
extt1:
; Adding Time Delay
mov cx, 13H
mov dx, 4240H
mov ah, 86H
int 15H
mov ax,score
.if(hscore<ax)
mov hscore,ax
.endif
call hsKaP
call readKaP
mov si, offset buffer
mov ax,[si+14]
add ax,30h
mov hss,ax
mov ax,hscore
;.if(hss<ax)
mov hss,ax
call hsKaP
;.endif
mov ah,04ch
int 21h
main endp
;====================================================================================PROCEDURES================================
;------------------------------------------------------------------------damage detection---------------------
DamageRobo1 proc
.if (cx<=yxf && cx>=yxi && dx>=130)
mov ycordi, 30
mov ycordf, 38
mov ax, hfr
mov xcordf, ax
mov ax, hifr
mov xcordi, ax
sub xcordi, 4
sub hifr, 4
mov colorOf, 07 ;draw box over lives
call boxKap
.if(level == 2)
mov ax, hfr
mov xcordf, ax
mov ax, hifr
mov xcordi, ax
sub xcordi, 4
sub hifr, 4
mov colorOf, 07 ;draw box over lives
call boxKap
dec hlos
.if(hlos == 0)
ret
.endif
.endif
mov ax, xbic1
mov ycordi, ax
mov ax,xbfc1
mov ycordf,ax
mov xbic1,11
mov xbfc1,22
mov ax, ybic1
mov xcordi, ax
mov ax, ybfc1
mov xcordf, ax
mov ax, yci1
mov ybic1, ax
add ybic1,10
mov ybfc1,ax
add ybfc1, 16
mov colorOf, 07 ;hide bullet
call boxKap
;dec score
dec hlos
mov sound, 8609
mov cx, 2
call beep
.endif
ret
DamageRobo1 endp
DamageRobo2 proc
.if (cx<=yxf && cx>=yxi && dx>=130)
mov ycordi, 30
mov ycordf, 38
mov ax, hfr
mov xcordf, ax
mov ax, hifr
mov xcordi, ax
sub xcordi, 4
sub hifr, 4
mov colorOf, 07 ;draw box over lives
call boxKap
.if(level == 2)
mov ax, hfr
mov xcordf, ax
mov ax, hifr
mov xcordi, ax
sub xcordi, 4
sub hifr, 4
mov colorOf, 07 ;draw box over lives
call boxKap
dec hlos
.if(hlos == 0)
ret
.endif
.endif
mov ax, xbic2
mov ycordi, ax
mov ax,xbfc2
mov ycordf,ax
mov xbic2,11
mov xbfc2,22
mov ax, ybic2
mov xcordi, ax
mov ax, ybfc2
mov xcordf, ax
mov ax, yci2
mov ybic2, ax
add ybic2,10
mov ybfc2,ax
add ybfc2, 16
mov colorOf, 07 ;hide bullet
call boxKap
;dec score
dec hlos
mov sound, 8609
mov cx, 2
call beep
.endif
ret
DamageRobo2 endp
DamageCanon proc
.if (cx<=ax && cx>=bx && dx<=10)
mov ycordi, di
mov ycordf, di
add ycordf, 8
mov xcordf, 298
mov cx, level
l2health:
add xcordf, 4
loop l2health
sub si, 4
mov ax, si
mov xcordi, ax
mov colorOf, 07 ;draw box over lives
call boxKap
mov ax, xbir
mov ycordi, ax
mov ax,xbfr
mov ycordf,ax
mov xbir,118
mov xbfr,130
mov ax, ybir
mov xcordi, ax
mov ax, ybfr
mov xcordf, ax
mov ax, shotr
mov ybir, ax
sub ybir,3
mov ybfr,ax
add ybfr, 3
mov colorOf, 07 ;hide bullet
call boxKap
; .if(
inc score
mov sound, 1140
mov cx, 3
call beep
.endif
ret
DamageCanon endp
;--------------------------------------------------------------------------------Write string------------
stringKap proc
mov ah,02h
mov bh,0 ;color
mov dh,ch ;y coordinate (left right)
mov dl,cl ;x coordinate (up down)
int 10h
lea dx , [si] ;string variable
mov ah , 9
int 21h
ret
stringKap endp
;-----------------------------------------------------------------------------Draw strings (characters)--------
drawKap proc
mov ah,0ch
mov dx, xcordi ; x coordinate initial( up down)
ywala333:
mov cx, ycordi ;y coordinate initial (left right)
xwala333:
mov al,[si]
int 10h
inc si
inc cx
cmp cx, ycordf ; y coordinate final( left right)
jb xwala333
inc dx
cmp dx, xcordf ; x coordinate final( up down)
jb ywala333
ret
drawKap endp
;------------------------------------------------------------------------------Draw box--------------
boxKap proc
mov ah, 0ch
mov dx, ycordi ;(up down)
dradbba1:
mov cx,xcordi ;(left right)
linebg1:
mov al, colorOf ;color Of box
int 10h
inc cx
cmp cx,xcordf
jl linebg1
inc dx
cmp dx,ycordf
jl dradbba1
ret
boxKap endp
;=====================================================LOSER SCREEN============================================================
losKaP proc
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ch,9 ;write you win
mov cl,54
mov si, offset los
call stringKap
mov sound, 3224
mov cx, 2
call beep
mov sound, 1436
mov cx, 5
call beep
mov sound, 1140
mov cx, 12
call beep
; Adding Time Delay
mov cx, 03H
mov dx, 4240H
mov ah, 86H
int 15H
ret
losKaP endp
;---------------------------------------------WIN KA P------------------------------
winKaP proc
mov xcordi, 0
mov xcordf, 320
mov ycordi, 0
mov ycordf, 200
mov colorOf, 0
call boxKap
mov ch,9 ;write you win
mov cl,54
mov si, offset win
call stringKap
mov sound, 7239
mov cx, 2
call beep
mov sound, 8126
mov cx, 4
call beep
mov sound, 9121
mov cx, 7
call beep
; Adding Time Delay
mov cx, 03H
mov dx, 4240H
mov ah, 86H
int 15H
mov ah, 0ch
int 21h
.if(level < 2)
mov ch,15 ;write you win
mov cl,2
mov si, offset lstring
call stringKap
mov ah, 07
int 21h
.if(al != 13)
mov ax, 1
.endif
ret
.endif
mov ax, 1
ret
winKaP endp
;----------------------------SCORE---------------------------------
scoreKaP proc
mov bx, 10
mov dx, 0000h
mov cx, 0000h
x1:
mov dx, 0000h
div bx
push dx
inc cx
cmp ax, 0
jne x1
x2:
pop dx
add dx, 30h
mov ah, 02h
int 21h
loop x2
ret
scoreKaP endp
;-------------------------------------------------highscore--------------------------------------------
hsKaP proc
;//////////////////////////////////////////////////DATE/////////////////////////////////////////
mov si,offset date
mov ah,2Ah ;get date: date in dl, month in dh, year in cx
int 21h
mov ah,0
mov al,dl ;hours
mov bx, 10 ;initializes divisor
mov dx, 0000h ;clears dx
mov cx, 0000h ;clears cx
l1:
mov dx, 0000h ;clears dx during jump
div bx ;divides ax by bx
push dx ;pushes dx(remainder) to stack
inc cx ;increments counter to track the number of digits
cmp ax, 0 ;checks if there is still something in ax to divide
jne l1 ;jumps if ax is not zero
l2:
pop dx ;pops from stack to dx
add dx, 30h ;converts to it's ascii equivalent
mov [si],dx
inc si
loop l2
mov bx,oof ;print :
mov [si],bx
inc si
mov ah,2Ah
int 21h
add dh,48
mov [si],dh ;month
inc si
mov bx,oof ;print :
mov [si],bx
inc si
mov ax,cx
mov bx, 10
mov dx, 0000h
mov cx, 0000h
l3:
mov dx, 0000h
div bx
push dx
inc cx
cmp ax, 0
jne l3
l4:
pop dx
add dx, 30h
mov [si],dx
inc si
loop l4
;///////////////////////////////////////////TIME///////////////////////////////////////
mov si,offset ttime
mov ah,2Ch ;hour: ch, minute cl, seconds dh
int 21h
mov ah,0
mov al,ch ;hours
mov bx, 10
mov dx, 0000h
mov cx, 0000h
l5:
mov dx, 0000h
div bx
push dx
inc cx
cmp ax, 0
jne l5
l6:
pop dx
add dx, 30h
mov [si],dx
inc si
loop l6
mov bx,oof ;print :
mov [si],bx
inc si
mov ah,2Ch
int 21h
mov ah,0
mov al,cl ;minutes
mov bx, 10
mov dx, 0000h
mov cx, 0000h
l7:
mov dx, 0000h
div bx
push dx
inc cx
cmp ax, 0
jne l7
l8:
pop dx
add dx, 30h
mov [si],dx
inc si
loop l8
mov bx,oof ;print :
mov [si],bx
inc si
mov ah,2Ch
int 21h
mov ah,0
mov al,dh ;seconds
mov bx, 10
mov dx, 0000h
mov cx, 0000h
l9:
mov dx, 0000h
div bx
push dx
inc cx
cmp ax, 0
jne l9
l10:
pop dx
add dx, 30h
mov [si],dx
inc si
loop l10
;opening an existing file
mov ah,3dh
mov dx,offset [fname]
mov al,1
int 21h
mov handle1,ax
;File Pointer end of file
mov cx,0
mov ah, 42h ; Move file pointer
mov al, 02h ; End of File
int 21h
mov ah,40h
mov bx,handle1
mov cx,50
add hss,48
mov dx,offset[sstring]
int 21h
mov ah,3eh
mov dx,handle1
int 21h
mov dx,offset[hss]
int 21h
mov ah,3eh
mov dx,handle1
int 21h
ret
hsKaP endp
readKaP proc
;LOAD FILE HANDLE
lea dx, fname ; Load address of String “file”
mov al, 0 ; Open file (read)
mov ah, 3Dh ; Load File Handler and store in ax
int 21h
mov handle, ax
;READ FROM FILE
mov bx, handle ; Move file Handle to bx
lea dx, buffer
mov ah, 3Fh ; Function to read from file
int 21h
;CLOSE FILE HANDLE
mov ah, 3Eh
mov bx, handle
int 21h
ret
readKaP endp
;==================================================================Sound===============================
beep proc
mov al, 182
out 43h, al
mov ax, sound
out 42h, al
mov al, ah
out 42h, al
in al, 61h
or al, 3
out 61h, al
;mov cx, 3h
mov dx, 4240h
mov ah, 86h
int 15h
in al, 61h
and al, 11111100b
out 61h, al
ret
beep endp
nayaLevelKap proc
mov hlos, 7
mov hc1, 7
mov hc2, 7
mov ax, level
mov cx, level
add hc1, ax
add hc2, ax
mov hifr, 298
mov hfr, 298
mov hfc1, 298
mov hfc2, 298
mov movv1, 0
mov movv2, 1
mov movvb, 0
mov movvcb1, 0
mov movvcb2, 0
mov hifc1, 298
mov hifc2, 298
lhealth:
add hifc1, 4
add hifc2, 4
add hfc1, 4
add hfc2, 4
loop lhealth
; x y of bullets initial/final canon 1/2
mov xbic1,11
mov xbfc1,22
mov ax, yci1
add ax, 10
mov ybic1, ax
add ax, 6
mov ybfc1, ax
mov xbic2, 11
mov xbfc2, 22
mov ax, yci2
add ax, 10
mov ybic2, ax
add ax, 6
mov ybfc2, 6
; x/y bulets initial/final robot
mov xbir, 118
mov xbfr, 130
mov ybir, 80
mov ybfr, 86
ret
nayaLevelKap endp
end main |
oeis/185/A185963.asm | neoneye/loda-programs | 11 | 82056 | <reponame>neoneye/loda-programs
; A185963: Row sums of number triangle A185962.
; Submitted by <NAME>(s1.)
; 1,0,-2,-3,0,7,11,1,-24,-40,-7,82,145,37,-279,-524,-174,945,1888,767,-3185,-6783,-3244,10676,24301,13330,-35567,-86823,-53615,117672,309366,212101,-386224,-1099385,-827997,1255937,3896480,3197152,-4039199,-13773374,-12231999,12816925,48556473,46430172,-39992150,-170718343,-175030064,122102751,598577351,655816385,-361996532,-2092864868,-2443923755,1028750562,7296407521,9062639601,-2735192799,-25361896880,-33455575762,6439346317,87883523040,122993431367,-11224360069,-303545491199,-450424470824
mov $3,1
lpb $0
sub $0,1
add $1,$3
add $2,$3
sub $3,$1
add $1,$2
lpe
mov $0,$3
|
testsuite/tests/NA17-007__EOL_at_EOF/asistant-funcenum.ads | AdaCore/style_checker | 2 | 4453 | <reponame>AdaCore/style_checker
------------------------------------------------------------------------------
-- --
-- ASIS Tester And iNTerpreter (ASIStant) COMPONENTS --
-- --
-- A S I S T A N T . F U N C E N U M --
-- --
-- S p e c --
-- --
-- Copyright (c) 1997-2006, Free Software Foundation, Inc. --
-- --
-- ASIStant 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 2, or (at your option) any later --
-- version. ASIStant is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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. --
-- --
-- ASIStant is an evolution of ASIStint tool that was created by --
-- <NAME> as part of a collaboration between Software Engineering --
-- Laboratory of the Swiss Federal Institute of Technology in Lausanne, --
-- Switzerland, and the Scientific Research Computer Center of the Moscow --
-- University, Russia, supported by the Swiss National Science Foundation --
-- grant #7SUPJ048247, "Development of ASIS for GNAT with industry quality" --
-- --
-- ASIStant is distributed as a part of the ASIS implementation for GNAT --
-- (ASIS-for-GNAT) and is maintained by Ada Core Technologies Inc --
-- (http://www.gnat.com). --
------------------------------------------------------------------------------
with ASIStant.Table; use ASIStant.Table;
package ASIStant.FuncEnum is
------------------------------------------------------------------------------
-- ASIS queries enumeration and template information
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- All ASIS 95 queries must be supported, except a generic query
-- Traverse_Element. Failure to recognize any query which is not in the
-- Open Problems List is a bug, and the corresponding bug report will
-- be greatly appreciated.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- OPEN PROBLEMS LIST (not implemented queries)
-- Traverse_Element not supported due to major conceptual limitations
-- Asis.Implementation.Set_Status
-- package Asis.Ada_Environments.Containers (all queries & types)
-- Asis.Compilation_Units.Enclosing_Container
-- package Asis.Compilation_Units.Times
-- package Asis.Ids
-- package Asis.Data_Decomposition and <...>.Portable_Transfer
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- For brevity sake, the following convention is used to identify a query
-- profile: the types of query parameters are written one after another in
-- an abbreviated form, then the portion Ret<Return Type Abbreviation> is
-- appended. Below is a list of abbreviations:
-- Bool - Boolean
-- Ctx - Asis.Context
-- CUnit - Asis.Compilation_Unit
-- CUnitList - Asis.Compilation_Unit_List
-- DDA_ArrC - DDA.Array_Component
-- DDA_ArrCList - DDA.Array_Component_List
-- DDA_RecC - DDA.Record_Component
-- DDA_RecCList - DDA.Record_Component_List
-- Elem - Asis.Element
-- ElemList - Asis.Element_List
-- Int - Integer/Asis.Asis_Integer
-- Line - Asis.Text.Line
-- LineList - Asis.Text.Line_List
-- Null - (RetNull) Procedure
-- Relship - Asis.Compilation_Units.Relationship
-- Span - Asis.Text.Span
--
-- FOR EXAMPLE, the profile
-- (C : Asis.Compilation_Unit; I : Integer) return Asis.Element_List
-- will be represented as
-- CUnitIntRetElemList
------------------------------------------------------------------------------
-- Enumeration of all queries
type Switch_Index is (
-- Placeholder
Invalid_Index,
-- CtxRetBool
Exists,
Is_Open,
Has_Associations,
-- CtxRetCUnitList
Compilation_Unit_Bodies,
Compilation_Units,
Library_Unit_Declarations,
-- CtxRetElemList
Configuration_Pragmas,
-- CtxRetNull
Close,
Dissociate,
Open,
-- CtxRetString
Debug_Image_Ctx,
Name,
Parameters,
-- CtxStringStringRetNull
Associate,
-- CUnitBoolRetElemList
Context_Clause_Elements,
-- CUnitCtxRetCUnit
Corresponding_Body_CU_Ctx,
Corresponding_Declaration_CU_Ctx,
Corresponding_Parent_Declaration_Ctx,
Corresponding_Subunit_Parent_Body_Ctx,
-- CUnitCtxRetCUnitList
Corresponding_Children_Ctx,
Subunits_Ctx,
-- CUnitCUnitRetBool
Is_Equal_CU,
Is_Identical_CU,
-- CUnitIntIntRetElem
Find_Element,
-- CUnitListCtxRetRelship
Elaboration_Order,
-- CUnitListCUnitListCtxStringRetRelship
Semantic_Dependence_Order,
-- CUnitListRetBool
Is_Nil_CUL,
-- CUnitRetBool
Can_Be_Main_Program,
Exists_CU,
Is_Body_Required,
Is_Nil_CU,
-- CUnitRetCtx
Enclosing_Context,
-- CUnitRetCUnit
Corresponding_Body_CU,
Corresponding_Declaration_CU,
Corresponding_Parent_Declaration,
Corresponding_Subunit_Parent_Body,
-- CUnitRetCUnitList
Corresponding_Children,
Subunits,
-- CUnitRetElem
Browse_CU,
Unit_Declaration,
-- CUnitRetElemList
Compilation_Pragmas,
-- CUnitRetString
Compilation_Command_Line_Options,
Debug_Image_CU,
Object_Form,
Object_Name,
Text_Form,
Text_Name,
Unit_Class,
Unit_Full_Name,
Unit_Kind,
Unit_Origin,
Unique_Name,
-- CUnitStringRetATime
Attribute_Time,
-- CUnitStringRetBool
Has_Attribute,
-- CUnitStringRetString
Attribute_Values,
-- DDA_ArrCRetDDA_ArrC
DDA_Array_Components_2,
-- DDA_ArrCRetDDA_RecCList
DDA_Discriminant_Components_2,
DDA_Record_Components_2,
-- DDA_ArrCRetElem
DDA_Component_Indication,
-- DDA_RecCRetDDA_ArrC
DDA_Array_Components_1,
-- DDA_RecCRetDDA_RecCList
DDA_Discriminant_Components_1,
DDA_Record_Components_1,
-- DDA_RecCRetElem
DDA_Component_Declaration,
-- ElemBoolRetElemList
Accept_Body_Exception_Handlers,
Accept_Body_Statements,
Block_Declarative_Items,
Block_Exception_Handlers,
Block_Statements,
Body_Declarative_Items,
Body_Exception_Handlers,
Body_Statements,
Call_Statement_Parameters,
Component_Clauses,
Discriminant_Associations,
Extended_Return_Exception_Handlers, -- ASIS 2005
Extended_Return_Statements, -- ASIS 2005
Function_Call_Parameters,
Generic_Actual_Part,
Generic_Formal_Part,
Handler_Statements,
Loop_Statements,
Private_Part_Declarative_Items,
Private_Part_Items,
Protected_Operation_Items,
Record_Component_Associations,
Record_Components,
Sequence_Of_Statements,
Statement_Paths,
Variants,
Visible_Part_Declarative_Items,
Visible_Part_Items,
-- ElemCtxRetElem
Corresponding_Body_Ctx,
Corresponding_Body_Stub_Ctx,
Corresponding_Declaration_Ctx,
Corresponding_Subunit_Ctx,
Corresponding_Type_Declaration_Ctx,
-- ElemElemBoolRetBool
Is_Referenced,
-- ElemElemBoolRetElemList
References,
-- ElemElemRetBool
Is_Equal,
Is_Identical,
-- ElemElemRetElem
Enclosing_Element_EEE,
-- ElemIntIntRetLineList
Lines_2,
-- ElemListRetBool
Is_Nil_EL,
-- ElemRetBool
Declarations_Is_Private_Present,
Definitions_Is_Private_Present,
Is_Declare_Block,
Is_Defaulted_Association,
Declarations_Is_Name_Repeated,
Statements_Is_Name_Repeated,
Is_Nil,
Is_Not_Null_Return, -- ASIS 2005
Is_Not_Overriding_Declaration, -- ASIS 2005
Is_Normalized,
Is_Overriding_Declaration, -- ASIS 2005
Is_Part_Of_Implicit,
Is_Part_Of_Inherited,
Is_Part_Of_Instance,
Is_Prefix_Call,
Is_Prefix_Notation, -- ASIS 2005
Is_Private_Present,
Is_Subunit,
Is_Text_Available,
-- ElemRetCUnit
Enclosing_Compilation_Unit,
-- ElemRetDDA_ArrC
DDA_Array_Components,
-- ElemRetDDA_RecCList
DDA_Discriminant_Components,
DDA_Record_Components,
-- ElemRetElem
Accept_Entry_Direct_Name,
Accept_Entry_Index,
Access_To_Function_Result_Profile,
Access_To_Object_Definition,
Actual_Parameter,
Allocator_Qualified_Expression,
Allocator_Subtype_Indication,
Ancestor_Subtype_Indication,
Anonymous_Access_To_Object_Subtype_Mark, -- ASIS 2005
Array_Component_Definition,
Assignment_Expression,
Assignment_Variable_Name,
Associated_Message, -- ASIS 2005
Attribute_Designator_Identifier,
Body_Block_Statement,
Browse,
Called_Name,
Case_Expression,
Choice_Parameter_Specification,
Component_Clause_Position,
Component_Clause_Range,
Component_Definition_View, -- ASIS 2005
Component_Expression,
Component_Subtype_Indication,
Condition_Expression,
Converted_Or_Qualified_Expression,
Converted_Or_Qualified_Subtype_Mark,
Corresponding_Base_Entity,
Corresponding_Body,
Corresponding_Body_Stub,
Corresponding_Called_Entity,
Corresponding_Called_Function,
Corresponding_Constant_Declaration,
Corresponding_Declaration,
Corresponding_Destination_Statement,
Corresponding_Entry,
Corresponding_Equality_Operator,
Corresponding_Expression_Type,
Corresponding_Expression_Type_Definition, -- ASIS 2005
Corresponding_First_Subtype,
Corresponding_Generic_Element,
Corresponding_Last_Constraint,
Corresponding_Last_Subtype,
Corresponding_Loop_Exited,
Corresponding_Name_Declaration,
Corresponding_Name_Definition,
Corresponding_Parent_Subtype,
Corresponding_Root_Type,
Corresponding_Subprogram_Derivation,
Corresponding_Subunit,
Corresponding_Type,
Corresponding_Type_Declaration,
Corresponding_Type_Structure,
Declaration_Subtype_Mark,
Defining_Prefix,
Defining_Selector,
Delay_Expression,
Delta_Expression,
Digits_Expression,
Discriminant_Direct_Name,
Discriminant_Expression,
Discriminant_Part,
Enclosing_Element,
Entry_Barrier,
Entry_Family_Definition,
Entry_Index_Specification,
Exit_Condition,
Exit_Loop_Name,
Expression_Parenthesized,
Extension_Aggregate_Expression,
For_Loop_Parameter_Specification,
Formal_Parameter,
Formal_Subprogram_Default,
Generic_Unit_Name,
Goto_Label,
Guard,
Initialization_Expression,
Integer_Constraint,
Lower_Bound,
Membership_Test_Expression,
Membership_Test_Range,
Membership_Test_Subtype_Mark,
Mod_Clause_Expression,
Mod_Static_Expression,
Object_Declaration_View,
Parent_Subtype_Indication,
Prefix,
Qualified_Expression,
Raised_Exception,
Range_Attribute,
Real_Range_Constraint,
Record_Definition,
Renamed_Entity,
Representation_Clause_Expression,
Representation_Clause_Name,
Requeue_Entry_Name,
Result_Profile,
Return_Expression,
Return_Object_Declaration, -- ASIS 2005
Selector,
Short_Circuit_Operation_Left_Expression,
Short_Circuit_Operation_Right_Expression,
Slice_Range,
Specification_Subtype_Definition,
Statement_Identifier,
Subtype_Constraint,
Subtype_Mark,
Type_Declaration_View,
Upper_Bound,
While_Condition,
-- ElemRetElemList
Aborted_Tasks,
Accept_Parameters,
Access_To_Subprogram_Parameter_Profile,
Array_Component_Associations,
Array_Component_Choices,
Attribute_Designator_Expressions,
Case_Statement_Alternative_Choices,
Clause_Names,
Corresponding_Name_Definition_List,
Corresponding_Pragmas,
Corresponding_Representation_Clauses,
Corresponding_Type_Operators,
DDA_All_Named_Components,
Declaration_Interface_List, -- ASIS 2005
Definition_Interface_List, -- ASIS 2005
Discrete_Ranges,
Discrete_Subtype_Definitions,
Discriminant_Selector_Names,
Discriminants,
Enumeration_Literal_Declarations,
Exception_Choices,
Implicit_Components,
Implicit_Inherited_Declarations,
Implicit_Inherited_Subprograms,
Index_Expressions,
Index_Subtype_Definitions,
Label_Names,
Names,
Parameter_Profile,
Pragma_Argument_Associations,
Pragmas,
Record_Component_Choices,
Variant_Choices,
-- ElemRetInt
First_Line_Number,
Hash,
Last_Line_Number,
-- ElemRetLineList
Lines,
-- ElemRetSpan
Compilation_Span,
Compilation_Unit_Span,
Element_Span,
-- ElemRetString (mainly additional queries to cover enum results)
Access_Type_Kind,
Association_Kind,
Attribute_Kind,
Clause_Kind,
Constraint_Kind,
Debug_Image,
Declaration_Kind,
Declaration_Origin,
Default_Kind,
Defining_Name_Image,
Defining_Name_Kind,
Definition_Kind,
Discrete_Range_Kind,
Element_Image,
Element_Kind,
Expression_Kind,
Formal_Type_Kind,
Interface_Kind, -- ASIS 2005
Mode_Kind,
Name_Image,
Operator_Kind,
Path_Kind,
Position_Number_Image,
Pragma_Kind,
Pragma_Name_Image,
Representation_Clause_Kind,
Representation_Value_Image,
Root_Type_Kind,
Statement_Kind,
Trait_Kind,
Type_Kind,
Value_Image,
-- ElemSpanRetLineList
Lines_1,
-- IntIntRetBool
Eq,
Gt,
Lt,
-- IntIntRetInt
Add,
Sub,
-- LineRetString
Comment_Image,
Debug_Image_L,
Line_Image,
Non_Comment_Image,
-- RelshipRetCUnitList
Consistent,
Inconsistent,
Missing,
Circular,
-- RetBool
Attributes_Are_Supported,
Default_In_Mode_Supported,
Discriminant_Associations_Normalized,
Function_Call_Parameters_Normalized,
Generic_Actual_Part_Normalized,
Generic_Macro_Expansion_Supported,
Implicit_Components_Supported,
Inherited_Declarations_Supported,
Inherited_Subprograms_Supported,
Is_Commentary_Supported,
Is_Finalized,
Is_Formal_Parameter_Named_Notation_Supported,
Is_Initialized,
Is_Line_Number_Supported,
Is_Prefix_Call_Supported,
Is_Span_Column_Position_Supported,
Object_Declarations_Normalized,
Predefined_Operations_Supported,
Record_Component_Associations_Normalized,
-- RetCUnit
Nil_Compilation_Unit,
-- RetCUnitList
Nil_Compilation_Unit_List,
-- RetElem
Nil_Element,
-- RetElemList
Nil_Element_List,
-- RetLine
Nil_Line,
-- RetRelship
Nil_Relationship,
-- RetSpan
Nil_Span,
-- RetString
Asis_Implementor,
Asis_Implementor_Information,
Asis_Implementor_Version,
Asis_Version,
Attribute_Value_Delimiter,
Default_Name,
Default_Parameters,
Delimiter_Image,
Diagnosis,
Status,
-- SpanRetBool
Is_Nil_Sp,
-- SpanRetInt
First_Column,
First_Line,
Last_Column,
Last_Line,
-- StringCtxRetCUnit
Compilation_Unit_Body,
Library_Unit_Declaration,
-- StringRetNull
Finalize,
Initialize,
-- StringStringRetBool
Eq_SS,
Gt_SS,
Lt_SS,
-- StringStringRetString
Concat
);
subtype Func_Param is Var_Type;
type Profile_Range is new Integer range 0 .. 4;
type Func_Syntax is array (Profile_Range) of Func_Param;
-- 0 is the type of return value, 1..4 - of params 1..4
type Switch_Node is record
From, To : Switch_Index;
SelectID : Positive;
Synt : Func_Syntax;
end record;
SI_LENGTH : constant Natural := 68;
Switch_Info : array (1 .. SI_LENGTH) of Switch_Node := (
-- CtxRetBool
(Exists, Has_Associations, 10,
(Par_Boolean, Par_Context, Par_Absent, Par_Absent, Par_Absent)),
-- CtxRetCUnitList
(Compilation_Unit_Bodies, Library_Unit_Declarations, 20,
(Par_CUnitList, Par_Context, Par_Absent, Par_Absent, Par_Absent)),
-- CtxRetElemList
(Configuration_Pragmas, Configuration_Pragmas, 30,
(Par_ElemList, Par_Context, Par_Absent, Par_Absent, Par_Absent)),
-- CtxRetNull
(Close, Open, 40,
(Par_Absent, Par_Context, Par_Absent, Par_Absent, Par_Absent)),
-- CtxRetString
(Debug_Image_Ctx, Parameters, 50,
(Par_String, Par_Context, Par_Absent, Par_Absent, Par_Absent)),
-- CtxStringStringRetNull
(Associate, Associate, 60,
(Par_Absent, Par_Context, Par_String, Par_String, Par_Absent)),
-- CUnitBoolRetElemList
(Context_Clause_Elements, Context_Clause_Elements, 70,
(Par_ElemList, Par_CUnit, Par_Boolean, Par_Absent, Par_Absent)),
-- CUnitCtxRetCUnit
(Corresponding_Body_CU_Ctx, Corresponding_Subunit_Parent_Body_Ctx, 80,
(Par_CUnit, Par_CUnit, Par_Context, Par_Absent, Par_Absent)),
-- CUnitCtxRetCUnitList
(Corresponding_Children_Ctx, Subunits_Ctx, 90,
(Par_CUnitList, Par_CUnit, Par_Context, Par_Absent, Par_Absent)),
-- CUnitCUnitRetBool
(Is_Equal_CU, Is_Identical_CU, 93,
(Par_Boolean, Par_CUnit, Par_CUnit, Par_Absent, Par_Absent)),
-- CUnitIntIntRetElem
(Find_Element, Find_Element, 95,
(Par_Element, Par_CUnit, Par_Integer, Par_Integer, Par_Absent)),
-- CUnitListCtxRetRelship
(Elaboration_Order, Elaboration_Order, 97,
(Par_Relationship, Par_CUnitList, Par_Context, Par_Absent, Par_Absent)),
-- CUnitListCUnitListCtxStringRetRelship
(Semantic_Dependence_Order, Semantic_Dependence_Order, 98,
(Par_Relationship, Par_CUnitList, Par_CUnitList, Par_Context, Par_String)
),
-- CUnitListRetBool
(Is_Nil_CUL, Is_Nil_CUL, 100,
(Par_Boolean, Par_CUnitList, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetBool
(Can_Be_Main_Program, Is_Nil_CU, 110,
(Par_Boolean, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetCtx
(Enclosing_Context, Enclosing_Context, 120,
(Par_Context, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetCUnit
(Corresponding_Body_CU,
Corresponding_Subunit_Parent_Body, 130,
(Par_CUnit, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetCUnitList
(Corresponding_Children, Subunits, 140,
(Par_CUnitList, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetElem
(Browse_CU, Unit_Declaration, 150,
(Par_Element, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetElemList
(Compilation_Pragmas, Compilation_Pragmas, 160,
(Par_ElemList, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitRetString
(Compilation_Command_Line_Options, Unique_Name, 180,
(Par_String, Par_CUnit, Par_Absent, Par_Absent, Par_Absent)),
-- CUnitStringRetATime
(Attribute_Time, Attribute_Time, 190,
(Par_ATime, Par_CUnit, Par_String, Par_Absent, Par_Absent)),
-- CUnitStringRetBool
(Has_Attribute, Has_Attribute, 200,
(Par_Boolean, Par_CUnit, Par_String, Par_Absent, Par_Absent)),
-- CUnitStringRetString
(Attribute_Values, Attribute_Values, 210,
(Par_String, Par_CUnit, Par_String, Par_Absent, Par_Absent)),
-- DDA_ArrCRetDDA_ArrC
(DDA_Array_Components_2, DDA_Array_Components_2, 212,
(Par_DDA_Array_Component, Par_DDA_Array_Component, Par_Absent,
Par_Absent, Par_Absent)),
-- DDA_ArrCRetDDA_RecCList
(DDA_Discriminant_Components_2, DDA_Record_Components_2, 214,
(Par_DDA_Record_Component_List, Par_DDA_Array_Component, Par_Absent,
Par_Absent, Par_Absent)),
-- DDA_ArrCRetElem
(DDA_Component_Indication, DDA_Component_Indication, 216,
(Par_Element, Par_DDA_Array_Component, Par_Absent, Par_Absent,
Par_Absent)),
-- DDA_RecCRetDDA_ArrC
(DDA_Array_Components_1, DDA_Array_Components_1, 217,
(Par_DDA_Array_Component, Par_DDA_Record_Component, Par_Absent,
Par_Absent, Par_Absent)),
-- DDA_RecCRetDDA_RecCList
(DDA_Discriminant_Components_1, DDA_Record_Components_1, 218,
(Par_DDA_Record_Component_List, Par_DDA_Record_Component, Par_Absent,
Par_Absent, Par_Absent)),
-- DDA_RecCRetElem
(DDA_Component_Declaration, DDA_Component_Declaration, 219,
(Par_Element, Par_DDA_Record_Component, Par_Absent, Par_Absent,
Par_Absent)),
-- ElemBoolRetElemList
(Accept_Body_Exception_Handlers, Visible_Part_Items, 220,
(Par_ElemList, Par_Element, Par_Boolean, Par_Absent, Par_Absent)),
-- ElemCtxRetElem
(Corresponding_Body, Corresponding_Type_Declaration_Ctx, 230,
(Par_Element, Par_Element, Par_Context, Par_Absent, Par_Absent)),
-- ElemElemBoolRetBool
(Is_Referenced, Is_Referenced, 240,
(Par_Boolean, Par_Element, Par_Element, Par_Boolean, Par_Absent)),
-- ElemElemBoolRetElemList
(References, References, 250,
(Par_ElemList, Par_Element, Par_Element, Par_Boolean, Par_Absent)),
-- ElemElemRetBool
(Is_Equal, Is_Identical, 255,
(Par_Boolean, Par_Element, Par_Element, Par_Absent, Par_Absent)),
-- ElemElemRetElem
(Enclosing_Element_EEE, Enclosing_Element_EEE, 260,
(Par_Element, Par_Element, Par_Element, Par_Absent, Par_Absent)),
-- ElemIntIntRetLineList
(Lines_2, Lines_2, 265,
(Par_Line_List, Par_Element, Par_Integer, Par_Integer, Par_Absent)),
-- ElemListRetBool
(Is_Nil_EL, Is_Nil_EL, 270,
(Par_Boolean, Par_ElemList, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetBool
(Declarations_Is_Private_Present, Is_Text_Available, 280,
(Par_Boolean, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetCUnit
(Enclosing_Compilation_Unit, Enclosing_Compilation_Unit, 290,
(Par_CUnit, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetDDA_ArrC
(DDA_Array_Components, DDA_Array_Components, 293,
(Par_DDA_Array_Component, Par_Element, Par_Absent, Par_Absent,
Par_Absent)),
-- ElemRetDDA_RecCList
(DDA_Discriminant_Components, DDA_Record_Components, 295,
(Par_DDA_Record_Component_List, Par_Element, Par_Absent, Par_Absent,
Par_Absent)),
-- ElemRetElem
(Accept_Entry_Direct_Name, While_Condition, 300,
(Par_Element, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetElemList
(Aborted_Tasks, Variant_Choices, 310,
(Par_ElemList, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetInt
(First_Line_Number, Last_Line_Number, 320,
(Par_Integer, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetLineList
(Lines, Lines, 325,
(Par_Line_List, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetSpan
(Compilation_Span, Element_Span, 330,
(Par_Span, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemRetString
(Access_Type_Kind, Value_Image, 340,
(Par_String, Par_Element, Par_Absent, Par_Absent, Par_Absent)),
-- ElemSpanRetLineList
(Lines_1, Lines_1, 342,
(Par_Line_List, Par_Element, Par_Span, Par_Absent, Par_Absent)),
-- IntIntRetBool
(Eq, Lt, 343,
(Par_Boolean, Par_Integer, Par_Integer, Par_Absent, Par_Absent)),
-- IntIntRetInt
(Add, Sub, 346,
(Par_Integer, Par_Integer, Par_Integer, Par_Absent, Par_Absent)),
-- LineRetString
(Comment_Image, Non_Comment_Image, 347,
(Par_String, Par_Line, Par_Absent, Par_Absent, Par_Absent)),
-- RelshipRetCUnitList
(Consistent, Circular, 348,
(Par_CUnitList, Par_Relationship, Par_Absent, Par_Absent, Par_Absent)),
-- RetBool
(Attributes_Are_Supported, Record_Component_Associations_Normalized, 350,
(Par_Boolean, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetCUnit
(Nil_Compilation_Unit, Nil_Compilation_Unit, 360,
(Par_CUnit, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetCUnitList
(Nil_Compilation_Unit_List, Nil_Compilation_Unit_List, 370,
(Par_CUnitList, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetElem
(Nil_Element, Nil_Element, 380,
(Par_Element, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetElemList
(Nil_Element_List, Nil_Element_List, 390,
(Par_ElemList, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetLine
(Nil_Line, Nil_Line, 400,
(Par_Line, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetRelship
(Nil_Relationship, Nil_Relationship, 405,
(Par_Relationship, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetSpan
(Nil_Span, Nil_Span, 410,
(Par_Span, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- RetString
(Asis_Implementor, Status, 420,
(Par_String, Par_Absent, Par_Absent, Par_Absent, Par_Absent)),
-- SpanRetBool
(Is_Nil_Sp, Is_Nil_Sp, 430,
(Par_Boolean, Par_Span, Par_Absent, Par_Absent, Par_Absent)),
-- SpanRetInt
(First_Column, Last_Line, 435,
(Par_Integer, Par_Span, Par_Absent, Par_Absent, Par_Absent)),
-- StringCtxRetCUnit
(Compilation_Unit_Body, Library_Unit_Declaration, 440,
(Par_CUnit, Par_String, Par_Context, Par_Absent, Par_Absent)),
-- StringRetNull
(Finalize, Initialize, 450,
(Par_Absent, Par_String, Par_Absent, Par_Absent, Par_Absent)),
-- StringStringRetBool
(Eq_SS, Lt_SS, 460,
(Par_Boolean, Par_String, Par_String, Par_Absent, Par_Absent)),
-- StringStringRetString
(Concat, Concat, 470,
(Par_String, Par_String, Par_String, Par_Absent, Par_Absent))
);
end ASIStant.FuncEnum; |
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_ScreenStr.asm | jpoikela/z88dk | 640 | 11509 | ; uint sp1_ScreenStr(uchar row, uchar col)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_ScreenStr
EXTERN asm_sp1_ScreenStr
_sp1_ScreenStr:
ld hl,2
ld d,(hl)
inc hl
inc hl
ld e,(hl)
jp asm_sp1_ScreenStr
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_version.adb | best08618/asylo | 7 | 11337 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_version.adb
-- { dg-do run }
with GNAT.Compiler_Version;
procedure Test_Version is
package Vsn is new GNAT.Compiler_Version;
use Vsn;
X : constant String := Version;
begin
if X'Length = 78 then
-- 78 = Ver_Len_Max + Ver_Prefix'Length
-- actual version should be shorter than this
raise Program_Error;
end if;
end Test_Version;
|
src/Implicits/Resolution/Undecidable/Expressiveness.agda | metaborg/ts.agda | 4 | 8608 | open import Prelude hiding (id; Bool)
module Implicits.Resolution.Undecidable.Expressiveness where
open import Implicits.Syntax
open import Implicits.Substitutions
open import Extensions.ListFirst
open import Implicits.Resolution.Ambiguous.Resolution as A
open import Implicits.Resolution.Deterministic.Resolution as D
open import Implicits.Resolution.Undecidable.Resolution as I
mutual
↓-sound : ∀ {ν} {Δ : ICtx ν} {a r} → Δ D.⊢ r ↓ a → Δ I.⊢ r ↓ a
↓-sound (i-simp a) = i-simp a
↓-sound (i-iabs x x₁) = i-iabs (≥-deterministic x) (↓-sound x₁)
↓-sound (i-tabs b x) = i-tabs b (↓-sound x)
Δ⟨τ⟩-sound : ∀ {ν} {Δ Δ' : ICtx ν} {a r} → Δ D.⟨ a ⟩= r → Δ' D.⊢ r ↓ a →
first r ∈ Δ ⇔ (λ r' → Δ' I.⊢ r' ↓ a)
Δ⟨τ⟩-sound (here p v) y = here (↓-sound y) v
Δ⟨τ⟩-sound (there x ¬x◁τ p) y = there x (¬◁-¬↓ ¬x◁τ) (Δ⟨τ⟩-sound p y)
where
↓-◁ : ∀ {ν} {Δ : ICtx ν} {a r} → Δ I.⊢ r ↓ a → r ◁ a
↓-◁ (i-simp _) = m-simp
↓-◁ (i-iabs _ r2↓a) = m-iabs (↓-◁ r2↓a)
↓-◁ (i-tabs b r↓a) = m-tabs b (↓-◁ r↓a)
¬◁-¬↓ : ∀ {ν} {Δ : ICtx ν} {a r} → ¬ r ◁ a → ¬ Δ I.⊢ r ↓ a
¬◁-¬↓ ¬a◁a (i-simp a) = ¬a◁a m-simp
¬◁-¬↓ ¬r◁a (i-iabs ⊢ᵣr₁ r₂↓a) = ¬r◁a (m-iabs (↓-◁ r₂↓a))
¬◁-¬↓ ¬r◁a (i-tabs b r[/]↓a) = ¬r◁a (m-tabs b (↓-◁ r[/]↓a))
≥-deterministic : ∀ {ν} {Δ : ICtx ν} {a} → Δ D.⊢ᵣ a → Δ I.⊢ᵣ a
≥-deterministic (r-simp {τ = a} Δ⟨a⟩=r r↓a) = r-simp (Δ⟨τ⟩-sound Δ⟨a⟩=r r↓a)
≥-deterministic (r-iabs ρ₁ x) = r-iabs ρ₁ (≥-deterministic x)
≥-deterministic (r-tabs x) = r-tabs (≥-deterministic x)
|
tools-src/gnu/gcc/gcc/ada/5fintman.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 25038 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . I N T E R R U P T _ M A N A G E M E N T --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1991-2001, Florida State University --
-- --
-- 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 2, or (at your option) any later ver- --
-- sion. GNARL 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 GNARL; 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. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. It is --
-- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
-- State University (http://www.gnat.com). --
-- --
------------------------------------------------------------------------------
-- This is a SGI Pthread version of this package.
-- PLEASE DO NOT add any dependences on other packages.
-- This package is designed to work with or without tasking support.
-- Make a careful study of all signals available under the OS,
-- to see which need to be reserved, kept always unmasked,
-- or kept always unmasked.
-- Be on the lookout for special signals that
-- may be used by the thread library.
with Interfaces.C;
-- used for int
with System.OS_Interface;
-- used for various Constants, Signal and types
package body System.Interrupt_Management is
use System.OS_Interface;
type Interrupt_List is array (Interrupt_ID range <>) of Interrupt_ID;
Exception_Interrupts : constant Interrupt_List :=
(SIGTSTP, SIGILL, SIGTRAP, SIGEMT, SIGFPE, SIGBUS, SIGSTOP, SIGKILL,
SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ, SIGPROF, SIGPTINTR, SIGPTRESCHED,
SIGABRT, SIGPIPE);
---------------------------
-- Initialize_Interrupts --
---------------------------
-- Nothing needs to be done on this platform.
procedure Initialize_Interrupts is
begin
null;
end Initialize_Interrupts;
Unreserve_All_Interrupts : Interfaces.C.int;
pragma Import
(C, Unreserve_All_Interrupts, "__gl_unreserve_all_interrupts");
use type Interfaces.C.int;
begin
Abort_Task_Interrupt := SIGABRT;
-- Change this if you want to use another signal for task abort.
-- SIGTERM might be a good one.
for I in Exception_Interrupts'Range loop
Keep_Unmasked (Exception_Interrupts (I)) := True;
end loop;
-- By keeping SIGINT unmasked, allow the user to do a Ctrl-C, but in the
-- same time, disable the ability of handling this signal via
-- Ada.Interrupts.
-- The pragma Unreserve_All_Interrupts let the user the ability to
-- change this behavior.
if Unreserve_All_Interrupts = 0 then
Keep_Unmasked (SIGINT) := True;
end if;
Keep_Unmasked (Abort_Task_Interrupt) := True;
Reserve := Keep_Unmasked or Keep_Masked;
Reserve (0) := True;
end System.Interrupt_Management;
|
programs/oeis/229/A229439.asm | neoneye/loda | 22 | 100904 | ; A229439: Number of n X 2 0..2 arrays with horizontal differences mod 3 never 1, vertical differences mod 3 never -1, and rows and columns lexicographically nondecreasing.
; 4,7,13,25,47,84,142,228,350,517,739,1027,1393,1850,2412,3094,3912,4883,6025,7357,8899,10672,12698,15000,17602,20529,23807,27463,31525,36022,40984,46442,52428,58975,66117,73889,82327,91468,101350,112012,123494,135837,149083,163275,178457,194674,211972,230398,250000,270827,292929,316357,341163,367400,395122,424384,455242,487753,521975,557967,595789,635502,677168,720850,766612,814519,864637,917033,971775,1028932,1088574,1150772,1215598,1283125,1353427,1426579,1502657,1581738,1663900,1749222,1837784,1929667,2024953,2123725,2226067,2332064,2441802,2555368,2672850,2794337,2919919,3049687,3183733,3322150,3465032,3612474,3764572,3921423,4083125,4249777
add $0,3
mov $1,2
mul $1,$0
bin $0,4
add $1,$0
sub $1,2
mov $0,$1
|
programs/oeis/211/A211412.asm | karttu/loda | 1 | 243220 | <reponame>karttu/loda<filename>programs/oeis/211/A211412.asm
; A211412: a(n) = 4*n^4 + 1.
; 5,65,325,1025,2501,5185,9605,16385,26245,40001,58565,82945,114245,153665,202501,262145,334085,419905,521285,640001,777925,937025,1119365,1327105,1562501,1827905,2125765,2458625,2829125,3240001,3694085,4194305,4743685,5345345,6002501,6718465,7496645,8340545,9253765,10240001,11303045,12446785,13675205,14992385,16402501,17909825,19518725,21233665,23059205,25000001,27060805,29246465,31561925,34012225,36602501,39337985,42224005,45265985,48469445,51840001,55383365,59105345,63011845,67108865,71402501,75898945,80604485,85525505,90668485,96040001,101646725,107495425,113592965,119946305,126562501,133448705,140612165,148060225,155800325,163840001,172186885,180848705,189833285,199148545,208802501,218803265,229159045,239878145,250968965,262440001,274299845,286557185,299220805,312299585,325802501,339738625,354117125,368947265,384238405,400000001,416241605,432972865,450203525,467943425,486202501,504990785,524318405,544195585,564632645,585640001,607228165,629407745,652189445,675584065,699602501,724255745,749554885,775511105,802135685,829440001,857435525,886133825,915546565,945685505,976562501,1008189505,1040578565,1073741825,1107691525,1142440001,1177999685,1214383105,1251602885,1289671745,1328602501,1368408065,1409101445,1450695745,1493204165,1536640001,1581016645,1626347585,1672646405,1719926785,1768202501,1817487425,1867795525,1919140865,1971537605,2025000001,2079542405,2135179265,2191925125,2249794625,2308802501,2368963585,2430292805,2492805185,2556515845,2621440001,2687592965,2754990145,2823647045,2893579265,2964802501,3037332545,3111185285,3186376705,3262922885,3340840001,3420144325,3500852225,3582980165,3666544705,3751562501,3838050305,3926024965,4015503425,4106502725,4199040001,4293132485,4388797505,4486052485,4584914945,4685402501,4787532865,4891323845,4996793345,5103959365,5212840001,5323453445,5435817985,5549952005,5665873985,5783602501,5903156225,6024553925,6147814465,6272956805,6400000001,6528963205,6659865665,6792726725,6927565825,7064402501,7203256385,7344147205,7487094785,7632119045,7779240001,7928477765,8079852545,8233384645,8389094465,8547002501,8707129345,8869495685,9034122305,9201030085,9370240001,9541773125,9715650625,9891893765,10070523905,10251562501,10435031105,10620951365,10809345025,11000233925,11193640001,11389585285,11588091905,11789182085,11992878145,12199202501,12408177665,12619826245,12834170945,13051234565,13271040001,13493610245,13718968385,13947137605,14178141185,14412002501,14648745025,14888392325,15130968065,15376496005,15625000001
add $0,1
pow $0,4
mov $1,$0
mul $1,4
add $1,1
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_21829_406.asm | ljhsiun2/medusa | 9 | 170583 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xf16e, %rsi
lea addresses_WC_ht+0xcb6e, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and %r12, %r12
mov $121, %rcx
rep movsl
nop
nop
nop
nop
add $33007, %r9
lea addresses_UC_ht+0x1242e, %r12
cmp %rbx, %rbx
mov (%r12), %cx
nop
nop
nop
nop
nop
and $10849, %r12
lea addresses_WC_ht+0x1150, %rsi
inc %r15
mov $0x6162636465666768, %rcx
movq %rcx, (%rsi)
nop
nop
xor $12681, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r9
push %rbp
push %rdi
push %rsi
// Faulty Load
lea addresses_D+0x936e, %rsi
nop
nop
sub $59834, %rdi
mov (%rsi), %r14
lea oracles, %r10
and $0xff, %r14
shlq $12, %r14
mov (%r10,%r14,1), %r14
pop %rsi
pop %rdi
pop %rbp
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': True, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WC_ht'}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
oeis/213/A213820.asm | neoneye/loda-programs | 11 | 20210 | ; A213820: Principal diagonal of the convolution array A213819.
; 2,18,60,140,270,462,728,1080,1530,2090,2772,3588,4550,5670,6960,8432,10098,11970,14060,16380,18942,21758,24840,28200,31850,35802,40068,44660,49590,54870,60512,66528,72930,79730,86940,94572,102638,111150,120120,129560,139482,149898,160820,172260,184230,196742,209808,223440,237650,252450,267852,283868,300510,317790,335720,354312,373578,393530,414180,435540,457622,480438,504000,528320,553410,579282,605948,633420,661710,690830,720792,751608,783290,815850,849300,883652,918918,955110,992240,1030320
mov $2,$0
add $0,2
add $2,$0
bin $2,2
mul $0,$2
|
oeis/334/A334670.asm | neoneye/loda-programs | 11 | 160599 | ; A334670: a(n) = (2*n+1)!! * (Sum_{k=1..n} 1/(2*k+1)).
; Submitted by <NAME>
; 0,1,8,71,744,9129,129072,2071215,37237680,741975345,16236211320,387182170935,9995788416600,277792140828825,8269430130712800,262542617405726175,8855805158351474400,316285840413064454625,11924219190760084593000,473245342972281190686375,19722890048636406588957000,861197342549053471928591625,39317742444387989746734570000,1873307686221861776044182399375,92984644817645661149704845210000,4800652727145875990688402580100625,257414822452474738381211565939255000,14315767314314506087327126273936884375
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $2,2
mul $3,$2
add $3,$1
mul $1,$2
lpe
mov $0,$3
|
math_test.adb | kylelk/ada-examples | 1 | 15324 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada;
procedure math_test is
num1 : Integer;
num2 : Integer;
sum : Integer;
begin
num1 := 3;
num2 := 5;
sum := num1 + num2;
Integer_Text_IO.put(sum);
end math_test;
|
MiniC/MiniC/MiniC.g4 | gordiig/Un_Compilers_Curs | 0 | 966 | grammar MiniC;
/*
* Parser Rules
*/
compilationUnit
: translationUnit? EOF
;
translationUnit
: externalDeclaration*
;
externalDeclaration
: declaration
| definition
;
declaration
: varDeclaration
| structDeclaration
;
definition
: functionDefinition
| varDefinition
;
varDeclaration
: varHeader (LeftBracket IntegerConstant RightBracket)? Semi
;
structDeclaration
: Struct Identifier LeftBrace varDeclaration+ RightBrace Semi
;
varHeader
: typeQualifier? typeSpecifier Identifier
;
functionDefinition
: functionHeader compoundStatement
;
functionHeader
: typeSpecifier Identifier LeftParen (Void | parameterDeclarationList)? RightParen
;
varDefinition
: varHeader (LeftBracket RightBracket)? Assign initializer Semi
;
initializer
: ternaryExpression
| LeftBrace initializerList RightBrace
;
initializerList
: initializer
| initializerList Comma initializer
;
parameterDeclarationList
: parameterDeclaration
| parameterDeclarationList Comma parameterDeclaration
;
parameterDeclaration
: typeQualifier? typeSpecifier Identifier (LeftBracket RightBracket)?
;
typeSpecifier
: Void
| Char
| Int
| Float
| Struct Identifier
;
typeQualifier
: Const
;
compoundStatement
: LeftBrace (varDeclaration | varDefinition)* statement* RightBrace
;
expression
: assignmentExpression
;
assignmentExpression
: (lValueExpression assignmentOperator)? ternaryExpression
;
ternaryExpression
: logicalOrExpression (Question ternaryExpression Colon ternaryExpression)?
;
logicalOrExpression
: logicalAndExpression
| logicalOrExpression OrOr logicalAndExpression
;
logicalAndExpression
: inclusiveOrExpression
| logicalAndExpression AndAnd inclusiveOrExpression
;
inclusiveOrExpression
: exclusiveOrExpression
| inclusiveOrExpression Or exclusiveOrExpression
;
exclusiveOrExpression
: andExpression
| exclusiveOrExpression Caret andExpression
;
andExpression
: equalityExpression
| andExpression And equalityExpression
;
equalityExpression
: relationalExpression
| equalityExpression Equal relationalExpression
| equalityExpression NotEqual relationalExpression
;
relationalExpression
: shiftExpression
| relationalExpression Less shiftExpression
| relationalExpression Greater shiftExpression
| relationalExpression LessEqual shiftExpression
| relationalExpression GreaterEqual shiftExpression
;
shiftExpression
: additiveExpression
| shiftExpression LeftShift additiveExpression
| shiftExpression RightShift additiveExpression
;
additiveExpression
: multiplicativeExpression
| additiveExpression Plus multiplicativeExpression
| additiveExpression Minus multiplicativeExpression
;
multiplicativeExpression
: unaryExpression
| multiplicativeExpression Star unaryExpression
| multiplicativeExpression Div unaryExpression
| multiplicativeExpression Mod unaryExpression
;
unaryExpression
: postfixExpression
| unaryOperator unaryExpression
;
postfixExpression
: primaryExpression #PrimaryExp
| postfixExpression LeftBracket ternaryExpression RightBracket #ArrayRead
| postfixExpression Dot Identifier #StructRead
| Identifier LeftParen parameterList? RightParen #FunctionCall
;
parameterList
: ternaryExpression
| parameterList Comma ternaryExpression
;
primaryExpression
: Identifier #VarRead
| constant #ConstRead
| LeftParen ternaryExpression RightParen #Parens
;
lValueExpression
: Identifier
| lValueExpression LeftBracket ternaryExpression RightBracket
| lValueExpression Dot Identifier
;
statement
: expressionStatement
| compoundStatement
| ifStatement
| iterationStatement
| jumpStatement
;
expressionStatement
: expression? Semi
;
ifStatement
: If LeftParen ternaryExpression RightParen statement (Else statement)?
;
iterationStatement
: While LeftParen ternaryExpression RightParen statement
| Do statement While LeftParen ternaryExpression RightParen Semi
| For LeftParen expression? Semi ternaryExpression? Semi expression? RightParen statement
;
jumpStatement
: Continue Semi
| Break Semi
| Return ternaryExpression? Semi
;
assignmentOperator
: Assign | StarAssign | DivAssign | ModAssign | PlusAssign | MinusAssign
| LeftShiftAssign | RightShiftAssign | AndAssign | XorAssign | OrAssign
;
unaryOperator
: Plus | Minus | Tilde | Not
;
constant
: IntegerConstant
| FloatingConstant
| CharacterConstant
;
/*
* Lexer Rules
*/
Break : 'break';
Char : 'char';
Const : 'const';
Continue : 'continue';
Do : 'do';
Else : 'else';
Float : 'float';
For : 'for';
If : 'if';
Int : 'int';
Return : 'return';
Struct : 'struct';
Void : 'void';
While : 'while';
LeftParen : '(';
RightParen : ')';
LeftBracket : '[';
RightBracket : ']';
LeftBrace : '{';
RightBrace : '}';
Less : '<';
LessEqual : '<=';
Greater : '>';
GreaterEqual : '>=';
LeftShift : '<<';
RightShift : '>>';
Plus : '+';
Minus : '-';
Star : '*';
Div : '/';
Mod : '%';
And : '&';
Or : '|';
AndAnd : '&&';
OrOr : '||';
Caret : '^';
Not : '!';
Tilde : '~';
Question : '?';
Colon : ':';
Semi : ';';
Comma : ',';
Assign : '=';
// '*=' | '/=' | '%=' | '+=' | '-=' | '<<=' | '>>=' | '&=' | '^=' | '|='
StarAssign : '*=';
DivAssign : '/=';
ModAssign : '%=';
PlusAssign : '+=';
MinusAssign : '-=';
LeftShiftAssign : '<<=';
RightShiftAssign : '>>=';
AndAssign : '&=';
XorAssign : '^=';
OrAssign : '|=';
Equal : '==';
NotEqual : '!=';
Dot : '.';
Identifier
: Nondigit
( Nondigit
| Digit
)*
;
fragment
Nondigit
: [a-zA-Z_]
;
fragment
Digit
: [0-9]
;
IntegerConstant
: DecimalConstant
| OctalConstant
| HexadecimalConstant
;
fragment
DecimalConstant
: NonzeroDigit Digit*
;
fragment
OctalConstant
: '0' OctalDigit*
;
fragment
HexadecimalConstant
: HexadecimalPrefix HexadecimalDigit+
;
fragment
HexadecimalPrefix
: '0' [xX]
;
fragment
NonzeroDigit
: [1-9]
;
fragment
OctalDigit
: [0-7]
;
fragment
HexadecimalDigit
: [0-9a-fA-F]
;
FloatingConstant
: DecimalFloatingConstant
;
fragment
DecimalFloatingConstant
: FractionalConstant ExponentPart?
| DigitSequence ExponentPart
;
fragment
FractionalConstant
: DigitSequence? '.' DigitSequence
| DigitSequence '.'
;
fragment
ExponentPart
: 'e' Sign? DigitSequence
| 'E' Sign? DigitSequence
;
fragment
Sign
: '+' | '-'
;
fragment
DigitSequence
: Digit+
;
CharacterConstant
: '\'' CChar '\''
;
fragment
CChar
: ~['\\\r\n]
| EscapeSequence
;
fragment
EscapeSequence
: '\\' ['"?abfnrtv\\]
;
LineComment
: '//' ~[\r\n]*
-> skip
;
BlockComment
: '/*' .*? '*/'
-> skip
;
Whitespace
: [ \t]+
-> channel(HIDDEN)
;
Newline
: ( '\r' '\n'?
| '\n'
)
-> channel(HIDDEN)
; |
source/jni/u2/water/routines.asm | Falken42/SecondReality | 9 | 246045 | .MODEL large,PASCAL
.CODE
.386
; dx = Bground seg
; ax = pos seg
; si = pos ofs
; cx = font seg
; bx = font ofs
; Front scroll
Putrouts1 PROC FAR
PUBLIC Putrouts1
push ds
mov ds,ax
mov ax,0a000h
mov es,ax
mov fs,cx
mov gs,dx
mov dx,158*34
@a1: lodsw
or ax,ax
je @no1
mov cx,ax
@b1: lodsw
mov di,ax
mov al,byte ptr fs:[bx]
or al,al
jne @y
mov al,byte ptr gs:[di]
@y: mov byte ptr es:[di],al
loop @b1
@no1: inc bx
dec dx
jnz @a1
pop ds
ret
Putrouts1 ENDP
END
|
oeis/049/A049115.asm | neoneye/loda-programs | 11 | 27962 | ; A049115: a(n) is the number of iterations of the Euler phi function needed to reach a power of 2, when starting from n.
; 0,0,1,0,1,1,2,0,2,1,2,1,2,2,1,0,1,2,3,1,2,2,3,1,2,2,3,2,3,1,2,0,2,1,2,2,3,3,2,1,2,2,3,2,2,3,4,1,3,2,1,2,3,3,2,2,3,3,4,1,2,2,3,0,2,2,3,1,3,2,3,2,3,3,2,3,2,2,3,1,4,2,3,2,1,3,3,2,3,2,3,3,2,4,3,1,2,3,2,2
lpb $0
seq $0,62570 ; a(n) = phi(2*n).
sub $0,1
add $1,1
lpe
mov $0,$1
|
tools/names.asm | mgr-inz-rafal/skakatory | 1 | 99473 | ; Pliterki translation table
; 'ł' - b(17)
; 'ę' - b(32)
; 'ó' - b(49)
; 'ś' - b(27)
; 'ż' - b(59)
; 'Ł' - b(28)
; 'Ż' - b(60)
opt h-
NAMES_MEN
dta d'Piotr ' ; 1
dta d'Krzysztof ' ; 2
dta d'Andrzej ' ; 3
dta d'Tomasz ' ; 4
dta d'Jan ' ; 5
dta d'Pawe', b(17), d' ' ; 6
dta d'Micha', b(17), d' ' ; 7
dta d'Marcin ' ; 8
dta d'Stanis', b(17), d'aw ' ; 9
dta d'Jakub ' ; 10
dta d'Adam ' ; 11
dta d'Marek ' ; 12
dta b(28), d'ukasz ' ; 13
dta d'Grzegorz ' ; 14
dta d'Mateusz ' ; 15
dta d'Wojciech ' ; 16
dta d'Mariusz ' ; 17
dta d'Dariusz ' ; 18
dta d'Zbigniew ' ; 19
dta d'Jerzy ' ; 20
dta d'Maciej ' ; 21
dta d'Rafa', b(17), d' ' ; 22
dta d'Robert ' ; 23
dta d'Kamil ' ; 24
dta d'J', b(49), d'zef ' ; 25
dta d'Jacek ' ; 26
dta d'Dawid ' ; 27
dta d'Tadeusz ' ; 28
dta d'Ryszard ' ; 29
dta d'Szymon ' ; 30
dta d'Kacper ' ; 31
dta d'Bartosz ' ; 32
dta d'Janusz ' ; 33
dta d'Jaros', b(17), d'aw ' ; 34
dta d'S', b(17), d'awomir ' ; 35
dta d'Miros', b(17), d'aw ' ; 36
dta d'Artur ' ; 37
dta d'Henryk ' ; 38
dta d'Sebastian ' ; 39
dta d'Damian ' ; 40
dta d'Patryk ' ; 41
dta d'Kazimierz ' ; 42
dta d'Przemys', b(17), d'aw ' ; 43
dta d'Daniel ' ; 44
dta d'Karol ' ; 45
dta d'Roman ' ; 46
dta d'Marian ' ; 47
dta d'Wies', b(17), d'aw ' ; 48
dta d'Filip ' ; 49
dta d'Antoni ' ; 50
dta d'Adrian ' ; 51
dta d'Arkadiusz ' ; 52
dta d'Aleksander ' ; 53
dta d'Dominik ' ; 54
dta d'Bart', b(17), d'omiej ' ; 55
dta d'Franciszek ' ; 56
dta d'Leszek ' ; 57
dta d'Miko', b(17), d'aj ' ; 58
dta d'Waldemar ' ; 59
dta d'Krystian ' ; 60
dta d'Zdzis', b(17), d'aw ' ; 61
dta d'Wiktor ' ; 62
dta d'Rados', b(17), d'aw ' ; 63
dta d'Bogdan ' ; 64
dta d'Edward ' ; 65
dta d'Mieczys', b(17), d'aw ' ; 66
dta d'Konrad ' ; 67
dta d'W', b(17), d'adys', b(17), d'aw ' ; 68
dta d'Hubert ' ; 69
dta d'Czes', b(17), d'aw ' ; 70
dta d'Igor ' ; 71
dta d'Eugeniusz ' ; 72
dta d'Oskar ' ; 73
dta d'Stefan ' ; 74
dta d'Bogus', b(17), d'aw ' ; 75
dta d'Marcel ' ; 76
dta d'Ireneusz ' ; 77
dta d'Zygmunt ' ; 78
dta d'Maksymilian ' ; 79
dta d'Witold ' ; 80
dta d'Mi', b(17), d'osz ' ; 81
dta d'Sylwester ' ; 82
dta d'W', b(17), d'odzimierz ' ; 83
dta d'Zenon ' ; 84
dta d'Oliwier ' ; 85
dta d'Alan ' ; 86
dta d'Cezary ' ; 87
dta d'Nikodem ' ; 88
dta d'Leon ' ; 89
dta d'Norbert ' ; 90
dta d'Oleksandr ' ; 91
dta d'Gabriel ' ; 92
dta d'Julian ' ; 93
dta d'B', b(17), d'a', b(59), d'ej ' ; 94
dta d'Fabian ' ; 95
dta d'Ignacy ' ; 96
dta d'Tymoteusz ' ; 97
dta d'Eryk ' ; 98
dta d'Emil ' ; 99
dta d'Bronis', b(17), d'aw ' ; 100
dta d'Wac', b(17), d'aw ' ; 101
dta d'Lech ' ; 102
dta d'Serhii ' ; 103
dta d'Tymon ' ; 104
dta d'Andrii ' ; 105
dta d'Volodymyr ' ; 106
dta d'Boles', b(17), d'aw ' ; 107
dta d'Bernard ' ; 108
dta d'Edmund ' ; 109
dta d'Remigiusz ' ; 110
dta d'Ksawery ' ; 111
dta d'Natan ' ; 112
dta d'Dmytro ' ; 113
dta d'Olaf ' ; 114
dta d'Ivan ' ; 115
dta d'Lucjan ' ; 116
dta d'Borys ' ; 117
dta d'Romuald ' ; 118
dta d'Kajetan ' ; 119
dta d'Mykola ' ; 120
dta d'Vitalii ' ; 121
dta d'Vasyl ' ; 122
dta d'Szczepan ' ; 123
dta d'Ihor ' ; 124
dta d'Albert ' ; 125
dta d'Kuba ' ; 126
dta d'Gracjan ' ; 127
dta d'Seweryn ' ; 128
dta d'Tobiasz ' ; 129
dta d'Maksym ' ; 130
dta d'Alfred ' ; 131
dta d'Yurii ' ; 132
dta d'Ludwik ' ; 133
dta d'Oleh ' ; 134
dta d'Joachim ' ; 135
dta d'Viktor ' ; 136
dta d'Les', b(17), d'aw ' ; 137
dta d'Bogumi', b(17), d' ' ; 138
dta d'Mykhailo ' ; 139
dta d'Ernest ' ; 140
dta d'Gerard ' ; 141
dta d'Bruno ' ; 142
dta d'Kornel ' ; 143
dta d'Olivier ' ; 144
dta d'Feliks ' ; 145
dta d'Bohdan ' ; 146
dta d'J', b(32), d'drzej ' ; 147
dta d'Alexander ' ; 148
dta d'Alojzy ' ; 149
dta d'Alex ' ; 150
dta d'Vladyslav ' ; 151
dta d'Leonard ' ; 152
dta d'Oleksii ' ; 153
dta d'Juliusz ' ; 154
dta d'David ' ; 155
dta d'Klaudiusz ' ; 156
dta d'Ruslan ' ; 157
dta d'Aleks ' ; 158
dta d'Benedykt ' ; 159
dta d'Dorian ' ; 160
dta d'Rajmund ' ; 161
dta d'Teodor ' ; 162
dta d'Oliver ' ; 163
dta d'Martin ' ; 164
dta d'Pavlo ' ; 165
dta d'Cyprian ' ; 166
dta d'Nataniel ' ; 167
dta d'Konstanty ' ; 168
dta d'Rudolf ' ; 169
dta d'Denys ' ; 170
dta d'Denis ' ; 171
dta d'Anatolii ' ; 172
dta d'Vadym ' ; 173
dta d'Artem ' ; 174
dta d'Brajan ' ; 175
dta d'Gustaw ' ; 176
dta d'Michael ' ; 177
dta d'Hieronim ' ; 178
dta d'Petro ' ; 179
dta d'Yaroslav ' ; 180
dta d'Samuel ' ; 181
dta d'Wincenty ' ; 182
dta d'Mieszko ' ; 183
dta d'Marceli ' ; 184
dta d'Florian ' ; 185
dta d'Zygfryd ' ; 186
dta d'Yevhen ' ; 187
dta d'Erwin ' ; 188
dta d'Kevin ' ; 189
dta d'Milan ' ; 190
dta d'Ariel ' ; 191
dta d'Fryderyk ' ; 192
dta d'Iwo ' ; 193
dta d'Valerii ' ; 194
dta d'Taras ' ; 195
dta d'Anton ' ; 196
dta d'Aleksy ' ; 197
dta d'Aliaksandr ' ; 198
dta d'Yevhenii ' ; 199
dta d'Beniamin ' ; 200
dta d'Oleg ' ; 201
dta d'Roland ' ; 202
dta d'Sergiusz ' ; 203
dta d'Kordian ' ; 204
dta d'Andrei ' ; 205
dta d'Walenty ' ; 206
dta d'Jeremi ' ; 207
dta d'Adolf ' ; 208
dta d'Amadeusz ' ; 209
dta d'Viacheslav ' ; 210
dta d'Augustyn ' ; 211
dta d'Olgierd ' ; 212
dta d'Brunon ' ; 213
dta d'Stanislav ' ; 214
dta d'Patrick ' ; 215
dta d'Sergii ' ; 216
dta d'Leopold ' ; 217
dta d'Maximilian ' ; 218
dta d'Emilian ' ; 219
dta d'Kewin ' ; 220
dta d'Thomas ' ; 221
dta d'Kostiantyn ' ; 222
dta d'Herbert ' ; 223
dta d'Albin ' ; 224
dta d'Siarhei ' ; 225
dta d'Oscar ' ; 226
dta d'Alfons ' ; 227
dta d'Arnold ' ; 228
dta d'Nicolas ' ; 229
dta d'Victor ' ; 230
dta d'Oliwer ' ; 231
dta d'Wilhelm ' ; 232
dta d'Maurycy ' ; 233
dta d'Stepan ' ; 234
dta d'Anatol ' ; 235
dta d'Andriy ' ; 236
dta d'Valentyn ' ; 237
dta d'Helmut ' ; 238
dta d'Peter ' ; 239
dta d'Dzmitry ' ; 240
dta d'Oktawian ' ; 241
dta d'Walter ' ; 242
dta d'Ginter ' ; 243
dta d'Manfred ' ; 244
dta d'Edwin ' ; 245
dta d'Teofil ' ; 246
dta d'Emanuel ' ; 247
dta d'Nazar ' ; 248
dta d'Korneliusz ' ; 249
dta d'Jeremiasz ' ; 250
dta d'Werner ' ; 251
dta d'Jonasz ' ; 252
dta d'Kryspin ' ; 253
dta d'Mark ' ; 254
dta d'Illia ' ; 255
dta d'Leo ' ; 256
dta d'Eduard ' ; 257
dta d'Walerian ' ; 258
dta d'Nathan ' ; 259
dta d'Christian ' ; 260
dta d'Jonatan ' ; 261
dta d'Kasper ' ; 262
dta d'Pavel ' ; 263
dta d'Benjamin ' ; 264
dta d'Ziemowit ' ; 265
dta d'Lechos', b(17), d'aw ' ; 266
dta d'Leonid ' ; 267
dta d'Xavier ' ; 268
dta d'Nikolas ' ; 269
dta d'Jacob ' ; 270
dta d'Max ' ; 271
dta d'Tytus ' ; 272
dta d'Iurii ' ; 273
dta d'Miron ' ; 274
dta d'Patrycjusz ' ; 275
dta d'Klemens ' ; 276
dta d'Yuriy ' ; 277
dta d'Ferdynand ' ; 278
dta d'Aron ' ; 279
dta d'Paul ' ; 280
dta d'Longin ' ; 281
dta d'Ksawier ' ; 282
dta d'Hugo ' ; 283
dta d'Philip ' ; 284
dta d'Matthew ' ; 285
dta d'Horst ' ; 286
dta d'Wawrzyniec ' ; 287
dta d'Jacenty ' ; 288
dta d'Andreas ' ; 289
dta d'Rostyslav ' ; 290
dta d'Christopher ' ; 291
dta d'Eliasz ' ; 292
dta d'Dionizy ' ; 293
dta d'Izydor ' ; 294
dta d'John ' ; 295
dta d'Anthony ' ; 296
dta d'Marco ' ; 297
dta b(28), d'ucjan ' ; 298
dta d'Mykhaylo ' ; 299
dta d'Yury ' ; 300
dta d'Vitali ' ; 301
dta d'Uladzimir ' ; 302
dta d'Aliaksei ' ; 303
dta d'Roch ' ; 304
dta d'Kasjan ' ; 305
dta d'Ewald ' ; 306
dta d'Danylo ' ; 307
dta d'Eligiusz ' ; 308
dta d'Simon ' ; 309
dta d'Gerhard ' ; 310
dta d'Jaromir ' ; 311
dta d'Maks ' ; 312
dta d'Rafael ' ; 313
dta d'Mykyta ' ; 314
dta d'Mohamed ' ; 315
dta d'Brian ' ; 316
dta d'Hennadii ' ; 317
dta d'Maksim ' ; 318
dta d'Nazarii ' ; 319
dta d'Kyrylo ' ; 320
dta d'Vitaliy ' ; 321
dta d'Ali ' ; 322
dta d'Nicholas ' ; 323
dta d'Jonathan ' ; 324
dta d'Vincent ' ; 325
dta d'Yauheni ' ; 326
dta d'Radomir ' ; 327
dta d'Serhiy ' ; 328
dta d'Mikhail ' ; 329
dta d'Bazyli ' ; 330
dta d'Zbys', b(17), d'aw ' ; 331
dta d'Viktar ' ; 332
dta d'Ion ' ; 333
dta d'Antonio ' ; 334
dta d'Wit ' ; 335
dta d'Richard ' ; 336
dta d'Kosma ' ; 337
dta d'Giorgi ' ; 338
dta d'Roger ' ; 339
dta d'William ' ; 340
dta d'Aleh ' ; 341
dta d'Dennis ' ; 342
dta d'Vladimir ' ; 343
dta d'Ihar ' ; 344
dta d'Lukas ' ; 345
dta d'Markus ' ; 346
dta d'Orest ' ; 347
dta d'Eric ' ; 348
dta d'Nikita ' ; 349
dta d'Hryhorii ' ; 350
dta d'Bonifacy ' ; 351
dta d'Lucas ' ; 352
dta d'Jordan ' ; 353
dta d'James ' ; 354
dta d'Andrew ' ; 355
dta d'Leonardo ' ; 356
dta d'Aaron ' ; 357
dta d'August ' ; 358
dta d'Pascal ' ; 359
dta d'Frank ' ; 360
dta d'Mikalai ' ; 361
dta d'Yehor ' ; 362
dta d'Zbyszek ' ; 363
dta d'Mario ' ; 364
dta d'Cyryl ' ; 365
dta d'Daniil ' ; 366
dta d'Dominic ' ; 367
dta d'Brayan ' ; 368
dta d'Diego ' ; 369
dta d'Myroslav ' ; 370
dta d'Klaus ' ; 371
dta d'Aleksandr ' ; 372
dta d'Ahmed ' ; 373
dta d'Bogusz ' ; 374
dta d'Arthur ' ; 375
dta d'Wolfgang ' ; 376
dta d'Erik ' ; 377
dta d'Sergiy ' ; 378
dta d'Carlos ' ; 379
dta d'Valery ' ; 380
dta d'Allan ' ; 381
dta d'Joseph ' ; 382
dta d'Bryan ' ; 383
dta d'Donat ' ; 384
dta d'Sviatoslav ' ; 385
dta d'Matteo ' ; 386
dta d'Dymitr ' ; 387
dta d'Alessandro ' ; 388
dta d'Luca ' ; 389
dta d'Heronim ' ; 390
dta d'Nathaniel ' ; 391
dta d'Francesco ' ; 392
dta d'Ivo ' ; 393
dta d'Lubomir ' ; 394
dta d'Uladzislau ' ; 395
dta d'Juan ' ; 396
dta d'Kurt ' ; 397
dta d'Liubomyr ' ; 398
dta d'Dzianis ' ; 399
dta d'Dieter ' ; 400
dta d'Jose ' ; 401
dta d'Alexandre ' ; 402
dta d'Benon ' ; 403
dta d'Serghei ' ; 404
dta d'Aureliusz ' ; 405
dta d'Manuel ' ; 406
dta d'Mihail ' ; 407
dta d'Marko ' ; 408
dta d'Edgar ' ; 409
dta d'Mehmet ' ; 410
dta d'Joshua ' ; 411
dta d'Amir ' ; 412
dta d'Maxymilian ' ; 413
dta d'Jakob ' ; 414
dta d'Anatoli ' ; 415
dta d'Maxim ' ; 416
dta d'Euzebiusz ' ; 417
dta d'Omar ' ; 418
dta d'Ryan ' ; 419
dta d'Luis ' ; 420
dta d'Hans ' ; 421
dta d'Alexandr ' ; 422
dta d'Roberto ' ; 423
dta d'Karim ' ; 424
dta d'Gniewomir ' ; 425
dta d'Anatoliy ' ; 426
dta d'Zbyszko ' ; 427
dta d'Ievgen ' ; 428
dta d'Raman ' ; 429
dta d'Colin ' ; 430
dta d'Justin ' ; 431
dta d'Ian ' ; 432
dta d'Vadzim ' ; 433
dta d'Herman ' ; 434
dta d'Yan ' ; 435
dta d'Chrystian ' ; 436
dta d'Alexandru ' ; 437
dta d'Ricardo ' ; 438
dta d'Hilary ' ; 439
dta d'Liam ' ; 440
dta d'Mustafa ' ; 441
dta d'Matthias ' ; 442
dta d'Andrea ' ; 443
dta d'Armin ' ; 444
dta d'Philipp ' ; 445
dta d'Vasile ' ; 446
dta d'Davyd ' ; 447
dta d'Felix ' ; 448
dta d'Mohammad ' ; 449
dta d'Noah ' ; 450
dta d'Kai ' ; 451
dta d'Zachariasz ' ; 452
dta d'Tristan ' ; 453
dta d'Fedir ' ; 454
dta d'January ' ; 455
dta d'Iaroslav ' ; 456
dta d'Bartek ' ; 457
dta d'Narcyz ' ; 458
dta d'Nicolae ' ; 459
dta d'Muhammad ' ; 460
dta d'Reinhold ' ; 461
dta d'Rajnold ' ; 462
dta d'Cristian ' ; 463
dta d'Idzi ' ; 464
dta d'Angelo ' ; 465
dta d'George ' ; 466
dta d'Pablo ' ; 467
dta d'Harald ' ; 468
dta d'Ronald ' ; 469
dta d'Mohammed ' ; 470
dta d'Henry ' ; 471
dta d'Giuseppe ' ; 472
dta d'Zenobiusz ' ; 473
dta d'Kristian ' ; 474
dta d'Ilya ' ; 475
dta d'Arsen ' ; 476
dta d'Justyn ' ; 477
dta d'Michal ' ; 478
dta d'Jorge ' ; 479
dta d'Walery ' ; 480
dta d'Vadim ' ; 481
dta d'Ruben ' ; 482
dta d'Tom ' ; 483
dta d'Tobias ' ; 484
dta d'Michel ' ; 485
dta d'Axel ' ; 486
dta d'Ibrahim ' ; 487
dta d'Dylan ' ; 488
dta d'Casper ' ; 489
dta d'Alberto ' ; 490
dta d'Alejandro ' ; 491
dta d'Giovanni ' ; 492
dta d'Iwan ' ; 493
dta d'Fabio ' ; 494
dta d'Joel ' ; 495
dta d'Sergey ' ; 496
dta d'Miguel ' ; 497
dta d'Cezariusz ' ; 498
dta d'Steven ' ; 499
dta d'Tymofii ' ; 500
NAMES_BABSKIE
dta d'Anna ' ; 1
dta d'Maria ' ; 2
dta d'Katarzyna ' ; 3
dta d'Ma', b(17), d'gorzata ' ; 4
dta d'Agnieszka ' ; 5
dta d'Barbara ' ; 6
dta d'Ewa ' ; 7
dta d'Krystyna ' ; 8
dta d'El', b(59), d'bieta ' ; 9
dta d'Magdalena ' ; 10
dta d'Joanna ' ; 11
dta d'Zofia ' ; 12
dta d'Aleksandra ' ; 13
dta d'Monika ' ; 14
dta d'Teresa ' ; 15
dta d'Danuta ' ; 16
dta d'Natalia ' ; 17
dta d'Karolina ' ; 18
dta d'Marta ' ; 19
dta d'Julia ' ; 20
dta d'Beata ' ; 21
dta d'Dorota ' ; 22
dta d'Janina ' ; 23
dta d'Jadwiga ' ; 24
dta d'Halina ' ; 25
dta d'Jolanta ' ; 26
dta d'Alicja ' ; 27
dta d'Irena ' ; 28
dta d'Gra', b(59), d'yna ' ; 29
dta d'Iwona ' ; 30
dta d'Paulina ' ; 31
dta d'Justyna ' ; 32
dta d'Bo', b(59), d'ena ' ; 33
dta d'Zuzanna ' ; 34
dta d'Wiktoria ' ; 35
dta d'Urszula ' ; 36
dta d'Renata ' ; 37
dta d'Helena ' ; 38
dta d'Sylwia ' ; 39
dta d'Agata ' ; 40
dta d'Hanna ' ; 41
dta d'Patrycja ' ; 42
dta d'Izabela ' ; 43
dta d'Maja ' ; 44
dta d'Aneta ' ; 45
dta d'Emilia ' ; 46
dta d'Weronika ' ; 47
dta d'Ewelina ' ; 48
dta d'Marianna ' ; 49
dta d'Oliwia ' ; 50
dta d'Martyna ' ; 51
dta d'Klaudia ' ; 52
dta d'Stanis', b(17), d'awa ' ; 53
dta d'Marzena ' ; 54
dta d'Gabriela ' ; 55
dta d'Dominika ' ; 56
dta d'Kinga ' ; 57
dta d'Edyta ' ; 58
dta d'Wies', b(17), d'awa ' ; 59
dta d'Lena ' ; 60
dta d'Amelia ' ; 61
dta d'Kamila ' ; 62
dta d'Wanda ' ; 63
dta d'Alina ' ; 64
dta d'Lucyna ' ; 65
dta d'Lidia ' ; 66
dta d'Mariola ' ; 67
dta d'Miros', b(17), d'awa ' ; 68
dta d'Wioletta ' ; 69
dta d'Nikola ' ; 70
dta d'Daria ' ; 71
dta d'Milena ' ; 72
dta d'Kazimiera ' ; 73
dta d'Angelika ' ; 74
dta d'Genowefa ' ; 75
dta d'Bogumi', b(17), d'a ' ; 76
dta d'J', b(49), d'zefa ' ; 77
dta d'Antonina ' ; 78
dta d'Olga ' ; 79
dta d'Henryka ' ; 80
dta d'Stefania ' ; 81
dta d'Sandra ' ; 82
dta d'Laura ' ; 83
dta d'Ilona ' ; 84
dta d'Sabina ' ; 85
dta d'Bogus', b(17), d'awa ' ; 86
dta d'Regina ' ; 87
dta d'Marlena ' ; 88
dta d'Michalina ' ; 89
dta d'W', b(17), d'adys', b(17), d'awa ' ; 90
dta d'Czes', b(17), d'awa ' ; 91
dta b(28), d'ucja ' ; 92
dta d'Anita ' ; 93
dta d'Nadia ' ; 94
dta d'Kornelia ' ; 95
dta d'Aniela ' ; 96
dta d'Jagoda ' ; 97
dta d'Iga ' ; 98
dta d'Nina ' ; 99
dta d'Liliana ' ; 100
dta d'Wioleta ' ; 101
dta d'Marcelina ' ; 102
dta d'Cecylia ' ; 103
dta d'Roksana ' ; 104
dta d'Adrianna ' ; 105
dta d'Dagmara ' ; 106
dta d'Karina ' ; 107
dta d'Pola ' ; 108
dta d'Leokadia ' ; 109
dta d'Malwina ' ; 110
dta d'Zdzis', b(17), d'awa ' ; 111
dta d'Bronis', b(17), d'awa ' ; 112
dta d'Sara ' ; 113
dta b(60), d'aneta ' ; 114
dta d'Eugenia ' ; 115
dta d'Eliza ' ; 116
dta d'Bernadeta ' ; 117
dta d'R', b(49), b(59), d'a ' ; 118
dta d'Daniela ' ; 119
dta d'Julita ' ; 120
dta d'Aldona ' ; 121
dta d'Kaja ' ; 122
dta d'Anastazja ' ; 123
dta d'Rozalia ' ; 124
dta d'Violetta ' ; 125
dta d'Celina ' ; 126
dta d'Magda ' ; 127
dta d'Tetiana ' ; 128
dta d'Blanka ' ; 129
dta d'Klara ' ; 130
dta d'Nataliia ' ; 131
dta d'Honorata ' ; 132
dta d'Olena ' ; 133
dta d'Iryna ' ; 134
dta d'Diana ' ; 135
dta d'Oksana ' ; 136
dta d'Gertruda ' ; 137
dta d'Adriana ' ; 138
dta d'Brygida ' ; 139
dta d'Lilianna ' ; 140
dta d'Paula ' ; 141
dta d'Mieczys', b(17), d'awa ' ; 142
dta d'Izabella ' ; 143
dta d'Matylda ' ; 144
dta d'Bo', b(59), d'enna ' ; 145
dta d'Svitlana ' ; 146
dta d'Aurelia ' ; 147
dta d'Elwira ' ; 148
dta d'Olha ' ; 149
dta d'Marzanna ' ; 150
dta d'Marika ' ; 151
dta d'Sonia ' ; 152
dta d'Kalina ' ; 153
dta d'And', b(59), d'elika ' ; 154
dta d'Arleta ' ; 155
dta d'Franciszka ' ; 156
dta d'Mariia ' ; 157
dta d'Adela ' ; 158
dta d'Olivia ' ; 159
dta d'Nela ' ; 160
dta d'Alfreda ' ; 161
dta d'Yuliia ' ; 162
dta d'Luiza ' ; 163
dta d'Judyta ' ; 164
dta d'Viktoriia ' ; 165
dta d'Nicola ' ; 166
dta d'Natasza ' ; 167
dta d'Nicole ' ; 168
dta d'Tatiana ' ; 169
dta d'Kateryna ' ; 170
dta d'Jowita ' ; 171
dta d'Liudmyla ' ; 172
dta d'Romana ' ; 173
dta d'Ludwika ' ; 174
dta d'Anastasiia ' ; 175
dta d'Victoria ' ; 176
dta d'Apolonia ' ; 177
dta d'Eleonora ' ; 178
dta d'Wac', b(17), d'awa ' ; 179
dta d'Julianna ' ; 180
dta d'Vanessa ' ; 181
dta d'Marzenna ' ; 182
dta d'Zenona ' ; 183
dta d'Jessica ' ; 184
dta d'Tamara ' ; 185
dta d'Halyna ' ; 186
dta d'Inga ' ; 187
dta d'Estera ' ; 188
dta d'Hildegarda ' ; 189
dta d'Bernadetta ' ; 190
dta d'Walentyna ' ; 191
dta d'Ada ' ; 192
dta d'Melania ' ; 193
dta d'Zenobia ' ; 194
dta d'Liwia ' ; 195
dta d'Felicja ' ; 196
dta d'Maryna ' ; 197
dta d'Donata ' ; 198
dta d'Ludmi', b(17), d'a ' ; 199
dta d'Romualda ' ; 200
dta d'Anetta ' ; 201
dta d'Valentyna ' ; 202
dta d'Pelagia ' ; 203
dta d'Gizela ' ; 204
dta d'Otylia ' ; 205
dta d'Bianka ' ; 206
dta d'Amanda ' ; 207
dta d'Nadiia ' ; 208
dta d'Irmina ' ; 209
dta d'Eryka ' ; 210
dta d'Mia ' ; 211
dta d'Elena ' ; 212
dta d'Inna ' ; 213
dta d'Larysa ' ; 214
dta d'Waleria ' ; 215
dta d'S', b(17), d'awomira ' ; 216
dta d'Bernarda ' ; 217
dta d'Rita ' ; 218
dta d'Teodozja ' ; 219
dta d'Longina ' ; 220
dta d'Lilla ' ; 221
dta d'Teodora ' ; 222
dta d'Lilia ' ; 223
dta d'Maya ' ; 224
dta d'Ryszarda ' ; 225
dta d'Ida ' ; 226
dta d'Adelajda ' ; 227
dta d'Albina ' ; 228
dta d'Emma ' ; 229
dta d'Oleksandra ' ; 230
dta d'Mirela ' ; 231
dta d'Kamilla ' ; 232
dta d'Liubov ' ; 233
dta d'Feliksa ' ; 234
dta d'Alla ' ; 235
dta d'Yana ' ; 236
dta d'Faustyna ' ; 237
dta d'Olimpia ' ; 238
dta d'Lucja ' ; 239
dta d'Samanta ' ; 240
dta d'Leonarda ' ; 241
dta d'Zyta ' ; 242
dta d'Lila ' ; 243
dta d'Maryla ' ; 244
dta d'Marcela ' ; 245
dta d'Alexandra ' ; 246
dta d'Angelina ' ; 247
dta d'Liliia ' ; 248
dta d'Viktoria ' ; 249
dta d'Ksenia ' ; 250
dta d'Oktawia ' ; 251
dta d'Sofia ' ; 252
dta d'Pamela ' ; 253
dta d'Konstancja ' ; 254
dta d'Boles', b(17), d'awa ' ; 255
dta d'Wanessa ' ; 256
dta d'Alona ' ; 257
dta d'Salomea ' ; 258
dta d'Bogna ' ; 259
dta d'Veronika ' ; 260
dta d'Nadzieja ' ; 261
dta d'Elfryda ' ; 262
dta d'Mirella ' ; 263
dta d'Claudia ' ; 264
dta d'Mariana ' ; 265
dta d'Edwarda ' ; 266
dta d'Krzysztofa ' ; 267
dta d'Sofiia ' ; 268
dta d'Zoja ' ; 269
dta d'Gaja ' ; 270
dta d'Ivanna ' ; 271
dta d'Noemi ' ; 272
dta d'Inez ' ; 273
dta d'Khrystyna ' ; 274
dta d'Valeriia ' ; 275
dta d'Edeltrauda ' ; 276
dta d'Jagna ' ; 277
dta d'Mariya ' ; 278
dta d'Nel ' ; 279
dta d'Sophie ' ; 280
dta d'Ola ' ; 281
dta d'Stella ' ; 282
dta d'Michelle ' ; 283
dta d'Emily ' ; 284
dta d'Angela ' ; 285
dta d'Nataliya ' ; 286
dta d'Lesia ' ; 287
dta d'Sarah ' ; 288
dta d'Vira ' ; 289
dta d'Wiera ' ; 290
dta d'Alena ' ; 291
dta d'Tola ' ; 292
dta d'Iza ' ; 293
dta d'Miriam ' ; 294
dta d'Arletta ' ; 295
dta d'Ruta ' ; 296
dta d'Ines ' ; 297
dta d'Marina ' ; 298
dta d'Helga ' ; 299
dta d'Klementyna ' ; 300
dta d'Klaudyna ' ; 301
dta d'Manuela ' ; 302
dta d'Roma ' ; 303
dta d'Gerda ' ; 304
dta d'Galyna ' ; 305
dta d'Irina ' ; 306
dta d'Natalie ' ; 307
dta d'Marietta ' ; 308
dta d'Lea ' ; 309
dta d'Ja', b(27), d'mina ' ; 310
dta d'Antonia ' ; 311
dta d'Yuliya ' ; 312
dta d'Teofila ' ; 313
dta d'Greta ' ; 314
dta d'Yevheniia ' ; 315
dta d'Irmgarda ' ; 316
dta d'Eva ' ; 317
dta d'Eulalia ' ; 318
dta d'Olesia ' ; 319
dta d'Bernardyna ' ; 320
dta d'Raisa ' ; 321
dta d'Yelyzaveta ' ; 322
dta d'Jaros', b(17), d'awa ' ; 323
dta d'Dobros', b(17), d'awa ' ; 324
dta d'Florentyna ' ; 325
dta d'Erna ' ; 326
dta d'Ruslana ' ; 327
dta d'Andrea ' ; 328
dta d'Martina ' ; 329
dta d'Anastasiya ' ; 330
dta d'Erika ' ; 331
dta d'Ana ' ; 332
dta d'Tetyana ' ; 333
dta d'Polina ' ; 334
dta d'Luba ' ; 335
dta d'Hanka ' ; 336
dta d'Mila ' ; 337
dta d'Kunegunda ' ; 338
dta d'Wanesa ' ; 339
dta d'Nicol ' ; 340
dta d'Vita ' ; 341
dta d'Tatsiana ' ; 342
dta d'Sophia ' ; 343
dta d'Veronica ' ; 344
dta d'D', b(59), d'esika ' ; 345
dta d'Iuliia ' ; 346
dta d'Linda ' ; 347
dta d'Lidiia ' ; 348
dta d'Marcjanna ' ; 349
dta d'Balbina ' ; 350
dta d'Wirginia ' ; 351
dta d'Seweryna ' ; 352
dta d'Kristina ' ; 353
dta d'Natallia ' ; 354
dta d'Majka ' ; 355
dta d'Ala ' ; 356
dta d'Jennifer ' ; 357
dta d'Myroslava ' ; 358
dta d'Marita ' ; 359
dta d'Nikol ' ; 360
dta d'Filomena ' ; 361
dta d'Patricia ' ; 362
dta d'Ganna ' ; 363
dta d'Livia ' ; 364
dta d'Malina ' ; 365
dta d'Marharyta ' ; 366
dta d'Zhanna ' ; 367
dta d'Karyna ' ; 368
dta d'Zinaida ' ; 369
dta d'Volha ' ; 370
dta d'Simona ' ; 371
dta d'Isabella ' ; 372
dta d'Dajana ' ; 373
dta d'Anastasia ' ; 374
dta d'Uliana ' ; 375
dta d'Lara ' ; 376
dta d'Galina ' ; 377
dta d'Anika ' ; 378
dta d'Gloria ' ; 379
dta d'Emanuela ' ; 380
dta d'Anzhela ' ; 381
dta d'Leontyna ' ; 382
dta d'Sabrina ' ; 383
dta d'Katsiaryna ' ; 384
dta d'Kornela ' ; 385
dta d'Benedykta ' ; 386
dta d'Berenika ' ; 387
dta d'Blandyna ' ; 388
dta d'Jana ' ; 389
dta d'Lubomira ' ; 390
dta d'Amalia ' ; 391
dta d'Nikoletta ' ; 392
dta d'Iwonna ' ; 393
dta d'Ramona ' ; 394
dta d'Mira ' ; 395
dta d'Ligia ' ; 396
dta d'Daryna ' ; 397
dta d'Caroline ' ; 398
dta d'Bogdana ' ; 399
dta d'Carmen ' ; 400
dta b(60), d'aklina ' ; 401
dta d'Gabryela ' ; 402
dta d'Hannah ' ; 403
dta d'Gabriella ' ; 404
dta d'Kseniia ' ; 405
dta d'Alisa ' ; 406
dta d'Ingeborga ' ; 407
dta d'Emila ' ; 408
dta d'Domicela ' ; 409
dta d'Ingrid ' ; 410
dta d'Nelly ' ; 411
dta d'Svetlana ' ; 412
dta d'Tekla ' ; 413
dta d'Dalia ' ; 414
dta d'Nadiya ' ; 415
dta d'Sybilla ' ; 416
dta d'Swiet', b(17), d'ana ' ; 417
dta d'Anhelina ' ; 418
dta d'Michaela ' ; 419
dta d'Naomi ' ; 420
dta d'Irma ' ; 421
dta d'Celestyna ' ; 422
dta d'Lyudmyla ' ; 423
dta d'Alice ' ; 424
dta d'Lily ' ; 425
dta d'Alicia ' ; 426
dta d'Elizabeth ' ; 427
dta d'Idalia ' ; 428
dta d'Gracjana ' ; 429
dta d'Leonia ' ; 430
dta d'Valentina ' ; 431
dta d'S', b(17), d'awa ' ; 432
dta d'Roxana ' ; 433
dta d'Bernardeta ' ; 434
dta d'Bianca ' ; 435
dta b(60), d'anetta ' ; 436
dta d'Ina ' ; 437
dta d'J', b(49), d'zefina ' ; 438
dta d'Margarita ' ; 439
dta d'Hana ' ; 440
dta d'Berta ' ; 441
dta d'Margareta ' ; 442
dta d'Darya ' ; 443
dta d'Liudmila ' ; 444
dta d'Violeta ' ; 445
dta d'Lyubov ' ; 446
dta d'Lilly ' ; 447
dta d'Kira ' ; 448
dta d'Zoriana ' ; 449
dta d'Inka ' ; 450
dta d'Benita ' ; 451
dta d'Dariia ' ; 452
dta d'Maryia ' ; 453
dta d'Sviatlana ' ; 454
dta d'Kaya ' ; 455
dta d'Ella ' ; 456
dta d'Marie ' ; 457
dta d'Monica ' ; 458
dta d'Carolina ' ; 459
dta d'Bohdana ' ; 460
dta d'Jesika ' ; 461
dta d'Ela ' ; 462
dta d'Abigail ' ; 463
dta d'Milana ' ; 464
dta d'Kasandra ' ; 465
dta d'Karin ' ; 466
dta d'Dobrawa ' ; 467
dta d'Eunika ' ; 468
dta d'Dobrochna ' ; 469
dta d'Jessika ' ; 470
dta d'Dagna ' ; 471
dta d'Augustyna ' ; 472
dta d'Ariana ' ; 473
dta d'Yaroslava ' ; 474
dta d'Oriana ' ; 475
dta d'Nelia ' ; 476
dta d'Viktoriya ' ; 477
dta d'Wilhelmina ' ; 478
dta d'Les', b(17), d'awa ' ; 479
dta d'Eufemia ' ; 480
dta d'Ekaterina ' ; 481
dta d'Viktoryia ' ; 482
dta d'Nathalie ' ; 483
dta d'Melissa ' ; 484
dta d'Melisa ' ; 485
dta d'Julitta ' ; 486
dta d'Petronela ' ; 487
dta d'Sylwestra ' ; 488
dta d'Snizhana ' ; 489
dta d'Ernestyna ' ; 490
dta d'Fatima ' ; 491
dta d'Giulia ' ; 492
dta d'Marieta ' ; 493
dta d'Lina ' ; 494
dta d'Vladyslava ' ; 495
dta d'Jasmina ' ; 496
dta d'Zoe ' ; 497
dta d'Anzhelika ' ; 498
dta d'Lisa ' ; 499
dta d'Nikolina ' ; 500
|
alloy4fun_models/trashltl/models/3/JcJM9hYsvqu5GNwoD.als | Kaixi26/org.alloytools.alloy | 0 | 372 | open main
pred idJcJM9hYsvqu5GNwoD_prop4 {
some f: File | always( eventually f in Trash implies always f in Trash)
}
pred __repair { idJcJM9hYsvqu5GNwoD_prop4 }
check __repair { idJcJM9hYsvqu5GNwoD_prop4 <=> prop4o } |
oeis/020/A020658.asm | neoneye/loda-programs | 11 | 246811 | <reponame>neoneye/loda-programs
; A020658: Lexicographically earliest increasing sequence of positive numbers that contains no arithmetic progression of length 7.
; Submitted by <NAME>
; 1,2,3,4,5,6,8,9,10,11,12,13,15,16,17,18,19,20,22,23,24,25,26,27,29,30,31,32,33,34,36,37,38,39,40,41,50,51,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,71,72,73,74,75,76,78,79,80,81,82,83,85,86,87,88,89,90,99,100,101,102,103,104,106,107,108,109,110,111,113,114,115,116,117,118,120,121,122,123,124,125,127,128,129,130
mov $3,1
lpb $0
mov $2,$0
div $0,6
mod $2,6
mul $2,$3
add $1,$2
mul $3,7
lpe
mov $0,$1
add $0,1
|
Library/Text/TextSelect/tslMain.asm | steakknife/pcgeos | 504 | 176344 | <filename>Library/Text/TextSelect/tslMain.asm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tslMain.asm
AUTHOR: <NAME>, Oct 6, 1989
ROUTINES:
Name Description
---- -----------
TSL_SelectGetSelection
TSL_SelectGetSelectionStart
TSL_SelectGetSelectionEnd
TSL_SelectIsCursor
TSL_SelectGetCursorCoord
TSL_SelectSetSelection
SelectGetCursorLineBLO
SelectGetSelection
SelectIsCursor
SelectGetSelectionStart
SelectSetStartEnd
SelectGetAdjustPosition
SelectGetFixedPosition
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 10/6/89 Initial revision
DESCRIPTION:
Routines to handle selection in a text object.
$Id: tslMain.asm,v 1.1 97/04/07 11:20:03 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TextFixed segment
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TSL_SelectGetSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the selection range.
CALLED BY: Global
PASS: *ds:si = Instance ptr
RETURN: dx.ax = Selection start
cx.bx = Selection end
carry set if selection is a range
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/25/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TSL_SelectGetSelection proc far
call SelectGetSelection
ret
TSL_SelectGetSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TSL_SelectGetSelectionStart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the start of the selection.
CALLED BY: Utility
PASS: *ds:si = Instance ptr
RETURN: dx.ax = selection start
carry set if selection is a range
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 12/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TSL_SelectGetSelectionStart proc far
call SelectGetSelectionStart ; dx.ax <- start of selection
call SelectIsCursor ; carry clear if it is a range
cmc ; carry set if it is a range
ret
TSL_SelectGetSelectionStart endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TSL_SelectGetSelectionEnd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the end of the selection.
CALLED BY: Utility
PASS: *ds:si = Instance ptr
RETURN: dx.ax = selection end
carry set if selection is a range
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 12/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TSL_SelectGetSelectionEnd proc far
class VisTextClass
uses di
.enter
call TextFixed_DerefVis_DI
movdw dxax, ds:[di].VTI_selectEnd ; dxax <- end of selection
call SelectIsCursor ; carry clear if it is a range
cmc ; carry set if it is a range
.leave
ret
TSL_SelectGetSelectionEnd endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TSL_SelectIsCursor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Figure out if the current selection is a cursor
CALLED BY: Global
PASS: *ds:si = Instance ptr
RETURN: carry set if the selection is a cursor
carry clear otherwise
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/25/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TSL_SelectIsCursor proc far
call SelectIsCursor
ret
TSL_SelectIsCursor endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SelectGetCursorLineBLO
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the blo of the line where the cursor is.
CALLED BY: CursorPosition
PASS: *ds:si = Instance ptr
ax = X position of the cursor
dx = Y position of the cursor
cx = Cursor region
RETURN: ax = Baseline-offset of the line
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/ 7/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SelectGetCursorLineBLO proc far
uses bx, cx, dx, di
.enter
call TL_LineFromPosition ; bx.di <- line cursor is on
call TL_LineGetBLO ; dx.bl <- baseline offset
mov_tr ax, dx ; Return value in ax
.leave
ret
SelectGetCursorLineBLO endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TSL_SelectGetCursorCoord
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the cursor position.
CALLED BY: VisTextNotifyGeometryValid(2)
PASS: *ds:si = Instance ptr
RETURN: cx = Cursor region
ax = X position (region relative)
dx = Y position (region relative)
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 4/ 2/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TSL_SelectGetCursorCoord proc far
class VisTextClass
uses bx, di
.enter
call TextFixed_DerefVis_DI ; ds:di <- Instance
;
; Get the top-left of the cursor region
;
mov cx, ds:[di].VTI_cursorRegion ; cx <- cursor region
;
; Get the coordinate of the cursors text offset
;
call SelectGetSelectionStart ; dx.ax <- selectStart
call TSL_ConvertOffsetToRegionAndCoordinate
; cx <- x position
; dx <- y position
; ax <- region
mov ax, ds:[di].VTI_cursorRegion ; ax <- cursor region
xchg ax, cx ; ax <- x position
; cx <- cursor region
.leave
ret
TSL_SelectGetCursorCoord endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SelectGetSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the selected range.
CALLED BY: UTILITY
PASS: *ds:si = instance ptr.
RETURN: dx.ax = Select start
cx.bx = Select end
carry set if selection is a range
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 4/ 2/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SelectGetSelection proc near
class VisTextClass
uses di
.enter
call TextFixed_DerefVis_DI
movdw dxax, ds:[di].VTI_selectStart ; dx.ax <- start of selection
movdw cxbx, ds:[di].VTI_selectEnd ; cx.bx <- end of selection
call SelectIsCursor ; Carry clear if a range
cmc ; Carry set if a range
.leave
ret
SelectGetSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TSL_SelectSetSelection, TSL_SelectSetSelectionWithoutNukingUndo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the selection.
CALLED BY: UTILITY
PASS: *ds:si = instance ptr.
dx.ax = Selection start
cx.bx = Selection end
RETURN: zero clear (nz) if start-select is different
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 4/ 6/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TSL_SelectSetSelection proc far uses di, bp
class VisTextClass
.enter
call TU_NukeCachedUndo
mov bp, -1 ;Set BP non-zero if selection is
; changing
call TextFixed_DerefVis_DI
cmpdw ds:[di].VTI_selectEnd, cxbx
jnz isDifferent
cmpdw ds:[di].VTI_selectStart, dxax
jnz isDifferent
clr bp
isDifferent:
call TSL_SelectSetSelectionWithoutNukingUndo
pushf ;Save zero flag
tst bp ;If no change, branch
jz popExit
call T_CheckIfContextUpdateDesired
jz popExit
call SendSelectionContext
popExit:
popf
.leave
ret
TSL_SelectSetSelection endp
TSL_SelectSetSelectionWithoutNukingUndo proc far uses di
class VisTextClass
.enter
call TextFixed_DerefVis_DI
movdw ds:[di].VTI_selectEnd, cxbx
;
; Compare start-select
;
cmpdw ds:[di].VTI_selectStart, dxax
je quit ; Branch if same
movdw ds:[di].VTI_selectStart, dxax
quit:
;
; Z flag clear (nz) if the new start-select is different
;
.leave
ret
TSL_SelectSetSelectionWithoutNukingUndo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SelectIsCursor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Figure out if the current selection is a cursor or not.
CALLED BY: VisTextReplace
PASS: *ds:si = Instance ptr
RETURN: carry set if it is a cursor
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/21/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SelectIsCursor proc near
class VisTextClass
uses ax, dx, di
.enter
call TextFixed_DerefVis_DI ; ds:di <- instance ptr
movdw dxax, ds:[di].VTI_selectStart
cmpdw dxax, ds:[di].VTI_selectEnd
stc
je quit
clc ; Signal: isn't a cursor
quit:
.leave
ret
SelectIsCursor endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SelectGetSelectionStart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the selection start
CALLED BY: Utility
PASS: *ds:si = Instance ptr
RETURN: dx.ax = SelectStart
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/22/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SelectGetSelectionStart proc near
class VisTextClass
uses di
.enter
call TextFixed_DerefVis_DI
movdw dxax, ds:[di].VTI_selectStart
.leave
ret
SelectGetSelectionStart endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SelectGetAdjustPosition
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the adjust position
CALLED BY: Utility
PASS: *ds:si = Instance ptr
carry set for adjusting forward
carry clear for adjusting backwards
RETURN: dx.ax = Adjust position
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
The adjustable position really depends on what we're doing.
In general the selection looks like one of these:
|yyyyyyyyyyyyyyyyyyy|xxxxxxxxxxxxx|
| | |
selectStart minStart minEnd, selectEnd
|xxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyy|
| | |
selectStart,minStart minEnd selectEnd
The rule in either of these cases is:
if (selectStart == minStart)
adjustPos = selectEnd
else
adjustPos = selectStart
endif
The exception is when the selection is the minimum selection.
In that case the adjust position really depends on the direction
which you want to adjust.
If you are adjusting forward it makes sense to use the end of the
selection. If you are adjusting backwards it makes sense to use
the start of the selection.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 12/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SelectGetAdjustPosition proc far
class VisTextClass
uses di
.enter
pushf ; Save "forward/backward" flag
call TextFixed_DerefVis_DI ; ds:di <- instance ptr
movdw dxax, ds:[di].VTI_selectStart
cmpdw dxax, ds:[di].VTI_selectMinStart
jne gotAdjust
movdw dxax, ds:[di].VTI_selectEnd
cmpdw dxax, ds:[di].VTI_selectMinEnd
jne gotAdjust
;
; This is the case where we need to check the forward/backward flag
;
popf ; carry <- f/b flag
pushf ; Save flag again
;
; If we are adjusting forward (carry set) then we use the end of
; the selection. We just happen to have that in dx.ax
;
jc gotAdjust ; branch if going forward
;
; We are adjusting backwards. Use the selectStart
;
movdw dxax, ds:[di].VTI_selectStart
gotAdjust:
;
; dx.ax = Adjustable position.
;
popf ; Restore stack
.leave
ret
SelectGetAdjustPosition endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SelectGetFixedPosition
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the fixed position
CALLED BY: Utility
PASS: *ds:si = Instance ptr
carry set for adjusting forward
carry set for adjusting backwards
RETURN: dx.ax = fixed position
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 12/ 9/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SelectGetFixedPosition proc far
class VisTextClass
uses bx, cx, di
.enter
call SelectGetAdjustPosition ; dx.ax <- adjustable position
movdw cxbx, dxax ; cx.bx <- adjustable position
call TextFixed_DerefVis_DI ; ds:di <- instance ptr
movdw dxax, ds:[di].VTI_selectStart
cmpdw dxax, cxbx ; Check for start == adjust
jne gotPosition ; Branch if not
movdw dxax, ds:[di].VTI_selectEnd
gotPosition:
.leave
ret
SelectGetFixedPosition endp
TextFixed ends
|
target/cos_117/disasm/iop_overlay1/TDUMP.asm | jrrk2/cray-sim | 49 | 100572 | 0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x292E- f:00024 d: 302 | OR[302] = A
0x0002 (0x000004) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x0003 (0x000006) 0x2935- f:00024 d: 309 | OR[309] = A
0x0004 (0x000008) 0x1044- f:00010 d: 68 | A = 68 (0x0044)
0x0005 (0x00000A) 0x2936- f:00024 d: 310 | OR[310] = A
0x0006 (0x00000C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0007 (0x00000E) 0x2937- f:00024 d: 311 | OR[311] = A
0x0008 (0x000010) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0009 (0x000012) 0x2938- f:00024 d: 312 | OR[312] = A
0x000A (0x000014) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000B (0x000016) 0x2939- f:00024 d: 313 | OR[313] = A
0x000C (0x000018) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x000D (0x00001A) 0x293A- f:00024 d: 314 | OR[314] = A
0x000E (0x00001C) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x000F (0x00001E) 0x5800- f:00054 d: 0 | B = A
0x0010 (0x000020) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0011 (0x000022) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0012 (0x000024) 0xAE03-0x022C f:00127 d: 3 | P = OR[3]+556 (0x022C), A # 0
0x0014 (0x000028) 0x2120- f:00020 d: 288 | A = OR[288]
0x0015 (0x00002A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0016 (0x00002C) 0x291F- f:00024 d: 287 | OR[287] = A
0x0017 (0x00002E) 0x1042- f:00010 d: 66 | A = 66 (0x0042)
0x0018 (0x000030) 0x2921- f:00024 d: 289 | OR[289] = A
0x0019 (0x000032) 0x1030- f:00010 d: 48 | A = 48 (0x0030)
0x001A (0x000034) 0x2B1E- f:00025 d: 286 | OR[286] = A + OR[286]
0x001B (0x000036) 0x7588- f:00072 d: 392 | R = P + 392 (0x01A3)
0x001C (0x000038) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x001D (0x00003A) 0x2930- f:00024 d: 304 | OR[304] = A
0x001E (0x00003C) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0020 (0x000040) 0x290D- f:00024 d: 269 | OR[269] = A
0x0021 (0x000042) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0022 (0x000044) 0x290E- f:00024 d: 270 | OR[270] = A
0x0023 (0x000046) 0x2006- f:00020 d: 6 | A = OR[6]
0x0024 (0x000048) 0x2910- f:00024 d: 272 | OR[272] = A
0x0025 (0x00004A) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0026 (0x00004C) 0x2935- f:00024 d: 309 | OR[309] = A
0x0027 (0x00004E) 0x1800-0x00A9 f:00014 d: 0 | A = 169 (0x00A9)
0x0029 (0x000052) 0x2936- f:00024 d: 310 | OR[310] = A
0x002A (0x000054) 0x1800-0x5052 f:00014 d: 0 | A = 20562 (0x5052)
0x002C (0x000058) 0x2937- f:00024 d: 311 | OR[311] = A
0x002D (0x00005A) 0x210D- f:00020 d: 269 | A = OR[269]
0x002E (0x00005C) 0x2938- f:00024 d: 312 | OR[312] = A
0x002F (0x00005E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0030 (0x000060) 0x2939- f:00024 d: 313 | OR[313] = A
0x0031 (0x000062) 0x210E- f:00020 d: 270 | A = OR[270]
0x0032 (0x000064) 0x293A- f:00024 d: 314 | OR[314] = A
0x0033 (0x000066) 0x210F- f:00020 d: 271 | A = OR[271]
0x0034 (0x000068) 0x293B- f:00024 d: 315 | OR[315] = A
0x0035 (0x00006A) 0x2110- f:00020 d: 272 | A = OR[272]
0x0036 (0x00006C) 0x293C- f:00024 d: 316 | OR[316] = A
0x0037 (0x00006E) 0x1025- f:00010 d: 37 | A = 37 (0x0025)
0x0038 (0x000070) 0x293D- f:00024 d: 317 | OR[317] = A
0x0039 (0x000072) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x003A (0x000074) 0x5800- f:00054 d: 0 | B = A
0x003B (0x000076) 0x1800-0x3B18 f:00014 d: 0 | A = 15128 (0x3B18)
0x003D (0x00007A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x003E (0x00007C) 0x2932- f:00024 d: 306 | OR[306] = A
0x003F (0x00007E) 0x2131- f:00020 d: 305 | A = OR[305]
0x0040 (0x000080) 0xAC03-0x023B f:00126 d: 3 | P = OR[3]+571 (0x023B), A = 0
0x0042 (0x000084) 0x2132- f:00020 d: 306 | A = OR[306]
0x0043 (0x000086) 0xAE03-0x0233 f:00127 d: 3 | P = OR[3]+563 (0x0233), A # 0
0x0045 (0x00008A) 0x756B- f:00072 d: 363 | R = P + 363 (0x01B0)
0x0046 (0x00008C) 0x211D- f:00020 d: 285 | A = OR[285]
0x0047 (0x00008E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0049), A = 0
0x0048 (0x000090) 0x7003- f:00070 d: 3 | P = P + 3 (0x004B)
0x0049 (0x000092) 0x7003- f:00070 d: 3 | P = P + 3 (0x004C)
0x004A (0x000094) 0x7002- f:00070 d: 2 | P = P + 2 (0x004C)
0x004B (0x000096) 0x7013- f:00070 d: 19 | P = P + 19 (0x005E)
0x004C (0x000098) 0x2119- f:00020 d: 281 | A = OR[281]
0x004D (0x00009A) 0xAC03-0x0224 f:00126 d: 3 | P = OR[3]+548 (0x0224), A = 0
0x004F (0x00009E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0050 (0x0000A0) 0x2519- f:00022 d: 281 | A = A + OR[281]
0x0051 (0x0000A2) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x0052 (0x0000A4) 0x2933- f:00024 d: 307 | OR[307] = A
0x0053 (0x0000A6) 0x2133- f:00020 d: 307 | A = OR[307]
0x0054 (0x0000A8) 0x2928- f:00024 d: 296 | OR[296] = A
0x0055 (0x0000AA) 0x746D- f:00072 d: 109 | R = P + 109 (0x00C2)
0x0056 (0x0000AC) 0x2133- f:00020 d: 307 | A = OR[307]
0x0057 (0x0000AE) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x0058 (0x0000B0) 0x2933- f:00024 d: 307 | OR[307] = A
0x0059 (0x0000B2) 0x2133- f:00020 d: 307 | A = OR[307]
0x005A (0x0000B4) 0x2718- f:00023 d: 280 | A = A - OR[280]
0x005B (0x0000B6) 0x8A08- f:00105 d: 8 | P = P - 8 (0x0053), C = 1
0x005C (0x0000B8) 0x7A03-0x0224 f:00075 d: 3 | P = OR[3]+548 (0x0224)
0x005E (0x0000BC) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x005F (0x0000BE) 0x2935- f:00024 d: 309 | OR[309] = A
0x0060 (0x0000C0) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x0062 (0x0000C4) 0x2936- f:00024 d: 310 | OR[310] = A
0x0063 (0x0000C6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0064 (0x0000C8) 0x2937- f:00024 d: 311 | OR[311] = A
0x0065 (0x0000CA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0066 (0x0000CC) 0x2938- f:00024 d: 312 | OR[312] = A
0x0067 (0x0000CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0068 (0x0000D0) 0x2939- f:00024 d: 313 | OR[313] = A
0x0069 (0x0000D2) 0x112E- f:00010 d: 302 | A = 302 (0x012E)
0x006A (0x0000D4) 0x293A- f:00024 d: 314 | OR[314] = A
0x006B (0x0000D6) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x006C (0x0000D8) 0x5800- f:00054 d: 0 | B = A
0x006D (0x0000DA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x006E (0x0000DC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x006F (0x0000DE) 0xAE03-0x022C f:00127 d: 3 | P = OR[3]+556 (0x022C), A # 0
0x0071 (0x0000E2) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x0073 (0x0000E6) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002)
0x0074 (0x0000E8) 0x2926- f:00024 d: 294 | OR[294] = A
0x0075 (0x0000EA) 0x1800-0x2000 f:00014 d: 0 | A = 8192 (0x2000)
0x0077 (0x0000EE) 0x2927- f:00024 d: 295 | OR[295] = A
0x0078 (0x0000F0) 0x211A- f:00020 d: 282 | A = OR[282]
0x0079 (0x0000F2) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x007A (0x0000F4) 0x2924- f:00024 d: 292 | OR[292] = A
0x007B (0x0000F6) 0x211B- f:00020 d: 283 | A = OR[283]
0x007C (0x0000F8) 0x251C- f:00022 d: 284 | A = A + OR[284]
0x007D (0x0000FA) 0x2925- f:00024 d: 293 | OR[293] = A
0x007E (0x0000FC) 0x8002- f:00100 d: 2 | P = P + 2 (0x0080), C = 0
0x007F (0x0000FE) 0x2D24- f:00026 d: 292 | OR[292] = OR[292] + 1
0x0080 (0x000100) 0x7411- f:00072 d: 17 | R = P + 17 (0x0091)
0x0081 (0x000102) 0x211A- f:00020 d: 282 | A = OR[282]
0x0082 (0x000104) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0083 (0x000106) 0x2924- f:00024 d: 292 | OR[292] = A
0x0084 (0x000108) 0x211B- f:00020 d: 283 | A = OR[283]
0x0085 (0x00010A) 0x2527- f:00022 d: 295 | A = A + OR[295]
0x0086 (0x00010C) 0x2925- f:00024 d: 293 | OR[293] = A
0x0087 (0x00010E) 0x8002- f:00100 d: 2 | P = P + 2 (0x0089), C = 0
0x0088 (0x000110) 0x2D24- f:00026 d: 292 | OR[292] = OR[292] + 1
0x0089 (0x000112) 0x211B- f:00020 d: 283 | A = OR[283]
0x008A (0x000114) 0x251C- f:00022 d: 284 | A = A + OR[284]
0x008B (0x000116) 0x291B- f:00024 d: 283 | OR[283] = A
0x008C (0x000118) 0x8002- f:00100 d: 2 | P = P + 2 (0x008E), C = 0
0x008D (0x00011A) 0x2D1A- f:00026 d: 282 | OR[282] = OR[282] + 1
0x008E (0x00011C) 0x7403- f:00072 d: 3 | R = P + 3 (0x0091)
0x008F (0x00011E) 0x7A03-0x0224 f:00075 d: 3 | P = OR[3]+548 (0x0224)
0x0091 (0x000122) 0x211A- f:00020 d: 282 | A = OR[282]
0x0092 (0x000124) 0x2724- f:00023 d: 292 | A = A - OR[292]
0x0093 (0x000126) 0x8402- f:00102 d: 2 | P = P + 2 (0x0095), A = 0
0x0094 (0x000128) 0x7006- f:00070 d: 6 | P = P + 6 (0x009A)
0x0095 (0x00012A) 0x211B- f:00020 d: 283 | A = OR[283]
0x0096 (0x00012C) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x0097 (0x00012E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0099), A = 0
0x0098 (0x000130) 0x7002- f:00070 d: 2 | P = P + 2 (0x009A)
0x0099 (0x000132) 0x0200- f:00001 d: 0 | EXIT
0x009A (0x000134) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x009B (0x000136) 0x290F- f:00024 d: 271 | OR[271] = A
0x009C (0x000138) 0x2125- f:00020 d: 293 | A = OR[293]
0x009D (0x00013A) 0x2726- f:00023 d: 294 | A = A - OR[294]
0x009E (0x00013C) 0x2925- f:00024 d: 293 | OR[293] = A
0x009F (0x00013E) 0x8202- f:00101 d: 2 | P = P + 2 (0x00A1), C = 1
0x00A0 (0x000140) 0x2F24- f:00027 d: 292 | OR[292] = OR[292] - 1
0x00A1 (0x000142) 0x0810- f:00004 d: 16 | A = A > 16 (0x0010)
0x00A2 (0x000144) 0x230F- f:00021 d: 271 | A = A & OR[271]
0x00A3 (0x000146) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x00A4 (0x000148) 0x2935- f:00024 d: 309 | OR[309] = A
0x00A5 (0x00014A) 0x2124- f:00020 d: 292 | A = OR[292]
0x00A6 (0x00014C) 0x2936- f:00024 d: 310 | OR[310] = A
0x00A7 (0x00014E) 0x2125- f:00020 d: 293 | A = OR[293]
0x00A8 (0x000150) 0x2937- f:00024 d: 311 | OR[311] = A
0x00A9 (0x000152) 0x212E- f:00020 d: 302 | A = OR[302]
0x00AA (0x000154) 0x2938- f:00024 d: 312 | OR[312] = A
0x00AB (0x000156) 0x2126- f:00020 d: 294 | A = OR[294]
0x00AC (0x000158) 0x2939- f:00024 d: 313 | OR[313] = A
0x00AD (0x00015A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00AE (0x00015C) 0x293A- f:00024 d: 314 | OR[314] = A
0x00AF (0x00015E) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x00B0 (0x000160) 0x5800- f:00054 d: 0 | B = A
0x00B1 (0x000162) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B2 (0x000164) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00B3 (0x000166) 0x212E- f:00020 d: 302 | A = OR[302]
0x00B4 (0x000168) 0x1C00-0x0200 f:00016 d: 0 | A = A + 512 (0x0200)
0x00B6 (0x00016C) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x00B7 (0x00016E) 0x2933- f:00024 d: 307 | OR[307] = A
0x00B8 (0x000170) 0x2133- f:00020 d: 307 | A = OR[307]
0x00B9 (0x000172) 0x2928- f:00024 d: 296 | OR[296] = A
0x00BA (0x000174) 0x7408- f:00072 d: 8 | R = P + 8 (0x00C2)
0x00BB (0x000176) 0x2133- f:00020 d: 307 | A = OR[307]
0x00BC (0x000178) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x00BD (0x00017A) 0x2933- f:00024 d: 307 | OR[307] = A
0x00BE (0x00017C) 0x2133- f:00020 d: 307 | A = OR[307]
0x00BF (0x00017E) 0x272E- f:00023 d: 302 | A = A - OR[302]
0x00C0 (0x000180) 0x8A08- f:00105 d: 8 | P = P - 8 (0x00B8), C = 1
0x00C1 (0x000182) 0x7230- f:00071 d: 48 | P = P - 48 (0x0091)
0x00C2 (0x000184) 0x3128- f:00030 d: 296 | A = (OR[296])
0x00C3 (0x000186) 0x8602- f:00103 d: 2 | P = P + 2 (0x00C5), A # 0
0x00C4 (0x000188) 0x0200- f:00001 d: 0 | EXIT
0x00C5 (0x00018A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00C6 (0x00018C) 0x2929- f:00024 d: 297 | OR[297] = A
0x00C7 (0x00018E) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x00C8 (0x000190) 0x292A- f:00024 d: 298 | OR[298] = A
0x00C9 (0x000192) 0x1012- f:00010 d: 18 | A = 18 (0x0012)
0x00CA (0x000194) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x00CB (0x000196) 0x292B- f:00024 d: 299 | OR[299] = A
0x00CC (0x000198) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x00CD (0x00019A) 0x292C- f:00024 d: 300 | OR[300] = A
0x00CE (0x00019C) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x00CF (0x00019E) 0x292D- f:00024 d: 301 | OR[301] = A
0x00D0 (0x0001A0) 0x3128- f:00030 d: 296 | A = (OR[296])
0x00D1 (0x0001A2) 0x292F- f:00024 d: 303 | OR[303] = A
0x00D2 (0x0001A4) 0x1800-0x0270 f:00014 d: 0 | A = 624 (0x0270)
0x00D4 (0x0001A8) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x00D5 (0x0001AA) 0x252F- f:00022 d: 303 | A = A + OR[303]
0x00D6 (0x0001AC) 0x2922- f:00024 d: 290 | OR[290] = A
0x00D7 (0x0001AE) 0x3122- f:00030 d: 290 | A = (OR[290])
0x00D8 (0x0001B0) 0x8409- f:00102 d: 9 | P = P + 9 (0x00E1), A = 0
0x00D9 (0x0001B2) 0x1800-0x02AD f:00014 d: 0 | A = 685 (0x02AD)
0x00DB (0x0001B6) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x00DC (0x0001B8) 0x2908- f:00024 d: 264 | OR[264] = A
0x00DD (0x0001BA) 0x2122- f:00020 d: 290 | A = OR[290]
0x00DE (0x0001BC) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00DF (0x0001BE) 0x8202- f:00101 d: 2 | P = P + 2 (0x00E1), C = 1
0x00E0 (0x0001C0) 0x7003- f:00070 d: 3 | P = P + 3 (0x00E3)
0x00E1 (0x0001C2) 0x74A9- f:00072 d: 169 | R = P + 169 (0x018A)
0x00E2 (0x0001C4) 0x7028- f:00070 d: 40 | P = P + 40 (0x010A)
0x00E3 (0x0001C6) 0x3122- f:00030 d: 290 | A = (OR[290])
0x00E4 (0x0001C8) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x00E5 (0x0001CA) 0x2922- f:00024 d: 290 | OR[290] = A
0x00E6 (0x0001CC) 0x212B- f:00020 d: 299 | A = OR[299]
0x00E7 (0x0001CE) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x00E8 (0x0001D0) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x00E9 (0x0001D2) 0x2923- f:00024 d: 291 | OR[291] = A
0x00EA (0x0001D4) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x00EB (0x0001D6) 0x2934- f:00024 d: 308 | OR[308] = A
0x00EC (0x0001D8) 0x2134- f:00020 d: 308 | A = OR[308]
0x00ED (0x0001DA) 0x8402- f:00102 d: 2 | P = P + 2 (0x00EF), A = 0
0x00EE (0x0001DC) 0x7004- f:00070 d: 4 | P = P + 4 (0x00F2)
0x00EF (0x0001DE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00F0 (0x0001E0) 0x290D- f:00024 d: 269 | OR[269] = A
0x00F1 (0x0001E2) 0x7003- f:00070 d: 3 | P = P + 3 (0x00F4)
0x00F2 (0x0001E4) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00F3 (0x0001E6) 0x290D- f:00024 d: 269 | OR[269] = A
0x00F4 (0x0001E8) 0x210D- f:00020 d: 269 | A = OR[269]
0x00F5 (0x0001EA) 0x8402- f:00102 d: 2 | P = P + 2 (0x00F7), A = 0
0x00F6 (0x0001EC) 0x7006- f:00070 d: 6 | P = P + 6 (0x00FC)
0x00F7 (0x0001EE) 0x3122- f:00030 d: 290 | A = (OR[290])
0x00F8 (0x0001F0) 0x8402- f:00102 d: 2 | P = P + 2 (0x00FA), A = 0
0x00F9 (0x0001F2) 0x7003- f:00070 d: 3 | P = P + 3 (0x00FC)
0x00FA (0x0001F4) 0x7010- f:00070 d: 16 | P = P + 16 (0x010A)
0x00FB (0x0001F6) 0x7009- f:00070 d: 9 | P = P + 9 (0x0104)
0x00FC (0x0001F8) 0x210D- f:00020 d: 269 | A = OR[269]
0x00FD (0x0001FA) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x00FE (0x0001FC) 0x8402- f:00102 d: 2 | P = P + 2 (0x0100), A = 0
0x00FF (0x0001FE) 0x7005- f:00070 d: 5 | P = P + 5 (0x0104)
0x0100 (0x000200) 0x2134- f:00020 d: 308 | A = OR[308]
0x0101 (0x000202) 0x8402- f:00102 d: 2 | P = P + 2 (0x0103), A = 0
0x0102 (0x000204) 0x7002- f:00070 d: 2 | P = P + 2 (0x0104)
0x0103 (0x000206) 0x7007- f:00070 d: 7 | P = P + 7 (0x010A)
0x0104 (0x000208) 0x3122- f:00030 d: 290 | A = (OR[290])
0x0105 (0x00020A) 0x3923- f:00034 d: 291 | (OR[291]) = A
0x0106 (0x00020C) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0107 (0x00020E) 0x2D23- f:00026 d: 291 | OR[291] = OR[291] + 1
0x0108 (0x000210) 0x2F34- f:00027 d: 308 | OR[308] = OR[308] - 1
0x0109 (0x000212) 0x7215- f:00071 d: 21 | P = P - 21 (0x00F4)
0x010A (0x000214) 0x2D28- f:00026 d: 296 | OR[296] = OR[296] + 1
0x010B (0x000216) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x010C (0x000218) 0x2B2B- f:00025 d: 299 | OR[299] = A + OR[299]
0x010D (0x00021A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x010E (0x00021C) 0x2922- f:00024 d: 290 | OR[290] = A
0x010F (0x00021E) 0x747B- f:00072 d: 123 | R = P + 123 (0x018A)
0x0110 (0x000220) 0x2D28- f:00026 d: 296 | OR[296] = OR[296] + 1
0x0111 (0x000222) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0112 (0x000224) 0x2B2B- f:00025 d: 299 | OR[299] = A + OR[299]
0x0113 (0x000226) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0114 (0x000228) 0x2122- f:00020 d: 290 | A = OR[290]
0x0115 (0x00022A) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0116 (0x00022C) 0x8807- f:00104 d: 7 | P = P - 7 (0x010F), C = 0
0x0117 (0x00022E) 0x212F- f:00020 d: 303 | A = OR[303]
0x0118 (0x000230) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x0119 (0x000232) 0x8405- f:00102 d: 5 | P = P + 5 (0x011E), A = 0
0x011A (0x000234) 0x212F- f:00020 d: 303 | A = OR[303]
0x011B (0x000236) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x011C (0x000238) 0x8402- f:00102 d: 2 | P = P + 2 (0x011E), A = 0
0x011D (0x00023A) 0x7039- f:00070 d: 57 | P = P + 57 (0x0156)
0x011E (0x00023C) 0x1800-0x033A f:00014 d: 0 | A = 826 (0x033A)
0x0120 (0x000240) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0121 (0x000242) 0x3528- f:00032 d: 296 | A = A + (OR[296])
0x0122 (0x000244) 0x2922- f:00024 d: 290 | OR[290] = A
0x0123 (0x000246) 0x3122- f:00030 d: 290 | A = (OR[290])
0x0124 (0x000248) 0x8602- f:00103 d: 2 | P = P + 2 (0x0126), A # 0
0x0125 (0x00024A) 0x7031- f:00070 d: 49 | P = P + 49 (0x0156)
0x0126 (0x00024C) 0x1800-0x0368 f:00014 d: 0 | A = 872 (0x0368)
0x0128 (0x000250) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0129 (0x000252) 0x2908- f:00024 d: 264 | OR[264] = A
0x012A (0x000254) 0x2122- f:00020 d: 290 | A = OR[290]
0x012B (0x000256) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x012C (0x000258) 0x8002- f:00100 d: 2 | P = P + 2 (0x012E), C = 0
0x012D (0x00025A) 0x7029- f:00070 d: 41 | P = P + 41 (0x0156)
0x012E (0x00025C) 0x3122- f:00030 d: 290 | A = (OR[290])
0x012F (0x00025E) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0130 (0x000260) 0x2922- f:00024 d: 290 | OR[290] = A
0x0131 (0x000262) 0x212B- f:00020 d: 299 | A = OR[299]
0x0132 (0x000264) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0133 (0x000266) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x0134 (0x000268) 0x2923- f:00024 d: 291 | OR[291] = A
0x0135 (0x00026A) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0136 (0x00026C) 0x2934- f:00024 d: 308 | OR[308] = A
0x0137 (0x00026E) 0x2134- f:00020 d: 308 | A = OR[308]
0x0138 (0x000270) 0x8402- f:00102 d: 2 | P = P + 2 (0x013A), A = 0
0x0139 (0x000272) 0x7004- f:00070 d: 4 | P = P + 4 (0x013D)
0x013A (0x000274) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x013B (0x000276) 0x290D- f:00024 d: 269 | OR[269] = A
0x013C (0x000278) 0x7003- f:00070 d: 3 | P = P + 3 (0x013F)
0x013D (0x00027A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x013E (0x00027C) 0x290D- f:00024 d: 269 | OR[269] = A
0x013F (0x00027E) 0x210D- f:00020 d: 269 | A = OR[269]
0x0140 (0x000280) 0x8402- f:00102 d: 2 | P = P + 2 (0x0142), A = 0
0x0141 (0x000282) 0x7006- f:00070 d: 6 | P = P + 6 (0x0147)
0x0142 (0x000284) 0x3122- f:00030 d: 290 | A = (OR[290])
0x0143 (0x000286) 0x8402- f:00102 d: 2 | P = P + 2 (0x0145), A = 0
0x0144 (0x000288) 0x7003- f:00070 d: 3 | P = P + 3 (0x0147)
0x0145 (0x00028A) 0x7010- f:00070 d: 16 | P = P + 16 (0x0155)
0x0146 (0x00028C) 0x7009- f:00070 d: 9 | P = P + 9 (0x014F)
0x0147 (0x00028E) 0x210D- f:00020 d: 269 | A = OR[269]
0x0148 (0x000290) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0149 (0x000292) 0x8402- f:00102 d: 2 | P = P + 2 (0x014B), A = 0
0x014A (0x000294) 0x7005- f:00070 d: 5 | P = P + 5 (0x014F)
0x014B (0x000296) 0x2134- f:00020 d: 308 | A = OR[308]
0x014C (0x000298) 0x8402- f:00102 d: 2 | P = P + 2 (0x014E), A = 0
0x014D (0x00029A) 0x7002- f:00070 d: 2 | P = P + 2 (0x014F)
0x014E (0x00029C) 0x7007- f:00070 d: 7 | P = P + 7 (0x0155)
0x014F (0x00029E) 0x3122- f:00030 d: 290 | A = (OR[290])
0x0150 (0x0002A0) 0x3923- f:00034 d: 291 | (OR[291]) = A
0x0151 (0x0002A2) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0152 (0x0002A4) 0x2D23- f:00026 d: 291 | OR[291] = OR[291] + 1
0x0153 (0x0002A6) 0x2F34- f:00027 d: 308 | OR[308] = OR[308] - 1
0x0154 (0x0002A8) 0x7215- f:00071 d: 21 | P = P - 21 (0x013F)
0x0155 (0x0002AA) 0x7002- f:00070 d: 2 | P = P + 2 (0x0157)
0x0156 (0x0002AC) 0x7434- f:00072 d: 52 | R = P + 52 (0x018A)
0x0157 (0x0002AE) 0x2D28- f:00026 d: 296 | OR[296] = OR[296] + 1
0x0158 (0x0002B0) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0159 (0x0002B2) 0x2B2B- f:00025 d: 299 | OR[299] = A + OR[299]
0x015A (0x0002B4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x015B (0x0002B6) 0x2922- f:00024 d: 290 | OR[290] = A
0x015C (0x0002B8) 0x742E- f:00072 d: 46 | R = P + 46 (0x018A)
0x015D (0x0002BA) 0x2D28- f:00026 d: 296 | OR[296] = OR[296] + 1
0x015E (0x0002BC) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x015F (0x0002BE) 0x2B2B- f:00025 d: 299 | OR[299] = A + OR[299]
0x0160 (0x0002C0) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0161 (0x0002C2) 0x2122- f:00020 d: 290 | A = OR[290]
0x0162 (0x0002C4) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0163 (0x0002C6) 0x8807- f:00104 d: 7 | P = P - 7 (0x015C), C = 0
0x0164 (0x0002C8) 0x7402- f:00072 d: 2 | R = P + 2 (0x0166)
0x0165 (0x0002CA) 0x0200- f:00001 d: 0 | EXIT
0x0166 (0x0002CC) 0x740A- f:00072 d: 10 | R = P + 10 (0x0170)
0x0167 (0x0002CE) 0x743C- f:00072 d: 60 | R = P + 60 (0x01A3)
0x0168 (0x0002D0) 0x2130- f:00020 d: 304 | A = OR[304]
0x0169 (0x0002D2) 0x1630- f:00013 d: 48 | A = A - 48 (0x0030)
0x016A (0x0002D4) 0x8202- f:00101 d: 2 | P = P + 2 (0x016C), C = 1
0x016B (0x0002D6) 0x0200- f:00001 d: 0 | EXIT
0x016C (0x0002D8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016D (0x0002DA) 0x2930- f:00024 d: 304 | OR[304] = A
0x016E (0x0002DC) 0x7442- f:00072 d: 66 | R = P + 66 (0x01B0)
0x016F (0x0002DE) 0x0200- f:00001 d: 0 | EXIT
0x0170 (0x0002E0) 0x2131- f:00020 d: 305 | A = OR[305]
0x0171 (0x0002E2) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0172 (0x0002E4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0173 (0x0002E6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0174 (0x0002E8) 0x290D- f:00024 d: 269 | OR[269] = A
0x0175 (0x0002EA) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0176 (0x0002EC) 0x2935- f:00024 d: 309 | OR[309] = A
0x0177 (0x0002EE) 0x210D- f:00020 d: 269 | A = OR[269]
0x0178 (0x0002F0) 0x2936- f:00024 d: 310 | OR[310] = A
0x0179 (0x0002F2) 0x2131- f:00020 d: 305 | A = OR[305]
0x017A (0x0002F4) 0x2937- f:00024 d: 311 | OR[311] = A
0x017B (0x0002F6) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x017C (0x0002F8) 0x2938- f:00024 d: 312 | OR[312] = A
0x017D (0x0002FA) 0x2120- f:00020 d: 288 | A = OR[288]
0x017E (0x0002FC) 0x2939- f:00024 d: 313 | OR[313] = A
0x017F (0x0002FE) 0x2121- f:00020 d: 289 | A = OR[289]
0x0180 (0x000300) 0x293A- f:00024 d: 314 | OR[314] = A
0x0181 (0x000302) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x0182 (0x000304) 0x5800- f:00054 d: 0 | B = A
0x0183 (0x000306) 0x1800-0x3B18 f:00014 d: 0 | A = 15128 (0x3B18)
0x0185 (0x00030A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0186 (0x00030C) 0xAE03-0x0233 f:00127 d: 3 | P = OR[3]+563 (0x0233), A # 0
0x0188 (0x000310) 0x2D30- f:00026 d: 304 | OR[304] = OR[304] + 1
0x0189 (0x000312) 0x0200- f:00001 d: 0 | EXIT
0x018A (0x000314) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x018B (0x000316) 0x2935- f:00024 d: 309 | OR[309] = A
0x018C (0x000318) 0x1800-0x0011 f:00014 d: 0 | A = 17 (0x0011)
0x018E (0x00031C) 0x2936- f:00024 d: 310 | OR[310] = A
0x018F (0x00031E) 0x2128- f:00020 d: 296 | A = OR[296]
0x0190 (0x000320) 0x2937- f:00024 d: 311 | OR[311] = A
0x0191 (0x000322) 0x2129- f:00020 d: 297 | A = OR[297]
0x0192 (0x000324) 0x2938- f:00024 d: 312 | OR[312] = A
0x0193 (0x000326) 0x212A- f:00020 d: 298 | A = OR[298]
0x0194 (0x000328) 0x2939- f:00024 d: 313 | OR[313] = A
0x0195 (0x00032A) 0x211F- f:00020 d: 287 | A = OR[287]
0x0196 (0x00032C) 0x293A- f:00024 d: 314 | OR[314] = A
0x0197 (0x00032E) 0x212B- f:00020 d: 299 | A = OR[299]
0x0198 (0x000330) 0x293B- f:00024 d: 315 | OR[315] = A
0x0199 (0x000332) 0x212C- f:00020 d: 300 | A = OR[300]
0x019A (0x000334) 0x293C- f:00024 d: 316 | OR[316] = A
0x019B (0x000336) 0x212D- f:00020 d: 301 | A = OR[301]
0x019C (0x000338) 0x293D- f:00024 d: 317 | OR[317] = A
0x019D (0x00033A) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x019E (0x00033C) 0x5800- f:00054 d: 0 | B = A
0x019F (0x00033E) 0x1800-0x3B18 f:00014 d: 0 | A = 15128 (0x3B18)
0x01A1 (0x000342) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01A2 (0x000344) 0x0200- f:00001 d: 0 | EXIT
0x01A3 (0x000346) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01A4 (0x000348) 0x2922- f:00024 d: 290 | OR[290] = A
0x01A5 (0x00034A) 0x211F- f:00020 d: 287 | A = OR[287]
0x01A6 (0x00034C) 0x2522- f:00022 d: 290 | A = A + OR[290]
0x01A7 (0x00034E) 0x2923- f:00024 d: 291 | OR[291] = A
0x01A8 (0x000350) 0x1800-0x2020 f:00014 d: 0 | A = 8224 (0x2020)
0x01AA (0x000354) 0x3923- f:00034 d: 291 | (OR[291]) = A
0x01AB (0x000356) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x01AC (0x000358) 0x2122- f:00020 d: 290 | A = OR[290]
0x01AD (0x00035A) 0x1643- f:00013 d: 67 | A = A - 67 (0x0043)
0x01AE (0x00035C) 0x8809- f:00104 d: 9 | P = P - 9 (0x01A5), C = 0
0x01AF (0x00035E) 0x0200- f:00001 d: 0 | EXIT
0x01B0 (0x000360) 0x1031- f:00010 d: 49 | A = 49 (0x0031)
0x01B1 (0x000362) 0x3920- f:00034 d: 288 | (OR[288]) = A
0x01B2 (0x000364) 0x1800-0x03D7 f:00014 d: 0 | A = 983 (0x03D7)
0x01B4 (0x000368) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x01B5 (0x00036A) 0x2922- f:00024 d: 290 | OR[290] = A
0x01B6 (0x00036C) 0x211F- f:00020 d: 287 | A = OR[287]
0x01B7 (0x00036E) 0x1412- f:00012 d: 18 | A = A + 18 (0x0012)
0x01B8 (0x000370) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x01B9 (0x000372) 0x2923- f:00024 d: 291 | OR[291] = A
0x01BA (0x000374) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01BB (0x000376) 0x8402- f:00102 d: 2 | P = P + 2 (0x01BD), A = 0
0x01BC (0x000378) 0x7004- f:00070 d: 4 | P = P + 4 (0x01C0)
0x01BD (0x00037A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01BE (0x00037C) 0x290D- f:00024 d: 269 | OR[269] = A
0x01BF (0x00037E) 0x7003- f:00070 d: 3 | P = P + 3 (0x01C2)
0x01C0 (0x000380) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01C1 (0x000382) 0x290D- f:00024 d: 269 | OR[269] = A
0x01C2 (0x000384) 0x210D- f:00020 d: 269 | A = OR[269]
0x01C3 (0x000386) 0x8402- f:00102 d: 2 | P = P + 2 (0x01C5), A = 0
0x01C4 (0x000388) 0x7006- f:00070 d: 6 | P = P + 6 (0x01CA)
0x01C5 (0x00038A) 0x3122- f:00030 d: 290 | A = (OR[290])
0x01C6 (0x00038C) 0x8402- f:00102 d: 2 | P = P + 2 (0x01C8), A = 0
0x01C7 (0x00038E) 0x7003- f:00070 d: 3 | P = P + 3 (0x01CA)
0x01C8 (0x000390) 0x700F- f:00070 d: 15 | P = P + 15 (0x01D7)
0x01C9 (0x000392) 0x7009- f:00070 d: 9 | P = P + 9 (0x01D2)
0x01CA (0x000394) 0x210D- f:00020 d: 269 | A = OR[269]
0x01CB (0x000396) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x01CC (0x000398) 0x8402- f:00102 d: 2 | P = P + 2 (0x01CE), A = 0
0x01CD (0x00039A) 0x7005- f:00070 d: 5 | P = P + 5 (0x01D2)
0x01CE (0x00039C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01CF (0x00039E) 0x8402- f:00102 d: 2 | P = P + 2 (0x01D1), A = 0
0x01D0 (0x0003A0) 0x7002- f:00070 d: 2 | P = P + 2 (0x01D2)
0x01D1 (0x0003A2) 0x7006- f:00070 d: 6 | P = P + 6 (0x01D7)
0x01D2 (0x0003A4) 0x3122- f:00030 d: 290 | A = (OR[290])
0x01D3 (0x0003A6) 0x3923- f:00034 d: 291 | (OR[291]) = A
0x01D4 (0x0003A8) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x01D5 (0x0003AA) 0x2D23- f:00026 d: 291 | OR[291] = OR[291] + 1
0x01D6 (0x0003AC) 0x7214- f:00071 d: 20 | P = P - 20 (0x01C2)
0x01D7 (0x0003AE) 0x103C- f:00010 d: 60 | A = 60 (0x003C)
0x01D8 (0x0003B0) 0x2922- f:00024 d: 290 | OR[290] = A
0x01D9 (0x0003B2) 0x211E- f:00020 d: 286 | A = OR[286]
0x01DA (0x0003B4) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x01DB (0x0003B6) 0x290D- f:00024 d: 269 | OR[269] = A
0x01DC (0x0003B8) 0x2122- f:00020 d: 290 | A = OR[290]
0x01DD (0x0003BA) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x01DE (0x0003BC) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x01DF (0x0003BE) 0x290E- f:00024 d: 270 | OR[270] = A
0x01E0 (0x0003C0) 0x2122- f:00020 d: 290 | A = OR[290]
0x01E1 (0x0003C2) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x01E2 (0x0003C4) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E3 (0x0003C6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01E4 (0x0003C8) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01E5 (0x0003CA) 0x8607- f:00103 d: 7 | P = P + 7 (0x01EC), A # 0
0x01E6 (0x0003CC) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01E7 (0x0003CE) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x01E8 (0x0003D0) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01E9 (0x0003D2) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x01EA (0x0003D4) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01EB (0x0003D6) 0x7006- f:00070 d: 6 | P = P + 6 (0x01F1)
0x01EC (0x0003D8) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01ED (0x0003DA) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x01EF (0x0003DE) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01F0 (0x0003E0) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01F1 (0x0003E2) 0x768B- f:00073 d: 139 | R = P - 139 (0x0166)
0x01F2 (0x0003E4) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x01F3 (0x0003E6) 0x3920- f:00034 d: 288 | (OR[288]) = A
0x01F4 (0x0003E8) 0x768E- f:00073 d: 142 | R = P - 142 (0x0166)
0x01F5 (0x0003EA) 0x768F- f:00073 d: 143 | R = P - 143 (0x0166)
0x01F6 (0x0003EC) 0x1800-0x03E1 f:00014 d: 0 | A = 993 (0x03E1)
0x01F8 (0x0003F0) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x01F9 (0x0003F2) 0x2922- f:00024 d: 290 | OR[290] = A
0x01FA (0x0003F4) 0x211F- f:00020 d: 287 | A = OR[287]
0x01FB (0x0003F6) 0x1412- f:00012 d: 18 | A = A + 18 (0x0012)
0x01FC (0x0003F8) 0x2923- f:00024 d: 291 | OR[291] = A
0x01FD (0x0003FA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01FE (0x0003FC) 0xAC03-0x0207 f:00126 d: 3 | P = OR[3]+519 (0x0207), A = 0
0x0200 (0x000400) 0x7004- f:00070 d: 4 | P = P + 4 (0x0204)
0x0201 (0x000402) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0202 (0x000404) 0x290D- f:00024 d: 269 | OR[269] = A
0x0203 (0x000406) 0x7003- f:00070 d: 3 | P = P + 3 (0x0206)
0x0204 (0x000408) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0205 (0x00040A) 0x290D- f:00024 d: 269 | OR[269] = A
0x0206 (0x00040C) 0x210D- f:00020 d: 269 | A = OR[269]
0x0207 (0x00040E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0209), A = 0
0x0208 (0x000410) 0x7006- f:00070 d: 6 | P = P + 6 (0x020E)
0x0209 (0x000412) 0x3122- f:00030 d: 290 | A = (OR[290])
0x020A (0x000414) 0x8402- f:00102 d: 2 | P = P + 2 (0x020C), A = 0
0x020B (0x000416) 0x7003- f:00070 d: 3 | P = P + 3 (0x020E)
0x020C (0x000418) 0x700F- f:00070 d: 15 | P = P + 15 (0x021B)
0x020D (0x00041A) 0x7009- f:00070 d: 9 | P = P + 9 (0x0216)
0x020E (0x00041C) 0x210D- f:00020 d: 269 | A = OR[269]
0x020F (0x00041E) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0210 (0x000420) 0x8402- f:00102 d: 2 | P = P + 2 (0x0212), A = 0
0x0211 (0x000422) 0x7005- f:00070 d: 5 | P = P + 5 (0x0216)
0x0212 (0x000424) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0213 (0x000426) 0x8402- f:00102 d: 2 | P = P + 2 (0x0215), A = 0
0x0214 (0x000428) 0x7002- f:00070 d: 2 | P = P + 2 (0x0216)
0x0215 (0x00042A) 0x7006- f:00070 d: 6 | P = P + 6 (0x021B)
0x0216 (0x00042C) 0x3122- f:00030 d: 290 | A = (OR[290])
0x0217 (0x00042E) 0x3923- f:00034 d: 291 | (OR[291]) = A
0x0218 (0x000430) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0219 (0x000432) 0x2D23- f:00026 d: 291 | OR[291] = OR[291] + 1
0x021A (0x000434) 0x7214- f:00071 d: 20 | P = P - 20 (0x0206)
0x021B (0x000436) 0x76B5- f:00073 d: 181 | R = P - 181 (0x0166)
0x021C (0x000438) 0x76B6- f:00073 d: 182 | R = P - 182 (0x0166)
0x021D (0x00043A) 0x0200- f:00001 d: 0 | EXIT
0x021E (0x00043C) 0x742F- f:00072 d: 47 | R = P + 47 (0x024D)
0x021F (0x00043E) 0x741D- f:00072 d: 29 | R = P + 29 (0x023C)
0x0220 (0x000440) 0x2005- f:00020 d: 5 | A = OR[5]
0x0221 (0x000442) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0222 (0x000444) 0x2908- f:00024 d: 264 | OR[264] = A
0x0223 (0x000446) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0224 (0x000448) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0225 (0x00044A) 0x703F- f:00070 d: 63 | P = P + 63 (0x0264)
0x0226 (0x00044C) 0x7427- f:00072 d: 39 | R = P + 39 (0x024D)
0x0227 (0x00044E) 0x2005- f:00020 d: 5 | A = OR[5]
0x0228 (0x000450) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0229 (0x000452) 0x2908- f:00024 d: 264 | OR[264] = A
0x022A (0x000454) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x022B (0x000456) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x022C (0x000458) 0x7038- f:00070 d: 56 | P = P + 56 (0x0264)
0x022D (0x00045A) 0x7420- f:00072 d: 32 | R = P + 32 (0x024D)
0x022E (0x00045C) 0x740E- f:00072 d: 14 | R = P + 14 (0x023C)
0x022F (0x00045E) 0x2005- f:00020 d: 5 | A = OR[5]
0x0230 (0x000460) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0231 (0x000462) 0x2908- f:00024 d: 264 | OR[264] = A
0x0232 (0x000464) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0233 (0x000466) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0234 (0x000468) 0x7030- f:00070 d: 48 | P = P + 48 (0x0264)
0x0235 (0x00046A) 0x7418- f:00072 d: 24 | R = P + 24 (0x024D)
0x0236 (0x00046C) 0x2005- f:00020 d: 5 | A = OR[5]
0x0237 (0x00046E) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0238 (0x000470) 0x2908- f:00024 d: 264 | OR[264] = A
0x0239 (0x000472) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x023A (0x000474) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x023B (0x000476) 0x7029- f:00070 d: 41 | P = P + 41 (0x0264)
0x023C (0x000478) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x023D (0x00047A) 0x290D- f:00024 d: 269 | OR[269] = A
0x023E (0x00047C) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x023F (0x00047E) 0x2935- f:00024 d: 309 | OR[309] = A
0x0240 (0x000480) 0x1800-0x00A5 f:00014 d: 0 | A = 165 (0x00A5)
0x0242 (0x000484) 0x2936- f:00024 d: 310 | OR[310] = A
0x0243 (0x000486) 0x2131- f:00020 d: 305 | A = OR[305]
0x0244 (0x000488) 0x2937- f:00024 d: 311 | OR[311] = A
0x0245 (0x00048A) 0x210D- f:00020 d: 269 | A = OR[269]
0x0246 (0x00048C) 0x2938- f:00024 d: 312 | OR[312] = A
0x0247 (0x00048E) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x0248 (0x000490) 0x5800- f:00054 d: 0 | B = A
0x0249 (0x000492) 0x1800-0x3B18 f:00014 d: 0 | A = 15128 (0x3B18)
0x024B (0x000496) 0x7C09- f:00076 d: 9 | R = OR[9]
0x024C (0x000498) 0x0200- f:00001 d: 0 | EXIT
0x024D (0x00049A) 0x2120- f:00020 d: 288 | A = OR[288]
0x024E (0x00049C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0250), A # 0
0x024F (0x00049E) 0x7009- f:00070 d: 9 | P = P + 9 (0x0258)
0x0250 (0x0004A0) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x0251 (0x0004A2) 0x2935- f:00024 d: 309 | OR[309] = A
0x0252 (0x0004A4) 0x2120- f:00020 d: 288 | A = OR[288]
0x0253 (0x0004A6) 0x2936- f:00024 d: 310 | OR[310] = A
0x0254 (0x0004A8) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x0255 (0x0004AA) 0x5800- f:00054 d: 0 | B = A
0x0256 (0x0004AC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0257 (0x0004AE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0258 (0x0004B0) 0x212E- f:00020 d: 302 | A = OR[302]
0x0259 (0x0004B2) 0x8602- f:00103 d: 2 | P = P + 2 (0x025B), A # 0
0x025A (0x0004B4) 0x7009- f:00070 d: 9 | P = P + 9 (0x0263)
0x025B (0x0004B6) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x025C (0x0004B8) 0x2935- f:00024 d: 309 | OR[309] = A
0x025D (0x0004BA) 0x212E- f:00020 d: 302 | A = OR[302]
0x025E (0x0004BC) 0x2936- f:00024 d: 310 | OR[310] = A
0x025F (0x0004BE) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x0260 (0x0004C0) 0x5800- f:00054 d: 0 | B = A
0x0261 (0x0004C2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0262 (0x0004C4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0263 (0x0004C6) 0x0200- f:00001 d: 0 | EXIT
0x0264 (0x0004C8) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0265 (0x0004CA) 0x2935- f:00024 d: 309 | OR[309] = A
0x0266 (0x0004CC) 0x1135- f:00010 d: 309 | A = 309 (0x0135)
0x0267 (0x0004CE) 0x5800- f:00054 d: 0 | B = A
0x0268 (0x0004D0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0269 (0x0004D2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x026A (0x0004D4) 0x0000- f:00000 d: 0 | PASS
0x026B (0x0004D6) 0x02AD- f:00001 d: 173 | EXIT | **** non-standard encoding with D:0x00AD ****
0x026C (0x0004D8) 0x02B0- f:00001 d: 176 | EXIT | **** non-standard encoding with D:0x00B0 ****
0x026D (0x0004DA) 0x02B3- f:00001 d: 179 | EXIT | **** non-standard encoding with D:0x00B3 ****
0x026E (0x0004DC) 0x02B6- f:00001 d: 182 | EXIT | **** non-standard encoding with D:0x00B6 ****
0x026F (0x0004DE) 0x02B9- f:00001 d: 185 | EXIT | **** non-standard encoding with D:0x00B9 ****
0x0270 (0x0004E0) 0x02BC- f:00001 d: 188 | EXIT | **** non-standard encoding with D:0x00BC ****
0x0271 (0x0004E2) 0x02BF- f:00001 d: 191 | EXIT | **** non-standard encoding with D:0x00BF ****
0x0272 (0x0004E4) 0x02C2- f:00001 d: 194 | EXIT | **** non-standard encoding with D:0x00C2 ****
0x0273 (0x0004E6) 0x0000- f:00000 d: 0 | PASS
0x0274 (0x0004E8) 0x02C5- f:00001 d: 197 | EXIT | **** non-standard encoding with D:0x00C5 ****
0x0275 (0x0004EA) 0x02C8- f:00001 d: 200 | EXIT | **** non-standard encoding with D:0x00C8 ****
0x0276 (0x0004EC) 0x02CB- f:00001 d: 203 | EXIT | **** non-standard encoding with D:0x00CB ****
0x0277 (0x0004EE) 0x02CE- f:00001 d: 206 | EXIT | **** non-standard encoding with D:0x00CE ****
0x0278 (0x0004F0) 0x02D1- f:00001 d: 209 | EXIT | **** non-standard encoding with D:0x00D1 ****
0x0279 (0x0004F2) 0x02D4- f:00001 d: 212 | EXIT | **** non-standard encoding with D:0x00D4 ****
0x027A (0x0004F4) 0x02D7- f:00001 d: 215 | EXIT | **** non-standard encoding with D:0x00D7 ****
0x027B (0x0004F6) 0x02DA- f:00001 d: 218 | EXIT | **** non-standard encoding with D:0x00DA ****
0x027C (0x0004F8) 0x02DD- f:00001 d: 221 | EXIT | **** non-standard encoding with D:0x00DD ****
0x027D (0x0004FA) 0x02E0- f:00001 d: 224 | EXIT | **** non-standard encoding with D:0x00E0 ****
0x027E (0x0004FC) 0x02E3- f:00001 d: 227 | EXIT | **** non-standard encoding with D:0x00E3 ****
0x027F (0x0004FE) 0x0000- f:00000 d: 0 | PASS
0x0280 (0x000500) 0x0000- f:00000 d: 0 | PASS
0x0281 (0x000502) 0x0000- f:00000 d: 0 | PASS
0x0282 (0x000504) 0x02E6- f:00001 d: 230 | EXIT | **** non-standard encoding with D:0x00E6 ****
0x0283 (0x000506) 0x02E9- f:00001 d: 233 | EXIT | **** non-standard encoding with D:0x00E9 ****
0x0284 (0x000508) 0x02EC- f:00001 d: 236 | EXIT | **** non-standard encoding with D:0x00EC ****
0x0285 (0x00050A) 0x02EF- f:00001 d: 239 | EXIT | **** non-standard encoding with D:0x00EF ****
0x0286 (0x00050C) 0x02F2- f:00001 d: 242 | EXIT | **** non-standard encoding with D:0x00F2 ****
0x0287 (0x00050E) 0x02F5- f:00001 d: 245 | EXIT | **** non-standard encoding with D:0x00F5 ****
0x0288 (0x000510) 0x02F8- f:00001 d: 248 | EXIT | **** non-standard encoding with D:0x00F8 ****
0x0289 (0x000512) 0x02FB- f:00001 d: 251 | EXIT | **** non-standard encoding with D:0x00FB ****
0x028A (0x000514) 0x02FE- f:00001 d: 254 | EXIT | **** non-standard encoding with D:0x00FE ****
0x028B (0x000516) 0x0301- f:00001 d: 257 | EXIT | **** non-standard encoding with D:0x0101 ****
0x028C (0x000518) 0x0304- f:00001 d: 260 | EXIT | **** non-standard encoding with D:0x0104 ****
0x028D (0x00051A) 0x0000- f:00000 d: 0 | PASS
0x028E (0x00051C) 0x0000- f:00000 d: 0 | PASS
0x028F (0x00051E) 0x0000- f:00000 d: 0 | PASS
0x0290 (0x000520) 0x0307- f:00001 d: 263 | EXIT | **** non-standard encoding with D:0x0107 ****
0x0291 (0x000522) 0x030A- f:00001 d: 266 | EXIT | **** non-standard encoding with D:0x010A ****
0x0292 (0x000524) 0x030D- f:00001 d: 269 | EXIT | **** non-standard encoding with D:0x010D ****
0x0293 (0x000526) 0x0310- f:00001 d: 272 | EXIT | **** non-standard encoding with D:0x0110 ****
0x0294 (0x000528) 0x0313- f:00001 d: 275 | EXIT | **** non-standard encoding with D:0x0113 ****
0x0295 (0x00052A) 0x0316- f:00001 d: 278 | EXIT | **** non-standard encoding with D:0x0116 ****
0x0296 (0x00052C) 0x0319- f:00001 d: 281 | EXIT | **** non-standard encoding with D:0x0119 ****
0x0297 (0x00052E) 0x0000- f:00000 d: 0 | PASS
0x0298 (0x000530) 0x031C- f:00001 d: 284 | EXIT | **** non-standard encoding with D:0x011C ****
0x0299 (0x000532) 0x0000- f:00000 d: 0 | PASS
0x029A (0x000534) 0x031F- f:00001 d: 287 | EXIT | **** non-standard encoding with D:0x011F ****
0x029B (0x000536) 0x0322- f:00001 d: 290 | EXIT | **** non-standard encoding with D:0x0122 ****
0x029C (0x000538) 0x0325- f:00001 d: 293 | EXIT | **** non-standard encoding with D:0x0125 ****
0x029D (0x00053A) 0x0328- f:00001 d: 296 | EXIT | **** non-standard encoding with D:0x0128 ****
0x029E (0x00053C) 0x032B- f:00001 d: 299 | EXIT | **** non-standard encoding with D:0x012B ****
0x029F (0x00053E) 0x032E- f:00001 d: 302 | EXIT | **** non-standard encoding with D:0x012E ****
0x02A0 (0x000540) 0x0000- f:00000 d: 0 | PASS
0x02A1 (0x000542) 0x0000- f:00000 d: 0 | PASS
0x02A2 (0x000544) 0x0000- f:00000 d: 0 | PASS
0x02A3 (0x000546) 0x0000- f:00000 d: 0 | PASS
0x02A4 (0x000548) 0x0331- f:00001 d: 305 | EXIT | **** non-standard encoding with D:0x0131 ****
0x02A5 (0x00054A) 0x0334- f:00001 d: 308 | EXIT | **** non-standard encoding with D:0x0134 ****
0x02A6 (0x00054C) 0x0337- f:00001 d: 311 | EXIT | **** non-standard encoding with D:0x0137 ****
0x02A7 (0x00054E) 0x494E- f:00044 d: 334 | A = A > B | **** non-standard encoding with D:0x014E ****
0x02A8 (0x000550) 0x5452- f:00052 d: 82 | A = A + B | **** non-standard encoding with D:0x0052 ****
0x02A9 (0x000552) 0x5054- f:00050 d: 84 | A = B | **** non-standard encoding with D:0x0054 ****
0x02AA (0x000554) 0x4B2D- f:00045 d: 301 | A = A < B | **** non-standard encoding with D:0x012D ****
0x02AB (0x000556) 0x4341- f:00041 d: 321 | C = 1, io 0501 = BZ
0x02AC (0x000558) 0x4C4C- f:00046 d: 76 | A = A >> B | **** non-standard encoding with D:0x004C ****
0x02AD (0x00055A) 0x5441- f:00052 d: 65 | A = A + B | **** non-standard encoding with D:0x0041 ****
0x02AE (0x00055C) 0x534B- f:00051 d: 331 | A = A & B | **** non-standard encoding with D:0x014B ****
0x02AF (0x00055E) 0x2020- f:00020 d: 32 | A = OR[32]
0x02B0 (0x000560) 0x492D- f:00044 d: 301 | A = A > B | **** non-standard encoding with D:0x012D ****
0x02B1 (0x000562) 0x4841- f:00044 d: 65 | A = A > B | **** non-standard encoding with D:0x0041 ****
0x02B2 (0x000564) 0x4E44- f:00047 d: 68 | A = A << B | **** non-standard encoding with D:0x0044 ****
0x02B3 (0x000566) 0x4B2D- f:00045 d: 301 | A = A < B | **** non-standard encoding with D:0x012D ****
0x02B4 (0x000568) 0x464E- f:00043 d: 78 | C = 1, IOB = BZ | **** non-standard encoding with D:0x004E ****
0x02B5 (0x00056A) 0x4354- f:00041 d: 340 | C = 1, io 0524 = BZ
0x02B6 (0x00056C) 0x5345- f:00051 d: 325 | A = A & B | **** non-standard encoding with D:0x0145 ****
0x02B7 (0x00056E) 0x454B- f:00042 d: 331 | C = 1, IOB = DN | **** non-standard encoding with D:0x014B ****
0x02B8 (0x000570) 0x2020- f:00020 d: 32 | A = OR[32]
0x02B9 (0x000572) 0x444B- f:00042 d: 75 | C = 1, IOB = DN | **** non-standard encoding with D:0x004B ****
0x02BA (0x000574) 0x2D49- f:00026 d: 329 | OR[329] = OR[329] + 1
0x02BB (0x000576) 0x4F20- f:00047 d: 288 | A = A << B | **** non-standard encoding with D:0x0120 ****
0x02BC (0x000578) 0x444B- f:00042 d: 75 | C = 1, IOB = DN | **** non-standard encoding with D:0x004B ****
0x02BD (0x00057A) 0x2D45- f:00026 d: 325 | OR[325] = OR[325] + 1
0x02BE (0x00057C) 0x5252- f:00051 d: 82 | A = A & B | **** non-standard encoding with D:0x0052 ****
0x02BF (0x00057E) 0x4F56- f:00047 d: 342 | A = A << B | **** non-standard encoding with D:0x0156 ****
0x02C0 (0x000580) 0x4C2D- f:00046 d: 45 | A = A >> B | **** non-standard encoding with D:0x002D ****
0x02C1 (0x000582) 0x4C44- f:00046 d: 68 | A = A >> B | **** non-standard encoding with D:0x0044 ****
0x02C2 (0x000584) 0x412D- f:00040 d: 301 | C = 1, io 0455 = DN
0x02C3 (0x000586) 0x544F- f:00052 d: 79 | A = A + B | **** non-standard encoding with D:0x004F ****
0x02C4 (0x000588) 0x2D41- f:00026 d: 321 | OR[321] = OR[321] + 1
0x02C5 (0x00058A) 0x4143- f:00040 d: 323 | C = 1, io 0503 = DN
0x02C6 (0x00058C) 0x4F4D- f:00047 d: 333 | A = A << B | **** non-standard encoding with D:0x014D ****
0x02C7 (0x00058E) 0x2020- f:00020 d: 32 | A = OR[32]
0x02C8 (0x000590) 0x444B- f:00042 d: 75 | C = 1, IOB = DN | **** non-standard encoding with D:0x004B ****
0x02C9 (0x000592) 0x2D4D- f:00026 d: 333 | OR[333] = OR[333] + 1
0x02CA (0x000594) 0x4D20- f:00046 d: 288 | A = A >> B | **** non-standard encoding with D:0x0120 ****
0x02CB (0x000596) 0x444B- f:00042 d: 75 | C = 1, IOB = DN | **** non-standard encoding with D:0x004B ****
0x02CC (0x000598) 0x2D4C- f:00026 d: 332 | OR[332] = OR[332] + 1
0x02CD (0x00059A) 0x4F47- f:00047 d: 327 | A = A << B | **** non-standard encoding with D:0x0147 ****
0x02CE (0x00059C) 0x4352- f:00041 d: 338 | C = 1, io 0522 = BZ
0x02CF (0x00059E) 0x544F- f:00052 d: 79 | A = A + B | **** non-standard encoding with D:0x004F ****
0x02D0 (0x0005A0) 0x5554- f:00052 d: 340 | A = A + B | **** non-standard encoding with D:0x0154 ****
0x02D1 (0x0005A2) 0x424D- f:00041 d: 77 | C = 1, io 0115 = BZ
0x02D2 (0x0005A4) 0x5830- f:00054 d: 48 | B = A | **** non-standard encoding with D:0x0030 ****
0x02D3 (0x0005A6) 0x2020- f:00020 d: 32 | A = OR[32]
0x02D4 (0x0005A8) 0x424D- f:00041 d: 77 | C = 1, io 0115 = BZ
0x02D5 (0x0005AA) 0x5831- f:00054 d: 49 | B = A | **** non-standard encoding with D:0x0031 ****
0x02D6 (0x0005AC) 0x2020- f:00020 d: 32 | A = OR[32]
0x02D7 (0x0005AE) 0x424D- f:00041 d: 77 | C = 1, io 0115 = BZ
0x02D8 (0x0005B0) 0x5832- f:00054 d: 50 | B = A | **** non-standard encoding with D:0x0032 ****
0x02D9 (0x0005B2) 0x2020- f:00020 d: 32 | A = OR[32]
0x02DA (0x0005B4) 0x424D- f:00041 d: 77 | C = 1, io 0115 = BZ
0x02DB (0x0005B6) 0x5833- f:00054 d: 51 | B = A | **** non-standard encoding with D:0x0033 ****
0x02DC (0x0005B8) 0x2020- f:00020 d: 32 | A = OR[32]
0x02DD (0x0005BA) 0x424D- f:00041 d: 77 | C = 1, io 0115 = BZ
0x02DE (0x0005BC) 0x5834- f:00054 d: 52 | B = A | **** non-standard encoding with D:0x0034 ****
0x02DF (0x0005BE) 0x2020- f:00020 d: 32 | A = OR[32]
0x02E0 (0x0005C0) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02E1 (0x0005C2) 0x5830- f:00054 d: 48 | B = A | **** non-standard encoding with D:0x0030 ****
0x02E2 (0x0005C4) 0x2020- f:00020 d: 32 | A = OR[32]
0x02E3 (0x0005C6) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02E4 (0x0005C8) 0x5831- f:00054 d: 49 | B = A | **** non-standard encoding with D:0x0031 ****
0x02E5 (0x0005CA) 0x2020- f:00020 d: 32 | A = OR[32]
0x02E6 (0x0005CC) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02E7 (0x0005CE) 0x5832- f:00054 d: 50 | B = A | **** non-standard encoding with D:0x0032 ****
0x02E8 (0x0005D0) 0x2020- f:00020 d: 32 | A = OR[32]
0x02E9 (0x0005D2) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02EA (0x0005D4) 0x5833- f:00054 d: 51 | B = A | **** non-standard encoding with D:0x0033 ****
0x02EB (0x0005D6) 0x2020- f:00020 d: 32 | A = OR[32]
0x02EC (0x0005D8) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02ED (0x0005DA) 0x5834- f:00054 d: 52 | B = A | **** non-standard encoding with D:0x0034 ****
0x02EE (0x0005DC) 0x2020- f:00020 d: 32 | A = OR[32]
0x02EF (0x0005DE) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02F0 (0x0005E0) 0x5835- f:00054 d: 53 | B = A | **** non-standard encoding with D:0x0035 ****
0x02F1 (0x0005E2) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F2 (0x0005E4) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02F3 (0x0005E6) 0x5836- f:00054 d: 54 | B = A | **** non-standard encoding with D:0x0036 ****
0x02F4 (0x0005E8) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F5 (0x0005EA) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02F6 (0x0005EC) 0x5837- f:00054 d: 55 | B = A | **** non-standard encoding with D:0x0037 ****
0x02F7 (0x0005EE) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F8 (0x0005F0) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02F9 (0x0005F2) 0x5838- f:00054 d: 56 | B = A | **** non-standard encoding with D:0x0038 ****
0x02FA (0x0005F4) 0x2020- f:00020 d: 32 | A = OR[32]
0x02FB (0x0005F6) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02FC (0x0005F8) 0x5839- f:00054 d: 57 | B = A | **** non-standard encoding with D:0x0039 ****
0x02FD (0x0005FA) 0x2020- f:00020 d: 32 | A = OR[32]
0x02FE (0x0005FC) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x02FF (0x0005FE) 0x5841- f:00054 d: 65 | B = A | **** non-standard encoding with D:0x0041 ****
0x0300 (0x000600) 0x2020- f:00020 d: 32 | A = OR[32]
0x0301 (0x000602) 0x4259- f:00041 d: 89 | C = 1, io 0131 = BZ
0x0302 (0x000604) 0x5049- f:00050 d: 73 | A = B | **** non-standard encoding with D:0x0049 ****
0x0303 (0x000606) 0x4F20- f:00047 d: 288 | A = A << B | **** non-standard encoding with D:0x0120 ****
0x0304 (0x000608) 0x544D- f:00052 d: 77 | A = A + B | **** non-standard encoding with D:0x004D ****
0x0305 (0x00060A) 0x4F55- f:00047 d: 341 | A = A << B | **** non-standard encoding with D:0x0155 ****
0x0306 (0x00060C) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x0307 (0x00060E) 0x4D45- f:00046 d: 325 | A = A >> B | **** non-standard encoding with D:0x0145 ****
0x0308 (0x000610) 0x4D2D- f:00046 d: 301 | A = A >> B | **** non-standard encoding with D:0x012D ****
0x0309 (0x000612) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x030A (0x000614) 0x4943- f:00044 d: 323 | A = A > B | **** non-standard encoding with D:0x0143 ****
0x030B (0x000616) 0x4F4D- f:00047 d: 333 | A = A << B | **** non-standard encoding with D:0x014D ****
0x030C (0x000618) 0x2020- f:00020 d: 32 | A = OR[32]
0x030D (0x00061A) 0x4434- f:00042 d: 52 | C = 1, IOB = DN | **** non-standard encoding with D:0x0034 ****
0x030E (0x00061C) 0x2D53- f:00026 d: 339 | OR[339] = OR[339] + 1
0x030F (0x00061E) 0x454B- f:00042 d: 331 | C = 1, IOB = DN | **** non-standard encoding with D:0x014B ****
0x0310 (0x000620) 0x4434- f:00042 d: 52 | C = 1, IOB = DN | **** non-standard encoding with D:0x0034 ****
0x0311 (0x000622) 0x2D48- f:00026 d: 328 | OR[328] = OR[328] + 1
0x0312 (0x000624) 0x4544- f:00042 d: 324 | C = 1, IOB = DN | **** non-standard encoding with D:0x0144 ****
0x0313 (0x000626) 0x4434- f:00042 d: 52 | C = 1, IOB = DN | **** non-standard encoding with D:0x0034 ****
0x0314 (0x000628) 0x2D49- f:00026 d: 329 | OR[329] = OR[329] + 1
0x0315 (0x00062A) 0x4F20- f:00047 d: 288 | A = A << B | **** non-standard encoding with D:0x0120 ****
0x0316 (0x00062C) 0x4434- f:00042 d: 52 | C = 1, IOB = DN | **** non-standard encoding with D:0x0034 ****
0x0317 (0x00062E) 0x2D45- f:00026 d: 325 | OR[325] = OR[325] + 1
0x0318 (0x000630) 0x5252- f:00051 d: 82 | A = A & B | **** non-standard encoding with D:0x0052 ****
0x0319 (0x000632) 0x5543- f:00052 d: 323 | A = A + B | **** non-standard encoding with D:0x0143 ****
0x031A (0x000634) 0x4830- f:00044 d: 48 | A = A > B | **** non-standard encoding with D:0x0030 ****
0x031B (0x000636) 0x2020- f:00020 d: 32 | A = OR[32]
0x031C (0x000638) 0x5543- f:00052 d: 323 | A = A + B | **** non-standard encoding with D:0x0143 ****
0x031D (0x00063A) 0x4831- f:00044 d: 49 | A = A > B | **** non-standard encoding with D:0x0031 ****
0x031E (0x00063C) 0x2020- f:00020 d: 32 | A = OR[32]
0x031F (0x00063E) 0x5543- f:00052 d: 323 | A = A + B | **** non-standard encoding with D:0x0143 ****
0x0320 (0x000640) 0x4832- f:00044 d: 50 | A = A > B | **** non-standard encoding with D:0x0032 ****
0x0321 (0x000642) 0x2020- f:00020 d: 32 | A = OR[32]
0x0322 (0x000644) 0x5543- f:00052 d: 323 | A = A + B | **** non-standard encoding with D:0x0143 ****
0x0323 (0x000646) 0x4833- f:00044 d: 51 | A = A > B | **** non-standard encoding with D:0x0033 ****
0x0324 (0x000648) 0x2020- f:00020 d: 32 | A = OR[32]
0x0325 (0x00064A) 0x5543- f:00052 d: 323 | A = A + B | **** non-standard encoding with D:0x0143 ****
0x0326 (0x00064C) 0x4834- f:00044 d: 52 | A = A > B | **** non-standard encoding with D:0x0034 ****
0x0327 (0x00064E) 0x2020- f:00020 d: 32 | A = OR[32]
0x0328 (0x000650) 0x5543- f:00052 d: 323 | A = A + B | **** non-standard encoding with D:0x0143 ****
0x0329 (0x000652) 0x4835- f:00044 d: 53 | A = A > B | **** non-standard encoding with D:0x0035 ****
0x032A (0x000654) 0x2020- f:00020 d: 32 | A = OR[32]
0x032B (0x000656) 0x5343- f:00051 d: 323 | A = A & B | **** non-standard encoding with D:0x0143 ****
0x032C (0x000658) 0x5031- f:00050 d: 49 | A = B | **** non-standard encoding with D:0x0031 ****
0x032D (0x00065A) 0x2020- f:00020 d: 32 | A = OR[32]
0x032E (0x00065C) 0x4C50- f:00046 d: 80 | A = A >> B | **** non-standard encoding with D:0x0050 ****
0x032F (0x00065E) 0x4831- f:00044 d: 49 | A = A > B | **** non-standard encoding with D:0x0031 ****
0x0330 (0x000660) 0x2020- f:00020 d: 32 | A = OR[32]
0x0331 (0x000662) 0x4C50- f:00046 d: 80 | A = A >> B | **** non-standard encoding with D:0x0050 ****
0x0332 (0x000664) 0x4832- f:00044 d: 50 | A = A > B | **** non-standard encoding with D:0x0032 ****
0x0333 (0x000666) 0x2020- f:00020 d: 32 | A = OR[32]
0x0334 (0x000668) 0x0000- f:00000 d: 0 | PASS
0x0335 (0x00066A) 0x0368- f:00001 d: 360 | EXIT | **** non-standard encoding with D:0x0168 ****
0x0336 (0x00066C) 0x036B- f:00001 d: 363 | EXIT | **** non-standard encoding with D:0x016B ****
0x0337 (0x00066E) 0x0371- f:00001 d: 369 | EXIT | **** non-standard encoding with D:0x0171 ****
0x0338 (0x000670) 0x036E- f:00001 d: 366 | EXIT | **** non-standard encoding with D:0x016E ****
0x0339 (0x000672) 0x0000- f:00000 d: 0 | PASS
0x033A (0x000674) 0x0000- f:00000 d: 0 | PASS
0x033B (0x000676) 0x0374- f:00001 d: 372 | EXIT | **** non-standard encoding with D:0x0174 ****
0x033C (0x000678) 0x0000- f:00000 d: 0 | PASS
0x033D (0x00067A) 0x0377- f:00001 d: 375 | EXIT | **** non-standard encoding with D:0x0177 ****
0x033E (0x00067C) 0x0000- f:00000 d: 0 | PASS
0x033F (0x00067E) 0x0000- f:00000 d: 0 | PASS
0x0340 (0x000680) 0x037A- f:00001 d: 378 | EXIT | **** non-standard encoding with D:0x017A ****
0x0341 (0x000682) 0x037D- f:00001 d: 381 | EXIT | **** non-standard encoding with D:0x017D ****
0x0342 (0x000684) 0x0380- f:00001 d: 384 | EXIT | **** non-standard encoding with D:0x0180 ****
0x0343 (0x000686) 0x0383- f:00001 d: 387 | EXIT | **** non-standard encoding with D:0x0183 ****
0x0344 (0x000688) 0x0386- f:00001 d: 390 | EXIT | **** non-standard encoding with D:0x0186 ****
0x0345 (0x00068A) 0x0389- f:00001 d: 393 | EXIT | **** non-standard encoding with D:0x0189 ****
0x0346 (0x00068C) 0x038C- f:00001 d: 396 | EXIT | **** non-standard encoding with D:0x018C ****
0x0347 (0x00068E) 0x0000- f:00000 d: 0 | PASS
0x0348 (0x000690) 0x038F- f:00001 d: 399 | EXIT | **** non-standard encoding with D:0x018F ****
0x0349 (0x000692) 0x0392- f:00001 d: 402 | EXIT | **** non-standard encoding with D:0x0192 ****
0x034A (0x000694) 0x0395- f:00001 d: 405 | EXIT | **** non-standard encoding with D:0x0195 ****
0x034B (0x000696) 0x0398- f:00001 d: 408 | EXIT | **** non-standard encoding with D:0x0198 ****
0x034C (0x000698) 0x039B- f:00001 d: 411 | EXIT | **** non-standard encoding with D:0x019B ****
0x034D (0x00069A) 0x039E- f:00001 d: 414 | EXIT | **** non-standard encoding with D:0x019E ****
0x034E (0x00069C) 0x03A1- f:00001 d: 417 | EXIT | **** non-standard encoding with D:0x01A1 ****
0x034F (0x00069E) 0x03A4- f:00001 d: 420 | EXIT | **** non-standard encoding with D:0x01A4 ****
0x0350 (0x0006A0) 0x03A7- f:00001 d: 423 | EXIT | **** non-standard encoding with D:0x01A7 ****
0x0351 (0x0006A2) 0x03AA- f:00001 d: 426 | EXIT | **** non-standard encoding with D:0x01AA ****
0x0352 (0x0006A4) 0x03AD- f:00001 d: 429 | EXIT | **** non-standard encoding with D:0x01AD ****
0x0353 (0x0006A6) 0x03B0- f:00001 d: 432 | EXIT | **** non-standard encoding with D:0x01B0 ****
0x0354 (0x0006A8) 0x0000- f:00000 d: 0 | PASS
0x0355 (0x0006AA) 0x0000- f:00000 d: 0 | PASS
0x0356 (0x0006AC) 0x03B3- f:00001 d: 435 | EXIT | **** non-standard encoding with D:0x01B3 ****
0x0357 (0x0006AE) 0x03B6- f:00001 d: 438 | EXIT | **** non-standard encoding with D:0x01B6 ****
0x0358 (0x0006B0) 0x03B9- f:00001 d: 441 | EXIT | **** non-standard encoding with D:0x01B9 ****
0x0359 (0x0006B2) 0x03BC- f:00001 d: 444 | EXIT | **** non-standard encoding with D:0x01BC ****
0x035A (0x0006B4) 0x03BF- f:00001 d: 447 | EXIT | **** non-standard encoding with D:0x01BF ****
0x035B (0x0006B6) 0x03C2- f:00001 d: 450 | EXIT | **** non-standard encoding with D:0x01C2 ****
0x035C (0x0006B8) 0x03C5- f:00001 d: 453 | EXIT | **** non-standard encoding with D:0x01C5 ****
0x035D (0x0006BA) 0x03C8- f:00001 d: 456 | EXIT | **** non-standard encoding with D:0x01C8 ****
0x035E (0x0006BC) 0x03CB- f:00001 d: 459 | EXIT | **** non-standard encoding with D:0x01CB ****
0x035F (0x0006BE) 0x03CE- f:00001 d: 462 | EXIT | **** non-standard encoding with D:0x01CE ****
0x0360 (0x0006C0) 0x03D1- f:00001 d: 465 | EXIT | **** non-standard encoding with D:0x01D1 ****
0x0361 (0x0006C2) 0x03D4- f:00001 d: 468 | EXIT | **** non-standard encoding with D:0x01D4 ****
0x0362 (0x0006C4) 0x5055- f:00050 d: 85 | A = B | **** non-standard encoding with D:0x0055 ****
0x0363 (0x0006C6) 0x5348- f:00051 d: 328 | A = A & B | **** non-standard encoding with D:0x0148 ****
0x0364 (0x0006C8) 0x2020- f:00020 d: 32 | A = OR[32]
0x0365 (0x0006CA) 0x504F- f:00050 d: 79 | A = B | **** non-standard encoding with D:0x004F ****
0x0366 (0x0006CC) 0x5020- f:00050 d: 32 | A = B | **** non-standard encoding with D:0x0020 ****
0x0367 (0x0006CE) 0x2020- f:00020 d: 32 | A = OR[32]
0x0368 (0x0006D0) 0x4749- f:00043 d: 329 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0149 ****
0x0369 (0x0006D2) 0x5645- f:00053 d: 69 | A = A - B | **** non-standard encoding with D:0x0045 ****
0x036A (0x0006D4) 0x5550- f:00052 d: 336 | A = A + B | **** non-standard encoding with D:0x0150 ****
0x036B (0x0006D6) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x036C (0x0006D8) 0x524D- f:00051 d: 77 | A = A & B | **** non-standard encoding with D:0x004D ****
0x036D (0x0006DA) 0x2020- f:00020 d: 32 | A = OR[32]
0x036E (0x0006DC) 0x5041- f:00050 d: 65 | A = B | **** non-standard encoding with D:0x0041 ****
0x036F (0x0006DE) 0x5553- f:00052 d: 339 | A = A + B | **** non-standard encoding with D:0x0153 ****
0x0370 (0x0006E0) 0x4520- f:00042 d: 288 | C = 1, IOB = DN | **** non-standard encoding with D:0x0120 ****
0x0371 (0x0006E2) 0x5450- f:00052 d: 80 | A = A + B | **** non-standard encoding with D:0x0050 ****
0x0372 (0x0006E4) 0x5553- f:00052 d: 339 | A = A + B | **** non-standard encoding with D:0x0153 ****
0x0373 (0x0006E6) 0x4820- f:00044 d: 32 | A = A > B | **** non-standard encoding with D:0x0020 ****
0x0374 (0x0006E8) 0x4153- f:00040 d: 339 | C = 1, io 0523 = DN
0x0375 (0x0006EA) 0x4C45- f:00046 d: 69 | A = A >> B | **** non-standard encoding with D:0x0045 ****
0x0376 (0x0006EC) 0x4550- f:00042 d: 336 | C = 1, IOB = DN | **** non-standard encoding with D:0x0150 ****
0x0377 (0x0006EE) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x0378 (0x0006F0) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x0379 (0x0006F2) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x037A (0x0006F4) 0x4157- f:00040 d: 343 | C = 1, io 0527 = DN
0x037B (0x0006F6) 0x414B- f:00040 d: 331 | C = 1, io 0513 = DN
0x037C (0x0006F8) 0x4520- f:00042 d: 288 | C = 1, IOB = DN | **** non-standard encoding with D:0x0120 ****
0x037D (0x0006FA) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x037E (0x0006FC) 0x5350- f:00051 d: 336 | A = A & B | **** non-standard encoding with D:0x0150 ****
0x037F (0x0006FE) 0x4E44- f:00047 d: 68 | A = A << B | **** non-standard encoding with D:0x0044 ****
0x0380 (0x000700) 0x4D53- f:00046 d: 339 | A = A >> B | **** non-standard encoding with D:0x0153 ****
0x0381 (0x000702) 0x4720- f:00043 d: 288 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0120 ****
0x0382 (0x000704) 0x2020- f:00020 d: 32 | A = OR[32]
0x0383 (0x000706) 0x4D53- f:00046 d: 339 | A = A >> B | **** non-standard encoding with D:0x0153 ****
0x0384 (0x000708) 0x4752- f:00043 d: 338 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0152 ****
0x0385 (0x00070A) 0x2020- f:00020 d: 32 | A = OR[32]
0x0386 (0x00070C) 0x4F55- f:00047 d: 341 | A = A << B | **** non-standard encoding with D:0x0155 ****
0x0387 (0x00070E) 0x5450- f:00052 d: 80 | A = A + B | **** non-standard encoding with D:0x0050 ****
0x0388 (0x000710) 0x5554- f:00052 d: 340 | A = A + B | **** non-standard encoding with D:0x0154 ****
0x0389 (0x000712) 0x4E53- f:00047 d: 83 | A = A << B | **** non-standard encoding with D:0x0053 ****
0x038A (0x000714) 0x4349- f:00041 d: 329 | C = 1, io 0511 = BZ
0x038B (0x000716) 0x4F20- f:00047 d: 288 | A = A << B | **** non-standard encoding with D:0x0120 ****
0x038C (0x000718) 0x5243- f:00051 d: 67 | A = A & B | **** non-standard encoding with D:0x0043 ****
0x038D (0x00071A) 0x4945- f:00044 d: 325 | A = A > B | **** non-standard encoding with D:0x0145 ****
0x038E (0x00071C) 0x5645- f:00053 d: 69 | A = A - B | **** non-standard encoding with D:0x0045 ****
0x038F (0x00071E) 0x4744- f:00043 d: 324 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0144 ****
0x0390 (0x000720) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x0391 (0x000722) 0x2020- f:00020 d: 32 | A = OR[32]
0x0392 (0x000724) 0x5244- f:00051 d: 68 | A = A & B | **** non-standard encoding with D:0x0044 ****
0x0393 (0x000726) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x0394 (0x000728) 0x2020- f:00020 d: 32 | A = OR[32]
0x0395 (0x00072A) 0x4745- f:00043 d: 325 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0145 ****
0x0396 (0x00072C) 0x544D- f:00052 d: 77 | A = A + B | **** non-standard encoding with D:0x004D ****
0x0397 (0x00072E) 0x454D- f:00042 d: 333 | C = 1, IOB = DN | **** non-standard encoding with D:0x014D ****
0x0398 (0x000730) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x0399 (0x000732) 0x4C4D- f:00046 d: 77 | A = A >> B | **** non-standard encoding with D:0x004D ****
0x039A (0x000734) 0x454D- f:00042 d: 333 | C = 1, IOB = DN | **** non-standard encoding with D:0x014D ****
0x039B (0x000736) 0x4247- f:00041 d: 71 | C = 1, io 0107 = BZ
0x039C (0x000738) 0x4554- f:00042 d: 340 | C = 1, IOB = DN | **** non-standard encoding with D:0x0154 ****
0x039D (0x00073A) 0x2020- f:00020 d: 32 | A = OR[32]
0x039E (0x00073C) 0x4252- f:00041 d: 82 | C = 1, io 0122 = BZ
0x039F (0x00073E) 0x4554- f:00042 d: 340 | C = 1, IOB = DN | **** non-standard encoding with D:0x0154 ****
0x03A0 (0x000740) 0x2020- f:00020 d: 32 | A = OR[32]
0x03A1 (0x000742) 0x5345- f:00051 d: 325 | A = A & B | **** non-standard encoding with D:0x0145 ****
0x03A2 (0x000744) 0x4E44- f:00047 d: 68 | A = A << B | **** non-standard encoding with D:0x0044 ****
0x03A3 (0x000746) 0x2020- f:00020 d: 32 | A = OR[32]
0x03A4 (0x000748) 0x4D47- f:00046 d: 327 | A = A >> B | **** non-standard encoding with D:0x0147 ****
0x03A5 (0x00074A) 0x4554- f:00042 d: 340 | C = 1, IOB = DN | **** non-standard encoding with D:0x0154 ****
0x03A6 (0x00074C) 0x2020- f:00020 d: 32 | A = OR[32]
0x03A7 (0x00074E) 0x4D50- f:00046 d: 336 | A = A >> B | **** non-standard encoding with D:0x0150 ****
0x03A8 (0x000750) 0x5554- f:00052 d: 340 | A = A + B | **** non-standard encoding with D:0x0154 ****
0x03A9 (0x000752) 0x2020- f:00020 d: 32 | A = OR[32]
0x03AA (0x000754) 0x4F55- f:00047 d: 341 | A = A << B | **** non-standard encoding with D:0x0155 ****
0x03AB (0x000756) 0x5443- f:00052 d: 67 | A = A + B | **** non-standard encoding with D:0x0043 ****
0x03AC (0x000758) 0x414C- f:00040 d: 332 | C = 1, io 0514 = DN
0x03AD (0x00075A) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x03AE (0x00075C) 0x5052- f:00050 d: 82 | A = B | **** non-standard encoding with D:0x0052 ****
0x03AF (0x00075E) 0x2020- f:00020 d: 32 | A = OR[32]
0x03B0 (0x000760) 0x4853- f:00044 d: 83 | A = A > B | **** non-standard encoding with D:0x0053 ****
0x03B1 (0x000762) 0x5057- f:00050 d: 87 | A = B | **** non-standard encoding with D:0x0057 ****
0x03B2 (0x000764) 0x2020- f:00020 d: 32 | A = OR[32]
0x03B3 (0x000766) 0x504F- f:00050 d: 79 | A = B | **** non-standard encoding with D:0x004F ****
0x03B4 (0x000768) 0x4C4C- f:00046 d: 76 | A = A >> B | **** non-standard encoding with D:0x004C ****
0x03B5 (0x00076A) 0x2020- f:00020 d: 32 | A = OR[32]
0x03B6 (0x00076C) 0x5452- f:00052 d: 82 | A = A + B | **** non-standard encoding with D:0x0052 ****
0x03B7 (0x00076E) 0x414E- f:00040 d: 334 | C = 1, io 0516 = DN
0x03B8 (0x000770) 0x5320- f:00051 d: 288 | A = A & B | **** non-standard encoding with D:0x0120 ****
0x03B9 (0x000772) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F ****
0x03BA (0x000774) 0x5352- f:00051 d: 338 | A = A & B | **** non-standard encoding with D:0x0152 ****
0x03BB (0x000776) 0x2020- f:00020 d: 32 | A = OR[32]
0x03BC (0x000778) 0x4D4F- f:00046 d: 335 | A = A >> B | **** non-standard encoding with D:0x014F ****
0x03BD (0x00077A) 0x5357- f:00051 d: 343 | A = A & B | **** non-standard encoding with D:0x0157 ****
0x03BE (0x00077C) 0x2020- f:00020 d: 32 | A = OR[32]
0x03BF (0x00077E) 0x4341- f:00041 d: 321 | C = 1, io 0501 = BZ
0x03C0 (0x000780) 0x4C4C- f:00046 d: 76 | A = A >> B | **** non-standard encoding with D:0x004C ****
0x03C1 (0x000782) 0x2020- f:00020 d: 32 | A = OR[32]
0x03C2 (0x000784) 0x474F- f:00043 d: 335 | C = 1, IOB = BZ | **** non-standard encoding with D:0x014F ****
0x03C3 (0x000786) 0x544F- f:00052 d: 79 | A = A + B | **** non-standard encoding with D:0x004F ****
0x03C4 (0x000788) 0x2020- f:00020 d: 32 | A = OR[32]
0x03C5 (0x00078A) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x03C6 (0x00078C) 0x5455- f:00052 d: 85 | A = A + B | **** non-standard encoding with D:0x0055 ****
0x03C7 (0x00078E) 0x524E- f:00051 d: 78 | A = A & B | **** non-standard encoding with D:0x004E ****
0x03C8 (0x000790) 0x4649- f:00043 d: 73 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0049 ****
0x03C9 (0x000792) 0x4E44- f:00047 d: 68 | A = A << B | **** non-standard encoding with D:0x0044 ****
0x03CA (0x000794) 0x2020- f:00020 d: 32 | A = OR[32]
0x03CB (0x000796) 0x464C- f:00043 d: 76 | C = 1, IOB = BZ | **** non-standard encoding with D:0x004C ****
0x03CC (0x000798) 0x5553- f:00052 d: 339 | A = A + B | **** non-standard encoding with D:0x0153 ****
0x03CD (0x00079A) 0x4820- f:00044 d: 32 | A = A > B | **** non-standard encoding with D:0x0020 ****
0x03CE (0x00079C) 0x4352- f:00041 d: 338 | C = 1, io 0522 = BZ
0x03CF (0x00079E) 0x4541- f:00042 d: 321 | C = 1, IOB = DN | **** non-standard encoding with D:0x0141 ****
0x03D0 (0x0007A0) 0x5445- f:00052 d: 69 | A = A + B | **** non-standard encoding with D:0x0045 ****
0x03D1 (0x0007A2) 0x494F- f:00044 d: 335 | A = A > B | **** non-standard encoding with D:0x014F ****
0x03D2 (0x0007A4) 0x502D- f:00050 d: 45 | A = B | **** non-standard encoding with D:0x002D ****
0x03D3 (0x0007A6) 0x3020- f:00030 d: 32 | A = (OR[32])
0x03D4 (0x0007A8) 0x5452- f:00052 d: 82 | A = A + B | **** non-standard encoding with D:0x0052 ****
0x03D5 (0x0007AA) 0x4143- f:00040 d: 323 | C = 1, io 0503 = DN
0x03D6 (0x0007AC) 0x4520- f:00042 d: 288 | C = 1, IOB = DN | **** non-standard encoding with D:0x0120 ****
0x03D7 (0x0007AE) 0x4255- f:00041 d: 85 | C = 1, io 0125 = BZ
0x03D8 (0x0007B0) 0x4646- f:00043 d: 70 | C = 1, IOB = BZ | **** non-standard encoding with D:0x0046 ****
0x03D9 (0x0007B2) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x03DA (0x0007B4) 0x0000- f:00000 d: 0 | PASS
0x03DB (0x0007B6) 0x4556- f:00042 d: 342 | C = 1, IOB = DN | **** non-standard encoding with D:0x0156 ****
0x03DC (0x0007B8) 0x454E- f:00042 d: 334 | C = 1, IOB = DN | **** non-standard encoding with D:0x014E ****
0x03DD (0x0007BA) 0x5420- f:00052 d: 32 | A = A + B | **** non-standard encoding with D:0x0020 ****
0x03DE (0x0007BC) 0x2020- f:00020 d: 32 | A = OR[32]
0x03DF (0x0007BE) 0x5254- f:00051 d: 84 | A = A & B | **** non-standard encoding with D:0x0054 ****
0x03E0 (0x0007C0) 0x432D- f:00041 d: 301 | C = 1, io 0455 = BZ
0x03E1 (0x0007C2) 0x4C20- f:00046 d: 32 | A = A >> B | **** non-standard encoding with D:0x0020 ****
0x03E2 (0x0007C4) 0x2020- f:00020 d: 32 | A = OR[32]
0x03E3 (0x0007C6) 0x4F56- f:00047 d: 342 | A = A << B | **** non-standard encoding with D:0x0156 ****
0x03E4 (0x0007C8) 0x4C2D- f:00046 d: 45 | A = A >> B | **** non-standard encoding with D:0x002D ****
0x03E5 (0x0007CA) 0x2320- f:00021 d: 288 | A = A & OR[288]
0x03E6 (0x0007CC) 0x2020- f:00020 d: 32 | A = OR[32]
0x03E7 (0x0007CE) 0x5041- f:00050 d: 65 | A = B | **** non-standard encoding with D:0x0041 ****
0x03E8 (0x0007D0) 0x522D- f:00051 d: 45 | A = A & B | **** non-standard encoding with D:0x002D ****
0x03E9 (0x0007D2) 0x3120- f:00030 d: 288 | A = (OR[288])
0x03EA (0x0007D4) 0x2020- f:00020 d: 32 | A = OR[32]
0x03EB (0x0007D6) 0x5041- f:00050 d: 65 | A = B | **** non-standard encoding with D:0x0041 ****
0x03EC (0x0007D8) 0x522D- f:00051 d: 45 | A = A & B | **** non-standard encoding with D:0x002D ****
0x03ED (0x0007DA) 0x3220- f:00031 d: 32 | A = A & (OR[32])
0x03EE (0x0007DC) 0x2020- f:00020 d: 32 | A = OR[32]
0x03EF (0x0007DE) 0x5041- f:00050 d: 65 | A = B | **** non-standard encoding with D:0x0041 ****
0x03F0 (0x0007E0) 0x522D- f:00051 d: 45 | A = A & B | **** non-standard encoding with D:0x002D ****
0x03F1 (0x0007E2) 0x3320- f:00031 d: 288 | A = A & (OR[288])
0x03F2 (0x0007E4) 0x2020- f:00020 d: 32 | A = OR[32]
0x03F3 (0x0007E6) 0x5041- f:00050 d: 65 | A = B | **** non-standard encoding with D:0x0041 ****
0x03F4 (0x0007E8) 0x522D- f:00051 d: 45 | A = A & B | **** non-standard encoding with D:0x002D ****
0x03F5 (0x0007EA) 0x3420- f:00032 d: 32 | A = A + (OR[32])
0x03F6 (0x0007EC) 0x2020- f:00020 d: 32 | A = OR[32]
0x03F7 (0x0007EE) 0x5041- f:00050 d: 65 | A = B | **** non-standard encoding with D:0x0041 ****
0x03F8 (0x0007F0) 0x522D- f:00051 d: 45 | A = A & B | **** non-standard encoding with D:0x002D ****
0x03F9 (0x0007F2) 0x3520- f:00032 d: 288 | A = A + (OR[288])
0x03FA (0x0007F4) 0x0000- f:00000 d: 0 | PASS
0x03FB (0x0007F6) 0x0000- f:00000 d: 0 | PASS
0x03FC (0x0007F8) 0x0000- f:00000 d: 0 | PASS
0x03FD (0x0007FA) 0x0000- f:00000 d: 0 | PASS
0x03FE (0x0007FC) 0x0000- f:00000 d: 0 | PASS
0x03FF (0x0007FE) 0x0000- f:00000 d: 0 | PASS
|
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_2269_68.asm | ljhsiun2/medusa | 9 | 24318 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x71e6, %rsi
lea addresses_WC_ht+0x114a6, %rdi
nop
nop
xor $39632, %rax
mov $97, %rcx
rep movsl
dec %rbx
lea addresses_UC_ht+0x1a9d3, %r10
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
and $0xffffffffffffffc0, %r10
vmovaps %ymm3, (%r10)
cmp %r10, %r10
lea addresses_D_ht+0x65e6, %rsi
clflush (%rsi)
and %rbp, %rbp
movb $0x61, (%rsi)
nop
nop
nop
nop
inc %rax
lea addresses_D_ht+0x81e6, %rsi
sub %r10, %r10
and $0xffffffffffffffc0, %rsi
movaps (%rsi), %xmm2
vpextrq $0, %xmm2, %rbx
nop
inc %rbx
lea addresses_UC_ht+0x1bec6, %rbx
clflush (%rbx)
nop
nop
nop
nop
nop
and %rcx, %rcx
movups (%rbx), %xmm7
vpextrq $0, %xmm7, %rsi
nop
nop
and $16822, %rsi
lea addresses_WT_ht+0xf63f, %rsi
lea addresses_normal_ht+0xa966, %rdi
nop
nop
nop
nop
nop
sub $41152, %r11
mov $63, %rcx
rep movsw
nop
nop
nop
nop
nop
add $59371, %rax
lea addresses_D_ht+0x10320, %rsi
lea addresses_normal_ht+0x2de6, %rdi
nop
nop
and %rbp, %rbp
mov $78, %rcx
rep movsq
and %rax, %rax
lea addresses_D_ht+0x158e6, %r11
xor %rbx, %rbx
mov $0x6162636465666768, %rdi
movq %rdi, (%r11)
nop
nop
nop
nop
nop
and %rax, %rax
lea addresses_D_ht+0x1aad6, %rsi
lea addresses_UC_ht+0x11e6, %rdi
nop
nop
nop
nop
dec %rbp
mov $34, %rcx
rep movsq
nop
nop
nop
nop
and $51576, %r10
lea addresses_A_ht+0xa9e6, %rbp
nop
nop
nop
nop
cmp $26782, %r10
movl $0x61626364, (%rbp)
nop
nop
nop
sub $5672, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r8
push %r9
push %rax
push %rsi
// Store
lea addresses_US+0x1fde6, %rax
nop
nop
add $55676, %r8
mov $0x5152535455565758, %r11
movq %r11, %xmm7
vmovaps %ymm7, (%rax)
add %r11, %r11
// Load
lea addresses_UC+0x188d6, %r11
inc %rsi
mov (%r11), %r9
// Exception!!!
mov (0), %rax
cmp %r9, %r9
// Store
lea addresses_RW+0x1b1e6, %rsi
nop
xor $35180, %r10
mov $0x5152535455565758, %rax
movq %rax, %xmm3
movups %xmm3, (%rsi)
cmp %r10, %r10
// Faulty Load
lea addresses_UC+0x101e6, %rax
nop
nop
nop
nop
nop
and %r15, %r15
vmovntdqa (%rax), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %r11
lea oracles, %r8
and $0xff, %r11
shlq $12, %r11
mov (%r8,%r11,1), %r11
pop %rsi
pop %rax
pop %r9
pop %r8
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 11}}
{'46': 1404, '49': 20, '00': 845}
46 46 49 46 00 46 46 00 00 00 46 46 00 46 46 00 46 00 46 46 00 00 00 00 46 46 46 46 46 46 00 46 00 46 46 00 46 00 46 46 00 46 00 46 00 46 00 46 46 00 00 46 46 46 00 00 46 00 00 46 46 00 00 46 46 00 46 00 46 00 46 46 46 00 46 46 00 00 46 46 00 46 46 00 46 46 00 00 46 46 46 46 46 00 00 46 00 46 00 46 46 46 00 46 46 46 46 46 00 00 46 00 46 46 00 46 00 00 46 46 00 00 46 46 00 46 00 46 00 00 46 46 46 46 46 00 46 46 00 46 46 46 00 46 00 00 00 46 00 00 46 46 00 46 00 46 46 46 46 46 00 00 46 46 00 46 00 46 46 00 46 46 46 46 00 00 46 00 46 00 46 00 46 46 46 00 46 46 46 46 46 00 00 49 46 00 46 46 46 46 00 00 00 00 00 46 46 49 46 46 00 00 46 46 00 00 46 00 46 46 46 46 46 46 46 46 46 00 46 46 46 00 00 00 00 00 00 00 00 46 00 00 00 46 46 00 46 46 46 46 46 46 46 46 46 46 46 46 00 46 00 46 46 46 46 46 46 46 00 46 00 00 00 00 46 46 46 46 00 00 46 46 00 46 46 00 46 46 46 46 00 46 46 00 46 00 00 46 46 00 46 00 00 46 46 46 00 46 46 00 46 46 46 46 46 46 46 00 46 46 46 46 46 46 46 46 00 46 46 00 46 46 00 46 00 46 46 46 46 00 00 46 00 46 00 46 00 00 00 46 46 46 46 46 46 00 46 00 00 46 46 46 00 46 46 46 46 46 46 46 46 46 46 46 46 00 46 00 46 00 46 00 46 46 46 46 46 46 46 46 00 00 46 46 00 46 46 46 46 00 46 46 46 00 00 46 00 00 46 00 00 00 46 00 46 46 46 46 00 46 00 00 46 00 00 00 00 46 46 46 00 00 46 46 46 00 46 00 46 46 46 00 00 46 46 46 46 46 46 00 46 00 00 46 46 46 00 46 46 00 46 46 46 00 46 46 46 46 00 46 46 00 46 49 00 00 00 00 46 46 46 00 00 46 00 46 46 46 46 00 46 00 46 00 00 46 46 46 46 46 46 46 00 46 00 00 46 00 46 46 46 00 46 46 46 46 00 46 00 46 00 46 00 00 00 00 00 00 00 46 46 46 46 00 46 46 00 00 46 00 46 00 46 46 00 46 46 46 46 46 46 46 46 46 00 46 00 00 46 46 46 46 46 46 46 46 00 46 46 46 46 46 46 46 46 00 00 46 00 46 00 46 46 46 46 46 00 00 00 00 46 00 00 46 00 46 00 00 00 46 00 46 00 46 46 46 00 46 00 00 46 46 46 00 46 46 46 46 00 46 46 46 46 00 00 00 00 00 46 46 46 00 00 46 00 00 00 46 46 46 00 46 46 00 00 00 00 46 46 00 46 46 46 46 46 46 46 46 46 00 46 46 00 46 46 00 00 00 46 46 46 46 00 00 00 00 00 00 46 00 46 00 46 46 46 46 46 00 46 00 46 00 46 46 46 46 46 00 00 00 00 46 46 00 46 00 46 46 00 00 00 46 46 00 46 00 00 00 00 46 46 00 00 46 46 46 46 46 46 46 46 46 46 00 00 46 46 00 46 46 46 46 46 46 00 46 00 00 00 00 00 49 46 00 46 00 00 00 46 46 46 46 00 00 46 46 00 00 46 46 00 00 46 46 46 46 00 00 00 00 46 00 00 46 46 00 00 00 00 46 46 46 46 00 00 00 46 46 46 00 46 46 46 00 46 46 46 00 46 00 46 46 46 00 46 46 00 46 46 46 46 46 46 00 46 00 46 46 46 46 46 00 00 46 46 46 00 46 00 46 46 46 46 46 46 00 46 00 00 46 46 00 46 00 00 49 00 00 46 00 00 46 46 00 46 46 00 46 00 46 00 46 46 46 00 46 46 46 46 00 00 00 46 46 46 00 00 46 46 46 46 00 00 46 00 00 46 00 46 46 46 46 00 46 46 46 00 00 00 00 00 00 00 00 46 00 46 46 00 46 49 00 46 46 00 46 00 00 00 00 00 00 46 00 00 46 00 46 46 00 46 46 00 46 00 46 46 46 00 46 46 46 46 46 46 46 46 46 00 00 00 46 46 46 00 00 00 46 46 00 00 46 00 00 46 00 46 46 46 00 00 46 46 46 46 46 46 46 46 46 46 46 00 46 00 46 46 46 46 46
*/
|
alloy4fun_models/trashltl/models/10/FwTyKteJWkt22PSJn.als | Kaixi26/org.alloytools.alloy | 0 | 4316 | open main
pred idFwTyKteJWkt22PSJn_prop11 {
not Protected & Protected' = File
}
pred __repair { idFwTyKteJWkt22PSJn_prop11 }
check __repair { idFwTyKteJWkt22PSJn_prop11 <=> prop11o } |
programs/oeis/218/A218828.asm | karttu/loda | 1 | 25899 | ; A218828: Reluctant sequence of reverse reluctant sequence A004736.
; 1,1,2,1,2,1,1,2,1,3,1,2,1,3,2,1,2,1,3,2,1,1,2,1,3,2,1,4,1,2,1,3,2,1,4,3,1,2,1,3,2,1,4,3,2,1,2,1,3,2,1,4,3,2,1,1,2,1,3,2,1,4,3,2,1,5,1,2,1,3,2,1,4,3,2,1,5,4,1,2,1,3,2,1,4,3,2,1,5,4,3,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,5,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,5,4,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,5,4,3,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,5,4,3,2,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,5,4,3,2,1,1,2,1,3,2,1,4,3,2,1,5,4,3,2,1,6,5,4,3
cal $0,25682 ; Exponent of 9 (value of j) in n-th number of form 8^i*9^j.
cal $0,25669 ; Exponent of 7 (value of i) in n-th number of form 7^i*8^j.
mov $1,$0
add $1,1
|
ffight/lcs/1p/80.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 165327 | <reponame>zengfr/arcade_game_romhacking_sourcecode_top_secret_data
copyright zengfr site:http://github.com/zengfr/romhack
004A3C jsr $1e20.w [1p+80]
009F86 move.b #$1, ($0,A4) [1p+80]
00A2C6 dbra D0, $a2c0
00A5C6 bne $a5de [1p+80]
copyright zengfr site:http://github.com/zengfr/romhack
|
tp/libs/asmlib/physseed64.asm | pg83/zm | 0 | 91732 | <reponame>pg83/zm<filename>tp/libs/asmlib/physseed64.asm
%include "defs.asm"
;************************* physseed64.asm **********************************
; Author: <NAME>
; Date created: 2010-08-03
; Last modified: 2013-09-13
; Source URL: www.agner.org/optimize
; Project: asmlib.zip
; C++ prototype:
; extern "C" int PhysicalSeed(int seeds[], int NumSeeds);
;
; Description:
; Generates a non-deterministic random seed from a physical random number generator
; which is available on some processors.
; Uses the time stamp counter (which is less random) if no physical random number
; generator is available.
; The code is not optimized for speed because it is typically called only once.
;
; Parameters:
; int seeds[] An array which will be filled with random numbers
; int NumSeeds Indicates the desired number of 32-bit random numbers
;
; Return value: 0 Failure. No suitable instruction available (processor older than Pentium)
; 1 No physical random number generator. Used time stamp counter instead
; 2 Success. VIA physical random number generator used
; 3 Success. Intel physical random number generator used
; 4 Success. Intel physical seed generator used
;
; The return value will indicate the availability of a physical random number generator
; even if NumSeeds = 0.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
default rel
%define NUM_TRIES 20 ; max number of tries for rdseed and rdrand instructions
%define TESTING 0 ; 1 for test only
global PhysicalSeed
; Direct entries to CPU-specific versions
global PhysicalSeedNone: function
global PhysicalSeedRDTSC: function
global PhysicalSeedVIA: function
global PhysicalSeedRDRand: function
global PhysicalSeedRDSeed function
; ***************************************************************************
; Define registers used for function parameters, used in 64-bit mode only
; ***************************************************************************
%IFDEF WINDOWS
%define par1 rcx
%define par2 rdx
%define par3 r8
%define par1d ecx
%define par2d edx
%define par3d r8d
%ENDIF
%IFDEF UNIX
%define par1 rdi
%define par2 rsi
%define par3 rdx
%define par1d edi
%define par2d esi
%define par3d edx
%ENDIF
SECTION .text align=16
%IFDEF WINDOWS
global PhysicalSeedD@8 ; DLL version
PhysicalSeedD@8:
%ENDIF
PhysicalSeed:
jmp [PhysicalSeedDispatch] ; Go to appropriate version, depending on instructions available
PhysicalSeedRDSeed:
push rbx
test par2d, par2d ; NumSeeds
jz S300
js S900
mov par3d, par2d ; NumSeeds
shr par3d, 1
jz S150
; do 64 bits at a time
S100: mov ebx, NUM_TRIES
S110: ; rdseed rax
%if TESTING
mov eax, par3d
stc
%ELSE
db 48h, 0Fh, 0C7h, 0F8h ; rdseed rax
%ENDIF
jc S120
; failed. try again
dec ebx
jz S900
jmp S110
S120: mov [par1], rax
add par1, 8
dec par3d
jnz S100 ; loop 64 bits
S150:
and par2d, 1
jz S300
; an odd 32 bit remains
S200: mov ebx, NUM_TRIES
S210: ; rdseed rax
%if TESTING
mov eax, par3d
stc
%ELSE
db 0Fh, 0C7h, 0F8h ; rdseed eax
%ENDIF
jc S220
; failed. try again
dec ebx
jz S900
jmp S210
S220: mov [par1], eax
S300: mov eax, 4 ; return value
pop rbx
ret
S900: ; failure
xor eax, eax ; return 0
pop rbx
ret
PhysicalSeedRDRand:
push rbx
test par2d, par2d ; NumSeeds
jz R300
js R900
mov par3d, par2d ; NumSeeds
shr par3d, 1 ; NumSeeds/2
jz R150
; do 64 bits at a time
R100: mov ebx, NUM_TRIES
R110: ; rdrand rax
%if TESTING
mov eax, par3d
stc
%ELSE
db 48h, 0Fh, 0C7h, 0F0h ; rdrand rax
%ENDIF
jc R120
; failed. try again
dec ebx
jz R900
jmp R110
R120: mov [par1], rax
add par1, 8
dec par3d
jnz R100 ; loop 64 bits
R150:
and par2d, 1
jz R300
; an odd 32 bit remains
R200: mov ebx, NUM_TRIES
R210: ; rdrand eax
%if TESTING
mov eax, par3d
stc
%ELSE
db 0Fh, 0C7h, 0F0h ; rdrand eax
%ENDIF
jc R220
; failed. try again
dec ebx
jz R900
jmp R210
R220: mov [par1], eax
R300: mov eax, 4 ; return value
pop rbx
ret
R900: ; failure
xor eax, eax ; return 0
pop rbx
ret
PhysicalSeedVIA:
; VIA XSTORE supported
push rbx
%IFDEF WINDOWS
push rsi
push rdi
mov rdi, rcx ; seeds
mov esi, edx ; NumSeeds
%ENDIF
mov ecx, esi ; NumSeeds
and ecx, -2 ; round down to nearest even
jz T200 ; NumSeeds <= 1
; make an even number of random dwords
shl ecx, 2 ; number of bytes (divisible by 8)
mov edx, 3 ; quality factor
%if TESTING
mov eax, 1
rep stosb
%ELSE
db 0F3H, 00FH, 0A7H, 0C0H ; rep xstore instuction
%ENDIF
T200:
test esi, 1
jz T300
; NumSeeds is odd. Make 8 bytes in temporary buffer and store 4 of the bytes
mov rbx, rdi ; current output pointer
mov ecx, 4 ; Will generate 4 or 8 bytes, depending on CPU
mov edx, 3 ; quality factor
push rcx ; make temporary space on stack
mov rdi, rsp ; point to buffer on stack
%if TESTING
mov eax, 1
rep stosb
%ELSE
db 0F3H, 00FH, 0A7H, 0C0H ; rep xstore instuction
%ENDIF
pop rax
mov [rbx], eax ; store the last 4 bytes
T300:
mov eax, 2 ; return value
%IFDEF WINDOWS
pop rdi
pop rsi
%ENDIF
pop rbx
ret
PhysicalSeedRDTSC:
%IFDEF WINDOWS
push rbx
push rcx
push rdx
xor eax, eax
cpuid ; serialize
rdtsc ; get time stamp counter
pop rbx ; numseeds
pop rcx ; seeds
test ebx, ebx
jz U300 ; zero seeds
js U900 ; failure
mov [rcx], eax ; store time stamp counter as seeds[0]
add rcx, 4
dec ebx
jz U300
mov [rcx], edx ; store upper part of time stamp counter as seeds[1]
add rcx, 4
dec ebx
jz U300
xor eax, eax
U100: mov [rcx], eax ; store 0 for the rest
add rcx, 4
dec ebx
jnz U100
U300: mov eax, 1 ; return value
pop rbx
ret
U900: ; failure
xor eax, eax ; return 0
pop rbx
ret
%ELSE ; UNIX
push rbx
xor eax, eax
cpuid ; serialize
rdtsc ; get time stamp counter
test esi, esi ; numseeds
jz U300 ; zero seeds
js U900 ; failure
mov [rdi], eax ; store time stamp counter as seeds[0]
add rdi, 4
dec esi
jz U300
mov [rdi], edx ; store upper part of time stamp counter as seeds[1]
add rdi, 4
dec esi
jz U300
xor eax, eax
U100: mov [rdi], eax ; store 0 for the rest
add rdi, 4
dec esi
jnz U100
U300: mov eax, 1 ; return value
pop rbx
ret
U900: ; failure
xor eax, eax ; return 0
pop rbx
ret
%ENDIF
PhysicalSeedNone: ; no possible generation
xor eax, eax
test par2d, par2d ; numseeds
jz N200
N100: mov [par1], eax
add par1, 4
dec par2d
jnz N100
N200: ret ; return 0
PhysicalSeedDispatcher:
push rbx
%IFDEF WINDOWS
push rcx
push rdx
%ENDIF
; test if RDSEED supported
xor eax, eax
cpuid
cmp eax, 7
jb P200 ; RDSEED not supported
mov eax, 7
xor ecx, ecx
cpuid
bt ebx, 18
; jc USE_RDSEED ; not tested yet!!
P200: ; test if RDRAND supported
mov eax, 1
cpuid
bt ecx, 30
jc USE_RDRAND
; test if VIA xstore instruction supported
mov eax, 0C0000000H
push rax
cpuid
pop rbx
cmp eax, ebx
jna P300 ; not a VIA processor
lea eax, [rbx+1]
cpuid
bt edx, 3
jc VIA_METHOD
P300: ; test if RDTSC supported
mov eax, 1
cpuid
bt edx, 4
jc USE_RDTSC ; XSTORE instruction not supported or not enabled
FAILURE: ; No useful instruction supported
lea rax, [PhysicalSeedNone]
jmp P800
USE_RDRAND: ; Use RDRAND instruction
lea rax, [PhysicalSeedRDRand]
jmp P800
USE_RDSEED: ; Use RDSEED instruction (not tested yet)
lea rax, [PhysicalSeedRDSeed]
jmp P800
VIA_METHOD: ; Use VIA xstore instructions
lea rax, [PhysicalSeedVIA]
jmp P800
USE_RDTSC:
lea rax, [PhysicalSeedRDTSC]
;jmp P800
P800: mov [PhysicalSeedDispatch], rax
%IFDEF WINDOWS
pop rdx
pop rcx
%ENDIF
pop rbx
jmp rax ; continue in dispatched version
; -----------------------------------------------------------------
; Data section for dispatcher
; -----------------------------------------------------------------
SECTION .data
; Pointer to appropriate versions. Initially point to dispatcher
PhysicalSeedDispatch DQ PhysicalSeedDispatcher
%IFDEF POSITIONINDEPENDENT
; Fix potential problem in Mac linker
DD 0, 0
%ENDIF
|
user/zombie.asm | Vidhi1109/Modified-XV6 | 0 | 3703 |
user/_zombie: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/stat.h"
#include "user/user.h"
int
main(void)
{
0: 1141 addi sp,sp,-16
2: e406 sd ra,8(sp)
4: e022 sd s0,0(sp)
6: 0800 addi s0,sp,16
if(fork() > 0)
8: 00000097 auipc ra,0x0
c: 286080e7 jalr 646(ra) # 28e <fork>
10: 00a04763 bgtz a0,1e <main+0x1e>
sleep(5); // Let child exit before parent.
exit(0);
14: 4501 li a0,0
16: 00000097 auipc ra,0x0
1a: 280080e7 jalr 640(ra) # 296 <exit>
sleep(5); // Let child exit before parent.
1e: 4515 li a0,5
20: 00000097 auipc ra,0x0
24: 306080e7 jalr 774(ra) # 326 <sleep>
28: b7f5 j 14 <main+0x14>
000000000000002a <strcpy>:
#include "kernel/fcntl.h"
#include "user/user.h"
char*
strcpy(char *s, const char *t)
{
2a: 1141 addi sp,sp,-16
2c: e422 sd s0,8(sp)
2e: 0800 addi s0,sp,16
char *os;
os = s;
while((*s++ = *t++) != 0)
30: 87aa mv a5,a0
32: 0585 addi a1,a1,1
34: 0785 addi a5,a5,1
36: fff5c703 lbu a4,-1(a1)
3a: fee78fa3 sb a4,-1(a5)
3e: fb75 bnez a4,32 <strcpy+0x8>
;
return os;
}
40: 6422 ld s0,8(sp)
42: 0141 addi sp,sp,16
44: 8082 ret
0000000000000046 <strcmp>:
int
strcmp(const char *p, const char *q)
{
46: 1141 addi sp,sp,-16
48: e422 sd s0,8(sp)
4a: 0800 addi s0,sp,16
while(*p && *p == *q)
4c: 00054783 lbu a5,0(a0)
50: cb91 beqz a5,64 <strcmp+0x1e>
52: 0005c703 lbu a4,0(a1)
56: 00f71763 bne a4,a5,64 <strcmp+0x1e>
p++, q++;
5a: 0505 addi a0,a0,1
5c: 0585 addi a1,a1,1
while(*p && *p == *q)
5e: 00054783 lbu a5,0(a0)
62: fbe5 bnez a5,52 <strcmp+0xc>
return (uchar)*p - (uchar)*q;
64: 0005c503 lbu a0,0(a1)
}
68: 40a7853b subw a0,a5,a0
6c: 6422 ld s0,8(sp)
6e: 0141 addi sp,sp,16
70: 8082 ret
0000000000000072 <strlen>:
uint
strlen(const char *s)
{
72: 1141 addi sp,sp,-16
74: e422 sd s0,8(sp)
76: 0800 addi s0,sp,16
int n;
for(n = 0; s[n]; n++)
78: 00054783 lbu a5,0(a0)
7c: cf91 beqz a5,98 <strlen+0x26>
7e: 0505 addi a0,a0,1
80: 87aa mv a5,a0
82: 4685 li a3,1
84: 9e89 subw a3,a3,a0
86: 00f6853b addw a0,a3,a5
8a: 0785 addi a5,a5,1
8c: fff7c703 lbu a4,-1(a5)
90: fb7d bnez a4,86 <strlen+0x14>
;
return n;
}
92: 6422 ld s0,8(sp)
94: 0141 addi sp,sp,16
96: 8082 ret
for(n = 0; s[n]; n++)
98: 4501 li a0,0
9a: bfe5 j 92 <strlen+0x20>
000000000000009c <memset>:
void*
memset(void *dst, int c, uint n)
{
9c: 1141 addi sp,sp,-16
9e: e422 sd s0,8(sp)
a0: 0800 addi s0,sp,16
char *cdst = (char *) dst;
int i;
for(i = 0; i < n; i++){
a2: ca19 beqz a2,b8 <memset+0x1c>
a4: 87aa mv a5,a0
a6: 1602 slli a2,a2,0x20
a8: 9201 srli a2,a2,0x20
aa: 00a60733 add a4,a2,a0
cdst[i] = c;
ae: 00b78023 sb a1,0(a5)
for(i = 0; i < n; i++){
b2: 0785 addi a5,a5,1
b4: fee79de3 bne a5,a4,ae <memset+0x12>
}
return dst;
}
b8: 6422 ld s0,8(sp)
ba: 0141 addi sp,sp,16
bc: 8082 ret
00000000000000be <strchr>:
char*
strchr(const char *s, char c)
{
be: 1141 addi sp,sp,-16
c0: e422 sd s0,8(sp)
c2: 0800 addi s0,sp,16
for(; *s; s++)
c4: 00054783 lbu a5,0(a0)
c8: cb99 beqz a5,de <strchr+0x20>
if(*s == c)
ca: 00f58763 beq a1,a5,d8 <strchr+0x1a>
for(; *s; s++)
ce: 0505 addi a0,a0,1
d0: 00054783 lbu a5,0(a0)
d4: fbfd bnez a5,ca <strchr+0xc>
return (char*)s;
return 0;
d6: 4501 li a0,0
}
d8: 6422 ld s0,8(sp)
da: 0141 addi sp,sp,16
dc: 8082 ret
return 0;
de: 4501 li a0,0
e0: bfe5 j d8 <strchr+0x1a>
00000000000000e2 <gets>:
char*
gets(char *buf, int max)
{
e2: 711d addi sp,sp,-96
e4: ec86 sd ra,88(sp)
e6: e8a2 sd s0,80(sp)
e8: e4a6 sd s1,72(sp)
ea: e0ca sd s2,64(sp)
ec: fc4e sd s3,56(sp)
ee: f852 sd s4,48(sp)
f0: f456 sd s5,40(sp)
f2: f05a sd s6,32(sp)
f4: ec5e sd s7,24(sp)
f6: 1080 addi s0,sp,96
f8: 8baa mv s7,a0
fa: 8a2e mv s4,a1
int i, cc;
char c;
for(i=0; i+1 < max; ){
fc: 892a mv s2,a0
fe: 4481 li s1,0
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
100: 4aa9 li s5,10
102: 4b35 li s6,13
for(i=0; i+1 < max; ){
104: 89a6 mv s3,s1
106: 2485 addiw s1,s1,1
108: 0344d863 bge s1,s4,138 <gets+0x56>
cc = read(0, &c, 1);
10c: 4605 li a2,1
10e: faf40593 addi a1,s0,-81
112: 4501 li a0,0
114: 00000097 auipc ra,0x0
118: 19a080e7 jalr 410(ra) # 2ae <read>
if(cc < 1)
11c: 00a05e63 blez a0,138 <gets+0x56>
buf[i++] = c;
120: faf44783 lbu a5,-81(s0)
124: 00f90023 sb a5,0(s2)
if(c == '\n' || c == '\r')
128: 01578763 beq a5,s5,136 <gets+0x54>
12c: 0905 addi s2,s2,1
12e: fd679be3 bne a5,s6,104 <gets+0x22>
for(i=0; i+1 < max; ){
132: 89a6 mv s3,s1
134: a011 j 138 <gets+0x56>
136: 89a6 mv s3,s1
break;
}
buf[i] = '\0';
138: 99de add s3,s3,s7
13a: 00098023 sb zero,0(s3)
return buf;
}
13e: 855e mv a0,s7
140: 60e6 ld ra,88(sp)
142: 6446 ld s0,80(sp)
144: 64a6 ld s1,72(sp)
146: 6906 ld s2,64(sp)
148: 79e2 ld s3,56(sp)
14a: 7a42 ld s4,48(sp)
14c: 7aa2 ld s5,40(sp)
14e: 7b02 ld s6,32(sp)
150: 6be2 ld s7,24(sp)
152: 6125 addi sp,sp,96
154: 8082 ret
0000000000000156 <stat>:
int
stat(const char *n, struct stat *st)
{
156: 1101 addi sp,sp,-32
158: ec06 sd ra,24(sp)
15a: e822 sd s0,16(sp)
15c: e426 sd s1,8(sp)
15e: e04a sd s2,0(sp)
160: 1000 addi s0,sp,32
162: 892e mv s2,a1
int fd;
int r;
fd = open(n, O_RDONLY);
164: 4581 li a1,0
166: 00000097 auipc ra,0x0
16a: 170080e7 jalr 368(ra) # 2d6 <open>
if(fd < 0)
16e: 02054563 bltz a0,198 <stat+0x42>
172: 84aa mv s1,a0
return -1;
r = fstat(fd, st);
174: 85ca mv a1,s2
176: 00000097 auipc ra,0x0
17a: 178080e7 jalr 376(ra) # 2ee <fstat>
17e: 892a mv s2,a0
close(fd);
180: 8526 mv a0,s1
182: 00000097 auipc ra,0x0
186: 13c080e7 jalr 316(ra) # 2be <close>
return r;
}
18a: 854a mv a0,s2
18c: 60e2 ld ra,24(sp)
18e: 6442 ld s0,16(sp)
190: 64a2 ld s1,8(sp)
192: 6902 ld s2,0(sp)
194: 6105 addi sp,sp,32
196: 8082 ret
return -1;
198: 597d li s2,-1
19a: bfc5 j 18a <stat+0x34>
000000000000019c <atoi>:
int
atoi(const char *s)
{
19c: 1141 addi sp,sp,-16
19e: e422 sd s0,8(sp)
1a0: 0800 addi s0,sp,16
int n;
n = 0;
while('0' <= *s && *s <= '9')
1a2: 00054683 lbu a3,0(a0)
1a6: fd06879b addiw a5,a3,-48
1aa: 0ff7f793 zext.b a5,a5
1ae: 4625 li a2,9
1b0: 02f66863 bltu a2,a5,1e0 <atoi+0x44>
1b4: 872a mv a4,a0
n = 0;
1b6: 4501 li a0,0
n = n*10 + *s++ - '0';
1b8: 0705 addi a4,a4,1
1ba: 0025179b slliw a5,a0,0x2
1be: 9fa9 addw a5,a5,a0
1c0: 0017979b slliw a5,a5,0x1
1c4: 9fb5 addw a5,a5,a3
1c6: fd07851b addiw a0,a5,-48
while('0' <= *s && *s <= '9')
1ca: 00074683 lbu a3,0(a4)
1ce: fd06879b addiw a5,a3,-48
1d2: 0ff7f793 zext.b a5,a5
1d6: fef671e3 bgeu a2,a5,1b8 <atoi+0x1c>
return n;
}
1da: 6422 ld s0,8(sp)
1dc: 0141 addi sp,sp,16
1de: 8082 ret
n = 0;
1e0: 4501 li a0,0
1e2: bfe5 j 1da <atoi+0x3e>
00000000000001e4 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
1e4: 1141 addi sp,sp,-16
1e6: e422 sd s0,8(sp)
1e8: 0800 addi s0,sp,16
char *dst;
const char *src;
dst = vdst;
src = vsrc;
if (src > dst) {
1ea: 02b57463 bgeu a0,a1,212 <memmove+0x2e>
while(n-- > 0)
1ee: 00c05f63 blez a2,20c <memmove+0x28>
1f2: 1602 slli a2,a2,0x20
1f4: 9201 srli a2,a2,0x20
1f6: 00c507b3 add a5,a0,a2
dst = vdst;
1fa: 872a mv a4,a0
*dst++ = *src++;
1fc: 0585 addi a1,a1,1
1fe: 0705 addi a4,a4,1
200: fff5c683 lbu a3,-1(a1)
204: fed70fa3 sb a3,-1(a4)
while(n-- > 0)
208: fee79ae3 bne a5,a4,1fc <memmove+0x18>
src += n;
while(n-- > 0)
*--dst = *--src;
}
return vdst;
}
20c: 6422 ld s0,8(sp)
20e: 0141 addi sp,sp,16
210: 8082 ret
dst += n;
212: 00c50733 add a4,a0,a2
src += n;
216: 95b2 add a1,a1,a2
while(n-- > 0)
218: fec05ae3 blez a2,20c <memmove+0x28>
21c: fff6079b addiw a5,a2,-1
220: 1782 slli a5,a5,0x20
222: 9381 srli a5,a5,0x20
224: fff7c793 not a5,a5
228: 97ba add a5,a5,a4
*--dst = *--src;
22a: 15fd addi a1,a1,-1
22c: 177d addi a4,a4,-1
22e: 0005c683 lbu a3,0(a1)
232: 00d70023 sb a3,0(a4)
while(n-- > 0)
236: fee79ae3 bne a5,a4,22a <memmove+0x46>
23a: bfc9 j 20c <memmove+0x28>
000000000000023c <memcmp>:
int
memcmp(const void *s1, const void *s2, uint n)
{
23c: 1141 addi sp,sp,-16
23e: e422 sd s0,8(sp)
240: 0800 addi s0,sp,16
const char *p1 = s1, *p2 = s2;
while (n-- > 0) {
242: ca05 beqz a2,272 <memcmp+0x36>
244: fff6069b addiw a3,a2,-1
248: 1682 slli a3,a3,0x20
24a: 9281 srli a3,a3,0x20
24c: 0685 addi a3,a3,1
24e: 96aa add a3,a3,a0
if (*p1 != *p2) {
250: 00054783 lbu a5,0(a0)
254: 0005c703 lbu a4,0(a1)
258: 00e79863 bne a5,a4,268 <memcmp+0x2c>
return *p1 - *p2;
}
p1++;
25c: 0505 addi a0,a0,1
p2++;
25e: 0585 addi a1,a1,1
while (n-- > 0) {
260: fed518e3 bne a0,a3,250 <memcmp+0x14>
}
return 0;
264: 4501 li a0,0
266: a019 j 26c <memcmp+0x30>
return *p1 - *p2;
268: 40e7853b subw a0,a5,a4
}
26c: 6422 ld s0,8(sp)
26e: 0141 addi sp,sp,16
270: 8082 ret
return 0;
272: 4501 li a0,0
274: bfe5 j 26c <memcmp+0x30>
0000000000000276 <memcpy>:
void *
memcpy(void *dst, const void *src, uint n)
{
276: 1141 addi sp,sp,-16
278: e406 sd ra,8(sp)
27a: e022 sd s0,0(sp)
27c: 0800 addi s0,sp,16
return memmove(dst, src, n);
27e: 00000097 auipc ra,0x0
282: f66080e7 jalr -154(ra) # 1e4 <memmove>
}
286: 60a2 ld ra,8(sp)
288: 6402 ld s0,0(sp)
28a: 0141 addi sp,sp,16
28c: 8082 ret
000000000000028e <fork>:
# generated by usys.pl - do not edit
#include "kernel/syscall.h"
.global fork
fork:
li a7, SYS_fork
28e: 4885 li a7,1
ecall
290: 00000073 ecall
ret
294: 8082 ret
0000000000000296 <exit>:
.global exit
exit:
li a7, SYS_exit
296: 4889 li a7,2
ecall
298: 00000073 ecall
ret
29c: 8082 ret
000000000000029e <wait>:
.global wait
wait:
li a7, SYS_wait
29e: 488d li a7,3
ecall
2a0: 00000073 ecall
ret
2a4: 8082 ret
00000000000002a6 <pipe>:
.global pipe
pipe:
li a7, SYS_pipe
2a6: 4891 li a7,4
ecall
2a8: 00000073 ecall
ret
2ac: 8082 ret
00000000000002ae <read>:
.global read
read:
li a7, SYS_read
2ae: 4895 li a7,5
ecall
2b0: 00000073 ecall
ret
2b4: 8082 ret
00000000000002b6 <write>:
.global write
write:
li a7, SYS_write
2b6: 48c1 li a7,16
ecall
2b8: 00000073 ecall
ret
2bc: 8082 ret
00000000000002be <close>:
.global close
close:
li a7, SYS_close
2be: 48d5 li a7,21
ecall
2c0: 00000073 ecall
ret
2c4: 8082 ret
00000000000002c6 <kill>:
.global kill
kill:
li a7, SYS_kill
2c6: 4899 li a7,6
ecall
2c8: 00000073 ecall
ret
2cc: 8082 ret
00000000000002ce <exec>:
.global exec
exec:
li a7, SYS_exec
2ce: 489d li a7,7
ecall
2d0: 00000073 ecall
ret
2d4: 8082 ret
00000000000002d6 <open>:
.global open
open:
li a7, SYS_open
2d6: 48bd li a7,15
ecall
2d8: 00000073 ecall
ret
2dc: 8082 ret
00000000000002de <mknod>:
.global mknod
mknod:
li a7, SYS_mknod
2de: 48c5 li a7,17
ecall
2e0: 00000073 ecall
ret
2e4: 8082 ret
00000000000002e6 <unlink>:
.global unlink
unlink:
li a7, SYS_unlink
2e6: 48c9 li a7,18
ecall
2e8: 00000073 ecall
ret
2ec: 8082 ret
00000000000002ee <fstat>:
.global fstat
fstat:
li a7, SYS_fstat
2ee: 48a1 li a7,8
ecall
2f0: 00000073 ecall
ret
2f4: 8082 ret
00000000000002f6 <link>:
.global link
link:
li a7, SYS_link
2f6: 48cd li a7,19
ecall
2f8: 00000073 ecall
ret
2fc: 8082 ret
00000000000002fe <mkdir>:
.global mkdir
mkdir:
li a7, SYS_mkdir
2fe: 48d1 li a7,20
ecall
300: 00000073 ecall
ret
304: 8082 ret
0000000000000306 <chdir>:
.global chdir
chdir:
li a7, SYS_chdir
306: 48a5 li a7,9
ecall
308: 00000073 ecall
ret
30c: 8082 ret
000000000000030e <dup>:
.global dup
dup:
li a7, SYS_dup
30e: 48a9 li a7,10
ecall
310: 00000073 ecall
ret
314: 8082 ret
0000000000000316 <getpid>:
.global getpid
getpid:
li a7, SYS_getpid
316: 48ad li a7,11
ecall
318: 00000073 ecall
ret
31c: 8082 ret
000000000000031e <sbrk>:
.global sbrk
sbrk:
li a7, SYS_sbrk
31e: 48b1 li a7,12
ecall
320: 00000073 ecall
ret
324: 8082 ret
0000000000000326 <sleep>:
.global sleep
sleep:
li a7, SYS_sleep
326: 48b5 li a7,13
ecall
328: 00000073 ecall
ret
32c: 8082 ret
000000000000032e <uptime>:
.global uptime
uptime:
li a7, SYS_uptime
32e: 48b9 li a7,14
ecall
330: 00000073 ecall
ret
334: 8082 ret
0000000000000336 <waitx>:
.global waitx
waitx:
li a7, SYS_waitx
336: 48d9 li a7,22
ecall
338: 00000073 ecall
ret
33c: 8082 ret
000000000000033e <trace>:
.global trace
trace:
li a7, SYS_trace
33e: 48e1 li a7,24
ecall
340: 00000073 ecall
ret
344: 8082 ret
0000000000000346 <set_priority>:
.global set_priority
set_priority:
li a7, SYS_set_priority
346: 48dd li a7,23
ecall
348: 00000073 ecall
ret
34c: 8082 ret
000000000000034e <putc>:
static char digits[] = "0123456789ABCDEF";
static void
putc(int fd, char c)
{
34e: 1101 addi sp,sp,-32
350: ec06 sd ra,24(sp)
352: e822 sd s0,16(sp)
354: 1000 addi s0,sp,32
356: feb407a3 sb a1,-17(s0)
write(fd, &c, 1);
35a: 4605 li a2,1
35c: fef40593 addi a1,s0,-17
360: 00000097 auipc ra,0x0
364: f56080e7 jalr -170(ra) # 2b6 <write>
}
368: 60e2 ld ra,24(sp)
36a: 6442 ld s0,16(sp)
36c: 6105 addi sp,sp,32
36e: 8082 ret
0000000000000370 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
370: 7139 addi sp,sp,-64
372: fc06 sd ra,56(sp)
374: f822 sd s0,48(sp)
376: f426 sd s1,40(sp)
378: f04a sd s2,32(sp)
37a: ec4e sd s3,24(sp)
37c: 0080 addi s0,sp,64
37e: 84aa mv s1,a0
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
380: c299 beqz a3,386 <printint+0x16>
382: 0805c963 bltz a1,414 <printint+0xa4>
neg = 1;
x = -xx;
} else {
x = xx;
386: 2581 sext.w a1,a1
neg = 0;
388: 4881 li a7,0
38a: fc040693 addi a3,s0,-64
}
i = 0;
38e: 4701 li a4,0
do{
buf[i++] = digits[x % base];
390: 2601 sext.w a2,a2
392: 00000517 auipc a0,0x0
396: 49650513 addi a0,a0,1174 # 828 <digits>
39a: 883a mv a6,a4
39c: 2705 addiw a4,a4,1
39e: 02c5f7bb remuw a5,a1,a2
3a2: 1782 slli a5,a5,0x20
3a4: 9381 srli a5,a5,0x20
3a6: 97aa add a5,a5,a0
3a8: 0007c783 lbu a5,0(a5)
3ac: 00f68023 sb a5,0(a3)
}while((x /= base) != 0);
3b0: 0005879b sext.w a5,a1
3b4: 02c5d5bb divuw a1,a1,a2
3b8: 0685 addi a3,a3,1
3ba: fec7f0e3 bgeu a5,a2,39a <printint+0x2a>
if(neg)
3be: 00088c63 beqz a7,3d6 <printint+0x66>
buf[i++] = '-';
3c2: fd070793 addi a5,a4,-48
3c6: 00878733 add a4,a5,s0
3ca: 02d00793 li a5,45
3ce: fef70823 sb a5,-16(a4)
3d2: 0028071b addiw a4,a6,2
while(--i >= 0)
3d6: 02e05863 blez a4,406 <printint+0x96>
3da: fc040793 addi a5,s0,-64
3de: 00e78933 add s2,a5,a4
3e2: fff78993 addi s3,a5,-1
3e6: 99ba add s3,s3,a4
3e8: 377d addiw a4,a4,-1
3ea: 1702 slli a4,a4,0x20
3ec: 9301 srli a4,a4,0x20
3ee: 40e989b3 sub s3,s3,a4
putc(fd, buf[i]);
3f2: fff94583 lbu a1,-1(s2)
3f6: 8526 mv a0,s1
3f8: 00000097 auipc ra,0x0
3fc: f56080e7 jalr -170(ra) # 34e <putc>
while(--i >= 0)
400: 197d addi s2,s2,-1
402: ff3918e3 bne s2,s3,3f2 <printint+0x82>
}
406: 70e2 ld ra,56(sp)
408: 7442 ld s0,48(sp)
40a: 74a2 ld s1,40(sp)
40c: 7902 ld s2,32(sp)
40e: 69e2 ld s3,24(sp)
410: 6121 addi sp,sp,64
412: 8082 ret
x = -xx;
414: 40b005bb negw a1,a1
neg = 1;
418: 4885 li a7,1
x = -xx;
41a: bf85 j 38a <printint+0x1a>
000000000000041c <vprintf>:
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
vprintf(int fd, const char *fmt, va_list ap)
{
41c: 7119 addi sp,sp,-128
41e: fc86 sd ra,120(sp)
420: f8a2 sd s0,112(sp)
422: f4a6 sd s1,104(sp)
424: f0ca sd s2,96(sp)
426: ecce sd s3,88(sp)
428: e8d2 sd s4,80(sp)
42a: e4d6 sd s5,72(sp)
42c: e0da sd s6,64(sp)
42e: fc5e sd s7,56(sp)
430: f862 sd s8,48(sp)
432: f466 sd s9,40(sp)
434: f06a sd s10,32(sp)
436: ec6e sd s11,24(sp)
438: 0100 addi s0,sp,128
char *s;
int c, i, state;
state = 0;
for(i = 0; fmt[i]; i++){
43a: 0005c903 lbu s2,0(a1)
43e: 18090f63 beqz s2,5dc <vprintf+0x1c0>
442: 8aaa mv s5,a0
444: 8b32 mv s6,a2
446: 00158493 addi s1,a1,1
state = 0;
44a: 4981 li s3,0
if(c == '%'){
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
44c: 02500a13 li s4,37
450: 4c55 li s8,21
452: 00000c97 auipc s9,0x0
456: 37ec8c93 addi s9,s9,894 # 7d0 <malloc+0xf0>
printptr(fd, va_arg(ap, uint64));
} else if(c == 's'){
s = va_arg(ap, char*);
if(s == 0)
s = "(null)";
while(*s != 0){
45a: 02800d93 li s11,40
putc(fd, 'x');
45e: 4d41 li s10,16
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
460: 00000b97 auipc s7,0x0
464: 3c8b8b93 addi s7,s7,968 # 828 <digits>
468: a839 j 486 <vprintf+0x6a>
putc(fd, c);
46a: 85ca mv a1,s2
46c: 8556 mv a0,s5
46e: 00000097 auipc ra,0x0
472: ee0080e7 jalr -288(ra) # 34e <putc>
476: a019 j 47c <vprintf+0x60>
} else if(state == '%'){
478: 01498d63 beq s3,s4,492 <vprintf+0x76>
for(i = 0; fmt[i]; i++){
47c: 0485 addi s1,s1,1
47e: fff4c903 lbu s2,-1(s1)
482: 14090d63 beqz s2,5dc <vprintf+0x1c0>
if(state == 0){
486: fe0999e3 bnez s3,478 <vprintf+0x5c>
if(c == '%'){
48a: ff4910e3 bne s2,s4,46a <vprintf+0x4e>
state = '%';
48e: 89d2 mv s3,s4
490: b7f5 j 47c <vprintf+0x60>
if(c == 'd'){
492: 11490c63 beq s2,s4,5aa <vprintf+0x18e>
496: f9d9079b addiw a5,s2,-99
49a: 0ff7f793 zext.b a5,a5
49e: 10fc6e63 bltu s8,a5,5ba <vprintf+0x19e>
4a2: f9d9079b addiw a5,s2,-99
4a6: 0ff7f713 zext.b a4,a5
4aa: 10ec6863 bltu s8,a4,5ba <vprintf+0x19e>
4ae: 00271793 slli a5,a4,0x2
4b2: 97e6 add a5,a5,s9
4b4: 439c lw a5,0(a5)
4b6: 97e6 add a5,a5,s9
4b8: 8782 jr a5
printint(fd, va_arg(ap, int), 10, 1);
4ba: 008b0913 addi s2,s6,8
4be: 4685 li a3,1
4c0: 4629 li a2,10
4c2: 000b2583 lw a1,0(s6)
4c6: 8556 mv a0,s5
4c8: 00000097 auipc ra,0x0
4cc: ea8080e7 jalr -344(ra) # 370 <printint>
4d0: 8b4a mv s6,s2
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
4d2: 4981 li s3,0
4d4: b765 j 47c <vprintf+0x60>
printint(fd, va_arg(ap, uint64), 10, 0);
4d6: 008b0913 addi s2,s6,8
4da: 4681 li a3,0
4dc: 4629 li a2,10
4de: 000b2583 lw a1,0(s6)
4e2: 8556 mv a0,s5
4e4: 00000097 auipc ra,0x0
4e8: e8c080e7 jalr -372(ra) # 370 <printint>
4ec: 8b4a mv s6,s2
state = 0;
4ee: 4981 li s3,0
4f0: b771 j 47c <vprintf+0x60>
printint(fd, va_arg(ap, int), 16, 0);
4f2: 008b0913 addi s2,s6,8
4f6: 4681 li a3,0
4f8: 866a mv a2,s10
4fa: 000b2583 lw a1,0(s6)
4fe: 8556 mv a0,s5
500: 00000097 auipc ra,0x0
504: e70080e7 jalr -400(ra) # 370 <printint>
508: 8b4a mv s6,s2
state = 0;
50a: 4981 li s3,0
50c: bf85 j 47c <vprintf+0x60>
printptr(fd, va_arg(ap, uint64));
50e: 008b0793 addi a5,s6,8
512: f8f43423 sd a5,-120(s0)
516: 000b3983 ld s3,0(s6)
putc(fd, '0');
51a: 03000593 li a1,48
51e: 8556 mv a0,s5
520: 00000097 auipc ra,0x0
524: e2e080e7 jalr -466(ra) # 34e <putc>
putc(fd, 'x');
528: 07800593 li a1,120
52c: 8556 mv a0,s5
52e: 00000097 auipc ra,0x0
532: e20080e7 jalr -480(ra) # 34e <putc>
536: 896a mv s2,s10
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
538: 03c9d793 srli a5,s3,0x3c
53c: 97de add a5,a5,s7
53e: 0007c583 lbu a1,0(a5)
542: 8556 mv a0,s5
544: 00000097 auipc ra,0x0
548: e0a080e7 jalr -502(ra) # 34e <putc>
for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4)
54c: 0992 slli s3,s3,0x4
54e: 397d addiw s2,s2,-1
550: fe0914e3 bnez s2,538 <vprintf+0x11c>
printptr(fd, va_arg(ap, uint64));
554: f8843b03 ld s6,-120(s0)
state = 0;
558: 4981 li s3,0
55a: b70d j 47c <vprintf+0x60>
s = va_arg(ap, char*);
55c: 008b0913 addi s2,s6,8
560: 000b3983 ld s3,0(s6)
if(s == 0)
564: 02098163 beqz s3,586 <vprintf+0x16a>
while(*s != 0){
568: 0009c583 lbu a1,0(s3)
56c: c5ad beqz a1,5d6 <vprintf+0x1ba>
putc(fd, *s);
56e: 8556 mv a0,s5
570: 00000097 auipc ra,0x0
574: dde080e7 jalr -546(ra) # 34e <putc>
s++;
578: 0985 addi s3,s3,1
while(*s != 0){
57a: 0009c583 lbu a1,0(s3)
57e: f9e5 bnez a1,56e <vprintf+0x152>
s = va_arg(ap, char*);
580: 8b4a mv s6,s2
state = 0;
582: 4981 li s3,0
584: bde5 j 47c <vprintf+0x60>
s = "(null)";
586: 00000997 auipc s3,0x0
58a: 24298993 addi s3,s3,578 # 7c8 <malloc+0xe8>
while(*s != 0){
58e: 85ee mv a1,s11
590: bff9 j 56e <vprintf+0x152>
putc(fd, va_arg(ap, uint));
592: 008b0913 addi s2,s6,8
596: 000b4583 lbu a1,0(s6)
59a: 8556 mv a0,s5
59c: 00000097 auipc ra,0x0
5a0: db2080e7 jalr -590(ra) # 34e <putc>
5a4: 8b4a mv s6,s2
state = 0;
5a6: 4981 li s3,0
5a8: bdd1 j 47c <vprintf+0x60>
putc(fd, c);
5aa: 85d2 mv a1,s4
5ac: 8556 mv a0,s5
5ae: 00000097 auipc ra,0x0
5b2: da0080e7 jalr -608(ra) # 34e <putc>
state = 0;
5b6: 4981 li s3,0
5b8: b5d1 j 47c <vprintf+0x60>
putc(fd, '%');
5ba: 85d2 mv a1,s4
5bc: 8556 mv a0,s5
5be: 00000097 auipc ra,0x0
5c2: d90080e7 jalr -624(ra) # 34e <putc>
putc(fd, c);
5c6: 85ca mv a1,s2
5c8: 8556 mv a0,s5
5ca: 00000097 auipc ra,0x0
5ce: d84080e7 jalr -636(ra) # 34e <putc>
state = 0;
5d2: 4981 li s3,0
5d4: b565 j 47c <vprintf+0x60>
s = va_arg(ap, char*);
5d6: 8b4a mv s6,s2
state = 0;
5d8: 4981 li s3,0
5da: b54d j 47c <vprintf+0x60>
}
}
}
5dc: 70e6 ld ra,120(sp)
5de: 7446 ld s0,112(sp)
5e0: 74a6 ld s1,104(sp)
5e2: 7906 ld s2,96(sp)
5e4: 69e6 ld s3,88(sp)
5e6: 6a46 ld s4,80(sp)
5e8: 6aa6 ld s5,72(sp)
5ea: 6b06 ld s6,64(sp)
5ec: 7be2 ld s7,56(sp)
5ee: 7c42 ld s8,48(sp)
5f0: 7ca2 ld s9,40(sp)
5f2: 7d02 ld s10,32(sp)
5f4: 6de2 ld s11,24(sp)
5f6: 6109 addi sp,sp,128
5f8: 8082 ret
00000000000005fa <fprintf>:
void
fprintf(int fd, const char *fmt, ...)
{
5fa: 715d addi sp,sp,-80
5fc: ec06 sd ra,24(sp)
5fe: e822 sd s0,16(sp)
600: 1000 addi s0,sp,32
602: e010 sd a2,0(s0)
604: e414 sd a3,8(s0)
606: e818 sd a4,16(s0)
608: ec1c sd a5,24(s0)
60a: 03043023 sd a6,32(s0)
60e: 03143423 sd a7,40(s0)
va_list ap;
va_start(ap, fmt);
612: fe843423 sd s0,-24(s0)
vprintf(fd, fmt, ap);
616: 8622 mv a2,s0
618: 00000097 auipc ra,0x0
61c: e04080e7 jalr -508(ra) # 41c <vprintf>
}
620: 60e2 ld ra,24(sp)
622: 6442 ld s0,16(sp)
624: 6161 addi sp,sp,80
626: 8082 ret
0000000000000628 <printf>:
void
printf(const char *fmt, ...)
{
628: 711d addi sp,sp,-96
62a: ec06 sd ra,24(sp)
62c: e822 sd s0,16(sp)
62e: 1000 addi s0,sp,32
630: e40c sd a1,8(s0)
632: e810 sd a2,16(s0)
634: ec14 sd a3,24(s0)
636: f018 sd a4,32(s0)
638: f41c sd a5,40(s0)
63a: 03043823 sd a6,48(s0)
63e: 03143c23 sd a7,56(s0)
va_list ap;
va_start(ap, fmt);
642: 00840613 addi a2,s0,8
646: fec43423 sd a2,-24(s0)
vprintf(1, fmt, ap);
64a: 85aa mv a1,a0
64c: 4505 li a0,1
64e: 00000097 auipc ra,0x0
652: dce080e7 jalr -562(ra) # 41c <vprintf>
}
656: 60e2 ld ra,24(sp)
658: 6442 ld s0,16(sp)
65a: 6125 addi sp,sp,96
65c: 8082 ret
000000000000065e <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
65e: 1141 addi sp,sp,-16
660: e422 sd s0,8(sp)
662: 0800 addi s0,sp,16
Header *bp, *p;
bp = (Header*)ap - 1;
664: ff050693 addi a3,a0,-16
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
668: 00000797 auipc a5,0x0
66c: 1d87b783 ld a5,472(a5) # 840 <freep>
670: a02d j 69a <free+0x3c>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
bp->s.size += p->s.ptr->s.size;
672: 4618 lw a4,8(a2)
674: 9f2d addw a4,a4,a1
676: fee52c23 sw a4,-8(a0)
bp->s.ptr = p->s.ptr->s.ptr;
67a: 6398 ld a4,0(a5)
67c: 6310 ld a2,0(a4)
67e: a83d j 6bc <free+0x5e>
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
p->s.size += bp->s.size;
680: ff852703 lw a4,-8(a0)
684: 9f31 addw a4,a4,a2
686: c798 sw a4,8(a5)
p->s.ptr = bp->s.ptr;
688: ff053683 ld a3,-16(a0)
68c: a091 j 6d0 <free+0x72>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
68e: 6398 ld a4,0(a5)
690: 00e7e463 bltu a5,a4,698 <free+0x3a>
694: 00e6ea63 bltu a3,a4,6a8 <free+0x4a>
{
698: 87ba mv a5,a4
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
69a: fed7fae3 bgeu a5,a3,68e <free+0x30>
69e: 6398 ld a4,0(a5)
6a0: 00e6e463 bltu a3,a4,6a8 <free+0x4a>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6a4: fee7eae3 bltu a5,a4,698 <free+0x3a>
if(bp + bp->s.size == p->s.ptr){
6a8: ff852583 lw a1,-8(a0)
6ac: 6390 ld a2,0(a5)
6ae: 02059813 slli a6,a1,0x20
6b2: 01c85713 srli a4,a6,0x1c
6b6: 9736 add a4,a4,a3
6b8: fae60de3 beq a2,a4,672 <free+0x14>
bp->s.ptr = p->s.ptr->s.ptr;
6bc: fec53823 sd a2,-16(a0)
if(p + p->s.size == bp){
6c0: 4790 lw a2,8(a5)
6c2: 02061593 slli a1,a2,0x20
6c6: 01c5d713 srli a4,a1,0x1c
6ca: 973e add a4,a4,a5
6cc: fae68ae3 beq a3,a4,680 <free+0x22>
p->s.ptr = bp->s.ptr;
6d0: e394 sd a3,0(a5)
} else
p->s.ptr = bp;
freep = p;
6d2: 00000717 auipc a4,0x0
6d6: 16f73723 sd a5,366(a4) # 840 <freep>
}
6da: 6422 ld s0,8(sp)
6dc: 0141 addi sp,sp,16
6de: 8082 ret
00000000000006e0 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
6e0: 7139 addi sp,sp,-64
6e2: fc06 sd ra,56(sp)
6e4: f822 sd s0,48(sp)
6e6: f426 sd s1,40(sp)
6e8: f04a sd s2,32(sp)
6ea: ec4e sd s3,24(sp)
6ec: e852 sd s4,16(sp)
6ee: e456 sd s5,8(sp)
6f0: e05a sd s6,0(sp)
6f2: 0080 addi s0,sp,64
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
6f4: 02051493 slli s1,a0,0x20
6f8: 9081 srli s1,s1,0x20
6fa: 04bd addi s1,s1,15
6fc: 8091 srli s1,s1,0x4
6fe: 0014899b addiw s3,s1,1
702: 0485 addi s1,s1,1
if((prevp = freep) == 0){
704: 00000517 auipc a0,0x0
708: 13c53503 ld a0,316(a0) # 840 <freep>
70c: c515 beqz a0,738 <malloc+0x58>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
70e: 611c ld a5,0(a0)
if(p->s.size >= nunits){
710: 4798 lw a4,8(a5)
712: 02977f63 bgeu a4,s1,750 <malloc+0x70>
716: 8a4e mv s4,s3
718: 0009871b sext.w a4,s3
71c: 6685 lui a3,0x1
71e: 00d77363 bgeu a4,a3,724 <malloc+0x44>
722: 6a05 lui s4,0x1
724: 000a0b1b sext.w s6,s4
p = sbrk(nu * sizeof(Header));
728: 004a1a1b slliw s4,s4,0x4
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
72c: 00000917 auipc s2,0x0
730: 11490913 addi s2,s2,276 # 840 <freep>
if(p == (char*)-1)
734: 5afd li s5,-1
736: a895 j 7aa <malloc+0xca>
base.s.ptr = freep = prevp = &base;
738: 00000797 auipc a5,0x0
73c: 11078793 addi a5,a5,272 # 848 <base>
740: 00000717 auipc a4,0x0
744: 10f73023 sd a5,256(a4) # 840 <freep>
748: e39c sd a5,0(a5)
base.s.size = 0;
74a: 0007a423 sw zero,8(a5)
if(p->s.size >= nunits){
74e: b7e1 j 716 <malloc+0x36>
if(p->s.size == nunits)
750: 02e48c63 beq s1,a4,788 <malloc+0xa8>
p->s.size -= nunits;
754: 4137073b subw a4,a4,s3
758: c798 sw a4,8(a5)
p += p->s.size;
75a: 02071693 slli a3,a4,0x20
75e: 01c6d713 srli a4,a3,0x1c
762: 97ba add a5,a5,a4
p->s.size = nunits;
764: 0137a423 sw s3,8(a5)
freep = prevp;
768: 00000717 auipc a4,0x0
76c: 0ca73c23 sd a0,216(a4) # 840 <freep>
return (void*)(p + 1);
770: 01078513 addi a0,a5,16
if((p = morecore(nunits)) == 0)
return 0;
}
}
774: 70e2 ld ra,56(sp)
776: 7442 ld s0,48(sp)
778: 74a2 ld s1,40(sp)
77a: 7902 ld s2,32(sp)
77c: 69e2 ld s3,24(sp)
77e: 6a42 ld s4,16(sp)
780: 6aa2 ld s5,8(sp)
782: 6b02 ld s6,0(sp)
784: 6121 addi sp,sp,64
786: 8082 ret
prevp->s.ptr = p->s.ptr;
788: 6398 ld a4,0(a5)
78a: e118 sd a4,0(a0)
78c: bff1 j 768 <malloc+0x88>
hp->s.size = nu;
78e: 01652423 sw s6,8(a0)
free((void*)(hp + 1));
792: 0541 addi a0,a0,16
794: 00000097 auipc ra,0x0
798: eca080e7 jalr -310(ra) # 65e <free>
return freep;
79c: 00093503 ld a0,0(s2)
if((p = morecore(nunits)) == 0)
7a0: d971 beqz a0,774 <malloc+0x94>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7a2: 611c ld a5,0(a0)
if(p->s.size >= nunits){
7a4: 4798 lw a4,8(a5)
7a6: fa9775e3 bgeu a4,s1,750 <malloc+0x70>
if(p == freep)
7aa: 00093703 ld a4,0(s2)
7ae: 853e mv a0,a5
7b0: fef719e3 bne a4,a5,7a2 <malloc+0xc2>
p = sbrk(nu * sizeof(Header));
7b4: 8552 mv a0,s4
7b6: 00000097 auipc ra,0x0
7ba: b68080e7 jalr -1176(ra) # 31e <sbrk>
if(p == (char*)-1)
7be: fd5518e3 bne a0,s5,78e <malloc+0xae>
return 0;
7c2: 4501 li a0,0
7c4: bf45 j 774 <malloc+0x94>
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_721.asm | ljhsiun2/medusa | 9 | 94644 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xaa5a, %rsi
lea addresses_D_ht+0x14dba, %rdi
nop
nop
nop
nop
sub %r11, %r11
mov $57, %rcx
rep movsb
and %r9, %r9
lea addresses_D_ht+0x4e5a, %r14
clflush (%r14)
nop
sub %r11, %r11
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%r14)
nop
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_D_ht+0x1cbda, %rsi
lea addresses_D_ht+0x14e5a, %rdi
xor %r10, %r10
mov $18, %rcx
rep movsl
nop
nop
nop
inc %r11
lea addresses_WC_ht+0xa24a, %rsi
lea addresses_WT_ht+0xfb7a, %rdi
nop
nop
nop
nop
nop
xor $1982, %rdx
mov $20, %rcx
rep movsw
inc %rsi
lea addresses_A_ht+0x765a, %rsi
xor $5878, %r9
mov (%rsi), %r11
nop
nop
nop
nop
nop
xor $30694, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %r8
push %rcx
push %rdx
// Store
lea addresses_RW+0x12e82, %r8
clflush (%r8)
nop
nop
nop
sub %r14, %r14
movl $0x51525354, (%r8)
add $22063, %r8
// Store
mov $0x5322d5000000065a, %r10
nop
nop
and $42957, %rdx
movl $0x51525354, (%r10)
nop
nop
xor $56016, %r10
// Faulty Load
lea addresses_WC+0x1a65a, %r8
nop
nop
nop
xor %r15, %r15
movb (%r8), %r14b
lea oracles, %r10
and $0xff, %r14
shlq $12, %r14
mov (%r10,%r14,1), %r14
pop %rdx
pop %rcx
pop %r8
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'54': 21829}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
|
programs/oeis/008/A008344.asm | neoneye/loda | 22 | 19072 | <reponame>neoneye/loda
; A008344: a(1)=0; thereafter a(n+1) = a(n) - n if a(n) >= n otherwise a(n+1) = a(n) + n.
; 0,1,3,0,4,9,3,10,2,11,1,12,0,13,27,12,28,11,29,10,30,9,31,8,32,7,33,6,34,5,35,4,36,3,37,2,38,1,39,0,40,81,39,82,38,83,37,84,36,85,35,86,34,87,33,88,32,89,31,90,30,91,29,92,28,93,27,94,26,95,25,96,24,97,23,98,22,99,21,100,20,101,19,102,18,103,17,104,16,105,15,106,14,107,13,108,12,109,11,110
lpb $0
sub $0,1
add $3,71724
mov $2,$3
div $2,2
add $1,$2
mod $1,$3
lpe
div $1,35862
mov $0,$1
|
libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_input_siob/rc_01_input_siob_stdio_msg_flsh.asm | jpoikela/z88dk | 640 | 167223 | <gh_stars>100-1000
SECTION code_driver
SECTION code_driver_terminal_input
PUBLIC rc_01_input_siob_stdio_msg_flsh
EXTERN _siob_flush_Rx_di
EXTERN console_01_input_stdio_msg_flsh
rc_01_input_siob_stdio_msg_flsh:
; get rid of any pending chars in the siob buffer
call _siob_flush_Rx_di
jp console_01_input_stdio_msg_flsh
|
Transynther/x86/_processed/AVXALIGN/_st_zr_4k_/i7-8650U_0xd2_notsx.log_21829_1288.asm | ljhsiun2/medusa | 9 | 164758 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x14ae6, %rsi
lea addresses_normal_ht+0xa486, %rdi
nop
nop
add $41053, %r9
mov $122, %rcx
rep movsl
nop
xor %r12, %r12
lea addresses_D_ht+0x1e396, %rsi
nop
nop
nop
cmp $29766, %r13
movups (%rsi), %xmm0
vpextrq $0, %xmm0, %r12
inc %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x12c56, %rax
nop
nop
nop
nop
and $5969, %rdi
mov $0x5152535455565758, %r13
movq %r13, (%rax)
nop
nop
nop
nop
nop
inc %r10
// Store
lea addresses_WC+0x1dae6, %rcx
nop
nop
xor $16526, %r14
mov $0x5152535455565758, %r10
movq %r10, %xmm6
movups %xmm6, (%rcx)
nop
dec %r13
// REPMOV
lea addresses_normal+0x1c343, %rsi
lea addresses_WC+0x1cc06, %rdi
add %r14, %r14
mov $81, %rcx
rep movsl
nop
nop
nop
nop
add %rax, %rax
// Store
lea addresses_RW+0x1c9e6, %r10
nop
nop
nop
xor %rbp, %rbp
movw $0x5152, (%r10)
nop
nop
nop
nop
add %rcx, %rcx
// Faulty Load
mov $0x7af0c200000009e6, %rsi
clflush (%rsi)
nop
nop
nop
sub %r14, %r14
mov (%rsi), %ecx
lea oracles, %rbp
and $0xff, %rcx
shlq $12, %rcx
mov (%rbp,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': True, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'00': 11335, '52': 10494}
00 52 00 00 52 52 00 00 00 00 52 00 00 00 52 00 00 00 52 00 00 00 00 00 00 00 00 52 52 00 00 52 00 00 52 52 52 52 00 52 00 00 52 00 00 52 00 00 00 00 00 00 00 52 00 00 52 00 52 00 00 00 52 52 52 00 52 00 52 00 00 52 00 00 52 00 00 52 52 52 00 00 00 00 00 52 52 00 00 00 00 00 52 00 52 00 52 00 00 00 00 00 52 52 52 00 00 00 52 00 00 00 00 52 00 00 52 00 00 00 00 52 00 00 52 52 00 00 00 00 52 00 00 00 52 00 00 52 52 52 52 52 52 00 00 00 00 52 52 52 00 00 00 52 52 00 52 52 00 52 52 52 52 52 00 00 00 00 00 52 52 52 52 00 00 52 52 00 00 00 00 52 00 00 52 52 00 52 52 00 00 52 00 00 00 52 52 52 52 00 52 00 52 00 00 00 52 00 52 52 00 00 00 00 00 52 00 52 00 00 52 00 00 00 52 52 00 00 00 52 00 52 00 52 00 00 52 52 00 52 52 52 52 52 52 52 00 52 00 00 00 52 00 00 52 00 52 52 52 00 00 52 00 00 00 52 52 00 52 52 52 52 52 00 52 00 00 00 52 00 00 00 00 00 52 52 52 52 52 00 00 00 00 52 52 00 52 00 52 52 52 00 00 52 00 00 00 00 00 52 52 00 00 52 52 52 00 00 52 00 52 00 52 00 00 52 00 00 00 00 00 00 00 00 00 52 00 52 52 00 00 52 52 00 00 00 00 00 52 00 00 52 52 00 00 00 00 00 00 52 52 00 52 52 00 52 52 00 00 00 52 52 52 52 00 00 52 00 00 00 52 00 00 52 00 52 00 52 00 00 52 00 00 52 52 00 52 00 52 52 00 00 52 52 00 52 00 00 52 00 52 52 52 00 00 00 00 00 52 52 00 00 52 52 52 52 00 52 00 52 00 52 00 52 00 52 00 00 52 52 00 52 52 52 00 00 00 00 00 00 52 52 00 00 00 52 52 00 00 00 00 00 52 00 00 00 00 00 52 52 00 52 00 00 00 52 52 52 00 00 00 52 00 00 00 00 00 52 52 52 00 00 52 52 00 52 52 52 00 52 00 00 00 00 00 52 00 52 00 00 00 52 52 00 00 00 00 52 00 00 52 00 00 52 00 00 00 52 00 52 00 52 00 52 00 52 52 00 52 00 52 52 52 52 00 52 00 00 52 52 00 52 52 00 52 00 00 00 00 00 52 00 00 00 00 00 52 52 00 00 00 00 52 00 00 00 00 00 52 52 52 00 52 00 00 52 00 00 52 00 00 52 00 00 00 52 52 00 00 00 52 52 00 52 52 00 00 00 52 00 52 00 00 52 00 52 52 52 52 52 00 52 00 00 00 00 00 00 00 52 00 00 00 00 00 52 00 00 52 00 52 52 00 00 52 52 00 52 00 52 52 52 00 00 52 00 52 00 00 00 00 52 52 00 52 52 52 00 00 52 00 52 52 52 00 00 52 52 52 00 00 52 52 00 00 00 00 00 00 52 00 00 00 00 00 52 00 52 52 52 00 52 52 00 00 52 00 52 00 00 52 00 52 52 00 00 52 52 52 52 00 00 00 00 00 00 00 52 52 00 52 52 00 52 52 00 00 52 00 00 52 00 52 00 52 52 52 00 52 00 00 00 00 00 00 00 00 52 00 00 00 00 52 52 00 00 00 52 52 00 00 52 00 52 00 52 52 00 52 00 00 00 52 52 00 52 00 52 00 00 00 52 00 52 00 52 52 52 52 00 00 52 00 00 52 52 00 52 00 00 52 52 52 00 52 52 00 00 52 52 00 00 52 00 00 52 52 00 00 52 00 00 00 00 00 00 52 52 00 00 52 00 52 52 00 52 00 00 00 52 00 00 52 00 52 00 52 52 52 52 52 00 52 00 00 52 00 00 00 52 52 00 52 52 00 52 00 00 00 00 00 00 52 00 52 52 00 00 52 00 00 52 52 52 52 00 52 00 52 00 52 52 52 00 52 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 52 52 00 52 52 00 52 00 00 00 00 00 00 00 52 52 00 00 00 00 52 52 52 00 00 52 52 52 52 00 52 00 00 52 00 00 00 00 00 00 52 00 52 00 52 52 00 00 52 00 52 00 52 52 52 00 00 00 00 00 00 00 00 52 00 00 52 00 00 00 00 52 52 00 00 00 00 00 52 52
*/
|
bootdict/x86/math.asm | ikysil/ikforth | 8 | 85926 | <gh_stars>1-10
;******************************************************************************
;
; math.asm
; IKForth
;
; Unlicense since 1999 by <NAME>
;
;******************************************************************************
; Integer math
;******************************************************************************
; 6.1.0090 *
; Multiply n1|u1 by n2|u2 giving the product n3|u3.
; D: n1|u1 n2|u2 -- n3|u3
$CODE '*',$STAR,VEF_USUAL
POPDS EAX
POPDS EBX
IMUL EBX
PUSHDS EAX
$NEXT
; 6.1.0120 +
; D: a b -- a+b
$CODE '+',$PLUS,VEF_USUAL
POPDS EAX
POPDS EBX
ADD EAX,EBX
PUSHDS EAX
$NEXT
; 6.1.0160 -
; D: a b -- a-b
$CODE '-',$MINUS,VEF_USUAL
POPDS EBX
POPDS EAX
SUB EAX,EBX
PUSHDS EAX
$NEXT
; 6.1.0290 1+
; D: a -- a+1
$CODE '1+',$ONE_PLUS,VEF_USUAL
POPDS EAX
INC EAX
PUSHDS EAX
$NEXT
; 6.1.0300 1-
; D: a -- a-1
$CODE '1-',$ONE_MINUS,VEF_USUAL
POPDS EAX
DEC EAX
PUSHDS EAX
$NEXT
; 6.1.0320 2*
; D: a -- a*2
$CODE '2*',$TWO_STAR,VEF_USUAL
POPDS EAX
SAL EAX,1
PUSHDS EAX
$NEXT
; 6.1.0330 2/
; D: a -- a/2
$CODE '2/',$TWO_SLASH,VEF_USUAL
POPDS EAX
SAR EAX,1
PUSHDS EAX
$NEXT
; 6.1.1805 LSHIFT
; D: a b -- a << b
$CODE 'LSHIFT',$L_SHIFT,VEF_USUAL
POPDS ECX
POPDS EAX
SHL EAX,CL
PUSHDS EAX
$NEXT
; 6.1.2162 RSHIFT
; D: a b -- a >> b
$CODE 'RSHIFT',$R_SHIFT,VEF_USUAL
POPDS ECX
POPDS EAX
SHR EAX,CL
PUSHDS EAX
$NEXT
; 6.1.1810 M*
; d is the signed product of n1 times n2.
; D: n1 n2 -- d
$CODE 'M*',$M_STAR,VEF_USUAL
POPDS EAX
POPDS EBX
IMUL EBX
PUSHDS EAX
PUSHDS EDX
$NEXT
; 6.1.1910 NEGATE
; D: a -- -a
$CODE 'NEGATE',$NEGATE,VEF_USUAL
POPDS EAX
NEG EAX
PUSHDS EAX
$NEXT
; 6.1.2214 SM/REM
; Divide d1 by n1, giving the symmetric quotient n3 and the remainder n2.
; Input and output stack arguments are signed. An ambiguous condition exists
; if n1 is zero or if the quotient lies outside the range of a single-cell signed integer.
; D: d1 n1 -- n2 n3
$CODE 'SM/REM',$S_M_SLASH_REM,VEF_USUAL
POPDS EBX ; n1
POPDS EDX
POPDS EAX
IDIV EBX
PUSHDS EDX ; n2
PUSHDS EAX ; n3
$NEXT
;******************************************************************************
; Unsigned integer math
;******************************************************************************
; 6.1.2360 UM*
; Multiply u1 by u2, giving the unsigned double-cell product ud.
; All values and arithmetic are unsigned.
; D: u1 u2 -- ud
$CODE 'UM*',$U_M_STAR,VEF_USUAL
POPDS EBX
POPDS EAX
MUL EBX
PUSHDS EAX
PUSHDS EDX
$NEXT
; 6.1.2370 UM/MOD
; Divide ud by u1, giving the quotient u3 and the remainder u2.
; All values and arithmetic are unsigned. An ambiguous condition exists if u1
; is zero or if the quotient lies outside the range of a single-cell unsigned integer.
; D: ud u1 -- u2 u3
$CODE 'UM/MOD',$U_M_SLASH_MOD,VEF_USUAL
POPDS EBX ; u1
POPDS EDX
POPDS EAX
DIV EBX
PUSHDS EDX ; u2
PUSHDS EAX ; u3
$NEXT
; UMOD
; Divide u1 by u2, giving the remainder u3.
; All values and arithmetic are unsigned. An ambiguous condition exists if u2
; is zero.
; D: u1 u2 -- u3
$CODE 'UMOD',$UMOD,VEF_USUAL
POPDS EBX ; u2
POPDS EAX ; u1
XOR EDX,EDX ; unsigned
DIV EBX
PUSHDS EDX ; u3
$NEXT
;******************************************************************************
; Logic
;******************************************************************************
; 6.1.0720 AND
; D: a b -- a and b
$CODE 'AND',$AND,VEF_USUAL
POPDS EBX
POPDS EAX
AND EAX,EBX
PUSHDS EAX
$NEXT
; 6.1.1720 INVERT
; D: a -- NOT a
$CODE 'INVERT',$INVERT,VEF_USUAL
POPDS EAX
NOT EAX
PUSHDS EAX
$NEXT
; 6.1.1980 OR
; D: a b -- a or b
$CODE 'OR',$OR,VEF_USUAL
POPDS EBX
POPDS EAX
OR EAX,EBX
PUSHDS EAX
$NEXT
; 6.1.2490 XOR
; D: a b -- a xor b
$CODE 'XOR',$X_OR,VEF_USUAL
POPDS EBX
POPDS EAX
XOR EAX,EBX
PUSHDS EAX
$NEXT
; UD/
; D: UD1 UD2 -- REMD QD
$CODE 'UD/',$UDDIV,VEF_USUAL
PUSHRS EDI
PUSHRS ESI
POPDS ECX
POPDS EBX
POPDS EDX
POPDS EAX
PUSHDS EBP
;
MOV EBP,64
XOR ESI,ESI
XOR EDI,EDI
UD_LOOP:
SHL EAX,1
RCL EDX,1
RCL EDI,1
RCL ESI,1
CMP ESI,ECX
JA SHORT UD_DIV
JB SHORT UD_NEXT
CMP EDI,EBX
JB SHORT UD_NEXT
UD_DIV:
SUB EDI,EBX
SBB ESI,ECX
INC EAX
UD_NEXT:
DEC EBP
JNE UD_LOOP
;
POPDS EBP
PUSHDS EDI
PUSHDS ESI
PUSHDS EAX
PUSHDS EDX
POPRS ESI
POPRS EDI
$NEXT
|
ManagedClient/Antlr/Pft1.g4 | amironov73/ManagedClient.4 | 3 | 5675 | //============================================================
// УПРОЩЕННАЯ ГРАММАТИКА ЯЗЫКА ФОРМАТИРОВАНИЯ ИРБИС
// грамматика для ANTLR 4.2
// Автор: <NAME>
// Версия: 0.0.18
//============================================================
grammar Pft;
// Стартовый символ
program
: statement* EOF
;
statement
: nonGrouped
| groupStatement
;
groupStatement
: LPAREN nonGrouped RPAREN
;
nonGrouped
: formatItem+ # FormatItemPlus
;
//============================================================
// ОБЫЧНОЕ ФОРМАТИРОВАНИЕ
//============================================================
formatItem
: conditionalStatement # ConditionalStatementOuter
| fieldReference # FieldReferenceOuter
| formatExit # FormatExitOuter
| error # ErrorOuter
| warning # WarningOuter
| fatal # FatalOuter
| trace # TraceOuter
| debug # DebugOuter
| sFunction # SFunctionOuter
| fFunction # FFunctionOuter
| refFunction # RefFunctionOuter
| trimFunction # TrimFunctionOuter
| iocc # IoccOuter
| nocc # NoccOuter
| BREAK # Break
| GLOBALVAR # GlobalReference
| UNCONDITIONAL # UnconditionalLiteral
| MFN # SimpleMfn
| MFNWITHLENGTH # MfnWithLength
| COMMA # Comma
| SLASH # SlashNewLine
| HASH # HashNewLine
| PERCENT # PercentNewLine
| MODESWITCH # ModeSwitch
| COMMANDC # CommandC
| COMMANDX # CommandX
;
fieldReference
: leftHand
FIELD
rightHand
;
leftHand
: (REPEATABLE PLUS?|CONDITIONAL)*
;
rightHand
: (PLUS? REPEATABLE|CONDITIONAL)*
;
formatExit
: FORMATEXIT LPAREN statement RPAREN
;
//============================================================
// УСЛОВНЫЙ ОПЕРАТОР
//============================================================
conditionalStatement
: IF condition THEN thenBranch=statement* ( ELSE elseBranch=statement* )? FI
;
condition
: condition op=(AND|OR) condition # ConditionAndOr
| NOT condition # ConditionNot
| LPAREN condition RPAREN # ConditionParen
| stringTest # ConditionString
| fieldPresense # ConditionField
| arithCondition # ConditionArith
;
stringTest
: left=formatItem
op=(COLON|EQUALS|NOTEQUALS|MORE|MOREEQ|LESS|LESSEQ)
right=formatItem
;
arithCondition
: left=arithExpr
op=(EQUALS|NOTEQUALS|MORE|MOREEQ|LESS|LESSEQ)
right=arithExpr
;
arithExpr
: left=arithExpr op=(STAR|SLASH) right=arithExpr
| left=arithExpr op=(PLUS|MINUS) right=arithExpr
| value
;
value
: FLOAT # FloatValue
| UNSIGNED # UnsignedValue
| SIGNED # SignedValue
| MINUS arithExpr # MinusExpression
| LPAREN arithExpr RPAREN # ParenthesisExpression
| arithFunction # ArithFunctionOuter
| MFN # MfnValue
;
arithFunction
: RSUM LPAREN nonGrouped RPAREN # RsumFunction
| RMAX LPAREN nonGrouped RPAREN # RmaxFunction
| RMIN LPAREN nonGrouped RPAREN # RminFunction
| RAVR LPAREN nonGrouped RPAREN # RavrFunction
| VAL LPAREN nonGrouped RPAREN # ValFunction
| L LPAREN nonGrouped RPAREN # LFunction
;
fieldPresense
: P LPAREN fieldReference RPAREN
| A LPAREN fieldReference RPAREN
;
//============================================================
// ФУНКЦИИ
//============================================================
sFunction
: S LPAREN nonGrouped RPAREN
;
fFunction
: F LPAREN arg1=arithExpr RPAREN
| F LPAREN arg1=arithExpr COMMA arg2=arithExpr RPAREN
| F LPAREN arg1=arithExpr COMMA arg2=arithExpr COMMA arg3=arithExpr RPAREN
;
refFunction
: REF LPAREN arg1=arithExpr COMMA arg2=nonGrouped RPAREN
;
trimFunction
: TRIM LPAREN nonGrouped RPAREN
;
iocc
: IOCC
;
nocc
: NOCC
;
//============================================================
// ОШИБКИ
//============================================================
error
: ERROR LPAREN statement RPAREN
;
warning
: WARNING LPAREN statement RPAREN
;
fatal
: FATAL LPAREN statement RPAREN
;
trace
: TRACE LPAREN statement RPAREN
;
debug
: DEBUG LPAREN statement RPAREN
;
//============================================================
// ТЕРМИНАЛЫ
//============================================================
UNCONDITIONAL
: '\'' .*? '\''
;
CONDITIONAL
: '"' .*? '"'
;
REPEATABLE
: '|' .*? '|'
;
FIELD
: [dvn] DIGIT+
( '@' DIGIT+ )?
( '^' ALNUM )?
( '[' (INTEGER | LAST) (MINUS INTEGER)? ']')?
( '*' INTEGER )?
( '.' INTEGER )?
;
GLOBALVAR
: 'g' [0-9]+
( '^' ALNUM )?
( '*' INTEGER )?
( '.' INTEGER )?
;
MODESWITCH
: [Mm][PpHhDd][UuLl]
;
MFNWITHLENGTH
: [Mm][Ff][Nn][(][0-9]+[)]
;
COMMANDC: [Cc] INTEGER;
COMMANDX: [Xx] INTEGER;
LAST : 'LAST';
MFN : [Mm][Ff][Nn];
IF : [Ii][Ff];
THEN : [Tt][Hh][Ee][Nn];
ELSE : [Ee][Ll][Ss][Ee];
FI : [Ff][Ii];
AND : [Aa][Nn][Dd];
OR : [Oo][Rr];
NOT : [Nn][Oo][Tt];
VAL : [Vv][Aa][Ll];
REF : [Rr][Ee][Ff];
RSUM : [Rr][Ss][Uu][Mm];
RMAX : [Rr][Mm][Aa][Xx];
RMIN : [Rr][Mm][Ii][Nn];
RAVR : [Rr][Aa][Vv][Rr];
S : [Ss];
L : [Ll];
F : [Ff];
A : [Aa];
P : [Pp];
TRIM : [Tt][Rr][Ii][Mm];
TRACE : [Tt][Rr][Aa][Cc][Ee];
ERROR : [Ee][Rr][Rr][Oo][Rr];
WARNING : [Ww][Aa][Rr][Nn][Ii][Nn][Gg];
FATAL : [Ff][Aa][Tt][Aa][Ll];
DEBUG : [Dd][Ee][Bb][Uu][Gg];
IOCC : [Ii][Oo][Cc][Cc];
NOCC : [Nn][Oo][Cc][Cc];
BREAK : [Bb][Rr][Ee][Aa][Kk];
PLUS : '+';
MINUS : '-';
STAR : '*';
SLASH : '/';
EQUALS : '=';
NOTEQUALS : '<>';
LPAREN : '(';
RPAREN : ')';
COMMA : ',';
SEMICOLON : ';';
HASH : '$';
PERCENT : '%';
COLON : ':';
TILDA : '~';
BANG : '!';
MORE : '>';
MOREEQ : '>=';
LESS : '<';
LESSEQ : '<=';
fragment DIGIT: [0-9];
fragment INTEGER: DIGIT+;
fragment ALNUM: [0-9a-zA-Z];
FORMATEXIT
: [&] [A-Za-z] [A-Za-z0-9]*
;
FLOAT
: '-'? DIGIT+ ('.' DIGIT+)?
;
SIGNED : '-'? INTEGER;
UNSIGNED: [0-9]+;
//============================================================
// ПРОБЕЛЫ И КОММЕНТАРИИ
//============================================================
WS : [ \t\r\n\u000C]+ -> skip;
COMMENT
: '/*' .*? '\n' -> skip
;
|
alloy4fun_models/trashltl/models/8/tzE27AJcKM9oAzRsM.als | Kaixi26/org.alloytools.alloy | 0 | 5175 | <gh_stars>0
open main
pred idtzE27AJcKM9oAzRsM_prop9 {
all p : Protected | p not in Trash' and p.^link not in Trash'
}
pred __repair { idtzE27AJcKM9oAzRsM_prop9 }
check __repair { idtzE27AJcKM9oAzRsM_prop9 <=> prop9o } |
Ficha 6 - Tratamento de sequencias/5.asm | FEUP-MIEIC/MPCP | 0 | 21265 | include mpcp.inc
.data
msg BYTE "123456789", 0
output_error BYTE "The arguments are invalid!", 13,10,0
output BYTE "The string was shrinked with sucess! Result:", 13, 10, 0
.code
; proto
SHRINK_RIGTH PROTO C string:ptr byte, len:dword, n:dword
SHRINK_LEFT PROTO C string:ptr byte, len:dword, n:dword
TRIM PROTO C string:ptr byte, len:dword, N:dword, M:dword
; main
main PROC C
invoke TRIM, OFFSET msg, LENGTHOF msg, 1,1
; checks return value on EAX
cmp EAX, 0
jne @F
; sucess
invoke printf, OFFSET output
invoke printf, OFFSET msg
jmp _end
; error
@@:
invoke printf, OFFSET output_error
_end:
invoke _getch
invoke ExitProcess, 0
main ENDP
;; -----------------------------
;; other procedures
SHRINK_LEFT PROC C USES ESI string:ptr byte, len:dword, n:dword
; validate arguments
mov EAX, len
dec EAX ; lengthof counts the null character
cmp EAX, n
jg @F
je end_p
; arguments are invalid, N > len
mov EAX, -1
ret
@@:
mov ESI, string
add ESI, n
mov BYTE PTR [ESI], 0
end_p:
mov EAX, 0
ret
SHRINK_LEFT ENDP
SHRINK_RIGTH PROC C USES ESI EDI string:ptr byte, len:dword, n:dword
; validate arguments
mov EAX, len
dec EAX ; lengthof counts the null character
cmp EAX, n
jg @F
je end_p
; arguments are invalid, N > len
mov EAX, -1
ret
@@:
; EDI points for the first char of string
mov EDI, string
; ESI points to the first char to keep on right side
mov ESI, string
add ESI, EAX
sub ESI, n
; ECX has the number of chars to keep
mov ECX, len
; loop
rep movsb
; Inserts the null character
mov EDI, 0
end_p:
mov EAX, 0
ret
SHRINK_RIGTH ENDP
; N -> right
; M -> left
TRIM PROC C USES ESI EDI string:ptr byte, len:dword, N:dword, M:dword
mov EDX, M
add EDX, N
mov EAX, len
dec EAX ; lengthof counts the null character
cmp EAX, EDX ; if M+N > len, arguments are invalid
jg @F
je end_p
; invalid
mov EAX, -1
ret
@@:
; remove N right side characters
mov ESI, string
add ESI, len
sub ESI, N
mov byte ptr [ESI], 0
; remove M left side chars
mov ECX, len
sub ECX, M
sub ECX, N
inc ECX ; to include null char \0
mov EDI, string
mov ESI, string
add ESI, M
rep movsb
end_p:
mov EAX, 0
ret
TRIM ENDP
end
|
oeis/001/A001042.asm | neoneye/loda-programs | 11 | 7776 | <filename>oeis/001/A001042.asm
; A001042: a(n) = a(n-1)^2 - a(n-2)^2.
; Submitted by <NAME>
; 1,2,3,5,16,231,53105,2820087664,7952894429824835871,63248529811938901240357985099443351745,4000376523371723941902615329287219027543200136435757892789536976747706216384,16003012328743640989586655320144629580119446376537372184154130713609480575498095104292127409666256444667183968474697598807235694861476767730997235490431
mul $0,2
mov $2,1
mov $3,1
lpb $0
sub $0,2
pow $2,2
add $2,$3
sub $3,$2
lpe
mov $0,$2
|
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/free_unlocked_fastcall.asm | meesokim/z88dk | 0 | 13734 | <filename>libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/free_unlocked_fastcall.asm
; void free_unlocked_fastcall(void *p)
SECTION code_alloc_malloc
PUBLIC _free_unlocked_fastcall
_free_unlocked_fastcall:
INCLUDE "alloc/malloc/z80/asm_free_unlocked.asm"
|
programs/oeis/188/A188435.asm | karttu/loda | 0 | 9338 | ; A188435: Positions of 1 in A188433; complement of A188434.
; 1,3,4,6,7,8,9,11,12,14,15,16,17,19,20,21,22,24,25,27,28,29,30,32,33,35,36,37,38,40,41,42,43,45,46,48,49,50,51,53,54,55,56,58,59,61,62,63,64,66,67,69,70,71,72,74,75,76,77,79,80,82,83,84,85,87,88,90,91,92,93,95,96,97,98,100,101,103,104,105,106,108,109,110,111,113,114,116,117,118,119
mov $16,$0
mov $18,$0
add $18,1
lpb $18,1
mov $0,$16
sub $18,1
sub $0,$18
mov $12,$0
mov $14,2
lpb $14,1
mov $0,$12
sub $0,1
mov $8,$0
mov $10,2
sub $14,1
lpb $10,1
clr $0,8
mov $0,$8
sub $10,1
add $0,$10
sub $0,1
add $2,2
mov $5,$0
div $0,$2
mov $4,$0
add $0,1
div $0,7
sub $0,1
mul $4,$2
sub $4,$0
mov $2,$4
div $2,3
mov $1,$2
add $1,2
add $1,$5
mov $11,$10
lpb $11,1
mov $9,$1
sub $11,1
lpe
lpe
lpb $8,1
mov $8,0
sub $9,$1
lpe
lpe
add $17,$9
lpe
mov $1,$17
|
Cubical/HITs/Truncation/Properties.agda | limemloh/cubical | 0 | 2116 | <reponame>limemloh/cubical
{-# OPTIONS --cubical --safe #-}
module Cubical.HITs.Truncation.Properties where
open import Cubical.HITs.Truncation.Base
open import Cubical.Data.Nat
open import Cubical.Data.NatMinusOne
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.HLevels
open import Cubical.HITs.Sn
open import Cubical.Data.Empty
open import Cubical.HITs.Susp
open import Cubical.HITs.PropositionalTruncation renaming (∥_∥ to ∥_∥₋₁)
open import Cubical.HITs.SetTruncation
open import Cubical.HITs.GroupoidTruncation
open import Cubical.HITs.2GroupoidTruncation
private
variable
ℓ ℓ' : Level
A : Type ℓ
sphereFill : (n : ℕ) (f : S n → A) → Type _
sphereFill {A = A} n f = Σ[ top ∈ A ] ((x : S n) → top ≡ f x)
isSphereFilled : ℕ → Type ℓ → Type ℓ
isSphereFilled n A = (f : S n → A) → sphereFill n f
isSphereFilled∥∥ : {n : ℕ₋₁} → isSphereFilled (1+ n) (∥ A ∥ n)
isSphereFilled∥∥ f = (hub f) , (spoke f)
isSphereFilled→isOfHLevel : (n : ℕ) → isSphereFilled n A → isOfHLevel (1 + n) A
isSphereFilled→isOfHLevel {A = A} 0 h x y = sym (snd (h f) north) ∙ snd (h f) south
where
f : Susp ⊥ → A
f north = x
f south = y
f (merid () i)
isSphereFilled→isOfHLevel {A = A} (suc n) h x y = isSphereFilled→isOfHLevel n (helper h x y)
where
helper : {n : ℕ} → isSphereFilled (suc n) A → (x y : A) → isSphereFilled n (x ≡ y)
helper {n = n} h x y f = l , r
where
f' : Susp (S n) → A
f' north = x
f' south = y
f' (merid u i) = f u i
u : sphereFill (suc n) f'
u = h f'
z : A
z = fst u
p : z ≡ x
p = snd u north
q : z ≡ y
q = snd u south
l : x ≡ y
l = sym p ∙ q
r : (s : S n) → l ≡ f s
r s i j = hcomp
(λ k →
λ { (i = i0) → compPath-filler (sym p) q k j
; (i = i1) → snd u (merid s j) k
; (j = i0) → p (k ∨ (~ i))
; (j = i1) → q k
})
(p ((~ i) ∧ (~ j)))
isOfHLevel→isSphereFilled : (n : ℕ) → isOfHLevel (1 + n) A → isSphereFilled n A
isOfHLevel→isSphereFilled 0 h f = (f north) , (λ _ → h _ _)
isOfHLevel→isSphereFilled {A = A} (suc n) h = helper λ x y → isOfHLevel→isSphereFilled n (h x y)
where
helper : {n : ℕ} → ((x y : A) → isSphereFilled n (x ≡ y)) → isSphereFilled (suc n) A
helper {n = n} h f = l , r
where
l : A
l = f north
f' : S n → f north ≡ f south
f' x i = f (merid x i)
h' : sphereFill n f'
h' = h (f north) (f south) f'
r : (x : S (suc n)) → l ≡ f x
r north = refl
r south = h' .fst
r (merid x i) j = hcomp (λ k → λ { (i = i0) → f north
; (i = i1) → h' .snd x (~ k) j
; (j = i0) → f north
; (j = i1) → f (merid x i) }) (f (merid x (i ∧ j)))
isOfHLevel∥∥ : (n : ℕ₋₁) → isOfHLevel (1 + 1+ n) (∥ A ∥ n)
isOfHLevel∥∥ n = isSphereFilled→isOfHLevel (1+ n) isSphereFilled∥∥
ind : {n : ℕ₋₁}
{B : ∥ A ∥ n → Type ℓ'}
(hB : (x : ∥ A ∥ n) → isOfHLevel (1 + 1+ n) (B x))
(g : (a : A) → B (∣ a ∣))
(x : ∥ A ∥ n) →
B x
ind hB g (∣ a ∣ ) = g a
ind {B = B} hB g (hub f) =
isOfHLevel→isSphereFilled _ (hB (hub f)) (λ x → subst B (sym (spoke f x)) (ind hB g (f x)) ) .fst
ind {B = B} hB g (spoke f x i) =
toPathP {A = λ i → B (spoke f x (~ i))}
(sym (isOfHLevel→isSphereFilled _ (hB (hub f)) (λ x → subst B (sym (spoke f x)) (ind hB g (f x))) .snd x))
(~ i)
ind2 : {n : ℕ₋₁}
{B : ∥ A ∥ n → ∥ A ∥ n → Type ℓ'}
(hB : ((x y : ∥ A ∥ n) → isOfHLevel (1 + 1+ n) (B x y)))
(g : (a b : A) → B ∣ a ∣ ∣ b ∣)
(x y : ∥ A ∥ n) →
B x y
ind2 {n = n} hB g = ind (λ _ → hLevelPi (1 + 1+ n) (λ _ → hB _ _)) λ a →
ind (λ _ → hB _ _) (λ b → g a b)
ind3 : {n : ℕ₋₁}
{B : (x y z : ∥ A ∥ n) → Type ℓ'}
(hB : ((x y z : ∥ A ∥ n) → isOfHLevel (1 + 1+ n) (B x y z)))
(g : (a b c : A) → B (∣ a ∣) ∣ b ∣ ∣ c ∣)
(x y z : ∥ A ∥ n) →
B x y z
ind3 {n = n} hB g = ind2 (λ _ _ → hLevelPi (1 + 1+ n) (hB _ _)) λ a b →
ind (λ _ → hB _ _ _) (λ c → g a b c)
idemTrunc : (n : ℕ₋₁) → isOfHLevel (1 + 1+ n) A → (∥ A ∥ n) ≃ A
idemTrunc {A = A} n hA = isoToEquiv (iso f g f-g g-f)
where
f : ∥ A ∥ n → A
f = ind (λ _ → hA) λ a → a
g : A → ∥ A ∥ n
g = ∣_∣
f-g : ∀ a → f (g a) ≡ a
f-g a = refl
g-f : ∀ x → g (f x) ≡ x
g-f = ind (λ _ → hLevelSuc (1+ n) _ (hLevelPath (1+ n) (isOfHLevel∥∥ n) _ _)) (λ _ → refl)
propTrunc≃Trunc-1 : ∥ A ∥₋₁ ≃ ∥ A ∥ neg1
propTrunc≃Trunc-1 =
isoToEquiv
(iso
(elimPropTrunc (λ _ → isOfHLevel∥∥ neg1) ∣_∣)
(ind (λ _ → propTruncIsProp) ∣_∣)
(ind (λ _ → hLevelSuc 0 _ (hLevelPath 0 (isOfHLevel∥∥ neg1) _ _)) (λ _ → refl))
(elimPropTrunc (λ _ → hLevelSuc 0 _ (hLevelPath 0 propTruncIsProp _ _)) (λ _ → refl)))
setTrunc≃Trunc0 : ∥ A ∥₀ ≃ ∥ A ∥ (suc neg1)
setTrunc≃Trunc0 =
isoToEquiv
(iso
(elimSetTrunc (λ _ → isOfHLevel∥∥ (suc neg1)) ∣_∣)
(ind (λ _ → squash₀) ∣_∣₀)
(ind (λ _ → hLevelSuc 1 _ (hLevelPath 1 (isOfHLevel∥∥ (suc neg1)) _ _)) (λ _ → refl))
(elimSetTrunc (λ _ → hLevelSuc 1 _ (hLevelPath 1 squash₀ _ _)) (λ _ → refl)))
groupoidTrunc≃Trunc1 : ∥ A ∥₁ ≃ ∥ A ∥ (ℕ→ℕ₋₁ 1)
groupoidTrunc≃Trunc1 =
isoToEquiv
(iso
(groupoidTruncElim _ _ (λ _ → isOfHLevel∥∥ (ℕ→ℕ₋₁ 1)) ∣_∣)
(ind (λ _ → squash₁) ∣_∣₁)
(ind (λ _ → hLevelSuc 2 _ (hLevelPath 2 (isOfHLevel∥∥ (ℕ→ℕ₋₁ 1)) _ _)) (λ _ → refl))
(groupoidTruncElim _ _ (λ _ → hLevelSuc 2 _ (hLevelPath 2 squash₁ _ _)) (λ _ → refl)))
2groupoidTrunc≃Trunc2 : ∥ A ∥₂ ≃ ∥ A ∥ (ℕ→ℕ₋₁ 2)
2groupoidTrunc≃Trunc2 =
isoToEquiv
(iso
(g2TruncElim _ _ (λ _ → isOfHLevel∥∥ (ℕ→ℕ₋₁ 2)) ∣_∣)
(ind (λ _ → squash₂) ∣_∣₂)
(ind (λ _ → hLevelSuc 3 _ (hLevelPath 3 (isOfHLevel∥∥ (ℕ→ℕ₋₁ 2)) _ _)) (λ _ → refl))
(g2TruncElim _ _ (λ _ → hLevelSuc 3 _ (hLevelPath 3 squash₂ _ _)) (λ _ → refl)))
|
test/succeed/Issue561.agda | larrytheliquid/agda | 1 | 8844 |
module Issue561 where
open import Common.Prelude
open import Common.MAlonzo using ()
-- if I do not include this, I get compilation errors
-- MAlonzo/Code/Common/Prelude.hs:8:7:
-- Not in scope: type constructor or class `Common.FFI.Nat'
primitive
primIsDigit : Char → Bool
postulate
return : ∀ {A} → A → IO A
main : IO Bool
main = return true
|
programs/oeis/024/A024082.asm | karttu/loda | 1 | 178573 | ; A024082: 7^n-n^7.
; 1,6,-79,-1844,-13983,-61318,-162287,0,3667649,35570638,272475249,1957839572,13805455393,96826261890,678117659345,4747390650568,33232662134145,232630103648534,1628412985690417,11398894291501404,79792265017612001
mov $1,7
pow $1,$0
pow $0,7
add $0,1
sub $1,$0
add $1,1
|
HoTT/Identity/Product.agda | michaelforney/hott | 0 | 2020 | {-# OPTIONS --without-K #-}
open import HoTT.Base
open import HoTT.Equivalence
module HoTT.Identity.Product where
open variables
private variable x y : A × B
_=×_ : A × B → A × B → 𝒰 _
x =× y = pr₁ x == pr₁ y × pr₂ x == pr₂ y
-- Theorem 2.6.2
=× : x == y ≃ x =× y
=× {x = _ , _} {_ , _} = let open Iso in iso→eqv λ where
.f refl → refl , refl
.g (refl , refl) → refl
.η refl → refl
.ε (refl , refl) → refl
module _ {x y : A × B} where
open Iso (eqv→iso (=× {x = x} {y})) public
renaming (f to =×-elim ; g to =×-intro ; η to =×-η ; ε to =×-β)
×-pair⁼ = =×-intro
|
libsrc/stdio/spc1000/generic_console_vpeek.asm | jpoikela/z88dk | 640 | 102751 |
; code_driver to ensure we don't page ourselves out
SECTION code_driver
PUBLIC generic_console_vpeek
EXTERN __spc1000_mode
EXTERN vpeek_MODE1
EXTERN vpeek_MODE2
EXTERN generic_console_calc_xypos
EXTERN __tms9918_console_vpeek
;Entry: c = x,
; b = y
; e = rawmode
;Exit: nc = success
; a = character,
; c = failure
generic_console_vpeek:
ld a,(__spc1000_mode)
cp 1
jp z,vpeek_MODE1
cp 2
jp z,vpeek_MODE2
cp 10
jp z,__tms9918_console_vpeek
call generic_console_calc_xypos
ld c,l
ld b,h
in a,(c)
set 3,b
in l,(c)
bit 3,l
jr nz,lower_case
bit 2,l
jr nz,high_chars
done:
and a
ret
lower_case:
cp $60
jr nc,done
or 128
jr done
high_chars:
and $0f
or $e0
jr done
|
bb-runtimes/src/s-bbcpsp__x86_64.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 7279 | <filename>bb-runtimes/src/s-bbcpsp__x86_64.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . C P U _ S P E C I F I C --
-- --
-- S p e c --
-- --
-- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
-- Copyright (C) 2003-2004 The European Space Agency --
-- Copyright (C) 2003-2021, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the primitives which are dependent on the
-- underlying processor.
pragma Restrictions (No_Elaboration_Code);
with Ada.Unchecked_Conversion;
with Interfaces;
with System;
with System.BB.Interrupts;
package System.BB.CPU_Specific is
pragma Preelaborate;
package SBI renames System.BB.Interrupts;
------------------
-- CPU Features --
------------------
type Intel_Family is mod 2 ** 4;
type Intel_Model_Number is mod 2 ** 8;
type CPU_Model is record
Family : Intel_Family;
Model : Intel_Model_Number;
end record;
function My_CPU_Model return CPU_Model;
-- Return the CPU model for the current CPU
-- List of known CPUs
No_Model : constant CPU_Model := (0, 0);
-- Client and Server Processors
Sandy_Bridge_Client : constant CPU_Model := (16#6#, 16#2A#);
Sandy_Bridge_Server : constant CPU_Model := (16#6#, 16#2D#);
Ivy_Bridge_Client : constant CPU_Model := (16#6#, 16#3A#);
Ivy_Bridge_Server : constant CPU_Model := (16#6#, 16#3E#);
Haswell_Client : constant CPU_Model := (16#6#, 16#3C#);
Haswell_Client_L : constant CPU_Model := (16#6#, 16#35#);
Haswell_Client_G : constant CPU_Model := (16#6#, 16#36#);
Haswell_Server : constant CPU_Model := (16#6#, 16#3F#);
Broadwell_Client : constant CPU_Model := (16#6#, 16#3D#);
Broadwell_Client_G : constant CPU_Model := (16#6#, 16#47#);
Broadwell_Server : constant CPU_Model := (16#6#, 16#4F#);
Broadwell_Server_D : constant CPU_Model := (16#6#, 16#56#);
-- Small Core Processors
Goldmont : constant CPU_Model := (16#6#, 16#5C#);
Denverton : constant CPU_Model := (16#6#, 16#5F#);
--------------------
-- CPUID Features --
--------------------
Max_CPUID_Index : Interfaces.Unsigned_32;
-- Max CPU ID leaf index supported by the processor
type Unsigned_4 is mod 2 ** 4;
type Processor_Types is
(Original_OEM_Processor, Intel_OverDrive_Processor,
Dual_Processor, Reserved);
type Feature_Information_EAX is record
Stepping : Unsigned_4;
Model : Unsigned_4;
Family : Intel_Family;
Processor_Type : Processor_Types;
Extended_Model : Unsigned_4;
Extended_Family : Interfaces.Unsigned_8;
end record with Size => 32;
for Feature_Information_EAX use record
Stepping at 0 range 0 .. 3;
Model at 0 range 4 .. 7;
Family at 0 range 8 .. 11;
Processor_Type at 0 range 12 .. 13;
Extended_Model at 0 range 16 .. 19;
Extended_Family at 0 range 20 .. 27;
end record;
type Feature_Information_ECX is record
x2APIC : Boolean;
TSC_Deadline : Boolean;
XSAVE : Boolean;
OSXSAVE : Boolean;
AVX : Boolean;
end record with Size => 32;
for Feature_Information_ECX use record
x2APIC at 0 range 21 .. 21;
TSC_Deadline at 0 range 24 .. 24;
XSAVE at 0 range 26 .. 26;
OSXSAVE at 0 range 27 .. 27;
AVX at 0 range 28 .. 28;
end record;
type Feature_Information_EDX is record
TSC : Boolean;
APIC : Boolean;
end record with Size => 32;
for Feature_Information_EDX use record
TSC at 0 range 4 .. 4;
APIC at 0 range 9 .. 9;
end record;
type Extended_State_Subleaf_1_EAX is record
XSAVEOPT : Boolean;
end record;
for Extended_State_Subleaf_1_EAX use record
XSAVEOPT at 0 range 0 .. 0;
end record;
type Extended_Function_Time_EDX is record
Invariant_TSC : Boolean;
end record;
for Extended_Function_Time_EDX use record
Invariant_TSC at 0 range 8 .. 8;
end record;
------------------------------
-- Model Specific Registers --
------------------------------
MSR_PLATFORM_INFO : constant := 16#CE#;
type Platform_Infomation is record
Maximum_Non_Turbo_Ratio : Interfaces.Unsigned_8;
end record with Size => 32;
for Platform_Infomation use record
Maximum_Non_Turbo_Ratio at 0 range 8 .. 15;
end record;
IA32_GS_BASE : constant := 16#C0000101#;
-----------------------
-- Control Registers --
-----------------------
type Control_Register_4 is record
Virtual_8086_Mode_Extensions : Boolean;
Protected_Mode_Virtual_Interrupts : Boolean;
Time_Stamp_Disable : Boolean;
Debugging_Extensions : Boolean;
Page_Size_Extensions : Boolean;
Physical_Address_Extension : Boolean;
Machine_Check_Enable : Boolean;
Page_Global_Enable : Boolean;
Performance_Monitoring_Counter_Enable : Boolean;
FXSAVE_FXRSTOR_And_SSE_Enable : Boolean;
OS_Support_for_Unmasked_SIMD_FP_Exceptions : Boolean;
User_Mode_Instruction_Prevention : Boolean;
VMX_Enable : Boolean;
SMX_Enable : Boolean;
FSGSBASE_Enable : Boolean;
PCID_Enable : Boolean;
XSAVE_and_Processor_Extended_States_Enable : Boolean;
SMEP_Enable : Boolean;
SMAP_Enable : Boolean;
Protection_Key_Enable : Boolean;
end record with Size => 64;
-- Important: when writing to a control register, the values of the reserve
-- bits should not be changed.
type Hardware_Piority_Level is mod 2 ** 4;
type Control_Register_8 is record
Task_Priority_Level : Hardware_Piority_Level;
end record with Size => 64;
for Control_Register_4 use record
Virtual_8086_Mode_Extensions at 0 range 0 .. 0;
Protected_Mode_Virtual_Interrupts at 0 range 1 .. 1;
Time_Stamp_Disable at 0 range 2 .. 2;
Debugging_Extensions at 0 range 3 .. 3;
Page_Size_Extensions at 0 range 4 .. 4;
Physical_Address_Extension at 0 range 5 .. 5;
Machine_Check_Enable at 0 range 6 .. 6;
Page_Global_Enable at 0 range 7 .. 7;
Performance_Monitoring_Counter_Enable at 0 range 8 .. 8;
FXSAVE_FXRSTOR_And_SSE_Enable at 0 range 9 .. 9;
OS_Support_for_Unmasked_SIMD_FP_Exceptions at 0 range 10 .. 10;
User_Mode_Instruction_Prevention at 0 range 11 .. 11;
VMX_Enable at 0 range 13 .. 13;
SMX_Enable at 0 range 14 .. 14;
FSGSBASE_Enable at 0 range 16 .. 16;
PCID_Enable at 0 range 17 .. 17;
XSAVE_and_Processor_Extended_States_Enable at 0 range 18 .. 18;
SMEP_Enable at 0 range 20 .. 20;
SMAP_Enable at 0 range 21 .. 21;
Protection_Key_Enable at 0 range 22 .. 22;
end record;
for Control_Register_8 use record
Task_Priority_Level at 0 range 0 .. 3;
end record;
------------------------
-- Context management --
------------------------
-- EFLAG
type IO_Privilege is mod 2;
type Carry_Flag_Status is (False, True);
for Carry_Flag_Status use (False => 2#10#, True => 2#11#);
-- The bit next to the Carry Flag is always 1 so extend the carry flag to
-- cover that bit as well to save us from having to have to define a
-- useless "always one" component to the record.
type EFLAGS is record
Carry_Flag : Carry_Flag_Status;
Parity_Flag : Boolean;
Auxiliary_Carry_Flag : Boolean;
Zero_Flag : Boolean;
Sign_Flag : Boolean;
Trap_Flag : Boolean;
Interrupt_Enable_Flag : Boolean;
Direction_Flag : Boolean;
Overflow_Flag : Boolean;
IO_Privilege_Level : IO_Privilege;
Nested_Task : Boolean;
Resume_Flag : Boolean;
Virtual_8086_Mode : Boolean;
Alignment_Check_Access_Control : Boolean;
Virtual_Interrupt_Flag : Boolean;
Virtual_Interrupt_Pending : Boolean;
ID_Flag : Boolean;
end record with Size => 64;
for EFLAGS use record
Carry_Flag at 0 range 0 .. 1;
Parity_Flag at 0 range 2 .. 2;
Auxiliary_Carry_Flag at 0 range 4 .. 4;
Zero_Flag at 0 range 6 .. 6;
Sign_Flag at 0 range 7 .. 7;
Trap_Flag at 0 range 8 .. 8;
Interrupt_Enable_Flag at 0 range 9 .. 9;
Direction_Flag at 0 range 10 .. 10;
Overflow_Flag at 0 range 11 .. 11;
IO_Privilege_Level at 0 range 12 .. 13;
Nested_Task at 0 range 14 .. 14;
Resume_Flag at 0 range 16 .. 16;
Virtual_8086_Mode at 0 range 17 .. 17;
Alignment_Check_Access_Control at 0 range 18 .. 18;
Virtual_Interrupt_Flag at 0 range 19 .. 19;
Virtual_Interrupt_Pending at 0 range 20 .. 20;
ID_Flag at 0 range 21 .. 21;
end record;
-- The context buffer is a type that represents thread's state and is not
-- otherwise stored in main memory. This typically includes all user-
-- visible registers, and possibly some other status as well.
type Context_Buffer is record
-- Only callee-saved registers need to be saved, as the context switch
-- is always synchronous. We save/restore the link return register
-- so we can load the initial stack pointer on start.
RIP : System.Address; -- Link return register
RFLAGS : EFLAGS; -- FLAG register
RSP : System.Address; -- Stack pointer
RBX : System.Address;
RBP : System.Address;
R12 : System.Address;
R13 : System.Address;
R14 : System.Address;
R15 : System.Address;
end record;
for Context_Buffer use record
RIP at 0 range 0 .. 63;
RFLAGS at 8 range 0 .. 63;
RSP at 16 range 0 .. 63;
RBX at 24 range 0 .. 63;
RBP at 32 range 0 .. 63;
R12 at 40 range 0 .. 63;
R13 at 48 range 0 .. 63;
R14 at 56 range 0 .. 63;
R15 at 64 range 0 .. 63;
end record;
-- State_Component_Bit_Map
type State_Component_Bit_Map is record
X87 : Boolean;
SSE : Boolean;
AVX : Boolean;
MPX_BNDREGS : Boolean;
MPX_BNDCSR : Boolean;
AVX_512_Opmask : Boolean;
AVX_512_ZMM_Hi256 : Boolean;
AVX_512_Hi16_ZMM : Boolean;
PT : Boolean;
PKRU : Boolean;
CET_U : Boolean;
CET_S : Boolean;
HDC : Boolean;
end record with Size => 64;
for State_Component_Bit_Map use record
X87 at 0 range 0 .. 0;
SSE at 0 range 1 .. 1;
AVX at 0 range 2 .. 2;
MPX_BNDREGS at 0 range 3 .. 3;
MPX_BNDCSR at 0 range 4 .. 4;
AVX_512_Opmask at 0 range 5 .. 5;
AVX_512_ZMM_Hi256 at 0 range 6 .. 6;
AVX_512_Hi16_ZMM at 0 range 7 .. 7;
PT at 0 range 8 .. 8;
PKRU at 0 range 9 .. 9;
CET_U at 0 range 11 .. 11;
CET_S at 0 range 12 .. 12;
HDC at 0 range 13 .. 13;
end record;
BB_X86_Context_State : constant State_Component_Bit_Map :=
(X87 => True,
SSE => True,
AVX => True,
AVX_512_Opmask => True,
AVX_512_ZMM_Hi256 => True,
AVX_512_Hi16_ZMM => True,
others => False);
-- The process state that we will save for the BB runtime. Keep in sync
-- with the XSAVE_Area type above, otherwise we run the risk of writing
-- outside the bounds of XSAVE_Area.
Stack_Alignment : constant := 16;
-- Hardware stack alignment requirement
----------------
-- Local APIC --
----------------
Local_APIC_Base_Address : constant := 16#FEE0_0000#;
Local_APIC_ID_Offset_Address : constant := 16#020#;
Local_APIC_EOI_Offset_Address : constant := 16#0B0#;
Local_APIC_Spurious_Int_Offset_Address : constant := 16#0F0#;
Local_APIC_ICR_Low_Offset_Address : constant := 16#300#;
Local_APIC_ICR_High_Offset_Address : constant := 16#310#;
Local_APIC_LVT_Timer_Offset_Address : constant := 16#320#;
Local_APIC_Initial_Count_Offset_Address : constant := 16#380#;
Local_APIC_Timer_Current_Count_Address : constant := 16#390#;
Local_APIC_Divide_Config_Offset_Address : constant := 16#3E0#;
type APIC_ID is new Interfaces.Unsigned_8;
type Local_APIC_ID is record
ID : APIC_ID;
end record with Size => 32;
for Local_APIC_ID use record
ID at 0 range 24 .. 31;
end record;
type Local_APIC_EOI is (Signal) with Size => 32;
for Local_APIC_EOI use (Signal => 0);
type Local_APIC_Spurious_Interrupt is record
Spurious_Vector : Interrupts.Interrupt_ID;
APIC_Enabled : Boolean;
Focus_Processor_Checking : Boolean;
Suppress_EOI_Broadcast : Boolean;
end record with Size => 32;
for Local_APIC_Spurious_Interrupt use record
Spurious_Vector at 0 range 0 .. 7;
APIC_Enabled at 0 range 8 .. 8;
Focus_Processor_Checking at 0 range 9 .. 9;
Suppress_EOI_Broadcast at 0 range 12 .. 12;
end record;
type Interrupt_Command_High is record
Destination : Interfaces.Unsigned_8;
end record;
for Interrupt_Command_High use record
Destination at 0 range 24 .. 31;
end record;
type Destination_Shorthand is
(No_Shorthand, Self, All_Including_Self, All_Excluding_Self);
type Trigger_Type is (Edge, Level);
for Trigger_Type use (Edge => 2#01#, Level => 2#11#);
type Delivery_Status is (Idle, Send_Pending);
type Destination_Mode_Type is (Physical, Logical);
type Delivery_Mode_Type is
(Fixed, Lowest_Priority, SMI, NMI, INIT, Start_Up);
for Delivery_Mode_Type use
(Fixed => 2#000#, Lowest_Priority => 2#001#,
SMI => 2#010#, NMI => 2#100#,
INIT => 2#101#, Start_Up => 2#110#);
type Interrupt_Command_Low is record
Destination : Destination_Shorthand;
Trigger : Trigger_Type;
Delivery : Delivery_Status;
Destination_Mode : Destination_Mode_Type;
Delivery_Mode : Delivery_Mode_Type;
Vector : Interrupts.Interrupt_ID;
end record;
for Interrupt_Command_Low use record
Destination at 0 range 18 .. 19;
Trigger at 0 range 14 .. 15;
Delivery at 0 range 12 .. 12;
Destination_Mode at 0 range 11 .. 11;
Delivery_Mode at 0 range 8 .. 10;
Vector at 0 range 0 .. 7;
end record;
type Timer_Type is (One_Shot, Periodic, TSC_Deadline);
for Timer_Type use (One_Shot => 0, Periodic => 1, TSC_Deadline => 2);
type LVT_Timer is record
Timer_Mode : Timer_Type;
Mask : Boolean;
Delivery : Delivery_Status;
Vector : Interrupts.Interrupt_ID;
end record with Size => 32;
for LVT_Timer use record
Timer_Mode at 0 range 17 .. 18;
Mask at 0 range 16 .. 16;
Delivery at 0 range 12 .. 12;
Vector at 0 range 0 .. 7;
end record;
type APIC_Time is new Interfaces.Unsigned_32;
type Divide_Configuration is
(Divide_by_2, Divide_by_4, Divide_by_8, Divide_by_16, Divide_by_32,
Divide_by_64, Divide_by_128, Divide_by_1);
for Divide_Configuration use
(Divide_by_2 => 2#0000#, Divide_by_4 => 2#0001#,
Divide_by_8 => 2#0010#, Divide_by_16 => 2#0011#,
Divide_by_32 => 2#1000#, Divide_by_64 => 2#1001#,
Divide_by_128 => 2#1010#, Divide_by_1 => 2#1011#);
Local_APIC_ID_Register : Local_APIC_ID
with Volatile_Full_Access,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_ID_Offset_Address);
Local_APIC_End_of_Interrupt : Local_APIC_EOI
with Volatile_Full_Access,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_EOI_Offset_Address);
Local_APIC_Spurious_Interrupt_Register : Local_APIC_Spurious_Interrupt
with Volatile_Full_Access,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_Spurious_Int_Offset_Address);
Interrupt_Command_Register_Low : Interrupt_Command_Low
with Volatile_Full_Access,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_ICR_Low_Offset_Address);
Interrupt_Command_Register_High : Interrupt_Command_High
with Volatile_Full_Access,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_ICR_High_Offset_Address);
Local_APIC_LVT_Timer_Register : LVT_Timer
with Volatile_Full_Access,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_LVT_Timer_Offset_Address);
Local_APIC_Timer_Initial_Count : APIC_Time
with Volatile,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_Initial_Count_Offset_Address);
Local_APIC_Timer_Current_Count : APIC_Time
with Volatile,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_Timer_Current_Count_Address);
Local_APIC_Timer_Divide_Configuration : Divide_Configuration
with Volatile,
Address =>
System'To_Address
(Local_APIC_Base_Address + Local_APIC_Divide_Config_Offset_Address);
----------------
-- APIC Timer --
----------------
APIC_Timer_Interrupt_ID : constant Interrupts.Interrupt_ID := 255;
TSC_Frequency_In_kHz : Interfaces.Unsigned_64;
-- The frequency of the Time Stamp Counter in kHz. We use kHz because is
-- gives us more head room when when convert from ticks to nanoseconds and
-- vice versa (since we need to multiply ticks with the frequency, which
-- caps the maximum number of ticks the clock can accumulate until we can
-- no longer perform that conversion).
---------
-- PIT --
---------
PIT_Channel_0_Data_Port : constant := 16#40#;
PIT_Mode_Command_Port : constant := 16#43#;
type PIT_Channel is (Channel_0, Channel_1, Channel_2, Read_Back);
type PIT_Access_Mode is
(Latch_Count_Value, Low_Byte, High_Byte, Low_High_Byte);
type PIT_Operating_Mode is
(Interrupt_On_Terminal_Count, One_Shot, Rate_Generator,
Square_Wave_Generator, Software_Triggered_Strobe,
Hardware_Triggered_Strobe);
type PIT_BCD_Binary_Mode is (BCD, Binary);
type PIT_Mode_Command_Register is record
Channel : PIT_Channel;
Access_Mode : PIT_Access_Mode;
Operating_Mode : PIT_Operating_Mode;
BCD_Binary_Mode : PIT_BCD_Binary_Mode;
end record with Size => 8;
for PIT_Mode_Command_Register use record
Channel at 0 range 6 .. 7;
Access_Mode at 0 range 4 .. 5;
Operating_Mode at 0 range 1 .. 3;
BCD_Binary_Mode at 0 range 0 .. 0;
end record;
function To_IO_Byte is new
Ada.Unchecked_Conversion
(PIT_Mode_Command_Register, Interfaces.Unsigned_8);
---------------
-- CPU Clock --
---------------
function Read_Raw_Clock return Interfaces.Unsigned_64
with Inline;
-- Read the hardware clock source
-------------------------
-- Hardware Exceptions --
-------------------------
type Error_Code is mod 2 ** 64;
-- A code the processor will push onto the exception stack in response to
-- certain exceptions.
-- Exceptions IDs
Divide_Error_Exception : constant SBI.Interrupt_ID := 0;
Dedug_Execption : constant SBI.Interrupt_ID := 1;
NMI_Interrupt : constant SBI.Interrupt_ID := 2;
Breakpoint_Execption : constant SBI.Interrupt_ID := 3;
Overflow_Exception : constant SBI.Interrupt_ID := 4;
BOUND_Range_Exceeded_Exception : constant SBI.Interrupt_ID := 5;
Invalid_Opcode_Exception : constant SBI.Interrupt_ID := 6;
Device_Not_Available_Exception : constant SBI.Interrupt_ID := 7;
Double_Fault_Exception : constant SBI.Interrupt_ID := 8;
Invalid_TSS_Exception : constant SBI.Interrupt_ID := 10;
Segment_Not_Present_Exception : constant SBI.Interrupt_ID := 11;
Stack_Segment_Fault_Exception : constant SBI.Interrupt_ID := 12;
General_Protection_Exception : constant SBI.Interrupt_ID := 13;
Page_Fault_Exception : constant SBI.Interrupt_ID := 14;
Math_Fault_Exception : constant SBI.Interrupt_ID := 16;
Alignment_Check_Exception : constant SBI.Interrupt_ID := 17;
Machine_Check_Exception : constant SBI.Interrupt_ID := 18;
SIMD_Floating_Point_Exception : constant SBI.Interrupt_ID := 19;
Virtualization_Exception : constant SBI.Interrupt_ID := 20;
Control_Protection_Exception : constant SBI.Interrupt_ID := 21;
------------------
-- Helper Types --
------------------
-- The Bytable types allow the individual bytes of an unsigned types to be
-- easily accessed.
type Bytable_View is (Full, Bytes);
type Unsigned_16_Bytable (View : Bytable_View := Full) is record
case View is
when Full =>
Value : Interfaces.Unsigned_16;
when Bytes =>
Low : Interfaces.Unsigned_8;
High : Interfaces.Unsigned_8;
end case;
end record with Unchecked_Union, Size => 16;
for Unsigned_16_Bytable use record
Value at 0 range 0 .. 15;
Low at 0 range 0 .. 7;
High at 0 range 8 .. 15;
end record;
end System.BB.CPU_Specific;
|
src/Parsers/XML/project_processor-parsers-xml_parsers-basic_parsers.adb | fintatarta/eugen | 0 | 724 | with XML_Utilities;
package body Project_Processor.Parsers.XML_Parsers.Basic_Parsers is
---------------
-- Expect_ID --
---------------
function Expect_ID (N : DOM.Core.Node;
Name : String := "label")
return EU_Projects.Dotted_Identifier
is
use XML_Utilities;
S : constant String := Expect_Attribute (N, Name);
begin
if not EU_Projects.Is_Valid_ID (S) then
raise Parsing_Error;
end if;
return EU_Projects.To_ID (S);
end Expect_ID;
-------------------
-- Expect_Number --
-------------------
function Expect_Number (N : DOM.Core.Node;
Name : String)
return Natural
is
use XML_Utilities;
S : constant String := Expect_Attribute (N, Name);
begin
return Natural'Value (S);
end Expect_Number;
-----------------
-- Expect_Time --
-----------------
function Expect_Time (N : DOM.Core.Node;
Name : String)
return Symbolic_Instant
is
use XML_Utilities;
begin
return Parse (Expect_Attribute (N, Name));
end Expect_Time;
---------------------
-- Expect_Duration --
---------------------
function Expect_Duration (N : DOM.Core.Node;
Name : String)
return Symbolic_Duration
is
use XML_Utilities;
begin
return Parse (Expect_Attribute (N, Name));
end Expect_Duration;
--------------------------
-- Get_End_And_Duration --
--------------------------
procedure Get_End_And_Duration
(N : DOM.Core.Node;
Start_Time : in Symbolic_Instant;
End_Time : out Symbolic_Instant;
Duration : out Symbolic_Duration)
is
use XML_Utilities;
End_Given : constant Boolean := Has_Attribute (N, "end");
Duration_Given : constant Boolean := Has_Attribute (N, "duration");
begin
if End_Given and Duration_Given then
raise Parsing_Error;
elsif (not End_Given) and (not Duration_Given) then
raise Parsing_Error;
elsif End_Given and (not Duration_Given) then
End_Time := Expect_Time (N, "end");
Duration := End_Time - Start_Time;
else
Duration := Expect_Duration (N, "duration");
End_Time := Duration + Start_Time;
end if;
end Get_End_And_Duration;
end Project_Processor.Parsers.XML_Parsers.Basic_Parsers;
|
llvm-gcc-4.2-2.9/gcc/ada/errutil.ads | vidkidz/crossbridge | 1 | 24881 | <filename>llvm-gcc-4.2-2.9/gcc/ada/errutil.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- E R R U T I L --
-- --
-- S p e c --
-- --
-- Copyright (C) 2002-2005, 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, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains routines to output error messages and the
-- corresponding instantiation of Styleg, suitable to instantiate Scng.
-- It is not dependent on the GNAT tree packages (Atree, Sinfo, ...)
-- It uses the same global variables as Errout, located in package
-- Err_Vars. Like Errout, it also uses the common variables and routines
-- in package Erroutc.
-- This package is used by the preprocessor (gprep.adb) and the project
-- manager (prj-err.ads).
with Styleg;
with Types; use Types;
package Errutil is
---------------------------------------------------------
-- Error Message Text and Message Insertion Characters --
---------------------------------------------------------
-- Error message text strings are composed of lower case letters, digits
-- and the special characters space, comma, period, colon and semicolon,
-- apostrophe and parentheses. Special insertion characters can also
-- appear which cause the error message circuit to modify the given
-- string as follows:
-- Ignored insertion characters: the following characters, used as
-- insertion characters by Errout are ignored: '$', '&', and '}'.
-- If present in an error message, they are not output and are not
-- replaced by any text.
-- Insertion character % (Percent: insert name from Names table)
-- The character % is replaced by the text for the name specified by
-- the Name_Id value stored in Error_Msg_Name_1. A blank precedes
-- the name if it is preceded by a non-blank character other than a
-- left parenthesis. The name is enclosed in quotes unless manual
-- quotation mode is set. If the Name_Id is set to No_Name, then
-- no insertion occurs; if the Name_Id is set to Error_Name, then
-- the string <error> is inserted. A second and third % may appear
-- in a single message, similarly replaced by the names which are
-- specified by the Name_Id values stored in Error_Msg_Name_2 and
-- Error_Msg_Name_3. The names are decoded and cased according to
-- the current identifier casing mode.
-- Insertion character { (Left brace: insert literally from names table)
-- The character { is treated similarly to %, except that the
-- name is output literally as stored in the names table without
-- adjusting the casing. This can be used for file names and in
-- other situations where the name string is to be output unchanged.
-- Insertion character * (Asterisk, insert reserved word name)
-- The insertion character * is treated exactly like % except that
-- the resulting name is cased according to the default conventions
-- for reserved words (see package Scans).
-- Insertion character # (Pound: insert line number reference)
-- The character # is replaced by the string indicating the source
-- position stored in Error_Msg_Sloc. There are two cases:
--
-- for locations in current file: at line nnn:ccc
-- for locations in other files: at filename:nnn:ccc
--
-- By convention, the # insertion character is only used at the end
-- of an error message, so the above strings only appear as the last
-- characters of an error message.
-- Insertion character @ (At: insert column number reference)
-- The character @ is replaced by null if the RM_Column_Check mode is
-- off (False). If the switch is on (True), then @ is replaced by the
-- text string " in column nnn" where nnn is the decimal representation
-- of the column number stored in Error_Msg_Col plus one (the plus one
-- is because the number is stored 0-origin and displayed 1-origin).
-- Insertion character ^ (Carret: insert integer value)
-- The character ^ is replaced by the decimal conversion of the Uint
-- value stored in Error_Msg_Uint_1, with a possible leading minus.
-- A second ^ may occur in the message, in which case it is replaced
-- by the decimal conversion of the Uint value in Error_Msg_Uint_2.
-- Insertion character ! (Exclamation: unconditional message)
-- The character ! appearing as the last character of a message makes
-- the message unconditional which means that it is output even if it
-- would normally be suppressed.
-- Insertion character ? (Question: warning message)
-- The character ? appearing anywhere in a message makes the message
-- a warning instead of a normal error message, and the text of the
-- message will be preceded by "Warning:" instead of "Error:" The
-- handling of warnings if further controlled by the Warning_Mode
-- option (-w switch), see package Opt for further details, and
-- also by the current setting from pragma Warnings. This pragma
-- applies only to warnings issued from the semantic phase (not
-- the parser), but currently all relevant warnings are posted
-- by the semantic phase anyway. Messages starting with (style)
-- are also treated as warning messages.
-- Insertion character A-Z (Upper case letter: Ada reserved word)
-- If two or more upper case letters appear in the message, they are
-- taken as an Ada reserved word, and are converted to the default
-- case for reserved words (see Scans package spec). Surrounding
-- quotes are added unless manual quotation mode is currently set.
-- Insertion character ` (Backquote: set manual quotation mode)
-- The backquote character always appears in pairs. Each backquote
-- of the pair is replaced by a double quote character. In addition,
-- Any reserved keywords, or name insertions between these backquotes
-- are not surrounded by the usual automatic double quotes. See the
-- section below on manual quotation mode for further details.
-- Insertion character ' (Quote: literal character)
-- Precedes a character which is placed literally into the message.
-- Used to insert characters into messages that are one of the
-- insertion characters defined here.
-- Insertion character \ (Backslash: continuation message)
-- Indicates that the message is a continuation of a message
-- previously posted. This is used to ensure that such groups
-- of messages are treated as a unit. The \ character must be
-- the first character of the message text.
-----------------------------------------------------
-- Format of Messages and Manual Quotation Control --
-----------------------------------------------------
-- Messages are generally all in lower case, except for inserted names
-- and appear in one of the following two forms:
-- error: text
-- warning: text
-- The prefixes error and warning are supplied automatically (depending
-- on the use of the ? insertion character), and the call to the error
-- message routine supplies the text. The "error: " prefix is omitted
-- in brief error message formats.
-- Reserved keywords in the message are in the default keyword case
-- (determined from the given source program), surrounded by quotation
-- marks. This is achieved by spelling the reserved word in upper case
-- letters, which is recognized as a request for insertion of quotation
-- marks by the error text processor. Thus for example:
-- Error_Msg_AP ("IS expected");
-- would result in the output of one of the following:
-- error: "is" expected
-- error: "IS" expected
-- error: "Is" expected
-- the choice between these being made by looking at the casing convention
-- used for keywords (actually the first compilation unit keyword) in the
-- source file.
-- In the case of names, the default mode for the error text processor
-- is to surround the name by quotation marks automatically. The case
-- used for the identifier names is taken from the source program where
-- possible, and otherwise is the default casing convention taken from
-- the source file usage.
-- In some cases, better control over the placement of quote marks is
-- required. This is achieved using manual quotation mode. In this mode,
-- one or more insertion sequences is surrounded by backquote characters.
-- The backquote characters are output as double quote marks, and normal
-- automatic insertion of quotes is suppressed between the double quotes.
-- For example:
-- Error_Msg_AP ("`END &;` expected");
-- generates a message like
-- error: "end Open_Scope;" expected
-- where the node specifying the name Open_Scope has been stored in
-- Error_Msg_Node_1 prior to the call. The great majority of error
-- messages operates in normal quotation mode.
-- Note: the normal automatic insertion of spaces before insertion
-- sequences (such as those that come from & and %) is suppressed in
-- manual quotation mode, so blanks, if needed as in the above example,
-- must be explicitly present.
------------------------------
-- Error Output Subprograms --
------------------------------
procedure Initialize;
-- Initializes for output of error messages. Must be called for each
-- file before using any of the other routines in the package.
procedure Finalize (Source_Type : String := "project");
-- Finalize processing of error messages for one file and output message
-- indicating the number of detected errors.
-- Source_Type is used in verbose mode to indicate the type of the source
-- being parsed (project file, definition file or input file for the
-- preprocessor).
procedure Error_Msg (Msg : String; Flag_Location : Source_Ptr);
-- Output a message at specified location
procedure Error_Msg_S (Msg : String);
-- Output a message at current scan pointer location
procedure Error_Msg_SC (Msg : String);
-- Output a message at the start of the current token, unless we are at
-- the end of file, in which case we always output the message after the
-- last real token in the file.
procedure Error_Msg_SP (Msg : String);
-- Output a message at the start of the previous token
procedure Set_Ignore_Errors (To : Boolean);
-- Indicate, when To = True, that all reported errors should
-- be ignored. By default reported errors are not ignored.
package Style is new Styleg
(Error_Msg => Error_Msg,
Error_Msg_S => Error_Msg_S,
Error_Msg_SC => Error_Msg_SC,
Error_Msg_SP => Error_Msg_SP);
-- Instantiation of the generic style package, suitable for an
-- instantiation of Scng.
end Errutil;
|
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/grammar/MetricAlertCondition.g4 | jfcoz/azure-cli | 0 | 2841 | <filename>src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/grammar/MetricAlertCondition.g4
/* PARSER RULES */
grammar MetricAlertCondition ;
/* Main Rules */
expression : aggregation (namespace '.')* (QUOTE metric QUOTE WHITESPACE | metric) operator threshold (WHITESPACE dimensions)* NEWLINE* ;
aggregation : WORD WHITESPACE ;
namespace : WORD ;
metric : (WORD | WHITESPACE | '.' | '/' | '_' | '\\' | ':' | '%')+;
operator : OPERATOR WHITESPACE ;
threshold : NUMBER ;
/* Dimensions */
where : WHERE WHITESPACE ;
dimensions : where dimension (dim_separator dimension)* ;
dimension : dim_name dim_operator dim_values ;
dim_separator : (AND | ',') WHITESPACE ;
dim_operator : (INCLUDES | EXCLUDES) WHITESPACE ;
dim_val_separator : (OR | ',') WHITESPACE ;
dim_name : WORD WHITESPACE ;
dim_values : dim_value (dim_val_separator dim_value)* ;
dim_value : (NUMBER | WORD | '-' | '.' | WHITESPACE)+ ;
/* LEXER RULES */
fragment A : ('a'|'A') ;
fragment C : ('c'|'C') ;
fragment D : ('d'|'D') ;
fragment E : ('e'|'E') ;
fragment H : ('h'|'H') ;
fragment I : ('i'|'I') ;
fragment L : ('l'|'L') ;
fragment N : ('n'|'N') ;
fragment O : ('o'|'O') ;
fragment R : ('r'|'R') ;
fragment S : ('s'|'S') ;
fragment U : ('u'|'U') ;
fragment W : ('w'|'W') ;
fragment X : ('x'|'X') ;
fragment DIGIT : [0-9] ;
fragment LOWERCASE : [a-z] ;
fragment UPPERCASE : [A-Z] ;
WHERE : W H E R E ;
AND : A N D ;
INCLUDES : I N C L U D E S ;
EXCLUDES : E X C L U D E S ;
OR : O R ;
OPERATOR : ('<' | '<=' | '=' | '>=' | '>' | '!=') ;
NUMBER : DIGIT+ ([.,] DIGIT+)? ;
QUOTE : ('\'' | '"') ;
WHITESPACE : (' ' | '\t')+ ;
NEWLINE : ('\r'? '\n' | '\r')+ ;
WORD : (LOWERCASE | UPPERCASE | DIGIT | '_')+ ;
|
Cubical/Algebra/CommRing/Instances/Pointwise.agda | thomas-lamiaux/cubical | 0 | 15536 | <reponame>thomas-lamiaux/cubical
{-# OPTIONS --safe #-}
module Cubical.Algebra.CommRing.Instances.Pointwise where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Algebra.CommRing.Base
private
variable
ℓ : Level
pointwiseRing : (X : Type ℓ) (R : CommRing ℓ) → CommRing ℓ
pointwiseRing X R = (X → fst R) , str
where
open CommRingStr (snd R)
isSetX→R = isOfHLevelΠ 2 (λ _ → isSetCommRing R)
str : CommRingStr (X → fst R)
CommRingStr.0r str = λ _ → 0r
CommRingStr.1r str = λ _ → 1r
CommRingStr._+_ str = λ f g → (λ x → f x + g x)
CommRingStr._·_ str = λ f g → (λ x → f x · g x)
CommRingStr.- str = λ f → (λ x → - f x)
CommRingStr.isCommRing str =
makeIsCommRing
isSetX→R
(λ f g h i x → +Assoc (f x) (g x) (h x) i)
(λ f i x → +IdR (f x) i)
(λ f i x → +InvR (f x) i)
(λ f g i x → +Comm (f x) (g x) i)
(λ f g h i x → ·Assoc (f x) (g x) (h x) i)
(λ f i x → ·IdR (f x) i)
(λ f g h i x → ·DistR+ (f x) (g x) (h x) i)
λ f g i x → ·Comm (f x) (g x) i
|
Cubical/HITs/Susp/LoopAdjunction.agda | FernandoLarrain/cubical | 1 | 2771 | <filename>Cubical/HITs/Susp/LoopAdjunction.agda
{- Adjunction between suspension and loop space (<NAME>, Oct. 2021)
Main results:
- Ω∙ : ℕ → Pointed ℓ → Pointed ℓ
- ΣΩAdjunction : ((X , x₀) : Pointed ℓ) (Y : Pointed ℓ') → (∙Susp X →∙ Y) ≃ ((X , x₀) →∙ Ω∙ 1 Y)
-}
{-# OPTIONS --safe #-}
module Cubical.HITs.Susp.LoopAdjunction where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.GroupoidLaws
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Pointed.Base
open import Cubical.Data.Nat.Base
open import Cubical.HITs.Susp.Base
private
variable
ℓ ℓ' : Level
Ω∙ : ℕ → Pointed ℓ → Pointed ℓ
Ω∙ 0 X = X
Ω∙ 1 (X , x) = (x ≡ x) , refl
Ω∙ (suc (suc n)) X = Ω∙ 1 (Ω∙ (suc n) X)
ΣX→∙YEquiv : ((X , x₀) : Pointed ℓ) ((Y , y₀) : Pointed ℓ')
→ (Susp∙ X →∙ (Y , y₀)) ≃ (Σ[ y ∈ Y ] (X → (y₀ ≡ y)))
ΣX→∙YEquiv (X , x₀) (Y , y₀) =
isoToEquiv (iso left→right right→left right→left→right left→right→left)
where
left→right : (Susp∙ X →∙ (Y , y₀)) → Σ[ y ∈ Y ] (X → (y₀ ≡ y))
left→right (f , b) .fst = f south
left→right (f , b) .snd x = sym b ∙ cong f (merid x)
right→left : (Σ[ y ∈ Y ] (X → (y₀ ≡ y))) → (Susp∙ X →∙ (Y , y₀))
right→left (y , g) .fst north = y₀
right→left (y , g) .fst south = y
right→left (y , g) .fst (merid x i) = g x i
right→left (y , g) .snd = refl
right→left→right : (g : Σ[ y ∈ Y ] (X → (y₀ ≡ y))) → left→right (right→left g) ≡ g
right→left→right (y , g) i .fst = y
right→left→right (y , g) i .snd x = lUnit (g x) (~ i)
left→right→left : (f : Susp∙ X →∙ (Y , y₀)) → right→left (left→right f) ≡ f
left→right→left (f , b) i .fst north = b (~ i)
left→right→left (f , b) i .fst south = f south
left→right→left (f , b) i .fst (merid x j) =
hcomp (λ k → λ { (i = i0) → compPath-filler (sym b) (cong f (merid x)) k j
; (i = i1) → f (merid x (j ∧ k))
; (j = i0) → b (~ i)
; (j = i1) → f (merid x k) })
(b (~ (i ∨ j)))
left→right→left (f , b) i .snd j = b (~ i ∨ j)
X→∙ΩYEquiv : ((X , x₀) : Pointed ℓ)((Y , y₀) : Pointed ℓ')
→ ((X , x₀) →∙ Ω∙ 1 (Y , y₀)) ≃ (Σ[ y ∈ Y ] (X → (y₀ ≡ y)))
X→∙ΩYEquiv (X , x₀) (Y , y₀) =
isoToEquiv (iso left→right right→left right→left→right left→right→left)
where
left→right : ((X , x₀) →∙ Ω∙ 1 (Y , y₀)) → Σ[ y ∈ Y ] (X → (y₀ ≡ y))
left→right _ .fst = y₀
left→right (f , b) .snd = f
right→left : (Σ[ y ∈ Y ] (X → (y₀ ≡ y))) → ((X , x₀) →∙ Ω∙ 1 (Y , y₀))
right→left (y , g) .fst x = g x ∙ sym (g x₀)
right→left (y , g) .snd = rCancel (g x₀)
right→left→right : (g : Σ[ y ∈ Y ] (X → (y₀ ≡ y))) → left→right (right→left g) ≡ g
right→left→right (y , g) i .fst = g x₀ i
right→left→right (y , g) i .snd x j =
hcomp (λ k → λ { (i = i0) → compPath-filler (g x) (sym (g x₀)) k j
; (i = i1) → g x j
; (j = i0) → y₀
; (j = i1) → g x₀ (i ∨ ~ k) })
(g x j)
f-filler : ((X , x₀) →∙ Ω∙ 1 (Y , y₀)) → X → (i j k : I) → Y
f-filler (f , b) x i j k =
hfill (λ k' → λ { (i = i0) → compPath-filler (f x) (sym (f x₀)) k' j
; (i = i1) → f x j
; (j = i0) → y₀
; (j = i1) → b i (~ k') })
(inS (f x j)) k
bottom : ((X , x₀) →∙ Ω∙ 1 (Y , y₀)) → (i j k : I) → Y
bottom (f , b) i j k =
hcomp (λ l → λ { (i = i0) → b (~ l) (k ∧ ~ j)
; (i = i1) → b (j ∨ ~ l) k
; (j = i0) → b (~ l) k
; (j = i1) → y₀
; (k = i0) → y₀
; (k = i1) → b (~ l ∨ i) (~ j) })
y₀
left→right→left : (f : (X , x₀) →∙ Ω∙ 1 (Y , y₀)) → right→left (left→right f) ≡ f
left→right→left (f , b) i .fst x j =
f-filler (f , b) x i j i1
left→right→left (f , b) i .snd j k =
hcomp (λ l → λ { (i = i0) → rCancel-filler (f x₀) l j k
; (i = i1) → b j k
; (j = i0) → f-filler (f , b) x₀ i k l
; (j = i1) → y₀
; (k = i0) → y₀
; (k = i1) → b i (~ l ∧ ~ j) })
(bottom (f , b) i j k)
{- The Main Theorem -}
ΣΩAdjunction : ((X , x₀) : Pointed ℓ) (Y : Pointed ℓ') → (Susp∙ X →∙ Y) ≃ ((X , x₀) →∙ Ω∙ 1 Y)
ΣΩAdjunction X Y = compEquiv (ΣX→∙YEquiv X Y) (invEquiv (X→∙ΩYEquiv X Y))
|
source/amf/uml/amf-internals-uml_operation_template_parameters.ads | svn2github/matreshka | 24 | 13681 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, <NAME> <<EMAIL>> --
-- 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 Vadim Godunko, IE 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. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Internals.UML_Elements;
with AMF.UML.Operation_Template_Parameters;
with AMF.UML.Operations;
with AMF.UML.Parameterable_Elements;
with AMF.UML.Template_Signatures;
with AMF.Visitors;
package AMF.Internals.UML_Operation_Template_Parameters is
type UML_Operation_Template_Parameter_Proxy is
limited new AMF.Internals.UML_Elements.UML_Element_Proxy
and AMF.UML.Operation_Template_Parameters.UML_Operation_Template_Parameter with null record;
overriding function Get_Parametered_Element
(Self : not null access constant UML_Operation_Template_Parameter_Proxy)
return AMF.UML.Operations.UML_Operation_Access;
-- Getter of OperationTemplateParameter::parameteredElement.
--
-- The operation for this template parameter.
overriding procedure Set_Parametered_Element
(Self : not null access UML_Operation_Template_Parameter_Proxy;
To : AMF.UML.Operations.UML_Operation_Access);
-- Setter of OperationTemplateParameter::parameteredElement.
--
-- The operation for this template parameter.
overriding function Get_Default
(Self : not null access constant UML_Operation_Template_Parameter_Proxy)
return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
-- Getter of TemplateParameter::default.
--
-- The element that is the default for this formal template parameter.
overriding procedure Set_Default
(Self : not null access UML_Operation_Template_Parameter_Proxy;
To : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
-- Setter of TemplateParameter::default.
--
-- The element that is the default for this formal template parameter.
overriding function Get_Owned_Default
(Self : not null access constant UML_Operation_Template_Parameter_Proxy)
return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
-- Getter of TemplateParameter::ownedDefault.
--
-- The element that is owned by this template parameter for the purpose of
-- providing a default.
overriding procedure Set_Owned_Default
(Self : not null access UML_Operation_Template_Parameter_Proxy;
To : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
-- Setter of TemplateParameter::ownedDefault.
--
-- The element that is owned by this template parameter for the purpose of
-- providing a default.
overriding function Get_Owned_Parametered_Element
(Self : not null access constant UML_Operation_Template_Parameter_Proxy)
return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
-- Getter of TemplateParameter::ownedParameteredElement.
--
-- The element that is owned by this template parameter.
overriding procedure Set_Owned_Parametered_Element
(Self : not null access UML_Operation_Template_Parameter_Proxy;
To : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
-- Setter of TemplateParameter::ownedParameteredElement.
--
-- The element that is owned by this template parameter.
overriding function Get_Parametered_Element
(Self : not null access constant UML_Operation_Template_Parameter_Proxy)
return AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access;
-- Getter of TemplateParameter::parameteredElement.
--
-- The element exposed by this template parameter.
overriding procedure Set_Parametered_Element
(Self : not null access UML_Operation_Template_Parameter_Proxy;
To : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access);
-- Setter of TemplateParameter::parameteredElement.
--
-- The element exposed by this template parameter.
overriding function Get_Signature
(Self : not null access constant UML_Operation_Template_Parameter_Proxy)
return AMF.UML.Template_Signatures.UML_Template_Signature_Access;
-- Getter of TemplateParameter::signature.
--
-- The template signature that owns this template parameter.
overriding procedure Set_Signature
(Self : not null access UML_Operation_Template_Parameter_Proxy;
To : AMF.UML.Template_Signatures.UML_Template_Signature_Access);
-- Setter of TemplateParameter::signature.
--
-- The template signature that owns this template parameter.
overriding procedure Enter_Element
(Self : not null access constant UML_Operation_Template_Parameter_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Leave_Element
(Self : not null access constant UML_Operation_Template_Parameter_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of visitor interface.
overriding procedure Visit_Element
(Self : not null access constant UML_Operation_Template_Parameter_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
-- Dispatch call to corresponding subprogram of iterator interface.
end AMF.Internals.UML_Operation_Template_Parameters;
|
Antlr/NumberRanges.g4 | fossabot/ManagedIrbis | 3 | 7318 | /* Интервалы чисел с префиксами.
*/
grammar NumberRanges;
program: item+ EOF;
item: range | one;
range: start=NUMBER MINUS stop=NUMBER;
one: NUMBER;
NUMBER: [0-9A-Za-zА-Яа-я/:_]+;
MINUS: '-';
DELIMITER: [ \t\r\n,;] -> skip;
|
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_09_tab.asm | jpoikela/z88dk | 640 | 20097 |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC zx_01_output_fzx_tty_z88dk_09_tab
EXTERN l_offset_ix_de, console_01_output_fzx_proc_linefeed
EXTERN console_01_output_fzx_proc_putchar_scroll
zx_01_output_fzx_tty_z88dk_09_tab:
; tab to next multiple of eight column
; should we be printing spaces to the next tab ??
ld a,(ix+36)
or a
jr nz, linefeed
ld a,(ix+35) ; a = x coord
and $c0
add a,$40
jr c, linefeed
ld (ix+35),a ; store new x coord
cp (ix+41)
ret c ; if x < width
ld a,(ix+42)
or a
ret nz
linefeed:
; move to next line
ld hl,30
call l_offset_ix_de
push hl
ex (sp),ix ; ix = struct fzx_state *
call console_01_output_fzx_proc_linefeed
pop ix
ret c ; if scroll unnecessary
jp console_01_output_fzx_proc_putchar_scroll
|
msp430x2/mspgd-uart-peripheral.adb | ekoeppen/MSP430_Generic_Ada_Drivers | 0 | 28894 | with MSP430_SVD.USCI_A0_UART_MODE; use MSP430_SVD.USCI_A0_UART_MODE;
with MSP430_SVD.SPECIAL_FUNCTION; use MSP430_SVD.SPECIAL_FUNCTION;
package body MSPGD.UART.Peripheral is
procedure Init is
Baud_Rate_Div : constant UInt32 := UInt32 (Clock.Frequency) / Speed;
begin
USCI_A0_UART_MODE_Periph.UCA0CTL1.UCSWRST := 1;
case Clock.Source is
when MSPGD.Clock.ACLK => USCI_A0_UART_MODE_Periph.UCA0CTL1.UCSSEL := UCSSEL_1;
when MSPGD.Clock.SMCLK => USCI_A0_UART_MODE_Periph.UCA0CTL1.UCSSEL := UCSSEL_2;
when others => null;
end case;
USCI_A0_UART_MODE_Periph.UCA0BR0 := Byte (Baud_Rate_Div mod 256);
USCI_A0_UART_MODE_Periph.UCA0BR1 := Byte ((Baud_Rate_Div / 256) mod 256);
USCI_A0_UART_MODE_Periph.UCA0MCTL.UCBRF := UCBRF_5;
USCI_A0_UART_MODE_Periph.UCA0CTL1.UCSWRST := 0;
end Init;
procedure Transmit (Data : Byte) is
begin
while SPECIAL_FUNCTION_Periph.IFG2.UCA0TXIFG = 0 loop null; end loop;
USCI_A0_UART_MODE_Periph.UCA0TXBUF := Data;
end Transmit;
function Receive return Byte is
begin
while SPECIAL_FUNCTION_Periph.IFG2.UCA0RXIFG = 0 loop null; end loop;
return USCI_A0_UART_MODE_Periph.UCA0RXBUF;
end Receive;
function Data_Available return Boolean is
begin
return SPECIAL_FUNCTION_Periph.IFG2.UCA0RXIFG = 1;
end Data_Available;
end MSPGD.UART.Peripheral;
|
linux32/lesson21.asm | mashingan/notes-asmtutor | 1 | 92065 | format ELF executable 3
entry start
include 'procs.inc'
segment readable
msg db 'Seconds since 1 January 1970: ', 0h
segment readable executable
start:
mov eax, msg
call sprint
mov eax, 13 ; SYS_TIME (kernel opcode 13)
int 80h
call iprintLF
call quitProgram
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.