hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
9cc7ade1748bfec6a4b505f29cd48f47bafe4e5f
233
asm
Assembly
programs/oeis/010/A010721.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/010/A010721.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/010/A010721.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A010721: Period 2: repeat (5,10). ; 5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10,5,10 gcd $0,2 mov $1,10 div $1,$0
33.285714
166
0.592275
dbfca6a32134d291b828fef65a40107ea04a498a
7,345
asm
Assembly
scripts/MtMoonB2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/MtMoonB2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/MtMoonB2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
MtMoonB2F_Script: call EnableAutoTextBoxDrawing ld hl, MtMoon3TrainerHeaders ld de, MtMoonB2F_ScriptPointers ld a, [wMtMoonB2FCurScript] call ExecuteCurMapScriptInTable ld [wMtMoonB2FCurScript], a CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD ret z ld hl, CoordsData_49d37 call ArePlayerCoordsInArray jr nc, .asm_49d31 ld hl, wd72e set 4, [hl] ret .asm_49d31 ld hl, wd72e res 4, [hl] ret CoordsData_49d37: dbmapcoord 11, 5 dbmapcoord 12, 5 dbmapcoord 13, 5 dbmapcoord 14, 5 dbmapcoord 11, 6 dbmapcoord 12, 6 dbmapcoord 13, 6 dbmapcoord 14, 6 dbmapcoord 11, 7 dbmapcoord 12, 7 dbmapcoord 13, 7 dbmapcoord 14, 7 dbmapcoord 11, 8 dbmapcoord 12, 8 dbmapcoord 13, 8 dbmapcoord 14, 8 db -1 ; end MtMoon3Script_49d58: xor a ld [wJoyIgnore], a ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a ret MtMoonB2F_ScriptPointers: dw MtMoon3Script0 dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle dw MtMoon3Script3 dw MtMoon3Script4 dw MtMoon3Script5 MtMoon3Script0: CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD jp nz, MtMoon3Script_49d91 ld a, [wYCoord] cp 8 jp nz, MtMoon3Script_49d91 ld a, [wXCoord] cp 13 jp nz, MtMoon3Script_49d91 xor a ldh [hJoyHeld], a ld a, $1 ldh [hSpriteIndexOrTextID], a jp DisplayTextID MtMoon3Script_49d91: CheckEitherEventSet EVENT_GOT_DOME_FOSSIL, EVENT_GOT_HELIX_FOSSIL jp z, CheckFightingMapTrainers ret MtMoon3Script3: ld a, [wIsInBattle] cp $ff jp z, MtMoon3Script_49d58 call UpdateSprites call Delay3 SetEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD xor a ld [wJoyIgnore], a ld a, $0 ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a ret MtMoon3Script4: ld a, $1 ldh [hSpriteIndex], a call SetSpriteMovementBytesToFF ld hl, CoordsData_49dea call ArePlayerCoordsInArray jr c, .asm_49dd7 ld hl, CoordsData_49df1 call ArePlayerCoordsInArray jp nc, CheckFightingMapTrainers ld de, MovementData_49df9 jr .asm_49dda .asm_49dd7 ld de, MovementData_49df8 .asm_49dda ld a, $1 ldh [hSpriteIndex], a call MoveSprite ld a, $5 ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a ret CoordsData_49dea: dbmapcoord 12, 7 dbmapcoord 11, 6 dbmapcoord 12, 5 db -1 ; end CoordsData_49df1: dbmapcoord 13, 7 dbmapcoord 14, 6 dbmapcoord 14, 5 db -1 ; end MovementData_49df8: db NPC_MOVEMENT_RIGHT MovementData_49df9: db NPC_MOVEMENT_UP db -1 ; end MtMoon3Script5: ld a, [wd730] bit 0, a ret nz ld a, $f0 ld [wJoyIgnore], a ld a, $1 ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld a, $a ldh [hSpriteIndexOrTextID], a call DisplayTextID CheckEvent EVENT_GOT_DOME_FOSSIL jr z, .asm_49e1d ld a, HS_MT_MOON_B2F_FOSSIL_2 jr .asm_49e1f .asm_49e1d ld a, HS_MT_MOON_B2F_FOSSIL_1 .asm_49e1f ld [wMissableObjectIndex], a predef HideObject xor a ld [wJoyIgnore], a ld a, $0 ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a ret MtMoonB2F_TextPointers: dw MtMoon3Text1 dw MtMoon3Text2 dw MtMoon3Text3 dw MtMoon3Text4 dw MtMoon3Text5 dw MtMoon3Text6 dw MtMoon3Text7 dw PickUpItemText dw PickUpItemText dw MtMoon3Text_49f99 MtMoon3TrainerHeaders: def_trainers 2 MtMoon3TrainerHeader0: trainer EVENT_BEAT_MT_MOON_3_TRAINER_0, 4, MtMoon3BattleText2, MtMoon3EndBattleText2, MtMoon3AfterBattleText2 MtMoon3TrainerHeader1: trainer EVENT_BEAT_MT_MOON_3_TRAINER_1, 4, MtMoon3BattleText3, MtMoon3EndBattleText3, MtMoon3AfterBattleText3 MtMoon3TrainerHeader2: trainer EVENT_BEAT_MT_MOON_3_TRAINER_2, 4, MtMoon3BattleText4, MtMoon3EndBattleText4, MtMoon3AfterBattleText4 MtMoon3TrainerHeader3: trainer EVENT_BEAT_MT_MOON_3_TRAINER_3, 4, MtMoon3BattleText5, MtMoon3EndBattleText5, MtMoon3AfterBattleText5 db -1 ; end MtMoon3Text1: text_asm CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD jr z, .asm_49e8d ; CheckEitherEventSetReuseA EVENT_GOT_DOME_FOSSIL, EVENT_GOT_HELIX_FOSSIL and (1 << (EVENT_GOT_DOME_FOSSIL % 8)) | (1 << (EVENT_GOT_HELIX_FOSSIL % 8)) jr nz, .asm_49eb8 ld hl, MtMoon3Text_49f8f call PrintText jr .asm_49ebe .asm_49e8d ld hl, MtMoon3Text_49f85 call PrintText ld hl, wd72d set 6, [hl] set 7, [hl] ld hl, MtMoon3Text_49f8a ld de, MtMoon3Text_49f8a call SaveEndBattleTextPointers ldh a, [hSpriteIndex] ld [wSpriteIndex], a call EngageMapTrainer call InitBattleEnemyParameters ld a, $3 ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a jr .asm_49ebe .asm_49eb8 ld hl, MtMoon3Text_49f94 call PrintText .asm_49ebe jp TextScriptEnd MtMoon3Text2: text_asm ld hl, MtMoon3TrainerHeader0 call TalkToTrainer jp TextScriptEnd MtMoon3Text3: text_asm ld hl, MtMoon3TrainerHeader1 call TalkToTrainer jp TextScriptEnd MtMoon3Text4: text_asm ld hl, MtMoon3TrainerHeader2 call TalkToTrainer jp TextScriptEnd MtMoon3Text5: text_asm ld hl, MtMoon3TrainerHeader3 call TalkToTrainer jp TextScriptEnd MtMoon3Text6: text_asm ld a, $1 ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld hl, MtMoon3Text_49f24 call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a jr nz, .asm_49f21 lb bc, DOME_FOSSIL, 1 call GiveItem jp nc, MtMoon3Script_49f76 call MtMoon3Script_49f69 ld a, HS_MT_MOON_B2F_FOSSIL_1 ld [wMissableObjectIndex], a predef HideObject SetEvent EVENT_GOT_DOME_FOSSIL ld a, $4 ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a .asm_49f21 jp TextScriptEnd MtMoon3Text_49f24: text_far _MtMoon3Text_49f24 text_end MtMoon3Text7: text_asm ld a, $1 ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld hl, MtMoon3Text_49f64 call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a jr nz, .asm_49f61 lb bc, HELIX_FOSSIL, 1 call GiveItem jp nc, MtMoon3Script_49f76 call MtMoon3Script_49f69 ld a, HS_MT_MOON_B2F_FOSSIL_2 ld [wMissableObjectIndex], a predef HideObject SetEvent EVENT_GOT_HELIX_FOSSIL ld a, $4 ld [wMtMoonB2FCurScript], a ld [wCurMapScript], a .asm_49f61 jp TextScriptEnd MtMoon3Text_49f64: text_far _MtMoon3Text_49f64 text_end MtMoon3Script_49f69: ld hl, MtMoon3Text_49f6f jp PrintText MtMoon3Text_49f6f: text_far _MtMoon3Text_49f6f sound_get_key_item text_waitbutton text_end MtMoon3Script_49f76: ld hl, MtMoon3Text_49f7f call PrintText jp TextScriptEnd MtMoon3Text_49f7f: text_far _MtMoon3Text_49f7f text_waitbutton text_end MtMoon3Text_49f85: text_far _MtMoon3Text_49f85 text_end MtMoon3Text_49f8a: text_far _MtMoon3Text_49f8a text_end MtMoon3Text_49f8f: text_far _MtMoon3Text_49f8f text_end MtMoon3Text_49f94: text_far _MtMoon3Text_49f94 text_end MtMoon3Text_49f99: text_far _MtMoon3Text_49f99 sound_get_key_item text_end MtMoon3BattleText2: text_far _MtMoon3BattleText2 text_end MtMoon3EndBattleText2: text_far _MtMoon3EndBattleText2 text_end MtMoon3AfterBattleText2: text_far _MtMoon3AfterBattleText2 text_end MtMoon3BattleText3: text_far _MtMoon3BattleText3 text_end MtMoon3EndBattleText3: text_far _MtMoon3EndBattleText3 text_end MtMoon3AfterBattleText3: text_far _MtMoon3AfterBattleText3 text_end MtMoon3BattleText4: text_far _MtMoon3BattleText4 text_end MtMoon3EndBattleText4: text_far _MtMoon3EndBattleText4 text_end MtMoon3AfterBattleText4: text_far _MtMoon3AfterBattleText4 text_end MtMoon3BattleText5: text_far _MtMoon3BattleText5 text_end MtMoon3EndBattleText5: text_far _MtMoon3EndBattleText5 text_end MtMoon3AfterBattleText5: text_far _MtMoon3AfterBattleText5 text_end
19.227749
110
0.805582
9f0d7536e4f22bc400a5aafe0c1646bf73f5abd4
453
asm
Assembly
programs/oeis/065/A065168.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/065/A065168.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/065/A065168.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A065168: Permutation t->t-1 of Z, folded to N. ; 3,1,5,2,7,4,9,6,11,8,13,10,15,12,17,14,19,16,21,18,23,20,25,22,27,24,29,26,31,28,33,30,35,32,37,34,39,36,41,38,43,40,45,42,47,44,49,46,51,48,53,50,55,52,57,54,59,56,61,58,63,60,65,62,67,64,69,66,71,68,73,70 add $0,12 mov $2,-1 pow $2,$0 sub $2,6 mov $3,-3 lpb $0,1 div $3,2 div $0,$3 add $0,1 mul $0,2 mov $3,$0 trn $0,1 mov $1,2 mul $2,4 add $1,$2 trn $1,$3 lpe div $1,2 add $1,1
19.695652
208
0.578366
7291b49a267d7e626fde69b5705dc4667c12e145
387
asm
Assembly
oeis/344/A344622.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/344/A344622.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/344/A344622.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A344622: a(n) = n*(n+1)/2 - sigma(n) + d(n). ; 1,2,4,6,11,13,22,25,35,41,56,56,79,85,100,110,137,138,172,174,203,221,254,248,297,313,342,356,407,401,466,471,517,545,586,584,667,685,728,738,821,815,904,912,963,1013,1082,1062,1171,1188,1258,1286,1379,1373,1472,1484 add $0,1 mov $2,$0 mov $4,1 lpb $0 mov $3,$2 dif $3,$0 sub $0,1 add $1,$4 cmp $3,$2 add $4,$3 lpe mov $0,$1
24.1875
218
0.617571
c64380bb3de8dd81e4e779bef939e815132abf20
588
asm
Assembly
programs/oeis/084/A084215.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/084/A084215.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/084/A084215.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A084215: Expansion of g.f.: (1+x^2)/(1-2*x). ; 1,2,5,10,20,40,80,160,320,640,1280,2560,5120,10240,20480,40960,81920,163840,327680,655360,1310720,2621440,5242880,10485760,20971520,41943040,83886080,167772160,335544320,671088640,1342177280,2684354560,5368709120,10737418240,21474836480,42949672960,85899345920,171798691840,343597383680,687194767360,1374389534720,2748779069440,5497558138880,10995116277760,21990232555520,43980465111040,87960930222080,175921860444160,351843720888320,703687441776640,1407374883553280,2814749767106560,5629499534213120 mov $1,2 pow $1,$0 mul $1,5 div $1,4
73.5
502
0.840136
b6421a929557466f7ab3dc36a1aa96aab32c43d0
600
asm
Assembly
oeis/014/A014905.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/014/A014905.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/014/A014905.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A014905: a(1)=1, a(n) = 21*a(n-1) + n. ; 1,23,486,10210,214415,4502721,94557148,1985700116,41699702445,875693751355,18389568778466,386180944347798,8109799831303771,170305796457379205,3576421725604963320,75104856237704229736,1577201980991788824473,33121241600827565313951,695546073617378871592990,14606467545964956303452810,306735818465264082372509031,6441452187770545729822689673,135270495943181460326276483156,2840680414806810666851806146300,59654288710943024003887929072325,1252740062929803504081646510518851 add $0,1 lpb $0 sub $0,1 add $2,1 mul $2,21 add $1,$2 lpe div $1,21 mov $0,$1
46.153846
471
0.843333
9454d999a6f5d1b7bc657e1fc369ee081a98300e
16,178
asm
Assembly
base/ntsetup/opktools/oformat/forproc.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/ntsetup/opktools/oformat/forproc.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/ntsetup/opktools/oformat/forproc.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; SCCSID = @(#)forproc.asm 1.2 85/07/25 .xlist .xcref BREAK MACRO subtitle SUBTTL subtitle PAGE ENDM include bpb.inc INCLUDE FORCHNG.INC INCLUDE SYSCALL.INC INCLUDE FOREQU.INC INCLUDE FORMACRO.INC INCLUDE FORSWTCH.INC INCLUDE IOCTL.INC .cref .list data segment public para 'DATA' data ends code segment public para 'CODE' assume cs:code,ds:data PUBLIC FormatAnother?,Yes?,REPORT,USER_STRING public fdsksiz,fdsksizM100s,badsiz,badsizM100s public syssiz,datasiz,datasizM100s,biosiz public AllocSize,AllocNum,MegSizes public Get_Free_Space extrn std_printf:near,crlf:near,PrintString:near extrn Multiply_32_Bits:near extrn AddToSystemSize:near ;No more SAFE module ; EXTRN UpdateSystemSize:NEAR data segment public para 'DATA' extrn driveLetter:byte extrn msgInsertDisk:byte extrn msgFormatAnother?:byte extrn msgQuickFormatAnother?:byte extrn msgTotalDiskSpace:byte extrn msgTotalDiskSpaceMeg:byte extrn msgSystemSpace:byte extrn msgBadSpace:byte extrn msgBadSpaceMeg:byte extrn msgDataSpace:byte extrn msgDataSpaceMeg:byte extrn Read_Write_Relative:byte extrn msgAllocSize:byte extrn MsgAllocNum:Byte extrn deviceParameters:byte EXTRN fBig32Fat:BYTE extrn bios:byte extrn dos:byte extrn command:byte IFDEF DBLSPACE_HOOKS extrn DblSpaceBin:byte ENDIF extrn Serial_Num_Low:Word extrn Serial_Num_High:Word extrn msgSerialNumber:Byte extrn SwitchMap:Word extrn SwitchCopy:Word extrn inbuff:byte MegSizes db 0 fdsksiz dd 0 fdsksizM100s dw 0 syssiz dd 0 biosiz dd 0 badsiz dd 0 badsizM100s dw 0 datasiz dd 0 datasizM100s dw 0 AllocSize dd 0 AllocNum dd 0 dw offset driveLetter ExtFreePacket ExtGetDskFreSpcStruc <> data ends ;*************************************************************************** ; Wait for key. If yes return carry clear, else no. Insures ; explicit Y or N answer. ;*************************************************************************** FormatAnother? proc near test SwitchCopy,SWITCH_Q ;use different message with /Q jz @F Message msgQuickFormatAnother? jmp SHORT CheckResponse @@: Message msgFormatAnother? CheckResponse: CALL Yes? pushf ; save result call CrLf ; send a new line popf ; retrieve the result jnc WAIT20 jz Wait20 JMP SHORT FormatAnother? WAIT20: RET FormatAnother? endp ;*************************************************************************** ;Routine name:Yes? ;*************************************************************************** ; ;Description: Validate that input is valid Y/N for the country dependent info ; Wait for key. If YES return carry clear,else carry set. ; If carry is set, Z is set if explicit NO, else key was not Yes or No. ; ;Called Procedures: Message (macro) ; User_String ; ;Change History: Created 4/32/87 MT ; ;Input: None ; ;Output: CY = 0 Yes is entered ; CY = 1, Z = No ; CY = 1, NZ = other ; ;Psuedocode ;---------- ; ; Get input (CALL USER STRING) ; IF got character ; Check for country dependent Y/N (INT 21h, AX=6523h Get Ext Country) ; IF Yes ; clc ; ELSE (No) ; IF No ; stc ; Set Zero flag ; ELSE (Other) ; stc ; Set NZ ; ENDIF ; ENDIF ; ELSE (nothing entered) ; stc ; Set NZ flag ; ENDIF ; ret ;*************************************************************************** Procedure YES? call User_String ;Get character jz $$IF1 ;Got one if returned NZ mov AL,23h ;See if it is Y/N mov dl,[InBuff+2] ;Get character DOS_Call GetExtCntry ;Get country info call cmp AX,Found_Yes ;Which one? jne $$IF2 ;Got a Yes clc ;Clear CY for return jmp SHORT $$EN2 ;Not a Yes $$IF2: cmp AX,Found_No ;Is it No? jne $$IF4 ;Yep stc ;Set CY for return jmp SHORT $$EN4 ;Something else we don't want $$IF4: xor AL,AL ;Set NZ flag for ret cmp AL,1 ; " " " " stc ;And CY flag for good measure $$EN4: $$EN2: jmp SHORT $$EN1 ;No char found at all $$IF1: xor AL,AL ;Set NZ flag for ret cmp AL,1 stc ;And CY flag for good measure $$EN1: ret Yes? endp ;*************************************************************************** ; Get a string from user. Z is set if user typed no chars (imm CR) ; We need to flush a second time to get rid of incoming Kanji characters also. ;*************************************************************************** Procedure USER_STRING mov AX,(STD_CON_INPUT_FLUSH SHL 8) + 0 ; Clean out input int 21h mov DX,OFFSET InBuff mov AH,STD_CON_STRING_INPUT int 21h mov AX,(STD_CON_INPUT_FLUSH SHL 8) + 0 ; Clean out input int 21h cmp byte ptr [InBuff+1],0 ret USER_STRING endp ;********************************************* ; Make a status report including the following information: ; Total disk capacity ; Total system area used ; Total bad space allocated ; Total data space available ; Number of allocation units ; Size of allocation units Procedure Report call crlf call Calc_System_Space ;calc system space call Calc_Total_Addressible_Space ;calc total space cmp MegSizes,0 jne IsHuge3 jmp NotHuge3 IsHuge3: Message msgTotalDiskSpaceMeg ;call std_printf cmp word ptr SysSiz,0 jnz SHOWSYSh cmp word ptr SysSiz+2,0 jz CHKBADh ShowSysh: Message msgSystemSpace ;CALL std_printf ;Report space used by system ChkBadh: cmp word ptr BadSiz,0 jnz ShowBadh cmp word ptr BadSiz+2,0 jnz ShowBadh cmp BadSizM100s,0 jz ShowDatah ShowBadh: Message msgBadSpaceMeg ;call std_printf ShowDatah: .386 mov eax,SysSiz xor edx,edx mov ebx,1024*1024 div ebx ;EAX is MEG, EDX remainder ;; push eax db 066h,050h ;; mov eax,edx xor edx,edx mov ebx,(1024 * 1024) / 100 div ebx shr ebx,1 cmp edx,ebx jb short NoRnd3 inc eax NoRnd3: ;; pop ecx db 066h,059h ;; movzx ebx,BadSizM100s add eax,ebx add ecx,BadSiz ;ECX.EAX is bad+sys size in MEG mov ebx,Fdsksiz movzx edx,FdsksizM100s ChkBorrow: cmp edx,eax jae short NoSubAdj dec ebx add edx,100 jmp short ChkBorrow NoSubAdj: sub edx,eax mov eax,edx sub ebx,ecx mov datasiz,ebx .8086 mov datasizM100s,AX Message msgDataSpaceMeg ;call std_printf jmp short Huge3 NotHuge3: Message msgTotalDiskSpace ;call std_printf cmp word ptr SysSiz,0 jnz SHOWSYS cmp word ptr SysSiz+2,0 jz CHKBAD ShowSys: Message msgSystemSpace ;CALL std_printf ;Report space used by system ChkBad: cmp word ptr BadSiz,0 jnz ShowBad cmp word ptr BadSiz+2,0 jz ShowData ShowBad: Message msgBadSpace ;call std_printf ShowData: mov CX,word ptr Fdsksiz mov BX,word ptr Fdsksiz+2 sub CX,word ptr BadSiz sbb BX,word ptr BadSiz+2 sub CX,word ptr SysSiz sbb BX,word ptr SysSiz+2 mov word ptr datasiz,CX mov word ptr datasiz+2,BX Message msgDataSpace ;call std_printf Huge3: call crlf mov AX,deviceParameters.DP_BPB.oldBPB.BPB_BytesPerSector ; mov CL,deviceParameters.DP_BPB.oldBPB.BPB_SectorsPerCluster ; .errnz EDP_BPB NE DP_BPB xor CH,CH mul CX ;Get bytes per alloc mov word ptr AllocSize,AX ;Save allocation size mov word ptr AllocSize+2,DX ; for message Message msgAllocSize ;Print size of cluster call Get_Free_Space ;get disk space .386 mov AllocNum,EBX ;Put result in msg .8086 Message msgAllocNum ; = cluster/disk call crlf test switchmap, SWITCH_8 ;If 8 tracks, don't display jnz NoSerialNumber ;serial number Message msgSerialNumber ;Spit out serial number call crlf NoSerialNumber: ret Report endp ;*************************************************************************** ;Routine name: Read_Disk ;*************************************************************************** ; ;description: Read in data using Generic IOCtl ; ;Called Procedures: None ; ; ;Change History: Created 5/13/87 MT ; ;Input: AL = Drive number (0=A) ; DS:BX = Transfer address ; CX = Number of sectors ; Read_Write_Relative.Start_Sector_High = Logical start sector high ; DX = logical start sector number low ; ;Output: CY if error ; AH = INT 25h error code ; ;Psuedocode ;---------- ; Save registers ; Setup structure for function call ; Read the disk (AX=440Dh, CL = 6Fh) ; Restore registers ; ret ;*************************************************************************** Procedure Read_Disk push BX ;Save registers push CX push DX push SI push DI push BP push ES push DS mov SI,data mov ES,SI assume ES:data,DS:nothing ;Get transfer buffer add mov ES:Read_Write_Relative.Buffer_Offset,BX mov BX,DS mov ES:Read_Write_Relative.Buffer_Segment,BX ;Get segment mov BX,data ;Point DS at parameter list mov DS,BX assume DS:data,ES:data mov Read_Write_Relative.Number_Sectors,CX ;Number of sec to read mov Read_Write_Relative.Start_Sector_Low,DX ;Start sector mov BX,offset Read_Write_Relative mov CX,0ffffh ;Read relative sector mov dl,al ;Drive # to DL inc dl ;1 based mov ax,(Get_Set_DriveInfo SHL 8) OR Ext_ABSDiskReadWrite mov si,0 ;READ int 21h ;Do the read pop DS pop ES pop BP pop DI pop SI pop DX ;Restore registers pop CX pop BX ret Read_Disk endp ;*************************************************************************** ;Routine name: Write_Disk ;*************************************************************************** ; ;description: Write Data using Generic IOCtl ; ;Called Procedures: None ; ; ;Change History: Created 5/13/87 MT ; ;Input: AL = Drive number (0=A) ; DS:BX = Transfer address ; CX = Number of sectors ; Read_Write_Relative.Start_Sector_High = Logical start sector high ; DX = logical start sector number low ; ;Output: CY if error ; AH = INT 26h error code ; ;Psuedocode ;---------- ; Save registers ; Setup structure for function call ; Write to disk (AX=440Dh, CL = 4Fh) ; Restore registers ; ret ;*************************************************************************** Procedure Write_Disk push BX ;Save registers push CX push DX push SI push DI push BP push ES push DS mov SI,data mov ES,SI assume ES:data, DS:nothing ;Get transfer buffer add mov ES:Read_Write_Relative.Buffer_Offset,BX mov BX,DS mov ES:Read_Write_Relative.Buffer_Segment,BX ;Get segment mov BX,data ;Point DS at parameter list mov DS,BX assume DS:data, ES:data mov Read_Write_Relative.Number_Sectors,CX ;Number of sec to write mov Read_Write_Relative.Start_Sector_Low,DX ;Start sector mov BX,offset Read_Write_Relative mov CX,0ffffh ;Write relative sector mov dl,al ;Drive # to DL inc dl ;1 based mov ax,(Get_Set_DriveInfo SHL 8) OR Ext_ABSDiskReadWrite mov si,1 ;WRITE int 21h ;Do the write pop DS pop ES pop BP pop DI pop SI pop DX ;Restore registers pop CX pop BX ret Write_Disk endp ;========================================================================= ; Calc_Total_Addressible_Space : Calculate the total space that is ; addressible on the the disk by DOS. ; ; Inputs : none ; ; Outputs : Fdsksiz - Size in bytes of the disk ;========================================================================= Procedure Calc_Total_Addressible_Space push AX ;save affected regs push DX push BX call Get_Free_Space ;get free disk space .386 ;; Manual assemble to prevent compile warning ;; push EBX ;save avail. cluster ;; push EDX ;save total. cluster db 066h,053h db 066h,052h ;; movzx ecx,DeviceParameters.DP_BPB.oldBPB.BPB_SectorsPerCluster movzx eax,DeviceParameters.DP_BPB.oldBPB.BPB_BytesPerSector .errnz EDP_BPB NE DP_BPB mul ecx mov ecx,eax ;ECX = bytes/clus ;; Manual assemble to prevent compile warning ;; pop eax ;Recover Total Clus ;; push eax db 066h,058h db 066h,050h ;; mul ecx ;EDX:EAX = Total Bytes mov FdskSiz,eax or edx,edx ;Disk >= 4Gig? jz short NotHuge1 ;No mov MegSizes,1 mov ebx,1024*1024 div ebx ; EAX is MEG, EDX remainder mov FdskSiz,EAX mov eax,edx xor edx,edx mov ebx,(1024 * 1024) / 100 div ebx shr ebx,1 cmp edx,ebx jb short NoRnd1 inc eax NoRnd1: mov fdsksizM100s,ax cmp eax,100 jb short NotHuge1 inc FdskSiz mov fdsksizM100s,0 NotHuge1: ;; Manual assemble to prevent compile warning ;; pop EDX ;get total clusters ;; pop EBX ;get avail clusters db 066h,05Ah db 066h,05Bh ;; mov EAX,EDX ;get total clusters sub EAX,EBX ;get bad+sys clusters test fBig32FAT,0ffh jz short NotFAT32 dec eax ;FAT32 volumes have one ; cluster allocated to the ; root dir NotFAT32: mul ecx ;EDX:EAX bad+sys bytes sub EAX,SysSiz ;Remove sys bytes sbb EDX,0 mov ecx,edx or ecx,eax ;ECX != 0 if any bad clusters mov badsiz,EAX cmp MegSizes,0 ;Disk >= 4Gig? je short NotHuge2 ;No mov ebx,1024*1024 div ebx ;EAX is MEG, EDX remainder mov badsiz,EAX mov eax,edx xor edx,edx mov ebx,(1024 * 1024) / 100 div ebx shr ebx,1 cmp edx,ebx jb short NoRnd2 inc eax NoRnd2: mov badsizM100s,ax cmp eax,100 jb short ChkZr inc badsiz mov badsizM100s,0 ChkZr: cmp badsiz,0 jnz short NotHuge2 cmp badsizM100s,0 jnz short NotHuge2 or ecx,ecx ;Were there any bad clusters? jz short NotHuge2 ;No ; ; There WERE bad clusters, but there were less than .01 MEG worth of them. ; Need to cheat so that the displayed count is != 0 ; inc badsizM100s NotHuge2: .8086 pop BX pop DX ;restore regs pop AX ret Calc_Total_Addressible_Space endp ;========================================================================= ; Get_Free_Space : Get the free space on the disk. ; ; Inputs : none ; ; Outputs : EBX - Available space in clusters ; EDX - Total space in clusters ;========================================================================= Procedure Get_Free_Space .386 push di xor ebx,ebx mov ax,(Get_Set_DriveInfo SHL 8) OR Get_ExtFreeSpace mov cx,SIZE ExtGetDskFreSpcStruc push ds pop es mov di,offset ExtFreePacket mov DX,offset DriveLetter int 21h mov edx,ebx jc short IsDone mov ebx,[di.ExtFree_AvailableClusters] mov edx,[di.ExtFree_TotalClusters] .8086 IsDone: pop di ret Get_Free_Space endp ;========================================================================= ; Calc_System_Space : This routine calculates the space occupied by ; the system on the disk. ; ; Inputs : BIOS.FileSizeInBytes ; Command.FileSizeInBytes ; ; Outputs : SysSiz - Size of the system ;========================================================================= Procedure Calc_System_Space push AX ;save regs push DX mov word ptr SysSiz+0,00h ;clear variable mov word ptr SysSiz+2,00h mov AX,word ptr [Dos.FileSizeInBytes+0] ;get dos size mov DX,word ptr [Dos.FileSizeInBytes+2] call AddToSystemSize ;add in values mov AX,word ptr [Bios.FileSizeInBytes+0] ;get bios size mov DX,word ptr [Bios.FileSizeInBytes+2] call AddToSystemSize ;add in values mov AX,word ptr [Command.FileSizeInBytes+0] ;get command size mov DX,word ptr [Command.FileSizeInBytes+2] call AddToSystemSize ;add in values IFDEF DBLSPACE_HOOKS mov ax, word ptr [DblSpaceBin.FileSizeInBytes] ;get dblspace mov dx, word ptr [DblSpaceBin.FileSizeInBytes+2] ; size--may be call AddToSystemSize ; zero ENDIF pop DX ;restore regs pop AX ret Calc_System_Space endp code ends end
22.915014
80
0.618371
a258bb5d30f3342820f013981883c39ca87b8f61
441
asm
Assembly
programs/oeis/118/A118831.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/118/A118831.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/118/A118831.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A118831: Numerators of the convergents of the 2-adic continued fraction of zero given by A118830. ; -1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0,-1,1,1,0,1,-1,-1,0 lpb $0 mul $0,3 mod $0,8 lpe bin $0,2 sub $0,1 lpb $0 mod $0,4 lpe mov $1,$0
31.5
256
0.52381
3ba8583781254d677c84482f495d9866343c1674
48
asm
Assembly
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuxx=pwuc2_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuxx=pwuc2_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuxx=pwuc2_derefidx_vbuyy.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {c2},y sta {c1},x lda {c2}+1,y sta {c1}+1,x
9.6
12
0.541667
8a67a544aa230413f1d98cadd8bae0e4b2c70cda
2,000
asm
Assembly
src/BareMetal-Demo/src/libBareMetal.asm
Bitate/bare-metal-os
255386c9de78b92f27260b82094371225000f3d2
[ "MIT" ]
null
null
null
src/BareMetal-Demo/src/libBareMetal.asm
Bitate/bare-metal-os
255386c9de78b92f27260b82094371225000f3d2
[ "MIT" ]
null
null
null
src/BareMetal-Demo/src/libBareMetal.asm
Bitate/bare-metal-os
255386c9de78b92f27260b82094371225000f3d2
[ "MIT" ]
null
null
null
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT ; ; Version 1.0 ; ============================================================================= b_input equ 0x0000000000100010 ; Scans keyboard for input. OUT: AL = 0 if no key pressed, otherwise ASCII code b_output equ 0x0000000000100018 ; Displays a number of characters. IN: RSI = message location, RCX = number of characters b_ethernet_tx equ 0x0000000000100020 ; Transmit a packet via Ethernet. IN: RSI = Memory location where data is stored, RDI = Pointer to 48 bit destination address, BX = Type of packet (If set to 0 then the EtherType will be set to the length of data), CX = Length of data b_ethernet_rx equ 0x0000000000100028 ; Polls the Ethernet card for received data. IN: RDI = Memory location where packet will be stored. OUT: RCX = Length of packet b_disk_read equ 0x0000000000100030 ; Read from the disk. b_disk_write equ 0x0000000000100038 ; Write to the disk. b_config equ 0x0000000000100040 ; View/modify configuration. IN: RCX = Function, RAX = Variable 1, RDX = Variable 2. OUT: RAX = Result b_system equ 0x0000000000100048 ; Call a system function. IN: RCX = Function, RAX = Variable 1, RDX = Variable 2. Out: RAX = Result 1, RDX = Result 2 ; Index for b_config calls timecounter equ 0 smp_get_id equ 1 networkcallback_get equ 3 networkcallback_set equ 4 clockcallback_get equ 5 clockcallback_set equ 6 mac equ 30 pci_read equ 0x40 pci_write equ 0x41 stdout_set equ 0x42 stdout_get equ 0x43 drive_id equ 0x50 ; Index for b_system calls smp_lock equ 2 smp_unlock equ 3 debug_dump_mem equ 4 debug_dump_rax equ 5 get_argc equ 6 get_argv equ 7 delay equ 6 ethernet_status equ 7 mem_get_free equ 8 smp_numcores equ 9 smp_set equ 10 reset equ 256 ; ============================================================================= ; EOF
38.461538
272
0.6745
c872a99bfbae4e5addb1e9d5f73696e62b85a094
609
asm
Assembly
oeis/180/A180200.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/180/A180200.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/180/A180200.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A180200: a(0)=0, a(1)=1; for n > 1, a(n) = 2*m + 1 - (n mod 2 + m mod 2) mod 2, where m = a(floor(n/2)). ; Submitted by Jamie Morken(s4) ; 0,1,2,3,5,4,6,7,10,11,9,8,13,12,14,15,21,20,22,23,18,19,17,16,26,27,25,24,29,28,30,31,42,43,41,40,45,44,46,47,37,36,38,39,34,35,33,32,53,52,54,55,50,51,49,48,58,59,57,56,61,60,62,63,85,84,86,87,82,83,81,80,90,91,89,88,93,92,94,95,74,75,73,72,77,76,78,79,69,68,70,71,66,67,65,64,106,107,105,104 mul $0,2 mov $1,2 mov $2,2 lpb $0 sub $0,1 div $0,2 sub $2,$3 mul $2,2 add $3,$0 mod $3,2 mov $4,$2 add $2,$1 mul $3,$4 add $1,$3 lpe mov $0,$2 div $0,4
27.681818
295
0.576355
333b0815699df3581ccc1e81d10c92c386317178
507
asm
Assembly
oeis/089/A089217.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/089/A089217.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/089/A089217.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A089217: n-2 is a prime of the form 4*k+3. ; Submitted by Jon Maiga ; 5,9,13,21,25,33,45,49,61,69,73,81,85,105,109,129,133,141,153,165,169,181,193,201,213,225,229,241,253,265,273,285,309,313,333,349,361,369,381,385,421,433,441,445,465,469,481,489,493,501,505,525,549,565,573 mov $2,36 mul $2,$0 mov $4,2 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,4 lpe mov $0,$4 add $0,3
24.142857
206
0.642998
18a0f30ba29c135d777b86f2a8e6b9f15ca9a153
127
asm
Assembly
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_mega.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_mega.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/compress/zx1/z80/asm_dzx1_mega.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
IF !__CPU_INTEL__ && !__CPU_GBZ80__ SECTION smc_compress PUBLIC asm_dzx1_mega asm_dzx1_mega: INCLUDE "dzx1_mega.asm" ENDIF
11.545455
35
0.811024
f9395bbe173c64b54edb476cd877deb2663c24f7
440
asm
Assembly
programs/oeis/166/A166598.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/166/A166598.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/166/A166598.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A166598: a(n) = 5*n - a(n-1), with n>1, a(1)=5. ; 5,5,10,10,15,15,20,20,25,25,30,30,35,35,40,40,45,45,50,50,55,55,60,60,65,65,70,70,75,75,80,80,85,85,90,90,95,95,100,100,105,105,110,110,115,115,120,120,125,125,130,130,135,135,140,140,145,145,150,150,155,155,160,160,165,165,170,170,175,175,180,180,185,185,190,190,195,195,200,200,205,205,210,210,215,215,220,220,225,225,230,230,235,235,240,240,245,245,250,250 div $0,2 mul $0,5 add $0,5
62.857143
361
0.677273
840efea71928b13c4f136bdaa9382610d6a26abd
32,868
asm
Assembly
ioq3/build/release-js-js/baseq3/cgame/cg_playerstate.asm
RawTechnique/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
1
2021-12-31T10:26:58.000Z
2021-12-31T10:26:58.000Z
ioq3/build/release-js-js/baseq3/cgame/cg_playerstate.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
28
2019-03-05T20:45:07.000Z
2019-03-05T20:45:57.000Z
ioq3/build/release-js-js/baseq3/cgame/cg_playerstate.asm
unfriendly/quake-port
2e7c02095f0207831a6026ec23b1c1d75c24f98d
[ "MIT" ]
null
null
null
export CG_CheckAmmo code proc CG_CheckAmmo 20 8 ADDRLP4 8 ADDRGP4 cg+36 INDIRP4 CNSTI4 236 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 CNSTI4 0 ASGNI4 ADDRLP4 0 CNSTI4 2 ASGNI4 LABELV $73 ADDRLP4 8 INDIRI4 CNSTI4 1 ADDRLP4 0 INDIRI4 LSHI4 BANDI4 CNSTI4 0 NEI4 $77 ADDRGP4 $74 JUMPV LABELV $77 ADDRLP4 0 INDIRI4 CNSTI4 3 LTI4 $79 ADDRLP4 0 INDIRI4 CNSTI4 7 GTI4 $79 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 $84-12 ADDP4 INDIRP4 JUMPV lit align 4 LABELV $84 address $81 address $81 address $81 address $79 address $81 code LABELV $81 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 1000 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cg+36 INDIRP4 CNSTI4 420 ADDP4 ADDP4 INDIRI4 MULI4 ADDI4 ASGNI4 ADDRGP4 $80 JUMPV LABELV $79 ADDRLP4 4 ADDRLP4 4 INDIRI4 CNSTI4 200 ADDRLP4 0 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cg+36 INDIRP4 CNSTI4 420 ADDP4 ADDP4 INDIRI4 MULI4 ADDI4 ASGNI4 LABELV $80 ADDRLP4 4 INDIRI4 CNSTI4 5000 LTI4 $86 ADDRGP4 cg+116444 CNSTI4 0 ASGNI4 ADDRGP4 $71 JUMPV LABELV $86 LABELV $74 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 11 LTI4 $73 ADDRLP4 12 ADDRGP4 cg+116444 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 CNSTI4 0 NEI4 $90 ADDRGP4 cg+116444 CNSTI4 2 ASGNI4 ADDRGP4 $91 JUMPV LABELV $90 ADDRGP4 cg+116444 CNSTI4 1 ASGNI4 LABELV $91 ADDRGP4 cg+116444 INDIRI4 ADDRLP4 12 INDIRI4 EQI4 $94 ADDRGP4 cgs+152852+688 INDIRI4 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $94 LABELV $71 endproc CG_CheckAmmo 20 8 export CG_DamageFeedback proc CG_DamageFeedback 84 16 ADDRGP4 cg+116464 ADDRGP4 cg+107604 INDIRI4 ASGNI4 ADDRLP4 20 ADDRGP4 cg+36 INDIRP4 CNSTI4 228 ADDP4 INDIRI4 ASGNI4 ADDRLP4 20 INDIRI4 CNSTI4 40 GEI4 $103 ADDRLP4 28 CNSTF4 1065353216 ASGNF4 ADDRGP4 $104 JUMPV LABELV $103 ADDRLP4 28 CNSTF4 1109393408 ADDRLP4 20 INDIRI4 CVIF4 4 DIVF4 ASGNF4 LABELV $104 ADDRLP4 12 ADDRFP4 8 INDIRI4 CVIF4 4 ADDRLP4 28 INDIRF4 MULF4 ASGNF4 ADDRLP4 12 INDIRF4 CNSTF4 1084227584 GEF4 $105 ADDRLP4 12 CNSTF4 1084227584 ASGNF4 LABELV $105 ADDRLP4 12 INDIRF4 CNSTF4 1092616192 LEF4 $107 ADDRLP4 12 CNSTF4 1092616192 ASGNF4 LABELV $107 ADDRLP4 60 CNSTI4 255 ASGNI4 ADDRFP4 0 INDIRI4 ADDRLP4 60 INDIRI4 NEI4 $109 ADDRFP4 4 INDIRI4 ADDRLP4 60 INDIRI4 NEI4 $109 ADDRGP4 cg+116728 CNSTF4 0 ASGNF4 ADDRGP4 cg+116732 CNSTF4 0 ASGNF4 ADDRGP4 cg+116776 CNSTF4 0 ASGNF4 ADDRGP4 cg+116772 ADDRLP4 12 INDIRF4 NEGF4 ASGNF4 ADDRGP4 $110 JUMPV LABELV $109 ADDRLP4 64 CNSTF4 1135869952 ASGNF4 ADDRLP4 68 CNSTF4 1132396544 ASGNF4 ADDRLP4 56 ADDRLP4 64 INDIRF4 ADDRFP4 4 INDIRI4 CVIF4 4 ADDRLP4 68 INDIRF4 DIVF4 MULF4 ASGNF4 ADDRLP4 52 ADDRLP4 64 INDIRF4 ADDRFP4 0 INDIRI4 CVIF4 4 ADDRLP4 68 INDIRF4 DIVF4 MULF4 ASGNF4 ADDRLP4 32 ADDRLP4 56 INDIRF4 ASGNF4 ADDRLP4 32+4 ADDRLP4 52 INDIRF4 ASGNF4 ADDRLP4 32+8 CNSTF4 0 ASGNF4 ADDRLP4 32 ARGP4 ADDRLP4 0 ARGP4 ADDRLP4 72 CNSTP4 0 ASGNP4 ADDRLP4 72 INDIRP4 ARGP4 ADDRLP4 72 INDIRP4 ARGP4 ADDRGP4 AngleVectors CALLV pop ADDRLP4 0 ADDRGP4 vec3_origin INDIRF4 ADDRLP4 0 INDIRF4 SUBF4 ASGNF4 ADDRLP4 0+4 ADDRGP4 vec3_origin+4 INDIRF4 ADDRLP4 0+4 INDIRF4 SUBF4 ASGNF4 ADDRLP4 0+8 ADDRGP4 vec3_origin+8 INDIRF4 ADDRLP4 0+8 INDIRF4 SUBF4 ASGNF4 ADDRLP4 76 ADDRLP4 0 INDIRF4 ASGNF4 ADDRLP4 16 ADDRLP4 76 INDIRF4 ADDRGP4 cg+109032+36 INDIRF4 MULF4 ADDRLP4 0+4 INDIRF4 ADDRGP4 cg+109032+36+4 INDIRF4 MULF4 ADDF4 ADDRLP4 0+8 INDIRF4 ADDRGP4 cg+109032+36+8 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 24 ADDRLP4 76 INDIRF4 ADDRGP4 cg+109032+36+12 INDIRF4 MULF4 ADDRLP4 0+4 INDIRF4 ADDRGP4 cg+109032+36+12+4 INDIRF4 MULF4 ADDF4 ADDRLP4 0+8 INDIRF4 ADDRGP4 cg+109032+36+12+8 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 48 ADDRLP4 76 INDIRF4 ADDRGP4 cg+109032+36+24 INDIRF4 MULF4 ADDRLP4 0+4 INDIRF4 ADDRGP4 cg+109032+36+24+4 INDIRF4 MULF4 ADDF4 ADDRLP4 0+8 INDIRF4 ADDRGP4 cg+109032+36+24+8 INDIRF4 MULF4 ADDF4 ASGNF4 ADDRLP4 0 ADDRLP4 16 INDIRF4 ASGNF4 ADDRLP4 0+4 ADDRLP4 24 INDIRF4 ASGNF4 ADDRLP4 0+8 CNSTF4 0 ASGNF4 ADDRLP4 0 ARGP4 ADDRLP4 80 ADDRGP4 VectorLength CALLF4 ASGNF4 ADDRLP4 44 ADDRLP4 80 INDIRF4 ASGNF4 ADDRLP4 44 INDIRF4 CNSTF4 1036831949 GEF4 $161 ADDRLP4 44 CNSTF4 1036831949 ASGNF4 LABELV $161 ADDRGP4 cg+116776 ADDRLP4 12 INDIRF4 ADDRLP4 24 INDIRF4 MULF4 ASGNF4 ADDRGP4 cg+116772 ADDRLP4 12 INDIRF4 NEGF4 ADDRLP4 16 INDIRF4 MULF4 ASGNF4 ADDRLP4 16 INDIRF4 CNSTF4 1036831949 GTF4 $165 ADDRLP4 16 CNSTF4 1036831949 ASGNF4 LABELV $165 ADDRGP4 cg+116728 ADDRLP4 24 INDIRF4 NEGF4 ADDRLP4 16 INDIRF4 DIVF4 ASGNF4 ADDRGP4 cg+116732 ADDRLP4 48 INDIRF4 ADDRLP4 44 INDIRF4 DIVF4 ASGNF4 LABELV $110 ADDRGP4 cg+116728 INDIRF4 CNSTF4 1065353216 LEF4 $169 ADDRGP4 cg+116728 CNSTF4 1065353216 ASGNF4 LABELV $169 ADDRGP4 cg+116728 INDIRF4 CNSTF4 3212836864 GEF4 $173 ADDRGP4 cg+116728 CNSTF4 3212836864 ASGNF4 LABELV $173 ADDRGP4 cg+116732 INDIRF4 CNSTF4 1065353216 LEF4 $177 ADDRGP4 cg+116732 CNSTF4 1065353216 ASGNF4 LABELV $177 ADDRGP4 cg+116732 INDIRF4 CNSTF4 3212836864 GEF4 $181 ADDRGP4 cg+116732 CNSTF4 3212836864 ASGNF4 LABELV $181 ADDRLP4 12 INDIRF4 CNSTF4 1092616192 LEF4 $185 ADDRLP4 12 CNSTF4 1092616192 ASGNF4 LABELV $185 ADDRGP4 cg+116736 ADDRLP4 12 INDIRF4 ASGNF4 ADDRGP4 cg+116768 ADDRGP4 cg+107604 INDIRI4 CNSTI4 500 ADDI4 CVIF4 4 ASGNF4 ADDRGP4 cg+116724 ADDRGP4 cg+36 INDIRP4 CNSTI4 8 ADDP4 INDIRI4 CVIF4 4 ASGNF4 LABELV $99 endproc CG_DamageFeedback 84 16 export CG_Respawn proc CG_Respawn 0 0 ADDRGP4 cg+107592 CNSTI4 1 ASGNI4 ADDRGP4 cg+116712 ADDRGP4 cg+107604 INDIRI4 ASGNI4 ADDRGP4 cg+108932 ADDRGP4 cg+36 INDIRP4 CNSTI4 188 ADDP4 INDIRI4 ASGNI4 LABELV $192 endproc CG_Respawn 0 0 export CG_CheckPlayerstateEvents proc CG_CheckPlayerstateEvents 52 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRLP4 12 CNSTI4 128 ASGNI4 ADDRLP4 16 ADDRFP4 0 INDIRP4 ADDRLP4 12 INDIRI4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 16 INDIRI4 CNSTI4 0 EQI4 $199 ADDRLP4 16 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 12 INDIRI4 ADDP4 INDIRI4 EQI4 $199 ADDRLP4 4 CNSTI4 716 ADDRFP4 0 INDIRP4 CNSTI4 140 ADDP4 INDIRI4 MULI4 ADDRGP4 cg_entities ADDP4 ASGNP4 ADDRLP4 4 INDIRP4 CNSTI4 180 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 128 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 CNSTI4 184 ADDP4 ADDRFP4 0 INDIRP4 CNSTI4 132 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 ARGP4 ADDRLP4 4 INDIRP4 CNSTI4 692 ADDP4 ARGP4 ADDRGP4 CG_EntityEvent CALLV pop LABELV $199 ADDRLP4 4 ADDRGP4 cg+108104 ASGNP4 ADDRLP4 0 ADDRFP4 0 INDIRP4 CNSTI4 108 ADDP4 INDIRI4 CNSTI4 2 SUBI4 ASGNI4 ADDRGP4 $205 JUMPV LABELV $202 ADDRLP4 28 ADDRFP4 4 INDIRP4 CNSTI4 108 ADDP4 INDIRI4 ASGNI4 ADDRLP4 0 INDIRI4 ADDRLP4 28 INDIRI4 GEI4 $208 ADDRLP4 32 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRI4 ADDRLP4 28 INDIRI4 ADDRLP4 32 INDIRI4 SUBI4 LEI4 $206 ADDRLP4 36 ADDRLP4 0 INDIRI4 CNSTI4 1 BANDI4 ADDRLP4 32 INDIRI4 LSHI4 ASGNI4 ADDRLP4 40 CNSTI4 112 ASGNI4 ADDRLP4 36 INDIRI4 ADDRFP4 0 INDIRP4 ADDRLP4 40 INDIRI4 ADDP4 ADDP4 INDIRI4 ADDRLP4 36 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 40 INDIRI4 ADDP4 ADDP4 INDIRI4 EQI4 $206 LABELV $208 ADDRLP4 8 ADDRLP4 0 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 2 LSHI4 ADDRFP4 0 INDIRP4 CNSTI4 112 ADDP4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 CNSTI4 180 ADDP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 CNSTI4 184 ADDP4 ADDRLP4 0 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 2 LSHI4 ADDRFP4 0 INDIRP4 CNSTI4 120 ADDP4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 ARGP4 ADDRLP4 4 INDIRP4 CNSTI4 692 ADDP4 ARGP4 ADDRGP4 CG_EntityEvent CALLV pop ADDRLP4 0 INDIRI4 CNSTI4 15 BANDI4 CNSTI4 2 LSHI4 ADDRGP4 cg+108844 ADDP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRLP4 48 ADDRGP4 cg+108840 ASGNP4 ADDRLP4 48 INDIRP4 ADDRLP4 48 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $206 LABELV $203 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $205 ADDRLP4 0 INDIRI4 ADDRFP4 0 INDIRP4 CNSTI4 108 ADDP4 INDIRI4 LTI4 $202 LABELV $198 endproc CG_CheckPlayerstateEvents 52 8 export CG_CheckChangedPredictableEvents proc CG_CheckChangedPredictableEvents 24 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRLP4 4 ADDRGP4 cg+108104 ASGNP4 ADDRLP4 0 ADDRFP4 0 INDIRP4 CNSTI4 108 ADDP4 INDIRI4 CNSTI4 2 SUBI4 ASGNI4 ADDRGP4 $216 JUMPV LABELV $213 ADDRLP4 0 INDIRI4 ADDRGP4 cg+108840 INDIRI4 LTI4 $217 ADDRGP4 $214 JUMPV LABELV $217 ADDRLP4 0 INDIRI4 ADDRGP4 cg+108840 INDIRI4 CNSTI4 16 SUBI4 LEI4 $220 ADDRLP4 16 CNSTI4 2 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 1 BANDI4 ADDRLP4 16 INDIRI4 LSHI4 ADDRFP4 0 INDIRP4 CNSTI4 112 ADDP4 ADDP4 INDIRI4 ADDRLP4 0 INDIRI4 CNSTI4 15 BANDI4 ADDRLP4 16 INDIRI4 LSHI4 ADDRGP4 cg+108844 ADDP4 INDIRI4 EQI4 $223 ADDRLP4 8 ADDRLP4 0 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 2 LSHI4 ADDRFP4 0 INDIRP4 CNSTI4 112 ADDP4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 CNSTI4 180 ADDP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 CNSTI4 184 ADDP4 ADDRLP4 0 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 2 LSHI4 ADDRFP4 0 INDIRP4 CNSTI4 120 ADDP4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 4 INDIRP4 ARGP4 ADDRLP4 4 INDIRP4 CNSTI4 692 ADDP4 ARGP4 ADDRGP4 CG_EntityEvent CALLV pop ADDRLP4 0 INDIRI4 CNSTI4 15 BANDI4 CNSTI4 2 LSHI4 ADDRGP4 cg+108844 ADDP4 ADDRLP4 8 INDIRI4 ASGNI4 ADDRGP4 cg_showmiss+12 INDIRI4 CNSTI4 0 EQI4 $227 ADDRGP4 $230 ARGP4 ADDRGP4 CG_Printf CALLV pop LABELV $227 LABELV $223 LABELV $220 LABELV $214 ADDRLP4 0 ADDRLP4 0 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 LABELV $216 ADDRLP4 0 INDIRI4 ADDRFP4 0 INDIRP4 CNSTI4 108 ADDP4 INDIRI4 LTI4 $213 LABELV $211 endproc CG_CheckChangedPredictableEvents 24 8 proc pushReward 4 0 ADDRGP4 cg+116472 INDIRI4 CNSTI4 9 GEI4 $232 ADDRLP4 0 ADDRGP4 cg+116472 ASGNP4 ADDRLP4 0 INDIRP4 ADDRLP4 0 INDIRP4 INDIRI4 CNSTI4 1 ADDI4 ASGNI4 ADDRGP4 cg+116472 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cg+116560 ADDP4 ADDRFP4 0 INDIRI4 ASGNI4 ADDRGP4 cg+116472 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cg+116520 ADDP4 ADDRFP4 4 INDIRI4 ASGNI4 ADDRGP4 cg+116472 INDIRI4 CNSTI4 2 LSHI4 ADDRGP4 cg+116480 ADDP4 ADDRFP4 8 INDIRI4 ASGNI4 LABELV $232 LABELV $231 endproc pushReward 4 0 export CG_CheckLocalSounds proc CG_CheckLocalSounds 80 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRLP4 12 CNSTI4 260 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 12 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 12 INDIRI4 ADDP4 INDIRI4 EQI4 $243 ADDRGP4 $242 JUMPV LABELV $243 ADDRLP4 16 CNSTI4 252 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 16 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 16 INDIRI4 ADDP4 INDIRI4 LEI4 $245 ADDRGP4 cgs+152852+736 INDIRI4 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $246 JUMPV LABELV $245 ADDRLP4 20 CNSTI4 252 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 20 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 20 INDIRI4 ADDP4 INDIRI4 GEI4 $249 ADDRGP4 cgs+152852+748 INDIRI4 ARGI4 CNSTI4 6 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $249 LABELV $246 ADDRLP4 24 CNSTI4 184 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 24 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 24 INDIRI4 ADDP4 INDIRI4 CNSTI4 1 SUBI4 GEI4 $253 ADDRFP4 0 INDIRP4 CNSTI4 184 ADDP4 INDIRI4 CNSTI4 0 LEI4 $255 ADDRGP4 cg+108104 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 184 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_PainEvent CALLV pop LABELV $255 LABELV $253 ADDRGP4 cg+24 INDIRI4 CNSTI4 0 EQI4 $258 ADDRGP4 $242 JUMPV LABELV $258 ADDRLP4 0 CNSTI4 0 ASGNI4 ADDRLP4 28 CNSTI4 304 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 28 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 28 INDIRI4 ADDP4 INDIRI4 EQI4 $261 ADDRGP4 cgs+152852+832 INDIRI4 ARGI4 ADDRGP4 cgs+152852+496 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 304 ADDP4 INDIRI4 ARGI4 ADDRGP4 pushReward CALLV pop ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $261 ADDRLP4 32 CNSTI4 284 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 32 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 32 INDIRI4 ADDP4 INDIRI4 EQI4 $267 ADDRLP4 4 ADDRGP4 cgs+152852+752 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 ARGI4 ADDRGP4 cgs+152852+476 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 284 ADDP4 INDIRI4 ARGI4 ADDRGP4 pushReward CALLV pop ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $267 ADDRLP4 36 CNSTI4 288 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 36 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 36 INDIRI4 ADDP4 INDIRI4 EQI4 $273 ADDRLP4 4 ADDRGP4 cgs+152852+756 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 ARGI4 ADDRGP4 cgs+152852+480 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 288 ADDP4 INDIRI4 ARGI4 ADDRGP4 pushReward CALLV pop ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $273 ADDRLP4 40 CNSTI4 300 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 40 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 40 INDIRI4 ADDP4 INDIRI4 EQI4 $279 ADDRLP4 4 ADDRGP4 cgs+152852+764 INDIRI4 ASGNI4 ADDRLP4 4 INDIRI4 ARGI4 ADDRGP4 cgs+152852+484 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 300 ADDP4 INDIRI4 ARGI4 ADDRGP4 pushReward CALLV pop ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $279 ADDRLP4 44 CNSTI4 292 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 44 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 44 INDIRI4 ADDP4 INDIRI4 EQI4 $285 ADDRGP4 cgs+152852+772 INDIRI4 ARGI4 ADDRGP4 cgs+152852+488 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 292 ADDP4 INDIRI4 ARGI4 ADDRGP4 pushReward CALLV pop ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $285 ADDRLP4 48 CNSTI4 296 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 48 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 48 INDIRI4 ADDP4 INDIRI4 EQI4 $291 ADDRGP4 cgs+152852+768 INDIRI4 ARGI4 ADDRGP4 cgs+152852+492 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 296 ADDP4 INDIRI4 ARGI4 ADDRGP4 pushReward CALLV pop ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $291 ADDRLP4 52 CNSTI4 268 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 52 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 52 INDIRI4 ADDP4 INDIRI4 EQI4 $297 ADDRLP4 56 CNSTI4 268 ASGNI4 ADDRLP4 60 CNSTI4 1 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 INDIRI4 ADDRLP4 60 INDIRI4 BANDI4 ADDRFP4 4 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 INDIRI4 ADDRLP4 60 INDIRI4 BANDI4 EQI4 $299 ADDRGP4 cgs+152852+760 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $300 JUMPV LABELV $299 ADDRLP4 64 CNSTI4 268 ASGNI4 ADDRLP4 68 CNSTI4 2 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 64 INDIRI4 ADDP4 INDIRI4 ADDRLP4 68 INDIRI4 BANDI4 ADDRFP4 4 INDIRP4 ADDRLP4 64 INDIRI4 ADDP4 INDIRI4 ADDRLP4 68 INDIRI4 BANDI4 EQI4 $303 ADDRGP4 cgs+152852+764 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $304 JUMPV LABELV $303 ADDRLP4 72 CNSTI4 268 ASGNI4 ADDRLP4 76 CNSTI4 4 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 72 INDIRI4 ADDP4 INDIRI4 ADDRLP4 76 INDIRI4 BANDI4 ADDRFP4 4 INDIRP4 ADDRLP4 72 INDIRI4 ADDP4 INDIRI4 ADDRLP4 76 INDIRI4 BANDI4 EQI4 $307 ADDRGP4 cgs+152852+900 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $307 LABELV $304 LABELV $300 ADDRLP4 0 CNSTI4 1 ASGNI4 LABELV $297 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 LEI4 $311 ADDRLP4 56 CNSTI4 340 ASGNI4 ADDRLP4 60 ADDRFP4 0 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 60 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 INDIRI4 EQI4 $317 ADDRLP4 60 INDIRI4 CNSTI4 0 NEI4 $318 LABELV $317 ADDRLP4 64 CNSTI4 344 ASGNI4 ADDRLP4 68 ADDRFP4 0 INDIRP4 ADDRLP4 64 INDIRI4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 68 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 64 INDIRI4 ADDP4 INDIRI4 EQI4 $319 ADDRLP4 68 INDIRI4 CNSTI4 0 NEI4 $318 LABELV $319 ADDRLP4 72 CNSTI4 348 ASGNI4 ADDRLP4 76 ADDRFP4 0 INDIRP4 ADDRLP4 72 INDIRI4 ADDP4 INDIRI4 ASGNI4 ADDRLP4 76 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 72 INDIRI4 ADDP4 INDIRI4 EQI4 $314 ADDRLP4 76 INDIRI4 CNSTI4 0 EQI4 $314 LABELV $318 ADDRGP4 cgs+152852+896 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $314 LABELV $311 ADDRLP4 0 INDIRI4 CNSTI4 0 NEI4 $322 ADDRGP4 cg+116692 INDIRI4 CNSTI4 0 NEI4 $324 ADDRLP4 56 CNSTI4 256 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 56 INDIRI4 ADDP4 INDIRI4 EQI4 $327 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 GEI4 $329 ADDRFP4 0 INDIRP4 CNSTI4 256 ADDP4 INDIRI4 CNSTI4 0 NEI4 $332 ADDRGP4 cgs+152852+788 INDIRI4 ARGI4 ADDRGP4 CG_AddBufferedSound CALLV pop ADDRGP4 $333 JUMPV LABELV $332 ADDRFP4 0 INDIRP4 CNSTI4 256 ADDP4 INDIRI4 CNSTI4 16384 NEI4 $336 ADDRGP4 cgs+152852+792 INDIRI4 ARGI4 ADDRGP4 CG_AddBufferedSound CALLV pop ADDRGP4 $337 JUMPV LABELV $336 ADDRFP4 4 INDIRP4 CNSTI4 256 ADDP4 INDIRI4 CNSTI4 -16385 BANDI4 CNSTI4 0 NEI4 $340 ADDRGP4 cgs+152852+796 INDIRI4 ARGI4 ADDRGP4 CG_AddBufferedSound CALLV pop LABELV $340 LABELV $337 LABELV $333 LABELV $329 LABELV $327 LABELV $324 LABELV $322 ADDRGP4 cgs+31476 INDIRI4 CNSTI4 0 LEI4 $344 ADDRLP4 56 ADDRGP4 cg+107604 INDIRI4 ADDRGP4 cgs+34796 INDIRI4 SUBI4 ASGNI4 ADDRGP4 cg+107616 INDIRI4 CNSTI4 4 BANDI4 CNSTI4 0 NEI4 $349 ADDRLP4 56 INDIRI4 CNSTI4 1000 CNSTI4 60 ADDRGP4 cgs+31476 INDIRI4 MULI4 MULI4 CNSTI4 2000 ADDI4 LEI4 $349 ADDRLP4 60 ADDRGP4 cg+107616 ASGNP4 ADDRLP4 60 INDIRP4 ADDRLP4 60 INDIRP4 INDIRI4 CNSTI4 7 BORI4 ASGNI4 ADDRGP4 cgs+152852+720 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $350 JUMPV LABELV $349 ADDRGP4 cg+107616 INDIRI4 CNSTI4 2 BANDI4 CNSTI4 0 NEI4 $356 ADDRLP4 56 INDIRI4 CNSTI4 1000 CNSTI4 60 ADDRGP4 cgs+31476 INDIRI4 MULI4 MULI4 CNSTI4 60000 SUBI4 LEI4 $356 ADDRLP4 60 ADDRGP4 cg+107616 ASGNP4 ADDRLP4 60 INDIRP4 ADDRLP4 60 INDIRP4 INDIRI4 CNSTI4 3 BORI4 ASGNI4 ADDRGP4 cgs+152852+712 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop ADDRGP4 $357 JUMPV LABELV $356 ADDRGP4 cgs+31476 INDIRI4 CNSTI4 5 LEI4 $363 ADDRGP4 cg+107616 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 0 NEI4 $363 ADDRLP4 56 INDIRI4 CNSTI4 1000 CNSTI4 60 ADDRGP4 cgs+31476 INDIRI4 MULI4 MULI4 CNSTI4 300000 SUBI4 LEI4 $363 ADDRLP4 60 ADDRGP4 cg+107616 ASGNP4 ADDRLP4 60 INDIRP4 ADDRLP4 60 INDIRP4 INDIRI4 CNSTI4 1 BORI4 ASGNI4 ADDRGP4 cgs+152852+716 INDIRI4 ARGI4 CNSTI4 7 ARGI4 ADDRGP4 trap_S_StartLocalSound CALLV pop LABELV $363 LABELV $357 LABELV $350 LABELV $344 ADDRGP4 cgs+31468 INDIRI4 CNSTI4 0 LEI4 $371 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 4 GEI4 $371 ADDRLP4 8 ADDRGP4 cgs+34800 INDIRI4 ASGNI4 ADDRGP4 cgs+31456 INDIRI4 CNSTI4 3 NEI4 $376 ADDRGP4 cgs+34804 INDIRI4 ADDRLP4 8 INDIRI4 LEI4 $376 ADDRLP4 8 ADDRGP4 cgs+34804 INDIRI4 ASGNI4 LABELV $376 ADDRGP4 cg+107620 INDIRI4 CNSTI4 4 BANDI4 CNSTI4 0 NEI4 $381 ADDRLP4 8 INDIRI4 ADDRGP4 cgs+31468 INDIRI4 CNSTI4 1 SUBI4 NEI4 $381 ADDRLP4 56 ADDRGP4 cg+107620 ASGNP4 ADDRLP4 56 INDIRP4 ADDRLP4 56 INDIRP4 INDIRI4 CNSTI4 7 BORI4 ASGNI4 ADDRGP4 cgs+152852+732 INDIRI4 ARGI4 ADDRGP4 CG_AddBufferedSound CALLV pop ADDRGP4 $382 JUMPV LABELV $381 ADDRLP4 56 CNSTI4 2 ASGNI4 ADDRGP4 cgs+31468 INDIRI4 ADDRLP4 56 INDIRI4 LEI4 $388 ADDRGP4 cg+107620 INDIRI4 ADDRLP4 56 INDIRI4 BANDI4 CNSTI4 0 NEI4 $388 ADDRLP4 8 INDIRI4 ADDRGP4 cgs+31468 INDIRI4 ADDRLP4 56 INDIRI4 SUBI4 NEI4 $388 ADDRLP4 60 ADDRGP4 cg+107620 ASGNP4 ADDRLP4 60 INDIRP4 ADDRLP4 60 INDIRP4 INDIRI4 CNSTI4 3 BORI4 ASGNI4 ADDRGP4 cgs+152852+728 INDIRI4 ARGI4 ADDRGP4 CG_AddBufferedSound CALLV pop ADDRGP4 $389 JUMPV LABELV $388 ADDRLP4 60 CNSTI4 3 ASGNI4 ADDRGP4 cgs+31468 INDIRI4 ADDRLP4 60 INDIRI4 LEI4 $396 ADDRGP4 cg+107620 INDIRI4 CNSTI4 1 BANDI4 CNSTI4 0 NEI4 $396 ADDRLP4 8 INDIRI4 ADDRGP4 cgs+31468 INDIRI4 ADDRLP4 60 INDIRI4 SUBI4 NEI4 $396 ADDRLP4 64 ADDRGP4 cg+107620 ASGNP4 ADDRLP4 64 INDIRP4 ADDRLP4 64 INDIRP4 INDIRI4 CNSTI4 1 BORI4 ASGNI4 ADDRGP4 cgs+152852+724 INDIRI4 ARGI4 ADDRGP4 CG_AddBufferedSound CALLV pop LABELV $396 LABELV $389 LABELV $382 LABELV $371 LABELV $242 endproc CG_CheckLocalSounds 80 12 export CG_TransitionPlayerState proc CG_TransitionPlayerState 24 12 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 4 ADDRFP4 4 INDIRP4 ASGNP4 ADDRLP4 0 CNSTI4 140 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 0 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 0 INDIRI4 ADDP4 INDIRI4 EQI4 $405 ADDRGP4 cg+107592 CNSTI4 1 ASGNI4 ADDRFP4 4 INDIRP4 ADDRFP4 0 INDIRP4 INDIRB ASGNB 468 LABELV $405 ADDRLP4 8 CNSTI4 168 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 8 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 8 INDIRI4 ADDP4 INDIRI4 EQI4 $408 ADDRFP4 0 INDIRP4 CNSTI4 180 ADDP4 INDIRI4 CNSTI4 0 EQI4 $408 ADDRFP4 0 INDIRP4 CNSTI4 172 ADDP4 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 176 ADDP4 INDIRI4 ARGI4 ADDRFP4 0 INDIRP4 CNSTI4 180 ADDP4 INDIRI4 ARGI4 ADDRGP4 CG_DamageFeedback CALLV pop LABELV $408 ADDRLP4 12 CNSTI4 264 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 12 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 12 INDIRI4 ADDP4 INDIRI4 EQI4 $410 ADDRGP4 CG_Respawn CALLV pop LABELV $410 ADDRGP4 cg+107624 INDIRI4 CNSTI4 0 EQI4 $412 ADDRGP4 CG_Respawn CALLV pop ADDRGP4 cg+107624 CNSTI4 0 ASGNI4 LABELV $412 ADDRGP4 cg+36 INDIRP4 CNSTI4 48 ADDP4 INDIRI4 CNSTI4 5 EQI4 $416 ADDRFP4 0 INDIRP4 CNSTI4 260 ADDP4 INDIRI4 CNSTI4 3 EQI4 $416 ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 ARGP4 ADDRGP4 CG_CheckLocalSounds CALLV pop LABELV $416 ADDRGP4 CG_CheckAmmo CALLV pop ADDRFP4 0 INDIRP4 ARGP4 ADDRFP4 4 INDIRP4 ARGP4 ADDRGP4 CG_CheckPlayerstateEvents CALLV pop ADDRLP4 16 CNSTI4 164 ASGNI4 ADDRFP4 0 INDIRP4 ADDRLP4 16 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 16 INDIRI4 ADDP4 INDIRI4 EQI4 $419 ADDRLP4 20 CNSTI4 164 ASGNI4 ADDRGP4 cg+108916 ADDRFP4 0 INDIRP4 ADDRLP4 20 INDIRI4 ADDP4 INDIRI4 ADDRFP4 4 INDIRP4 ADDRLP4 20 INDIRI4 ADDP4 INDIRI4 SUBI4 CVIF4 4 ASGNF4 ADDRGP4 cg+108920 ADDRGP4 cg+107604 INDIRI4 ASGNI4 LABELV $419 LABELV $404 endproc CG_TransitionPlayerState 24 12 import eventnames import CG_NewParticleArea import initparticles import CG_ParticleExplosion import CG_ParticleMisc import CG_ParticleDust import CG_ParticleSparks import CG_ParticleBulletDebris import CG_ParticleSnowFlurry import CG_AddParticleShrapnel import CG_ParticleSmoke import CG_ParticleSnow import CG_AddParticles import CG_ClearParticles import trap_GetEntityToken import trap_getCameraInfo import trap_startCamera import trap_loadCamera import trap_SnapVector import trap_RealTime import trap_CIN_SetExtents import trap_CIN_DrawCinematic import trap_CIN_RunCinematic import trap_CIN_StopCinematic import trap_CIN_PlayCinematic import trap_Key_GetKey import trap_Key_SetCatcher import trap_Key_GetCatcher import trap_Key_IsDown import trap_R_RegisterFont import trap_MemoryRemaining import testPrintFloat import testPrintInt import trap_SetUserCmdValue import trap_GetUserCmd import trap_GetCurrentCmdNumber import trap_GetServerCommand import trap_GetSnapshot import trap_GetCurrentSnapshotNumber import trap_GetGameState import trap_GetGlconfig import trap_R_inPVS import trap_R_RemapShader import trap_R_LerpTag import trap_R_ModelBounds import trap_R_DrawStretchPic import trap_R_SetColor import trap_R_RenderScene import trap_R_LightForPoint import trap_R_AddAdditiveLightToScene import trap_R_AddLightToScene import trap_R_AddPolysToScene import trap_R_AddPolyToScene import trap_R_AddRefEntityToScene import trap_R_ClearScene import trap_R_RegisterShaderNoMip import trap_R_RegisterShader import trap_R_RegisterSkin import trap_R_RegisterModel import trap_R_LoadWorldMap import trap_S_StopBackgroundTrack import trap_S_StartBackgroundTrack import trap_S_RegisterSound import trap_S_Respatialize import trap_S_UpdateEntityPosition import trap_S_AddRealLoopingSound import trap_S_AddLoopingSound import trap_S_ClearLoopingSounds import trap_S_StartLocalSound import trap_S_StopLoopingSound import trap_S_StartSound import trap_CM_MarkFragments import trap_CM_TransformedCapsuleTrace import trap_CM_TransformedBoxTrace import trap_CM_CapsuleTrace import trap_CM_BoxTrace import trap_CM_TransformedPointContents import trap_CM_PointContents import trap_CM_TempBoxModel import trap_CM_InlineModel import trap_CM_NumInlineModels import trap_CM_LoadMap import trap_UpdateScreen import trap_SendClientCommand import trap_RemoveCommand import trap_AddCommand import trap_SendConsoleCommand import trap_FS_Seek import trap_FS_FCloseFile import trap_FS_Write import trap_FS_Read import trap_FS_FOpenFile import trap_Args import trap_Argv import trap_Argc import trap_Cvar_VariableStringBuffer import trap_Cvar_Set import trap_Cvar_Update import trap_Cvar_Register import trap_Milliseconds import trap_Error import trap_Print import CG_ShaderStateChanged import CG_SetConfigValues import CG_ParseServerinfo import CG_ExecuteNewServerCommands import CG_InitConsoleCommands import CG_ConsoleCommand import CG_DrawOldTourneyScoreboard import CG_DrawOldScoreboard import CG_DrawInformation import CG_LoadingClient import CG_LoadingItem import CG_LoadingString import CG_ProcessSnapshots import CG_MakeExplosion import CG_Bleed import CG_BigExplode import CG_GibPlayer import CG_ScorePlum import CG_SpawnEffect import CG_BubbleTrail import CG_SmokePuff import CG_AddLocalEntities import CG_AllocLocalEntity import CG_InitLocalEntities import CG_ImpactMark import CG_AddMarks import CG_InitMarkPolys import CG_OutOfAmmoChange import CG_DrawWeaponSelect import CG_AddPlayerWeapon import CG_AddViewWeapon import CG_GrappleTrail import CG_RailTrail import CG_Bullet import CG_ShotgunFire import CG_MissileHitPlayer import CG_MissileHitWall import CG_FireWeapon import CG_RegisterItemVisuals import CG_RegisterWeapon import CG_Weapon_f import CG_PrevWeapon_f import CG_NextWeapon_f import CG_PositionRotatedEntityOnTag import CG_PositionEntityOnTag import CG_AdjustPositionForMover import CG_Beam import CG_AddPacketEntities import CG_SetEntitySoundPosition import CG_PainEvent import CG_EntityEvent import CG_PlaceString import CG_CheckEvents import CG_LoadDeferredPlayers import CG_PredictPlayerState import CG_Trace import CG_PointContents import CG_BuildSolidList import CG_CustomSound import CG_NewClientInfo import CG_AddRefEntityWithPowerups import CG_ResetPlayerEntity import CG_Player import CG_StatusHandle import CG_OtherTeamHasFlag import CG_YourTeamHasFlag import CG_GameTypeString import CG_CheckOrderPending import CG_Text_PaintChar import CG_Draw3DModel import CG_GetKillerText import CG_GetGameStatusText import CG_GetTeamColor import CG_InitTeamChat import CG_SetPrintString import CG_ShowResponseHead import CG_RunMenuScript import CG_OwnerDrawVisible import CG_GetValue import CG_SelectNextPlayer import CG_SelectPrevPlayer import CG_Text_Height import CG_Text_Width import CG_Text_Paint import CG_OwnerDraw import CG_DrawTeamBackground import CG_DrawFlagModel import CG_DrawActive import CG_DrawHead import CG_CenterPrint import CG_AddLagometerSnapshotInfo import CG_AddLagometerFrameInfo import teamChat2 import teamChat1 import systemChat import drawTeamOverlayModificationCount import numSortedTeamPlayers import sortedTeamPlayers import CG_DrawTopBottom import CG_DrawSides import CG_DrawRect import UI_DrawProportionalString import CG_GetColorForHealth import CG_ColorForHealth import CG_TileClear import CG_TeamColor import CG_FadeColor import CG_DrawStrlen import CG_DrawSmallStringColor import CG_DrawSmallString import CG_DrawBigStringColor import CG_DrawBigString import CG_DrawStringExt import CG_DrawString import CG_DrawPic import CG_FillRect import CG_AdjustFrom640 import CG_DrawActiveFrame import CG_AddBufferedSound import CG_ZoomUp_f import CG_ZoomDown_f import CG_TestModelPrevSkin_f import CG_TestModelNextSkin_f import CG_TestModelPrevFrame_f import CG_TestModelNextFrame_f import CG_TestGun_f import CG_TestModel_f import CG_BuildSpectatorString import CG_GetSelectedScore import CG_SetScoreSelection import CG_RankRunFrame import CG_EventHandling import CG_MouseEvent import CG_KeyEvent import CG_LoadMenus import CG_LastAttacker import CG_CrosshairPlayer import CG_UpdateCvars import CG_StartMusic import CG_Error import CG_Printf import CG_Argv import CG_ConfigString import cg_trueLightning import cg_oldPlasma import cg_oldRocket import cg_oldRail import cg_noProjectileTrail import cg_noTaunt import cg_bigFont import cg_smallFont import cg_cameraMode import cg_timescale import cg_timescaleFadeSpeed import cg_timescaleFadeEnd import cg_cameraOrbitDelay import cg_cameraOrbit import pmove_msec import pmove_fixed import cg_smoothClients import cg_scorePlum import cg_teamChatsOnly import cg_drawFriend import cg_deferPlayers import cg_predictItems import cg_blood import cg_paused import cg_buildScript import cg_forceModel import cg_stats import cg_teamChatHeight import cg_teamChatTime import cg_synchronousClients import cg_drawAttacker import cg_lagometer import cg_thirdPerson import cg_thirdPersonAngle import cg_thirdPersonRange import cg_zoomFov import cg_fov import cg_simpleItems import cg_ignore import cg_autoswitch import cg_tracerLength import cg_tracerWidth import cg_tracerChance import cg_viewsize import cg_drawGun import cg_gun_z import cg_gun_y import cg_gun_x import cg_gun_frame import cg_brassTime import cg_addMarks import cg_footsteps import cg_showmiss import cg_noPlayerAnims import cg_nopredict import cg_errorDecay import cg_railTrailTime import cg_debugEvents import cg_debugPosition import cg_debugAnim import cg_animSpeed import cg_draw2D import cg_drawStatus import cg_crosshairHealth import cg_crosshairSize import cg_crosshairY import cg_crosshairX import cg_teamOverlayUserinfo import cg_drawTeamOverlay import cg_drawRewards import cg_drawCrosshairNames import cg_drawCrosshair import cg_drawAmmoWarning import cg_drawIcons import cg_draw3dIcons import cg_drawSnapshot import cg_drawFPS import cg_drawTimer import cg_gibs import cg_shadows import cg_swingSpeed import cg_bobroll import cg_bobpitch import cg_bobup import cg_runroll import cg_runpitch import cg_centertime import cg_markPolys import cg_items import cg_weapons import cg_entities import cg import cgs import BG_PlayerTouchesItem import BG_PlayerStateToEntityStateExtraPolate import BG_PlayerStateToEntityState import BG_TouchJumpPad import BG_AddPredictableEventToPlayerstate import BG_EvaluateTrajectoryDelta import BG_EvaluateTrajectory import BG_CanItemBeGrabbed import BG_FindItemForHoldable import BG_FindItemForPowerup import BG_FindItemForWeapon import BG_FindItem import bg_numItems import bg_itemlist import Pmove import PM_UpdateViewAngles import Com_Printf import Com_Error import Info_NextPair import Info_Validate import Info_SetValueForKey_Big import Info_SetValueForKey import Info_RemoveKey_Big import Info_RemoveKey import Info_ValueForKey import Com_TruncateLongString import va import Q_CountChar import Q_CleanStr import Q_PrintStrlen import Q_strcat import Q_strncpyz import Q_stristr import Q_strupr import Q_strlwr import Q_stricmpn import Q_strncmp import Q_stricmp import Q_isintegral import Q_isanumber import Q_isalpha import Q_isupper import Q_islower import Q_isprint import Com_RandomBytes import Com_SkipCharset import Com_SkipTokens import Com_sprintf import Com_HexStrToInt import Parse3DMatrix import Parse2DMatrix import Parse1DMatrix import SkipRestOfLine import SkipBracedSection import COM_MatchToken import COM_ParseWarning import COM_ParseError import COM_Compress import COM_ParseExt import COM_Parse import COM_GetCurrentParseLine import COM_BeginParseSession import COM_DefaultExtension import COM_CompareExtension import COM_StripExtension import COM_GetExtension import COM_SkipPath import Com_Clamp import PerpendicularVector import AngleVectors import MatrixMultiply import MakeNormalVectors import RotateAroundDirection import RotatePointAroundVector import ProjectPointOnPlane import PlaneFromPoints import AngleDelta import AngleNormalize180 import AngleNormalize360 import AnglesSubtract import AngleSubtract import LerpAngle import AngleMod import BoundsIntersectPoint import BoundsIntersectSphere import BoundsIntersect import BoxOnPlaneSide import SetPlaneSignbits import AxisCopy import AxisClear import AnglesToAxis import vectoangles import Q_crandom import Q_random import Q_rand import Q_acos import Q_log2 import VectorRotate import Vector4Scale import VectorNormalize2 import VectorNormalize import CrossProduct import VectorInverse import VectorNormalizeFast import DistanceSquared import Distance import VectorLengthSquared import VectorLength import VectorCompare import AddPointToBounds import ClearBounds import RadiusFromBounds import NormalizeColor import ColorBytes4 import ColorBytes3 import _VectorMA import _VectorScale import _VectorCopy import _VectorAdd import _VectorSubtract import _DotProduct import ByteToDir import DirToByte import ClampShort import ClampChar import Q_rsqrt import Q_fabs import Q_isnan import axisDefault import vec3_origin import g_color_table import colorDkGrey import colorMdGrey import colorLtGrey import colorWhite import colorCyan import colorMagenta import colorYellow import colorBlue import colorGreen import colorRed import colorBlack import bytedirs import Hunk_AllocDebug import FloatSwap import LongSwap import ShortSwap import CopyLongSwap import CopyShortSwap import qk_acos import qk_fabs import qk_abs import qk_tan import qk_atan2 import qk_cos import qk_sin import qk_sqrt import qk_floor import qk_ceil import qk_memcpy import qk_memset import qk_memmove import qk_sscanf import qk_vsnprintf import qk_strtol import qk_atoi import qk_strtod import qk_atof import qk_toupper import qk_tolower import qk_strncpy import qk_strstr import qk_strrchr import qk_strchr import qk_strcmp import qk_strcpy import qk_strcat import qk_strlen import qk_rand import qk_srand import qk_qsort lit align 1 LABELV $230 byte 1 87 byte 1 65 byte 1 82 byte 1 78 byte 1 73 byte 1 78 byte 1 71 byte 1 58 byte 1 32 byte 1 99 byte 1 104 byte 1 97 byte 1 110 byte 1 103 byte 1 101 byte 1 100 byte 1 32 byte 1 112 byte 1 114 byte 1 101 byte 1 100 byte 1 105 byte 1 99 byte 1 116 byte 1 101 byte 1 100 byte 1 32 byte 1 101 byte 1 118 byte 1 101 byte 1 110 byte 1 116 byte 1 10 byte 1 0
12.492588
45
0.856365
e6e45cc4041e9392b64892365b405a83430867b9
828
asm
Assembly
oeis/142/A142364.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/142/A142364.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/142/A142364.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A142364: Primes congruent to 13 mod 47. ; Submitted by Jon Maiga ; 13,107,389,577,859,953,1423,1987,2081,2269,2551,2833,2927,3209,3491,4243,4337,5653,6029,6217,6311,6781,8191,8849,9319,9413,9601,9883,10259,10729,12421,12703,13267,13831,14207,14489,14771,15053,15241,16087,16369,16651,17027,17497,18061,18719,19001,19471,19753,20129,20411,20599,20693,21163,21727,21821,22291,22573,24077,24359,24547,24923,25111,27179,27367,27743,28307,28871,29059,29153,29717,30187,30469,31033,31973,32443,32537,33289,34511,34981,36109,36767,37049,38083,38177,38459,39023,39869,40151 mov $1,6 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,2 mov $3,$1 mul $3,2 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,47 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 mul $0,2 sub $0,93
34.5
500
0.729469
3f3045f40da99f330f7dc79952481ccfac15622a
1,231
asm
Assembly
programs/oeis/166/A166350.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/166/A166350.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/166/A166350.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A166350: Table T(n,m) = m! read by rows. ; 1,1,2,1,2,6,1,2,6,24,1,2,6,24,120,1,2,6,24,120,720,1,2,6,24,120,720,5040,1,2,6,24,120,720,5040,40320,1,2,6,24,120,720,5040,40320,362880,1,2,6,24,120,720,5040,40320,362880,3628800,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000 mov $2,1 add $2,$0 lpb $0,1 mov $1,$0 mul $0,2 sub $0,$2 trn $0,1 mov $2,$1 lpe fac $1
87.928571
1,089
0.789602
4b088371b680bdf679a2c45a06ec663fda9e6244
481
asm
Assembly
programs/oeis/135/A135449.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135449.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/135/A135449.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A135449: Period 5: repeat 1, 9, -7, 3, 5. ; 1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1,9,-7,3,5,1 add $0,1 mov $1,16 mov $2,3 mov $3,4 lpb $0,1 sub $0,1 div $3,2 sub $2,$3 mov $3,$2 trn $2,$1 mul $3,2 sub $3,$2 mov $1,$3 mul $1,2 mov $2,8 mul $3,2 add $3,7 lpe sub $1,4 div $1,2 mul $1,2 add $1,1
18.5
212
0.47817
0ce0ffda099df2358d44fecd96e8aa939766bee6
578
asm
Assembly
programs/oeis/305/A305160.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/305/A305160.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/305/A305160.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A305160: a(n) = 123*2^n - 99. ; 24,147,393,885,1869,3837,7773,15645,31389,62877,125853,251805,503709,1007517,2015133,4030365,8060829,16121757,32243613,64487325,128974749,257949597,515899293,1031798685,2063597469,4127195037,8254390173,16508780445,33017560989,66035122077,132070244253,264140488605,528280977309,1056561954717,2113123909533,4226247819165,8452495638429,16904991276957,33809982554013,67619965108125,135239930216349,270479860432797,540959720865693,1081919441731485,2163838883463069,4327677766926237,8655355533852573 mov $1,2 pow $1,$0 sub $1,1 mul $1,123 add $1,24
64.222222
495
0.849481
4825fee61833e2194a07f8212b7b1e880fb90fc4
2,827
asm
Assembly
libtool/src/gmp-6.1.2/mpn/powerpc32/750/rshift.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
libtool/src/gmp-6.1.2/mpn/powerpc32/750/rshift.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
libtool/src/gmp-6.1.2/mpn/powerpc32/750/rshift.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl PowerPC 750 mpn_rshift -- mpn right shift. dnl Copyright 2002, 2003 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C 750: 3.0 C 7400: 3.0 C mp_limb_t mpn_rshift (mp_ptr dst, mp_srcptr src, mp_size_t size, C unsigned shift); C C This code is the same per-limb speed as mpn/powerpc32/rshift.asm, but C smaller and saving about 30 or so cycles of overhead. ASM_START() PROLOGUE(mpn_rshift) C r3 dst C r4 src C r5 size C r6 shift mtctr r5 C size lwz r8, 0(r4) C src[0] subfic r7, r6, 32 C 32-shift addi r5, r3, -4 C dst-4 slw r3, r8, r7 C return value bdz L(one) lwzu r9, 4(r4) C src[1] srw r8, r8, r6 C src[0] >> shift bdz L(two) L(top): C r3 return value C r4 src, incrementing C r5 dst, incrementing C r6 shift C r7 32-shift C r8 src[i-1] >> shift C r9 src[i] C r10 lwzu r10, 4(r4) slw r11, r9, r7 or r8, r8, r11 stwu r8, 4(r5) srw r8, r9, r6 bdz L(odd) C r8 src[i-1] >> shift C r9 C r10 src[i] lwzu r9, 4(r4) slw r11, r10, r7 or r8, r8, r11 stwu r8, 4(r5) srw r8, r10, r6 bdnz L(top) L(two): C r3 return value C r4 C r5 &dst[size-2] C r6 shift C r7 32-shift C r8 src[size-2] >> shift C r9 src[size-1] C r10 slw r11, r9, r7 srw r12, r9, r6 C src[size-1] >> shift or r8, r8, r11 stw r12, 8(r5) C dst[size-1] stw r8, 4(r5) C dst[size-2] blr L(odd): C r3 return value C r4 C r5 &dst[size-2] C r6 shift C r7 32-shift C r8 src[size-2] >> shift C r9 C r10 src[size-1] slw r11, r10, r7 srw r12, r10, r6 or r8, r8, r11 stw r12, 8(r5) C dst[size-1] stw r8, 4(r5) C dst[size-2] blr L(one): C r3 return value C r4 C r5 dst-4 C r6 shift C r7 C r8 src[0] srw r8, r8, r6 stw r8, 4(r5) C dst[0] blr EPILOGUE(mpn_rshift)
18.357143
79
0.671029
ac75c29641d411e5c7476d9876cd14a212699a35
4,131
asm
Assembly
qxl/qxl.lptp.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
qxl/qxl.lptp.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
qxl/qxl.lptp.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; QXL_LPTP.ASM Parallel port server and setup ; check which LPT ports are available (for the moment 1-3 only) and set them up qxl_lptp_setup: ASSUME ds:DGROUP push es xor ax,ax mov es,ax ASSUME es:BASESEG mov bx, OFFSET qxl_lptbuff mov cx,-1 mov dx,cx qls_loop: inc cx ; next LPT cmp cx,3 ; all done? je qls_done mov bp,cx add bp,bp ; index tables mov ax,es:add_lpt1[bp] ; address of LPTn test ax,ax jz qls_loop ; ... none mov lpt_notbusy,-1 ; say ports not busy mov dx,cx ; highest port mov lpt_n[bp],ax ; set address mov lpt_buff[bp],bx ; and buffer address add bx,qxl_buffalloc mov al,1 ; set bit shl ax,cl or mes1_lpt,al ; mark in setup message or flowpc_lpt, al ; and in flow control jmp qls_loop qls_done: pop es ASSUME es:DGROUP inc dx test dx,dx ; highest port number 1 to n jz qls_ret mov lpt_maxport,dx mov dx,pic_mask in al,dx or al,080h ; enable irq7 (bit 7) out dx,al mov cx, OFFSET qxl_lptp_server ; but install server anyway!! mov si, OFFSET int_rq7i call qxl_setvr ; set up server ; ; LPT reset (set) ports ; qxl_lptp_reset: mov lpt_notbusy,-1 mov lpt_txdata,0 mov cx,lpt_maxport qls_resetp: mov bp,cx dec bp add bp,bp mov bx,[bp+lpt_buff] test bx,bx jz qls_rseloop mov ax,qxl_buffsize call buff_set ; set up buffer mov [bp+lpt_room],ax ; room in buffer qls_rseloop: loop qls_resetp qls_ret: retn ; ; LPT restore ports - no state was saved, cannot restore ; qxl_lptp_restore: retn ; ; LPT server, in this version, the interrupt server merely marks the LPT ports as not busy ; qxl_lptp_server: push ds push ax ASSUME ds:DGROUP mov ax, DGROUP mov ds,ax mov al,pic_eof ; end of interrupt out pic_ctrl,al mov lpt_notbusy,al ; enable printer again pop ax pop ds iretf ; ; LPT open routine - for the moment NOP ; qxl_lptp_open: jmp qxl_rxm_loop ; ; LPT close routine - for the moment NOP ; qxl_lptp_close: jmp qxl_rxm_loop ; ; LPT transmit routine (called from comms server) - buffers the data in the message ; qxl_lptp_tx: mov bp,bx mov cx,ax add ax,3 ; round up and al,0fch add ax,si ; next message push ax mov bx,[bp+lpt_buff] ; buffer test bx,bx jz qlt_done qlt_loop: lodsb call buff_pbyte ; save data jz qlt_stop dec [bp+lpt_room] ; less room loop qlt_loop cmp [bp+lpt_room],qxl_buffmin jg qlt_data qlt_stop: mov al,-2 mov cx,bp shr cx,1 shl al,cl and flowpc_lpt,al ; clear handshake bit mov flowpc_head,flowpc_len ; and send message qlt_data: mov lpt_txdata,-1 ; say that there is data in queue qlt_done: pop si ; next message jmp qxl_rxm_loop ; ; LPT send routine - called from main loop to transfer data from buffer to port ; In this version the LPT port interrupt flag is not checked / cleared ; qxl_do_lptp: ASSUME ds:DGROUP ASSUME es:DGROUP xor ax,ax mov lpt_txdata,al ; say data taken (we may reset this later) mov cx, lpt_maxport test cx,cx ; any ports? jz qld_done qld_ploop: mov bp,cx dec bp ; internally, ports are from 0 - maxport-1 add bp,bp mov dx,[bp+lpt_n] ; any printer port? test dx,dx jz qld_eploop qld_bloop: inc dx ; read port status in al,dx dec dx test al,al ; bit 7 high jns qld_nready ; ... no mov bx,[bp+lpt_buff] call buff_gbyte ; get data byte jz qld_ndata inc [bp+lpt_room] out dx,al ; send data byte add dx,2 mov al,lpt_stblow ; and strobe out dx,al out dx,al mov al,lpt_stbhigh out dx,al sub dx,2 jmp qld_bloop qld_nready: dec lpt_txdata ; there is still data to go qld_ndata: cmp [bp+lpt_room],qxl_buffmin jle qld_eploop mov al,1 dec cl shl al,cl inc cl test flowpc_lpt,al jnz qld_eploop or flowpc_lpt,al ; set handshake bit mov flowpc_head,flowpc_len ; and send message qld_eploop: loop qld_ploop qld_done: retn
19.125
91
0.654321
d068a5ff46c04ceb286daad824867b67b56f08b8
3,669
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1239.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1239.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1239.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %rax push %rbx push %rcx push %rdx // Faulty Load lea addresses_WT+0x6693, %r10 nop and $6177, %rax mov (%r10), %ecx lea oracles, %rdx and $0xff, %rcx shlq $12, %rcx mov (%rdx,%rcx,1), %rcx pop %rdx pop %rcx pop %rbx pop %rax pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WT', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
94.076923
2,999
0.663396
5b67e5ebcb301fa24eda5a36db0174cefaf4742e
399
asm
Assembly
oeis/152/A152885.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/152/A152885.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/152/A152885.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A152885: Number of descents beginning and ending with an odd number in all permutations of {1,2,...,n}. ; Submitted by Jamie Morken(s2) ; 0,0,2,6,72,360,4320,30240,403200,3628800,54432000,598752000,10059033600,130767436800,2440992153600,36614882304000,753220435968000,12804747411456000,288106816757760000,5474029518397440000 mov $1,$0 add $0,2 div $0,2 bin $0,2 lpb $1 mul $0,$1 sub $1,1 lpe
30.692308
188
0.766917
0e0b657bd78634210e30c7d5f0c568e3bcce299c
2,474
asm
Assembly
cpm2/RomWBW/Source/HBIOS/ay.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
cpm2/RomWBW/Source/HBIOS/ay.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
cpm2/RomWBW/Source/HBIOS/ay.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ;====================================================================== ; PSG AY-3-8910 DRIVER FOR CONSOLE BELL ; WILL ALSO WORK WITH YM2149 ;====================================================================== ; AY_RSEL .EQU $9A AY_RDAT .EQU $9B AY_ACR .EQU $9C AY_R0CHAP .EQU $00 AY_R1CHAP .EQU $01 AY_R2CHBP .EQU $02 AY_R3CHBP .EQU $03 AY_R7ENAB .EQU $07 AY_R8AVOL .EQU $08 AY_R9BVOL .EQU $09 ; ;====================================================================== ; PSG AY-3-8910 DRIVER - INITIALIZATION ;====================================================================== ; AY_INIT: CALL NEWLINE ; FORMATTING PRTS("AY: IO=0x$") LD A,AY_RSEL CALL PRTHEXBYTE CALL AY_PROBE ; CHECK FOR HW EXISTENCE JR Z,AY_INIT1 ; CONTINUE IF PRESENT ; ; HARDWARE NOT PRESENT ; PRTS(" NOT PRESENT$") OR $FF ; SIGNAL FAILURE RET ; AY_INIT1: CALL AY_INIT2 CALL AY_BEEP AY_INIT2: LD D,AY_R7ENAB ; SET MIXER CONTROL / IO ENABLE LD E,$FF ; $FF - 11 111 111 CALL AY_WRTPSG ; I/O PORTS DISABLED, NOISE CHANNEL C, B, A DISABLE, TONE CHANNEL C, B, A DISABLE ; LD B,2 LD D,AY_R8AVOL ; SET VOLUME TO 0 LD E,$00 AY_QUIET: CALL AY_WRTPSG ; CYCLING THROUGH ALL CHANNELS INC A DJNZ AY_QUIET RET ; ; PLAY A BEEP TONE ON CENTER CHANNEL (LEFT AND RIGHT SPEAKERS) ; AY_BEEP: LD D,AY_R2CHBP ; SET TONE PERIOD LD E,$55 ; CHANNEL B - R00 & R01 CALL AY_WRTPSG ; $0055 = XXXX0000 01010101 LD D,AY_R3CHBP LD E,0 CALL AY_WRTPSG ; LD D,AY_R7ENAB ; $FD = 11 111 101 LD E,$FD ; SET MIXER CONTROL / IO ENABLE CALL AY_WRTPSG ; I/O PORTS DISABLED, NOISE CHANNEL C, B, A DISABLE, TONE CHANNEL B ENABLE ; LD D,AY_R9BVOL LD E,$07 ; SET CHANNEL B VOLUME TO 50% (7/16) CALL AY_WRTPSG ; CALL LDELAY ; HALF SECOND RET ; ; WRITE DATA E TO PSG REG A ; AY_WRTPSG: HB_DI #IF ((PLATFORM == PLT_N8) | (PLATFORM == PLT_MK4) | (PLATFORM == PLT_RC180)) IN0 A,(Z180_DCNTL) ; GET WAIT STATES PUSH AF ; SAVE VALUE OR %00110000 ; FORCE SLOW OPERATION (I/O W/S=3) OUT0 (Z180_DCNTL),A ; AND UPDATE DCNTL #ENDIF LD A,D OUT (AY_RSEL),A LD A,E OUT (AY_RDAT),A #IF ((PLATFORM == PLT_N8) | (PLATFORM == PLT_MK4) | (PLATFORM == PLT_RC180)) POP AF ; GET SAVED DCNTL VALUE OUT0 (Z180_DCNTL),A ; AND RESTORE IT #ENDIF HB_EI RET ; ; CHECK THERE IS A DEVICE PRESENT ; AY_PROBE: LD A,$FF OUT (AY_ACR),A ; INIT AUX CONTROL REG XOR A RET
24.254902
99
0.56831
4758463a5c1f193b6832e45b5dbe7b3a85c37730
177
asm
Assembly
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_size.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_size.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_size.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void *w_vector_size(w_vector_t *v) SECTION code_adt_w_vector PUBLIC w_vector_size defc w_vector_size = asm_w_vector_size INCLUDE "adt/w_vector/z80/asm_w_vector_size.asm"
16.090909
48
0.824859
fcf30064f418152429885492d7b2690568dd4fb2
106
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/Chloe/_ff_ao_Chloe.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/Chloe/_ff_ao_Chloe.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/Chloe/_ff_ao_Chloe.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION rodata_font_fzx PUBLIC _ff_ao_Chloe _ff_ao_Chloe: BINARY "font/fzx/fonts/ao/Chloe/Chloe.fzx"
10.6
42
0.801887
e4a3a09ba918c27f9421204f7b9117e4581eda58
386
asm
Assembly
lab_09/ConsoleApplication1/x_u_y.asm
Winterpuma/bmstu_MDPL
28fb1f93e5ce4321c98ff6cf1b997972a48724ee
[ "MIT" ]
14
2019-02-25T11:09:12.000Z
2022-03-12T23:29:11.000Z
lab_09/ConsoleApplication1/x_u_y.asm
Winterpuma/bmstu_MDPL
28fb1f93e5ce4321c98ff6cf1b997972a48724ee
[ "MIT" ]
null
null
null
lab_09/ConsoleApplication1/x_u_y.asm
Winterpuma/bmstu_MDPL
28fb1f93e5ce4321c98ff6cf1b997972a48724ee
[ "MIT" ]
null
null
null
.386 .model FLAT, C PUBLIC X_U_Y .CODE X_U_Y: PUSH EBP MOV EBP, ESP ADD EBP, 8 MOV EAX, [EBP] ; X MOV EBX, [EBP + 4] ; Y MOV ECX, [EBP + 8] ; L XOR EDX, EDX COMP: BT [EBX], EDX JNC E_COMP BTS [EAX], EDX E_COMP: inc EDX cmp EDX, 32 JNE RE_COMP XOR EDX, EDX ADD EAX, 4 ADD EBX, 4 RE_COMP: LOOP COMP EXIT: POP EBP RET END
9.897436
24
0.546632
560db34ff6aad56e445f90b3642e13b5e03a44c2
906
asm
Assembly
src/asm/win64/sltstr.asm
Pantarheon/libkoliba
66c2bb5ad581251bbaa8d226cae07ed6d66398fa
[ "BSD-3-Clause" ]
null
null
null
src/asm/win64/sltstr.asm
Pantarheon/libkoliba
66c2bb5ad581251bbaa8d226cae07ed6d66398fa
[ "BSD-3-Clause" ]
null
null
null
src/asm/win64/sltstr.asm
Pantarheon/libkoliba
66c2bb5ad581251bbaa8d226cae07ed6d66398fa
[ "BSD-3-Clause" ]
null
null
null
;; sltstr.asm ;; ;; Copyright 2021 G. Adam Stanislav ;; All rights reserved ;; ;; nasm -f win64 sltstr.asm section .text default rel EXTERN KOLIBA_PrintSlttFormat, KOLIBA_ScanSlttFormat EXTERN KOLIBA_DoublesToString, KOLIBA_StringToDoubles GLOBAL KOLIBA_SlutToString, KOLIBA_StringToSlut KOLIBA_SlutToString: ; On Entry: ; ; RCX = address of string to write to ; RDX = address of input SLUT, constant ; R8D = bytes in string, must be 414 or more. ; ; On Exit: ; mov r9d, 24 lea r10, [KOLIBA_PrintSlttFormat] jmp KOLIBA_DoublesToString align 16, int3 KOLIBA_StringToSlut: ; On Entry: ; ; RCX = address of SLUT to fill out ; RDX = address of a SLTT string ; ; On Exit: ; ; RAX = address of the SLUT, or NULL mov r8d, 24 lea r9, [KOLIBA_ScanSlttFormat] jmp KOLIBA_StringToDoubles section .drectve info db '-export:KOLIBA_SlutToString ' db '-export:KOLIBA_StringToSlut '
16.777778
53
0.731788
695e424d4212e727da92f4891a8948cbc5a05231
6,682
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_108.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_108.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_108.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0x1b1d5, %r13 nop nop add %r12, %r12 mov $0x6162636465666768, %r14 movq %r14, %xmm5 movups %xmm5, (%r13) nop nop nop nop nop sub %r8, %r8 lea addresses_WT_ht+0x1c1d5, %r12 cmp $6929, %r13 mov (%r12), %edi nop add $18302, %r13 lea addresses_A_ht+0x1c6d5, %rsi lea addresses_WT_ht+0x190d5, %rdi nop nop nop nop nop sub %r8, %r8 mov $112, %rcx rep movsb nop nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x745d, %r13 nop inc %r12 mov $0x6162636465666768, %r8 movq %r8, %xmm0 and $0xffffffffffffffc0, %r13 movaps %xmm0, (%r13) nop nop nop xor $51196, %rcx lea addresses_A_ht+0xf9d5, %r14 clflush (%r14) nop sub %r8, %r8 movb $0x61, (%r14) nop dec %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx // Load lea addresses_D+0x1df55, %r10 nop xor %rdx, %rdx movb (%r10), %r14b and %r10, %r10 // Store lea addresses_D+0x1ddd5, %r14 nop nop nop nop nop cmp $48950, %rbp mov $0x5152535455565758, %rdi movq %rdi, %xmm6 movups %xmm6, (%r14) nop inc %rdi // Load lea addresses_WT+0x1a9d5, %r10 nop nop nop add $64740, %r14 vmovups (%r10), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %rcx nop nop nop nop nop sub $30731, %r14 // Store lea addresses_UC+0x1b1d5, %rbp clflush (%rbp) nop sub $55437, %rdx movw $0x5152, (%rbp) nop nop lfence // Store lea addresses_UC+0x1cad5, %rcx nop nop nop nop add $60237, %rax movw $0x5152, (%rcx) cmp %rbp, %rbp // Store lea addresses_UC+0x1e7b3, %r10 nop nop nop nop nop add $23792, %rbp mov $0x5152535455565758, %rdx movq %rdx, (%r10) nop and $29583, %r14 // Faulty Load lea addresses_WT+0x1a9d5, %r10 dec %rbp mov (%r10), %r14d lea oracles, %rdx and $0xff, %r14 shlq $12, %r14 mov (%rdx,%r14,1), %r14 pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}} {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}} [Faulty Load] {'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 11}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 16, 'NT': False, 'same': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
35.354497
2,999
0.653996
b3921910b9beb822759acd233f7a2c7ab29e2e9c
678
asm
Assembly
programs/oeis/000/A000999.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/000/A000999.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/000/A000999.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A000999: 5-adic valuation of binomial(2*n,n): largest k such that 5^k divides binomial(2*n, n). ; 0,0,0,1,1,0,0,0,1,1,0,0,0,2,2,1,1,1,2,2,1,1,1,2,2,0,0,0,1,1,0,0,0,1,1,0,0,0,2,2,1,1,1,2,2,1,1,1,2,2,0,0,0,1,1,0,0,0,1,1,0,0,0,3,3,2,2,2,3,3,2,2,2,3,3,1,1,1,2,2,1,1,1,2,2,1,1,1,3,3,2,2,2,3,3,2,2,2,3,3,1,1,1,2,2,1,1,1,2,2,1,1,1,3,3,2,2,2,3,3,2,2,2,3,3,0,0,0,1,1,0,0,0,1,1,0,0,0,2,2,1,1,1,2,2,1,1,1,2,2,0,0,0,1,1,0,0,0,1,1,0,0,0,2,2,1,1,1,2,2,1,1,1,2,2,0,0,0,1,1,0,0,0,1,1,0,0,0,3,3,2,2,2,3,3,2,2,2,3,3,1,1,1,2,2,1,1,1,2,2,1,1,1,3,3,2,2,2,3,3,2,2,2,3,3,1,1,1,2,2,1,1,1,2,2,1,1,1,3,3,2,2,2,3,3,2,2,2,3,3 mul $0,2 lpb $0 add $2,$0 div $0,5 mod $2,2 add $1,$2 mul $2,2 lpe
56.5
501
0.526549
9c4f5bfdeb04fd0e8a80c6d012e807208a18d721
8,887
asm
Assembly
Examples/Fibonacci.asm
Pyxxil/Ncurses-LC3-Simulator
34b71f6dd6f53eb60370142f184c6e1dc82a89bb
[ "MIT" ]
3
2016-10-20T05:10:17.000Z
2022-02-21T19:47:05.000Z
Examples/Fibonacci.asm
Pyxxil/Ncurses-LC3-Simulator
34b71f6dd6f53eb60370142f184c6e1dc82a89bb
[ "MIT" ]
null
null
null
Examples/Fibonacci.asm
Pyxxil/Ncurses-LC3-Simulator
34b71f6dd6f53eb60370142f184c6e1dc82a89bb
[ "MIT" ]
2
2016-10-20T05:23:59.000Z
2020-10-24T05:09:24.000Z
; ; A program that iteratively calculates the first 3 to 23 fibonacci numbers, ; inclusively, based on the users input. It will keep asking for input until ; an acceptable value is input. ; ; -------------------------------------------------------------- ; What each Register is used for in the two parts of the program ; -- Getting input ; -- Converting the current fibonacci number to ASCII ; -- Iteratively finding the Nth Fibonacci Number ; -------------------------------------------------------------- ; NOTE: As R1 is used as the input and the counter, we don't want to overwrite at ; all by anything other than the Iteration part of the program. ; Getting input | Converting to ASCII | Iteration ; R0 -- Input and output | R0 -- Output | R0 -- Unused ; R1 -- The current input | R1 -- Unused | R1 -- Loop counter ; R2 -- Unused | R2 -- The digit position | R2 -- Unused ; R3 -- Used to compare values | R3 -- Number of digits output | R3 -- The lower fibonacci number ; R4 -- Used to multiply by ten | R4 -- The current place | R4 -- The higher fibonacci number ; R5 -- Used as the character count | R5 -- The number to convert | R5 -- Current Fibonacci Number ; R6 -- Used to multiply by ten | R6 -- The current digit | R6 -- Temporary Value ; R7 -- Return address | R7 -- Return address | R7 -- Return address .ORIG 0x3000 ; Prompt for input, also the entry for the program OUT_PROMPT: LEA R0, PROMPT ; Load the prompt into R0 PUTS ; Put it to the display ; Initialise Registers for the beginning of the program AND R5, R5, #0 ; Reset R5 ADD R5, R5, #10 ; Set R5 to ten, its our character counter LD R1, NUMBER ; Load the number into R1 JSR CLEAR_FLAG ; Clear any flags added ; Repeatedly retrieve a character as input until a newline is pressed, or 10 characters ; have been input GET_INPUT: GETC ; Get a character OUT ; Put the character to the output ADD R3, R0, #-10 ; Check if the input was the newline character BRz CHECK_INPUT ; If yes, check what was input ; Compare input character against 9 LD R3, ASCII_NINE ; Load the value in ASCII_NINE into R3 NOT R3, R3 ; Start two's compliment ADD R3, R3, #1 ADD R3, R0, R3 ; Compare ascii values BRp FLAG_THAT ; If the character's ascii value is greater than 9's, flag it ; Compare input character against 0 LD R3, ASCII_ZERO ; Load the value of ASCII_ZER0 into R3 NOT R3, R3 ; Start two's compliment ADD R3, R3, #1 ADD R3, R3, R0 ; Compare the ascii values BRn FLAG_THAT ; If the character's ascii value is less than 0's, flag it ; So, the character is a digit. Update the number. ADD R6, R5, #-10 BRn CHECK_ZERO BRz SET_TO BRnzp MULTIPLY_BY_TEN ; Decrement the input counter by one DECREMENT_INPUT_COUNTER: ADD R5, R5, #-1 ; Subtract 1 from the character counter stored in R5 BRz OUT_PROMPT ; We've reached the max character count, so start again. BRnzp GET_INPUT ; Set the number to the input SET_TO: ADD R1, R3, #0 ; Set the number to the current input BRnzp DECREMENT_INPUT_COUNTER ; Multiply the number by 10 MULTIPLY_BY_TEN: JSR CHECK_FLAG ; Jump to check if we have flagged something, this will only return here if ; we have not flagged something. ADD R4, R1, R1 ; Store 2x R1 in R4 ADD R6, R4, R4 ; Store 4x R1 in R6 ADD R6, R6, R6 ; Store 8x R1 in R6 ADD R1, R6, R4 ; Store 10x R1 in R1 ADD R1, R1, R3 ; Add the current number ADD R4, R1, #-16 ; We don't want numbers greater than 23. ADD R4, R4, #-7 ; Because we can't add numbers less than -16, we do this twice BRp FLAG_THAT ; If the number is greater than 23, no need to keep going BRnzp DECREMENT_INPUT_COUNTER ; Check if we've flagged something, and if so then skip over the input CHECK_FLAG: LD R4, FLAG ; Load the value in FLAG into R4 ADD R4, R4, #-1 ; Add -1 to it ; If the value in R4 is 0, then the FLAG was set BRz DECREMENT_INPUT_COUNTER RET ; Return ; Check if the previous number input was a zero, and if so just flag it because its not ; useable. CHECK_ZERO: ADD R6, R1, #-1 ; Set R6 to be equal to R1 - 1 BRn FLAG_THAT ; If R6 is less than 0, then R1 must have been 0, so flag it BRnzp MULTIPLY_BY_TEN ; Otherwise, multiply the current number by 10 ; Something wrong was entered FLAG_THAT: LEA R4, FLAG ; Load the address of FLAG into R4 AND R6, R6, #0 ; Reset R6 ADD R6, R6, #1 ; Set R6 to be 1 STR R6, R4, #0 ; Store R6's value (1) into the address of R4, with offset 0 BRnzp DECREMENT_INPUT_COUNTER ; Clear the flag CLEAR_FLAG: LEA R4, FLAG ; Load the address of FLAG into R4 AND R6, R6, #0 ; Reset R6 STR R6, R4, #0 ; Store R6's value (0) into the address of R4, with offset 0 RET ; Return ; Check the input for anything incorrect CHECK_INPUT: LD R3, FLAG ; Load whats in FLAG to R3 ADD R3, R3, #-1 ; If R3 == 1, then something went wrong BRzp OUT_PROMPT ; so start again. ADD R4, R1, #-3 ; We also don't want numbers less than 3 BRn OUT_PROMPT ; so start again. ; Initialise the registers to be used for the loop AND R3, R3, #0 ; Reset R3 to be used as the lower number AND R4, R4, #0 ; Reset R4 to be used as the higher number ADD R4, R4, #1 ; Start at 1 BRnzp ITERATIVE_FIBONACCI ; Iteratively retrieve each fibonacci number ; Take a number in R5 and convert each digit to ASCII to print to the display CONVERT_TO_ASCII: ST R7, SAVER7 ; Store the return address ST R4, SAVER4 ST R3, SAVER3 LEA R2, NUMBERS ; Load the numbers to use into R2 AND R6, R6, #0 ; The digit in the current place AND R3, R3, #0 ; The number of digits displayed ; Outer loop to initialise for the inner loop OUTER_LOOP: LDR R4, R2, #0 ; Load the current place into R4 BRz END ; If that number is 0, we're done. NOT R4, R4 ; Set R4 for two's compliment ADD R4, R4, #1 ; Inner loop which handles all of the subtracting INNER_LOOP: ADD R5, R5, R4 ; Subtract the current number from R5 BRn CHECK_DIGIT ; and if R5 is now negative, then we've got the digit in R6 ADD R6, R6, #1 ; Otherwise, add 1 the digit in the current place BRnzp INNER_LOOP ; And loop again ; We've found what the digit is, so lets check some things CHECK_DIGIT: ADD R6, R6, #0 ; If R6 is greater than 0, output it BRp OUTPUT ADD R3, R3, #0 ; Otherwise, if there are no other digits output then skip BRz INCREMENT ; Output the digit at the current place OUTPUT: LD R0, ASCII_ZERO ; Load the ascii value for 0 into R0 ADD R0, R0, R6 ; Add the digit to it to get the ascii value for it OUT ; Display it ADD R3, R3, #1 ; We've output a digit, so increment the amount of digits we've output ; The end of a loop, so lets increment a few things INCREMENT: ADD R2, R2, #1 ; Increment the pointer to the numbers AND R6, R6, #0 ; Clear R6 so it can be used again Not R4, R4 ; Set R4 for two's compliment because we put the number ADD R4, R4, #1 ; into the negative, so we need to make it positive again ADD R5, R5, R4 ; Make R5 positive. BRnzp OUTER_LOOP ; and loop again. ; We've reached the last digit, so display it and return END: LD R0, ASCII_ZERO ; We want to find the digits ascii value, so add it to ADD R0, R0, R5 ; the ascii value for 0 OUT LEA R0, SPACE ; Print a space character between each fibonacci number PUTS LD R3, SAVER3 ; Reinitalise the values in R3 and R4 LD R4, SAVER4 ; Because we need them for the next iteration LD R7, SAVER7 ; Reload the return address RET ; and return ; -------------------------------------------- ; Iteratively calaculate each fibonacci number ; -------------------------------------------- ITERATIVE_FIBONACCI: ADD R5, R4, #0 ; Set R5 to equal the higher number JSR CONVERT_TO_ASCII ; Convert that fibonacci number to ASCII and print it ; Put all registers to their correct values ADD R6, R4, #0 ; Set R6 to equal the value in R4 (higher fibonacci number) ADD R4, R3, R6 ; Set R4 to equal the lower + higher values ADD R3, R6, #0 ; Set R3 to equal the previous higher number ADD R1, R1, #-1 ; Subtract 1 from the loop counter BRz FINISH ; We've reached the last number we want, so finish BRnzp ITERATIVE_FIBONACCI ; Othwerwise, loop again. ; Finish the program FINISH: HALT ; Strings that will be used throughout the program PROMPT .STRINGZ "\nEnter a number from 3 to 23: " SPACE .STRINGZ " " NUMBER .FILL #0 ; The number that we will use as the number of fibonacci numbers we want FLAG .FILL #0 ; A way to tell the program we've received input we don't want ; ASCII values that will be used to check input, as well as convert to ASCII ASCII_ZERO .FILL x30 ASCII_THREE .FILL x33 ASCII_NINE .FILL x39 ; Values that we will use to output the current fibonacci number to the screen NUMBERS .FILL #10000 .FILL #1000 .FILL #100 .FILL #10 .FILL #0 ; So we can tell when we've reached the last digit ; Save the value of some registers SAVER7 .FILL b0 SAVER4 .FILL #0 SAVER3 .FILL #0 .END
36.572016
98
0.693147
3ba344dedd919cde289d7263af59455e5f53996b
5,667
asm
Assembly
neo430/neo430-master/sw/common/crt0.asm
odrisci/LimeNET-Micro_GW
6bc0c9334fb9d60361c58e1deb2a028064beb1d4
[ "Apache-2.0" ]
48
2017-09-26T16:57:26.000Z
2022-01-26T08:51:26.000Z
neo430/neo430-master/sw/common/crt0.asm
luigifcruz/LimeSDR-Mini_GW
c1eed8fdbe52087b3946040b284209f32ce1d3a9
[ "Apache-2.0" ]
3
2018-09-20T13:13:36.000Z
2020-01-23T19:12:54.000Z
neo430/neo430-master/sw/common/crt0.asm
luigifcruz/LimeSDR-Mini_GW
c1eed8fdbe52087b3946040b284209f32ce1d3a9
[ "Apache-2.0" ]
34
2017-09-26T19:23:26.000Z
2022-02-03T10:13:41.000Z
; ################################################################################################# ; # < crt0.asm - general neo430 application start-up code > # ; # ********************************************************************************************* # ; # This file is part of the NEO430 Processor project: https://github.com/stnolting/neo430 # ; # Copyright by Stephan Nolting: stnolting@gmail.com # ; # # ; # This source file may be used and distributed without restriction provided that this copyright # ; # statement is not removed from the file and that any derivative work contains the original # ; # copyright notice and the associated disclaimer. # ; # # ; # This source file is free software; you can redistribute it and/or modify it under the terms # ; # of the GNU Lesser General Public License as published by the Free Software Foundation, # ; # either version 3 of the License, or (at your option) any later version. # ; # # ; # This source 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 Lesser General Public License for more details. # ; # # ; # You should have received a copy of the GNU Lesser General Public License along with this # ; # source; if not, download it from https://www.gnu.org/licenses/lgpl-3.0.en.html # ; # ********************************************************************************************* # ; # Stephan Nolting, Hannover, Germany 27.12.2017 # ; ################################################################################################# .file "crt0.asm" .section .text .p2align 1,0 __crt0_begin: ; ----------------------------------------------------------- ; Get required system info ; ----------------------------------------------------------- mov &0xFFE8, r8 ; = DMEM (RAM) base address mov &0xFFEA, r1 ; = DMEM (RAM) size in byte ; ----------------------------------------------------------- ; Minimal required hardware setup ; ----------------------------------------------------------- mov #0, r2 ; clear status register & disable interrupts add r8, r1 ; r1 = stack pointer = end of RAM mov #0x4700, &0xFFB8 ; deactivate watchdog ; ----------------------------------------------------------- ; Initialize all IO device registers (set to zero) ; ----------------------------------------------------------- ; This loop does not trigger any operations as the CTRL registers, which are located ; at offset 0 of the according device, are set to zero resulting in disabling the ; specific device. mov #0xFF80, r9 ; beginning of IO section __crt0_clr_io: tst r9 ; until the end -> wrap-arounf to 0 jeq __crt0_clr_io_end mov #0, 0(r9) ; clear entry incd r9 jmp __crt0_clr_io __crt0_clr_io_end: ; ----------------------------------------------------------- ; Clear complete DMEM (including .bss section) ; ----------------------------------------------------------- __crt0_clr_dmem: cmp r8, r1 ; base address equal to end of RAM? jeq __crt0_clr_dmem_end mov #0, 0(r8) ; clear entry incd r8 jmp __crt0_clr_dmem __crt0_clr_dmem_end: ; ----------------------------------------------------------- ; Copy initialized .data section from ROM to RAM ; ----------------------------------------------------------- mov #__data_start_rom, r5 mov #__data_end_rom, r6 mov #__data_start, r7 __crt0_cpy_data: cmp r5, r6 jeq __crt0_cpy_data_end mov @r5+, 0(r7) incd r7 jmp __crt0_cpy_data __crt0_cpy_data_end: ; ----------------------------------------------------------- ; Re-init SR and clear all pending IRQs from buffer ; ----------------------------------------------------------- mov #(1<<14), r2 ; this flag auto clears ; ----------------------------------------------------------- ; Initialize all remaining registers ; ----------------------------------------------------------- mov #0, r4 ; mov #0, r5 ; -- is already initialized ; mov #0, r6 ; -- is already initialized ; mov #0, r7 ; -- is already initialized ; mov #0, r8 ; -- is already initialized ; mov #0, r9 ; -- is already initialized mov #0, r10 mov #0, r11 mov #0, r12 ; set argc = 0 mov #0, r13 mov #0, r14 mov #0, r15 ; ----------------------------------------------------------- ; This is where the actual application is started ; ----------------------------------------------------------- __crt0_start_main: call #main ; ----------------------------------------------------------- ; Go to endless sleep mode if main returns ; ----------------------------------------------------------- __crt0_this_is_the_end: mov #0, r2 ; deactivate IRQs mov #0x4700, &0xFFB8 ; deactivate watchdog mov #(1<<4), r2 ; set CPU to sleep mode nop .Lfe0: .size __crt0_begin, .Lfe0-__crt0_begin
43.930233
99
0.419622
1de29b6b94eb8335eb6244757d7762c55d3fe059
303
asm
Assembly
CodeGenA32/TestData/malloc.a32.asm
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
171
2020-01-30T16:58:07.000Z
2022-03-27T22:12:17.000Z
CodeGenA32/TestData/malloc.a32.asm
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
14
2021-05-15T02:12:09.000Z
2022-03-16T04:16:18.000Z
CodeGenA32/TestData/malloc.a32.asm
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
5
2021-03-01T20:52:13.000Z
2022-03-07T06:35:03.000Z
# malloc # ======================================== .fun main NORMAL [U32] = [] .bbl start mov size:U32 1 .bbl loop pusharg size bsr malloc poparg addr:A32 bitcast x:U32 addr pusharg x bsr print_x_ln mul size size 4 blt size 0x1000000 loop pusharg 0:U32 ret
16.833333
42
0.537954
b2f1ca1c056d3dc5e01ee95b6d89cf188e0f7a5a
617
asm
Assembly
oeis/060/A060073.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060073.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060073.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060073: a(n) = (n^(n-1)-1)/(n-1)^2. ; 1,2,7,39,311,3268,42799,672605,12345679,259374246,6140565047,161792257795,4696537119847,148943500129544,5124095576030431,190082780764323705,7563707819165039903,321380710796022350410,14523213296398891966759,695546073617378871592991,35191494265534895629421431,1875715774330570610344505292,105051652240885643072548950287,6167905692361980780131287044949,378838128012748142202872263901551,24294679390918133352413413906374638,1623825353382979368144852452153860759,112934823766766851449763732175009505915 add $0,1 mov $1,1 add $1,$0 pow $1,$0 sub $1,1 div $1,$0 div $1,$0 mov $0,$1
51.416667
499
0.852512
f249e4390e7928fc49193245bea577288501dd0d
156
asm
Assembly
8086/2log/and.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
1
2022-01-01T11:27:43.000Z
2022-01-01T11:27:43.000Z
8086/2log/and.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
null
null
null
8086/2log/and.asm
iamvk1437k/mpmc
3640b29f29b3ffa78747b13b2ca8ac77c49695eb
[ "MIT" ]
null
null
null
MOV AX, 1F21H ;move data 1F21 to the register AX MOV BX, 1134H ;move data 1134 to the register BX AND AX, BX ;AND operation MOV [DI], AX; HLT
26
51
0.660256
f24e6b53e3bcecf41a306f4e47658dc25fc2e2ad
2,511
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_10_1744.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_10_1744.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_10_1744.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x81f3, %rsi lea addresses_A_ht+0x1b8b3, %rdi nop nop nop nop nop and $52769, %rbp mov $66, %rcx rep movsl cmp $39605, %r12 lea addresses_D_ht+0x20b3, %rax nop nop nop nop and %r14, %r14 mov $0x6162636465666768, %rbp movq %rbp, %xmm6 and $0xffffffffffffffc0, %rax vmovaps %ymm6, (%rax) add %rbp, %rbp lea addresses_WT_ht+0xa0f3, %rsi lea addresses_UC_ht+0x90b3, %rdi clflush (%rdi) nop nop nop xor %rbp, %rbp mov $26, %rcx rep movsw nop add %rax, %rax lea addresses_normal_ht+0xb313, %r14 xor %r12, %r12 mov (%r14), %ax nop nop nop sub %rsi, %rsi lea addresses_A_ht+0x1c83, %rsi lea addresses_WT_ht+0x1d8b3, %rdi nop nop nop nop nop dec %r9 mov $112, %rcx rep movsl nop dec %r9 lea addresses_normal_ht+0x106b3, %r12 nop nop nop nop nop xor $10407, %rbp movb (%r12), %cl nop xor $58787, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %rcx push %rdx // Faulty Load lea addresses_US+0x1b8b3, %rcx nop nop nop inc %r8 movups (%rcx), %xmm1 vpextrq $0, %xmm1, %r11 lea oracles, %rdx and $0xff, %r11 shlq $12, %r11 mov (%rdx,%r11,1), %r11 pop %rdx pop %rcx pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'00': 10} 00 00 00 00 00 00 00 00 00 00 */
19.928571
148
0.65671
562fb69da9003fd452d22107e5c60562ec75d389
2,003
asm
Assembly
testcode/timer1_interrupt.asm
jnidzwetzki/pic
49c869cf3e068c6bd09f2ead65431e35e09f5a48
[ "Apache-2.0" ]
1
2020-10-19T16:23:45.000Z
2020-10-19T16:23:45.000Z
testcode/timer1_interrupt.asm
jnidzwetzki/pic
49c869cf3e068c6bd09f2ead65431e35e09f5a48
[ "Apache-2.0" ]
null
null
null
testcode/timer1_interrupt.asm
jnidzwetzki/pic
49c869cf3e068c6bd09f2ead65431e35e09f5a48
[ "Apache-2.0" ]
null
null
null
; PIC16F628A Configuration Bit Settings ; ASM source line config statements #include "p16F628A.inc" ; CONFIG ; __config 0x3F70 __CONFIG _FOSC_INTOSCIO & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _BOREN_ON & _LVP_OFF & _CPD_OFF & _CP_OFF cblock 0x20 w_temp ;0x20 status_temp ;0x21 output_state ;0x22 endc org 0x000 goto prepare ; Interrupt handler org 0x004 goto interrupt_handler toggle_led: incf output_state,f movfw output_state bcf PORTB,0 bcf PORTB,1 bcf PORTB,2 bcf PORTB,3 btfsc output_state,0 bsf PORTB,0 btfsc output_state,1 bsf PORTB,1 btfsc output_state,2 bsf PORTB,2 btfsc output_state,3 bsf PORTB,3 return prepare: movlw b'00000000' movwf PORTB ; Reset all pins on PORTB movwf output_state banksel TRISB movlw b'11110000' movwf TRISB ; 4 Pins on PORTB are outputs banksel T1CON ; Prepare Timer1 movlw b'00000000' movwf TMR1L movwf TMR1H bcf PIR1,TMR1IF movlw b'00100001' ; Prescale 8, internal clock, timer active movwf T1CON ; Enable interrupts banksel PIE1 bsf PIE1,TMR1IE bsf INTCON,PEIE bsf INTCON,GIE banksel RA0 goto main main: goto main interrupt_handler: movwf w_temp ; Save w register swapf STATUS,w ; STATUS -> w bcf STATUS,RP0 ; Switch to bank0 movwf status_temp ; w -> status_temp ; Handle TMR1 Interrupt btfsc PIR1,TMR1IF call tmr1_int ; return from interrupt bcf INTCON, INTF swapf status_temp,w ; Restore status movwf STATUS swapf w_temp,f swapf w_temp,w retfie tmr1_int: call toggle_led bcf PIR1,TMR1IF return ;--------End of All Code Sections --------------------------------------------- end ;End of program code in this file
19.259615
104
0.597104
25ddfc6bdf14fda5abec403458d91971737a7ad5
402
asm
Assembly
programs/oeis/003/A003984.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/003/A003984.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/003/A003984.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A003984: Table of max(x,y), where (x,y) = (0,0),(0,1),(1,0),(0,2),(1,1),(2,0),... ; 0,1,1,2,1,2,3,2,2,3,4,3,2,3,4,5,4,3,3,4,5,6,5,4,3,4,5,6,7,6,5,4,4,5,6,7,8,7,6,5,4,5,6,7,8,9,8,7,6,5,5,6,7,8,9,10,9,8,7,6,5,6,7,8,9,10,11,10,9,8,7,6,6,7,8,9,10,11,12,11,10,9,8,7,6,7,8,9,10,11,12,13,12,11,10,9,8,7,7,8 lpb $0,1 sub $0,1 add $1,1 mov $2,$0 trn $0,$1 lpe add $3,$2 sub $1,$3 trn $1,$3 add $1,$3
28.714286
217
0.502488
b1b89ca9fe11386f23e88739fa838d014f579430
2,073
asm
Assembly
src/include/rgbds-structs/examples/correct.asm
shuttler76/gbdev
888f25af233def141737309650f6f9f8313acf2e
[ "MIT" ]
7
2021-11-20T12:41:42.000Z
2021-12-07T21:16:58.000Z
src/include/rgbds-structs/examples/correct.asm
shuttler76/gbdev
888f25af233def141737309650f6f9f8313acf2e
[ "MIT" ]
1
2021-11-22T05:59:40.000Z
2021-11-22T05:59:40.000Z
src/include/rgbds-structs/examples/correct.asm
shuttler76/gbdev
888f25af233def141737309650f6f9f8313acf2e
[ "MIT" ]
1
2021-10-02T17:49:19.000Z
2021-10-02T17:49:19.000Z
INCLUDE "../structs.asm" ; Struct declarations (ideally in a separate file, but grouped here for simplicity) ; Note that everything is happening outside of a `SECTION` ; Defines a sprite as it is in OAM struct Sprite bytes 1, YPos ; Indenting is optional, but recommended bytes 1, XPos bytes 1, Tile bytes 1, Attr end_struct ; Defines an NPC, as I used in Aevilia (https://github.com/ISSOtm/Aevilia-GB/blob/master/macros/memory.asm#L10-L25) struct Sprite words 1, YPos words 1, XPos bytes 1, YBox bytes 1, XBox bytes 1, InteractID ; Empty lines are fine as well bytes 1, Sprite bytes 1, Palettes bytes 1, Steps bytes 1, MovtFlags bytes 1, Speed bytes 1, YDispl bytes 1, Unused bytes 1, XDispl end_struct ; Defines a 3-byte CGB palette struct RawPalette bytes 3, Color0 bytes 3, Color1 bytes 3, Color2 bytes 3, Color3 end_struct SECTION "Code", ROM0 ; Using struct offsets ld de, wPlayer ld hl, NPC_InteractID add hl, de xor a ld [hl], a ld de, NPC_Steps add hl, de ld [hli], a ld [hl], a ; Using variable members ld hl, wPlayer_YPos ld c, wPlayer_InteractID - wPlayer_YPos ; xor a .clearPosition ld [hli], a dec c jr nz, .clearPosition ; Using sizeof ld hl, wBGPalette0 ld de, DefaultPalette ld c, sizeof_RawPalette ; Using the struct's size call memcpy_small ld hl, wOBJPalette0 ld de, DefaultPalette ld c, sizeof_wOBJPalette ; Using the variable's size call memcpy_small ; ... DefaultPalette: db $00, $00, $00 db $0A, $0A, $0A db $15, $15, $15 db $1F, $1F, $1F memcpy_small: ld a, [de] ld [hli], a inc de dec c jr nz, memcpy_small ret SECTION "Structs", WRAM0 ; But it can be HRAM, WRAMX, or SRAM, too! dstruct NPC, wPlayer dstruct RawPalette, wBGPalette0 dstruct RawPalette, wOBJPalette0
19.556604
119
0.610709
fe2331186d8628aed40a34343da4f551d52ffa71
3,787
asm
Assembly
basic/error/error.asm
hotkeysoft/cpu8085
b8a669d3d3358250e292d13e78768e80dbfad7fd
[ "MIT" ]
null
null
null
basic/error/error.asm
hotkeysoft/cpu8085
b8a669d3d3358250e292d13e78768e80dbfad7fd
[ "MIT" ]
null
null
null
basic/error/error.asm
hotkeysoft/cpu8085
b8a669d3d3358250e292d13e78768e80dbfad7fd
[ "MIT" ]
null
null
null
;********************************************************* ;* MODULE: ERROR ;* ;* DESCRIPTION: ERROR HANDLING FUNCTIONS ;* .module error .title Error handling .include '..\io\io.def' .include '..\integer\integer.def' .include '..\program\program.def' .include '..\expreval\expreval.def' .area _CODE ERR_BREAK:: LXI H,ERR_STR_BREAK STC JMP ERR_HANDLER ERR_UNKNOWN:: LXI H,ERR_STR_UNKNOWN ORA A JMP ERR_HANDLER ERR_NOENDSTR:: LXI H,ERR_STR_NOENDSTR ORA A JMP ERR_HANDLER ERR_INVALIDCHAR:: LXI H,ERR_STR_INVALIDCHAR ORA A JMP ERR_HANDLER ERR_STACKOVERFLOW:: LXI H,ERR_STR_OUTOFMEMORY ORA A JMP ERR_HANDLER ERR_STACKUNDERFLOW:: LXI H,ERR_STR_STACKUNDERFLOW ORA A JMP ERR_HANDLER ERR_TYPEMISMATCH:: LXI H,ERR_STR_TYPEMISMATCH ORA A JMP ERR_HANDLER ERR_OVERFLOW:: LXI H,ERR_STR_OVERFLOW ORA A JMP ERR_HANDLER ERR_ILLEGAL:: LXI H,ERR_STR_ILLEGAL ORA A JMP ERR_HANDLER ERR_SYNTAX:: LXI H,ERR_STR_SYNTAX ORA A JMP ERR_HANDLER ERR_ELSEWITHOUTIF:: LXI H,ERR_STR_ELSEWITHOUTIF ORA A JMP ERR_HANDLER ERR_LINENOTFOUND:: LXI H,ERR_STR_LINENOTFOUND ORA A JMP ERR_HANDLER ERR_STRTOOLONG:: LXI H,ERR_STR_STRTOOLONG ORA A JMP ERR_HANDLER ERR_DIVZERO:: LXI H,ERR_STR_DIVZERO ORA A JMP ERR_HANDLER ERR_RETURNWITHOUTGOSUB:: LXI H,ERR_STR_RETURNWITHOUTGOSUB ORA A JMP ERR_HANDLER ERR_NEXTWITHOUTFOR:: LXI H,ERR_STR_NEXTWITHOUTFOR ORA A JMP ERR_HANDLER ERR_FORWITHOUTNEXT:: LXI H,ERR_STR_FORWITHOUTNEXT ORA A JMP ERR_HANDLER ERR_OUTOFMEMORY:: LXI H,ERR_STR_OUTOFMEMORY ORA A JMP ERR_HANDLER ERR_HANDLER: JC 1$ MVI A,7 ; RESET COLOR CALL IO_SETCOLOR MVI A,'? ; PRINT '?' CALL IO_PUTC CALL IO_PUTS ; PRINT ERROR MESSAGE LXI H,ERR_STR_ERROR ; PRINT ' ERROR' CALL IO_PUTS JMP 2$ 1$: MVI A,7 ; RESET COLOR CALL IO_SETCOLOR MVI A,'! ; PRINT '!' CALL IO_PUTC CALL IO_PUTS 2$: LHLD PRG_CURRLINE ; CHECK IF PROGRAM CURRENTLY RUNNING MOV A,L ; CPI 0 ; CHECK IF CURRENT LINE == 0 JNZ 3$ ; MOV A,H ; CPI 0 ; JNZ 3$ ; JMP 4$ ; CURRENT LINE IS ZERO -> IMMEDIATE MODE 3$: ; PROGRAM CURRENTLY RUNNING, PRINT LINE NUMBER LXI H,ERR_STR_ATLINE CALL IO_PUTS ; PRINTS '?XXX AT LINE YYY' LHLD PRG_CURRLINE ; LOAD LINE NUMBER SHLD INT_ACC0 ; PUT IN INT_ACC0 CALL INT_ITOA ; CONVERT TO STRING CALL IO_PUTS ; PRINT VALUE 4$: ; END OF ERROR MESSAGE MVI A,13 ; CR CALL IO_PUTC ; END OF LINE CALL IO_SETINTERACTIVEMODE ; SWITCH TO INTERACTIVE MODE (TERM) ; UNWIND EXPRESSION STACK CALL EXP_CLRSTACK ; UNWIND STACK LXI SP,0xFFFF ; CLEAR KEYWORD BUFFER CALL IO_INITKBBUF LHLD ERR_RESTARTPTR ; LOAD RESTART POSITION PCHL ; GO TO RESTART POS ERR_STR_ATLINE: .asciz " at line " ERR_STR_ERROR: .asciz " error" ERR_STR_NOENDSTR: .asciz "Unterminated string constant" ERR_STR_INVALIDCHAR: .asciz "Invalid symbol" ERR_STR_STACKUNDERFLOW: .asciz "Missing parameter" ERR_STR_TYPEMISMATCH: .asciz "Type mismatch" ERR_STR_OVERFLOW: .asciz "Overflow" ERR_STR_ILLEGAL: .asciz "Illegal argument" ERR_STR_SYNTAX: .asciz "Syntax" ERR_STR_ELSEWITHOUTIF: .asciz "ELSE without IF" ERR_STR_LINENOTFOUND: .asciz "Undefined line number" ERR_STR_STRTOOLONG: .asciz "String too long" ERR_STR_DIVZERO: .asciz "Division by zero" ERR_STR_RETURNWITHOUTGOSUB: .asciz "RETURN without GOSUB" ERR_STR_NEXTWITHOUTFOR: .asciz "NEXT without FOR" ERR_STR_FORWITHOUTNEXT: .asciz "FOR without NEXT" ERR_STR_OUTOFMEMORY: .asciz "Out of memory" ERR_STR_BREAK: .asciz "Break" ERR_STR_UNKNOWN: .asciz "Unknown" ;********************************************************* ;* RAM VARIABLES ;********************************************************* .area DATA (REL,CON) ERR_RESTARTPTR:: .ds 2 ; JUMP TO THIS ADDRESS ; AFTER ERROR
19.030151
63
0.701347
644f9e88c8c4285cc81e05ec142d485a070b6417
43,810
asm
Assembly
TraficTime.asm
jjbravo/semaforo-con-pic16f84a
c3303cdeb255279931f2221494a29e82147c3945
[ "MIT" ]
1
2018-08-13T10:37:06.000Z
2018-08-13T10:37:06.000Z
TraficTime.asm
jjbravo/semaforo-con-pic16f84a
c3303cdeb255279931f2221494a29e82147c3945
[ "MIT" ]
null
null
null
TraficTime.asm
jjbravo/semaforo-con-pic16f84a
c3303cdeb255279931f2221494a29e82147c3945
[ "MIT" ]
null
null
null
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 2.9.0 #5416 (Feb 3 2010) (UNIX) ; This file was generated Tue Jun 10 23:46:18 2014 ;-------------------------------------------------------- ; PIC port for the 14-bit core ;-------------------------------------------------------- .file "TraficTime.c" list p=16f84a radix dec include "p16f84a.inc" ;-------------------------------------------------------- ; config word ;-------------------------------------------------------- __config 0x3ff1 ;-------------------------------------------------------- ; external declarations ;-------------------------------------------------------- extern _EECON1_bits extern _INTCON_bits extern _OPTION_REG_bits extern _PORTA_bits extern _PORTB_bits extern _STATUS_bits extern _TRISA_bits extern _TRISB_bits extern _INDF extern _TMR0 extern _PCL extern _STATUS extern _FSR extern _PORTA extern _PORTB extern _EEDATA extern _EEADR extern _PCLATH extern _INTCON extern _OPTION_REG extern _TRISA extern _TRISB extern _EECON1 extern _EECON2 extern __sdcc_gsinit_startup ;-------------------------------------------------------- ; global declarations ;-------------------------------------------------------- global _delay_ms global _semaforo_uno global _main global PSAVE global SSAVE global WSAVE global STK12 global STK11 global STK10 global STK09 global STK08 global STK07 global STK06 global STK05 global STK04 global STK03 global STK02 global STK01 global STK00 sharebank udata_ovr 0x000C PSAVE res 1 SSAVE res 1 WSAVE res 1 STK12 res 1 STK11 res 1 STK10 res 1 STK09 res 1 STK08 res 1 STK07 res 1 STK06 res 1 STK05 res 1 STK04 res 1 STK03 res 1 STK02 res 1 STK01 res 1 STK00 res 1 ;-------------------------------------------------------- ; global definitions ;-------------------------------------------------------- ;-------------------------------------------------------- ; absolute symbol definitions ;-------------------------------------------------------- ;-------------------------------------------------------- ; compiler-defined variables ;-------------------------------------------------------- UDL_TraficTime_0 udata r0x1003 res 1 r0x1002 res 1 r0x1001 res 1 r0x1000 res 1 r0x1004 res 1 r0x1005 res 1 r0x1006 res 1 r0x1007 res 1 r0x1009 res 1 r0x1008 res 1 r0x100B res 1 r0x100A res 1 r0x100C res 1 r0x100D res 1 r0x100F res 1 r0x100E res 1 r0x1011 res 1 r0x1010 res 1 r0x1012 res 1 r0x1013 res 1 r0x1014 res 1 r0x1015 res 1 ;-------------------------------------------------------- ; initialized data ;-------------------------------------------------------- ;-------------------------------------------------------- ; overlayable items in internal ram ;-------------------------------------------------------- ; udata_ovr ;-------------------------------------------------------- ; reset vector ;-------------------------------------------------------- STARTUP code 0x0000 nop pagesel __sdcc_gsinit_startup goto __sdcc_gsinit_startup ;-------------------------------------------------------- ; code ;-------------------------------------------------------- code_TraficTime code ;*** ; pBlock Stats: dbName = M ;*** ;entry: _main ;Function start ; 2 exit points ;has an exit ;functions called: ; _semaforo_uno ; _semaforo_uno ;7 compiler assigned registers: ; r0x1012 ; r0x1013 ; r0x1014 ; r0x1015 ; STK02 ; STK01 ; STK00 ;; Starting pCode block ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2283:genFunction *{* ;; *** genFunction 2285 curr label offset=15previous max_key=0 _main ;Function start ; 2 exit points ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; *** aopForSym 350 ;; 361 sym->rname = _TRISB, size = 1 ;; line = 6342 result AOP_DIR=_TRISB, size=1, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; *** genAssign 6434 ; >>> gen.c:6443:genAssign ;; 1013 ;; 1029 _TRISB offset=0 .line 67; "TraficTime.c" TRISB = 0b0000000; BANKSEL _TRISB CLRF _TRISB ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; *** aopForSym 350 ;; 361 sym->rname = _TRISA, size = 1 ;; line = 6342 result AOP_DIR=_TRISA, size=1, left -=-, size=0, right AOP_LIT=0x03, size=1 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign .line 68; "TraficTime.c" TRISA = 0b00011; MOVLW 0x03 ; >>> gen.c:6441:genAssign ;; 1013 ;; 1029 _TRISA offset=0 MOVWF _TRISA ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; *** aopForSym 350 ;; 361 sym->rname = _PORTB, size = 1 ;; line = 6342 result AOP_DIR=_PORTB, size=1, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; *** genAssign 6434 ; >>> gen.c:6443:genAssign ;; 1013 ;; 1029 _PORTB offset=0 .line 69; "TraficTime.c" PORTB = 0b0000000; BANKSEL _PORTB CLRF _PORTB ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; *** aopForSym 350 ;; 361 sym->rname = _PORTA, size = 1 ;; line = 6342 result AOP_DIR=_PORTA, size=1, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; *** genAssign 6434 ; >>> gen.c:6443:genAssign ;; 1013 ;; 1029 _PORTA offset=0 .line 70; "TraficTime.c" PORTA = 0b00000; CLRF _PORTA ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:5608:genPointerGet *{* ;; *** genPointerGet 5609 ;; gen.c:5397:genNearPointerGet *{* ;; *** genNearPointerGet 5398 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTA_bits, val 0, const = 0 ;; *** genNearPointerGet 5414 ;; 721 register type nRegs=1 ;; gen.c:3504:ifxForOp *{* ;; *** ifxForOp 3506 ;; NULL :( 3526 ;; gen.c:5240:genUnpackBits *{* ;; *** genUnpackBits 5241 ; >>> gen.c:5264:genUnpackBits ;; 1109 rIdx = r0x105A .line 72; "TraficTime.c" switch(RA0){ // al iniciar el microcontolador, evalua la entrada RA0 y de acuerdo a la opcion, selecciona los tiempos a usar en el semaforo CLRF r0x1012 ; >>> gen.c:5269:genUnpackBits ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits BTFSC _PORTA_bits,0 ; >>> gen.c:5289:genUnpackBits ;; 1109 rIdx = r0x105A INCF r0x1012,F ;; *** pic14_getDataSize 1426 ;; *** addSign 797 ;; genarith.c:798:addSign *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=1 ;; 721 register type nRegs=1 ;; line = 6342 result AOP_REG=r0x105B, size=1, left -=-, size=0, right AOP_REG=r0x105A, size=1 ;; *** genAssign 6434 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x105A MOVF r0x1012,W MOVWF r0x1013 BTFSC STATUS,2 GOTO _00121_DS_ MOVF r0x1012,W XORLW 0x01 ; >>> gen.c:3454:genCmpEq BTFSS STATUS,2 ; >>> gen.c:3456:genCmpEq ;; *** popGetLabel key=5, label offset 19 GOTO _00124_DS_ ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=2 ;; line = 6342 result AOP_REG=r0x105A, size=2, left -=-, size=0, right AOP_LIT=0x70, size=2 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign .line 74; "TraficTime.c" time=6000; MOVLW 0x70 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105A MOVWF r0x1012 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign MOVLW 0x17 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105B MOVWF r0x1013 ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=2 ;; line = 6342 result AOP_REG=r0x105C, size=2, left -=-, size=0, right AOP_LIT=0xe8, size=2 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign .line 75; "TraficTime.c" time_p=1000; MOVLW 0xe8 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105C MOVWF r0x1014 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign MOVLW 0x03 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105D MOVWF r0x1015 ;; gen.c:2261:resultRemat *{* ;; gen.c:2614:genGoto *{* ; >>> gen.c:2616:genGoto ;; *** popGetLabel key=5, label offset 19 .line 76; "TraficTime.c" break; GOTO _00124_DS_ ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=2 ;; line = 6342 result AOP_REG=r0x105A, size=2, left -=-, size=0, right AOP_LIT=0xe8, size=2 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign _00121_DS_ .line 78; "TraficTime.c" time=1000; MOVLW 0xe8 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105A MOVWF r0x1012 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign MOVLW 0x03 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105B MOVWF r0x1013 ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=2 ;; line = 6342 result AOP_REG=r0x105C, size=2, left -=-, size=0, right AOP_LIT=0x90, size=2 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign .line 79; "TraficTime.c" time_p=400; MOVLW 0x90 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105C MOVWF r0x1014 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign MOVLW 0x01 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x105D MOVWF r0x1015 ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:2030:genCall *{* ;; *** genCall 2032 ;; gen.c:1765:saveRegisters *{* ;; *** saveRegisters 1767 ;; 721 register type nRegs=2 ;; 721 register type nRegs=2 ;; 721 register type nRegs=2 ;; 2079 left AOP_REG ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x105C _00124_DS_ .line 85; "TraficTime.c" semaforo_uno(time,time_p); MOVF r0x1014,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVWF STK02 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x105D MOVF r0x1015,W ;; 721 register type nRegs=2 ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVWF STK01 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x105A MOVF r0x1012,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVWF STK00 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x105B MOVF r0x1013,W ; >>> gen.c:2118:genCall CALL _semaforo_uno ;; gen.c:1809:unsaveRegisters *{* ;; *** unsaveRegisters 1811 ;; gen.c:2261:resultRemat *{* ;; gen.c:2614:genGoto *{* ; >>> gen.c:2616:genGoto ;; *** popGetLabel key=5, label offset 19 GOTO _00124_DS_ ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2435:genEndFunction *{* ;; *** genEndFunction 2437 RETURN ; exit point of _main ;*** ; pBlock Stats: dbName = C ;*** ;entry: _semaforo_uno ;Function start ; 2 exit points ;has an exit ;functions called: ; _delay_ms ; _delay_ms ; _delay_ms ; _delay_ms ; _delay_ms ; _delay_ms ; _delay_ms ; _delay_ms ;13 compiler assigned registers: ; r0x1008 ; STK00 ; r0x1009 ; STK01 ; r0x100A ; STK02 ; r0x100B ; r0x100C ; r0x100D ; r0x100E ; r0x100F ; r0x1010 ; r0x1011 ;; Starting pCode block ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2283:genFunction *{* ;; *** genFunction 2285 curr label offset=4previous max_key=7 _semaforo_uno ;Function start ; 2 exit points ;; gen.c:2261:resultRemat *{* ;; gen.c:6739:genReceive *{* ;; *** genReceive 6740 ;; 721 register type nRegs=2 ;; gen.c:1866:assignResultValue *{* ;; *** assignResultValue 1868 ;; line = 1870 result -=-, size=0, left AOP_REG=r0x1050, size=2, right -=-, size=0 ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x1051 MOVWF r0x100D .line 18; "TraficTime.c" void semaforo_uno(int time, int time_p){ // time para el tiempo de los colores verde y rojo, y time_p para el tiempo del color amarillo del semaforo MOVWF r0x1008 ; >>> gen.c:1393:get_returnvalue ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVF STK00,W ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x1050 MOVWF r0x100C MOVWF r0x1009 ;; gen.c:2261:resultRemat *{* ;; gen.c:6739:genReceive *{* ;; *** genReceive 6740 ;; 721 register type nRegs=2 ;; gen.c:1866:assignResultValue *{* ;; *** assignResultValue 1868 ;; line = 1870 result -=-, size=0, left AOP_REG=r0x1052, size=2, right -=-, size=0 ; >>> gen.c:1393:get_returnvalue ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVF STK01,W ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x1053 MOVWF r0x100A ; >>> gen.c:1393:get_returnvalue ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVF STK02,W ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x1052 MOVWF r0x100B ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 21; "TraficTime.c" RB7=1; //--------DOS--------VERDE --------SEMAFORO DOS BANKSEL _PORTB_bits BSF _PORTB_bits,7 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTA_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ;; line = 5965 result AOP_PCODE=_PORTA_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ; >>> gen.c:5720:genPackBits .line 22; "TraficTime.c" RA3=1; //-----PEATONAL ---DOS ------ ROJO -------SEMAFORO PEATONAL ROJO BSF _PORTA_bits,3 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 23; "TraficTime.c" RB0=1; //ROJO BSF _PORTB_bits,0 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 24; "TraficTime.c" RB3=1; //SEMAFORO PEATONAL VERDE BSF _PORTB_bits,3 ;; gen.c:2261:resultRemat *{* ;; gen.c:6521:genCast *{* ;; *** genCast 6522 ;; 721 register type nRegs=2 ;; 721 register type nRegs=4 ;; line = 6530 result AOP_REG=r0x1054, size=4, left -=-, size=0, right AOP_REG=r0x1050, size=2 ; >>> gen.c:6676:genCast ;; 1109 rIdx = r0x1050 ;;99 MOVF r0x1009,W ; >>> gen.c:6677:genCast ;; 1109 rIdx = r0x1054 ; >>> gen.c:6676:genCast ;; 1109 rIdx = r0x1051 ;;100 MOVF r0x1008,W ; >>> gen.c:6677:genCast ;; 1109 rIdx = r0x1055 ;; *** pic14_getDataSize 1426 ;; *** addSign 797 ;; genarith.c:798:addSign *{* ; >>> genarith.c:809:addSign .line 26; "TraficTime.c" delay_ms(time); MOVLW 0x00 ; >>> genarith.c:810:addSign BTFSC r0x100D,7 ; >>> genarith.c:811:addSign MOVLW 0xff ; >>> genarith.c:813:addSign ;; 1109 rIdx = r0x1057 MOVWF r0x100E ; >>> genarith.c:813:addSign ;; 1109 rIdx = r0x1056 MOVWF r0x100F ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:2030:genCall *{* ;; *** genCall 2032 ;; gen.c:1765:saveRegisters *{* ;; *** saveRegisters 1767 ;; 721 register type nRegs=4 ;; 721 register type nRegs=4 ;; 2079 left AOP_REG ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1054 MOVF r0x100C,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVWF STK02 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1055 MOVF r0x100D,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVWF STK01 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=2 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1056 MOVF r0x100F,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVWF STK00 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=3 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1057 MOVF r0x100E,W ; >>> gen.c:2118:genCall CALL _delay_ms ;; gen.c:1809:unsaveRegisters *{* ;; *** unsaveRegisters 1811 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 29; "TraficTime.c" RB1=1; //AMARILLO BANKSEL _PORTB_bits BSF _PORTB_bits,1 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 30; "TraficTime.c" RB7=0; //------DOS------VERDE--------- SEMAFORO DOS BCF _PORTB_bits,7 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 31; "TraficTime.c" RB6=1; //-----DOS ------AMARILLO ------ SEMAFORO DOS BSF _PORTB_bits,6 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 34; "TraficTime.c" RB4=1; //SEMAFORO PEATONAL ROJO BSF _PORTB_bits,4 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 35; "TraficTime.c" RB3=0; //SEMAFORO PEATONAL VERDE BCF _PORTB_bits,3 ;; gen.c:2261:resultRemat *{* ;; gen.c:6521:genCast *{* ;; *** genCast 6522 ;; 721 register type nRegs=2 ;; 721 register type nRegs=4 ;; line = 6530 result AOP_REG=r0x1050, size=4, left -=-, size=0, right AOP_REG=r0x1052, size=2 ; >>> gen.c:6676:genCast ;; 1109 rIdx = r0x1052 .line 36; "TraficTime.c" delay_ms(time_p); MOVF r0x100B,W ; >>> gen.c:6677:genCast ;; 1109 rIdx = r0x1050 MOVWF r0x1009 ; >>> gen.c:6676:genCast ;; 1109 rIdx = r0x1053 MOVF r0x100A,W ; >>> gen.c:6677:genCast ;; 1109 rIdx = r0x1051 MOVWF r0x1008 ;; *** pic14_getDataSize 1426 ;; *** addSign 797 ;; genarith.c:798:addSign *{* ; >>> genarith.c:809:addSign MOVLW 0x00 ; >>> genarith.c:810:addSign BTFSC r0x1008,7 ; >>> genarith.c:811:addSign MOVLW 0xff ; >>> genarith.c:813:addSign ;; 1109 rIdx = r0x1059 MOVWF r0x1010 ; >>> genarith.c:813:addSign ;; 1109 rIdx = r0x1058 MOVWF r0x1011 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:2030:genCall *{* ;; *** genCall 2032 ;; gen.c:1765:saveRegisters *{* ;; *** saveRegisters 1767 ;; 721 register type nRegs=4 ;; 721 register type nRegs=4 ;; 2079 left AOP_REG ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1050 MOVF r0x1009,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVWF STK02 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1051 MOVF r0x1008,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVWF STK01 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=2 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1058 MOVF r0x1011,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVWF STK00 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=3 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1059 MOVF r0x1010,W ; >>> gen.c:2118:genCall CALL _delay_ms ;; gen.c:1809:unsaveRegisters *{* ;; *** unsaveRegisters 1811 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 37; "TraficTime.c" RB6=0; //-----DOS ------AMARILLO--------- SEMAFORO DOS BANKSEL _PORTB_bits BCF _PORTB_bits,6 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTA_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ;; line = 5965 result AOP_PCODE=_PORTA_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ; >>> gen.c:5720:genPackBits .line 38; "TraficTime.c" RA3=0; //---PEATONAL --DOS ------ROJO----------SEMAFORO PEATONAL ROJO BCF _PORTA_bits,3 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 40; "TraficTime.c" RB5=1; //---- DOS-------ROJO-------- SEMAFORO DOS BSF _PORTB_bits,5 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTA_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ;; line = 5965 result AOP_PCODE=_PORTA_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ; >>> gen.c:5720:genPackBits .line 41; "TraficTime.c" RA2=1; //--PEATONAL ---DOS -----VERDE------SEMAFORO PEATONAL VERDE BSF _PORTA_bits,2 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 43; "TraficTime.c" RB0=0; //ROJO BCF _PORTB_bits,0 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 44; "TraficTime.c" RB1=0; //AMARILLO BCF _PORTB_bits,1 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 46; "TraficTime.c" RB2=1; //VERDE BSF _PORTB_bits,2 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:2030:genCall *{* ;; *** genCall 2032 ;; gen.c:1765:saveRegisters *{* ;; *** saveRegisters 1767 ;; 721 register type nRegs=4 ;; 721 register type nRegs=4 ;; 2079 left AOP_REG ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1054 .line 47; "TraficTime.c" delay_ms(time); MOVF r0x100C,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVWF STK02 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1055 MOVF r0x100D,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVWF STK01 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=2 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1056 MOVF r0x100F,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVWF STK00 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=3 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1057 MOVF r0x100E,W ; >>> gen.c:2118:genCall CALL _delay_ms ;; gen.c:1809:unsaveRegisters *{* ;; *** unsaveRegisters 1811 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 48; "TraficTime.c" RB2=0; //VERDE BANKSEL _PORTB_bits BCF _PORTB_bits,2 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 49; "TraficTime.c" RB1=1; //AMARILLO BSF _PORTB_bits,1 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 50; "TraficTime.c" RB6=1; //-----DOS ------AMARILLO------------ SEMAFORO DOS BSF _PORTB_bits,6 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTA_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ;; line = 5965 result AOP_PCODE=_PORTA_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ; >>> gen.c:5720:genPackBits .line 52; "TraficTime.c" RA2=0; //---PEATONAL --DOS -----VERDE------SEMAFORO PEATONAL VERDE BCF _PORTA_bits,2 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTA_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ;; line = 5965 result AOP_PCODE=_PORTA_bits, size=2, left -=-, size=0, right AOP_LIT=0x01, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTA_bits ; >>> gen.c:5720:genPackBits .line 53; "TraficTime.c" RA3=1; //---PEATONAL --DOS ------ROJO -------SEMAFORO PEATONAL ROJO BSF _PORTA_bits,3 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:2030:genCall *{* ;; *** genCall 2032 ;; gen.c:1765:saveRegisters *{* ;; *** saveRegisters 1767 ;; 721 register type nRegs=4 ;; 721 register type nRegs=4 ;; 2079 left AOP_REG ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1050 .line 55; "TraficTime.c" delay_ms(time_p); MOVF r0x1009,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVWF STK02 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1051 MOVF r0x1008,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVWF STK01 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=2 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1058 MOVF r0x1011,W ;; 2079 left AOP_REG ; >>> gen.c:2087:genCall ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVWF STK00 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=3 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1059 MOVF r0x1010,W ; >>> gen.c:2118:genCall CALL _delay_ms ;; gen.c:1809:unsaveRegisters *{* ;; *** unsaveRegisters 1811 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 56; "TraficTime.c" RB1=0; //AMARILLO BANKSEL _PORTB_bits BCF _PORTB_bits,1 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 57; "TraficTime.c" RB6=0; //-----DOS ------AMARILLO ---------SEMAFORO DOS BCF _PORTB_bits,6 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 59; "TraficTime.c" RB4=0; //SEMAFORO PEATONAL ROJO BCF _PORTB_bits,4 ;; gen.c:2261:resultRemat *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6117:genPointerSet *{* ;; *** genPointerSet 6118 ;; gen.c:5945:genNearPointerSet *{* ;; *** genNearPointerSet 5946 ;; 641 ;; aopForRemat 425 ;; 446: rname _PORTB_bits, val 0, const = 0 ;; *** genNearPointerSet 5963 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ;; line = 5965 result AOP_PCODE=_PORTB_bits, size=2, left -=-, size=0, right AOP_LIT=0x00, size=1 ;; gen.c:5694:genPackBits *{* ;; *** genPackBits 5695 ;; 858: aopGet AOP_PCODE type PO_IMMEDIATE ;; _PORTB_bits ; >>> gen.c:5720:genPackBits .line 61; "TraficTime.c" RB5=0; //----DOS--------ROJO ------- SEMAFORO DOS BCF _PORTB_bits,5 ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2435:genEndFunction *{* ;; *** genEndFunction 2437 RETURN ; exit point of _semaforo_uno ;; gen.c:6803:genpic14Code *{* ;*** ; pBlock Stats: dbName = C ;*** ;entry: _delay_ms ;Function start ; 2 exit points ;has an exit ;11 compiler assigned registers: ; r0x1000 ; STK00 ; r0x1001 ; STK01 ; r0x1002 ; STK02 ; r0x1003 ; r0x1004 ; r0x1005 ; r0x1006 ; r0x1007 ;; Starting pCode block ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2283:genFunction *{* ;; *** genFunction 2285 curr label offset=0previous max_key=0 _delay_ms ;Function start ; 2 exit points ;; gen.c:2261:resultRemat *{* ;; gen.c:6739:genReceive *{* ;; *** genReceive 6740 ;; 721 register type nRegs=4 ;; gen.c:1866:assignResultValue *{* ;; *** assignResultValue 1868 ;; line = 1870 result -=-, size=0, left AOP_REG=r0x1048, size=4, right -=-, size=0 ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x104B .line 11; "TraficTime.c" void delay_ms(long ms) MOVWF r0x1000 ; >>> gen.c:1393:get_returnvalue ;; *** popRegFromIdx,1043 , rIdx=0x1b MOVF STK00,W ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x104A MOVWF r0x1001 ; >>> gen.c:1393:get_returnvalue ;; *** popRegFromIdx,1043 , rIdx=0x1a MOVF STK01,W ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x1049 MOVWF r0x1002 ; >>> gen.c:1393:get_returnvalue ;; *** popRegFromIdx,1043 , rIdx=0x19 MOVF STK02,W ; >>> gen.c:1367:movwf ;; 1109 rIdx = r0x1048 MOVWF r0x1003 ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=4 ;; 721 register type nRegs=4 ;; line = 6342 result AOP_REG=r0x1048, size=4, left -=-, size=0, right AOP_REG=r0x1048, size=4 ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=4 ;; 721 register type nRegs=4 ;; line = 6342 result AOP_REG=r0x104C, size=4, left -=-, size=0, right AOP_REG=r0x1048, size=4 ;; *** genAssign 6434 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=0 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1048 _00105_DS_ .line 14; "TraficTime.c" while (ms--) MOVF r0x1003,W ; >>> gen.c:6453:genAssign ;; 1109 rIdx = r0x104C MOVWF r0x1004 ;; *** genAssign 6434 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=1 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x1049 MOVF r0x1002,W ; >>> gen.c:6453:genAssign ;; 1109 rIdx = r0x104D MOVWF r0x1005 ;; *** genAssign 6434 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=2 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x104A MOVF r0x1001,W ; >>> gen.c:6453:genAssign ;; 1109 rIdx = r0x104E MOVWF r0x1006 ;; *** genAssign 6434 ;; gen.c:1324:mov2w_op *{* ;; *** mov2w 1356 offset=3 ; >>> gen.c:1361:mov2w ;; 1109 rIdx = r0x104B MOVF r0x1000,W ; >>> gen.c:6453:genAssign ;; 1109 rIdx = r0x104F MOVWF r0x1007 ;; gen.c:2261:resultRemat *{* ;; gen.c:3504:ifxForOp *{* ;; *** ifxForOp 3506 ;; NULL :( 3526 ;; ic-next is an IFX ;; gen.c:6695:genDjnz *{* ;; *** genDjnz 6696 ;; genarith.c:832:genMinus *{* ;; *** genMinus 833 ;; 721 register type nRegs=4 ;; 606 ;; result AOP_REG, left AOP_REG, right AOP_LIT ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; genarith.c:270:genAddLit *{* ;; *** genAddLit 271 ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; add lit to long genAddLit 391 ; >>> genarith.c:446:genAddLit MOVLW 0xff ; >>> genarith.c:447:genAddLit ;; 1109 rIdx = r0x1048 ADDWF r0x1003,F ; >>> genarith.c:417:genAddLit MOVLW 0xff ; >>> genarith.c:421:genAddLit BTFSS STATUS,0 ; >>> genarith.c:422:genAddLit ;; 1109 rIdx = r0x1049 ADDWF r0x1002,F ; >>> genarith.c:417:genAddLit MOVLW 0xff ; >>> genarith.c:421:genAddLit BTFSS STATUS,0 ; >>> genarith.c:422:genAddLit ;; 1109 rIdx = r0x104A ADDWF r0x1001,F ; >>> genarith.c:417:genAddLit MOVLW 0xff ; >>> genarith.c:421:genAddLit BTFSS STATUS,0 ; >>> genarith.c:422:genAddLit ;; 1109 rIdx = r0x104B ADDWF r0x1000,F ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; *** addSign 797 ;; genarith.c:798:addSign *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6187:genIfx *{* ;; *** genIfx 6188 ;; 721 register type nRegs=4 ;; *** pic14_toBoolean 1500 ; >>> gen.c:1509:pic14_toBoolean ;; 1109 rIdx = r0x104C MOVF r0x1004,W ; >>> gen.c:1514:pic14_toBoolean ;; 1109 rIdx = r0x104D IORWF r0x1005,W ; >>> gen.c:1514:pic14_toBoolean ;; 1109 rIdx = r0x104E IORWF r0x1006,W ; >>> gen.c:1514:pic14_toBoolean ;; 1109 rIdx = r0x104F IORWF r0x1007,W ; >>> gen.c:6236:genIfx BTFSC STATUS,2 ; >>> gen.c:6237:genIfx ;; *** popGetLabel key=7, label offset 4 GOTO _00111_DS_ ;; gen.c:2261:resultRemat *{* ;; gen.c:6332:genAssign *{* ;; *** genAssign 6333 ;; 721 register type nRegs=4 ;; line = 6342 result AOP_REG=r0x104C, size=4, left -=-, size=0, right AOP_LIT=0x2c, size=4 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign .line 15; "TraficTime.c" for (i=0; i < 300; i++) MOVLW 0x2c ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x104C MOVWF r0x1004 ;; *** genAssign 6434 ; >>> gen.c:6439:genAssign MOVLW 0x01 ; >>> gen.c:6441:genAssign ;; 1109 rIdx = r0x104D MOVWF r0x1005 ;; *** genAssign 6434 ; >>> gen.c:6443:genAssign ;; 1109 rIdx = r0x104E CLRF r0x1006 ;; *** genAssign 6434 ; >>> gen.c:6443:genAssign ;; 1109 rIdx = r0x104F CLRF r0x1007 ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:3504:ifxForOp *{* ;; *** ifxForOp 3506 ;; gen.c:6695:genDjnz *{* ;; *** genDjnz 6696 ;; genarith.c:832:genMinus *{* ;; *** genMinus 833 ;; 721 register type nRegs=4 ;; 606 ;; result AOP_REG, left AOP_REG, right AOP_LIT ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; genarith.c:270:genAddLit *{* ;; *** genAddLit 271 ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; add lit to long genAddLit 391 ; >>> genarith.c:446:genAddLit _00110_DS_ MOVLW 0xff ; >>> genarith.c:447:genAddLit ;; 1109 rIdx = r0x104C ADDWF r0x1004,F ; >>> genarith.c:417:genAddLit MOVLW 0xff ; >>> genarith.c:421:genAddLit BTFSS STATUS,0 ; >>> genarith.c:422:genAddLit ;; 1109 rIdx = r0x104D ADDWF r0x1005,F ; >>> genarith.c:417:genAddLit MOVLW 0xff ; >>> genarith.c:421:genAddLit BTFSS STATUS,0 ; >>> genarith.c:422:genAddLit ;; 1109 rIdx = r0x104E ADDWF r0x1006,F ; >>> genarith.c:417:genAddLit MOVLW 0xff ; >>> genarith.c:421:genAddLit BTFSS STATUS,0 ; >>> genarith.c:422:genAddLit ;; 1109 rIdx = r0x104F ADDWF r0x1007,F ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; *** pic14_getDataSize 1426 ;; *** addSign 797 ;; genarith.c:798:addSign *{* ;; gen.c:2261:resultRemat *{* ;; gen.c:6187:genIfx *{* ;; *** genIfx 6188 ;; 721 register type nRegs=4 ;; *** pic14_toBoolean 1500 ; >>> gen.c:1509:pic14_toBoolean ;; 1109 rIdx = r0x104C MOVF r0x1004,W ; >>> gen.c:1514:pic14_toBoolean ;; 1109 rIdx = r0x104D IORWF r0x1005,W ; >>> gen.c:1514:pic14_toBoolean ;; 1109 rIdx = r0x104E IORWF r0x1006,W ; >>> gen.c:1514:pic14_toBoolean ;; 1109 rIdx = r0x104F IORWF r0x1007,W ; >>> gen.c:6233:genIfx BTFSS STATUS,2 ; >>> gen.c:6234:genIfx ;; *** popGetLabel key=6, label offset 4 GOTO _00110_DS_ ;; gen.c:2261:resultRemat *{* ;; gen.c:2614:genGoto *{* ; >>> gen.c:2616:genGoto ;; *** popGetLabel key=1, label offset 4 GOTO _00105_DS_ ;; gen.c:2261:resultRemat *{* ;; gen.c:2597:genLabel *{* ;; *** genLabel 2600 ;; gen.c:2261:resultRemat *{* ;; gen.c:2435:genEndFunction *{* ;; *** genEndFunction 2437 _00111_DS_ RETURN ; exit point of _delay_ms ;; gen.c:6803:genpic14Code *{* ; code size estimation: ; 181+ 7 = 188 instructions ( 390 byte) end
28.137444
174
0.648071
904bedb2281ce245c9b1d463c9f38c122e1c1d47
1,099
asm
Assembly
programs/oeis/245/A245426.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/245/A245426.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/245/A245426.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A245426: Number of nonnegative integers with property that their base 7/4 expansion (see A024641) has n digits. ; 7,7,14,21,42,70,126,217,378,665,1162,2037,3563,6237,10913,19096,33418,58485,102347,179109,313439,548520,959910,1679839,2939720,5144510,9002889,15755061,27571355,48249873,84437276,147765233,258589156,452531023,791929292 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $11,$0 mov $13,2 lpb $13 mov $0,$11 sub $13,1 add $0,$13 sub $0,1 mov $7,$0 mov $9,2 lpb $9 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mod $6,1 add $6,1 lpb $0 sub $0,1 mul $6,7 add $6,$5 sub $5,$5 add $5,4 sub $6,1 div $6,$5 lpe mov $3,$6 mov $10,$9 lpb $10 mov $8,$3 sub $10,1 lpe lpe lpb $7 mov $7,0 sub $8,$3 lpe mov $3,$8 mov $14,$13 lpb $14 mov $12,$3 sub $14,1 lpe lpe lpb $11 mov $11,0 trn $12,$3 lpe mov $3,$12 mul $3,7 add $1,$3 lpe
17.725806
220
0.507734
feedf6c0f551240eca99324b91bdfa324faf15c8
948
asm
Assembly
src/test/ref/static-init-code-0.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/static-init-code-0.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/static-init-code-0.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Tests static initialization code // Currently placed outside any function scope and pushed into @begin block. // To be put into an initializer function. // Commodore 64 PRG executable file .file [name="static-init-code-0.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(__start) .label SCREEN = $400 // Initialize a volatile ZP-variable (will be done in the initializer) .label c1 = 2 // Initialize another volatile ZP-variable (will be done in the initializer) .label c2 = 3 .segment Code __start: { // volatile char c1 = 'o' lda #'o' sta.z c1 // volatile char c2 = 'k' lda #'k' sta.z c2 jsr main rts } main: { // SCREEN[0] = c1 lda.z c1 sta SCREEN // SCREEN[1] = c2 lda.z c2 sta SCREEN+1 // } rts }
24.947368
78
0.655063
0ea0dbf137ed2a706b46a7e95bacd9df19b24bc9
548
asm
Assembly
data/baseStats/vaporeon.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
data/baseStats/vaporeon.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
data/baseStats/vaporeon.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
db VAPOREON ; pokedex id db 130 ; base hp db 65 ; base attack db 65 ; base defense db 65 ; base speed db 110 ; base special db WATER ; species type 1 db WATER ; species type 2 db 45 ; catch rate db 196 ; base exp yield INCBIN "pic/gsmon/vaporeon.pic",0,1 ; 66, sprite dimensions dw VaporeonPicFront dw VaporeonPicBack ; attacks known at lvl 0 db TACKLE db TAIL_WHIP db 0 db 0 db 0 ; growth rate ; learnset tmlearn 3,6,8 tmlearn 9,10,11,13,14,15 tmlearn 20 tmlearn 28,31,32 tmlearn 33,34,39 tmlearn 44 tmlearn 50,53 db BANK(VaporeonPicFront)
18.896552
59
0.739051
33befe8ef8fc97940808c7e0ee14e42ced888ee3
133
asm
Assembly
examples/demo-grammar/tinyc/src/samples/sample_1_io.asm
fossabot/FlyLab
78b53f03c92d7360bca882aa41be2ca0862b51a3
[ "MIT" ]
null
null
null
examples/demo-grammar/tinyc/src/samples/sample_1_io.asm
fossabot/FlyLab
78b53f03c92d7360bca882aa41be2ca0862b51a3
[ "MIT" ]
null
null
null
examples/demo-grammar/tinyc/src/samples/sample_1_io.asm
fossabot/FlyLab
78b53f03c92d7360bca882aa41be2ca0862b51a3
[ "MIT" ]
null
null
null
FUNC @main: var n readint "Please input an integer: " pop n push n print "Your input number is: %d" push 0 ret ~ ENDFUNC
8.866667
36
0.646617
d648e86a740aeab0ab7c12a5aff5656f39a11b87
799
asm
Assembly
libsrc/stdio_new/fd/general/stdio_dupcommon2.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/stdio_new/fd/general/stdio_dupcommon2.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/stdio_new/fd/general/stdio_dupcommon2.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; stdio_dupcommon2 ; 07.2009 aralbrec XLIB stdio_dupcommon2 INCLUDE "../../stdio.def" ; common code factored out of dup functions ; centralizes key steps for making dup fds ; ; enter : l = source fd ; exit : ix = source fdstruct, carry reset ; carry set if source fd invalid ; uses : af, hl, ix .stdio_dupcommon2 call stdio_fdcommon1 ; ix = source fdstruct ret c ; invalid source fd ; we do not allow duping of dup fds ; instead, find the first non-dup fd in stdio chain and dup that .loop bit 7,(ix+3) ; is this a dup fd? ret z ; if not return with carry reset ld a,(ix+1) ld l,(ix+2) ld ixl,a ld ixh,l ; ix = next fdstruct in stdio chain jp loop
22.828571
67
0.583229
52f6e7a7448ba412553bd3a5a88ec499817070fa
382
asm
Assembly
programs/oeis/047/A047324.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047324.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047324.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047324: Numbers that are congruent to {0, 2, 5, 6} mod 7. ; 0,2,5,6,7,9,12,13,14,16,19,20,21,23,26,27,28,30,33,34,35,37,40,41,42,44,47,48,49,51,54,55,56,58,61,62,63,65,68,69,70,72,75,76,77,79,82,83,84,86,89,90,91,93,96,97,98,100,103,104,105,107,110,111 add $0,6 mov $1,$0 div $1,4 mul $1,2 mov $2,$0 lpb $2,1 mov $3,$0 add $3,1 mov $0,$3 sub $2,4 lpe add $1,$0 sub $1,9
22.470588
194
0.60733
a255698a6c416256af677670d2e4ea94842ff016
2,104
asm
Assembly
testsuite/ubivm/output/test5.asm
alexgarzao/UOP
12460841ff2b9991d2f7f461635b1f551413823f
[ "MIT" ]
null
null
null
testsuite/ubivm/output/test5.asm
alexgarzao/UOP
12460841ff2b9991d2f7f461635b1f551413823f
[ "MIT" ]
null
null
null
testsuite/ubivm/output/test5.asm
alexgarzao/UOP
12460841ff2b9991d2f7f461635b1f551413823f
[ "MIT" ]
null
null
null
.constant_pool .const 0 string [start] .const 1 string [constructor] .const 2 string [Hello world !!!] .const 3 int [1] .const 4 string [io.writeln] .const 5 string [metodo1] .const 6 string [Depois de metodo1/0] .const 7 string [metodo2] .const 8 string [Depois de metodo2/0] .const 9 string [metodo3] .const 10 string [Depois de metodo3/0] .const 11 string [Hello world in action1/0 !!!] .const 12 string [Hello world in action2/0 !!!] .const 13 string [Hello world in action3/0 !!!] .const 14 string [Depois da acao2/0 na acao 3] .end .entity start .valid_context_when (always) .method constructor ldconst 2 --> [Hello world !!!] ldconst 3 --> [1] lcall 4 --> [io.writeln] ldself mcall 5 --> [metodo1] ldconst 6 --> [Depois de metodo1/0] ldconst 3 --> [1] lcall 4 --> [io.writeln] ldself mcall 7 --> [metodo2] ldconst 8 --> [Depois de metodo2/0] ldconst 3 --> [1] lcall 4 --> [io.writeln] ldself mcall 9 --> [metodo3] ldconst 10 --> [Depois de metodo3/0] ldconst 3 --> [1] lcall 4 --> [io.writeln] exit .end .method metodo1 ldconst 11 --> [Hello world in action1/0 !!!] ldconst 3 --> [1] lcall 4 --> [io.writeln] ret .end .method metodo2 ldconst 12 --> [Hello world in action2/0 !!!] ldconst 3 --> [1] lcall 4 --> [io.writeln] ret .end .method metodo3 ldconst 13 --> [Hello world in action3/0 !!!] ldconst 3 --> [1] lcall 4 --> [io.writeln] ldself mcall 7 --> [metodo2] ldconst 14 --> [Depois da acao2/0 na acao 3] ldconst 3 --> [1] lcall 4 --> [io.writeln] ret .end .end
32.369231
59
0.465304
489da9e9ac44974015be3a95d21b442d094330e1
908
asm
Assembly
interfacing 7 segment display with proteous/source_code_in_emu8086.asm
L12161/assembly_habijabi
4dc7e77af33997f953107a1222a47b7b8b223f93
[ "Apache-2.0" ]
null
null
null
interfacing 7 segment display with proteous/source_code_in_emu8086.asm
L12161/assembly_habijabi
4dc7e77af33997f953107a1222a47b7b8b223f93
[ "Apache-2.0" ]
null
null
null
interfacing 7 segment display with proteous/source_code_in_emu8086.asm
L12161/assembly_habijabi
4dc7e77af33997f953107a1222a47b7b8b223f93
[ "Apache-2.0" ]
null
null
null
; Main.asm file generated by New Project wizard ; ; Created: Fri May 28 2021 ; Processor: 8086 ; Compiler: MASM32 ; ; Before starting simulation set Internal Memory Size ; in the 8086 model properties to 0x10000 ;==================================================================== DATA SEGMENT P_A EQU 00H P_B EQU 02H P_C EQU 04H CONNECT EQU 06H DATA ENDS CODE SEGMENT ASSUME CS:CODE ASSUME DS:CODE ASSUME ES:CODE ASSUME SS:CODE ORG 0000H ; MOV AX, DATA MOV DS, AX MOV AL, 10000000B ; OUT CONNECT, AL MAIN_LOOP: ; HUNDREADTH POSITIONAL DATA MOV AL, 11000000B OUT P_A, AL ; TENTH POSITIONAL DATA MOV AL, 10110000B OUT P_B, AL ; UNIT POSITIONAL DATA MOV AL, 10000000B OUT P_C, AL ; Output data JMP MAIN_LOOP CODE ENDS END ;
21.116279
70
0.549559
30adb04dba93d25d5a38655d5cb0717a51094b7d
17,375
asm
Assembly
src/main/native/compression/isa-l-master/crc/crc32_iscsi_01.asm
swepnadoss/GKL
c65c92ed374ac6f6c4ad319b9f640bb9fa0111b6
[ "MIT" ]
null
null
null
src/main/native/compression/isa-l-master/crc/crc32_iscsi_01.asm
swepnadoss/GKL
c65c92ed374ac6f6c4ad319b9f640bb9fa0111b6
[ "MIT" ]
null
null
null
src/main/native/compression/isa-l-master/crc/crc32_iscsi_01.asm
swepnadoss/GKL
c65c92ed374ac6f6c4ad319b9f640bb9fa0111b6
[ "MIT" ]
null
null
null
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; * Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; * Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in ; the documentation and/or other materials provided with the ; distribution. ; * Neither the name of Intel Corporation nor the names of its ; contributors may be used to endorse or promote products derived ; from this software without specific prior written permission. ; ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ISCSI CRC 32 Implementation with crc32 and pclmulqdq Instruction %include "reg_sizes.asm" default rel %define CONCAT(a,b,c) a %+ b %+ c ; Define threshold where buffers are considered "small" and routed to more ; efficient "by-1" code. This "by-1" code only handles up to 255 bytes, so ; SMALL_SIZE can be no larger than 256. %define SMALL_SIZE 200 %if (SMALL_SIZE > 256) %error SMALL_ SIZE must be <= 256 % error ; needed because '%error' actually generates only a warning %endif ;;; unsigned int crc32_iscsi_01(unsigned char * buffer, int len, unsigned int crc_init); ;;; ;;; *buf = rcx ;;; len = rdx ;;; crc_init = r8 mk_global crc32_iscsi_01, function crc32_iscsi_01: %ifidn __OUTPUT_FORMAT__, elf64 %define bufp rdi %define bufp_dw edi %define bufp_w di %define bufp_b dil %define bufptmp rcx %define block_0 rcx %define block_1 rdx %define block_2 r11 %define len rsi %define len_dw esi %define len_w si %define len_b sil %define crc_init_arg rdx %else %define bufp rcx %define bufp_dw ecx %define bufp_w cx %define bufp_b cl %define bufptmp rdi %define block_0 rdi %define block_1 rsi %define block_2 r11 %define len rdx %define len_dw edx %define len_w dx %define len_b dl %endif %define tmp rbx %define crc_init r8 %define crc_init_dw r8d %define crc1 r9 %define crc2 r10 push rbx push rdi push rsi ;; Move crc_init for Linux to a different reg %ifidn __OUTPUT_FORMAT__, elf64 mov crc_init, crc_init_arg %endif ;; If len is less than 8 we need to jump to special code to avoid ;; reading beyond the end of the buffer cmp len, 8 jb less_than_8 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 1) ALIGN: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mov bufptmp, bufp ;; rdi = *buf neg bufp and bufp, 7 ;; calculate the unalignment amount of ;; the address je proc_block ;; Skip if aligned ;;;; Calculate CRC of unaligned bytes of the buffer (if any) ;;; mov tmp, [bufptmp] ;; load a quadword from the buffer add bufptmp, bufp ;; align buffer pointer for quadword ;; processing sub len, bufp ;; update buffer length align_loop: crc32 crc_init_dw, bl ;; compute crc32 of 1-byte shr tmp, 8 ;; get next byte dec bufp jne align_loop proc_block: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 2) PROCESS BLOCKS: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; compute num of bytes to be processed mov tmp, len ;; save num bytes in tmp cmp len, 128*24 jae full_block continue_block: cmp len, SMALL_SIZE jb small ;; len < 128*24 mov rax, 2731 ;; 2731 = ceil(2^16 / 24) mul len_dw shr rax, 16 ;; eax contains floor(bytes / 24) = num 24-byte chunks to do ;; process rax 24-byte chunks (128 >= rax >= 0) ;; compute end address of each block ;; rdi -> block 0 (base addr + RAX * 8) ;; rsi -> block 1 (base addr + RAX * 16) ;; r11 -> block 2 (base addr + RAX * 24) lea block_0, [bufptmp + rax * 8] lea block_1, [block_0 + rax * 8] lea block_2, [block_1 + rax * 8] xor crc1,crc1 xor crc2,crc2 ;; branch into array lea bufp, [jump_table] movzx len, word [bufp + rax * 2] ;; len is offset from crc_array lea bufp, [bufp + len + crc_array - jump_table] jmp bufp ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 2a) PROCESS FULL BLOCKS: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; full_block: mov rax, 128 lea block_1, [block_0 + 128*8*2] lea block_2, [block_0 + 128*8*3] add block_0, 128*8*1 xor crc1,crc1 xor crc2,crc2 ; ;; branch into array ; jmp CONCAT(crc_,128,) ; Fall thruogh into top of crc array (crc_128) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 3) CRC Array: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; crc_array: cmp len, 128*24*2 jbe non_prefetch %assign i 128 %rep 128-1 CONCAT(_crc_,i,:) crc32 crc_init, qword [block_0 - i*8] crc32 crc1, qword [block_1 - i*8] crc32 crc2, qword [block_2 - i*8] %if i > 128*8 / 32 ; prefetch next 3KB data prefetchnta [block_2 + 128*32 - i*32] %endif %assign i (i-1) %endrep jmp next_ non_prefetch: %assign i 128 %rep 128-1 CONCAT(crc_,i,:) crc32 crc_init, qword [block_0 - i*8] crc32 crc1, qword [block_1 - i*8] crc32 crc2, qword [block_2 - i*8] %assign i (i-1) %endrep next_: CONCAT(crc_,i,:) crc32 crc_init, qword [block_0 - i*8] crc32 crc1, qword [block_1 - i*8] ; SKIP ;crc32 crc2, [block_2 - i*8] ; Don't do this one yet mov block_0, block_2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 4) Combine three results: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; lea bufp, [K_table - 16] ; first entry is for idx 1 shl rax, 3 ; rax *= 8 sub tmp, rax ; tmp -= rax*8 shl rax, 1 sub tmp, rax ; tmp -= rax*16 (total tmp -= rax*24) add bufp, rax movdqa xmm0, [bufp] ; 2 consts: K1:K2 movq xmm1, crc_init ; CRC for block 1 pclmulqdq xmm1, xmm0, 0x00 ; Multiply by K2 movq xmm2, crc1 ; CRC for block 2 pclmulqdq xmm2, xmm0, 0x10 ; Multiply by K1 pxor xmm1, xmm2 movq rax, xmm1 xor rax, [block_2 - i*8] mov crc_init, crc2 crc32 crc_init, rax ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; 5) Check for end: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CONCAT(crc_,0,:) mov len, tmp cmp tmp, 128*24 jae full_block cmp tmp, 24 jae continue_block fewer_than_24: ;; now fewer than 24 bytes remain cmp tmp, 16 jae do_16 cmp tmp, 8 jae do_8 ;; 0 <= tmp <= 7 shl ebx, 29 ; size now in bits 31:29 jz do_return check_4: mov bufp, [bufptmp] shl ebx, 1 ; shift out into carry MSB (orig size & 4) jnc check_2 crc32 crc_init_dw, bufp_dw jz do_return shr bufp, 32 ; shift data down by 4 bytes check_2: shl ebx, 1 ; shift out into carry MSB (orig size & 2) jnc check_1 crc32 crc_init_dw, bufp_w jz do_return shr bufp, 16 ; shift data down by 2 bytes check_1: crc32 crc_init_dw, bufp_b do_return: mov rax, crc_init pop rsi pop rdi pop rbx ret do_8: crc32 crc_init, qword [bufptmp] add bufptmp, 8 shl ebx, 29 ; size (0...7) in bits 31:29 jnz check_4 mov rax, crc_init pop rsi pop rdi pop rbx ret do_16: crc32 crc_init, qword [bufptmp] crc32 crc_init, qword [bufptmp+8] add bufptmp, 16 shl ebx, 29 ; size (0...7) in bits 31:29 jnz check_4 mov rax, crc_init pop rsi pop rdi pop rbx ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Handle the case of fewer than 8 bytes, unaligned. In this case ;; we can't read 8 bytes, as this might go beyond the end of the buffer ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; less_than_8: test len,4 jz less_than_4 crc32 crc_init_dw, dword[bufp] add bufp,4 less_than_4: test len,2 jz less_than_2 crc32 crc_init_dw, word[bufp] add bufp,2 less_than_2: test len,1 jz do_return crc32 crc_init_dw, byte[bufp] mov rax, crc_init pop rsi pop rdi pop rbx ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;4) LESS THAN 256-bytes REMAIN AT THIS POINT (8-bits of len are full) small: mov rax, crc_init bit8: shl len_b, 1 ;; shift-out MSB (bit-7) jnc bit7 ;; jump to bit-6 if bit-7 == 0 %assign i 0 %rep 16 crc32 rax, qword [bufptmp+i] ;; compute crc32 of 8-byte data %assign i (i+8) %endrep je do_return2 ;; return if remaining data is zero add bufptmp, 128 ;; buf +=64; (next 64 bytes) bit7: shl len_b, 1 ;; shift-out MSB (bit-7) jnc bit6 ;; jump to bit-6 if bit-7 == 0 %assign i 0 %rep 8 crc32 rax, qword [bufptmp+i] ;; compute crc32 of 8-byte data %assign i (i+8) %endrep je do_return2 ;; return if remaining data is zero add bufptmp, 64 ;; buf +=64; (next 64 bytes) bit6: shl len_b, 1 ;; shift-out MSB (bit-6) jnc bit5 ;; jump to bit-5 if bit-6 == 0 %assign i 0 %rep 4 crc32 rax, qword [bufptmp+i] ;; compute crc32 of 8-byte data %assign i (i+8) %endrep je do_return2 ;; return if remaining data is zero add bufptmp, 32 ;; buf +=32; (next 32 bytes) bit5: shl len_b, 1 ;; shift-out MSB (bit-5) jnc bit4 ;; jump to bit-4 if bit-5 == 0 %assign i 0 %rep 2 crc32 rax, qword [bufptmp+i] ;; compute crc32 of 8-byte data %assign i (i+8) %endrep je do_return2 ;; return if remaining data is zero add bufptmp, 16 ;; buf +=16; (next 16 bytes) bit4: shl len_b, 1 ;; shift-out MSB (bit-4) jnc bit3 ;; jump to bit-3 if bit-4 == 0 crc32 rax, qword [bufptmp] ;; compute crc32 of 8-byte data je do_return2 ;; return if remaining data is zero add bufptmp, 8 ;; buf +=8; (next 8 bytes) bit3: mov rbx, qword [bufptmp] ;; load a 8-bytes from the buffer: shl len_b, 1 ;; shift-out MSB (bit-3) jnc bit2 ;; jump to bit-2 if bit-3 == 0 crc32 eax, ebx ;; compute crc32 of 4-byte data je do_return2 ;; return if remaining data is zero shr rbx, 32 ;; get next 3 bytes bit2: shl len_b, 1 ;; shift-out MSB (bit-2) jnc bit1 ;; jump to bit-1 if bit-2 == 0 crc32 eax, bx ;; compute crc32 of 2-byte data je do_return2 ;; return if remaining data is zero shr rbx, 16 ;; next byte bit1: test len_b,len_b je do_return2 crc32 eax, bl ;; compute crc32 of 1-byte data ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; do_return2: pop rsi pop rdi pop rbx ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; jump table ;; Table is 129 entries x 2 bytes each ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; align 4 jump_table: %assign i 0 %rep 129 dw CONCAT(crc_,i,) - crc_array %assign i (i+1) %endrep ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; PCLMULQDQ tables ;; Table is 128 entries x 2 quad words each ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; section .data align 64 K_table: dq 0x14cd00bd6, 0x105ec76f0 dq 0x0ba4fc28e, 0x14cd00bd6 dq 0x1d82c63da, 0x0f20c0dfe dq 0x09e4addf8, 0x0ba4fc28e dq 0x039d3b296, 0x1384aa63a dq 0x102f9b8a2, 0x1d82c63da dq 0x14237f5e6, 0x01c291d04 dq 0x00d3b6092, 0x09e4addf8 dq 0x0c96cfdc0, 0x0740eef02 dq 0x18266e456, 0x039d3b296 dq 0x0daece73e, 0x0083a6eec dq 0x0ab7aff2a, 0x102f9b8a2 dq 0x1248ea574, 0x1c1733996 dq 0x083348832, 0x14237f5e6 dq 0x12c743124, 0x02ad91c30 dq 0x0b9e02b86, 0x00d3b6092 dq 0x018b33a4e, 0x06992cea2 dq 0x1b331e26a, 0x0c96cfdc0 dq 0x17d35ba46, 0x07e908048 dq 0x1bf2e8b8a, 0x18266e456 dq 0x1a3e0968a, 0x11ed1f9d8 dq 0x0ce7f39f4, 0x0daece73e dq 0x061d82e56, 0x0f1d0f55e dq 0x0d270f1a2, 0x0ab7aff2a dq 0x1c3f5f66c, 0x0a87ab8a8 dq 0x12ed0daac, 0x1248ea574 dq 0x065863b64, 0x08462d800 dq 0x11eef4f8e, 0x083348832 dq 0x1ee54f54c, 0x071d111a8 dq 0x0b3e32c28, 0x12c743124 dq 0x0064f7f26, 0x0ffd852c6 dq 0x0dd7e3b0c, 0x0b9e02b86 dq 0x0f285651c, 0x0dcb17aa4 dq 0x010746f3c, 0x018b33a4e dq 0x1c24afea4, 0x0f37c5aee dq 0x0271d9844, 0x1b331e26a dq 0x08e766a0c, 0x06051d5a2 dq 0x093a5f730, 0x17d35ba46 dq 0x06cb08e5c, 0x11d5ca20e dq 0x06b749fb2, 0x1bf2e8b8a dq 0x1167f94f2, 0x021f3d99c dq 0x0cec3662e, 0x1a3e0968a dq 0x19329634a, 0x08f158014 dq 0x0e6fc4e6a, 0x0ce7f39f4 dq 0x08227bb8a, 0x1a5e82106 dq 0x0b0cd4768, 0x061d82e56 dq 0x13c2b89c4, 0x188815ab2 dq 0x0d7a4825c, 0x0d270f1a2 dq 0x10f5ff2ba, 0x105405f3e dq 0x00167d312, 0x1c3f5f66c dq 0x0f6076544, 0x0e9adf796 dq 0x026f6a60a, 0x12ed0daac dq 0x1a2adb74e, 0x096638b34 dq 0x19d34af3a, 0x065863b64 dq 0x049c3cc9c, 0x1e50585a0 dq 0x068bce87a, 0x11eef4f8e dq 0x1524fa6c6, 0x19f1c69dc dq 0x16cba8aca, 0x1ee54f54c dq 0x042d98888, 0x12913343e dq 0x1329d9f7e, 0x0b3e32c28 dq 0x1b1c69528, 0x088f25a3a dq 0x02178513a, 0x0064f7f26 dq 0x0e0ac139e, 0x04e36f0b0 dq 0x0170076fa, 0x0dd7e3b0c dq 0x141a1a2e2, 0x0bd6f81f8 dq 0x16ad828b4, 0x0f285651c dq 0x041d17b64, 0x19425cbba dq 0x1fae1cc66, 0x010746f3c dq 0x1a75b4b00, 0x18db37e8a dq 0x0f872e54c, 0x1c24afea4 dq 0x01e41e9fc, 0x04c144932 dq 0x086d8e4d2, 0x0271d9844 dq 0x160f7af7a, 0x052148f02 dq 0x05bb8f1bc, 0x08e766a0c dq 0x0a90fd27a, 0x0a3c6f37a dq 0x0b3af077a, 0x093a5f730 dq 0x04984d782, 0x1d22c238e dq 0x0ca6ef3ac, 0x06cb08e5c dq 0x0234e0b26, 0x063ded06a dq 0x1d88abd4a, 0x06b749fb2 dq 0x04597456a, 0x04d56973c dq 0x0e9e28eb4, 0x1167f94f2 dq 0x07b3ff57a, 0x19385bf2e dq 0x0c9c8b782, 0x0cec3662e dq 0x13a9cba9e, 0x0e417f38a dq 0x093e106a4, 0x19329634a dq 0x167001a9c, 0x14e727980 dq 0x1ddffc5d4, 0x0e6fc4e6a dq 0x00df04680, 0x0d104b8fc dq 0x02342001e, 0x08227bb8a dq 0x00a2a8d7e, 0x05b397730 dq 0x168763fa6, 0x0b0cd4768 dq 0x1ed5a407a, 0x0e78eb416 dq 0x0d2c3ed1a, 0x13c2b89c4 dq 0x0995a5724, 0x1641378f0 dq 0x19b1afbc4, 0x0d7a4825c dq 0x109ffedc0, 0x08d96551c dq 0x0f2271e60, 0x10f5ff2ba dq 0x00b0bf8ca, 0x00bf80dd2 dq 0x123888b7a, 0x00167d312 dq 0x1e888f7dc, 0x18dcddd1c dq 0x002ee03b2, 0x0f6076544 dq 0x183e8d8fe, 0x06a45d2b2 dq 0x133d7a042, 0x026f6a60a dq 0x116b0f50c, 0x1dd3e10e8 dq 0x05fabe670, 0x1a2adb74e dq 0x130004488, 0x0de87806c dq 0x000bcf5f6, 0x19d34af3a dq 0x18f0c7078, 0x014338754 dq 0x017f27698, 0x049c3cc9c dq 0x058ca5f00, 0x15e3e77ee dq 0x1af900c24, 0x068bce87a dq 0x0b5cfca28, 0x0dd07448e dq 0x0ded288f8, 0x1524fa6c6 dq 0x059f229bc, 0x1d8048348 dq 0x06d390dec, 0x16cba8aca dq 0x037170390, 0x0a3e3e02c dq 0x06353c1cc, 0x042d98888 dq 0x0c4584f5c, 0x0d73c7bea dq 0x1f16a3418, 0x1329d9f7e dq 0x0531377e2, 0x185137662 dq 0x1d8d9ca7c, 0x1b1c69528 dq 0x0b25b29f2, 0x18a08b5bc dq 0x19fb2a8b0, 0x02178513a dq 0x1a08fe6ac, 0x1da758ae0 dq 0x045cddf4e, 0x0e0ac139e dq 0x1a91647f2, 0x169cf9eb0 dq 0x1a0f717c4, 0x0170076fa ;;; func core, ver, snum slversion crc32_iscsi_01, 01, 04, 0015
29.399323
88
0.581007
4a80f395b07424e66e09fe25c3698771e441b8f9
47,582
asm
Assembly
Library/Impex/UI/uiImportCtrl.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Impex/UI/uiImportCtrl.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Impex/UI/uiImportCtrl.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Impex/UI FILE: uiImportCtrl.asm AUTHOR: Don Reeves, May 26, 1992 ROUTINES: Name Description ---- ----------- INT ImportSendDataClassesToFormatList Send the data classes to the format list INT SelectFormatImportNoIdea Do special case for NoIdea INT SetFileMask Set the file mask REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial revision DESCRIPTION: Contains the code implementing the ImportControlClass $Id: uiImportCtrl.asm,v 1.3 98/07/20 18:06:24 joon Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImpexUICode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *** External Messages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetDataClasses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Sets the data classes to be displayed for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_DATA_CLASSES) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = ImpexDataClasses RETURN: Nothing DESTROYED: AX, BX, CX, DX, BP, DI, SI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetDataClasses method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_DATA_CLASSES .enter ; Store the data away, and notify our child if needed ; EC < test cx, not ImpexDataClasses > EC < ERROR_NZ ILLEGAL_IMPEX_DATA_CLASSES > mov ds:[di].ICI_dataClasses, cx call ImportSendDataClassesToFormatList .leave ret ImportControlSetDataClasses endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetDataClasses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the data classes displayed for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_GET_DATA_CLASSES) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: CX = ImpexDataClasses DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetDataClasses method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_DATA_CLASSES .enter mov cx, ds:[di].ICI_dataClasses .leave ret ImportControlGetDataClasses endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetAction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the action (message and OD to send it to) for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_ACTION) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX:DX = OD of destination object BP = Message to send RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetAction method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_ACTION .enter movdw ds:[di].ICI_destination, cxdx mov ds:[di].ICI_message, bp .leave ret ImportControlSetAction endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetMsg %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the message for import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_MSG) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = Message to send RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetMsg method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_MSG .enter mov ds:[di].ICI_message, cx .leave ret ImportControlSetMsg endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetAction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the action to be used upon import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_GET_ACTION) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: CX:DX = OD of destination object BP = Message to send DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetAction method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_ACTION .enter movdw cxdx, ds:[di].ICI_destination mov bp, ds:[di].ICI_message .leave ret ImportControlGetAction endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetAttrs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the attributes for an ImportControl object CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_SET_ATTRS) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = ImportControlAttrs RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetAttrs method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_ATTRS .enter EC < test cx, not ImportControlAttrs > EC < ERROR_NZ IMPORT_CONTROL_ILLEGAL_ATTRS > mov ds:[di].ICI_attrs, cx .leave ret ImportControlSetAttrs endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetAttrs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the attributes for an ImportControl object CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_GET_ATTRS) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: CX = ImportControlAttrs DESTROYED: Nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetAttrs method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_ATTRS .enter mov cx, ds:[di].ICI_attrs .leave ret ImportControlGetAttrs endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlImportComplete %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: An application has reported that is import is complete. CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_IMPORT_COMPLETE) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance SS:BP = ImpexTranslationParams RETURN: Nothing DESTROYED: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/ 1/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlImportComplete method dynamic ImportControlClass, MSG_IMPORT_CONTROL_IMPORT_COMPLETE ; Send a message of to the import thread ; mov ax, MSG_ITP_IMPORT_TO_APP_COMPLETE mov bx, ss:[bp].ITP_internal.low mov cx, ss:[bp].ITP_internal.high mov dx, size ImpexTranslationParams mov di, mask MF_STACK GOTO ObjMessage ImportControlImportComplete endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlCallField %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Calls the field object. CALLED BY: ImportControlImportComplete, others PASS: ax -- message to send, any args in cx, dx, bp RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Chris 5/ 6/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if 0 ;not used until we can handle fail cases ImportControlCallField proc near uses ax, bx, cx, dx, bp, di .enter push si mov bx, segment GenFieldClass mov si, offset GenFieldClass mov di, mask MF_RECORD call ObjMessage pop si mov cx, di mov ax, MSG_GEN_GUP_CALL_OBJECT_OF_CLASS call GenCallParent .leave ret ImportControlCallField endp endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *** Internal Messages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlBuildBranch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Intercept building of visual tree CALLED BY: GLOBAL (MSG_SPEC_BUILD_BRANCH) PASS: ES = Segment of ImportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance BP = SpecBuildFlags RETURN: Nothing DESTROYED: BX, CX, DX, DI PSEUDO CODE/STRATEGY: * Copy a default moniker (if needed) * Continue with building of branch KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/15/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if DEFAULT_MONIKER ImportControlBuildBranch method dynamic ImportControlClass, MSG_SPEC_BUILD_BRANCH ; Add a moniker (if needed) for import ; mov dx, handle DefaultImportMoniker mov cx, offset DefaultImportMoniker call ImpexCopyDefaultMoniker ; Call our superclass to finish the work ; mov di, offset ImportControlClass GOTO ObjCallSuperNoLock ImportControlBuildBranch endm endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get information about the ImportControl object CALLED BY: GLOBAL (MSG_GEN_CONTROL_GET_INFO) PASS: *DS:SI = ImportControlControlClass object DS:DI = ImportControlControlClassInstance CX:DX = GenControlBuildInfo RETURN: Nothing DESTROYED: CX, DI, SI, DS, ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 1/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetInfo method dynamic ImportControlClass, MSG_GEN_CONTROL_GET_INFO .enter mov es, cx mov di, dx ; buffer to fill => ES:DI segmov ds, cs mov si, offset IC_dupInfo mov cx, size GenControlBuildInfo rep movsb .leave ret ImportControlGetInfo endm IC_dupInfo GenControlBuildInfo < mask GCBF_MANUALLY_REMOVE_FROM_ACTIVE_LIST, ; GCBI_flags IC_initFileKey, ; GCBI_initFileKey 0, ; GCBI_gcnList 0, ; GCBI_gcnCount 0, ; GCBI_notificationList 0, ; GCBI_notificationCount ImportControllerName, ; GCBI_controllerName handle ImportControlUI, ; GCBI_dupBlock IC_childList, ; GCBI_childList length IC_childList, ; GCBI_childCount IC_featuresList, ; GCBI_featuresList length IC_featuresList, ; GCBI_featuresCount IMPORTC_DEFAULT_FEATURES, ; GCBI_features handle ImportToolboxUI, ; GCBI_toolBlock IC_toolList, ; GCBI_toolList length IC_toolList, ; GCBI_toolCount IC_toolFeaturesList, ; GCBI_toolFeaturesList length IC_toolFeaturesList, ; GCBI_toolFeaturesCount IMPORTC_DEFAULT_TOOLBOX_FEATURES, ; GCBI_toolFeatures IC_helpContext> ; GCBI_helpContext if FULL_EXECUTE_IN_PLACE ImpexControlInfoXIP segment resource endif IC_initFileKey char "importControl", 0 IC_childList GenControlChildInfo \ <offset ImportGlyphParent, mask IMPORTCF_GLYPH, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportFileSelector, mask IMPORTCF_BASIC, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportFormatListParent, mask IMPORTCF_BASIC, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportFileMask, mask IMPORTCF_FILE_MASK, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportFormatUIParent, mask IMPORTCF_FORMAT_OPTIONS, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportAppUIParent, mask IMPORTCF_BASIC, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportTrigger, mask IMPORTCF_IMPORT_TRIGGER, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ImportCancelTrigger, 0, mask GCCF_ALWAYS_ADD> IC_featuresList GenControlFeaturesInfo \ <offset ImportGlyph, 0, 0>, <offset ImportFormatListParent, 0, 0>, <offset ImportFileMask, ImportFileMaskName, 0>, <offset ImportFormatUIParent, ImportFormatOptsName, 0>, <offset ImportTrigger, 0, 0> IC_toolList GenControlChildInfo \ <offset ImportToolTrigger, mask IMPORTCTF_DIALOG_BOX, mask GCCF_IS_DIRECTLY_A_FEATURE> IC_toolFeaturesList GenControlFeaturesInfo \ <offset ImportToolTrigger, ImportTriggerToolName, 0> IC_helpContext char "dbImport", 0 if FULL_EXECUTE_IN_PLACE ImpexControlInfoXIP ends endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFileSelectorOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFileSelector if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFileSelector DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFileSelectorOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET test dx, mask IMPORTCF_BASIC jz done mov cx, offset ImportFileSelector done: ret ImportControlGetFileSelectorOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFormatListOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFormatList if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFormatList if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFormatListOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET test dx, mask IMPORTCF_BASIC jz done mov cx, offset ImportFormatList done: ret ImportControlGetFormatListOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFileMaskOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFileMask if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FILE_MASK_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFileMask if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFileMaskOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FILE_MASK_OFFSET test dx, mask IMPORTCF_FILE_MASK jz done mov cx, offset ImportFileMask done: ret ImportControlGetFileMaskOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFormatUIParentOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportFormatUIParent if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportFormatUIParent if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFormatUIParentOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET test dx, mask IMPORTCF_FORMAT_OPTIONS jz done mov cx, offset ImportFormatUIParent done: ret ImportControlGetFormatUIParentOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetAppUIParentOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get offset of ImportAppUIParent if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportAppUIParent if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetAppUIParentOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET test dx, mask IMPORTCF_BASIC jz done mov cx, offset ImportAppUIParent done: ret ImportControlGetAppUIParentOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetImportTriggerOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Get the offset of the import trigger if it exists CALLED BY: MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET PASS: *ds:si = ImportControlClass object dx = import features mask RETURN: cx = offset of ImportTrigger if it exists DESTROYED: none SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jenny 11/29/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetImportTriggerOffset method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET test dx, mask IMPORTCF_IMPORT_TRIGGER jz done mov cx, offset ImportTrigger done: ret ImportControlGetImportTriggerOffset endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGenerateUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add application-defined UI to Import dialog box CALLED BY: GLOBAL (MSG_GEN_CONTROL_GENERATE_UI) PASS: ES = Segment of ImportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance AX = Message passed RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGenerateUI method dynamic ImportControlClass, MSG_GEN_CONTROL_GENERATE_UI .enter ; First, call our superclass ; mov di, offset ImportControlClass call ObjCallSuperNoLock ; Update the data classes in the FormatList ; mov di, ds:[si] add di, ds:[di].ImportControl_offset call ImportSendDataClassesToFormatList ; Now see if need to add any application-defined UI ; mov ax, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- app UI parent offset jc done mov ax, ATTR_IMPORT_CONTROL_APP_UI call ObjVarFindData ; ds:bx <- data jnc done ; if none found, we're done call ImpexAddAppUI ; add the application UI done: .leave ret ImportControlGenerateUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlTweakDuplicatedUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: modify UI of Import dialog box CALLED BY: GLOBAL (MSG_GEN_CONTROL_GENERATE_UI) PASS: ES = Segment of ExportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance AX = Message passed cx = block dx = features RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 1/29/99 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlTweakDuplicatedUI method dynamic ImportControlClass, MSG_GEN_CONTROL_TWEAK_DUPLICATED_UI ; ; remove path list for CUI ; call UserGetDefaultUILevel cmp ax, UIIL_INTRODUCTORY jne done mov bx, cx mov si, offset ImportFileSelector mov ax, MSG_GEN_FILE_SELECTOR_GET_ATTRS mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage ; cx = attrs andnf cx, not mask FSA_HAS_CHANGE_DIRECTORY_LIST mov ax, MSG_GEN_FILE_SELECTOR_SET_ATTRS mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage ; ; turn off directories ; mov ax, MSG_GEN_FILE_SELECTOR_GET_FILE_CRITERIA mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage ; cx = crit andnf cx, not mask FSFC_DIRS mov ax, MSG_GEN_FILE_SELECTOR_SET_FILE_CRITERIA mov di, mask MF_CALL or mask MF_FIXUP_DS call ObjMessage done: ret ImportControlTweakDuplicatedUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlDestroyUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Remove application-defined (or format-defined) UI from the Import dialog box CALLED BY: GLOBAL (MSG_GEN_CONTROL_DESTROY_UI) PASS: ES = Segment of ImportControlClass *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance AX = Message RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlDestroyUI method dynamic ImportControlClass, MSG_GEN_CONTROL_DESTROY_UI, MSG_META_DETACH ; First destroy any format-specific UI ; push ax, cx, dx, bp ; save the passed message mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent ; offset jc doAppUI call ImpexRemoveFormatUI doAppUI: ; Now destroy any application-specific UI ; mov ax, MSG_IMPORT_CONTROL_GET_APP_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- app UI parent offset jc done mov ax, ATTR_IMPORT_CONTROL_APP_UI call ObjVarFindData ; ds:bx <- data jnc done ; if none found, we're done call ImpexRemoveAppUI ; Finally, call our superclass to clean things up done: pop ax, cx, dx, bp ; restore passed message mov di, offset ImportControlClass GOTO ObjCallSuperNoLock ImportControlDestroyUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSelectFormat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Note that a format has been selected for import CALLED BY: GLOBAL (MSG_IMPORT_EXPORT_SELECT_FORMAT) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance CX = Format # DX = FormatInfo block RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/91 Initial version jenny 1/92 Cleaned up Don 5/27/92 Renamed, cleaned up %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSelectFormat method dynamic ImportControlClass, MSG_IMPORT_EXPORT_SELECT_FORMAT .enter ; Get the offset of the format UI parent object, if ; any, and remove any current format UI. ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_UI_PARENT_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format UI parent offset jc noOldFormatUI call ImpexRemoveFormatUI noOldFormatUI: cmp cx, GIGS_NONE je done ; done if nothing selected tst bp ; If "No Idea" choice is jz setFileMask ; ...not present, set mask jcxz noIdeaFormat ; Else, handle "No Idea" dec cx ; ...or adjust element number ; Get the default file spec from the Library geode and ; set it into the File Mask text edit object. setFileMask: push cx mov bx, dx ; bx <- FormatInfo block call GetDefaultFileMask ; cx:dx <- file mask call SetFileMask call MemUnlock ; unlock the FormatInfo pop cx ; cx <- format # ; Now we need to see if there is any new format UI. ; tst di jz done ; done if no format UI parent mov bx, di mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset jc done mov dx, TR_GET_IMPORT_UI mov bp, offset IFD_importUIFlag mov ax, MSG_FORMAT_LIST_FETCH_FORMAT_UI call ObjMessage_child_call jc done ; if error, done mov di, bx ; di <- format UI parent offset mov ax, TR_GET_IMPORT_UI mov bx, TR_INIT_IMPORT_UI call ImpexAddFormatUI ; update the UI done: .leave ret ; Deal with the "No Idea" format. noIdeaFormat: call SelectFormatImportNoIdea jmp done ; we're done ImportControlSelectFormat endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSetFileMask %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the file spec of the file selector CALLED BY: GLOBAL PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlInstance RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP PSEUDO CODE/STRATEGY: Grab the user-edited file mask, set the mask for the file selector, and reset the selection KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSetFileMask method dynamic ImportControlClass, MSG_IMPORT_CONTROL_SET_FILE_MASK .enter ; Get the text from the text display object ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_MASK_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file mask offset jc exit mov ax, MSG_VIS_TEXT_GET_ALL_PTR sub sp, PATH_BUFFER_SIZE mov dx, ss mov bp, sp call ObjMessage_child_call ; fill buffer with text mov cx, dx mov dx, bp call SetFileMask ; set the mask add sp, PATH_BUFFER_SIZE ; clean up stack exit: .leave ret ImportControlSetFileMask endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlSelectFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Respond to a selection of a file by the user CALLED BY: GLOBAL (MSG_IMPORT_EXPORT_SELECT_FILE) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance BP = GenFileSelectorEntryFlags RETURN: Nothing DESTROYED: AX, CX, DX, BP, DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlSelectFile method dynamic ImportControlClass, MSG_IMPORT_EXPORT_SELECT_FILE .enter ; Pass this information on to a superclass ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset jc doTrigger call SendFileSelectionInfo doTrigger: ; Either enable or disable the Import trigger ; mov ax, MSG_IMPORT_CONTROL_GET_IMPORT_TRIGGER_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- trigger offset jc done mov ax, MSG_GEN_SET_NOT_ENABLED test bp, mask GFSEF_NO_ENTRIES jnz setStatus ; if zip, can't import CheckHack <GFSET_FILE eq 0> test bp, mask GFSEF_TYPE jnz setStatus mov ax, MSG_GEN_SET_ENABLED setStatus: mov dl, VUM_DELAYED_VIA_UI_QUEUE call ObjMessage_child_send ; Finally, see if we should start the import ; test bp, mask GFSEF_OPEN jz done mov ax, MSG_GEN_TRIGGER_SEND_ACTION call ObjMessage_child_send done: .leave ret ImportControlSelectFile endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlImport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Initiate an import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_IMPORT) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance ES:DI = ImportControlClassInstance RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP, DS, ES PSEUDO CODE/STRATEGY: * Do the common work * Get the name of the source file * Spawn the thread and import KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/27/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if not VOLATILE_SYSTEM_STATE ImportControlImport method dynamic ImportControlClass, MSG_IMPORT_CONTROL_IMPORT .enter ; Initialize the ImpexThreadInfo structure ; CheckHack <(mask IA_IGNORE_INPUT) eq (mask ICA_IGNORE_INPUT)> mov cx, ds:[di].ICI_attrs mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov bp, di mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov dx, MSG_GEN_PATH_GET ; dx <- msg to send FileSelector call InitThreadInfoBlock ; bx <- block handle jc exit push di ; save file selector offset ; Store away some additional data ; mov di, ds:[si] add di, ds:[di].ImportControl_offset mov ax, ds:[di].ICI_message mov es:[ITI_appMessage], ax movdw cxax, ds:[di].ICI_destination movdw es:[ITI_appDest], cxax mov es:[ITI_notifySource].handle, handle ImportNotifyUI mov es:[ITI_notifySource].offset, offset ImportNotify ; Load in the name of the source file ; pop di ; di <- file selector offset mov ax, MSG_GEN_FILE_SELECTOR_GET_SELECTION mov cx, es mov dx, offset ITI_srcDestName call ObjMessage_child_call ; Now spawn the thread ; mov ax, MSG_ITP_IMPORT call SpawnThread exit: .leave ret ImportControlImport endm else ;VOLATILE_SYSTEM_STATE ImportControlImport method dynamic ImportControlClass, MSG_IMPORT_CONTROL_IMPORT .enter test ds:[di].ICI_attrs, mask ICA_NON_DOCUMENT_IMPORT jz continueImportAfterFileSaves ; ; A non-document import, continue import now! ; mov ax, MSG_IMPORT_CONTROL_CONTINUE_IMPORT GOTO ObjCallInstanceNoLock continueImportAfterFileSaves: ; ; Delay continuing the import until after all the app's files have ; been saved or closed. We'll pass our continue message in ; MSG_META_QUERY_SAVE_DOCUMENTS, which in turn will be passed to ; app with the full screen exclusive, just to ensure that it gets ; to the right place, though it's probably overkill... ; mov bx, ds:[LMBH_handle] mov ax, MSG_IMPORT_CONTROL_CONTINUE_IMPORT mov di, mask MF_RECORD call ObjMessage mov cx, di ;pass in cx to MSG_META_QUERY_DOCUMENTS mov ax, MSG_META_QUERY_SAVE_DOCUMENTS mov bx, segment GenClass mov si, offset GenClass mov di, mask MF_RECORD call ObjMessage mov ax, MSG_META_QUERY_SAVE_DOCUMENTS clr bp mov bx, MANUFACTURER_ID_GEOWORKS mov ax, GCNSLT_TRANSPARENT_DETACH_FULL_SCREEN_EXCL mov cx, di clr dx call GCNListSend .leave ret ImportControlImport endm endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlContinueImport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Continue an import, after files have been saved/closed. CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_IMPORT) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance ES:DI = ImportControlClassInstance RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP, DS, ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 3/15/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if VOLATILE_SYSTEM_STATE ImportControlContinueImport method dynamic ImportControlClass, MSG_IMPORT_CONTROL_CONTINUE_IMPORT .enter if LIMITED_UNTITLED_DOC_DISK_SPACE ; ; Nuke clipboard file for space reasons. 1/20/94 cbh ; call ClipboardFreeItemsNotInUse endif ; Initialize the ImpexThreadInfo structure ; CheckHack <(mask IA_IGNORE_INPUT) eq (mask ICA_IGNORE_INPUT)> mov cx, ds:[di].ICI_attrs mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov bp, di mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov dx, MSG_GEN_PATH_GET ; dx <- msg to send FileSelector call InitThreadInfoBlock ; bx <- block handle jc exit push di ; save file selector offset ; Store away some additional data ; mov di, ds:[si] add di, ds:[di].ImportControl_offset mov ax, ds:[di].ICI_message mov es:[ITI_appMessage], ax movdw cxax, ds:[di].ICI_destination movdw es:[ITI_appDest], cxax mov es:[ITI_notifySource].handle, handle ImportNotifyUI mov es:[ITI_notifySource].offset, offset ImportNotify ; Load in the name of the source file ; pop di ; di <- file selector offset mov ax, MSG_GEN_FILE_SELECTOR_GET_SELECTION mov cx, es mov dx, offset ITI_srcDestName call ObjMessage_child_call ; Now spawn the thread ; mov ax, MSG_ITP_IMPORT call SpawnThread exit: .leave ret ImportControlContinueImport endm endif COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlCancel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Cancel an import CALLED BY: GLOBAL (MSG_IMPORT_CONTROL_CANCEL) PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlClassInstance RETURN: Nothing DESTROYED: AX, BX, CX, DX, DI, SI, BP, DS, ES PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 11/17/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlCancel method dynamic ImportControlClass, MSG_IMPORT_CONTROL_CANCEL .enter ; If there is vardata telling us to send a message on cancel ; then do so ; mov ax, ATTR_IMPORT_CONTROL_CANCEL_MESSAGE call ObjVarFindData jnc done mov dx, ds:[bx] ;save message mov ax, ATTR_IMPORT_CONTROL_CANCEL_DESTINATION call ObjVarFindData jnc done mov si, ds:[bx].chunk mov bx, ds:[bx].handle mov_tr ax, dx clr di call ObjMessage done: .leave ret ImportControlCancel endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlGetFileSelector %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns the optr of the file selector, if built. CALLED BY: MSG_IMPORT_CONTROL_GET_FILE_SELECTOR PASS: *ds:si = ImportControlClass object ds:di = ImportControlClass instance data ds:bx = ImportControlClass object (same as *ds:si) es = segment of ImportControlClass ax = message # RETURN: ^lcx:dx = the GenFileSelector carry set if the child hasn't been built yet DESTROYED: ax, bp SIDE EFFECTS: none PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 11/07/98 Initial version dhunter 10/12/00 Clear cxdx if carry set for C callers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlGetFileSelector method dynamic ImportControlClass, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR uses ax, bp .enter mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di = file selector offset call ImpexGetChildBlockAndFeatures ; bx = block movdw cxdx, bxdi jc clearIt done: .leave ret clearIt: clrdw cxdx ; clear cxdx if carry set jmp done ImportControlGetFileSelector endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportControlAutoDetectFileFormat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Tries to auto-detect the format of the file currently selected for import. CALLED BY: MSG_IMPORT_CONTROL_AUTO_DETECT_FILE_FORMAT PASS: *ds:si = ImportControlClass object ds:di = ImportControlClass instance data ds:bx = ImportControlClass object (same as *ds:si) es = segment of ImportControlClass ax = message # RETURN: carry set if unable to auto-detect format, otherwise clear. DESTROYED: ax SIDE EFFECTS: Sets format selector to "No idea" PSEUDO CODE/STRATEGY: Select "No idea" format Call InitThreadInfoBlock to do the auto-detect REVISION HISTORY: Name Date Description ---- ---- ----------- dhunter 10/12/00 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportControlAutoDetectFileFormat method dynamic ImportControlClass, MSG_IMPORT_CONTROL_AUTO_DETECT_FILE_FORMAT uses cx, dx, bp .enter ; ; Get the format list and set it to the first selection, which is ; always "No idea". ; mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION clr cx ; cx <- item ID = 0 clr dx ; dx <- not indeterminate call ObjMessage_child_call ;; mov ax, MSG_GEN_ITEM_GROUP_SEND_STATUS_MSG ;; call ObjMessage_child_call ; ; Initialize the ImpexThreadInfo structure to do the auto-detect ; mov bp, di mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset EC < ERROR_C IMPEX_NECESSARY_CONTROL_FEATURE_MISSING > mov dx, MSG_GEN_PATH_GET ; dx <- msg to send FileSelector call InitThreadInfoBlock ; bx <- block handle, carry jc skipFree ; indicates error call MemFree ; Else, free returned block clc ; Format was auto-detected skipFree: .leave ret ImportControlAutoDetectFileFormat endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% *** Utilities %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ImportSendDataClassesToFormatList %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Send the data classes to the format list CALLED BY: INTERNAL PASS: *DS:SI = ImportControlClass object DS:DI = ImportControlInstance RETURN: Nothing DESTROYED: AX, CX, DI PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 6/ 2/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ImportSendDataClassesToFormatList proc near class ImportControlClass .enter mov cx, ds:[di].ICI_dataClasses mov ax, MSG_IMPORT_CONTROL_GET_FORMAT_LIST_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- format list offset jc exit mov ax, MSG_FORMAT_LIST_SET_DATA_CLASSES call ObjMessage_child_send exit: .leave ret ImportSendDataClassesToFormatList endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SelectFormatImportNoIdea %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do special case for NoIdea CALLED BY: SelectFormatImport PASS: *DS:SI = ImportControlClass object RETURNED: Nothing DESTROYED: AX, BX, CX, DX, DI, BP PSEUDO CODE/STRATEGY: * Set the filemask to "*.*" KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jimmy 4/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SelectFormatImportNoIdea proc near .enter ; Set the file mask ; push ds, si ; save ImportControl object mov si, offset WildCardString call LockString ; string => DS:SI mov cx, ds mov dx, si pop ds, si ; ImportControl object => *DS:SI call SetFileMask call MemUnlock ; unlock strings resource .leave ret SelectFormatImportNoIdea endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetFileMask %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set the file mask CALLED BY: INTERNAL PASS: *DS:SI = ImportControlClass object CX:DX = File mask string RETURN: Nothing DESTROYED: Nothing PSEUDO CODE/STRATEGY: * Set the file selector mask * Reset the file selector selection * Set the file mask text, and select it KNOWN BUGS/SIDE EFFECTS/IDEAS: If the user cannot edit the file mask, then we do nothing REVISION HISTORY: Name Date Description ---- ---- ----------- Don 5/27/92 Initial version Don 11/4/99 changed so that masks can be set even if user cannot edit the mask. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetFileMask proc near uses ax, bx, cx, dx, di, bp .enter ; Get the child for the mask text object & the ; file selector. If the file selector is not present, ; then do nothing. ; mov ax, MSG_IMPORT_CONTROL_GET_FILE_MASK_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file mask offset mov bp, di mov ax, MSG_IMPORT_CONTROL_GET_FILE_SELECTOR_OFFSET mov di, offset ImportControlClass call ImpexGetChildOffset ; di <- file selector offset jc exit push bp ; save file mask offset ; Now set the file mask, and reset the selection ; call UpcaseString ; upcase string in CX:DX mov ax, MSG_GEN_FILE_SELECTOR_SET_MASK push cx, dx, cx, dx ; save mask buffer call ObjMessage_child_call ; set the file mask mov ax, MSG_GEN_FILE_SELECTOR_SET_SELECTION pop cx, dx call ObjMessage_child_call ; attempt to set selection ; Set the mask text, and reset the selection ; pop dx, bp ; text => DX:BP clr cx ; text is NULL-terminated pop di ; file mask offset => DI tst di jz exit mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR call ObjMessage_child_call mov ax, MSG_VIS_TEXT_SELECT_ALL call ObjMessage_child_call exit: .leave ret SetFileMask endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MaskTextKbdChar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Intercept keyboard characters for the mask text class CALLED BY: GLOBAL (MSG_META_KBD_CHAR) PASS: *DS:SI = MaskTextClass object DS:DI = MaskTextClassInstance CX = Character value DL = CharFlags DH = ShiftState BP = shme RETURN: Nothing DESTROYED: AX, CX, DX, BP PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Don 10/28/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ MaskTextKbdChar method dynamic MaskTextClass, MSG_META_KBD_CHAR ; We're either going to swallow CR characters, and ; send MSG_GEN_ACTIVATE direectly, or we will pass ; on everything to our superclass ; test dl, mask CF_RELEASE jnz callsuper cmp cl, C_ENTER jne callsuper mov ax, MSG_GEN_ACTIVATE callsuper: mov di, offset MaskTextClass GOTO ObjCallSuperNoLock MaskTextKbdChar endm ImpexUICode ends
26.611857
102
0.602686
b355c1c38231239a58df592f3f6a63e2e6c49dd2
864
asm
Assembly
dino/lcs/123p/83.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/123p/83.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/123p/83.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00606E tst.b ($83,A6) 006072 bne $60e0 [123p+ 83, enemy+83] 0060D4 move.b #$1, ($83,A6) 0060DA jmp $9af4.l [123p+ 83, enemy+83] 01A63C move.b D0, ($83,A6) 01A640 move.b D0, ($80,A6) 01A8A0 move.b D0, ($83,A6) 01A8A4 move.b #$1, ($c8,A6) 01A93A move.b D0, ($83,A6) 01A93E move.b D0, ($af,A6) 01B6AC move.b D0, ($83,A6) 01B6B0 move.b #$1, ($c8,A6) 01C27C clr.b ($83,A6) [123p+ 51] 01C280 move.b #$4, ($7b,A6) [123p+ 83] 01C45C clr.b ($83,A6) [123p+ 51] 01C460 move.b #$4, ($7b,A6) [123p+ 83] 01C622 clr.b ($83,A6) [123p+ 51] 01C626 move.b #$4, ($7b,A6) 01C7BA clr.b ($83,A6) [123p+ 51] 01C7BE move.b #$4, ($7b,A6) 01CCA6 clr.b ($83,A6) [123p+ 51] 01CCAA move.b #$4, ($7b,A6) [123p+ 83] copyright zengfr site:http://github.com/zengfr/romhack
32
54
0.584491
7ba07f1ff7fd482d9773527c19506e9d19e387a3
147
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy8.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy8.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy8.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_enmy8.asm Type: file Size: 178916 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: 385E3714A9F222F26C1097C9416EFC552F4360C3 Description: null
21
47
0.816327
528a7e8a8a7351407f68e282b24d99a2975218cd
628
asm
Assembly
programs/oeis/052/A052482.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/052/A052482.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/052/A052482.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A052482: a(n) = 2^(n-2)*binomial(n+1,2). ; 3,12,40,120,336,896,2304,5760,14080,33792,79872,186368,430080,983040,2228224,5013504,11206656,24903680,55050240,121110528,265289728,578813952,1258291200,2726297600,5888802816,12683575296,27246198784,58384711680,124822487040,266287972352,566935683072,1204738326528,2555505541120,5411658792960,11441792876544,24154896072704,50921132261376,107202383708160,225399883694080,473339755757568,992858999881728,2080275999752192,4354066045992960,9103956277985280 add $0,1 mov $2,3 mov $3,3 mov $4,1 add $4,$0 lpb $0,1 sub $0,1 mov $1,$3 add $4,$2 mov $2,$4 add $3,$4 add $3,$1 lpe
36.941176
453
0.786624
5ee973818afa8be29d13651036067a7b8a339188
360
asm
Assembly
libsrc/oz/oztime/ozday.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/oz/oztime/ozday.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/oz/oztime/ozday.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; clock functions ; ; unsigned ozday() ; ; ; ------ ; $Id: ozday.asm,v 1.3 2016/06/27 21:25:36 dom Exp $ ; SECTION code_clib PUBLIC ozday PUBLIC _ozday EXTERN Compute ozday: _ozday: ld c,38h jp Compute
13.333333
53
0.619444
4b0b66e9aed8dfd9f656072167e901bfa67c5003
624
asm
Assembly
oeis/193/A193250.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/193/A193250.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/193/A193250.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A193250: Small rhombicuboctahedron with faces of centered polygons. ; 1,51,245,679,1449,2651,4381,6735,9809,13699,18501,24311,31225,39339,48749,59551,71841,85715,101269,118599,137801,158971,182205,207599,235249,265251,297701,332695,370329,410699,453901,500031,549185,601459,656949,715751,777961,843675,912989,985999,1062801,1143491,1228165,1316919,1409849,1507051,1608621,1714655,1825249,1940499,2060501,2185351,2315145,2449979,2589949,2735151,2885681,3041635,3203109,3370199,3543001,3721611,3906125,4096639,4293249,4496051,4705141,4920615,5142569,5371099,5606301 mul $0,2 add $0,1 mov $1,$0 pow $0,3 sub $1,$0 sub $0,$1
62.4
495
0.81891
5c981e8bd5222ae102b8cf686259b2f6c323b48b
2,841
nasm
Assembly
A4/xmm_xor_decoder.nasm
mshaneck/SLAE32
4806e478292c1891c9789ce64efd6595092bd599
[ "MIT" ]
null
null
null
A4/xmm_xor_decoder.nasm
mshaneck/SLAE32
4806e478292c1891c9789ce64efd6595092bd599
[ "MIT" ]
null
null
null
A4/xmm_xor_decoder.nasm
mshaneck/SLAE32
4806e478292c1891c9789ce64efd6595092bd599
[ "MIT" ]
null
null
null
; Title: XMM decoder shellcode ; Filename: xmm_xor_decoder.nasm ; Author: Mark Shaneck ; Website: http://markshaneck.com ; ; A more detailed description of this code can be found at ; http://markshaneck.com/SLAE32/slae32-assignment4 ; ; Purpose: Decode shellcode that has been encoded through ; an xor with a 128 bit value that gets rotated left by ; a particular amount. This code is not intended to be ; used directly but as a way to create a template for ; the associated python script to autogenerate it, since ; the xor key and the shift amount will be randomized for ; each run global _start section .text _start: jmp get_keys got_keys: pop esi ; esi contains the address of the xor key xor ecx,ecx movdqu xmm1, [esi] ; put the xor key into xmm1 pxor xmm3,xmm3 ; put a zero in xmm3 for end point check jmp short move_on ; put the data in the middle to break up the signature somewhat, since ; the 128 bit xorkey will be random each time get_keys: call got_keys ; the xorkey will be a random value xorKey: db 0x71,0x6a,0xc9,0xfc,0xfe,0x1a,0xd1,0x09,0xb4,0x9c,0x2b,0x7f,0xce,0x75,0x8f,0xc4 move_on: jmp short get_shellcode got_shellcode: pop esi ; now the shellcode address is loaded into esi mov edx,esi ; we will update esi, so edx will save the start point decode_loop: movdqu xmm0, [esi] ; put the first block of encoded shellcode into xmm0 pxor xmm0,xmm1 ; decode that next block movdqu [esi],xmm0 ; check to see if that value in xmm0 is 0 ; xmm3 contains all zeros ; so we can use vptest and jc ; vptest xmm3,xmm0 sets the CF if xmm0 AND NOT xmm3 is all zeros ; that is, since xmm3 is zero, not xmm3 is all 1s ; so xmm0 and not xmm3 will be all zeros if xmm0 is all zeros vptest xmm3,xmm0 jnc rotate_key jmp edx rotate_key: ; before we increment esi and loop, rol the key by shiftvalue bytes ; these shift values will be dynamically generated by the encoder script ; hard code for now movdqu xmm2,xmm1 ; copy so we can rotate the key pslldq xmm1, 0x9 ; rotate left by shift key --> this needs to get replaced with the random value psrldq xmm2, 0x7 ; rotate right by remainder --> this needs to get replaced with the random value por xmm1,xmm2 ; OR together to get rotate left ; skip to the next block of encoded shellcode add esi, 0x10 jmp short decode_loop get_shellcode: call got_shellcode shellcode: db 0x40,0xa3,0x3e,0x1d,0xcf,0xc1,0x61,0x0d,0x07,0x9d,0xc0,0x74,0x97,0xc7,0x82,0x09,0x89,0x04,0x9d,0x1a,0xa4,0x03,0xf5,0x67,0x34,0x8e,0x95,0x36,0xb4,0x9b,0x76,0xbd,0xe0,0xe4,0x06,0x05,0xbb,0x90,0x9a,0x3b,0xdb,0x09,0xb4,0x9c,0x2b,0x7f,0xce,0x75,0x1a,0xd1,0x09,0xb4,0x9c,0x2b,0x7f,0xce,0x75,0x8f,0xc4,0x71,0x6a,0xc9,0xfc,0xfe
35.962025
337
0.718761
08d7864352a84e729d387993cc9e900780e1ef43
5,807
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1303.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1303.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1303.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x19c98, %rcx nop nop xor %r12, %r12 mov $0x6162636465666768, %r10 movq %r10, %xmm6 movups %xmm6, (%rcx) nop nop nop sub %r13, %r13 lea addresses_A_ht+0x17fb8, %rsi nop nop nop nop nop cmp $19936, %r8 mov (%rsi), %r14 nop nop sub %r14, %r14 lea addresses_A_ht+0xcb00, %rsi lea addresses_A_ht+0x14af, %rdi clflush (%rsi) cmp $52075, %r12 mov $65, %rcx rep movsq nop nop nop nop nop add %r14, %r14 lea addresses_WT_ht+0x31d8, %r12 nop nop nop nop nop cmp $39429, %r10 mov (%r12), %edi nop nop add $54546, %r14 lea addresses_UC_ht+0xb698, %rsi lea addresses_UC_ht+0x1c098, %rdi nop nop nop nop add $35711, %r14 mov $44, %rcx rep movsl nop nop add $12524, %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r15 push %r8 push %rax push %rdi // Store lea addresses_WC+0x1b7c0, %r11 nop nop nop nop nop inc %r13 mov $0x5152535455565758, %r15 movq %r15, %xmm5 vmovups %ymm5, (%r11) nop nop nop nop nop sub $22372, %rax // Store lea addresses_WC+0xccc4, %rax nop nop nop nop nop xor $8548, %r8 mov $0x5152535455565758, %r11 movq %r11, %xmm0 vmovups %ymm0, (%rax) and $6193, %rax // Faulty Load lea addresses_WC+0x1e698, %rdi clflush (%rdi) nop sub $45104, %r12 mov (%rdi), %r13w lea oracles, %r12 and $0xff, %r13 shlq $12, %r13 mov (%r12,%r13,1), %r13 pop %rdi pop %rax pop %r8 pop %r15 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 1}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_A_ht', 'congruent': 1}, 'dst': {'same': True, 'type': 'addresses_A_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 9}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
37.464516
2,999
0.660065
21dba69284da49e441528315f8018cecd167aed7
132
asm
Assembly
lab3/assignment_3.asm
0000Blaze/Microprocess
8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330
[ "MIT" ]
null
null
null
lab3/assignment_3.asm
0000Blaze/Microprocess
8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330
[ "MIT" ]
null
null
null
lab3/assignment_3.asm
0000Blaze/Microprocess
8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330
[ "MIT" ]
null
null
null
# ORG 9024 # DB A2 # ORG 9025 # DB 79 # ORG 8000 LXI H,9024 MOV A,M MVI L,25 ORA M MVI L,26 MOV M,A HLT
10.153846
14
0.5
76db557416393e8d96c37a705b15333dd118b0e9
546
asm
Assembly
programs/oeis/288/A288934.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/288/A288934.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/288/A288934.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A288934: Positions of 1 in A288932; complement of A288933. ; 1,3,5,6,8,10,11,12,14,16,17,19,21,22,23,24,26,28,29,31,33,34,35,37,39,40,42,44,45,46,47,48,50,52,53,55,57,58,59,61,63,64,66,68,69,70,71,73,75,76,78,80,81,82,84,86,87,89,91,92,93,94,95,96,98,100,101,103,105,106,107,109,111,112,114,116,117,118,119,121,123,124,126,128,129,130,132,134,135,137,139,140,141,142,143,145,147,148,150,152 mov $1,$0 seq $1,80578 ; a(1)=1; for n > 1, a(n) = a(n-1) + 1 if n is already in the sequence, a(n) = a(n-1) + 3 otherwise. add $0,$1 div $0,2 add $0,1
60.666667
331
0.659341
b3d8001c9c6514d9e7255ca35f37d23ff27e152f
1,348
asm
Assembly
libsrc/_DEVELOPMENT/adt/ba_priority_queue/z80/__b_heap_sift_up.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/ba_priority_queue/z80/__b_heap_sift_up.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/ba_priority_queue/z80/__b_heap_sift_up.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_adt_ba_priority_queue PUBLIC __b_heap_sift_up EXTERN l_compare_de_hl, error_znc __b_heap_sift_up: ; assumes 1-based array ; ; enter : de = start_index in bytes ; hl = & array[start_index] ; bc = array ; ix = compare ; ; exit ; hl = 0 ; carry reset ; ; uses : af, bc, de, hl ld a,e and $fe or d jp z, error_znc ; if start_index <= 1, root reached so return success srl d rr e ; de = parent_index(start_index) push de ; save parent_index ex de,hl ; de = & array[start_index] add hl,bc ; hl = & array[parent_index] call l_compare_de_hl ; (compar)(de = void *child, hl = void *parent) jp p, error_znc - 1 ; if array[child] >= array[parent], finished so return success push bc ; save array ; swap(array[child], array[parent]) ; de = & array[child] ; hl = & array[parent] ; stack = parent_index, array ld c,(hl) ld a,(de) ld (hl),a ld a,c ld (de),a pop bc ; bc = array pop de ; de = parent_index ; hl = & array[parent] ; de = parent_index ; bc = array jr __b_heap_sift_up
22.466667
93
0.513353
35c2ed2f38032dd1dacd1ed647ade1482af24bed
11,501
asm
Assembly
blst/build/win64/add_mod_256-x86_64.asm
vmx/lotus-blst
5bf74234e6733f6fcfaad40be6846c6a0555d8f4
[ "Apache-2.0" ]
9
2020-10-15T15:48:55.000Z
2022-02-12T08:58:10.000Z
blst/build/win64/add_mod_256-x86_64.asm
vmx/lotus-blst
5bf74234e6733f6fcfaad40be6846c6a0555d8f4
[ "Apache-2.0" ]
5
2020-09-02T22:06:13.000Z
2020-09-03T18:44:05.000Z
blst/build/win64/add_mod_256-x86_64.asm
vmx/lotus-blst
5bf74234e6733f6fcfaad40be6846c6a0555d8f4
[ "Apache-2.0" ]
14
2020-09-03T19:36:10.000Z
2022-03-25T08:48:40.000Z
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' PUBLIC add_mod_256 ALIGN 32 add_mod_256 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_add_mod_256:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbp push rbx sub rsp,8 $L$SEH_body_add_mod_256:: mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] $L$oaded_a_add_mod_256:: add r8,QWORD PTR[rdx] adc r9,QWORD PTR[8+rdx] mov rax,r8 adc r10,QWORD PTR[16+rdx] mov rsi,r9 adc r11,QWORD PTR[24+rdx] sbb rdx,rdx mov rbx,r10 sub r8,QWORD PTR[rcx] sbb r9,QWORD PTR[8+rcx] sbb r10,QWORD PTR[16+rcx] mov rbp,r11 sbb r11,QWORD PTR[24+rcx] sbb rdx,0 cmovc r8,rax cmovc r9,rsi mov QWORD PTR[rdi],r8 cmovc r10,rbx mov QWORD PTR[8+rdi],r9 cmovc r11,rbp mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov rbx,QWORD PTR[8+rsp] mov rbp,QWORD PTR[16+rsp] lea rsp,QWORD PTR[24+rsp] $L$SEH_epilogue_add_mod_256:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_add_mod_256:: add_mod_256 ENDP PUBLIC mul_by_3_mod_256 ALIGN 32 mul_by_3_mod_256 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_mul_by_3_mod_256:: mov rdi,rcx mov rsi,rdx mov rdx,r8 push rbp push rbx push r12 $L$SEH_body_mul_by_3_mod_256:: mov rcx,rdx mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov rdx,rsi mov r11,QWORD PTR[24+rsi] call __lshift_mod_256 mov r12,QWORD PTR[rsp] jmp $L$oaded_a_add_mod_256 mov rbx,QWORD PTR[8+rsp] mov rbp,QWORD PTR[16+rsp] lea rsp,QWORD PTR[24+rsp] $L$SEH_epilogue_mul_by_3_mod_256:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_mul_by_3_mod_256:: mul_by_3_mod_256 ENDP ALIGN 32 __lshift_mod_256 PROC PRIVATE DB 243,15,30,250 add r8,r8 adc r9,r9 mov rax,r8 adc r10,r10 mov rsi,r9 adc r11,r11 sbb r12,r12 mov rbx,r10 sub r8,QWORD PTR[rcx] sbb r9,QWORD PTR[8+rcx] sbb r10,QWORD PTR[16+rcx] mov rbp,r11 sbb r11,QWORD PTR[24+rcx] sbb r12,0 cmovc r8,rax cmovc r9,rsi cmovc r10,rbx cmovc r11,rbp DB 0F3h,0C3h ;repret __lshift_mod_256 ENDP PUBLIC lshift_mod_256 ALIGN 32 lshift_mod_256 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_lshift_mod_256:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbp push rbx push r12 $L$SEH_body_lshift_mod_256:: mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] $L$oop_lshift_mod_256:: call __lshift_mod_256 dec edx jnz $L$oop_lshift_mod_256 mov QWORD PTR[rdi],r8 mov QWORD PTR[8+rdi],r9 mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov r12,QWORD PTR[rsp] mov rbx,QWORD PTR[8+rsp] mov rbp,QWORD PTR[16+rsp] lea rsp,QWORD PTR[24+rsp] $L$SEH_epilogue_lshift_mod_256:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_lshift_mod_256:: lshift_mod_256 ENDP PUBLIC rshift_mod_256 ALIGN 32 rshift_mod_256 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_rshift_mod_256:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbp push rbx sub rsp,8 $L$SEH_body_rshift_mod_256:: mov rbp,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] $L$oop_rshift_mod_256:: mov r8,rbp and rbp,1 mov rax,QWORD PTR[rcx] neg rbp mov rsi,QWORD PTR[8+rcx] mov rbx,QWORD PTR[16+rcx] and rax,rbp and rsi,rbp and rbx,rbp and rbp,QWORD PTR[24+rcx] add r8,rax adc r9,rsi adc r10,rbx adc r11,rbp sbb rax,rax shr r8,1 mov rbp,r9 shr r9,1 mov rbx,r10 shr r10,1 mov rsi,r11 shr r11,1 shl rbp,63 shl rbx,63 or rbp,r8 shl rsi,63 or r9,rbx shl rax,63 or r10,rsi or r11,rax dec edx jnz $L$oop_rshift_mod_256 mov QWORD PTR[rdi],rbp mov QWORD PTR[8+rdi],r9 mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov rbx,QWORD PTR[8+rsp] mov rbp,QWORD PTR[16+rsp] lea rsp,QWORD PTR[24+rsp] $L$SEH_epilogue_rshift_mod_256:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_rshift_mod_256:: rshift_mod_256 ENDP PUBLIC cneg_mod_256 ALIGN 32 cneg_mod_256 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_cneg_mod_256:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbp push rbx push r12 $L$SEH_body_cneg_mod_256:: mov r12,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r8,r12 mov r11,QWORD PTR[24+rsi] or r12,r9 or r12,r10 or r12,r11 mov rbp,-1 mov rax,QWORD PTR[rcx] cmovnz r12,rbp mov rsi,QWORD PTR[8+rcx] mov rbx,QWORD PTR[16+rcx] and rax,r12 mov rbp,QWORD PTR[24+rcx] and rsi,r12 and rbx,r12 and rbp,r12 sub rax,r8 sbb rsi,r9 sbb rbx,r10 sbb rbp,r11 or rdx,rdx cmovz rax,r8 cmovz rsi,r9 mov QWORD PTR[rdi],rax cmovz rbx,r10 mov QWORD PTR[8+rdi],rsi cmovz rbp,r11 mov QWORD PTR[16+rdi],rbx mov QWORD PTR[24+rdi],rbp mov r12,QWORD PTR[rsp] mov rbx,QWORD PTR[8+rsp] mov rbp,QWORD PTR[16+rsp] lea rsp,QWORD PTR[24+rsp] $L$SEH_epilogue_cneg_mod_256:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_cneg_mod_256:: cneg_mod_256 ENDP PUBLIC sub_mod_256 ALIGN 32 sub_mod_256 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_sub_mod_256:: mov rdi,rcx mov rsi,rdx mov rdx,r8 mov rcx,r9 push rbp push rbx sub rsp,8 $L$SEH_body_sub_mod_256:: mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] sub r8,QWORD PTR[rdx] mov rax,QWORD PTR[rcx] sbb r9,QWORD PTR[8+rdx] mov rsi,QWORD PTR[8+rcx] sbb r10,QWORD PTR[16+rdx] mov rbx,QWORD PTR[16+rcx] sbb r11,QWORD PTR[24+rdx] mov rbp,QWORD PTR[24+rcx] sbb rdx,rdx and rax,rdx and rsi,rdx and rbx,rdx and rbp,rdx add r8,rax adc r9,rsi mov QWORD PTR[rdi],r8 adc r10,rbx mov QWORD PTR[8+rdi],r9 adc r11,rbp mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov rbx,QWORD PTR[8+rsp] mov rbp,QWORD PTR[16+rsp] lea rsp,QWORD PTR[24+rsp] $L$SEH_epilogue_sub_mod_256:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_sub_mod_256:: sub_mod_256 ENDP .text$ ENDS .pdata SEGMENT READONLY ALIGN(4) ALIGN 4 DD imagerel $L$SEH_begin_add_mod_256 DD imagerel $L$SEH_body_add_mod_256 DD imagerel $L$SEH_info_add_mod_256_prologue DD imagerel $L$SEH_body_add_mod_256 DD imagerel $L$SEH_epilogue_add_mod_256 DD imagerel $L$SEH_info_add_mod_256_body DD imagerel $L$SEH_epilogue_add_mod_256 DD imagerel $L$SEH_end_add_mod_256 DD imagerel $L$SEH_info_add_mod_256_epilogue DD imagerel $L$SEH_begin_mul_by_3_mod_256 DD imagerel $L$SEH_body_mul_by_3_mod_256 DD imagerel $L$SEH_info_mul_by_3_mod_256_prologue DD imagerel $L$SEH_body_mul_by_3_mod_256 DD imagerel $L$SEH_epilogue_mul_by_3_mod_256 DD imagerel $L$SEH_info_mul_by_3_mod_256_body DD imagerel $L$SEH_epilogue_mul_by_3_mod_256 DD imagerel $L$SEH_end_mul_by_3_mod_256 DD imagerel $L$SEH_info_mul_by_3_mod_256_epilogue DD imagerel $L$SEH_begin_lshift_mod_256 DD imagerel $L$SEH_body_lshift_mod_256 DD imagerel $L$SEH_info_lshift_mod_256_prologue DD imagerel $L$SEH_body_lshift_mod_256 DD imagerel $L$SEH_epilogue_lshift_mod_256 DD imagerel $L$SEH_info_lshift_mod_256_body DD imagerel $L$SEH_epilogue_lshift_mod_256 DD imagerel $L$SEH_end_lshift_mod_256 DD imagerel $L$SEH_info_lshift_mod_256_epilogue DD imagerel $L$SEH_begin_rshift_mod_256 DD imagerel $L$SEH_body_rshift_mod_256 DD imagerel $L$SEH_info_rshift_mod_256_prologue DD imagerel $L$SEH_body_rshift_mod_256 DD imagerel $L$SEH_epilogue_rshift_mod_256 DD imagerel $L$SEH_info_rshift_mod_256_body DD imagerel $L$SEH_epilogue_rshift_mod_256 DD imagerel $L$SEH_end_rshift_mod_256 DD imagerel $L$SEH_info_rshift_mod_256_epilogue DD imagerel $L$SEH_begin_cneg_mod_256 DD imagerel $L$SEH_body_cneg_mod_256 DD imagerel $L$SEH_info_cneg_mod_256_prologue DD imagerel $L$SEH_body_cneg_mod_256 DD imagerel $L$SEH_epilogue_cneg_mod_256 DD imagerel $L$SEH_info_cneg_mod_256_body DD imagerel $L$SEH_epilogue_cneg_mod_256 DD imagerel $L$SEH_end_cneg_mod_256 DD imagerel $L$SEH_info_cneg_mod_256_epilogue DD imagerel $L$SEH_begin_sub_mod_256 DD imagerel $L$SEH_body_sub_mod_256 DD imagerel $L$SEH_info_sub_mod_256_prologue DD imagerel $L$SEH_body_sub_mod_256 DD imagerel $L$SEH_epilogue_sub_mod_256 DD imagerel $L$SEH_info_sub_mod_256_body DD imagerel $L$SEH_epilogue_sub_mod_256 DD imagerel $L$SEH_end_sub_mod_256 DD imagerel $L$SEH_info_sub_mod_256_epilogue .pdata ENDS .xdata SEGMENT READONLY ALIGN(8) ALIGN 8 $L$SEH_info_add_mod_256_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_add_mod_256_body:: DB 1,0,9,0 DB 000h,034h,001h,000h DB 000h,054h,002h,000h DB 000h,074h,004h,000h DB 000h,064h,005h,000h DB 000h,022h DB 000h,000h $L$SEH_info_add_mod_256_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h $L$SEH_info_mul_by_3_mod_256_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_mul_by_3_mod_256_body:: DB 1,0,11,0 DB 000h,0c4h,000h,000h DB 000h,034h,001h,000h DB 000h,054h,002h,000h DB 000h,074h,004h,000h DB 000h,064h,005h,000h DB 000h,022h DB 000h,000h,000h,000h,000h,000h $L$SEH_info_mul_by_3_mod_256_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h $L$SEH_info_lshift_mod_256_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_lshift_mod_256_body:: DB 1,0,11,0 DB 000h,0c4h,000h,000h DB 000h,034h,001h,000h DB 000h,054h,002h,000h DB 000h,074h,004h,000h DB 000h,064h,005h,000h DB 000h,022h DB 000h,000h,000h,000h,000h,000h $L$SEH_info_lshift_mod_256_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h $L$SEH_info_rshift_mod_256_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_rshift_mod_256_body:: DB 1,0,9,0 DB 000h,034h,001h,000h DB 000h,054h,002h,000h DB 000h,074h,004h,000h DB 000h,064h,005h,000h DB 000h,022h DB 000h,000h $L$SEH_info_rshift_mod_256_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h $L$SEH_info_cneg_mod_256_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_cneg_mod_256_body:: DB 1,0,11,0 DB 000h,0c4h,000h,000h DB 000h,034h,001h,000h DB 000h,054h,002h,000h DB 000h,074h,004h,000h DB 000h,064h,005h,000h DB 000h,022h DB 000h,000h,000h,000h,000h,000h $L$SEH_info_cneg_mod_256_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h $L$SEH_info_sub_mod_256_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_sub_mod_256_body:: DB 1,0,9,0 DB 000h,034h,001h,000h DB 000h,054h,002h,000h DB 000h,074h,004h,000h DB 000h,064h,005h,000h DB 000h,022h DB 000h,000h $L$SEH_info_sub_mod_256_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h .xdata ENDS END
17.399395
50
0.753761
629297ef3fcc1090811f2de048015ecccd267a2f
563
asm
Assembly
boot/print/print_string.asm
hahaha235/simple-os-by-fayssalchokri-
b78734af909d1be5ee6bef5f1332cf7d4bec6ad0
[ "MIT" ]
109
2016-05-07T14:26:15.000Z
2022-03-30T16:29:04.000Z
boot/print/print_string.asm
hahaha235/simple-os-by-fayssalchokri-
b78734af909d1be5ee6bef5f1332cf7d4bec6ad0
[ "MIT" ]
4
2019-02-16T20:19:29.000Z
2021-08-28T08:17:43.000Z
boot/print/print_string.asm
hahaha235/simple-os-by-fayssalchokri-
b78734af909d1be5ee6bef5f1332cf7d4bec6ad0
[ "MIT" ]
20
2016-05-17T08:25:26.000Z
2021-12-07T21:29:22.000Z
;; Sub-routine for string printing ;; Accepts pointer where string is stored in bx register [bits 16] print_string: ;; store all register values pusha print_string_loop: ;; get first char from address at bx ;; if char is equal to null-terminating symbol ;; jump to return mov al, [bx] cmp al, 0 je print_string_ret ;; if char is exists ;; prepare BIOS interrupt mov ah, 0x0E int 0x10 ;; offset at bx + 1 ;; so we have the next char from string inc bx jmp print_string_loop print_string_ret: ;; restore register values and return popa ret
17.59375
56
0.724689
7b78ebe3eb2017c32cd2cc41a1e71eb687f8bba1
462
asm
Assembly
oeis/316/A316831.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/316/A316831.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/316/A316831.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A316831: Trajectory of 0 under repeated application of the morphism 0 -> 01, 1 -> 21, 2 -> 13, 3 -> 33. ; Submitted by Christian Krause ; 0,1,2,1,1,3,2,1,2,1,3,3,1,3,2,1,1,3,2,1,3,3,3,3,2,1,3,3,1,3,2,1,2,1,3,3,1,3,2,1,3,3,3,3,3,3,3,3,1,3,2,1,3,3,3,3,2,1,3,3,1,3,2,1,1,3,2,1,3,3,3,3,2,1,3,3,1,3,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,3,3 mov $1,1 lpb $0 lpb $0 dif $0,2 mul $1,2 mod $1,3 add $1,$2 lpe div $0,2 mov $2,$1 lpe mov $0,$2
27.176471
201
0.538961
e0892b3c6884287437a811c9cac6342eab37ae40
219
asm
Assembly
oeis/000/A000215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/000/A000215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/000/A000215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A000215: Fermat numbers: a(n) = 2^(2^n) + 1. ; Submitted by Simon Strandgaard ; 3,5,17,257,65537,4294967297,18446744073709551617,340282366920938463463374607431768211457 mov $1,2 pow $1,$0 mov $0,2 pow $0,$1 add $0,1
21.9
90
0.726027
c9038748efc5cd92c1d3543de1d996ff46b6433f
2,646
asm
Assembly
asm/tests/manual/mul_pt2.asm
ZopharsDomain/PCX86-JAVASCRIPT-jemul8
0c4828db606f9163e833258b77db8ebf3da09388
[ "MIT" ]
67
2015-01-04T14:55:27.000Z
2022-01-05T05:41:55.000Z
asm/tests/manual/mul_pt2.asm
ZopharsDomain/PCX86-JAVASCRIPT-jemul8
0c4828db606f9163e833258b77db8ebf3da09388
[ "MIT" ]
3
2015-09-26T19:37:17.000Z
2021-11-23T00:37:30.000Z
asm/tests/manual/mul_pt2.asm
ZopharsDomain/PCX86-JAVASCRIPT-jemul8
0c4828db606f9163e833258b77db8ebf3da09388
[ "MIT" ]
14
2015-01-17T11:32:49.000Z
2021-12-26T12:47:22.000Z
; ; jemul8 - JavaScript x86 Emulator ; Copyright (c) 2012 http://ovms.co. All Rights Reserved. ; ; MODULE: Flags test suite (boot sector) ; org 0 jmp 0x07C0:start start: cli ; Update DS & ES to be 7C0 instead of 0 push CS pop DS push CS pop ES ; Create stack mov ax, 0x0000 mov ss, ax mov sp, 0xFFFD mov si, mulBanner call printMsg ;*********** multiply +1 and -1 result should be -1 ;****** byte operation ;mov si, mulTestByte2 ;call printMsg MOV AL,1 ;put +1 into al MOV AH,-1 ;put -1 into ah MUL AH ;ordinary mul - result of 0FFh (255) in ax cmp ax, 0xFF jne fail7 call pass jmp end7 fail7: call fail end7: MOV AL,1 ;put +1 into al MOV AH,-1 ;put -1 into ah IMUL AH ;signed mul - result of 0FFFFh in ax - correct cmp ax, 0xFFFF jne fail8 call pass jmp end8 fail8: call fail end8: ;****** word operation ;mov si, mulTestWord2 ;call printMsg MOV AX,1 ;put 1 into ax MOV BX,-1 ;put -1 into bx MUL BX ;ordinary mul - result of 0000:FFFF in dx:ax cmp dx, 0 jne fail9 cmp ax, 0xFFFF jne fail9 call pass jmp end9 fail9: call fail end9: MOV AX,1 ;put 1 into ax MOV BX,-1 ;put -1 into bx IMUL BX ;signed mul - result of FFFF:FFFF in dx:ax - correct cmp dx, 0xFFFF jne fail10 cmp ax, 0xFFFF jne fail10 call pass jmp end10 fail10: call fail end10: ;****** dword operation ;mov si, mulTestDword2 ;call printMsg MOV EAX,1 ;put 1 into eax MOV EBX,-1 ;put -1 into ebx MUL EBX ;ordinary mul - result of 00000000:FFFFFFFF in edx:eax cmp edx, 0 jne fail11 cmp eax, 0xFFFFFFFF jne fail11 call pass jmp end11 fail11: call fail end11: MOV EAX,1 ;put 1 into eax MOV EBX,-1 ;put -1 into ebx IMUL EBX ;signed mul - result of FFFFFFFF:FFFFFFFF in edx:eax - correct cmp edx, 0xFFFFFFFF jne fail12 cmp eax, 0xFFFFFFFF jne fail12 call pass jmp end12 fail12: call fail end12: ; All stop when done mov si, doneMsg call printMsg finished: jmp finished; printMsg: mov ah, 0Eh cld lodsb cmp al, 0 jz done int 10h jmp printMsg done: ret pass: mov si, passMsg call printMsg ret fail: mov si, failMsg call printMsg ret mulBanner db 'jemul8 MUL/IMUL Test (Part 2)',13,10,0 passMsg db '.',0 failMsg db 'E',0 doneMsg db 13,10,'Done.',0 ; ==== End of code ==== ; Make the file 512 bytes long TIMES 510-($-$$) DB 0 ; Add the boot signature dw 0AA55h
16.746835
86
0.598639
052c62a995f1969318c5b7bb9556f505dd66c7f7
756
asm
Assembly
oeis/153/A153337.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/153/A153337.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/153/A153337.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A153337: Number of zig-zag paths from top to bottom of a 2n-1 by 2n-1 square whose color is that of the top right corner ; Submitted by Christian Krause ; 1,4,24,136,720,3624,17584,83024,383904,1746280,7839216,34812144,153204064,669108496,2903267040,12526343584,53779871552,229895033832,978965187184,4154438114480,17575883030496,74150192517808,312039924617888,1310112046794336,5488989440977600,22952867256020624,95809426225701984,399268429280497504,1661343553457325504,6903009827577972000,28644691748920570816,118717394687850225472,491454609412089409152,2032274917379425480936,8395369860960989686640,34648258898660407743024,142866656966244624804064 mov $1,$0 add $0,1 mul $1,2 bin $1,$0 sub $0,1 mov $2,4 pow $2,$0 add $0,1 mul $1,2 sub $2,$1 mul $0,$2
47.25
495
0.834656
af93d28ee81cb2b2f3a964d4b1c8de0e80e7e733
691
asm
Assembly
oeis/167/A167471.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/167/A167471.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/167/A167471.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A167471: Janet periodic table of the elements and structured hexagonal diamond numbers. a(n) = A166911(2n) + A166911(2n+1). ; 16,128,464,1152,2320,4096,6608,9984,14352,19840,26576,34688,44304,55552,68560,83456,100368,119424,140752,164480,190736,219648,251344,285952,323600,364416,408528,456064,507152,561920,620496,683008,749584,820352,895440,974976,1059088,1147904,1241552,1340160,1443856,1552768,1667024,1786752,1912080,2043136,2180048,2322944,2471952,2627200,2788816,2956928,3131664,3313152,3501520,3696896,3899408,4109184,4326352,4551040,4783376,5023488,5271504,5527552,5791760,6064256,6345168,6634624,6932752,7239680 mul $0,4 add $0,4 mov $1,$0 bin $0,3 add $0,$1 div $0,8 mul $0,16
62.818182
497
0.806078
31802161ce7fd87187c99e334c20b5a76fe470a3
494
asm
Assembly
programs/oeis/047/A047548.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047548.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047548.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047548: Numbers that are congruent to {1, 2, 3, 4, 7} mod 8. ; 1,2,3,4,7,9,10,11,12,15,17,18,19,20,23,25,26,27,28,31,33,34,35,36,39,41,42,43,44,47,49,50,51,52,55,57,58,59,60,63,65,66,67,68,71,73,74,75,76,79,81,82,83,84,87,89,90,91,92,95,97,98,99,100,103,105,106,107,108,111,113,114,115,116,119,121,122,123,124,127,129,130,131,132,135,137,138,139,140,143,145,146,147,148,151,153,154,155,156,159 add $0,2 mov $1,$0 lpb $1 add $0,1 add $0,$1 trn $1,2 sub $0,$1 trn $1,3 lpe sub $0,4
35.285714
332
0.645749
b6dcbd1ec5fa1c69fb8d9bf1ea876618028c0f03
7,828
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_856.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_856.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_856.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0xbb8a, %rsi nop nop nop nop xor %r15, %r15 mov (%rsi), %rbp nop nop nop nop xor $39715, %r10 lea addresses_A_ht+0xa2a, %r11 clflush (%r11) nop nop nop cmp $46101, %rax movw $0x6162, (%r11) nop nop nop nop nop cmp %rsi, %rsi lea addresses_D_ht+0x1d6e2, %rbp clflush (%rbp) nop nop nop nop nop add %rsi, %rsi mov $0x6162636465666768, %r15 movq %r15, %xmm0 movups %xmm0, (%rbp) nop nop add $30005, %r15 lea addresses_D_ht+0x1e3e2, %r11 nop nop nop nop nop and %rsi, %rsi movw $0x6162, (%r11) nop nop dec %r11 lea addresses_WT_ht+0x12362, %rsi nop nop inc %r11 mov $0x6162636465666768, %rax movq %rax, %xmm6 movups %xmm6, (%rsi) nop nop nop nop nop xor $33720, %rax lea addresses_normal_ht+0xe36a, %r15 clflush (%r15) nop nop nop nop nop and %rcx, %rcx vmovups (%r15), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $1, %xmm0, %rsi nop nop nop sub $2915, %r15 lea addresses_UC_ht+0xd3e2, %rsi lea addresses_normal_ht+0x15632, %rdi nop add $22173, %rbp mov $1, %rcx rep movsw nop nop nop nop and %rax, %rax lea addresses_A_ht+0x1ab62, %rdi nop nop nop nop nop sub %r10, %r10 movups (%rdi), %xmm2 vpextrq $1, %xmm2, %r15 nop nop nop nop nop cmp $1163, %r10 lea addresses_UC_ht+0x190a2, %rdi nop cmp %rax, %rax movb (%rdi), %r11b nop nop nop nop inc %rsi lea addresses_WC_ht+0x15262, %r10 nop sub $27366, %rsi movb (%r10), %al nop nop nop nop nop cmp %rsi, %rsi lea addresses_WT_ht+0x7762, %rsi lea addresses_UC_ht+0x10be2, %rdi clflush (%rsi) nop nop nop nop nop and $46749, %rbp mov $0, %rcx rep movsl nop nop nop cmp $59300, %r10 lea addresses_D_ht+0x5462, %rax nop and $1966, %rdi movb (%rax), %r15b nop sub $10731, %rdi lea addresses_normal_ht+0x9da2, %r10 nop dec %r15 mov (%r10), %cx sub %rsi, %rsi lea addresses_WC_ht+0xf762, %rsi lea addresses_UC_ht+0x15762, %rdi clflush (%rsi) nop inc %r10 mov $102, %rcx rep movsw nop nop nop nop nop cmp $39892, %r10 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r9 push %rax push %rbp push %rdi // Store lea addresses_US+0xf460, %r10 clflush (%r10) nop nop nop nop nop cmp %rbp, %rbp movl $0x51525354, (%r10) nop add %rdi, %rdi // Faulty Load lea addresses_WT+0x1c362, %rbp nop nop nop and %rax, %rax mov (%rbp), %r14 lea oracles, %r13 and $0xff, %r14 shlq $12, %r14 mov (%r13,%r14,1), %r14 pop %rdi pop %rbp pop %rax pop %r9 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_US'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}} {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': True, 'type': 'addresses_UC_ht'}} {'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 */
31.187251
2,999
0.65649
c83c38870b5dd9eb206464a7e74fdb226887f418
12,418
asm
Assembly
lib/ffmpeg/jni/ffmpeg/libavcodec/x86/hpeldsp.asm
adachigit/BlueFrog-Cocos2dx
fcf44c0e427aebc6a353a2fa1b89df588c2bbb79
[ "MIT" ]
null
null
null
lib/ffmpeg/jni/ffmpeg/libavcodec/x86/hpeldsp.asm
adachigit/BlueFrog-Cocos2dx
fcf44c0e427aebc6a353a2fa1b89df588c2bbb79
[ "MIT" ]
null
null
null
lib/ffmpeg/jni/ffmpeg/libavcodec/x86/hpeldsp.asm
adachigit/BlueFrog-Cocos2dx
fcf44c0e427aebc6a353a2fa1b89df588c2bbb79
[ "MIT" ]
null
null
null
;****************************************************************************** ;* ;* Copyright (c) 2000-2001 Fabrice Bellard <fabrice@bellard.org> ;* Copyright (c) Nick Kurshev <nickols_k@mail.ru> ;* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at> ;* Copyright (c) 2002 Zdenek Kabelac <kabi@informatics.muni.cz> ;* Copyright (c) 2013 Daniel Kang ;* ;* MMX optimized hpel functions ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Public ;* License as published by the Free Software Foundation; either ;* version 2.1 of the License, or (at your option) any later version. ;* ;* FFmpeg 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 ;* Lesser General Public License for more details. ;* ;* You should have received a copy of the GNU Lesser General Public ;* License along with FFmpeg; if not, write to the Free Software ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;****************************************************************************** %include "libavutil/x86/x86util.asm" SECTION_RODATA cextern pb_1 SECTION_TEXT ; put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_PIXELS8_X2 0 cglobal put_pixels8_x2, 4,5 lea r4, [r2*2] .loop: mova m0, [r1] mova m1, [r1+r2] PAVGB m0, [r1+1] PAVGB m1, [r1+r2+1] mova [r0], m0 mova [r0+r2], m1 add r1, r4 add r0, r4 mova m0, [r1] mova m1, [r1+r2] PAVGB m0, [r1+1] PAVGB m1, [r1+r2+1] add r1, r4 mova [r0], m0 mova [r0+r2], m1 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext PUT_PIXELS8_X2 INIT_MMX 3dnow PUT_PIXELS8_X2 ; put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_PIXELS_16 0 cglobal put_pixels16_x2, 4,5 lea r4, [r2*2] .loop: mova m0, [r1] mova m1, [r1+r2] mova m2, [r1+8] mova m3, [r1+r2+8] PAVGB m0, [r1+1] PAVGB m1, [r1+r2+1] PAVGB m2, [r1+9] PAVGB m3, [r1+r2+9] mova [r0], m0 mova [r0+r2], m1 mova [r0+8], m2 mova [r0+r2+8], m3 add r1, r4 add r0, r4 mova m0, [r1] mova m1, [r1+r2] mova m2, [r1+8] mova m3, [r1+r2+8] PAVGB m0, [r1+1] PAVGB m1, [r1+r2+1] PAVGB m2, [r1+9] PAVGB m3, [r1+r2+9] add r1, r4 mova [r0], m0 mova [r0+r2], m1 mova [r0+8], m2 mova [r0+r2+8], m3 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext PUT_PIXELS_16 INIT_MMX 3dnow PUT_PIXELS_16 ; put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_NO_RND_PIXELS8_X2 0 cglobal put_no_rnd_pixels8_x2, 4,5 mova m6, [pb_1] lea r4, [r2*2] .loop: mova m0, [r1] mova m2, [r1+r2] mova m1, [r1+1] mova m3, [r1+r2+1] add r1, r4 psubusb m0, m6 psubusb m2, m6 PAVGB m0, m1 PAVGB m2, m3 mova [r0], m0 mova [r0+r2], m2 mova m0, [r1] mova m1, [r1+1] mova m2, [r1+r2] mova m3, [r1+r2+1] add r0, r4 add r1, r4 psubusb m0, m6 psubusb m2, m6 PAVGB m0, m1 PAVGB m2, m3 mova [r0], m0 mova [r0+r2], m2 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext PUT_NO_RND_PIXELS8_X2 INIT_MMX 3dnow PUT_NO_RND_PIXELS8_X2 ; put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_NO_RND_PIXELS8_X2_EXACT 0 cglobal put_no_rnd_pixels8_x2_exact, 4,5 lea r4, [r2*3] pcmpeqb m6, m6 .loop: mova m0, [r1] mova m2, [r1+r2] mova m1, [r1+1] mova m3, [r1+r2+1] pxor m0, m6 pxor m2, m6 pxor m1, m6 pxor m3, m6 PAVGB m0, m1 PAVGB m2, m3 pxor m0, m6 pxor m2, m6 mova [r0], m0 mova [r0+r2], m2 mova m0, [r1+r2*2] mova m1, [r1+r2*2+1] mova m2, [r1+r4] mova m3, [r1+r4+1] pxor m0, m6 pxor m1, m6 pxor m2, m6 pxor m3, m6 PAVGB m0, m1 PAVGB m2, m3 pxor m0, m6 pxor m2, m6 mova [r0+r2*2], m0 mova [r0+r4], m2 lea r1, [r1+r2*4] lea r0, [r0+r2*4] sub r3d, 4 jg .loop REP_RET %endmacro INIT_MMX mmxext PUT_NO_RND_PIXELS8_X2_EXACT INIT_MMX 3dnow PUT_NO_RND_PIXELS8_X2_EXACT ; put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_PIXELS8_Y2 0 cglobal put_pixels8_y2, 4,5 lea r4, [r2*2] mova m0, [r1] sub r0, r2 .loop: mova m1, [r1+r2] mova m2, [r1+r4] add r1, r4 PAVGB m0, m1 PAVGB m1, m2 mova [r0+r2], m0 mova [r0+r4], m1 mova m1, [r1+r2] mova m0, [r1+r4] add r0, r4 add r1, r4 PAVGB m2, m1 PAVGB m1, m0 mova [r0+r2], m2 mova [r0+r4], m1 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext PUT_PIXELS8_Y2 INIT_MMX 3dnow PUT_PIXELS8_Y2 ; put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_NO_RND_PIXELS8_Y2 0 cglobal put_no_rnd_pixels8_y2, 4,5 mova m6, [pb_1] lea r4, [r2+r2] mova m0, [r1] sub r0, r2 .loop: mova m1, [r1+r2] mova m2, [r1+r4] add r1, r4 psubusb m1, m6 PAVGB m0, m1 PAVGB m1, m2 mova [r0+r2], m0 mova [r0+r4], m1 mova m1, [r1+r2] mova m0, [r1+r4] add r0, r4 add r1, r4 psubusb m1, m6 PAVGB m2, m1 PAVGB m1, m0 mova [r0+r2], m2 mova [r0+r4], m1 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext PUT_NO_RND_PIXELS8_Y2 INIT_MMX 3dnow PUT_NO_RND_PIXELS8_Y2 ; put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro PUT_NO_RND_PIXELS8_Y2_EXACT 0 cglobal put_no_rnd_pixels8_y2_exact, 4,5 lea r4, [r2*3] mova m0, [r1] pcmpeqb m6, m6 add r1, r2 pxor m0, m6 .loop: mova m1, [r1] mova m2, [r1+r2] pxor m1, m6 pxor m2, m6 PAVGB m0, m1 PAVGB m1, m2 pxor m0, m6 pxor m1, m6 mova [r0], m0 mova [r0+r2], m1 mova m1, [r1+r2*2] mova m0, [r1+r4] pxor m1, m6 pxor m0, m6 PAVGB m2, m1 PAVGB m1, m0 pxor m2, m6 pxor m1, m6 mova [r0+r2*2], m2 mova [r0+r4], m1 lea r1, [r1+r2*4] lea r0, [r0+r2*4] sub r3d, 4 jg .loop REP_RET %endmacro INIT_MMX mmxext PUT_NO_RND_PIXELS8_Y2_EXACT INIT_MMX 3dnow PUT_NO_RND_PIXELS8_Y2_EXACT ; avg_pixels8(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro AVG_PIXELS8 0 cglobal avg_pixels8, 4,5 lea r4, [r2*2] .loop: mova m0, [r0] mova m1, [r0+r2] PAVGB m0, [r1] PAVGB m1, [r1+r2] mova [r0], m0 mova [r0+r2], m1 add r1, r4 add r0, r4 mova m0, [r0] mova m1, [r0+r2] PAVGB m0, [r1] PAVGB m1, [r1+r2] add r1, r4 mova [r0], m0 mova [r0+r2], m1 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX 3dnow AVG_PIXELS8 ; avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro AVG_PIXELS8_X2 0 cglobal avg_pixels8_x2, 4,5 lea r4, [r2*2] .loop: mova m0, [r1] mova m2, [r1+r2] PAVGB m0, [r1+1] PAVGB m2, [r1+r2+1] PAVGB m0, [r0] PAVGB m2, [r0+r2] add r1, r4 mova [r0], m0 mova [r0+r2], m2 mova m0, [r1] mova m2, [r1+r2] PAVGB m0, [r1+1] PAVGB m2, [r1+r2+1] add r0, r4 add r1, r4 PAVGB m0, [r0] PAVGB m2, [r0+r2] mova [r0], m0 mova [r0+r2], m2 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext AVG_PIXELS8_X2 INIT_MMX 3dnow AVG_PIXELS8_X2 ; avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro AVG_PIXELS8_Y2 0 cglobal avg_pixels8_y2, 4,5 lea r4, [r2*2] mova m0, [r1] sub r0, r2 .loop: mova m1, [r1+r2] mova m2, [r1+r4] add r1, r4 PAVGB m0, m1 PAVGB m1, m2 mova m3, [r0+r2] mova m4, [r0+r4] PAVGB m0, m3 PAVGB m1, m4 mova [r0+r2], m0 mova [r0+r4], m1 mova m1, [r1+r2] mova m0, [r1+r4] PAVGB m2, m1 PAVGB m1, m0 add r0, r4 add r1, r4 mova m3, [r0+r2] mova m4, [r0+r4] PAVGB m2, m3 PAVGB m1, m4 mova [r0+r2], m2 mova [r0+r4], m1 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext AVG_PIXELS8_Y2 INIT_MMX 3dnow AVG_PIXELS8_Y2 ; avg_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) %macro AVG_PIXELS8_XY2 0 cglobal avg_pixels8_xy2, 4,5 mova m6, [pb_1] lea r4, [r2*2] mova m0, [r1] pavgb m0, [r1+1] .loop: mova m2, [r1+r4] mova m1, [r1+r2] psubusb m2, m6 pavgb m1, [r1+r2+1] pavgb m2, [r1+r4+1] add r1, r4 pavgb m0, m1 pavgb m1, m2 pavgb m0, [r0] pavgb m1, [r0+r2] mova [r0], m0 mova [r0+r2], m1 mova m1, [r1+r2] mova m0, [r1+r4] pavgb m1, [r1+r2+1] pavgb m0, [r1+r4+1] add r0, r4 add r1, r4 pavgb m2, m1 pavgb m1, m0 pavgb m2, [r0] pavgb m1, [r0+r2] mova [r0], m2 mova [r0+r2], m1 add r0, r4 sub r3d, 4 jne .loop REP_RET %endmacro INIT_MMX mmxext AVG_PIXELS8_XY2 INIT_MMX 3dnow AVG_PIXELS8_XY2 INIT_XMM sse2 ; void put_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) cglobal put_pixels16, 4,5,4 lea r4, [r2*3] .loop: movu m0, [r1] movu m1, [r1+r2] movu m2, [r1+r2*2] movu m3, [r1+r4] lea r1, [r1+r2*4] mova [r0], m0 mova [r0+r2], m1 mova [r0+r2*2], m2 mova [r0+r4], m3 sub r3d, 4 lea r0, [r0+r2*4] jnz .loop REP_RET ; void avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) cglobal avg_pixels16, 4,5,4 lea r4, [r2*3] .loop: movu m0, [r1] movu m1, [r1+r2] movu m2, [r1+r2*2] movu m3, [r1+r4] lea r1, [r1+r2*4] pavgb m0, [r0] pavgb m1, [r0+r2] pavgb m2, [r0+r2*2] pavgb m3, [r0+r4] mova [r0], m0 mova [r0+r2], m1 mova [r0+r2*2], m2 mova [r0+r4], m3 sub r3d, 4 lea r0, [r0+r2*4] jnz .loop REP_RET
24.687873
96
0.492994
5b7ffe5edc2bacd28d769fc53c5e638cf6441b18
7,671
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1725.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1725.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1725.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x34e1, %rsi lea addresses_WT_ht+0xf21, %rdi nop nop nop and %rbp, %rbp mov $55, %rcx rep movsl nop xor $34287, %r10 lea addresses_normal_ht+0x1d275, %rdx nop nop nop nop xor $13067, %rbp mov (%rdx), %rsi nop nop nop xor %rcx, %rcx lea addresses_normal_ht+0xa761, %rsi lea addresses_WC_ht+0x13be1, %rdi clflush (%rdi) nop nop sub $36943, %r13 mov $40, %rcx rep movsb nop nop nop nop nop sub $59741, %r10 lea addresses_normal_ht+0x72e1, %rdx clflush (%rdx) nop dec %rsi mov (%rdx), %r10 inc %r10 lea addresses_A_ht+0x1e8e1, %rcx nop cmp %rbp, %rbp mov (%rcx), %si nop nop nop nop nop xor $58305, %rcx lea addresses_A_ht+0x89c9, %rsi lea addresses_A_ht+0xa921, %rdi clflush (%rsi) nop nop nop nop xor $12994, %r9 mov $53, %rcx rep movsl nop nop nop nop and %r10, %r10 lea addresses_D_ht+0x15761, %rdx nop nop nop cmp $26266, %rdi movb (%rdx), %r13b nop nop nop sub $28558, %r10 lea addresses_normal_ht+0x3aa1, %rdx add %rdi, %rdi mov (%rdx), %r9 nop nop nop nop xor $28566, %r13 lea addresses_A_ht+0xce1, %rsi xor %r9, %r9 mov $0x6162636465666768, %rdx movq %rdx, %xmm7 vmovups %ymm7, (%rsi) nop nop nop nop and %rdx, %rdx lea addresses_A_ht+0x1e9c9, %rdi nop nop and %rcx, %rcx mov $0x6162636465666768, %rdx movq %rdx, (%rdi) nop add %rdx, %rdx lea addresses_UC_ht+0x6c1b, %rdx clflush (%rdx) nop sub $13669, %r10 mov (%rdx), %esi nop nop nop and $37778, %r9 lea addresses_UC_ht+0xf2e5, %rcx nop nop nop nop xor $6091, %r9 movw $0x6162, (%rcx) nop nop sub %rsi, %rsi lea addresses_WC_ht+0x11d5f, %rbp nop nop nop nop nop add %rsi, %rsi movw $0x6162, (%rbp) nop nop xor %rcx, %rcx lea addresses_D_ht+0x94e1, %rsi lea addresses_UC_ht+0x15b03, %rdi nop nop nop nop nop add $6501, %r10 mov $114, %rcx rep movsw xor $42090, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r15 push %r8 push %rbp push %rbx push %rdi push %rdx // Load lea addresses_US+0xde1d, %rdi nop nop nop nop sub %rbx, %rbx mov (%rdi), %r8w nop nop sub $49400, %rdx // Faulty Load lea addresses_normal+0x74e1, %r8 and $52669, %rdx mov (%r8), %rdi lea oracles, %r15 and $0xff, %rdi shlq $12, %rdi mov (%r15,%rdi,1), %rdi pop %rdx pop %rdi pop %rbx pop %rbp pop %r8 pop %r15 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_US', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}} {'src': {'NT': True, 'same': True, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}} {'src': {'NT': True, 'same': False, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 2}} {'src': {'same': True, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}} {'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 */
33.942478
2,999
0.655325
3a90a9d1826987bcf0648ee6de39ef8116c95bdf
12,919
asm
Assembly
MSX/rddev_full.asm
Konamiman/NestorDevice
5b8f745ee13cf1348426d0174706c9638ec7878f
[ "MIT" ]
1
2021-07-22T20:59:03.000Z
2021-07-22T20:59:03.000Z
MSX/rddev_full.asm
Konamiman/NestorDevice
5b8f745ee13cf1348426d0174706c9638ec7878f
[ "MIT" ]
null
null
null
MSX/rddev_full.asm
Konamiman/NestorDevice
5b8f745ee13cf1348426d0174706c9638ec7878f
[ "MIT" ]
null
null
null
; USB device implementation for MSX with Rookie Drive ; By Konamiman, 7/2021 ; ; This is an attempt to implement a full device ; in CH372 "external firmware" mode. It doesn't really work, ; for some reason Windows throws timeout errors ; when trying to configure the device. ; It looks like a limitation of the CH376. ; ; So this is pretty much experimental code ; and not fully completed/tested. ;************* ;* Constants * ;************* ;0: Generate MSX-DOS executable ;1: Generate ROM ROM: equ 1 NOOB_SETS_ADD: equ 0 if ROM=1 CHPUT: equ 00A2h SAVE_SP: equ 8010h endif if ROM=0 TERM0: equ 0 CONOUT: equ 2 DOS: equ 0005h endif CH_DATA_PORT: equ 20h CH_COMMAND_PORT: equ 21h ;* CH372 commands GET_IC_VER: equ 01h ENTER_SLEEP: equ 03h RESET_ALL: equ 05h CHECK_EXIST: equ 06h GET_TOGGLE: equ 0Ah CHK_SUSPEND: equ 0Bh SET_USB_ID: equ 12h SET_USB_ADDR: equ 13h SET_ENDP2_R0: equ 18h SET_ENDP3_T0: equ 19h SET_ENDP4_R1: equ 1Ah SET_ENDP5_T1: equ 1Bh SET_ENDP6_R2: equ 1Ch SET_ENDP7_T2: equ 1Dh SET_USB_MODE: equ 15h GET_STATUS: equ 22h UNLOCK_USB: equ 23h RD_USB_DATA0: equ 27h RD_USB_DATA: equ 28h WR_USB_DATA3_0: equ 29h WR_USB_DATA5_1: equ 2Ah WR_USB_DATA7_2: equ 2Bh ;* CH372 operation status CMD_RET_SUCCESS: equ 51h CMD_RET_ABORT: equ 5Fh ;* CH372 interruption status BUS_RESET: equ 03h BUS_RESET_MASK: equ 03h INT_EP0_SETUP: equ 0Ch INT_EP0_OUT: equ 00h INT_EP0_IN: equ 08h INT_EP1_OUT: equ 01h INT_EP1_IN: equ 09h INT_EP2_OUT: equ 02h INT_EP2_IN: equ 0Ah INT_USB_SUSP: equ 05h INT_WAKE_UP: equ 06h ;* USB descriptor codes USBD_DEVICE: equ 1 USBD_CONFIG: equ 2 USBD_STRING: equ 3 USBD_INTERF: equ 4 USBD_ENDPT: equ 5 USBD_HID: equ 21 USBD_HIDREP: equ 22 ;* USB string descriptor ids STRD_MANUF: equ 1 STRD_PRODUCT: equ 2 STRD_SERIAL: equ 3 ;* USB requests ;* IN R_GET_CONFIG: equ 8 R_GET_DESCR: equ 6 R_GET_INTERF: equ 10 R_GET_STATUS: equ 0 R_GET_HIDREP: equ 6 ;* OUT R_CLEAR_FEAT: equ 1 R_SET_ADDRESS: equ 5 R_SET_CONFIG: equ 9 R_SET_FEATURE: equ 3 ;************************* ;* Startup and main loop * ;************************* if ROM=1 org 4000h db 41h,42h dw START ds 12 START: ld hl,0 add hl,sp ld (SAVE_SP),hl endif if ROM=0 org 100h endif di call CH_INIT LOOP: in a,(CH_COMMAND_PORT) and 80h call z,HANDLE_CH_INT ;On space press, exit. ;On cursor press, reset CH372. ld a,8 call DO_SNSMAT bit 0,a jp z,EXIT and 11110000b cp 11110000b call nz,CH_INIT jr LOOP ;**************************** ;* CH372 and variables init * ;**************************** CH_INIT: ld a,RESET_ALL out (CH_COMMAND_PORT),a ei halt halt halt di ld a,CHECK_EXIST out (CH_COMMAND_PORT),a ld a,0A8h out (CH_DATA_PORT),a in a,(CH_DATA_PORT) cp 57h ld hl,NO_CH_S jp nz,PREXIT ei halt halt halt di ld a,SET_USB_MODE out (CH_COMMAND_PORT),a xor a ;Invalid device mode out (CH_DATA_PORT),a ei halt halt halt di in a,(CH_DATA_PORT) cp CMD_RET_SUCCESS ld hl,CH_MODE_ERR_S jp nz,PREXIT ld a,SET_USB_MODE out (CH_COMMAND_PORT),a ld a,1 ;External firmware mode out (CH_DATA_PORT),a ei halt halt halt di in a,(CH_DATA_PORT) cp CMD_RET_SUCCESS ld hl,CH_MODE_ERR_S jp nz,PREXIT ld a,CHK_SUSPEND out (CH_COMMAND_PORT),a ld a,10h out (CH_DATA_PORT),a ld a,04h out (CH_DATA_PORT),a ld hl,INIT_OK_S call PRINT CLEAR_VARS: ld hl,VAR_START ld de,VAR_START+1 ld bc,VAR_END-VAR_START-1 ld (hl),0 ldir ret ;*************************** ;* Handle CH372 interrupts * ;*************************** HANDLE_CH_INT: ld a,GET_STATUS out (CH_COMMAND_PORT),a in a,(CH_DATA_PORT) cp INT_USB_SUSP jp z,HANDLE_SUSPEND ;All interrupts except SUSPEND ;require UNLOCK_USB execution at the end ld hl,DO_UNLOCK push hl ld b,a and BUS_RESET_MASK cp BUS_RESET_MASK jp z,HANDLE_BUSRESET ld a,b cp INT_WAKE_UP jp z,HANDLE_WAKEUP cp INT_EP0_SETUP jp z,HANDLE_SETUP cp INT_EP0_IN jp z,HANDLE_EP0_IN cp INT_EP0_OUT jp z,HANDLE_EP0_OUT ld hl,UNK_INT_S push af call PRINT pop af call PRINTHEX ld hl,CRLF_S call PRINT ret DO_UNLOCK: ld a,UNLOCK_USB out (CH_COMMAND_PORT),a ret ;--- Handle BUS RESET, SUSPEND, WAKE UP interrupts HANDLE_BUSRESET: ld hl,BUSRESET_S call PRINT call CLEAR_VARS ret HANDLE_SUSPEND: ld a,ENTER_SLEEP out (CH_COMMAND_PORT),a ld hl,SUSPEND_S call PRINT call CLEAR_VARS ret HANDLE_WAKEUP: ld hl,WAKEUP_S call PRINT ret ;--- Handle SETUP token received interrupt HANDLE_SETUP: ld hl,SETUP_S call PRINT ld c,CH_DATA_PORT ;* Read SETUP data to BUFFER, must be 8 bytes ld a,RD_USB_DATA0 out (CH_COMMAND_PORT),a in a,(c) cp 8 ld hl,BAD_SETUP_S jp nz,PRSTALL ld hl,TWOSPACES_S call PRINT ld hl,BUFFER ld b,8 ld c,CH_DATA_PORT RD_SETUP_LOOP: in a,(c) ld (hl),a push hl call PRINTHEX2 ld a,' ' call CHPUT pop hl inc hl djnz RD_SETUP_LOOP ld hl,CRLF_S call PRINT2 ;* Ensure it's a standard request ld a,(BUFFER) ;bmRequestType ld b,a and 60h ld hl,UNSUP_SETUP_S jp nz,PRSTALL ;* Check if it's IN our OUT request bit 7,b jr z,HANDLE_SETUP_OUT ;* IN request: get data to send, then send 1st 8 bytes HANDLE_SETUP_IN: call GET_DATA_TO_SEND ex de,hl ld a,b or a ld hl,UNSUP_SETUP_S jp z,PRSTALL ld (SEND_PNT),de ld (BYTES_LEFT),a jp WRITE_EP0_DATA ;* OUT request: act accordingly HANDLE_SETUP_OUT: xor a ld (BYTES_LEFT),a ld a,SET_ENDP3_T0 out (CH_COMMAND_PORT),a xor a out (CH_DATA_PORT),a ld a,(BUFFER+1) ;bRequest cp R_SET_ADDRESS jp z,HANDLE_SET_ADDRESS cp R_SET_CONFIG jp z,HANDLE_SET_CONFIG ld hl,UNSUP_SETUP_S jp PRSTALL ret ;--- Handle SET_ADDRESS request HANDLE_SET_ADDRESS: ld hl,SET_ADDRESS_S call PRINT ld a,(BUFFER+2) ;low(wValue) ld (ADDRESS_TO_SET),a call PRINTHEX ld hl,CRLF_S call PRINT if NOOB_SETS_ADD=1 ld a,255 out (CH_COMMAND_PORT),a ld a,(ADDRESS_TO_SET) out (CH_DATA_PORT),a xor a ld (ADDRESS_TO_SET),a endif ret ;--- Handle SET_CONFIGURATION request HANDLE_SET_CONFIG: ld hl,SET_CONFIG_S call PRINT ld a,(BUFFER+2) ;low(wValue) ld (CURRENT_CONFIG),a call PRINTHEX ld hl,CRLF_S call PRINT ret ;--- Write data to endpoint 0, ; depending on SEND_PNT and BYTES_LEFT ; and updating both WRITE_EP0_DATA: ld hl,WRITING_S call PRINT ld a,(BYTES_LEFT) cp 8 jr c,WREP0GO ld a,8 WREP0GO: push af ;A = Bytes to send now call PRINTHEX ld hl,BYTES_S call PRINT ld hl,TWOSPACES_S call PRINT pop bc ld hl,SEND_PNT ld a,WR_USB_DATA3_0 out (CH_COMMAND_PORT),a ld a,b out (CH_DATA_PORT),a or a ret z ;Nothing to send actually? push bc ld hl,(SEND_PNT) ld c,CH_DATA_PORT WREP0LOOP: ld a,(hl) push af call PRINTHEX ld a,' ' call CHPUT pop af out (c),a inc hl djnz WREP0LOOP ld (SEND_PNT),hl ld hl,CRLF_S call PRINT pop bc ;B = Bytes sent ld a,(BYTES_LEFT) sub b ld (BYTES_LEFT),a ret ;--- Get data to send depending on request ; Input: Request in BUFFER ; Output: HL = Response address ; B = Response length, 0 if unsupported GET_DATA_TO_SEND: ld a,(BUFFER+1) ;bRequest cp R_GET_INTERF ld hl,ONE_BYE ld b,1 ret z cp R_GET_CONFIG ld hl,CURRENT_CONFIG ld b,1 ret z cp R_GET_STATUS ld hl,ZERO_BYTES ld b,2 ret z cp R_GET_DESCR ld b,0 ret nz ld a,(BUFFER+3) ;high(wValue), descriptor type cp USBD_DEVICE ld hl,DEV_DESC_START ld b,DEV_DESC_SIZE ret z cp USBD_CONFIG ld hl,CONF_DESC_START ld b,CONF_DESC_SIZE ret z cp USBD_STRING ld b,0 ret nz ld a,(BUFFER+2) ;low(wValue), descriptor index or a ld hl,LANG_DESC_START ld b,LANG_DESC_SIZE ret z cp STRD_MANUF ld hl,MANUF_DESC_START ld b,MANUF_DESC_SIZE ret z cp STRD_PRODUCT ld hl,PROD_DESC_START ld b,PROD_DESC_SIZE ret z cp STRD_SERIAL ld hl,SERIAL_DESC_START ld b,SERIAL_DESC_SIZE ret z ld b,0 ret ;--- Handle endpoint 0 IN token received interrupt HANDLE_EP0_IN: ld hl,EP0IN_S call PRINT ld a,(ADDRESS_TO_SET) or a jr z,EP0INGO ld hl,SETTINGAD_S ;call PRINT ld a,SET_USB_ADDR out (CH_COMMAND_PORT),a ld a,(ADDRESS_TO_SET) out (CH_DATA_PORT),a xor a ld (ADDRESS_TO_SET),a ret EP0INGO: ld a,(BYTES_LEFT) or a call nz,WRITE_EP0_DATA ret ;--- Handle endpoint 0 OUT token received interrupt HANDLE_EP0_OUT: ld a,RD_USB_DATA0 out (CH_COMMAND_PORT),a in a,(CH_DATA_PORT) ld a,SET_ENDP2_R0 out (CH_COMMAND_PORT),a xor a out (CH_DATA_PORT),a ld hl,EP0OUT_S call PRINT ret ;--- Print message passed in HL, then STALL endpoint 0 PRSTALL: call PRINT ;--- STALL endpoint 0 STALL_EP0: ld a,WR_USB_DATA3_0 out (CH_COMMAND_PORT),a ld a,0Fh out (CH_DATA_PORT),a ret ;**************** ;* MSX specific * ;**************** if ROM=0 ;--- Print string passed in HL, then exit PREXIT: call PRINT ;--- Exit EXIT: ld c,TERM0 jp 5 endif if ROM=1 ;--- Print string passed in HL, then halt PREXIT: call PRINT PREXLP: ld a,8 call DO_SNSMAT inc a jr z,PREXLP ;--- Exit EXIT: ld hl,(SAVE_SP) ld sp,hl ret endif ;--- Read keyboard matrix row A DO_SNSMAT: ld c,a di in a,(0AAh) and 0F0h add c out (0AAh),a ei in a,(0A9h) ret ;row 8: right down up left DEL INS HOME SPACE ;--- Print zero-terminated string passed in HL PRINT: ret PRINT2: ld a,(hl) or a ret z call CHPUT di inc hl jr PRINT2 ;--- Print byte passed in A in hex PRINTHEX: ret PRINTHEX2: push af call _PRINTHEX_1 pop af push af call _PRINTHEX_2 pop af ret _PRINTHEX_1: rra rra rra rra _PRINTHEX_2: or 0F0h daa add a,0A0h adc a,40h call CHPUT ret if ROM=0 ;--- Print character passed in A CHPUT: push hl push bc push de ld e,a ld c,CONOUT call DOS pop de pop bc pop hl ret endif ;***************** ;* Debug strings * ;***************** INIT_OK_S: db "CH372 Init ok!" CRLF_S: db 13,10,0 NO_CH_S: db "*** CH732 not found",13,10,0 CH_MODE_ERR_S: db "*** Error setting USB mode",13,10,0 UNK_INT_S: db "*** Unknown interrupt received: ",0 BUSRESET_S: db "BUS_RESET",13,10,0 SUSPEND_S: db "SUSPEND",13,10,0 WAKEUP_S: db "WAKEUP",13,10,0 SETUP_S: db "SETUP",13,10,0 EP0IN_S: db "EP0_IN",13,10,0 EP0OUT_S: db "EP0_OUT",13,10,0 WRITING_S: db " Writing ",0 BYTES_S: db " bytes",13,10,0 BAD_SETUP_S: db " *** Wrong SETUP data length",13,10,0 UNSUP_SETUP_S: db " *** Unsupported control request",13,10,0 SET_ADDRESS_S: db " SET_ADDRESS: ",0 SET_CONFIG_S: db " SET_CONFIGURATION: ",0 SETTINGAD_S: db " Setting address",13,10,0 TWOSPACES_S: db " ",0 ;******************* ;* USB Descriptors * ;******************* DEV_DESC_START: db 12h ;Length db USBD_DEVICE db 00h,02h ;USB version, db 00h,00h,00h ;Class,subclass,protocol db 8 ;Max packet size for EP0 db 09h,12h ;VID (https://pid.codes) db 07h,00h ;PID (testing) db 00h,01h ;Device release number db STRD_MANUF ;Manufacturer string id db STRD_PRODUCT ;Product string id db STRD_SERIAL ;Serial number string id db 01h ;Number of configurations DEV_DESC_END: DEV_DESC_SIZE: equ DEV_DESC_END-DEV_DESC_START CONF_DESC_START: db 09h ;Length db USBD_CONFIG db 12h,00h ;Total length db 01h ;Number of interfaces db 01h ;Configuration value db 00h ;String descriptor for configuration db 80h ;Attributes (no self-poweredh,no remote wake-up) db 34h ;Max power (68mA) ;Interface descriptor db 09h ;Length db USBD_INTERF db 00h ;Interface number db 00h ;Alternate setting db 00h ;Number of endpoints db 0FFh,0FFh,0FFh ;Class,subclass,protocol db 00h ;String descriptor for interface CONF_DESC_END: CONF_DESC_SIZE: equ CONF_DESC_END-CONF_DESC_START LANG_DESC_START: db 04h ;Length db USBD_STRING db 09h,04h ;English (US) LANG_DESC_END: LANG_DESC_SIZE: equ LANG_DESC_END-LANG_DESC_START PROD_DESC_START: db 1Ah ;Length db USBD_STRING ;"NestorDevice" db 4Eh,00h,65h,00h,73h,00h,74h,00h,6Fh,00h db 72h,00h,44h,00h,65h,00h,76h,00h,69h,00h db 63h,00h,65h,00h PROD_DESC_END: PROD_DESC_SIZE: equ PROD_DESC_END-PROD_DESC_START MANUF_DESC_START: db 2Ah ;Length db USBD_STRING ;"Konamiman Industries" db 4Bh,00h,6Fh,00h,6Eh,00h,61h,00h,6Dh,00h db 69h,00h,6Dh,00h,61h,00h,6Eh,00h,20h,00h db 49h,00h,6Eh,00h,64h,00h,75h,00h,73h,00h db 74h,00h,72h,00h,69h,00h,65h,00h,73h,00h MANUF_DESC_END: MANUF_DESC_SIZE: equ MANUF_DESC_END-MANUF_DESC_START SERIAL_DESC_START: db 06h ;Length db USBD_STRING db 33h,00h,34h,00h SERIAL_DESC_END: SERIAL_DESC_SIZE: equ SERIAL_DESC_END-SERIAL_DESC_START ONE_BYE: db 1 ZERO_BYTES: db 0,0 ;************* ;* Variables * ;************* if ROM=1 VAR_START: equ 8012h endif if ROM=0 VAR_START: endif ;0: Not handling request, 1: handling IN request, 2: handling OUT request CUR_REQ_TYPE: equ VAR_START ;How many bytes left to send BYTES_LEFT: equ CUR_REQ_TYPE+1 ;Pointer to data being sent SEND_PNT: equ BYTES_LEFT+1 ;If not 0, address to set in next IN token receive ADDRESS_TO_SET: equ SEND_PNT+2 ;Current config number CURRENT_CONFIG: equ ADDRESS_TO_SET+1 VAR_END: equ CURRENT_CONFIG+1 BUFFER: equ VAR_END
14.212321
73
0.709652
a06368be89fa7dba18c46f571ad4c0cfe4f6ad2d
1,829
asm
Assembly
programs/oeis/027/A027788.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/027/A027788.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/027/A027788.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A027788: a(n) = 15*(n+1)*C(n+2,15)/2. ; 105,1800,16320,104040,523260,2209320,8139600,26860680,80901810,225544440,588376800,1448655000,3389852700,7582037400,16287339600,33738060600,67621543875,131530532400,248917996800,459351961200,828225505800,1461574422000,2528333935200,4293282020400,7165139588100,11765913428880,19029682468800,30341771491920,47732786859240,74146496500560,113806250442720,172711831683600,259307625069405,385374177968760,567209052930240,827179868856600,1195753211782500,1714128387917400,2437635622858800,3440095242910200,4819378712944950,6704465418189000,9264352214224800,12719247682818600,17354571599124900,23538384467778600,31742994529134000,42571633088363400,56791256435501175,75372727435135200,99539855914337280,130829038563880800,171161540985053520,222930812100601440,289107620336103360,373366258348497120,480235585919262600,615279276997310880,785310315662424960,998645556781643040,1265407041127424400,1597877743559220000,2010920549528721600,2522470513882519200,3154111872269497425,3931752866418781800,4886413228690776000,6055141168836592200,7482078938834757900,9219698543929998600,11330231945552528400,13887323192821761000,16977933354361505850,20704532934213394200,25187620680453448800,30568612371277594680,37013148332460600300,44714874147093816120,53899755311712410640,64830993524351939160,77814619915653604395,93205848913942851600,111416285633714484480,132922089763314494160,158273209975905402840,188103814977366565200,223144060520484180000,264233346147359542800,312335231168334761100,368554196549372324400,434154458071105262400,510581056459361958000,599483472294211524600,702742037515916857200,822497441403596464800,961183657156834465200,1121564645822338381125,1306775227447358083800,1520366545189719057600,1766356586862730961400 mov $1,$0 add $0,15 bin $0,$1 add $1,14 mul $0,$1 div $0,2 mul $0,15
166.272727
1,718
0.915254
479d2b77745b97dc32b14a872acde20dbd23f5b8
1,048
asm
Assembly
archive/d/debug/helloworld.asm
asharma13524/sample-programs
1e15059b92144991a2983112c0d8fe14111fd0a8
[ "MIT" ]
422
2018-08-14T11:57:47.000Z
2022-03-07T23:54:34.000Z
archive/d/debug/helloworld.asm
asharma13524/sample-programs
1e15059b92144991a2983112c0d8fe14111fd0a8
[ "MIT" ]
1,498
2018-08-10T19:18:52.000Z
2021-12-14T03:02:00.000Z
archive/d/debug/helloworld.asm
asharma13524/sample-programs
1e15059b92144991a2983112c0d8fe14111fd0a8
[ "MIT" ]
713
2018-08-12T21:37:49.000Z
2022-03-02T22:57:21.000Z
; ------------------------------------------------------------------ ; helloworld.asm ; ; This is a Win64 console program that writes "Hello World" ; on a single line and then exits. ; ; To assemble to .obj: nasm -f Win64 helloworld.asm ; To compile to .exe: gcc helloworld.obj -o helloworld.exe ; ------------------------------------------------------------------ global _main ; declare main() method extern _printf ; link to external library segment .data message: db 'Hello world', 0xA, 0 ; text message ; 0xA (10) is hex for (NL), carriage return ; 0 terminates the line ; code is put in the .text section section .text _main: ; the entry point! void main() push message ; save message to the stack call _printf ; display the first value on the stack add esp, 4 ; clear the stack ret ; return
41.92
72
0.461832
2f574ade8cd956a035c87168d8a4dc8ea59cc231
248
asm
Assembly
libsrc/math/zxmath/ftoe.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/math/zxmath/ftoe.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/math/zxmath/ftoe.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ; ; ZX Maths Routines ; ; 12/12/02 - Stefano Bodrato ; ; $Id: ftoe.asm,v 1.3 2016/06/22 19:59:18 dom Exp $ ; ; ; Just a dirty placeholder.. :oP SECTION code_fp PUBLIC ftoe EXTERN ftoa .ftoe jp ftoa
13.052632
57
0.540323
57213a3b13beba9d6b1a863c2e410f68813d8ba9
37,704
asm
Assembly
Main.asm
DevEd2/ScootTheBurbs
b276b511b1ba66eb1a67062fb4ed6ba887d392cd
[ "MIT" ]
5
2018-03-19T20:39:13.000Z
2019-06-18T21:11:57.000Z
Main.asm
DevEd2/ScootTheBurbs
b276b511b1ba66eb1a67062fb4ed6ba887d392cd
[ "MIT" ]
null
null
null
Main.asm
DevEd2/ScootTheBurbs
b276b511b1ba66eb1a67062fb4ed6ba887d392cd
[ "MIT" ]
null
null
null
; ================================================================ ; Scoot the Burbs ; ================================================================ ; Debug flag ; If set to 1, enable debugging features. DebugFlag set 1 ; ================================================================ ; Project includes ; ================================================================ include "Variables.asm" include "Constants.asm" include "Macros.asm" include "hardware.inc" ; ================================================================ ; Reset vectors (actual ROM starts here) ; ================================================================ SECTION "Reset $00",ROM0[$00] Reset00: halt ldh a,[sys_VBlankIRQ] and a jr z,Reset00 xor a ldh [sys_VBlankIRQ],a ret SECTION "Reset $10",ROM0[$10] Reset10: halt ldh a,[sys_StatIRQ] and a jr z,Reset10 xor a ldh [sys_StatIRQ],a ret SECTION "Reset $20",ROM0[$20] Reset20: halt ldh a,[sys_TimerIRQ] and a jr z,Reset20 xor a ldh [sys_TimerIRQ],a ret SECTION "Reset $30",ROM0[$30] Reset30: jp ShowError SECTION "Reset $38",ROM0[$38] Reset38: jp ErrorHandler ; ================================================================ ; Interrupt vectors ; ================================================================ SECTION "VBlank interrupt",ROM0[$40] IRQ_VBlank: jp DoVBlank SECTION "LCD STAT interrupt",ROM0[$48] IRQ_STAT: jp DoStat SECTION "Timer interrupt",ROM0[$50] IRQ_Timer: jp DoSample SECTION "Serial interrupt",ROM0[$58] IRQ_Serial: reti SECTION "Joypad interrupt",ROM0[$60] IRQ_Joypad: reti ; ================================================================ ; System routines ; ================================================================ include "SystemRoutines.asm" ; ================================================================ ; ROM header ; ================================================================ SECTION "ROM header",ROM0[$100] EntryPoint: nop jp ProgramStart NintendoLogo: ; DO NOT MODIFY OR ROM WILL NOT BOOT!!! db $ce,$ed,$66,$66,$cc,$0d,$00,$0b,$03,$73,$00,$83,$00,$0c,$00,$0d db $00,$08,$11,$1f,$88,$89,$00,$0e,$dc,$cc,$6e,$e6,$dd,$dd,$d9,$99 db $bb,$bb,$67,$63,$6e,$0e,$ec,$cc,$dd,$dc,$99,$9f,$bb,$b9,$33,$3e ROMTitle: db "SCOOT THE BURBS" ; ROM title (15 bytes) GBCSupport: db $c0 ; GBC support (0 = DMG only, $80 = DMG/GBC, $C0 = GBC only) NewLicenseCode: db "DS" ; new license code (2 bytes) SGBSupport: db 0 ; SGB support CartType: db $19 ; Cart type, see hardware.inc for a list of values ROMSize: ds 1 ; ROM size (handled by post-linking tool) RAMSize: db 0 ; RAM size DestCode: db 1 ; Destination code (0 = Japan, 1 = All others) OldLicenseCode: db $33 ; Old license code (if $33, check new license code) ROMVersion: db 0 ; ROM version HeaderChecksum: ds 1 ; Header checksum (handled by post-linking tool) ROMChecksum: ds 2 ; ROM checksum (2 bytes) (handled by post-linking tool) ; ================================================================ ; Start of program code ; ================================================================ ProgramStart: di ld sp,$dffe push bc push af .wait ; wait for VBlank before disabling the LCD ldh a,[rLY] cp $90 jr nz,.wait xor a ldh [rLCDC],a ; disable LCD call ClearWRAM call ClearVRAM ; clear HRAM ld bc,$8080 .hramClearLoop ld [c],a inc c djnz .hramClearLoop xor a ldh [rSCY],a ldh [rSCX],a ldh [rWY],a ldh [rWX],a call CopyDMARoutine pop af cp $11 ; are we on GBC? ld [GBCFlag],a jp z,DoInit ; if we are, jump to main init routine CopyTileset1BPP DebugFont,0,97 xor a ldh [rSCX],a ldh [rSCY],a ld hl,.dmgTilemap call LoadMapText ld a,IEF_VBLANK ldh [rIE],a ld a,%10010001 ldh [rLCDC],a ld a,%11100100 ldh [rBGP],a ei .dmgwaitloop halt jr .dmgwaitloop .dmgTilemap ; #################### db " " db " " db " " db " " db "- SCOOT THE BURBS - " db " " db "This game will not " db "work on this system." db " " db "Please use a Game " db "Boy Color or Game " db "Boy Advance to play " db "this game. " db " " db " " db " " db " " db " " ; #################### DoInit: ; check if we are running in a bad emulator ld a,$ed ; this value isn't important ld [EmuCheck],a ld b,a ld a,[EmuCheck+$2000] ; read back value from echo RAM (which VBA doesn't support) cp b jp z,NoEmu CopyTileset1BPP DebugFont,0,97 ld hl,.emuTilemap call LoadMapText ld hl,Pal_Grayscale xor a call LoadBGPalLine ; GBC default palette ld a,IEF_VBLANK ldh [rIE],a ld a,%10010001 ldh [rLCDC],a ; enable LCD ei .loop halt jr .loop .emuTilemap ; #################### db "- SCOOT THE BURBS - " db " " db "Isn't it time you " db "ditched VBA already?" db " " db "Unfortunately, VBA " db "has a large number " db "accuracy issues, so " db "we can't let you " db "play the game until " db "you get a better " db "emulator. We would " db "recommend either BGB" db "or Gambatte for the " db "best experience if " db "you can't run this " db "ROM on a real Game " db "Boy. " ; #################### NoEmu: pop bc ld a,b ld [GBAFlag],a ; ld a,1 ; ldh [sys_GameMode],a ld a,IEF_TIMER+IEF_VBLANK ldh [rIE],a ; set interrupt flags xor a ldh [rTIMA],a ldh [rTMA],a or %00000110 ldh [rTAC],a ; initialize timer (for sample playback) ; initialize sample pointer and bank ld a,$40 ldh [SamplePtr+1],a ld a,1 ldh [SampleBank],a ; init sound output ld c,rNR51-$ff00 ld a,$ff ld [c],a dec c xor %10001000 ld [c],a ld a,$20 ldh [rNR32],a ld hl,Pal_White call LoadBGPal ld hl,Pal_White call LoadObjPal call CPUToggleSpeed ; call comm_not_ready ei ShowDevsoftSplash: CopyCompressedTileset DevSoftTiles,0 CopyTileset BlankTiles,$600,(BlankTiles_End-BlankTiles)/16 ld hl,DevSoftMap call LoadMap ; ld a,$62 ; ld hl,$9a40 ; push hl ; call LoadRow ; ld a,1 ; ldh [rVBK],a ; pop hl ; call LoadRow ; xor a ; ldh [rVBK],a ld a,$62 ; black tile call .loadloop ; load BG map ld a,1 ldh [rVBK],a ; set VRAM bank 1 call .loadloop ; load attributes jr .continue ; jump ahead .loadloop ld d,a ; save tile/attribute ID ld hl,$9c00 ; window map address ld bc,$800 ; size of tilemap .copyloop ld [hl+],a ; copy byte dec bc ld a,b or c ld a,d ; restore tile/attribute ID jr nz,.copyloop ; loop until all bytes are copied ret .continue xor a ldh [rVBK],a ; set VRAM bank 0 ld a,%10010001 ; LCD on + BG on + BG $8000 ldh [rLCDC],a ; enable LCD Pal_FadeToPal Pal_Grayscale,1,8 ld a,1 ld hl,Pal_Vinesauce call LoadBGPalLine call ShowSplash ld a,%11110001 ldh [rLCDC],a ; enable window ld a,176 ld [WindowBasePos],a di ld a,IEF_VBLANK+IEF_LCDC ldh [rIE],a ld a,%01000000 ldh [rSTAT],a xor a ldh [rLYC],a ld a,1 ld [StatID],a ei .scrollLoop WaitForVBlank ld a,[WindowBasePos] dec a ld [WindowBasePos],a ld a,[WindowTransitionOffset] inc a ld [WindowTransitionOffset],a ld [WindowTransitionPos1],a ld [WindowTransitionPos2],a ld a,[WindowBasePos] cp $e0 jr nz,.scrollLoop di ld a,IEF_VBLANK ldh [rIE],a xor a ld [SpritesDisabled],a ei WaitForVBlank ; WaitForVBlank ; xor a ; ldh [rLCDC],a ShowVinesauceSplash: CopyTilesetSafe VinesauceTextTiles,$1000,29 CopyTilesetSafe VineshroomTiles,0,2 ld hl,VinesauceTextMap call LoadMapSafe di ld a,IEF_VBLANK ldh [rIE],a ei ld a,80 ldh [rSCY],a ld a,%10000111 ldh [rLCDC],a xor a ld hl,Pal_Vinesauce call LoadBGPalLine xor a ld hl,Pal_Vineshroom call LoadObjPalLine xor a ld [ScrollTablePos],a ld a,Bank(FXHammer) ld [rROMB0],a .loop1 call FXHammer_Update halt ; make logo fall ld hl,VinesauceScrollTableY ld a,[ScrollTablePos] add l ld l,a jr nc,.nocarry inc h .nocarry ld a,[hl] cp $80 jr z,.endScrollIn ldh [rSCY],a ld a,[ScrollTablePos] cp $16 jr nz,.noplay push af ld a,SFX_BigThud call FXHammer_Trig pop af .noplay inc a ld [ScrollTablePos],a jr .loop1 .endScrollIn ; wait a bit before moving logo ld a,45 ld [ScreenTimer],a .loop2 call FXHammer_Update halt ld a,[ScreenTimer] dec a ld [ScreenTimer],a and a jr nz,.loop2 ; move logo right to make room for vineshroom ld a,8 ld [ScreenTimer],a .loop3 call FXHammer_Update halt ldh a,[rSCX] dec a ldh [rSCX],a ld a,[ScreenTimer] dec a ld [ScreenTimer],a and a jr nz,.loop3 LoadSprite Sprite_Vineshroom,OAMBuffer,Sprite_Vineshroom_End-Sprite_Vineshroom ld a,15 ld [ScreenTimer],a .loop4 call FXHammer_Update halt ld a,[ScreenTimer] dec a ld [ScreenTimer],a and a jr nz,.loop4 xor a ld [ScrollTablePos],a .loop5 call FXHammer_Update halt ld hl,VineshroomScrollTable ld a,[ScrollTablePos] add l ld l,a jr nc,.nocarry2 inc h .nocarry2 ld a,[hl] cp $80 jr z,.endScrollIn2 cp 80 jr nz,.noSFX push af ld a,SFX_Bounce call FXHammer_Trig pop af .noSFX ld [VineshroomPosY1],a ld [VineshroomPosY2],a ld a,[ScrollTablePos] inc a ld [ScrollTablePos],a jr .loop5 .endScrollIn2 ld a,120 ld [ScreenTimer],a .loop6 call FXHammer_Update halt ld a,[ScreenTimer] dec a ld [ScreenTimer],a and a jr nz,.loop6 ld a,1 ld [RGBG_fade_to_color],a call RGBG_SimpleFadeOut ShowTitleScreen: WaitForVBlank xor a ldh [rLCDC],a CopyTileset1BPP DebugFont,0,97 ld hl,TitleMap call LoadMapTitle ld a,1 ld [rROMB0],a xor a ld [FadeType],a call DS_Init xor a ldh [rSCX],a ldh [rSCY],a ; Pal_FadeToPal Pal_Grayscale,1,8 ld a,0 ld hl,Pal_Grayscale call LoadBGPalLine ld a,1 ld hl,Pal_Grayscale call LoadBGPalLine ld a,%11110111 ldh [rLCDC],a di ld a,IEF_VBLANK;+IEF_LCDC ldh [rIE],a ; ld a,%01000000 ; ldh [rSTAT],a ; ld a,48 ; ldh [rLYC],a ; ld a,2 ; ld [StatID],a ei jr TitleLoop VinesauceScrollTableY: db 80,80,80,80,80,80,80,80 db 74,68,62,56,50,44,38,32,26,20,14,8,2,0 db 4,-4,4,-4 db 3,-3,3,-3 db 2,-2,2,-2 db 1,-1,1,-1 db 0,$80 ; $80 = end VineshroomScrollTable: db 0,6,12,18,24,30,36,42,48,54,60,66,72,78,80 db 78,76,74,73,72,72,71,71,71,72,72,73,74,76,78 db 80,$80 ; $80 = end Sprite_Vineshroom: db 0,22,0,%00000000 db 0,30,0,%00100000 Sprite_Vineshroom_End ; ================================================================ TitleLoop:: WaitForVBlank call DS_Play call CheckInput ld a,[sys_btnPress] bit btnStart,a jr nz,.exitTitle bit btnSelect,a jp nz,InitSoundTest jr TitleLoop .exitTitle call DS_Stop ld a,Bank(FXHammer) ld [rROMB0],a ld a,SFX_MenuSelect call FXHammer_Trig ld b,30 .loop1 push bc call FXHammer_Update WaitForVBlank pop bc dec b jr nz,.loop1 ld a,1 ld [RGBG_fade_to_color],a call RGBG_SimpleFadeOut WaitForVBlank xor a ldh [rLCDC],a ShowCharSelect: di CopyTileset CharSelectTiles,0,(CharSelectTiles_End-CharSelectTiles)/16 ld hl,CharSelectMap call LoadMapFull ld a,1 ld [SpritesDisabled],a ldh [rVBK],a ; TODO: Fix pics not fading in properly ld hl,Pic_Dummy call LoadPic ld a,%10010001 ldh [rLCDC],a Pal_FadeToPal Pal_CharSelectMain,1,8 ld a,3 ld [StatID],a ld a,STATF_LYC ldh [rSTAT],a ld a,IEF_VBLANK+IEF_LCDC ldh [rIE],a ld a,1 ld [rROMB0],a call DS_Init ei .loop rst $00 xor a ldh [rLYC],a jr .loop ProcessCharSelect: ld hl,rROMB0 ld [hl],1 call DS_Play ld [hl],2 call FXHammer_Update call CheckInput ld a,[sys_btnPress] bit btnA,a jr nz,.select bit btnB,a jr nz,.back bit btnStart,a jr nz,.select bit btnLeft,a jr nz,.prev bit btnRight,a jr z,.continue .next ld a,SFX_MenuCursor call FXHammer_Trig ld hl,CharSel_CharID inc [hl] jr .continue .prev ld a,SFX_MenuCursor call FXHammer_Trig ld hl,CharSel_CharID dec [hl] jr .continue .select ld [hl],1 ; hl should still be ROM bank select call DS_Stop ; stop music ; mute all channels to prevent notes from sustaining (why does it do this?) xor a ldh [rNR12],a ldh [rNR22],a ldh [rNR30],a ldh [rNR42],a or $80 ldh [rNR14],a ldh [rNR24],a ldh [rNR44],a ld [hl],2 ld a,SFX_MenuSelect call FXHammer_Trig ld a,1 ld [DoExitCharSelect],a di ld a,IEF_VBLANK ldh [rIE],a xor a ldh [rSCX],a ei ld b,45 .loop push bc call FXHammer_Update pop bc WaitForVBlank dec b jr nz,.loop di ld a,IEF_TIMER+IEF_VBLANK+IEF_LCDC ldh [rIE],a ei ; init CH3 to prevent samples from being too quiet (isn't DS_Stop supposed to take care of this???) ld a,$80 ldh [rNR30],a ld a,%00100000 ldh [rNR32],a ld a,[CharSel_CharID] and $3 call PlaySample jr .sampleLoop .back ld a,SFX_MenuBack call FXHammer_Trig .continue ret .sampleLoop WaitForVBlank ld a,[SamplePlaying] and a jr nz,.sampleLoop .samplebreak di ld a,IEF_VBLANK ldh [rIE],a ei ld a,1 ld [RGBG_fade_to_color],a call RGBG_SimpleFadeOut jr InitGame CharacterNames: dw .vinny dw .joel dw .thicc dw .sonic .vinny str "VINNY" .joel str "JOEL" .thicc str "HE THICC" .sonic str "SONIC" InitGame: WaitForVBlank xor a ldh [rLCDC],a .loop halt jr .loop ; ================================================================ ; Graphics routines ; ================================================================ _CopyTileset: ; WARNING: Do not use while LCD is on! ld a,[hl+] ; get byte ld [de],a ; write byte inc de dec bc ld a,b ; check if bc = 0 or c jr nz,_CopyTileset ; if bc != 0, loop ret _CopyTilesetSafe: ; same as _CopyTileset, but waits for VRAM accessibility before writing data ldh a,[rSTAT] and 2 ; check if VRAM is accessible jr nz,_CopyTilesetSafe ; if it isn't, loop until it is ld a,[hl+] ; get byte ld [de],a ; write byte inc de dec bc ld a,b ; check if bc = 0 or c jr nz,_CopyTilesetSafe ; if bc != 0, loop ret _CopyTileset1BPP: ld a,[hl+] ; get byte ld [de],a ; write byte inc de ; increment destination address ld [de],a ; write byte again inc de ; increment destination address again dec bc dec bc ; since we're copying two bytes, we need to dec bc twice ld a,b ; check if bc = 0 or c jr nz,_CopyTileset1BPP ; if bc != 0, loop ret _CopyTileset1BPPInvert: ld a,[hl+] ; get byte cpl ; flip all bits ld [de],a ; write byte inc de ; increment destination address ld [de],a ; write byte again inc de ; increment destination address again dec bc dec bc ; since we're copying two bytes, we need to dec bc twice ld a,b ; check if bc = 0 or c jr nz,_CopyTileset1BPPInvert ; if bc != 0, loop ret include "FadeRoutines.asm" ; Pic format: ; $000 - Tileset pointer (two bytes) ; $002 - Size of tileset (two bytes) ; $004 - Palette pointer (two bytes) ; $006 - Map data (280 bytes) ; $11e - Attribute data (280 bytes) LoadPic: push hl push hl inc hl inc hl ld a,[hl+] ld b,[hl] ld c,a ld de,$8000 pop hl ld a,[hl+] ld h,[hl] ld l,a call _CopyTilesetSafe pop hl ld a,l add 4 ld l,a jr nc,.nocarry inc h .nocarry push hl ld a,[hl+] ld h,[hl] ld l,a call LoadPalPic pop hl ld a,l inc hl inc hl xor a ldh [rVBK],a call LoadMapPic ld a,1 ldh [rVBK],a call LoadMapPic xor a ldh [rVBK],a ret LoadMapPic: ld de,$9840 ld bc,$0e14 .loop ldh a,[rSTAT] and 2 jr nz,.loop ld a,[hl+] ; get tile ID ld [de],a ; copy to BG map inc de ; go to next tile dec c jr nz,.loop ; loop until current row has been completely copied ld c,$14 ; reset C ld a,e add $c ; go to next row jr nc,.continue ; if carry isn't set, continue inc d .continue ld e,a dec b jr nz,.loop ; loop until all rows have been copied ret ; temp routine LoadMapTitle: ld de,_SCRN1 ld bc,$614 jp LoadMapText_loop LoadMap: ld de,_SCRN0 ; BG map address in VRAM ld bc,$1214 ; size of map (YX) LoadMap_loop: ld a,[hl+] ; get tile ID ld [de],a ; copy to BG map inc de ; go to next tile dec c jr nz,LoadMap_loop ; loop until current row has been completely copied ld c,$14 ; reset C ld a,e add $c ; go to next row jr nc,.continue ; if carry isn't set, continue inc d .continue ld e,a dec b jr nz,LoadMap_loop ; loop until all rows have been copied ret LoadMapFull: ld de,_SCRN0 ld bc,$400 .loop ld a,[hl+] ld [de],a inc de dec bc ld a,b or c jr nz,.loop ret LoadRow: ld e,a ld b,$20 .loop ld a,e ld [hl+],a dec b jr nz,.loop ret LoadMapSafe: ld de,_SCRN0 ; BG map address in VRAM ld bc,$1214 ; size of map (YX) LoadMapSafe_loop: ldh a,[rSTAT] and 2 jr nz,LoadMapSafe_loop ld a,[hl+] ; get tile ID ld [de],a ; copy to BG map inc de ; go to next tile dec c jr nz,LoadMapSafe_loop ; loop until current row has been completely copied ld c,$14 ; reset C ld a,e add $c ; go to next row jr nc,.continue ; if carry isn't set, continue inc d .continue ld e,a dec b jr nz,LoadMapSafe_loop ; loop until all rows have been copied ret WaitStat: ; wait for LCD status to change (prevents tearing when using STAT interrupts) push af .wait ldh a,[rSTAT] and 2 jr z,.wait .wait2 ldh a,[rSTAT] and 2 jr nz,.wait2 pop af ret ; Input: hl = palette data LoadBGPal: ld a,0 call LoadBGPalLine LoadPalPic: ld a,1 call LoadBGPalLine ld a,2 call LoadBGPalLine ld a,3 call LoadBGPalLine ld a,4 call LoadBGPalLine ld a,5 call LoadBGPalLine ld a,6 call LoadBGPalLine ld a,7 call LoadBGPalLine ret ; Input: hl = palette data LoadObjPal: ld a,0 call LoadObjPalLine ld a,1 call LoadObjPalLine ld a,2 call LoadObjPalLine ld a,3 call LoadObjPalLine ld a,4 call LoadObjPalLine ld a,5 call LoadObjPalLine ld a,6 call LoadObjPalLine ld a,7 call LoadObjPalLine ret LoadBGColor: swap a ; \ multiply rrca ; / palette by 8 or $80 ; auto increment push af RGBG_WaitForVRAM pop af ld [rBCPS],a ld a,d ld [rBCPD],a ld a,e ld [rBCPD],a ret ; Input: hl = palette data LoadBGPalLine: swap a ; \ multiply rrca ; / palette by 8 or $80 ; auto increment push af RGBG_WaitForVRAM pop af ld [rBCPS],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ld a,[hl+] ld [rBCPD],a ret ; Input: hl = palette data LoadObjPalLine: swap a ; \ multiply rrca ; / palette by 8 or $80 ; auto increment push af RGBG_WaitForVRAM pop af ld [rOCPS],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ld a,[hl+] ld [rOCPD],a ret OAM_DMA: ld a,high(OAMBuffer) ldh [rDMA],a ld a,$28 .wait dec a jr nz,.wait ret OAM_DMA_End CopyDMARoutine: ld hl,OAM_DMA ld bc,(OAM_DMA_End-OAM_DMA)<<8+low(_OAM_DMA) .loop ld a,[hl+] ld [c],a inc c dec b jr nz,.loop ret ClearOAM: xor a ld hl,OAMBuffer ld b,$9f .clearloop ld [hl+],a dec b jr nz,.clearloop jp $ff80 ; do OAM DMA then exit ShowSplash: ld a,120 ld [ScreenTimer],a .loop WaitForVBlank call CheckInput ld a,[sys_btnPress] bit btnStart,a jr nz,.break ld a,[ScreenTimer] dec a ld [ScreenTimer],a jr nz,.loop .break ret MetaspriteToOAM: ld a,[hl+] ld [de],a inc de dec b jr nz,MetaspriteToOAM ret ; ================================================================ ; Interrupt routines ; ================================================================ DoVBlank: push af ld a,1 ldh [sys_VBlankIRQ],a ld a,[SpritesDisabled] and a call z,_OAM_DMA .done pop af reti DoStat: push af push hl ld a,[StatID] add a ld hl,StatTable add l ld l,a jr nc,.nocarry inc h .nocarry ld a,[hl+] ld h,[hl] ld l,a bit 7,h jr z,.noerr ld a,err_DestOutsideROM rst $30 ; show error message .noerr jp hl StatTable: dw Stat_None dw Stat_WindowTransition dw Stat_Title dw Stat_CharSelect StatTable_End Stat_None ; because reti nz doesn't exist pop hl pop af reti Stat_WindowTransition: ; init push bc push de ld c,rWX-$ff00 ld a,[WindowTransitionOffset] rra rra ld d,a ld a,[WindowBasePos] ld e,a ld b,0 ; get first offset ld hl,WindowTransitionLookupTable1 ld a,[WindowTransitionPos1] inc a ld [WindowTransitionPos1],a add d add l ld l,a jr nc,.nocarry1 inc h .nocarry1 ld a,[hl+] ld b,a ; get second offset ld hl,WindowTransitionLookupTable2 ld a,[WindowTransitionPos2] dec a ld [WindowTransitionPos2],a add d add l ld l,a jr nc,.nocarry2 inc h .nocarry2 ld a,[hl+] add b add e cp $c0 jr c,.noUnderflow ld a,7 .noUnderflow ; wait for HBlank ld e,a ldh a,[rSTAT] and 2 jr nz,@-4 ld a,e ld [c],a ldh a,[rLYC] inc a cp 144 jr c,.noOverflow xor a .noOverflow ldh [rLYC],a pop de pop bc pop hl pop af reti WindowTransitionLookupTable1: rept 4 db 0,1,2,2,3,4,4,5,6,6,7,7,7,8,8,8 db 8,8,8,8,7,7,7,6,6,5,4,4,3,2,2,1 db 0,-1,-2,-2,-3,-4,-4,-5,-6,-6,-7,-7,-7,-8,-8,-8 db -8,-8,-8,-8,-7,-7,-7,-6,-6,-5,-4,-4,-3,-2,-2,-1 endr WindowTransitionLookupTable2: rept 2 db 0,0,1,1,2,2,2,3,3,3,4,4,4,5,5,5 db 6,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8 db 8,8,8,8,8,8,8,8,7,7,7,7,7,6,6,6 db 6,5,5,5,4,4,4,3,3,3,2,2,2,1,1,0 db 0,0,-1,-1,-2,-2,-2,-3,-3,-3,-4,-4,-4,-5,-5,-5 db -6,-6,-6,-6,-7,-7,-7,-7,-7,-8,-8,-8,-8,-8,-8,-8 db -8,-8,-8,-8,-8,-8,-8,-8,-7,-7,-7,-7,-7,-6,-6,-6 db -6,-5,-5,-5,-4,-4,-4,-3,-3,-3,-2,-2,-2,-1,-1,0 endr Stat_Title: ; TODO: Fix this! push bc push de ldh a,[rLY] cp 48 jr z,.doGradient ld a,%10000111 ldh [rLCDC],a ld a,112 ldh [rLYC],a reti .doGradient ld hl,Pal_VineshroomDark ld a,[hl+] ld e,[hl] ld d,a call RGBG_ConvertColor24to15 ld b,a ld a,[Gradient_CurrentBlue] inc a ld [Gradient_CurrentBlue],a ld h,a ld a,b call RGBG_ConvertColor15to24 xor a call LoadBGColor ldh a,[rLYC] cp 142 jr nz,.done add 2 ldh [rLYC],a .done ld a,48 ldh [rLYC],a ld a,%11100111 ldh [rLCDC],a pop de pop bc pop hl pop af reti Stat_CharSelect: push bc push de ; get current scanline ldh a,[rLY] cp 0 jr z,.scrollCharSelText cp 15 jr z,.scrollPic ; cp 128 ; jr z,.doDitherEffect ; cp 130 ; jr z,.noscroll1 ; cp 142 ; jr nz,.done jr .done .doDitherEffect ld a,[CharSel_TitleTextScroll] ldh [rSCX],a ldh a,[rLY] add 2 ldh [rLYC],a .noscroll2 xor a ldh [rSCX],a ld a,0 ldh [rLYC],a jr .done .noscroll1 xor a ldh [rSCX],a ld a,142 ldh [rLYC],a jr .done .scrollCharSelText ld a,[CharSel_TitleTextScroll] inc a ld [CharSel_TitleTextScroll],a ldh [rSCX],a ld a,[DoExitCharSelect] and a call z,ProcessCharSelect ld a,15 ldh [rLYC],a jr .done .scrollPic ld a,[CharSel_PicScroll] ldh [rSCX],a ld a,128 ldh [rLYC],a .done pop de pop bc pop hl pop af reti ; ================================================================ ; Switching CPU speeds on the GBC ; written for RGBASM ; ================================================================ ; This is the code needed to switch the GBC ; speed from single to double speed or from ; double speed to single speed. ; ; Note: The 'nop' below is ONLY required if ; you are using RGBASM version 1.10c or earlier ; and older versions of the GBDK assembly ; language compiler. If you are not sure if ; you need it or not then leave it in. ; ; The real opcodes for 'stop' are $10,$00. ; Some older assemblers just compiled 'stop' ; to $10 hence the need for the extra byte $00. ; The opcode for 'nop' is $00 so no harm is ; done if an extra 'nop' is included ; *** Set single speed mode *** SingleSpeedMode: ld a,[rKEY1] rlca ; Is GBC already in single speed mode? ret nc ; yes, exit jr CPUToggleSpeed ; *** Set double speed mode *** DoubleSpeedMode: ld a,[rKEY1] rlca ; Is GBC already in double speed mode? ret c ; yes, exit CPUToggleSpeed: di ld hl,rIE ld a,[hl] push af xor a ld [hl],a ;disable interrupts ld [rIF],a ld a,$30 ld [rP1],a ld a,1 ld [rKEY1],a stop pop af ld [hl],a ei ret ; Sample playback system (must be called during timer interrupt!) ; Sample playback system. ; Make sure to set TMA to $00, set TAC to $06, and enable timer interrupt! DoSample: push af ld a,[SamplePlaying] and a jr nz,.doplay xor a ld [SampleVolume],a ld a,1 ld [sys_TimerIRQ],a pop af reti .doplay push de push hl ld hl,SampleSize ld a,[hl+] ld h,[hl] ld l,a ld d,h ld e,l ld hl,SamplePtr ld a,[hl+] ld h,[hl] ld l,a ld a,[SampleBank] ld [rROMB0],a ldh a,[rNR51] ld c,a and %10111011 ldh [rNR51],a ; prevents spike on GBA xor a ldh [rNR30],a ld a,[hl+] push af ldh [$ff30],a ld a,[hl+] ldh [$ff31],a ld a,[hl+] ldh [$ff32],a ld a,[hl+] ldh [$ff33],a ld a,[hl+] ldh [$ff34],a ld a,[hl+] ldh [$ff35],a ld a,[hl+] ldh [$ff36],a ld a,[hl+] ldh [$ff37],a ld a,[hl+] ldh [$ff38],a ld a,[hl+] ldh [$ff39],a ld a,[hl+] ldh [$ff3a],a ld a,[hl+] ldh [$ff3b],a ld a,[hl+] ldh [$ff3c],a ld a,[hl+] ldh [$ff3d],a ld a,[hl+] ldh [$ff3e],a ld a,[hl+] ldh [$ff3f],a ld a,%10000000 ldh [rNR30],a ld a,c ldh [rNR51],a ; if !def(DoubleSpeed) ; xor a ; else ld a,$80 ; endc ldh [rNR33],a ld a,$87 ldh [rNR34],a ; optimization by pigdevil2010 (was originally 16x dec de) ld a,e sub 16 ld e,a jr nc,.nocarry dec d .nocarry ld a,h cp $80 jr nz,.noreset ld a,[SampleBank] inc a ld [SampleBank],a ld a,$40 .noreset ld [SamplePtr+1],a ld a,l ld [SamplePtr],a ld a,d cp $ff jr nz,.noreset2 xor a ld [SamplePlaying],a ldh [rNR30],a .noreset2 ld a,d ld [SampleSize+1],a ld a,e ld [SampleSize],a pop af swap a and $f ld [SampleVolume],a ld a,1 ld [sys_TimerIRQ],a pop hl pop de pop af reti ; ================================================================ ; Sound test ; ================================================================ InitSoundTest: WaitForVBlank di xor a ldh [rLCDC],a CopyTileset1BPP DebugFont,0,97 ld hl,SoundTestMap call LoadMapText ld a,1 ld [rROMB0],a call DS_Stop call ClearAttribute ld hl,Pal_Grayscale xor a call LoadBGPalLine ld a,%10010001 ldh [rLCDC],a ld a,IEF_VBLANK;+IEF_TIMER ldh [rIE],a ei xor a ld hl,CursorPos ld [hl+],a ; CursorPos = 0 ld [hl+],a ; SoundTest_SongID = 0 ld [hl+],a ; SoundTest_SFXID = 0 ld [hl+],a ; SoundTest_SampleID = 0 SoundTestLoop: ld hl,rROMB0 WaitForVBlank ld [hl],1 ; load DevSound bank call DS_Play ld [hl],2 ; load FX Hammer bank call FXHammer_Update ; sample playback happens on timer interrupt push hl ld a,[CursorPos] and a jr z,.drawSongID dec a jr z,.drawSFXID dec a jr z,.drawSampleID .drawSongID ld hl,$9871 ld a,[SoundTest_SongID] ld b,a call DrawHex ClearLine 6 ld a,b cp (SoundTest_SongNames_End-SoundTest_SongNames)/2 jr nc,.blank ld hl,SoundTest_SongNames jr .doPrint .drawSFXID ld hl,$9891 ld a,[SoundTest_SFXID] ld b,a call DrawHex ClearLine 6 ld a,b cp (SoundTest_SFXNames_End-SoundTest_SFXNames)/2 jr nc,.blank ld hl,SoundTest_SFXNames jr .doPrint .drawSampleID ld hl,$98b1 ld a,[SoundTest_SampleID] ld b,a call DrawHex ClearLine 6 ld a,b cp (SoundTest_SampleNames_End-SoundTest_SampleNames)/2 jr nc,.blank ld hl,SoundTest_SampleNames jr .doPrint .blank ld hl,EmptyString jr .doPrintSkipPointer .doPrint call GetPointerFromTable .doPrintSkipPointer strpos 6 call PrintString .checkInput pop hl call CheckInput ld a,[sys_btnPress] bit btnA,a jr nz,.doPlay bit btnB,a jr nz,.doStop bit btnLeft,a jp nz,.dec bit btnRight,a jp nz,.inc bit btnUp,a jp nz,.cursorUp bit btnDown,a jp nz,.cursorDown bit btnStart,a jp z,SoundTestLoop .exitSoundTest jp ShowTitleScreen .doPlay ld a,[CursorPos] and a jr z,.playSong dec a jr z,.playSFX dec a jp nz,SoundTestLoop .playSample ld a,[SoundTest_SampleID] call PlaySample jp SoundTestLoop .playSFX ld [hl],2 ; load FX Hammer bank ld a,[SoundTest_SFXID] call FXHammer_Trig jp SoundTestLoop ; from here out SoundTestLoop is too far for jr to reach .playSong ld [hl],1 ; load DevSound bank ld a,[SoundTest_SongID] call DS_Init jp SoundTestLoop .doStop ld a,[CursorPos] and a jr z,.stopSong dec a jp nz,SoundTestLoop .stopSFX ld [hl],2 ; load FX Hammer bank call FXHammer_Stop jp SoundTestLoop .stopSong ld [hl],1 ; load DevSound bank call DS_Stop jp SoundTestLoop .inc ld a,[CursorPos] and a jr z,.incSong dec a jr z,.incSFX dec a jp nz,SoundTestLoop .incSample ld a,[SoundTest_SampleID] inc a ld [SoundTest_SampleID],a jp SoundTestLoop .incSFX ld a,[SoundTest_SFXID] inc a ld [SoundTest_SFXID],a jp SoundTestLoop .incSong ld a,[SoundTest_SongID] inc a ld [SoundTest_SongID],a jp SoundTestLoop .dec ld a,[CursorPos] and a jr z,.decSong dec a jr z,.decSFX dec a jp nz,SoundTestLoop .decSample ld a,[SoundTest_SampleID] dec a ld [SoundTest_SampleID],a jp SoundTestLoop .decSFX ld a,[SoundTest_SFXID] dec a ld [SoundTest_SFXID],a jp SoundTestLoop .decSong ld a,[SoundTest_SongID] dec a ld [SoundTest_SongID],a jp SoundTestLoop .cursorUp ld a," " call SoundTest_SetCursor ld a,[CursorPos] dec a cp $ff jr nz,.noUnderflow ld a,2 .noUnderflow ld [CursorPos],a ld a,">" call SoundTest_SetCursor jp SoundTestLoop .cursorDown ld a," " call SoundTest_SetCursor ld a,[CursorPos] inc a cp 3 jr nz,.noOverflow xor a .noOverflow ld [CursorPos],a ld a,">" call SoundTest_SetCursor jp SoundTestLoop SoundTestMap: ; #################### db " " db " - SOUND TEST - " db " " db "> MUSIC $00 " db " SFX $00 " db " SAMPLE $00 " db "(Song/sfx name here)" db " " db "Press Start to exit." db " " db " " db " " db " " db " " db " " db " " db " " db " " db " " ; #################### SoundTest_SetCursor: push hl sub $20 ld e,a ld a,[CursorPos] and a jr z,.pos0 dec a jr z,.pos1 dec a ret nz .pos2 ld hl,$98a0 jr .continue .pos1 ld hl,$9880 jr .continue .pos0 ld hl,$9860 .continue ldh a,[rSTAT] and 2 jr nz,.continue ld [hl],e pop hl ret SoundTest_SongNames: dw SoundTest_Track1 dw SoundTest_Track2 dw SoundTest_Track3 SoundTest_SongNames_End SoundTest_Track1 str "Main theme" SoundTest_Track2 str "Character select" SoundTest_Track3 str "You lose" SoundTest_SFXNames: dw SoundTest_SFX1 dw SoundTest_SFX2 dw SoundTest_SFX3 dw SoundTest_SFX4 dw SoundTest_SFX5 dw SoundTest_SFX6 dw SoundTest_SFX7 dw SoundTest_SFX8 dw SoundTest_SFX9 dw SoundTest_SFX10 dw SoundTest_SFX11 dw SoundTest_SFX12 dw SoundTest_SFX13 dw SoundTest_SFX14 dw SoundTest_SFX15 dw SoundTest_SFX16 SoundTest_SFXNames_End SoundTest_SFX1 str "Collectable 1" SoundTest_SFX2 str "Menu select" SoundTest_SFX3 str "Pause (old)" SoundTest_SFX4 str "Big thud" SoundTest_SFX5 str "Trill" SoundTest_SFX6 str "Pause" SoundTest_SFX7 str "Menu cursor" SoundTest_SFX8 str "Jump" SoundTest_SFX9 str "Menu back" SoundTest_SFX10 str "Spin" SoundTest_SFX11 str "Small thud" SoundTest_SFX12 str "Bounce" SoundTest_SFX13 str "Meow" SoundTest_SFX14 str "Bark" SoundTest_SFX15 str "Collectable 2" SoundTest_SFX16 str "Collectable 3" SoundTest_SampleNames: dw SoundTest_Sample1 dw SoundTest_Sample2 dw SoundTest_Sample3 dw SoundTest_Sample4 dw SoundTest_Sample5 SoundTest_SampleNames_End SoundTest_Sample1 str "Scoot the burbs" SoundTest_Sample2 str "Hell yeah" SoundTest_Sample3 str "EXTRA THICC" SoundTest_Sample4 str "You're too slow!" SoundTest_Sample5 str "BEE SEVUNTEEN BAWMER" ; ================================================================ ; Error handler ; ================================================================ include "ErrorHandler.asm" ; ================================================================ ; Misc routines and data ; ================================================================ ClearAttribute: ld a,1 ldh [rVBK],a ld hl,$9800 ld bc,$800 .loop xor a ld [hl+],a dec bc ld a,b or c jr nz,.loop xor a ldh [rVBK],a ret include "DecompressionRoutines.asm" PlaySample: ld hl,SampleTable add a ld b,0 ld c,a add hl,bc ld a,[hl+] ld h,[hl] ld l,a ld a,[hl+] ldh [SamplePtr],a ld a,[hl+] ldh [SamplePtr+1],a ld a,[hl+] ldh [SampleSize],a ld a,[hl+] ldh [SampleSize+1],a ld a,[hl+] ldh [SampleBank],a ld a,1 ldh [SamplePlaying],a ret SampleTable: dw .vinnysel dw .joelsel dw .thiccsel dw .sonicsel dw .b17bomber .vinnysel Sample Sample_VinnySelect, Sample_VinnySelect_End-Sample_VinnySelect, Bank(Sample_VinnySelect) .joelsel Sample Sample_JoelSelect, Sample_JoelSelect_End-Sample_JoelSelect, Bank(Sample_JoelSelect) .thiccsel Sample Sample_ThiccSelect, Sample_ThiccSelect_End-Sample_ThiccSelect, Bank(Sample_ThiccSelect) .sonicsel Sample Sample_SonicSelect, Sample_SonicSelect_End-Sample_SonicSelect, Bank(Sample_SonicSelect) .b17bomber Sample Sample_B17BomberA, (Sample_B17Bomber_End-Sample_B17BomberB)+$4000,Bank(Sample_B17BomberA) ; sample too big for one bank lel ; ===================== ; Error message routine ; ===================== ShowError: push af ld a,1 ld [rROMB0],a call DS_Stop .wait ldh a,[rLY] cp $90 jr nz,.wait xor a ldh [rLCDC],a ; disable LCD di ;call ClearVRAM CopyTileset1BPP DebugFont,0,97 pop af ld hl,ErrorMessageTable add a add l ld l,a jr nc,.nocarry inc h .nocarry ld a,[hl+] ld h,[hl] ld l,a strpos 0 call PrintString ld a,IEF_VBLANK ldh [rIE],a xor a ldh [rSCX],a ldh [rSCY],a ldh [rWX],a ldh [rWY],a ld a,%10010001 ldh [rLCDC],a ei .loop halt jr .loop PrintString: .loop ; wait for VRAM accessibility ldh a,[rSTAT] and 2 jr nz,.loop ld a,[hl+] ; get char and a ; is it zero? ret z ; if yes, return sub 32 ; subtract 32 for printing ld [de],a ; copy char to VRAM inc de ; increment dest pointer jr .loop ; loop ErrorMessageTable: dw .unknown dw .invalidCharID dw .spriteOver dw .frameOver dw .destOutsideROM .unknown str "Unknown error" .invalidCharID str "Invalid character ID" .spriteOver str "Too many sprites!" .frameOver str "Frame time exceeded" .destOutsideROM str "JP dest. outside ROM" ; ================================================================ ; Graphics data ; ================================================================ DebugFont: incbin "Font.bin" ; 1bpp font data DebugFont_End VinesauceTextTiles: incbin "GFX/VinesauceTextTiles.bin" VinesauceTextTiles_End VinesauceTextMap: incbin "GFX/VinesauceTextMap.bin" VineshroomTiles: incbin "GFX/Vineshroom.bin" DevSoftTiles: incbin "GFX/DevSoftTiles.rnc" ; 2bpp tile data (RNC compressed) DevSoftTiles_End DevSoftMap: incbin "GFX/DevSoftMap.bin" ; tilemap BlankTiles: incbin "GFX/BlankTiles.bin" BlankTiles_End ; GBC palettes Pal_White: dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff dw $7fff,$7fff,$7fff,$7fff Pal_Grayscale: dw $7fff,$6e94,$354a,$0000 Pal_Vinesauce: dw $7fff,$6e94,$354a,$1cc6 Pal_Vineshroom: dw $7c1f,$7fff,$2778,$4680 Pal_VineshroomDark: Color 0,0,0 ; bg color Color 15,15,15 ; white Color 12,13,4 ; light shade Color 0,10,8 ; dark shade Pal_CharSelectMain: dw $7fff,$7e9c,$554a,$2c84 CharSelectTiles: incbin "GFX/CharSelectTiles.bin" CharSelectTiles_End CharSelectMap: incbin "GFX/CharSelectMap.bin" TitleMap: ; placeholder for now ; #################### db " " db "- SCOOT THE BURBS - " db "Pre-alpha build v0.1" db " " db " PLACEHOLDER TITLE! " db " PRESS START. " ; #################### ; ================================================================ ; Character select pics ; ================================================================ Pic_Dummy: include "Pics/Dummy.pic" ; ================================================================ ; Misc data ; ================================================================ EmptyString: str " " ; ================================================================ ; GBS Header ; ================================================================ if def(GBS) include "gbs.asm" endc ; ================================================================ ; Other data banks ; ================================================================ include "FXHammer.asm" ; SFX include "DevSound.asm" ; music ; ================================================================ ; Sample banks ; ================================================================ section "Sample bank 1",romx,bank[3] Sample_VinnySelect: incbin "Samples/CharSel_Vinny.aud" Sample_VinnySelect_End section "Sample bank 2",romx,bank[4] Sample_JoelSelect: incbin "Samples/CharSel_Joel.aud" Sample_JoelSelect_End section "Sample bank 3",romx,bank[5] Sample_ThiccSelect: incbin "Samples/CharSel_HeThicc.aud" Sample_ThiccSelect_End section "Sample bank 4",romx,bank[6] Sample_SonicSelect: incbin "Samples/CharSel_Sonic.aud" Sample_SonicSelect_End section "Sample bank 5",romx,bank[7] Sample_B17BomberA: incbin "Samples/B17BomberA.aud" section "Sample bank 6",romx,bank[8] Sample_B17BomberB: incbin "Samples/B17BomberB.aud" Sample_B17Bomber_End
17.463641
141
0.618475
769331641eaaeadef967778bf552224bfb26a931
5,395
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1233.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1233.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1233.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xefcf, %rsi lea addresses_UC_ht+0xd63f, %rdi xor %r14, %r14 mov $89, %rcx rep movsw nop nop nop inc %r12 lea addresses_D_ht+0x368f, %rsi lea addresses_D_ht+0xdc2f, %rdi nop nop nop add %rdx, %rdx mov $32, %rcx rep movsb nop nop nop inc %r14 lea addresses_UC_ht+0x38cf, %rdi nop nop nop and %r10, %r10 mov (%rdi), %esi nop nop nop nop xor $18709, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %r8 push %r9 push %rbx push %rdx // Store lea addresses_normal+0x126f, %r9 nop nop nop and $36548, %r11 movw $0x5152, (%r9) add $12463, %r8 // Store mov $0x6fd4a00000000c8f, %r11 nop nop inc %r13 movb $0x51, (%r11) nop nop nop cmp $43719, %r11 // Store lea addresses_WC+0x1ec8f, %rdx nop nop nop nop xor %r15, %r15 movb $0x51, (%rdx) nop nop nop nop sub $45850, %r8 // Faulty Load mov $0x35fba0000000048f, %r11 nop and $14632, %r15 vmovups (%r11), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rbx lea oracles, %r9 and $0xff, %rbx shlq $12, %rbx mov (%r9,%rbx,1), %rbx pop %rdx pop %rbx pop %r9 pop %r8 pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 10}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}, 'dst': {'same': True, 'type': 'addresses_D_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 6}} {'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 */
41.183206
2,999
0.657646
bf618653b1c4319ff5dac3fabfd16cc389a8ce22
4,848
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_114.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_114.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_114.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r8 push %rax push %rbp push %rbx push %rdi push %rdx lea addresses_normal_ht+0x1aab, %rax nop nop nop nop cmp $44847, %r8 mov (%rax), %rdi cmp %rbx, %rbx lea addresses_WT_ht+0x1089f, %r11 nop add %rdx, %rdx mov (%r11), %ebp nop and %rbp, %rbp lea addresses_normal_ht+0xbd61, %r11 nop xor %rdx, %rdx movups (%r11), %xmm2 vpextrq $1, %xmm2, %rbx nop and %rbp, %rbp pop %rdx pop %rdi pop %rbx pop %rbp pop %rax pop %r8 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r8 push %rbp push %rcx push %rdi // Store lea addresses_UC+0x14e9f, %rdi nop nop nop nop and $15118, %r12 movl $0x51525354, (%rdi) cmp $48978, %r8 // Faulty Load lea addresses_normal+0x369f, %r13 nop nop nop sub $32972, %rbp vmovups (%r13), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r14 lea oracles, %rdi and $0xff, %r14 shlq $12, %r14 mov (%rdi,%r14,1), %r14 pop %rdi pop %rcx pop %rbp pop %r8 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 11}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 2}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 0}} {'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 */
50.5
2,999
0.659447
8e5d7b8fcfdaaaeec2395cf0602138a85e00a943
14,022
asm
Assembly
src/spread/wdef/main.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/wdef/main.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/wdef/main.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
* Spreadsheet 29/11-91 * - main window layout * include win1_mac_menu_long include win1_keys_colour include win1_keys_wman include win1_keys_wwork include win1_keys_wstatus include win1_keys_wdef_long include win1_spread_keys xref.s met.flag white equ 7 red equ 2 green equ 4 black equ 0 ico.xsiz equ 23 ico.ysiz equ 23 ;16 section menu window main ; main window defintion size mw_mxs,mw_mys ; window size origin 66,78 ; pointer position wattr 3 \ shadow width 1,c.mbord \ border width and colour c.mback ; paper colour sprite 0 border 1,c.mhigh iattr c.mpunav,c.miunav,0,0 ; unavailable iattr c.mpavbl,c.miavbl,0,0 ; available iattr c.mpslct,c.mislct,0,0 ; selected help 0 ; no help window defintion size_opt a ; layout now internal size mw_mxs,mw_mys,4,4 ; minimum size, scalable info main loos main appn mawl s_end * * information window list i_wlst main ; start of info window list * information window #0 flag background i_windw ; Job flag window size 130,14,4,0 ; x-scalable origin mw_fxp,0 ; at fixed position wattr 0,0,0 \ no border c.mfill olst 0 ; no objects * information window #1 flag name i_windw ; Job flag name window size met.flag+met.flag+4,11 origin mw_fxp+130/2-met.flag,2,2,0 ; this is rel. to flag background wattr 0,0,0 \ no border c.tback olst flag * information window #2 filename i_windw ; filename window size 41*6+2,10 origin 200,2,4,0 wattr 0,0,0 \ no border c.iback olst file * information window #3 Zzz divider i_windw size 2,14 origin mw_mxs-6-(mw_lxs+4),1,4,0 ; just left of the Zzz wattr 0,0,0 \ no border c.iback olst 0 * information window #4 border for command items i_windw size mw_mxs-8,12,4,0 origin 4,14 wattr 0 \ no shadow 1,c.ibord \ border c.iback olst fkey * information window #5 border for data entry items * please don't change the number !! (main_setup_asm) i_windw size mw_mxs-8,12,4,0 origin 4,46 wattr 0 \ no shadow 1,c.ibord \ border c.iback olst data * information window #6 window for indices * please don't change the number !! (main_setup_asm) i_windw size mw_mxs-8,mw_mys-69,4,4 ;-62 completely scalable origin 4,66 ;59 wattr 0 \ no shadow 1,c.ibord \ border c.mipap ; we need white paper olst 0 * information window #7 window after again * please don't change the number !! (main_setup_asm) i_windw size 2,18,0,0 ; not scalable origin 6*24+4,27 wattr 0 \ no shadow 0,c.ibord \ border c.iback ; paper olst 0 * information window #8 window after scrap * please don't change the number !! (main_setup_asm) i_windw size 2,18,0,0 ; not scalable origin 12*24+8,27 wattr 0 \ no shadow 0,c.ibord \ border c.iback ; paper olst 0 * information window #9 window after optimal Column with * please don't change the number !! (main_setup_asm) i_windw size 2,18,0,0 ; not scalable origin 17*24+12,27 wattr 0 \ no shadow 0,c.ibord \ border c.iback ; paper olst 0 i_end ; end of info window list * * information object list * for information window #1 (flag) i_olst flag i_item size met.flag+met.flag,10 origin 1,1 type text ink c.tink csize 0,0 text flag i_end * for information window #2 (filename) i_olst file i_item size 41*6+2,10 origin 0,0 type text ink c.iink csize 0,0 text nona ; no name for a start i_end * for border around command items and fkeys i_olst fkey i_item size 12,10 origin 2,2 type sprite spare spare spare spare dc.w 0 sprite f2 i_item size 12,10 origin 2+(mw_cxs+16),2 type sprite spare spare spare spare dc.w 0 sprite f3 i_item size 12,10 origin 2+2*(mw_cxs+16),2 type sprite spare spare spare spare dc.w 0 sprite f4 i_item size 12,10 origin 2+3*(mw_cxs+16),2 type sprite spare spare spare spare dc.w 0 sprite f5 i_item size 12,10 origin 2+4*(mw_cxs+16)+4,2 type sprite spare spare spare spare dc.w 0 sprite f6 i_item size 12,10 origin 5*(mw_cxs+16)-4,2 type sprite spare spare spare spare dc.w 0 sprite f8 i_item size 14,10 origin mw_mxs-24-12*6,2,4,0 type sprite spare spare spare spare dc.w 0 sprite f10 i_end * for border around data entry item i_olst data i_item size 26,10 origin 2,2 type sprite spare spare spare spare dc.w 0 sprite tab i_end * * loose item list l_ilst main ; start of loose items l_item move,0 ; window move item size mw_lxs,mw_lys ; standard size origin 4,2 ; top left hand corner justify 0,0 ; centred both directions type sprite selkey move sprite move item mli.move action move ;------------------------------ l_item size,1 ; window resize item size mw_lxs,mw_lys origin 4+(mw_lxs+4),2 ; just right of move justify 0,0 type sprite selkey size sprite size item mli.size action size ;------------------------------ l_item slep,2 ; sleep job item size mw_lxs,mw_lys origin mw_mxs-4-mw_lxs,2,4,0 ; top right hand side justify 0,0 type sprite selkey slep sprite slep item mli.slep action slep ;------------------------------ l_item cfil,3 ; F2 = File size mw_cxs,mw_lys origin 16,15 justify 1,0 ; left centred type text selkey cfil text cfil item mli.cfil action cfil ;------------------------------ l_item cgrd,4 ; F3 = Grid size mw_cxs+2,mw_lys origin 16+1*(mw_cxs+16),15 justify 1,0 ; left centred type text selkey cgrd text cgrd item mli.cgrd action cgrd ;------------------------------ l_item ccel,5 ; F4 = Cell size mw_cxs,mw_lys origin 16+2*(mw_cxs+16),15 justify 1,0 ; left centred type text selkey ccel text ccel item mli.ccel action ccel ;------------------------------ l_item cstt,6 ; F5 = Status size mw_cxs+4,mw_lys ; it's a bit bigger origin 16+3*(mw_cxs+16),15 justify 1,0 ; left centred type text selkey cstt text cstt item mli.cstt action cstt l_item csmc,7 ; F6 = Macros size mw_cxs-10,mw_lys ; origin 16+4*(mw_cxs+16)+4,15 justify 1,0 ; left centred type text selkey csmc text csmc item mli.csmc action csmc ;------------------------------ * please don't change the number !! (main_setup_asm) l_item goto,8 ; F10 = Goto Cell/Select section size 12*6,10 origin mw_mxs-6-12*6,15,4,0 justify -1,0 type text selkey goto text 0 item mli.goto action goto ;------------------------------ * please don't change the number !! (main_setup_asm) l_item data,9 ; TAB = data/formular entry size mw_mxs-26-50,10,4,0 ; please don't change the number !! origin 24,53 ;47 justify 1,0 type text selkey data text 0 item mli.data action newd * please don't change the number !! (main_setup_asm) l_item ; SHIFT TAB = DO on data/formula entry size mw_mxs-26-50,10,4,0 ; please don't change the number !! origin 24,47 justify 1,0 type text selkey datado text 0 item mli.data action newddo ;------------------------------ * please don't change the number !! (main_setup_asm) l_item csim,11 ; # = immediate mode size 12,10 origin mw_mxs-18,47,4,0 justify 0,0 type text selkey csim text csim item mli.csim action csim l_item call,12 ; F8=all cells size 4*6,10 origin 4+5*(mw_cxs+16)+6,15 justify 0,0 type text selkey call text call item mli.call action 0 * please don't change the number !! (main_setup_asm) l_item csum,13 ; + = summarise mode size 12,10 origin mw_mxs-32,47,4,0 justify 0,0 type sprite selkey csum sprite csum item mli.csum action csum * please don't change the number !! (main_setup_asm) l_item date,14 ; Date size 16,10 origin mw_mxs-50,47,4,0 justify 0,0 type sprite selkey 0 sprite date item mli.date action csdt l_item quit,15 size 2,1 origin 0,0 justify 0,0 type text selkey norm text 0 item mli.quit action quit l_item chlp,16 size ico.xsiz,ico.ysiz ; Jochen's HELP origin 0*25+4,28 justify 0,0 type sprite selkey chlp sprite help item mli.chlp action toolhelp l_item toolload,17 size ico.xsiz,ico.ysiz ; Jochen's LOAD origin 1*25+4,28 justify 0,0 type sprite selkey ctll sprite load item mli.toolload action toolload l_item toolsave,18 size ico.xsiz,ico.ysiz ; Jochen's SAVE origin 2*25+4,28 justify 0,0 type sprite selkey ctlv sprite save item mli.toolsave action toolsave l_item toolprin,19 size ico.xsiz,ico.ysiz ; Jochen's PRINT origin 3*25+4,28 justify 0,0 type sprite selkey ctlp sprite print item mli.toolprin action toolprint l_item toolfind,20 size ico.xsiz,ico.ysiz ; Jochen's FIND origin 4*25+4,28 justify 0,0 type sprite selkey ctls sprite find item mli.toolfind action find l_item caga,21 size ico.xsiz,ico.ysiz ; Jochen's AGAIN origin 5*25+4,28 justify 0,0 type sprite selkey 0 sprite cfind item mli.caga action caga l_item toolcellecho,22 size ico.xsiz,ico.ysiz ; Jochen's CellEcho origin 6*25+4,28 justify 0,0 type sprite selkey ctlz sprite cellecho item mli.toolcellecho action toolcellecho l_item toolcellcopy,23 size ico.xsiz,ico.ysiz ; Jochen's CellCopy origin 7*25+4,28 justify 0,0 type sprite selkey ctly sprite cellcopy item mli.toolcellcopy action toolcellcopy l_item toolcellmove,24 size ico.xsiz,ico.ysiz ; Jochen's CellMove origin 8*25+4,28 justify 0,0 type sprite selkey 0 sprite cellmove item mli.toolcellmove action toolcellmove l_item toolcelldel,25 size ico.xsiz,ico.ysiz ; Jochen's CellDelete origin 9*25+4,28 justify 0,0 type sprite selkey 0 sprite celldel item mli.toolcelldel action toolcelldel l_item toolcellprot,26 size ico.xsiz,ico.ysiz ; Jochen's CellProtect origin 10*25+4,28 justify 0,0 type sprite selkey 0 sprite cellprot item mli.toolcellprot action toolcellprot l_item toolscrap,27 size ico.xsiz,ico.ysiz ; Jochen's Scrap origin 11*25+4,28 justify 0,0 type sprite selkey 0 sprite scrap item mli.toolscrap action toolscrap l_item tooldigit,28 size ico.xsiz,ico.ysiz ; Jochen's Digit origin 12*25+4,28 justify 0,0 type sprite selkey 0 sprite digit item mli.tooldigit action digit l_item toolmoney,29 size ico.xsiz,ico.ysiz ; Jochen's Money origin 13*25+4,28 justify 0,0 type sprite selkey 0 sprite money item mli.toolmoney action money l_item tooljustlf,30 size ico.xsiz,ico.ysiz ; Jochen's Justify Left origin 14*25+4,28 justify 0,1 type sprite selkey 0 sprite justlf item mli.tooljustlf action tooljustlf l_item tooljustrg,31 size ico.xsiz,ico.ysiz ; Jochen's Justify Right origin 15*25+4,28 justify 0,1 type sprite selkey 0 sprite justrg item mli.tooljustrg action tooljustrg l_item tooloptcol,32 size ico.xsiz,ico.ysiz ; Jochen's Optimal Column with origin 16*25+4,28 justify 0,1 type sprite selkey 0 sprite optcol item mli.tooloptcol action gwith l_item toolcalc,33 size ico.xsiz,ico.ysiz ; Jochen's Recalculation origin mw_mxs-4-23,28,4,0 ; right hand side justify 0,0 type sprite selkey ctlr sprite calc item mli.toolcalc action toolcalc l_item password,34 size mw_lxs,mw_lys ; standard size origin 180,2,4,0 justify 0,0 type sprite selkey 0 sprite padlock item mli.password action password l_end ; end of loose item list * * Application sub-window list a_wlst mawl a_windw grid ; just one subwindowl a_end * Application sub-window defintion for grid window a_wdef grid ; grid application sub-window size mw_mxs-8-ww.scbar-2 \ less the index offsets mw_mys-69-ww.pnbar-1 \ 4,4 ; completely scalable origin 4,66 wattr 0 \ no shadow 1,c.wbord \ c.wback sprite 0 setr grid ; setup routine draw grid ; no draw routine action grid ; no action routine at the moment ctrl grid ; control routine ctrlmax 3,3 ; x,y sections selkey grid spare a_ctrl x ; setup control block ibar 0,0 ; spacing setup during runtime border 0,0 iattr c.mipap \ index background c.miink,0,0 ; ..and ink arrow c.wrrow bar c.wbarb,c.wbars a_ctrl y ; setup control block ibar 0,0 ; spacing setup during runtime border 0,0 iattr c.mipap \ index background c.miink,0,0 ; ..and ink arrow c.wrrow bar c.wbarb,c.wbars a_menu border 1,c.whigh iattr c.wpunav,c.wiunav,0,0 ; unavailable iattr c.wpavbl,c.wiavbl,0,0 ; available iattr c.wpslct,c.wislct,0,0 ; selected mensiz 0,0 soffset 2*2+ww.pnarr,2+ww.scarr slst 0,0 ilst 0 ilst 0 rlst 0 a_obje last * * Define symbols and work area size in COMMON setwrk c end
19.945946
72
0.618457
7fb65a6aeb98575a45b00da4cdc7d253be7d4269
338
asm
Assembly
programs/oeis/204/A204694.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/204/A204694.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/204/A204694.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A204694: a(n) = n^n (mod 8). ; 1,1,4,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0,7,0,1,0,3,0,5,0 mov $1,1 mov $2,$0 lpb $0 sub $0,1 mul $1,$2 mod $1,8 lpe add $1,5 mov $2,$0 sub $2,1 mov $3,$2 pow $3,2 sub $1,$3 sub $1,4
18.777778
175
0.5
a3478b3bf824891d43cf8fb703a33147523a78c1
806
asm
Assembly
src/test/ref/assignment-chained.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/assignment-chained.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/assignment-chained.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Tests that chained assignments work as intended // Commodore 64 PRG executable file .file [name="assignment-chained.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .segment Code main: { .label screen = $400 // screen[0] = a = 'c' lda #'c' sta screen // screen[40] = a sta screen+$28 // screen[1] = 'm' lda #'m' sta screen+1 // a = screen[1] = 'm' // screen[41] = a sta screen+$29 // screen[2] = 1 + (a = 'l') lda #1+'l' sta screen+2 // screen[42] = a // Chained assignment with a modification of the result lda #'l' sta screen+$2a // } rts }
23.705882
69
0.593052
45f2dc8e15a61319e90a0de5bb3b61f999df98da
540
asm
Assembly
oeis/016/A016798.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/016/A016798.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/016/A016798.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A016798: (3n+2)^10. ; 1024,9765625,1073741824,25937424601,289254654976,2015993900449,10240000000000,41426511213649,141167095653376,420707233300201,1125899906842624,2758547353515625,6278211847988224,13422659310152401,27197360938418176,52599132235830049,97656250000000000,174887470365513049,303305489096114176,511116753300641401,839299365868340224,1346274334462890625,2113922820157210624,3255243551009881201,4923990397355877376,7326680472586200649,10737418240000000000,15516041187205853449,22130157888803070976 mul $0,3 add $0,2 pow $0,10
77.142857
488
0.9
3690d63ddeb4c7f7f33900578e7c9c88fce584c8
5,295
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_1067.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_1067.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i3-7100_9_0xca_notsx.log_21829_1067.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x11599, %rsi lea addresses_UC_ht+0x1baf9, %rdi nop nop cmp $64117, %r12 mov $91, %rcx rep movsw nop nop nop nop dec %rsi lea addresses_normal_ht+0x149f9, %r9 nop nop nop nop nop xor $21211, %rsi mov $0x6162636465666768, %r8 movq %r8, %xmm1 movups %xmm1, (%r9) nop nop nop nop sub %rsi, %rsi pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi // Store lea addresses_UC+0x5b59, %rcx nop nop nop nop nop add $10069, %r10 mov $0x5152535455565758, %r14 movq %r14, (%rcx) nop nop and %r11, %r11 // REPMOV lea addresses_PSE+0x1ff59, %rsi lea addresses_WT+0x1f359, %rdi nop nop nop xor $29596, %r14 mov $47, %rcx rep movsl nop nop nop nop cmp $33948, %rax // Store mov $0x559, %r11 nop nop nop xor $25563, %rdx movl $0x51525354, (%r11) nop nop nop nop dec %rax // Faulty Load lea addresses_WT+0x1f359, %r10 nop nop nop sub %r11, %r11 vmovups (%r10), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %rcx lea oracles, %r11 and $0xff, %rcx shlq $12, %rcx mov (%r11,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_PSE', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT', 'congruent': 0, 'same': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_P', 'size': 4, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
39.222222
2,999
0.661001
6718b5bf09d06d076aac9646e07792941e3df3a9
651
asm
Assembly
oeis/037/A037604.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/037/A037604.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/037/A037604.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A037604: Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,3. ; 1,6,27,109,438,1755,7021,28086,112347,449389,1797558,7190235,28760941,115043766,460175067,1840700269,7362801078,29451204315,117804817261,471219269046,1884877076187,7539508304749,30158033218998,120632132875995,482528531503981,1930114126015926,7720456504063707,30881826016254829,123527304065019318,494109216260077275,1976436865040309101,7905747460161236406,31622989840644945627,126491959362579782509,505967837450319130038,2023871349801276520155,8095485399205106080621,32381941596820424322486 mov $1,4 pow $1,$0 mul $1,12 div $1,7 mov $0,$1
72.333333
491
0.861751
933a7ea5fd65c50fe779c500643bd61d5092d467
166
asm
Assembly
libsrc/target/laser500/graphics/pointxy_MODE2.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/target/laser500/graphics/pointxy_MODE2.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/target/laser500/graphics/pointxy_MODE2.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
SECTION code_clib PUBLIC pointxy_MODE2 .pointxy_MODE2 defc NEEDpoint = 1 INCLUDE "target/laser500/graphics/w_pixel_MODE2.asm"
16.6
60
0.644578
73ed52ab0fd51afcb5b73bc40d6d065ae352d00a
306
asm
Assembly
libsrc/_DEVELOPMENT/l/sdcc/__mulint.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/l/sdcc/__mulint.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/l/sdcc/__mulint.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_l_sdcc PUBLIC __mulint EXTERN l_mulu_16_16x16 __mulint: ; 16-bit multiplication, LSW 16-bit result ; ; enter : stack = multiplicand, multiplicand, ret ; ; exit : hl = product pop af pop hl pop de push de push hl push af jp l_mulu_16_16x16
12.24
52
0.633987
caeb69d409af30a8cde5320f90cc93b3d6ab0354
6,710
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1154.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1154.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1154.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1d6b1, %rcx nop nop nop sub %rbp, %rbp vmovups (%rcx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r14 nop nop nop nop nop add %rbx, %rbx lea addresses_A_ht+0x96b1, %rsi lea addresses_WT_ht+0x11e71, %rdi xor %rbx, %rbx mov $46, %rcx rep movsw nop nop nop nop xor $16454, %r14 lea addresses_WT_ht+0x64b1, %rsi lea addresses_WC_ht+0x11e91, %rdi nop nop nop nop nop cmp %r8, %r8 mov $82, %rcx rep movsq nop nop inc %rbx lea addresses_WC_ht+0x1eb1, %r14 clflush (%r14) nop xor %rcx, %rcx movb $0x61, (%r14) xor $27069, %rcx lea addresses_UC_ht+0x1aeb1, %rsi lea addresses_A_ht+0x4ab1, %rdi nop nop nop nop nop xor %rbp, %rbp mov $14, %rcx rep movsl nop nop cmp $22928, %rdi lea addresses_WC_ht+0x7eb1, %rbp sub $64437, %rdi mov (%rbp), %r14d nop nop sub $13174, %r14 lea addresses_UC_ht+0x16151, %r8 clflush (%r8) nop nop nop inc %rsi movl $0x61626364, (%r8) and $4798, %r14 lea addresses_A_ht+0x1afb1, %rsi lea addresses_D_ht+0xd371, %rdi clflush (%rsi) nop nop nop nop xor %r8, %r8 mov $11, %rcx rep movsw nop add %rcx, %rcx lea addresses_D_ht+0x1a74f, %rsi lea addresses_WC_ht+0x4eb1, %rdi and $27424, %rax mov $16, %rcx rep movsb sub $46305, %r14 lea addresses_D_ht+0x14851, %rdi nop nop xor $27272, %r8 mov (%rdi), %esi nop nop nop inc %rdi lea addresses_D_ht+0x17eb1, %rcx clflush (%rcx) nop nop nop dec %rbx movb (%rcx), %r8b nop nop nop sub $25451, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %r9 push %rax push %rcx // Faulty Load lea addresses_PSE+0x126b1, %r9 add %r12, %r12 movb (%r9), %r8b lea oracles, %r9 and $0xff, %r8 shlq $12, %r8 mov (%r9,%r8,1), %r8 pop %rcx pop %rax pop %r9 pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': True, 'type': 'addresses_A_ht', 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
38.342857
2,999
0.657079
c5356162604fce7b3db282a57c19273bd8ded1c2
421
asm
Assembly
tests/issue115/3.asm
Emmett81/customasm
cd58621d56b56820cb6d473706f402a4ff607337
[ "Apache-2.0" ]
null
null
null
tests/issue115/3.asm
Emmett81/customasm
cd58621d56b56820cb6d473706f402a4ff607337
[ "Apache-2.0" ]
null
null
null
tests/issue115/3.asm
Emmett81/customasm
cd58621d56b56820cb6d473706f402a4ff607337
[ "Apache-2.0" ]
null
null
null
#ruledef { emit {x: u8} => x test => asm { label: emit $ label2: emit $ emit label emit label2 emit $ } nested_test => asm { label: emit $ label2: emit $ emit label emit label2 emit $ test } } test ; = 0x00_01_00_01_04 nested_test ; = 0x05_06_05_06_09_0a_0b_0a_0b_0e
14.517241
47
0.441805
8480e7ca6b2004264191b2cf3d00ce7ad30bbef8
29
asm
Assembly
test/testdata_vm/017 notation_decimal_pound_sign.asm
onlyafly/oakblue
377c22f499526750b4b6adb54f54923ae8bded12
[ "MIT" ]
null
null
null
test/testdata_vm/017 notation_decimal_pound_sign.asm
onlyafly/oakblue
377c22f499526750b4b6adb54f54923ae8bded12
[ "MIT" ]
null
null
null
test/testdata_vm/017 notation_decimal_pound_sign.asm
onlyafly/oakblue
377c22f499526750b4b6adb54f54923ae8bded12
[ "MIT" ]
null
null
null
.ORIG x3000 ADD R0 R0 #2 HALT
9.666667
12
0.724138
0304809abc3af2fd102f40165d6bb3cf753d5218
1,385
asm
Assembly
programs/oeis/113/A113876.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/113/A113876.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/113/A113876.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A113876: a(n) = a(n-1) + 2^(k(n)), where k(n) is the n-th term of the sequence formed by k(1)=0 together with the numbers A042964. ; 1,5,13,77,205,1229,3277,19661,52429,314573,838861,5033165,13421773,80530637,214748365,1288490189,3435973837,20615843021,54975581389,329853488333,879609302221,5277655813325,14073748835533,84442493013197,225179981368525,1351079888211149,3602879701896397,21617278211378381,57646075230342349,345876451382054093,922337203685477581,5534023222112865485,14757395258967641293,88544371553805847757,236118324143482260685,1416709944860893564109,3777893186295716170957,22667359117774297025741,60446290980731458735309,362677745884388752411853,967140655691703339764941,5802843934150220038589645,15474250491067253436239053,92845502946403520617434317,247588007857076054979824845,1485528047142456329878949069,3961408125713216879677197517,23768448754279301278063185101,63382530011411470074835160269,380295180068468820449010961613,1014120480182583521197362564301,6084722881095501127184175385805,16225927682921336339157801028813,97355566097528018034946806172877,259614842926741381426524816461005,1557689057560448288559148898766029,4153837486827862102824397063376077,24923024920967172616946382380256461,66461399789245793645190353014017229,398768398735474761871142118084103373 mov $1,4 pow $1,$0 mov $2,$0 mod $2,2 add $2,2 mul $1,$2 div $1,10 mul $1,4 add $1,1 mov $0,$1
98.928571
1,155
0.889531
5b1910bcf1222454828509dc0511fd8923a84ed5
2,739
asm
Assembly
programs/oeis/008/A008859.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/008/A008859.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/008/A008859.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A008859: a(n) = Sum_{k=0..6} C(n,k). ; 1,2,4,8,16,32,64,127,247,466,848,1486,2510,4096,6476,9949,14893,21778,31180,43796,60460,82160,110056,145499,190051,245506,313912,397594,499178,621616,768212,942649,1149017,1391842,1676116,2007328,2391496,2835200,3345616,3930551,4598479,5358578,6220768,7195750,8295046,9531040,10917020,12467221,14196869,16122226,18260636,20630572,23251684,26144848,29332216,32837267,36684859,40901282,45514312,50553266,56049058,62034256,68543140,75611761,83278001,91581634,100564388,110270008,120744320,132035296,144193120,157270255,171321511,186404114,202577776,219904766,238449982,258281024,279468268,302084941,326207197,351914194,379288172,408414532,439381916,472282288,507211016,544266955,583552531,625173826,669240664,715866698,765169498,817270640,872295796,930374825,991641865,1056235426,1124298484,1195978576,1271427896,1350803392,1434266864,1521985063,1614129791,1710878002,1812411904,1918919062,2030592502,2147630816,2270238268,2398624901,2533006645,2673605426,2820649276,2974372444,3135015508,3302825488,3478055960,3660967171,3851826155,4050906850,4258490216,4474864354,4700324626,4935173776,5179722052,5434287329,5699195233,5974779266,6261380932,6559349864,6869043952,7190829472,7525081216,7872182623,8232525911,8606512210,8994551696,9397063726,9814476974,10247229568,10695769228,11160553405,11642049421,12140734610,12657096460,13191632756,13744851724,14317272176,14909423656,15521846587,16155092419,16809723778,17486314616,18185450362,18907728074,19653756592,20424156692,21219561241,22040615353,22887976546,23762314900,24664313216,25594667176,26554085504,27543290128,28563016343,29614012975,30697042546,31812881440,32962320070,34146163046,35365229344,36620352476,37912380661,39242176997,40610619634,42018601948,43467032716,44956836292,46488952784,48064338232,49683964787,51348820891,53059911458,54818258056,56624899090,58480889986,60387303376,62345229284,64355775313,66420066833,68539247170,70714477796,72946938520,75237827680,77588362336,79999778464,82473331151,85010294791,87611963282,90279650224,93014689118,95818433566,98692257472,101637555244,104655741997,107748253757,110916547666,114162102188,117486417316,120891014780,124377438256,127947253576,131602048939,135343435123,139173045698,143092537240,147103589546,151207905850,155407213040,159703261876,164097827209,168592708201,173189728546,177890736692,182697606064,187612235288,192636548416,197772495152,203022051079,208387217887,213870023602,219472522816,225196796918,231044954326,237019130720,243121489276,249354220901,255719544469,262219707058,268856984188,275633680060,282552127796,289614689680,296823757400,304181752291,311691125579,319354358626 cal $0,115567 ; a(n) = C(n,6) + C(n,5) + C(n,4) + C(n,3) + C(n,2) + C(n,1). mov $1,$0 add $1,1
391.285714
2,603
0.880248
8841c28d9f55e77e86cde56f204bcac52ced25e8
213
asm
Assembly
programs/oeis/136/A136516.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/136/A136516.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/136/A136516.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A136516: a(n) = (2^n+1)^n. ; 1,3,25,729,83521,39135393,75418890625,594467302491009,19031147999601100801,2460686496619787545743873,1280084544196357822418212890625 mov $1,2 pow $1,$0 add $1,1 pow $1,$0 mov $0,$1
23.666667
134
0.751174
005b8f5c6b6e2373f336041ecfcb810eb9a775de
262
asm
Assembly
libsrc/fcntl/spectrum/plus3/lseek.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/spectrum/plus3/lseek.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/spectrum/plus3/lseek.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ; long fdtell(int fd, long posn, int whence) ; ; Set position in file ; ; Not written as yet! ; ; $Id: lseek.asm,v 1.4 2017/01/02 21:02:22 aralbrec Exp $ SECTION code_clib PUBLIC lseek PUBLIC _lseek .lseek ._lseek ld hl,-1 ld d,h ld e,l ret
13.1
57
0.641221
5a606a5f69a09d215c2ed24eb65f057f4b36ce92
534
nasm
Assembly
code/misc/shellcode/encoders/not/not_decoder.nasm
rbctee/MalwareDevelopment
115cc5a7f2a0d42a6e7b6ae81b2b07ea514537e2
[ "BSD-3-Clause" ]
null
null
null
code/misc/shellcode/encoders/not/not_decoder.nasm
rbctee/MalwareDevelopment
115cc5a7f2a0d42a6e7b6ae81b2b07ea514537e2
[ "BSD-3-Clause" ]
null
null
null
code/misc/shellcode/encoders/not/not_decoder.nasm
rbctee/MalwareDevelopment
115cc5a7f2a0d42a6e7b6ae81b2b07ea514537e2
[ "BSD-3-Clause" ]
null
null
null
; Author: rbct ; Shellcode length: 19 bytes without the encoded shellcode global _start section .text _start: jmp short CallDecodeShellcode DecodeShellcode: pop esi xor ecx, ecx mov cl, 27 DecodeByte: not byte [esi] inc esi loop DecodeByte jmp short shellcode CallDecodeShellcode: call DecodeShellcode shellcode: db 0xce, 0x3f, 0xaf, 0x97, 0x91, 0xd0, 0x8c, 0x97, 0x97, 0xd0, 0xd0, 0x9d, 0x96, 0x4f, 0xf4, 0x76, 0x1c, 0x72, 0xb3, 0xdb, 0xf7, 0x72, 0xab, 0xdb, 0xf7, 0x32, 0x7f
16.6875
178
0.683521
cb63696530bb560f6e7c43756a113c233f7e1711
390
asm
Assembly
code/gfx/software/sw_render.asm
NEMESIS13cz/SysBench
f8ea62a7866d8df2ae726a84e26617c08c8f9be0
[ "MIT" ]
3
2018-02-26T20:09:33.000Z
2018-03-07T20:46:01.000Z
code/gfx/software/sw_render.asm
NEMESIS13cz/SysBench
f8ea62a7866d8df2ae726a84e26617c08c8f9be0
[ "MIT" ]
null
null
null
code/gfx/software/sw_render.asm
NEMESIS13cz/SysBench
f8ea62a7866d8df2ae726a84e26617c08c8f9be0
[ "MIT" ]
null
null
null
[BITS 64] global swrender_framebuffercpy ; void swrender_framebuffercpy(void* back, void* front, void* destination, uint64_t size); swrender_framebuffercpy: .repeat: mov rax, [rdi] mov r8, [rsi] cmp rax, r8 je .jump_over mov [rdx], rax mov [rsi], rax .jump_over: add rdi, 8 add rsi, 8 add rdx, 8 dec rcx jnz .repeat ret
18.571429
91
0.607692
b83ae8f109e096ddc979304ed8721ec09e64a546
1,576
asm
Assembly
src/stub_40h.asm
k-takata/startw
a68af29bc010f891a6386370c0424db3e9a286d0
[ "BSD-2-Clause" ]
1
2021-01-17T20:52:49.000Z
2021-01-17T20:52:49.000Z
src/stub_40h.asm
k-takata/startw
a68af29bc010f891a6386370c0424db3e9a286d0
[ "BSD-2-Clause" ]
null
null
null
src/stub_40h.asm
k-takata/startw
a68af29bc010f891a6386370c0424db3e9a286d0
[ "BSD-2-Clause" ]
null
null
null
; ; stub_40h.asm - a 40h-byte MS-DOS stub file ; ; Copyright (C) 2001-2012, K.Takata ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ; IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ; DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 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. ; cseg segment assume cs:cseg main: mov dx, offset msg1 + 100h mov ah, 09h int 21h mov ah, 4ch int 21h msg1 db 'Win32 program.', 0dh, 0ah, '$' PEoff dd 0 cseg ends end main
35.022222
75
0.735406
c45d10c012a91d3289a98dc58f1bbc37a0f15d98
3,983
asm
Assembly
guest/s2ebios/s2e-bios-low-asm.asm
sebastianpoeplau/s2e
995cac6126e7d80337e8c4a72bfa9a87eea7eb68
[ "MIT" ]
55
2019-12-20T03:25:14.000Z
2022-01-16T07:19:47.000Z
guest/s2ebios/s2e-bios-low-asm.asm
Moirai7/s2e
5a321f76d1a862c3898b9d24de621109b0c12b7d
[ "MIT" ]
2
2020-11-02T08:01:00.000Z
2022-03-27T02:59:18.000Z
guest/s2ebios/s2e-bios-low-asm.asm
Moirai7/s2e
5a321f76d1a862c3898b9d24de621109b0c12b7d
[ "MIT" ]
11
2020-08-06T03:59:45.000Z
2022-02-25T02:31:59.000Z
; S2E Selective Symbolic Execution Platform ; ; Copyright (c) 2013 Dependable Systems Laboratory, EPFL ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in all ; copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. ;This is the lower part of the bios, at 0xe0000 ;It runs in protected mode [bits 32] %define OSDATA32_SEL 0x08 %define OSCODE32_SEL 0x10 org 0xe0000 jmp start ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Interrupt descriptor table %define IDT_START 0 pm_idtr: dw 0x8*256 dd IDT_START ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; %define IA32_IDT_TYPE_32BITS 0x0800 %define IA32_IDT_PRESENT 0x8000 ;On initialise le PIC 8259A... pmode_initpic: MOV AL,00010001b OUT 0x20,AL ;ICW1 - MASTER OUT 0xA0,AL ;ICW1 - SLAVE MOV AL,20h OUT 0x21,AL ;ICW2 - MASTER MOV AL,28h OUT 0xa1,AL ;ICW2 - SLAVE MOV AL,00000100b OUT 0x21,AL ;ICW3 - MASTER MOV AL,00000010b OUT 0xa1,AL ;ICW3 - SLAVE MOV AL,00000001b OUT 0x21,AL ;ICW4 - MASTER OUT 0xa1,AL ;ICW4 - SLAVE MOV AL,11111011b ;Masked all but cascade/timer OUT 0x21,AL ;MASK - MASTER (0= Ints ON) MOV AL,11111111b OUT 0xa1,AL ;MASK - SLAVE RET ;eax: interrupt number ;edi: handler msg_add_idt: db "Adding interrupt vector ", 0 add_idt_desc: push edi shl eax, 3 add eax, IDT_START mov [eax], di mov word [eax+2], OSCODE32_SEL mov word [eax+4], IA32_IDT_PRESENT | IA32_IDT_TYPE_32BITS | 0x0600 shr edi, 16 mov [eax+6], di pop edi ret start: ;Initialize interrupt tables here push msg_init_int_table call s2e_print_message add esp, 4 xor ecx, ecx mov edi, int_default start_0: cmp ecx, 256 jae start_1 ;push ecx ;push msg_add_idt ;push ecx ;call s2e_print_expression ;add esp, 8 ;pop ecx push ecx mov eax, ecx call add_idt_desc pop ecx inc ecx jmp start_0 start_1: mov eax, 0 mov edi, int_0 call add_idt_desc lidt [pm_idtr] call pmode_initpic sti ; Test an interrupt call ;int 0x80 ;cli ;hlt ; Go to the testing routines jmp s2e_test %include "s2e-inst.asm" %include "s2e-test.asm" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Interrupt handlers msg_init_int_table: db "Initializing interrupt table", 0 int_msg_default: db "Called default interrupt handler", 0 int_div_zero: db "Division by zero", 0 int_msg: db "Called interrupt", 0 ; Default interrupt handler int_default: pusha push int_msg_default call s2e_print_message add esp, 4 popa iret ; Default interrupt handler int_0: pusha push int_div_zero push 0 call s2e_kill_state add esp, 4 popa iret int80: push int_msg push 0x80 call s2e_print_expression add esp, 8 iret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; times 0x10000 - ($-$$) db 0
22.630682
80
0.646247
6210ef168c86416d945ce9b817df0fd1507c050a
541
asm
Assembly
oeis/017/A017719.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017719.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017719.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017719: Binomial coefficients C(n,55). ; 1,56,1596,30856,455126,5461512,55525372,491796152,3872894697,27540584512,179013799328,1074082795968,5996962277488,31368725759168,154603005527328,721480692460864,3201570572795084,13559593014190944,54991682779774384,214178132931752864,803167998494073240,2906703232645217440,10173461314258261040,34501303587484537440,113566790975469935740,363413731121503794368,1132173546955454128608,3438452994457305131328,10192557090712725925008,29523268814478240610368,83649261641021681729376 add $0,55 bin $0,55
90.166667
477
0.902033
b6217abb3223802f4f0035fd7fc1e1ac30d34eb7
583
asm
Assembly
oeis/279/A279415.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/279/A279415.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/279/A279415.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A279415: Triangle read by rows: T(n,k), n>=k>=1, is the number of right isosceles triangles with integral coordinates that have a bounding box of size n X k. ; Submitted by Jon Maiga ; 0,0,4,0,2,4,0,0,4,4,0,0,2,4,4,0,0,0,4,4,4,0,0,0,2,4,4,4,0,0,0,0,4,4,4,4,0,0,0,0,2,4,4,4,4,0,0,0,0,0,4,4,4,4,4,0,0,0,0,0,2,4,4,4,4,4,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,2,4,4,4,4,4,4,0,0,0,0,0,0,0,4,4 lpb $0 mov $2,$0 seq $2,127948 ; Triangle, A004736 * A127899. mov $3,$0 add $3,$2 div $0,$3 mov $4,$2 sub $4,1 min $4,1 add $4,1 add $5,$4 mul $0,$5 lpe mov $0,$5 mul $0,2
29.15
201
0.578045